/* Battlefield details and focused, task-specific screens. */
.gameShell .mapbadge.army.compact{width:42px;min-width:42px;min-height:42px;padding:7px 6px;display:grid;place-items:center;border-radius:8px}
.gameShell .mapbadge.army.compact .mapUnitTitle{font-size:0;justify-content:center;gap:0;line-height:1}.gameShell .mapbadge.army.compact .mapUnitTitle svg{width:21px;height:21px}.gameShell .mapbadge.army.compact .mapVeteran{display:none}.gameShell .mapbadge.army.compact .mapUnitHealth{font-size:0;gap:0;margin-top:5px}.gameShell .mapbadge.army.compact .mapUnitHealth>i{width:28px;height:3px;flex:none}
.gameShell .mapbadge.strategic.compact{display:grid;place-items:center;width:36px;min-width:36px;min-height:36px;padding:6px;border-radius:50%;font-size:18px}.gameShell .mapbadge.strategic.compact>b,.gameShell .mapbadge.strategic.compact>small{display:none}.gameShell .mapbadge.strategic.compact:before{content:attr(data-symbol);color:#dfd6ae;line-height:1}
.gameShell .firstCommandIntro{margin:0 0 18px;font-size:15px!important}.firstCommandProgress{display:flex;align-items:center;gap:18px;color:var(--ui-accent);font-size:12px;margin-bottom:24px}.firstCommandProgress>i{flex:1;height:4px;background:#45503b;border-radius:4px;overflow:hidden}.firstCommandProgress>i>b{display:block;height:100%;background:var(--ui-accent)}
.firstCommand>ol{list-style:none;padding:0;margin:0 0 20px}.firstCommand>ol>li{display:flex;gap:16px;padding:0 0 28px;position:relative}.firstCommand>ol>li:not(:last-child):before{content:'';position:absolute;left:17px;top:39px;bottom:7px;width:1px;background:var(--ui-border)}.firstStepNumber{display:grid;place-items:center;width:35px;height:35px;flex:0 0 35px;border:1px solid var(--ui-border);border-radius:50%;color:var(--ui-muted);font-size:14px}.firstCommand li.current .firstStepNumber{border-color:var(--ui-accent);color:var(--ui-accent);background:#ddc28b12}.firstCommand li.complete .firstStepNumber{color:#bccda8;border-color:#859970}.gameShell #panelContent .firstCommand h3{font-size:19px;font-weight:550;margin:5px 0 8px}.firstCommand li p{margin:0 0 8px}.firstCommand li small{color:var(--ui-accent);display:block;font-size:12px;margin:0 0 12px}.firstCommand li button{margin:0;font-size:13px}.firstComplete{font-size:12px;color:var(--ui-muted)}.firstCommand>button{margin:5px 0;display:block;width:100%;text-align:left}
.gameShell #panelContent .firstCommandCard{display:flex;justify-content:space-between;align-items:center;width:100%;gap:15px;margin:0 0 20px;padding:14px 16px;background:#8797630e;border-color:#87976355;text-align:left}.firstCommandCard>span:first-child{display:grid;gap:6px}.firstCommandCard b{font-size:14px;font-weight:550}.firstCommandCard small{font-size:12px;color:var(--ui-muted);font-weight:400}.firstCommandCard>span:last-child{font-size:24px;color:var(--ui-accent)}
.milestoneTrack{list-style:none;padding:0;margin:20px 0;border-top:1px solid var(--ui-border)}.milestoneTrack>li{display:flex;gap:14px;padding:17px 0;position:relative}.milestoneTrack>li:not(:last-child):before{content:'';position:absolute;left:13px;top:45px;bottom:-9px;width:1px;background:var(--ui-border)}.milestoneLevel{display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--ui-border);border-radius:50%;flex:0 0 28px;color:var(--ui-dim);font-size:12px}.milestoneTrack .unlocked .milestoneLevel{color:var(--ui-accent);border-color:#a7996e80;background:#ddc28b10}.milestoneTrack>li>div{display:grid;gap:7px;min-width:0;flex:1}.milestoneTrack b{font-size:14px;font-weight:550;color:var(--ui-text)}.milestoneTrack small{font-size:12px;line-height:1.55;color:var(--ui-muted)}.milestoneTrack div>span{font-size:11px;color:var(--ui-dim)}.gameShell #panelContent .milestoneTrack button{justify-self:start;padding:5px 0;min-height:36px;background:transparent;border:0;font-weight:400;color:var(--ui-accent);font-size:12px}
.recruitFilters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:12px 0}.gameShell #panelContent .recruitFilters button{min-height:40px;padding:8px;font-size:12px;background:transparent;border-color:var(--ui-border);color:var(--ui-muted);border-radius:7px}.gameShell #panelContent .recruitFilters button[aria-pressed=true]{border-color:#b5ac7a;background:#ddc28b10;color:var(--ui-accent)}.gameShell #panelContent .recruitCard .unitPortrait{width:106px;height:90px;filter:drop-shadow(0 8px 8px #0006)}.gameShell #panelContent .recruitCard .cardhead>.meta{margin-left:122px}
.gameShell #battleResult{background:var(--ui-panel);border:1px solid var(--ui-border);border-radius:14px;max-height:calc(100dvh - 190px);overflow:auto;bottom:92px;padding:22px;box-shadow:0 10px 40px #0005}.gameShell #battleResult h2{font:550 25px/1.2 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ui-text)}.gameShell #battleResult .resultOutcome{color:var(--ui-accent)!important}.gameShell #battleResult p{color:var(--ui-muted);font-size:13px;line-height:1.55}.engagementSummary{border-top:1px solid var(--ui-border);padding-top:14px;margin-top:16px}.engagementSummary h3{font-size:15px;font-weight:550;color:var(--ui-text)}.engagementSummary>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.engagementSummary>div>span{display:grid;gap:5px;font-size:10px;color:var(--ui-muted)}.engagementSummary b{font-size:22px;font-weight:450;color:var(--ui-text)}.engagementSummary ul{padding-left:18px;color:var(--ui-muted);font-size:12px;line-height:1.65}.gameShell #battleResult button{min-height:42px;border:1px solid var(--ui-border);background:var(--ui-raised);border-radius:8px;color:var(--ui-text);padding:10px 12px;font-size:13px}.gameShell #battleResult #dismissResult{border:0;background:transparent;width:40px;height:40px}.gameShell #battleResult #resultContinue{background:var(--ui-accent);color:var(--ui-ink);border-color:var(--ui-accent);width:100%;margin-top:10px}
.gameShell .battlePhases{gap:8px;margin:14px 0}.gameShell .battlePhases>span{font-size:10px;color:var(--ui-muted);background:transparent;border:0;border-bottom:2px solid var(--ui-border);border-radius:0;padding:8px 2px}.gameShell .battlePhases>span.current{color:var(--ui-accent);border-color:var(--ui-accent)}.gameShell .battlePhases>span.done{color:#a5b995}.gameShell .battlePhaseCallout{background:#263222eb;border:1px solid #9caa7b80;color:var(--ui-text);border-radius:8px;font-size:13px;box-shadow:0 6px 20px #0003}.gameShell .battleClock{height:3px;background:#46503e}.gameShell .battleClock>i{background:var(--ui-accent)}
.gameShell .commandDock .combatForces{background:transparent;border-top:1px solid var(--ui-border);border-bottom:1px solid var(--ui-border);border-radius:0;padding:13px 0}.gameShell .commandDock .combatForces b{font-weight:450;color:var(--ui-text);font-size:25px}.gameShell .commandDock .combatHeading{font-weight:500;color:var(--ui-text)}.gameShell .commandDock .routeDetails{font-size:11px;color:var(--ui-muted)}.gameShell .commandDock .tacticChoices button[aria-pressed=true]{background:#ddc28b15;border-color:#b9a879;color:var(--ui-accent)}
.gameShell :is(.chatBubble,.baseInspectorHead,.recruitCard){animation:fieldDetailIn .16s ease-out}@keyframes fieldDetailIn{from{opacity:.6;translate:0 4px}to{opacity:1;translate:0 0}}
@media(max-width:350px){.gameShell #panelContent .recruitCard .unitPortrait{width:82px;height:76px}.gameShell #panelContent .recruitCard .cardhead>.meta{margin-left:98px}.firstCommand>ol>li{gap:12px}.gameShell #panelContent .firstCommand h3{font-size:18px}.engagementSummary b{font-size:19px}}
@media(prefers-reduced-motion:reduce){.gameShell :is(.chatBubble,.baseInspectorHead,.recruitCard){animation:none}}
.gameShell #panelContent .forceScreen[data-view=recruit]>.stats,.gameShell #panelContent .forceScreen[data-view=recruit]>.forceToolbar{display:none}
.gameShell #panelContent .forceScreen[data-view=recruit]>.deploymentNote{font-size:13px;margin:0 0 12px}
.gameShell .commandDock{max-height:calc(100dvh - 190px);overflow:auto;scrollbar-width:thin;scroll-padding-bottom:70px}
.gameShell .commandDock #battleTactics{margin:12px 0;border-top:1px solid var(--ui-border);padding-top:12px}
.gameShell .commandDock .tacticsHeading{font-size:13px;color:var(--ui-text)}.gameShell .commandDock .tacticsHeading>span{font-size:11px;color:var(--ui-muted)}
.gameShell .commandDock .tacticChoices{gap:5px}.gameShell .commandDock .tacticChoices button{border-radius:7px;padding:9px 5px;min-height:52px;background:transparent;border-color:var(--ui-border);font-size:11px;color:var(--ui-muted)}.gameShell .commandDock .tacticChoices button b{font-size:12px;font-weight:550}.gameShell .commandDock .tacticChoices button small{font-size:10px;font-weight:400}.gameShell .commandDock .tacticSummary{font-size:11px;line-height:1.5;color:var(--ui-muted)}.gameShell .commandDock .tacticalNotes{font-size:12px;border:0;background:transparent}.gameShell .commandDock .tacticalNotes p{font-size:12px;line-height:1.4}
.gameShell .commandDock .orderrow{position:sticky;bottom:0;background:var(--ui-panel);padding:12px 0 4px;z-index:3;border-top:1px solid var(--ui-border)}
.gameShell #panelContent>.engagementSummary{padding:0 0 18px;margin:0 0 18px;border-top:0;border-bottom:1px solid var(--ui-border)}
.gameShell #commandDock .dockhead{display:flex;align-items:center;gap:10px;margin:0 0 12px;padding:0}
.gameShell #commandDock .dockhead>div{min-width:0;flex:1}.gameShell #commandDock .dockhead h2{font:550 21px/1.25 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;margin:0;color:var(--ui-text)}.gameShell #commandDock .dockhead small{font-size:11px;font-weight:400;color:var(--ui-muted);line-height:1.4;letter-spacing:0;text-transform:none}
.gameShell #commandDock #closeDock{position:static;margin:0;flex:0 0 38px;width:38px;height:38px;min-height:38px;border:1px solid var(--ui-border);border-radius:50%;background:transparent;padding:9px}
.gameShell #commandDock #sectorIcon{flex:0 0 34px;width:34px;height:36px;display:grid;place-items:center;border:1px solid #80936555;border-radius:7px;background:#80936512;color:var(--ui-accent);font-size:18px}
.gameShell #commandDock #groupAtTarget{background:transparent;color:var(--ui-muted);border-color:var(--ui-border);font-size:12px}
.gameShell #commandDock .tacticChoices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.gameShell #commandDock .tacticChoices button{min-width:0;padding:9px 3px;min-height:60px;overflow-wrap:anywhere}.gameShell #commandDock .tacticChoices button b{font-size:11px}.gameShell #commandDock .tacticChoices button small{font-size:9px;line-height:1.4}
.gameShell #commandDock #sectorFocus{margin-top:10px;width:42px;min-height:40px;padding:9px}
@media(max-width:350px){.gameShell #commandDock{padding:13px}.gameShell #commandDock .dockhead h2{font-size:19px}.gameShell #commandDock .tacticChoices button b{font-size:10px}.gameShell #commandDock .tacticChoices button small{font-size:9px}}
.gameShell:has(#commandDock:not([hidden])) #nextOrder{visibility:hidden;pointer-events:none}
.gameShell #commandDock #chooseArmy{font-size:12px;padding:10px 11px;min-height:44px}.gameShell #commandDock #groupAtTarget{padding:10px;font-size:11px}
.gameShell .allianceChat .chatBubble{max-width:90%;min-width:120px;width:fit-content;padding:12px 14px;border:0;border-radius:12px 12px 12px 3px;background:var(--ui-surface);box-shadow:none}
.gameShell .allianceChat .chatBubble.mine{margin-left:auto;background:#3c4a31;border-radius:12px 12px 3px 12px}
.gameShell .allianceChat .chatBubble header{border:0;padding-bottom:0;align-items:center;gap:12px}.gameShell .allianceChat .chatBubble header>b{font-size:12px;font-weight:500;gap:8px}.gameShell .allianceChat .chatBubble time{font-size:10px;color:var(--ui-dim)}.gameShell .allianceChat .chatBubble p{font-size:14px;line-height:1.6;margin-top:7px;letter-spacing:0}
.gameShell .allianceChat .chatBubble .chatRank .rank-insignia{width:23px;min-width:23px;height:32px;min-height:32px;padding:1px;border-radius:4px;box-shadow:none}.gameShell .allianceChat .chatBubble .chatRank:after{font-size:9px;right:-3px;bottom:-2px}
.gameShell .allianceChat .chatBubble.continued{padding-top:9px;padding-bottom:9px;margin-top:-4px}.gameShell .allianceChat .chatBubble.continued p{margin-top:0}
.gameShell #commandDock #dockMore{background:transparent;border:1px solid var(--ui-border);border-radius:8px;padding:0 10px;margin:10px 0}
.gameShell #commandDock #dockMore>summary{background:transparent;color:var(--ui-muted);min-height:42px;padding:10px 0;font-size:12px;font-weight:500}
