/* Independent menu dimensions; text remains readable while panels become compact. */
body.referenceHUD #accountDialog{width:min(calc(660px * var(--account-menu-scale,.85)),calc(100vw - 24px))!important;height:min(calc(440px * var(--account-menu-scale,.85)),calc(100dvh - 24px))!important}
body.referenceHUD #guestMenu,body.referenceHUD #chatPlayerProfile.sharedPlayerProfile{width:min(calc(430px * var(--account-menu-scale,.85)),calc(100vw - 24px))!important;max-height:calc(100dvh - 24px)!important;padding:14px}
body.referenceHUD #friendsPanel{width:min(calc(500px * var(--party-menu-scale,.85)),calc(100vw - 24px))!important;height:min(calc(410px * var(--party-menu-scale,.85)),calc(100dvh - 70px))!important;max-height:calc(100dvh - 70px)!important}
body.referenceHUD #globalChat{width:min(calc(300px * var(--global-chat-scale,.85)),calc(100vw - 24px))!important}body.referenceHUD #chatPanel{height:min(calc(235px * var(--global-chat-scale,.85)),calc(100dvh - 90px))!important;min-height:155px}
body.referenceHUD #dailyRewards{width:min(calc(500px * var(--daily-rewards-scale,.85)),calc(100vw - 24px))!important;max-height:calc(100dvh - 24px)!important;padding:12px}.dailyRewardGrid{gap:8px}.dailyRewardCard{padding:9px 5px;gap:6px}.journeyDialog .journeyHead{margin-bottom:10px}.journeyHead h2{font-size:20px}.journeyDialog .rewardStatus{font-size:11px;margin-bottom:10px}.rewardFooter{margin-top:12px}.rewardReset{margin-top:8px}
body.referenceHUD #updateLogsDialog{width:min(calc(620px * var(--update-logs-scale,.85)),calc(100vw - 24px))!important;height:min(calc(510px * var(--update-logs-scale,.85)),calc(100dvh - 24px))!important;max-height:calc(100dvh - 24px)!important}
body.referenceHUD #mapDialog{width:min(calc(1080px * var(--universe-map-scale,.9)),calc(100vw - 24px))!important;height:min(calc(660px * var(--universe-map-scale,.9)),calc(100dvh - 24px))!important;max-height:calc(100dvh - 24px)!important;padding:12px!important}#mapDialog .mapLayout{height:calc(100% - 60px);min-height:0}#mapDialog .mapLayout>aside{width:28%;min-width:145px}#mapDialog .atlas{min-width:0}
body.referenceHUD #accountDialog>.dialogHead h2,body.referenceHUD #friendsPanel>.dialogHead h2{font-size:18px!important}body.referenceHUD #accountDialog>.dialogHead{padding:9px 12px!important}#accountPageBody{padding:10px}#accountPageTabs{gap:8px}#accountSettings{grid-template-columns:110px minmax(0,1fr)}#accountPageTabs button{font-size:11px!important}#menuSizeSettings label{gap:10px;margin-block:14px}#menuSizeSettings output{min-width:40px;text-align:right}#settingsContent .settingsSection>button{margin-block:6px}
/* Both top-left action icons share one geometry at every viewport size. */
body.referenceHUD #gameTop :is(#chatToggle,#dailyRewardsOpen){box-sizing:border-box;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;max-height:none!important;margin:0!important;padding:7px!important;border:2px solid #a6eaff;border-radius:10px}
body.referenceHUD #gameTop :is(#chatToggle,#dailyRewardsOpen)>:is(img,svg){width:24px!important;height:24px!important;margin:0!important}
#accountGate .accountCard{display:flex;flex-direction:column;gap:12px;padding:18px;width:min(380px,100%)}#accountGate .accountCard>*{flex-shrink:0}#accountGate .accountCard>p,#accountGate .accountCard>nav{margin-block:0}#accountGate #accountConnected{display:grid;gap:12px;margin-top:2px}#accountGate #accountGuest,#accountGate #accountForgot{margin:0!important;width:100%}#accountGate .accountCard>small{margin:0}#accountGate #accountForm{display:grid;gap:8px}#accountGate #accountForm label{margin:0}#accountGate #accountForm button{margin-top:4px}
body.referenceHUD #walkTouch #walkRun{width:var(--run-size,48px)!important;height:var(--run-size,48px)!important;min-width:0!important;min-height:0!important}
#space{width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important}
@media(max-height:550px){body.referenceHUD #gameTop :is(#chatToggle,#dailyRewardsOpen){width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;padding:5px!important}body.referenceHUD #gameTop :is(#chatToggle,#dailyRewardsOpen)>:is(img,svg){width:22px!important;height:22px!important}#accountGate .accountCard{gap:10px;padding:14px}body.referenceHUD #dailyRewards{width:min(calc(620px * var(--daily-rewards-scale,.85)),calc(100vw - 24px))!important}.dailyRewardCard{padding:6px;gap:4px}}
@media(max-width:600px) and (orientation:portrait){
 body.referenceHUD #gameTop{inset:max(8px,env(safe-area-inset-top)) 8px auto!important;gap:8px!important;align-items:flex-start!important}body.referenceHUD #gameTop .topLeftActions{flex:none;gap:5px!important}body.referenceHUD #gameTop #brand{width:38px;height:38px;padding:4px!important;min-width:38px;box-sizing:border-box}body.referenceHUD #brand>span{display:none!important}body.referenceHUD #brand .gameLogo{width:28px;height:28px}
 body.referenceHUD #gameTop nav{flex:0 0 auto!important;width:auto!important;min-width:0!important;height:40px!important;padding:3px!important;gap:4px!important;box-sizing:border-box}body.referenceHUD #gameTop nav button{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;padding:4px!important}body.referenceHUD #gameTop nav .previewIcon{width:21px!important;height:21px!important}
 body.referenceHUD #gameTop :is(#chatToggle,#dailyRewardsOpen){width:34px!important;height:38px!important;min-width:34px!important;min-height:38px!important;padding:5px!important}body.referenceHUD #gameTop :is(#chatToggle,#dailyRewardsOpen)>:is(img,svg){width:22px!important;height:22px!important}body.referenceHUD #guestIndicator{top:calc(100% + 6px);font-size:10px;padding:3px 9px}
 body.referenceHUD #wallet{top:60px!important;left:12px!important;right:auto!important;transform:none!important;height:30px!important;padding:4px 8px!important;gap:12px!important;font-size:14px!important;max-width:calc(100vw - 24px)}body.referenceHUD #wallet strong{font-size:15px!important;margin-left:3px!important}.currencyIcon{width:21px!important;height:21px!important}
 body.referenceHUD #bodyReadout{top:104px!important;left:50%!important;transform:translateX(-50%)!important;width:calc(100vw - 24px);text-align:center;font-size:11px!important}body.referenceHUD #bodyName{font-size:17px!important}body.referenceHUD #earthWeather{top:152px!important;font-size:9px}
 body.referenceHUD #vitals,body.referenceHUD.onFoot #vitals{top:182px!important;left:12px!important;width:190px!important;gap:5px!important}.vitalRow{height:21px!important;gap:5px!important}.vitalRow>.uiIcon{width:20px!important;height:20px!important}.tempTrack{width:110px!important;height:21px!important}.statusTrack,.altitudeTrack{width:153px!important;height:21px!important}.vitalRow>strong{font-size:11px!important}
 body.referenceHUD #flightPad{left:12px!important;bottom:max(12px,env(safe-area-inset-bottom))!important;top:auto!important;right:auto!important;grid-template-columns:repeat(3,42px)!important;gap:6px!important;transform:none!important;scale:min(var(--ship-left-scale,1),1.15)}body.referenceHUD #flightPad button{width:42px!important;height:42px!important;padding:7px!important}body.referenceHUD #flightPad .uiIcon{width:27px!important;height:27px!important}
 body.referenceHUD #flightRight{right:12px!important;bottom:max(12px,env(safe-area-inset-bottom))!important;top:auto!important;left:auto!important;width:108px!important;grid-template-columns:42px 60px!important;grid-template-rows:38px 32px 62px!important;gap:6px!important;transform:none!important;scale:min(var(--ship-right-scale,1),1.15)}body.referenceHUD #flightRight button>.uiIcon{width:24px!important;height:24px!important}body.referenceHUD #flightRight button>small{font-size:9px!important}body.referenceHUD #flightRight #brakePad{height:42px!important}body.referenceHUD #flightRight :is(#forwardPad,#reversePad)>span{font-size:18px!important}
 body.referenceHUD #flightGauge{left:50%!important;right:auto!important;top:auto!important;bottom:calc(max(12px,env(safe-area-inset-bottom)) + 180px)!important;width:190px!important;transform:translateX(-50%)!important;font-size:10px!important}body.referenceHUD #flightGauge .gaugeTrack{height:18px}body.referenceHUD #globalChat{top:58px;left:8px}
 body.referenceHUD #walkTouch #walkJump{width:min(var(--jump-size,76px),84px)!important;height:min(var(--jump-size,76px),84px)!important;right:12px!important;bottom:max(16px,env(safe-area-inset-bottom))!important}body.referenceHUD #walkTouch #walkRun{right:calc(24px + min(var(--jump-size,76px),84px))!important;bottom:max(24px,env(safe-area-inset-bottom))!important;width:min(var(--run-size,48px),72px)!important;height:min(var(--run-size,48px),72px)!important}
 body.referenceHUD #mapDialog .mapLayout{display:flex;flex-direction:column;gap:8px;overflow:auto}body.referenceHUD #mapDialog .mapLayout>aside{width:100%;min-width:0;height:155px;flex:none;display:flex;flex-direction:column}#mapDialog #catalog{min-height:45px;overflow:auto}#mapDialog .atlas{flex:1;min-height:220px;width:100%}#mapDialog #selection{grid-template-columns:32px minmax(80px,1fr);gap:6px;padding:8px}#mapSelectedStats{grid-column:1/-1;display:flex;gap:12px}#mapSelectedPreview{width:32px;height:32px}#mapDialog #selection h2{font-size:15px}#mapDialog #selection p{font-size:10px}.mapSelectedActions{grid-column:1/-1}#mapDialog>.dialogHead h1{font-size:21px!important}#mapDialog .atlasCaption{display:none}
 body.referenceHUD #accountSettings{grid-template-columns:90px minmax(0,1fr)}#accountPageTabs button{padding-inline:4px!important}#accountPageTabs .previewIcon{width:18px;height:18px}#accountDialog input{font-size:12px!important}body.referenceHUD #accountDialog>.dialogHead h2{font-size:16px!important}
}
@media(max-width:350px) and (orientation:portrait){body.referenceHUD #gameTop nav button{width:27px!important;min-width:27px!important}body.referenceHUD #gameTop nav{gap:3px!important}body.referenceHUD #gameTop :is(#chatToggle,#dailyRewardsOpen){width:30px!important;min-width:30px!important}body.referenceHUD #flightPad{scale:min(var(--ship-left-scale,1),1)}body.referenceHUD #flightRight{scale:min(var(--ship-right-scale,1),1)}}
@media(max-height:620px) and (orientation:portrait){body.referenceHUD #vitals,body.referenceHUD.onFoot #vitals{top:162px!important}body.referenceHUD #flightGauge{bottom:170px!important}.vitalRow{height:18px!important}.statusTrack,.altitudeTrack,.tempTrack{height:18px!important}body.referenceHUD #earthWeather{display:none}}
