:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#f4f6f8;color:#17202a}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}.visuallyHidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.appShell{min-height:100vh;display:block}.appHeader{position:sticky;top:0;z-index:20;background:#111827;color:#f8fafc;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:18px;padding:12px 22px;box-shadow:0 1px #ffffff14}.brand{display:flex;align-items:center;gap:12px;min-width:214px}.brandMark{width:38px;height:38px;display:grid;place-items:center;border-radius:8px;background:#2563eb}.brandTitle{font-weight:700}.brandSubtitle{color:#cbd5e1;font-size:13px;margin-top:2px}.navList{display:flex;justify-content:flex-end;gap:8px;min-width:0}.navButton,.commandButton{border:0;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;gap:10px;cursor:pointer}.navButton{min-width:132px;padding:9px 12px;color:#dbeafe;background:transparent}.navButton span{display:grid;gap:2px;text-align:left}.navButton small{color:#94a3b8;font-size:11px;font-weight:700}.navButton.active,.navButton:hover{background:#ffffff1a;color:#fff}.navButton.active small,.navButton:hover small{color:#dbeafe}.main{min-width:0;max-width:1440px;margin:0 auto;padding:24px}.pageStack{display:grid;gap:20px}.pageHeader{display:flex;justify-content:space-between;align-items:center;gap:16px}.pageHeader h1{margin:0;font-size:28px;line-height:1.2}.pageHeader p{margin:5px 0 0;color:#64748b}.statusPill{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:#dcfce7;color:#166534;font-weight:600;font-size:14px}.statusPill.error{background:#fee2e2;color:#991b1b}.statusPill.idle{background:#e2e8f0;color:#334155}.metricGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.metric,.panel,.controlPanel,.videoPanel,.modePanel{background:#fff;border:1px solid #e2e8f0;border-radius:8px}.metric{display:flex;gap:14px;align-items:center;padding:18px;color:inherit;text-align:left}.metricButton{width:100%;cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}.metricButton:hover{border-color:#93c5fd;box-shadow:0 8px 18px #0f172a14}.metricButton:active{transform:translateY(1px)}.metricIcon{width:44px;height:44px;display:grid;place-items:center;border-radius:8px}.metric.green .metricIcon{background:#dcfce7;color:#166534}.metric.blue .metricIcon{background:#dbeafe;color:#1d4ed8}.metric.amber .metricIcon{background:#fef3c7;color:#92400e}.metric.gray .metricIcon{background:#e2e8f0;color:#334155}.metricLabel{color:#64748b;font-size:13px}.metricValue{font-size:28px;font-weight:760;margin-top:2px}.metricHint{margin-top:3px;color:#2563eb;font-size:12px;font-weight:760}.captureMetrics{grid-template-columns:repeat(4,minmax(0,1fr))}.classStatGrid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.classStat{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #e2e8f0;border-radius:8px;padding:10px 12px;background:#fff}.classStat span{color:#64748b;font-size:13px;font-weight:700}.classStat strong{color:#0f172a;font-size:24px}.panel{overflow:hidden}.panelHeader{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;border-bottom:1px solid #e2e8f0}.panelHeader h2{margin:0;font-size:18px}.tableWrap{overflow-x:auto}table{width:100%;border-collapse:collapse}th,td{padding:13px 18px;text-align:left;border-bottom:1px solid #edf2f7;white-space:nowrap}th{color:#475569;font-size:12px;text-transform:uppercase;letter-spacing:0;background:#f8fafc}.badge{display:inline-flex;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:700;background:#e5e7eb;color:#374151}.badge.running{background:#dcfce7;color:#166534}.badge.error{background:#fee2e2;color:#991b1b}.badge.stopped{background:#fef3c7;color:#92400e}.commandButton{min-height:42px;padding:0 16px;background:#2563eb;color:#fff;font-weight:700;text-decoration:none}.commandButton:disabled{cursor:not-allowed;opacity:.55}.commandButton.danger{background:#dc2626}.commandButton.secondary{width:100%;background:#0f172a}.commandButton.secondary.subtle{background:#334155}.captureGrid,.uploadGrid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px;align-items:start}.uploadGrid{grid-template-columns:340px minmax(0,1fr)}.videoPanel{position:relative;overflow:hidden;aspect-ratio:16 / 9;background:#020617}.videoPreview,.overlayCanvas{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%}.videoPreview{object-fit:contain;display:block}.overlayCanvas{pointer-events:none}.hiddenVideoSource{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.hiddenCanvas{display:none}.capturePage{display:grid;gap:18px}.captureWorkspace{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 380px;align-items:start;min-width:0;overflow:hidden;border:1px solid #dbe3ee;border-radius:8px;background:#020617;box-shadow:0 16px 36px #0f172a1a;transition:grid-template-columns .18s ease}.captureWorkspace.settingsClosed{grid-template-columns:minmax(0,1fr) 58px}.captureStage{position:relative;width:100%;min-width:0;min-height:440px;overflow:hidden;background:#020617}.captureStage .videoPreview,.captureStage .overlayCanvas{z-index:1}.captureStandby{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2;display:grid;place-content:center;justify-items:center;gap:8px;color:#cbd5e1;text-align:center}.captureStandby svg{color:#60a5fa}.captureStandby strong{color:#fff;font-size:17px}.captureStandby span{color:#94a3b8;font-size:13px;font-weight:700}.captureHud{position:absolute;z-index:8;top:12px;left:12px;right:12px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"identity stats actions" "classes classes classes";align-items:center;gap:10px 16px;padding:10px 12px;border:1px solid rgba(255,255,255,.14);border-radius:8px;background:#0f172ae0;color:#fff;box-shadow:0 8px 24px #00000038;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);pointer-events:none}.captureHudIdentity{grid-area:identity;display:flex;align-items:center;gap:9px;min-width:150px}.captureHudIdentity>div{display:grid;gap:2px}.captureHudIdentity strong{font-size:14px}.captureHudIdentity small{max-width:180px;overflow:hidden;color:#cbd5e1;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.liveSignal{width:9px;height:9px;flex:0 0 auto;border-radius:999px;background:#64748b;box-shadow:0 0 0 4px #64748b33}.liveSignal.active{background:#22c55e;box-shadow:0 0 0 4px #22c55e33}.captureHudStats{grid-area:stats;display:flex;justify-content:center;gap:6px;min-width:0}.captureHudStat{min-width:92px;min-height:42px;display:grid;grid-template-columns:auto auto;grid-template-rows:auto auto;align-items:center;justify-content:center;column-gap:6px;padding:5px 9px;border-left:1px solid rgba(255,255,255,.14)}.captureHudStat svg{grid-row:1 / 3;color:#93c5fd}.captureHudStat span{color:#cbd5e1;font-size:10px;font-weight:700}.captureHudStat strong{color:#fff;font-size:16px;line-height:1;white-space:nowrap}.captureHudStat.emphasis svg,.captureHudStat.emphasis strong{color:#4ade80}.captureHudStat:first-child{border-left:0}.captureHudActions{grid-area:actions;display:flex;gap:6px;pointer-events:auto}.iconButton{width:40px;height:40px;flex:0 0 auto;display:inline-grid;place-items:center;border:1px solid rgba(255,255,255,.2);border-radius:8px;background:#ffffff1a;color:#fff;cursor:pointer}.iconButton:hover{background:#ffffff2e}.iconButton:focus-visible{outline:3px solid rgba(96,165,250,.52);outline-offset:2px}.iconButton.stop{border-color:#f87171b8;background:#dc2626e0}.iconButton.light{border-color:#cbd5e1;background:#fff;color:#334155}.iconButton.light:hover{background:#f1f5f9}.captureClassStrip{grid-area:classes;min-width:0;display:flex;justify-content:center;gap:4px 18px;overflow-x:auto;color:#cbd5e1;font-size:11px;scrollbar-width:none;white-space:nowrap}.captureClassStrip::-webkit-scrollbar{display:none}.captureClassStrip strong{margin-left:3px;color:#fff;font-size:12px}.captureStageMeta{position:absolute;z-index:7;left:14px;bottom:max(14px,env(safe-area-inset-bottom));display:flex;gap:6px;flex-wrap:wrap;pointer-events:none}.captureStageMeta span{min-height:28px;display:inline-flex;align-items:center;padding:0 9px;border:1px solid rgba(255,255,255,.14);border-radius:8px;background:#0f172ac7;color:#e2e8f0;font-size:11px;font-weight:800;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.captureSettings{position:relative;z-index:12;height:min(780px,calc(100vh - 120px));min-height:600px;display:flex;flex-direction:column;overflow:hidden;border-left:1px solid #dbe3ee;background:#fff;color:#0f172a}.captureSettingsHeader{min-height:70px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid #e2e8f0}.captureSettingsHeader>div{display:grid;gap:2px}.captureSettingsHeader span{color:#2563eb;font-size:11px;font-weight:800}.captureSettingsHeader h2{margin:0;font-size:19px}.captureSettingsBody{min-height:0;flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain}.captureSettingSection{display:grid;gap:13px;padding:16px;border-bottom:1px solid #e2e8f0}.captureSettingTitle{display:flex;align-items:center;gap:10px}.captureSettingTitle>span{width:28px;height:28px;flex:0 0 auto;display:grid;place-items:center;border-radius:8px;background:#eff6ff;color:#1d4ed8;font-size:12px;font-weight:800}.captureSettingTitle h3{margin:0;font-size:14px}.captureSettingTitle small{display:block;margin-top:2px;color:#64748b;font-size:11px;font-weight:600}.captureFormGrid{gap:10px}.captureFormGrid input,.captureFormGrid select{min-height:42px}.rangeValue{justify-self:end;margin-top:-24px;color:#2563eb;font-size:12px}.captureSettingsFooter{display:grid;gap:10px;padding:14px 16px max(14px,env(safe-area-inset-bottom));border-top:1px solid #e2e8f0;background:#fff}.capturePrimaryAction{width:100%}.captureSettingsRail{width:100%;height:100%;min-height:240px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:12px;padding:18px 8px;border:0;background:#fff;color:#1d4ed8;cursor:pointer}.captureSettingsRail span{font-size:13px;font-weight:800;writing-mode:vertical-rl}.captureWorkspace.live,.captureWorkspace:fullscreen{position:fixed;z-index:200;top:0;right:0;bottom:0;left:0;width:100%;height:100vh;height:100dvh;display:block;overflow:hidden;border:0;border-radius:0;background:#000;box-shadow:none}.captureWorkspace.live .captureStage,.captureWorkspace:fullscreen .captureStage{width:100%;height:100%;min-height:0;aspect-ratio:auto!important}.captureWorkspace.live .captureSettings,.captureWorkspace:fullscreen .captureSettings{position:absolute;z-index:230;top:0;right:0;width:min(390px,calc(100vw - 24px));height:100%;min-height:0;border-left:1px solid #cbd5e1;box-shadow:-18px 0 40px #00000057}.captureWorkspace.live.settingsClosed .captureSettings,.captureWorkspace:fullscreen.settingsClosed .captureSettings{display:none}.settingsBackdrop{position:absolute;z-index:220;top:0;right:0;bottom:0;left:0;border:0;background:#00000070;cursor:pointer}.controlPanel{padding:16px;display:grid;gap:14px}.controlPanel.workflowStack{padding:0;border:0;background:transparent}.workflowStack{display:grid;gap:12px}.workflowCard{background:#fff;border:1px solid #e2e8f0;border-radius:8px;overflow:hidden}.workflowCardHeader{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;border-bottom:1px solid #edf2f7}.workflowCardHeader>span{width:30px;height:30px;display:grid;flex:0 0 auto;place-items:center;border-radius:8px;background:#eff6ff;color:#1d4ed8;font-size:13px;font-weight:800}.workflowCardHeader h3{margin:0;color:#0f172a;font-size:15px;line-height:1.25}.workflowCardHeader p{margin:4px 0 0;color:#64748b;font-size:12px;line-height:1.45}.workflowCardBody{display:grid;gap:12px;padding:14px 16px 16px}.formGrid{display:grid;gap:12px}.formGrid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.wideField{grid-column:1 / -1}label{display:grid;gap:7px;font-size:13px;font-weight:700;color:#334155}.fieldLabel{font-size:13px;font-weight:700;color:#334155}input,select{width:100%;border:1px solid #cbd5e1;border-radius:8px;min-height:40px;padding:8px 10px;background:#fff;color:#0f172a}input[type=range]{padding:0}.filePickerGroup{display:grid;gap:8px}.filePickerButton{min-height:44px;border:1px solid #cbd5e1;border-radius:8px;background:#f8fafc;color:#0f172a;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:9px 12px;cursor:pointer}.filePickerButton:hover{border-color:#2563eb;background:#eff6ff}.selectedFileInfo{min-height:40px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;color:#0f172a;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 10px}.selectedFileInfo span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.selectedFileInfo strong{flex:0 0 auto;color:#475569;font-size:12px}.selectedFileInfo.muted{color:#94a3b8}.statsBox{display:grid;grid-template-columns:1fr;border:1px solid #e2e8f0;border-radius:8px;overflow:hidden}.statsBox div{display:flex;justify-content:space-between;padding:11px 12px;border-bottom:1px solid #e2e8f0}.statsBox div:last-child{border-bottom:0}.statsBox span{color:#64748b}.cameraMeta{display:flex;flex-wrap:wrap;gap:8px}.cameraMeta span{display:inline-flex;align-items:center;min-height:30px;padding:0 10px;border-radius:999px;background:#f1f5f9;color:#334155;font-size:13px;font-weight:800}.errorBox{border-radius:8px;background:#fee2e2;color:#991b1b;padding:10px 12px;font-weight:600;word-break:break-word}.helpText{color:#64748b;font-size:13px;line-height:1.6}.jobList{display:grid;gap:8px}.jobItem{border:1px solid #e2e8f0;border-radius:8px;background:#fff;color:#0f172a;min-height:44px;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 10px;text-align:left;cursor:pointer}.jobItem.active,.jobItem:hover,.localUploadItem{border-color:#2563eb;background:#eff6ff}.jobItem span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.jobItemRow{min-height:44px;display:grid;grid-template-columns:minmax(0,1fr) 42px;overflow:hidden;border:1px solid #e2e8f0;border-radius:8px;background:#fff}.jobItemRow.active,.jobItemRow:hover{border-color:#2563eb;background:#eff6ff}.jobSelectButton{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border:0;background:transparent;color:#0f172a;text-align:left;cursor:pointer}.jobSelectButton>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.jobDeleteButton{display:grid;place-items:center;border:0;border-left:1px solid #e2e8f0;background:transparent;color:#64748b;cursor:pointer}.jobDeleteButton:hover{background:#fee2e2;color:#b91c1c}.jobDeleteButton:disabled{cursor:not-allowed;opacity:.42}.resultPanel{min-height:540px}.resultBody{display:grid;gap:16px;padding:16px 18px 18px}.progressTrack{height:10px;overflow:hidden;border-radius:999px;background:#e2e8f0}.progressBar{height:100%;background:#16a34a;transition:width .18s ease}.progressTrack.indeterminate .progressBar{width:42%;animation:loadingBar 1.2s ease-in-out infinite}.uploadProgressBox{display:grid;gap:8px}.uploadProgressText{display:flex;justify-content:space-between;gap:12px;color:#475569;font-size:13px;font-weight:700}@keyframes loadingBar{0%{transform:translate(-110%)}to{transform:translate(240%)}}.metricGrid.compact{grid-template-columns:repeat(3,minmax(0,1fr))}.metricGrid.compact .metric{padding:14px}.metricGrid.compact .metricValue{font-size:24px}.videoMeta{display:flex;gap:10px;flex-wrap:wrap}.videoMeta span{display:inline-flex;align-items:center;min-height:30px;padding:0 10px;border-radius:999px;background:#f1f5f9;color:#334155;font-weight:700;font-size:13px}.downloadActions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.downloadActions span{color:#475569;font-size:13px;font-weight:700}.downloadButton{width:fit-content}.videoPreviewBox{display:grid;gap:10px}.analysisReviewSurface{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,.75fr);overflow:hidden;border-radius:8px;background:#020617}.analysisReviewSurface.noVideo{grid-template-columns:1fr}.analysisVideoColumn{min-width:0;background:#020617}.analysisVideoFrame{position:relative;width:100%;aspect-ratio:16 / 9;overflow:hidden;border-radius:0;background:#020617}.analysisVideoFrame video{width:100%;height:100%;aspect-ratio:auto;border-radius:0;object-fit:contain}.analysisOverlayCanvas{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;pointer-events:none}.analysisTimeOverlay{position:absolute;z-index:3;top:10px;left:10px;min-height:30px;display:inline-flex;align-items:center;padding:0 10px;border:1px solid rgba(255,255,255,.18);border-radius:8px;background:#0f172ad1;color:#fff;font-size:13px;font-weight:800;pointer-events:none;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.analysisVideoColumn>.videoMeta{padding:10px 12px;border-top:1px solid rgba(255,255,255,.1)}.analysisVideoColumn>.videoMeta span{background:#172033;color:#e2e8f0}.clipInspector{min-width:0;display:flex;flex-direction:column;border-left:1px solid rgba(255,255,255,.12);background:#111827;color:#fff}.clipInspectorHeader{display:grid;gap:8px;padding:14px;border-bottom:1px solid rgba(255,255,255,.12)}.clipInspectorHeader>div{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.clipInspectorHeader span,.clipInspectorHeader small{color:#94a3b8;font-size:11px;font-weight:700}.clipInspectorHeader strong{color:#4ade80;font-size:22px}.clipMetricGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-bottom:1px solid rgba(255,255,255,.12)}.clipMetricGrid>div{min-height:72px;display:grid;align-content:center;gap:4px;padding:10px 14px;border-right:1px solid rgba(255,255,255,.1);border-bottom:1px solid rgba(255,255,255,.1)}.clipMetricGrid>div:nth-child(2n){border-right:0}.clipMetricGrid>div:nth-last-child(-n+2){border-bottom:0}.clipMetricGrid span{color:#94a3b8;font-size:11px;font-weight:700}.clipMetricGrid strong{font-size:22px}.clipMetricGrid>div:first-child strong{color:#4ade80}.clipClassGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;padding:14px;color:#cbd5e1;font-size:12px}.clipClassGrid span{display:flex;justify-content:space-between;gap:8px}.clipClassGrid strong{color:#fff}.clipSampleMeta{margin-top:auto;display:flex;flex-wrap:wrap;gap:6px;padding:12px 14px;border-top:1px solid rgba(255,255,255,.12)}.clipSampleMeta span{padding:5px 7px;border-radius:8px;background:#1e293b;color:#cbd5e1;font-size:11px;font-weight:700}.videoPreviewBox video{width:100%;aspect-ratio:16 / 9;border-radius:8px;background:#020617;object-fit:contain}.analysisVideoFrame video{height:100%;aspect-ratio:auto;border-radius:0}.emptyState.compact{padding:12px;border-radius:8px;background:#f8fafc}.analysisTimeline{display:grid;gap:10px;padding:12px;border:1px solid #e2e8f0;border-radius:8px;background:#fff}.timelineHeader,.timelineStats{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;color:#334155;font-size:13px;font-weight:700}.timelineHeader strong{color:#0f172a}.timelineHeader>div:first-child{display:grid;gap:2px}.timelineHeader>div:first-child span{color:#0f172a;font-size:15px;font-weight:800}.timelineHeader small{color:#64748b;font-size:11px}.timeQueryControl{display:flex;align-items:center;gap:6px}.timeQueryControl input{width:108px;min-height:38px}.timeQueryButton{min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 11px;border:0;border-radius:8px;background:#0f172a;color:#fff;font-size:12px;font-weight:800;cursor:pointer}.timelineError{color:#b91c1c;font-size:12px;font-weight:700}.timelineScale{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;color:#64748b;font-size:11px;font-weight:700}.timelineScale strong{color:#0f172a;font-size:13px}.timelineScale span:last-child{text-align:right}.timelineScrubber{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;align-items:center;gap:8px}.timelineStepButton{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#0f172a;cursor:pointer}.timelineStepButton:disabled{cursor:not-allowed;opacity:.42}.timelineRange{position:relative;width:100%;min-width:0;min-height:44px;outline:none;cursor:pointer;touch-action:none}.timelineRange:before{content:"";position:absolute;left:0;right:0;top:50%;height:8px;transform:translateY(-50%);border-radius:999px;background:#dbe3ee}.timelineRange:focus-visible:before{box-shadow:0 0 0 4px #2563eb2e}.timelineDragFill{position:absolute;left:0;top:50%;height:8px;transform:translateY(-50%);border-radius:999px;background:#2563eb;pointer-events:none}.timelineDragThumb{position:absolute;top:50%;width:24px;height:24px;border:3px solid #ffffff;border-radius:999px;background:#2563eb;box-shadow:0 1px 5px #0f172a47;transform:translate(-50%,-50%);pointer-events:none}.timelineStats span{border-radius:999px;background:#f1f5f9;padding:6px 10px}.sampleChart{height:150px;display:flex;align-items:end;gap:3px;padding:12px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc}.sampleChartPanel{display:grid;gap:8px}.sampleChartHeader,.nearbySamplesHeader{display:flex;align-items:center;justify-content:space-between;gap:12px}.sampleChartHeader>div:first-child{display:grid;gap:2px}.sampleChartHeader strong,.nearbySamplesHeader strong{color:#0f172a;font-size:14px}.sampleChartHeader span,.nearbySamplesHeader span{color:#64748b;font-size:11px}.sampleChartHeader>div:last-child{display:flex;align-items:center;gap:5px;color:#64748b;font-size:11px}.chartLegend{width:9px;height:9px;display:inline-block;border-radius:2px}.chartLegend.peak{background:#f59e0b}.chartLegend.selected{margin-left:6px;background:#16a34a}.sampleBar{flex:1 1 4px;min-width:3px;max-width:12px;border:0;border-radius:3px 3px 0 0;background:#2563eb;cursor:pointer;padding:0}.sampleBar.selected{background:#16a34a;box-shadow:0 0 0 2px #16a34a38}.sampleBar.peak{background:#f59e0b;box-shadow:0 0 0 2px #f59e0b42}.sampleBar.peak.selected{background:#16a34a;box-shadow:0 0 0 2px #16a34a38,0 0 0 5px #f59e0b2e}.nearbySamplesTable tr.selected td{background:#ecfdf5}.tableTimeButton{border:0;background:transparent;color:#1d4ed8;font-weight:800;cursor:pointer;padding:0}.emptyState{padding:28px;color:#64748b}.modeGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.modePanel{padding:18px;display:grid;gap:16px}.modePanel.activeMode{border-color:#86efac}.modeHeader{display:flex;align-items:center;gap:12px}.modeHeader>svg{width:46px;height:46px;padding:11px;border-radius:8px;background:#eef2ff;color:#2563eb}.modeHeader h2{margin:0;font-size:21px}.modeHeader span{color:#64748b;font-size:13px;font-weight:700}.modeSummary{color:#334155;line-height:1.7}.modeClassList{display:flex;flex-wrap:wrap;gap:8px}.modeClassList span{display:inline-flex;align-items:center;min-height:30px;padding:0 10px;border-radius:999px;background:#f1f5f9;color:#0f172a;font-size:13px;font-weight:800}.planningTable{display:grid;border:1px solid #e2e8f0;border-radius:8px;overflow:hidden}.planningTable div{display:grid;grid-template-columns:120px minmax(0,1fr);gap:12px;padding:12px;border-bottom:1px solid #e2e8f0}.planningTable div:last-child{border-bottom:0}.planningTable strong{color:#0f172a}.planningTable span,.planRoadmap p,.phaseItem span{color:#475569;line-height:1.65}.planningFlow{max-width:980px}.modeChoiceList{display:grid;gap:0;border:1px solid #e2e8f0;border-radius:8px;overflow:hidden}.modeChoiceItem{display:grid;grid-template-columns:110px minmax(0,1fr) minmax(0,.9fr);gap:12px;align-items:center;padding:12px;border-bottom:1px solid #e2e8f0}.modeChoiceItem:last-child{border-bottom:0}.modeChoiceItem strong{color:#0f172a}.modeChoiceItem span{color:#475569;line-height:1.55}.modeChoiceItem em{color:#166534;font-style:normal;font-weight:800;line-height:1.55}.settingMatrix{overflow-x:auto;border:1px solid #e2e8f0;border-radius:8px}.settingMatrix table{min-width:640px}.settingMatrix th,.settingMatrix td{white-space:nowrap}.planRoadmap{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:16px 18px 18px}.planRoadmap div{border:1px solid #e2e8f0;border-radius:8px;padding:14px;background:#fff}.planRoadmap h3{margin:0 0 8px;font-size:16px}.planRoadmap p{margin:0;font-size:14px}.phaseList{display:grid;gap:0}.phaseItem{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px 18px;border-bottom:1px solid #e2e8f0}.phaseItem:last-child{border-bottom:0}.phaseItem div{display:grid;gap:4px}@media(max-width:940px){.appHeader{grid-template-columns:1fr;align-items:stretch;gap:12px;padding:12px 14px}.brand{min-width:0}.brandSubtitle{display:none}.navList{justify-content:flex-start;overflow-x:auto;padding-bottom:2px;scrollbar-width:thin}.navButton{flex:0 0 auto;min-width:124px}.main{padding:16px}.metricGrid,.captureGrid,.uploadGrid,.modeGrid,.planRoadmap,.modeChoiceItem{grid-template-columns:1fr}.metricGrid.captureMetrics{grid-template-columns:repeat(2,minmax(0,1fr))}.classStatGrid{grid-template-columns:repeat(3,minmax(0,1fr))}.formGrid.two{grid-template-columns:1fr}.planningFlow{max-width:none}.captureWorkspace:not(.live):not(:fullscreen),.captureWorkspace:not(.live):not(:fullscreen).settingsClosed{grid-template-columns:1fr}.captureWorkspace:not(.live):not(:fullscreen) .captureSettings{height:auto;min-height:0;border-top:1px solid #dbe3ee;border-left:0}.captureWorkspace:not(.live):not(:fullscreen) .captureSettingsRail{min-height:56px;flex-direction:row;justify-content:center;padding:10px 14px}.captureWorkspace:not(.live):not(:fullscreen) .captureSettingsRail span{writing-mode:horizontal-tb}.analysisReviewSurface{grid-template-columns:1fr}.clipInspector{border-top:1px solid rgba(255,255,255,.12);border-left:0}}@media(max-width:560px){.pageHeader{align-items:stretch;flex-direction:column}.appHeader{position:sticky}.navList{display:flex;gap:6px}.navButton{flex:1 1 0;min-width:0;padding:9px 10px;justify-content:center;gap:6px}.navButton span{text-align:center}.navButton strong{font-size:13px}.navButton small{display:none}.selectedFileInfo{align-items:flex-start;flex-direction:column}.selectedFileInfo span{white-space:normal;word-break:break-word}.planningTable div{grid-template-columns:1fr;gap:4px}.settingMatrix{overflow:visible;border:0}.settingMatrix table,.settingMatrix thead,.settingMatrix tbody,.settingMatrix tr,.settingMatrix td{display:block;min-width:0}.settingMatrix thead{display:none}.settingMatrix tr{border:1px solid #e2e8f0;border-radius:8px;overflow:hidden;margin-bottom:8px;background:#fff}.settingMatrix tr:last-child{margin-bottom:0}.settingMatrix td{display:flex;justify-content:space-between;gap:14px;white-space:normal;border-bottom:1px solid #e2e8f0;text-align:right}.settingMatrix td:last-child{border-bottom:0}.settingMatrix td:before{content:attr(data-label);color:#64748b;font-weight:800;text-align:left}.metricGrid.captureMetrics{gap:10px}.metricGrid.captureMetrics .metric{padding:12px;gap:10px}.metricGrid.captureMetrics .metricIcon{width:36px;height:36px}.metricGrid.captureMetrics .metricValue{font-size:22px}.classStatGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.capturePage{gap:14px}.capturePageHeader p{font-size:13px}.captureStage{min-height:430px}.captureHud{top:max(8px,env(safe-area-inset-top));left:8px;right:8px;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"identity actions" "stats stats" "classes classes";gap:8px;padding:9px}.captureHudIdentity{min-width:0}.captureHudIdentity small{max-width:136px}.captureHudStats{justify-content:flex-start;overflow:visible}.captureHudStat{min-width:0;flex:1 1 64px;column-gap:3px;padding:4px}.captureHudStat strong{font-size:14px}.captureHudStat:first-child{border-left:0}.captureClassStrip{justify-content:flex-start}.captureHudActions .iconButton{width:38px;height:38px}.captureStageMeta{right:10px;left:10px;bottom:max(10px,env(safe-area-inset-bottom))}.captureWorkspace.live .captureSettings,.captureWorkspace:fullscreen .captureSettings{top:auto;right:0;bottom:0;width:100%;height:min(72dvh,620px);border-top:1px solid #cbd5e1;border-left:0;border-radius:8px 8px 0 0;box-shadow:0 -18px 40px #00000057}.captureSettingsHeader{min-height:62px}.captureSettingSection{padding:14px}.captureFormGrid{grid-template-columns:1fr}.timelineHeader,.nearbySamplesHeader{align-items:stretch;flex-direction:column}.timeQueryControl{width:100%}.timeQueryControl input{min-width:0;flex:1 1 auto}.timeQueryButton{flex:0 0 auto}.timelineScrubber{grid-template-columns:38px minmax(0,1fr) 38px;gap:6px}.timelineStepButton{width:38px;height:38px}.sampleChart{height:130px;padding:10px 8px}.clipInspectorHeader strong{font-size:20px}}
