:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
body {
  margin: 0;
  background: #0b0e14;
  color: #d7dce5;
  display: flex;
  flex-direction: column;
  height: 100vh;
}
header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-bottom: 1px solid #1c2230;
  font-size: 13px;
}
header strong {
  font-weight: 600;
}
#state {
  margin-left: auto;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #2a2f3a;
}
#state.ok {
  background: #14532d;
  color: #bbf7d0;
}
#state.warn {
  background: #78350f;
  color: #fde68a;
}
#state.err {
  background: #7f1d1d;
  color: #fecaca;
}
#reconnect {
  font: inherit;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #2f3646;
  background: #171c26;
  color: #d7dce5;
  cursor: pointer;
}
#reconnect:hover {
  background: #1f2632;
}
#reconnect:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}
#reconnect[hidden] {
  display: none;
}
#term {
  flex: 1;
  padding: 6px;
  min-height: 0;
}
.hint {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
  border-bottom: 1px solid #1c2230;
  color: #9aa4b2;
}
code {
  background: #1c2230;
  padding: 1px 5px;
  border-radius: 4px;
  color: #e5e9f0;
}
