:root { color-scheme: light; --page: #f6f7f9; --surface: #ffffff; --ink: #101828; --ink-2: #475467; --line: #d0d5dd; --border: #e4e7ec; --danger: #b42318; --danger-bg: #fef3f2; }
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --page: #0d0d0d; --surface: #1a1a19; --ink: #f0efec; --ink-2: #c3c2b7; --line: #4a4a45; --border: #2c2c2a; --danger: #ffb4a8; --danger-bg: #3a1512; }
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--page); color: var(--ink); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
main { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 32px; display: grid; gap: 18px; }
.brand { font-weight: 650; font-size: 20px; letter-spacing: -0.01em; }
h1 { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; color: var(--ink-2); }
form { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; }
input { min-height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; }
input.code { min-height: 56px; font-size: 26px; letter-spacing: 0.3em; text-align: center; font-variant-numeric: tabular-nums; }
button { min-height: 48px; border-radius: 10px; border: 0; background: var(--ink); color: var(--surface); font: inherit; font-weight: 600; cursor: pointer; }
button.link { min-height: 0; background: none; color: var(--ink); text-decoration: underline; font-weight: 400; font-size: 13px; padding: 0; justify-self: start; }
:focus-visible { outline: 2px solid #2a78d6; outline-offset: 2px; }
.error { background: var(--danger-bg); color: var(--danger); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.qr { justify-self: center; background: #ffffff; padding: 12px; border-radius: 12px; line-height: 0; }
.qr svg { width: 200px; height: 200px; display: block; }
code { font: 14px/1.4 ui-monospace, Consolas, monospace; word-break: break-all; background: var(--page); padding: 6px 8px; border-radius: 6px; display: block; }
.small { font-size: 13px; }
ol { margin: 0; padding-left: 20px; color: var(--ink-2); display: grid; gap: 6px; }
