/* STEM Today rail + Make Up Assignment modal */
.stemTodayRail{
  margin: 10px 0 16px;
}
.stemTodayRail.stemTodayRail--compact{
  margin: 8px 0 12px;
}
.stemTodayRailHead{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin:0 0 8px;
}
.stemTodayRailTitle{
  margin:0;
  font-size:22px;
  font-weight:1000;
  letter-spacing:.2px;
  color:#4F86C6;
}
.stemTodayTrack{
  display:flex;
  gap:10px;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:x mandatory;
  padding:2px 2px 8px;
}
.stemTodayTrack::-webkit-scrollbar{height:8px}
.stemTodayTrack::-webkit-scrollbar-thumb{background:rgba(255,255,255,.16);border-radius:999px}
.stemTodayTile{
  flex:0 0 148px;
  scroll-snap-align:start;
  appearance:none;
  border:1px solid rgba(255,255,255,.16);
  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.22));
  color:#fff;
  border-radius:16px;
  padding:12px 10px;
  min-height:86px;
  text-align:left;
  cursor:pointer;
  font:inherit;
  display:flex;
  flex-direction:column;
  gap:6px;
  box-shadow:0 8px 20px rgba(0,0,0,.25);
}
.stemTodayTile:hover{
  border-color:rgba(79,134,198,.6);
  transform:translateY(-1px);
}
.stemTodayTile[disabled],
.stemTodayTile.is-disabled{
  opacity:.55;
  cursor:not-allowed;
  transform:none;
}
.stemTodayTileIcon{
  font-size:22px;
  line-height:1;
}
.stemTodayTileLabel{
  font-size:15px;
  font-weight:900;
  line-height:1.25;
}
.stemTodayTileSoon{
  font-size:12px;
  font-weight:800;
  color:#ffd166;
}
.home .stemTodayRail{
  margin: 4px 0 18px;
}

.tmsHomeLoginBtn{
  appearance:none;
  flex:0 0 auto;
  align-self:center;
  border:1px solid rgba(79,134,198,.55);
  background:linear-gradient(180deg, rgba(79,134,198,.28), rgba(79,134,198,.12));
  color:#fff;
  text-decoration:none;
  border-radius:999px;
  padding:10px 18px;
  font:inherit;
  font-size:16px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(0,0,0,.22);
}
.tmsHomeLoginBtn:hover{
  border-color:rgba(79,134,198,.85);
  transform:translateY(-1px);
}
.home .topbar{
  flex-wrap:wrap;
  gap:10px;
}
@media (max-width:640px){
  .tmsHomeLoginBtn{
    width:100%;
    text-align:center;
  }
}

.tmsMakeupOverlay{
  position:fixed;
  inset:0;
  z-index:80;
  background:rgba(6,10,20,.72);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
}
.tmsMakeupModal{
  width:min(720px, 100%);
  max-height:min(92vh, 900px);
  overflow:auto;
  background:#121b2f;
  color:#e9eefc;
  border:1px solid rgba(255,255,255,.14);
  border-radius:22px;
  box-shadow:0 24px 70px rgba(0,0,0,.5);
  padding:18px 18px 16px;
}
.tmsMakeupHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.tmsMakeupTitle{
  margin:0;
  font-size:26px;
  font-weight:1000;
}
.tmsMakeupLead{
  margin:8px 0 0;
  color:rgba(233,238,252,.82);
  font-weight:700;
  line-height:1.4;
}
.tmsMakeupClose{
  appearance:none;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);
  color:#fff;
  border-radius:999px;
  width:36px;
  height:36px;
  font-weight:1000;
  cursor:pointer;
}
.tmsMakeupPaths{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:16px;
}
@media (max-width:640px){
  .tmsMakeupPaths{grid-template-columns:1fr}
}
.tmsMakeupPath{
  appearance:none;
  border:1px solid rgba(255,255,255,.16);
  border-radius:18px;
  padding:14px 14px 16px;
  text-align:left;
  cursor:pointer;
  color:#fff;
  width:100%;
  aspect-ratio:16 / 9;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  font:inherit;
  position:relative;
  overflow:hidden;
  background-color:#071226;
  background-image:none;
}
.tmsMakeupPath::after{
  content:"";
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;
  pointer-events:none;
  z-index:0;
}
.tmsMakeupPath::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle 36px at 50% 100%, #071226 0 34px, transparent 36px),
    linear-gradient(180deg, rgba(0,0,0,.08) 52%, rgba(0,0,0,.58) 100%);
  pointer-events:none;
  z-index:1;
}
.tmsMakeupPath--career::after{
  background-image:url("/assets/makeup-careers.png");
}
.tmsMakeupPath--graph::after{
  background-image:url("/assets/makeup-graphs.png");
}
.tmsMakeupPath--graph::before{
  background:
    radial-gradient(circle 34px at 50% 91%, #071226 0 32px, transparent 34px),
    linear-gradient(180deg, rgba(0,0,0,.08) 52%, rgba(0,0,0,.58) 100%);
}
.tmsMakeupPath:hover,
.tmsMakeupPath:focus-visible{border-color:rgba(246,195,67,.55)}
.tmsMakeupPathTitle{
  position:relative;
  z-index:2;
  font-size:16px;
  font-weight:1000;
  line-height:1.15;
  white-space:nowrap;
  overflow:visible;
  text-overflow:clip;
  text-shadow:0 1px 10px rgba(0,0,0,.8);
}
.tmsMakeupBack{
  appearance:none;
  border:0;
  background:transparent;
  color:#4F86C6;
  font-weight:900;
  cursor:pointer;
  padding:0;
  margin:10px 0 0;
}
.tmsMakeupField{
  margin:12px 0 0;
}
.tmsMakeupLabel{
  display:block;
  font-size:14px;
  font-weight:1000;
  letter-spacing:.3px;
  margin:0 0 4px;
}
.tmsMakeupHelp{
  margin:0 0 6px;
  color:rgba(233,238,252,.72);
  font-size:14px;
  font-weight:700;
}
.tmsMakeupInput,
.tmsMakeupTextarea{
  width:100%;
  box-sizing:border-box;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.28);
  color:#e9eefc;
  padding:10px 12px;
  font:inherit;
  font-size:16px;
}
.tmsMakeupTextarea{min-height:88px;resize:vertical}
.tmsMakeupDays{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.tmsMakeupDay{
  appearance:none;
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.07);
  color:#fff;
  font-weight:1000;
  cursor:pointer;
}
.tmsMakeupDay.is-selected{
  background:rgba(79,134,198,.35);
  border-color:rgba(79,134,198,.8);
  outline:2px solid rgba(246,195,67,.45);
}
.tmsMakeupDrop{
  border:1px dashed rgba(255,255,255,.22);
  border-radius:14px;
  min-height:110px;
  padding:12px;
  background:rgba(0,0,0,.18);
}
.tmsHugeImageField{
  margin:16px 0;
  padding:16px;
  border:2px dashed rgba(246,195,67,.55);
  border-radius:18px;
  background:rgba(0,30,60,.35);
  text-align:center;
}
.tmsHugeImageTitle{ font-size:28px; font-weight:1000; }
.tmsHugeImageIcon{ font-size:48px; line-height:1; margin:8px 0; }
.tmsHugeImageCta{ font-size:22px; font-weight:1000; }
.tmsHugeImageHint{ opacity:.85; margin-top:6px; }
.tmsHugeImageSaved{ margin-top:10px; color:#3dce6a; font-size:20px; font-weight:1000; }
.tmsHugeImageField .tmsMakeupDrop{ min-height:180px; }
.tmsMakeupPreview{
  max-width:100%;
  max-height:160px;
  display:none;
  object-fit:contain;
  border-radius:10px;
}
.tmsMakeupActions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}
.tmsMakeupBtn{
  appearance:none;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.08);
  color:#fff;
  border-radius:999px;
  padding:8px 12px;
  font-weight:900;
  cursor:pointer;
}
.tmsMakeupBtnPrimary{
  background:#4F86C6;
  border-color:#4F86C6;
}
.tmsMakeupMsg{
  margin-top:10px;
  font-weight:800;
  min-height:1.2em;
}
.tmsMakeupMsg.bad{color:#ff5a6a}
.tmsMakeupMsg.ok{color:#4dd19b}
.tmsMakeupConfirm{
  margin-top:16px;
  padding:14px;
  border-radius:16px;
  background:rgba(77,209,155,.12);
  border:1px solid rgba(77,209,155,.35);
}
.tmsMakeupHistory{
  margin-top:18px;
  border-top:1px solid rgba(255,255,255,.1);
  padding-top:12px;
}
.tmsMakeupHistory h3{
  margin:0 0 8px;
  font-size:16px;
}
.tmsMakeupHistItem{
  padding:8px 0;
  border-bottom:1px solid rgba(255,255,255,.08);
  font-size:14px;
  font-weight:700;
}
.tmsMakeupAuth{
  margin-top:14px;
}
.stemTodayTileMeta{
  font-size:12px;
  font-weight:800;
  color:#9ec2ff;
}
.tmsQuizOverlay{
  position:fixed;
  inset:0;
  z-index:82;
  background:rgba(6,10,20,.72);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
}
.tmsQuizModal{
  width:min(680px, 100%);
  max-height:min(92vh, 900px);
  overflow:auto;
  background:#121b2f;
  color:#e9eefc;
  border:1px solid rgba(255,255,255,.14);
  border-radius:22px;
  box-shadow:0 24px 70px rgba(0,0,0,.5);
  padding:18px 18px 16px;
}
.tmsQuizHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.tmsQuizTitle{
  margin:0;
  font-size:26px;
  font-weight:1000;
}
.tmsQuizClose{
  appearance:none;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);
  color:#fff;
  border-radius:999px;
  width:36px;
  height:36px;
  font-weight:1000;
  cursor:pointer;
}
.tmsQuizLead{
  margin:12px 0 0;
  color:rgba(233,238,252,.88);
  font-weight:800;
  font-size:20px;
  line-height:1.4;
}
.tmsQuizMeta,
.tmsQuizProgress{
  margin:10px 0 0;
  font-weight:800;
  color:#9ec2ff;
}
.tmsQuizQuestion{
  margin:14px 0 0;
  font-size:22px;
  font-weight:1000;
  line-height:1.35;
}
.tmsQuizChoices{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:16px;
}
.tmsQuizChoice{
  appearance:none;
  width:100%;
  text-align:left;
  border:2px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.06);
  color:#fff;
  border-radius:16px;
  padding:14px 16px;
  min-height:56px;
  font:inherit;
  font-size:18px;
  font-weight:800;
  cursor:pointer;
}
.tmsQuizChoice.is-selected{
  background:rgba(79,134,198,.35);
  border-color:#4F86C6;
  outline:2px solid rgba(246,195,67,.45);
}
.tmsQuizChoice{
  display:flex;
  align-items:flex-start;
  gap:10px;
  transition:border-color .16s ease, background .16s ease, transform .16s ease, opacity .16s ease;
}
.tmsQuizChoiceText{
  flex:1 1 auto;
  min-width:0;
  overflow-wrap:anywhere;
  white-space:normal;
}
.tmsQuizChoiceMark{
  flex:0 0 1.2em;
  font-weight:1000;
  line-height:1.2;
}
.tmsQuizChoice:hover:not(.is-locked):not(:disabled){
  border-color:rgba(246,195,67,.55);
  background:rgba(255,255,255,.1);
}
.tmsQuizChoice:focus-visible{
  outline:2px solid #f6c343;
  outline-offset:2px;
}
.tmsQuizChoice.is-locked,
.tmsQuizChoice:disabled{
  cursor:default;
}
.tmsQuizChoice.is-selected-correct,
.tmsQuizChoice.is-revealed-correct{
  background:rgba(61,206,106,.22);
  border-color:#3dce6a;
  color:#d9ffe6;
  outline:2px solid rgba(61,206,106,.45);
}
.tmsQuizChoice.is-selected-wrong{
  background:rgba(255,90,106,.2);
  border-color:#ff5a6a;
  color:#ffd6db;
  outline:2px solid rgba(255,90,106,.4);
}
.tmsQuizChoice.is-dimmed{
  opacity:.55;
}
.tmsQuizChoice.is-selected-correct:hover,
.tmsQuizChoice.is-revealed-correct:hover,
.tmsQuizChoice.is-selected-wrong:hover,
.tmsQuizChoice.is-dimmed:hover{
  background:inherit;
  border-color:inherit;
}
.tmsQuizChoice.is-pop{
  animation:tmsQuizPop .28s ease;
}
.tmsQuizChoice.is-shake{
  animation:tmsQuizShake .32s ease;
}
.tmsQuizFeedback{
  margin-top:12px;
  min-height:1.4em;
  font-size:18px;
  font-weight:1000;
}
.tmsQuizFeedback.is-ok{color:#3dce6a}
.tmsQuizFeedback.is-bad{color:#ffd166}
.tmsQuizBtnContinue{
  box-shadow:0 0 0 2px rgba(246,195,67,.35);
}
@keyframes tmsQuizPop{
  0%{transform:scale(1)}
  40%{transform:scale(1.03)}
  100%{transform:scale(1)}
}
@keyframes tmsQuizShake{
  0%,100%{transform:translateX(0)}
  25%{transform:translateX(-4px)}
  75%{transform:translateX(4px)}
}
@media (prefers-reduced-motion: reduce){
  .tmsQuizChoice{
    transition:none;
  }
  .tmsQuizChoice.is-pop,
  .tmsQuizChoice.is-shake{
    animation:none;
  }
}
@media (max-width: 520px){
  .tmsQuizQuestion{font-size:20px}
  .tmsQuizChoice{font-size:16px;padding:12px 14px}
}
.tmsQuizActions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px;
}
.tmsQuizBtn{
  appearance:none;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.08);
  color:#fff;
  border-radius:999px;
  padding:10px 16px;
  min-height:44px;
  font-weight:900;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
}
.tmsQuizBtnPrimary{
  background:#4F86C6;
  border-color:#4F86C6;
}
.tmsQuizBtn:disabled{
  opacity:.55;
  cursor:not-allowed;
}
.tmsQuizMsg{
  margin-top:10px;
  font-weight:800;
  min-height:1.2em;
}
.tmsQuizMsg.bad{color:#ff5a6a}
.tmsQuizWarn{color:#ffd166;font-weight:900}
.tmsQuizComplete{
  margin:12px 0 0;
  font-size:24px;
  font-weight:1000;
}
.tmsQuizScore{
  margin:8px 0 0;
  font-size:22px;
  font-weight:1000;
}
.tmsQuizReviewItem{
  margin-top:12px;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.18);
}
.tmsQuizReviewItem.is-correct{border-color:rgba(77,209,155,.4)}
.tmsQuizReviewItem.is-wrong{border-color:rgba(255,90,106,.4)}
.tmsQuizReviewQ{font-weight:1000;margin-bottom:6px}
.tmsQuizReviewMark{margin-top:6px;font-weight:900}
body.tmsQuizOpen{overflow:hidden}
.tmsMakeupDebtBanner{
  margin:10px 16px 14px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(255,210,90,.45);
  background:rgba(80,50,0,.4);
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  justify-content:space-between;
}
.tmsMakeupDebtBannerTitle{ font-weight:1000; font-size:18px; }
.tmsMakeupDebtBannerBtn{
  padding:10px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,80,150,.75);
  color:#fff;
  font-weight:1000;
  cursor:pointer;
}
.tmsMakeupObligation{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  margin:8px 0;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
}
.tmsMakeupObligation.is-selected{ border-color:#ffd27a; }

.dwMakeupWorkPage{
  position:fixed;
  inset:0;
  z-index:70;
  overflow:auto;
  padding:16px;
  background:#0b1220;
  color:#fff;
}
.dwMakeupWorkPage .tmsMakeupLabel,
.dwMakeupWorkPage .tmsDWSectionLabel,
.dwMakeupWorkPage .tmsHugeImageTitle,
.dwMakeupWorkPage .tmsHugeImageCta{
  color:#4F86C6;
}
.dwMakeupWorkPage .tmsMakeupHelp,
.dwMakeupWorkPage .tmsMakeupLead,
.dwMakeupWorkPage .tmsMakeupInput,
.dwMakeupWorkPage .tmsMakeupTextarea,
.dwMakeupWorkPage .tmsHugeImageIcon,
.dwMakeupWorkPage .tmsHugeImageHint{
  color:#fff;
}
.dwMakeupWorkPage .tmsMakeupInput,
.dwMakeupWorkPage .tmsMakeupTextarea{
  color-scheme:dark;
  background:rgba(0,0,0,.28);
}
.tmsMakeupLabel{ color:#fff; }
