/* The map owns the viewport; management opens only when requested. */
body.map-cockpit{--surface:#1b303e;--surface-raised:#253e4d;--muted:#9ab1c1;--edge:#708d9d40;--accent:#9dc7db;color:#d9e6ee}
body.map-cockpit>header.map-command-header{position:relative;display:flex!important;flex-direction:column;gap:0!important;height:auto!important;min-height:0!important;padding:0 14px!important;background:#192e3b;border-bottom:1px solid #7693a352;box-shadow:0 2px 12px #09172330;z-index:60;overflow:visible}
.command-header-row{width:100%;display:flex;align-items:center;gap:8px;height:43px;min-width:0}
body.map-cockpit .command-header-row .brand{flex:none;font-family:inherit;font-size:17px;letter-spacing:2px;white-space:nowrap;margin-right:14px;line-height:1.2}
body.map-cockpit .command-header-row .brand b{font-size:12px;color:#92b2c5;letter-spacing:1px}
body.map-cockpit .command-header-row .brand small{display:none}
.command-header-row button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:29px;padding:4px 9px;background:transparent;border:1px solid transparent;font-size:11px;white-space:nowrap;color:#c4d6e1}
.command-header-row button:hover,.command-header-row button[aria-expanded=true]{background:#395363;border-color:#7193a66b;color:#f0f8ff}
.command-header-row .command-icon{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5}
.command-shortcuts{display:flex;gap:2px;border-left:1px solid var(--edge);padding-left:8px}
.command-header-space{flex:1;min-width:0}
body.map-cockpit .command-header-row .mobile-time-controls{display:flex!important;align-items:center;gap:3px;min-height:0;padding:0;border:0;flex:none;color:#c7d9e3}
body.map-cockpit .mobile-time-controls>span{padding:0 9px 0 0;font-size:11px;white-space:nowrap}
body.map-cockpit .mobile-time-controls .command-icon-wrap{display:none}
body.map-cockpit .mobile-time-controls button{min-width:27px;min-height:27px;padding:3px 6px;border-color:#6b889b30;font-size:10px;background:#2b4554}
body.map-cockpit .mobile-time-controls #pause{background:#476b80;border-color:#8caebf80;color:#eff8ff}
body.map-cockpit>header .command-map-toolbar{position:static!important;display:flex!important;align-items:center;justify-content:flex-start;gap:8px;padding:5px 0!important;min-height:39px;max-width:none!important;width:100%;margin:0!important;border:0;border-top:1px solid #66849430!important;border-radius:0;box-shadow:none;background:transparent;transform:none!important;overflow:hidden}
body.map-cockpit .command-map-toolbar .map-tools-title{display:none!important}
body.map-cockpit .command-map-toolbar .map-mode-toolbar{flex:1;display:flex!important;justify-content:center;gap:2px;padding:0!important;margin:0!important;border:0!important;min-width:0;overflow-x:auto}
body.map-cockpit .command-map-toolbar .map-mode-toolbar button{flex:0 1 132px;justify-content:center;min-height:29px;padding:5px 10px;font-size:11px!important;border-radius:3px;letter-spacing:0}
body.map-cockpit .command-map-toolbar .map-mode-toolbar button.active{background:#375b70;border-color:#8bafc46b;box-shadow:inset 0 -2px #a8d1e5}
body.map-cockpit .command-map-toolbar>.map-pointer-tools button,body.map-cockpit .command-map-toolbar>button{min-height:28px;padding:5px 9px;font-size:10px;background:#2a4656;border-color:#6c8b9b40;border-radius:3px;white-space:nowrap}
body.map-cockpit>main{position:relative;display:block!important;width:100%;height:calc(100dvh - var(--header-h,83px))!important;min-height:0;margin:0;padding:0;overflow:hidden}
body.map-cockpit main>.map-wrap{position:absolute!important;inset:0!important;display:block!important;grid-column:auto;grid-row:auto;min-width:0;width:100%!important;height:100%!important;overflow:hidden}
body.map-cockpit #map{width:100%;height:100%;display:block}

body.map-cockpit #rightPanel{display:none!important}
body.map-cockpit #leftPanel{display:block!important;position:fixed!important;inset:var(--header-h,83px) auto 0 0!important;width:min(340px,calc(100vw - 28px))!important;max-width:none;min-width:0;padding:20px!important;transform:translateX(-105%)!important;transition:none;z-index:58;background:#203746;border-right:1px solid #7693a36b;box-shadow:10px 0 28px #06141f30;overflow-y:auto;overscroll-behavior:contain}
body.map-cockpit.country-menu-open #leftPanel{transform:translateX(0)!important}
body.map-cockpit #leftPanel>*{visibility:visible!important;pointer-events:auto!important}
body.map-cockpit #leftPanel:before{content:"国家管理";margin-bottom:12px;letter-spacing:2px;color:#9eb8c8;font-size:10px}
body.map-cockpit #leftPanel h2{font-family:inherit;font-size:21px;font-weight:600;margin:0 28px 12px 0}
body.map-cockpit #leftPanel>.flag{width:70px;height:32px;margin:0 0 10px;float:left}
body.map-cockpit #leftPanel>.leaders{padding:0 0 10px 82px;min-height:34px;display:grid;gap:4px;font-size:11px}
body.map-cockpit #leftPanel #countrySelect{clear:both;display:block;width:100%;margin-bottom:12px;min-height:33px}
body.map-cockpit #leftCollapse{position:absolute;top:13px;right:12px;left:auto;min-width:30px;min-height:30px;background:transparent;border-color:var(--edge);font-size:19px}
.command-menu-search{width:100%;min-height:35px;padding:8px 11px;background:#172c3b!important;border-color:#7a9bad60!important;border-radius:3px!important}
body.map-cockpit #leftPanel nav{display:block!important;margin-top:18px}
.command-nav-group{margin:0 0 18px;padding:0;border:0;background:none}
body.map-cockpit .command-nav-group h3{font-size:10px;letter-spacing:1px;color:#8fabbc;margin:0 0 8px;padding:0;border:0}
.command-nav-group>div{display:grid;grid-template-columns:1fr 1fr;gap:6px}
body.map-cockpit #leftPanel .command-nav-group button{display:flex!important;align-items:center;gap:7px;min-height:37px!important;margin:0;padding:8px 9px;font-size:11px;font-weight:500;letter-spacing:0;border:1px solid #7894a329!important;background:#2c4555!important;border-radius:3px!important;white-space:normal;text-align:left}
body.map-cockpit #leftPanel .command-nav-group button[hidden],body.map-cockpit .command-nav-group[hidden]{display:none!important}
.command-country-overview{border-top:1px solid var(--edge);padding-top:12px;margin-top:14px}.command-country-overview>summary{font-size:12px;cursor:pointer;color:#a9c2d1}
.command-header-menu{position:absolute;right:12px;top:45px;z-index:65;width:min(620px,calc(100vw - 24px));max-height:calc(100dvh - 65px);overflow:auto;padding:16px;background:#223c4c;border:1px solid #819fac6b;border-radius:5px;box-shadow:0 15px 36px #07152266}
.command-header-menu[hidden]{display:none!important}
.command-menu-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;border-bottom:1px solid var(--edge);padding-bottom:10px;font-size:13px;letter-spacing:.5px}.command-menu-heading button{padding:2px 8px;font-size:18px;background:transparent}
body.map-cockpit .command-header-menu .top{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:0;overflow:visible;min-height:0}
body.map-cockpit .command-header-menu .top>span{display:inline-flex!important;gap:5px;padding:9px 10px;border:1px solid var(--edge);background:#1b3241;color:#b2c9d7;font-size:11px}
body.map-cockpit .command-header-menu .top>span b{font-size:12px;color:#ebf5fb}
body.map-cockpit .command-header-menu .top>button,body.map-cockpit .command-header-menu .play-mode-control{min-height:34px;flex:0 0 auto;padding:7px 11px;font-size:12px}
body.map-cockpit .command-header-menu #warnings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;border:0;padding:0;gap:8px;margin:0;overflow:visible}
body.map-cockpit .command-header-menu #warnings button{min-height:42px;justify-content:flex-start;padding:10px;border:1px solid var(--edge);background:#294556}
body.map-cockpit .command-header-menu .scenario-coast-locations{position:static;margin-top:14px;width:100%;max-width:none;display:block!important}.command-header-menu .scenario-coast-locations select{width:100%;padding:8px}
body.map-cockpit #mapLayerLegend,body.map-cockpit .map-wrap>.legend,body.map-cockpit #zoomLevel,body.map-cockpit #commandHint{display:none!important}
body.map-cockpit .map-zoom-overlay{height:38px!important;top:auto!important;bottom:12px!important;right:12px!important;padding:3px!important;border:1px solid #7796a360!important;box-shadow:0 3px 12px #07182340!important}
body.map-cockpit .map-zoom-overlay button{height:29px!important;min-height:29px;min-width:39px!important;padding:3px 8px!important;font-size:15px}
body.map-cockpit .map-zoom-overlay button small{display:none}.map-cockpit .map-zoom-overlay output{font-size:10px;min-width:47px!important}
body.map-cockpit:has(#armyCommandBar .command-selection) .map-zoom-overlay{bottom:90px!important}
body.map-cockpit #armyCommandBar:has(.command-selection){left:50%!important;right:auto!important;bottom:12px!important;transform:translateX(-50%)!important;width:min(690px,calc(100% - 24px))!important;max-width:calc(100% - 24px)!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px;padding:8px 11px;backdrop-filter:none;border-color:#7b9baa70;box-shadow:0 5px 18px #07182340}
body.map-cockpit #armyCommandBar>[data-ux-clear]{left:0;right:auto;top:-28px}
body.map-cockpit #armyCommandBar .command-selection{grid-area:selection}.map-cockpit #armyCommandBar .command-primary{grid-area:primary}.map-cockpit #armyCommandBar .command-advanced{grid-area:advanced}
body.map-cockpit #armyCommandBar .command-primary button{min-height:33px;padding:6px 9px;font-size:11px}
body.map-cockpit #armyCommandBar>.command-inline-hint,body.map-cockpit #armyCommandBar>.unit-logistics-summary{display:none}
body.map-cockpit .map-wrap .air-command-panel,body.map-cockpit .map-wrap .naval-command-panel{top:12px;right:12px;bottom:auto;max-height:calc(100% - 72px);width:265px;padding:13px;gap:9px;backdrop-filter:none}
body.map-cockpit .command-panel-title{font-size:15px;padding-bottom:9px}.map-cockpit .command-panel-title>span{display:none}
body.map-cockpit #managementOverlay{position:fixed;inset:calc(var(--header-h,83px) + 12px) 16px 16px 16px!important;width:auto;max-width:1440px;margin:auto;border:1px solid #809ba95e;border-radius:6px;background:#1c3342;box-shadow:0 16px 60px #06141e66;z-index:62}
body.map-cockpit #managementOverlay>.management-head{min-height:59px;padding:12px 20px;gap:12px;background:#294352;border-bottom:1px solid #7694a440}
body.map-cockpit #managementTitle{font-family:inherit;font-size:20px;font-weight:600;line-height:1.4;letter-spacing:1px;color:#e3f0f7;margin:0}
body.map-cockpit #managementKicker{font-size:10px;color:#9db7c8;letter-spacing:.8px}
body.map-cockpit #managementClose{font-size:12px;min-height:32px;padding:6px 12px;align-self:center;background:#314f62;color:#dcecf5;border-color:#7d9dab70}
body.map-cockpit #managementBody{padding:20px 24px;background:#1c3342;scrollbar-gutter:stable;overscroll-behavior:contain;line-height:1.6}
body.map-cockpit #managementBody :is(section,article,aside,div){min-width:0}
body.map-cockpit #managementBody :is(input,select,textarea){max-width:100%;min-height:32px;font-size:12px;border-color:#7794a35c;background:#192f3f;color:#dceaf3;border-radius:3px;padding:6px 9px}
body.map-cockpit #managementBody button{font-size:12px;min-height:30px;line-height:1.4;border-radius:3px}
body.map-cockpit #managementBody :is(.card,.law-card,.research-slot,.cabinet-slot){border-color:#6d8d9f4a;background:#243d4d;border-radius:4px;box-shadow:none}
body.map-cockpit #managementBody :is(h3,h4){font-family:inherit;color:#bed4e1;letter-spacing:.4px}
body.map-cockpit #modal{padding:16px;background:#06151fa6;backdrop-filter:none;z-index:90}
body.map-cockpit #modal>article{max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:27px;background:#223b4b;border:1px solid #7d9aaa80;border-radius:6px;box-shadow:0 18px 54px #030c1466;color:#cfdfeb;overflow:auto}
body.map-cockpit #modal h2{font-family:inherit;font-size:22px;line-height:1.45;font-weight:600;color:#e3eff6;padding-right:30px}
body.map-cockpit #modalText{font-size:13px;line-height:1.8;overflow-wrap:anywhere}.map-cockpit #modalChoices{gap:9px}.map-cockpit #modalChoices button{min-height:37px;padding:10px 13px;font-size:12px}
body.map-cockpit #modalTopClose{background:#2b485a;color:#e0eef6;border-color:#8aa6b569}
@media(max-width:1050px){.command-shortcuts{display:none}.command-header-row .brand{margin-right:4px!important}.command-header-row{gap:5px}body.map-cockpit .command-map-toolbar .map-mode-toolbar button{padding:5px 7px}}
@media(max-width:700px){
 body.map-cockpit>header.map-command-header{padding:0 7px!important}.command-header-row{height:40px;gap:3px}
 body.map-cockpit .command-header-row .brand{font-size:12px;letter-spacing:1px;margin-right:2px!important}.command-header-row .brand b{display:none}
 .command-header-row button{padding:4px 6px;font-size:10px}.command-header-row #commandMenuToggle .command-icon{display:none}
 body.map-cockpit .mobile-time-controls>span{font-size:9px;padding-right:4px}
 body.map-cockpit .command-header-row .mobile-time-controls{gap:2px}.command-header-space{min-width:0}
 body.map-cockpit .command-map-toolbar{min-height:36px;padding:3px 0!important;gap:0}.map-cockpit .command-map-toolbar>.map-pointer-tools,.map-cockpit .command-map-toolbar>.map-recruit{display:none!important}
 body.map-cockpit .command-map-toolbar .map-mode-toolbar button{flex:1;min-width:0;padding:5px 4px;font-size:10px!important;gap:4px}.map-cockpit .map-mode-toolbar .command-icon{width:14px;height:14px}
 body.map-cockpit #managementOverlay{inset:var(--header-h,76px) 0 0 0!important;border-radius:0}.map-cockpit #managementOverlay>.management-head{padding:10px 12px!important;min-height:50px!important}
 body.map-cockpit #managementTitle{font-size:16px}.map-cockpit #managementClose{font-size:10px!important;padding:6px 8px!important}.map-cockpit #managementBody{padding:12px!important}
 body.map-cockpit #managementBody :is(.recruit-layout,.army-layout,.production-layout,.construction-layout,.politics-primary,.training-layout,.diplomacy-layout){grid-template-columns:minmax(0,1fr)!important}
 body.map-cockpit #armyCommandBar:has(.command-selection){grid-template-columns:minmax(0,1fr) auto!important;width:calc(100% - 16px)!important;max-width:calc(100% - 16px)!important;bottom:8px!important;padding:7px 9px}
 body.map-cockpit #armyCommandBar .command-selection{grid-area:selection!important}.map-cockpit #armyCommandBar .command-primary{grid-area:primary!important;justify-content:space-between;flex-wrap:wrap}.map-cockpit #armyCommandBar .command-advanced{grid-area:advanced!important}
 body.map-cockpit #armyCommandBar .command-selection b{font-size:12px}.map-cockpit #armyCommandBar .command-selection small{display:none!important}.map-cockpit #armyCommandBar .command-primary button{padding:5px!important;min-height:30px!important;font-size:10px!important}
 body.map-cockpit .map-wrap .air-command-panel,body.map-cockpit .map-wrap .naval-command-panel{width:min(250px,calc(100% - 24px));max-height:calc(100% - 66px);font-size:11px}
 body.map-cockpit #modal{padding:8px}.map-cockpit #modal>article{max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;padding:23px 16px!important}
}

@media(max-width:700px){body.map-cockpit .command-header-row .mobile-time-controls{flex:0 1 auto;min-width:0;overflow-x:auto;scrollbar-width:none}.map-cockpit .mobile-time-controls>span,.map-cockpit .mobile-time-controls button{flex:none}}

body.map-cockpit:not(.map-operations-open) .map-wrap :is(.air-command-panel,.naval-command-panel){display:none!important}
body.map-cockpit .command-map-toolbar>[hidden]{display:none!important}
body.map-cockpit .command-map-toolbar #mapOperationsToggle{background:#3b6075;border-color:#9ab7c77a;color:#e7f3fb}

body.map-cockpit #leftPanel .command-nav-group button{grid-column:auto!important;grid-row:auto!important}
body.map-cockpit #leftPanel nav:before{display:none!important}
body.map-cockpit .command-country-overview:not([open])>*:not(summary){display:none!important}
body.map-cockpit .command-country-overview>section{margin:12px 0 0!important;padding:10px!important;background:#1c3342;border:1px solid #6b8a9e40;border-radius:3px}
body.map-cockpit .command-country-overview>section:empty{display:none!important}

body.map-cockpit #managementBody .workspace-heading{padding:0 0 12px;margin:0 0 16px;align-items:center;gap:14px}
body.map-cockpit #managementBody .workspace-heading h2,body.map-cockpit #managementBody .workspace-heading small{display:none}
body.map-cockpit #managementBody .workspace-heading p{font-size:12px;margin:0;line-height:1.6;color:#abc3d2}
body.map-cockpit #managementBody .workspace-heading button{padding:7px 10px;font-size:11px}
body.map-cockpit #managementBody .recruit-workspace{padding:0}
body.map-cockpit #managementBody .recruit-step{margin-bottom:13px;gap:7px}
body.map-cockpit #managementBody .recruit-cost{margin:14px 0;padding:12px 0;border-color:#7093a33b}
body.map-cockpit #managementBody .recruit-cost b{font-size:23px;color:#dcecf5}
body.map-cockpit #managementBody .recruit-submit{min-height:42px;width:100%;background:#47788f;border:1px solid #a1c2d17a;color:#f0f8fc;font-weight:600}
body.map-cockpit #managementBody .operations-hub{margin:0 0 14px;padding:10px 13px;border:1px solid #6a8a9d45;border-radius:4px;background:#203b4a;color:#c6dbe7}
body.map-cockpit #managementBody :is(.research-category-sidebar,.full-focus-tools,.tech-axis,.focus-subtree-nav,.focus-detail,.full-focus-detail,.research-bottom-detail,.production-filters){background:#243e4e;border-color:#7594a548;color:#b9d0df;border-radius:3px}
body.map-cockpit #managementBody :is(.tech-board,.full-focus-canvas){background-color:#172f3e;border-color:#7290a14a;background-image:linear-gradient(#97bbcc09 1px,transparent 1px),linear-gradient(90deg,#97bbcc09 1px,transparent 1px)}
body.map-cockpit #managementBody :is(.tech-node,.full-focus-node){background:#294657;border-color:#7b9ca768;color:#d1e4ef;box-shadow:none;border-radius:3px}
body.map-cockpit #managementBody :is(.tech-node.done,.full-focus-node.done){background:#2b4b50;border-color:#779e9b70}
body.map-cockpit #managementBody :is(.tech-node.running,.full-focus-node.running){background:#385c70;border-color:#a2c8db;box-shadow:inset 3px 0 #a6d2e7}
body.map-cockpit #managementBody :is(.tech-axis,.tech-category,.tech-branch,.research-done-label){color:#afcbd8;border-color:#7594a548}
body.map-cockpit #managementBody :is(.research-category-sidebar,.full-focus-tools){padding:9px;gap:7px;display:flex;flex-wrap:wrap}
body.map-cockpit #managementBody :is(.production-layout,.construction-layout,.army-layout,.recruit-layout){gap:20px}
body.map-cockpit #managementBody :is(.recruit-feedback,.recruit-note,.recruit-requirements){font-size:11px;line-height:1.7}

/* Railway infrastructure has a neutral, static presentation. */
body.map-cockpit .railway-case{stroke:#193744;stroke-opacity:.55;vector-effect:non-scaling-stroke;pointer-events:none}
body.map-cockpit .railway-map-edge{stroke:#c2d6de;opacity:.96;pointer-events:none}
body.map-cockpit .railway-map-edge.building{stroke-dasharray:5 4}
body.map-cockpit .railway-node{cursor:pointer}
body.map-cockpit .railway-node-hit{fill:transparent;stroke:none;pointer-events:all}
body.map-cockpit .railway-station-dot{fill:#d4e4ec;stroke:#284957;stroke-width:1}
body.map-cockpit .railway-node-name{font:11px system-ui;fill:#eef6fa;stroke:#243f4b;stroke-width:3px;paint-order:stroke;stroke-linejoin:round;pointer-events:none}
body.map-cockpit .railway-node:focus{outline:none}
body.map-cockpit .railway-node:focus-visible rect{stroke:#fff;stroke-width:2}
body.map-cockpit .railway-node:hover rect{fill:#40657a}
@media(max-width:700px){body.map-cockpit .command-map-toolbar .map-mode-toolbar .command-icon{display:none!important}body.map-cockpit .command-map-toolbar .map-mode-toolbar button{font-size:11px!important;padding:5px 6px}}

body.map-cockpit .map-wrap[data-map-mode="logistics"] #cityLabelOverlay{display:none}

/* Keep frequent commands readable; secondary setup stays in disclosures. */
body.map-cockpit .command-header-row{height:46px}
body.map-cockpit .command-header-row button{min-height:32px;font-size:12px;padding:5px 10px}
body.map-cockpit .command-shortcuts button[aria-pressed=true]{background:#365b70;border-color:#9bbfd26b;color:#f0f8fc;box-shadow:inset 0 -2px #afd5e6}
body.map-cockpit .command-recruit-shortcut{background:#b1d2e11c;border-color:#9cbfd04f;color:#dbeef7}
body.map-cockpit :is(.command-header-row,.command-map-toolbar,.command-header-menu,#managementOverlay) button:focus-visible{outline:2px solid #b8dfef;outline-offset:2px}
body.map-cockpit .command-map-toolbar{gap:6px!important}
body.map-cockpit .command-map-toolbar .map-mode-toolbar{justify-content:flex-end}
body.map-cockpit .command-map-toolbar .map-mode-toolbar button{font-size:12px!important;min-height:32px}
body.map-cockpit #leftPanel .command-nav-group button{font-size:12px;min-height:40px!important}
body.map-cockpit #managementBody{font-size:13px;line-height:1.65}
body.map-cockpit #managementBody :is(input,select){min-height:38px;font-size:13px}
body.map-cockpit #managementBody .recruit-count-presets{display:flex;gap:8px;margin-bottom:9px}
body.map-cockpit #managementBody .recruit-count-presets button{flex:1;min-height:36px;background:#29495a;border:1px solid #779bad45;color:#bcd2df}
body.map-cockpit #managementBody .recruit-count-presets button[aria-pressed=true]{background:#446e83;border-color:#b4d8e7;color:#f0f7fb}
body.map-cockpit #managementBody .recruit-quantity input{width:90px}
body.map-cockpit #managementBody .recruit-quantity span{font-size:12px;color:#9eb8c8}
body.map-cockpit #managementBody .recruit-submit{min-height:46px;font-size:14px;letter-spacing:.4px;background:linear-gradient(110deg,#a9d0df,#81adbf);color:#102d3d;border-color:#c0e1ee;box-shadow:0 4px 12px #081e2a30}
body.map-cockpit #managementBody .recruit-deployment{margin-top:18px;border:1px solid #7c9caa40;border-radius:5px;background:#213b4b}
body.map-cockpit #managementBody .recruit-deployment>summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;font-size:12px;color:#bed5e3;list-style:none}
body.map-cockpit #managementBody .recruit-deployment>summary::-webkit-details-marker{display:none}
body.map-cockpit #managementBody .recruit-deployment>summary>span:last-child{color:#a8d5e9;border-bottom:1px solid #8cb1c065;flex:none}
body.map-cockpit #managementBody .recruit-deployment>div{padding:0 14px 14px}
body.map-cockpit #managementBody .recruit-deployment .recruit-auto{margin:12px 0 0;font-size:12px}
body.map-cockpit #managementBody .recruit-feedback{min-height:20px;color:#bfd6e4}
body.map-cockpit #managementBody .recruit-requirements>summary{padding:12px 0;cursor:pointer;color:#accbdb}
body.map-cockpit #managementBody .recruit-cost{gap:12px;grid-template-columns:repeat(3,minmax(0,1fr))}
body.map-cockpit #managementBody .recruit-cost b{font-size:21px}
body.map-cockpit #managementBody .recruit-cost small{font-size:10px;line-height:1.5}
body.map-cockpit #managementBody .recruit-preview{border:1px solid #7699ab35;border-radius:5px;background:#243e4c;padding:12px;align-self:start}
body.map-cockpit #managementBody .recruit-doctrine{border-top:1px solid #7c9dac35;margin-top:12px;padding-top:12px}
body.map-cockpit #managementBody .recruit-doctrine p{font-size:12px;line-height:1.8;color:#a5bdcd}
@media(min-width:1100px){
 body.map-cockpit #managementOverlay:has(#managementBody[data-management-tab="training"]),body.map-cockpit #managementOverlay:has(#managementBody[data-management-tab="army"]){inset:calc(var(--header-h,86px) + 12px) 16px 16px auto!important;width:min(920px,calc(100vw - 330px))!important;max-width:none;margin:0;box-shadow:-12px 8px 36px #06141e60}
 body.map-cockpit #managementBody .recruit-layout{grid-template-columns:minmax(0,1.2fr) minmax(230px,.85fr);gap:22px}
}
@media(max-width:1050px){body.map-cockpit .command-shortcuts{display:flex;padding-left:5px}body.map-cockpit .command-shortcuts button:not([data-shell-panel="training"]):not([data-shell-panel="focus"]){display:none}}
@media(max-width:700px){
 body.map-cockpit .command-header-row{height:43px}body.map-cockpit .command-header-row button{padding:4px 6px;font-size:11px}
 body.map-cockpit .command-shortcuts button[data-shell-panel="focus"],body.map-cockpit .command-shortcuts .command-icon{display:none}
 body.map-cockpit .command-shortcuts{padding-left:3px}body.map-cockpit .command-map-toolbar .map-mode-toolbar button{font-size:11px!important}
 body.map-cockpit #managementBody .recruit-preview{margin-top:8px}
}

/* Operational fills own pointer hits even when their decorative LOD parent is inert. */
body .map-wrap #lod-geometry .battle-tile,body .map-wrap #lod-geometry .campaign-control{pointer-events:visiblePainted}
body .map-wrap[data-campaign-duel="true"] .battle-tile{fill:var(--country-color)!important}

body.map-cockpit #armyCommandBar>.command-inline-hint{display:flex;padding-top:4px;font-size:10px;grid-area:hint}

/* Foldable command desk: one calm header and a dedicated left navigation. */
body.left-command-layout{--command-drawer:264px}
body.left-command-layout .command-header-row{height:54px;gap:12px}
body.left-command-layout .command-header-row .brand{font-size:16px;margin-right:0}
body.left-command-layout .command-header-row>button{font-size:12px;min-height:34px}
body.left-command-layout .command-header-row .command-room-button{background:#31596c;border:1px solid #82b8c997;color:#f0fbff;border-radius:5px;padding:7px 16px;box-shadow:inset 0 1px #b3e4ee20;letter-spacing:.3px}
body.left-command-layout .command-header-row .command-room-button:before{content:'●';color:#a2dccb;font-size:9px;margin-right:4px}
body.left-command-layout .command-network-detail{display:none}
body.left-command-layout #leftPanel{width:var(--command-drawer)!important;padding:16px 14px!important;background:linear-gradient(160deg,#233c4b,#1c303e);box-shadow:4px 0 14px #09172020}
body.left-command-layout #leftPanel:before{display:none}
body.left-command-layout #leftPanel>.flag{width:42px;height:28px}
body.left-command-layout #leftPanel h2{font-size:17px;letter-spacing:1px}
body.left-command-layout #leftPanel .command-icon{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5}
body.left-command-layout #leftPanel .command-nav-group>div{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
body.left-command-layout #leftPanel .command-nav-group button{min-height:32px;padding:6px;font-size:11px}
body.left-command-layout #leftPanel .command-nav-group h3{margin:12px 0 7px}
body.left-command-layout #leftPanel .command-menu-search{margin:10px 0;min-height:33px;font-size:12px}
body.left-command-layout #leftPanel .command-country-overview{margin-top:12px}
body.left-command-layout.country-menu-open main>.map-wrap{left:var(--command-drawer)!important;width:calc(100% - var(--command-drawer))!important}
.attack-point-layer{position:absolute;inset:0;width:100%;height:100%;z-index:37;pointer-events:none}
.attack-point-layer[hidden]{display:none!important}
.attack-point-hover{position:absolute;z-index:38;transform:translate(-50%,17px);background:#402e35ed;border:1px solid #ef9d8a;color:#ffe5dc;border-radius:4px;padding:5px 9px;font-size:11px;pointer-events:none;white-space:nowrap}
.attack-point-hover:before{content:'';position:absolute;left:50%;top:-25px;width:14px;height:14px;transform:translateX(-50%);border:2px solid #ffb2a0;border-radius:50%;box-shadow:0 0 0 3px #47212c66}
body.left-command-layout #leftPanel .command-country-identity{display:flex;align-items:center;gap:10px;padding:0 28px 14px 0;margin-bottom:12px;border-bottom:1px solid var(--edge)}
body.left-command-layout #leftPanel .command-country-identity .flag{width:37px;height:27px;flex:none;margin:0}
body.left-command-layout #leftPanel .command-country-identity h2{font-size:17px;line-height:1.3;margin:0}
body.left-command-layout #leftPanel .command-map-utilities{display:flex;gap:5px;align-items:center;flex-wrap:wrap}
body.left-command-layout #leftPanel .command-map-utilities button{min-height:29px;font-size:11px;padding:4px 7px;background:#294553;border:1px solid #6b8b9d44}
body.left-command-layout #leftPanel .command-nav-disclosure{border-top:1px solid #718d9b30;margin:0;padding:0}
body.left-command-layout #leftPanel .command-nav-disclosure summary{padding:10px 3px;cursor:pointer;font-size:12px;color:#bed1dd;letter-spacing:1px}
body.left-command-layout #leftPanel .command-nav-disclosure>div{padding-bottom:10px}
@media(max-width:1099px){body.left-command-layout.country-menu-open main>.map-wrap{left:0!important;width:100%!important}body.left-command-layout .command-header-row .brand{display:none}body.left-command-layout .command-header-row{gap:5px}body.left-command-layout .command-header-row .command-room-button{padding:6px 8px;font-size:11px}}
@media(max-width:720px){body.left-command-layout .command-header-row{flex-wrap:wrap;height:auto;min-height:85px;padding:6px 0}body.left-command-layout .command-header-space{display:none}body.left-command-layout .command-header-row .mobile-time-controls{order:5;width:100%;justify-content:center}body.left-command-layout #commandTasksToggle{margin-left:auto}}

/* Common commands and every map mode remain available outside the drawer. */
body.left-command-layout .command-access-row{display:flex;align-items:center;gap:16px;min-width:0;border-top:1px solid #6d8c9d35;padding:6px 0}
body.left-command-layout .command-access-row .command-shortcuts{display:flex!important;flex:0 0 auto;gap:5px;padding:0;border:0;margin:0}
body.left-command-layout .command-access-row .command-shortcuts button{display:inline-flex!important;grid-column:auto;align-items:center;justify-content:center;gap:6px;min-height:34px;min-width:66px;padding:6px 10px;font-size:12px;white-space:nowrap;border:1px solid #7195a64a;background:#294655;color:#d7e7f0;border-radius:4px}
body.left-command-layout .command-access-row .command-shortcuts button[aria-pressed=true]{background:#456e82;border-color:#abd0e0}
body.left-command-layout .command-access-row .command-icon{display:block!important;width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5}
body.left-command-layout .command-access-row .command-map-toolbar{display:flex!important;position:static!important;flex:1;min-width:0;width:auto!important;padding:0 0 0 14px!important;border:0!important;border-left:1px solid #6e91a34a!important;min-height:34px;overflow:visible;background:transparent!important;box-shadow:none!important}
body.left-command-layout.management-open .command-access-row .command-map-toolbar,body.left-command-layout.management-open .command-access-row .map-mode-toolbar{visibility:visible!important;pointer-events:auto!important}
body.left-command-layout .command-access-row .map-mode-toolbar{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;flex:1;min-width:0;overflow:visible}
body.left-command-layout .command-access-row .map-mode-toolbar button{display:inline-flex!important;gap:5px;min-width:0;min-height:34px;padding:6px 8px;font-size:12px!important;white-space:nowrap}
body.left-command-layout .command-access-row .map-mode-toolbar button.active{background:#406b7d;border-color:#99bfce;color:#f0fbff;box-shadow:inset 0 -2px #b4dce9}
body.left-command-layout .command-access-row #mapOperationsToggle{order:2;flex:none;min-height:34px}
body.left-command-layout .command-access-row #mapOperationsToggle[hidden]{display:none!important}
body.left-command-layout .command-access-row button:focus-visible{outline:2px solid #b8dfef;outline-offset:2px}
body.left-command-layout #leftPanel>.command-map-utilities{padding-bottom:12px;border-bottom:1px solid var(--edge)}
@media(max-width:1100px){body.left-command-layout .command-access-row{flex-wrap:wrap;gap:5px}body.left-command-layout .command-access-row .command-shortcuts{width:100%;display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))}body.left-command-layout .command-access-row .command-map-toolbar{flex-basis:100%;border-left:0!important;padding:0!important}}
@media(max-width:600px){body.left-command-layout>header.map-command-header{padding:0 8px!important}body.left-command-layout .command-access-row .command-shortcuts button{min-width:0;gap:3px;padding:5px 2px;font-size:11px}body.left-command-layout .command-access-row .command-icon{width:13px;height:13px}body.left-command-layout .command-access-row .map-mode-toolbar button{flex-direction:column;gap:2px;padding:4px 1px;font-size:10px!important}body.left-command-layout .command-access-row #mapOperationsToggle{font-size:10px;padding:4px}}
/* Short confirmations should not inherit the full-height management drawer. */
body.map-cockpit #modal.command-drawer:has([data-cancel-army-confirm]){justify-content:center;align-items:center}
body.map-cockpit #modal.command-drawer:has([data-cancel-army-confirm])>article{width:min(560px,calc(100vw - 32px));height:auto;min-height:0;display:block;padding:26px;animation:none}
body.map-cockpit #modal:has([data-cancel-army-confirm]) #modalTitle{margin:7px 0 16px;padding-bottom:12px}
body.map-cockpit #modal:has([data-cancel-army-confirm]) #modalText{max-height:none;margin:0 0 18px}
body.map-cockpit #modal:has([data-cancel-army-confirm]) #modalChoices{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0;overflow:visible}
body.map-cockpit #modal:has([data-cancel-army-confirm]) #modalChoices>label,body.map-cockpit #modal:has([data-cancel-army-confirm]) #modalChoices>p{grid-column:1/-1;margin:0 0 8px;font-size:12px;line-height:1.7}
body.map-cockpit #modal:has([data-cancel-army-confirm]) #modalChoices>label{display:flex;align-items:center;justify-content:space-between;gap:12px}
body.map-cockpit #modal #regroupParts{width:180px;padding:9px;background:#19323f;color:#e5edf1;border:1px solid #718c99;border-radius:3px}
body.map-cockpit #modal:has([data-cancel-army-confirm]) #modalChoices>button{margin:0;text-align:center;min-height:40px}
body.map-cockpit #modal :is([data-confirm-regroup],[data-confirm-forced-march]){background:#53666a;color:#fff0c8;border-color:#beaf7d}
body.map-cockpit #modal:has([data-cancel-army-confirm]) #modalClose{display:none}
