:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#e8eee9;background:#0b0e0c;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color-scheme:dark;--accent:#5de2a4;--panel:#141a16;--border:#2a352d;--muted:#a5b2a9;--header-height:68px}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.42}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #8aefc2;outline-offset:3px}a{color:var(--accent)}p{line-height:1.6;margin:0 0 12px}h1,h2,h3{margin:0;font-weight:650;letter-spacing:-.025em}h2{font-size:25px;line-height:1.2}h3{font-size:15px}small{line-height:1.5}svg{flex-shrink:0}button{display:inline-flex;align-items:center;justify-content:center;gap:8px}input[type=range]{accent-color:var(--accent);width:100%;cursor:pointer;min-height:24px}input[type=checkbox]{width:17px;height:17px;accent-color:var(--accent);flex-shrink:0;cursor:pointer}select,input[type=number]{min-height:40px;border:1px solid #39473d;border-radius:8px;background:#0f1511;color:#e8eee9;padding:8px;max-width:100%}fieldset{border:0;padding:0;margin:0;min-width:0}legend{padding:0}.muted{color:var(--muted);font-size:13px}.eyebrow{color:#8caf98;font-size:10px;font-weight:700;letter-spacing:.16em;margin:0 0 9px}.button{border:1px solid #344237;border-radius:10px;background:#1d2821;padding:10px 15px;min-height:42px;font-size:13px;font-weight:600;text-decoration:none;transition:background .15s,border-color .15s}.button:hover:not(:disabled){background:#2b3b30;border-color:#53765d}.button.primary{background:var(--accent);border-color:var(--accent);color:#092417}.button.primary:hover:not(:disabled){background:#8cf0bd}.button.compact{padding:7px 11px;font-size:12px;min-height:36px}.button.danger{color:#ffaba4;background:#281917;border-color:#62352e}.full-width{width:100%}.icon-button{position:relative;border:1px solid var(--border);background:#18201b;border-radius:10px;width:42px;height:42px;padding:9px;flex-shrink:0}.icon-button:hover:not(:disabled){background:#2b3b30}.icon-button.small{width:32px;height:32px;padding:6px;border-color:transparent;background:transparent}.icon-button.active{color:#101d14;background:#f5d179}.text-button{border:0;background:none;padding:8px 3px;color:var(--accent);font-size:12px;min-height:32px;text-decoration:underline;text-underline-offset:3px}.text-button:hover{color:#b7f9d7}.app-header{height:var(--header-height);position:sticky;top:0;z-index:30;background:#0b0e0cf5;border-bottom:1px solid var(--border);backdrop-filter:blur(12px)}.header-inner{height:100%;max-width:1168px;margin:auto;padding:0 24px;display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{display:flex;gap:10px;align-items:center;color:#ecf4ee;text-decoration:none}.brand-icon{display:grid;place-items:center;width:38px;height:42px;background:#172d20;color:var(--accent);border:1px solid #305d41;border-radius:12px}.brand strong{display:block;font-size:17px;letter-spacing:-.04em}.brand small{display:block;font-size:10px;color:#a0b0a4;margin-top:2px}.header-inner nav{display:flex;gap:8px}.count{position:absolute;top:-4px;right:-4px;min-width:17px;height:17px;padding:0 3px;border-radius:10px;display:grid;place-items:center;font-size:10px;font-weight:700;background:var(--accent);color:#133d24}main{max-width:1168px;margin:auto;padding:30px 24px 24px;min-height:calc(100svh - 168px)}main:focus{outline:none}.app-footer{max-width:1120px;margin:0 auto;border-top:1px solid var(--border);padding:20px 0 26px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:11px;color:#8d9b91}.app-footer span{display:inline-flex;align-items:center;gap:6px}.loading-screen{min-height:50vh;display:flex;align-items:center;justify-content:center;gap:12px}.save-status{display:flex;align-items:center;justify-content:center;gap:5px;font-size:11px;color:#9daea1;margin:24px 0 0}.save-status.save-error{color:#ffd5a0;padding:12px;border:1px solid #655035;border-radius:10px}.restore-banner{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#1b2e23;border:1px solid #365d44;color:#b6e7c7;border-radius:10px;padding:8px 14px;font-size:12px;margin-bottom:20px}.return-row{max-width:570px;margin:0 auto 10px}.camera-panel{max-width:570px;margin:0 auto}.capture-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:20px}.capture-heading h2{font-size:23px}.local-badge{font-size:10px;white-space:nowrap;border:1px solid #33523e;border-radius:20px;padding:6px 9px;color:#b4d4be}.viewfinder{position:relative;height:clamp(220px,47svh,520px);width:100%;border-radius:24px;overflow:hidden;background:#070b08;border:1px solid #344137;isolation:isolate}.viewfinder video{width:100%;height:100%;object-fit:cover;display:block}.capture-target{position:absolute;left:19%;top:16%;width:62%;height:70%;border:2px dashed #b4c3b680;border-radius:40% 40% 28% 28%;pointer-events:none;display:flex;justify-content:center;align-items:flex-start;padding-top:18px;transition:border-color .2s}.capture-target.ready{border-color:var(--accent);border-style:solid;box-shadow:0 0 0 1px #5de2a430,0 0 25px #5de2a421}.capture-target>span{font-size:10px;background:#030905b3;border-radius:14px;padding:5px 9px;color:#e5ece6;white-space:nowrap}.finger-outline{position:absolute;top:28%;left:28%;width:44%;height:64%;border:1px solid #edf9f533;border-bottom:0;border-radius:60px 60px 0 0}.camera-hud{position:absolute;top:13px;left:13px;right:13px;display:flex;justify-content:space-between;align-items:center;gap:8px}.camera-hud .icon-button{background:#0b100de6}.camera-hud .icon-button.active{background:#f5d179}.detail-pill{border:1px solid #6e7448;background:#10180ee6;color:#dfdda6;border-radius:20px;padding:7px 10px;font-size:11px}.detail-pill.good{color:#a1f2c6;border-color:#446d51}.camera-bottom{position:absolute;bottom:12px;left:13px;right:13px;display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#d5e8d9}.camera-bottom span,.camera-bottom button{background:#07100ac9;border-radius:6px;padding:5px 8px}.camera-placeholder{position:absolute;inset:0;background:radial-gradient(ellipse at 50% 25%,#21382b,#101b14 55%,#0b100d);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:22px;gap:13px;color:#a5d9b7}.camera-placeholder h3{color:#f0f8f1;font-size:21px}.camera-placeholder p{max-width:320px;font-size:12px;color:#adbfaf;margin:0}.capture-tools{height:96px;display:flex;align-items:center;justify-content:space-around;gap:20px}.capture-secondary{border:0;background:none;flex-direction:column;gap:8px;min-width:80px;min-height:68px;font-size:11px;color:#c1d0c5}.capture-secondary>svg{color:#93c2a3}.shutter{width:68px;height:68px;border:5px solid #eff6f0;background:#63e7a9;border-radius:50%;color:#123621;box-shadow:0 0 0 5px #304e3b}.shutter:disabled{background:#64716a;box-shadow:0 0 0 4px #28332c;opacity:.55}.auto-capture{position:relative;display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid var(--border);border-radius:12px;padding:12px;background:#161e18;font-size:12px;overflow:hidden}.auto-capture label{display:flex;align-items:center;gap:8px}.auto-capture>span{font-size:10px;color:#98b2a0}.stability-track{position:absolute;bottom:0;left:0;right:0;height:3px;background:#1b3023}.stability-track>div{height:3px;background:var(--accent);transition:width .1s}.capture-note{font-size:12px;color:#97aa9d;margin:16px 2px 10px}.capture-note strong{font-weight:500;color:#c5d5ca}.hardware-controls{display:flex;flex-wrap:wrap;gap:15px;margin:14px 0}.hardware-controls label{display:flex;flex:1;min-width:180px;flex-direction:column;font-size:12px;gap:6px}.hardware-controls output{color:var(--accent)}.tips{border-top:1px solid var(--border);padding:12px 0;font-size:12px;color:#a4b9aa}.tips summary{cursor:pointer;color:#d3e1d7;font-weight:500}.tips p{margin-top:10px}.notice{background:#222b21;border:1px solid #48513a;border-radius:10px;padding:12px;margin:12px 0;font-size:12px;color:#d3deb9;display:flex;align-items:flex-start;gap:8px}.notice p{margin-bottom:8px}.notice.error{color:#ffd1bc;border-color:#725039;background:#2c2019}.notice>svg{margin-top:2px}.workbench-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.workbench-heading h2{font-size:27px}.workbench-heading .muted{margin-top:7px;margin-bottom:0;overflow-wrap:anywhere;font-size:12px}.workbench-heading>.button{flex-shrink:0}.workspace-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px;align-items:start}.preview-pane{position:sticky;top:calc(var(--header-height) + 20px);min-width:0;background:#0b0e0c;z-index:10}.preview-toolbar{display:flex;align-items:center;gap:8px;margin-bottom:10px}.view-select{display:flex;align-items:center;gap:8px;flex:1;min-width:0;font-size:11px;color:#a5b9ac}.view-select select{width:100%;font-size:12px;min-width:0}.stage-display{position:relative;border:1px solid var(--border);background:#151d17;border-radius:16px;padding:12px;min-width:0}.stage-display figure{margin:0;min-width:0}.stage-display figcaption{display:flex;align-items:center;justify-content:space-between;min-height:33px;font-size:12px;color:#c9dacc;gap:6px}.stage-display figcaption>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stage-image{height:clamp(230px,55svh,650px);border-radius:9px;overflow:hidden;display:flex;justify-content:center;align-items:center;background:#070b08}.stage-image img{width:100%;height:100%;object-fit:contain;display:block}.compare-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.compare-grid .stage-image{height:clamp(130px,24svh,290px)}.preview-empty{display:flex;flex-direction:column;align-items:center;gap:12px;font-size:12px;color:#8da697}.updating{position:absolute;bottom:22px;left:50%;transform:translate(-50%);display:flex;align-items:center;gap:7px;background:#0f241deb;border:1px solid #58926b;padding:8px 12px;border-radius:18px;font-size:11px;white-space:nowrap}.preview-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 2px;color:#9fb2a5;font-size:10px;min-height:35px}.preview-footer .text-button{font-size:11px}.controls-panel{min-width:0;border:1px solid var(--border);border-radius:16px;background:#141c16;padding:20px}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.panel-heading h3{display:flex;align-items:center;gap:8px}.panel-heading h3 svg{color:var(--accent)}.control-intro{font-size:11px;color:#99ad9f;margin:8px 0 18px}.controls-panel fieldset{border-top:1px solid var(--border);padding-top:16px;margin-top:18px}.controls-panel legend{font-size:12px;letter-spacing:.01em;font-weight:600;padding-right:10px;color:#e1eee5}.controls-panel legend>span{font-size:10px;color:#74a187;margin-right:6px;font-variant-numeric:tabular-nums}.range-control{position:relative;display:block;font-size:12px;color:#b9ccbf;margin:10px 0 16px}.range-control output{float:right;color:#e2f2e7;font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap;margin-left:8px}.range-control input{display:block;margin:5px 0 0}.segmented{display:flex;gap:5px;padding:4px;background:#0a100c;border:1px solid #26372b;border-radius:10px;margin:0 0 10px}.segmented button{flex:1;min-width:0;min-height:36px;font-size:12px;border:1px solid transparent;border-radius:7px;background:transparent;color:#a6b6ac}.segmented button[aria-pressed=true]{background:#273f30;border-color:#42694f;color:#b6f4cf}.field-help{font-size:10px;color:#a0b3a6;line-height:1.6;margin:7px 0 14px}.check-control{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0;border-top:1px solid #29392e;font-size:12px;color:#d0e2d6}.check-control small{display:block;font-size:10px;color:#9bb2a4;max-width:235px;margin-top:4px}.export-panel{margin-top:20px;border-top:1px solid var(--border);padding-top:18px}.export-panel h3{font-size:13px;margin-bottom:12px}.export-panel>.button{width:100%}.export-secondary{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}.export-secondary .button{flex:1;white-space:nowrap;font-size:10px}.export-panel .field-help{margin-bottom:0}.workbench-notes{font-size:11px;color:#94a79c;border-top:1px solid var(--border);padding-top:20px;margin-top:24px}.workbench-notes p{max-width:750px}.workbench-notes>.button{margin-bottom:10px}.dialog{color:#e5f0e8;background:#152019;border:1px solid #45624d;border-radius:18px;width:min(540px,calc(100vw - 28px));max-height:calc(100dvh - 32px);padding:24px;box-shadow:0 25px 100px #0009;overflow:auto}.dialog::backdrop{background:#000b;backdrop-filter:blur(5px)}.dialog.wide{width:min(900px,calc(100vw - 28px))}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-bottom:14px;border-bottom:1px solid #304636;margin-bottom:18px}.dialog-heading h2{font-size:20px}.dialog p{font-size:13px}.guide-list{padding-left:21px;font-size:13px}.guide-list li{padding-left:6px;margin-bottom:18px}.guide-list li::marker{color:var(--accent);font-weight:700}.guide-list p{color:#b4c8bc;margin:7px 0}.guide-note{background:#0d1710;border:1px solid #344c3b;border-radius:11px;padding:14px;margin-bottom:15px;font-size:13px}.guide-note p{margin:7px 0 0;color:#b4c8bc}.dialog-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:18px}.history-list{list-style:none;padding:0;margin:18px 0}.history-list li{display:flex;align-items:center;gap:8px;padding:8px 0;border-top:1px solid #304637}.history-open{flex:1;min-width:0;text-align:left;justify-content:flex-start;border:0;background:none;padding:8px 0;gap:12px}.history-open>svg{color:var(--accent)}.history-open>span:not(.current-badge){flex:1;min-width:0}.history-open strong{display:block;font-size:13px;overflow-wrap:anywhere}.history-open small{display:block;color:#adc6b5;font-size:10px;margin-top:4px}.current-badge{font-size:9px;color:#a9e6bd;border:1px solid #315b3f;border-radius:12px;padding:4px 6px;flex-shrink:0}.empty-history{padding:24px 0;color:#8fac99}.crop-canvas{display:block;width:100%;max-height:55svh;touch-action:none;background:#080e0a;margin:14px 0}.crop-move{cursor:move}.crop-resize{cursor:nwse-resize}.crop-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.crop-fields legend{font-size:12px;margin-bottom:9px}.crop-fields label{font-size:11px;min-width:0}.crop-fields input{width:100%;margin-top:5px}.inspection-image{overflow:auto;max-height:65svh;border:1px solid var(--border);background:#07100a;touch-action:pan-x pan-y}.inspection-image img{max-width:none;display:block;image-rendering:auto}.error-boundary{max-width:640px;padding-top:10vh}.error-boundary p{margin:18px 0}.spin{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:800px){:root{--header-height:64px}.header-inner{padding:0 16px}main{padding:18px 16px}.app-footer{margin:0 16px;flex-direction:column;font-size:10px;padding:16px 0}.workspace-grid{grid-template-columns:minmax(0,1fr);gap:14px}.workbench-heading{margin-bottom:16px;gap:8px}.workbench-heading h2{font-size:21px}.workbench-heading .eyebrow{font-size:9px}.workbench-heading .muted{font-size:10px}.workbench-heading>.button{padding:8px 10px;font-size:11px;min-height:36px}.preview-pane{top:var(--header-height);margin:0 -4px;padding:6px 4px 0;border-bottom:1px solid #314135;box-shadow:0 10px 15px #0b0e0c99}.preview-toolbar{gap:6px;margin-bottom:6px}.preview-toolbar>.icon-button{width:36px;height:36px;padding:8px}.view-select{font-size:0;gap:0}.view-select select{font-size:12px;min-height:36px;padding:6px}.stage-display{padding:7px;border-radius:11px}.stage-display figcaption{font-size:10px;min-height:27px}.stage-display figcaption>.icon-button{width:27px;height:27px}.stage-image{height:clamp(140px,29svh,300px)}.compare-grid{gap:8px}.compare-grid .stage-image{height:clamp(70px,13svh,150px)}.preview-footer{font-size:9px;min-height:32px}.preview-footer .text-button{font-size:10px}.controls-panel{padding:16px}.control-intro{font-size:11px}.capture-heading{margin-bottom:14px}.capture-heading h2{font-size:21px}.local-badge{display:none}.capture-tools{height:88px}.capture-note,.auto-capture{font-size:11px}.auto-capture>span{font-size:9px}.capture-target>span{font-size:9px;padding:5px 7px}.dialog{padding:18px}.dialog-heading h2{font-size:18px}.restore-banner{font-size:11px;padding:7px 10px;margin-bottom:14px}.crop-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.history-open .current-badge{display:none}}@media(max-height:620px)and (max-width:800px){.viewfinder{height:40svh;min-height:180px}.capture-heading .eyebrow{margin-bottom:5px}.capture-heading{margin-bottom:10px}.camera-placeholder{gap:9px;padding:16px}.camera-placeholder p{font-size:10px}.camera-placeholder h3{font-size:17px}.camera-placeholder>svg{width:25px;height:25px}.capture-tools{height:78px}.shutter{width:60px;height:60px}.stage-image{height:24svh;min-height:100px}.compare-grid .stage-image{height:10svh;min-height:45px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}.processing-progress{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 0;font-size:11px;color:#b8cebf}.processing-progress>div{flex:1;min-width:140px}.processing-progress progress{width:100%;height:6px;accent-color:var(--accent);order:3}.processing-progress .button{font-size:11px;min-height:32px}.automatic-panel h3{margin-top:20px;font-size:16px}.search-summary{display:flex;flex-direction:column;gap:7px;padding:14px;background:#1c3023;border:1px solid #355e42;border-radius:12px;margin-bottom:16px}.search-summary strong{color:#b8f3cd;font-size:16px}.search-summary span{font-size:11px;color:#bfd4c5}.candidate-details{font-size:12px;margin:16px 0}.candidate-details summary{cursor:pointer;color:#d6ebdc}.candidate-details ol{padding-left:20px}.candidate-details li{padding:8px 0;color:#b8cebf}.candidate-details li strong,.candidate-details li span{display:block;font-size:11px;margin-bottom:4px}.capture-mode{margin:0 0 14px}.capture-mode button{display:flex;justify-content:center;align-items:center;gap:8px;min-height:42px}.shutter.recording{background:#f58a77;color:#3d1912;box-shadow:0 0 0 5px #733a2b}.detail-pill{max-width:calc(100% - 48px);line-height:1.4}.video-intake{max-width:720px;margin:auto}.video-intake>p{color:#adc3b3;font-size:14px}.video-crop-preview{position:relative;max-height:48svh;margin:18px auto;width:auto;max-width:100%;overflow:hidden;border-radius:14px;background:#0b110d}.video-crop-preview img{display:block;width:100%;height:100%;object-fit:contain}.video-crop-preview>div{position:absolute;border:2px solid var(--accent);box-shadow:0 0 0 2000px #03100755;pointer-events:none}.video-actions{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.video-frames{padding:16px;border:1px solid var(--border);border-radius:16px;background:#17221b;margin-bottom:20px}.video-frame-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.video-frame-heading h3{margin:0}.frame-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0}.frame-choices button{display:flex;align-items:center;gap:10px;min-width:0;padding:10px;border:1px solid #405047;border-radius:10px;background:#111a14;text-align:left;color:var(--text)}.frame-choices button[aria-pressed=true]{border-color:var(--accent);background:#203d2c}.frame-choices img{width:52px;height:72px;object-fit:cover;border-radius:5px}.frame-choices span{min-width:0}.frame-choices strong,.frame-choices small{display:block}.frame-choices strong{font-size:12px}.frame-choices small{font-size:10px;color:#b3cbbd;margin-top:4px}.fusion-summary{font-size:12px;padding:10px;border:1px solid #3b5543;border-radius:8px;margin:10px 0}.fusion-summary p{margin:6px 0;color:#b6cbbd}@media(max-width:600px){.video-frame-heading{align-items:flex-start;flex-direction:column}.frame-choices{gap:7px}.frame-choices button{flex-direction:column;align-items:flex-start;padding:7px}.frame-choices img{width:100%;height:86px;object-fit:contain}.frame-choices strong{font-size:11px}.video-frames{padding:10px}.video-actions>.button{flex:1}.capture-tools{gap:10px}.capture-secondary{min-width:70px;font-size:10px}}.button.active-combination{border-color:var(--accent);background:#203d2c;color:#b8f3cd}
