/* Presentation-only polish; all existing controls and financial handlers are retained. */
#userProfileDialog #profileEnergy,#userProfileDialog #profileRewards .reward-values>div:first-child,#userProfileDialog #rewardRedeem,#userProfileDialog #rewardNotice{display:none!important}
html body:not(.normal-ui) .stage .tactical-console:not(.tc-folded){aspect-ratio:1500/815}
html body:not(.normal-ui) .stage .tactical-console .radar-lights{bottom:8%!important}
html body.portfolio-redesign:not(.normal-ui) .stage .army-side>.recall-entry{position:relative!important;box-sizing:border-box;height:40px!important;min-height:40px!important;padding:6px 14px 6px 38px!important;border:1px solid #ffc25f!important;border-radius:7px!important;background:linear-gradient(180deg,#e49c32 0,#8b460d 12%,#41240f 55%,#6e330b 89%,#dc8e2f 100%)!important;color:#fff2d5!important;font:800 14px/1.25 F1Barlow,system-ui!important;letter-spacing:.4px;box-shadow:inset 0 0 0 2px #261609,inset 0 0 12px #ffad3433,0 2px 6px #0009!important;text-shadow:0 1px 2px #000;clip-path:polygon(4% 0,96% 0,100% 22%,100% 78%,96% 100%,4% 100%,0 78%,0 22%)}
html body.portfolio-redesign:not(.normal-ui) .stage .army-side>.recall-entry:before{content:'↶';position:absolute;left:13px;top:50%;translate:0 -50%;font:800 25px/1 system-ui;color:#ffda83;text-shadow:0 0 7px #ff8b16}
html body.portfolio-redesign:not(.normal-ui) .stage .army-side>.recall-entry:hover:not(:disabled){filter:brightness(1.2)}
html body.portfolio-redesign:not(.normal-ui) .stage .army-side>.recall-entry:disabled{filter:grayscale(.65) brightness(.65);cursor:not-allowed}
html body.portfolio-redesign:not(.normal-ui) .stage .army-side>.recall-entry:focus-visible{outline:2px solid #fff;outline-offset:3px}
@media(max-width:700px) and (orientation:portrait),(max-width:540px){
 html body.portfolio-redesign:not(.normal-ui) .stage:has(.reference-neon){height:calc(100dvh - 8px)!important;min-height:0!important;display:grid!important;grid-template-columns:1fr 1fr!important;grid-template-rows:38px 42px var(--army-row,0px) minmax(70px,1fr) 174px 105px 30px 46px!important;gap:3px!important;padding:4px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage{--army-row:0px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage.reinforcements-active{--army-row:66px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage.reinforcements-recall-visible{--army-row:102px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #battlePowerBar{height:38px!important;min-height:0!important;grid-row:1!important;padding:2px 28px 2px 7px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #goldQuotePanel{grid-row:2!important;grid-column:1!important;height:42px!important;min-width:0;padding:3px 5px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #playerProfile{grid-row:2!important;grid-column:2!important;position:relative!important;inset:auto!important;justify-self:end!important;align-self:center!important;width:112px!important;max-width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:1833/680}
 html body.portfolio-redesign:not(.normal-ui) .stage .army-side{grid-row:3!important;padding:15px 0 0!important;gap:2px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .army-side>.manual-entry{aspect-ratio:auto!important;height:49px!important;min-height:0!important;background-size:221.75% 263.988095%!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .army-side>.recall-entry{height:32px!important;min-height:32px!important;font-size:12px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #scene{grid-row:4!important;grid-column:1/-1!important;position:relative!important;inset:auto!important;width:100%!important;height:100%!important;min-height:0!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .battle-hud.reference-neon-host{grid-row:5!important;grid-column:1/-1!important;height:174px!important;min-height:0!important;margin:0!important;align-self:stretch!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #roundPanel.reference-neon{box-sizing:border-box;height:174px!important;aspect-ratio:auto!important;grid-template-columns:1fr 1fr!important;grid-template-rows:36px 54px 9px 14px 32px!important;gap:3px!important;padding:6px 9px!important;border-radius:8px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #roundPanel .neon-left{grid-column:1!important;grid-row:1!important;height:auto!important;display:grid!important;grid-template-columns:1fr 1fr!important;grid-template-rows:12px 22px!important;gap:0 6px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #roundPanel .neon-connection{display:none!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #roundPanel.reference-neon .account-balance>span{grid-column:1!important;grid-row:1!important;font-size:8px!important;transform:none!important;translate:none!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #roundPanel.reference-neon .today-profit>span{grid-column:2!important;grid-row:1!important;font-size:8px!important;transform:none!important;translate:none!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #roundPanel.reference-neon #balanceValue{grid-column:1!important;grid-row:2!important;font-size:18px!important;transform:none!important;translate:none!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #roundPanel.reference-neon #todayPnl{grid-column:2!important;grid-row:2!important;font-size:18px!important;transform:none!important;translate:none!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #roundPanel.reference-neon #np{grid-column:2!important;grid-row:1!important;font-size:30px!important;min-height:0!important;justify-items:end!important;line-height:1!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #roundPanel.reference-neon #roundAction{grid-column:1/-1!important;grid-row:2!important;min-height:0!important;height:54px!important;font-size:32px!important;border:1px solid #39dfff!important;background:linear-gradient(#0879bc,#064366 50%,#05263a)!important;box-shadow:inset 0 0 0 2px #061c2b,0 0 8px #00c9ff44!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #roundPanel.reference-neon[data-neon-color=green] #roundAction{background:linear-gradient(#167a43,#075332 50%,#062a22)!important;border-color:#50efa2!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #roundPanel.reference-neon[data-neon-color=red] #roundAction{background:linear-gradient(#a33243,#681329 50%,#360f1f)!important;border-color:#ff6c83!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #roundPanel.reference-neon[data-neon-long-command=true] #roundAction{font-size:18px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #roundPanel .neon-golden-label{grid-row:3!important;font-size:8px!important;padding:0!important;translate:none!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .battle-hud #roundPanel.reference-neon #signalIndicator{grid-row:4!important;grid-column:1/-1!important;height:14px!important;margin:0!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #roundPanel.reference-neon #signalCountdown{font-size:12px!important;transform:none!important;translate:none!important;min-width:44px!important;line-height:1!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #roundPanel .neon-right{display:contents!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #roundPanel.reference-neon #targetsButton{grid-column:1/-1!important;grid-row:5!important;justify-self:center!important;align-items:center!important;width:150px!important;height:32px!important;padding:0!important;background:linear-gradient(#3c260d,#170e05)!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #roundPanel .neon-target-caption{font-size:14px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #roundPanel.reference-neon .target-pair{grid-column:1/-1!important;grid-row:5!important;justify-self:center!important;width:142px!important;pointer-events:none;opacity:0}
 html body.portfolio-redesign:not(.normal-ui) .stage .intel-stack.tactical-console:not(.tc-folded){grid-row:6!important;grid-column:1/-1!important;width:100%!important;height:105px!important;min-height:0!important;aspect-ratio:auto!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .tactical-console .regime-visual{left:5%!important;top:7%!important;right:13%!important;height:18%!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .tactical-console #regimeValue::before{font-size:12px!important;transform:none!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .tactical-console #regimeContent dl{left:5%!important;right:5%!important;top:29%!important;height:15%!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .tactical-console #regimeContent dt{font-size:7px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .tactical-console #regimeContent dd,html body.portfolio-redesign:not(.normal-ui) .stage .tactical-console #state{font-size:14px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .tactical-console .tc-divider{font-size:6px!important;letter-spacing:2px!important;top:46%!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .tactical-console .radar-lights{top:54%!important;bottom:9%!important;left:7%!important;right:7%!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .tactical-console .lamp-housing{width:30px!important;height:30px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .tactical-console .lamp-label{font-size:8px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .tactical-console #tacticalConsoleToggle{font-size:20px!important;width:26px!important;height:18px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .tactical-console.tc-folded{grid-row:6!important;grid-column:2!important;height:30px!important;width:40px!important;justify-self:end!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .lumi-panel{grid-row:7!important;grid-column:1/-1!important;height:30px!important;min-height:0!important;padding:0!important;display:block!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .lumi-panel .lumi-speech{height:30px!important;min-height:0!important;margin:0!important;padding:3px 6px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .lumi-speech h2{display:none!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .lumi-speech p{font-size:9px!important;line-height:1.2!important;-webkit-line-clamp:2}
 html body.portfolio-redesign:not(.normal-ui) .stage .game-dock{grid-row:8!important;height:46px!important;min-height:0!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #resourceTank{top:104px!important;max-width:75%!important;height:32px!important}
}
@media(max-width:700px) and (orientation:portrait),(max-width:540px){
 html body.portfolio-redesign:not(.normal-ui) .stage:has(.reference-neon){grid-template-rows:38px 42px var(--army-row,0px) minmax(70px,1fr) 174px 105px 30px 66px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .tactical-console #regimeValue{font-size:0!important;line-height:0!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #roundPanel.reference-neon #roundAction::before{display:none!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #roundPanel.reference-neon #roundAction{border-radius:7px!important;clip-path:polygon(3% 0,97% 0,100% 18%,100% 82%,97% 100%,3% 100%,0 82%,0 18%)!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #roundPanel.reference-neon #targetsButton{width:220px!important;justify-content:flex-start!important;padding-left:14px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #roundPanel.reference-neon .target-pair{width:110px!important;opacity:1!important;transform:translateX(42px)}
 html body.portfolio-redesign:not(.normal-ui) .stage #roundPanel.reference-neon .target-pair>span{grid-template-rows:10px 14px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #roundPanel.reference-neon .target-pair small{font-size:8px!important;line-height:10px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #roundPanel.reference-neon .target-pair b{font-size:12px!important;line-height:14px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #roundPanel.reference-neon .target-pair b:after{font-size:12px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .game-dock.icon-dock{height:66px!important;min-height:0!important;gap:1px 5px!important;padding:2px 5px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #battleMenu{height:35px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #battleMenu>button{font-size:9px!important;gap:1px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #battleMenu svg{width:18px!important;height:18px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .icon-dock #walletHud button,html body.portfolio-redesign:not(.normal-ui) .stage .icon-dock #portfolioMode{min-height:22px!important;height:22px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .icon-dock #eaLink{max-height:22px!important;font-size:7px!important}
}
@media(max-width:700px) and (orientation:portrait),(max-width:540px){
 html body.portfolio-redesign:not(.normal-ui) .stage .tactical-console #regimeContent #regimeValue{font-size:0!important;line-height:0!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #roundPanel.reference-neon .target-pair b[data-neon-unset=true]{font-size:0!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #roundPanel.reference-neon #signalCountdown:empty{background:transparent!important}
}
@media(max-height:700px) and (orientation:portrait) and (max-width:540px){
 html body.portfolio-redesign:not(.normal-ui) .stage:has(.reference-neon){grid-template-rows:32px 36px var(--army-row,0px) minmax(50px,1fr) 146px 82px 22px 58px!important;gap:2px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage.reinforcements-active{--army-row:44px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage.reinforcements-recall-visible{--army-row:74px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #battlePowerBar{height:32px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #goldQuotePanel{height:36px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #playerProfile{width:96px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .army-side{padding-top:12px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .army-side>.manual-entry{height:32px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .army-side>.recall-entry{height:28px!important;min-height:28px!important;font-size:10px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .battle-hud.reference-neon-host,html body.portfolio-redesign:not(.normal-ui) .stage #roundPanel.reference-neon{height:146px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #roundPanel.reference-neon{grid-template-rows:30px 46px 8px 10px 26px!important;gap:2px!important;padding:4px 9px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #roundPanel.reference-neon #roundAction{height:46px!important;font-size:28px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #roundPanel.reference-neon #targetsButton{height:26px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .battle-hud #roundPanel.reference-neon #signalIndicator{height:10px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .intel-stack.tactical-console:not(.tc-folded){height:82px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .tactical-console .lamp-housing{width:22px!important;height:22px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .tactical-console .lamp-label{font-size:7px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .lumi-panel,html body.portfolio-redesign:not(.normal-ui) .stage .lumi-panel .lumi-speech{height:22px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage .game-dock.icon-dock{height:58px!important}
 html body.portfolio-redesign:not(.normal-ui) .stage #battleMenu{height:29px!important}
}
