:root { color-scheme: dark; --page: #111111; --card: #1c1c1e; --line: #33343a; --text: #f4f4f5; --soft: #a1a1aa; --accent: #14b8a6; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--page); color: var(--text); font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
header { display: flex; align-items: center; justify-content: space-between; padding: max(14px, env(safe-area-inset-top)) 18px 6px; }
.brand { font-weight: 700; letter-spacing: .02em; }
main { max-width: 440px; margin: 0 auto; padding: 8px 18px max(24px, env(safe-area-inset-bottom)); }
h1 { font-size: 28px; margin: 8px 0 16px; min-height: 1.45em; }
h2 { font-size: 19px; margin: 0 0 6px; }
p { margin: 0; color: var(--soft); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 14px; }
.card.good { border-color: var(--accent); }
.card.bad { border-color: #f59e0b; }
label, .label { display: block; font-weight: 600; margin-bottom: 8px; }
input { width: 100%; font-size: 30px; letter-spacing: .35em; text-align: center; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--page); color: var(--text); }
input:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hint { font-size: 14px; margin: 8px 0 18px; }
button { font: inherit; cursor: pointer; border: 1px solid var(--line); background: var(--page); color: var(--text); border-radius: 12px; padding: 12px 14px; min-height: 48px; }
button:disabled { opacity: .5; cursor: default; }
button.quiet { background: none; min-height: 36px; padding: 6px 12px; }
button.primary { width: 100%; background: var(--accent); border-color: var(--accent); color: #042f2e; font-weight: 700; font-size: 18px; }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.chips button { font-size: 22px; font-weight: 700; }
.chips button[aria-pressed="true"] { border-color: var(--accent); background: #134e4a; }
.stepper { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 10px; }
.stepper button { width: 56px; font-size: 24px; }
.stepper output { min-width: 2ch; text-align: center; font-size: 28px; font-weight: 700; }
.actions { display: grid; gap: 10px; margin-top: 14px; }
