/* BY-WOW Next — header 117. Navigation, realm summary and account. */
body .top{--header-text:#dceef8;--header-muted:#a2bece;--header-line:#9ad2e833;--header-ice:#b3e8f8;--header-radius:16px;position:relative;isolation:isolate;box-sizing:border-box;overflow:visible;border:1px solid var(--header-line);border-radius:var(--header-radius);background:radial-gradient(ellipse at 3% 20%,#4397b926,transparent 40%),linear-gradient(115deg,#102d3fe8,#071a2bed 65%,#0a1e2de9);box-shadow:0 14px 40px #01081255,inset 0 1px 0 #dbf4ff0c;backdrop-filter:blur(46px);-webkit-backdrop-filter:blur(46px);transition:padding .24s,border-radius .24s,background .24s}
body .top:after{content:'';position:absolute;left:12%;right:12%;bottom:-1px;height:1px;pointer-events:none;background:linear-gradient(90deg,transparent,#90cfe54d,#dbf5ff88,#90cfe54d,transparent)}
body .top .brand.brand-configured{position:relative;isolation:isolate;display:flex;align-items:center;gap:14px;min-width:0;line-height:1.2;font-size:20px!important;letter-spacing:.05em;text-decoration:none;color:var(--header-text)}
body .top .brand.brand-configured img{width:var(--logo-size,46px)!important;height:var(--logo-size,46px)!important;min-width:0;max-width:none!important;max-height:none!important;flex:0 0 auto;object-fit:contain;transition:width .24s,height .24s}
body .top .brand.brand-configured small{font-size:9px!important;letter-spacing:.1em;line-height:1.5;margin-top:7px;color:#9abaca}
body .top .brand.brand-configured:before{content:'';position:absolute;z-index:-1;pointer-events:none;left:-6px;top:50%;width:calc(var(--logo-size,46px) + 12px);height:calc(var(--logo-size,46px) + 12px);transform:translateY(-50%);border:1px solid #99d9f01d;border-radius:50%;background:radial-gradient(circle,#70d0e612,transparent 65%);box-shadow:0 0 0 5px #8bd2ed03;transition:width .24s,height .24s}
body .top #main-nav{gap:6px;min-width:0;align-items:center}
/* Menu button/dropdown appearance is shared with its editor in site-menu.css. */
body .top #profile-bar{display:flex;align-items:center;gap:9px;min-width:0;position:relative}
body .top #profile-bar>.profile-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:10px 13px;border-radius:10px;font-size:13px;border:1px solid #9fd6eb30;background:#9bcfe70a;color:#c9e2ef;box-shadow:inset 0 1px 0 #c4efff07;white-space:nowrap;box-sizing:border-box}
body .top #profile-bar>.profile-register{border-color:#c8b78542;color:#e5d8b2;background:linear-gradient(135deg,#c5b37c14,#091e2e20)}
body .top #profile-bar>.profile-action:hover{background:#a0d8ed14;border-color:#c3e9f550}
body .top .profile-menu{min-width:0;position:relative}
body .top .profile-menu>summary{display:flex;align-items:center;gap:10px;padding:8px;border:1px solid #a0d3e931;border-radius:12px;background:linear-gradient(135deg,#84c6e012,#07192720);box-shadow:inset 0 1px 0 #d3f2ff07;cursor:pointer;min-height:44px;box-sizing:border-box}
body .top .profile-menu .profile-avatar{width:36px;height:36px;min-width:36px;border-radius:10px;border:1px solid #a4d7ec45;background:linear-gradient(145deg,#315b70,#102c40)}
body .top .profile-greeting{display:none}
body .top .profile-username{font-size:13px;line-height:1.5;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body .top .profile-menu .profile-crystals{display:inline-flex;align-items:center;gap:6px;min-width:58px;min-height:30px;padding:5px 8px;margin:0;border:1px solid #9bd6ef29;border-radius:8px;background:#75bddd0a;color:#c9eaff;font-size:13px;line-height:1;font-variant-numeric:tabular-nums;box-sizing:border-box}
body .top .profile-chevron{width:16px;height:20px;color:#8eb4c9}
body .top .profile-dropdown{position:absolute;right:0;left:auto;top:calc(100% + 10px);min-width:245px;width:max-content;max-width:min(330px,calc(100vw - 24px));max-height:var(--header-popover-max,70vh);overflow:auto;padding:8px;border:1px solid #9ed5ed3b;border-radius:13px;background:linear-gradient(145deg,#173447f7,#081b2cf9);box-shadow:0 18px 48px #0007;backdrop-filter:blur(30px);-webkit-backdrop-filter:blur(30px);z-index:130;box-sizing:border-box}
body .top .profile-dropdown a,body .top .profile-dropdown button{font-size:14px;min-height:44px;padding:11px 13px;border-radius:8px}
body .top .header-notifications{position:relative;display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;padding:10px;border:1px solid #9fd6eb30;border-radius:11px;background:#8fc9e00a;color:#b9d8e8;cursor:pointer;box-sizing:border-box}
body .top .header-notifications svg{width:21px;height:21px}
body .top .header-notifications:hover{border-color:#b1e2f24d;color:#e3f5ff;background:#a0d8ed14}
body .top .header-notifications .notification-count{position:absolute;top:-5px;right:-5px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;border:1px solid #bcecff66;background:#89cce8;color:#082035;font:700 10px/16px system-ui;box-sizing:border-box;box-shadow:0 0 13px #7bcced20}
body .top .header-notifications .notification-count[hidden]{display:none!important}
body .top a:focus-visible,body .top button:focus-visible,body .top summary:focus-visible{outline:2px solid #b1e5f6;outline-offset:3px}
body .top button:active,body .top #main-nav a:active{filter:brightness(1.12)}
body .top #server-status{display:flex;align-items:center;gap:12px;min-width:0;width:100%;height:auto;min-height:0;max-height:none;margin:0;padding:0;order:5;border:0;border-radius:0;background:transparent;box-shadow:none;color:#aac9d9;text-decoration:none;line-height:1.4;opacity:1;overflow:visible;pointer-events:auto;box-sizing:border-box}
body .top #server-status:hover{background:transparent}
#server-status .server-status-heading{display:flex;align-items:center;justify-content:center;gap:8px;padding:8px 11px;border:1px solid #a2d5c329;border-radius:9px;background:#85cbb807;font-size:11px;font-weight:650;letter-spacing:.015em;line-height:21px;white-space:nowrap}
#server-status .server-status-dot{width:6px;height:6px;flex-shrink:0;border-radius:50%;background:#8fa7b7}
#server-status[data-state=online] .server-status-dot{background:#a2dbbf;box-shadow:0 0 0 4px #a2dbbf08,0 0 12px #9ed6be30}
#server-status[data-state=online] [data-server-label]{color:#b5dccb}
#server-status[data-state=offline] .server-status-dot,#server-status[data-state=unavailable] .server-status-dot{background:#dc9ca7}
#server-status .server-status-counts{display:flex;align-items:center;gap:9px;min-width:0;margin:0;flex:1}
#server-status .server-status-counts>span{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex:1;white-space:nowrap;padding:8px 11px;border:1px solid #9dcde327;border-radius:9px;background:#8fc8df06;box-sizing:border-box}
#server-status .server-status-counts small{font-size:12px;line-height:21px;color:#9ab8c9}
#server-status .server-status-counts strong{font-size:16px;font-weight:600;line-height:21px;color:#c9e5f2;font-variant-numeric:tabular-nums;min-width:1ch}
#server-status .server-status-counts>span:first-child strong{color:#b9e6e8}
#server-status .server-status-counts>span:last-child{border-color:#c5b98b29}
#server-status .server-status-counts>span:last-child strong{color:#ddd3b4}
#server-status .server-status-arrow{display:none}
#server-status .server-status-note{font-size:12px;color:#b0c8d6;line-height:1.6;min-width:0}
#server-status::after{display:none;content:none}
#server-status [hidden]{display:none!important}
body .top .mobile-crystals{display:none!important}
body .top.is-measuring,body .top.is-measuring *{transition:none!important;animation:none!important}
.notification-popover{z-index:200!important}
.notification-popover .notification-shell{border:1px solid #a0d8ef3a;border-radius:15px;background:linear-gradient(140deg,#173447f5,#081b2cf7);box-shadow:0 20px 50px #0007}
.notification-popover button,.notification-popover a{min-height:40px}
@media(min-width:1201px){
 body .top{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto auto;gap:13px 24px;padding:17px 23px!important;min-height:0}
 body .top .brand{grid-column:1;grid-row:1/3;padding-right:22px;border-right:1px solid #9fd7ed24}
 body .top #main-nav{grid-column:2;grid-row:1;align-self:end;display:flex;flex-wrap:wrap;gap:5px;margin:0;padding:5px;border:1px solid #9ed9ee25;border-radius:13px;background:#03132330}
 body .top #main-nav>a{flex:1}
 body .top #server-status{grid-column:2;grid-row:2;align-self:start}
 body .top #profile-bar{grid-column:3;grid-row:1/3;align-self:center;border:0;padding:0;max-width:330px;justify-content:flex-end}
 body .top.is-scrolled{grid-template-columns:auto minmax(0,1fr) auto auto;grid-template-rows:auto;gap:13px;padding:10px 16px!important;border-radius:13px}
 body .top.is-scrolled .brand{grid-column:1;grid-row:1;padding-right:13px}
 body .top.is-scrolled .brand.brand-configured img{width:calc(var(--logo-size,46px)*.45)!important;height:calc(var(--logo-size,46px)*.45)!important}
 body .top.is-scrolled .brand.brand-configured:before{width:calc(var(--logo-size,46px)*.45 + 10px);height:calc(var(--logo-size,46px)*.45 + 10px)}
 body .top.is-scrolled .brand.brand-configured{font-size:16px!important;gap:10px}
 body .top.is-scrolled .brand small{display:none}
 body .top.is-scrolled #main-nav{grid-column:2;grid-row:1;padding:0;border:0;background:transparent;align-self:center;gap:3px;flex-wrap:nowrap}
 body .top.is-scrolled #main-nav>a,body .top.is-scrolled #main-nav .nav-more-trigger{font-size:13px;padding:9px;min-height:40px}
 body .top.is-scrolled #server-status{grid-column:3;grid-row:1;align-self:center;width:auto;gap:7px}
 body .top.is-scrolled #profile-bar{grid-column:4;grid-row:1}
 body .top.is-scrolled #server-status .server-status-heading{padding:0;border:0;background:transparent}
 body .top.is-scrolled #server-status [data-server-label]{display:none}
 body .top.is-scrolled #server-status .server-status-counts{flex:none}
 body .top.is-scrolled #server-status .server-status-counts>span{padding:7px 9px;gap:6px}
 body .top.is-scrolled #server-status .server-status-counts>span:not(:first-child){display:none}
 body .top.is-scrolled #server-status .server-status-note{display:none}
 body .top.is-scrolled #server-status .server-status-counts small{font-size:11px}
 body .top.is-scrolled .profile-menu>summary{padding:5px 7px;gap:7px}
 body .top.is-scrolled .profile-menu .profile-avatar{width:30px;height:30px;min-width:30px}
 body .top.is-scrolled .profile-identity{display:none}
}
@media(min-width:1051px) and (max-width:1200px){
 body .top{display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto;gap:12px 20px;padding:14px 18px!important}
 body .top .brand{grid-column:1;grid-row:1}
 body .top #profile-bar{grid-column:2;grid-row:1;border:0;padding:0;justify-content:flex-end}
 body .top #main-nav{grid-column:1/-1;grid-row:2;display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin:0;padding:5px;border:1px solid #9ed9ee25;border-radius:12px;background:#03132330}
 body .top #server-status{grid-column:1/-1;grid-row:3}
 body .top.is-scrolled{grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto auto;gap:5px 12px;padding:8px 14px!important}
 body .top.is-scrolled .brand{grid-column:1;grid-row:1/3}
 body .top.is-scrolled .brand.brand-configured img{width:calc(var(--logo-size,46px)*.45)!important;height:calc(var(--logo-size,46px)*.45)!important}
 body .top.is-scrolled .brand.brand-configured:before{width:calc(var(--logo-size,46px)*.45 + 10px);height:calc(var(--logo-size,46px)*.45 + 10px)}
 body .top.is-scrolled .brand>span{display:none}
 body .top.is-scrolled #main-nav{grid-column:2;grid-row:1;padding:0;border:0;background:transparent;gap:3px}
 body .top.is-scrolled #main-nav>a,body .top.is-scrolled #main-nav .nav-more-trigger{font-size:13px;min-height:40px;padding:8px 10px}
 body .top.is-scrolled #profile-bar{grid-column:3;grid-row:1/3}
 body .top.is-scrolled .profile-identity{display:none}
 body .top.is-scrolled #server-status{grid-column:2;grid-row:2;justify-content:center;gap:10px}
 body .top.is-scrolled #server-status .server-status-heading{padding:0;border:0;background:transparent}
 body .top.is-scrolled #server-status .server-status-counts{flex:none}
 body .top.is-scrolled #server-status .server-status-counts>span{padding:0;border:0;background:transparent}
 body .top.is-scrolled #server-status .server-status-counts>span:not(:first-child){display:none}
 body .top.is-scrolled #server-status .server-status-counts small{font-size:11px}
}
@media(max-width:1050px){
 body .top,body .top.is-scrolled{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:13px 14px!important;min-height:0}
 body .top .brand{grid-column:1;grid-row:1;margin:0!important;min-width:0}
 body .top .brand.brand-configured{font-size:18px!important;gap:12px}
 body .top .nav-toggle{grid-column:2;grid-row:1;display:flex;position:relative;inset:auto;width:44px;height:44px;min-height:44px;padding:10px;margin:0!important;border:1px solid #a4d7ed35;border-radius:11px;background:#93cce40a;transform:none!important;box-shadow:none}
 body .top #profile-bar{grid-column:1/-1;grid-row:2;flex-basis:auto;width:auto;max-height:none;min-height:0;padding:0!important;margin:0!important;border:0;justify-content:flex-end;opacity:1;overflow:visible;pointer-events:auto}
 body .top #profile-bar>.profile-action{flex:1;min-height:44px;font-size:14px}
 body .top #server-status{grid-column:1/-1;grid-row:3;display:flex;flex-wrap:wrap;gap:9px;padding:10px 0 0;border-top:1px solid #9bcee51e;max-height:none;opacity:1;overflow:visible;pointer-events:auto}
 #server-status .server-status-heading{font-size:11px}
 #server-status .server-status-counts{gap:8px}
 body .top #main-nav{position:absolute;top:calc(100% + 9px);left:0;right:0;width:auto;max-height:min(70dvh,620px);overflow-y:auto;overscroll-behavior:contain;grid-column:auto;grid-row:auto;display:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0;padding:12px;border:1px solid #a0d7ed3a;border-radius:14px;background:linear-gradient(140deg,#143246fa,#071a2bfa);box-shadow:0 18px 48px #0008;backdrop-filter:blur(30px);-webkit-backdrop-filter:blur(30px);z-index:120;box-sizing:border-box}
 body .top.menu-open #main-nav{display:grid}
 body .top #main-nav>a,body .top #main-nav .nav-more-trigger{justify-content:flex-start;min-height:48px;padding:12px;border:1px solid #9bd0e51c;background:#8fc6de06;font-size:14px;width:100%}
 body .top #main-nav>.nav-more{grid-column:1/-1}
 body .top #main-nav .nav-more-list{position:static;display:none;min-width:0;max-width:none;max-height:none;overflow:visible;margin-top:8px;padding:7px;border:1px solid #9ad3ed25;background:#071c2c66;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;transform:none}
 body .top #main-nav .nav-more.is-open>.nav-more-list,body .top #main-nav .nav-more.is-keyboard-open>.nav-more-list{display:flex;transform:none}
 body .top.mobile-compact{grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:auto auto;gap:7px 9px;padding:9px 11px!important;border-radius:13px}
 body .top.mobile-compact .brand{grid-column:1;grid-row:1;min-width:0}
 body .top.mobile-compact .brand.brand-configured{font-size:15px!important;gap:9px}
 body .top.mobile-compact .brand.brand-configured img{width:calc(var(--logo-size,46px)*.45)!important;height:calc(var(--logo-size,46px)*.45)!important}
 body .top.mobile-compact .brand.brand-configured:before{width:calc(var(--logo-size,46px)*.45 + 8px);height:calc(var(--logo-size,46px)*.45 + 8px);left:-4px}
 body .top.mobile-compact .brand small{display:none}
 body .top.mobile-compact #profile-bar{grid-column:2;grid-row:1;max-height:none;min-height:0;opacity:1;pointer-events:auto;padding:0!important;margin:0!important;gap:7px;border:0;overflow:visible;width:auto}
 body .top.mobile-compact .profile-identity,body .top.mobile-compact .profile-chevron{display:none}
 body .top.mobile-compact .profile-menu>summary{padding:4px;gap:6px;min-height:40px}
 body .top.mobile-compact .profile-menu .profile-avatar{width:30px;height:30px;min-width:30px}
 body .top.mobile-compact .profile-menu .profile-crystals{display:inline-flex;min-width:0;min-height:28px;padding:4px 6px;font-size:12px}
 body .top.mobile-compact .profile-crystals-icon svg{width:15px;height:15px}
 body .top.mobile-compact .header-notifications{width:40px;height:40px;flex-basis:40px;padding:9px}
 body .top.mobile-compact .nav-toggle{grid-column:3;grid-row:1;width:40px;height:40px;min-height:40px;padding:9px}
 body .top.mobile-compact #profile-bar>.profile-register{display:none}
 body .top.mobile-compact #profile-bar>.profile-login{min-height:40px;padding:8px 10px;font-size:12px}
 body .top.mobile-compact.menu-open #profile-bar>.profile-register{display:inline-flex}
 body .top.mobile-compact #server-status{grid-column:1/-1;grid-row:2;display:flex;flex-wrap:nowrap;justify-content:space-between;max-height:none;min-height:0;opacity:1;pointer-events:auto;overflow:visible;border:0;padding:0;margin:0;gap:9px;width:auto}
 body .top.mobile-compact #server-status .server-status-heading{border:0;background:transparent;padding:0;justify-content:flex-start}
 body .top.mobile-compact #server-status .server-status-counts{flex:0 0 auto}
 body .top.mobile-compact #server-status .server-status-counts>span{padding:0;border:0;background:transparent;gap:6px}
 body .top.mobile-compact #server-status .server-status-counts>span:not(:first-child){display:none}
 body .top.mobile-compact #server-status .server-status-counts strong{font-size:14px}
 body .top.mobile-compact #server-status .server-status-note{display:none}
 body .top.mobile-compact #main-nav{padding-top:12px}
 body .top .profile-dropdown{right:0;min-width:min(280px,calc(100vw - 32px));max-width:calc(100vw - 32px)}
}
@media(max-width:680px){
 body .top .brand.brand-configured{font-size:17px!important;gap:10px}
 body .top .brand.brand-configured small{font-size:8px!important;letter-spacing:.07em}
 body .top #server-status{display:grid;grid-template-columns:minmax(0,1fr)}
 #server-status .server-status-heading{justify-content:flex-start;padding:0;border:0;background:transparent}
 #server-status .server-status-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%}
 #server-status .server-status-counts>span{display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 5px}
 #server-status .server-status-counts small{font-size:11px}
 #server-status .server-status-counts strong{font-size:17px}
 body .top #profile-bar .profile-username{max-width:120px}
 body .top.mobile-compact .brand>span{display:none}
 body .top.mobile-compact #server-status{display:flex}
 body .top.mobile-compact #server-status .server-status-counts{display:flex;width:auto}
 body .top.mobile-compact #server-status .server-status-counts>span{flex-direction:row}
 body .top.mobile-compact .profile-dropdown{position:fixed;top:auto;right:12px;left:auto;margin-top:12px;max-height:min(var(--header-popover-max,65vh),65vh)}
}
@media(prefers-reduced-motion:reduce){body .top,body .top *,body .top:after,body .top .brand:before{transition:none!important;animation:none!important}}
/* Mobile realm cell next to the account. */
@media(max-width:1050px){
 body .top,body .top.is-scrolled{grid-template-columns:auto minmax(0,1fr) auto auto;column-gap:8px}
 body .top .brand{grid-column:1/4;grid-row:1}
 body .top .nav-toggle{grid-column:4;grid-row:1}
 body .top #profile-bar{grid-column:2/-1;grid-row:2;justify-self:end;max-width:100%;gap:7px}
 body .top #server-status{grid-column:1;grid-row:2;display:flex;flex-wrap:nowrap;align-self:center;justify-content:center;gap:6px;width:max-content;min-width:78px;min-height:42px;padding:8px 9px;margin:0;border:1px solid #9fd6eb30;border-radius:10px;background:#8fc9e00a;box-sizing:border-box}
 body .top #server-status .server-status-heading{order:2;display:flex;min-width:0;padding:0;border:0;background:transparent;gap:0}
 body .top #server-status [data-server-label],body .top #server-status .server-status-note{display:none}
 body .top #server-status .server-status-dot{width:6px;height:6px;margin:0}
 body .top #server-status .server-status-counts{order:1;display:flex;width:auto;flex:0 0 auto;gap:0}
 body .top #server-status .server-status-counts>span{display:none}
 body .top #server-status .server-status-counts>span:first-child{display:flex;flex-direction:row;align-items:baseline;gap:5px;padding:0;margin:0;min-width:0;border:0;background:transparent}
 body .top #server-status .server-status-counts small{font-size:10px;line-height:20px}
 body .top #server-status .server-status-counts strong{font-size:14px;line-height:20px;min-width:1ch}
 body .top #server-status[data-state=loading]::after{content:'…';display:block;font-size:14px;line-height:20px;color:#a6c7d9}
 body .top #server-status[data-state=offline]::after,body .top #server-status[data-state=unavailable]::after{content:'—';display:block;font-size:14px;line-height:20px;color:#a6c7d9}
 body .top.mobile-compact{grid-template-columns:minmax(28px,1fr) auto auto auto;grid-template-rows:auto;padding:8px;gap:5px}
 body .top.mobile-compact .brand{grid-column:1;grid-row:1}
 body .top.mobile-compact .brand>span{display:none}
 body .top.mobile-compact #server-status{grid-column:2;grid-row:1;width:max-content;min-width:78px;min-height:40px;gap:5px;padding:7px 8px!important;border:1px solid #9fd6eb30;border-radius:10px;background:#8fc9e00a}
 body .top.mobile-compact #profile-bar{grid-column:3;grid-row:1;gap:6px;justify-self:end}
 body .top.mobile-compact .nav-toggle{grid-column:4;grid-row:1}
 body .top.mobile-compact .header-notifications{width:40px;height:40px;flex-basis:40px}
 body .top.mobile-compact .profile-menu>summary{padding:4px;gap:5px}
 body .top.mobile-compact .profile-menu .profile-crystals{padding:4px 5px;max-width:85px;min-width:0}
 body .top.mobile-compact .profile-crystals-value{max-width:56px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-variant-numeric:tabular-nums}
 body .top.mobile-compact #server-status .server-status-counts>span:first-child{padding:0;border:0;background:transparent;gap:4px}
 body .top.mobile-compact #server-status .server-status-counts small{font-size:10px}
}
@media(max-width:420px){
 body .top:not(.mobile-compact) .profile-identity{display:none}
 body .top:not(.mobile-compact) .profile-menu>summary{padding:5px;gap:6px}
 body .top:not(.mobile-compact) .profile-menu .profile-avatar{width:30px;height:30px;min-width:30px}
 body .top #profile-bar>.profile-action{min-height:40px;padding:8px 9px;font-size:12px}
}
@media(max-width:360px){
 body .top.mobile-compact{grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto auto;gap:7px 8px}
 body .top.mobile-compact .brand{grid-column:1/3;grid-row:1}
 body .top.mobile-compact .nav-toggle{grid-column:3;grid-row:1}
 body .top.mobile-compact #server-status{grid-column:1;grid-row:2}
 body .top.mobile-compact #profile-bar{grid-column:2/-1;grid-row:2}
}
@media(max-width:1050px){
 body .top #server-status,body .top.mobile-compact #server-status{padding:0!important;border:0;background:transparent;box-shadow:none;min-width:0;gap:7px;justify-content:flex-start}
 body .top #server-status .server-status-heading{order:0;flex:0 0 auto;padding:0;border:0;background:transparent}
 body .top #server-status .server-status-counts{order:1;flex:0 0 auto}
 body .top #server-status .server-status-counts>span:first-child,body .top.mobile-compact #server-status .server-status-counts>span:first-child{min-width:64px;min-height:40px;padding:7px 8px;border:1px solid #9fd6eb30;border-radius:10px;background:#8fc9e00a;gap:4px;align-items:center;justify-content:center;box-sizing:border-box}
 body .top #server-status[data-state=loading]::after,body .top #server-status[data-state=offline]::after,body .top #server-status[data-state=unavailable]::after{min-height:40px;padding:8px;border:1px solid #9fd6eb30;border-radius:10px;background:#8fc9e00a;box-sizing:border-box}
}
/* Expanded mobile: realm cell immediately before the menu toggle. */
@media(max-width:1050px){
 body .top:not(.mobile-compact){grid-template-columns:minmax(0,1fr) auto auto;column-gap:8px}
 body .top:not(.mobile-compact) .brand{grid-column:1;grid-row:1}
 body .top:not(.mobile-compact) #server-status{grid-column:2;grid-row:1;align-self:center;justify-self:end}
 body .top:not(.mobile-compact) .nav-toggle{grid-column:3;grid-row:1}
 body .top:not(.mobile-compact) #profile-bar{grid-column:1/-1;grid-row:2;justify-self:end}
}
@media(max-width:420px){
 body .top:not(.mobile-compact) .brand>span{display:none}
}
/* At minimum phone width, keep realm/account/menu in the same row. */
@media(max-width:360px){
 body .top:not(.mobile-compact) .brand{grid-column:1/-1;grid-row:1}
 body .top:not(.mobile-compact) #server-status{grid-column:2;grid-row:2}
 body .top:not(.mobile-compact) .nav-toggle{grid-column:3;grid-row:2}
 body .top:not(.mobile-compact) #profile-bar{grid-column:1/-1;grid-row:3}
 body .top.mobile-compact{grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto;column-gap:5px}
 body .top.mobile-compact .brand{display:none}
 body .top.mobile-compact #server-status{grid-column:1;grid-row:1}
 body .top.mobile-compact #profile-bar{grid-column:2;grid-row:1}
 body .top.mobile-compact .nav-toggle{grid-column:3;grid-row:1}
 body .top.mobile-compact #profile-bar .profile-crystals-icon{display:none!important}
 body .top.mobile-compact .profile-menu .profile-crystals{gap:0;min-width:0}
}

/* BY-WOW 134: restrained ice glow for the account nickname. */
body .top #profile-bar .profile-username{font-weight:750;letter-spacing:.02em;color:#e0f5ff;text-shadow:0 0 8px #9bdfff45,0 0 18px #69c9ef24}
body .top #profile-bar .profile-username a{color:#e0f5ff;text-decoration:none;text-shadow:0 0 8px #9bdfff45,0 0 18px #69c9ef24;transition:color .2s,text-shadow .2s}
body .top #profile-bar .profile-username a:hover,body .top #profile-bar .profile-username a:focus-visible{color:#f4fcff;text-shadow:0 0 9px #bcecff70,0 0 20px #79d8ff3d}
@media(prefers-reduced-motion:reduce){body .top #profile-bar .profile-username a{transition:none}}

/* BY-WOW 137: permanent compact mobile header, complete guest actions. */
#server-status{--realm-dot:#92a8b8}
#server-status[data-state=online]{--realm-dot:#92e1b7}
#server-status[data-state=offline]{--realm-dot:#ef8795}
#server-status[data-state=unavailable]{--realm-dot:#e4b975}
body .top #server-status .server-status-dot{background:var(--realm-dot);box-shadow:0 0 8px var(--realm-dot);animation:realm-breathe137 4.5s ease-in-out infinite}
@keyframes realm-breathe137{0%,100%{opacity:.65;box-shadow:0 0 4px var(--realm-dot),0 0 0 2px color-mix(in srgb,var(--realm-dot) 8%,transparent)}50%{opacity:1;box-shadow:0 0 11px var(--realm-dot),0 0 0 5px color-mix(in srgb,var(--realm-dot) 14%,transparent)}}
body .top.is-scrolled #server-status{display:flex;align-items:center;justify-content:center;gap:9px;padding:8px 10px!important;min-height:38px;min-width:46px;width:max-content;border:1px solid #9fd6eb30;border-radius:10px;background:#8fc9e00a;box-sizing:border-box}
body .top.is-scrolled #server-status .server-status-heading{display:contents}
body .top.is-scrolled #server-status .server-status-dot{display:block;width:9px;height:9px;flex:0 0 9px;order:0;margin:0}
body .top.is-scrolled #server-status [data-server-label],body .top.is-scrolled #server-status .server-status-arrow,body .top.is-scrolled #server-status .server-status-note,body .top.is-scrolled #server-status .server-status-counts small{display:none}
body .top.is-scrolled #server-status .server-status-counts{display:flex;width:auto;order:1;gap:0}
body .top.is-scrolled #server-status .server-status-counts[hidden]{display:none}
body .top.is-scrolled #server-status .server-status-counts>span:first-child{display:flex;min-width:0;min-height:0;padding:0;border:0;background:none;gap:0}
body .top.is-scrolled #server-status .server-status-counts>span:not(:first-child){display:none}
body .top.is-scrolled #server-status .server-status-counts strong{font-size:14px;line-height:20px}
body .top.is-scrolled #server-status::after{min-height:0!important;padding:0!important;border:0!important;background:none!important}
@media(max-width:1050px){
 body .top.mobile-compact{display:grid;grid-template-columns:32px auto minmax(0,1fr) 36px;grid-template-rows:auto;gap:6px;padding:8px}
 body .top.mobile-compact .brand{display:flex;grid-column:1;grid-row:1;padding:0;border:0;min-width:0;gap:0}
 body .top.mobile-compact .brand.brand-configured img{display:block;width:32px!important;height:32px!important;object-fit:contain}
 body .top.mobile-compact .brand>span{display:none}
 body .top.mobile-compact .brand:before{display:none;content:none}
 body .top.mobile-compact #server-status{grid-column:2;grid-row:1;justify-self:start}
 body .top.mobile-compact #profile-bar{grid-column:3;grid-row:1;display:flex;flex-wrap:nowrap;gap:5px;width:auto;min-width:0;justify-self:end}
 body .top.mobile-compact #profile-bar>.profile-register,body .top.mobile-compact #profile-bar>.profile-login{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:7px 8px;font-size:12px;white-space:nowrap;gap:5px}
 body .top.mobile-compact .nav-toggle{grid-column:4;grid-row:1;width:36px;height:36px;min-height:36px;padding:8px}
 body .top.mobile-compact #profile-bar>.profile-action svg{display:none}
 body .top.mobile-compact .header-notifications{width:34px;height:36px;min-height:36px;flex-basis:34px;padding:8px}
 body .top.mobile-compact .profile-menu>summary{min-height:36px;padding:3px;gap:4px}
 body .top.mobile-compact .profile-menu .profile-avatar{width:26px;height:26px;min-width:26px}
}
@media(max-width:360px){body .top.mobile-compact{gap:4px;padding:6px;grid-template-columns:28px auto minmax(0,1fr) 32px}body .top.mobile-compact .brand.brand-configured img{width:28px!important;height:28px!important}body .top.mobile-compact .nav-toggle{width:32px;padding:6px}body .top.mobile-compact #server-status{min-width:40px;padding:7px!important;gap:6px}body .top.mobile-compact #profile-bar>.profile-action{padding:7px 5px;font-size:11px}body .top.mobile-compact #profile-bar{gap:4px}}
@media(prefers-reduced-motion:reduce){body .top #server-status .server-status-dot{animation:none;opacity:1}}


/* BY-WOW 139: keep logo cleanup and visible crystal, original spacing restored. */
body .top .brand.brand-configured:before{content:none!important;display:none!important}
@media(min-width:1051px){body .top.is-scrolled .brand.brand-configured>span{display:none}}

/* Keep the crystal visible on every phone width. */
body .top.mobile-compact #profile-bar .profile-crystals-icon{display:inline-flex!important;align-items:center;flex:0 0 auto}
body .top.mobile-compact #profile-bar .profile-crystals{gap:4px}
