/* Fixed layouts prevent balances, presence text and role badges from wrapping the header. */
.account-menu-toggle{display:inline-flex;align-items:center;gap:6px;background:none;border:0;padding:0;font:inherit;cursor:pointer;position:relative}.account-menu-toggle svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2}.account-menu-toggle:focus-visible{outline:2px solid #55a8fa;outline-offset:6px;border-radius:5px}.account-menu{position:fixed;inset:auto;margin:0;padding:8px;border:1px solid #cbdcff;border-radius:16px;background:#f9fcff;box-shadow:0 15px 40px #23447724;color:#29486f;box-sizing:border-box}.account-menu:not(:popover-open){display:none}.account-menu:popover-open{display:grid;gap:3px}.account-menu .nav-link{padding:12px 14px;min-height:0;border-radius:10px;font-size:13px!important;text-decoration:none;font-weight:700}.account-menu .nav-link:hover,.account-menu .nav-link:focus-visible,.account-menu .nav-link.active{background:#eaf0ff;color:#5143cd}.account-menu .nav-link:after{display:none!important}.account-menu [hidden]{display:none!important}
.public-header .account-menu-toggle{padding:12px 16px;border-radius:12px;background:linear-gradient(110deg,#009fe9,#6552ed);color:#fff;font-weight:700}
.header-inner{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:20px;min-height:100px}
.header nav{display:flex;flex-wrap:nowrap;justify-content:center;gap:18px;min-width:0;min-height:100px;overflow-x:auto;scrollbar-width:none}
.header nav::-webkit-scrollbar{display:none}.header .nav-link{flex-shrink:0;white-space:nowrap}
.header-right{display:flex;flex-wrap:nowrap;gap:12px;min-width:0;justify-content:flex-end}
.header-user{width:178px;max-width:178px;height:66px;flex-shrink:0;overflow:hidden}
.header-user-copy{flex:1;overflow:hidden}.header-user-copy>span,.header-user-copy small{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.live-presence{width:94px;flex-shrink:0;overflow:hidden}.live-presence span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.live-presence small{flex-shrink:0}
.header-action{flex-shrink:0}.header-right .language-switch{flex-shrink:0}
@media(min-width:1450px){.header .brand{gap:10px}.header .brand>span{font-size:22px}.header nav{gap:16px}.header .nav-link{font-size:13px}.header-right{gap:10px}.header-action{padding:10px 12px}}
@media(min-width:701px) and (max-width:1449px){.header-inner{grid-template-columns:auto minmax(0,1fr);grid-template-rows:82px 48px;gap:0 20px;min-height:130px}.header .brand{grid-column:1;grid-row:1}.header-right{grid-column:2;grid-row:1}.header nav{grid-column:1 / -1;grid-row:2;min-height:48px;justify-content:center}.header .nav-link.active:after{bottom:3px}}
@media(max-width:700px){.header-inner{grid-template-columns:110px minmax(0,1fr);grid-template-rows:138px 42px;gap:0 8px;min-height:180px;width:94%}.header .brand{grid-column:1;grid-row:1}.header-right{grid-column:2;grid-row:1;display:grid;grid-template-columns:repeat(3,auto);gap:8px;align-content:center;justify-content:end}.header-right #header-account{grid-column:1 / -1;grid-row:1;justify-content:end}.header-user{width:170px;height:52px;padding:6px 10px}.header-user .avatar{width:32px;height:32px}.header-right #notifications-button,.header-right #messages-button,.header-right #capacity-button{grid-row:2}.header-right .language-switch{grid-column:1 / 3;grid-row:3;justify-self:end}.header-right .live-presence{grid-column:3;grid-row:3;font-size:9px;width:73px;gap:5px}.header-right .live-presence small{display:none}.header nav{grid-column:1 / -1;grid-row:2;min-height:42px;justify-content:flex-start;gap:16px}.header .nav-link{font-size:11px}.header .nav-link.active:after{bottom:2px}.header-action{padding:7px 9px}.header-action span{display:none}}

@media(min-width:701px) and (max-width:1100px){.header .brand{gap:8px}.header .brand img{width:38px;height:42px}.header .brand>span{font-size:18px}.header .brand small{font-size:7px}.header-right{gap:6px}.header-right .header-action span{display:none}.header-right .header-action{padding:8px 10px}.header-user{width:145px;max-width:145px;padding:8px}.header-user .avatar{width:32px;height:32px}.live-presence{width:72px;font-size:10px}.live-presence small{display:none}}
