/* Student launchpad shell — persistent nav + Daily Work HUD. */
:root {
  --shellNavy: #0b1220;
  --shellColumbia: #4F86C6;
  --shellGold: #f6c343;
  --shellInk: #101828;
  --shellRed: #c62828;
  --shellAmber: #c77700;
  --shellGreen: #1b7a3d;
  --shellGray: #667085;
  --shellTabW: 84px;
  --shellMarqueeH: 36px;
  --shellNavRowH: 64px;
  --shellNavH: var(--shellNavRowH);
  --marqueeH: var(--shellMarqueeH);
  --globalHeaderH: calc(var(--shellMarqueeH) + var(--shellNavRowH));
  --shellNavBtnFont: 16px;
  --shellNavBtnMinH: 44px;
  --shellNavBtnPadY: 8px;
  --shellNavBtnPadX: 12px;
  --shellNavBtnRadius: 999px;
  --shellNavBtnWeight: 900;
  --shellNavBtnFamily: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shellNavBtnBorder: 2px;
  /* CLASSROOM_UI_STATE_CLEANUP_V138 — one shared intake-tray width for Daily / Anchor /
     NYT Graph Make Up / USN Careers Make Up. Slightly wider than the old 480px so the
     five response boxes have a comfortable writing measure at a 1366x768 classroom
     viewport, still responsive (min(var(--dwTrayW), 96vw)) so it never dominates. */
  --dwTrayW: 560px;
  --dwHeaderStack: calc(var(--globalHeaderH) + var(--lifeH, 0px));
}

/* GLOBAL_HEADER_PIXEL_CONTRACT_V114 — sole authority for global header geometry */
html.hasGlobalSiteHeader {
  scrollbar-gutter: stable;
  overflow-y: scroll;
  box-sizing: border-box;
}

html.hasGlobalSiteHeader *,
html.hasGlobalSiteHeader *::before,
html.hasGlobalSiteHeader *::after {
  box-sizing: border-box;
}

html.hasGlobalSiteHeader,
html.hasGlobalSiteHeader body,
html.hasStudentShell,
html.hasStudentShell body {
  overflow-x: hidden;
}

html.hasGlobalSiteHeader body {
  padding-top: var(--dwHeaderStack);
}

html.hasStudentShell body {
  padding-top: var(--dwHeaderStack);
}

/* GLOBAL_HEADER_SINGLETON_V112 — one fixed header stack: marquee + nav */
#globalSiteHeader,
#globalSiteHeader *,
#globalSiteHeader *::before,
#globalSiteHeader *::after {
  box-sizing: border-box;
  font-family: var(--shellNavBtnFamily);
}

#globalSiteHeader.globalSiteHeader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4320;
  width: 100%;
  max-width: 100%;
  height: var(--globalHeaderH);
  min-height: var(--globalHeaderH);
  max-height: var(--globalHeaderH);
  box-sizing: border-box;
  overflow: hidden;
}

#globalSiteHeader #marqueeBar {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  height: var(--shellMarqueeH) !important;
  min-height: var(--shellMarqueeH) !important;
  max-height: var(--shellMarqueeH) !important;
  margin: 0 !important;
  box-sizing: border-box;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0, 0, 128, .95), rgba(79, 134, 198, .95));
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
}

#globalSiteHeader #marqueeInner {
  max-width: 1200px !important;
  width: 100%;
  height: var(--shellMarqueeH) !important;
  min-height: var(--shellMarqueeH) !important;
  max-height: var(--shellMarqueeH) !important;
  margin: 0 auto !important;
  padding: 8px 14px !important;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
}

#globalSiteHeader #marqueeText {
  display: inline-block;
  padding-left: 100%;
  animation: globalMarqueeScroll 22s linear infinite;
  white-space: pre;
  font-family: var(--shellNavBtnFamily);
  font-weight: 800;
  font-size: var(--shellNavBtnFont);
  line-height: 1;
  letter-spacing: .2px;
  color: rgba(255, 255, 255, .95);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
}

#globalSiteHeader #marqueeText.marqueeError {
  font-weight: 700;
  opacity: .9;
}

#globalSiteHeader .studentShellNav {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 2;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  width: 100%;
  height: var(--shellNavRowH);
  min-height: var(--shellNavRowH);
  max-height: var(--shellNavRowH);
  padding: 8px 334px 8px 14px;
  margin: 0;
  box-sizing: border-box;
  background: var(--shellNavy);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  overflow: hidden;
}

html.hasStaffChrome #globalSiteHeader .studentShellActions {
  display: none !important;
}

/* GRADING_ACTION_CONTROLS_V117 — grading picker/footer above #globalSiteHeader (4320) */
html.hasStaffChrome .gradingRubricPickerBackdrop {
  z-index: 5000;
}
html.hasStaffChrome .gradingStickyFooter {
  z-index: 4400;
}

@media (min-width: 861px) {
  html.hasStudentShell body {
    padding-right: 88px;
  }
  /* CLASSROOM_UI_STATE_CLEANUP_V138 — Make Up shares the exact desktop layout of every
     other intake mode: same reserved push, same overlay behavior, same drawer geometry. */
  html.hasStudentShell body.dwHudOpen {
    padding-right: var(--dwTrayW);
    overflow-x: hidden;
    overflow-y: auto;
  }
  html.hasStudentShell body.dwHudOpen .dwHudBackdrop {
    display: none !important;
  }
  html.hasStudentShell body.dwHudOpen .dwHudDrawer {
    top: var(--dwHeaderStack);
    width: min(var(--dwTrayW), 96vw);
    bottom: 0;
  }
  html.hasStudentShell body.dwHudOpen.hasPathwayLaunchpad .pageWrap {
    padding-right: 16px;
  }
}

html.hasGlobalSiteHeader body.tmsQuizOpen {
  overflow-x: hidden;
  overflow-y: scroll;
}

/* CLASSROOM_UI_STATE_CLEANUP_V138 — while the marquee has no real content (loading,
   empty, or errored) it shows NOTHING to students: no placeholder text, no stray bar. */
#marqueeBar[data-marquee-empty] {
  visibility: hidden;
}
#marqueeBar[data-marquee-empty] #marqueeText::after {
  content: none !important;
}

/* GLOBAL_MARQUEE_SINGLETON_V111 — fallback before #globalSiteHeader assembly only */
body:not(.hasGlobalSiteHeader) #marqueeBar {
  width: 100%;
  background: linear-gradient(90deg, rgba(0, 0, 128, .95), rgba(79, 134, 198, .95));
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px);
}
body:not(.hasGlobalSiteHeader) #marqueeInner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 14px;
  overflow: hidden;
  white-space: nowrap;
}
body:not(.hasGlobalSiteHeader) #marqueeText {
  display: inline-block;
  padding-left: 100%;
  animation: globalMarqueeScroll 22s linear infinite;
  white-space: pre;
  font-weight: 800;
  letter-spacing: .2px;
  color: rgba(255, 255, 255, .95);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
}
body:not(.hasGlobalSiteHeader) #marqueeText.marqueeError {
  font-weight: 700;
  opacity: .9;
}
@keyframes globalMarqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.studentLifeStrip {
  position: fixed;
  top: var(--globalHeaderH, calc(var(--marqueeH, 36px) + var(--shellNavH, 64px)));
  left: 0;
  right: 0;
  z-index: 4290;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  min-height: 44px;
  padding: 6px 12px;
  background: #0b1220;
  border-bottom: 2px solid #f6c343;
}
.studentLifeStrip a,
.studentLifeStrip button {
  appearance: none;
  border: 0;
  background: rgba(79, 134, 198, .28);
  color: #fff;
  border-radius: 999px;
  min-height: 36px;
  padding: 0 12px;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
/* CLASSROOM_UI_STATE_CLEANUP_V138 — a lifecycle control with no launchable destination
   (e.g. PROJECT QUIZ on a project with no quiz) reads as disabled, not a dead button. */
.studentLifeStrip button:disabled,
.studentLifeStrip button.is-unavailable {
  opacity: .45;
  cursor: not-allowed;
}
@media (max-width: 720px) {
  .studentLifeStrip { padding-right: 16px; }
}

#globalSiteHeader .studentShellBrand {
  color: #fff;
  text-decoration: none;
  font-family: var(--shellNavBtnFamily);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  letter-spacing: .02em;
  white-space: nowrap;
  margin: 0 6px 0 0;
  flex: 0 0 auto;
}

.studentShellIdentity {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 0;
}

.studentShellIdentityLabel {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .84);
  line-height: 1.1;
}

.studentShellIdentityName {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  white-space: nowrap;
  max-width: min(42vw, 420px);
  overflow: visible;
  text-overflow: clip;
}

.studentSpecialIdentity {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  margin: 0 0 12px 0;
  padding: 10px 12px;
  background: var(--shellNavy);
  color: #fff;
  border-radius: 12px;
}

@media (max-width: 860px) {
  .studentSpecialIdentity {
    align-items: flex-start;
  }
}

#globalSiteHeader .studentShellLinks {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

#globalSiteHeader .studentShellLinks a,
#globalSiteHeader .studentShellLogout,
#globalSiteHeader .studentShellLogin {
  appearance: none;
  border: var(--shellNavBtnBorder) solid transparent;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-family: var(--shellNavBtnFamily);
  font-weight: var(--shellNavBtnWeight);
  font-size: var(--shellNavBtnFont);
  line-height: 1;
  letter-spacing: .04em;
  text-decoration: none;
  padding: var(--shellNavBtnPadY) var(--shellNavBtnPadX);
  border-radius: var(--shellNavBtnRadius);
  cursor: pointer;
  height: var(--shellNavBtnMinH);
  min-height: var(--shellNavBtnMinH);
  max-height: var(--shellNavBtnMinH);
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

#globalSiteHeader .studentShellLinks a:not(.is-active) {
  border-color: rgba(255, 255, 255, .28);
}

#globalSiteHeader .studentShellLinks a.is-active,
#globalSiteHeader .studentShellLinks a:hover {
  background: var(--shellGold);
  color: #111;
  border-color: var(--shellGold);
}

#globalSiteHeader .studentShellLogin {
  background: var(--shellGold);
  color: #111;
  border-color: rgba(255, 255, 255, .28);
}

#globalSiteHeader .studentShellLogin:hover {
  background: #fff;
  color: var(--shellNavy);
  border-color: #fff;
}

#globalSiteHeader .studentShellLogout {
  background: #fff;
  color: var(--shellNavy);
  border-color: #fff;
}

#globalSiteHeader .studentShellLogout:hover {
  background: var(--shellGold);
  color: #111;
  border-color: var(--shellGold);
}

#globalSiteHeader .studentShellActions {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  margin-left: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  flex: 0 0 320px;
  width: 320px;
  max-width: min(320px, 42vw);
  min-height: var(--shellNavBtnMinH);
  max-height: var(--shellNavBtnMinH);
}

#globalSiteHeader .studentShellIdentity {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  height: var(--shellNavBtnMinH);
  max-height: var(--shellNavBtnMinH);
  overflow: hidden;
}

#globalSiteHeader .studentShellIdentityLabel {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .84);
  line-height: 1;
}

#globalSiteHeader .studentShellIdentityName {
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(42vw, 420px);
}

.studentShellLinks a,
.studentShellLogout {
  appearance: none;
  border: 2px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-family: var(--shellNavBtnFamily);
  font-weight: var(--shellNavBtnWeight);
  font-size: var(--shellNavBtnFont);
  line-height: 1;
  letter-spacing: .04em;
  text-decoration: none;
  padding: var(--shellNavBtnPadY) var(--shellNavBtnPadX);
  border-radius: var(--shellNavBtnRadius);
  cursor: pointer;
  min-height: var(--shellNavBtnMinH);
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.studentShellLinks a.is-active,
.studentShellLinks a:hover,
.studentShellLogout:hover {
  background: var(--shellGold);
  color: #111;
  border-color: var(--shellGold);
  min-height: var(--shellNavBtnMinH);
  padding: var(--shellNavBtnPadY) var(--shellNavBtnPadX);
  font-size: var(--shellNavBtnFont);
}

.studentShellLogout {
  background: #fff;
  color: var(--shellNavy);
  border-color: #fff;
  font-size: var(--shellNavBtnFont);
  font-weight: var(--shellNavBtnWeight);
}

.studentShellLogin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--shellNavBtnFamily);
  font-size: var(--shellNavBtnFont);
  font-weight: var(--shellNavBtnWeight);
  min-height: var(--shellNavBtnMinH);
  padding: var(--shellNavBtnPadY) var(--shellNavBtnPadX);
  border-radius: var(--shellNavBtnRadius);
  border: 1px solid rgba(255, 255, 255, .28);
  background: var(--shellGold);
  color: #111;
  text-decoration: none;
  white-space: nowrap;
}

.studentShellLogin:hover {
  background: #fff;
  color: var(--shellNavy);
  border-color: #fff;
}

.studentShellLogin[hidden],
.studentShellLogout[hidden],
.studentShellIdentity[hidden] {
  display: none !important;
}

.dwPathwayHint {
  position: fixed;
  top: var(--globalHeaderH, var(--shellNavH, 64px));
  left: 12px;
  z-index: 4270;
  max-width: min(70vw, 520px);
  background: #f6c343;
  color: #111;
  font-weight: 900;
  font-size: 15px;
  padding: 6px 10px;
  border-radius: 0 0 10px 10px;
}

/* HUD tab — always visible on desktop, not a permanent split. */
.dwHudTab {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 4280;
  transform: translateY(-50%);
  width: var(--shellTabW);
  min-width: 84px;
  min-height: 280px;
  padding: 16px 10px;
  border: 3px solid #fff;
  border-right: 0;
  border-radius: 20px 0 0 20px;
  background: var(--shellNavy);
  color: #fff;
  cursor: pointer;
  box-shadow: -10px 0 28px rgba(0, 0, 0, .34);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.dwHudTab.is-open {
  border-color: var(--shellColumbia);
}

.dwHudTab:focus-visible {
  outline: 4px solid var(--shellGold);
  outline-offset: 2px;
}

.dwHudTabIcon {
  font-size: 34px;
  line-height: 1;
}

.dwHudTabWords {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: 1000;
  font-size: 20px;
  letter-spacing: .2em;
  line-height: 1.1;
}

.dwHudDot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--shellGray);
  border: 2px solid #fff;
}

.dwHudTab.is-red { background: #8b1e1e; }
.dwHudTab.is-amber { background: #8a5600; }
.dwHudTab.is-green { background: #14532d; }
.dwHudTab.is-gray,
.dwHudTab.is-neutral { background: var(--shellNavy); }

.dwHudTab.is-red .dwHudDot { background: #ff6b6b; }
.dwHudTab.is-amber .dwHudDot { background: var(--shellGold); }
.dwHudTab.is-green .dwHudDot { background: #7dffa0; }
.dwHudTab.is-gray .dwHudDot,
.dwHudTab.is-neutral .dwHudDot { background: #d0d5dd; }

.dwHudSr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.dwHudStateText,
.dwHudTabHint {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.dwHudTabHint {
  color: var(--shellGold);
}

/* Overlay drawer — project page stays underneath. */
.dwHudBackdrop {
  position: fixed;
  inset: 0;
  z-index: 4400;
  background: rgba(8, 12, 28, .42);
}

.dwHudDrawer {
  position: fixed;
  top: var(--dwHeaderStack);
  right: 0;
  bottom: 0;
  z-index: 4410;
  width: min(var(--dwTrayW), 96vw);
  max-width: 96vw;
  background: #f6f7fb;
  color: var(--shellInk);
  border-left: 3px solid var(--shellColumbia);
  border-radius: 18px 0 0 18px;
  box-shadow: -16px 0 40px rgba(0, 0, 0, .28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}
.dwHudDrawer[hidden],
.dwHudBackdrop[hidden],
.dwPathwayHint[hidden] {
  display: none !important;
}

.dwHudDrawerHead {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  background: var(--shellNavy);
  color: #fff;
  border-bottom: 3px solid var(--shellColumbia);
}
.dwHudDrawerHeadControls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
  flex: 0 1 auto;
}
.dwHudSaveStatus {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, .78);
  white-space: nowrap;
}
.dwHudSaveStatus.is-saving {
  color: var(--shellGold);
}
.dwHudSaveStatus.is-saved {
  color: #3dce6a;
}
.dwHudSaveStatus.is-bad {
  color: #ff8a98;
}

.dwHudDrawerTitle {
  font-weight: 1000;
  font-size: 22px;
  flex: 1;
}

.dwHudClose {
  appearance: none;
  border: 2px solid #fff;
  background: #fff;
  color: var(--shellNavy);
  font-weight: 1000;
  font-size: 18px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  cursor: pointer;
  flex: 0 0 auto;
}
.dwHudClose:hover {
  background: var(--shellNavy);
  border-color: var(--shellColumbia);
  color: #fff;
}
.dwHudClose:focus-visible {
  outline: 3px solid var(--shellColumbia);
  outline-offset: 2px;
}

.dwHudBody {
  flex: 1;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 12px;
  background: var(--shellNavy);
  color: #fff;
}

.dwHudShell .card {
  background: rgba(16, 24, 40, .92);
  border: 1px solid rgba(79, 134, 198, .35);
  border-radius: 18px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: none;
  color: #fff;
}

.dwHudShell .tmsDWWritingSupportToggle,
.dwHudShell .tmsDWWritingSupport {
  display: block;
  width: 100%;
}

.dwHudShell .tmsDWWritingSupportToggle {
  min-height: 48px;
  font-size: 18px;
  font-weight: 1000;
  background: rgba(16, 24, 40, 0.92);
  color: #fff;
  border: 2px solid var(--shellColumbia);
}

.dwHudShell .tmsDWWritingSupportPanel {
  display: block;
  position: static;
  max-height: 280px;
  overflow: auto;
  margin-top: 8px;
  padding: 10px;
  background: rgba(7, 11, 20, 0.96);
  border: 2px solid rgba(79, 134, 198, 0.35);
  color: #fff;
}

.dwHudShell #dwVocabHelpHint,
.dwHudShell #vocabulary {
  font-size: 18px;
  font-weight: 800;
}

.dwHudMsg {
  font-size: 18px;
  font-weight: 800;
  padding: 8px 4px 12px;
}

/* CLASSROOM_UI_STATE_CLEANUP_V138 — the old makeup-only 80/20 grid + separate giant
   source panel are gone. Make Up now mounts in the SAME single-column drawer as Daily /
   Anchor. The source action lives INSIDE the shared shell as one compact strip. */
.dwHudSource {
  display: none;
}

.dwHudSourceInline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(79, 134, 198, .5);
  background: rgba(16, 24, 40, .92);
  color: #fff;
}
.dwHudSourceInlineText {
  flex: 1 1 180px;
  min-width: 0;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}
.dwHudSourceBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 1000;
  font-size: 16px;
  letter-spacing: .03em;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  background: var(--shellGold);
  color: #111;
}

/* Hide leftover cloned Digital Art header and duplicate Daily Work chrome. */
.hasStudentShell .pageTop,
.hasStudentShell #tmsDailyWorkNav,
.hasStudentShell .dwv2Top {
  display: none !important;
}

.hasStudentShell .dwv2TodayMeta {
  font-size: 18px;
  font-weight: 800;
  color: rgba(255, 255, 255, .72);
}

.hasStudentShell .dwv2TodayProject {
  font-size: 28px;
  font-weight: 1000;
}

.hasStudentShell .dwHudShell .dwWriteSupportHint {
  display: block;
  margin: 6px 0 10px;
  font-size: 16px;
  font-weight: 800;
  color: rgba(255, 255, 255, .72);
}

.dwHudMobileBar {
  display: none;
}

@media (max-width: 860px) {
  :root {
    --shellNavRowH: 112px;
    --shellNavH: var(--shellNavRowH);
    --globalHeaderH: calc(var(--shellMarqueeH) + var(--shellNavRowH));
  }

  #globalSiteHeader .studentShellNav {
    flex-wrap: wrap;
    align-content: flex-start;
    padding: 8px 12px 8px 14px;
  }

  #globalSiteHeader .studentShellActions {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    width: 100%;
    order: 10;
    justify-content: space-between;
    min-height: var(--shellNavBtnMinH);
    max-height: var(--shellNavBtnMinH);
  }

  html.hasStudentShell body {
    padding-top: var(--dwHeaderStack);
    padding-right: 0;
    padding-bottom: 76px;
  }
  html.hasGlobalSiteHeader body {
    padding-top: var(--dwHeaderStack);
  }
  html.hasStudentShell body.dwHudOpen {
    overflow: hidden;
  }

  .dwHudTab { display: none; }

  .dwHudMobileBar {
    display: flex;
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 4280;
    min-height: 56px;
    border: 0;
    border-radius: 16px;
    background: var(--shellNavy);
    color: #fff;
    font-weight: 1000;
    font-size: 22px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .3);
  }

  .dwHudDrawer {
    top: var(--dwHeaderStack);
    width: 100%;
    bottom: 76px;
  }
  .tmsDWAccHead,
  .tmsDWAccNext,
  .tmsDWAccPrev {
    min-height: 48px;
  }
  .tmsDWEvidenceThumb {
    width: 56px;
    height: 56px;
  }
}

/* Compact sticky Daily Work header */
.dwHudDrawerHead {
  position: sticky;
  top: 0;
  z-index: 2;
  align-items: flex-start;
}
.dwHudDrawerHeadText {
  flex: 1;
  min-width: 0;
}
.dwHudDrawerTitle {
  font-size: 20px;
  line-height: 1.15;
}
.dwHudDrawerMeta,
.dwHudDrawerProg {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 800;
  color: rgba(255, 255, 255, .78);
  line-height: 1.3;
  overflow-wrap: anywhere;
  white-space: normal;
}
.dwHudDrawerProg {
  color: var(--shellGold);
  font-weight: 1000;
  letter-spacing: .04em;
}

/* HUD dark tray — white primary text on dark surfaces; inputs stay light for typing */
.dwHudShell .tmsDailyWorkWrap.is-accordion,
.dwHudShell .tmsDWStepCard,
.dwHudShell .tmsDWReview {
  color: #fff;
  background: rgba(16, 24, 40, .92);
}
.dwHudShell .tmsDWStepCard {
  border: 2px solid rgba(79, 134, 198, .35);
  border-left: 4px solid var(--shellRed);
  box-shadow: none;
  border-radius: 16px;
}
.dwHudShell .tmsDWStepCard.tmsDWStepComplete {
  border-color: rgba(27, 122, 61, .55);
  border-left-color: var(--shellGreen);
}
.dwHudShell .tmsDWAccHead .tmsDWStepTitle,
.dwHudShell .tmsDWStepHead .tmsDWSectionLabel,
.dwHudShell .tmsDWStepTitle,
.dwHudShell .tmsDWFieldQuestion,
.dwHudShell .tmsDWSectionLabel,
.dwHudShell .tmsHugeImageCta {
  color: var(--shellColumbia) !important;
}
.dwHudShell .tmsDWFieldClarify,
.dwHudShell .tmsDWSectionHint,
.dwHudShell .tmsDWReviewHint,
.dwHudShell .dwWriteSupportHint,
.dwHudShell .tmsDWCountLeft,
.dwHudShell .tmsDWCounter,
.dwHudShell .tmsDWDraftStatus {
  color: rgba(255, 255, 255, .72) !important;
}
.dwHudShell .tmsDWStepCard input,
.dwHudShell .tmsDWStepCard textarea,
.dwHudShell .tmsDWInput,
.dwHudShell .tmsDWTextarea {
  color: #101828 !important;
  background: #fff;
  border: 2px solid #98a2b3;
  color-scheme: light;
}
.dwHudShell .tmsDWEditableField,
.dwHudShell .tmsDWStepCard .tmsDWEditableField {
  color: #fff !important;
  background: rgba(52, 64, 84, 0.95) !important;
  border: 2px solid rgba(79, 134, 198, 0.45) !important;
  color-scheme: dark;
}
.dwHudShell .tmsDWStepCard input:focus,
.dwHudShell .tmsDWStepCard textarea:focus,
.dwHudShell .tmsDWInput:focus,
.dwHudShell .tmsDWTextarea:focus,
.dwHudShell .tmsDWEditableField:focus {
  outline: 3px solid var(--shellColumbia);
  outline-offset: 1px;
  border-color: var(--shellColumbia) !important;
}
.dwHudShell .tmsDWStepCard input::placeholder,
.dwHudShell .tmsDWStepCard textarea::placeholder,
.dwHudShell .tmsDWEditableField::placeholder {
  color: #98a2b3 !important;
}
.dwHudShell .tmsDWDraftStatus {
  display: none !important;
}
.dwHudShell .tmsDWWritingSupportToggle {
  background: rgba(16, 24, 40, 0.92);
  color: #fff;
  border: 2px solid var(--shellColumbia);
}
.dwHudShell .tmsDWWritingSupportPanel {
  display: block;
  position: static;
  max-height: 220px;
  overflow: auto;
  margin-top: 8px;
  padding: 10px;
  background: rgba(7, 11, 20, 0.96);
  border: 2px solid rgba(79, 134, 198, 0.35);
  color: #fff;
}
.dwHudShell .tmsDWWritingSupportHeading {
  color: var(--shellColumbia);
}
.dwHudShell .tmsDWWritingSupportStem {
  color: #fff;
  background: rgba(52, 64, 84, 0.85);
  border: 1px solid rgba(79, 134, 198, 0.35);
}
.dwHudShell .tmsDWAccNav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.dwHudShell .tmsDWAccPrev,
.dwHudShell .tmsDWAccNext {
  flex: unset;
  width: 100%;
  min-height: 48px;
  font-size: 16px;
  font-weight: 1000;
}
.dwHudShell .tmsDWAccPrev {
  color: #fff;
  border: 2px solid var(--shellColumbia);
  background: rgba(16, 24, 40, .85);
}
.dwHudShell .tmsDWAccNext {
  background: var(--shellNavy);
  color: #fff;
  border: 2px solid var(--shellColumbia);
}
.dwHudShell .tmsDWSubmit {
  background: var(--shellNavy);
  color: #fff;
  border: 2px solid var(--shellColumbia);
  min-height: 52px;
  font-size: 18px;
  font-weight: 1000;
}
.dwHudShell .tmsDWSubmit.tmsDWSubmitReady {
  background: var(--shellGreen) !important;
  border-color: #3dce6a !important;
  color: #fff !important;
  font-size: 20px;
  min-height: 56px;
  animation: dwSubmitReadyPulse 3.5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .dwHudShell .tmsDWSubmit.tmsDWSubmitReady {
    animation: none;
  }
}
.dwHudShell .tmsDWReview {
  border: 2px solid rgba(79, 134, 198, 0.55);
  border-top: 3px solid var(--shellColumbia);
  background: rgba(16, 24, 40, 0.96);
}
.dwHudShell .tmsDWReviewTitle {
  color: var(--shellColumbia);
}
.dwHudShell .tmsHistBubbleTeacher,
.dwHudShell .tmsHistTeacherFeedbackCard {
  background: rgba(7, 11, 20, 0.96);
  border: 1px solid rgba(79, 134, 198, 0.35);
  border-left: 4px solid var(--shellColumbia);
  margin-top: 10px;
}
.dwHudShell .tmsHistTeacherFeedbackHead {
  color: var(--shellColumbia);
}
.dwHudShell .tmsDWWritingSupportPanel[hidden] {
  display: none !important;
}
.dwHudShell .tmsHistBubbleStudent {
  background: var(--shellNavy);
  color: #fff;
}
.dwHudShell .tmsHistBubbleTeacher .tmsHistBubbleText,
.dwHudShell .tmsHistTeacherFeedbackCard .tmsHistBubbleText {
  color: #fff;
}
.dwHudShell .tmsDWStepHead {
  display: grid;
  grid-template-rows: 88px 24px;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 4px;
  width: 100%;
  max-width: 100%;
  min-height: 116px;
}
.dwHudShell .tmsDWStepHeadRowTitle {
  min-height: 88px;
  max-height: 88px;
  overflow: hidden;
}
.dwHudShell .tmsDWStepHeadRowStatus {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 24px;
  max-height: 24px;
}
.dwHudShell .tmsDWStepStatus {
  width: 118px;
  max-width: 118px;
  text-align: right;
  flex: 0 0 118px;
}
.dwHudShell .tmsDWAccMiniThumb {
  width: 64px;
  height: 64px;
}
.dwHudShell .tmsDWStepStatus.is-complete {
  color: #3dce6a !important;
}
.dwHudShell .tmsDWCountLeft.is-zero {
  color: #ff5a6a !important;
}
.dwHudShell .tmsDWCountLeft.is-progress,
.dwHudShell .tmsDWCountLeft.is-short {
  color: #f6c343 !important;
}
.dwHudShell .tmsDWCountLeft.is-met {
  color: #3dce6a !important;
}
.dwHudShell .tmsDWImageStatus.is-saved {
  color: #3dce6a !important;
}
.dwHudShell .tmsDWQuizzesTitle {
  color: var(--shellColumbia) !important;
}
.dwHudShell .tmsHistSubmissionCard {
  background: rgba(22, 30, 46, 0.96);
  border: 1px solid rgba(79, 134, 198, 0.45);
  border-left: 4px solid var(--shellColumbia);
}
.dwHudShell .tmsHistSubmissionCard .tmsHistBubbleStudent {
  background: rgba(16, 24, 40, 0.92);
  border: 1px solid rgba(79, 134, 198, 0.28);
}
@media (max-width: 420px) {
  .dwHudDrawerHeadControls {
    width: 100%;
    justify-content: space-between;
  }
  .dwHudSaveStatus {
    font-size: 12px;
  }
}
.dwHudShell .tmsDWMakeupContext {
  border-color: var(--shellColumbia);
  background: rgba(79, 134, 198, .14);
  color: #fff;
}
.dwHudShell .tmsDWPrereqBtn,
.dwHudShell .tmsDWEligibilityLink,
.dwHudShell .tmsDWEligibilityRetry,
.dwHudShell .dwRotOverlayBtn {
  background: var(--shellNavy);
  color: #fff;
  border-color: var(--shellColumbia);
}
.dwHudShell .tmsDWStepCard input:disabled,
.dwHudShell .tmsDWStepCard textarea:disabled,
.dwHudShell .tmsDWInput:disabled,
.dwHudShell .tmsDWTextarea:disabled {
  background: #e4e7ec;
  color: var(--shellGray);
  border-color: #98a2b3;
}
.dwHudShell #daily > .cardHd,
.dwHudShell #daily > .cardBody,
.dwHudShell .tmsDWCompletionHead,
.dwHudShell .tmsDWDayRotBadge {
  display: none;
}
.dwHudShell .tmsHugeImageIcons,
.dwHudShell .tmsHugeImageCta {
  color: var(--shellColumbia);
  font-size: 22px;
}
.dwHudBody {
  padding-bottom: 20px;
}

/* Tray form must fit the drawer — viewport nowrap rules from project-page.css
   would otherwise force chips and step heads past 420–480px. */
.dwHudShell,
.dwHudShell .tmsDailyWorkWrap,
.dwHudShell .tmsDWStepsWrap,
.dwHudShell .tmsDWStepCard,
.dwHudShell .card,
.dwHudShell .tmsDWContextBar,
.dwHudShell .tmsDWBadgeRow {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.dwHudShell .tmsDWContextBar,
.dwHudShell .tmsDWBadgeRow,
.dwHudShell .tmsDWStepPills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
}
.dwHudShell .tmsDWPeriodBadge,
.dwHudShell .tmsDWBadge,
.dwHudShell .tmsDWLanternBtn,
.dwHudShell .tmsDWSignOutBtn {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  height: auto;
  min-height: 34px;
  white-space: normal;
  overflow-wrap: anywhere;
  background: rgba(16, 24, 40, .85);
  color: #fff;
  border: 2px solid var(--shellColumbia);
}
.dwHudShell .tmsDWPeriodBadge.is-unassigned {
  border-color: var(--shellAmber);
  color: #fff;
  box-shadow: none;
}
.dwHudShell .tmsDWContextBar {
  background: rgba(16, 24, 40, .92);
  border: 1px solid rgba(79, 134, 198, .35);
}
.dwHudShell .tmsDWDayLabel {
  color: #fff;
}
.dwHudShell .tmsDWMakeupContext {
  border-color: var(--shellColumbia);
  background: rgba(79, 134, 198, .14);
}
.dwHudShell .tmsDWEligibilityLink,
.dwHudShell .tmsDWEligibilityRetry {
  background: var(--shellNavy);
  border: 2px solid var(--shellColumbia);
  color: #fff;
}
.dwHudShell .tmsDWAccNext:disabled,
.dwHudShell .tmsDWSubmit:disabled,
.dwHudShell .tmsDWAccPrev:disabled {
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .45);
  border-color: rgba(79, 134, 198, .25);
  cursor: not-allowed;
}

.ssgWarn {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 12000;
  max-width: 640px;
  margin: 0 auto;
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px solid rgba(246, 195, 67, .85);
  background: linear-gradient(180deg, rgba(20, 36, 64, .98), rgba(12, 24, 44, .98));
  box-shadow: 0 8px 28px rgba(0, 0, 0, .45);
  color: #fff;
}

.ssgWarn[hidden] {
  display: none !important;
}

.ssgWarnTitle {
  font-size: 22px;
  font-weight: 1000;
  letter-spacing: .04em;
  color: #f6c343;
  margin-bottom: 6px;
}

.ssgWarnBody {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
}

@media (max-width: 480px) {
  .ssgWarn {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 12px 14px;
  }
  .ssgWarnTitle { font-size: 20px; }
  .ssgWarnBody { font-size: 16px; }
}
