:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#16191d;--surface:#1f2328;--surface-2:#282d33;--border:#343a42;--text:#e6e8eb;--text-muted:#9aa3ad;--text-faint:#6b737d;--accent:#8fb3e0;--accent-text:#0f141a;--zone-green:#5fae84;--zone-yellow:#d2b25a;--zone-red:#cf7a6c;--stim-bg:#101215;--stim-light:#f2f3f5;--c-red:#ef5a50;--c-blue:#5b95ff;--c-green:#3fbf5f;--c-yellow:#f0c330;--radius:14px;--radius-sm:10px;--gap:12px;--pad:16px;--tap:56px;--tap-test:72px;--nav-h:64px;--font:system-ui, -apple-system, "Roboto", "Segoe UI", "Helvetica Neue", Arial, sans-serif;--fs:17px;--fs-sm:16px;--fs-lg:20px;--fs-xl:28px;--fs-xxl:44px}*,:before,:after{box-sizing:border-box}html,body{background:var(--bg);height:100%;color:var(--text);font-family:var(--font);font-size:var(--fs);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent;overscroll-behavior:none;margin:0;line-height:1.45}#app{min-height:100%}button{font:inherit;color:inherit}.num{font-variant-numeric:tabular-nums}h1,h2,h3{margin:0 0 var(--gap);font-weight:600;line-height:1.2}h1{font-size:var(--fs-xl)}h2{font-size:var(--fs-lg)}p{margin:0 0 var(--gap)}.muted{color:var(--text-muted)}.faint{color:var(--text-faint)}.shell{flex-direction:column;min-height:100dvh;display:flex}.screen{padding:calc(var(--pad) + env(safe-area-inset-top)) var(--pad) calc(var(--nav-h) + var(--pad) + env(safe-area-inset-bottom));flex:1;width:100%;max-width:560px;margin:0 auto}.screen--flow{padding-bottom:calc(var(--pad) + env(safe-area-inset-bottom));flex-direction:column;display:flex}.card{background:var(--surface);border-radius:var(--radius);padding:var(--pad);margin-bottom:var(--gap)}.stack{gap:var(--gap);flex-direction:column;display:flex}.row{gap:var(--gap);align-items:center;display:flex}.spacer{flex:1}.btn{min-height:var(--tap);border-radius:var(--radius);border:1px solid var(--border);background:var(--surface-2);font-size:var(--fs);cursor:pointer;touch-action:manipulation;-webkit-user-select:none;user-select:none;justify-content:center;align-items:center;padding:0 20px;font-weight:500;display:inline-flex}.btn:disabled{opacity:.4;cursor:default}.btn--primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.btn--block{width:100%}.btn--ghost{color:var(--text-muted);background:0 0;border-color:#0000}.link-row{color:var(--text);border-top:1px solid var(--border);flex-direction:column;gap:2px;padding:10px 0;text-decoration:none;display:flex}.link-row:first-of-type{border-top:0}.link-row .muted,.small{font-size:15px}.center{text-align:center}.lead{font-size:var(--fs-lg);line-height:1.4}.warn{color:var(--zone-yellow);font-size:15px}.btn--tall{min-height:72px;font-size:var(--fs-lg);margin-bottom:8px}.card--accent{border-left:3px solid var(--accent)}.card--link{color:inherit;text-decoration:none;display:block}.sticky-actions{padding-top:var(--gap)}.zone-head{margin-bottom:var(--gap);align-items:center;gap:10px;font-size:24px;font-weight:600;display:flex}.zone-dot{border-radius:50%;flex:none;width:14px;height:14px}.zone-head--green .zone-dot{background:var(--zone-green)}.zone-head--yellow .zone-dot{background:var(--zone-yellow)}.zone-head--red .zone-dot{background:var(--zone-red)}.check{min-height:var(--tap);margin-bottom:var(--gap);align-items:center;gap:12px;display:flex}.check input{width:24px;height:24px;accent-color:var(--accent)}.scale{gap:10px;display:grid}.scale__btn{border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);text-align:left;cursor:pointer;align-items:center;gap:16px;min-height:60px;padding:0 18px;display:flex}.scale__n{font-size:var(--fs-lg);width:1.2em;font-weight:600}.scale__label{color:var(--text-muted)}.stepper{background:var(--surface);border-radius:var(--radius);padding:12px}.stepper__head{justify-content:space-between;margin-bottom:8px;display:flex}.stepper__row{grid-template-columns:64px 1fr 64px;gap:10px;display:grid}.stepper__btn{border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface-2);cursor:pointer;touch-action:manipulation;min-height:56px;font-size:26px}.stepper__input{border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--bg);min-width:0;min-height:56px;color:var(--text);text-align:center;font-size:26px}.stepper__input::placeholder{color:var(--text-faint)}.stepper__input--bad{border-color:var(--zone-yellow)}.stepper__foot{min-height:28px;padding-top:6px}.hint-chip{color:var(--text-faint);cursor:pointer;background:0 0;border:0;padding:2px 0;font-size:15px}.chips{flex-wrap:wrap;gap:10px;display:flex}.chip{border:1px solid var(--border);background:var(--surface);cursor:pointer;border-radius:999px;min-height:48px;padding:0 16px}.chip[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.segmented{gap:8px;display:flex}.segmented button{border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface);cursor:pointer;flex:1;min-height:52px}.segmented button[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.field{flex-direction:column;flex:1;gap:6px;display:flex}.field input,.field select{border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface);min-height:52px;color:var(--text);font:inherit;padding:0 12px}.metric-row{border-top:1px solid var(--border);align-items:center;gap:12px;padding:10px 0;display:flex}.metric-row__text{flex:1;min-width:0}.spark{flex:none}.spark__band{fill:var(--surface-2)}.spark__line{fill:none;stroke:var(--text-muted);stroke-width:1.5px}.spark__dot{fill:var(--text-muted)}.spark__now{fill:var(--accent)}.top3{margin:0;padding-left:1.4em}.bottom-nav{height:calc(var(--nav-h) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:var(--surface);border-top:1px solid var(--border);z-index:10;grid-template-columns:repeat(4,1fr);display:grid;position:fixed;bottom:0;left:0;right:0}.bottom-nav a{color:var(--text-muted);flex-direction:column;justify-content:center;align-items:center;gap:2px;font-size:13px;text-decoration:none;display:flex}.bottom-nav a[aria-current=page]{color:var(--text)}.bottom-nav svg{width:24px;height:24px}.update-banner{left:var(--pad);right:var(--pad);bottom:calc(var(--nav-h) + var(--gap) + env(safe-area-inset-bottom));align-items:center;gap:var(--gap);background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius);padding:10px 10px 10px var(--pad);z-index:20;display:flex;position:fixed}.update-banner .btn{min-height:44px}html.test-mode,html.test-mode body{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;overscroll-behavior:none;overflow:hidden}.test-root{z-index:100;background:var(--stim-bg);color:var(--text);touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;flex-direction:column;display:flex;position:fixed;inset:0}.test-panel{justify-content:center;gap:var(--gap);padding:calc(24px + env(safe-area-inset-top)) var(--pad) calc(24px + env(safe-area-inset-bottom));flex-direction:column;flex:1;width:100%;max-width:560px;margin:0 auto;display:flex}.test-panel .grow{flex:1}.test-panel h1{font-size:var(--fs-xl)}.test-rule{font-size:var(--fs-lg);line-height:1.4}.rule-progress{background:var(--surface-2);border-radius:2px;height:3px;overflow:hidden}.rule-progress>div{background:var(--text-faint);height:100%;animation:linear forwards rule-fill}@keyframes rule-fill{0%{width:0}to{width:100%}}.test-host{flex-direction:column;flex:1;display:flex}.t-stage{flex:1;justify-content:center;align-items:center;display:flex;position:relative}.t-stim{flex-direction:column;justify-content:center;align-items:center;display:flex}.t-msg{text-align:center;font-size:var(--fs-lg);color:var(--text-muted);min-height:1.5em;position:absolute;bottom:24px;left:0;right:0}.t-buttons{padding:12px var(--pad) calc(16px + env(safe-area-inset-bottom));align-content:end;gap:12px;min-height:33vh;display:grid}.t-buttons--one{grid-template-columns:1fr}.t-buttons--two,.t-buttons--grid{grid-template-columns:1fr 1fr}.t-btn{border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);min-height:72px;color:var(--text);font-size:var(--fs-lg);touch-action:none;-webkit-tap-highlight-color:transparent;justify-content:center;align-items:center;gap:10px;font-weight:500;display:flex}.t-btn--big{min-height:28vh}.t-btn .stim-arrow{width:36px;height:36px}.t-dot{border-radius:50%;flex:none;width:22px;height:22px}.sr{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.stim-circle{border-radius:50%;width:120px;height:120px}.stim-circle--light{background:var(--stim-light)}.stim-circle--go{background:var(--c-green)}.stim-square{width:110px;height:110px}.stim-square--nogo{background:var(--c-red)}.stim-fix{color:var(--text-muted);font-size:48px;font-weight:300;line-height:1}.stim-arrows{color:var(--stim-light);gap:2px;display:flex}.stim-arrow{width:52px;height:52px}.stim-word{letter-spacing:.02em;font-size:clamp(34px,11vw,56px);font-weight:800;line-height:1.1}.stim-frame{border:5px solid var(--stim-light);border-radius:12px;padding:22px 26px}.stim-frame--dashed{border-style:dashed}.stim-shape{width:120px;height:120px;fill:var(--stim-light)}.demo-history{opacity:.45;gap:12px;margin-bottom:20px;display:flex}.demo-history .stim-shape{width:44px;height:44px}.demo-stage{flex-direction:column;flex:1;justify-content:center;align-items:center;gap:24px;display:flex}.demo-hint{text-align:center;font-size:var(--fs);color:var(--text-muted);min-height:3em;padding:0 var(--pad)}.demo-hint--ok{color:var(--zone-green)}.choice-row{gap:var(--gap);grid-template-columns:repeat(3,1fr);display:grid}.metric-list{grid-template-columns:1fr auto;gap:6px 16px;margin:0;display:grid}.metric-list dt{color:var(--text-muted)}.metric-list dd{font-variant-numeric:tabular-nums;text-align:right;margin:0}
