:root {
  --seele-terminal-bg: #101820;
}

.navbar-brand {
  font-weight: 700;
}

output.form-hint {
  display: block;
  margin-top: .375rem;
}

#qrCanvas {
  width: min(100%, 232px);
  height: auto;
  border: 1px solid var(--tblr-border-color, #dadfe5);
  border-radius: var(--tblr-border-radius, 4px);
}

.admin-entry-button {
  width: 100%;
  text-align: left;
}

.login-dialog {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(29, 39, 59, .42);
}

.login-dialog[hidden] {
  display: none;
}

.login-panel {
  width: min(100%, 24rem);
}

.wechat-code {
  display: block;
  width: 220px;
  height: 220px;
  margin: 0 auto 1rem;
  object-fit: contain;
  border: 1px solid var(--tblr-border-color, #dadfe5);
  border-radius: var(--tblr-border-radius, 4px);
}

.wechat-code[hidden] {
  display: none;
}

.ssh-server-panel {
  width: min(100%, 36rem);
  max-height: min(720px, calc(100vh - 2rem));
  overflow: auto;
}

.ssh-server-form,
.manager-login-form {
  display: grid;
  gap: .75rem;
}

.manager-login-form {
  max-width: 24rem;
}

.sql-example {
  margin: 0 0 .75rem;
  padding: .75rem;
  overflow-x: auto;
  background: var(--tblr-bg-surface-secondary, #f6f8fa);
  border: 1px solid var(--tblr-border-color, #dadfe5);
  border-radius: var(--tblr-border-radius, 4px);
  font-family: var(--tblr-font-monospace, Consolas, Monaco, monospace);
  font-size: .8125rem;
  line-height: 1.5;
}

.sql-example:last-child {
  margin-bottom: 0;
}

.table td,
.table th {
  max-width: 360px;
  overflow-wrap: anywhere;
  vertical-align: top;
}

.ssh-terminal-body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: var(--seele-terminal-bg);
}

.ssh-page,
.ssh-panel,
.ssh-terminal {
  width: 100vw;
  height: 100vh;
  min-height: 0;
  margin: 0;
  padding: 0;
  background: var(--seele-terminal-bg);
}

.ssh-terminal {
  overflow: hidden;
  color: #d9e6ef;
  border: 0;
  outline: none;
}

.ssh-terminal .xterm {
  height: 100%;
  padding: 0;
}

.ssh-terminal .xterm-viewport {
  background-color: var(--seele-terminal-bg);
}

.ssh-file-button {
  position: fixed;
  top: .625rem;
  right: .625rem;
  z-index: 20;
}

.ssh-file-panel {
  position: fixed;
  top: 3.125rem;
  right: .625rem;
  z-index: 21;
  display: flex;
  flex-direction: column;
  width: min(380px, calc(100vw - 1.25rem));
  height: min(640px, calc(100vh - 3.75rem));
  max-height: calc(100vh - 3.75rem);
  overflow: hidden;
  box-shadow: var(--tblr-box-shadow-lg, 0 1rem 3rem rgba(0, 0, 0, .175));
}

.ssh-file-panel[hidden] {
  display: none;
}

.ssh-file-panel .card-body {
  flex: 0 0 auto;
}

.ssh-file-path {
  min-height: 2rem;
  padding: .5rem .625rem;
  overflow-wrap: anywhere;
  background: var(--tblr-bg-surface-secondary, #f6f8fa);
  border: 1px solid var(--tblr-border-color, #dadfe5);
  border-radius: var(--tblr-border-radius, 4px);
  font-family: var(--tblr-font-monospace, Consolas, Monaco, monospace);
  font-size: .8125rem;
}

.ssh-file-status[data-state="error"] {
  color: var(--tblr-danger, #d63939);
  white-space: pre-wrap;
}

.ssh-file-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}
