/* Miniatures: lit top planes, shaded hulls, equipment and contact shadows. */
.unit-model{fill:#687f87;stroke:#172832;stroke-width:1.6;stroke-linejoin:round;overflow:visible;filter:drop-shadow(0 5px 4px #09131c50)}
.unit-model .m-body{fill:#71858c}.unit-model .m-top{fill:#a2b7b8}.unit-model .m-light{fill:#879da5}.unit-model .m-shadow{fill:#3c535f}.unit-model .m-metal{fill:#657882}.unit-model .m-tire{fill:#243039;stroke:#a8b6b933}.unit-model .m-track-rim{fill:none;stroke:#7d8b90;stroke-width:3}.unit-model .m-fender{fill:#8c9ea3}.unit-model .m-barrel{fill:#607783}.unit-model .m-edge{fill:none;stroke:#c6d5d6;stroke-width:2;opacity:.8}.unit-model .m-line{fill:none;stroke:#243f49;stroke-width:2}.unit-model .m-rivet{fill:#d0d5cc;stroke:none}.unit-model .m-vent{fill:#364c53}.unit-model .m-antenna{fill:none;stroke:#a8babe;stroke-width:2}.unit-model .m-fuel{fill:#586962}.unit-model .m-boots{fill:#283437}.unit-model .m-pack,.unit-model .m-pocket{fill:#778375}.unit-model .m-strap{fill:none;stroke:#c3b994;stroke-width:4}.unit-model .m-belt{fill:#5f5948}.unit-model .m-skin{fill:#b9a389}.unit-model .m-helmet{fill:#768e8e}.unit-model .m-rifle{fill:#665c50}.unit-model .m-weapon{stroke:#253c46;stroke-width:5;fill:none;stroke-linecap:round}.unit-model .m-tripod{stroke:#657b83;stroke-width:5;fill:none}.unit-model .m-bandage{fill:#cdd4d3;stroke:none}.unit-model .m-medical{fill:none;stroke:#a15c58;stroke-width:3}.unit-model .m-hose{fill:none;stroke:#283b40;stroke-width:5}.unit-model .m-insignia{fill:none;stroke:#d5d9ca;stroke-width:2}.unit-model .m-canvas{fill:#81918b}.unit-model .m-glass{fill:#2d5364;stroke:#adbac0}.unit-model .m-grille{fill:none;stroke:#2a4149;stroke-width:3}.unit-model .m-lamp{fill:#d6d6b8}.unit-model .m-horse{fill:#7a7064}.unit-model .m-water{fill:#7aa9b6;opacity:.35;stroke:none}.unit-model .m-deck{fill:#8199a1}.unit-model .m-deck-line{stroke:#ccd9d7;stroke-width:2;fill:none;stroke-dasharray:8 5}.unit-model .m-ground{fill:#06121b;opacity:.3;stroke:none}.unit-model .m-unknown{fill:none;stroke:#9eb6bd;stroke-width:12;stroke-linecap:round}
.model-stage{position:relative;min-height:180px;display:grid;place-items:center;overflow:hidden;background:radial-gradient(ellipse at 50% 68%,#64879438,transparent 65%),linear-gradient(135deg,#243a47,#142632);border-bottom:1px solid #46616d}
.model-stage:before{content:"";position:absolute;width:80%;height:68%;bottom:-26%;transform:perspective(190px) rotateX(54deg);background-image:linear-gradient(#83aab91c 1px,transparent 1px),linear-gradient(90deg,#83aab91c 1px,transparent 1px);background-size:22px 22px}
.model-stage>.unit-model{width:min(100%,360px);height:230px;z-index:1}.model-stage>span{position:absolute;top:14px;left:16px;font:9px ui-monospace,monospace;letter-spacing:2px;color:#8ca8b8}
.model-caption{padding:14px 16px;display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid #465b674f}.model-caption b{font-size:17px;font-weight:600;color:#e0eaed}.model-caption small{color:#94adb9;font-size:11px}
.model-composition{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:6px;padding:10px}
.model-composition button{display:flex;align-items:center;justify-content:flex-start;gap:5px;background:#243a46;border:1px solid #52697466;border-radius:4px;color:#cfdee4;padding:5px;text-align:left;font-size:11px;min-height:54px}.model-composition button[aria-pressed=true]{background:#365460;border-color:#94c0ce}.model-composition .unit-model{width:57px;height:40px;flex:0 0 57px}.model-composition button small{display:block;color:#96aeb8;font-size:10px}.model-inspector{background:#182c38;border:1px solid #435e6b;border-radius:6px;overflow:hidden}.model-caption+small{display:block;padding:0 16px 8px}
#armyMarkerOverlay .screen-army-cluster.has-model{height:67px;min-width:72px;max-width:104px;padding:2px 5px 3px;display:flex;flex-direction:column;gap:0;background:linear-gradient(150deg,#3e5964ee,#1e333eee);color:#e5eff2;border:1px solid #90a8b6b3;box-shadow:0 5px 10px #08121c80;border-radius:5px;isolation:isolate}
#armyMarkerOverlay .has-model>.unit-model{height:45px;width:75px;flex-shrink:0;filter:drop-shadow(0 2px 2px #0007)}
#armyMarkerOverlay .has-model .model-counter{display:flex;gap:3px;font-size:10px;line-height:14px;max-width:95px;overflow:hidden}.has-model .model-counter>span:not(:first-child){display:none}
#armyMarkerOverlay .has-model.selected{border-color:#b8e7f1;background:linear-gradient(150deg,#537585,#2a4c5a);box-shadow:0 0 0 2px #9ccdda77,0 5px 12px #08121c80}
#armyMarkerOverlay .has-model.foreign-intel{border-color:#b99c9e;background:linear-gradient(150deg,#65585f,#3c3945)}
#armyCommandBar:not(:empty){display:grid;grid-template-columns:minmax(160px,1fr) auto auto;gap:10px;align-items:center;padding:11px 14px;left:12px;right:12px;bottom:12px;max-height:64%;overflow:visible;border:1px solid #69838f85;border-radius:7px;background:linear-gradient(125deg,#273e4df7,#172b38f7);box-shadow:0 14px 40px #07131b7a;backdrop-filter:blur(15px);color:#d9e7ec}
.command-selection{display:flex;gap:10px;align-items:center;min-width:0}.command-selection>span{min-width:0;display:block}.command-selection b{font-size:13px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.command-selection small{display:block;font-size:10px;color:#a7bdc8;line-height:1.6}.command-selection small:nth-of-type(n+3){display:none}
#armyCommandBar .army-bar-template-icon{min-width:62px;width:62px;height:61px;padding:2px;background:#314c5b;border-color:#607e8b}.army-bar-template-icon .unit-model{width:58px;height:40px}.army-bar-template-icon small{font-size:9px}
.command-primary{display:flex;align-items:center;gap:5px}#armyCommandBar .command-primary button,.command-advanced>summary{display:flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:7px 11px;border:1px solid #68838f7a;background:#36515f;color:#e4eef1;border-radius:4px;white-space:nowrap;font-size:12px;cursor:pointer}#armyCommandBar .command-primary button[aria-pressed=true]{background:#aacfd7;color:#102a36;border-color:#d4e9ef}.command-primary svg,.command-advanced>summary svg,.command-nav-entry svg{width:17px;height:17px;flex-shrink:0}.command-primary button:disabled{opacity:.45}
.command-advanced{position:static!important}.command-advanced>summary{list-style:none;background:#263d4b}.command-advanced[open]>summary{border-color:#aec9d5}.command-advanced-body{position:absolute;bottom:calc(100% + 9px);right:0;width:min(680px,100%);max-height:min(48vh,380px);overflow-y:auto;display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:16px;background:#1c3240f7;border:1px solid #607f90;border-radius:7px;box-shadow:0 10px 32px #06101980}.command-advanced-body button{background:#304b59;border:1px solid #637b87;color:#deeaef}.command-advanced-body small{color:#aac0c8}.command-advanced-body .army-frontline-controls{width:100%;background:#203c49;border-color:#456372}.command-advanced-body .plan-status{max-width:100%}
.command-inline-hint{grid-column:1/-1;display:flex;gap:10px;justify-content:space-between;align-items:center;padding-top:7px;border-top:1px solid #7c9caa26;color:#b4c8d1;font-size:11px}.command-inline-hint small{margin-left:10px;color:#809da9}.command-inline-hint button{font-size:10px;border:0;background:transparent;color:#c7dce5;padding:3px}.command-targeting #map{cursor:crosshair!important}.command-targeting #armyCommandBar{border-color:#afd6e4}
.command-nav-entry{display:flex!important;align-items:center;gap:9px}.command-nav-entry strong{margin-left:auto;min-width:20px;border-radius:3px;background:#a4cbd3;color:#1c3440;font-size:10px;padding:2px 5px}.command-nav-entry strong:empty{display:none}
#selectedDivisionRoster{top:72px;bottom:126px;max-height:none;background:#192e3cf5;border:1px solid #668594;border-radius:6px;box-shadow:0 10px 32px #09192470}#selectedDivisionRoster>header{background:#294653;border-color:#53717d;color:#d2e6ed}.selected-division-row{background:#263d49;border-color:#4e6872}
#divisionEquipmentPanel{right:12px;top:65px;bottom:137px;max-height:none;width:min(440px,calc(100% - 24px));background:#182e3bf5;border:1px solid #6c8a98;border-radius:7px;color:#d6e4eb;box-shadow:0 12px 40px #09152388}#divisionEquipmentPanel>header{background:#263f4e;border-color:#4b6879;padding:14px}#divisionEquipmentPanel h2{font-size:18px;color:#e3edf0}#divisionEquipmentPanel .division-detail-body{padding:12px}#divisionEquipmentPanel .division-visual-card{display:block;padding:0;background:none;border:0}#divisionEquipmentPanel .division-combat-stats,#divisionEquipmentPanel .issued-equipment-card{background:#203744;border-color:#486575}#divisionEquipmentPanel .division-combat-stats h3{color:#d0e3ed}#divisionEquipmentPanel .model-composition{max-height:160px;overflow:auto}
/* One consistent inspection layer. Decisions keep the focused center dialog. */
#modal.command-drawer{display:flex;justify-content:flex-end;align-items:stretch;padding:16px;background:#06121c3b;backdrop-filter:blur(2px)}#modal.command-drawer.hidden{display:none}#modal.command-drawer>article{width:min(680px,calc(100vw - 32px));max-width:680px;max-height:calc(100dvh - 32px);margin:0;overflow:auto;background:linear-gradient(145deg,#294353,#172c3a);border:1px solid #7896a4;color:#d5e4eb;border-radius:7px;box-shadow:-15px 0 65px #07172399;padding:28px;animation:command-drawer-in .2s ease-out}#modal.command-drawer #modalTitle{font-size:24px;line-height:1.4;color:#e3eff2;border-bottom:1px solid #5b7b8955;padding-bottom:17px}#modal.command-drawer #modalType{color:#a4c3d2;letter-spacing:2px}#modal.command-drawer #modalText{color:#c0d3dd;line-height:1.8}#modal.command-drawer #modalClose{background:#42616f;color:#eff9fc;border-color:#6c929f;margin-top:20px}#modal.command-drawer .card,#modal.command-drawer .attack-preparation-summary{background:#203b4b;border-color:#537280;color:#d7e5eb}#modal.command-drawer table{color:#d6e6ee}#modal.command-drawer button{border-radius:4px}#modal.command-drawer #modalTopClose{color:#c4e0e9;background:none}#modal.command-drawer .primary{background:#aacbd5;color:#152f3b;border-color:#c2dfe7}
@keyframes command-drawer-in{from{transform:translateX(24px);opacity:0}to{transform:translateX(0);opacity:1}}
.workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #57748366;padding-bottom:22px;margin-bottom:24px}.workspace-heading small{font:10px ui-monospace,monospace;letter-spacing:2px;color:#92b6c7}.workspace-heading h2{font-size:28px;letter-spacing:2px;margin:7px 0;color:#e0edf2}.workspace-heading p{font-size:12px;color:#a8c2ce;margin:0}.workspace-heading button{background:transparent;border:1px solid #57798b;color:#d0e2eb;padding:10px 14px;border-radius:4px}
#managementBody[data-management-tab=training]{background:linear-gradient(135deg,#253d4d,#182d3c);color:#d2e3eb}#managementBody[data-management-tab=training] select,#managementBody[data-management-tab=training] input[type=number]{width:100%;background:#142c3a;border:1px solid #65818e;color:#e0edf2;border-radius:4px;padding:11px;min-height:42px;font-size:13px}
.recruit-workspace{max-width:1180px;margin:auto;padding:15px 18px 30px}.recruit-layout{display:grid;grid-template-columns:minmax(280px,1fr) minmax(280px,1fr);gap:32px}.recruit-step{margin-bottom:18px}.recruit-step>label{display:flex;align-items:center;gap:10px;font-size:13px;margin-bottom:9px}.recruit-step i{font:10px ui-monospace,monospace;background:#456779;padding:4px 5px;color:#d9eaf2;border-radius:3px}.recruit-step small{display:block;margin-top:7px;font-size:11px;color:#90adb9}.recruit-quantity{display:flex;gap:12px;align-items:center}.recruit-quantity input{max-width:120px}.recruit-quantity span{color:#afc5cf;font-size:12px}.recruit-auto{display:flex;align-items:center;gap:8px;font-size:12px;color:#c8dce4;line-height:1.6}.recruit-auto input{accent-color:#add5df}
.recruit-cost{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:17px 0;margin-top:10px;border-bottom:1px solid #60829344}.recruit-cost span{font-size:11px;color:#afc5d0}.recruit-cost b{display:block;font:500 23px ui-monospace,monospace;color:#e1eef3;margin:7px 0}.recruit-cost em{font-size:12px;margin-left:4px;font-style:normal}.recruit-cost small{font-size:10px;color:#91acb9}.recruit-feedback{font-size:12px;min-height:36px;line-height:1.6;color:#b8d4df;margin:14px 0}.recruit-submit{width:100%;min-height:46px;background:#aed2dc!important;color:#15303e!important;border:1px solid #d4e9ee!important;font-weight:600;border-radius:4px;letter-spacing:1px}.recruit-submit:disabled{opacity:.45}.recruit-note{display:block;font-size:11px;color:#8da9b7;line-height:1.7;margin-top:9px}.recruit-requirements{margin-top:20px;font-size:12px}.recruit-requirements summary{cursor:pointer;color:#c7dee7}.recruit-requirements table{width:100%;border-collapse:collapse;margin-top:12px}.recruit-requirements td,.recruit-requirements th{text-align:right;border-bottom:1px solid #526f7b55;padding:9px 5px}.recruit-requirements td:first-child,.recruit-requirements th:first-child{text-align:left}.shortage{color:#d7bba1}.recruit-doctrine{margin-top:16px;padding:17px;border-left:2px solid #7ba6b6;background:#263f4e}.recruit-doctrine b{font-size:12px;color:#d1e4ec}.recruit-doctrine p{font-size:12px;line-height:1.8;color:#9fbcc9;margin-bottom:0}.recruit-preview .model-stage>.unit-model{height:270px}
.recruit-queue-section{margin-top:30px;border-top:1px solid #57748366;padding-top:18px}.recruit-queue-section>header{display:flex;justify-content:space-between;align-items:center;gap:12px}.recruit-queue-section h3{color:#d5e5ec;font-size:16px;margin:0 0 12px}.recruit-queue-section h3 span{font:11px ui-monospace,monospace;color:#90b8cb;padding-left:8px}.recruit-queue-section>header>small{font-size:11px;color:#8daab9}.recruit-workspace .recruitment-queue{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:10px}.recruit-workspace .recruitment-queue article{display:flex;gap:10px;align-items:center;background:#233c4b;border:1px solid #54718077;border-radius:5px;padding:12px}.recruitment-queue article>.unit-model{width:64px;height:55px;flex:0 0 64px}.recruit-workspace .recruitment-queue article>div{flex:1;min-width:0}.recruitment-queue b{font-size:12px}.recruitment-queue small{display:block;font-size:10px;color:#a6c0ce;margin:5px 0}.recruitment-queue progress{width:100%;height:5px;accent-color:#9bc2d0}.recruitment-queue button{font-size:11px;border-radius:4px;background:#365563;border:1px solid #7598a5;color:#dfedf3;padding:7px}.queue-empty{font-size:12px;color:#a0bbc8;padding:20px;background:#203745;border:1px dashed #56717e;border-radius:4px}
.dispatch-list{display:grid;gap:8px}.dispatch-list button{display:flex;justify-content:space-between;gap:15px;text-align:left;background:#2b4859;color:#dbe9f0;padding:15px;border:1px solid #557582;border-radius:4px}.dispatch-list small{font-size:10px;color:#aac4d1;white-space:nowrap}.dispatch-empty{padding:24px 0;color:#9cb7c6;font-size:13px}
.combat-reading{padding:15px;background:#213d4c;border:1px solid #5b7c8c;border-radius:5px;margin:12px 0;color:#c9e2eb}.combat-reading h3{color:#d4eaf2;font-size:14px;margin:0 0 12px}.combat-reading p{font-size:12px;line-height:1.7;margin:8px 0}.combat-reading code{background:#122b38;border:1px solid #466471;border-radius:3px;padding:4px 6px;display:block;color:#afcfdb;font-size:11px;white-space:normal}.combat-comparison>details{margin:10px 0}.combat-comparison summary{cursor:pointer;color:#bfced0;padding:8px 0}.service-model-gallery{display:flex;gap:9px;overflow-x:auto;margin:15px 0}.service-model-gallery figure{margin:0;flex:1;min-width:110px;background:linear-gradient(140deg,#2a4554,#1a303d);border:1px solid #5f808f;border-radius:5px;padding:8px;text-align:center}.service-model-gallery .unit-model{height:85px}.service-model-gallery figcaption{font-size:11px;color:#c5dfe8}
@media(max-width:1100px){#armyCommandBar:not(:empty){grid-template-columns:minmax(130px,1fr) auto;gap:7px}.command-advanced{grid-row:2;grid-column:2}.command-inline-hint{grid-row:2;grid-column:1;font-size:10px;border:0;padding:0}.command-inline-hint small{display:none}.command-primary button{padding:7px!important}.recruit-layout{gap:20px}.command-selection small:nth-of-type(n+2){display:none}}
@media(max-width:760px){.recruit-workspace{padding:8px}.recruit-layout{grid-template-columns:1fr}.recruit-preview{grid-row:1}.recruit-preview .model-stage>.unit-model{height:170px}.recruit-preview .model-composition{max-height:130px;overflow:auto}.recruit-doctrine{display:none}.workspace-heading h2{font-size:23px}.workspace-heading button{font-size:11px;padding:8px}.recruit-queue-section>header{align-items:flex-start;flex-direction:column}.recruit-cost{gap:6px}.recruit-cost b{font-size:20px}#armyCommandBar:not(:empty){left:6px;right:6px;bottom:6px;padding:8px;grid-template-columns:1fr auto}.command-selection{grid-column:1/-1}.command-selection .army-bar-template-icon{display:none!important}.command-primary{grid-row:2;grid-column:1;flex-wrap:wrap}.command-primary button{font-size:11px!important;min-height:35px!important}.command-advanced{grid-row:2;grid-column:2}.command-advanced>summary{font-size:10px;min-height:35px;padding:5px}.command-inline-hint{grid-row:3;grid-column:1/-1}.command-inline-hint small{display:none}#divisionEquipmentPanel{top:45px;bottom:160px}#selectedDivisionRoster{top:45px;bottom:160px;width:260px;max-width:calc(100% - 20px)}#modal.command-drawer{padding:6px}#modal.command-drawer>article{padding:22px 16px;max-height:calc(100dvh - 12px);width:100%;border-radius:6px}#modal.command-drawer #modalTitle{font-size:21px}.model-caption{align-items:flex-start;flex-direction:column;gap:5px}}
@media(prefers-reduced-motion:reduce){#modal.command-drawer>article{animation:none}}
#armyCommandBar:has(.command-selection){left:12px!important;right:12px!important;max-width:none!important;overflow:visible!important}
#armyCommandBar>[data-ux-clear]{position:absolute;right:4px;top:-29px;width:auto!important;min-height:23px;padding:3px 9px;font-size:10px;background:#284653;border:1px solid #648391;color:#cce1e9;border-radius:4px}
#leftPanel nav .command-nav-entry{grid-column:1/-1;min-height:36px!important;justify-content:flex-start;padding:8px 12px;font-size:12px;white-space:nowrap}
.recruit-workspace>.workspace-heading,.recruit-queue-section>header{position:static;height:auto;min-height:0;background:transparent;box-shadow:none;grid-template-columns:none}
#managementBody[data-management-tab=training]>.operations-hub{display:none}
.model-equipment-note{font-size:10px;color:#95b3c1;line-height:1.6;padding:7px 2px}
@media(max-width:760px){#armyCommandBar:has(.command-selection){left:6px!important;right:6px!important}}
#managementBody[data-management-tab=training]{container-type:inline-size;container-name:recruitment}
@container recruitment (max-width:760px){.recruit-layout{grid-template-columns:1fr}.recruit-preview{grid-row:1}.recruit-preview .model-stage>.unit-model{height:175px}.recruit-preview .model-composition{max-height:135px;overflow:auto}.recruit-doctrine{display:none}.recruit-cost{gap:6px}.workspace-heading h2{font-size:23px}}
