:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #647084;
  --line: #d8dde7;
  --paper: #fff;
  --wash: #f4f6fa;
  --blue: #2457d6;
  --red: #e23b43;
  --green: #147d52;
  --amber: #9a6700;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--wash); color: var(--ink); font: 15px/1.45 system-ui, sans-serif; }
button, select, textarea, input { font: inherit; }
button, select { min-height: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); padding: 7px 11px; }
button { cursor: pointer; }
button:hover { border-color: var(--blue); }
button:focus-visible, select:focus-visible, textarea:focus-visible, input:focus-visible { outline: 3px solid #8cb4ff; outline-offset: 2px; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 20; background: white; padding: 10px; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.topbar { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 18px 28px; background: #14203a; color: white; }
.topbar h1, .topbar p { margin: 0; }
.topbar h1 { font-size: 24px; }
.eyebrow { color: #a9c6ff; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.top-actions { display: flex; gap: 8px; }
.review-shell { display: grid; grid-template-columns: 290px minmax(0, 1fr); min-height: calc(100vh - 104px); }
.sidebar { border-right: 1px solid var(--line); background: var(--paper); padding: 16px; }
.progress-track { height: 8px; background: #e5e9f1; border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--green); }
.summary { display: flex; justify-content: space-between; margin: 7px 0 14px; color: var(--muted); }
.filters { display: grid; gap: 8px; }
.filters label { display: grid; gap: 4px; color: var(--muted); font-size: 13px; }
.case-list { margin: 16px 0 0; padding: 0; list-style: none; max-height: calc(100vh - 380px); overflow: auto; border-top: 1px solid var(--line); }
.case-list button { width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; text-align: left; padding: 10px 6px; }
.case-list button[aria-current="true"] { background: #edf3ff; box-shadow: inset 4px 0 var(--blue); padding-left: 10px; }
.case-id { display: flex; justify-content: space-between; font-weight: 700; }
.case-sub { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.status-dot { color: var(--muted); }
.status-dot.valid { color: var(--green); }.status-dot.false-positive { color: var(--red); }.status-dot.duplicate { color: var(--amber); }.status-dot.unsure { color: var(--blue); }
.content { padding: 20px 24px 40px; min-width: 0; }
.case-header, .evidence-card, .review-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.case-header { padding: 14px 18px; margin-bottom: 16px; }
.case-header h2 { margin: 0 0 5px; }
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip { border-radius: 99px; background: #edf1f7; padding: 3px 9px; font-size: 12px; }
.identity { margin: 10px 0 0; font: 12px/1.45 ui-monospace, monospace; overflow-wrap: anywhere; color: #42506a; }
.property-definition { margin-top: 11px; border-left: 4px solid var(--blue); background: #f1f5ff; padding: 9px 12px; }
.property-definition strong { display: block; color: #183c99; }
.property-definition p { margin: 3px 0 0; }
.evidence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.evidence-card { padding: 12px; min-width: 0; }
.evidence-card h3 { margin: 0 0 9px; }
.shot { position: relative; overflow: hidden; border: 3px solid transparent; background: #e8ebf1; }
.shot.document-focus { border-color: var(--red); }
.shot img { display: block; width: 100%; height: auto; }
.focus-box { position: absolute; border: 4px solid var(--red); box-shadow: 0 0 0 2px rgba(255,255,255,.85); pointer-events: none; }
.focus-label { margin: 9px 0 0; min-height: 42px; }
.focus-label strong { display: block; }
.focus-label span { color: var(--muted); overflow-wrap: anywhere; }
.action-arrow { margin: 12px 0; text-align: center; font-weight: 750; color: var(--blue); }
.review-card { margin-top: 16px; padding: 16px; }
.decision-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.decision-row button[aria-pressed="true"] { color: white; border-color: transparent; }
.decision-row [data-decision="valid"][aria-pressed="true"] { background: var(--green); }
.decision-row [data-decision="false-positive"][aria-pressed="true"] { background: var(--red); }
.decision-row [data-decision="duplicate"][aria-pressed="true"] { background: var(--amber); }
.decision-row [data-decision="unsure"][aria-pressed="true"] { background: var(--blue); }
.note-label { display: grid; gap: 6px; margin-top: 12px; font-weight: 650; }
textarea { width: 100%; min-height: 86px; resize: vertical; border: 1px solid var(--line); border-radius: 8px; padding: 9px; }
.navigation { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.empty { margin: 40px auto; max-width: 680px; background: white; padding: 24px; border-radius: 12px; }
.toast { position: fixed; right: 18px; bottom: 18px; z-index: 30; background: #14203a; color: white; border-radius: 8px; padding: 10px 14px; box-shadow: 0 8px 30px #0003; }
.toast.error { background: #8f2028; }
@media (max-width: 900px) { .review-shell { grid-template-columns: 1fr; }.sidebar { border-right: 0; border-bottom: 1px solid var(--line); }.case-list { max-height: 220px; }.evidence-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .topbar { align-items: flex-start; flex-direction: column; }.content { padding: 14px; }.decision-row { grid-template-columns: 1fr 1fr; } }
