:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --panel: #111820;
  --panel-2: #17212b;
  --text: #eef4f8;
  --muted: #9fb0bf;
  --line: #263542;
  --good: #34d399;
  --bad: #fb7185;
  --warn: #fbbf24;
  --accent: #38bdf8;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

.screen {
  min-height: 100dvh;
  padding: 18px;
}

.screen-center {
  display: grid;
  place-content: center;
  gap: 10px;
  text-align: center;
}

.brand {
  font-size: 24px;
  font-weight: 750;
}

.muted {
  color: var(--muted);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.title {
  font-size: 20px;
  font-weight: 760;
}

.grid {
  display: grid;
  gap: 12px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.row:first-child {
  border-top: 0;
  padding-top: 0;
}

.row:last-child {
  padding-bottom: 0;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.pill.good {
  color: var(--good);
  border-color: color-mix(in srgb, var(--good) 45%, var(--line));
}

.pill.bad {
  color: var(--bad);
  border-color: color-mix(in srgb, var(--bad) 45%, var(--line));
}

.tabs {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 10px 0 2px;
  background: linear-gradient(180deg, transparent, var(--bg) 24%);
}

.tab,
.btn {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  padding: 8px 10px;
}

.tab.active,
.btn.primary {
  border-color: var(--accent);
}

.field {
  display: grid;
  gap: 6px;
  margin: 10px 0;
}

.field span {
  color: var(--muted);
  font-size: 13px;
}

.input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f151c;
  color: var(--text);
  min-height: 44px;
  padding: 10px;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.small {
  font-size: 12px;
}

.pre {
  overflow: auto;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  color: var(--muted);
}

