:root {
  color-scheme: light dark;
  --bg: #f7f7f5; --fg: #1c1c1a; --muted: #666660; --accent: #2457c5; --accent-fg: #fff; --bad: #b3261e;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #151514; --fg: #ececea; --muted: #9a9a94; --accent: #7aa2f7; --accent-fg: #0d1117; --bad: #ff8a80; }
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg); color: var(--fg);
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
}
main { flex: 1; width: 100%; max-width: 420px; margin: 0 auto; padding: 20vh 24px 24px; text-align: center; }
h1 { font-size: 1.35rem; font-weight: 500; margin: 0 0 12px; }
h1 strong { font-weight: 700; }
#status { color: var(--muted); min-height: 1.5em; margin: 0 0 24px; }
#status.error { color: var(--bad); }
button {
  font: inherit; font-weight: 600; width: 100%; padding: 14px 20px; border: 0; border-radius: 12px;
  background: var(--accent); color: var(--accent-fg); cursor: pointer;
}
button:disabled { opacity: .55; cursor: default; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
a { color: var(--muted); font-size: .9rem; }
[hidden] { display: none !important; }
footer { padding: 16px 24px 24px; text-align: center; color: var(--muted); font-size: .8rem; }
