:root {
  --bg: #F8FAFC; --card: #FFFFFF; --ink: #0F172A; --ink-2: #334155; --muted: #475569;
  --line: #E2E8F0; --soft: #EEF2F7; --accent: #0369A1; --accent-ink: #FFFFFF; --accent-soft: #E0F2FE;
  --ok: #15803D; --ok-soft: #DCFCE7; --warn: #92400E; --warn-soft: #FEF3C7; --err: #B91C1C; --err-soft: #FEE2E2;
  --ring: #0369A1; --radius: 12px; --shadow: 0 1px 2px rgba(15,23,42,.06), 0 6px 20px rgba(15,23,42,.06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1220; --card: #111A2B; --ink: #E5ECF5; --ink-2: #C6D2E1; --muted: #9FB0C6;
    --line: #22314A; --soft: #16233A; --accent: #38BDF8; --accent-ink: #04121D; --accent-soft: #0C2A3F;
    --ok: #4ADE80; --ok-soft: #0E2A1B; --warn: #FBBF24; --warn-soft: #2B2209; --err: #F87171; --err-soft: #2E1414;
    --ring: #38BDF8; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
.wrap { max-width: 760px; margin: 0 auto; padding-inline: 20px; }
h1, h2, h3 { line-height: 1.25; text-wrap: balance; margin: 0 0 .4em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 700; }
h2 { font-size: 1.3rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 .8em; }
a { color: var(--accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 12px 14px; min-height: 44px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }

.top { border-bottom: 1px solid var(--line); background: var(--card); }
.brand { display: flex; align-items: center; gap: 10px; margin: 0; padding: 14px 0; font-weight: 700; letter-spacing: .01em; }
.mark { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); display: inline-block;
  -webkit-mask: none; position: relative; }
.mark::after { content: ""; position: absolute; inset: 5px 4px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: skewX(-12deg); }

.intro { padding: 32px 0 8px; }
.lede { font-size: 1.08rem; color: var(--ink-2); max-width: 64ch; }
.gets { margin: 0 0 8px; padding: 0; list-style: none; display: grid; gap: 6px; color: var(--muted); }
.gets li { padding-left: 22px; position: relative; }
.gets li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.gets b { color: var(--ink); font-weight: 600; }

.progress ol { list-style: none; margin: 20px 0 16px; padding: 0; display: flex; gap: 6px; }
.progress li { flex: 1; font-size: .8rem; color: var(--muted); }
.progress li::before { content: ""; display: block; height: 4px; border-radius: 4px; background: var(--line); margin-bottom: 6px; }
.progress li.done::before, .progress li.now::before { background: var(--accent); }
.progress li.now { color: var(--ink); font-weight: 600; }
@media (max-width: 520px) { .progress li:not(.now) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
@media (max-width: 520px) { form { padding: 18px; } }
.step h2 { margin-bottom: .25em; }
.hint { color: var(--muted); }
.small { font-size: .875rem; color: var(--muted); }
.label { display: block; font-weight: 600; margin: 18px 0 6px; }
.opt { font-weight: 400; color: var(--muted); font-size: .875rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

.cards { display: grid; gap: 10px; margin-top: 8px; }
.card { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 16px; border: 1.5px solid var(--line);
  border-radius: var(--radius); cursor: pointer; background: var(--card); transition: border-color .15s, background-color .15s; min-height: 44px; }
.card:hover { border-color: var(--accent); }
.card input { position: absolute; opacity: 0; pointer-events: none; }
.card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.card:has(input:focus-visible) { outline: 3px solid var(--ring); outline-offset: 2px; }
.card .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--soft); display: grid; place-items: center; }
.card:has(input:checked) .ico { background: var(--accent); }
.card svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card:has(input:checked) svg { stroke: var(--accent-ink); }
.card .txt { display: grid; gap: 2px; }
.card .txt span { color: var(--muted); font-size: .95rem; }

.checks { display: grid; gap: 8px; margin-top: 8px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; min-height: 44px; }
.check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.check .note { display: block; color: var(--muted); font-size: .875rem; margin-top: 2px; }
.check .warn { display: block; color: var(--warn); font-size: .85rem; margin-top: 4px; }

textarea, input:not([type=radio]):not([type=checkbox]) { width: 100%; font: inherit; color: var(--ink); background: var(--card);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 48px; }
textarea { resize: vertical; line-height: 1.5; }
textarea:focus, input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
[aria-invalid="true"] { border-color: var(--err) !important; }
.unit-input { display: flex; align-items: stretch; max-width: 260px; }
.unit-input input { border-radius: 10px 0 0 10px; }
.unit { display: grid; place-items: center; padding: 0 14px; border: 1.5px solid var(--line); border-left: 0; border-radius: 0 10px 10px 0; background: var(--soft); color: var(--muted); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 620px) { .grid2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.mt { margin-top: 28px; }

.example { border: 1px solid var(--line); background: var(--soft); border-radius: var(--radius); padding: 16px; margin: 16px 0 4px; }
.example-head { font-weight: 600; margin-bottom: 6px; }
.example-text { color: var(--ink-2); font-size: .95rem; max-height: 9.5em; overflow: auto; margin-bottom: 12px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.understood { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.chips { list-style: none; margin: 6px 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: .85rem; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--card); }
.chip b { font-weight: 600; color: var(--ink-2); }
.chip.on { background: var(--ok-soft); border-color: transparent; color: var(--ink); }
.chip.on::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.chip.fix { background: var(--warn-soft); border-color: transparent; color: var(--ink); }
.more { margin-top: 12px; }
.more summary { cursor: pointer; color: var(--accent); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.more p { color: var(--muted); font-size: .92rem; white-space: pre-line; }

.info { margin: 12px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); color: var(--ink); font-size: .95rem; }
.notices:empty { display: none; }
.notices .info { margin: 0 0 12px; background: var(--warn-soft); }
.field-error { color: var(--err); font-size: .9rem; margin: 6px 0 0; font-weight: 600; }
.errsum { border: 2px solid var(--err); background: var(--err-soft); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; }
.errsum h2 { font-size: 1rem; margin: 0 0 6px; }
.errsum ul { margin: 0; padding-left: 20px; }

.nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.btn { font: inherit; font-weight: 600; border-radius: 10px; padding: 12px 20px; min-height: 48px; cursor: pointer; border: 1.5px solid transparent;
  transition: background-color .15s, border-color .15s, opacity .15s; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.secondary { background: var(--card); color: var(--accent); border-color: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--muted); }
.btn[disabled] { opacity: .55; cursor: progress; }
.link { background: none; border: 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; padding: 10px 0; min-height: 44px; }

.done { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 24px; text-align: left; }
.ok-badge { width: 52px; height: 52px; border-radius: 50%; background: var(--ok-soft); display: grid; place-items: center; margin-bottom: 12px; }
.ok-badge svg { width: 28px; height: 28px; fill: none; stroke: var(--ok); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.eval { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.foot { padding: 28px 0 40px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; margin-right: 8px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
