/* 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;
  --shellNavH: 64px;
  --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;
  --dwTrayW: 480px;
  --dwHeaderStack: calc(var(--marqueeH, 36px) + var(--shellNavH) + var(--lifeH, 0px));
}

html.hasStudentShell,
html.hasStudentShell body {
  overflow-x: hidden;
}

html.hasStudentShell body {
  padding-top: calc(var(--marqueeH, 36px) + var(--shellNavH) + var(--lifeH, 0px));
}

@media (min-width: 861px) {
  html.hasStudentShell body {
    padding-right: 88px;
  }
  html.hasStudentShell body.dwHudOpen:not(.dwHudMakeup) {
    padding-right: var(--dwTrayW);
    overflow-x: hidden;
    overflow-y: auto;
  }
  html.hasStudentShell body.dwHudOpen:not(.dwHudMakeup) .dwHudBackdrop {
    display: none !important;
  }
  html.hasStudentShell body.dwHudOpen:not(.dwHudMakeup) .dwHudDrawer {
    top: var(--dwHeaderStack);
    width: min(var(--dwTrayW), 96vw);
    bottom: 0;
  }
  html.hasStudentShell body.dwHudOpen:not(.dwHudMakeup).hasPathwayLaunchpad .pageWrap {
    padding-right: 16px;
  }
}

html.hasStudentShell body.dwHudOpen.dwHudMakeup {
  overflow: hidden;
}

html.hasStudentShell #marqueeBar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4320;
}

.studentShellNav {
  position: fixed;
  top: var(--marqueeH, 36px);
  left: 0;
  right: 0;
  z-index: 4300;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 64px;
  padding: 8px 12px 8px 14px;
  background: var(--shellNavy);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

.studentLifeStrip {
  position: fixed;
  top: calc(var(--marqueeH, 36px) + var(--shellNavH));
  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;
}
@media (max-width: 720px) {
  .studentLifeStrip { padding-right: 16px; }
}

.studentShellBrand {
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: .02em;
  white-space: nowrap;
  margin-right: 6px;
}

.studentShellActions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.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;
  }
}

.studentShellLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  flex: 1;
}

.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);
}

.dwPathwayHint {
  position: fixed;
  top: var(--shellNavH);
  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;
}

/* Makeup 80/20 — only when makeup mode is active. */
body.dwHudMakeup .dwHudDrawer {
  width: min(96vw, 1280px);
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(320px, 1fr);
  grid-template-rows: auto 1fr;
}

body.dwHudMakeup .dwHudDrawerHead {
  grid-column: 1 / -1;
}

body.dwHudMakeup .dwHudSource {
  display: block;
  overflow: auto;
  padding: 18px;
  background: #101828;
  color: #fff;
}

.dwHudSource {
  display: none;
}

.dwHudSource h2 {
  font-size: 28px;
  margin: 0 0 10px;
}

.dwHudSource p {
  font-size: 18px;
  line-height: 1.4;
}

.dwHudSourceBtn,
.dwHudSourceLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 16px;
  margin: 8px 8px 0 0;
  border-radius: 12px;
  font-weight: 1000;
  font-size: 20px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.dwHudSourceBtn {
  background: var(--shellGold);
  color: #111;
}

.dwHudSourceLink {
  background: #fff;
  color: var(--shellNavy);
}

body.dwHudMakeup .dwHudBody {
  background: var(--shellNavy);
}

/* 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) {
  html.hasStudentShell body {
    padding-top: var(--dwHeaderStack);
    padding-right: 0;
    padding-bottom: 76px;
  }
  html.hasStudentShell body.dwHudOpen {
    overflow: hidden;
  }

  .studentShellLinks a,
  .studentShellLogout {
    font-size: var(--shellNavBtnFont);
    padding: var(--shellNavBtnPadY) 10px;
    min-height: var(--shellNavBtnMinH);
  }

  .studentShellActions {
    width: 100%;
    justify-content: space-between;
    order: 10;
  }

  .studentShellIdentity {
    align-items: flex-start;
  }

  .studentShellIdentityName {
    font-size: 16px;
    white-space: normal;
  }

  .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,
  body.dwHudMakeup .dwHudDrawer {
    top: var(--dwHeaderStack);
    width: 100%;
    grid-template-columns: 1fr;
  }

  body.dwHudMakeup .dwHudSource {
    max-height: 28vh;
  }

  .dwHudDrawer {
    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; }
}
