/* Physical source comparison, with equivalent touch and keyboard controls. */
dialog p{color:#2c3b35}dialog .evidence-card p{color:#2c3b35}dialog .evidence-card .source{color:#58604f}.source-card button:hover:not(:disabled),.source-reader .secondary:hover{color:#20372a;background:#f4ead2}.source-card button[aria-pressed=true]:hover,.source-reader button[aria-pressed=true]:hover{background:#405c49;color:#fff7df}.primary:hover:not(:disabled){background:#e2c795;color:#142022}
.workbench{margin:24px 0;border:1px solid #b5a07866;background:#111d20}
.archive-layout{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:24px;align-items:start}.archive-layout .workbench{margin:20px 0}.archive-layout .workbench-grid{display:block}.archive-layout .source-reader{padding:16px}.archive-layout .source-reader p{font-size:13px;line-height:1.85;margin:10px 0}.archive-layout .source-reader h3{font-size:18px}.archive-layout .source-reader .document-tabs{margin-bottom:12px}.archive-layout .hypothesis-panel{padding:16px}.archive-layout .hypothesis-panel fieldset{margin-bottom:10px;padding-bottom:10px}.archive-layout .archive-table>img{height:440px;object-fit:cover;object-position:43% center}.archive-layout .archive-hotspots{left:8%;right:10%;top:23%;bottom:13%}.archive-layout .verdict-actions{flex-wrap:wrap}.archive-selection{min-width:0;position:sticky;top:15px}.archive-selection .archive-table{margin-top:20px}.archive-layout .workbench-head{padding:14px 16px}.archive-layout .workbench-head h2{font-size:18px}
.workbench-head{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:16px 20px;border-bottom:1px solid #b5a07844}
.workbench-head h2{font:20px var(--serif);margin:0}.workbench-head small{color:#cab78e;font:11px monospace}
.workbench-grid{display:grid;grid-template-columns:1fr 1.1fr;gap:0}
.source-reader{padding:22px;background:#e4dac3;color:#283531;position:relative;min-width:0}
.source-reader .document-tabs{margin:0 0 18px;gap:7px}.source-reader .secondary{color:#30413b;background:transparent;border-color:#6c796b80;font-size:12px;min-height:44px}
.source-reader button[aria-pressed=true]{background:#31463e;color:#f8efda}
.source-reader h3{font:20px var(--serif);margin:12px 0}.source-reader p{font-size:14px;line-height:1.95;white-space:pre-line}.source-reader small,.source-reader .source{color:#546052;font-size:11px}
.hypothesis-panel{padding:20px}.hypothesis-panel fieldset{border:0;border-bottom:1px solid #aeb3a333;margin:0 0 15px;padding:0 0 15px;min-width:0}.hypothesis-panel legend{color:#c9c5b5;font-size:12px;margin-bottom:9px}
.filter-options{display:flex;gap:8px;flex-wrap:wrap}.filter-options button{min-height:44px;flex:1;border:1px solid #87958d80;padding:8px;font-size:13px;white-space:nowrap}.filter-options button[aria-pressed=true]{background:#d1b47f;color:#111d20;border-color:#f5ddad}
.candidate-summary{font:18px/1.7 var(--serif);color:#f2d9a8;margin:12px 0}.candidate-summary span{font-family:monospace;letter-spacing:3px}.hypothesis-panel .hint{font-size:12px}
.archive-card.is-excluded{opacity:.34;border:1px dashed #e2d6bd!important;filter:grayscale(1)}.archive-card.is-excluded b{text-decoration:line-through}.archive-card.is-excluded:focus-visible,.archive-card.is-excluded:hover{opacity:1}.archive-card .candidate-mark{position:absolute;right:4px;bottom:4px;font-size:10px;background:#161f20;padding:4px;color:#e9d8b3}.archive-card{position:relative}
.archive-legend{font-size:12px;color:#bdc5bb;margin:12px 0}.archive-legend strong{color:#e4c997;font-weight:400}
.case-notebook{margin:24px 0}.case-notebook h2{font:21px var(--serif);margin:12px 0}.case-notebook>.hint{font-size:13px}
.case-notebook .suspect-portraits{margin:15px 0 25px}.case-notebook .suspect-portraits button{min-height:100px}
.case-chain{border:1px solid #cfb88966;background:#142224;padding:18px;display:flex;gap:14px;align-items:center;flex-wrap:wrap;min-height:84px;margin:20px 0}.case-chain .chain-person{font:20px var(--serif);color:#f0d9ad}.chain-arrow{color:#dfbd7e}.chain-source{border:1px solid #b8c1ae66;padding:8px;font-size:12px}.chain-source:empty{display:none}
.source-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px}.source-card{background:#ded3b8;color:#25352f;border-left:4px solid #847b61;padding:14px;min-width:0}.source-card.is-attached{background:#f4e3ba;border-left-color:#cf9657;box-shadow:inset 0 0 0 2px #cf9657}.source-card>small{font:10px monospace;color:#566354}.source-card h3{font:17px/1.6 var(--serif);margin:7px 0}.source-card .card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.source-card button{min-height:44px;padding:7px 10px;border:1px solid #566556;color:#243c30;font-size:12px}.source-card [aria-pressed=true]{background:#314b3c;color:#f3ead4}.source-card button:disabled{opacity:.5;cursor:not-allowed}
.source-compare{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}.source-compare .evidence-card{margin:0;transform:none}.source-compare p{white-space:pre-line;line-height:1.9}.case-notebook .verdict-actions{flex-wrap:wrap}.notebook-instruction{border-left:2px solid #c5a772;padding:8px 15px;margin:16px 0;color:#c9cebf;font-size:13px;line-height:1.85}.notebook-status{font-size:13px;line-height:1.8;min-height:26px;color:#d7c49c}
@media(min-width:1100px){body[data-scene=verdict] .work-grid{grid-template-columns:minmax(200px,.55fr) minmax(0,1.45fr)}}
@media(max-width:1000px){.archive-layout{display:flex;flex-direction:column;gap:0}.archive-layout .workbench{order:-1;width:100%}.archive-selection{position:static;width:100%}.archive-layout .archive-table>img{height:auto}.archive-layout .archive-hotspots{left:18%;right:20%}}
@media(max-width:760px){.workbench-grid{display:block}.workbench-head{padding:14px}.workbench-head h2{font-size:18px}.source-reader,.hypothesis-panel{padding:16px}.source-reader p{font-size:13px}.source-cards{grid-template-columns:1fr}.case-notebook .suspect-portraits button{min-height:70px}.case-chain{gap:10px;padding:13px}.case-chain .chain-person{font-size:18px}.source-compare{display:block}.source-compare .evidence-card{margin-bottom:14px}.case-notebook .verdict-actions>button{width:100%}.workbench-head small{max-width:100px;line-height:1.6}.archive-legend{line-height:1.8}}
@media(max-width:760px){.archive-layout .archive-table>img{height:300px}.archive-layout .archive-hotspots{left:5%;right:7%}.archive-selection{display:flex;flex-direction:column}.archive-selection #puzzle-feedback{order:1}.archive-selection .verdict-actions{order:2}.source-card{padding:11px}.source-card h3{font-size:15px}.source-card>small{font-size:10px}.source-card .card-actions{margin-top:8px}.source-card button{font-size:11px}.case-notebook .case-chain{position:sticky;top:0;z-index:2;background:#17282b;box-shadow:0 6px 20px #0008}}
/* Feedback is optional at every stage; preserve readable controls on phones. */
#feedback,#feedback-mood{font-size:16px}
.feedback-preview{margin-top:18px}
.feedback-preview summary{cursor:pointer;padding:10px 0;min-height:44px;font-size:13px}
#feedback-location{border-left:2px solid var(--mint);padding-left:12px}
dialog .field{color:#304846}
dialog #clear-feedback{color:#304846}
