/* Constrained landscape: reserve separate columns for all three lower panels. */
@media(min-width:701px) and (max-width:1200px) and (orientation:landscape){
 html body.portfolio-redesign:not(.normal-ui) .stage{display:block!important;height:100dvh!important;min-height:500px!important;--dock-height:54px;padding:0!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #scene{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;aspect-ratio:auto!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .battle-hud.reference-neon-host{position:absolute!important;width:46%!important;max-width:none!important;left:50%!important;top:auto!important;bottom:calc(var(--dock-height) + 12px)!important;transform:translateX(-50%)!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .intel-stack.tactical-console{position:absolute!important;width:25%!important;min-width:0!important;max-width:none!important;right:1%!important;left:auto!important;top:auto!important;bottom:calc(var(--dock-height) + 12px)!important;height:auto!important;aspect-ratio:1500/790!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .lumi-panel{position:absolute!important;width:22%!important;min-width:0!important;max-width:none!important;left:1%!important;right:auto!important;top:auto!important;bottom:calc(var(--dock-height) + 12px)!important;height:auto!important;min-height:0!important;transform:none!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .lumi-speech{margin:0!important;width:100%!important;padding:6px!important;box-sizing:border-box}
 html body.portfolio-redesign:not(.normal-ui) .stage .lumi-speech p{font-size:11px!important;line-height:1.4!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .lumi-portrait{width:100%!important;left:0!important;bottom:0!important;top:auto!important;max-height:190px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #goldQuotePanel{left:1%!important;top:10px!important;width:20%!important;min-width:0!important;height:62px!important;padding:5px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #playerProfile{right:1%!important;top:10px!important;width:20%!important;max-width:none!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #battlePowerBar{position:absolute!important;left:23%!important;top:10px!important;width:54%!important;height:102px!important;max-width:none!important;transform:none!important;padding:6px 10px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #battlePowerBar .bp-heading>span{font-size:14px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #battlePowerBar .bp-legend{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #battlePowerBar .bp-side-summary{display:grid!important;grid-template-columns:18px minmax(0,1fr)!important;grid-template-rows:auto auto!important;align-items:center!important;gap:2px 4px!important;min-width:0!important;width:100%!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #battlePowerBar .bp-soldier-head{grid-area:1/1/2/2!important;width:16px!important;height:19px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #battlePowerBar .bp-army-data{grid-area:1/2/2/3!important;display:flex!important;align-items:baseline!important;flex-wrap:wrap!important;gap:0 3px!important;min-width:0!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #battlePowerBar .bp-army-data b,html body.portfolio-redesign:not(.normal-ui) .stage #battlePowerBar .bp-army-data small{font-size:clamp(9px,1.15vw,13px)!important;line-height:1.25!important;white-space:nowrap!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #battlePowerBar .bp-reinforcement{grid-area:2/1/3/3!important;display:block!important;font-size:clamp(8px,.95vw,11px)!important;line-height:1.35!important;white-space:normal!important;overflow-wrap:normal!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #resourceTank{top:119px!important;width:45%!important;height:39px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .game-dock.icon-dock{position:absolute!important;left:0!important;right:0!important;bottom:0!important;height:var(--dock-height)!important;min-height:0!important;flex-wrap:nowrap!important;gap:4px!important;padding:3px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #battleMenu{height:100%!important;flex:1 1 auto!important;min-width:0!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #battleMenu>button{min-width:0!important;flex:1!important;font-size:9px!important;padding:2px 4px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #battleMenu>button:is([data-menu=rank],[data-menu=sound],[data-menu=music],[data-menu=settings]){display:none!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #battleMenu>button[data-menu=more]{display:flex!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #battleMenuMore :is([data-menu=rank],[data-menu=sound],[data-menu=music],[data-menu=settings]){display:flex!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #walletHud{flex:none!important;margin-left:0!important;gap:3px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #walletHud b{font-size:11px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #eaLink{flex:0 1 100px!important;max-width:100px!important;min-width:0!important;font-size:8px!important;overflow:hidden!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .online-account-badge{max-width:110px!important;min-width:0!important;overflow:hidden!important}
}
@media(min-width:701px) and (max-width:1200px) and (orientation:landscape){
 html body.portfolio-redesign:not(.normal-ui) .stage #battlePowerBar .bp-summary-sell{grid-template-columns:minmax(0,1fr) 18px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #battlePowerBar .bp-summary-sell .bp-soldier-head{grid-area:1/2/2/3!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #battlePowerBar .bp-summary-sell .bp-army-data{grid-area:1/1/2/2!important;justify-content:flex-end!important}
}
