/* ==========================================================================
   Teacher dashboard CONTENT styles (inner components only).

   The dashboard SHELL (html.sticky-footer / body.app-app / off-canvas rail /
   sidebar / mobile header) is rendered by the upstream new_app.inc skeleton
   and styled by the mirrored live stylesheets (/css/tynker.css +
   /js/dist/app_modern.css) loaded by dashboards/teacher_base.html — the old
   reconstructed shell rules were dropped so they can no longer fight the real
   ones. What remains here are the page-content components the webpack bundle
   does not cover verbatim (section banner, classroom cards, tabs, widgets,
   onboarding wizard, awards) — all scoped under .dashboard-teacher.
   ========================================================================== */
:root {
  --ty-purple: #9078c6;
  --ty-purple-dark: #6c3fb5;
  --ty-purple-deep: #4c3590;
  --ty-indigo: #5c6bc0;
  --ty-indigo-dark: #3949ab;
  --ty-teal: #00bcb4;
  --ty-ink: #2b2b3a;
  --ty-muted: #766889;
  --ty-line: #e2e0ec;
  --ty-bg: #f4f5fb;
  --ty-card-shadow: 0 2px 10px rgba(60, 50, 110, 0.12);
  /* WIDE legacy rail (~200px): horizontal icon+label rows under an avatar +
     display-name header (issue #69; ground truth = the logged-in
     jkeesh@hey.com live capture — the earlier narrow icon rail was wrong). */
  --ty-sidebar-w: 200px;
  /* Live teacher sidebar is a dark near-black column (NOT the purple app
     chrome) — matched from the logged-in teacher-myclasses capture. */
  --ty-sidebar-bg-top: #23232e;
  --ty-sidebar-bg-bottom: #1a1a22;
}
/* ------------------------------------------------------- section banner --- */
/* Purple gradient welcome header used by the teacher home. Gradient sampled
   from the live teacher-home header gradient (#6760ef top -> #9775f0 bottom). */
/* Issue #594, delta 2: live's welcome banner is a FULL-BLEED purple band flush
   under the promo bars (edge-to-edge from the sidebar to the right viewport
   edge) — NOT the inset, rounded, white-margined card we had. The band is
   naturally edge-to-edge: the upstream-skeleton .container it sits in is
   already full-width, so no negative-margin escape is needed (the earlier
   centered-1180px assumption pushed the band ~114px past BOTH edges — the
   header icons landed off-screen right and the Active tab's angled shoulder
   hid under the sidebar). No radius — live's band is a flat rectangle. */
.section-banner.section-banner-teacher {
  position: relative;
  margin: 0;
  background: linear-gradient(180deg, #6760ef 0%, #9775f0 100%);
  color: #fff;
  padding: 0;
  border-radius: 0;
}

/* The home band leads with its Active/Archived tab row: on live the row is
   pinned flush to the band's top edge (no purple strip above the tab). Beat
   upstream's `.dashboard-teacher .section-banner.section-banner-teacher`
   padding-top (.625rem) here — everywhere else the banner's first child is a
   heading that wants that air. */
.dashboard-teacher .section-banner.section-banner-teacher.has-classes {
  padding-top: 0;
}

/* Tab rows inside teacher banners: upstream gives the <ul> itself
   `margin: 0 -25px; padding: 0 25px` so it overhangs its parent 25px each
   side and the tabs land exactly on the parent's edges; each page then
   insets that parent — ~32px on the home band (live x≈232 at 1568w), the
   centered ~86% content column on inner banners (live x≈292; the classroom
   banner's `> nav` already does this at line ~222). */
@media (min-width: 768px) {
  .section-banner-teacher .dashboard-nav {
    margin: 0 -25px;
    padding: 0 25px;
  }
  .section-banner-teacher > nav { margin-left: 32px; margin-right: 32px; }
  .section-banner-teacher.curriculum-banner > nav,
  .section-banner-teacher.myprojects-banner > nav,
  .section-banner-teacher.section-banner-classroom > nav {
    width: 86%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Phone: the home row keeps the same ~32px inset (live holds the tab
   shoulder ~20px inside the edge at every width — the bare row clips the
   shoulder at the viewport edge). The curriculum/projects grid navs keep
   their own phone geometry from their own stylesheets. */
@media (max-width: 767px) {
  .section-banner-teacher > nav:has(> .dashboard-nav.--inverted) {
    margin-left: 32px;
    margin-right: 32px;
  }
}

.section-banner-teacher h2 {
  color: #fff;
  font-weight: 700;
  margin: 6px 0 22px;
  text-align: center;
  font-size: 2rem;
}

/* Welcome-header avatar: live wraps the chosen avatar art in a 70px circle
   with a white double border (teacher-home-2022 .avatar-frame). */
.section-banner-teacher .avatar-frame {
  display: inline-block;
  vertical-align: middle;
  width: 70px;
  height: 70px;
  margin-left: 22px;
  border: 5px double #fefefe;
  border-radius: 50%;
}

.section-banner-teacher .avatar-frame .avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.section-banner-teacher .avatar-frame .sidebar-avatar-circle {
  width: 100%;
  height: 100%;
  font-size: 24px;
  border: none;
}

/* Streak + notifications icons, top-right of the welcome banner. Live
   (jkeesh@hey.com capture): SMALL dark circles flush against the top edge of
   the banner (square top corners), lightning w/ a red counter + bell. */
.teacher-home-icons {
  position: absolute;
  top: 0;
  right: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  z-index: 5;
}

/* Streak/notifications badge: black rounded chip w/ a white glyph + a red
   counter (live teacher-notifications). Square top corners like live. */
.teacher-home-icons .teacher-notifications {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 7px;
  background: #000;
  border-radius: 50%;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  transition: transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
}

@media (hover: hover) and (pointer: fine) {
  .teacher-home-icons .teacher-notifications:hover {
    transform: scale(1.05);
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.4);
  }
}

.teacher-home-icons .teacher-notifications__icon {
  display: block;
  width: 100%;
  height: 100%;
}

.teacher-home-icons .teacher-notifications__icon svg { width: 100%; height: 100%; }
.teacher-home-icons .teacher-notifications__icon svg path { fill: #fff; }

.teacher-home-icons .teacher-notifications__counter {
  position: absolute;
  top: 0;
  right: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: #d01031;
  border-radius: 50%;
}

/* Bell (live toolbar-feeds-button) — same small black chip, bell glyph. */
.teacher-home-icons .toolbar-feeds-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 7px;
  background: #000;
  border-radius: 50%;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  transition: transform 0.1s ease-in-out;
}

@media (hover: hover) and (pointer: fine) {
  .teacher-home-icons .toolbar-feeds-button:hover { transform: scale(1.05); }
}
.teacher-home-icons .toolbar-feeds-button__icon { display: block; width: 100%; height: 100%; }
.teacher-home-icons .toolbar-feeds-button__icon svg { width: 100%; height: 100%; }
.teacher-home-icons .toolbar-feeds-button__icon svg path { fill: #fff; }

/* Unread counter (live toolbar-feeds-button__counter): a small red dot
   with white 10px bold text at the bell's top right, "9+" past nine. */
.teacher-home-icons .toolbar-feeds-button { position: relative; }
.teacher-home-icons .toolbar-feeds-button__counter {
  position: absolute;
  top: 2px;
  right: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 12px;
  height: 12px;
  padding: 0 1px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: #d01031;
}

/* Class-detail banner (breadcrumb variant). */

/* Class-detail banner (breadcrumb variant). Mirrors live: a decorative faint
   education-icon pattern behind a 3-column header (back link · centered class
   switcher + subtitle · big class code). */
.section-banner.section-banner-classroom {
  padding-bottom: 0;
  position: relative;
  /* Live (teacher/_dashboard.scss): the classroom banner is a FLAT violet
     (#6e6cdf), NOT the welcome-banner gradient — the layered classroom-
     banner.png is a fully-transparent decorative overlay (it renders nothing
     but is kept for parity with live's background rule). */
  background: #6e6cdf url("/image/dashboard/teacher/banners/classroom-banner.png") center center / cover no-repeat;
  /* No overflow:hidden here — it would clip the gear dropdown menu. The
     decorative pattern is clipped by its own layer instead. */
}

/* Banner decorative pattern REMOVED (issue #583, fix #6): RECON2 confirmed live
   has no such tiled education-icon pattern on the classroom banner. The tiled
   SVG (with its checkmark-circle tiles — one of which landed as a stray
   "checkbox-like glyph" beside YOUR CLASS CODE) is gone; the `.section-banner-
   background` element is no longer emitted by `_class_shell_banner.html`. */

.section-banner-classroom .banner-grid {
  position: relative;
  z-index: 1;
  display: grid;
  /* Live: a centered row capped at 1170px; the info row starts 382px and the
     class code 982px from its left edge at every width (measured on live). */
  grid-template-columns: minmax(0, 382fr) minmax(0, 600fr) minmax(max-content, 188fr);
  width: 86%;
  max-width: 1170px;
  margin: 0 auto;
  align-items: start;
  padding-bottom: 9px;
}

/* Live puts the tab bar in the same centered column as the banner grid. */
.section-banner-classroom > nav { width: 86%; max-width: 1170px; margin: 0 auto; }

/* The class tab row (with STREAM, TYNKER-1559) outgrows that column below
   ~1100px and the settings gear scrolls out of view; tighten the tab gutters
   so the whole row, gear included, stays on screen. */
@media (max-width: 1100px) {
  .section-banner-classroom .dashboard-nav > li { padding: 0 10px; }
}

/* Live left-aligns the switcher, info row, and class code in their columns. */
.section-banner-classroom .banner-col--center {
  text-align: left;
  min-width: 0;
  padding-right: 16px;
}

/* Live's classroom tab labels measure 15px, not the 16px other teacher tabs use. */
.section-banner-classroom #class-tabs > li > a { font-size: 15px; }

.section-banner-classroom .link-back-dashboard {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
}

@media (hover: hover) and (pointer: fine) {
  .section-banner-classroom .link-back-dashboard:hover { text-decoration: underline; }
}

/* Class-name switcher styled as live's caret dropdown. The generic
   `.classroom-selector` in the upstream bundle frames it as a light select
   box (#f8f8f8 fill + #ccc border + padding) — live's classroom banner
   removes that frame entirely (transparent select, white text), so reset
   the wrapper here. */
.section-banner-classroom .classroom-selector {
  position: relative;
  display: inline-block;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  /* Live indents the switcher 15px past the info row below it. */
  margin-left: 15px;
}

/* Multi-class switcher (issue #583 fix #6 + live-parity pass): live renders
   the class switcher as an IN-BANNER dropdown — big white uppercase 20px bold
   text with a 1px dotted white underline and a small white triangle caret
   (teacher/_dashboard.scss select.classroom-selector), NOT a light select
   box. The visible label shows the CURRENT class name; the native <select>
   is overlaid transparently for the actual switch. */
.section-banner-classroom .classroom-selector__label,
.section-banner-classroom .classroom-selector__single {
  display: inline-block;
  color: #fff;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.4;
  text-transform: uppercase;
  padding: 0 20px 0 0;
}

.section-banner-classroom .classroom-selector__label {
  border-bottom: 1px dotted #fff;
}

/* Single class shows no caret, so keep its padding symmetric (stays centered). */
.section-banner-classroom .classroom-selector__single { padding: 0; }

/* Live's switcher is a fixed-width select: the dotted underline runs past
   the class name and the caret sits at its right end. */
.section-banner-classroom .classroom-selector--multi {
  cursor: pointer;
  display: block;
  max-width: 380px;
}

.section-banner-classroom .classroom-selector--multi .classroom-selector__label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-banner-classroom .classroom-selector--multi .classroom-selector__select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  opacity: 0;
  cursor: pointer;
}

.section-banner-classroom .classroom-selector__select option { color: #2b2b3a; }

/* Down-caret adjacent to the class name — only on the multi-class switcher
   (a single class is not a dropdown, so it shows no caret, matching live). */
.section-banner-classroom .classroom-selector--multi::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 0;
  height: 0;
  transform: translateY(-40%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #fff;
  pointer-events: none;
}

.section-banner-classroom .class-info {
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  margin-top: 15px;
}

.section-banner-classroom .class-info > span {
  display: inline-block;
  white-space: nowrap;
  margin-right: 24px;
}

.section-banner-classroom .class-info a {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
  text-decoration: underline;
}

.section-banner-classroom .class-code {
  text-align: left;
  color: #fff;
}

.section-banner-classroom .class-code .code-label {
  display: block;
  font-size: 13px; /* live 13px, no tracking (TYNKER-1694) */
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.85;
}

.section-banner-classroom .class-code .code {
  display: block;
  white-space: nowrap;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 10px 0 0;
}

.section-banner-classroom .class-code .invite-link {
  display: block;
  color: #fff;
  margin-top: 11px;
  font-size: 13px;
  text-align: left;
  text-decoration: underline;
}

.section-banner-classroom .class-code__note {
  display: block;
  margin: 4px 0 6px;
  font-size: 0.875rem;
}

.section-banner-classroom .class-code--archived .invite-link {
  width: 100%;
  text-align: inherit;
  white-space: nowrap;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.section-banner-classroom .class-badge {
  display: inline-block;
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  padding: 1px 9px;
  margin-left: 6px;
}

/* ----------------------------------------------------------- nav tabs ----- */
/* Angled, left-aligned dashboard tabs — mirrored from the live bundle: the tab
   body + its two angled ends are SVG background images (the "notched" tab
   shape). The --inverted variant (Active / Archived on the home page) points
   the notch UP, sitting on the purple welcome banner with #0058d7 active text. */
.dashboard-nav {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0 0 0;
  padding: 0;
  white-space: nowrap;
  position: relative;
  isolation: isolate;
  /* #610: the school-admin console reuses this bar for 9 tabs, which is wider
     than a 1366px viewport — without a scroll affordance the last tabs
     (Transactions / Privacy) clipped off past the right edge. Let the single
     row scroll horizontally instead of clipping. Harmless for the shorter
     teacher tab sets (no overflow -> no scrollbar). overflow-y stays visible so
     the angled pseudo-element tab ends are never vertically clipped. */
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}

.dashboard-nav > li {
  display: inline-block;
  position: relative;
  padding: 0 22px;
}

.dashboard-nav > li { position: relative; }

.dashboard-nav > li > a {
  display: block;
  padding: 8px 2px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  position: relative;
  z-index: 1;
  background-size: 100%;
}

/* Teacher pages: live tynker.css sets no size on these tabs, so they inherit
   16px with a 1.6 line height and no tracking (TYNKER-1694). The admin
   consoles keep the smaller size so their 9-tab row stays on one line. */
.body-dashboard-teacher .dashboard-nav > li > a {
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: normal;
}

/* The two angled ends (pseudo-elements) flanking each tab body. Ground truth:
   legacy compiled CSS (site.css) sets `background-position:100% 100%` on
   ::before and `0 100%` on ::after — without it (bug found via Jeremy's
   screenshot report) both default to `0% 0%`, so the auto-width-scaled SVG
   crop sits at the wrong edge of its 50px box and detaches from the tab
   body instead of sitting flush against it. */
.dashboard-nav > li > a::before,
.dashboard-nav > li > a::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50px;
  background-repeat: no-repeat;
  background-size: auto 100%;
  pointer-events: none;
}
.dashboard-nav > li > a::before { background-position: 100% 100%; }
.dashboard-nav > li > a::after { background-position: 0 100%; }

@media (hover: hover) and (pointer: fine) {
  .dashboard-nav > li > a:hover { color: #fff; }
}

/* Active tab: white, lifted, with live's slight angled shoulders. */
.dashboard-nav > li.is-active > a {
  background-image: url("/image/dashboard/navigation/tab-body.svg");
  color: #0058d7 !important;
  z-index: 3;
}

.dashboard-nav > li.is-active > a::before {
  background-image: url("/image/dashboard/navigation/tab-start.svg");
  right: calc(100% - 1px);
}
.dashboard-nav > li.is-active > a::after {
  background-image: url("/image/dashboard/navigation/tab-end.svg");
  left: calc(100% - 1px);
}

/* Inverted variant (notch up) — used on the home Active/Archived bar. */
.dashboard-nav.--inverted > li > a::before { background-position: top right; }
.dashboard-nav.--inverted > li > a::after { background-position: top left; }
.dashboard-nav.--inverted > li.is-active > a::before {
  background-image: url("/image/dashboard/navigation/tab-inverted-start.svg");
}
.dashboard-nav.--inverted > li.is-active > a::after {
  background-image: url("/image/dashboard/navigation/tab-inverted-end.svg");
}


.dashboard-nav > li.is-active > a > * { display: inline-block; transform: skewX(8deg); }

/* Gear item = a dropdown menu that folds the gradebook + class quick-links. */
.dashboard-nav__gear { margin-left: auto; }

.dashboard-nav__gear > a { color: rgba(255, 255, 255, 0.9); font-size: 1rem; }

.dashboard-nav__gear .gear-menu {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 30;
  display: none;
  min-width: 200px;
  margin: 4px 0 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--ty-card-shadow);
}

.dashboard-nav__gear.is-open .gear-menu { display: block; }

.dashboard-nav__gear .gear-menu a {
  display: block;
  padding: 9px 16px;
  color: var(--ty-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0;
}

@media (hover: hover) and (pointer: fine) {
  .dashboard-nav__gear .gear-menu a:hover { background: var(--ty-bg); }
}

/* Inverted variant (Active / Archived on the home page). */
.dashboard-nav.--inverted { justify-content: center; }

/* -------------------------------- free-activity bar + What's Next + roster - */
/* FREE ACTIVITY LIMIT freemium bar (AUTH-183) — live's lavender info strip. */
.teacher-classroom-activities-banner {
  display: flex;
  background: #e9eaf6;
  border-radius: 10px;
  padding: 16px 22px;
  margin: 18px 0;
}

.teacher-classroom-activities-banner__title {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ty-ink);
  font-size: 0.9rem;
}

.teacher-classroom-activities-banner__description {
  margin: 4px 0 0;
  color: var(--ty-ink);
  font-size: 0.9rem;
}

.teacher-classroom-activities-banner__description a { color: var(--ty-indigo-dark); font-weight: 700; }

.teacher-classroom-activities-banner__link.float-right {
  float: right;
  text-transform: uppercase;
  text-decoration: underline;
}

.teacher-classroom-activities-banner .flex-grow { flex: 1 1 auto; }

/* Live's "Free Activity Limit Reached" variant (teacher-classroom.directive.scss --red). */
.teacher-classroom-activities-banner.--red { background: #ffebee; border: 1px solid #90001b; color: #6f2825; }
.teacher-classroom-activities-banner.--red .teacher-classroom-activities-banner__title,
.teacher-classroom-activities-banner.--red .teacher-classroom-activities-banner__description,
.teacher-classroom-activities-banner.--red .teacher-classroom-activities-banner__description a { color: #6f2825; }
.teacher-classroom-activities-banner__alert { flex: 0 0 auto; margin: 2px 10px 0 0; color: #b5002f; }

/* Legacy .alert-permissions (teacher/common/_global.scss): teal "Keep this
   class synchronized with Google Classrooms" strip under the class banner. */
.alert-permissions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-sizing: border-box;
  width: min(1170px, calc(100% - 30px));
  margin: 15px auto;
  padding: 15px 25px;
  border-radius: 4px;
  background: #2fbcb7;
}
.alert-permissions p.alert-permissions__message { margin: 0; padding: 0; color: #fff; font-size: 16px; line-height: 36px; }
.alert-permissions form { margin: 0; }
.alert-permissions .button { margin: 0; font-weight: 700; white-space: nowrap; text-transform: uppercase; }

/* "Student Free Activity Limit" modal — legacy
   modal-classroom-student-free-activities.factory.scss. Shares
   .invite-modal-overlay's backdrop (teacher-invite-modal.css). */
.free-activities-modal {
  position: relative;
  width: 100%;
  max-width: 573px;
  padding: 41px 48px;
  background: #fff;
  color: #333;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.free-activities-modal .close-reveal-modal {
  position: absolute;
  top: 6px;
  right: 10px;
  padding: 0 6px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: #4a4a4a;
  background: none;
  border: 0;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) { .free-activities-modal .close-reveal-modal:hover { color: #000; } }
.free-activities-modal h3 { margin: 0 0 6px; font-size: 24px; font-weight: 700; color: #0a0a0a; }
.free-activities-modal p { margin: 0 0 16px; font-size: 16px; line-height: 1.6; }
.free-activities-modal p a,
.free-activities-modal p a:visited { color: #000; font-weight: 700; text-decoration: underline; }
.free-activities-modal__list { padding: 20px; background: #eaf8fc; border-radius: 10px; font-size: 16px; line-height: 1.7; }
.free-activities-modal__list h4 { margin: 0 0 12px; font-size: 18px; font-weight: 700; }
.free-activities-modal__row { display: flex; justify-content: space-between; gap: 12px; }
.free-activities-modal__row.--limit { color: #b5002f; }
.free-activities-modal__row .ui-icon { margin-right: 5px; vertical-align: -2px; }
.free-activities-modal__list .free-activities-modal__empty { margin: 0; }

/* What's Next empty-state checklist card (orange border). */
.teacher-classroom-widget-row { margin: 18px 0; }

.teacher-classroom-widget.--checklist {
  position: relative;
  margin: 0;
  max-width: 640px;
  background: #fff;
  border: 3px solid #f5871f;
  border-radius: 14px;
  padding: 26px 30px 34px;
}

.teacher-classroom-widget__title {
  margin: 0 0 20px;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ty-ink);
}

.teacher-classroom-widget.--checklist .icon-box {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 46px;
  height: 46px;
  background: url("/image/classroom/pencil.png") center / cover no-repeat;
}

.teacher-classroom-widget.--checklist .task {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 4px;
  max-width: 460px;
  margin: 0 auto;
}

.teacher-classroom-widget.--checklist .task .number { color: #b85e08; font-size: 1.1rem; width: 24px; }

.teacher-classroom-widget.--checklist .task .item {
  flex: 1 1 auto;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ty-ink);
  font-size: 0.9rem;
}

.teacher-classroom-widget.--checklist .task .checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid #c9c6d8;
  border-radius: 4px;
  flex: 0 0 auto;
}

.teacher-classroom-widget.--checklist .task .checkbox.checked {
  border: 0;
  background: url("/image/classroom/checkmark.png") center / cover no-repeat;
}

/* Overview row 1 (issue #657): "What's Next" checklist beside the Course
   Progress ring (legacy large-8 + large-4). The checklist keeps its own
   max-width; the ring card sits to its right and wraps under on narrow. */
.teacher-classroom-widget-row-1 {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.teacher-classroom-widget-row-1 .teacher-classroom-widget.--checklist {
  flex: 1 1 420px;
}

/* Course Progress card — one ring at a time, footer link below. */
.teacher-classroom-widget.--course-progress {
  flex: 0 1 300px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e4e2ee;
  border-radius: 14px;
  padding: 24px 24px 20px;
  text-align: center;
}
.teacher-classroom-widget.--course-progress .teacher-classroom-widget__title {
  margin-bottom: 14px;
}
.course-progress__course {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ty-ink);
}
.teacher-classroom-widget.--course-progress .progress-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
/* Larger ring variant for the overview Course Progress widget. */
.ty-percent-circle.--lg {
  width: 150px;
  height: 150px;
}
.ty-percent-circle.--lg::before {
  width: 116px;
  height: 116px;
}
.ty-percent-circle.--lg .ty-percent-circle__value {
  font-size: 1.4rem;
}
/* Prev/next course arrows (shown only with >1 assigned course). */
.cp-nav {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: #f2f1f7;
  cursor: pointer;
  position: relative;
}
@media (hover: hover) and (pointer: fine) {
  .cp-nav:hover { background: #e4e2ee; }
}
.cp-nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--ty-indigo-dark);
  border-right: 2px solid var(--ty-indigo-dark);
}
.cp-prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.cp-next::before { transform: translate(-70%, -50%) rotate(45deg); }
.teacher-classroom-widget.--course-progress .teacher-classroom-widget__footer {
  margin-top: 16px;
}

/* Roster (#18) toolbar + compact table.
   Live (tynker-sass _teacher-table.scss / _table.scss): the roster column is
   ~86% of the content area centered (not boxed); the scroll container itself
   is the visible frame — #eaf8fd fill, 1px #c9dbde border, 12px radius, and
   the INNER table scrolls horizontally. Zebra rows #f4fdff / #eaf8fd, cells
   centered 14px/600, no boxed white card around any of it. */
.class-panel .roster-wrap {
  width: 86%;
  margin: 22px auto;
}

.roster-wrap .ty-table-scroll {
  background: #eaf8fd;
  border: 1px solid #c9dbde;
  border-radius: 12px;
  overflow-x: auto;
}

.ty-table.ty-roster {
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.ty-table.ty-roster th,
.ty-table.ty-roster td {
  min-width: 100px;
  padding: 12px 14px;
  border-left: none;
  border-right: none;
}

.ty-table.ty-roster thead th {
  height: 60px;
  vertical-align: middle;
  border-top: none;
  border-bottom: 1px solid #c9dbde;
  background: transparent;
  color: #000;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.ty-table.ty-roster td {
  border-bottom: none;
  color: #000;
  text-align: center;
  vertical-align: middle;
}

.ty-table.ty-roster tbody tr:nth-child(odd) { background: #f4fdff; }
.ty-table.ty-roster tbody tr:nth-child(even) { background: #eaf8fd; }

.ty-table.ty-roster th:first-child,
.ty-table.ty-roster td:first-child { text-align: left; padding-left: 26px; }

/* Live roster: the student-name link uses the theme's `.ty-link` blue
   (#0058d7) — plain text link, no pill/button styling. */
.ty-table.ty-roster a.js-name-view {
  color: #0058d7;
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .ty-table.ty-roster a.js-name-view:hover { text-decoration: underline; }
}

/* Live roster: "Reset Password" and the SmartPass "Show" affordance are
   PLAIN TEXT buttons inside their cells — no pill styling. */
.ty-roster .ty-plainbtn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: #000;
  cursor: pointer;
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .ty-roster .ty-plainbtn:hover { color: #00c8ee; }
}

/* Live guardians cell: a plain dark "+" glyph, not a blue link. */
.ty-table.ty-roster td .icon-plus-2 { color: #000; }
@media (hover: hover) and (pointer: fine) {
  .ty-table.ty-roster td .icon-plus-2:hover { color: #00c8ee; }
}

.roster-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.roster-bulk { display: flex; align-items: center; gap: 8px; margin: 0; }

.roster-bulk select { min-width: 250px; }

.roster-adds { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* "Import students from CSV" text-link that sits inline with the Add pills
   (issue #569): live surfaces the CSV import entry point up here by the roster
   controls, not just buried in the add-a-student panel. */
.roster-adds .roster-import-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ty-indigo);
  text-decoration: none;
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .roster-adds .roster-import-link:hover { text-decoration: underline; }
}

.ty-btn.secondary {
  background: #fff;
  color: var(--ty-indigo-dark);
  border: 1px solid var(--ty-indigo);
}

.ty-roster__num { white-space: nowrap; }

.ty-roster__name { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }

.ty-roster .icon-pencil,
.ty-roster .hide-passwords-button {
  background: none;
  border: none;
  color: #444;
  cursor: pointer;
  padding: 0 2px;
}

/* Roster headers (issue #583): live's roster column labels are TITLE CASE
   (Student / Username / Password / Tynker SmartPass / Guardians), NOT the
   global `.ty-table th` ALL-CAPS treatment. RECON2.md Q2 confirmed this
   against live's STUDENTS tab, so we override the uppercase back off for the
   roster table specifically (reverting the mistaken #569 all-caps claim). */
/* Higher specificity than the later global `.ty-table th` uppercase rule (the
   roster table carries BOTH classes), so Title Case actually wins. */
.ty-table.ty-roster th {
  text-transform: none;
  letter-spacing: 0;
}

/* Screen-reader-only helper (the legacy Foundation `.show-for-sr` utility): the
   roster's "Number" column header is present for a11y but visually hidden, so
   the number column shows no visible label (issue #540). */
.show-for-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Add Students / Add Guardians (issue #583): live renders these as RECTANGULAR
   (slightly rounded, ~4px) buttons in a BRIGHTER solid blue (#0768e4, sampled
   directly from teacher-class-students-live.png) — NOT the navy pill/gradient
   the #569 rule produced. The bright flat blue + small radius matches live's
   two "+ ADD" buttons in the roster toolbar exactly. */
.roster-adds .button.secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0768e4;
  background-image: none;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 9px 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
@media (hover: hover) and (pointer: fine) {
  .roster-adds .button.secondary:hover {
    background: #0a5cc8;
    color: #fff;
  }
}
/* Legacy's "Sync with Google Classroom" is the purple button, not the blue. */
.roster-adds .button.secondary.roster-sync-google { background: #6100b1; }
@media (hover: hover) and (pointer: fine) {
  .roster-adds .button.secondary.roster-sync-google:hover { background: #4f0091; }
}

/* Row edit control (live-parity): the pencil is an ICON-ONLY button — live's
   roster row is `button.icon.icon-pencil` containing only sr-only "Edit"
   text (no visible label). */
.ty-roster__edit {
  background: none;
  border: none;
  color: #444;
  cursor: pointer;
  padding: 0 4px;
  font: inherit;
}
@media (hover: hover) and (pointer: fine) {
  .ty-roster__edit:hover { color: #00c8ee; text-decoration: none; }
}

/* Footer action legend BELOW the roster table (issue #540), ported from the
   legacy `ty-teacher-legend`: left-aligned "Total N" + a right-aligned row of
   text-link actions, then the "Need help? See the Video Library" line. */
.ty-teacher-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
  color: #444;
  font-size: 14px;
  font-weight: 600;
}
.ty-teacher-legend .ty-linkbtn { color: inherit; font-weight: 600; }
.ty-teacher-legend .flex-grow { flex: 1 1 auto; }
.ty-teacher-legend__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.ty-teacher-legend__actions .ty-inline-form { display: inline; margin: 0; }
.ty-teacher-legend__actions .ty-linkbtn { display: inline-flex; align-items: center; gap: 5px; }
.limit-tutorial { margin-top: 26px; color: var(--ty-muted); }
.limit-tutorial p { margin: 0; }

/* --------------------------------------------------- home: classrooms ----- */
/* Live (teacher-home-2022): the secondary menu + card grid sit inside a
   full-bleed light-blue band (.zf-row.alt = #f0faff) whose inner content is
   padded 10% each side. The band is already edge-to-edge — the parent
   .container is full-width, so no negative-margin escape is needed; the
   children take the live ~80% column width so "Sort by:" / ADD CLASSROOM
   align with the card grid's right edge. */
.home-grid-band {
  margin: 0;
  padding: 0;
}

/* .alt only applies when the teacher has classrooms — the zero state keeps
   the page background. */
.home-grid-band.has-classes { background: #f0faff; }

/* Toolbar row on the card grid's 80% column: roster integrations (Clever /
   ClassLink / Google Classroom) left, Add Classroom + Sort by right. */
.home-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  width: 80%;
  margin: 0 auto;
  padding: 14px 0 4px;
}

.menu-secondary {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-left: auto;
}

.menu-secondary label {
  display: inline-block;
  margin-left: 1rem;
  margin-right: 0.5rem;
  font-weight: 400;
  color: #000;
}

/* ADD CLASSROOM (live): rectangular indigo button, uppercase — NOT the pill. */
.menu-secondary .button.purple {
  background: linear-gradient(90deg, #5a2bb4, #4a47e0);
  border: 1px solid transparent;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  /* Live .button.small: 0.75rem type, 0.85em 1em padding (~123x34). */
  padding: 0.85em 1em;
}

@media (hover: hover) and (pointer: fine) {
  .menu-secondary .button.purple:hover { background: linear-gradient(90deg, #4a2496, #3b38c0); }
}

/* "Sort by:" select (issue #8 + parity pass): a COMPACT inline dropdown —
   live sizes it to content (width:auto) with a small left label; the full-
   width block look came from Foundation's `select { width: 100% }`. */
.menu-secondary select {
  width: auto;
  min-width: 137px;
  margin-bottom: 0;
  padding: 0 2em 0 1em;
  height: 34px;
  line-height: 32px;
  font-weight: 400;
  /* Live Foundation select: #cacaca border, gray small triangle. */
  border: 1px solid #cacaca;
  border-radius: 3px;
  -webkit-appearance: none;
  appearance: none;
  background: #fefefe;
  color: #555;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
}

/* Caret icon ({% icon %}) overlaid on the select's right padding. */
.sort-select { position: relative; display: inline-block; }
.sort-select .ui-icon {
  position: absolute;
  right: 0.9em;
  font-size: 9px;
  color: #8a8a8a;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Issue #614 + parity pass: live's desktop grid is three equal card tracks
   spanning the inner 80% column (zf-row alt, padding 0 10%) — about 339px
   per card at a 1560px viewport with 30px gaps, not a fixed 903px grid.
   Three explicit tracks also leave the correct empty space when an account
   has fewer than three classes instead of stretching its cards. */
.classrooms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  width: 80%;
  margin: 0 auto;
  padding: 16px 0 26px;
}

@media (max-width: 1100px) {
  .classrooms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .classrooms { grid-template-columns: minmax(0, 1fr); }
}

/* Issue #594 (round 2): card chrome lifted VERBATIM from live computed styles.
   Live is a compact, subtly-bordered tile with a TINY neutral shadow — not the
   big raised, rounded, red-tinted card we had. The overflow:hidden is load-
   bearing: it clips the oversized .card-more-options circle into the corner
   NOTCH (see below). Measured: border 1px rgba(58,60,67,.71); radius 5px;
   box-shadow 1px 1px 1px 1px rgba(0,0,0,.1); padding 10px 15px 0; bg #fefefe. */
.teacher-classroom-summary-card.card {
  position: relative;
  background: #fefefe;
  border: 1px solid rgba(58, 60, 67, 0.71);
  border-radius: 5px;
  box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.1);
  padding: 10px 15px 0;
  overflow: hidden;
  transition: box-shadow 0.15s;
}

/* Live shows no lift on hover; keep a barely-stronger neutral shadow only. */
@media (hover: hover) and (pointer: fine) {
/* Live shows no lift on hover; keep a barely-stronger neutral shadow only. */  .teacher-classroom-summary-card.card:hover {
    box-shadow: 1px 2px 4px 1px rgba(0, 0, 0, 0.14);
/* Live shows no lift on hover; keep a barely-stronger neutral shadow only. */  }
/* Live shows no lift on hover; keep a barely-stronger neutral shadow only. */}

/* When the kebab menu is open, un-clip the card so the dropdown can escape the
   overflow:hidden (live toggles the same via its .menu-open card class). */
.teacher-classroom-summary-card.card:has(.card-more-options.open) {
  overflow: visible;
}

/* Live: Montserrat 18px/600, color #7c6ee7 (a light periwinkle-purple, NOT the
   near-black-purple we had); margin 0, padding-bottom 5px. Small right padding
   keeps a long name off the corner notch. */
.teacher-classroom-summary-card .name {
  margin: 0;
  padding: 0 26px 5px 0;
  font-size: 18px;
  font-weight: 600;
  color: #7162e5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.teacher-classroom-summary-card .card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

/* Live: the whole card ng-clicks to the classroom overview (PROGRESS), and
   only each stat's count text is a nested ui-sref ("N Students" -> students,
   "N Projects" -> Projects & Showcase). Stretch the name link over the card and
   lift the inner links above it (TYNKER-1650). */
.teacher-classroom-summary-card > a.clickable::after {
  content: "";
  position: absolute;
  inset: 0;
}

.teacher-classroom-summary-card .card-stats a,
.teacher-classroom-summary-card .action-container a {
  position: relative;
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  .teacher-classroom-summary-card .card-stats a:hover {
    text-decoration: underline;
  }
}

/* Live stat label: 12px/600, #7580b3, uppercase, 1px tracking. */
.teacher-classroom-summary-card .grade {
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6672ab;
  margin-bottom: 5px;
}

/* Live stat line: 14px, near-black #0a0a0a, line-height 28px. */
.teacher-classroom-summary-card .number,
.teacher-classroom-summary-card .number a {
  font-size: 14px;
  line-height: 28px;
  color: #0a0a0a;
  text-decoration: none;
  /* Live .number a: weight 300 — only the count is bold. */
  font-weight: 300;
}

/* Issue #594: the stat COUNT is bold near-black — same 14px as its label on
   live (measured), just weight 700. Was mistakenly enlarged to 1.15rem. */
.teacher-classroom-summary-card .number strong {
  color: #0a0a0a;
  font-size: 14px;
  font-weight: 700;
}

/* Grayed "0% Completion" when the class has no lessons (live .disabled). */
.teacher-classroom-summary-card .number.disabled,
.teacher-classroom-summary-card .number.disabled strong { color: var(--ty-muted); }

/* Action row: the "Choose a Course" warning CTA (when no course) on the left,
   the "View Classroom" link on the right — matching the live card footer. */
/* Issue #594, delta 1: the footer is a DISTINCT sub-section on live — a divider
   that spans the full card width (edge to edge, not inset by the body padding)
   with the button row beneath it. Negative side margins (= the card's 22px
   padding) push the divider + footer out to the card edges. */
/* Live footer: a full-bleed, CENTERED action row on a faint blue band
   (#f0faff) under a #d4e7ee divider. Negative side margins (= the card's 15px
   padding) push it edge-to-edge; overflow:hidden + radius round its corners.
   Buttons are CENTERED as a group (not space-between) and GRAY (#626262). */
.teacher-classroom-summary-card .action-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-top: 1px solid #d4e7ee;
  background: #f0faff;
  margin: 16px -15px 0;
  padding: 16px 0;
  /* Two actions (Invite Students + View Classroom on a 0-student class) need
     ~284px; at 3-up widths (1280px) the card is ~264px and its overflow:hidden
     clipped "View Classroom". Wrap the pair onto two centered rows instead,
     with a small side inset so neither touches the card edge. */
  flex-wrap: wrap;
  row-gap: 8px;
  padding-inline: 10px;
}

.teacher-classroom-summary-card .action-container .link {
  color: #626262;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  /* Live: underlined gray link, padded 0.85em 1em. */
  text-decoration: underline;
  padding: 0.85em 1em;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .teacher-classroom-summary-card .action-container .link:hover { color: #1565c0; }
}

/* Live sits "View Classroom" right of center on wide screens: its hidden
   action button keeps its width there (the xlarge .ng-hide override in
   _teacher-classroom-summary-card.scss), so the pair centers with the link
   on the right. Reserve the same space when no button shows. */
@media (min-width: 1400px) {
  .teacher-classroom-summary-card .action-container > .link:only-child { margin-left: 140px; }
}

/* "Choose a Course" — live's hollow GRAY-bordered button (#626262, radius 5px,
   12px/700 uppercase) with a red warning info glyph. */
.teacher-classroom-summary-card .action-container .button.hollow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #626262;
  border: 1px solid #626262;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  padding: 7.5px 16px 7.5px 9px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .teacher-classroom-summary-card .action-container .button.hollow:hover {
    background: #626262;
    color: #fff;
  }
}

.teacher-classroom-summary-card .action-container .button.hollow .icon-info {
  color: #d5453b;
  font-size: 1rem;
}

/* Issue #594 (round 2): the alert (no-course) card carries the SAME neutral
   shadow as any card on live — the earlier red-tinted rgba(213,69,59,.16)
   override was wrong (it read as the promo-banner red). No override now: the
   card inherits its 1px 1px 1px 1px rgba(0,0,0,.1) shadow. */

/* Issue #594 (round 2): THE KEBAB NOTCH — reproduced by the EXACT live
   mechanism (measured), not reconstructed. `.card-more-options` is a 55x55
   circle (border-radius 40%) positioned to poke OUTSIDE the corner
   (top:-25px; right:-20px); the card's overflow:hidden then clips it into a
   flush white quarter-round NOTCH inside the top-right corner. Previously we
   sized the button itself as a rounded box at top:0/right:0 — with no
   clipping it floated as a tab ABOVE the corner (Jeremy's "not even close"). */
.teacher-classroom-summary-card .card-more-options {
  position: absolute;
  top: -25px;
  right: -20px;
  width: 55px;
  height: 55px;
  border-radius: 40%;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: -1px 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 4;
}

/* The blue dots live in the visible lower-left arc of the clipped circle. */
.teacher-classroom-summary-card .link-more-options {
  position: absolute;
  left: 3px;
  bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 26px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #0058d7;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0;
}

@media (hover: hover) and (pointer: fine) {
  .teacher-classroom-summary-card .link-more-options:hover { color: #003f9c; }
}

.teacher-classroom-summary-card .menu.vertical {
  list-style: none;
  position: absolute;
  right: 18px;
  top: 55px;
  margin: 0;
  padding: 6px 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--ty-line);
  border-radius: 10px;
  box-shadow: var(--ty-card-shadow);
  display: none;
  z-index: 6;
}

.teacher-classroom-summary-card .card-more-options.open .menu.vertical { display: block; }

.teacher-classroom-summary-card .menu.vertical li { padding: 0; }

.teacher-classroom-summary-card .menu.vertical li a,
.teacher-classroom-summary-card .menu.vertical li .text {
  display: block;
  padding: 7px 16px;
  color: var(--ty-ink);
  text-decoration: none;
  font-size: 0.88rem;
}

@media (hover: hover) and (pointer: fine) {
  .teacher-classroom-summary-card .menu.vertical li a:hover { background: var(--ty-bg); }
}

.teacher-classroom-summary-card .menu.vertical li.separator {
  border-bottom: 1px solid var(--ty-line);
  margin-bottom: 4px;
  padding-bottom: 4px;
}

/* Zero-state. */
.active-zero-state {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--ty-card-shadow);
  padding: 40px 24px;
  text-align: center;
  margin: 22px auto;
  max-width: 640px;
}

.active-zero-state .title {
  color: var(--ty-purple-deep);
  font-size: 1.6rem;
  margin: 0 0 10px;
}

.active-zero-state .subtitle { color: var(--ty-muted); display: block; margin-bottom: 16px; }

/* ------------------------------------------------------------ content ------ */
.dashboard-teacher .content.full-height { padding-top: 8px; }

.boxed {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--ty-card-shadow);
  padding: 22px 24px;
  margin: 22px 0;
}

/* One-time teacher welcome banner (SCH-038): dismiss × pinned top-right. The
   .dashboard-teacher scope matches upstream tynker.css's `.dashboard-teacher
   .boxed { padding: 10px }` specificity so this gutter actually wins.
   It sits straight in the full-width `.container`, so `.boxed`'s `margin:
   22px 0` ran it edge-to-edge against the rail; inset it 32px each side —
   the same gutter as the home band's tab row below it — and give the text
   a 20px left pad so it clears the card's rounded edge. */
.dashboard-teacher .ty-welcome-banner {
  position: relative;
  margin-left: 32px;
  margin-right: 32px;
  padding-left: 20px;
  padding-right: 52px;
}

.ty-welcome-banner .ty-inline-form {
  position: absolute;
  top: 8px;
  right: 10px;
  margin: 0;
}

.ty-welcome-banner__dismiss {
  background: none;
  border: none;
  padding: 4px 8px;
  color: var(--ty-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .ty-welcome-banner__dismiss:hover { color: var(--ty-purple-deep); }
}

.boxed > h2,
.boxed > h3 { margin-top: 0; color: var(--ty-purple-deep); }

/* Sub-page content gutter. Pages whose header is the plain banner pattern —
   `.section-banner-teacher` holding a `.banner-head` (class planner /
   concepts / training / gallery / import, per-student results, ...) or a
   `.banner-title`, or any banner on the school + district admin consoles
   (`.body-dashboard-admin`) — drop that banner
   and their cards straight into the full-width upstream `.container`, so the
   back link, title, subtitle and `.boxed` cards ran flush against the rail and
   the right edge. Inset the whole column by the same 32px gutter the teacher
   home band uses, and let the purple banner bleed back out to stay full-width
   (its text keeps the 32px inset). Keyed on the banner's children, so the
   class-detail / home banners (banner-grid / tab-row variants), which set
   their own insets, are untouched. */
.container:has(> .section-banner-teacher > :is(.banner-head, .banner-sub, .banner-title)),
.body-dashboard-admin .container:has(> .section-banner-teacher) {
  padding-inline: 32px;
}

.container:has(> .section-banner-teacher > :is(.banner-head, .banner-sub, .banner-title)) > .section-banner-teacher,
.body-dashboard-admin .container:has(> .section-banner-teacher) > .section-banner-teacher {
  margin-inline: -32px;
  padding-inline: 32px;
}

.section-title {
  color: var(--ty-purple-deep);
  font-weight: 700;
  margin: 26px 0 4px;
}

/* Progress stat row. */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat__value {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--ty-indigo-dark);
}

.stat__label { color: var(--ty-muted); font-size: 0.85rem; }

/* Progress bar (roster). */
.ty-progress {
  display: inline-block;
  width: 120px;
  height: 8px;
  background: var(--ty-line);
  border-radius: 4px;
  overflow: hidden;
  vertical-align: middle;
}

.ty-progress__bar { display: block; height: 100%; background: var(--ty-teal); }

.ty-progress__label { margin-left: 8px; font-size: 0.82rem; color: var(--ty-muted); }

/* ------------------------------------------------------------ tables ------- */
.ty-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.ty-table th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid var(--ty-line);
  color: var(--ty-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ty-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--ty-line);
  vertical-align: middle;
}

.ty-table-scroll { overflow-x: auto; }

.ty-edit-row td { background: #faf9fd; }

/* Gradebook status cells (functional status hooks kept from the port). */
.ty-gradebook .ty-cell {
  text-align: center;
  font-size: 0.78rem;
  text-transform: capitalize;
  white-space: nowrap;
}

.ty-cell--completed { background: #e3f6ee; color: #1b7a4b; }
.ty-cell--in_progress { background: #fff5e0; color: #a56a00; }
.ty-cell--not_started { color: var(--ty-muted); }

.ty-cell__score { font-weight: 700; margin-left: 4px; }

/* ------------------------------------------------------------ buttons ------ */
.button,
.ty-btn {
  display: inline-block;
  background: var(--ty-indigo-dark);
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 8px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.3;
}

@media (hover: hover) and (pointer: fine) {
  .button:hover, .ty-btn:hover { background: var(--ty-purple-dark); color: #fff; }
}

.button.purple { background: var(--ty-purple-dark); }

/* Secondary CTA — verbatim port of the live `.button.secondary` /
   `.ty-button.secondary` treatment mirrored under static_legacy/js/dist/
   app_legacy.css (corrections #28: reuse legacy CSS, don't hand-write). Drives
   the "Explore curriculum" plan-card CTAs + the classroom STUDENTS-tab "Add
   Students"/"Add Guardians" buttons — both were rendering as a TEAL PILL in
   Title Case; live is a BLUE gradient, near-rectangular, ALL-CAPS button
   (issue #538 — "one shared accent-color/button style, not a one-off").
   .hollow.secondary combos (Assign/Preview/Show All) are unaffected: the
   .hollow rule below still wins the transparent background for those. */
.button.secondary,
.ty-btn.secondary {
  background: #2157b4; /* solid fallback for no-gradient contexts */
  background-image: linear-gradient(90deg, #006cf0, #2157b4);
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

@media (hover: hover) and (pointer: fine) {
  .button.secondary:hover, .ty-btn.secondary:hover {
    background-image: linear-gradient(90deg, #0058d7, #1846a4);
    color: #fff;
  }
}

.button.hollow,
.ty-btn.hollow {
  background: transparent;
  color: var(--ty-indigo-dark);
  border: 2px solid var(--ty-indigo-dark);
}

@media (hover: hover) and (pointer: fine) {
  .button.hollow:hover, .ty-btn.hollow:hover { background: var(--ty-indigo-dark); color: #fff; }
}

.button.small,
.ty-btn.small { padding: 6px 14px; font-size: 0.82rem; }

.button.button-start {
  background: var(--ty-teal);
  font-size: 1.05rem;
  padding: 12px 30px;
}

.ty-btn--danger { background: #bb1c1c; }
@media (hover: hover) and (pointer: fine) {
  .ty-btn--danger:hover { background: #90001b; }
}

/* ------------------------------------------------------------ forms -------- */
.ty-form { margin-top: 12px; }

.ty-field {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 420px;
}

.ty-field label,
.ty-form label { font-weight: 600; color: var(--ty-ink); font-size: 0.9rem; }

.ty-form input[type="text"],
.ty-form input[type="password"],
.ty-form input[type="email"],
.ty-form select,
.ty-field input,
.ty-field select,
.ty-inline-form input[type="text"],
.ty-inline-form select {
  padding: 8px 10px;
  border: 1px solid #cdc8dd;
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: inherit;
}

.ty-inline-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 2px 6px 2px 0;
}

.ty-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* ---------------------------------------------------------- messages ------- */
.ty-messages { list-style: none; margin: 16px 0 0; padding: 0; }

.ty-message {
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 0.92rem;
}

.ty-message--success { background: #e3f6ee; color: #1b7a4b; }
.ty-message--error { background: #ffebee; color: #90001b; }
.ty-message--warning { background: #fff5e0; color: #a56a00; }
.ty-message--info { background: #e5ebf6; color: var(--ty-indigo-dark); }

.ty-badge {
  display: inline-block;
  font-size: 0.72rem;
  background: var(--ty-bg);
  border: 1px solid var(--ty-line);
  color: var(--ty-muted);
  border-radius: 10px;
  padding: 1px 9px;
  margin-left: 4px;
}

.ty-list { list-style: none; margin: 8px 0; padding: 0; }
.ty-list > li { padding: 8px 0; border-bottom: 1px solid var(--ty-line); }

/* Archived-list row actions (live's archived-card kebab: Unarchive/Delete). */
.ty-archived-actions { float: right; display: inline-flex; gap: 14px; }
.ty-archived-actions .ty-inline-form { display: inline; margin: 0; }

/* "Show all N classrooms" / "Show less" below the home grid (live's
   teacher-home-2022 .show-more-less link: `color: $black`, bold 16px, no
   underline). */
/* The link row spans the card grid's 80% column (.classrooms), so the link
   ends at the last card's right edge like live, not at the page edge. */
.js-show-more { width: 80%; margin: 0 auto 1rem; }
.show-more-less {
  font-size: 16px;
  font-weight: 700;
  color: #0a0a0a;
  text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
  .show-more-less:hover { color: #0a0a0a; opacity: 0.7; }
}

.ty-empty { color: var(--ty-muted); font-style: italic; }
.ty-due { color: var(--ty-muted); font-size: 0.82rem; margin-left: 6px; }
.ty-meta { color: var(--ty-muted); font-size: 0.85rem; }

/* ------------------------------------------------ teacher curriculum ------ */
/* In-app course catalog grid (ported from the live teacher-courses capture:
   student-course-card anatomy — thumbnail + difficulty tag + title + XP). */
.teacher-course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
  padding: 22px 0 8px;
}

.student-course-card.card-course {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--ty-card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.student-course-card .card-thumb {
  position: relative;
  display: block;
  background: var(--card-accent, var(--ty-indigo));
  min-height: 150px;
}

.student-course-card .card-thumb .course-image,
.student-course-card .card-thumb svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Difficulty tag (card-tag-green/orange/red), top-left over the art. */
.student-course-card .card-tag {
  position: absolute;
  top: 10px;
  left: 0;
  z-index: 2;
}

.student-course-card .card-tag-content-label {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  padding: 3px 10px;
  border-radius: 0 12px 12px 0;
}

.student-course-card .card-tag-green .card-tag-content-label { background: #33b56a; }
.student-course-card .card-tag-orange .card-tag-content-label { background: #e8912b; }
.student-course-card .card-tag-red .card-tag-content-label { background: #d5453b; }

.student-course-card .card-details {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.student-course-card .card-details .title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ty-ink);
}

.student-course-card .subtitle .total-xp {
  color: var(--ty-teal);
  font-weight: 700;
  font-size: 0.82rem;
}

.add-to-class-form {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.add-to-class-form select {
  flex: 1;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid #cdc8dd;
  border-radius: 8px;
  font-size: 0.82rem;
  font-family: inherit;
}

/* ------------------------------------------------ teacher my-projects ----- */
.teacher-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 22px 0 8px;
}

.project-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--ty-card-shadow);
  overflow: hidden;
}

.project-card-preview {
  height: 130px;
  background: var(--ty-bg) center/cover no-repeat;
  border-bottom: 1px solid var(--ty-line);
}

.project-card-name {
  padding: 10px 12px 2px;
  font-weight: 700;
  color: var(--ty-ink);
}

.project-card .ty-meta { padding: 0 12px 12px; }

/* -------------------------------------------------- teacher resources ----- */
.teacher-resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding: 22px 0 8px;
}

.resource-card {
  display: block;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--ty-card-shadow);
  padding: 20px;
  text-decoration: none;
  color: var(--ty-ink);
  transition: box-shadow 0.15s, transform 0.15s;
}

@media (hover: hover) and (pointer: fine) {
  .resource-card:hover {
    box-shadow: 0 6px 20px rgba(60, 50, 110, 0.2);
    transform: translateY(-2px);
  }
}

.resource-card .icon {
  font-size: 28px;
  color: var(--ty-indigo);
}

.resource-card h5 {
  margin: 10px 0 4px;
  color: var(--ty-purple-deep);
  font-size: 1.05rem;
}

.resource-card p { margin: 0; color: var(--ty-muted); font-size: 0.88rem; }

/* ---------------------------------------------------------- mobile --------- */
@media (max-width: 640px) {
  .section-banner-classroom .banner-grid { grid-template-columns: 1fr; }
  .section-banner-classroom .banner-col--center,
  .section-banner-classroom .banner-col--code { justify-self: start; text-align: left; }
  .section-banner-classroom .class-code { text-align: left; }
  .roster-toolbar { align-items: flex-start; flex-direction: column; }
}

/* ---------------------------------------------------- onboarding wizard ----- */
/* Create-class + add-students wizard (corrections #19) — ports the live       */
/* #/t/onboarding screens' layout: a centered "Classroom Setup" card, a grade  */
/* band picker, and the generate-users credential table.                       */
.onboarding.classroom-setup {
  max-width: 760px;
  margin: 24px auto;
  padding: 0 16px;
}
.onboarding .setup-heading {
  color: var(--ty-purple-deep);
  font-size: 1.5rem;
  margin: 0 0 20px;
}
.onboarding .setup-step-title {
  color: var(--ty-purple-deep);
  font-size: 1.15rem;
  margin: 22px 0 10px;
}
.onboarding .setup-step-sub { color: var(--ty-muted); margin: 0 0 14px; }
.onboarding .setup-hint { color: var(--ty-muted); font-size: 0.85rem; }

/* Grade-band radio cards (K-2 / Elementary / Middle / High School). */
.grade-band-cards {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.grade-band-card label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid #e3e0ef;
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 700;
  color: var(--ty-purple-deep);
}
@media (hover: hover) and (pointer: fine) {
  .grade-band-card label:hover { border-color: var(--ty-purple); }
}
.grade-band-card input:checked + .grade-band-label { color: var(--ty-purple-dark); }
.grade-band-card:has(input:checked) label {
  border-color: var(--ty-purple-dark);
  background: #f3effb;
}

.onboarding .ty-field input[type="text"],
.onboarding input[type="number"],
.onboarding .regenerate-form input[type="text"] {
  width: 100%;
  max-width: 480px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #cfd6de;
  border-radius: 6px;
  font-size: 15px;
}
.onboarding input[type="number"] { width: 120px; }

.setup-option {
  border: 1px solid #ece9f5;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 0 0 18px;
  background: #fbfaff;
}
.classcode-display { display: flex; align-items: baseline; gap: 12px; margin: 8px 0; }
.classcode-label { color: var(--ty-muted); font-weight: 700; text-transform: uppercase; font-size: 0.75rem; }
.classcode-value {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--ty-purple-deep);
}

.setup-actions { display: flex; gap: 12px; align-items: center; margin-top: 20px; }

/* Generate-users editable credential table. */
.generate-table input {
  font-size: 0.9rem;
  width: 100%;
  min-width: 90px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid #cfd6de;
  border-radius: 5px;
}
/* A row Finalize rejected (the messages above name it); the batch is held. */
.generate-table input[aria-invalid="true"] { border-color: #c0392b; }
.regenerate-form { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; flex-wrap: wrap; }

/* + Add Student / Clear All row beneath the editable table (issue #6). */
.generate-table-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 2px 0;
}
.generate-table-actions .ty-link {
  color: var(--ty-purple-deep);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .generate-table-actions .ty-link:hover { text-decoration: underline; }
}

/* GENERATE FOR ME / CREATE MY OWN choice buttons (capture 05). */
.setup-username-choice { font-weight: 700; margin-top: 18px; }
.setup-choice-buttons { display: flex; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.choose-method-form #count { width: 90px; height: 36px; padding: 0 8px; border: 1px solid #cfd6de; border-radius: 5px; }

/* Roster action row (Import / Download Student List / Email Login Instructions). */
.roster-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.roster-actions .ty-inline-form { display: inline; margin: 0; }
.ty-linkbtn {
  background: none;
  border: none;
  padding: 0;
  color: var(--ty-purple-deep, #5b3fd6);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .ty-linkbtn:hover { text-decoration: underline; }
}

@media print {
  .dashboard-sidebar-nav-container, .setup-actions, .regenerate-form,
  .generate-table-actions { display: none !important; }
}

/* ------------------------------------------------ teacher-home banners ----- */
/* Full-bleed campaign promo bars above the welcome header (issue #16). Colors
   + metrics mirrored from the live bundle: the webinar bar is #DC3628 (red),
   the upgrade/owl bar is #52559C (indigo); h3 text is 17px/1px-tracked. */
.dashboard-teacher .school-banner {
  width: 100%;
  color: #fff;
  padding: 0.25rem 0;
}

.dashboard-teacher .school-upgrade-banner { background-color: #52559C; }
.dashboard-teacher .school-welcome-webinar-banner { background-color: #DC3628; }

.dashboard-teacher .school-banner .school-banner__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 44px;
}

.dashboard-teacher .school-banner .flex-grow { flex: 1; text-align: center; }

.dashboard-teacher .school-banner h3 {
  display: inline-block;
  margin: 0;
  padding: 0;
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  font-weight: 600;
}

.dashboard-teacher .school-banner h3,
.dashboard-teacher .school-banner h3 a {
  color: #fff;
  font-size: 17px;
  letter-spacing: 1px;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .dashboard-teacher .school-banner h3 a:hover { text-decoration: underline; }
}

/* Owl art in the upgrade bar (live img height 50px). */
.dashboard-teacher .school-upgrade-banner h3 img {
  height: 50px;
  object-fit: cover;
  margin: 5px 1rem 5px 0;
  padding-right: 8px;
  vertical-align: middle;
}

/* Banner CTA — white pill on the colored bar. */
.dashboard-teacher .school-banner .button {
  flex: none;
  background: #fff;
  color: #2b2b3a;
  border-radius: 22px;
  padding: 7px 18px;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.dashboard-teacher .school-welcome-webinar-banner .button { color: #DC3628; }
.dashboard-teacher .school-upgrade-banner .button { color: #52559C; }
@media (hover: hover) and (pointer: fine) {
  .dashboard-teacher .school-banner .button:hover { background: #f1f1f7; }
}

/* ------------------------------------------- Explore Our Curriculum -------- */
/* The three large grade-band plan cards below the class grid (issue #16),
   mirrored from the live teacher-onboarding-free-curriculum component. */
.teacher-onboarding-free-curriculum {
  /* Live: the section sits on a light lavender->pale-blue gradient band that
     bleeds the FULL content width (sidebar to right edge). The parent
     .container is already full-width, so no negative-margin escape is
     needed — the band just fills it. */
  margin: 26px 0 -48px;
  padding: 30px 0 48px;
  background: linear-gradient(100deg, #eae5f8 0%, #e7f2fb 100%);
  text-align: center;
}

.explore-curriculum-title {
  color: var(--ty-ink);
  font-size: 2rem;
  margin: 10px 0 26px;
}

.free-curriculum-cards {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  gap: 20px;
}

/* Live: ty-content-card — white card, 1rem radius, soft shadow, top accent. */
.ty-content-card {
  position: relative;
  max-width: 100%;
  background: #fefefe;
  border-radius: 1rem;
  box-shadow: 0 0.1875rem 0.375rem rgba(0, 0, 0, 0.1);
}

.ty-content-card.--border-top { border-top-style: solid; border-top-width: 0.375rem; }
.ty-content-card.--border-green { border-color: #328532; }
.ty-content-card.--border-cyan { border-color: #00bcd4; }
.ty-content-card.--border-purple { border-color: #7065a3; }

.free-curriculum-card {
  background: #eef8ff;
  padding: 1.75rem 1.25rem 2rem;
  text-align: center;
  width: 18.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Round white icon medallion (live 6.25rem circle, img max 70%). */
.free-curriculum-card__icon {
  background: #fefefe;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  width: 6.25rem;
  height: 6.25rem;
}

.free-curriculum-card__icon img { max-width: 70%; }

.free-curriculum-card__title {
  font-size: 1.125rem;
  color: var(--ty-ink);
  margin: 0 0 10px;
}

.free-curriculum-card p { margin: 0 0 8px; color: var(--ty-ink); padding-bottom: 0; }
.free-curriculum-card .text-small { font-size: 0.8rem; }
.free-curriculum-card .margin-bottom-0 { margin-bottom: 0; }
.free-curriculum-card .button.secondary { margin-top: 14px; }

/* ---------------------------------------------------- help "?" bubble ------ */
/* Floating support-hub button, bottom-right (live). */
.teacher-help-bubble {
  position: fixed;
  right: 18px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #8bc34a;
  border: 3px solid #8bc34a;
  border-radius: 50%;
  font-family: Montserrat, "Open Sans", sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  z-index: 60;
  transition: transform 0.12s ease-in-out;
}

@media (hover: hover) and (pointer: fine) {
  .teacher-help-bubble:hover { transform: scale(1.08); color: #6ea03a; }
}

@media (max-width: 720px) {
  .free-curriculum-card { width: 100%; }
  .teacher-home-icons { top: 8px; right: 10px; }
}

@media print {
  .dashboard-sidebar-nav-container, .setup-actions, .regenerate-form,
  .teacher-help-bubble, .school-banner { display: none !important; }
}

/* ================================================================= LESSONS tab
   Card-based assign UI (issue #19) — ports the legacy
   teacher-classroom-courses.directive empty-state + recommendation cards. */
.teacher-classroom-courses .content {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--ty-card-shadow);
  padding: 40px 48px 48px;
  margin: 22px 0;
}

/* Empty-state header ("You don't have any assigned lessons yet."). */
.no-assignments-messge { text-align: center; margin-bottom: 34px; }
.no-assignments-messge h3 {
  color: var(--ty-ink);
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 8px;
}
.no-assignments-messge p { color: var(--ty-muted); margin: 0 0 14px; }

/* Blue "Learn about Lessons ▶" video link. */
.webinar-link {
  color: var(--ty-indigo-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  font-size: 0.95rem;
}
@media (hover: hover) and (pointer: fine) {
  .webinar-link:hover { text-decoration: underline; }
}
.webinar-link .tycon-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--ty-indigo-dark);
  color: #fff;
  font-size: 0.6rem;
  vertical-align: middle;
}

/* Section headings: COURSES YOU MAY LIKE / PROJECT OF THE WEEK / CODING ... */
.suggested-course-section { margin-top: 30px; }
.suggested-course-section h4.text-uppercase,
.suggested-course-section > h4 {
  text-transform: uppercase;
  color: var(--ty-ink);
  font-weight: 800;
  letter-spacing: 0.03em;
  font-size: 1rem;
  margin: 0 0 14px;
  padding-bottom: 4px;
}

/* One recommendation card row. */
.suggested-course {
  border-bottom: 1px solid var(--ty-line);
  padding: 18px 0;
}
.suggested-course:last-child { border-bottom: none; }
.suggested-course__body {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.suggested-course__thumb { flex: 0 0 150px; max-width: 150px; }
.suggested-course__thumbnail {
  width: 100%;
  border-radius: 8px;
  display: block;
}
.suggested-course__info { flex: 1 1 340px; min-width: 220px; }
.suggested-course__title {
  color: var(--ty-ink);
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0 0 6px;
}
.suggested-course__description { color: var(--ty-ink); margin: 0 0 8px; }
.suggested-course__overview-link {
  color: var(--ty-indigo-dark);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
}
@media (hover: hover) and (pointer: fine) {
  .suggested-course__overview-link:hover { text-decoration: underline; }
}
.suggested-course__action {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: flex-start;
}
.suggested-course__action .button { text-transform: uppercase; letter-spacing: 0.03em; }

/* Explore Full Curriculum CTA + Video Library footer. */
.explore-button { text-align: center; margin-top: 34px; }
.button.primary { background: var(--ty-indigo-dark); text-transform: uppercase; letter-spacing: 0.03em; }
@media (hover: hover) and (pointer: fine) {
  .button.primary:hover { background: var(--ty-purple-dark); }
}
.video-library-no-assignments,
.video-library-assignments { text-align: center; margin-top: 26px; color: var(--ty-muted); }
.video-library-no-assignments a,
.video-library-assignments a { color: var(--ty-indigo-dark); font-weight: 800; text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .video-library-no-assignments a:hover, .video-library-assignments a:hover { text-decoration: underline; }
}

/* ---- Populated LESSONS tab (issue #19): live's 2-column ASSIGNED COURSES rail
   + lesson detail panel. The rail sits on the page background; the detail panel
   is the white card (purple top accent), matching the live capture. */
.lessons-content { margin: 22px 0; }
.lessons__sharing {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-block: 12px;
}
.lessons__sharing .ty-inline-form,
.lessons__sharing .ty-meta { margin: 0; }
.lessons__sharing .ty-linkbtn {
  min-block-size: 44px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 700;
}
.lessons-layout {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
}

/* Left rail — "ASSIGNED COURSES" list of course pills + ADD MORE. */
.lesson-menu { flex: 0 0 240px; max-width: 240px; min-width: 200px; }
.lesson-menu__title {
  text-transform: uppercase;
  color: var(--ty-ink);
  font-weight: 800;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
  margin: 6px 0 16px;
}
.lesson-menu__assignments { list-style: none; margin: 0; padding: 0; }
.lesson-menu__assignments > li { margin-bottom: 10px; }

/* One assigned-course button: thumbnail + title; active = filled purple. */
.assigned-lesson {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--ty-ink);
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .assigned-lesson:hover { background: #d5d7f1; }
}
.assigned-lesson.is-active { background: #564fe3; color: #fff; }
.assigned-lesson__thumb {
  flex: 0 0 52px;
  width: 52px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #7b5fd0, #5364c9);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  overflow: hidden;
}
.assigned-lesson__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.assigned-lesson__title { flex: 1 1 auto; line-height: 1.2; }

/* ADD MORE affordance — a "+" pill under the assigned courses. */
.lesson-menu__add-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: var(--ty-indigo-dark);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 10px;
}
@media (hover: hover) and (pointer: fine) {
  .lesson-menu__add-button:hover { background: #efedf9; }
}
.lesson-menu__add-button.is-active { background: #e6ecfb; }
.lesson-menu__add-icon {
  flex: 0 0 26px;
  width: 26px; height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ty-indigo-dark);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
}

/* Right detail panel — the white lesson card with the purple top accent. */
.lessons-container { flex: 1 1 460px; min-width: 300px; }
.lessons {
  position: relative;
  background: #fff;
  border-radius: 20px;
  border-top: 5px solid #6f68e7;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  padding: 20px 50px 50px;
}
.lessons__header { text-align: center; margin-bottom: 20px; }
.lessons__title {
  color: #0a0a0a;
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0 0 8px;
}
.lessons__title .ty-meta { font-size: 0.8rem; margin-left: 8px; font-weight: 600; }
.lessons__count { color: #0a0a0a; margin: 0 0 12px; font-size: 0.8rem; }

/* One lesson row — legacy _classroom-assignment.scss: a 120px thumbnail
   spanning two rows, title/description over a row of small links, and the
   75px completion ring on the right; a numbered badge on the left edge. */
.ty-classroom-assignment {
  position: relative;
  display: grid;
  grid-template-columns: 120px 4fr 1fr;
  column-gap: 20px;
  row-gap: 5px;
  align-items: start;
  width: 90%;
  margin: 0 auto;
  padding: 20px 0;
  border-bottom: 1px solid #f2faff;
  text-align: left;
}
.ty-classroom-assignment p { font-size: inherit; margin-bottom: 0; padding-bottom: 0; }
.ty-classroom-assignment.ty-assignment--hidden .ty-classroom-assignment__title { color: #6b6880; }
/* Unassigned lessons turn gray in place (TYNKER-1551): gray number circle
   (legacy _classroom-assignment.scss is-unassigned), plus a grayed thumbnail,
   title and description so the whole row reads as off. The Assign and
   Lesson Plan controls keep their color. The dimmed text stays at WCAG AA
   contrast (#6b6880 is 5.4:1 on white). */
.ty-classroom-assignment.is-unassigned .ty-classroom-assignment__number { background-color: #766889; }
.ty-classroom-assignment.is-unassigned .ty-classroom-assignment__thumbnail { filter: grayscale(1); opacity: 0.85; }
.ty-classroom-assignment.is-unassigned .ty-classroom-assignment__title,
.ty-classroom-assignment.is-unassigned .ty-classroom-assignment__description { color: #6b6880; }
.ty-classroom-assignment__number {
  position: absolute;
  top: 45px;
  left: -15px;
  transform: translateY(-50%);
  z-index: 2;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #006cf0;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
}
.ty-classroom-assignment.is-complete .ty-classroom-assignment__number { background: #328532; }
.ty-classroom-assignment:not(.is-assigned) .ty-classroom-assignment__number { background: #766889; }
.ty-classroom-assignment .ty-classroom-assignment__thumbnail {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 120px; height: 80px;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #dbf3fc;
}
.ty-classroom-assignment__image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
}
img.ty-classroom-assignment__image { object-fit: cover; object-position: center; display: block; }
/* Text projects never save a screenshot: the white language glyph on its
   colored language tile (the student dashboard-list__icon colors). */
.ty-classroom-assignment__image.is-lang { background-color: #f9a342; }
.ty-classroom-assignment__image.is-lang img { width: 40px; height: 40px; object-fit: contain; }
.ty-classroom-assignment__image.is-lang.--bedrock,
.ty-classroom-assignment__image.is-lang.--java { background-color: #83c277; }
.ty-classroom-assignment__image.is-lang.--python { background-color: #6085b1; }
.ty-classroom-assignment__image.is-lang.--javascript { background-color: #edd14c; }
.ty-classroom-assignment__image.is-lang.--html { background-color: #e3a864; }
.ty-classroom-assignment__image.is-placeholder {
  background: #dbf3fc;
  color: #3d32c8;
  font-weight: 800;
  font-size: 1.5rem;
}
.ty-classroom-assignment .ty-classroom-assignment__detail-action {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.ty-classroom-assignment__title {
  margin: 0;
  padding: 0;
  color: #0a0a0a;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ty-classroom-assignment__description { margin: 0; color: #0a0a0a; font-size: 15px; line-height: 1.6; }

/* Completion ring — legacy classroom-percent-circle: 75px, thin teal arc. */
.ty-classroom-assignment .ty-classroom-assignment__percentage {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  min-width: 75px;
  text-align: center;
  font-size: 12px;
  text-transform: uppercase;
}
.ty-percent-circle {
  --pct: 0;
  position: relative;
  width: 66px; height: 66px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(var(--ty-teal) calc(var(--pct) * 1%), #e2e0ec 0);
}
.ty-percent-circle::before {
  content: "";
  position: absolute;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: #fff;
}
.ty-percent-circle__value {
  position: relative;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--ty-indigo-dark);
}
.ty-percent-circle__label {
  margin: 4px 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ty-muted);
  font-weight: 700;
}
.ty-classroom-assignment__percentage .ty-percent-circle { width: 40px; height: 40px; }
.ty-classroom-assignment__percentage .ty-percent-circle::before { width: 32px; height: 32px; }
.ty-classroom-assignment__percentage .ty-percent-circle__value { font-size: 9px; font-weight: 600; color: #006cf0; }
.ty-classroom-assignment__percentage .ty-percent-circle__label { margin-top: 10px; font-size: 12px; letter-spacing: 0; color: #0a0a0a; font-weight: 400; }

/* Row actions — legacy's small bold link row under the description. */
.ty-classroom-assignment .ty-classroom-assignment__actions {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.ty-classroom-assignment__actions .ty-inline-form { margin: 0 30px 0 0; }
.ty-classroom-assignment__actions > :last-child { margin-right: 0; }
.ty-classroom-assignment-action {
  display: inline-block;
  background: none;
  border: none;
  margin: 0;
  padding: 0;
  color: #3d32c8;
  font-size: 12px;
  font-weight: 700;
  line-height: 2;
  text-decoration: none;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .ty-classroom-assignment-action:hover { color: #2c06a5; }
}
.ty-classroom-assignment-action:focus-visible { color: #2c06a5; outline: 2px solid currentColor; outline-offset: 2px; }

/* ADD MORE panel reuses the recommendation-card + form chrome. */
.assignments-page__title {
  text-align: center;
  color: var(--ty-ink);
  font-weight: 800;
  font-size: 1.3rem;
  margin: 0 0 18px;
}

@media (max-width: 720px) {
  .lesson-menu { flex-basis: 100%; max-width: none; }
  .ty-classroom-assignment { grid-template-columns: 1.5fr 1fr; width: 100%; padding-left: 20px; }
  .ty-classroom-assignment .ty-classroom-assignment__thumbnail { display: none; }
  .ty-classroom-assignment .ty-classroom-assignment__detail-action { grid-column: 1 / span 2; grid-row: 1; }
  .ty-classroom-assignment .ty-classroom-assignment__actions { grid-column: 1; }
  .ty-classroom-assignment .ty-classroom-assignment__percentage { grid-column: 2; grid-row: 2; }
}

/* ============================================== Add Classroom wizard (issue #20)
   Full-page purple backdrop with a centered white card, "See Tour" + a
   "Classroom Setup" progress bar, a big blue heading, plain inline grade
   radios, a prefilled name input, and a single large CONTINUE. */
.teacher-onboarding-2022.step-select-grade,
.teacher-onboarding-2022.step-roster-sync {
  background: linear-gradient(180deg, #6f68d8 0%, #635bd0 100%);
  border-radius: 16px;
  margin: 22px 0;
  padding: 22px 24px 60px;
  min-height: calc(100vh - 44px);
  min-height: calc(100svh - 44px);
}
/* The Google Classroom link page puts a section banner above the panel, so a
   full-viewport panel would scroll; leave room for the banner. */
.teacher-onboarding-2022.google-classroom-link {
  min-height: calc(100vh - 200px);
  min-height: calc(100svh - 200px);
}
.onboarding-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto 6px;
  flex-wrap: wrap;
}
.onboarding-topbar .see-tour { color: #fff; }
.onboarding-topbar .see-tour .tycon-play { background: #fff; color: var(--ty-indigo-dark); }
.completion { color: #fff; text-align: right; min-width: 200px; }
.completion strong { display: block; font-size: 0.9rem; margin-bottom: 6px; }
.completion .progress {
  height: 8px;
  width: 220px;
  max-width: 100%;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  overflow: hidden;
}
.completion .progress .completed { display: block; height: 100%; background: #fff; }

/* Centered white card. */
.onboarding-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(40, 30, 90, 0.28);
  max-width: 1000px;
  margin: 22px auto 0;
  padding: 60px 64px 64px;
}
.wizard-heading {
  color: var(--ty-indigo-dark);
  text-align: center;
  font-size: 2.1rem;
  font-weight: 800;
  margin: 0 0 30px;
}

/* Roster-sync step: "connect an existing classroom?" + one provider button. */
.roster-sync { text-align: center; }
.roster-sync .wizard-heading { margin-bottom: 14px; }
.roster-sync-sub { color: var(--ty-ink); font-size: 1.1rem; margin: 0 auto 36px; max-width: 680px; }
.roster-sync-provider .button-authorize {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  justify-content: center;
}
.roster-sync-provider .ico { display: inline-flex; }
.roster-sync-manual { margin: 26px 0 0; }

/* Plain inline grade radios (K-2 / Elementary / Middle / High School). */
.grade-band-radios {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 34px;
  flex-wrap: wrap;
}
.grade-band-radios label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ty-ink);
  cursor: pointer;
}
.grade-band-radios input[type="radio"] { margin: 0; }

.field-name { text-align: center; margin-top: 34px; }
.field-name-title { color: var(--ty-ink); font-weight: 800; margin: 0; }
.field-name-sub { color: var(--ty-muted); margin: 2px 0 16px; }
.onboarding-form input[name="name"] {
  width: 100%;
  max-width: 440px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #cfd6de;
  border-radius: 6px;
  font-size: 15px;
  text-align: center;
}
.onboarding-form .help-text { color: #c0392b; font-size: 0.85rem; margin: 8px 0 0; }

/* Single large CONTINUE, greyed until valid. */
.onboarding-form .actions { text-align: center; margin-top: 30px; }
.onboarding-form .button-next {
  min-width: 320px;
  max-width: 100%;
  padding: 12px 24px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.onboarding-form .button-next:disabled,
.onboarding-form .button-next[disabled] {
  background: #cfcfd8;
  color: #fff;
  cursor: not-allowed;
}

/* Floating "?" help bubble, bottom-right. */
.onboarding-help {
  position: fixed;
  right: 18px;
  bottom: 22px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #76b853;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 60;
}
@media (hover: hover) and (pointer: fine) {
  .onboarding-help:hover { background: #669e49; color: #fff; }
}

/* ===== Awards / certificates / class milestones (issue #372 gap (d)) =========
   PROGRESS-tab widgets + the AWARDS panel (Certificates / Class Milestones /
   Summary). Ported to match the legacy teacher-classroom-awards-* markup; the
   webpack SCSS for these was not mirrored, so these are scoped hand-written
   rules consistent with the existing widget cards above. */
.awards-widget-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.teacher-classroom-widget.--certificates,
.teacher-classroom-widget.--class-awards {
  flex: 1 1 300px;
  margin: 0;
  background: #fff;
  border: 1px solid #e4e2ee;
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
}
.teacher-classroom-widget__header { margin-bottom: 12px; }
.teacher-classroom-widget__body { flex: 1 1 auto; }
.teacher-classroom-widget__footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #efedf6;
}
.teacher-classroom-widget__footer a { color: #0058d7; font-weight: 700; text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .teacher-classroom-widget__footer a:hover { text-decoration: underline; }
}

/* Certificates widget number + label. */
.awards-won { display: flex; align-items: center; gap: 16px; }
.awards-number-box {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: #eef3ff;
  color: #0058d7;
  display: flex;
  align-items: center;
  justify-content: center;
}
.awards-number-box p { margin: 0; font-size: 1.9rem; font-weight: 800; }
.awards-won-label p { margin: 0; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em; color: var(--ty-ink); }
.awards-won-label .certificateNumber { color: #0058d7; }

/* CONGRATS class-award card (line-count + concept milestones). */
.teacher-classroom-card-class-award,
.teacher-classroom-card-class-award-concepts { text-align: center; }
.teacher-classroom-card-class-award h6,
.teacher-classroom-card-class-award-concepts h6 {
  margin: 0 0 10px;
  color: #f5871f;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.teacher-classroom-card-class-award .content p,
.teacher-classroom-card-class-award-concepts .content p { margin: 0 0 12px; font-weight: 600; }
.award-icon-border {
  width: 96px; height: 96px;
  margin: 0 auto;
  border-radius: 50%;
  border: 4px solid #f5871f;
  display: flex; align-items: center; justify-content: center;
}
.award-icon { color: #f5871f; }
.award-icon p { margin: 0; font-size: 1.6rem; font-weight: 800; }
.classroom-icon-awards { max-width: 90px; height: auto; margin: 8px auto 0; display: block; }

/* Awards sub-tabs (Certificates / Class Milestones / Summary). */
.teacher-classroom-awards .tabs.teacher-actions {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0 0 0;
  border-bottom: 2px solid #e4e2ee;
  flex-wrap: wrap;
}
.teacher-classroom-awards .tabs.teacher-actions li { margin: 0; }
.teacher-classroom-awards .tabs.teacher-actions li a {
  display: block;
  padding: 8px 16px;
  color: #6b6880;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
}
.teacher-classroom-awards .tabs.teacher-actions li.is-active a { color: #0058d7; border-bottom-color: #0058d7; }

/* Class-milestone cards row. */
.class-awards-container-row { display: flex; flex-wrap: wrap; gap: 18px; }
.class-award-box {
  flex: 1 1 240px;
  max-width: 320px;
  border: 1px solid #e4e2ee;
  border-radius: 14px;
  padding: 20px;
}

/* Certificates sub-tab grouped list. */
.certificate-group { margin-bottom: 22px; }
.certificate-group .header {
  display: flex;
  align-items: center;
  padding: 8px 6px;
  border-bottom: 2px solid #e4e2ee;
  font-weight: 700;
}
.certificate-group .header .certificate-count { color: #6b6880; font-weight: 600; }
.certificate-group .group {
  display: flex;
  align-items: center;
  padding: 10px 6px;
  border-bottom: 1px solid #efedf6;
}
.certificate-group .group .select-date { display: block; font-size: 0.8rem; font-weight: 700; color: #6b6880; text-align: center; cursor: pointer; }
.certificate-group .header .select-name { cursor: pointer; }
.certificate-group .column-select { text-align: center; }
.certificate-group .column-print { text-align: right; }
.certificate-group .column-print .button { margin: 0; }
.certificate-group .column-print .button[hidden] { display: none; }
.certificate-group .group .certificate-lessons { font-size: 0.8rem; color: #6b6880; }
/* Legacy bulk-actions bar (select-to-print). */
.teacher-classroom-awards-certificates .bulk-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 16px;
  padding: 0.5em 1em;
  border-radius: 6px;
  background-color: #414f5b;
  color: #fff;
}
.teacher-classroom-awards-certificates .bulk-actions[hidden] { display: none; }
.teacher-classroom-awards-certificates .bulk-actions .cancel { color: #fff; text-decoration: underline; }
.teacher-classroom-awards-certificates .bulk-actions .actions { margin-left: auto; display: flex; gap: 1rem; }
.teacher-classroom-awards-certificates .bulk-actions .button { margin: 0; }
.certificate-group .group .user-name { font-weight: 700; color: var(--ty-ink); text-decoration: none; }
.certificate-group .group .certificate-name { color: #0058d7; text-decoration: none; }
.certificate-group .group .actions a { color: #6b6880; margin-left: 10px; text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .certificate-group .group .actions a:hover { color: #0058d7; }
}

/* Summary matrix table (rotated headers + earned circles). */
.table-awards { border-collapse: collapse; width: 100%; }
.table-awards th, .table-awards td {
  border: 1px solid #eceaf4;
  padding: 8px 10px;
  text-align: center;
}
.table-awards thead th.corner { text-align: left; font-weight: 800; }
.table-awards tbody th { text-align: left; }
.table-awards tbody th .user-name { color: #0058d7; text-decoration: none; font-weight: 700; }
.table-awards .award-name { font-size: 0.82rem; font-weight: 700; color: var(--ty-ink); }
.table-awards .circle {
  display: inline-block;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid #c9c6d8;
  background: #fff;
}
.table-awards .circle.earned { border-color: #76b853; background: #76b853; }

/* LESSONS-tab per-item planning controls (issue #376). */
.lesson-plan-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px 0;
}
.lesson-plan-item.is-hidden .lesson-plan-item__title { color: #9995ac; text-decoration: line-through; }
.lesson-plan-item__title { font-weight: 600; }
.lesson-plan-item__controls { display: inline-flex; align-items: center; gap: 12px; margin-left: auto; }
.ty-badge--muted { background: #efedf6; color: #6b6880; }
.ty-linkbtn--danger { color: #c0392b; }

/* Class-detail panels: several sections ran flush to the shell's left edge
   (x=200). Legacy renders them in the same zf-row + zf-column centered
   column as the other teacher pages — 1170px content, 15px gutters. The
   roster wrap already self-centers at 86% (= 1164px of the same column),
   so it keeps its own rule; everything else flush gets this one. */
.class-panel > .teacher-classroom-activities-banner,
.class-panel > .teacher-classroom-widget-row,
.class-panel > .cp-dash,
.class-panel > .teacher-classroom-courses,
.class-panel > .boxed {
  width: min(1170px, calc(100% - 30px));
  margin-left: auto;
  margin-right: auto;
}

/* PROGRESS tab: legacy widget grid + always-available layout controls. */
.cp-dash { box-sizing: border-box; padding: 0 20px 24px; }
.cp-dash *, .cp-dash *::before { box-sizing: border-box; }
.cp-widgets { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; align-items: stretch; padding-top: 6px; }
.cp-widget { position: relative; min-width: 0; grid-column: span 2; display: flex; flex-direction: column; }
.cp-widget.--two-thirds { grid-column: span 4; }
.cp-widget > .teacher-classroom-widget { flex: 1 1 auto; max-width: none; margin: 0; }
.cp-layout-tools { display: flex; justify-content: flex-end; align-items: center; padding-top: 10px; padding-bottom: 14px; }
.cp-reset { border: 0; background: none; padding: 2px 4px; color: var(--ty-muted); font-size: 0.8rem; text-decoration: underline; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .cp-reset:hover { color: var(--ty-purple-dark); } }
.cp-muted { color: var(--ty-muted); font-size: 0.8rem; }
.cp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 900px) { .cp-widget, .cp-widget.--two-thirds { grid-column: 1 / -1; } }
/* Legacy widget bodies */
.cp-empty { text-align: center; margin: 12px 0; color: var(--ty-muted); }
.teacher-classroom-widget:not(.--checklist):not(.--course-progress) { background: #fff; border: 1px solid #e4e2ee; border-radius: 14px; padding: 22px 22px 16px; display: flex; flex-direction: column; margin: 0; }
.teacher-classroom-widget:not(.--checklist) .teacher-classroom-widget__body { flex: 1 1 auto; }
.teacher-classroom-widget:not(.--checklist) .teacher-classroom-widget__footer { margin-top: 12px; text-align: center; font-weight: 700; font-size: 0.85rem; }
.teacher-classroom-widget .task .item a { color: inherit; text-decoration: none; }
.teacher-classroom-widget.--activity .teacher-classroom-widget__title.--subtitle { font-size: 1rem; margin-bottom: 10px; }
.cp-fact { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 0.9rem; }
.project-list { list-style: none; margin: 0; padding: 0; max-height: 230px; overflow-y: auto; }
.project-list .project { display: flex; align-items: center; gap: 10px; padding: 7px 4px; color: var(--ty-ink); text-decoration: none; border-bottom: 1px solid var(--ty-line); }
.project__play-icon { width: 28px; height: 28px; flex: 0 0 auto; border-radius: 50%; background: #efeaf9; color: var(--ty-purple-dark); display: grid; place-items: center; font-size: 0.8rem; }
.project__details { display: flex; flex-direction: column; min-width: 0; }
.project__title { font-weight: 600; font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project__author { font-size: 0.75rem; color: var(--ty-muted); }
.awards-won { display: flex; align-items: center; justify-content: center; gap: 14px; text-align: left; font-size: 0.85rem; }
.cp-badge { width: 54px; height: 54px; border-radius: 50%; border: 4px solid var(--ty-teal); display: grid; place-items: center; font-size: 1.2rem; color: var(--ty-ink); }
.cp-badge.--lg { width: 84px; height: 84px; margin: 8px auto; font-size: 1.5rem; }
.teacher-classroom-card-class-award { text-align: center; }
.teacher-classroom-card-class-award h6 { margin: 0 0 6px; font-weight: 700; color: var(--ty-purple-dark); }
.cp-copy { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--ty-purple-dark); font-weight: 700; font-size: 0.78rem; cursor: pointer; }
/* Legacy widget-concepts: a fixed-height card whose student list scrolls,
   numbered legend pills, and bars colored beginner blue / intermediate purple
   with every higher level grey (legacy getBarStyle). */
.teacher-classroom-widget.--concepts .teacher-classroom-widget__body { max-height: 280px; overflow-y: auto; }
.teacher-classroom-widget.--concepts .concepts-bars__row { grid-template-columns: 90px 1fr 30px; gap: 6px; padding: 2px 0; font-size: 0.72rem; }
.teacher-classroom-widget.--concepts .concepts-bars__bar-wrap { height: 16px; border-radius: 3px; }
.concepts-bars__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 10px; font-size: 0.72rem; color: var(--ty-ink); }
.cp-level { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 18px; margin-right: 2px; border-radius: 6px; font-size: 0.72rem; font-style: normal; color: #333; }
.cp-level.--beginner { background: #d5e3e8; }
.cp-level.--intermediate { background: #dddffd; }
.cp-level.--advanced { background: #c0e8ba; }
.cp-level.--mastered { background: #f2cfa4; }
.cp-seg.--beginner { background: #62a5dd; }
.cp-seg.--intermediate { background: #7572bf; }
.cp-seg.--advanced, .cp-seg.--mastered { background: #a0a0a0; }
.concepts-bars__row { display: grid; grid-template-columns: minmax(90px, 160px) 1fr 28px; gap: 10px; align-items: center; padding: 4px 0; font-size: 0.85rem; }
.concepts-bars__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.concepts-bars__name.--top { font-weight: 700; color: #2e7d32; }
.concepts-bars__name.--bottom { color: #c62828; }
.concepts-bars__bar-wrap { height: 18px; background: #f2f1f7; border-radius: 4px; overflow: hidden; }
.concepts-bars__bar { display: flex; height: 100%; }
.cp-seg { display: block; height: 100%; }
.concepts-bars__value { text-align: right; font-weight: 700; }
.cp-widget { cursor: grab; }
.cp-widget a, .cp-widget button, .cp-widget input { cursor: pointer; }
.cp-widget__handle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cp-widget:has(.cp-widget__handle:focus-visible) { outline: 2px solid var(--ty-purple-dark); outline-offset: 4px; border-radius: 14px; }
/* While dragging, the moving widget stays visible, slightly dimmed, and the
   others reorder live around it. */
.cp-widgets.is-dragging .cp-widget { cursor: grabbing; }
.cp-widget.is-dragging { opacity: 0.6; }
/* Legacy widget chrome (sass/.../classroom/_teacher-classroom-widget*.scss):
   shadowed 10px cards, row heights 320/360/380, vertically centered bodies,
   dark underlined uppercase footer links. Scoped to the PROGRESS grid so the
   AWARDS tab's cards keep their own look. Concept Mastery keeps its body. */
.cp-widget > .teacher-classroom-widget { border: 0; border-radius: 10px; box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3); padding: 20px; min-height: 320px; }
.cp-widget > .teacher-classroom-widget.--checklist { border: 4px solid #e67300; }
.cp-widget > .--new-projects, .cp-widget > .--certificates, .cp-widget > .--class-awards { min-height: 360px; }
.cp-widget > .--concepts, .cp-widget > .--course-progress { min-height: 380px; }
.cp-widget > :is(.--activity, .--new-projects, .--certificates, .--class-awards) > .teacher-classroom-widget__body { flex: 0 1 auto; margin: auto 0; min-height: 0; }
.cp-widget .teacher-classroom-widget__footer { margin-top: 0; padding: 10px 0 5px; border-top: 0; text-align: center; font-size: 1rem; }
.cp-widget .teacher-classroom-widget__footer a,
.cp-widget .teacher-classroom-widget__footer a:visited { color: #25293a; text-decoration: underline; text-transform: uppercase; font-weight: 700; border-radius: 4px; padding: 2px 4px; }
.cp-widget .teacher-classroom-widget__footer a:focus-visible { background: #fdeedd; color: #25293a; }
@media (hover: hover) and (pointer: fine) { .cp-widget .teacher-classroom-widget__footer a:hover { background: #fdeedd; color: #25293a; } }
.cp-widget .--checklist .task .number { color: #ff8d1a; font-size: 26px; width: 16.67%; margin-right: 0; }
/* Legacy _teacher-classroom-widget-checklist.scss: 60px pencil art 10px in,
   20px boxes with a #bcb5b5 border, an 80%-wide task column in a 2/8/2 grid. */
.cp-widget > .teacher-classroom-widget.--checklist { min-height: 300px; max-height: 360px; padding: 20px; }
.cp-widget .--checklist .icon-box { top: 10px; right: 10px; width: 60px; height: 60px; border-radius: 0; }
.cp-widget .--checklist .task { width: 80%; max-width: none; gap: 0; padding: 0; margin: 0 auto 1rem; }
.cp-widget .--checklist .task .checkbox { width: 20px; height: 20px; border-radius: 3px; margin-left: auto; }
.cp-widget .--checklist .task .checkbox.unchecked { border: 2px solid #bcb5b5; }
/* Item strings carry their own caps; a lesson title keeps its case (legacy). */
.cp-widget .--checklist .task .item { flex: 0 0 66.67%; color: #4d4d4d; font-size: 14px; letter-spacing: 0; text-transform: none; }
/* Latest Class Activity: link-blue lesson title, trophy-led facts. */
.cp-widget .--activity .teacher-classroom-widget__title.--subtitle { color: #6784e7; font-size: 1.1rem; margin-bottom: 1rem; }
.cp-widget .--activity .cp-fact { gap: 1rem; margin: 0 0 10px; padding: 0 1rem; font-size: 1rem; }
/* Legacy _teacher-classroom-widget-activity.scss: Icon_02.png trophy art. */
.cp-widget .--activity .activity-icon { flex: 0 0 auto; width: 32px; height: 38px; background: url("/image/classroom/Icon_02.png") center / contain no-repeat; }
/* Newly Created Projects: shadowed project cards with a play disc. */
.cp-widget .--new-projects .project-list { max-height: 240px; padding: 4px 0; }
.cp-widget .--new-projects .project-list > li { margin-bottom: 10px; }
.cp-widget .--new-projects .project-list .project { gap: 0; margin: 0 10px; padding: 10px; border: 1px solid #c9c9c9; border-radius: 8px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); color: #4d4d4d; font-size: 14px; }
.cp-widget .--new-projects .project-list .project:focus-visible { background: #fdeedd; }
@media (hover: hover) and (pointer: fine) { .cp-widget .--new-projects .project-list .project:hover { background: #fdeedd; text-decoration: none; } }
.cp-widget .--new-projects .project__play-icon { width: 32px; height: 32px; border: 1.5px solid #9a9a9a; background: #fff; color: #f5871f; font-size: 0.9rem; }
.cp-widget .--new-projects .project__details { margin-left: 20px; line-height: 1.25; }
.cp-widget .--new-projects .project__title { font-weight: 700; font-size: 14px; }
.cp-widget .--new-projects .project__author { font-size: 14px; font-weight: 400; color: #4d4d4d; }
/* Certificates: big orange rounded-square count above the caption. */
.cp-widget .--certificates .awards-won { display: block; text-align: center; }
.cp-widget .--certificates .awards-number-box { width: 150px; height: 100px; margin: 1rem auto; background: #ffebd8; border: 5px solid #e67301; border-radius: 25px; box-shadow: 3px 4px 1px rgba(0, 0, 0, 0.05); }
.cp-widget .--certificates .awards-number-box p { margin: 0; color: #e67301; font-size: 4rem; font-weight: 700; line-height: 1; }
.cp-widget .--certificates .awards-won > p { margin: 0; font-weight: 700; line-height: 1.5rem; color: #25293a; }
.cp-widget .--certificates .certificateNumber { color: #6280e2; }
/* Class Awards: CONGRATS card with the dashed-ring line-count badge. */
.cp-widget .--class-awards .teacher-classroom-card-class-award h6 { margin: 0; color: #25293a; font-size: 1rem; }
.cp-widget .--class-awards .teacher-classroom-card-class-award p { margin: 0; padding-bottom: 8px; font-size: 1rem; font-weight: 700; color: #0a0a0a; }
.cp-widget .--class-awards .award-icon-border { width: 76px; height: 76px; margin: 0 auto; border: 6px dashed #6683ea; border-radius: 50%; }
.cp-widget .--class-awards .award-icon { width: 56px; height: 56px; margin: 4px; border-radius: 50%; background: #6683ea; display: grid; place-items: center; }
.cp-widget .--class-awards .award-icon p { padding: 0; color: #fff; font-size: 125%; line-height: 1; }
.cp-widget .--class-awards .cp-copy { margin-top: 8px; color: #0a0a0a; font-size: 1rem; }
.cp-copy__icon { box-sizing: content-box; padding: 5px; border-radius: 50%; background: #4c89e4; color: #fff; }
.lessons__assign-all { display: inline; margin: 0; }
.lessons__assign-all .ty-linkbtn { font-size: 0.8rem; font-weight: 700; }
.lessons__header--course { position: relative; }
/* Legacy "..." card-more-options menu, top-right of the course panel. */
.lessons__more { position: absolute; top: 0; right: 0; }
.lessons__more-button { margin: 0; padding: 0 10px; border: 0; background: transparent; font-size: 1.6rem; line-height: 1; font-weight: 800; color: var(--ty-muted); cursor: pointer; }
.lessons__more-menu { position: absolute; right: 0; top: 100%; z-index: 20; min-width: 190px; margin: 4px 0 0; padding: 6px 0; list-style: none; background: #fff; border: 1px solid var(--ty-line); border-radius: 10px; box-shadow: 0 8px 24px rgba(60, 50, 110, 0.2); }
.lessons__more-menu[hidden] { display: none; }
.lessons__more-menu li { margin: 0; }
.lessons__more-menu a, .lessons__more-menu button { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0; padding: 8px 14px; border: 0; background: transparent; color: var(--ty-ink); font-size: 0.9rem; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
.lessons__more-menu a:hover, .lessons__more-menu button:hover { background: #efedf9; }
a.ty-classroom-assignment__detail-action:hover .ty-classroom-assignment__title { text-decoration: underline; }
.lessons__more-menu svg { flex: none; }
/* In-place lesson actions: saving state + result notice (TYNKER-1551). */
.teacher-classroom-courses[aria-busy="true"] .lessons-container { opacity: 0.6; pointer-events: none; }
.teacher-classroom-courses[aria-busy="true"] { cursor: progress; }
.lessons-status { position: fixed; left: 50%; bottom: 24px; z-index: 30; transform: translateX(-50%); margin: 0; padding: 10px 18px; border-radius: 10px; background: var(--ty-indigo-dark); color: #fff; font-weight: 700; font-size: 0.92rem; box-shadow: 0 8px 24px rgba(30, 20, 70, 0.3); }
.lessons-status[hidden] { display: none; }
.lessons-confirm { border: 0; border-radius: 14px; padding: 24px 28px; max-width: 420px; box-shadow: 0 16px 48px rgba(30, 20, 70, 0.35); }
.lessons-confirm::backdrop { background: rgba(30, 20, 70, 0.45); }
.lessons-confirm__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.lessons-confirm__actions .button { margin: 0; }

/* ---- STUDENTS tab refresh: filters, status chips, progress, avatars ---- */
.class-panel .roster-wrap { width: 94%; }

.roster-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.roster-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #c9dbde;
  border-radius: 20px;
  padding: 0 14px;
  color: #666;
}
.roster-search input {
  border: none;
  outline: none;
  box-shadow: none;
  background: transparent;
  margin: 0;
  height: 36px;
  min-width: 220px;
}
.roster-filters select { margin: 0; width: auto; min-width: 160px; }
.roster-count { margin-left: auto; font-size: 13px; color: var(--ty-muted); font-weight: 600; }

.ty-table.ty-roster thead th { position: sticky; top: 0; z-index: 1; background: #eaf8fd; }
.roster-wrap .ty-table-scroll { max-height: 640px; overflow-y: auto; }
.ty-table.ty-roster th, .ty-table.ty-roster td { min-width: 0; padding: 12px 10px; }

.roster-sort {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.roster-sort::after { content: ""; display: inline-block; margin-left: 5px; border: 4px solid transparent; vertical-align: middle; opacity: .25; border-top-color: currentColor; }
.roster-sort[data-dir="asc"]::after { border-top-color: transparent; border-bottom-color: currentColor; opacity: 1; margin-top: -4px; }
.roster-sort[data-dir="desc"]::after { opacity: 1; margin-top: 4px; }

.roster-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #0768e4;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
  flex: none;
}
.roster-avatar img { width: 100%; height: 100%; object-fit: cover; }



.roster-empty {
  text-align: center;
  padding: 48px 20px;
  background: #eaf8fd;
  border: 1px solid #c9dbde;
  border-radius: 12px;
}
.roster-empty__icon { color: #0768e4; }
.roster-empty h3 { margin: 10px 0 6px; }
.roster-empty__provider { margin: 24px 0 0; font-weight: 600; }
.roster-empty__actions { display: flex; justify-content: center; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 16px; }
.roster-empty .button.secondary {
  display: inline-flex; align-items: center; gap: 6px;
  background: #0768e4; color: #fff; border: none; border-radius: 4px;
  padding: 9px 20px; font-weight: 700; text-transform: uppercase;
}
.roster-bulk [hidden] { display: none !important; }
.ty-roster .ty-roster__name { flex-wrap: nowrap; justify-content: flex-start; white-space: nowrap; }
.ty-roster .ty-roster__name .js-edit-form { white-space: normal; }
.ty-roster__pwactions { font-size: 0.85rem; margin-top: 4px; }
.ty-roster .js-edit-form { display: flex; flex: 1 1 0; min-width: 0; flex-wrap: wrap; align-items: center; gap: 6px; }
.ty-roster .js-edit-form input[type="text"] { flex: 1 1 130px; min-width: 0; }
.ty-roster .js-edit-form .ty-roster__pwactions { flex-basis: 100%; margin-top: 0; }
.ty-table.ty-roster th, .ty-table.ty-roster td { padding-left: 6px; padding-right: 6px; }
.ty-table.ty-roster th:first-child, .ty-table.ty-roster td:first-child { padding-left: 16px; }
.roster-sort { white-space: nowrap; }
.roster-nomatch { padding: 28px 10px !important; color: var(--ty-muted); }

.ty-classroom-assignment__assigned-to { margin: 4px 0 0; font-size: 0.8rem; color: #555; }

/* Assign / Per-Student Access modal (and its page fallback). */
.lessons-confirm.lstu-modal { width: min(560px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 48px); padding: 24px 28px; }
.lstu-modal[aria-busy="true"] [data-lstu-body] { opacity: .5; pointer-events: none; }
.lstu-modal__close { position: absolute; top: 12px; right: 12px; display: inline-flex; padding: 8px; border: 0; border-radius: 50%; background: transparent; color: var(--ty-muted); font-size: 1.1rem; cursor: pointer; }
.lstu-modal__close:hover, .lstu-modal__close:focus-visible { background: #efedf9; color: var(--ty-ink); outline: none; }
.lstu-head { margin: 0 40px 16px 0; }
.lstu-head__title { margin: 0; font-size: 1.4rem; }
.lstu-head__meta { margin: 4px 0 0; color: var(--ty-muted); }
.lstu-flash__msg { margin: 0 0 12px; padding: 8px 12px; border-radius: 8px; background: #e8f5e9; color: #1b5e20; }
.lstu-flash__msg.is-error { background: #fdecea; color: #8a1c1c; }
/* All students / Choose students, then the roster checklist while Choose is picked. */
.lstu-options { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 12px; padding: 0; border: 0; }
.lstu-options label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; cursor: pointer; }
.lstu-options input { margin: 0; }
.lstu:has(input[name="selection"][value="all"]:checked) .lstu-list { display: none; }
.lstu-list { max-height: 50vh; overflow-y: auto; border-top: 1px solid #d8dfe1; }
.lstu-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 10px 12px; border-bottom: 1px solid #d8dfe1; cursor: pointer; }
.lstu-row:hover, .lstu-row:focus-within { background: #f3f5fc; }
/* Assigned switch: a styled checkbox, saved with the form's Assign / Save. */
.lstu-toggle { display: inline-flex; align-items: center; gap: 10px; }
.lstu-toggle:has(.lstu-switch:checked) [data-off], .lstu-toggle:not(:has(.lstu-switch:checked)) [data-on] { display: none; }
.lstu-state { font-size: 0.85rem; }
.lstu-switch { appearance: none; position: relative; flex: none; width: 40px; height: 22px; margin: 0; border-radius: 11px; background: #c4c9d0; cursor: pointer; transition: background 0.15s; }
.lstu-switch::before { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left 0.15s; }
.lstu-switch:checked { background: #1779ba; }
.lstu-switch:checked::before { left: 21px; }
.lstu-switch:focus-visible { outline: 2px solid #0b5a8f; outline-offset: 2px; }
.lstu-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 16px; }
.lstu-actions .button { margin: 0; }
