:root{color-scheme:dark;--color-bg: #0b0f14;--color-surface: #151b23;--color-surface-alt: #1d252f;--color-border: #2a3540;--color-input-border: #67788a;--color-text: #e8eef5;--color-muted: #a1afbd;--color-accent: #3b82f6;--color-button: #225ed0;--color-button-hover: #2e6be0;--color-on-accent: #f7faff;--color-focus: #a6caff;--color-positive: #54cf83;--color-warning: #f1bb62;--color-error: #ff9191;--color-transparent: transparent;--color-video: #080b0f;--font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;--space-0: 0;--space-2xs: 4px;--space-xs: 8px;--space-sm: 12px;--space-md: 16px;--space-lg: 24px;--space-xl: 32px;--space-2xl: 48px;--radius: 10px}*{box-sizing:border-box}html{overflow-x:clip}body{margin:var(--space-0);overflow-x:clip;background:var(--color-bg);color:var(--color-text);caret-color:var(--color-focus);font:400 16px/1.6 var(--font-body);font-synthesis:none}[hidden]{display:none!important}a{color:inherit}button,input,select,summary,.file-label{font:inherit}button,input,select{min-height:44px}button,.button{display:inline-flex;align-items:center;justify-content:center;padding:var(--space-xs) var(--space-md);border:1px solid var(--color-transparent);border-radius:6px;font-weight:600;line-height:1.4;cursor:pointer;text-decoration:none;transition:background-color .12s,transform 80ms}button:active,.button:active{transform:translateY(1px)}.primary{background:var(--color-button);color:var(--color-on-accent)}.primary:hover{background:var(--color-button-hover)}.quiet{border-color:var(--color-border);background:var(--color-transparent);color:var(--color-text)}.quiet:hover{background:var(--color-surface-alt)}button:disabled,input:disabled,fieldset:disabled{opacity:.5;cursor:not-allowed}button:disabled:active{transform:none}button[aria-busy=true]{cursor:progress}:focus-visible{outline:2px solid var(--color-focus);outline-offset:3px}input:focus-visible,select:focus-visible{outline-offset:-2px}.container{width:min(100% - 64px,1376px);margin-inline:auto}.topbar{display:flex;align-items:center;justify-content:space-between;min-height:80px}.topbar>span,.helper,.file-row,.chart-caption,.rep-heading>span,.section-heading p,footer{color:var(--color-muted);font-size:.875rem}.wordmark{font-weight:700;font-size:1.25rem;text-decoration:none}h1,h2,h3{margin:var(--space-0);min-width:0;overflow-wrap:break-word;text-wrap:balance;font-weight:600;line-height:1.3}h1{font-size:2rem}h2{font-size:1.125rem}p{margin:var(--space-0);text-wrap:pretty}.intro{padding-block:var(--space-lg) var(--space-xl)}.intro p{margin-top:var(--space-xs);color:var(--color-muted)}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:var(--space-xl);align-items:start}.video-section{min-width:0}.dropzone{position:relative;min-height:360px;border:1px dashed var(--color-input-border);border-radius:var(--radius);background:var(--color-surface);display:grid;place-items:center}.dropzone.drag{border-color:var(--color-focus);background:var(--color-surface-alt)}.file-label{display:flex;flex-direction:column;align-items:center;gap:var(--space-sm);padding:var(--space-xl);text-align:center;cursor:pointer}.file-label strong{font-size:1.25rem;font-weight:600}.file-label>span:not(.button){color:var(--color-muted);font-size:.875rem}#file{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.dropzone:focus-within{outline:2px solid var(--color-focus);outline-offset:3px}.player{position:relative;background:var(--color-video);border-radius:var(--radius);overflow:clip}video{display:block;width:100%}#overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.file-row{display:flex;justify-content:space-between;align-items:center;gap:var(--space-md);padding-block:var(--space-xs);min-height:56px}.file-row button{flex-shrink:0;white-space:nowrap}#file-info{overflow-wrap:anywhere}.timeline label{display:flex;justify-content:space-between;color:var(--color-muted);font-size:.875rem}input[type=range]{width:100%;accent-color:var(--color-accent);margin:var(--space-0)}.settings{background:var(--color-surface);border-radius:var(--radius);padding:var(--space-lg)}.settings h2{margin-bottom:var(--space-md)}fieldset{border:0;padding:var(--space-0);margin:var(--space-0);min-width:0}label{display:block;font-size:.875rem}fieldset>label:not(:first-child),.advanced>label:not(:first-child){margin-top:var(--space-md)}label>span{color:var(--color-muted);float:right}input[type=number],select{margin-top:var(--space-2xs);width:100%;padding:var(--space-xs) var(--space-sm);border:1px solid var(--color-input-border);background:var(--color-bg);color:var(--color-text);border-radius:6px}input:hover,select:hover{background-color:var(--color-surface-alt)}input[aria-invalid=true]{border-color:var(--color-error)}.select-wrap{position:relative}.select-wrap:after{content:"";position:absolute;right:16px;top:22px;border-right:1.5px solid var(--color-muted);border-bottom:1.5px solid var(--color-muted);width:7px;height:7px;transform:rotate(45deg);pointer-events:none}select{appearance:none;padding-right:var(--space-xl)}.helper{margin-top:var(--space-xs)}details{margin-block:var(--space-md)}summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:var(--color-muted);font-size:.875rem;text-decoration:underline;text-underline-offset:4px}summary:hover{color:var(--color-text)}.advanced{padding-top:var(--space-xs)}.check{display:inline-flex;align-items:center;gap:var(--space-xs);min-height:44px;cursor:pointer;color:var(--color-muted)}input[type=checkbox]{margin:var(--space-0);min-height:auto;width:16px;height:16px;accent-color:var(--color-accent)}#analyze{width:100%}.secondary-actions{display:flex;flex-wrap:wrap;gap:var(--space-xs);margin-top:var(--space-xs)}.secondary-actions button{flex-grow:1;font-size:.875rem}.status-block{margin-top:var(--space-lg)}#status{font-size:.875rem;font-variant-numeric:tabular-nums}progress{width:100%;height:8px;margin-top:var(--space-sm);accent-color:var(--color-accent)}.results{margin-top:var(--space-2xl);padding-top:var(--space-xl);border-top:1px solid var(--color-border)}.section-heading,.rep-heading{display:flex;align-items:center;justify-content:space-between;gap:var(--space-lg)}.section-heading p{margin-top:var(--space-xs)}.exports{display:flex;gap:var(--space-xs);flex-shrink:0}.summary{display:flex;flex-wrap:wrap;gap:var(--space-xl);padding-block:var(--space-lg)}.summary p{flex:1}.summary span{display:block;color:var(--color-muted);font-size:.875rem}.summary strong{display:block;font-size:1.5rem;font-weight:600;font-variant-numeric:tabular-nums}.notice{padding:var(--space-md);margin-block:var(--space-md);border:1px solid var(--color-warning);color:var(--color-warning);border-radius:6px;font-size:.875rem}.notice.error{border-color:var(--color-error);color:var(--color-error)}.chart-wrap{min-height:280px;margin-top:var(--space-md);background:var(--color-surface);border-radius:var(--radius)}.chart-empty{min-height:280px;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:var(--space-lg);text-align:center;gap:var(--space-xs)}.chart-empty span{color:var(--color-muted);font-size:.875rem}.chart{display:block;width:100%;touch-action:pan-y}.chart text{fill:var(--color-muted);font-family:var(--font-body);font-size:14px}.chart .grid{stroke:var(--color-border);stroke-width:1}.chart .zero{stroke:var(--color-input-border);stroke-dasharray:4 4}.chart .curve{stroke:var(--color-accent);stroke-width:2;fill:none;stroke-linejoin:round}.chart .rep-band{fill:var(--color-positive);opacity:.13}.chart .cursor{stroke:var(--color-text);stroke-width:1;stroke-dasharray:3 3}.height-chart{background:var(--color-surface);border-radius:var(--radius);margin-top:var(--space-sm)}.height-chart .curve{stroke:var(--color-positive)}.chart-caption{display:flex;justify-content:space-between;align-items:center;gap:var(--space-md);font-variant-numeric:tabular-nums}.rep-heading{margin-top:var(--space-xl);margin-bottom:var(--space-md)}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:.875rem;font-variant-numeric:tabular-nums}th,td{text-align:right;padding:var(--space-sm) var(--space-md);border-bottom:1px solid var(--color-border);white-space:nowrap}th{color:var(--color-muted);font-weight:400}th:first-child,td:first-child{text-align:left}th small{font-size:inherit}tr[data-start]{cursor:pointer}tr[data-start]:hover{background:var(--color-surface)}.empty-cell{padding-block:var(--space-xl);color:var(--color-muted);text-align:left;white-space:normal}.result-note{max-width:75ch;margin-top:var(--space-md)}footer{display:flex;justify-content:space-between;gap:var(--space-xl);padding-block:var(--space-2xl);margin-top:var(--space-xl)}footer p{max-width:65ch}@media(max-width:900px){.workspace{grid-template-columns:minmax(0,1fr)}.settings{padding:var(--space-lg)}}@media(max-width:600px){.container{width:calc(100% - 32px)}.topbar{min-height:64px}.topbar>span{font-size:.75rem}h1{font-size:1.5rem}.dropzone{min-height:260px}.section-heading,.rep-heading,footer{align-items:flex-start;flex-direction:column;gap:var(--space-sm)}.exports{width:100%}.exports button{flex:1}.summary{gap:var(--space-md)}.summary p{flex-basis:40%}.chart-wrap,.chart-empty{min-height:200px}th,td{padding-inline:var(--space-xs)}.chart{min-height:200px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}::selection{background:var(--color-button);color:var(--color-on-accent)}html{scrollbar-color:var(--color-input-border) var(--color-bg)}
