:root { color-scheme: light; font-family: Inter, ui-sans-serif, system-ui, sans-serif; color: #172033; background: #f5f7fb; }
* { box-sizing: border-box; }
body { margin: 0; }
button, select, input, textarea { font: inherit; }
button, select, input { min-height: 2.6rem; }
button { cursor: pointer; border: 1px solid #aab4c8; border-radius: .5rem; background: white; color: #172033; padding: .55rem .8rem; }
button:hover, button:focus-visible { border-color: #3156c8; box-shadow: 0 0 0 3px #dbe5ff; outline: none; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 9; background: white; padding: .75rem; }
.topbar { display: flex; justify-content: space-between; gap: 2rem; padding: 1.5rem 2rem; background: #14213d; color: white; }
.topbar h1 { margin: .1rem 0 .5rem; }
.topbar p { margin: .3rem 0; max-width: 70rem; }
.eyebrow { color: #a8c3ff; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.top-actions { display: flex; gap: .6rem; align-items: flex-start; flex-wrap: wrap; }
.review-shell { display: grid; grid-template-columns: minmax(18rem, 25rem) minmax(0, 1fr); min-height: calc(100vh - 10rem); }
.sidebar { border-right: 1px solid #dbe1ec; background: white; padding: 1rem; position: sticky; top: 0; height: 100vh; overflow: auto; }
.progress-track { height: .55rem; border-radius: 1rem; background: #e8ecf4; overflow: hidden; }
.progress-fill { height: 100%; background: #3156c8; }
.summary { display: flex; justify-content: space-between; gap: .5rem; margin: .65rem 0 1rem; }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.filters label { display: grid; gap: .2rem; font-size: .8rem; font-weight: 700; }
.filters .wide { grid-column: 1 / -1; }
.case-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.case-list button { width: 100%; text-align: left; border: 0; border-radius: .35rem; padding: .6rem; }
.case-list button[aria-current="true"] { background: #e8efff; box-shadow: inset 3px 0 #3156c8; }
.case-id { display: flex; justify-content: space-between; font-weight: 800; }
.case-sub { display: block; color: #59657b; font-size: .82rem; margin-top: .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-dot { color: #c8cfdb; }
.status-dot.correct { color: #15803d; } .status-dot.false-positive { color: #b45309; } .status-dot.duplicate { color: #6d28d9; } .status-dot.unsure { color: #64748b; }
.content { padding: 1.4rem 2rem 4rem; max-width: 110rem; width: 100%; }
.facts { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.facts span, .chip { background: #e8efff; border-radius: 999px; padding: .35rem .65rem; font-size: .85rem; }
.analysis-wrap { overflow-x: auto; background: white; border: 1px solid #dbe1ec; border-radius: .6rem; padding: .5rem; }
table { width: 100%; border-collapse: collapse; }
caption { text-align: left; font-weight: 800; padding: .4rem; }
th, td { padding: .45rem; border-bottom: 1px solid #e5e9f1; text-align: right; }
th:first-child { text-align: left; }
.case-header { margin: 1.3rem 0 1rem; }
.case-header h2 { margin-bottom: .55rem; }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.route, .identity { overflow-wrap: anywhere; color: #4b5870; }
.definition, .suggestion, .review-card, .evidence-card, details { background: white; border: 1px solid #dbe1ec; border-radius: .65rem; padding: 1rem; }
.definition { margin-top: .7rem; }
.definition p, .suggestion p { margin: .35rem 0 0; }
.suggestion { border-left: .35rem solid #7c3aed; margin: 1rem 0; }
.suggestion-grid { display: grid; grid-template-columns: auto 1fr; gap: .35rem .8rem; }
.replay-tabs { display: flex; gap: .45rem; margin: 1rem 0; flex-wrap: wrap; }
.replay-tabs button[aria-selected="true"] { background: #3156c8; color: white; border-color: #3156c8; }
.evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.evidence-card h3 { margin-top: 0; }
.shot { position: relative; background: #e5e7eb; aspect-ratio: 4 / 3; overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: contain; display: block; }
.focus-box { position: absolute; border: 3px solid #ef4444; box-shadow: 0 0 0 2px white; pointer-events: none; }
.focus-label { display: grid; margin-bottom: 0; }
.focus-label span { color: #59657b; }
.evidence-meta { display: flex; justify-content: space-between; gap: .7rem; flex-wrap: wrap; margin: .7rem 0; }
.evidence-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0; }
details { overflow: hidden; }
summary { cursor: pointer; font-weight: 800; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .8rem; max-height: 30rem; overflow: auto; }
.review-card { margin-top: 1rem; }
.decision-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.decision-row button[aria-pressed="true"] { background: #172033; color: white; }
.note-label { display: grid; gap: .35rem; font-weight: 800; margin-top: 1rem; }
textarea { min-height: 7rem; resize: vertical; padding: .7rem; }
.navigation { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; }
.empty { margin: 3rem auto; max-width: 42rem; padding: 2rem; }
.toast { position: fixed; right: 1rem; bottom: 1rem; background: #172033; color: white; padding: .8rem 1rem; border-radius: .5rem; z-index: 20; }
.toast.error { background: #991b1b; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
@media (max-width: 900px) { .review-shell { grid-template-columns: 1fr; } .sidebar { position: static; height: auto; max-height: 35rem; border-right: 0; border-bottom: 1px solid #dbe1ec; } .evidence-grid, .evidence-details { grid-template-columns: 1fr; } .topbar { flex-direction: column; } }
