/* BUILD21: full-height command surface with legible controls. */
#app{--board-width:clamp(480px,40vw,600px)}
#app[data-drawer]:not([data-drawer=none]) #battle-hud>.command-wrap{display:none}
#app[data-board-expanded=true] #battle-hud>.battle-top{display:none}
.flagship-hit-feedback{position:fixed;inset:70px 0 0;z-index:24;pointer-events:none;--hit-color:93,207,255;box-shadow:inset 0 0 90px rgba(var(--hit-color),var(--hit-strength,.2));border:2px solid rgba(var(--hit-color),var(--hit-strength,.2))}
.flagship-hit-feedback[data-kind=hull]{--hit-color:246,162,84}.flagship-hit-feedback>span{position:absolute;left:50%;top:18%;transform:translateX(-50%);padding:8px 15px;border:1px solid rgba(var(--hit-color),.6);background:#07151ee8;color:rgb(var(--hit-color));font-size:14px;font-weight:600;white-space:nowrap;letter-spacing:.5px}
.history-pending{padding:15px;border:1px solid #b99d68;background:#5e49202e}.history-pending strong{font-size:15px;color:#efd7a0}.history-pending p{font-size:14px;line-height:1.7;margin:9px 0}.history-pending button{font-size:14px;min-height:44px;border:1px solid #a99260;padding:8px 12px}
@media(prefers-reduced-motion:reduce){.flagship-hit-feedback{box-shadow:none;border:0}}
#battle-hud .intel-drawer{position:fixed;top:78px;right:16px;bottom:16px;width:var(--board-width);max-width:calc(100vw - 32px);height:auto;max-height:none;z-index:35;border-color:#7a939b;background:#091721fa;box-shadow:0 16px 70px #000b;isolation:isolate}
#battle-hud .board-title{display:flex;align-items:center;gap:12px;flex:0 0 auto;padding:14px 18px;border-bottom:1px solid #4c677253;background:linear-gradient(105deg,#20343c,#111e2b)}
.board-title h3{font-size:18px;font-weight:500;color:#ead9ad;margin:0;line-height:1.3}.board-title small{display:block;font-size:10px;letter-spacing:1.8px;color:#a7bdc3;margin-bottom:5px}
#battle-hud .board-title #drawer-expand{margin-left:auto;font-size:13px;min-height:40px;border:1px solid #647c87;padding:6px 13px}
#battle-hud .board-title #drawer-close{margin-left:0;width:42px;min-height:42px;font-size:27px;border:1px solid #647c87}
#battle-hud .drawer-head{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:6px 12px}
#battle-hud .drawer-head button{font-size:16px;min-height:45px;padding:8px 12px}
#battle-hud .drawer-head button[aria-selected=true]{border-bottom:2px solid #dec388;background:#b1944e22;color:#f5deb0}
.board-context{display:flex;align-items:center;gap:12px;padding:12px 18px;border-bottom:1px solid #526d7655;flex:0 0 auto;background:#102530}
.board-context label{font-size:12px;color:#b3cbd0;flex:1;min-width:0}.board-context select{width:100%;margin-top:5px;background:#071620;border:1px solid #75949c;color:#f0e6c8;font:inherit;font-size:14px;min-height:40px;padding:7px 10px}
#board-command-status{width:165px;color:#a7c7cd;font-size:12px;line-height:1.7}
#battle-hud .drawer-body{flex:1 1 auto;padding:16px 18px;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#90aab0 #10202b}
#battle-hud .drawer-pane{gap:18px;min-width:0}
#battle-hud .drawer-pane[hidden],#battle-hud [data-board-status][hidden]{display:none!important}
#battle-hud .drawer-section-title{font-size:13px;letter-spacing:.4px;color:#dec793;margin-bottom:9px}
.board-footer{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:9px;padding:12px 18px;border-top:1px solid #6a818b66;background:#132631;flex:0 0 auto}
.board-footer>span{grid-column:1/-1;font-size:12px;color:#a9bfc6}.board-footer button{font-size:14px;min-height:44px;border:1px solid #7e9599;padding:8px 12px;color:#dce5df}.board-footer #board-pause{background:#d3ba7e;color:#111e23;border-color:#e2ce9f;font-weight:600}
#battle-hud #drawer-tactics .battle-command-tabs,.board-status-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:0;background:none;border:0;position:static}
#battle-hud #drawer-tactics .battle-command-tabs button,.board-status-tabs button{font-size:13px;min-height:43px;line-height:1.4;padding:8px 5px;border:1px solid #4f6b78;background:#112631;color:#b4cbd1;white-space:normal}
.board-status-tabs button[aria-selected=true]{color:#f3dca8;background:#55482d66;border-color:#b79e66}
#battle-hud #drawer-tactics .battle-command-pane{gap:20px}
#battle-hud #drawer-tactics .advanced-commands{gap:10px}
#battle-hud #drawer-tactics .advanced-commands button{min-height:76px;padding:12px 14px;font-size:15px;line-height:1.4}
#battle-hud #drawer-tactics .advanced-commands small{font-size:12px;line-height:1.6;color:#b2c8cf;margin-top:7px}
#battle-hud .formation-controls{gap:8px}#battle-hud .formation-controls button{font-size:14px;min-height:48px}
#battle-hud #drawer-tactics .battle-command-intro,#battle-hud #drawer-tactics .battle-command-unavailable{font-size:13px;line-height:1.8;color:#b5ccd2}
#battle-hud #drawer-tactics .strategy-reading strong{font-size:16px;line-height:1.6;color:#e0d4af}#battle-hud #drawer-tactics .strategy-reading p{font-size:13px;line-height:1.75;margin:6px 0 14px}
#battle-hud #drawer-tactics .strategy-plan-buttons{gap:10px}#battle-hud #drawer-tactics .strategy-plan-buttons button{min-height:82px;padding:12px;font-size:15px}#battle-hud #drawer-tactics .strategy-plan-buttons button small{font-size:12px;line-height:1.7;margin-top:6px}
#battle-hud .commander-heading strong{font-size:21px}#battle-hud .commander-heading small{font-size:12px}#battle-hud .commander-panel p{font-size:14px;line-height:1.8}#battle-hud .commander-resource{font-size:14px;margin-top:15px}
#battle-hud .autonomy-panel{gap:10px}#battle-hud .autonomy-panel strong{font-size:15px}#battle-hud .autonomy-panel span{font-size:13px;line-height:1.7}#battle-hud .autonomy-panel button{font-size:13px;min-height:43px;padding:8px 12px}
.board-status-page{display:grid;gap:19px;min-width:0}.board-status-page>section,.board-status-page>aside{min-width:0}
#battle-hud .map-instructions,#battle-hud #engagement-state,#battle-hud .tactical-assessment>p,#battle-hud .transmission p{font-size:14px;line-height:1.8;color:#bfced3}
#battle-hud .navigation-panel .nav-heading,#battle-hud .nav-heading strong{font-size:15px}#battle-hud #navigation-eta{font-size:13px}#battle-hud #tactical-detail{font-size:13px;min-height:42px;border:1px solid #58717b;padding:6px 12px;margin-left:auto}
#battle-hud .tactical-assessment>small,#battle-hud .transmission small{font-size:12px;color:#a9c1c6}#battle-hud .tactical-assessment>strong{font-size:16px;margin:7px 0;line-height:1.7}
#battle-hud .metrics,#battle-hud .loss-trend{font-size:14px;line-height:1.8}#battle-hud #detail-toggle{font-size:14px;min-height:44px;padding:8px 12px;border:1px solid #5e7782}
#battle-hud .operation-stages>strong{font-size:17px}#battle-hud .operation-stages p,#battle-hud .operation-stages li{font-size:14px;line-height:1.8}
#battle-hud .transmission img,#battle-hud .transmission .commander-atlas{width:48px;height:48px;flex-basis:48px}#battle-hud .voice-caption{font-size:12px;line-height:1.7}
#battle-hud #drawer-map{gap:15px}#battle-hud .radar-heading{font-size:15px;margin-bottom:12px}#battle-hud #radar-toggle{min-width:40px;min-height:40px;font-size:22px}
#battle-hud .radar-panel canvas{width:100%;height:auto;aspect-ratio:1.12;border:1px solid #476571;touch-action:none}
#battle-hud .radar-key{font-size:13px;gap:18px;margin-top:10px;color:#c5d7da}
.map-tools{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.map-tools button{min-height:43px;font-size:13px;border:1px solid #567481;padding:8px 5px;background:#102530}.map-tools button[aria-pressed=true]{color:#efdbad;background:#6b563240;border-color:#b99e65}
#map-mode-hint{font-size:13px;line-height:1.7;color:#c4d6d8;margin:0}.board-map-help{font-size:13px;color:#9ebac3}.board-map-help summary{min-height:32px;cursor:pointer}.board-map-help p{font-size:13px;line-height:1.8}
#app[data-board-expanded=true] #battle-hud .intel-drawer{width:min(1000px,calc(100vw - 32px));left:50%;right:auto;transform:translateX(-50%)}
#app[data-board-expanded=true] #battle-hud .advanced-commands{grid-template-columns:repeat(3,minmax(0,1fr))}
#app[data-board-expanded=true] #battle-hud .strategy-plan-buttons{grid-template-columns:repeat(3,minmax(0,1fr))}
#app[data-board-expanded=true] #battle-hud #drawer-map{grid-template-columns:minmax(0,1.5fr) minmax(230px,1fr);align-items:start}
#app[data-board-expanded=true] #battle-hud #drawer-map .radar-panel{grid-row:1/4}
#app[data-board-expanded=true] #battle-hud .battle-top,#app[data-board-expanded=true] #battle-hud .command-wrap{visibility:hidden}
/* Battle controls use readable type and retain their command/status hierarchy. */
#battle-hud .battle-head p{font-size:13px;line-height:1.6}#battle-hud .chapter-label{font-size:11px}#battle-hud .campaign-status-label{font-size:12px}#battle-hud .campaign-chip{font-size:11px}
#battle-hud .view-controls button{font-size:14px;min-height:42px}#battle-hud .focus-controls button{font-size:12px;min-height:36px}#battle-hud .cinema-controls button{font-size:13px;min-height:36px}
#battle-hud .strength-line{font-size:12px}#battle-hud #intel-toggle{font-size:13px;min-height:38px}
#battle-hud .guide-copy strong{font-size:14px;line-height:1.5}#battle-hud .guide-copy p{font-size:12px;line-height:1.6}#battle-hud .unit-heading{font-size:12px;min-height:36px;height:auto}#battle-hud .unit-heading>button{font-size:12px;min-height:34px}
#battle-hud .unit-selector strong{font-size:13px}#battle-hud .unit-selector .unit-count{font-size:12px}#battle-hud .unit-selector .unit-order{font-size:11px}#battle-hud .unit-selector>button{min-height:64px}
#battle-hud .captain-status strong{font-size:15px}#battle-hud .captain-status small{font-size:12px}#battle-hud .captain-status p{font-size:12px}#battle-hud #captain-delegate{font-size:12px;min-height:38px}#battle-hud .captain-readings{font-size:12px;gap:12px}#battle-hud .thrust-controls button{font-size:12px;min-height:34px}
#battle-hud .commands strong{font-size:15px}#battle-hud .commands small{font-size:12px;line-height:1.5}#battle-hud .commands button{min-height:60px}#battle-hud .command-meta{font-size:12px;min-height:38px}#battle-hud .command-meta button{font-size:13px;min-height:34px}
#battle-hud .planning-banner strong,#battle-hud .planning-banner>span{font-size:12px}#battle-hud #resume-plan{font-size:14px;min-height:44px}#battle-hud .command-wrap{max-height:none;overflow:visible}
.custom-workspace .setup-steps button span{font-size:13px}.custom-workspace .setup-commander-grid strong{font-size:14px}.custom-workspace .setup-commander-grid em{font-size:12px}.custom-workspace .setup-commander-grid small{font-size:11px}.custom-workspace .setup-side-tabs strong{font-size:13px}.custom-workspace .setup-side-tabs small,.custom-workspace .setup-side-tabs b{font-size:11px}
.custom-workspace .fleet-workbench select,.custom-workspace .fleet-workbench input{font-size:14px}.custom-workspace .fleet-workbench label,.custom-workspace .setup-field-label{font-size:12px}.custom-workspace .fleet-unit-fields label>small{font-size:11px}.custom-workspace .fleet-unit-tabs strong{font-size:13px}.custom-workspace .fleet-unit-tabs small,.custom-workspace .fleet-unit-tabs b{font-size:11px}.custom-workspace .fleet-officer-brief p{font-size:13px}.custom-workspace .fleet-officer-brief small{font-size:12px}.custom-workspace .fleet-team-presets button,.custom-workspace .fleet-presets button{font-size:12px}
.custom-workspace .deploy-controls label,.custom-workspace .deploy-controls select{font-size:12px}.custom-workspace .deploy-presets button{font-size:12px}.custom-workspace .setup-review-side li{font-size:13px}.custom-workspace .setup-review-side li small{font-size:11px}.custom-workspace .setup-launch-rules label{font-size:13px}
#modal .modal-subtitle{font-size:15px;line-height:1.8}#modal .help-card p,#modal .quickstart-card p{font-size:14px;line-height:1.85}#modal button.primary-button{min-height:46px;font-size:14px}
@media(min-width:1181px){
 #app[data-drawer]:not([data-drawer=none]):not([data-board-expanded=true]) #battle-hud{padding-right:calc(var(--board-width) + 36px)}
 #app[data-drawer]:not([data-drawer=none]) #battle-hud .battle-top{grid-template-columns:1fr auto;gap:10px}
 #app[data-drawer]:not([data-drawer=none]) #battle-hud .camera-console{grid-column:1/-1;grid-row:2;flex-direction:row;justify-content:center;gap:8px}
 #app[data-drawer]:not([data-drawer=none]) #battle-hud .battle-head p{display:none}
 #app[data-drawer]:not([data-drawer=none]) #battle-hud .captain-readings{flex-wrap:wrap}
}
@media(max-width:1180px){
 #battle-hud .intel-drawer{inset:70px 12px 12px;width:auto;max-width:none}
 #app[data-drawer]:not([data-drawer=none]) #battle-hud>.battle-top,#app[data-drawer]:not([data-drawer=none]) #battle-hud>.command-wrap{visibility:hidden}
 #battle-hud .board-title #drawer-expand{display:none}#battle-hud .board-title #drawer-close{margin-left:auto}
 #battle-hud #drawer-map{grid-template-columns:minmax(0,1.4fr) minmax(180px,1fr);align-items:start}#battle-hud #drawer-map .radar-panel{grid-row:1/4}
}
@media(max-width:760px){
 #battle-hud .intel-drawer{inset:54px 6px 6px;max-height:none}
 #battle-hud .board-title{padding:11px 12px;gap:8px}.board-title h3{font-size:17px}.board-title small{display:none}
 #battle-hud .drawer-head{padding:5px 8px}#battle-hud .drawer-head button{font-size:15px;min-height:42px}
 .board-context{padding:9px 12px;gap:10px}.board-context label{font-size:12px}.board-context select{font-size:14px;min-height:40px;margin-top:4px}#board-command-status{width:110px;font-size:11px;line-height:1.6}
 #battle-hud .drawer-body{padding:12px;scrollbar-gutter:auto}.board-footer{padding:9px 12px;gap:7px}.board-footer>span{display:none}.board-footer button{font-size:13px;min-height:43px}
 #battle-hud #drawer-tactics .battle-command-tabs button,.board-status-tabs button{font-size:12px;min-height:42px}
 #battle-hud #drawer-tactics .advanced-commands button{font-size:14px;padding:10px;min-height:72px}#battle-hud #drawer-tactics .advanced-commands small{font-size:12px;margin-top:5px}
 #battle-hud #drawer-tactics .battle-command-pane{gap:17px}#battle-hud .formation-controls button{font-size:13px;min-height:43px}
 #battle-hud #drawer-map{display:grid;grid-template-columns:1fr;gap:10px}#battle-hud #drawer-map .radar-panel{grid-row:auto}#battle-hud .radar-panel canvas{aspect-ratio:1.35}
 #battle-hud .radar-heading{display:none}#battle-hud .radar-panel canvas{aspect-ratio:1.5}#battle-hud .radar-key{font-size:12px;margin-top:7px}.map-tools{gap:6px}.map-tools button{font-size:12px;min-height:42px}.board-map-help summary{min-height:24px}
 #battle-hud .battle-head h2{font-size:18px}#battle-hud .battle-head p{display:none}#battle-hud .chapter-label{font-size:10px}#battle-hud .campaign-status-label{font-size:11px}#battle-hud .campaign-chip{font-size:10px}
 #battle-hud .strength-line{font-size:11px}#battle-hud .strength-line strong{font-size:21px}#battle-hud .view-controls button{font-size:13px;min-height:40px;padding:7px 10px}
 #battle-hud .command-guide{min-height:0;padding:7px 9px}#battle-hud .guide-number{display:none}#battle-hud .guide-copy strong{font-size:12px}#battle-hud .guide-copy p{font-size:11px}
 #battle-hud .unit-heading{font-size:11px;min-height:32px;padding:0 8px}#battle-hud .unit-heading>button{font-size:11px;min-height:32px}#battle-hud .unit-selector>button{padding:6px 3px;min-height:49px}#battle-hud .unit-selector strong{font-size:12px}#battle-hud .unit-selector .unit-count{display:none}#battle-hud .unit-selector .unit-order{font-size:10px}
 #battle-hud .captain-console{padding:7px 9px}#battle-hud .captain-status strong{font-size:13px}#battle-hud .captain-status small{font-size:11px}#battle-hud .captain-status p{font-size:11px}#battle-hud .captain-portrait{width:34px;height:37px;flex-basis:34px}#battle-hud #captain-delegate{font-size:11px;min-height:35px}
 #battle-hud .captain-readings{font-size:11px;gap:9px;margin-top:6px;flex-wrap:wrap}#battle-hud .thrust-controls{display:none}
 #battle-hud .commands button{min-height:53px;padding:7px 3px}#battle-hud .commands strong{font-size:12px}#battle-hud .commands small{font-size:10px}#battle-hud .command-meta{font-size:11px;min-height:35px;padding:5px 8px}#battle-hud .command-meta button{font-size:12px;min-height:32px}
 #battle-hud .planning-banner{padding:7px 9px;gap:7px}#battle-hud .planning-banner>span{display:none}#battle-hud .planning-banner strong{font-size:11px}#battle-hud #resume-plan{font-size:13px;min-height:42px;padding:7px 12px}
 .custom-workspace .setup-steps button span{font-size:11px}.custom-workspace .setup-commander-grid strong{font-size:12px}.custom-workspace .setup-commander-grid em{font-size:10px}.custom-workspace .setup-commander-grid small{font-size:10px}.custom-workspace .setup-side-tabs strong{font-size:12px}.custom-workspace .setup-side-tabs b{font-size:10px}
 .custom-workspace .fleet-presets button,.custom-workspace .fleet-team-presets button{font-size:10px}.custom-workspace .fleet-unit-tabs strong{font-size:11px}.custom-workspace .fleet-unit-tabs small{font-size:10px}.custom-workspace .fleet-unit-tabs b{font-size:10px}.custom-workspace .fleet-unit-fields label>small{display:none}.custom-workspace .fleet-officer-brief p{font-size:12px}.custom-workspace .fleet-officer-brief strong{font-size:13px}
 .custom-workspace .setup-doctrine dt{font-size:11px}.custom-workspace .setup-doctrine dd{font-size:12px}.custom-workspace .setup-doctrine dl{grid-template-columns:75px 1fr}.custom-workspace .setup-footer-summary small{font-size:10px}.custom-workspace .deploy-presets button{font-size:10px}.custom-workspace .deploy-map>p{font-size:10px}
}
@media(max-height:650px) and (min-width:761px){
 #battle-hud .command-guide,#battle-hud .captain-readings,#battle-hud .captain-status p{display:none}#battle-hud .unit-selector>button{min-height:48px}#battle-hud .commands button{min-height:46px}#battle-hud .command-wrap{width:min(1000px,100%)}
 .board-title small{display:none}#battle-hud .board-title{padding:8px 14px}.board-context{padding:8px 14px}.board-footer{padding:8px 14px}.board-footer>span{display:none}
}
@media(max-height:540px) and (orientation:landscape){
 #battle-hud .intel-drawer{inset:6px;z-index:60}.board-context{padding:6px 12px}.board-context label{display:flex;gap:10px;align-items:center}.board-context select{margin:0}.board-title{display:none!important}#battle-hud .drawer-head{padding:4px 12px}#battle-hud .drawer-head button{min-height:36px}
 #battle-hud #drawer-tactics .advanced-commands{grid-template-columns:repeat(3,minmax(0,1fr))}#battle-hud #drawer-tactics .advanced-commands button{min-height:58px;padding:7px 10px}.board-footer{padding:6px 12px}.board-footer button{min-height:36px}
 #battle-hud #drawer-map{grid-template-columns:minmax(0,1.2fr) 1fr}#battle-hud #drawer-map .radar-panel{grid-row:1/4}#battle-hud .radar-panel canvas{aspect-ratio:1.8}
}
@media(prefers-reduced-motion:reduce){#intel-drawer{scroll-behavior:auto}}

/* BUILD21 tactical categories keep primary orders available within the board. */
#battle-hud #drawer-tactics .battle-command-tabs{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
#battle-hud #drawer-tactics .battle-command-tabs button{font-size:14px;min-height:44px;padding:8px 4px;letter-spacing:0;white-space:normal}
#battle-hud #drawer-tactics .battle-command-tabs button[aria-selected=true]{color:#f1d9a5;background:#5c4c3066;border-color:#c2a873}
#battle-hud #drawer-tactics .battle-command-pane{gap:16px}
#battle-hud #drawer-tactics .board-basic-intro{margin:0;font-size:14px;line-height:1.65}
#battle-hud #drawer-tactics .board-basic-orders{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
#battle-hud #drawer-tactics .advanced-commands button{min-width:0;min-height:74px;font-size:14px;padding:11px 12px}
#battle-hud #drawer-tactics .advanced-commands button strong{font-size:15px;line-height:1.45;font-weight:500}
#battle-hud #drawer-tactics .advanced-commands button small{display:block;font-size:12px;line-height:1.6;margin-top:5px;white-space:normal}
#battle-hud #drawer-tactics .advanced-commands button kbd{font-size:10px;opacity:.7}
#battle-hud #drawer-tactics .board-thrust{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#battle-hud #drawer-tactics .board-thrust button{font-size:14px;min-height:46px;border:1px solid #607e8a;padding:9px 6px;background:#102631;color:#c9d9dd}
#battle-hud #drawer-tactics .board-thrust button.active,#battle-hud #drawer-tactics .board-thrust button[aria-pressed=true]{border-color:#d6bb80;background:#6b56323d;color:#eed4a0}
#battle-hud #drawer-tactics .board-engine-note{font-size:13px;color:#a9c1cb;line-height:1.75;margin:9px 0 0}
#battle-hud #drawer-tactics .board-formation-orders,#battle-hud #drawer-tactics .board-sortie-order{display:grid;grid-template-columns:1fr}
#battle-hud #drawer-tactics .board-admiral-orders{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
#battle-hud #drawer-tactics .formation-controls button{font-size:14px;min-height:46px}
#battle-hud #drawer-tactics .battle-command-pane button:focus-visible{outline:2px solid #efd59a;outline-offset:2px}
#app[data-board-expanded=true] #battle-hud #drawer-tactics .board-basic-orders{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:760px){
 #battle-hud #drawer-tactics{gap:12px}
 #battle-hud #drawer-tactics .battle-command-tabs{gap:4px}
 #battle-hud #drawer-tactics .battle-command-tabs button{font-size:14px;min-height:44px;padding:7px 3px;line-height:1.4}
 #battle-hud #drawer-tactics .battle-command-pane{gap:12px}
 #battle-hud #drawer-tactics .board-basic-intro{font-size:12px;line-height:1.65}
 #battle-hud #drawer-tactics .advanced-commands button{font-size:14px;min-height:72px;padding:10px}
 #battle-hud #drawer-tactics .advanced-commands button strong{font-size:14px}
 #battle-hud #drawer-tactics .advanced-commands button small{font-size:12px;line-height:1.55;margin-top:5px}
 #battle-hud #drawer-tactics .board-basic-orders,#app[data-board-expanded=true] #battle-hud #drawer-tactics .board-basic-orders{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 #battle-hud #drawer-tactics .board-thrust{display:grid;gap:7px}
 #battle-hud #drawer-tactics .board-thrust button{font-size:14px;min-height:44px}
 #battle-hud #drawer-tactics .board-engine-note{font-size:12px}
}
@media(max-height:540px) and (orientation:landscape){
 #app[data-view=battle][data-drawer]:not([data-drawer=none])>.topbar{visibility:hidden}
 #battle-hud .drawer-body{padding:8px 16px}
 #battle-hud #drawer-tactics .board-basic-orders,#app[data-board-expanded=true] #battle-hud #drawer-tactics .board-basic-orders{grid-template-columns:repeat(3,minmax(0,1fr))}
 #battle-hud #drawer-tactics .board-basic-intro{display:none}
 #battle-hud #drawer-tactics .advanced-commands button{min-height:58px;padding:7px 10px}
}

/* Secondary tactical information opens on demand; all action cards remain
   visible by default at the360px command-board width. */
#battle-hud #battle-command-pane-coordination{gap:8px}
#battle-hud #battle-command-pane-coordination>.battle-command-intro{font-size:12px;line-height:1.6;margin:0;color:#a9c1cc}
#battle-hud #battle-command-pane-coordination .board-sortie-order button{min-height:48px;padding:8px 10px;display:flex;align-items:center;justify-content:space-between;gap:10px}
#battle-hud #battle-command-pane-coordination .board-sortie-order button strong{font-size:14px;white-space:nowrap}
#battle-hud #battle-command-pane-coordination .board-sortie-order button small{font-size:12px;margin:0;line-height:1.5}
#battle-hud #battle-command-pane-coordination .tactical-planning-panel{padding:8px}
#battle-hud #drawer-tactics .board-reading-disclosure{margin:0 0 8px}
#battle-hud #drawer-tactics .board-reading-disclosure summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;min-height:36px;font-size:12px;color:#aac2cb}
#battle-hud #drawer-tactics .board-reading-disclosure summary strong{font-size:14px;line-height:1.5;flex:1;font-weight:500}
#battle-hud #drawer-tactics .board-reading-disclosure summary>span{font-size:12px;white-space:nowrap;color:#d9c38e}
#battle-hud #drawer-tactics .board-reading-disclosure summary>span:after{content:' ＋'}
#battle-hud #drawer-tactics .board-reading-disclosure[open] summary>span:after{content:' −'}
#battle-hud #drawer-tactics .board-reading-disclosure p{font-size:12px;line-height:1.7;margin:8px 0 10px}
#battle-hud #drawer-tactics #battle-command-pane-coordination .strategy-plan-buttons{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
#battle-hud #drawer-tactics #battle-command-pane-coordination .strategy-plan-buttons button{min-height:70px;padding:8px;font-size:14px;line-height:1.4}
#battle-hud #drawer-tactics #battle-command-pane-coordination .strategy-plan-buttons button strong{font-size:14px;line-height:1.5}
#battle-hud #drawer-tactics #battle-command-pane-coordination .strategy-plan-buttons button small{font-size:12px;line-height:1.5;margin-top:3px}
#battle-hud #battle-command-pane-admiral{gap:9px}
#battle-hud #battle-command-pane-admiral .commander-panel{padding-bottom:8px}
#battle-hud #battle-command-pane-admiral .commander-resource{margin-top:8px}
#battle-hud #battle-command-pane-admiral .commander-panel p{font-size:12px;line-height:1.6;margin-top:7px}
#battle-hud .board-autonomy-help{font-size:12px;color:#a9c1cb;margin:0}
#battle-hud .board-autonomy-help summary{min-height:28px;cursor:pointer;color:#c8d8d9;font-size:12px;line-height:1.6}
#battle-hud .board-autonomy-help p{font-size:12px;line-height:1.7;margin:7px 0}
#battle-hud #battle-command-pane-admiral .autonomy-panel{gap:7px}
#battle-hud #battle-command-pane-admiral .autonomy-panel button{font-size:14px;min-height:44px;padding:7px 9px}
#battle-hud #battle-command-pane-admiral .board-admiral-orders button{min-height:64px;padding:9px 10px}
#battle-hud #board-status-operation .operation-stages ol{margin:12px 0 0;gap:8px}
#battle-hud .operation-stage-briefing{font-size:12px;margin:12px 0 0;border-top:1px solid #637e7960;padding-top:8px}
#battle-hud .operation-stage-briefing summary{min-height:30px;font-size:12px;line-height:1.7;cursor:pointer;color:#ccdbd7}
#battle-hud .operation-stage-briefing p{font-size:12px;line-height:1.8;margin:8px 0 0;color:#aac1cb}
#battle-hud #drawer-tactics details summary:focus-visible,#battle-hud #board-status-operation details summary:focus-visible{outline:2px solid #efd59a;outline-offset:2px}
/* The map uses the board's available height. Long help can expand explicitly,
   while the canvas and action controls fit together in the default view. */
#battle-hud #drawer-map{height:100%;min-height:0;grid-template-rows:minmax(140px,1fr) auto auto auto;align-content:stretch}
#app #battle-hud .intel-drawer #drawer-map .radar-panel{display:flex;flex-direction:column;align-self:stretch;min-height:0}
#app #battle-hud #drawer-map .radar-panel canvas{flex:1 1 0;min-height:120px;height:0;aspect-ratio:auto;width:100%}
#battle-hud #drawer-map .radar-heading,#battle-hud #drawer-map .radar-key{flex:0 0 auto}
#app[data-board-expanded=true] #battle-hud #drawer-map{grid-template-rows:auto auto minmax(0,1fr)}
@media(min-width:761px) and (max-width:1180px){#battle-hud #drawer-map{grid-template-rows:auto auto minmax(0,1fr)}}
@media(max-height:540px) and (orientation:landscape){
 #battle-hud #drawer-map{grid-template-rows:auto auto minmax(0,1fr)}
 #battle-hud #drawer-map .radar-heading{display:none}
}
/* Short laptop displays spend their height on orders instead of repeated
   headings. Keep the same readable action cards and persistent footer. */
@media(min-width:761px) and (min-height:541px) and (max-height:820px){
 #battle-hud .board-title{padding:8px 14px}
 #battle-hud .board-title small,.board-footer>span{display:none}
 #battle-hud .drawer-head button{min-height:42px}
 .board-context{padding:8px 14px}
 .board-context label{display:flex;align-items:center;gap:10px;white-space:nowrap}
 .board-context select{margin:0;width:auto;min-width:0;flex:1}
 #battle-hud .drawer-body{padding:12px 18px}
 .board-footer{padding:8px 14px}
 #battle-hud #drawer-map{gap:8px}
 #battle-hud #drawer-map .radar-heading{display:none}
}
