:root {
  color-scheme: light;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #eef0f3;
  --text: #17202b;
  --muted: #5e6b7a;
  --line: #dfe3e8;
  --accent: #0b6e4f;
  --accent-soft: #dff3ea;
  --accent-text: #ffffff;
  --warn-bg: #fff3d1;
  --warn-text: #744e00;
  --danger: #b3261e;
  --danger-soft: #fce8e6;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 2px 8px rgba(16, 24, 40, .05);
  --side-bg: #eef1f5;
  --side-text: #1f2a37;
  --side-muted: #5e6b7a;
  --side-hover: #e1e6ec;
  --side-current: #d6dde6;
  --side-brand: #17202b;
}
/* Dark: when the computer is dark and the user did not pick light, or when the user picked dark. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #12161b;
    --surface: #1b2128;
    --surface-2: #252c35;
    --text: #e9edf2;
    --muted: #9aa7b6;
    --line: #313a45;
    --accent: #41c295;
    --accent-soft: #15382c;
    --accent-text: #06231a;
    --warn-bg: #3b2f10;
    --warn-text: #f2d48c;
    --danger: #f28b82;
    --danger-soft: #3f1f1d;
    --shadow: none;
    --side-bg: #17212c;
    --side-text: #e7ecf2;
    --side-muted: #a9b5c3;
    --side-hover: #243140;
    --side-current: #2d3c4d;
    --side-brand: #ffffff;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #12161b;
  --surface: #1b2128;
  --surface-2: #252c35;
  --text: #e9edf2;
  --muted: #9aa7b6;
  --line: #313a45;
  --accent: #41c295;
  --accent-soft: #15382c;
  --accent-text: #06231a;
  --warn-bg: #3b2f10;
  --warn-text: #f2d48c;
  --danger: #f28b82;
  --danger-soft: #3f1f1d;
  --shadow: none;
  --side-bg: #17212c;
  --side-text: #e7ecf2;
  --side-muted: #a9b5c3;
  --side-hover: #243140;
  --side-current: #2d3c4d;
  --side-brand: #ffffff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
h1 { font-size: 22px; line-height: 1.25; margin: 0; }
h2 { font-size: 15px; margin: 0 0 10px; }
h3 { font-size: 14px; margin: 0; }
a { color: var(--accent); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px; box-shadow: var(--shadow); }
.stack { display: grid; gap: 12px; }
.muted { color: var(--muted); font-size: 13px; }
.warn { background: var(--warn-bg); color: var(--warn-text); border-radius: 8px; padding: 9px 11px; font-size: 13px; }
.badge { display: inline-block; border-radius: 999px; padding: 1px 9px; font-size: 12px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.price { font-size: 17px; font-weight: 700; }
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 3px; }
input, select, textarea { width: 100%; padding: 8px 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--text); font: inherit; }
input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--accent); }
textarea { min-height: 78px; resize: vertical; }
button { padding: 8px 13px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
button:hover:not(:disabled) { background: var(--surface-2); }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
button.primary:hover:not(:disabled) { filter: brightness(.94); background: var(--accent); }
button.wide { width: 100%; }
button.danger { color: var(--danger); }
button.chip { padding: 4px 12px; border-radius: 999px; font-size: 13px; }
button.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
button:disabled { opacity: .5; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
button.link { all: unset; font-weight: 600; cursor: pointer; }
button.link:hover { color: var(--accent); text-decoration: underline; }
a.button { display: inline-block; padding: 8px 13px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--text); text-decoration: none; }
a.button:hover { background: var(--surface-2); }
a.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.code-input { font-size: 26px; letter-spacing: 10px; text-align: center; font-variant-numeric: tabular-nums; }
.signin h2 { margin: 0; }
