:root {
  color-scheme: light;
  --bg: #f2f5f8; --paper: #fff; --ink: #102136; --muted: #526375;
  --line: #d9e2ea; --blue: #174b75; --navy: #0f2132; --accent: #147870;
  font: 16px/1.55 -apple-system,BlinkMacSystemFont,"PingFang SC","Segoe UI",sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); }
.top { background: var(--navy); color: #fff; }
.top-inner, .shell { width: min(1220px, calc(100% - 2rem)); margin: auto; }
.top-inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.top-actions { display: flex; align-items: center; justify-content: flex-end; gap: .55rem; flex-wrap: wrap; }
.header-link { padding: .35rem .65rem; color: #fff; border: 1px solid #486074; border-radius: 7px; text-decoration: none; font-weight: 650; }
.header-link:hover, .header-link:focus-visible { background: #254259; }
.records-page > .muted { margin-top: .5rem; }
.reviewer-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .8rem; margin: 1rem 0; }
.reviewer-summary p { margin-top: .3rem; }
.records-picker { display: flex; align-items: center; gap: .6rem; margin: 1.15rem 0; }
.record-section { margin-top: .8rem; }
.records-table-wrapper { overflow-x: auto; }
.record-section table { width: 100%; border-collapse: collapse; margin-top: .55rem; }
.record-section th, .record-section td { text-align: left; padding: .48rem .58rem; border-bottom: 1px solid var(--line); }
.record-section th { background: #edf4f8; }
.record-answer { white-space: nowrap; font-variant-numeric: tabular-nums; }
.record-answer[data-answer="missing"] { color: var(--muted); }
.record-answer[data-answer="pass"] { color: #136354; }
.record-answer[data-answer="fail"] { color: #a1302b; }
.language-switch { display: flex; border: 1px solid #486074; border-radius: 8px; padding: .17rem; gap: .15rem; }
.language-switch button { background: transparent; color: #e8f0f5; font-size: .87rem; padding: .3rem .48rem; min-height: 30px; }
.language-switch button[aria-pressed=true] { background: #d8ede8; color: #153f40; }
.brand { display: flex; gap: .66rem; align-items: center; font-weight: 750; }
.brand small { padding-left: .45rem; color: #bdcfdb; font-size: .85rem; }
.mark { width: 32px; height: 32px; display: grid; place-items: center; background: #b9ecdf; color: #133c3c; border-radius: 7px; font-weight: 800; }
h1,h2,h3,p { margin: 0; }
h1 { font-size: clamp(1.65rem,3vw,2.3rem); line-height: 1.2; }
h2 { font-size: 1.2rem; line-height: 1.3; }
h3 { font-size: 1rem; }
.shell { padding: 30px 0 48px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 13px; padding: 20px; }
.welcome { max-width: 560px; margin: min(10vh,78px) auto; padding: clamp(22px,5vw,40px); }
.welcome p { margin: .9rem 0 0; }
.welcome form { display: grid; gap: .6rem; margin: 1.5rem 0; }
input, select, button { font: inherit; }
input, select { padding: .4rem .65rem; border: 1px solid #a9b8c7; border-radius: 6px; background: #fff; color: var(--ink); min-height: 40px; }
input:focus-visible, select:focus-visible, button:focus-visible { outline: 3px solid #5aa5b5; outline-offset: 2px; }
button { border: 1px solid transparent; cursor: pointer; border-radius: 7px; padding: .45rem .8rem; min-height: 40px; font-weight: 650; }
button:disabled { cursor: default; opacity: .5; }
.primary { background: var(--blue); color: #fff; }
.primary:hover:not(:disabled) { background: #103b60; }
.secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.secondary:hover:not(:disabled) { background: #ecf4f9; }
.muted { color: var(--muted); font-size: .91rem; }
.heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.progress-wrap { display: grid; gap: .3rem; width: min(100%,235px); font-variant-numeric: tabular-nums; }
progress { width: 100%; height: .7rem; accent-color: var(--accent); }
nav { display: flex; gap: .55rem; flex-wrap: wrap; margin: 1.1rem 0; }
nav button { background: #fff; border-color: var(--line); }
nav button[aria-current] { background: var(--blue); color: white; }
.scope-nav button[aria-pressed=true] { background: var(--blue); color: #fff; border-color: var(--blue); }
.notice { padding: .65rem .8rem; border: 1px solid #cbdde9; border-radius: 8px; background: #e9f3fb; margin-bottom: .9rem; }
.grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(315px,1fr); align-items: start; gap: 1rem; }
.annotation-grid { margin-top: .85rem; }
.clip-nav { align-items: center; }
.clip-position { padding: 0 .25rem; font-variant-numeric: tabular-nums; }
.clip-picker { display: flex; align-items: center; gap: .45rem; }
.clip-picker select { appearance: none; min-width: 6.4rem; padding-right: 1.65rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23526375' stroke-width='1.5' d='m1 1 5 5 5-5'/%3E%3C/svg%3E") right .55rem center / .65rem no-repeat; }
.unfinished-clips { margin-bottom: .9rem; }
.unfinished-clips ul { display: grid; gap: .4rem; padding-left: 0; list-style: none; }
.unfinished-clips li { display: flex; flex-wrap: wrap; gap: .45rem .7rem; align-items: center; }
.evidence-column { display: grid; gap: .85rem; min-width: 0; }
.player { padding: 0; overflow: hidden; }
.player video, .media-placeholder { width: 100%; aspect-ratio: 16/9; display: block; background: #0e1924; }
.media-placeholder { display: grid; place-items: center; color: #d6e3ea; text-align: center; padding: 1rem; }
.player-bar { padding: .8rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.player p { font-size: .9rem; }
.truth-link { flex: none; padding: .3rem .65rem; border: 1px solid var(--line); border-radius: 7px; color: var(--blue); font-weight: 650; text-decoration: none; }
.truth-link:hover, .truth-link:focus-visible { background: #ecf4f9; text-decoration: underline; }
.prompt-card h3 { margin-top: .9rem; }
.prompt-copy { margin-top: .4rem; overflow-wrap: anywhere; }
.category-tags { display: flex; gap: .38rem; flex-wrap: wrap; padding: 0; list-style: none; }
.category-tags li { font-size: .88rem; border: 1px solid var(--line); border-radius: 6px; padding: .22rem .47rem; background: #eef4f8; }
.coordinator-info { margin-top: .9rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.coordinator-info summary { color: var(--muted); font-size: .9rem; }
.coordinator-info dl { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: .33rem .85rem; margin: .65rem 0 0; }
.coordinator-info dt { font-weight: 650; }
.coordinator-info dd { margin: 0; overflow-wrap: anywhere; }
.actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; padding-top: 14px; }
.answer-card > p, .answer-card > details { margin-top: .6rem; }
summary { cursor: pointer; color: var(--blue); font-weight: 650; }
ul { padding-left: 1.4rem; margin: .5rem 0 0; }
.category, .joint-category { border-top: 1px solid var(--line); padding-top: .7rem; margin-top: .8rem; }
.category-options { display: flex; flex-wrap: wrap; gap: .42rem; margin-top: .4rem; }
.category-options input { width: 5.3rem; }
.category-options button { font-size: .875rem; font-weight: 550; }
.category-options button[aria-pressed=true] { background: #d7efea; border-color: #80afa7; }
.joint-prompt { margin: .7rem 0; padding-left: .7rem; border-left: 3px solid var(--line); }
.joint-panel { max-width: 800px; }
.group-list { padding: 0; list-style: none; }
.group-list li { padding: .35rem .5rem; margin-bottom: .25rem; background: #edf2f6; border-radius: 4px; }
.identity { margin-top: .6rem; padding: .6rem; background: #f1f5f8; border-radius: 7px; }
.identity-header { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.identity-header input { flex: 1 0 12rem; }
.identity select { width: 100%; margin: .3rem 0; }
.identity-bindings { display: grid; gap: .25rem; margin-top: .5rem; }
.identity-bindings label { display: grid; grid-template-columns: minmax(0,1fr) minmax(116px,auto); align-items: center; gap: .5rem; }
.verified-stills { display: grid; grid-template-columns: 2fr 1fr; align-items: start; gap: .4rem; padding: .4rem; background: #0e1924; }
.verified-stills img { width: 100%; }
.panel-note { margin-top: .9rem; padding: .75rem .8rem; border-radius: 7px; background: #edf4f8; }
.round-verdict-summary, .video-verdict-summary { margin-bottom: .9rem; }
.round-verdict-summary { padding: .75rem 1rem; }
.video-verdict-summary { margin-top: .85rem; }
.verdict-summary-table { width: 100%; max-width: 42rem; margin-top: .4rem; table-layout: fixed; border-collapse: collapse; font-size: .875rem; font-variant-numeric: tabular-nums; }
.verdict-summary-table th, .verdict-summary-table td { padding: .3rem .22rem; border-bottom: 1px solid var(--line); text-align: right; }
.verdict-summary-table th { overflow-wrap: anywhere; }
.verdict-summary-table th:first-child { width: 28%; text-align: left; }
.verdict-summary-table thead { color: var(--muted); }
.verdict-summary-table tbody tr:last-child { background: #edf4f8; font-weight: 650; }
#export-verdict-details { margin-top: .75rem; }
.evidence-panel { min-width: 0; }
.video-verdict-details { margin-top: .85rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.video-verdict-details p { margin-top: .35rem; }
.verdict-copy-button { margin-top: .5rem; }
.verdict-copy-fallback { display: block; width: 100%; margin-top: .4rem; font: inherit; }
.verdict-detail-scroll { overflow-x: auto; margin-top: .4rem; }
.verdict-detail-table { width: 100%; border-collapse: collapse; font-size: .875rem; font-variant-numeric: tabular-nums; }
.verdict-detail-table th, .verdict-detail-table td { padding: .4rem; border-bottom: 1px solid var(--line); text-align: left; }
.verdict-detail-table th { background: #edf4f8; white-space: nowrap; }
.question-groups { display: grid; gap: .6rem; margin: .85rem 0; }
.question-group { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
.question-group h3 { flex-basis: 100%; }
.question-chip[aria-pressed=true], .verdict-buttons button[aria-pressed=true] { background: #d7efea; border-color: #80afa7; }
.active-question { padding-top: .85rem; border-top: 1px solid var(--line); }
.requirement { margin: .4rem 0 .75rem; font-weight: 650; }
.active-question .player-bar { flex-wrap: wrap; }
.verdict-buttons { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0 .35rem; }
.status { position: fixed; right: 1rem; bottom: 1rem; padding: .65rem .9rem; border-radius: 8px; background: #102b3b; color: white; z-index: 2; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } .player { position: static; } }
@media (max-width: 480px) { .shell { padding-top: 20px; } .top-inner { flex-wrap: wrap; padding: .65rem 0; } .card { padding: 14px; } .player { padding: 0; } .brand small { display: none; } }
