/* A compact working desk, county report map, and physical investigation board. */
main{grid-template-columns:minmax(0,1.8fr) minmax(300px,1fr);gap:18px;padding:18px 24px}
main>section,main>aside{margin:0;background:#14211a;border:1px solid #50604a;padding:18px}
.command-deck{position:relative;background:linear-gradient(110deg,#333c30,#1b2921 65%)!important;border:3px solid #766141!important;box-shadow:inset 0 0 0 4px #0a120e,0 6px 0 #070d09;scroll-margin-top:90px}
.command-deck:before,.command-deck:after{content:'⊕';position:absolute;top:6px;color:#a59165;font-size:14px}.command-deck:before{left:6px}.command-deck:after{right:6px}
.command-deck>.sectionhead{margin:0 0 12px}.command-deck h2{margin:0;font-size:12px;letter-spacing:1.7px}.command-deck>.sectionhead small{font-size:8px;letter-spacing:.6px}
.line-bank{padding:0!important;border:0!important;background:none!important}.line-bank #calls{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 8px;scroll-snap-type:x proximity}
.line-bank .card{flex:1 0 120px;min-width:0;margin:0;padding:10px 10px 8px;background:#111c16;border:1px solid #59604c;border-top:3px solid var(--amber);border-left-width:1px;scroll-snap-align:start}
.line-bank .card:before{content:'● LINE ' attr(data-line);color:var(--amber);font-size:9px;letter-spacing:1px;display:block}.line-bank .card.selected:before{content:'● PATCHED / ' attr(data-line);color:var(--green)}
.line-bank .card small,.line-bank .card p,.line-bank .card .tags,.line-bank .card .evidence-badges,.line-bank .card .card-face{display:none}.line-bank .card h4{font-size:12px;margin:5px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.line-bank .caller-timer{font-size:9px;margin:0}.line-bank .caller-timer span{display:none}.line-bank .patience{margin-top:5px}
.decision-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:14px;margin-top:6px}.source-well{min-width:0;border:1px solid #697454;background:#09150f;padding:14px;box-shadow:inset 0 0 16px #0006}.source-label{font-size:9px;letter-spacing:1px;color:var(--amber)}
#decisionSource h3{font-size:20px;line-height:1.2;color:#f0e9d6;margin:8px 0}.claim-text{max-height:116px;overflow:auto;font:14px/1.5 system-ui,sans-serif;scrollbar-color:#778060 #152319}.claim-text p{margin:0}.claim-text:focus-visible{outline:2px solid var(--amber)}
.source-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}.source-footer span{font-size:10px;color:var(--amber)}.source-footer span.urgent{color:var(--red)}.source-footer button{font-size:10px;padding:6px 8px;min-height:34px}.empty-source{font:14px/1.6 system-ui,sans-serif;color:#c1cbb7;margin:12px 0}
.source-well .broadcast-options{border:0;border-top:1px solid #526044;padding:8px 0 0;margin-top:10px}.source-well #audienceHint{font-size:10px;min-height:0;margin:0}.source-well #forecast{font:12px/1.45 system-ui,sans-serif;min-height:0;margin:7px 0 0;padding-top:7px}
.routing-well .desks{gap:8px}.routing-well .desk{position:relative;min-height:135px;padding:14px 10px 10px;text-align:center;background:linear-gradient(#344333,#1d2b21);box-shadow:inset 0 0 0 3px #0c160f,0 3px 0 #070d09}.routing-well .desk .desk-portrait{display:none}
.socket{display:block;margin:0 auto 8px;width:22px;height:22px;border:4px solid #91805c;border-radius:50%;background:#040a06;box-shadow:0 0 0 2px #050b08,inset 0 0 0 2px #544a33}.route-ready .socket{border-color:var(--green)}.desk.busy .socket{background:var(--amber);box-shadow:0 0 8px #e0b87150}
.routing-well .desk small{font-size:8px;letter-spacing:.6px}.routing-well .desk h3{font-size:14px;letter-spacing:1px;margin:5px 0}.routing-well .desk p,.routing-well .desk #news,.routing-well .desk #eng{font-size:10px;line-height:1.35;padding:0}.routing-well .desk .route-hint{font-size:9px;margin-top:6px}.routing-well .desk .meter{height:5px;margin-top:6px}.routing-well .progress-caption{font-size:9px}.routing-well .job-progress{height:4px}.routing-well .desk-progress{margin-top:6px}
#connectionBeat{font-size:10px;color:var(--amber);border-top:1px solid #5b6148;margin-top:12px;padding-top:9px;min-height:30px}
.command-deck[data-connected="air"] .desk[data-route="air"] .socket,.command-deck[data-connected="news"] .desk[data-route="news"] .socket,.command-deck[data-connected="eng"] .desk[data-route="eng"] .socket,.command-deck[data-connected="hold"] .desk[data-route="hold"] .socket{background:var(--green);animation:patch-in .35s ease-out}
@keyframes patch-in{from{box-shadow:0 0 0 10px #a7d69a55}to{box-shadow:0 0 0 2px #050b08}}
#broadcastBeat{border-left:3px solid #9abc86;background:#08160f;padding:10px 12px;margin-top:4px;min-height:99px}.reaction-heading small{display:block;font-size:8px;color:#b3c698;letter-spacing:1px}.reaction-heading b{display:block;font:14px/1.4 system-ui,sans-serif;margin-top:4px}#broadcastBeat p{font-size:10px;color:#acbba2;margin:4px 0}.reaction-deltas{display:flex;flex-wrap:wrap;gap:5px;margin:6px 0}.delta{font-size:10px;padding:3px 6px;border:1px solid #657957;background:#1c3020}.delta.costly{color:#f2ad92;border-color:#976650}.delta.helpful{color:#c1e6b0}.reaction-caption{font-size:8px;letter-spacing:0;color:#91a588}
.command-deck .utility{gap:5px;margin-top:12px}.command-deck .utility button{font-size:9px;min-height:34px;padding:6px 8px}.command-deck .utility-icon{width:15px;height:15px;margin-right:4px}
.county-panel{background:#101e17!important;align-self:start}.county-panel h2{margin:0;font-size:13px}.county-panel .sectionhead small{font-size:8px}.map-caption{font-size:10px;color:#9fae90;line-height:1.5;margin:8px 0}.county-panel svg{display:block;width:100%;background:#10231b;border:1px solid #536748;margin:12px 0}.map-water{fill:none;stroke:#3d6968;stroke-width:20;opacity:.6}.map-road{fill:none;stroke:#95a572;stroke-width:5}.map-road.warn{stroke:#d09c61;stroke-dasharray:8 4}.map-minor{fill:none;stroke:#687657;stroke-width:3}.map-pin circle{fill:#172b21;stroke:#839477;stroke-width:2}.map-pin.good circle{fill:#aed095;stroke:#dce9b7}.map-pin.reported circle{fill:#dfb36d;stroke:#e9d1a2;stroke-dasharray:3 2}.map-pin.warn circle{fill:#ca795a;stroke:#f2ac80}.map-pin text{fill:#e7dfc8;font:bold 11px ui-monospace,monospace;paint-order:stroke;stroke:#10231b;stroke-width:4px;stroke-linejoin:round}
#countyReports{display:grid;grid-template-columns:1fr 1fr;gap:7px}.map-report{border-left:2px solid #697861;padding:3px 0 3px 8px;font-size:10px}.map-report b{display:block;color:#d8dfc3}.map-report span{display:block;color:#a7b499;font-size:9px;line-height:1.4}.map-report.warn{border-color:var(--amber)}.map-report.good{border-color:var(--green)}.map-trip{margin-top:14px;padding:10px;background:#192e21;border:1px solid #697954}.map-trip b{font-size:11px}.map-trip small{font-size:8px;letter-spacing:0}
.investigation{grid-column:1/-1;background:linear-gradient(110deg,#302c20,#252a1e)!important;border:3px solid #766141!important}.investigation>.sectionhead h2{font-size:15px;color:#e3c48b;margin:0}.board-intro{font:12px/1.5 system-ui,sans-serif;color:#c7c8ac;margin:10px 0 18px}
#archive{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;max-height:none;overflow:visible}.board-thread{min-width:0}.board-thread>h3{font-size:10px;color:#d9c48f;text-transform:uppercase;letter-spacing:1px;border-bottom:1px dashed #897954;padding-bottom:10px;margin:0 0 12px}.thread-tapes{display:grid;gap:12px}#archive .card{padding:15px 12px 10px;background:#15271d;border:1px solid #71815c;border-top:4px solid #b5a06f;box-shadow:3px 4px 0 #0a1109;outline-offset:-3px;max-height:360px;overflow:auto}#archive .card:before{content:'';display:block;width:9px;height:9px;position:absolute;top:5px;left:50%;border-radius:50%;background:#cb8d60;box-shadow:1px 2px #080e08}.tape-number{display:block;font-size:9px;color:#c9b381;margin:0 0 6px;letter-spacing:1px}.pinned-notes{margin-top:10px;border-top:1px dashed #82916a;padding-top:8px}.pinned-notes>div{background:#d4ceb0;color:#272c20;padding:8px;margin-bottom:8px;border-left:3px solid #847946}.pinned-notes small{color:#414b31;font-size:8px;letter-spacing:.4px}#archive .pinned-notes p{color:#272c20;font:11px/1.4 system-ui,sans-serif}.finding-note{border-left-color:#4e7357!important}.tape-history{font-size:9px;color:#c8ceae}.investigation .operations{display:grid;grid-template-columns:1fr 1fr;gap:12px 20px}.operations>h2{grid-column:1/-1;margin:12px 0 0}.operations #crew,.operations #field{display:grid;grid-template-columns:1fr 1fr;gap:12px;grid-column:1/-1}.operations #tapes{grid-column:1/-1}
main>aside{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:12px 24px}aside>#campaign{grid-column:1/-1}aside>h2,aside>small{grid-column:1/-1}#stats{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}#log{height:220px;grid-column:1/-1}#groups{align-content:start}
.station-settings summary{cursor:pointer;font-size:11px;color:var(--amber);padding:10px;border:1px solid #697354;list-style:none}.station-settings[open] .controls{padding:12px;background:#101a15;position:absolute;right:24px;z-index:40;max-width:600px;box-shadow:0 6px 16px #0008}.shift-active .station-scene{height:90px}.shift-active .helper{width:145px}.shift-active .helper>img{height:95px;width:105px}.shift-active .helper-caption{bottom:5px;padding:4px 6px}.shift-active .helper-caption b{font-size:10px}.shift-active .helper-caption small{display:none}.shift-active .helper-caption span{font-size:8px}.shift-active .scene-sign{display:none}.shift-active .scene-broadcast{bottom:10px;padding:5px;width:220px}.shift-active .vu-bars{height:15px;margin-top:5px}.shift-active .night-step{padding:5px 10px}.shift-active header{min-height:62px;padding:6px 24px}.shift-active h1.logo img{height:80px;margin:-15px 0 -15px -10px}
#boardJump{font-size:10px;min-height:36px;padding:6px 9px}.strip{gap:10px}.pinned-source{display:none}
@media(max-width:1100px){main{grid-template-columns:minmax(0,1fr) minmax(280px,.65fr);padding:14px;gap:12px}.decision-grid{grid-template-columns:1fr}.routing-well .desks{grid-template-columns:repeat(4,minmax(0,1fr))}.routing-well .desk{min-height:120px;padding:10px 5px}.routing-well .desk h3{font-size:11px}.routing-well .desk small{display:none}.claim-text{max-height:90px}#archive{grid-template-columns:1fr 1fr}}
@media(max-width:760px){main{grid-template-columns:1fr}.county-panel{grid-column:1/-1}.decision-grid{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}.routing-well .desks{grid-template-columns:1fr 1fr}.county-panel svg{max-height:250px}.routing-well .desk{min-height:125px}}
@media(max-width:650px){main{display:grid;padding:8px;gap:12px}main>section,main>aside{padding:12px}.command-deck{padding:12px!important;scroll-margin-top:68px}.command-deck>.sectionhead{margin-bottom:8px}.command-deck>.sectionhead h2{font-size:10px;letter-spacing:1px}.command-deck>.sectionhead small{display:none}.line-bank .card{flex:1 0 95px;padding:7px}.line-bank .card h4{font-size:10px}.line-bank .card:before{font-size:8px}.line-bank #calls{gap:6px;padding-bottom:6px}.decision-grid{grid-template-columns:1fr;gap:8px;margin-top:4px}.source-well{padding:10px}#decisionSource h3{font-size:16px;margin:5px 0}.source-label{font-size:8px}.claim-text{max-height:90px;font-size:13px;line-height:1.4}.evidence-badges{margin:6px 0;gap:4px}.evidence-badge{font-size:8px;padding:2px 5px}.source-footer button{min-height:44px}.source-footer span{font-size:9px}.source-well .broadcast-options{margin-top:5px;padding-top:5px}.source-well #forecast{font-size:11px;margin-top:4px;padding-top:4px}.routing-well .desks{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.routing-well .desk{min-height:96px;padding:9px 4px 6px}.socket{width:18px;height:18px;margin-bottom:6px;border-width:3px}.routing-well .desk h3{font-size:9px;letter-spacing:0;margin:4px 0}.routing-well .desk p{font-size:8px}.routing-well .desk .route-hint{font-size:8px;line-height:1.3}.routing-well .desk #news,.routing-well .desk #eng{font-size:8px}.routing-well .progress-caption{font-size:8px}#connectionBeat{margin-top:8px;font-size:9px;min-height:25px;padding-top:6px}#broadcastBeat{min-height:75px;padding:8px 10px}.reaction-heading b{font-size:12px}.reaction-caption{font-size:8px}.command-deck .utility{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}.command-deck .utility button{width:auto;min-height:44px;font-size:9px;padding:6px}.command-deck .utility-icon{display:none}#archive{grid-template-columns:1fr}.board-thread>h3{font-size:11px}.thread-tapes{grid-template-columns:1fr 1fr;gap:8px}#archive .card{padding:14px 8px 8px;max-height:320px}#archive .card h4{font-size:12px}#archive .card p{font-size:11px}#archive .card .card-face{width:36px;height:36px}#archive .card small{font-size:8px}.operations #crew,.operations #field{grid-template-columns:1fr}.investigation .operations{display:block}.station-settings[open] .controls{right:8px;left:8px;max-width:none}.shift-active header{display:none}.shift-active .station-scene{display:none}.shift-active #nightTrack{display:none}.strip #status{display:none}.strip{padding:6px 10px;gap:8px;flex-wrap:nowrap}#boardJump{margin-left:auto;min-height:44px;font-size:9px}.strip #pause{font-size:10px;padding:6px 8px}.strip #lamp{font-size:8px}.strip #clock{font-size:15px}.station-settings{margin-left:auto}.county-panel h2{font-size:12px}main>aside{display:block}#stats{grid-template-columns:1fr 1fr}.empty-source{font-size:12px;margin:8px 0}}
@media(prefers-reduced-motion:reduce){.socket{animation:none!important}html{scroll-behavior:auto}}

/* Readable touch controls and notes; urgent line lights retain their warning text. */
.line-bank .caller-timer.urgent span{display:block}.line-bank .caller-timer.urgent{flex-wrap:wrap;gap:2px 5px}.map-report{font-size:12px}.map-report span{font-size:11px}.station-settings summary{min-height:44px;display:flex;align-items:center}.command-deck .source-footer button{min-height:44px}#runtools{position:static;padding:12px 24px}footer{padding-left:24px}
@media(max-width:650px){.routing-well .desks{grid-template-columns:1fr 1fr;gap:6px}.routing-well .desk{min-height:96px;padding:9px}.routing-well .desk h3{font-size:12px}.routing-well .desk p,.routing-well .desk #news,.routing-well .desk #eng{font-size:10px}.routing-well .desk .route-hint{font-size:10px}.routing-well .socket{float:left;margin:2px 6px 2px 0}.routing-well .desk .meter{clear:both}.thread-tapes{grid-template-columns:1fr}#archive .card{max-height:440px;padding:16px 12px 12px}#archive .card h4{font-size:14px}#archive .card p{font-size:13px}#archive .pinned-notes p{font-size:12px}.station-settings summary{font-size:9px;padding:6px 8px}#boardJump{margin-left:0;min-width:44px}.strip{gap:6px}.source-footer button{font-size:10px}.map-report span{font-size:11px}}
html,body{overflow-x:clip;overflow-y:visible}
.connection-wire{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:2;overflow:visible}.cable-shadow{fill:none;stroke:#030806;stroke-width:9;stroke-linecap:round}.patch-cable{fill:none;stroke:#c1a169;stroke-width:5;stroke-linecap:round;stroke-dasharray:1000;animation:connect-wire .35s ease-out}.connection-wire circle{fill:#ddc18b;stroke:#393323;stroke-width:2}@keyframes connect-wire{from{stroke-dashoffset:1000}to{stroke-dashoffset:0}}.assignment-path{fill:none;stroke:#90c4c3;stroke-width:2;stroke-dasharray:4 5}.assignment-marker rect{fill:#9ce0dc;stroke:#13251c;stroke-width:2}.assignment-marker text{font:bold 10px ui-monospace,monospace;fill:#beefeb;paint-order:stroke;stroke:#10231b;stroke-width:3px}@media(prefers-reduced-motion:reduce){.patch-cable{animation:none}}

/* Desktop type scale: 16px content/actions, 14px supporting text. */
@media(min-width:651px){
 body{font-size:16px;line-height:1.5}
 small{font-size:14px;color:#c6d0bc;letter-spacing:.4px}
 h2{font-size:18px;letter-spacing:1px}
 button,select,input,.saveacts button,.crewcard button,.finaldecision button,#inspect,#export,#resume{font:16px/1.4 system-ui,sans-serif;min-height:44px;padding:10px 12px}
 .help,.tags,.evidence-badge,.caller-timer,.progress-caption,.staff-status,.fatigue-label,.log-kind,.telemetry-status,.telemetry-warning .telemetry-status,.telemetry-danger .telemetry-status,.finaldecision .choice-detail,.tape-number,.pinned-notes small,.tape-history{font-size:14px;line-height:1.5}
 .card .tags{font-size:14px}
 .decision-checklist li{font-size:16px}
 .card h4{font-size:18px}
 .card p,.crewcard,.stat,.operations label,.finaldecision,#campaign p,#tapes,#log,.outcome p,dialog p,dialog li,dialog table{font-size:16px;line-height:1.5}
 .help,.fatigue-label,.telemetry-status,.log-kind{color:#c4d0b8}
 footer{font-size:14px;color:#bac8ad;flex-wrap:wrap;gap:12px}
 footer .linkbtn{opacity:1;font-size:14px}
 #status,#shiftState,#lamp,.strip #pause{font-size:14px}
 .night-step b,.night-step small{font-size:14px}
 .scene-sign,.scene-broadcast>span,.helper-caption small,.helper-caption span,.shift-active .helper-caption span{font-size:14px}
 .shift-active .helper-caption b{font-size:16px}
 .shift-active .helper{width:240px}
 .shift-active .helper-caption span{white-space:normal;line-height:1.3}
 .shift-active .scene-broadcast{width:290px}
 .voicevol,.saverow small,#updatebar{font-size:14px}
 .command-deck h2,.county-panel h2,.investigation>.sectionhead h2{font-size:18px}
 .command-deck>.sectionhead small,.source-label{font-size:14px;letter-spacing:.4px}
 .line-bank .card{flex-basis:180px;padding:12px}
 .line-bank .card:before{font-size:14px;letter-spacing:.4px}
 .line-bank .card h4{font-size:16px}
 .line-bank .caller-timer{font-size:14px}
 .claim-text{font-size:16px;max-height:132px}
 .source-footer span,.source-well #audienceHint{font-size:14px}
 .source-footer button{font:16px/1.4 system-ui,sans-serif;padding:10px 12px}
 .source-well #forecast{font-size:16px;line-height:1.5}
 .command-deck .evidence-badge{font-size:14px;padding:4px 7px}
 .routing-well .desk{min-height:170px;padding:12px}
 .routing-well .desk small{font-size:14px;letter-spacing:0}
 .routing-well .desk h3{font-size:18px;letter-spacing:0}
 .routing-well .desk p,.routing-well .desk #news,.routing-well .desk #eng{font:16px/1.4 system-ui,sans-serif;color:#e0e5d5}
 .routing-well .desk .route-hint,.routing-well .progress-caption{font:14px/1.4 system-ui,sans-serif}
 #connectionBeat{font-size:14px}
 .reaction-heading small,.reaction-caption{font-size:14px;color:#c1cfb4}
 .reaction-heading b{font-size:18px}
 #broadcastBeat p{font-size:16px;color:#c9d4bf}
 .delta{font-size:14px;padding:4px 7px}
 .command-deck .utility{gap:8px;margin-top:14px}
 .command-deck .utility button{font:16px/1.4 system-ui,sans-serif;min-height:44px;padding:10px 12px;color:#f2ecdb;border-color:#859174;background:#304333}
 .command-deck .utility button:hover{background:#425b44;border-color:#bdd8a7}
 .command-deck .utility-icon{width:22px;height:22px;margin-right:7px}
 .county-panel .sectionhead small,.map-caption{font-size:14px;color:#c3ceb6}
 .map-report{font-size:16px}
 .map-report span{font-size:14px;color:#c4cfb7}
 .map-trip b{font-size:16px}
 .map-trip small{font-size:14px}
 .map-pin text,.assignment-marker text{font-size:14px}
 .board-intro{font-size:16px}
 .board-thread>h3{font-size:14px}
 #archive .card{max-height:560px}
 #archive .card p{font-size:16px}
 .tape-number,.pinned-notes small,.tape-history{font-size:14px}
 #archive .pinned-notes p{font-size:16px;line-height:1.5}
 #archive .help{grid-column:1/-1}
 .station-settings summary,#boardJump{font-size:16px;min-height:44px}
 .crewcard small,.field-trip>b{font-size:14px}
}
/* Give the readable desk its full width on narrower desktop windows. */
@media(min-width:651px) and (max-width:1100px){
 main{grid-template-columns:minmax(0,1fr)}
 .decision-grid{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}
 .routing-well .desks{grid-template-columns:1fr 1fr}
 .routing-well .desk small{display:none}
 .command-deck>.sectionhead small{display:none}
 .county-panel{grid-column:1/-1}
 .county-panel svg{max-height:300px}
 .shift-active .helper{width:180px}
 .shift-active .scene-broadcast{width:230px}
}

@media(min-width:651px){.card .tags{font-size:14px}}
