:root{color-scheme:dark;--ink:#e6e9e6;--muted:#9aa8aa;--dim:#77868b;--edge:#303b3e;--bg:#10171b;--orange:#f3ae70;--teal:#87ded0;font-family:Bahnschrift,'Segoe UI',sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}button,input,select{font:inherit}button{color:inherit;background:#192226;border:1px solid #3a474b;cursor:pointer}button:hover:not(:disabled){border-color:#91a2a3;background:#253034}button:disabled{opacity:.49;cursor:default}button:focus-visible,input:focus-visible,canvas:focus-visible{outline:2px solid var(--orange);outline-offset:2px}button, input{border-radius:3px}h1,h2,h3,p{margin:0}kbd,.micro,.scene-bar,.fleet-bar>span,footer,.fine,.tag,.stat label,.deck small,.chip,.card small,.orderbtn,.readout,.telemetry,.station{font-family:Consolas,'Courier New',monospace}.mast{height:62px;display:flex;align-items:center;gap:21px;padding:0 24px;background:#101619;border-bottom:1px solid var(--edge)}.brand{display:flex;align-items:center;gap:10px}.brand img{width:34px;height:34px}.brand span{font-size:22px;font-weight:750;letter-spacing:2.3px}.brand i{font:600 10px Consolas;color:var(--orange);border:1px solid #805d41;padding:3px 4px;align-self:flex-start;margin-top:4px}.brand-rule{height:21px;width:1px;background:var(--edge)}.station{color:#acb7b6;font-size:12px}.tools{margin-left:auto;display:flex;gap:8px}.tools button,.quiet{border:1px solid var(--edge);padding:7px 10px;font-size:12px;background:transparent}.tools kbd{font-size:10px;color:#b2bfbd;margin-left:4px}main.console{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:14px;padding:16px 20px 8px;max-width:2048px;margin:auto;min-height:calc(100dvh - 97px)}.viewer,#panel{border:1px solid var(--edge);border-radius:5px;overflow:hidden;background:#131b1f}.viewer{display:flex;flex-direction:column;min-width:0}.scene-bar,.fleet-bar{display:flex;align-items:center;justify-content:space-between;padding:0 16px}.scene-bar{height:40px;background:#151e22;border-bottom:1px solid var(--edge);font-size:11px;color:var(--muted)}.scene-bar>span:first-child{display:flex;align-items:center;gap:9px}.scene-bar strong{font-weight:500;text-transform:uppercase;letter-spacing:1.45px;color:#d9e0de}.dot{display:inline-block;width:6px;height:6px;background:var(--teal);border-radius:50%;box-shadow:0 0 8px #73cdbb55}.viewport{position:relative;flex:1;min-height:340px;overflow:hidden;background:#090e13}#space{position:absolute;width:100%;height:100%;display:block;touch-action:none}#sceneOverlay{pointer-events:none;position:absolute;inset:auto 22px 22px;color:#a6b6b7}.preview-caption h1{font-size:clamp(29px,3.3vw,54px);letter-spacing:-1.8px;line-height:1.03;font-weight:600;color:#eef2ef}.preview-caption .label{margin-bottom:7px;letter-spacing:2.6px;color:var(--orange);font:11px Consolas,monospace;text-transform:uppercase}.preview-caption p{font:13px Consolas,monospace;margin-top:6px}.viewkey{position:absolute;top:16px;left:18px;pointer-events:none}.fleet-bar{height:39px;border-top:1px solid var(--edge)}.fleet-bar h2,.section-title{font:600 11px Consolas,monospace;letter-spacing:1.5px;text-transform:uppercase}.fleet-bar>span{font-size:11px;color:#aab6b4}#fleet{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;padding:0 10px 10px}.card{position:relative;text-align:left;min-width:0;color:var(--ink);border:1px solid #303d40;background:linear-gradient(145deg,#1b252a,#151d20);padding:5px 9px 8px;min-height:84px}.card.picked{border-color:#c88f5b;background:linear-gradient(140deg,#2d2b25,#1d2425)}.card canvas{display:block;width:100%;height:34px}.card .flag{position:absolute;right:7px;top:5px;color:var(--orange);font-size:10px}.card b{display:block;font-size:13px;letter-spacing:.1px}.card small{display:block;color:#acb9b7;font-size:10px;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card.dead{opacity:.34}.card .hp{height:2px;background:#344348;margin-top:6px}.hp i{display:block;background:var(--teal);height:100%}#panel{padding:21px 18px;display:flex;flex-direction:column;gap:17px}.panelhead h2{font-weight:600;font-size:25px;letter-spacing:-.7px;margin-top:6px}.micro{font-size:10px;letter-spacing:1.7px;text-transform:uppercase;color:var(--orange)}.panelhead p,.copy,.hint{font-size:13px;line-height:1.4;color:#aab7b9;margin-top:6px}.section{padding-top:15px;border-top:1px solid var(--edge)}.section-title{color:#d0dbd8;margin-bottom:11px}.stats{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--edge);border:1px solid var(--edge)}.stat{padding:10px 12px;background:#182125}.stat label{display:block;color:#9caeaf;font-size:10px;margin-bottom:4px}.stat b{font-size:17px;font-weight:500}.stack{display:grid;gap:7px}.primary,.secondary,.orderbtn{border-radius:3px;width:100%;padding:10px 12px;text-align:center}.primary{background:var(--orange);border-color:var(--orange);color:#15191c;font-weight:700}.primary:hover:not(:disabled){background:#ffc48e;border-color:#ffd0a5}.secondary{background:transparent;font-size:13px}.dual{display:flex;gap:6px;align-items:stretch}.dual>*{min-width:0}.dual input{flex:1;width:100%;background:#0d1518;border:1px solid #39474c;color:var(--ink);padding:9px 11px;text-transform:uppercase;font:12px Consolas;letter-spacing:1.4px}.dual button{padding:7px 13px}.roster-line,.kv,.feed-line{display:flex;align-items:center;justify-content:space-between;font-size:12px;padding:5px 0;gap:7px}.roster-line>span:first-child{display:flex;gap:8px;align-items:center}.teammark{width:7px;height:7px;background:var(--team);display:inline-block}.chip,.fine{font-size:10px;color:#acb9bb}.roomcode{letter-spacing:3px;color:var(--orange);font-weight:650}.controls{display:grid;grid-template-columns:1fr 1fr;gap:5px}.controls button,.mode button,.weaponbtn{font-size:12px;padding:7px 5px}.mode{display:flex;gap:4px}.mode button{flex:1;min-width:0}.selected,.mode .selected,.queued{color:var(--teal);border-color:#639f95;background:#19312f}.weaponbtn{width:100%;display:flex;align-items:center;justify-content:space-between;padding:8px 11px}.muted{color:var(--muted)}.timer{display:flex;justify-content:space-between;align-items:end}.timer b{font:600 27px Consolas;letter-spacing:-1px;color:var(--orange)}.timebar{height:3px;background:#354143;overflow:hidden;margin:7px 0}.timebar i{height:100%;display:block;background:var(--orange)}.kv{color:#adbbbe}.kv strong{color:var(--ink);font-weight:500}.events{font:11px/1.45 Consolas;color:#b9c6c5}.events div{margin:4px 0}.events .hit{color:var(--orange)}#flightNotice{position:absolute;top:12px;left:50%;transform:translateX(-50%);font:12px Consolas;color:#f8c698;pointer-events:none;white-space:normal;text-align:center;background:#10171aeb;padding:7px 10px;border-radius:3px;max-width:88%}#flightNotice:empty{display:none}.err{color:#ffab93!important}.guide-head{display:flex;align-items:center;justify-content:space-between}.guide-head button{padding:0;width:28px;height:28px;font-size:20px}dialog{background:#182125;border:1px solid #556061;border-radius:6px;color:var(--ink);max-width:min(490px,94vw);padding:22px}dialog::backdrop{background:#04090bcc}dialog h2{margin:9px 0}dialog p,dd{font-size:13px;line-height:1.5;color:#b9c5c5}dt{margin-top:12px;font-weight:600}dd{margin:3px 0 9px}footer{height:32px;padding:0 22px;display:flex;align-items:center;justify-content:space-between;color:#8b9da0;font-size:10px;letter-spacing:.6px}footer .cross{color:var(--orange);font-size:13px;margin-right:5px}
@media(min-width:1450px){main.console{grid-template-columns:minmax(0,1fr) 345px}#panel{padding:26px 23px}}@media(max-height:780px) and (min-width:801px){.mast{height:50px}main.console{min-height:calc(100dvh - 82px);padding-top:10px}#panel{gap:10px;padding:14px}.section{padding-top:10px}.section-title{margin-bottom:6px}.card{min-height:72px}.viewport{min-height:310px}.hint{font-size:12px}}@media(max-width:870px){main.console{grid-template-columns:minmax(0,1fr) 263px;gap:8px;padding:9px}.card{padding:4px}.station,.brand-rule{display:none}#panel{padding:12px}.scene-bar{font-size:10px;padding:0 10px}.mast{padding:0 12px}}@media(max-width:660px){main.console{display:flex;flex-direction:column}.viewport{height:47dvh;min-height:290px}.mast{height:49px}.brand span{font-size:17px}.tools button{font-size:11px;padding:5px}.tools kbd{display:none}#panel{gap:12px}.card{min-height:64px}.card canvas{height:28px}.card b{font-size:11px}.card small{font-size:8px}#fleet{gap:3px;padding:0 4px 5px}.scene-bar{height:30px}.preview-caption h1{font-size:28px}.scene-bar>span:last-child{font-size:9px}.panelhead h2{font-size:22px}}

.range,.shot-report{font:11px/1.35 Consolas,monospace;color:var(--teal)}.range.far{color:#e5b27f}.shot-report{padding-top:6px;border-top:1px solid var(--edge)}

.seat-roster{display:grid;grid-template-columns:1fr 1fr;gap:1px 13px}.seat-roster .roster-line{font-size:11px;gap:3px}.seat-roster .chip{font-size:9px}#viewScale{position:absolute;bottom:8px;right:12px;color:#aec3c2;background:#0c161bd9;border-radius:3px;padding:3px 6px;font:10px Consolas,monospace;pointer-events:none}

#magazine{position:relative;color:#d7e3df;background:#10201e;border-top:1px solid #405752;font:12px Consolas,monospace}
#magazine:not([hidden]){display:flex;align-items:center;gap:10px;padding:6px 10px;flex-shrink:0}
.weapon-label{flex:none;display:grid;gap:5px;padding-right:2px}
.weapon-label strong{font:600 10px Consolas,monospace;letter-spacing:1px;text-transform:uppercase;color:#b6d3d6}
.weapon-label span{font-size:9px;color:#90aab4}
.weapon-rack{display:flex;flex:1;min-width:0;gap:6px;overflow-x:auto;scrollbar-width:thin;scrollbar-color:#46636e transparent;padding:2px}
.weapon-card{display:flex;align-items:center;flex:0 0 285px;min-width:0;gap:5px;border:1px solid #304a57;border-radius:3px;background:#0c1b25}
.weapon-card.active{border-color:#d8b177;box-shadow:inset 2px 0 #d8b177}
.weapon-card.armed{border-color:#6aa99c;background:#15332f}
.weapon-select{display:flex;flex:1;min-width:0;gap:8px;align-items:center;text-align:left;border:0;background:transparent;padding:7px 6px 7px 8px}
.mount-number{font:12px Consolas;color:#bda480;flex:none}
.weapon-summary{min-width:0;flex:1}
.weapon-summary strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:600 12px Bahnschrift,'Segoe UI',sans-serif}
.weapon-meta{display:flex;align-items:center;gap:8px;min-width:0;margin-top:4px;font-size:10px;white-space:nowrap}
.weapon-supply{color:#9eafb8;flex:none;font-variant-numeric:tabular-nums}
.mount-state{overflow:hidden;text-overflow:ellipsis;color:#89decb}
.mount-state.reloading{color:#f0bd7b}
.weapon-card.unavailable:not(.armed) .mount-state:not(.reloading){color:#b1a69f}
.weapon-trigger{flex:none;padding:7px 8px;margin-right:6px;min-width:43px;min-height:32px;font:11px Bahnschrift,'Segoe UI',sans-serif;border-color:#49636d;background:#1a303a}
.weapon-trigger.queued{border-color:#639f95;background:#20483f;color:#abeddb}
.weapon-all{flex:none;min-height:34px;white-space:nowrap}
@media(max-width:1100px){.weapon-label{display:none}.weapon-card{flex-basis:270px}}
@media(max-width:660px){#magazine:not([hidden]){gap:5px;padding:5px 4px}.weapon-card{flex-basis:255px}.weapon-all{font-size:11px;padding:7px}.weapon-trigger{min-height:44px}}
.bay-bar{display:flex;align-items:center;gap:12px;padding:5px 12px}.bay-open,.bay-fire{display:flex;align-items:center;gap:9px;padding:5px 11px;min-height:36px;border-color:#48605c;background:#182a27}.bay-open{text-align:left}.bay-open strong,.bay-open small{display:block}.bay-open small{color:#a9c0b8;font-size:10px}.bay-open b{color:#a6c9be;margin-left:8px}.bay-status{margin-left:auto;color:#b0d5c8}.bay-fire{background:#eab17a;color:#172120;border-color:#eab17a;font-weight:700}.bay-fire kbd{font:9px Consolas}.bay-fire.queued{color:#a4ece0;background:#204039;border-color:#78ab99}
#rounds{position:absolute;bottom:100%;left:0;right:0;z-index:2;box-sizing:border-box;padding:10px 13px;overflow:auto;max-height:205px;background-color:#10221ff7;background-image:linear-gradient(#72a79112 1px,transparent 1px),linear-gradient(90deg,#72a79112 1px,transparent 1px);background-size:12px 12px;border-top:2px solid #79b6a2;box-shadow:0 -6px 14px #06101080}.bay-head,.bay-row{display:flex;align-items:center;gap:14px}.bay-head{justify-content:space-between;margin-bottom:7px}.bay-head span,.bay-label b,.bay-slots small{color:#abc2b9;font-size:10px}.bay-label{width:96px;flex:none;font-size:11px}.bay-label b{display:block}.bay-row+.bay-row{border-top:1px solid #4e726755;margin-top:5px;padding-top:5px}.bay-slots{display:flex;flex-wrap:wrap;gap:2px}.bay-slots button{position:relative;border:1px solid transparent;border-radius:2px;background:#11252099;width:24px;height:29px;padding:3px;display:grid;place-items:center}.bay-slots button:hover{background:#416153}.bay-slots button[aria-pressed=true]{background:#d1e6d7;border-color:#f7f2cf}.bay-slots button b{position:absolute;inset:0;display:grid;place-items:center;color:#06110f;text-shadow:0 0 2px #fff;font:bold 15px Consolas}
.munition{display:inline-block;flex:none;width:15px;height:23px;--shell:#e9bc78;background:linear-gradient(90deg,#26343a 5%,var(--shell) 37%,#f0efdb 46%,var(--shell) 54%,#46514f 96%);clip-path:polygon(50% 0%,66% 23%,73% 62%,94% 88%,93% 98%,64% 90%,50% 100%,36% 90%,7% 98%,6% 88%,27% 62%,34% 23%)}.munition.missile{--shell:#75c7eb}.munition.guided{--shell:#ba9fea}.munition.bomb{--shell:#f09657;clip-path:polygon(50% 0%,72% 15%,80% 52%,78% 69%,99% 90%,80% 94%,59% 86%,50% 100%,40% 86%,20% 94%,1% 90%,22% 69%,20% 52%,28% 15%)}.munition.artillery{clip-path:polygon(50% 0,71% 20%,71% 82%,81% 88%,81% 98%,19% 98%,19% 88%,29% 82%,29% 20%)}
@media(max-width:660px){.bay-bar{gap:5px;padding:4px 6px}.bay-status{font-size:10px}.bay-open,.bay-fire{gap:4px;padding:4px 7px}.bay-fire kbd,.bay-head span{display:none}.bay-label{width:66px}.bay-slots button{width:25px;height:28px}}

#systemsHull{display:block;width:100%;height:74px;background:radial-gradient(ellipse at center,#1f3236,#121c20 70%);border-bottom:1px solid var(--edge);margin:3px 0 7px}.range-link{color:var(--teal);font-size:13px;text-underline-offset:3px}
#space.pannable{cursor:grab}

/* Flight deck: cool metal and instrument light, with amber reserved for actions. */
:root{--bg:#07121c;--ink:#e4edec;--muted:#99adb8;--edge:#2c424e;--orange:#efbd80;--teal:#86e5d8}
body{background:radial-gradient(ellipse at 20% 0%,#172b37 0%,#0a1722 52%,#070f17 100%) fixed}
.mast{background:linear-gradient(100deg,#11222e,#0a1621 65%);border-bottom-color:#39505a}
.brand{gap:13px}.brand span{letter-spacing:.16em}.brand i{border-color:#977550;color:#f1c58e}
.station{color:#a5c6ce}.viewer,#panel{background:#0d1b25;border-color:#314854;border-radius:4px}
.scene-bar,.fleet-bar{background:linear-gradient(100deg,#162936,#101f2a);border-color:#304854}
.scene-bar strong{color:#ccdfdf}.scene-bar>span:last-child{color:#a2b7c0}
.viewport{background:#071320}.preview-caption{display:inline-block;padding:0 48px 1px 0;text-shadow:0 2px 9px #01060ad9}
.preview-caption .label{font-size:11px;color:#b7e4de;letter-spacing:.21em;margin-bottom:8px}
.preview-caption h1{font-size:clamp(34px,4.1vw,64px);font-weight:650;letter-spacing:-.045em}
.preview-caption p{color:#d4e0df}.fleet-bar{border-bottom:1px solid #203845}
#fleet{padding:7px 8px 9px;background:#0a151e;gap:5px}
.card{background:linear-gradient(140deg,#1c313d,#12232e);border-color:#29414d;border-radius:2px}
.card.picked{background:linear-gradient(140deg,#234044,#13262f);border-color:#78bdb4;box-shadow:inset 0 -2px #7dcabd}
.card .flag{color:#9af4de}.card small{color:#a4b9c2}.card canvas{height:37px}
.escape-control{display:grid;gap:5px}.escape-control small{color:#b2c2c7;font-size:11px;line-height:1.4}.escape-control .escape-btn{color:#ffbd90;border-color:#805c49;padding:7px 10px}.escape-btn[aria-pressed=true]{background:#432c24}
#panel{background:linear-gradient(155deg,#142733,#0e1c27 58%,#0c1821);box-shadow:inset 0 2px #375762}
.panelhead{border-left:2px solid #7ab8b4;padding-left:13px}.panelhead h2{font-size:clamp(22px,2vw,30px)}
.section,.shot-report{border-color:#2b414b}.section-title,.fleet-bar h2{color:#a8cdce}
.stat{background:linear-gradient(115deg,#1c323e,#152633)}.stat label{color:#adc4cd}
.timer b{font-variant-numeric:tabular-nums}.timebar,.card .hp{background:#203640}
.primary,.bay-fire{background:linear-gradient(#f0c58e,#dea96d);color:#19212a;border-color:#f4c58e}
.primary:hover:not(:disabled),.bay-fire:hover:not(:disabled){background:#f6d2a5;color:#17212a}
.secondary,.quiet,.mode button,.tools button,.dual input{background:#101f29;border-color:#36505a}
.mode .selected,.bay-fire.queued{background:#173a3e;border-color:#61958e;color:#a9eddf}
#magazine{background:#10232b;border-color:#344f57}.bay-open{background:#192f36;border-color:#38565e}
#systemsHull{height:82px;background:linear-gradient(90deg,transparent 49.6%,#7ea9ac16 50%,transparent 50.4%),radial-gradient(ellipse,#26464e,#0d1d28 72%);border:1px solid #29414c}
.system-row{display:grid;grid-template-columns:minmax(80px,1fr) minmax(24px,.8fr) 35px;gap:9px;align-items:center;margin:6px 0;font-size:12px;color:#acbdc6}
.system-row strong{font:11px Consolas,monospace;text-align:right;color:var(--ink)}.system-row i{position:relative;height:4px;background:#293b45}
.system-row em{display:block;height:100%}.system-row i:after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0 calc(20% - 2px),#10222e calc(20% - 2px) 20%)}
#viewScale{background:#08131cca;color:#a5c4cc}dialog{background:#12242f;border-color:#45626a}
@media(min-width:801px){body[data-scene=hangar] #panel{gap:16px}body[data-scene=hangar] .card{min-height:83px}}
@media(max-width:660px){.card canvas{height:27px}.preview-caption{padding-right:0}.preview-caption h1{font-size:32px}}
.yard-link{display:block;text-align:center;padding:9px;border:1px solid #568179;color:#a6efdf;text-decoration:none;font-size:13px}.munition:not(.missile,.guided,.bomb,.artillery){background:#a9d8d3;clip-path:polygon(50% 0,72% 55%,78% 100%,22% 100%,28% 55%)}
.watch-teams{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
.watch-teams button{display:flex;align-items:center;gap:4px;min-width:0;padding:5px;font-size:11px;text-align:left}
.watch-teams b{margin-left:auto}.watch-hint{grid-column:1/-1;font-size:13px;color:#a5bbbf;padding:10px}
.room-entry{display:flex;gap:4px}.room-entry input{min-width:0;flex:1;padding:8px;border:1px solid #36505a;background:#101f29;color:#deecea;text-transform:uppercase}
.watch-teams button[hidden]{display:none}
.arena-choice{margin-bottom:8px}
.camera-actions{display:flex;flex-wrap:wrap;align-items:center;gap:5px}
.camera-actions .quiet{font-size:11px;padding:7px 8px}
#commandRail{display:contents}
#squadron{flex-shrink:0;min-width:0}
.fleet-health{display:none}
.system-count{font:10px Consolas,monospace;color:#91a8b1;margin:-4px 0 10px}
.fleet-team-id{display:inline-grid;place-items:center;flex:none;min-width:18px;height:16px;padding:0 2px;border-left:2px solid var(--team);background:#07131e;color:var(--team);font:10px Consolas,monospace;letter-spacing:0}
/* In combat the left column belongs to the arena and its weapon controls. */
body[data-scene=battle] .mast{height:42px;padding:0 12px;gap:14px}
body[data-scene=battle] .brand{gap:9px}
body[data-scene=battle] .brand img{width:25px;height:25px}
body[data-scene=battle] .brand span{font-size:17px;letter-spacing:.13em}
body[data-scene=battle] .brand i{font-size:8px;margin-top:1px;padding:2px 3px}
body[data-scene=battle] .station{font-size:10px}
body[data-scene=battle] .tools button{font-size:11px;padding:5px 8px}
body[data-scene=battle] footer{display:none}
body[data-scene=battle] main.console{max-width:none;min-height:0;padding:8px;gap:8px}
body[data-scene=battle] .scene-bar{height:30px;flex-shrink:0;padding:0 12px;font-size:10px}
body[data-scene=battle] #commandRail{display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden;border:1px solid #314854;border-radius:4px;background:linear-gradient(155deg,#142733,#0c1821)}
body[data-scene=battle] #commandHead{padding:11px 11px 10px;flex-shrink:0}
body[data-scene=battle] #commandHead[hidden]{display:none}
body[data-scene=battle] .timer h2{font-size:20px}
body[data-scene=battle] .timer b{font-size:24px}
body[data-scene=battle] .timer .micro{font-size:9px;letter-spacing:1.4px;margin-bottom:3px}
body[data-scene=battle] .timebar{height:2px;margin:8px 0 10px}
body[data-scene=battle] .camera-actions{gap:4px}
body[data-scene=battle] .camera-actions .quiet{padding:6px 7px;font-size:10px}
body[data-scene=battle] #panel{flex:1;min-height:0;padding:12px 10px;gap:12px;border:0;border-radius:0;box-shadow:none;background:transparent;overflow-y:auto;scrollbar-width:thin}
body[data-scene=battle] #panel>.section:first-child{border-top:0;padding-top:0}
body[data-scene=battle] .section{padding-top:11px}
body[data-scene=battle] .section-title{font-size:10px;letter-spacing:1.2px;margin-bottom:8px}
body[data-scene=battle] .mode button{font-size:10px;padding:7px 3px}
body[data-scene=battle] .system-row{font-size:11px;gap:7px}
body[data-scene=battle] .kv{font-size:11px}
body[data-scene=battle] #squadron{border-top:1px solid #304854;border-bottom:1px solid #304854}
body[data-scene=battle] .fleet-bar{height:30px;padding:0 10px;border-top:0;border-bottom:0;background:transparent}
body[data-scene=battle] .fleet-bar h2{display:flex;align-items:center;gap:6px;min-width:0;font-size:10px;letter-spacing:.5px;color:var(--fleet-color)}
body[data-scene=battle] .fleet-bar>span{font-size:10px;white-space:nowrap}
body[data-scene=battle] #fleet{grid-template-columns:1fr;padding:0 6px 7px;gap:3px;background:transparent}
body[data-scene=battle] .card{display:grid;grid-template-columns:50px minmax(0,1fr) 31px;grid-template-areas:"hull name health" "hull role health" "hull bar bar";grid-template-rows:14px 12px 2px;column-gap:5px;row-gap:2px;align-items:center;min-height:44px;padding:5px 7px}
body[data-scene=battle] .card canvas{grid-area:hull;width:50px;height:30px}
body[data-scene=battle] .card b{grid-area:name;font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
body[data-scene=battle] .card small{grid-area:role;margin:0;font-size:9px;line-height:12px}
body[data-scene=battle] .card .flag{left:3px;right:auto;top:3px;font-size:7px}
body[data-scene=battle] .card .hp{grid-area:bar;margin:0;width:100%}
body[data-scene=battle] .fleet-health{grid-area:health;display:block;text-align:right;font:10px Consolas,monospace;color:#a9d5cd}
body[data-scene=battle] .card.dead{opacity:.4}
body[data-scene=battle] .card.picked{border-color:var(--fleet-color);box-shadow:inset 2px 0 var(--fleet-color)}
body[data-scene=battle] .card .hp i{background:var(--fleet-color)}
body[data-scene=battle] .card .flag,body[data-scene=battle] .fleet-health{color:var(--fleet-color)}
body[data-scene=battle] .watch-teams{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(min-width:661px){
  body[data-scene=battle] main.console{height:calc(100dvh - 42px);grid-template-columns:minmax(0,1fr) 244px}
  body[data-scene=battle] .viewport{min-height:180px}
}
@media(min-width:661px) and (max-width:900px){body[data-scene=battle] main.console{grid-template-columns:minmax(0,1fr) 230px}}
@media(max-width:660px){
  body[data-scene=battle] .brand span{font-size:14px;letter-spacing:.08em;white-space:nowrap}
  body[data-scene=battle] .brand img{width:21px;height:21px}
  body[data-scene=battle] .brand-rule,body[data-scene=battle] .brand i{display:none}
  body[data-scene=battle] .tools{gap:4px}
  body[data-scene=battle] .tools button{font-size:10px;padding:5px}
  body[data-scene=battle] .viewport{height:64dvh;min-height:340px;flex:none}
  body[data-scene=battle] #fleet{grid-template-columns:repeat(2,minmax(0,1fr))}
  body[data-scene=battle] .card{grid-template-columns:34px minmax(0,1fr) 28px;padding:5px;column-gap:4px;min-height:48px}
  body[data-scene=battle] .card canvas{width:34px;height:30px}
  body[data-scene=battle] .card b{font-size:11px}
  body[data-scene=battle] .card small{font-size:8px}
  body[data-scene=battle] .camera-actions .quiet,body[data-scene=battle] .mode button{min-height:36px;font-size:11px}
}
.radio-chatter{position:absolute;right:16px;bottom:38px;width:min(360px,80%);contain:layout paint;transform:translateZ(0);padding:8px 11px;border-right:2px solid #69c987;background:linear-gradient(90deg,#06201300,#062013db);color:#91e6a3;text-shadow:0 1px 3px #000;font:12px/1.5 Consolas,monospace;pointer-events:none;text-align:right}
.radio-chatter[hidden]{display:block;visibility:hidden}.radio-chatter b{display:block;font-size:10px;letter-spacing:1.2px;color:#66bb7d}.radio-chatter span{display:block}.radio-chatter[data-urgent=true]{border-color:#b4ffc3;color:#bcffc8}
.audio-slider{display:grid;grid-template-columns:120px 1fr;align-items:center;gap:18px;font-size:13px;margin:22px 0}.audio-slider input{width:100%;accent-color:var(--teal)}.audio-check{display:flex;align-items:center;gap:8px;font-size:13px}.audio-check input{accent-color:var(--teal)}.audio-note{margin-top:16px}.audio-link{display:block;color:var(--teal);font-size:13px;margin:18px 0}#audioMix{width:390px}
