/* Command atelier: one material, type and interaction system at every depth.
   Static surfaces; no backdrop blur, full-screen filters or perpetual UI loops. */
html body.map-cockpit{--atelier-ink:#e4e9ed;--atelier-muted:#a8b5bf;--atelier-edge:#9fb3c12c;--atelier-gold:#cfbb89;--atelier-shadow:0 16px 48px #07101955;--atelier-surface:var(--bloc-base,#182633);--atelier-raised:var(--bloc-panel,#263b49);font-family:Inter,"Segoe UI","PingFang SC","Microsoft YaHei",system-ui,sans-serif;font-variant-numeric:tabular-nums;line-height:1.5}
html body.map-cockpit :is(button,input,select,textarea){font-family:inherit}
html body.map-cockpit :is(#managementOverlay,#modal,#jointForceDetail,#unitHoverStatus,#armyCommandBar,#serviceCommandBar){color:var(--atelier-ink);font-variant-numeric:tabular-nums}
html body[data-strategic-bloc].map-cockpit :is(#managementOverlay,#modal>article,#jointForceDetail){background:var(--atelier-surface)!important;border:1px solid var(--atelier-edge)!important;border-top-color:#c3cbd15c!important;border-radius:8px!important;box-shadow:var(--atelier-shadow)!important;backdrop-filter:none!important}
html body[data-strategic-bloc].map-cockpit :is(#managementOverlay>.management-head,#modal>article>header,#jointForceDetail>header){background:linear-gradient(100deg,var(--bloc-head),var(--atelier-surface))!important;border-bottom:1px solid var(--atelier-edge)!important;padding:16px 22px;gap:16px}
html body[data-strategic-bloc].map-cockpit #managementTitle{font-size:23px;font-weight:600;letter-spacing:1px;line-height:1.3}
html body[data-strategic-bloc].map-cockpit :is(#managementKicker,#modalType){font-size:10px;letter-spacing:1.8px;color:var(--atelier-muted)}
html body[data-strategic-bloc].map-cockpit #managementBody{scrollbar-gutter:stable;scroll-padding:20px;line-height:1.65}
html body[data-strategic-bloc].map-cockpit :is(#managementBody,#modal>article,#jointForceDetail) :is(h2,h3,h4){color:var(--atelier-ink);text-wrap:balance;line-height:1.45}
html body[data-strategic-bloc].map-cockpit :is(#managementBody,#modal>article) h3{font-size:16px;font-weight:600;margin-block:18px 10px;padding-bottom:9px;border-bottom:1px solid var(--atelier-edge)}
html body[data-strategic-bloc].map-cockpit :is(#managementBody,#modal>article) h4{font-size:13px;font-weight:600;margin-block:14px 8px;color:var(--atelier-gold)}
html body[data-strategic-bloc].map-cockpit :is(#managementBody,#modal>article) p{line-height:1.75;overflow-wrap:anywhere}
html body[data-strategic-bloc].map-cockpit :is(#managementBody,#modal>article,#jointForceDetail) :is(small,.muted,.note,.hint){color:var(--atelier-muted);line-height:1.65}
html body[data-strategic-bloc].map-cockpit :is(#managementBody,#modal>article,#jointForceDetail) :is(.card,.politics-section,.production-line,.construction-card,.diplomacy-card,.equipment-card,.research-card,.intel-card,.army-group-command,.army-command-card){background:var(--atelier-raised)!important;border:1px solid var(--atelier-edge)!important;border-radius:6px!important;box-shadow:inset 0 1px #ffffff04!important;padding:14px 16px;margin-bottom:10px}
html body[data-strategic-bloc].map-cockpit :is(#managementBody,#modal>article,#jointForceDetail) :is(table){border-collapse:separate;border-spacing:0;width:100%;font-size:13px;background:#08131b19;border:1px solid var(--atelier-edge);border-radius:5px}
html body[data-strategic-bloc].map-cockpit :is(#managementBody,#modal>article,#jointForceDetail) :is(th,td){padding:11px 14px;border-bottom:1px solid #aab9c11a;vertical-align:middle;line-height:1.55}
html body[data-strategic-bloc].map-cockpit :is(#managementBody,#modal>article,#jointForceDetail) th{font-weight:600;color:#b9c7d0;background:var(--bloc-head);font-size:11px;letter-spacing:.4px}
html body[data-strategic-bloc].map-cockpit :is(#managementBody,#modal>article,#jointForceDetail) tbody tr:nth-child(even){background:#b4c5cf05}
html body[data-strategic-bloc].map-cockpit :is(#managementBody,#modal>article,#jointForceDetail) tbody tr:hover{background:#b4c5cf0b}
html body[data-strategic-bloc].map-cockpit :is(#managementBody,#modal>article,#jointForceDetail) tr:last-child :is(td,th){border-bottom:0}
html body[data-strategic-bloc].map-cockpit :is(#managementBody,#modal>article,#jointForceDetail) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){border:1px solid #a7bdcc3b!important;border-radius:5px!important;padding:9px 11px;min-height:36px;background:#08131b33!important;color:var(--atelier-ink);box-shadow:inset 0 1px 2px #07101924}
html body[data-strategic-bloc].map-cockpit :is(#managementBody,#modal>article) :is(input[type=checkbox],input[type=radio],input[type=range]){accent-color:var(--atelier-gold)}
html body.map-cockpit :is(button,summary,a,input,select,textarea):focus-visible{outline:2px solid #e0c995!important;outline-offset:3px}
html body[data-strategic-bloc].map-cockpit :is(#managementBody,#modal>article,#jointForceDetail,#leftPanel) button{transition:background-color 100ms,border-color 100ms,color 100ms;box-shadow:none;border-radius:5px;line-height:1.4}
html body[data-strategic-bloc].map-cockpit :is(#managementBody,#modal>article,#jointForceDetail) button:not(:disabled):hover{border-color:#d5c09199;filter:none;background-color:#71879725}
html body[data-strategic-bloc].map-cockpit :is(#managementBody,#modal>article,#jointForceDetail) button:disabled{opacity:.48;cursor:not-allowed;filter:none}
html body[data-strategic-bloc].map-cockpit :is(#managementBody,#modal>article) :is(.tabs,.panel-tabs,.law-row,.focus-tabs,.sub-tabs){gap:6px;padding:4px 0 12px;border-bottom:1px solid var(--atelier-edge);margin-bottom:14px}
html body[data-strategic-bloc].map-cockpit :is(#managementBody,#modal>article) details{border:1px solid var(--atelier-edge);border-radius:5px;margin-block:8px;background:#07121b13}
html body[data-strategic-bloc].map-cockpit :is(#managementBody,#modal>article) summary{cursor:pointer;padding:11px 13px;color:#bbcbd5;font-size:12px;min-height:36px}
html body[data-strategic-bloc].map-cockpit :is(#managementBody,#modal>article) details[open]>summary{border-bottom:1px solid var(--atelier-edge);color:var(--atelier-gold);margin-bottom:10px}
html body[data-strategic-bloc].map-cockpit #leftPanel#leftPanel{background:linear-gradient(155deg,var(--bloc-panel),var(--bloc-base) 30%)!important;padding:16px!important}
html body[data-strategic-bloc].map-cockpit #leftPanel#leftPanel .command-shortcuts{gap:5px!important}
html body[data-strategic-bloc].map-cockpit #leftPanel#leftPanel .command-shortcuts button{font-size:13px;min-height:43px!important;padding:11px 13px!important;border-bottom:0!important;letter-spacing:.8px!important}
html body[data-strategic-bloc].map-cockpit #leftPanel#leftPanel .command-shortcuts button:hover{box-shadow:inset 2px 0 #d7c596!important}
html body[data-strategic-bloc].map-cockpit #leftPanel#leftPanel .command-leader{border-left:2px solid #b8b18c55!important;background:#d4e0e704!important}
html body[data-strategic-bloc].map-cockpit .resource-hud{background:#050e141e;padding:5px 0;gap:2px}
html body[data-strategic-bloc].map-cockpit .resource-hud button{border:0!important;border-right:1px solid #a6bac31a!important;border-radius:0!important;background:transparent!important;padding-inline:11px;font-size:12px}
html body[data-strategic-bloc].map-cockpit :is(#armyCommandBar,#serviceCommandBar){border-radius:7px!important;background:linear-gradient(125deg,var(--bloc-panel),var(--bloc-base))!important;border:1px solid #a7bdc247!important;box-shadow:0 8px 26px #06101b48!important}
html body[data-strategic-bloc].map-cockpit :is(.command-selection,.service-command-header){padding-bottom:11px;border-bottom:1px solid var(--atelier-edge)}
html body[data-strategic-bloc].map-cockpit .command-primary button{font-weight:600;letter-spacing:.6px}
html body[data-strategic-bloc].map-cockpit :is(.command-primary,#serviceCommandBar) button[aria-pressed=true]{border-color:#d7897f!important;background:#753f43!important;color:#ffebe6!important}
html body[data-strategic-bloc].map-cockpit .command-details-button{background:#cbd7df0a!important;border:1px solid #aabec550!important;color:#e2d8be;font-weight:500}
html body[data-strategic-bloc].map-cockpit #unitHoverStatus{background:var(--atelier-surface)!important;border-radius:6px!important;border-top:2px solid #cab78488!important;box-shadow:0 9px 24px #06101b50!important;line-height:1.6}
html body[data-strategic-bloc].map-cockpit .unit-matchup table{table-layout:fixed}
html body[data-strategic-bloc].map-cockpit .unit-matchup thead{z-index:2;background:var(--bloc-head)}
html body[data-strategic-bloc].map-cockpit .unit-matchup thead th{padding:15px 12px;color:#e0e6ea}
html body[data-strategic-bloc].map-cockpit .unit-matchup td{font-size:16px;font-weight:600;font-variant-numeric:tabular-nums}
html body[data-strategic-bloc].map-cockpit .unit-matchup td small{font-size:10px;font-weight:400}
html body[data-strategic-bloc].map-cockpit .matchup-scroll{border-color:var(--atelier-edge);background:var(--atelier-surface);border-radius:5px}
html body[data-strategic-bloc].map-cockpit #managementBody .mr-tech{border-radius:6px;background:linear-gradient(150deg,#a0b4c00c,transparent 60%),var(--atelier-surface)!important;border:1px solid #a5bac426!important;box-shadow:inset 0 1px #d2e0e809!important}
html body[data-strategic-bloc].map-cockpit #managementBody .mr-tech.selected{border-color:var(--atelier-gold)!important;box-shadow:inset 0 2px var(--atelier-gold)!important}
html body[data-strategic-bloc].map-cockpit .mr-tech-art{background:radial-gradient(ellipse at 50% 65%,#c3d7e00e,transparent 67%)}
html body[data-strategic-bloc].map-cockpit .mr-tech strong{font-size:13px;font-weight:500}
html body[data-strategic-bloc].map-cockpit .mr-facts{grid-template-columns:1.4fr 1fr;gap:12px;padding:14px;border-radius:5px}
html body[data-strategic-bloc].map-cockpit .mr-queue{padding:12px 14px;border-radius:6px;background:var(--atelier-raised);border-color:var(--atelier-edge)}
html body[data-strategic-bloc].map-cockpit .mr-start{min-height:42px;background:#ceba88!important;color:#18232c!important;border:1px solid #e4d0a2!important;border-radius:5px!important;font-weight:650}
html body[data-strategic-bloc].map-cockpit .focus-node{border-radius:5px;box-shadow:none}
html body[data-strategic-bloc].map-cockpit :is(.focus-viewport,.focus-tree-viewport){background-color:var(--atelier-surface);border-color:var(--atelier-edge)}
html body.map-cockpit ::-webkit-scrollbar{width:7px;height:7px}
html body.map-cockpit ::-webkit-scrollbar-track{background:#09151c30}
html body.map-cockpit ::-webkit-scrollbar-thumb{background:#91a5b04d;border-radius:5px;border:1px solid #09151c30}
html body.map-cockpit ::-webkit-scrollbar-thumb:hover{background:#91a5b07d}
/* Legacy subpages use the same faction material instead of unrelated blue or
   green blocks. State colours are reserved for action, danger and readiness. */
html body[data-strategic-bloc].map-cockpit #managementBody :is(.weapon-stockpile-panel,.equipment-readiness-panel,.production-readiness-panel,.model-inspector,.recruit-preview,.recruit-doctrine,.management-summary>span,.full-production-line,.construction-layout>section,.construction-layout>aside,.resource-place-card,.resource-development-card,.command-unit-row,.service-model-card){background:var(--atelier-raised)!important;border:1px solid var(--atelier-edge)!important;border-radius:6px;box-shadow:none;color:var(--atelier-ink)}
html body[data-strategic-bloc].map-cockpit #managementBody :is(.weapon-stock-row,.model-caption,.model-composition button,.construction-city-grid button,.building-palette button,.construction-layout aside article){background:var(--atelier-surface)!important;border:1px solid var(--atelier-edge)!important;border-radius:5px;color:var(--atelier-ink)}
html body[data-strategic-bloc].map-cockpit #managementBody :is(.model-stage,.research-model-stage){background:radial-gradient(ellipse at 50% 65%,#d6e0e017,transparent 68%),var(--atelier-surface)!important}
html body[data-strategic-bloc].map-cockpit :is(#managementBody,#modal>article) button:where(:not(.mr-tech):not(.focus-node):not(.danger):not(.primary):not(.recruit-submit):not(.mr-start):not([data-start-focus-full])){background-color:var(--atelier-raised)!important;border-color:var(--atelier-edge)!important;color:var(--atelier-ink)}
html body[data-strategic-bloc].map-cockpit :is(#managementBody,#modal>article) :is(button.primary,.recruit-submit,.mr-start){background:#cdbb91!important;color:#18222b!important;border-color:#e3d4af!important}
html body[data-strategic-bloc].map-cockpit #managementBody :is(button.active,button[aria-pressed=true],.building-palette button.active,.model-composition button[aria-pressed=true]){border-color:var(--atelier-gold)!important;box-shadow:inset 0 2px var(--atelier-gold)!important;background-color:var(--bloc-head)!important}
html body[data-strategic-bloc].map-cockpit #managementBody .recruit-cost{grid-template-columns:.9fr 1.35fr .8fr;gap:18px;padding:18px 0}
html body[data-strategic-bloc].map-cockpit #managementBody .recruit-cost b{font-family:inherit;font-size:clamp(16px,1.7vw,22px);font-weight:550;line-height:1.5;font-variant-numeric:tabular-nums;letter-spacing:0}
html body[data-strategic-bloc].map-cockpit #managementBody .recruit-step>b{background:var(--bloc-head);color:var(--atelier-gold)}
html body[data-strategic-bloc].map-cockpit #managementBody .weapon-stockpile-panel{padding:18px 20px}
html body[data-strategic-bloc].map-cockpit #managementBody .weapon-stockpile-panel h2{font-size:18px;line-height:1.5;font-weight:600}
html body[data-strategic-bloc].map-cockpit #managementBody .weapon-stock-list{gap:10px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
html body[data-strategic-bloc].map-cockpit #managementBody .weapon-stock-row{padding:14px;align-items:flex-start;gap:12px}
html body[data-strategic-bloc].map-cockpit #managementBody .weapon-stock-row strong{font-size:20px;color:#c5d2ba}
html body[data-strategic-bloc].map-cockpit #managementBody .weapon-stock-row.deficit{border-left:2px solid #c77970!important}
html body[data-strategic-bloc].map-cockpit #managementBody .weapon-stock-row.deficit :is(strong,em){color:#dc9a8b}
html body[data-strategic-bloc].map-cockpit #managementBody .weapon-stock-row.surplus{border-left:2px solid #99b5a3!important}
html body[data-strategic-bloc].map-cockpit #managementBody .construction-finish-bar{background:var(--bloc-head)!important;border:1px solid var(--atelier-edge);border-radius:5px;margin:12px 0;padding:12px;gap:12px;color:var(--atelier-muted)}
html body[data-strategic-bloc].map-cockpit #managementBody .construction-flow-hint{background:#cfbb890b;border:0;border-left:2px solid #cfbb8970;padding:10px 12px;color:#c9bfaa;font-size:12px}
html body[data-strategic-bloc].map-cockpit #managementBody .construction-layout{grid-template-columns:220px minmax(250px,1fr) minmax(220px,.75fr);gap:16px}
html body[data-strategic-bloc].map-cockpit #managementBody .construction-layout>section,html body[data-strategic-bloc].map-cockpit #managementBody .construction-layout>aside{padding:16px}
html body[data-strategic-bloc].map-cockpit #managementBody .construction-layout h3{margin-top:0}
html body[data-strategic-bloc].map-cockpit #managementBody :is(.building-palette,.construction-city-grid){gap:9px}
html body[data-strategic-bloc].map-cockpit #managementBody :is(.building-palette,.construction-city-grid) button{padding:11px 12px;gap:4px}
@media(max-width:1000px){html body[data-strategic-bloc].map-cockpit #managementBody .construction-layout{grid-template-columns:190px minmax(0,1fr)}html body[data-strategic-bloc].map-cockpit #managementBody .construction-layout>aside{grid-column:1/-1}}
@media(max-width:640px){html body[data-strategic-bloc].map-cockpit #managementBody .construction-layout{grid-template-columns:1fr}html body[data-strategic-bloc].map-cockpit #managementBody .recruit-cost{gap:8px}}
html body[data-strategic-bloc].map-cockpit :is(.command-header-menu,#diplomacyChannel,#militaryIntelPanel,#battlefieldBriefing){background:var(--atelier-surface)!important;border:1px solid var(--atelier-edge)!important;border-radius:6px;box-shadow:var(--atelier-shadow);color:var(--atelier-ink);backdrop-filter:none!important}
html body[data-strategic-bloc].map-cockpit :is(.command-header-menu,#diplomacyChannel)>header{background:var(--bloc-head)!important;border-bottom:1px solid var(--atelier-edge);padding:16px 18px}
html body[data-strategic-bloc].map-cockpit :is(.command-header-menu,#diplomacyChannel,#armyCommandBar,#serviceCommandBar,.map-command-header) :is(button,select){background-color:var(--atelier-raised);border-color:var(--atelier-edge);color:var(--atelier-ink);font-family:inherit}
html body[data-strategic-bloc].map-cockpit :is(.command-header-menu,.map-command-header) button[aria-pressed=true]{background:#cdbb91!important;color:#18222b!important;border-color:#e3d4af!important}
html body[data-strategic-bloc].map-cockpit :is(.command-header-menu,.map-command-header) button[aria-pressed=true] :is(span,b,strong,svg){color:#18222b!important}
html body[data-strategic-bloc].map-cockpit #diplomacyChannel :is(textarea,input){background:var(--atelier-surface);color:var(--atelier-ink);border-color:var(--atelier-edge);font-family:inherit;line-height:1.6}
html body[data-strategic-bloc].map-cockpit #diplomacyChannel .chat-messages article p{background:var(--atelier-raised);border-color:var(--atelier-edge);line-height:1.7;padding:12px 14px}
html body[data-strategic-bloc].map-cockpit #diplomacyChannel .chat-messages .is-mine p{background:var(--bloc-head);border-left:2px solid var(--atelier-gold)}
html body[data-strategic-bloc].map-cockpit #diplomacyChannel>nav button{background:none;color:var(--atelier-muted)}
html body[data-strategic-bloc].map-cockpit #diplomacyChannel>nav button[aria-pressed=true]{color:var(--atelier-gold);border-bottom-color:var(--atelier-gold);background:#cfbb8909}
html body[data-strategic-bloc].map-cockpit #managementBody .full-focus-canvas{background-color:var(--atelier-surface)!important;border-color:var(--atelier-edge)}
html body[data-strategic-bloc].map-cockpit #managementBody :is(.archive-pane,.focus-detail,.focus-time-status,.focus-rewards,.condition-list,.policy-flow){background:var(--atelier-raised)!important;border-color:var(--atelier-edge)!important}
html body[data-strategic-bloc].map-cockpit #managementBody .full-focus-node{background:var(--atelier-raised)!important;border-color:var(--atelier-edge)!important;box-shadow:0 3px 7px #07101922!important;border-radius:5px}
html body[data-strategic-bloc].map-cockpit #managementBody .full-focus-node.focus-selected{border-color:var(--atelier-gold)!important;box-shadow:inset 0 2px var(--atelier-gold)!important}
html body[data-strategic-bloc].map-cockpit #managementBody .focus-detail-action button{background:#cdbb91!important;color:#18222b!important;min-height:42px}
html body[data-strategic-bloc].map-cockpit #managementBody .focus-detail-action{background:var(--atelier-raised)!important;border-color:var(--atelier-edge)}
html body[data-strategic-bloc].map-cockpit #managementBody :is(.focus-rewards,.condition-list)>*{background:#080e151c!important;border-left:2px solid #cfbb8966!important;padding:10px 12px;color:var(--atelier-ink)}
html body[data-strategic-bloc].map-cockpit #managementBody #fullFocusSearch{background:var(--atelier-surface)!important;border:1px solid var(--atelier-edge)!important;color:var(--atelier-ink);font-family:inherit}
html body[data-strategic-bloc].map-cockpit #modal .unit-matchup :is(.matchup-examples,.matchup-note,td small){font-family:inherit;letter-spacing:0!important;font-weight:400;line-height:1.65;font-size:12px}
html body[data-strategic-bloc].map-cockpit #modal .unit-matchup tbody th{background:#b7c3cc06}
html body[data-strategic-bloc].map-cockpit #modal .unit-matchup .matchup-group th{background:var(--bloc-head);padding-block:8px}
/* Preserve counters and click targets above the single real-geometry layer. */
#mapModels3D{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:6;contain:strict}
#mapModels3D[hidden],body.management-open #mapModels3D,body:has(#modal:not(.hidden)) #mapModels3D{display:none!important}
/* Hide the entire fallback artwork, including animated aircraft silhouettes.
   Keep its layout box as the WebGL anchor and the parent as the hit target. */
.map-wrap .unit-model[data-map3d=ready]{opacity:0!important}
body .map-wrap .has-model .unit-model:not([data-map3d=ready]){filter:drop-shadow(2px 5px 2px #101d2855)}
body #combinedForcesOverlay .has-model[data-branch=navy] .naval-plan-model{filter:none!important}
/* Berth adjustments belong to the ship image, not its count or map hit target. */
body #combinedForcesOverlay .has-model:is([data-branch=navy],[data-branch=transport]) .naval-plan-model {
 translate:calc(var(--berth-x,0px) + var(--activity-x,0px)) calc(var(--berth-y,0px) + var(--activity-y,0px));
}
body #combinedForcesOverlay .has-model[data-branch=transport] {width:var(--ship-width)!important;height:calc(var(--ship-width)*.5)!important;min-width:0!important;max-width:none!important;display:block!important}
body #combinedForcesOverlay .has-model[data-branch=transport] .joint-symbol {display:block;position:absolute;inset:0;transform:none!important}
body #combinedForcesOverlay .has-model[data-branch=transport] .naval-plan-model {width:var(--ship-width)!important;height:calc(var(--ship-width)*.5)!important;min-height:0!important;transform:rotate(var(--ship-angle,0deg));transform-origin:center;filter:none!important}
body #combinedForcesOverlay .has-model[data-branch=transport] .model-counter {position:absolute;left:50%;top:calc(50% + 15px);transform:translateX(-50%);white-space:nowrap;pointer-events:none}
body #combinedForcesOverlay .model-counter,body #armyMarkerOverlay .model-counter{position:relative;z-index:8;border:1px solid #d4e1e54d;border-radius:2px;background:#172d3be8;box-shadow:0 2px 4px #08131c35}
/* Model labels follow displaced air/naval silhouettes. A rectangle around the
   original ground anchor would highlight the wrong co-located unit. */
html body.map-cockpit .map-wrap .screen-army-cluster.has-model:is(:hover,:focus-visible,.selected){outline:none!important;box-shadow:none!important;border-color:transparent!important}
html body.map-cockpit .map-wrap .screen-army-cluster.has-model:is(:hover,:focus-visible,.selected) .model-counter{border-color:#dbc68f!important;box-shadow:0 0 0 1px #dbc68f88!important}
@media(max-width:760px){html body[data-strategic-bloc].map-cockpit :is(#managementBody,#modal>article) :is(th,td){padding:9px 8px}html body[data-strategic-bloc].map-cockpit #leftPanel#leftPanel{padding:12px!important}html body[data-strategic-bloc].map-cockpit :is(#managementBody,#modal>article) :is(.card,.production-line,.construction-card){padding:12px}html body[data-strategic-bloc].map-cockpit #managementTitle{font-size:20px}}
@media(prefers-reduced-motion:reduce){html body.map-cockpit :is(button,summary,a,input,select,textarea){transition:none!important}}

.naval-berth-anchor{display:none}.berth-displaced .naval-berth-anchor{display:block;position:absolute;left:50%;top:50%;width:var(--berth-length);height:1px;background:#c8d9dc66;transform-origin:0 50%;transform:rotate(var(--berth-angle));pointer-events:none;z-index:-1}.berth-displaced .naval-berth-anchor:after{content:"";position:absolute;right:-3px;top:-3px;width:6px;height:6px;border:1px solid #dce5e4;border-radius:50%;background:#345267}.berth-displaced .joint-location-label{display:block!important;position:absolute;top:calc(50% + 32px);left:50%;transform:translateX(-50%);white-space:nowrap;font-size:0!important;color:#d8e5e8}.berth-displaced .joint-location-label:before{content:"舰队位置";font-size:10px}

html body[data-strategic-bloc].map-cockpit #managementBody .recruit-workspace{max-width:1320px;padding:15px 24px 32px;container-type:normal}
html body[data-strategic-bloc].map-cockpit #managementBody .recruit-workspace>.workspace-heading{padding:0 0 20px;margin:0 0 20px;border-bottom:1px solid #a7bdca30;align-items:center;gap:20px}
html body #managementBody .recruit-workspace>.workspace-heading h2{font-size:26px;line-height:1.5;margin:4px 0}
html body #managementBody .recruit-workspace>.workspace-heading p{font-size:12px;line-height:1.8;color:#a7bac8;margin:6px 0 0}
html body #managementBody .recruit-layout{grid-template-columns:minmax(360px,1fr) minmax(330px,.95fr);gap:28px;align-items:start}
html body #managementBody .recruit-form{padding:22px 24px;background:var(--bloc-panel,#23384c);border:1px solid #a4bcc72b;border-radius:7px}
html body #managementBody .recruit-step{margin:0 0 22px;min-width:0}
html body #managementBody .recruit-step>label{display:flex;gap:10px;align-items:center;font-size:13px;margin-bottom:11px;line-height:1.5}
html body #managementBody .recruit-step>label i{display:grid;place-items:center;width:24px;height:24px;border:1px solid #b3c4cf33;border-radius:4px;font:10px/1 sans-serif;color:#c7b892;background:#ffffff05}
html body #managementBody .recruit-step>select{width:100%;min-height:42px;padding:10px 12px;line-height:1.5;background:var(--bloc-base,#142739);color:#d5e0e8;border:1px solid #9ab3c340;border-radius:4px;font-size:12px}
html body #managementBody .recruit-step>small{display:block;line-height:1.7;margin:9px 0 0;color:#a6bac7;font-size:11px}
html body #managementBody .recruit-count-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
html body #managementBody .recruit-count-presets{display:flex;gap:7px;margin:0}
html body #managementBody .recruit-count-presets button{padding:8px 12px;min-width:59px;min-height:36px;font-size:11px}
html body #managementBody .recruit-quantity{display:flex;align-items:center;gap:8px;margin:0;font-size:11px;color:#aabfcc}
html body #managementBody .recruit-quantity input{width:60px;min-height:36px;padding:7px}
html body[data-strategic-bloc].map-cockpit #managementBody .recruit-cost{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:16px 0;margin:2px 0 16px;border-top:1px solid #a4bdcc26;border-bottom:1px solid #a4bdcc26}
html body[data-strategic-bloc].map-cockpit #managementBody .recruit-cost b{font-size:20px;line-height:1.65;white-space:normal;overflow-wrap:anywhere;color:#e5ddca}
html body #managementBody .recruit-cost small{display:block;font-size:10px;line-height:1.7;color:#9eb4c3}
html body #managementBody .recruit-submit{min-height:46px;width:100%;margin:12px 0;font-size:13px}
html body #managementBody .recruit-feedback{font-size:11px;line-height:1.7;margin:8px 0;color:#c7bfae;min-height:0}
html body #managementBody .recruit-note{display:none}
html body #managementBody .recruit-auto{display:flex;gap:8px;align-items:center;font-size:11px;color:#b2c3d0;margin:5px 0 16px}
html body #managementBody .recruit-requirements{border-top:1px solid #a4bdcc26;padding-top:13px;overflow-x:auto;font-size:11px}
html body #managementBody .recruit-requirements summary{cursor:pointer;color:#c5b58e}
html body #managementBody .recruit-requirements td,html body #managementBody .recruit-requirements th{padding:10px 8px;line-height:1.5;text-align:right}
html body #managementBody .recruit-requirements :is(td,th):first-child{text-align:left}
html body #managementBody .recruit-preview{grid-row:auto;min-width:0;padding:20px 22px;background:var(--bloc-head,#203346);border:1px solid #a4bcc72b;border-radius:7px}
html body #managementBody .recruit-preview .model-stage{height:320px;min-height:260px;margin-bottom:16px}
html body #managementBody .recruit-preview .model-composition{max-height:170px;overflow:auto;scrollbar-width:thin}
html body #managementBody .recruit-model-note{font-size:10px;color:#9bafbd;line-height:1.7;margin:12px 0}
html body #managementBody .recruit-doctrine{border-top:1px solid #9cb6c526;padding:14px 0 0;background:none!important;font-size:11px;line-height:1.8}
html body #managementBody .recruit-doctrine summary{cursor:pointer;color:#c8b995}
html body #managementBody .recruit-doctrine p{color:#a9bdcb;margin:8px 0 0;font-size:11px;line-height:1.8}
html body #managementBody .recruit-queue-section{margin-top:26px;padding-top:18px}
html body #managementBody .recruitment-queue{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
html body #managementBody .recruitment-queue article{padding:14px;gap:12px;min-width:0;border:1px solid #a4bcc72b;border-radius:5px;background:var(--bloc-panel,#253b50)}
html body #managementBody .recruitment-queue article>div{min-width:0}.recruitment-queue article b{overflow-wrap:anywhere}
html body #managementBody .recruitment-queue article small{line-height:1.8;font-size:10px}
@media(max-width:1050px){html body #managementBody .recruit-layout{grid-template-columns:minmax(290px,1fr) minmax(270px,.9fr);gap:16px}html body #managementBody .recruit-form,html body #managementBody .recruit-preview{padding:17px}html body #managementBody .recruitment-queue{grid-template-columns:1fr}}
@media(max-width:760px){html body[data-strategic-bloc].map-cockpit #managementBody .recruit-workspace{padding:10px}html body #managementBody .recruit-layout{grid-template-columns:1fr}html body #managementBody .recruit-preview{grid-row:auto}html body #managementBody .recruit-workspace>.workspace-heading{align-items:flex-start;flex-wrap:wrap}html body #managementBody .recruit-preview .model-stage{height:250px;min-height:230px}}
html body.map-cockpit.management-open #managementOverlay.management-overlay:has(#managementBody[data-management-tab="training"]){position:fixed;inset:0!important;width:100%!important;max-width:none!important;max-height:none!important;height:100dvh!important;margin:0!important;border-radius:0;grid-template-rows:76px minmax(0,1fr);background:var(--bloc-base,#172434)!important}
html body #managementOverlay:has(.recruit-workspace)>.management-head{height:76px;min-height:76px;padding:12px 22px!important;box-sizing:border-box;align-items:center}
html body.map-cockpit.management-open #managementOverlay:has(.recruit-workspace) #managementBody{padding:12px 22px 24px!important;min-height:0;overflow:auto}
.flight-planform {display:none;transform-origin:200px 150px;transform:rotate(var(--flight-nose,0deg))}
.map-wrap .has-model:is([data-visual-activity="air-patrol"],[data-visual-activity="air-transit"],[data-visual-activity="air-strike"],[data-visual-activity="air-combat"]) .unit-model:not([data-map3d="ready"]) > .flight-planform {display:inline}
.map-wrap .has-model:is([data-visual-activity="air-patrol"],[data-visual-activity="air-transit"],[data-visual-activity="air-strike"],[data-visual-activity="air-combat"]) .unit-model:not([data-map3d="ready"]) > image {opacity:0}
.mr-inspector .mr-open-stats {
 display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;
 margin:12px 0 0;padding:10px 12px;min-height:38px;text-align:start;
 border:1px solid var(--bloc-border,#506778);border-radius:4px;background:var(--bloc-head,#223447);color:#edf1f1;
}
.mr-open-stats span {font-size:12px;color:var(--bloc-accent,#c6d8dd)}
.mr-open-stats:focus-visible,.research-stat-head button:focus-visible {outline:2px solid currentColor;outline-offset:2px}
#managementOverlay:has(> #managementBody > .research-stat-page) > .management-head #managementClose {display:none}
#managementBody .research-stat-page {
 box-sizing:border-box;width:100%;height:100%;min-height:0;overflow:auto;overscroll-behavior:contain;
 padding:clamp(14px,3vw,40px);color:#e3e9ec;background:var(--bloc-panel,#192b39);text-align:start;
}
.research-stat-head,.research-stat-body {width:min(1150px,100%);margin:auto}
#managementBody .research-stat-head {
 position:static;display:flex;align-items:center;justify-content:flex-start;gap:20px;height:auto;min-height:0;padding:0 0 18px;
 border:0;border-bottom:1px solid var(--bloc-border,#536b77);background:none;box-shadow:none;
}
.research-stat-head h2,.research-stat-page h3 {margin:0;line-height:1.4;overflow-wrap:anywhere}
.research-stat-head small,.research-stat-page p,.research-matchup header span {color:#b8c7cc;line-height:1.55}
.research-stat-head button {flex:none;padding:8px 14px}
.research-stat-body {display:grid;grid-template-columns:minmax(0,1.65fr) minmax(235px,1fr);gap:clamp(16px,3vw,40px);align-items:start;padding:22px 0}
.research-stat-matchups,.research-stat-facts {min-width:0}
.research-stat-page p {margin:7px 0 16px;font-size:13px}
.research-matchup {margin:14px 0 24px}
#managementBody .research-matchup header {position:static;display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:8px;height:auto;padding:12px;background:var(--bloc-head,#253a49);border:0;box-shadow:none}
.research-matchup header h3 {font-size:15px}
.research-matchup header span,.research-stat-facts {font-size:13px}
#managementBody .research-matchup .matchup-scroll {max-height:none;overflow:visible}
#managementBody .research-matchup thead {position:static}
.research-stat-facts dl {margin:12px 0}
.research-stat-facts dl div {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:12px;align-items:baseline;padding:10px 0;border-bottom:1px solid var(--bloc-border,#50616d)}
.research-stat-facts dt {color:#bac8ce}
.research-stat-facts dd {margin:0;text-align:end;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
@media(max-width:760px){.research-stat-body{grid-template-columns:1fr}.research-stat-head{gap:10px}.research-stat-head h2{font-size:18px}}

body #armyMarkerOverlay .has-model .unit-model,
body #combinedForcesOverlay .has-model[data-branch=air] .unit-model {
 translate:calc(var(--ground-fit-x,0px) + var(--activity-x,0px)) calc(var(--ground-fit-y,0px) + var(--activity-y,0px));
}
