:root{color-scheme:light;--ink:#142033;--muted:#526175;--line:#d5deea;--card:#ffffff;--bg:#eef3f8;--accent:#0f766e;--ok:#166534;--bad:#9f1239}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:var(--bg);color:var(--ink);font-family:Segoe UI,sans-serif;line-height:1.45}.stand-bar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-height:48px;padding:8px 16px;border-bottom:1px solid var(--line);background:#fff;font-weight:700}.stand-bar a{color:inherit;text-decoration:none}.stand-bar a:last-child{margin-left:auto;padding:6px 12px;border:1px solid var(--line);border-radius:8px;color:var(--muted);font-size:.75rem;font-weight:600}.stand-tools{margin-left:auto;display:flex;align-items:center;gap:8px}.stand-bar .stand-tools a{margin-left:0}.stand-shell{min-height:100vh;display:flex;flex-direction:column}.stand-main{flex:1 1}.stand-footer{border-top:1px solid var(--line);padding:16px;text-align:center;color:var(--muted);font-size:.75rem;font-weight:400;background:#fff}.stand-footer span{display:block;margin-top:4px}.page{width:min(880px,calc(100% - 32px));margin:0 auto;padding:32px 0 48px}.eyebrow{margin:0;color:var(--accent);font-size:.85rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase}h1{margin:6px 0 8px;font-size:2.4rem;line-height:1.1}.intro p:last-child{margin:0;max-width:42rem;color:var(--muted)}.card{margin-top:24px;padding:24px;background:var(--card);border:1px solid var(--line);border-radius:18px}h2{margin:0 0 16px;font-size:1.35rem}.scheme{display:block;width:100%;height:auto;background:#f8fbfd;border:1px solid var(--line);border-radius:14px}.roads{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 0;padding:0;list-style:none}.roads li{padding:4px 10px;border:1px solid var(--line);border-radius:999px;background:#f8fafc;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.table-wrap{margin-top:16px}.weights{border-collapse:collapse;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.weights td,.weights th{min-width:2.5rem;padding:6px 10px;border:1px solid var(--line);text-align:center}.weights thead th{background:#f8fafc}.weights td.cell-lit{background:#ffedd5;color:#9a3412;font-weight:700}.weights td.cell-active{background:#fb923c;color:#fff7ed;font-weight:800;box-shadow:inset 0 0 0 2px #ea580c}.roads li.road-lit{border-color:#ea580c;background:#ffedd5;color:#9a3412;font-weight:700}.path-caption{margin:10px 0 0}@keyframes path-pulse{0%,to{opacity:1}50%{opacity:.55}}.scheme path.path-pulse{animation:path-pulse .7s ease-in-out infinite}.answer{display:grid;gap:8px;margin-top:20px}.answer label{font-weight:700}.answer input{width:9rem;padding:10px 12px;border:1px solid #94a3b8;border-radius:10px;font:inherit;font-size:1.25rem}.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}button{padding:10px 16px;border:0;border-radius:10px;background:var(--accent);color:white;font:inherit;font-weight:700;cursor:pointer}button.ghost,button.secondary{background:white;color:var(--ink);border:1px solid #94a3b8}button.selected{background:var(--accent);color:white;border:1px solid var(--accent)}button.danger{background:var(--bad);color:white}button:disabled{opacity:.6;cursor:wait}.verdict{margin:16px 0 0;font-weight:700;color:var(--bad)}.verdict.ok{color:var(--ok)}.request{margin:8px 0 0;font-size:.9rem}.hint,.request{color:var(--muted)}.label{margin:14px 0 6px;font-weight:700}.stack{display:grid;gap:12px}.stack button{justify-self:start}.toolbar{gap:12px;align-items:end;margin-top:12px}.toolbar,.words{display:flex;flex-wrap:wrap}.words{gap:8px}.actions{margin-top:14px}.banner{margin-top:16px;padding:12px 16px;background:white;border:1px solid var(--line);border-radius:14px;font-weight:700}.choices,.topics{display:grid;gap:12px}.choices{margin-top:24px}.topic-card{margin-top:0}.choice{display:flex;flex-direction:column;gap:6px;padding:18px;background:white;border:1px solid var(--line);border-radius:18px;color:inherit;text-decoration:none}.choice:hover{border-color:var(--accent)}.choice span{color:var(--muted);font-weight:400}.page.narrow{width:min(480px,calc(100% - 32px))}.table-wrap{overflow-x:auto;margin-top:12px}table{width:100%;border-collapse:collapse}td,th{padding:8px 10px;border-bottom:1px solid var(--line);text-align:left}th{color:var(--muted);font-size:.8rem}.num{text-align:center;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}main a:not(.choice){color:var(--accent)}.field{display:grid;gap:6px;font-weight:700}.field input{width:min(16rem,100%);padding:10px 12px;border:1px solid #94a3b8;border-radius:10px;font:inherit;font-weight:400}@media (min-width:720px){.choices,.topics{grid-template-columns:1fr 1fr}}.mode-grid{display:grid;gap:8px;margin-top:12px}.mode-card{text-align:left}.mode-card span{display:block;margin-top:4px;font-weight:400;color:var(--muted);font-size:.85rem}.mode-card.selected span{color:#f8fafc}.overlay{position:fixed;inset:0;z-index:20;display:flex;justify-content:center;align-items:flex-start;overflow:auto;padding:24px 12px;background:rgba(20,32,51,.35)}.overlay .card{width:min(720px,100%);margin-top:0}@media (min-width:720px){.mode-grid{grid-template-columns:1fr 1fr}}@media (max-width:640px){.page{width:min(100% - 20px,880px);padding-top:20px}h1{font-size:2rem}.card{padding:16px}}html.dark{color-scheme:dark;--ink:#e7eef8;--muted:#b7c3d4;--line:#314158;--card:#182232;--bg:#0e1622;--accent:#2dd4bf;--ok:#4ade80;--bad:#fb7185}html.dark .banner,html.dark .choice,html.dark .stand-bar,html.dark .stand-footer,html.dark button.ghost,html.dark button.secondary{background:var(--card)}html.dark input,html.dark select,html.dark textarea{background:#121a26;color:var(--ink);border-color:var(--line)}html.dark .scheme{background:#121a26}html.dark .scheme g:not(.edge-lit):not(.edge-active)>path{stroke:#e7eef8}html.dark .scheme g.edge-active>path,html.dark .scheme g.edge-lit>path{stroke:#fb923c}html.dark .scheme marker path{fill:#e7eef8}html.dark .weights td.cell-lit{background:#7c2d12;color:#ffedd5}html.dark .weights td.cell-active{background:#ea580c;color:#fff7ed}html.dark .roads li.road-lit{border-color:#ea580c;background:#7c2d12;color:#ffedd5}html.dark .scheme text[font-size="12"]{fill:#b7c3d4}html.dark .roads li,html.dark .weights thead th{background:#182232}html.dark .bg-stone-50\/70,html.dark .bg-stone-50\/80,html.dark .bg-stone-50\/90,html.dark .bg-white\/50,html.dark .bg-white\/80,html.dark .hover\:bg-stone-100:hover{background-color:#1f1f1f}html.dark .bg-slate-200,html.dark .bg-stone-200,html.dark .bg-stone-200\/80{background-color:#333333}html.dark .bg-amber-100,html.dark .bg-amber-200,html.dark .bg-amber-50,html.dark .bg-amber-50\/80{background-color:#451a03}html.dark .bg-orange-100,html.dark .bg-orange-50{background-color:#431407}html.dark .bg-blue-100,html.dark .bg-blue-50,html.dark .bg-sky-100,html.dark .bg-sky-50,html.dark .bg-sky-50\/80{background-color:#172554}html.dark .bg-emerald-100,html.dark .bg-emerald-100\/90,html.dark .bg-emerald-50,html.dark .bg-emerald-50\/80,html.dark .bg-teal-100,html.dark .bg-teal-50{background-color:#064e3b}html.dark .bg-red-100,html.dark .bg-red-50,html.dark .bg-rose-100,html.dark .bg-rose-100\/80,html.dark .bg-rose-50{background-color:#4c0519}html.dark .text-slate-400,html.dark .text-stone-400{color:#d4d4d4}html.dark .text-amber-700,html.dark .text-amber-800,html.dark .text-amber-900,html.dark .text-amber-950{color:#fde68a}html.dark .text-orange-700,html.dark .text-orange-800,html.dark .text-orange-900{color:#fed7aa}html.dark .text-blue-700,html.dark .text-blue-800,html.dark .text-blue-900,html.dark .text-sky-700,html.dark .text-sky-800,html.dark .text-sky-900,html.dark .text-sky-950{color:#bae6fd}html.dark .text-emerald-700,html.dark .text-emerald-800,html.dark .text-emerald-900,html.dark .text-emerald-950,html.dark .text-teal-800,html.dark .text-teal-900,html.dark .text-teal-950{color:#a7f3d0}html.dark .text-red-700,html.dark .text-red-800,html.dark .text-red-900,html.dark .text-rose-700,html.dark .text-rose-800,html.dark .text-rose-900{color:#fecdd3}html.dark .border-amber-200,html.dark .border-amber-300,html.dark .border-amber-400{border-color:#92400e}html.dark .border-emerald-200,html.dark .border-emerald-300,html.dark .border-emerald-400{border-color:#059669}html.dark .border-red-200,html.dark .border-red-300,html.dark .border-rose-200{border-color:#be123c}