/* Persistent account controls. Modals and mobile navigation retain higher layers. */
body>.app-header{position:sticky!important;top:0;z-index:3;overflow:visible;padding:14px max(22px,calc((100% - 1260px)/2));background:#273546;border-bottom:1px solid #ffffff15;box-shadow:0 5px 20px #07111e18}
.app-header .top{display:grid;grid-template-columns:minmax(190px,1fr) auto auto;align-items:center;gap:14px;padding:0;flex-direction:row;max-width:1260px;margin:auto}
.app-header .brand{min-width:0;gap:10px}.app-header .brand .logo{width:37px;height:37px;flex:0 0 37px}.app-header .brand h1{font-size:19px;line-height:1.3}.app-header .brand p{font-size:7px;letter-spacing:1.2px;margin-top:4px}
.app-header .header-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:8px;padding-right:14px;border-right:1px solid #ffffff19}
.app-header .header-actions :is(.balance-visibility-button,.header-help-button){height:44px;min-height:44px;margin:0;padding:0 12px;border-radius:12px;box-sizing:border-box;font-size:10px}
.app-header #userChip{width:auto!important;max-width:235px;min-width:0;padding:4px;gap:5px;justify-self:end;align-items:center;flex-wrap:nowrap;border-radius:13px}
.app-header .header-profile{max-width:165px;min-width:0;padding:3px 5px;gap:8px}.app-header .header-profile-copy{display:block;min-width:0}.app-header .header-profile-copy b{max-width:110px;font-size:10px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:block}.app-header .header-profile-copy small{font-size:7px}.app-header .avatar{width:31px;height:31px;flex-basis:31px}.app-header .header-logout{min-height:36px;padding:7px 10px;font-size:9px;border-radius:9px}.app-header #dateNow{display:none}
.app-header :is(button,a){touch-action:manipulation}.app-header .theme-choice{min-height:44px;margin:0}.dev-sidebar{top:100px}html{scroll-padding-top:100px}
@media(max-width:1090px){.app-header .top{grid-template-columns:minmax(0,1fr) auto;gap:12px}.app-header .brand{grid-column:1;grid-row:1}.app-header #userChip{grid-column:2;grid-row:1}.app-header .header-actions{grid-column:1/-1;grid-row:2;justify-content:flex-start;padding:10px 0 0;border-right:0;border-top:1px solid #ffffff13;gap:10px}.app-header .header-actions .header-help-button{margin-left:auto}.dev-sidebar{top:155px}html{scroll-padding-top:155px}}
@media(max-width:600px){body>.app-header{padding:10px 14px}.app-header .top{gap:8px}.app-header .brand h1{font-size:16px;letter-spacing:-.3px}.app-header .brand p{display:none}.app-header .brand .logo{width:30px;height:30px;flex-basis:30px}.app-header #userChip{max-width:126px;gap:2px;padding:2px}.app-header .header-profile{max-width:34px;padding:1px}.app-header .header-profile-copy,.app-header .profile-chevron{display:none}.app-header .header-profile .avatar{width:28px;height:28px;flex-basis:28px}.app-header .header-logout{min-height:32px;padding:5px 7px;font-size:9px}.app-header .header-actions{gap:8px;padding-top:8px}.app-header .header-actions :is(.balance-visibility-button,.header-help-button){height:40px;min-height:40px;padding:0 10px;font-size:10px}.app-header .balance-eye-label{display:inline}.app-header .theme-choice{min-height:40px;padding:2px;gap:1px}.app-header .theme-option{width:30px;height:32px;min-height:32px}.app-header .theme-option[aria-pressed=true]{padding:0 6px;gap:4px;font-size:9px}.app-header .theme-option svg{width:15px;height:15px}html{scroll-padding-top:130px}}
@media(max-width:360px){body>.app-header{padding-inline:10px}.app-header .header-actions{gap:5px}.app-header .header-actions :is(.balance-visibility-button,.header-help-button){padding-inline:7px}.app-header .theme-option[aria-pressed=true]{width:30px;padding:0}.app-header .theme-option span{display:none!important}}
