:root {
  color-scheme: light dark;
  --bg: #f7f7f5; --surface: #ffffff; --text: #1d1f21; --muted: #5d636b; --line: #d9dcdf;
  --accent: #1f5fbf; --accent-text: #ffffff; --bad: #a3271d; --radius: 8px;
  --font: system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171a; --surface: #1d2024; --text: #e7e9ec; --muted: #a2a8b0; --line: #343941;
    --accent: #6ea4ff; --accent-text: #0b1220; --bad: #ffa59b;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); }
main { max-width: 640px; margin: 0 auto; padding: 32px 16px 64px; }
h1 { font-size: 1.7rem; margin: 0 0 8px; }
h2 { font-size: 1.2rem; margin: 28px 0 8px; }
.lede, .hint { color: var(--muted); }
.hint { font-size: 0.9em; margin: 4px 0; }
a { color: var(--accent); }
code { font-family: var(--mono); font-size: 0.9em; word-break: break-all; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
form, section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-top: 20px; }
.field { display: flex; flex-direction: column; gap: 4px; margin-top: 0; }
label { font-weight: 600; }
input[type="text"], input:not([type]) { font: 1.05rem var(--mono); padding: 10px 12px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg); color: var(--text); width: 100%; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); margin: 16px 0; padding: 8px 16px 12px; }
legend { font-weight: 600; padding: 0 4px; }
.choice { display: flex; gap: 10px; align-items: center; font-weight: 400; padding: 6px 0; }
button, .button { display: inline-block; font: inherit; font-weight: 600; padding: 10px 20px; border: none;
  border-radius: var(--radius); background: var(--accent); color: var(--accent-text); cursor: pointer; text-decoration: none; }
button:disabled { opacity: 0.6; cursor: progress; }
.error { color: var(--bad); min-height: 1.5em; margin: 8px 0 0; }
.notes { white-space: pre-wrap; }
ol { padding-left: 1.4em; }
