:root{--bg: #f7f7f5;--surface: #ffffff;--text: #1c1c1a;--muted: #6b6b66;--border: #dcdcd6;--accent: #1f6feb;--accent-text: #ffffff;--warn-bg: #fff4d6;--pass: #1a7f37;--fail: #c62828;color-scheme:light dark}@media(prefers-color-scheme:dark){:root{--bg: #161615;--surface: #20201e;--text: #ecece8;--muted: #a3a39c;--border: #3a3a36;--accent: #4c8dff;--warn-bg: #3d3213;--pass: #4ac26b;--fail: #ff6b6b}}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.45 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;-webkit-text-size-adjust:100%}main{max-width:960px;margin:0 auto;padding:12px 16px calc(24px + env(safe-area-inset-bottom))}header{display:flex;align-items:center;justify-content:space-between;gap:8px}h1{font-size:1.2rem;margin:8px 0}h2{font-size:1.1rem;margin:12px 0 8px}h3{font-size:1rem;margin:0}.status{font-size:.8rem;color:var(--muted)}.status.failed{color:var(--fail)}.statuses{display:flex;flex-direction:column;align-items:flex-end;gap:2px}.notice{background:var(--warn-bg);padding:10px 12px;border-radius:8px;font-size:.9rem}fieldset{border:1px solid var(--border);border-radius:8px;margin:12px 0;padding:8px 12px;background:var(--surface)}legend{font-weight:600;padding:0 4px}label.choice{display:flex;align-items:center;gap:10px;min-height:44px}select,input[type=number]{font:inherit;min-height:40px;padding:4px 8px;border-radius:6px;border:1px solid var(--border);background:var(--surface);color:var(--text)}button{font:inherit;min-height:44px;padding:8px 14px;border-radius:8px;border:1px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer}button:disabled{opacity:.45;cursor:default}button.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}button.danger{color:var(--fail)}button.link{border:0;background:none;color:var(--accent);padding:8px 0}.actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap;margin-top:12px}.actions.sticky{position:sticky;bottom:0;background:var(--bg);padding:8px 0 env(safe-area-inset-bottom)}.hint,.meta{color:var(--muted);font-size:.85rem}.error{color:var(--fail)}.viewfinder{--ratio: .75;position:relative;background:#000;border-radius:8px;overflow:hidden;margin:0 auto;aspect-ratio:var(--ratio);width:min(100%,calc((100dvh - 190px) * var(--ratio)))}.viewfinder video,.viewfinder svg{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover}.viewfinder .mask{fill:#00000073}.viewfinder .guide{fill:none;stroke:#fff;stroke-width:.4%}.viewfinder .hint{position:absolute;inset:auto 0 8px;text-align:center;color:#fff}.processing{text-align:center;padding:48px 0}.spinner{width:40px;height:40px;margin:0 auto 12px;border:4px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.thumbs{display:flex;gap:8px;overflow-x:auto}.thumbs img{max-width:100%;max-height:180px;border-radius:6px;border:1px solid var(--border)}.fields{list-style:none;padding:0;margin:8px 0}.fields li{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:8px 10px;margin-bottom:8px}.fields li.low{background:var(--warn-bg)}.field-head{display:flex;justify-content:space-between;gap:8px;font-size:.8rem;color:var(--muted)}.value{font-size:1.05rem;font-weight:600;margin:2px 0 6px;word-break:break-word}.marks{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}.marks button{padding:6px 0;min-height:44px}.marks button[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.raw{white-space:pre-wrap;word-break:break-word;background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:8px;font-size:.8rem}.group{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:10px 12px;margin-bottom:12px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:.85rem}th,td{text-align:left;padding:4px 6px;border-bottom:1px solid var(--border);white-space:nowrap}td.pass{color:var(--pass);font-weight:600}td.fail{color:var(--fail);font-weight:600}.thresholds{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;padding:8px 0}.thresholds label{display:flex;flex-direction:column;font-size:.8rem;gap:2px}table.passes td,table.passes th[scope=row]{white-space:normal;word-break:break-word;vertical-align:top}table.passes tr.changed td,table.passes tr.gained td,table.passes tr.lost td{background:var(--warn-bg)}table.passes tr.changed td:last-child,table.passes tr.lost td:last-child{color:var(--fail);font-weight:600}table.passes tr.gained td:last-child{color:var(--pass);font-weight:600}.progress{display:flex;flex-direction:column;gap:4px;width:min(100%,420px);margin:8px auto;text-align:left}.progress.compact{width:180px;margin:2px 0 0}.progress .track{position:relative;height:8px;border-radius:4px;background:var(--border);overflow:hidden}.progress.compact .track{height:4px}.progress .fill{height:100%;background:var(--accent);border-radius:inherit;transition:width .2s ease-out}.progress .indeterminate .fill{position:absolute;width:35%;animation:progress-slide 1.2s ease-in-out infinite}.progress-label{font-size:.8rem;color:var(--muted)}.progress.compact .progress-label{font-size:.7rem;text-align:right}@keyframes progress-slide{0%{left:-35%}to{left:100%}}@media(prefers-reduced-motion:reduce){.progress .fill{transition:none}.progress .indeterminate .fill{animation:none;left:0;width:100%;opacity:.4}}
