#battlePowerBar{position:absolute;z-index:7;left:23%;width:54%;top:calc(var(--profile-bottom,70px) + 4px);height:90px;box-sizing:border-box;padding:7px 14px 5px;color:#c5dce7;background:linear-gradient(135deg,#153646f2,#071723f0);border:1px solid #7196a6;border-top-color:#a5d4e4;border-radius:10px;box-shadow:0 4px 12px #0009,inset 0 0 0 3px #0a1c29;pointer-events:none;font-family:system-ui,sans-serif;font-variant-numeric:tabular-nums}
.bp-heading{display:flex;align-items:center;justify-content:space-between;font-size:10px;line-height:13px;letter-spacing:1px}.bp-heading>b:first-child{color:#5df3c4}.bp-heading>b:last-child{color:#ff8096}.bp-heading small{font-size:8px}.bp-heading>span{font-size:8px;color:#9fb7c6}.bp-heading i{font-style:normal;color:#a7b6bf;font-size:7px;margin-left:5px}
.bp-rail{position:relative;margin-top:7px;margin-bottom:14px;height:12px;border:1px solid #93e9e088;border-radius:5px;background:linear-gradient(90deg,#116d68,#25c9a6 38%,#508684 50%,#ed526b 65%,#8a263d);box-shadow:inset 0 2px 4px #0007,0 0 8px #36f5d12a;isolation:isolate}.bp-energy{position:absolute;inset:0;overflow:hidden;border-radius:inherit}.bp-energy:after{content:'';position:absolute;inset:0;background:repeating-linear-gradient(110deg,transparent 0 40px,#d7fffb30 42px 44px,transparent 47px 80px);background-size:160px 100%;animation:bp-flow 5s linear infinite}.bp-overlap{position:absolute;top:0;bottom:0;background:#ffde7870;box-shadow:0 0 9px #ffd55b,inset 0 0 8px #fff7ae;z-index:1}.bp-overlap[hidden]{display:none}
.bp-marker{position:absolute;top:-5px;bottom:-4px;width:2px;background:currentColor;z-index:3;transition:left .22s ease-out;filter:drop-shadow(0 0 3px currentColor)}.bp-marker i{position:absolute;top:-3px;left:-4px;width:10px;height:10px;box-sizing:border-box;border:2px solid currentColor;border-radius:50%;background:#0a1f28}.bp-marker small{position:absolute;top:22px;left:50%;transform:translateX(-50%);font-size:8px;font-weight:750;white-space:nowrap;text-shadow:0 1px 3px #000,0 0 3px #000}.bp-marker.buy{color:#54ffbf}.bp-marker.sell{color:#ff6d8d}.bp-marker.market{color:#ffdf68;z-index:4;width:3px}.bp-marker.market i{border-radius:3px;width:9px;height:26px;top:0;left:-3px;background:#ffe49844}.bp-marker.market small{display:none}.bp-marker.sell small{top:23px}.bp-marker[class*="-be"]{width:1px;background:repeating-linear-gradient(to bottom,currentColor 0 2px,transparent 2px 4px);color:#ffedb0;opacity:.7}.bp-marker[class*="-be"] i{display:none}.bp-marker[class*="-be"] small{display:none}
.bp-scale{display:flex;justify-content:space-between;color:#88a4b7;font-size:7px;margin-top:3px;padding-bottom:0}.bp-scale span:before{content:'';display:block;height:3px;border-left:1px solid #91b5c377;margin-bottom:1px}.bp-scale span:last-child{text-align:right}.bp-scale span:last-child:before{border-left:0;border-right:1px solid #91b5c377}.bp-legend{display:flex;justify-content:space-between;align-items:center;gap:7px;font-size:8px;line-height:11px}.bp-buy{color:#66ebbe}.bp-sell{color:#ff8ba2}.bp-market{color:#ffdf7b}.bp-market small{font-size:7px;color:#beac73}.bp-market em{font-style:normal}.bp-costs{font-size:7px;line-height:10px;text-align:center;color:#91a9b6;margin-top:2px;white-space:nowrap}.bp-stale .bp-marker.market{opacity:1}.bp-empty .bp-rail{background:linear-gradient(90deg,#173f40,#2e3041)}.bp-empty .bp-energy{display:none}.bp-empty .bp-scale{height:15px}.bp-rebase .bp-marker{transition:none}
@keyframes bp-flow{to{background-position:160px 0}}@media(prefers-reduced-motion:reduce){.bp-energy:after{animation:none}.bp-marker{transition:none}}
@media(max-width:700px) and (orientation:portrait),(max-width:540px){.portfolio-redesign .stage{grid-template-rows:30px 72px 132px minmax(56px,1fr) 74px 60px 108px 38px}#battlePowerBar{position:relative;inset:auto;grid-row:2;grid-column:1/-1;width:100%;height:72px;padding:4px 9px;border-radius:7px}.bp-heading{font-size:8px;line-height:10px}.bp-heading small{display:none}.bp-heading>span{font-size:6px}.bp-heading i{font-size:5px;margin-left:2px}.bp-rail{margin-top:5px;margin-bottom:0;height:10px}.bp-marker small{display:none}.bp-marker.sell small{top:28px}.bp-marker.market i{height:20px}.bp-scale{font-size:5px;padding-bottom:0}.bp-legend{font-size:7px;line-height:9px}.bp-market small,.bp-costs{font-size:5px;line-height:7px}.bp-costs{margin-top:1px}}
@media(max-height:600px) and (orientation:landscape){#battlePowerBar{left:23%;width:54%;top:53px;height:55px;padding:3px 8px}.bp-heading{font-size:7px;line-height:8px}.bp-heading small{display:none}.bp-heading>span{font-size:6px}.bp-heading i{font-size:5px}.bp-rail{height:8px;margin-top:4px;margin-bottom:0}.bp-marker small{display:none}.bp-scale{font-size:5px;margin-top:1px;padding-bottom:0}.bp-legend{font-size:6px;line-height:9px}.bp-market small,.bp-costs{font-size:5px;line-height:6px}.bp-marker.market i{height:16px}.bp-costs{margin-top:0}}
@media(max-height:600px) and (orientation:landscape){#battlePowerBar{top:52px;height:35px;padding:2px 8px}.bp-heading{line-height:6px;font-size:6px}.bp-heading>span{font-size:5px}.bp-rail{height:5px;margin-top:3px}.bp-scale{font-size:4px;line-height:5px;margin-top:0}.bp-scale span:before{height:2px;margin-bottom:0}.bp-legend{font-size:6px;line-height:8px}.bp-costs{display:none}.bp-marker.market i{height:13px}}
@media(min-width:701px) and (min-height:601px){.bp-costs{line-height:8px;margin-top:0}}
/* Upper price bar and right-side profile; display layout only. */
.portfolio-redesign .stage #playerProfile{left:auto;right:1.2%;top:12px;transform:none;width:min(300px,20%)}
#battlePowerBar{top:12px;height:84px}
@media(max-width:700px) and (orientation:portrait),(max-width:540px){
 .portfolio-redesign .stage{grid-template-rows:64px 30px 132px minmax(56px,1fr) 74px 60px 108px 38px}
 .portfolio-redesign .stage #playerProfile{position:relative;inset:auto;grid-row:2;grid-column:1/-1;justify-self:end;width:66%;height:30px;min-height:30px}
 #battlePowerBar{grid-row:1;top:auto;height:64px}
}
@media(max-height:600px) and (orientation:landscape) and (min-width:541px){
 .portfolio-redesign .stage #playerProfile{top:8px;right:22%;width:20%;min-height:40px;height:40px;padding:4px 6px;gap:5px}
 .portfolio-redesign .stage #playerProfile .player-avatar{width:27px;height:27px}
 .portfolio-redesign .stage #playerProfile .player-identity b{font-size:12px}
 .portfolio-redesign .stage #playerProfile .player-identity small{font-size:5px}
 .portfolio-redesign .stage #playerProfile .player-rank{font-size:6px;padding-left:4px}
 #battlePowerBar{left:22%;width:34%;top:8px;height:49px;padding:3px 7px}
 .bp-heading{font-size:7px;line-height:8px;letter-spacing:.4px}.bp-heading>span{font-size:5px}.bp-heading i{display:none}
 .bp-rail{height:8px;margin-top:4px}.bp-scale{font-size:5px;line-height:6px;margin-top:2px}.bp-scale span:before{height:2px}
 .bp-legend{font-size:7px;line-height:10px}.bp-marker.market i{height:17px}
}
/* Supplied monster portrait tracks the current-price marker. */
.bp-marker.market{width:0;background:none;filter:none}
.bp-marker.market i{left:0;top:50%;width:34px;height:34px;transform:translate(-50%,-50%);border:0;border-radius:0;background:url('../assets/battle-market-monster.png') center/contain no-repeat;filter:drop-shadow(0 0 3px #ff8a3266)}
@media(min-width:701px) and (min-height:601px){.bp-rail{margin-top:12px}}
@media(max-width:700px) and (orientation:portrait),(max-width:540px){.bp-marker.market i{width:24px;height:24px}}
@media(max-height:600px) and (orientation:landscape) and (min-width:541px){.bp-marker.market i{width:22px;height:22px}}
@media(min-width:701px) and (min-height:601px){#battlePowerBar{height:90px}}
@media(max-width:700px) and (orientation:portrait),(max-width:540px){.portfolio-redesign .stage{grid-template-rows:64px 30px 66px minmax(56px,1fr) 74px 60px 108px 38px}}
/* Full-panel entry buttons; original side statistics and recall live in the price bar. */
.portfolio-redesign .stage .army-side{height:206px;padding:0;gap:0;overflow:hidden}
.portfolio-redesign .stage .army-side>.reinforcement-heading{display:none}
.portfolio-redesign .stage .army-side>.manual-entry{flex:1;width:100%;height:100%;min-height:0;margin:0;padding:8px;border:0;border-radius:8px;font-size:32px;gap:8px}
.portfolio-redesign .stage .army-side>.manual-entry canvas{width:100px!important;height:100px!important}
#battlePowerBar{height:126px;pointer-events:none}
.bp-legend{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start}
.bp-side-summary{display:flex;flex-direction:column;gap:3px;min-width:0}
.bp-summary-sell{text-align:right}
.bp-side-summary>.bp-buy,.bp-side-summary>.bp-sell{font-size:10px;line-height:12px}
.bp-army-data{display:flex;flex-wrap:wrap;align-items:center;gap:2px 8px;font-variant-numeric:tabular-nums;line-height:13px;color:#cce1eb}
.bp-summary-sell .bp-army-data{justify-content:flex-end}
.bp-army-data b{font-size:11px;color:#dbeef5;white-space:nowrap}
.bp-army-data small{font-size:10px;margin:0;white-space:nowrap}
.bp-army-data .army-pending{display:none!important}
.bp-army-data .side-pnl{font-weight:750}
.portfolio-redesign .stage #battlePowerBar .recall-entry{pointer-events:auto;align-self:flex-start;width:auto;min-height:24px;height:24px;margin:0;padding:2px 12px;font-size:10px;line-height:17px;letter-spacing:0}
.portfolio-redesign .stage #battlePowerBar .bp-summary-sell .recall-entry{align-self:flex-end}
@media(max-width:700px) and (orientation:portrait),(max-width:540px){
 .portfolio-redesign .stage{grid-template-rows:104px 30px 66px minmax(56px,1fr) 74px 60px 108px 38px}
 #battlePowerBar{height:104px}
 .portfolio-redesign .stage .army-side{height:132px}
 .portfolio-redesign .stage .army-side>.manual-entry{font-size:26px;gap:4px}
 .portfolio-redesign .stage .army-side>.manual-entry canvas{width:70px!important;height:70px!important}
 .bp-legend{gap:8px}.bp-side-summary{gap:2px}
 .bp-side-summary>.bp-buy,.bp-side-summary>.bp-sell{font-size:8px;line-height:10px}
 .bp-army-data{gap:1px 4px;line-height:11px}.bp-army-data b{font-size:8px}.bp-army-data small{font-size:7px}
 .portfolio-redesign .stage #battlePowerBar .recall-entry{font-size:9px;min-height:24px;height:24px;padding:1px 8px}
}
@media(max-height:600px) and (orientation:landscape) and (min-width:541px){
 #battlePowerBar{height:78px}
 .portfolio-redesign .stage .army-side{height:120px}
 .portfolio-redesign .stage .army-side>.manual-entry{font-size:24px;gap:4px}
 .portfolio-redesign .stage .army-side>.manual-entry canvas{width:60px!important;height:60px!important}
 .bp-legend{gap:8px}.bp-side-summary{gap:1px}
 .bp-side-summary>.bp-buy,.bp-side-summary>.bp-sell{font-size:7px;line-height:8px}
 .bp-army-data{gap:0 3px;line-height:8px}.bp-army-data b{font-size:7px}.bp-army-data small{font-size:6px}
 .portfolio-redesign .stage #battlePowerBar .recall-entry{font-size:7px;line-height:12px;min-height:18px;height:18px;padding:1px 6px}
}
@media(min-width:701px) and (min-height:601px){#battlePowerBar{height:138px}}
/* Reinforcements appear only during a confirmed live round; recall follows filled manual orders. */
.portfolio-redesign .stage .army-side{--reinforce-height:206px;display:none!important;height:auto;padding:0;gap:6px;overflow:visible}
.portfolio-redesign .stage .army-side.is-round-active{display:flex!important}
.portfolio-redesign .stage .army-side>.reinforcement-heading{display:block;margin:0;padding:5px 2px;text-align:center;font-size:20px;line-height:24px;color:#e2edf3;order:-1}
.portfolio-redesign .stage .army-side>.manual-entry,.portfolio-redesign .stage .army-side>.recall-entry{box-sizing:border-box;flex:none;width:100%;height:var(--reinforce-height);min-height:var(--reinforce-height);margin:0;border-radius:8px;font-size:30px;line-height:1.2;letter-spacing:0}
.portfolio-redesign .stage .army-side>.recall-entry{display:none;order:1;border:1px solid #ffc373;background:linear-gradient(#ec9b37,#bc5a12);color:#fff4dc;box-shadow:inset 0 1px #ffe5af,0 0 12px #e9852722}
.portfolio-redesign .stage .army-side.has-reinforcement>.recall-entry{display:block}
@media(max-width:700px) and (orientation:portrait),(max-width:540px){
 .portfolio-redesign .stage{--army-row:0px;grid-template-rows:104px 30px var(--army-row) minmax(56px,1fr) 74px 60px 108px 38px}
 .portfolio-redesign .stage.reinforcements-active{--army-row:85px}
 .portfolio-redesign .stage.reinforcements-recall-visible{--army-row:154px}
 .portfolio-redesign .stage .army-side{--reinforce-height:132px}
 .portfolio-redesign .stage .army-side>.reinforcement-heading{font-size:18px;line-height:22px;padding:3px 1px}
 .portfolio-redesign .stage .army-side>.manual-entry,.portfolio-redesign .stage .army-side>.recall-entry{font-size:26px}
}
@media(max-height:600px) and (orientation:landscape) and (min-width:541px){
 .portfolio-redesign .stage .army-side{--reinforce-height:100px;gap:4px}
 .portfolio-redesign .stage .army-side>.reinforcement-heading{font-size:16px;line-height:20px;padding:2px 0}
 .portfolio-redesign .stage .army-side>.manual-entry,.portfolio-redesign .stage .army-side>.recall-entry{font-size:24px}
}
.portfolio-redesign .stage .army-side{align-self:start}
/* Compact price summaries: each side keeps its statistics on the BUY / SELL line. */
.bp-side-summary{flex-direction:row;align-items:center;gap:7px;white-space:nowrap}
.bp-summary-sell{justify-content:flex-end}
.bp-army-data{display:contents}
.bp-side-summary>.bp-buy,.bp-side-summary>.bp-sell{font-size:10px;line-height:14px}
#battlePowerBar{height:90px;padding-right:34px}
/* Fold controls change presentation only, without replacing financial controls. */
.portfolio-redesign .stage .hud-fold{position:absolute;right:4px;top:3px;z-index:15;display:flex!important;align-items:center;justify-content:center;width:26px;height:26px;min-height:26px;margin:0;padding:0;border:1px solid #7399aa85;border-radius:6px;background:#102c3eea;color:#d9edf7;font:18px/1 system-ui;pointer-events:auto;cursor:pointer;opacity:1}
.portfolio-redesign .stage .hud-foldable{position:relative}
.portfolio-redesign .stage #battlePowerBar,.portfolio-redesign .stage .army-side,.portfolio-redesign .stage #lumiPanel{position:absolute}
.portfolio-redesign .stage #playerProfile{padding-right:32px}
.portfolio-redesign .stage .intel-stack h2{padding-right:25px}
.portfolio-redesign .stage .army-side>.hud-fold{width:40px;height:40px;min-height:40px;font-size:26px;top:0;right:0}
.portfolio-redesign .stage .army-side>.reinforcement-heading{padding-right:40px}
.portfolio-redesign .stage .hud-icon-only:not(.round-panel){width:38px!important;height:38px!important;min-height:38px!important;padding:0!important;border-radius:9px}
.portfolio-redesign .stage .hud-icon-only:not(.round-panel)>:not(.hud-fold){display:none!important}
.portfolio-redesign .stage .hud-icon-only>.hud-fold{inset:0;width:100%;height:100%;min-height:0;font-size:22px}
.portfolio-redesign .stage .army-side.hud-icon-only{width:76px!important;height:76px!important;min-height:76px!important}
.portfolio-redesign .stage #playerProfile.hud-icon-only{position:absolute}
.portfolio-redesign .stage #roundPanel.hud-icon-only{height:auto;min-height:0;padding-top:34px;background:#102a3cf2;border:1px solid #64899c;border-radius:10px}
.portfolio-redesign .stage #roundPanel.hud-icon-only>.round-heading,.portfolio-redesign .stage #roundPanel.hud-icon-only>#np,.portfolio-redesign .stage #roundPanel.hud-icon-only>#targetsButton{display:none!important}
.portfolio-redesign .stage #roundPanel.hud-icon-only>.hud-fold{inset:3px 4px auto auto;width:26px;height:26px;font-size:18px}
.portfolio-redesign .stage #battlePowerBar.hud-icon-only{pointer-events:auto}
@media(max-width:700px) and (orientation:portrait),(max-width:540px){
 .portfolio-redesign .stage{--battle-row:64px;--round-row:108px;grid-template-rows:var(--battle-row) 30px var(--army-row) minmax(56px,1fr) 74px 60px var(--round-row) 38px}
 .portfolio-redesign .stage:has(#battlePowerBar.hud-icon-only){--battle-row:38px}
 .portfolio-redesign .stage:has(#roundPanel.hud-icon-only){--round-row:84px}
 .portfolio-redesign .stage #battlePowerBar,.portfolio-redesign .stage .army-side,.portfolio-redesign .stage #lumiPanel,.portfolio-redesign .stage #roundPanel{position:relative}
 #battlePowerBar{height:64px;padding-right:29px}
 .bp-side-summary{gap:3px}.bp-side-summary>.bp-buy,.bp-side-summary>.bp-sell{font-size:6px;line-height:10px}.bp-army-data b,.bp-army-data small{font-size:6px}
 .portfolio-redesign .stage #playerProfile.hud-icon-only{position:relative;height:30px!important;min-height:30px!important}
 .portfolio-redesign .stage #roundPanel.hud-icon-only{height:100%;padding:28px 7px 4px}
 .portfolio-redesign .stage #roundPanel.hud-icon-only>.round-bottom{grid-column:1/-1}
 .portfolio-redesign .stage #lumiPanel.hud-icon-only{align-self:start}
}
@media(max-height:600px) and (orientation:landscape) and (min-width:541px){
 #battlePowerBar{height:52px;padding-right:29px}
 .bp-side-summary{gap:2px}.bp-side-summary>.bp-buy,.bp-side-summary>.bp-sell{font-size:5px;line-height:8px}.bp-army-data b,.bp-army-data small{font-size:5px}
 .portfolio-redesign .stage .hud-fold{width:22px;height:22px;min-height:22px;font-size:16px}
}
.portfolio-redesign .stage #roundPanel>.hud-fold{width:26px!important;height:26px!important;min-height:26px!important;flex:none!important}
.portfolio-redesign .stage #playerProfile.hud-icon-only{width:38px!important;max-width:38px!important;height:38px!important;min-height:38px!important;padding:0!important}
.portfolio-redesign .stage #playerProfile.hud-icon-only>:not(.hud-fold){display:none!important}
.portfolio-redesign .stage .army-side.hud-icon-only>.hud-fold{width:100%!important;height:100%!important;min-height:0!important;font-size:36px}
.portfolio-redesign .stage .intel-stack .hud-icon-only{justify-self:end}
.portfolio-redesign .stage .hud-fold{min-width:0!important;clip-path:none!important;letter-spacing:0;box-shadow:none}
.portfolio-redesign .stage #roundPanel>.hud-fold{min-width:26px!important;max-width:26px!important;pointer-events:auto}
.portfolio-redesign .stage #playerProfile[data-hud-compact="true"]{width:38px!important;max-width:38px!important;height:38px!important;min-height:38px!important;padding:0!important}
.portfolio-redesign .stage #playerProfile[data-hud-compact="true"]>:not(.hud-fold){display:none!important}
.portfolio-redesign .stage #roundPanel.hud-icon-only{display:flex!important;flex-direction:column;justify-content:flex-end;gap:4px}
.portfolio-redesign .stage #roundPanel.hud-icon-only>.round-bottom{flex:none;width:100%;margin:0;grid-area:auto}
@media(max-width:700px) and (orientation:portrait),(max-width:540px){
 .portfolio-redesign .stage{--tactical-row:74px;--support-row:60px;grid-template-rows:var(--battle-row) 38px var(--army-row) minmax(56px,1fr) var(--tactical-row) var(--support-row) var(--round-row) 38px}
 .portfolio-redesign .stage:has(.buy-army.hud-icon-only):has(.sell-army.hud-icon-only).reinforcements-active{--army-row:38px}
 .portfolio-redesign .stage:has(#regimePanel.hud-icon-only){--tactical-row:38px}
 .portfolio-redesign .stage:has(#lumiPanel.hud-icon-only):has(#signalsPanel.hud-icon-only){--support-row:38px}
 .portfolio-redesign .stage #roundPanel.hud-icon-only{padding-top:30px}
}
@media(max-width:700px) and (orientation:portrait),(max-width:540px){.portfolio-redesign .stage .sell-army.hud-icon-only{justify-self:end}}
.portfolio-redesign .stage #playerProfile .player-identity b{white-space:nowrap;font-size:18px}
@media(max-height:600px) and (orientation:landscape) and (min-width:541px){.portfolio-redesign .stage #playerProfile{width:22%}.portfolio-redesign .stage #playerProfile .player-identity b{font-size:10px}}
/* Latest source quote; delta is per received quote, never daily performance. */
.portfolio-redesign .stage #goldQuotePanel{position:absolute;left:1.2%;top:12px;width:20%;height:58px;min-height:0;display:flex;align-items:center;gap:7px;padding:6px 31px 6px 9px;border:1px solid #658b9e;border-radius:8px;background:linear-gradient(135deg,#153647f5,#081a28f5);color:#dbeaf3;z-index:7;font-variant-numeric:tabular-nums;box-sizing:border-box;pointer-events:auto}
.gold-quote-icon{flex:none;width:34px}.gold-quote-icon svg{display:block;width:100%;height:34px;filter:drop-shadow(0 2px 2px #0008)}
.gold-quote-content{min-width:0;flex:1}.gold-quote-heading{display:flex;align-items:center;gap:7px;font-size:10px;line-height:14px}.gold-quote-heading small{font-size:7px;color:#97b5c7;font-weight:400}
.gold-quote-values{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 6px;line-height:16px}.gold-quote-values strong{font-size:15px;color:#f1f6f8}.gold-quote-values span{font-size:10px;white-space:nowrap;color:#a9bece}
#goldQuotePanel[data-direction="up"] #quoteChange{color:#59edb0}#goldQuotePanel[data-direction="down"] #quoteChange{color:#ff7d91}
.portfolio-redesign .stage #goldQuotePanel.hud-icon-only{width:38px!important;height:38px!important;min-height:38px!important;padding:0!important}
.portfolio-redesign .stage .hud-fold svg{width:28px;height:28px}
@media(max-width:700px) and (orientation:portrait),(max-width:540px){
 .portfolio-redesign .stage{grid-template-rows:var(--battle-row) 56px var(--army-row) minmax(56px,1fr) var(--tactical-row) var(--support-row) var(--round-row) 38px}
 .portfolio-redesign .stage #goldQuotePanel{position:relative;inset:auto;grid-row:2;grid-column:1;width:100%;height:56px;gap:4px;padding:4px 25px 4px 5px;align-self:start}
 .portfolio-redesign .stage #playerProfile{grid-column:2;width:100%;height:38px;min-height:38px;align-self:start}
 .gold-quote-icon{width:23px}.gold-quote-icon svg{height:26px}.gold-quote-heading{font-size:8px;line-height:10px;gap:3px}.gold-quote-heading small{font-size:5px}
 .gold-quote-values{flex-direction:column;gap:0;line-height:14px}.gold-quote-values strong{font-size:12px}.gold-quote-values span{font-size:8px}
 .portfolio-redesign .stage #playerProfile .player-identity b{font-size:13px}
}
@media(max-height:600px) and (orientation:landscape) and (min-width:541px){
 .portfolio-redesign .stage #goldQuotePanel{top:8px;height:52px;padding:3px 25px 3px 5px;gap:4px}
 .gold-quote-icon{width:22px}.gold-quote-icon svg{height:26px}.gold-quote-heading{font-size:8px;line-height:10px;gap:3px}.gold-quote-heading small{font-size:5px}
 .gold-quote-values{gap:0 4px;line-height:14px}.gold-quote-values strong{font-size:12px}.gold-quote-values span{font-size:8px}
 .portfolio-redesign .stage .buy-army{top:66px}
}
.portfolio-redesign .stage #roundPanel:not(.hud-icon-only)>.round-heading{padding-right:28px}
/* Supplied command interface, cleaned bitmap with live DOM values and original controls. */
.portfolio-redesign .stage .battle-hud{left:50%;width:52%;bottom:62px;top:auto;transform:translateX(-50%)}
.portfolio-redesign .stage .battle-hud #roundPanel{--command:#22bfff;--command-dark:#064267;position:relative;display:block!important;width:100%;height:auto;aspect-ratio:5.35;min-height:125px;padding:0;border:0;border-radius:0;background:url('../assets/command-interface-v1.png') center center/100% 185% no-repeat;filter:drop-shadow(0 4px 8px #0008);isolation:isolate}
.portfolio-redesign .stage #roundPanel[data-command-color="green"]{--command:#00ed91;--command-dark:#064c3c}
.portfolio-redesign .stage #roundPanel[data-command-color="red"]{--command:#ff4866;--command-dark:#630f25}
.portfolio-redesign .stage #roundPanel>.hud-fold{display:none!important}
.portfolio-redesign .stage #roundPanel>.round-heading{display:contents;padding:0!important}
.portfolio-redesign .stage #roundPanel .account-balance,.portfolio-redesign .stage #roundPanel .today-profit{position:absolute;top:33%;display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:18%;margin:0;min-width:0;text-align:left}
.portfolio-redesign .stage #roundPanel .account-balance{left:15.5%}.portfolio-redesign .stage #roundPanel .today-profit{left:36%}
.portfolio-redesign .stage #roundPanel .account-balance>span,.portfolio-redesign .stage #roundPanel .today-profit>span{font-size:clamp(7px,.7vw,12px);line-height:1;letter-spacing:.6px;white-space:nowrap}
.portfolio-redesign .stage #roundPanel .account-balance>b,.portfolio-redesign .stage #roundPanel .today-profit>b{font-size:clamp(12px,1.35vw,24px);font-style:normal;line-height:1.15;letter-spacing:0;white-space:nowrap;margin:0}
.portfolio-redesign .stage #roundPanel>#np{position:absolute;left:15.5%;top:67%;margin:0;font-size:clamp(10px,1vw,18px);line-height:1.2}
.portfolio-redesign .stage #roundPanel>#targetsButton{position:absolute;left:53.1%;top:28%;width:14.7%;height:48%;min-height:0;min-width:0;padding:4px!important;display:flex;flex-direction:column;justify-content:space-between;gap:0;border:0;background:transparent;box-shadow:none;clip-path:none;line-height:1.1;pointer-events:auto}
.portfolio-redesign .stage #roundPanel #targetsButton>span:first-child{display:block;font-size:clamp(8px,.85vw,15px);line-height:1.2;white-space:nowrap}
.portfolio-redesign .stage #roundPanel .target-pair{display:flex;justify-content:center;gap:5px;flex-wrap:wrap}
.portfolio-redesign .stage #roundPanel .target-pair b,.portfolio-redesign .stage #roundPanel .target-pair small{font-size:clamp(6px,.55vw,10px)}
.portfolio-redesign .stage #roundPanel>.round-bottom{position:absolute;left:69%;top:24%;width:27%;height:58%;display:flex;align-items:center;padding:0;margin:0;gap:0}
.portfolio-redesign .stage #roundPanel #roundAction{position:absolute;inset:0;width:100%;height:100%;min-height:0;min-width:0;max-width:none;margin:0;padding:0 4px 0 26%;border:2px solid var(--command);border-radius:28% 8% 8% 28% / 50% 18% 18% 50%;clip-path:none;background:linear-gradient(135deg,color-mix(in srgb,var(--command) 34%,#031525),var(--command-dark));box-shadow:inset 0 0 15px #0008,0 0 5px var(--command);font-size:clamp(14px,1.8vw,32px);font-weight:900;line-height:1;letter-spacing:.5px;color:#f3fcff;text-shadow:0 2px 3px #0008;transition:background .25s,box-shadow .25s,filter .25s;overflow-wrap:anywhere}
.portfolio-redesign .stage #roundPanel #roundAction:before{content:'';position:absolute;left:5%;top:20%;width:24%;height:60%;border:2px solid var(--command);border-radius:50%;background:radial-gradient(circle at 33% 22%,#edffff,var(--command) 26%,var(--command-dark) 80%);box-shadow:0 0 7px var(--command),inset 0 0 4px #fff9;pointer-events:none}
.portfolio-redesign .stage #roundPanel.command-running #roundAction{background:linear-gradient(135deg,color-mix(in srgb,var(--command) 90%,white),var(--command));color:#04202b;text-shadow:0 1px 1px #fff8;box-shadow:0 0 12px var(--command),0 0 30px color-mix(in srgb,var(--command) 70%,transparent),inset 0 0 20px #efffff8c;border-color:#e8fff9;filter:brightness(1.25)}
.portfolio-redesign .stage #roundPanel.command-running #roundAction:before{background:radial-gradient(circle at 35% 25%,white,#e7fff9 15%,var(--command) 60%);box-shadow:0 0 18px var(--command),0 0 8px #fff;border-color:#fff}
.portfolio-redesign .stage #roundPanel .signal-indicator{position:absolute;left:5%;top:20%;width:24%;height:60%;z-index:2;pointer-events:none;opacity:0}
.portfolio-redesign .stage #roundPanel .signal-indicator.is-ready{opacity:1}.portfolio-redesign .stage #roundPanel .signal-beacon{width:100%;height:100%;border-radius:50%}
.portfolio-redesign .stage #roundPanel #signalCountdown{position:absolute;left:0;right:0;top:100%;font-size:10px;line-height:1.2;color:#ffe48f}
.portfolio-redesign .stage #roundPanel>.signal-status{position:absolute;top:-16px;left:15%;right:4%;font-size:9px}
.portfolio-redesign .stage #roundPanel>#closeStatus{position:absolute;top:92%;left:5%;right:5%;font-size:10px;line-height:1.2;margin:0;background:#081b2ee8;border-radius:4px;z-index:4}
.portfolio-redesign .stage #roundPanel #forceRoundClose{position:absolute;right:0;top:104%;min-height:24px;font-size:10px;padding:3px 6px;z-index:5}
@media(max-width:700px) and (orientation:portrait),(max-width:540px){
 .portfolio-redesign .stage .battle-hud{position:relative;inset:auto;transform:none;width:100%}
 .portfolio-redesign .stage .battle-hud #roundPanel{height:108px;min-height:0;aspect-ratio:auto}
 .portfolio-redesign .stage #roundPanel .account-balance>b,.portfolio-redesign .stage #roundPanel .today-profit>b{font-size:12px}.portfolio-redesign .stage #roundPanel .account-balance>span,.portfolio-redesign .stage #roundPanel .today-profit>span{font-size:6px;letter-spacing:0}
 .portfolio-redesign .stage #roundPanel>#np{font-size:11px}.portfolio-redesign .stage #roundPanel #roundAction{font-size:18px;border-width:1px}
 .portfolio-redesign .stage #roundPanel #targetsButton>span:first-child{font-size:8px}.portfolio-redesign .stage #roundPanel .target-pair{gap:1px 3px}.portfolio-redesign .stage #roundPanel .target-pair b,.portfolio-redesign .stage #roundPanel .target-pair small{font-size:6px}
}
@media(max-height:600px) and (orientation:landscape) and (min-width:541px){
 .portfolio-redesign .stage .battle-hud{width:54%;bottom:48px}
 .portfolio-redesign .stage .battle-hud #roundPanel{min-height:80px}
 .portfolio-redesign .stage #roundPanel .account-balance>b,.portfolio-redesign .stage #roundPanel .today-profit>b{font-size:12px}.portfolio-redesign .stage #roundPanel #roundAction{font-size:20px}
}
.portfolio-redesign .stage #roundPanel>#targetsButton{border:0!important;background:transparent!important;box-shadow:none!important}
.portfolio-redesign .stage #roundPanel #targetsButton>span:first-child{font-size:0!important}
.portfolio-redesign .stage #roundPanel #targetsButton>span:first-child:after{content:'TP / SL ⌄';font-size:clamp(8px,.85vw,15px);color:#ffe6a3}
.portfolio-redesign .stage #roundPanel.command-pending #roundAction{font-size:clamp(9px,1vw,17px);line-height:1.25;padding-right:6px;white-space:normal}
@media(max-width:700px) and (orientation:portrait),(max-width:540px){.portfolio-redesign .stage #roundPanel.command-pending #roundAction{font-size:10px}}
@media(max-height:600px) and (orientation:landscape) and (min-width:541px){.portfolio-redesign .stage .battle-hud{width:50%}}

/* Icon-only battle summaries: red left, green right. */
#battlePowerBar .bp-heading{justify-content:center}
#battlePowerBar .bp-heading>b,#battlePowerBar #bpState,#battlePowerBar .bp-scale,#battlePowerBar .bp-marker small,#battlePowerBar .bp-side-summary>.bp-buy,#battlePowerBar .bp-side-summary>.bp-sell{display:none}
#battlePowerBar .bp-rail{background:linear-gradient(90deg,#8a263d,#ed526b 35%,#508684 50%,#25c9a6 62%,#116d68);margin-bottom:8px}
#battlePowerBar.bp-empty .bp-rail{background:linear-gradient(90deg,#482532,#203d36)}
#battlePowerBar .bp-summary-sell{order:0;color:#ff7187;text-align:left;justify-content:flex-start}
#battlePowerBar .bp-summary-buy{order:1;color:#54edab;justify-content:flex-end}
#battlePowerBar .bp-army-data .side-pnl,#battlePowerBar .bp-army-data .resource-summary{display:none!important}
#battlePowerBar .bp-soldier-head{width:24px;height:28px;flex:none;filter:drop-shadow(0 0 3px currentColor)}
#battlePowerBar .bp-army-data b,#battlePowerBar .bp-army-data small{color:inherit;font-size:11px;line-height:16px}
#battlePowerBar .bp-side-summary{gap:5px}
@media(max-width:700px){#battlePowerBar .bp-soldier-head{width:16px;height:20px}#battlePowerBar .bp-army-data b,#battlePowerBar .bp-army-data small{font-size:8px;line-height:12px}#battlePowerBar .bp-side-summary{gap:3px}}
