:root { --bg: #f7f7f4; --fg: #1b1b1b; --muted: #555; --card: #fff; --accent: #1f4fbf; --accent-fg: #fff; --line: #d6d6d0; --field: #767676; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #121417; --fg: #ececec; --muted: #b4b4b4; --card: #1c1f24; --accent: #8fb0ff; --accent-fg: #0d1220; --line: #3a3f47; --field: #8a8f98; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 1.0625rem/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
main { max-width: 34rem; margin: 0 auto; padding: max(1.5rem, env(safe-area-inset-top)) 1rem 3rem; }
header img { border-radius: 14px; }
h1 { font-size: 1.6rem; margin: .5rem 0 .25rem; }
h2 { font-size: 1.2rem; margin: 0 0 .5rem; }
.lead, .hint, details p { color: var(--muted); }
section { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; margin: 1.25rem 0; }
label { display: block; font-weight: 600; margin-bottom: .35rem; }
input { width: 100%; font: inherit; font-size: 1.25rem; letter-spacing: .08em; padding: .7rem .8rem; border: 2px solid var(--field);
        border-radius: 10px; background: var(--bg); color: var(--fg); text-transform: uppercase; }
button { margin-top: .75rem; width: 100%; min-height: 48px; font: inherit; font-weight: 700; border: 0; border-radius: 10px;
         background: var(--accent); color: var(--accent-fg); cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
button.secondary { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
#status { min-height: 1.5em; font-weight: 600; }
h2:focus { outline: none; }
.last { font-weight: 600; }
.code-show { letter-spacing: .08em; }
details { margin-top: 2rem; }
summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
