:root{--bg:#f4f6f9;--surface:#fff;--text:#14181f;--muted:#4a5361;--border:#c9d0da;--primary:#0f4fb8;--primary-text:#fff;--primary-soft:#e3ecfb;--danger:#b3261e;--warning-bg:#fff4d6;--warning-border:#b98900;--error-bg:#fde8e6;--success-bg:#e3f5e8;--success-border:#1e7a3c;--info-bg:#e7eefa;--stage-bg:#0b0d10;--radius:12px;--tap:52px;--font:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root{--bg:#0f1216;--surface:#1a1f26;--text:#eef1f5;--muted:#b3bcc8;--border:#3a4350;--primary:#5b9bff;--primary-text:#071224;--primary-soft:#1d2b44;--danger:#ff8a80;--warning-bg:#3a2f0d;--warning-border:#e0b33a;--error-bg:#3d1614;--success-bg:#12301d;--success-border:#57c27a;--info-bg:#172238;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*,:before,:after{box-sizing:border-box}html,body{background:var(--bg);color:var(--text);font-family:var(--font);-webkit-text-size-adjust:100%;margin:0;font-size:17px;line-height:1.45}#root{min-height:100dvh}h1,h2{margin:0;line-height:1.2}h1{font-size:1.2rem}h2{margin-bottom:.75rem;font-size:1.1rem}p{margin:0 0 .75rem}a{color:var(--primary)}strong{font-weight:650}:focus-visible{outline:3px solid var(--primary);outline-offset:2px}.screen{flex-direction:column;min-height:100dvh;display:flex}.topbar,.stage-top{z-index:10;min-height:60px;padding:max(.25rem, env(safe-area-inset-top)) .5rem .25rem;background:var(--surface);border-bottom:1px solid var(--border);align-items:center;gap:.5rem;display:flex;position:sticky;top:0}.topbar h1,.stage-top h1{text-align:center;white-space:nowrap;text-overflow:ellipsis;flex:1;overflow:hidden}.topbar-spacer{width:var(--tap);display:inline-block}.topbar-actions{min-width:var(--tap);justify-content:flex-end;display:flex}.content{width:100%;max-width:600px;padding:1rem 1rem calc(2rem + env(safe-area-inset-bottom));flex-direction:column;gap:1rem;margin:0 auto;display:flex}.offline-strip{background:var(--warning-bg);border-bottom:1px solid var(--warning-border);text-align:center;margin:0;padding:.5rem 1rem;font-size:.95rem}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);flex-direction:column;gap:.75rem;padding:1rem;display:flex}.card>h2{margin-bottom:0}.stack{flex-direction:column;gap:.75rem;display:flex}.row{flex-wrap:wrap;align-items:flex-end;gap:.75rem;display:flex}.row>*{flex:140px}.muted{color:var(--muted)}.fine-print{color:var(--muted);margin:0;font-size:.9rem}.center{text-align:center}.status-line{align-items:center;gap:.4rem;margin:0;font-weight:600;display:flex}.btn{min-height:var(--tap);border-radius:var(--radius);font:inherit;cursor:pointer;touch-action:manipulation;border:2px solid #0000;justify-content:center;align-items:center;gap:.5rem;padding:0 1.1rem;font-weight:650;text-decoration:none;display:inline-flex}.btn:disabled{opacity:.45;cursor:not-allowed}.btn-block{width:100%}.btn-primary{background:var(--primary);color:var(--primary-text)}.btn-secondary{background:var(--surface);color:var(--primary);border-color:var(--primary)}.btn-danger{background:var(--surface);color:var(--danger);border-color:var(--danger)}.btn-ghost{color:var(--primary);background:0 0}.icon-button{width:var(--tap);height:var(--tap);color:inherit;border-radius:var(--radius);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;display:inline-flex}.icon{flex:none;width:24px;height:24px}.link-button{min-height:44px;color:var(--primary);font:inherit;cursor:pointer;text-align:left;background:0 0;border:none;padding:.5rem 0;text-decoration:underline}.confirm-row{flex-wrap:wrap;gap:.75rem;display:flex}.field{flex-direction:column;gap:.3rem;display:flex}.field label,.choice legend,.toggle-label{font-weight:650}.field-hint{color:var(--muted);margin:0;font-size:.92rem}.field input,.field select{min-height:var(--tap);border:2px solid var(--border);border-radius:var(--radius);background:var(--surface);width:100%;color:var(--text);font:inherit;padding:0 .85rem;font-size:1.05rem}.field input:focus,.field select:focus{border-color:var(--primary);outline:none}.field-error input{border-color:var(--danger)}.field-message{color:var(--danger);margin:0;font-weight:600}.checkbox{align-items:center;gap:.6rem;min-height:44px;font-weight:600;display:flex}.checkbox input{width:24px;height:24px}.choice{border:none;min-width:0;margin:0;padding:0}.choice legend{margin-bottom:.5rem;padding:0}.choice-grid{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.5rem;display:grid}.choice-option,.tile,.pick{min-height:var(--tap);border:2px solid var(--border);border-radius:var(--radius);background:var(--surface);color:var(--text);font:inherit;text-align:left;cursor:pointer;flex-direction:column;justify-content:center;gap:.15rem;padding:.6rem .8rem;display:flex}.choice-option.selected,.tile.selected,.pick.selected{border-color:var(--primary);background:var(--primary-soft)}.choice-label{font-weight:650}.choice-description{color:var(--muted);font-size:.88rem}.tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;display:grid}.tile{min-height:72px;font-weight:650}.pick-list{flex-direction:column;gap:.5rem;margin:0;padding:0;list-style:none;display:flex}.pick{flex-direction:row;justify-content:space-between;align-items:center;width:100%;min-height:60px;font-weight:650}.segmented{border:2px solid var(--primary);border-radius:var(--radius);flex:none;display:inline-flex;overflow:hidden}.segmented button{background:var(--surface);min-width:64px;min-height:48px;color:var(--primary);font:inherit;cursor:pointer;border:none;font-weight:700}.segmented button.selected{background:var(--primary);color:var(--primary-text)}.toggle-row{justify-content:space-between;align-items:center;gap:1rem;display:flex}.switch{border:2px solid var(--border);background:var(--border);cursor:pointer;border-radius:19px;flex:none;width:64px;height:38px;position:relative}.switch.on{background:var(--primary);border-color:var(--primary)}.switch-knob{background:#fff;border-radius:50%;width:28px;height:28px;transition:transform .15s;position:absolute;top:3px;left:3px}.switch.on .switch-knob{transform:translate(26px)}.stepper{align-items:center;gap:.75rem;display:flex}.stepper-value{text-align:center;flex:1;font-weight:650}.banner{border-radius:var(--radius);border-left:5px solid;padding:.75rem .9rem}.banner-info{background:var(--info-bg);border-color:var(--primary)}.banner-warning{background:var(--warning-bg);border-color:var(--warning-border)}.banner-error{background:var(--error-bg);border-color:var(--danger)}.banner-success{background:var(--success-bg);border-color:var(--success-border)}.progress{margin:0;font-weight:650}.progress.ready{color:var(--success-border)}.sticky-actions{position:sticky;bottom:.5rem;box-shadow:0 6px 24px #0000001f}.list{flex-direction:column;gap:.5rem;margin:0;padding:0;list-style:none;display:flex}.list-item{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);width:100%;min-height:64px;color:var(--text);font:inherit;text-align:left;cursor:pointer;flex-direction:column;padding:.7rem .9rem;text-decoration:none;display:flex}.list-title{font-weight:650}.list-sub{color:var(--muted);font-size:.92rem}.menu{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);flex-direction:column;display:flex;overflow:hidden}.menu a,.menu button{min-height:var(--tap);border:none;border-top:1px solid var(--border);color:var(--text);font:inherit;text-align:left;cursor:pointer;background:0 0;align-items:center;padding:0 1rem;font-weight:600;text-decoration:none;display:flex}.menu-user{color:var(--muted);margin:0;padding:.75rem 1rem}.objective-row{grid-template-columns:1fr 1fr var(--tap);align-items:end;gap:.5rem;display:grid}.auth{justify-content:center;align-items:center;min-height:100dvh;padding:1rem;display:flex}.auth-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);flex-direction:column;gap:1rem;width:100%;max-width:440px;padding:1.5rem 1.25rem;display:flex}.auth-card form{flex-direction:column;gap:1rem;display:flex}.brand{align-items:center;gap:.9rem;display:flex}.brand h1{font-size:1.6rem}.brand p{color:var(--muted);margin:0}.auth-switch{text-align:center;margin:0}.splash{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:1rem;min-height:100dvh;padding:1rem;display:flex}.stage-screen{background:var(--stage-bg);color:#f2f4f7;--surface:#171b21;--border:#39414d;--text:#f2f4f7;--muted:#b9c1cc;--primary:#5b9bff;--primary-text:#071224;--primary-soft:#1d2b44;--warning-bg:#3a2f0d;--error-bg:#3d1614;--success-bg:#12301d;--info-bg:#172238;flex-direction:column;height:100dvh;display:flex}.stage-screen .stage-top{background:#11151a;border-bottom-color:#262c35}.stage-area{flex:1;min-height:0;position:relative}.stage-canvas{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;width:100%;height:100%;display:block;position:absolute;inset:0}.stage-bottom{padding:.6rem .75rem calc(.6rem + env(safe-area-inset-bottom));background:#11151a;border-top:1px solid #262c35;flex-direction:column;gap:.6rem;max-height:55dvh;display:flex;overflow-y:auto}.toolbar{flex-wrap:wrap;justify-content:center;align-items:center;gap:.5rem;display:flex}.toolbar .btn{padding:0 .85rem}.zoom-level{text-align:center;font-variant-numeric:tabular-nums;min-width:3.5rem;color:var(--muted)}.readout{justify-content:space-between;align-items:center;gap:.75rem;display:flex}.readout-value{font-variant-numeric:tabular-nums;font-size:1.5rem;font-weight:750}.hint-overlay{border-radius:var(--radius);background:#11151af2;border:1px solid #39414d;flex-direction:column;gap:.5rem;max-width:480px;margin:0 auto;padding:1rem;display:flex;position:absolute;bottom:1rem;left:1rem;right:1rem}.camera{color:#f2f4f7;background:#000;flex-direction:column;height:100dvh;display:flex}.camera-stage{flex:1;min-height:0;position:relative;overflow:hidden}.camera-stage video{object-fit:contain;width:100%;height:100%;position:absolute;inset:0}.camera-guide{touch-action:none;position:absolute}.camera-guide svg{display:block}.camera-error{color:var(--text);justify-content:center;align-items:center;padding:1rem;display:flex;position:absolute;inset:0}.camera-hint{text-align:center;padding:.5rem 1rem 0}.camera-hint p{margin:0 0 .35rem}.camera .fine-print{color:#b9c1cc}.camera-controls{padding:.75rem 1rem calc(.75rem + env(safe-area-inset-bottom));grid-template-columns:1fr auto 1fr;align-items:center;display:grid}.camera-controls .btn-ghost{color:#fff}.shutter{cursor:pointer;background:0 0;border:4px solid #fff;border-radius:50%;width:76px;height:76px;padding:5px}.shutter span{background:#fff;border-radius:50%;width:100%;height:100%;display:block}.shutter:disabled{opacity:.4}@media (min-width:720px){.tiles{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (prefers-reduced-motion:reduce){*{transition:none!important}}
