/* Header and navigation use Examera's dashboard proportions and course tokens. */
.masthead{position:sticky;top:0;z-index:35;background:var(--course-primary);color:#FFFFFF;border-bottom:0;box-shadow:0 3px 18px color-mix(in srgb,var(--course-primary) 12%,transparent)}
.masthead .masthead-inner{max-width:1220px;min-height:92px;padding:15px 28px;display:grid;grid-template-columns:minmax(240px,1fr) minmax(0,560px) minmax(240px,1fr);align-items:center;gap:20px;transition:min-height .2s,padding .2s}
.masthead .masthead-brand{width:auto;display:flex;align-items:center;gap:12px;padding:0;justify-self:start}
.masthead .l8-exam-wordmark{gap:12px;--wordmark-font:29px}
.masthead .l8-exam-wordmark>svg{width:60px;height:auto;flex:none;transition:width .2s}
.masthead .l8-exam-wordmark>span{font-size:29px;line-height:1;color:#FFFFFF}
.masthead .masthead-course{box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-width:0;width:100%;height:44px;min-height:44px;max-height:44px;margin:0;padding:0 30px;border:1px solid #FFFFFF42;border-radius:10px;background:#FFFFFF1A;color:#FFFFFF;text-align:center;box-shadow:none}
.masthead .masthead-course strong{font-family:Source,Arial,sans-serif;font-weight:600;font-size:20px;line-height:1.2;color:#FFFFFF}
.masthead .masthead-course:hover{background:#FFFFFF26;border-color:#FFFFFF70}
.masthead .masthead-tools{position:relative;display:flex;align-items:center;justify-self:end;flex-wrap:nowrap;gap:8px;min-width:0;width:max-content;max-width:100%;color:#FFFFFF}
.masthead .profile-control{box-sizing:border-box;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;display:grid;place-items:center;border:1px solid #FFFFFF3D;border-radius:8px;background:#FFFFFF14;color:#FFFFFF;box-shadow:none}
.masthead .profile-control:hover{background:#FFFFFF29;border-color:#FFFFFF70}
.masthead .profile-control svg{width:17px;height:17px;stroke-width:2}
.masthead .header-storage{position:absolute;top:calc(100% + 4px);right:0;width:auto;white-space:nowrap;font-size:9px;line-height:1.1;color:#FFFFFF}
.masthead .studera-m8 #m8-profile-control{--m8-height:44px!important;--m8-radius:8px;--m8-max-width:194px;--m8-site-primary:var(--course-primary)!important;--m8-site-text:var(--course-dark)!important;--m8-header-ink:#FFFFFF}
.masthead.is-compact .masthead-inner{min-height:73px;padding-top:9px;padding-bottom:9px}
.masthead.is-compact .l8-exam-wordmark>svg{width:48px}
.masthead.is-compact .l8-exam-wordmark>span{font-size:25px}
.masthead.is-compact .masthead-course,.masthead.is-compact .profile-control{border-radius:6px}
.masthead.is-compact .studera-m8 #m8-profile-control{--m8-radius:6px}
.masthead.is-compact .header-storage{top:calc(100% + 1px)}
.bottom-navigation{position:fixed;bottom:0;left:0;right:0;width:100%;z-index:40;padding:9px 18px calc(9px + env(safe-area-inset-bottom));background:var(--course-primary);color:#FFFFFF;border-top:1px solid #FFFFFF29;box-shadow:0 -5px 25px #24002C0D}
.bottom-navigation nav{max-width:1296px;margin:0 auto;display:flex;justify-content:center;align-items:stretch;gap:5px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
.bottom-navigation button{position:relative;display:flex;align-items:center;justify-content:center;gap:7px;flex-shrink:0;min-height:44px;margin:0;padding:12px 13px;border:0;border-radius:9px;background:transparent;color:#FFFFFF;font-family:Source,Arial,sans-serif;font-size:11px;line-height:1.2;white-space:nowrap;font-weight:400}
.bottom-navigation button:hover{background:#FFFFFF21;color:#FFFFFF}
.bottom-navigation button.active{background:#FFFFFF;color:var(--course-primary);font-weight:600}
.bottom-navigation button.active:after{display:none;content:none}
.bottom-navigation svg{width:17px;height:17px;stroke-width:2;flex:none}
.bottom-navigation button:focus-visible{outline:2px solid #FFFFFF;outline-offset:2px}
@media(max-width:1000px){.masthead .masthead-inner{grid-template-columns:160px minmax(180px,1fr) 230px;gap:16px}.masthead .l8-exam-wordmark>svg{width:51px}.masthead .l8-exam-wordmark>span{font-size:25px}.masthead .studera-m8 #m8-profile-control{--m8-max-width:178px}.bottom-navigation button{font-size:10px;padding:11px 10px;gap:5px}}
@media(max-width:760px){.masthead .masthead-inner{grid-template-columns:150px minmax(0,1fr);padding:12px 18px;gap:11px;min-height:104px}.masthead .masthead-brand{grid-column:1;grid-row:1}.masthead .l8-exam-wordmark{gap:8px}.masthead .l8-exam-wordmark>svg{width:42px}.masthead .l8-exam-wordmark>span{font-size:23px}.masthead .masthead-tools{grid-column:2;grid-row:1;max-width:100%}.masthead .masthead-course{grid-column:1/-1;grid-row:2;padding:0 10px}.masthead .masthead-course strong{font-size:13px}.masthead .header-storage{display:none}.masthead .studera-m8 #m8-profile-control{--m8-max-width:148px;--m8-height:44px!important}.masthead.is-compact .masthead-inner{min-height:95px;padding:9px 18px}.masthead.is-compact .l8-exam-wordmark>svg{width:36px}.masthead.is-compact .l8-exam-wordmark>span{font-size:22px}.bottom-navigation{padding:7px 9px calc(7px + env(safe-area-inset-bottom))}.bottom-navigation nav{justify-content:flex-start;gap:4px}.bottom-navigation button{flex:1;min-width:0;flex-direction:column;gap:4px;min-height:44px;padding:7px 6px;font-size:10px}.lab-stage{scroll-margin-top:125px}.workspace{padding-bottom:calc(116px + env(safe-area-inset-bottom))}}
@media(max-width:450px){.masthead .masthead-inner,.masthead.is-compact .masthead-inner{padding-left:15px;padding-right:15px;grid-template-columns:145px minmax(0,1fr)}}
@media(max-width:390px){.masthead .masthead-inner,.masthead.is-compact .masthead-inner{grid-template-columns:114px minmax(0,1fr)}.masthead .studera-m8 .m8-name{display:none!important}}
@media(prefers-reduced-motion:reduce){.masthead .masthead-inner,.masthead .l8-exam-wordmark>svg{transition:none}}
