:root { color-scheme: dark; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; background: #050505; color: #ddd; }
* { box-sizing: border-box; }
body { margin: 0; }
main { width: min(100% - 2rem, 48rem); margin: 8vh auto; }
h1 { font-size: clamp(1.4rem, 5vw, 2.5rem); font-weight: 400; letter-spacing: .08em; overflow-wrap: anywhere; }
p, li { line-height: 1.8; }
.eyebrow, .muted { color: #aaa; }
section, fieldset { margin: 2rem 0; border: 1px solid #555; padding: 1rem; }
label { display: block; margin: 1rem 0; }
input { display: block; max-width: 100%; margin-top: .6rem; font: inherit; }
button, a { color: inherit; font: inherit; }
button, .action { display: inline-block; padding: .85rem 1rem; background: #151515; border: 1px solid #999; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; color: #999; border-color: #444; }
:focus-visible { outline: 3px solid #a9ffe4; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; margin: 1rem 0; }
audio, canvas { max-width: 100%; }
input:not([type=file]) { width: 100%; padding: .8rem; background: #111; color: #ddd; border: 1px solid #777; }
[hidden] { display: none !important; }
#status { min-height: 3.6em; overflow-wrap: anywhere; }
nav { margin-top: 3rem; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; } }

.meta-step { animation: trace-arrival 1s both; }
.step-1 { animation-delay: 1s; }
.step-2 { animation-delay: 2s; }
.step-3 { animation-delay: 3s; }
@keyframes trace-arrival { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .meta-step { animation: none; } }

.signal-number { color:#777; letter-spacing:.22em; font-size:.8rem; }
.transmission-line { margin:3rem 0; letter-spacing:.12em; }
.evidence { width:100%; max-height:60vh; object-fit:contain; background:#080808; }
.evidence-actions { display:flex; gap:1.5rem; flex-wrap:wrap; }
.response-navigation { border-top:1px solid #333; padding-top:2rem; margin-top:4rem; }
.ciphertext { white-space:pre-wrap; overflow-wrap:anywhere; font-size:.85rem; line-height:1.9; }
.staff-tool { display:grid; gap:1rem; }
.staff-action { display:inline-block; margin:.5rem .5rem 0 0; }
#qr-camera { width:100%; max-height:50vh; object-fit:cover; border:1px solid #555; }
.print-only { display:none; }
@media print { body { background:white; color:black; } main { width:100%; margin:0; } .print-only { display:block; } .screen-only,nav,#status,#response,.eyebrow,main>h1 { display:none; } .printed-record { border:0; } }
