:root {
  --ink: #1e2928;
  --ink-soft: #52615f;
  --paper: #f5f6f1;
  --surface: #ffffff;
  --line: #dfe4df;
  --teal: #0f766e;
  --teal-dark: #173a36;
  --teal-pale: #d9efeb;
  --coral: #e6674d;
  --coral-pale: #fae3dc;
  --mustard: #e6ad2f;
  --mustard-pale: #fff1c7;
  --blue: #426b8a;
  --blue-pale: #dceaf4;
  --violet: #765785;
  --violet-pale: #eee4f1;
  --danger: #b44735;
  --shadow: 0 12px 32px rgba(21, 49, 45, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  letter-spacing: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.28);
  outline-offset: 2px;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: 228px;
  min-height: 100vh;
  flex-direction: column;
  padding: 26px 18px 20px;
  color: #f7fbf9;
  background: var(--teal-dark);
}

.brand,
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand {
  padding: 0 8px 30px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 2px solid #f8c654;
  color: #f8c654;
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 700;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-family: Georgia, serif;
  font-size: 17px;
}

.brand-copy small {
  margin-top: 5px;
  color: #a8c4be;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.main-nav {
  display: grid;
  gap: 5px;
}

.nav-item {
  display: flex;
  min-height: 45px;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border-left: 3px solid transparent;
  color: #b9cfca;
  font-size: 14px;
  font-weight: 650;
  transition: background 160ms ease, color 160ms ease;
}

.nav-item:hover,
.nav-item.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-item.active {
  border-left-color: #f8c654;
}

.nav-icon {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 800;
}

.admin-entry {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  margin: 18px 8px 0;
  padding: 0 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  color: #a8c4be;
  font-size: 11px;
  font-weight: 750;
}

.admin-entry:hover,
.admin-entry.active {
  color: #fff;
}

.admin-entry-icon {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
}

.sidebar-streak {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: auto 5px 22px;
  padding: 16px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.streak-count {
  display: grid;
  width: 46px;
  height: 52px;
  flex: 0 0 46px;
  place-content: center;
  text-align: center;
  color: var(--teal-dark);
  background: #f8c654;
}

.streak-count strong {
  font: 700 21px/1 Georgia, serif;
}

.streak-count span {
  margin-top: 2px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.sidebar-streak > div:last-child strong {
  font-size: 13px;
}

.sidebar-streak p {
  margin: 4px 0 0;
  color: #9ebbb5;
  font-size: 11px;
  line-height: 1.35;
}

.sidebar-profile,
.top-profile {
  display: flex;
  align-items: center;
  border: 0;
  cursor: pointer;
}

.sidebar-profile {
  width: 100%;
  gap: 10px;
  padding: 9px;
  color: #fff;
  background: transparent;
  text-align: left;
}

.sidebar-profile > span:nth-child(2),
.top-profile-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.sidebar-profile strong,
.top-profile strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-profile small,
.top-profile small {
  margin-top: 3px;
  color: #9ebbb5;
  font-size: 10px;
}

.profile-caret {
  color: #9ebbb5;
  font-size: 18px;
}

.avatar {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 50%;
  color: var(--teal-dark);
  background: #f7d47d;
  font-size: 11px;
  font-weight: 800;
}

.workspace {
  min-width: 0;
  margin-left: 228px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 246, 241, 0.95);
  backdrop-filter: blur(14px);
}

.mobile-brand {
  display: none;
}

.search-field {
  position: relative;
  display: flex;
  width: min(420px, 48vw);
  height: 40px;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
}

.search-symbol {
  position: relative;
  width: 15px;
  height: 15px;
  margin-left: 14px;
  border: 1.8px solid #677571;
  border-radius: 50%;
}

.search-symbol::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 2px;
  background: #677571;
  content: "";
  transform: rotate(45deg);
}

.search-field input {
  min-width: 0;
  height: 100%;
  flex: 1;
  padding: 0 12px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
}

.search-field kbd {
  margin-right: 9px;
  padding: 2px 7px;
  border: 1px solid #d5dbd7;
  color: #6f7d79;
  background: #f4f5f2;
  font-family: inherit;
  font-size: 11px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-button {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}

.bell-symbol {
  position: relative;
  width: 14px;
  height: 15px;
  border: 1.8px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 2px 2px;
}

.bell-symbol::before {
  position: absolute;
  right: -3px;
  bottom: -3px;
  left: -3px;
  height: 1.8px;
  background: currentColor;
  content: "";
}

.bell-symbol::after {
  position: absolute;
  bottom: -6px;
  left: 5px;
  width: 4px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: currentColor;
  content: "";
}

.notification-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--coral);
}

.top-profile {
  min-width: 168px;
  gap: 9px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
}

.top-profile small {
  color: var(--ink-soft);
}

.popover {
  position: absolute;
  top: 62px;
  z-index: 40;
  width: 330px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.notification-popover {
  right: 210px;
}

.profile-popover {
  right: 28px;
  width: 190px;
  padding: 6px;
}

.popover-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  border-bottom: 1px solid var(--line);
}

.popover-heading button,
.profile-popover button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.popover-heading button {
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
}

.notification-item {
  display: flex;
  gap: 10px;
  padding: 14px 15px;
  border-bottom: 1px solid #edf0ec;
}

.notification-item:last-child {
  border-bottom: 0;
}

.notification-item.unread {
  background: #f3f9f7;
}

.notice-marker {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--teal);
}

.notification-item:not(.unread) .notice-marker {
  background: #c9d0cd;
}

.notification-item strong {
  font-size: 12px;
}

.notification-item p {
  margin: 4px 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.45;
}

.notification-item small {
  color: #88928f;
  font-size: 10px;
}

.profile-popover button {
  width: 100%;
  padding: 10px;
  color: var(--ink);
  text-align: left;
}

.profile-popover button:hover {
  background: var(--paper);
}

#app {
  width: min(1240px, 100%);
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 30px 34px 52px;
  outline: 0;
}

.view-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.eyebrow {
  margin-bottom: 7px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.view-header h1 {
  margin-bottom: 5px;
  font-family: Georgia, serif;
  font-size: 31px;
  font-weight: 700;
  line-height: 1.15;
}

.view-header p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.date-chip {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: #fff;
  font-size: 12px;
  font-weight: 650;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, 0.8fr);
  gap: 18px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.continue-panel {
  position: relative;
  display: grid;
  min-height: 260px;
  grid-template-columns: minmax(0, 1fr) 180px;
  overflow: hidden;
  color: #fff;
  background: var(--teal-dark);
}

.continue-copy {
  position: relative;
  z-index: 2;
  padding: 28px 8px 26px 28px;
}

.continue-panel .eyebrow {
  color: #f8c654;
}

.continue-panel h2 {
  max-width: 480px;
  margin-bottom: 10px;
  font-family: Georgia, serif;
  font-size: 27px;
  line-height: 1.15;
}

.continue-panel p {
  max-width: 430px;
  margin-bottom: 20px;
  color: #bdd2cd;
  font-size: 13px;
  line-height: 1.55;
}

.lesson-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 22px;
  color: #d8e5e1;
  font-size: 11px;
  font-weight: 650;
}

.lesson-meta span::before {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 7px 1px 0;
  border-radius: 50%;
  background: #f8c654;
  content: "";
}

.book-visual {
  position: relative;
  align-self: end;
  height: 226px;
  margin-right: -3px;
}

.book-visual img {
  position: absolute;
  right: -28px;
  bottom: -26px;
  width: 190px;
  transform: rotate(7deg);
}

.book-cover-copy {
  position: absolute;
  right: 36px;
  bottom: 79px;
  z-index: 1;
  width: 96px;
  color: #f8fbff;
  text-align: center;
  transform: rotate(7deg);
}

.book-cover-copy strong,
.book-cover-copy small {
  display: block;
}

.book-cover-copy strong {
  font-family: Georgia, serif;
  font-size: 18px;
}

.book-cover-copy small {
  margin-top: 5px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
}

.button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition: transform 140ms ease, background 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #18342f;
  background: #f8c654;
}

.button-secondary {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
}

.button-teal {
  color: #fff;
  background: var(--teal);
}

.button-danger {
  color: #fff;
  background: var(--danger);
}

.readiness-panel {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 24px;
}

.panel-kicker {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.readiness-main {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 18px 0;
}

.progress-ring {
  --progress: 72;
  position: relative;
  display: grid;
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--teal) calc(var(--progress) * 1%), #e8eeea 0);
}

.progress-ring::before {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.progress-ring span {
  position: relative;
  font: 700 24px Georgia, serif;
}

.readiness-copy strong {
  display: block;
  margin-bottom: 4px;
  font: 700 20px Georgia, serif;
}

.readiness-copy span {
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.4;
}

.readiness-note {
  margin: auto 0 0;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 13px;
}

.section-heading h2 {
  margin-bottom: 3px;
  font-family: Georgia, serif;
  font-size: 19px;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.text-button {
  padding: 5px 0;
  border: 0;
  color: var(--teal);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.today-section {
  min-width: 0;
}

.task-list {
  border-top: 1px solid var(--line);
}

.task-row {
  display: grid;
  min-height: 74px;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.task-check {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid #bdc7c3;
  border-radius: 50%;
  color: transparent;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.task-row.done .task-check {
  border-color: var(--teal);
  color: #fff;
  background: var(--teal);
}

.task-row.done .task-title {
  color: #7a8783;
  text-decoration: line-through;
}

.task-subject {
  margin-bottom: 4px;
  color: var(--teal);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.task-title {
  overflow: hidden;
  font-size: 13px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-duration {
  color: var(--ink-soft);
  font-size: 11px;
}

.task-type {
  min-width: 60px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: #fff;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.week-section {
  min-width: 0;
}

.week-panel {
  padding: 18px;
}

.week-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 19px;
}

.day {
  display: grid;
  height: 48px;
  place-content: center;
  border: 1px solid transparent;
  color: var(--ink-soft);
  text-align: center;
}

.day strong,
.day small {
  display: block;
}

.day strong {
  margin-top: 2px;
  font-size: 12px;
}

.day small {
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.day.studied {
  color: var(--teal-dark);
  background: var(--teal-pale);
}

.day.today {
  border-color: var(--teal);
  color: #fff;
  background: var(--teal);
}

.week-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.week-stat:last-child {
  padding-bottom: 0;
}

.week-stat span {
  color: var(--ink-soft);
  font-size: 11px;
}

.week-stat strong {
  font: 700 18px Georgia, serif;
}

.mobile-nav {
  display: none;
}

.subjects-toolbar,
.practice-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.segmented-control {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  background: #fff;
}

.segmented-control button {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}

.segmented-control button.active {
  color: #fff;
  background: var(--teal-dark);
}

.subject-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.subject-card {
  position: relative;
  display: grid;
  min-height: 245px;
  grid-template-columns: minmax(0, 1fr) 118px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 5px solid var(--subject-color);
  border-radius: 6px;
  background: #fff;
}

.subject-copy {
  padding: 23px 12px 21px 22px;
}

.subject-copy h2 {
  margin-bottom: 7px;
  font-family: Georgia, serif;
  font-size: 21px;
}

.subject-copy > p {
  min-height: 39px;
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
}

.subject-progress {
  margin-bottom: 18px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 10px;
  font-weight: 750;
}

.progress-track {
  height: 5px;
  overflow: hidden;
  background: #e8ece9;
}

.progress-track span {
  display: block;
  height: 100%;
  background: var(--subject-color, var(--teal));
}

.subject-visual {
  display: grid;
  height: 100%;
  place-items: center;
  color: var(--subject-color);
  background: var(--subject-pale);
  font: 700 62px Georgia, serif;
}

.subject-visual small {
  position: absolute;
  right: 13px;
  bottom: 12px;
  font: 800 8px/1.2 Inter, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.math { --subject-color: var(--teal); --subject-pale: var(--teal-pale); }
.language { --subject-color: var(--coral); --subject-pale: var(--coral-pale); }
.science { --subject-color: var(--blue); --subject-pale: var(--blue-pale); }
.social { --subject-color: var(--violet); --subject-pale: var(--violet-pale); }

.practice-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.65fr);
  gap: 18px;
}

.quiz-panel {
  min-height: 480px;
  padding: 28px;
}

.quiz-intro {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  justify-content: center;
}

.quiz-intro h2,
.quiz-question h2,
.quiz-result h2 {
  max-width: 680px;
  margin-bottom: 12px;
  font-family: Georgia, serif;
  font-size: 27px;
  line-height: 1.25;
}

.quiz-intro > p,
.quiz-result > p {
  max-width: 570px;
  margin-bottom: 24px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.quiz-feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}

.quiz-feature {
  padding: 14px;
  border-left: 3px solid var(--teal);
  background: #f5f8f6;
}

.quiz-feature strong,
.quiz-feature span {
  display: block;
}

.quiz-feature strong {
  font: 700 18px Georgia, serif;
}

.quiz-feature span {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.quiz-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 26px;
}

.quiz-progress {
  height: 5px;
  flex: 1;
  background: #e6ebe7;
}

.quiz-progress span {
  display: block;
  height: 100%;
  background: var(--teal);
  transition: width 180ms ease;
}

.quiz-topline strong {
  font-size: 11px;
}

.question-type {
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.answer-list {
  display: grid;
  gap: 9px;
  margin: 24px 0;
}

.answer-option {
  display: grid;
  min-height: 52px;
  grid-template-columns: 29px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.answer-option:hover,
.answer-option.selected {
  border-color: var(--teal);
  background: #f2faf7;
}

.answer-option.correct {
  border-color: var(--teal);
  background: var(--teal-pale);
}

.answer-option.incorrect {
  border-color: var(--danger);
  background: #fae8e4;
}

.answer-letter {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #c8d0cc;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 850;
}

.explanation {
  margin: 4px 0 20px;
  padding: 14px 16px;
  border-left: 3px solid var(--teal);
  background: #f1f7f5;
  font-size: 12px;
  line-height: 1.55;
}

.quiz-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.practice-sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
}

.practice-config,
.tip-panel {
  padding: 20px;
}

.practice-config h3,
.tip-panel h3 {
  margin-bottom: 16px;
  font-family: Georgia, serif;
  font-size: 17px;
}

.field-label {
  display: block;
  margin-bottom: 13px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.field-label select {
  width: 100%;
  height: 40px;
  margin-top: 6px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
}

.tip-panel {
  border-top: 4px solid var(--mustard);
  background: var(--mustard-pale);
}

.tip-panel p {
  margin-bottom: 0;
  color: #6a5520;
  font-size: 11px;
  line-height: 1.6;
}

.result-score {
  display: grid;
  width: 118px;
  height: 118px;
  margin-bottom: 22px;
  place-items: center;
  border: 8px solid var(--teal-pale);
  border-radius: 50%;
  color: var(--teal);
  font: 700 35px Georgia, serif;
}

.progress-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.metric {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--metric-color, var(--teal));
  border-radius: 6px;
  background: #fff;
}

.metric span,
.metric strong,
.metric small {
  display: block;
}

.metric span {
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric strong {
  font: 700 27px Georgia, serif;
}

.metric small {
  margin-top: 5px;
  color: var(--teal);
  font-size: 9px;
  font-weight: 750;
}

.progress-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(270px, 0.65fr);
  gap: 18px;
}

.chart-panel,
.breakdown-panel {
  padding: 22px;
}

.chart-panel h2,
.breakdown-panel h2 {
  margin-bottom: 4px;
  font-family: Georgia, serif;
  font-size: 19px;
}

.chart-panel > p,
.breakdown-panel > p {
  margin-bottom: 22px;
  color: var(--ink-soft);
  font-size: 11px;
}

.bar-chart {
  display: grid;
  height: 210px;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 12px;
  padding-top: 12px;
  border-bottom: 1px solid var(--line);
}

.bar-column {
  display: grid;
  height: 100%;
  grid-template-rows: 1fr 22px;
  align-items: end;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.bar {
  position: relative;
  width: 100%;
  min-height: 4px;
  background: var(--teal);
}

.bar:hover::after {
  position: absolute;
  top: -28px;
  left: 50%;
  padding: 4px 6px;
  color: #fff;
  background: var(--ink);
  content: attr(data-value);
  font-size: 9px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.breakdown-list {
  display: grid;
  gap: 17px;
}

.breakdown-row .progress-label {
  font-size: 11px;
}

.breakdown-row .progress-track {
  height: 7px;
}

.activity-table {
  width: 100%;
  margin-top: 22px;
  border-collapse: collapse;
  background: #fff;
}

.activity-table caption {
  padding: 16px 0 10px;
  font: 700 19px Georgia, serif;
  text-align: left;
}

.activity-table th,
.activity-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  text-align: left;
}

.activity-table th {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.score-pill {
  display: inline-block;
  min-width: 45px;
  padding: 4px 7px;
  color: var(--teal-dark);
  background: var(--teal-pale);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.lesson-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 20px;
}

.lesson-content {
  padding: 30px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 0;
  border: 0;
  color: var(--teal);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.lesson-content h1 {
  margin-bottom: 9px;
  font-family: Georgia, serif;
  font-size: 30px;
}

.lesson-content > p {
  color: var(--ink-soft);
  line-height: 1.65;
}

.concept-block {
  margin: 26px 0;
  padding: 22px;
  border-left: 4px solid var(--teal);
  background: #f1f7f5;
}

.concept-block h2 {
  margin-bottom: 8px;
  font: 700 19px Georgia, serif;
}

.concept-block p {
  margin-bottom: 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.math-example {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  padding: 20px;
  border: 1px solid var(--line);
  text-align: center;
}

.math-example strong {
  font: 700 22px Georgia, serif;
}

.math-example span {
  color: var(--ink-soft);
  font-size: 11px;
}

.lesson-check {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.lesson-check h2 {
  margin-bottom: 14px;
  font: 700 19px Georgia, serif;
}

.lesson-check .answer-list {
  margin: 16px 0;
}

.lesson-rail {
  align-self: start;
  padding: 20px;
}

.lesson-rail h3 {
  margin-bottom: 16px;
  font: 700 17px Georgia, serif;
}

.lesson-step {
  position: relative;
  display: flex;
  min-height: 48px;
  align-items: flex-start;
  gap: 11px;
  color: var(--ink-soft);
  font-size: 11px;
}

.lesson-step::after {
  position: absolute;
  top: 20px;
  bottom: 0;
  left: 9px;
  width: 1px;
  background: var(--line);
  content: "";
}

.lesson-step:last-child::after {
  display: none;
}

.step-marker {
  position: relative;
  z-index: 1;
  display: grid;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  place-items: center;
  border: 1px solid #aab6b2;
  border-radius: 50%;
  background: #fff;
  font-size: 8px;
}

.lesson-step.done .step-marker,
.lesson-step.active .step-marker {
  border-color: var(--teal);
  color: #fff;
  background: var(--teal);
}

.lesson-step.active {
  color: var(--ink);
  font-weight: 800;
}

.empty-state {
  padding: 70px 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.empty-state strong {
  display: block;
  margin-bottom: 7px;
  font: 700 20px Georgia, serif;
}

.empty-state p {
  color: var(--ink-soft);
}

/* Recorded classes */
.recorded-header .button {
  flex: 0 0 auto;
}

.button-play-icon {
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.video-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.video-overview > div {
  display: grid;
  min-width: 0;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2px 10px;
  padding: 15px 20px;
  border-right: 1px solid var(--line);
}

.video-overview > div:last-child {
  border-right: 0;
}

.video-overview span,
.video-overview small {
  color: var(--ink-soft);
  font-size: 10px;
}

.video-overview span {
  align-self: start;
  font-weight: 800;
  text-transform: uppercase;
}

.video-overview strong {
  grid-row: 1 / 3;
  grid-column: 2;
  font: 700 28px Georgia, serif;
}

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

.recorded-storage,
.video-resume-note {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

.storage-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--teal);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.video-card {
  min-width: 0;
  overflow: hidden;
}

.video-card-preview {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  border: 0;
  color: var(--subject-color);
  background-color: var(--subject-pale);
  background-position: center;
  background-size: cover;
  cursor: pointer;
}

.video-card-preview::after {
  position: absolute;
  inset: 0;
  background: rgba(14, 31, 29, 0.08);
  content: "";
  transition: background 160ms ease;
}

.video-card-preview:hover::after {
  background: rgba(14, 31, 29, 0.18);
}

.video-subject-mark {
  font: 700 44px Georgia, serif;
  opacity: 0.8;
}

.video-play,
.related-video-play {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--teal-dark);
}

.video-play {
  position: absolute;
  z-index: 2;
  width: 43px;
  height: 43px;
  padding-left: 3px;
  box-shadow: 0 6px 18px rgba(13, 43, 39, 0.22);
  font-size: 13px;
}

.video-duration {
  position: absolute;
  right: 9px;
  bottom: 9px;
  z-index: 2;
  padding: 4px 6px;
  color: #fff;
  background: rgba(22, 40, 38, 0.88);
  font-size: 9px;
  font-weight: 800;
}

.video-card-body {
  padding: 17px;
}

.video-card-kicker {
  display: flex;
  min-height: 24px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  color: var(--subject-color);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.video-menu,
.upload-close {
  display: grid;
  place-items: center;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
}

.video-menu {
  width: 25px;
  height: 25px;
  margin: -7px -7px 0 0;
  font-size: 19px;
}

.video-menu:hover,
.upload-close:hover {
  color: var(--danger);
  background: #f8eeeb;
}

.video-card-body h2 {
  min-height: 42px;
  margin: 2px 0 4px;
  overflow-wrap: anywhere;
  font: 700 18px/1.2 Georgia, serif;
}

.video-card-body > p {
  margin-bottom: 16px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-card-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}

.video-card-progress > span {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 750;
}

.video-card .text-button {
  padding: 0;
  font-size: 10px;
}

.video-state,
.video-player-loading {
  display: grid;
  min-height: 330px;
  place-items: center;
  align-content: center;
  padding: 45px 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.video-state-mark {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  place-items: center;
  border: 1px solid var(--teal);
  border-radius: 50%;
  color: var(--teal);
  font-size: 12px;
}

.video-state strong,
.video-player-loading strong {
  font: 700 20px Georgia, serif;
}

.video-state p,
.video-player-loading p {
  margin: 7px 0 15px;
  color: var(--ink-soft);
  font-size: 11px;
}

.video-empty {
  display: grid;
  min-height: 330px;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding: 42px 8%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.video-empty-visual {
  position: relative;
  display: grid;
  width: min(300px, 100%);
  aspect-ratio: 16 / 10;
  place-items: center;
  color: #fff;
  background: var(--teal-dark);
}

.video-empty-visual span {
  position: relative;
  z-index: 2;
  display: grid;
  width: 50px;
  height: 50px;
  padding-left: 4px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
}

.video-empty-visual i {
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.video-empty-visual b {
  position: absolute;
  right: 15px;
  bottom: 12px;
  color: #f8c654;
  font: 700 13px Georgia, serif;
}

.video-empty h2 {
  margin-bottom: 10px;
  font: 700 25px/1.2 Georgia, serif;
}

.video-empty p {
  max-width: 460px;
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}

.recorded-player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 20px;
}

.recorded-player-main {
  min-width: 0;
}

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0c1211;
}

.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-player-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 0 17px;
  border-bottom: 1px solid var(--line);
}

.video-player-heading h1 {
  margin: 0 0 6px;
  overflow-wrap: anywhere;
  font: 700 27px/1.15 Georgia, serif;
}

.video-player-heading p,
.video-description {
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.6;
}

.video-player-heading p {
  margin: 0;
}

.video-player-heading .button {
  flex: 0 0 auto;
}

.video-description {
  margin: 18px 0;
}

.video-resume-note {
  min-height: 42px;
  padding: 0 12px;
  border-left: 3px solid var(--teal);
  background: var(--teal-pale);
}

.video-resume-note strong {
  margin-left: auto;
  color: var(--teal-dark);
}

.video-player-rail {
  padding: 20px;
}

.video-player-rail h2 {
  margin: 7px 0 14px;
  font: 700 18px Georgia, serif;
}

.related-video-list {
  display: grid;
}

.related-video-list button {
  display: grid;
  min-width: 0;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.related-video-play {
  width: 30px;
  height: 30px;
  padding-left: 2px;
  font-size: 8px;
}

.related-video-list strong,
.related-video-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.related-video-list strong {
  font-size: 10px;
}

.related-video-list small,
.related-empty p {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 9px;
}

.related-empty {
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.related-empty .text-button {
  padding: 5px 0;
  font-size: 10px;
}

.upload-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 22px;
  background: rgba(20, 43, 40, 0.72);
  backdrop-filter: blur(5px);
}

.upload-dialog {
  width: min(700px, 100%);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 28px 70px rgba(8, 31, 28, 0.3);
}

.upload-dialog > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
}

.upload-dialog h2 {
  margin: 0;
  font: 700 24px Georgia, serif;
}

.upload-close {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  font-size: 22px;
}

.upload-dialog form {
  padding: 22px 24px 24px;
}

.video-file-drop {
  position: relative;
  display: grid;
  min-height: 136px;
  margin-bottom: 20px;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 20px;
  border: 1px dashed #99aaa5;
  color: var(--ink);
  background: #f8faf7;
  cursor: pointer;
  text-align: center;
  transition: border-color 150ms ease, background 150ms ease;
}

.video-file-drop:hover,
.video-file-drop.is-dragging,
.video-file-drop.has-file {
  border-color: var(--teal);
  background: var(--teal-pale);
}

.video-file-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.upload-file-icon {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 2px;
  place-items: center;
  border: 1px solid var(--teal);
  border-radius: 50%;
  color: var(--teal);
  font-size: 16px;
}

.video-file-drop strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.video-file-drop small {
  color: var(--ink-soft);
  font-size: 9px;
}

.upload-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 16px;
}

.upload-title-field,
.upload-description-field {
  grid-column: 1 / -1;
}

.upload-dialog textarea {
  display: block;
  width: 100%;
  min-height: 82px;
  margin-top: 7px;
  padding: 10px 12px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: #fff;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.45;
  outline: 0;
}

.upload-dialog textarea:focus {
  border-color: var(--teal);
}

.upload-disclosure {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  color: var(--ink-soft);
  background: #f0f3ef;
  font-size: 9px;
  line-height: 1.5;
}

.upload-disclosure .storage-dot {
  margin-top: 3px;
}

.upload-dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
}

.upload-dialog button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  max-width: 330px;
  padding: 12px 16px;
  color: #fff;
  background: var(--ink);
  box-shadow: var(--shadow);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.onboarding-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(23, 58, 54, 0.72);
  backdrop-filter: blur(8px);
}

.onboarding-card {
  display: grid;
  width: min(820px, 100%);
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 28px 70px rgba(8, 31, 28, 0.3);
}

.onboarding-intro {
  padding: 34px 32px;
  color: #f6fbf8;
  background: var(--teal-dark);
}

.onboarding-brand {
  margin: 0 0 72px;
  padding: 0;
}

.onboarding-intro .eyebrow {
  color: #f8c654;
}

.onboarding-intro h1 {
  max-width: 300px;
  margin-bottom: 13px;
  font: 700 34px/1.12 Georgia, serif;
}

.onboarding-intro p {
  max-width: 310px;
  margin-bottom: 28px;
  color: #c3d7d2;
  font-size: 13px;
  line-height: 1.6;
}

.onboarding-proof {
  display: grid;
  gap: 11px;
  color: #deebe7;
  font-size: 11px;
  font-weight: 700;
}

.onboarding-proof span::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 8px 1px 0;
  border-radius: 50%;
  background: #f8c654;
  content: "";
}

.onboarding-form {
  display: flex;
  flex-direction: column;
  padding: 34px 32px;
}

.form-step {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 25px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.form-step > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  font-size: 9px;
  font-weight: 850;
}

.form-step strong,
.form-step small {
  display: block;
}

.form-step strong {
  font: 700 17px Georgia, serif;
}

.form-step small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 10px;
}

.onboarding-label {
  display: block;
  margin-bottom: 16px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.onboarding-label input,
.onboarding-label select {
  display: block;
  width: 100%;
  height: 42px;
  margin-top: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  outline: 0;
}

.onboarding-label input:focus,
.onboarding-label select:focus {
  border-color: var(--teal);
}

.onboarding-form .button {
  width: 100%;
  margin-top: 7px;
}

.onboarding-skip {
  margin-top: 15px;
  padding: 5px;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.course-summary {
  display: grid;
  min-width: 148px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  background: #fff;
}

.course-summary strong {
  color: var(--teal);
  font: 700 27px Georgia, serif;
}

.course-summary span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 10px;
}

.course-progress-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border-left: 4px solid var(--mustard);
  background: var(--mustard-pale);
}

.course-progress-banner strong {
  color: #66511e;
  font: 700 17px Georgia, serif;
}

.course-progress-banner p {
  margin: 4px 0 0;
  color: #7e6a34;
  font-size: 11px;
}

.unit-list {
  display: grid;
  gap: 13px;
}

.unit-card {
  padding: 21px;
}

.unit-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 17px;
}

.unit-heading h2 {
  margin: 5px 0 5px;
  font: 700 20px Georgia, serif;
}

.unit-heading p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
}

.unit-count {
  display: grid;
  min-width: 42px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--teal);
  font-size: 10px;
  font-weight: 850;
}

.unit-lessons {
  display: grid;
  border-top: 1px solid var(--line);
}

.unit-lesson {
  display: grid;
  min-height: 62px;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.unit-lesson:last-child {
  border-bottom: 0;
}

.unit-lesson:hover,
.unit-lesson.current {
  color: var(--teal);
}

.unit-lesson-marker {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid #b8c4bf;
  border-radius: 50%;
  color: var(--ink-soft);
  font-size: 8px;
  font-weight: 850;
}

.unit-lesson.complete .unit-lesson-marker {
  border-color: var(--teal);
  color: #fff;
  background: var(--teal);
}

.unit-lesson.current .unit-lesson-marker {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-pale);
}

.unit-lesson-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.unit-lesson-copy strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unit-lesson-copy small {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 10px;
}

.unit-lesson-arrow {
  padding-right: 3px;
  color: #8b9995;
  font-size: 16px;
}

.unit-lesson:hover .unit-lesson-arrow,
.unit-lesson.current .unit-lesson-arrow {
  color: var(--teal);
}

@media (max-width: 1020px) {
  .sidebar {
    width: 190px;
  }

  .workspace {
    margin-left: 190px;
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .dashboard-grid,
  .progress-grid {
    grid-template-columns: 1fr;
  }

  .subject-card {
    grid-template-columns: minmax(0, 1fr) 96px;
  }

  .progress-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .practice-layout,
  .lesson-layout {
    grid-template-columns: 1fr;
  }

  .practice-sidebar {
    grid-template-columns: 1fr 1fr;
  }

  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 67px;
  }

  .sidebar {
    display: none;
  }

  .workspace {
    margin-left: 0;
  }

  .topbar {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 16px;
  }

  .mobile-brand {
    display: flex;
    min-width: 0;
    flex: 1;
  }

  .mobile-brand .brand-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    font-size: 20px;
  }

  .mobile-brand strong {
    overflow: hidden;
    font-family: Georgia, serif;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar-actions {
    flex: 0 0 auto;
  }

  .top-profile {
    min-width: 0;
  }

  .top-profile-copy,
  .top-profile > span:last-child {
    display: none;
  }

  .search-field {
    order: 3;
    width: 100%;
  }

  .notification-popover,
  .profile-popover {
    top: 60px;
    right: 12px;
    width: calc(100vw - 24px);
  }

  #app {
    padding: 23px 16px 32px;
  }

  .view-header {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 20px;
  }

  .view-header h1 {
    font-size: 27px;
  }

  .date-chip {
    display: none;
  }

  .dashboard-grid {
    gap: 15px;
  }

  .continue-panel {
    min-height: 310px;
    grid-template-columns: 1fr 110px;
  }

  .continue-copy {
    padding: 24px 0 24px 22px;
  }

  .continue-panel h2 {
    font-size: 24px;
  }

  .book-visual {
    height: 190px;
  }

  .book-visual img {
    right: -52px;
    width: 165px;
  }

  .book-cover-copy {
    right: 10px;
    bottom: 60px;
    width: 75px;
  }

  .book-cover-copy strong {
    font-size: 14px;
  }

  .readiness-panel {
    min-height: 0;
  }

  .task-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
  }

  .task-type {
    display: none;
  }

  .week-panel {
    padding: 15px;
  }

  .mobile-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: grid;
    height: 67px;
    grid-template-columns: repeat(6, 1fr);
    border-top: 1px solid var(--line);
    background: #fff;
  }

  .mobile-nav a {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    color: #75817e;
    font-size: 9px;
    font-weight: 750;
  }

  .mobile-nav a span {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 7px;
  }

  .mobile-nav a.active {
    color: var(--teal);
  }

  .subjects-toolbar,
  .practice-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .segmented-control {
    width: 100%;
    overflow-x: auto;
  }

  .segmented-control button {
    flex: 1 0 auto;
  }

  .subject-grid {
    grid-template-columns: 1fr;
  }

  .recorded-header .button {
    width: 100%;
  }

  .recorded-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .recorded-toolbar .segmented-control {
    order: 2;
  }

  .video-grid,
  .recorded-player-layout,
  .video-empty {
    grid-template-columns: 1fr;
  }

  .video-empty {
    gap: 28px;
    padding: 30px 8%;
  }

  .video-empty-visual {
    width: min(340px, 100%);
  }

  .video-player-heading {
    flex-direction: column;
  }

  .video-player-heading .button {
    width: 100%;
  }

  .video-player-rail {
    width: 100%;
  }

  .upload-backdrop {
    align-items: end;
    padding: 0;
  }

  .upload-dialog {
    width: 100%;
    max-height: calc(100vh - 20px);
    border-radius: 7px 7px 0 0;
  }

  .upload-form-grid {
    grid-template-columns: 1fr;
  }

  .upload-title-field,
  .upload-description-field {
    grid-column: auto;
  }

  .subject-card {
    min-height: 222px;
  }

  .quiz-panel {
    min-height: 0;
    padding: 22px;
  }

  .quiz-intro {
    min-height: 420px;
  }

  .quiz-feature-row {
    grid-template-columns: 1fr;
  }

  .practice-sidebar {
    grid-template-columns: 1fr;
  }

  .progress-summary {
    grid-template-columns: 1fr 1fr;
  }

  .metric {
    min-width: 0;
    padding: 14px;
  }

  .metric span {
    overflow-wrap: anywhere;
  }

  .bar-chart {
    gap: 7px;
  }

  .activity-table {
    display: block;
    overflow-x: auto;
  }

  .lesson-content {
    padding: 22px;
  }

  .math-example {
    grid-template-columns: 1fr;
  }

  .math-example span {
    transform: rotate(90deg);
  }

  .toast {
    right: 16px;
    bottom: 82px;
    left: 16px;
    max-width: none;
  }

  .onboarding-backdrop {
    display: block;
    overflow-y: auto;
    padding: 12px;
  }

  .onboarding-card {
    display: block;
  }

  .onboarding-intro,
  .onboarding-form {
    padding: 25px 22px;
  }

  .onboarding-brand {
    margin-bottom: 35px;
  }

  .onboarding-intro h1 {
    font-size: 29px;
  }

  .course-progress-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .course-progress-banner .button {
    width: 100%;
  }

  .course-summary {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .continue-panel {
    grid-template-columns: 1fr;
  }

  .book-visual {
    display: none;
  }

  .continue-copy {
    padding-right: 22px;
  }

  .subject-card {
    grid-template-columns: minmax(0, 1fr) 82px;
  }

  .subject-copy {
    padding-left: 17px;
  }

  .video-overview > div {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    padding: 12px 9px;
  }

  .video-overview strong {
    order: 2;
    font-size: 23px;
  }

  .video-overview small {
    display: none;
  }

  .upload-dialog > header,
  .upload-dialog form {
    padding-right: 17px;
    padding-left: 17px;
  }

  .upload-dialog footer .button {
    flex: 1;
    padding: 0 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Admin workspace: the same surface language as the learner app, with denser controls for daily operations. */
.admin-mode {
  --admin-ink: #182625;
  --admin-muted: #697874;
  --admin-line: #dfe6e1;
  --admin-surface: #ffffff;
  background: #f3f6f3;
}

.admin-mode .sidebar {
  display: none;
}

.admin-mode .workspace {
  margin-left: 0;
}

.admin-mode .topbar {
  padding-right: 36px;
  padding-left: 36px;
  background: rgba(255, 255, 255, 0.96);
}

.admin-mode .mobile-brand {
  display: flex;
  color: var(--teal-dark);
}

.admin-mode .mobile-brand strong {
  font-family: Georgia, serif;
  font-size: 16px;
}

.admin-mode .search-field {
  width: min(360px, 40vw);
}

.admin-mode #app {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 72px);
  padding: 0;
}

.admin-mode .mobile-nav {
  display: none;
}

.admin-shell {
  display: grid;
  min-height: calc(100vh - 72px);
  grid-template-columns: 214px minmax(0, 1fr);
}

.admin-sidebar {
  display: flex;
  min-height: calc(100vh - 72px);
  flex-direction: column;
  padding: 28px 16px 20px;
  border-right: 1px solid var(--admin-line);
  background: #fbfcfa;
}

.admin-sidebar-label {
  padding: 0 12px 10px;
  color: #899692;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.admin-nav {
  display: grid;
  gap: 4px;
}

.admin-nav a {
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  border-left: 3px solid transparent;
  color: #667572;
  font-size: 12px;
  font-weight: 750;
}

.admin-nav a span {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid #c8d3ce;
  border-radius: 50%;
  font-size: 8px;
  font-weight: 850;
}

.admin-nav a:hover,
.admin-nav a.active {
  border-left-color: var(--teal);
  color: var(--teal-dark);
  background: #eaf4f0;
}

.admin-nav a.active span {
  border-color: var(--teal);
  color: var(--teal);
}

.admin-sidebar-footer {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: auto 8px 18px;
  padding: 14px 0;
  border-top: 1px solid var(--admin-line);
}

.admin-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4fae78;
  box-shadow: 0 0 0 4px #e5f4e9;
}

.admin-sidebar-footer strong,
.admin-sidebar-footer small {
  display: block;
}

.admin-sidebar-footer strong {
  color: var(--admin-ink);
  font-size: 11px;
}

.admin-sidebar-footer small {
  margin-top: 3px;
  color: var(--admin-muted);
  font-size: 10px;
}

.admin-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--admin-line);
  color: var(--admin-muted);
  background: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
}

.admin-switch:hover {
  color: var(--teal);
  border-color: #b8d7cd;
}

.admin-main {
  min-width: 0;
  padding: 32px 38px 60px;
}

.admin-workspace {
  width: min(1180px, 100%);
  min-width: 0;
  margin: 0 auto;
}

.admin-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.admin-page-header h1 {
  margin: 0 0 5px;
  color: var(--admin-ink);
  font-family: Georgia, serif;
  font-size: 30px;
  line-height: 1.15;
}

.admin-page-header p {
  margin: 0;
  color: var(--admin-muted);
  font-size: 12px;
}

.admin-page-header .button {
  white-space: nowrap;
}

.admin-page-header .button > span {
  margin-right: 2px;
  font-size: 17px;
  font-weight: 500;
  line-height: 0;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-stat {
  position: relative;
  min-height: 132px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--admin-line);
  background: var(--admin-surface);
}

.admin-stat span,
.admin-stat small {
  display: block;
}

.admin-stat > span {
  color: var(--admin-muted);
  font-size: 11px;
  font-weight: 700;
}

.admin-stat strong {
  display: block;
  margin: 13px 0 4px;
  color: var(--admin-ink);
  font: 700 28px/1 Georgia, serif;
}

.admin-stat small {
  font-size: 10px;
  font-weight: 750;
}

.admin-stat small.up {
  color: #3f9870;
}

.admin-stat small.down {
  color: var(--coral);
}

.admin-stat-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 850;
}

.admin-stat-icon.teal { color: var(--teal); background: var(--teal-pale); }
.admin-stat-icon.yellow { color: #9d7310; background: var(--mustard-pale); }
.admin-stat-icon.coral { color: var(--coral); background: var(--coral-pale); }
.admin-stat-icon.violet { color: var(--violet); background: var(--violet-pale); }

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.85fr);
  gap: 18px;
  margin-bottom: 18px;
}

.admin-dashboard-grid.lower {
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.85fr);
}

.admin-chart-panel,
.admin-attention,
.admin-table-panel,
.admin-course-focus {
  min-width: 0;
  padding: 22px;
}

.admin-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.admin-section-heading h2 {
  margin: 0 0 4px;
  color: var(--admin-ink);
  font-family: Georgia, serif;
  font-size: 18px;
}

.admin-section-heading p {
  margin: 0;
  color: var(--admin-muted);
  font-size: 10px;
}

.admin-section-heading select,
.admin-list-toolbar select {
  min-height: 32px;
  padding: 0 26px 0 9px;
  border: 1px solid var(--admin-line);
  color: var(--admin-muted);
  background: #fff;
  font-size: 10px;
}

.admin-line-chart {
  display: flex;
  height: 220px;
  gap: 10px;
}

.chart-y-axis {
  display: flex;
  width: 28px;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 20px;
  color: #95a29d;
  font-size: 9px;
  text-align: right;
}

.chart-plot {
  position: relative;
  min-width: 0;
  flex: 1;
  padding-bottom: 20px;
}

.chart-grid-lines {
  position: absolute;
  inset: 0 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chart-grid-lines i {
  display: block;
  border-top: 1px dashed #e2e9e5;
}

.chart-plot svg {
  position: absolute;
  inset: 0 0 20px;
  width: 100%;
  height: calc(100% - 20px);
  overflow: visible;
}

.chart-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.chart-line.primary { stroke: var(--teal); }
.chart-line.secondary { stroke: #e3ad3a; stroke-width: 2; stroke-dasharray: 5 5; }
.chart-point { fill: var(--teal); stroke: #fff; stroke-width: 3; }

.chart-labels {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  color: #95a29d;
  font-size: 9px;
}

.chart-legend {
  display: flex;
  gap: 18px;
  margin-top: 5px;
  color: var(--admin-muted);
  font-size: 10px;
}

.legend-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
}

.legend-dot.primary { background: var(--teal); }
.legend-dot.secondary { background: #e3ad3a; }

.attention-list {
  border-top: 1px solid var(--admin-line);
}

.attention-row {
  display: flex;
  min-height: 63px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #edf1ee;
}

.attention-row > div {
  min-width: 0;
  flex: 1;
}

.attention-row strong,
.attention-row small {
  display: block;
}

.attention-row strong {
  overflow: hidden;
  color: var(--admin-ink);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attention-row small {
  margin-top: 4px;
  color: var(--admin-muted);
  font-size: 10px;
}

.attention-arrow {
  color: var(--teal);
  font-size: 16px;
}

.student-avatar {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  place-items: center;
  border-radius: 50%;
  color: #1c5149;
  background: #d4ebe3;
  font-size: 9px;
  font-weight: 850;
}

.student-avatar.small {
  width: 29px;
  height: 29px;
  flex-basis: 29px;
  font-size: 8px;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  color: var(--admin-muted);
  font-size: 10px;
  text-align: left;
}

.admin-table th {
  padding: 0 12px 11px;
  border-bottom: 1px solid var(--admin-line);
  color: #8a9692;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-table td {
  padding: 13px 12px;
  border-bottom: 1px solid #edf1ee;
  vertical-align: middle;
  white-space: nowrap;
}

.admin-table th:first-child,
.admin-table td:first-child { padding-left: 0; }
.admin-table th:last-child,
.admin-table td:last-child { padding-right: 0; text-align: right; }

.admin-table td strong {
  display: block;
  color: var(--admin-ink);
  font-size: 11px;
}

.student-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}

.student-cell small,
.table-muted {
  display: block;
  margin-top: 4px;
  color: #94a09c;
  font-size: 9px;
}

.table-progress {
  display: flex;
  min-width: 100px;
  align-items: center;
  gap: 8px;
}

.table-progress > span {
  display: block;
  width: 72px;
  height: 5px;
  overflow: hidden;
  border-radius: 3px;
  background: #e7eeea;
}

.table-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
}

.table-progress b {
  color: var(--admin-ink);
  font-size: 10px;
}

.status-pill {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  border-radius: 12px;
  font-size: 9px;
  font-weight: 800;
}

.status-pill.success { color: #2d825b; background: #e4f4e9; }
.status-pill.warning { color: #a06c12; background: #fff0ca; }

.table-menu {
  width: 26px;
  height: 26px;
  border: 0;
  color: #76847f;
  background: transparent;
  cursor: pointer;
  font-size: 17px;
}

.admin-course-focus {
  min-width: 0;
}

.course-health-list {
  display: grid;
  gap: 18px;
}

.course-health-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.course-health-row > div { min-width: 0; }
.course-health-row strong { display: block; margin-bottom: 7px; color: var(--admin-ink); font-size: 10px; }
.course-health-row > b { color: var(--admin-ink); font-size: 10px; }
.subject-mark { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 5px; font: 700 11px Georgia, serif; }
.subject-mark.math { color: #9d7310; background: var(--mustard-pale); }
.subject-mark.language { color: #af4e3b; background: var(--coral-pale); }
.subject-mark.science { color: #32708f; background: var(--blue-pale); }
.subject-mark.social { color: #6b4c7a; background: var(--violet-pale); }
.progress-track span.math { background: var(--mustard); }
.progress-track span.language { background: var(--coral); }
.progress-track span.science { background: var(--blue); }
.progress-track span.social { background: var(--violet); }

.admin-list-panel { padding: 0 22px; }
.admin-list-toolbar { display: flex; min-height: 74px; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--admin-line); }
.admin-toolbar-actions { display: flex; align-items: center; gap: 8px; }
.admin-search { display: flex; width: min(300px, 100%); height: 35px; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--admin-line); background: #fff; }
.admin-search span { color: #83918c; font-size: 16px; }
.admin-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--admin-ink); font-size: 11px; }
.admin-list-footer { display: flex; min-height: 59px; align-items: center; justify-content: space-between; color: #84908c; font-size: 10px; }
.pagination { display: flex; align-items: center; gap: 4px; }
.pagination button { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid var(--admin-line); color: var(--admin-muted); background: #fff; cursor: pointer; font-size: 10px; }
.pagination button.active { border-color: var(--teal); color: #fff; background: var(--teal); }
.pagination button:disabled { cursor: default; opacity: .45; }
.admin-list-title { margin: 0 0 3px; color: var(--admin-ink); font-family: Georgia, serif; font-size: 17px; }
.admin-list-toolbar p { margin: 0; color: var(--admin-muted); font-size: 10px; }
.admin-empty { padding: 35px 0; color: var(--admin-muted); text-align: center; }

.admin-library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -5px 0 18px; }
.admin-library-toolbar .segmented-control { border-color: var(--admin-line); background: #fff; }
.admin-video-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: -5px 0 18px; border: 1px solid var(--admin-line); background: #fff; }
.admin-video-summary > div { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 3px 12px; padding: 16px 20px; border-right: 1px solid var(--admin-line); }
.admin-video-summary > div:last-child { border-right: 0; }
.admin-video-summary span { align-self: start; color: var(--admin-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.admin-video-summary strong { grid-row: 1 / 3; grid-column: 2; overflow-wrap: anywhere; color: var(--admin-ink); font: 700 23px/1.1 Georgia, serif; }
.admin-video-summary small { color: var(--admin-muted); font-size: 9px; }
.admin-video-panel { width: 100%; min-width: 0; padding: 0 22px; overflow: hidden; }
.admin-video-panel .recorded-storage { white-space: nowrap; }
.admin-video-state { display: grid; min-height: 300px; place-items: center; align-content: center; padding: 35px 20px; text-align: center; }
.admin-video-state strong { font: 700 19px Georgia, serif; }
.admin-video-state p { margin: 6px 0 14px; color: var(--admin-muted); font-size: 10px; }
.admin-video-empty { display: flex; min-height: 210px; align-items: center; justify-content: center; gap: 16px; padding: 35px 20px; text-align: left; }
.admin-video-empty-mark { display: grid; width: 42px; height: 42px; flex: 0 0 42px; padding-left: 3px; place-items: center; border-radius: 50%; color: #fff; background: var(--teal-dark); font-size: 11px; }
.admin-video-empty > div { min-width: 0; }
.admin-video-empty strong { display: block; color: var(--admin-ink); font: 700 18px Georgia, serif; }
.admin-video-empty p { margin: 5px 0 0; color: var(--admin-muted); font-size: 10px; }
.admin-video-empty .button { margin-left: 16px; }
.admin-video-table { min-width: 760px; }
.admin-video-table td:first-child { width: 36%; }
.admin-video-cell { display: flex; min-width: 240px; align-items: center; gap: 12px; }
.admin-video-cell > div { min-width: 0; }
.admin-video-cell strong,
.admin-video-cell small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-video-cell strong { max-width: 260px; color: var(--admin-ink); font-size: 11px; }
.admin-video-cell small { max-width: 260px; margin-top: 5px; color: var(--admin-muted); font-size: 9px; }
.admin-video-thumb { position: relative; display: grid; width: 88px; aspect-ratio: 16 / 9; flex: 0 0 88px; place-items: center; overflow: hidden; border: 0; color: var(--subject-color); background-color: var(--subject-pale); background-position: center; background-size: cover; cursor: pointer; }
.admin-video-thumb > span { font: 700 18px Georgia, serif; }
.admin-video-thumb > i { position: absolute; display: grid; width: 25px; height: 25px; padding-left: 2px; place-items: center; border-radius: 50%; color: #fff; background: rgba(23, 58, 54, .9); font-size: 7px; font-style: normal; }
.admin-video-table td:nth-child(2) { white-space: nowrap; }
.admin-video-table .subject-mark { display: inline-grid; margin-right: 6px; vertical-align: middle; }
.admin-video-subject { color: var(--admin-muted); font-size: 9px; vertical-align: middle; }
.admin-video-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.admin-video-actions .text-button { padding: 4px 0; font-size: 9px; }
.admin-video-actions .table-menu.delete:hover { color: var(--danger); background: #f8eeeb; }
.admin-course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.admin-course-card { min-width: 0; padding: 21px; border-top: 3px solid var(--teal); }
.admin-course-card.language { border-top-color: var(--coral); }
.admin-course-card.science { border-top-color: var(--blue); }
.admin-course-card.social { border-top-color: var(--violet); }
.admin-course-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.admin-course-card h2 { max-width: 310px; margin: 7px 0 7px; color: var(--admin-ink); font-family: Georgia, serif; font-size: 20px; line-height: 1.2; }
.admin-course-card p { margin: 0 0 20px; color: var(--admin-muted); font-size: 10px; }
.admin-course-card .progress-label { margin-bottom: 7px; color: var(--admin-muted); font-size: 9px; }
.admin-course-card .progress-label strong { color: var(--admin-ink); font-size: 10px; }
.admin-course-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.admin-assignment-note { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 17px 20px; border: 1px solid #eddcae; background: #fff9e9; }
.note-icon { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 50%; color: #9d7310; background: #ffedb8; }
.admin-assignment-note > div { min-width: 0; flex: 1; }
.admin-assignment-note strong { display: block; color: #5c4b1b; font-size: 11px; }
.admin-assignment-note p { margin: 4px 0 0; color: #8a7745; font-size: 10px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 1100px) {
  .admin-video-table { min-width: 0; table-layout: fixed; }
  .admin-video-table th:nth-child(3),
  .admin-video-table td:nth-child(3),
  .admin-video-table th:nth-child(4),
  .admin-video-table td:nth-child(4) { display: none; }
  .admin-video-table td:first-child { width: 55%; }
  .admin-video-cell { min-width: 0; }
  .admin-video-cell strong,
  .admin-video-cell small { max-width: 180px; }
}

@media (max-width: 980px) {
  .admin-main { padding: 28px 24px 50px; }
  .admin-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-dashboard-grid,
  .admin-dashboard-grid.lower { grid-template-columns: 1fr; }
  .admin-video-panel .admin-list-toolbar { align-items: stretch; flex-direction: column; padding: 15px 0; }
  .admin-video-panel .admin-search { width: 100%; }
  .admin-video-panel .admin-toolbar-actions { flex-wrap: wrap; }
}

@media (max-width: 700px) {
  .admin-mode .topbar { height: 62px; padding: 0 16px; }
  .admin-mode .topbar .top-profile-copy,
  .admin-mode .topbar .top-profile > span:last-child { display: none; }
  .admin-mode .topbar .top-profile { min-width: 36px; }
  .admin-mode .topbar .mobile-brand strong { font-size: 14px; }
  .admin-mode .topbar .search-field { display: none; }
  .admin-mode #app { min-height: calc(100vh - 62px); }
  .admin-shell { display: block; min-height: calc(100vh - 62px); }
  .admin-sidebar { min-height: 0; padding: 10px 14px 0; border-right: 0; border-bottom: 1px solid var(--admin-line); }
  .admin-sidebar-label,
  .admin-sidebar-footer,
  .admin-switch { display: none; }
  .admin-nav { display: flex; gap: 3px; overflow-x: auto; padding-bottom: 10px; }
  .admin-nav a { min-height: 35px; flex: 0 0 auto; gap: 7px; padding: 0 9px; border: 1px solid transparent; border-radius: 3px; font-size: 10px; }
  .admin-nav a span { display: none; }
  .admin-nav a.active { border: 1px solid #b8d7cd; }
  .admin-main { padding: 22px 16px 42px; }
  .admin-page-header { align-items: flex-start; flex-direction: column; gap: 15px; margin-bottom: 21px; }
  .admin-page-header h1 { font-size: 26px; }
  .admin-page-header .button { width: 100%; }
  .admin-stat-grid { gap: 9px; }
  .admin-stat { min-height: 113px; padding: 15px; }
  .admin-stat strong { margin-top: 10px; font-size: 23px; }
  .admin-stat-icon { top: 13px; right: 13px; width: 25px; height: 25px; font-size: 11px; }
  .admin-chart-panel,
  .admin-attention,
  .admin-table-panel,
  .admin-course-focus { padding: 17px; }
  .admin-line-chart { height: 190px; }
  .chart-legend { flex-wrap: wrap; gap: 8px 13px; }
  .admin-list-panel { padding: 0 15px; }
  .admin-list-toolbar { align-items: stretch; flex-direction: column; padding: 15px 0; }
  .admin-search { width: 100%; }
  .admin-toolbar-actions { flex-wrap: wrap; }
  .admin-toolbar-actions select { flex: 1; }
  .admin-toolbar-actions .button { flex: 0 0 auto; }
  .admin-list-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 9px; padding: 12px 0; }
  .admin-library-toolbar { align-items: flex-start; flex-direction: column; }
  .admin-library-toolbar .segmented-control { width: 100%; overflow-x: auto; }
  .admin-video-summary > div { padding: 13px 10px; }
  .admin-video-summary strong { font-size: 19px; }
  .admin-video-panel { padding: 0 15px; }
  .admin-video-panel .admin-toolbar-actions { width: 100%; align-items: flex-start; flex-direction: column; }
  .admin-video-panel .admin-toolbar-actions select { width: 100%; }
  .admin-video-empty { align-items: flex-start; flex-wrap: wrap; justify-content: flex-start; }
  .admin-video-empty .button { width: 100%; margin: 4px 0 0 58px; }
  .admin-video-table th:nth-child(2),
  .admin-video-table td:nth-child(2),
  .admin-video-table th:nth-child(5),
  .admin-video-table td:nth-child(5) { display: none; }
  .admin-video-table td:first-child { width: auto; }
  .admin-video-table th:last-child,
  .admin-video-table td:last-child { width: 82px; }
  .admin-video-thumb { width: 72px; flex-basis: 72px; }
  .admin-course-grid { grid-template-columns: 1fr; }
  .admin-assignment-note { align-items: flex-start; flex-wrap: wrap; padding: 15px; }
  .admin-assignment-note .text-button { width: 100%; margin-left: 42px; text-align: left; }
}
