:root {
  color-scheme: light;
  --page: #f6f5f1;
  --surface: #fffefa;
  --white: #fff;
  --ink: #24283f;
  --muted: #746c7d;
  --secondary: #68697b;
  --line: #e6e4dd;
  --purple: #7160d3;
  --purple-dark: #5e4fc1;
  --purple-soft: #eeebfa;
  --coral: #d9947e;
  --coral-soft: #f8ebe5;
  --green: #648577;
  --radius: 18px;
  --shadow: 0 5px 20px rgb(34 33 57 / 3%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
body { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
button, select, a { -webkit-tap-highlight-color: transparent; }
button, select { color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
button, a, select, input, [tabindex] { outline-offset: 5px; }
:focus-visible { outline: 3px solid #aca1ec; }
button { -webkit-appearance: none; }
h1, h2, h3, p { margin: 0; }
svg { display: block; }
[hidden] { display: none !important; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.page-width { width: min(1240px, calc(100% - 80px)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 99px; border-bottom: 1px solid var(--line); gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 14px; background: var(--ink); color: #fffefa; }
.brand-mark svg { width: 35px; height: 35px; }
.brand-name { display: flex; flex-direction: column; gap: 4px; font-size: 22px; font-weight: 680; letter-spacing: 1px; line-height: 1; }
.brand-subtitle { color: var(--muted); font-size: 8px; font-weight: 550; letter-spacing: 1.35px; }
.beta-badge { align-self: flex-start; margin-top: 4px; margin-left: 3px; padding: 3px 5px; border: 1px solid #dedbe8; border-radius: 4px; color: #8c84a6; font-size: 8px; font-weight: 650; letter-spacing: .8px; }
.header-links { display: flex; align-items: center; gap: 27px; }
.privacy-badge { display: flex; align-items: center; gap: 7px; color: var(--secondary); font-size: 12px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px #e9eeea; }
.help-link { display: flex; align-items: center; gap: 8px; color: #656577; font-size: 12px; transition: color .2s; }
.help-link:hover { color: var(--purple); }
.help-link .icon { width: 16px; height: 16px; transform: rotate(-35deg); }

.workspace { padding-top: 35px; }
.workspace-heading { display: flex; justify-content: space-between; align-items: center; gap: 28px; margin-bottom: 25px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; color: var(--secondary); font-size: 11px; font-weight: 550; letter-spacing: 1.25px; }
.eyebrow-line { width: 18px; height: 2px; background: var(--purple); border-radius: 1px; }
h1 { font-size: clamp(24px, 2.35vw, 33px); font-weight: 630; letter-spacing: -.75px; line-height: 1.45; }
.heading-dot { color: var(--purple); }
.workspace-intro { margin-top: 9px; color: var(--secondary); font-size: 13px; line-height: 1.75; }
.workspace-tag { display: flex; align-items: center; gap: 12px; flex-shrink: 0; padding-left: 24px; border-left: 1px solid var(--line); color: #9c96b1; }
.workspace-tag > .icon { width: 30px; height: 30px; stroke-width: 1.3; }
.workspace-tag span { color: var(--muted); font-size: 10px; line-height: 1.9; }
.workspace-tag strong { font-weight: 500; color: var(--secondary); }

.video-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.video-card { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.video-card-heading { display: flex; align-items: center; gap: 12px; min-height: 79px; padding: 17px 22px; }
.step-number { display: grid; place-items: center; width: 35px; height: 35px; flex-shrink: 0; border-radius: 11px; font-size: 12px; font-weight: 650; letter-spacing: .5px; }
.reference-tone { background: var(--purple-soft); color: var(--purple); }
.attempt-tone { background: var(--coral-soft); color: #c68f7b; }
.video-title-group { flex: 1; min-width: 0; }
.video-title-group h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 15px; font-weight: 650; line-height: 1.3; }
.role-label { color: #9a98a3; font-size: 10px; font-weight: 400; }
.video-meta { overflow: hidden; margin-top: 6px; color: var(--muted); font-size: 11px; white-space: nowrap; text-overflow: ellipsis; line-height: 1.4; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); flex-shrink: 0; }
.icon-button:hover { background: #f0eee9; color: var(--ink); }
.clear-button .icon { width: 17px; height: 17px; }
.video-stage { position: relative; aspect-ratio: 16 / 9; margin-inline: 12px; overflow: hidden; border: 1px solid #e8e5e2; border-radius: 10px; background: #eeece8; isolation: isolate; }
.drop-area { cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.drop-area:hover { border-color: #b6aed7; }
.drop-area.dragover, .drop-area.drag-over, .drop-area[data-dragging="true"] { border-color: var(--purple); box-shadow: inset 0 0 0 2px var(--purple); }
.drop-area:focus-visible { outline-offset: 3px; }
.media-video { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; background: #1e2030; cursor: default; }
.pose-overlay { position: absolute; inset: 0; z-index: 2; display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.video-empty { position: absolute; z-index: 3; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 25px; text-align: center; background-color: #f6f5f1; background-image: linear-gradient(#e7e5dd50 1px, transparent 1px), linear-gradient(90deg, #e7e5dd50 1px, transparent 1px); background-size: 28px 28px; }
.video-empty::before { position: absolute; content: ""; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, #f6f5f1 5%, #f6f5f1e6 40%, #f6f5f133 100%); }
.upload-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 18px; border: 1px solid #dfdaf2; border-radius: 17px; box-shadow: 0 3px 0 #ffffffc9; transition: transform .2s; }
.upload-icon.attempt-tone { border-color: #edddd3; }
.upload-icon .icon { width: 24px; height: 24px; }
.drop-area:hover .upload-icon { transform: translateY(-2px); }
.video-empty h3 { margin-bottom: 8px; font-size: 15px; font-weight: 580; letter-spacing: .25px; }
.video-empty p { color: #8b8792; font-size: 12px; }
.upload-text { margin-left: 3px; color: var(--purple); }
.empty-hint { margin-top: 23px; color: #a4a0a9; font-size: 10px; letter-spacing: .3px; }
.empty-corner { position: absolute; width: 14px; height: 14px; border-color: #d3cfdc; border-style: solid; }
.corner-top-left { top: 16px; left: 16px; border-width: 1px 0 0 1px; }
.corner-top-right { top: 16px; right: 16px; border-width: 1px 1px 0 0; }
.corner-bottom-left { bottom: 16px; left: 16px; border-width: 0 0 1px 1px; }
.corner-bottom-right { bottom: 16px; right: 16px; border-width: 0 1px 1px 0; }
.video-card-footer { display: flex; align-items: center; justify-content: space-between; min-height: 41px; gap: 16px; padding: 12px 22px; color: #898591; font-size: 10px; }
.video-card-footer > span:first-child { display: flex; align-items: center; gap: 6px; }
.legend-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.reference-dot { background: var(--purple); }
.attempt-dot { background: var(--coral); }
.stage-footnote { color: #aaa5ad; }

.workspace-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 17px; padding: 16px 0 0; }
.comparison-settings { display: flex; align-items: center; gap: 18px; }
.toggle-setting { display: flex; align-items: center; gap: 8px; position: relative; color: #686677; font-size: 11px; cursor: pointer; white-space: nowrap; }
.toggle-setting input { position: absolute; opacity: 0; width: 32px; height: 20px; margin: 0; }
.toggle-track { position: relative; width: 31px; height: 18px; border: 1px solid #d7d3d0; border-radius: 12px; background: #dedbd7; transition: background .2s, border-color .2s; }
.toggle-track::after { content: ""; position: absolute; width: 12px; height: 12px; top: 2px; left: 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0000001a; transition: transform .2s; }
.toggle-setting input:checked + .toggle-track { background: var(--purple); border-color: var(--purple); }
.toggle-setting input:checked + .toggle-track::after { transform: translateX(13px); }
.toggle-setting input:focus-visible + .toggle-track { outline: 3px solid #aca1ec; outline-offset: 3px; }
.toggle-setting input:disabled ~ span { opacity: .5; cursor: not-allowed; }
.setting-divider { height: 16px; width: 1px; background: #dfdcd8; }
.select-setting { display: flex; align-items: center; gap: 8px; color: #686677; font-size: 11px; white-space: nowrap; }
.select-wrap { position: relative; display: inline-flex; }
.select-wrap select { appearance: none; -webkit-appearance: none; width: 74px; height: 32px; padding: 0 26px 0 11px; border: 1px solid #e0ddd8; border-radius: 7px; background: #fffefa; font-size: 11px; cursor: pointer; }
.select-wrap .icon { position: absolute; top: 8px; right: 7px; width: 16px; height: 16px; color: #8a8593; pointer-events: none; }
.workspace-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px; padding: 11px 17px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; font-weight: 560; line-height: 1.4; white-space: nowrap; transition: background .18s, color .18s, border-color .18s, box-shadow .18s, transform .18s; }
.button .icon { width: 17px; height: 17px; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:active:not(:disabled) { transform: translateY(0); }
.button-primary { background: var(--purple); color: white; border-color: var(--purple); box-shadow: 0 2px 3px #7160d318; }
.button-primary:hover:not(:disabled) { background: var(--purple-dark); border-color: var(--purple-dark); box-shadow: 0 4px 10px #7160d326; }
.button-primary:disabled { color: #aaa5bf; background: #e9e6ef; border-color: #e9e6ef; box-shadow: none; }
.button-primary .action-arrow { margin-left: 8px; }
.button-secondary { background: var(--surface); color: #656173; border-color: #dfdce4; }
.button-secondary:hover:not(:disabled) { background: #f5f2fb; border-color: #c8c1e2; color: var(--purple); }
.button-secondary:disabled { opacity: .5; }
.button-quiet { background: transparent; color: #777180; }
.button-quiet:hover:not(:disabled) { background: #eeebf3; color: var(--purple); }
.button-small { min-height: 35px; padding: 8px 12px; font-size: 11px; }

.status-box { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding: 15px 18px; border: 1px solid #e7e3ef; border-radius: 10px; background: #f0edf7a6; }
.status-icon { padding-top: 1px; color: #8e82b7; }
.status-icon .icon { width: 16px; height: 16px; }
.status-content { flex: 1; min-width: 0; }
.status-title { font-size: 11px; font-weight: 550; line-height: 1.6; color: #716783; }
.status-detail { margin-top: 3px; font-size: 10px; line-height: 1.65; color: #9790a4; overflow-wrap: anywhere; }
.local-processing-note { display: flex; align-items: center; gap: 5px; align-self: center; margin-left: 12px; color: #9b94a6; font-size: 10px; white-space: nowrap; }
.local-processing-note .icon { width: 13px; height: 13px; }
.status-box[data-state="error"], .status-box.error { background: #fbede8; border-color: #f0d8cf; }
.status-box[data-state="error"] .status-title, .status-box.error .status-title { color: #a7614f; }
.status-box[data-state="success"], .status-box.success { background: #edf3ee; border-color: #dae5dd; }
.status-box[data-state="success"] .status-title, .status-box.success .status-title { color: #5d7c69; }
progress { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 5px; margin-top: 12px; overflow: hidden; border: 0; border-radius: 8px; background: #ded8ee; accent-color: var(--purple); }
progress::-webkit-progress-bar { background: #ded8ee; border-radius: 8px; }
progress::-webkit-progress-value { background: var(--purple); border-radius: 8px; transition: width .2s; }
progress::-moz-progress-bar { background: var(--purple); border-radius: 8px; }

.results-section { margin-top: 52px; animation: arrive .35s ease-out; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.section-heading h2 { font-size: 23px; font-weight: 620; letter-spacing: -.4px; line-height: 1.5; }
.results-heading { margin-bottom: 23px; }
.results-summary { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 15px; }
.summary-main { display: flex; align-items: center; gap: 24px; min-height: 163px; padding: 25px 27px; border: 1px solid #e0d9f0; border-radius: 15px; background: linear-gradient(120deg, #eee8fa, #f6f2fb); }
.metric-label { color: var(--secondary); font-size: 11px; line-height: 1.6; }
.summary-score { margin-top: 7px; color: #6652bb; font-size: 55px; font-weight: 560; letter-spacing: -2.7px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.summary-context { min-width: 0; padding-left: 24px; border-left: 1px solid #dcd3ed; }
.summary-decoration { display: flex; margin-bottom: 11px; color: #b4a5d3; }
.summary-decoration .icon { width: 24px; height: 24px; stroke-width: 1.3; }
.summary-context p { color: #6f5e91; font-size: 12px; font-weight: 550; line-height: 1.6; }
.summary-context > span:last-child { display: block; max-width: 160px; margin-top: 6px; color: #a093b4; font-size: 10px; line-height: 1.7; }
.summary-metric { position: relative; display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 25px 24px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.metric-icon { position: absolute; top: 23px; right: 23px; color: #b7b0bf; }
.metric-icon .icon { width: 20px; height: 20px; stroke-width: 1.4; }
.metric-value { margin-top: 13px; font-size: 30px; font-weight: 550; letter-spacing: -1px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.metric-hint { margin-top: 10px; color: #9c96a2; font-size: 10px; line-height: 1.6; }
.result-subheading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 28px 0 14px; }
.result-subheading h3 { font-size: 14px; font-weight: 600; }
.result-subheading > span { color: #9b95a1; font-size: 10px; }
.group-results { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.group-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.group-card h3, .group-card h4, .group-title, .group-name { margin: 0; color: #5d586b; font-size: 12px; font-weight: 550; }
.group-card p, .group-detail, .group-meta { color: #9a929f; font-size: 10px; line-height: 1.7; margin-top: 8px; }
.group-head, .group-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.group-score, .group-value { display: inline-block; color: var(--ink); font-size: 25px; font-weight: 550; font-variant-numeric: tabular-nums; }
.group-card strong { font-weight: 600; }
.group-bar, .group-meter, .group-card .bar { height: 4px; margin-top: 16px; overflow: hidden; border-radius: 4px; background: #eeeaf2; }
.group-bar > span, .group-meter > span, .group-fill, .group-card .bar > span { display: block; height: 100%; border-radius: inherit; background: #9d8cce; }
.group-card .badge, .group-label { display: inline-flex; padding: 4px 7px; margin-top: 8px; border-radius: 5px; color: #84738e; background: #f2edf5; font-size: 10px; }
.group-card.warning, .group-card[data-level="high"] { border-color: #eddbd1; background: #fffaf6; }
.group-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 31px; }
.group-card-head .group-label { display: block; min-width: 0; padding: 0; margin: 0; border-radius: 0; background: none; color: #5d586b; font-size: 12px; font-weight: 550; line-height: 1.6; overflow-wrap: anywhere; }
.group-card-head .group-score { flex-shrink: 0; line-height: 1.2; }
.group-track { height: 5px; margin-top: 17px; overflow: hidden; border-radius: 5px; background: #eeeaf2; }
.group-track .group-fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #b5a7dc, #8b77bf); transition: width .25s ease; }
.group-card .group-meta { display: block; margin-top: 11px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.result-detail-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 17px; margin-top: 23px; }
.result-panel { min-width: 0; padding: 23px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel-heading h3 { font-size: 14px; font-weight: 600; }
.panel-heading p { margin-top: 6px; color: #9c95a2; font-size: 10px; line-height: 1.7; }
.chart-legend { display: inline-flex; align-items: center; gap: 5px; color: #a095ad; font-size: 10px; white-space: nowrap; }
.timeline-stage { position: relative; margin-top: 23px; min-height: 178px; }
#timeline { display: block; width: 100%; height: 190px; object-fit: contain; }
.timeline-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 25px; color: #a39aa9; font-size: 12px; text-align: center; }
.playback-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 15px; margin-top: 5px; border-top: 1px solid #eeeae7; }
.playback-hint { margin-left: auto; color: #aaa2ae; font-size: 9px; }
.panel-accent { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px var(--coral-soft); margin-right: 5px; }
.issues-list { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.issue-card { display: block; width: 100%; min-width: 0; padding: 14px; border: 1px solid #ece5e1; border-radius: 9px; background: #fcfaf7; text-align: left; }
.issue-card:hover { border-color: #d9cce2; }
.issue-card h3, .issue-card h4, .issue-title { margin: 0; color: #62596c; font-size: 12px; font-weight: 550; line-height: 1.6; }
.issue-card p, .issue-detail, .issue-description { margin-top: 5px; color: #9a8d9d; font-size: 10px; line-height: 1.7; }
.issue-btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; border: 0; padding: 0; background: none; color: inherit; text-align: left; }
.issue-card > .issue-btn { padding: 0; }
.issue-btn:hover { color: var(--purple); }
.issue-time, .time-badge { display: inline-flex; align-items: center; padding: 4px 7px; margin-bottom: 5px; border-radius: 5px; background: #f3e9e2; color: #b18470; font-size: 10px; font-weight: 550; font-variant-numeric: tabular-nums; }
.issue-copy { flex: 1; min-width: 0; }
.issue-metric, .issue-badge { color: #b17b66; font-size: 11px; }
.issue-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.issue-number { display: grid; place-items: center; width: 23px; height: 23px; flex-shrink: 0; border: 1px solid #e4dced; border-radius: 7px; background: #f0eaf6; color: #857397; font-size: 10px; font-weight: 650; font-variant-numeric: tabular-nums; }
.issue-heading .issue-time { margin: 0; padding-block: 4px; }
.issue-card .issue-suggestion { padding: 9px 11px; margin-top: 11px; border-left: 2px solid #d5aa96; border-radius: 0 5px 5px 0; background: #f5eee7; color: #7a665e; font-size: 11px; line-height: 1.8; }
.issue-card .issue-btn { width: auto; min-height: 29px; margin-top: 10px; padding: 4px 0; color: var(--purple-dark); font-size: 11px; font-weight: 550; }
.issue-card .issue-btn:hover { text-decoration: underline; text-underline-offset: 4px; }
.empty-issues { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 187px; padding: 28px 22px; border: 1px dashed #ded6e6; border-radius: 10px; background: #f6f2f8; text-align: center; }
.empty-issues strong { color: #786583; font-size: 12px; font-weight: 560; line-height: 1.8; }
.empty-issues p { max-width: 280px; margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.9; }
.empty-result, .issues-empty { padding: 30px 15px; color: #a398aa; font-size: 12px; line-height: 1.8; text-align: center; }
.result-notes { margin-top: 16px; }
.note { padding: 10px 14px; margin-top: 8px; border-radius: 8px; background: #edebe6; color: #8f8795; font-size: 11px; line-height: 1.8; }
.note strong { color: #787080; font-weight: 550; }

.help-section { margin-top: 45px; padding-top: 29px; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.help-heading { margin-bottom: 23px; }
.help-heading h2 { font-size: 16px; font-weight: 570; letter-spacing: -.2px; }
.help-heading > span { color: #a09aa4; font-size: 10px; }
.help-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 27px; }
.help-card { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.help-icon { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #e5e1da; border-radius: 10px; background: #f0eee8; color: #96909c; flex-shrink: 0; }
.help-icon .icon { width: 18px; height: 18px; stroke-width: 1.5; }
.help-card h3 { padding-top: 1px; color: #76707e; font-size: 11px; font-weight: 550; line-height: 1.6; }
.help-card p { max-width: 215px; margin-top: 5px; color: #aaa1ad; font-size: 10px; line-height: 1.9; }
.analysis-details { margin-top: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.analysis-details summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 0; list-style: none; color: #8d8497; font-size: 11px; cursor: pointer; }
.analysis-details summary::-webkit-details-marker { display: none; }
.analysis-details summary > span { display: flex; align-items: center; gap: 8px; }
.analysis-details summary .icon { width: 14px; height: 14px; }
.disclosure-chevron { transition: transform .2s; }
.analysis-details[open] .disclosure-chevron { transform: rotate(180deg); }
.analysis-explanation { max-width: 870px; padding: 0 22px 20px; color: #998f9e; font-size: 11px; line-height: 1.9; }
.analysis-explanation p + p { margin-top: 8px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding-block: 25px 28px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #88808e; font-size: 12px; font-weight: 600; white-space: nowrap; }
.footer-brand > span { color: #afa6b2; font-size: 10px; font-weight: 400; }
.site-footer > p { color: #b0a7b3; font-size: 9px; line-height: 1.8; text-align: right; }
.toast { position: fixed; z-index: 100; bottom: 28px; left: 50%; transform: translateX(-50%); max-width: min(90vw, 480px); padding: 13px 20px; border: 1px solid #ffffff26; border-radius: 11px; background: #2b283eef; color: white; box-shadow: 0 8px 24px #27213320; font-size: 12px; line-height: 1.6; text-align: center; backdrop-filter: blur(10px); }
.toast.show, .toast.visible { display: block; }

/* Keep supporting copy readable against the warm page and card surfaces. */
.role-label, .video-empty p, .empty-hint, .video-card-footer, .stage-footnote,
.status-detail, .local-processing-note, .summary-context > span:last-child,
.metric-hint, .result-subheading > span, .group-card p, .group-detail, .group-meta,
.panel-heading p, .chart-legend, .timeline-empty, .playback-hint,
.issue-card p, .issue-detail, .issue-description, .empty-result, .issues-empty,
.help-heading > span, .help-card h3, .help-card p, .analysis-details summary,
.analysis-explanation, .footer-brand, .footer-brand > span, .site-footer > p {
  color: var(--muted);
}
.status-detail { color: #706679; }
.note { color: #706679; }
.help-card p, .metric-hint, .panel-heading p, .status-detail { font-size: 11px; }
.status-title { font-size: 12px; }

@keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1500px) { .page-width { max-width: 1300px; } }
@media (max-width: 1100px) {
  .page-width { width: calc(100% - 56px); }
  .workspace-tag { display: none; }
  .workspace-toolbar { gap: 14px; }
  .comparison-settings { gap: 12px; }
  .workspace-actions { gap: 8px; }
  .button { padding-inline: 13px; }
  .button-primary .action-arrow { margin-left: 3px; }
  .summary-main { padding-inline: 21px; gap: 17px; }
  .summary-context { padding-left: 17px; }
  .summary-score { font-size: 48px; }
  .summary-metric { padding: 23px 19px; }
  .help-grid { gap: 18px; }
  .help-card { gap: 9px; }
  .playback-hint { display: none; }
}
@media (max-width: 900px) {
  .site-header { min-height: 87px; }
  .workspace { padding-top: 28px; }
  .workspace-toolbar { flex-wrap: wrap; gap: 17px; }
  .comparison-settings { flex: 1; }
  .workspace-actions { margin-left: auto; }
  .workspace-actions .button { font-size: 11px; }
  .button-primary .action-arrow { display: none; }
  .video-grid { gap: 14px; }
  .video-card-heading { padding: 16px; gap: 10px; }
  .role-label { display: none; }
  .video-stage { margin-inline: 9px; }
  .video-empty { padding: 18px; }
  .upload-icon { width: 44px; height: 44px; margin-bottom: 12px; border-radius: 13px; }
  .upload-icon .icon { width: 21px; height: 21px; }
  .video-empty h3 { font-size: 13px; }
  .video-empty p { font-size: 11px; }
  .empty-hint { margin-top: 15px; font-size: 9px; }
  .video-card-footer { padding-inline: 16px; }
  .local-processing-note { display: none; }
  .results-summary { grid-template-columns: 1.5fr 1fr 1fr; gap: 10px; }
  .summary-main { align-items: flex-start; flex-direction: column; gap: 12px; padding: 21px; }
  .summary-context { padding-left: 0; border: 0; }
  .summary-context p { font-size: 11px; }
  .summary-context > span:last-child { font-size: 9px; }
  .summary-decoration { display: none; }
  .metric-icon { position: static; display: block; margin-bottom: 10px; }
  .metric-value { font-size: 27px; }
  .group-results { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .result-detail-grid { grid-template-columns: minmax(0, 1fr); }
  .issues-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px 32px; }
  .help-card p { max-width: none; }
  .site-footer { align-items: flex-start; }
  .site-footer > p { max-width: 350px; }
}
@media (max-width: 640px) {
  .page-width { width: calc(100% - 32px); }
  .site-header { min-height: 78px; gap: 12px; }
  .brand { gap: 8px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 12px; }
  .brand-mark svg { width: 30px; height: 30px; }
  .brand-name { font-size: 20px; }
  .brand-subtitle { font-size: 7px; letter-spacing: 1px; }
  .beta-badge { margin-left: 0; margin-top: 1px; font-size: 7px; }
  .header-links { gap: 10px; }
  .privacy-badge { display: none; }
  .help-link { font-size: 10px; gap: 3px; }
  .help-link .icon { width: 14px; height: 14px; }
  .workspace { padding-top: 27px; }
  .workspace-heading { margin-bottom: 21px; }
  .eyebrow { font-size: 10px; margin-bottom: 10px; }
  h1 { max-width: 330px; font-size: 26px; letter-spacing: -.6px; line-height: 1.5; }
  .workspace-intro { max-width: 360px; margin-top: 10px; font-size: 11px; line-height: 1.9; }
  .video-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .video-card { border-radius: 15px; }
  .video-card-heading { min-height: 72px; padding: 15px 17px; }
  .step-number { width: 32px; height: 32px; border-radius: 10px; font-size: 11px; }
  .video-title-group h2 { font-size: 14px; }
  .video-meta { font-size: 10px; }
  .role-label { display: inline; font-size: 9px; }
  .video-stage { margin-inline: 10px; aspect-ratio: 16 / 9; }
  .upload-icon { width: 46px; height: 46px; margin-bottom: 13px; }
  .video-empty h3 { font-size: 14px; }
  .empty-hint { margin-top: 17px; }
  .video-card-footer { min-height: 37px; padding-block: 11px; }
  .workspace-toolbar { margin-top: 9px; padding-top: 14px; gap: 18px; }
  .comparison-settings { width: 100%; justify-content: space-between; gap: 12px; padding-inline: 2px; }
  .setting-divider { margin-left: auto; margin-right: 6px; }
  .select-setting, .toggle-setting { font-size: 11px; }
  .workspace-actions { display: grid; grid-template-columns: 1fr 1.15fr; width: 100%; gap: 10px; margin-left: 0; }
  .workspace-actions .button { min-height: 45px; font-size: 12px; padding-inline: 10px; }
  #cancel-btn { grid-column: 1 / -1; min-height: 32px; }
  .status-box { margin-top: 15px; padding: 13px; border-radius: 9px; }
  .status-title { font-size: 11px; }
  .status-detail { font-size: 10px; }
  .results-section { margin-top: 35px; }
  .results-heading { align-items: flex-start; flex-direction: column; gap: 15px; margin-bottom: 18px; }
  .section-heading h2 { font-size: 21px; }
  .results-heading .button { min-height: 34px; padding: 8px 11px; font-size: 10px; }
  .results-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .summary-main { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 137px; padding: 24px; gap: 25px; }
  .summary-score { margin-top: 7px; font-size: 52px; }
  .summary-context { border-left: 1px solid #dcd3ed; padding-left: 25px; }
  .summary-context p { font-size: 12px; }
  .summary-context > span:last-child { max-width: 130px; font-size: 10px; }
  .summary-metric { min-height: 142px; padding: 20px; }
  .metric-icon { position: absolute; top: 18px; right: 18px; }
  .metric-icon .icon { width: 17px; height: 17px; }
  .metric-label { font-size: 10px; }
  .metric-value { margin-top: 12px; font-size: 28px; }
  .metric-hint { font-size: 9px; margin-top: 8px; }
  .result-subheading { margin-top: 24px; }
  .result-subheading > span { font-size: 9px; }
  .group-results { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .group-results > .group-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .group-card { padding: 16px; }
  .group-card-head { gap: 8px; min-height: 38px; }
  .group-card-head .group-label { font-size: 11px; }
  .group-card-head .group-score { font-size: 22px; }
  .group-card .group-meta { font-size: 10px; }
  .group-track { margin-top: 13px; }
  .group-score, .group-value { font-size: 23px; }
  .result-detail-grid { margin-top: 17px; gap: 15px; }
  .result-panel { padding: 19px 16px; border-radius: 13px; }
  .panel-heading h3 { font-size: 13px; }
  .panel-heading p { font-size: 9px; }
  .chart-legend { font-size: 9px; }
  #timeline { height: 177px; }
  .timeline-stage { min-height: 177px; margin-top: 18px; }
  .issues-list { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .empty-issues { min-height: 160px; padding: 24px 20px; }
  .result-notes { margin-top: 12px; }
  .note { font-size: 10px; }
  .help-section { margin-top: 31px; padding-top: 25px; }
  .help-heading { align-items: flex-start; flex-direction: column; gap: 6px; margin-bottom: 21px; }
  .help-heading h2 { font-size: 15px; }
  .help-heading > span { font-size: 9px; }
  .help-grid { gap: 22px 17px; }
  .help-card { gap: 9px; flex-direction: column; }
  .help-icon { width: 31px; height: 31px; border-radius: 9px; }
  .help-card h3 { font-size: 11px; }
  .help-card p { font-size: 10px; line-height: 1.8; }
  .analysis-details { margin-top: 24px; }
  .analysis-details summary { padding-block: 16px; }
  .analysis-explanation { padding-inline: 0; font-size: 10px; line-height: 1.9; }
  .site-footer { flex-direction: column; gap: 12px; padding-top: 21px; padding-bottom: 25px; }
  .footer-brand { font-size: 11px; }
  .footer-brand > span { font-size: 9px; }
  .site-footer > p { max-width: 100%; text-align: left; font-size: 9px; line-height: 1.9; }
}
@media (max-width: 360px) {
  .page-width { width: calc(100% - 26px); }
  h1 { font-size: 24px; }
  .brand-subtitle { display: none; }
  .beta-badge { align-self: center; }
  .header-links .help-link { font-size: 9px; }
  .role-label { display: none; }
  .summary-main { padding: 20px; gap: 18px; }
  .summary-context { padding-left: 18px; }
  .summary-score { font-size: 48px; }
}
@media (pointer: coarse) {
  .button, .results-heading .button, .issue-btn, .toggle-setting, .select-setting select, #cancel-btn, .help-link { min-height: 44px; }
  .icon-button { min-width: 44px; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

.review-section { margin-top: 32px; }
.review-section h2 { font-size: 20px; }
.review-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.review-toolbar label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.review-toolbar select, .review-field select { max-width: 100%; min-height: 44px; padding: 9px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.review-help, .review-meta { margin-top: 12px; font-size: 12px; line-height: 1.8; color: var(--secondary); overflow-wrap: anywhere; }
.review-card { margin-top: 22px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; break-inside: avoid; }
.review-card h3 { font-size: 15px; line-height: 1.7; }
.review-scroll { max-width: 100%; overflow-x: auto; margin-top: 16px; padding-bottom: 10px; }
.review-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.review-pair { min-width: 0; }
.review-offset { display: block; min-height: 24px; font-size: 12px; text-align: center; }
.review-frame { margin: 7px 0; }
.review-frame img { display: block; width: 100%; height: 190px; object-fit: contain; background: #eeece8; border-radius: 6px; }
.review-frame figcaption { margin-top: 5px; font-size: 11px; line-height: 1.7; text-align: center; overflow-wrap: anywhere; }
.review-field { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 14px; font-size: 12px; }
.review-field textarea { width: 100%; max-width: 100%; min-height: 85px; padding: 10px; resize: vertical; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font: inherit; line-height: 1.8; }
.review-print-value, .review-print-title { display: none; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .review-toolbar { align-items: stretch; flex-direction: column; }
  .review-toolbar label { align-items: stretch; flex-direction: column; }
  .review-strip { min-width: 640px; }
  .review-frame img { height: 165px; }
  .review-card { padding: 12px; }
  .review-toolbar .button { min-height: 44px; white-space: normal; }
}
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body.printing-review { padding: 0; background: white; color: black; }
  body.printing-review > header, body.printing-review > footer, body.printing-review > .toast,
  body.printing-review .workspace, body.printing-review #results, body.printing-review #help-section,
  body.printing-review .review-toolbar, body.printing-review .review-section > .panel-heading,
  body.printing-review .review-section > .review-help, body.printing-review .analysis-details,
  body.printing-review .review-field textarea, body.printing-review .review-field select { display: none !important; }
  body.printing-review main.page-width { width: 100%; max-width: none; }
  body.printing-review .review-section { margin: 0; border: 0; padding: 0; }
  body.printing-review .review-print-value, body.printing-review .review-print-title { display: block; }
  body.printing-review .review-print-title { font-size: 18px; font-weight: 600; }
  body.printing-review .review-card { padding: 10px; margin-top: 12px; }
  body.printing-review .review-card + .review-card { break-before: page; }
  body.printing-review .review-scroll { overflow: visible; padding: 0; }
  body.printing-review .review-strip { min-width: 0; gap: 8px; }
  body.printing-review .review-frame img { height: 40mm; }
  body.printing-review .review-help, body.printing-review .review-meta, body.printing-review .review-frame figcaption { font-size: 9px; }
  body.printing-review .review-field { margin-top: 8px; gap: 4px; }
}
