:root { color-scheme: dark; font: 16px/1.5 system-ui,sans-serif; background:#08111b; color:#e5eef5; }
* { box-sizing:border-box; }
body { margin:0 auto; max-width:1300px; padding:clamp(12px,3vw,38px); }
header { padding:12px 0 20px; }
header h1 { font-size:clamp(1.8rem,5vw,3.4rem); margin:0 0 10px; line-height:1.1; }
.brand { color:#57e6bb; font-size:.85rem; font-weight:800; letter-spacing:.18em; margin:0 0 6px; }
#stats { color:#b5cee0; font-weight:650; }
section { background:#101e2b; border:1px solid #2b4051; border-radius:15px; padding:clamp(12px,2vw,24px); min-width:0; }
section h2 { margin:0 0 8px; font-size:1.28rem; }
h3 { font-size:1rem; }
.briefing { margin-bottom:14px; }
#summary { margin-bottom:14px; border-color:#57e6bb; }
.disclosures { padding-left:20px; color:#b5cee0; }
.layout { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:14px; }
.actions { display:flex; gap:8px; flex-wrap:wrap; margin:12px 0; }
button,input,select,textarea { font:inherit; color:inherit; background:#172b39; border:1px solid #4a677b; border-radius:7px; padding:7px 10px; max-width:100%; }
button { cursor:pointer; }
button:hover, button[aria-pressed=true] { border-color:#57e6bb; }
.primary { color:#06251e; background:#57e6bb; font-weight:750; }
:focus-visible { outline:3px solid #ffe381; outline-offset:3px; }
.fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-bottom:10px; }
label { display:grid; gap:3px; }
svg { width:100%; border:1px solid #2b4051; border-radius:10px; background:#0b1721; }
svg .live { stroke:#57e6bb; stroke-width:4; }
svg .planned { stroke:#597287; stroke-width:2; stroke-dasharray:6 7; }
svg text { fill:#e5eef5; font:700 16px system-ui; }
svg rect { stroke-width:2; }
.device rect { fill:#173748; stroke:#61bdd9; }
.potential rect { fill:#152632; stroke:#597287; stroke-dasharray:4 4; }
svg .selected,svg .selected rect { stroke:#ffe381; }
.map-label { fill:#a3bbc9; font-size:12px; }
.packet { fill:#ffe381; animation:travel 90ms linear; }
@keyframes travel { from { transform:translate(var(--dx),var(--dy)); } }
#notice,.hint { color:#ffe381; }
li,p { overflow-wrap:anywhere; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media(max-width:780px) { .layout { grid-template-columns:1fr; } }
@media(max-width:420px) { .fields { grid-template-columns:1fr; } }
@media(prefers-reduced-motion:reduce) { .packet { animation:none; } }

pre { white-space:pre-wrap; overflow-wrap:anywhere; }
form { margin-bottom:16px; }
textarea { width:100%; }
