@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #0b1017;
  --surface: #111923;
  --surface-raised: #16212c;
  --input: #0d141d;
  --ink: #f0f5fc;
  --muted: #a1b1c3;
  --line: #29394b;
  --line-strong: #3b5265;
  --accent: #80e5bb;
  --accent-ink: #08251a;
  --focus: #8eadf8;
  --blue: #a3bcff;
  --warn: #ffd098;
  --error: #ffb6ac;
  --font: Inter, system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 20px; }
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.55 var(--font); }
main { flex: 1; padding-bottom: 52px; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1 { font-size: clamp(32px, 4vw, 53px); line-height: 1.04; letter-spacing: -.055em; font-weight: 750; overflow-wrap: anywhere; }
h2 { font-size: 19px; line-height: 1.2; letter-spacing: -.035em; }
h3 { font-size: 14px; line-height: 1.3; letter-spacing: -.012em; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
button:disabled { opacity: .65; cursor: default; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.wrap { width: min(1760px, calc(100% - clamp(32px, 7vw, 144px))); margin-inline: auto; }
.skip { position: fixed; top: -100px; left: 16px; z-index: 9; padding: 8px 12px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); }
.skip:focus { top: 14px; }
.footer, .actions { display: flex; align-items: center; }
.footer { justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); min-height: 62px; color: var(--muted); font-size: 12px; }
.page-heading { padding: clamp(26px, 5vw, 65px) 0 25px; }
.page-heading h1 { margin: 7px 0 10px; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--accent); letter-spacing: .07em; font: 500 11px/1.4 var(--mono); text-transform: uppercase; }
.dot, .status-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px #7fe3bb22; }
.lede { color: var(--muted); font-size: 14px; max-width: 56ch; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); padding: clamp(15px, 1.9vw, 23px); }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.muted, .hint { color: var(--muted); overflow-wrap: anywhere; }
.hint { font-size: 12px; }
label { display: block; color: var(--ink); margin-bottom: 5px; font-size: 12px; font-weight: 650; }
label small { color: var(--muted); font-weight: 400; }
input:not([type=checkbox]), select, textarea { width: 100%; min-height: 42px; min-width: 0; border: 1px solid var(--line-strong); border-radius: 6px; padding: 9px 11px; background: var(--input); font-size: 16px; line-height: 1.35; }
input::placeholder, textarea::placeholder { color: #93a3b5; opacity: 1; }
textarea { display: block; resize: vertical; }
.mono, code { font-family: var(--mono); overflow-wrap: anywhere; }
.button { min-height: 40px; padding: 8px 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 6px; font-size: 12px; font-weight: 750; line-height: 1.25; white-space: nowrap; }
.button.primary { color: var(--accent-ink); background: var(--accent); }
.button.primary:hover:not(:disabled) { background: #a5f2d0; text-decoration: none; }
.button.secondary { color: var(--ink); background: var(--surface-raised); border-color: var(--line-strong); }
.button.secondary:hover:not(:disabled) { border-color: var(--blue); text-decoration: none; }
.actions { gap: 8px; flex-wrap: wrap; }
.text-button, .text-link, .metric-link { color: var(--accent); background: none; border: 0; padding: 0; font-size: 12px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.text-button, .metric-link { min-height: 32px; text-align: left; }
summary { color: var(--blue); font-size: 12px; font-weight: 650; }
.notice, .error { padding: 9px 11px; border: 1px solid #6a4939; border-radius: 7px; color: var(--error); background: #251d1f; font-size: 12px; overflow-wrap: anywhere; }
.badge { display: inline-flex; padding: 4px 7px; border-radius: 4px; color: var(--blue); background: #233049; font: 500 10px/1.3 var(--mono); white-space: nowrap; }
.badge.live { color: var(--accent); background: #20392e; }
.badge.partial { color: var(--warn); background: #3a3027; }

@media (max-width: 540px) {
  .footer { min-height: 60px; }
}
