:root{--wing-header-height:120px}
.header{top:0;height:var(--wing-header-height);background:#fff}
.header>.wrap{height:100%;display:grid;grid-template-columns:max-content minmax(0,1fr);grid-template-rows:44px 48px;align-content:center;gap:8px 24px;padding:10px 24px;max-width:none}
.header .academy-wordmark{grid-column:1;grid-row:1;justify-self:start;min-width:0;font-size:17px}
.header .academy-wordmark>img{width:34px;height:38px}
.header .academy-wordmark small{display:block;font-size:9px;letter-spacing:.12em}
.header .header-label{display:none}
.header-utility-row{grid-column:1/-1;grid-row:2;display:flex;align-items:center;justify-content:flex-end;gap:16px;min-width:0;border-top:1px solid #e6ebf3;padding-top:8px}
.header .header-channel-links{grid-column:2;grid-row:1;justify-self:start;min-width:0;position:static;inset:auto;order:0;display:flex!important;flex-direction:row;flex-wrap:nowrap;width:auto;height:auto;gap:8px;padding:0;margin:0;background:transparent;border:0;color:#34465f;font-size:12px;font-weight:700;white-space:nowrap}
.header-channel-links>a,.header-channel-links>button{height:36px;min-height:36px;padding:0 9px;border:1px solid #e0e6ee;border-radius:8px;background:#f8fafc;gap:6px;text-decoration:none}
.header-channel-links>a:hover,.header-channel-links>button:hover{border-color:#a9bce1;background:#eef3fc;text-decoration:none}
.header-channel-links .channel-icon{width:20px;height:20px;flex-basis:20px}
.header .header-actions{display:flex;grid-column:auto;grid-row:auto;align-items:center;justify-content:flex-end;gap:8px;width:auto;margin:0;min-width:0;flex-shrink:0}
.header .header-live-link,.header .header-youtube-link,.header #siteSessionControls .smallbtn,.header #siteSessionControls .primary{display:inline-flex;align-items:center;justify-content:center;min-height:36px;height:36px;padding:0 12px;font-size:12px;border-radius:8px;white-space:nowrap}
.header .header-actions .right{display:flex;align-items:center;gap:6px;margin:0;min-width:0}
.header #siteSessionControls>span{display:none}
.header .zoom-label-short{display:none}
.header .menu-toggle{grid-row:1;grid-column:1;justify-self:start}
.campus-sidebar,.campus-content{top:var(--wing-header-height);margin-top:0}
.sidebar-open .campus-backdrop{top:var(--wing-header-height)}
@media(max-width:1100px){
 .header>.wrap{padding-left:18px;padding-right:18px;column-gap:16px}
 .header .header-channel-links{gap:6px}
 .header-channel-links>a,.header-channel-links>button{padding:0 7px}
}
@media(max-width:800px){
 :root{--wing-header-height:164px}
 .header>.wrap{grid-template-columns:28px minmax(0,1fr);grid-template-rows:42px 36px 36px;padding:10px 14px;gap:8px 10px}
 .header .header-channel-links{grid-column:1/-1;grid-row:2;justify-self:stretch;width:100%;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
 .header-utility-row{grid-column:1/-1;grid-row:3;border-top:0;padding-top:0}
 .header .header-actions{width:100%}
 .header .academy-wordmark{grid-column:2;font-size:15px}
 .header .academy-wordmark>img{width:30px;height:34px}
 .header .menu-toggle{padding:0}
 .header-channel-links>a,.header-channel-links>button{padding:0 6px;font-size:12px;gap:5px;line-height:1.3}
 .header .header-actions{justify-content:space-between;gap:6px}
 .header .header-youtube-link .youtube-live-mark{display:inline-grid}
}
@media(max-width:480px){
 .header>.wrap{padding-left:10px;padding-right:10px;column-gap:8px}
 .header .academy-wordmark{font-size:14px}
 .header .header-channel-links{gap:5px}
 .header-channel-links>a,.header-channel-links>button{font-size:11px;padding:0 4px;gap:4px}
 .header-channel-links .channel-icon{width:17px;height:17px;flex-basis:17px}
 .header .header-live-link,.header .header-youtube-link,.header #siteSessionControls .smallbtn,.header #siteSessionControls .primary{font-size:11px;padding:0 8px}
 .header .header-actions{gap:5px}
 .header .header-actions .right{gap:4px}
 .header .zoom-label-full{display:none}
 .header .zoom-label-short{display:inline}
 .header .header-youtube-link .youtube-live-mark{display:none}
}

/* Logo, channels and class/account tools share one top axis. */
@media(min-width:1050px){
 :root{--wing-header-height:86px}
 .header>.wrap{display:flex;flex-wrap:nowrap;align-items:center;gap:10px;padding:14px 16px}
 .header .academy-wordmark{flex-shrink:0;font-size:15px}
 .header .header-channel-links{flex-shrink:0;gap:5px}
 .header-channel-links>a,.header-channel-links>button{padding:0 6px;font-size:11px}
 .header-utility-row{display:flex;border:0;padding:0;margin-left:auto;flex-shrink:0}
 .header .header-actions{gap:6px}
 .header .header-live-link,.header .header-youtube-link,.header #siteSessionControls .smallbtn,.header #siteSessionControls .primary{font-size:11px;padding:0 8px}
 .header .zoom-label-full{display:none}
 .header .zoom-label-short{display:inline}
}
