:root {
  color-scheme: light;
  --bg: #f6f7f2;
  --panel: #ffffff;
  --panel-strong: #f0f4eb;
  --ink: #1d2b24;
  --muted: #5d6a62;
  --line: #d7ded2;
  --accent: #1f7a55;
  --accent-strong: #135d43;
  --accent-soft: #dceee6;
  --sun: #d49a2a;
  --red: #b54b36;
  --blue: #275a7a;
  --shadow: 0 16px 40px rgba(33, 44, 36, 0.12);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 12px clamp(16px, 4vw, 36px);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 247, 242, 0.94);
  backdrop-filter: blur(12px);
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brandmark__sigil {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

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

.brandmark strong {
  line-height: 1.1;
}

.brandmark small {
  margin-top: 3px;
  color: var(--muted);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.segmented {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  min-width: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}

.segmented__button {
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}

.segmented__button.is-active {
  background: var(--accent);
  color: #fff;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 800;
}

.course-shell {
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: clamp(16px, 3vw, 34px);
}

.course-sidebar {
  display: grid;
  align-content: start;
  gap: 16px;
}

.progress-box,
.stats-box,
.source-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.progress-box {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.progress-ring {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) var(--progress, 0%), var(--accent-soft) 0);
  color: var(--accent-strong);
  font-weight: 900;
}

.progress-box h2,
.stats-box h2,
.source-box h2 {
  margin: 0 0 4px;
  font-size: 15px;
}

.progress-box p,
.stats-box p,
.source-box p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.source-box {
  padding: 16px;
}

.source-box a {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
}
  .lesson-list {
  display: grid;
  gap: 8px;
}

.lesson-link {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 64px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  text-align: left;
}

.lesson-link.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.lesson-link__number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--accent-strong);
  font-weight: 900;
}

.lesson-link strong,
.lesson-link small {
  display: block;
}

.lesson-link strong {
  font-size: 14px;
  line-height: 1.2;
}

.lesson-link small {
  margin-top: 3px;
  color: var(--muted);
}

.lesson-link__status {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--line);
}

.lesson-link.is-done .lesson-link__status {
  background: var(--accent);
}

.course-main {
  min-width: 0;
}

.lesson-hero {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #16251c;
  box-shadow: var(--shadow);
}

.lesson-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lesson-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 31, 23, 0.84), rgba(16, 31, 23, 0.48), rgba(16, 31, 23, 0.08));
}

.lesson-hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  width: min(720px, 100%);
  min-height: 270px;
  padding: clamp(22px, 4vw, 40px);
  color: #fff;
}

.eyebrow {
  margin: 0 0 8px;
  color: #f4d990;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lesson-hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

.lesson-hero p:not(.eyebrow) {
  max-width: 680px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  line-height: 1.55;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.tabbar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}

.tabbar__button {
  min-height: 48px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.tabbar__button:last-child {
  border-right: 0;
}

.tabbar__button.is-active {
  background: var(--accent);
  color: #fff;
}

.content-stage {
  display: grid;
  gap: 16px;
  min-height: 460px;
  margin-top: 18px;
}

.section-band,
.exercise-panel,
.word-bank {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.section-band {
  padding: clamp(18px, 3vw, 26px);
}

.section-band h2,
.exercise-panel h2,
.word-bank h2 {
  margin: 0 0 10px;
  font-size: 21px;
  letter-spacing: 0;
}


.lesson-flow,
.practice-brief {
  display: grid;
  gap: 12px;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.flow-card {
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.flow-card strong {
  color: var(--accent-strong);
}

.flow-card span {
  color: var(--muted);
  line-height: 1.45;
}

.shortcut-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.exercise__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 12px;
}

.open-response {
  display: grid;
  gap: 10px;
}

.open-response textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  line-height: 1.5;
}
.section-band p {
  max-width: 86ch;
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.65;
}

.outcome-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.outcome-list li {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--ink);
  line-height: 1.5;
}

.outcome-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--sun);
}

.dialogue {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.dialogue__line {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) minmax(130px, 1fr);
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
}

.dialogue__line strong {
  color: var(--accent-strong);
}

.data-table {
  width: 100%;
  margin-top: 14px;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius);
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: var(--panel-strong);
  color: var(--accent-strong);
}

.note-strip {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 4px solid var(--sun);
  background: #fff8e6;
  color: #59471f;
  line-height: 1.55;
}

.exercise-panel {
  padding: 18px;
}

.exercise-panel__meta {
  margin: 0 0 14px;
  color: var(--muted);
}

.exercise-list {
  display: grid;
  gap: 14px;
}

.exercise {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.exercise.is-correct {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.exercise.is-wrong {
  border-color: var(--red);
  background: #fff0eb;
}

.exercise h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-button,
.check-button,
.command-button,
.shortcut-button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 800;
}

.choice-button:hover,
.check-button:hover,
.command-button:hover,
.shortcut-button:hover {
  border-color: var(--accent);
}

.choice-button.is-selected {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

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

.typing-row input,
.match-row select,
.word-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.match-grid {
  display: grid;
  gap: 10px;
}

.feedback {
  min-height: 22px;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
}

.word-bank {
  padding: 18px;
}

.word-search {
  margin-bottom: 14px;
}

.word-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.word-card {
  display: grid;
  gap: 6px;
  min-height: 104px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.word-card strong {
  color: var(--accent-strong);
  font-size: 18px;
}

.word-card span {
  color: var(--muted);
}

.word-card small {
  color: var(--blue);
  font-weight: 800;
}

.coach-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.coach-panel__intro {
  max-width: 82ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.coach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.coach-card {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.coach-card strong {
  color: var(--accent-strong);
}

.coach-card span {
  color: var(--muted);
  line-height: 1.5;
}

.coach-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.coach-prompt {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--accent-strong);
  font-weight: 800;
}

.coach-box {
  display: grid;
  gap: 10px;
}

.coach-box textarea {
  width: 100%;
  min-height: 118px;
  resize: vertical;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  line-height: 1.5;
}

.coach-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.coach-response {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--ink);
  line-height: 1.55;
}


.badge-panel,
.audio-panel,
.review-panel,
.teacher-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 24px);
}

.badge-panel {
  display: grid;
  gap: 10px;
  border-color: var(--sun);
  background: #fffaf0;
}

.badge-panel__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.badge-token {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--sun);
  color: #3b2b00;
  font-weight: 900;
}

.badge-token.is-earned {
  background: var(--accent);
  color: #fff;
}
.audio-panel__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 14px;
  margin-bottom: 12px;
}

.audio-panel__header h2 {
  margin: 0;
}

.audio-panel__header span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.audio-list,
.review-grid,
.teacher-grid {
  display: grid;
  gap: 10px;
}

.audio-row,
.review-card,
.teacher-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.audio-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.audio-row strong,
.review-card strong,
.teacher-card strong {
  color: var(--accent-strong);
}

.audio-row span,
.review-card span,
.teacher-card span {
  color: var(--muted);
  line-height: 1.45;
}
.audio-note {
  grid-column: 1 / -1;
  display: block;
  padding-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

.audio-button.is-loading {
  opacity: 0.65;
}

.audio-button,
.word-chip {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--accent-strong);
  font-weight: 800;
}

.review-card.is-done {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.review-card button {
  justify-self: start;
}

.builder-bank,
.builder-answer,
.builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.builder-answer {
  min-height: 44px;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--ink);
  font-weight: 800;
}

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

.response-row input,
.cloze-row input,
.listen-row input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.teacher-panel h2,
.badge-panel h2,
.audio-panel h2,
.review-panel h2 {
  margin: 0 0 10px;
  font-size: 21px;
}

.lesson-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  margin-top: 18px;
}

.command-button--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 980px) {
  .course-shell {
    grid-template-columns: 1fr;
  }

  .course-sidebar {
    order: 2;
  }

  .course-main {
    order: 1;
  }

  .lesson-list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar__actions {
    justify-content: space-between;
  }

  .segmented {
    flex: 1;
    min-width: 0;
  }

  .lesson-hero,
  .lesson-hero__content {
    min-height: 320px;
  }

  .lesson-hero::after {
    background: linear-gradient(180deg, rgba(16, 31, 23, 0.88), rgba(16, 31, 23, 0.54));
  }

  .dialogue__line,
  .typing-row,
  .match-row,
  .response-row,
  .cloze-row,
  .listen-row,
  .audio-row {
    grid-template-columns: 1fr;
  }

  .lesson-footer {
    grid-template-columns: 1fr;
  }

  .tabbar__button {
    min-height: 44px;
    padding: 0 4px;
    font-size: 13px;
  }
}

@media print {
  .topbar,
  .course-sidebar,
  .tabbar,
  .lesson-footer {
    display: none;
  }

  body {
    background: #fff;
  }

  .course-shell {
    display: block;
    padding: 0;
  }

  .lesson-hero {
    min-height: 0;
    border: 0;
    box-shadow: none;
  }

  .lesson-hero img,
  .lesson-hero::after {
    display: none;
  }

  .lesson-hero__content {
    min-height: 0;
    padding: 0 0 18px;
    color: #000;
  }

  .lesson-hero p:not(.eyebrow),
  .eyebrow {
    color: #000;
  }

  .section-band,
  .exercise-panel,
  .word-bank,
  .coach-panel,
  .teacher-panel,
  .badge-panel,
  .audio-panel,
  .review-panel {
    box-shadow: none;
    break-inside: avoid;
  }
}
.guided-shell {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 26px);
}

.guided-shell__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.guided-shell__top h2 {
  margin: 8px 0 4px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
}

.guided-shell__top p {
  margin: 0;
  color: var(--muted);
}

.phase-pill,
.guided-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.phase-pill {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.guided-status {
  justify-self: end;
  max-width: 240px;
  background: #fff7df;
  color: #6a4a00;
  line-height: 1.25;
}

.guided-status.is-complete {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.guided-stepper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
  gap: 8px;
}

.guided-step {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-height: 58px;
  padding: 7px 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--muted);
}

.guided-step span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.guided-step small {
  font-size: 11px;
  line-height: 1.1;
}

.guided-step.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.guided-step.is-complete span {
  background: var(--accent);
  color: #fff;
}

.guided-step.is-locked {
  opacity: 0.45;
}

.guided-body > .section-band,
.guided-body > .audio-panel,
.guided-body > .badge-panel {
  box-shadow: none;
}

.guided-intro {
  display: grid;
  gap: 14px;
}

.guided-intro > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.guided-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 2px;
}

.guided-actions--center {
  justify-content: center;
}

.shortcut-button--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.guided-lock-note {
  color: var(--muted);
  font-weight: 800;
}

.guided-shell--finish {
  justify-items: center;
  text-align: center;
}

.guided-shell--finish h2,
.guided-shell--finish p {
  margin: 0;
}

.guided-complete-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 32px;
  font-weight: 900;
}

.guided-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.guided-summary span {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 900;
}

.lesson-link.is-locked {
  opacity: 0.48;
}
/* Mobile-first course shell overrides */
@media (max-width: 760px) {
  :root {
    --shadow: 0 8px 22px rgba(33, 44, 36, 0.1);
  }

  body {
    background: #fff;
  }

  button,
  input,
  select,
  textarea {
    font-size: 16px;
  }

  .topbar {
    min-height: 0;
    padding: 9px 10px 8px;
    gap: 8px;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.96);
  }

  .brandmark {
    gap: 9px;
  }

  .brandmark__sigil {
    width: 34px;
    height: 34px;
  }

  .brandmark strong {
    font-size: 15px;
  }

  .brandmark small {
    max-width: 74vw;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar__actions {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .topbar__actions::-webkit-scrollbar,
  .lesson-list::-webkit-scrollbar,
  .tabbar::-webkit-scrollbar,
  .guided-stepper::-webkit-scrollbar,
  .hero-meta::-webkit-scrollbar {
    display: none;
  }

  .segmented {
    flex: 0 0 auto;
    min-width: 150px;
  }

  .segmented--language {
    min-width: 164px;
  }

  .segmented__button {
    min-height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }

  .icon-button {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
  }

  .course-shell {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 10px 10px 18px;
  }

  .course-sidebar {
    order: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
  }

  .course-main {
    order: 2;
  }

  .progress-box,
  .stats-box {
    min-height: 76px;
    padding: 10px;
    box-shadow: none;
  }

  .progress-box {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 9px;
  }

  .progress-ring {
    width: 44px;
    height: 44px;
    font-size: 12px;
  }

  .progress-box h2,
  .stats-box h2,
  .source-box h2 {
    font-size: 13px;
  }

  .progress-box p,
  .stats-box p,
  .source-box p {
    font-size: 12px;
    line-height: 1.35;
  }

  .stats-box__score {
    font-size: 28px;
    line-height: 1;
  }

  .source-box {
    display: none;
  }

  .lesson-list {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 1px 0 3px;
    scroll-snap-type: x proximity;
  }

  .lesson-link {
    flex: 0 0 min(78vw, 245px);
    grid-template-columns: 32px minmax(0, 1fr) 10px;
    min-height: 58px;
    padding: 9px;
    scroll-snap-align: start;
  }

  .lesson-link__number {
    width: 32px;
    height: 32px;
  }

  .lesson-link strong {
    font-size: 13px;
  }

  .lesson-link small {
    font-size: 12px;
  }

  .lesson-hero {
    min-height: 188px;
    border-radius: 0;
    margin: 0 -10px;
    box-shadow: none;
  }

  .lesson-hero__content {
    min-height: 188px;
    padding: 18px 14px;
  }

  .lesson-hero h1 {
    font-size: clamp(25px, 8vw, 34px);
    line-height: 1.05;
  }

  .lesson-hero p:not(.eyebrow) {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.42;
  }

  .hero-meta {
    flex-wrap: nowrap;
    gap: 7px;
    overflow-x: auto;
    margin-top: 12px;
    padding-bottom: 2px;
  }

  .hero-meta span {
    flex: 0 0 auto;
    min-height: 28px;
    font-size: 12px;
  }

  .tabbar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    margin: 10px -2px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .tabbar__button {
    flex: 0 0 auto;
    min-width: 104px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel-strong);
    font-size: 13px;
  }

  .tabbar__button:last-child {
    border-right: 1px solid var(--line);
  }

  .content-stage {
    min-height: 0;
    margin-top: 10px;
    gap: 12px;
  }

  .guided-shell,
  .section-band,
  .exercise-panel,
  .word-bank,
  .coach-panel,
  .teacher-panel,
  .badge-panel,
  .audio-panel,
  .review-panel {
    border-radius: 0;
    margin-right: -10px;
    margin-left: -10px;
    padding: 16px 12px;
    box-shadow: none;
  }

  .guided-shell {
    gap: 14px;
    border-right: 0;
    border-left: 0;
  }

  .guided-shell__top {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .guided-shell__top h2 {
    font-size: clamp(22px, 7vw, 30px);
  }

  .guided-status {
    justify-self: start;
    max-width: none;
  }

  .guided-stepper {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 3px;
    scroll-snap-type: x proximity;
  }

  .guided-step {
    flex: 0 0 72px;
    min-height: 58px;
    scroll-snap-align: start;
  }

  .guided-body > .section-band,
  .guided-body > .audio-panel,
  .guided-body > .badge-panel {
    margin-right: 0;
    margin-left: 0;
    padding: 14px 0 0;
    border: 0;
  }

  .guided-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    justify-content: stretch;
  }

  .guided-actions .shortcut-button,
  .guided-actions .check-button {
    width: 100%;
  }

  .guided-lock-note {
    text-align: center;
  }

  .section-band h2,
  .exercise-panel h2,
  .word-bank h2,
  .teacher-panel h2,
  .badge-panel h2,
  .audio-panel h2,
  .review-panel h2 {
    font-size: 20px;
  }

  .flow-grid,
  .teacher-grid,
  .review-grid,
  .audio-list,
  .coach-grid,
  .word-grid {
    grid-template-columns: 1fr;
  }

  .flow-card {
    min-height: 0;
  }

  .dialogue__line,
  .typing-row,
  .match-row,
  .response-row,
  .cloze-row,
  .listen-row,
  .audio-row {
    grid-template-columns: 1fr;
  }

  .choice-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .choice-button,
  .check-button,
  .command-button,
  .shortcut-button,
  .audio-button,
  .word-chip {
    min-height: 46px;
    padding: 0 14px;
  }

  .typing-row input,
  .response-row input,
  .cloze-row input,
  .listen-row input,
  .match-row select,
  .word-search input {
    min-height: 46px;
  }

  .exercise {
    padding: 14px;
  }

  .exercise h3 {
    font-size: 16px;
    line-height: 1.35;
  }

  .exercise__meta {
    gap: 6px;
  }

  .open-response textarea {
    min-height: 132px;
  }

  .data-table {
    min-width: 520px;
  }

  .guided-body,
  .section-band {
    overflow-x: auto;
  }

  .lesson-footer {
    grid-template-columns: 1fr;
    margin: 12px -10px 0;
    padding: 0 10px 4px;
  }
}

@media (max-width: 430px) {
  .course-sidebar {
    grid-template-columns: 1fr;
  }

  .lesson-link {
    flex-basis: 84vw;
  }

  .tabbar__button {
    min-width: 96px;
  }

  .guided-step {
    flex-basis: 66px;
  }
}

/* App navigation refresh */
body.menu-open {
  overflow: hidden;
}

.menu-button {
  font-size: 21px;
  line-height: 1;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(20, 28, 24, 0.38);
}

.app-menu {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 40;
  display: grid;
  align-content: start;
  gap: 14px;
  width: min(392px, calc(100vw - 22px));
  max-width: 100%;
  padding: 16px;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: #fff;
  box-shadow: -18px 0 50px rgba(24, 34, 28, 0.22);
}

.app-menu[hidden],
.menu-backdrop[hidden] {
  display: none !important;
}

.app-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-menu__header h2,
.menu-section h3 {
  margin: 0;
  letter-spacing: 0;
}

.app-menu__header h2 {
  font-size: 22px;
}

.menu-section {
  display: grid;
  gap: 10px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}

.menu-section:last-child {
  border-bottom: 0;
}

.menu-section h3 {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

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

.app-menu .progress-box,
.app-menu .stats-box {
  box-shadow: none;
}

.app-menu .segmented {
  width: 100%;
}

.app-menu .lesson-list {
  display: grid;
  gap: 8px;
  overflow: visible;
  padding: 0;
}

.app-menu .lesson-link {
  width: 100%;
  min-height: 58px;
}

.review-list {
  display: grid;
  gap: 8px;
}

.review-link {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 54px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  text-align: left;
}

.review-link span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 900;
}

.review-link strong,
.review-link small {
  display: block;
}

.review-link small,
.menu-empty {
  color: var(--muted);
  font-size: 13px;
}

.menu-empty {
  margin: 0;
  line-height: 1.45;
}

.menu-actions .command-button {
  width: 100%;
}

.course-shell {
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
  width: min(980px, 100%);
}

.course-sidebar {
  display: none;
}

.course-main {
  width: 100%;
}

.lesson-hero {
  min-height: 230px;
}

.lesson-hero__content {
  min-height: 230px;
}

.lesson-hero h1 {
  font-size: clamp(30px, 4vw, 46px);
}

.tabbar {
  position: sticky;
  top: 73px;
  z-index: 12;
  box-shadow: 0 8px 24px rgba(33, 44, 36, 0.08);
}

.guided-shell {
  overflow: hidden;
}

.guided-stepper {
  grid-template-columns: repeat(auto-fit, minmax(42px, 1fr));
}

.guided-step {
  min-height: 38px;
  padding: 5px;
}

.guided-step small {
  display: none;
}

.guided-body > .section-band,
.guided-body > .audio-panel,
.guided-body > .badge-panel {
  box-shadow: none;
}

@media (max-width: 760px) {
  .topbar {
    min-height: 56px;
    padding: 9px 12px;
    align-items: center;
  }

  .brandmark small {
    max-width: 58vw;
  }

  .app-menu {
    width: min(360px, calc(100vw - 14px));
    padding: 14px;
  }

  .course-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
    padding: 0 0 16px;
  }

  .lesson-hero {
    min-height: 156px;
    margin: 0;
    border-radius: 0;
  }

  .lesson-hero::after {
    background: linear-gradient(90deg, rgba(16, 31, 23, 0.88), rgba(16, 31, 23, 0.42));
  }

  .lesson-hero__content {
    min-height: 156px;
    padding: 15px 14px;
  }

  .lesson-hero h1 {
    font-size: clamp(24px, 7vw, 32px);
  }

  .lesson-hero p#lessonSummary {
    display: none;
  }

  .hero-meta span:nth-child(n+3) {
    display: none;
  }

  .tabbar {
    top: 56px;
    display: flex;
    gap: 7px;
    margin: 0;
    padding: 8px 10px;
    overflow-x: auto;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: none;
  }

  .tabbar__button {
    flex: 0 0 auto;
    min-width: 96px;
    min-height: 38px;
    padding: 0 10px;
    border-radius: 999px;
  }

  .content-stage {
    margin-top: 0;
  }

  .guided-shell,
  .section-band,
  .exercise-panel,
  .word-bank,
  .coach-panel,
  .teacher-panel,
  .badge-panel,
  .audio-panel,
  .review-panel {
    margin-right: 0;
    margin-left: 0;
    border-right: 0;
    border-left: 0;
  }

  .guided-shell__top {
    gap: 8px;
  }

  .guided-shell__top h2 {
    font-size: clamp(21px, 6vw, 28px);
  }

  .guided-status {
    padding: 6px 8px;
    font-size: 12px;
  }

  .guided-stepper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18px, 1fr));
    gap: 5px;
    overflow: visible;
    padding: 0;
  }

  .guided-step {
    min-width: 0;
    min-height: 26px;
    padding: 0;
    border-radius: 999px;
  }

  .guided-step span {
    font-size: 11px;
  }

  .guided-actions {
    position: sticky;
    bottom: 0;
    z-index: 10;
    margin: 0 -12px -16px;
    padding: 10px 12px 12px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
  }

  .lesson-footer {
    display: none;
  }

  .app-menu .lesson-list {
    display: grid;
  }

  .app-menu .lesson-link {
    flex: initial;
  }
}
/* Linear learner flow */
.tabbar,
.lesson-footer {
  display: none !important;
}

.menu-word-list {
  display: grid;
  gap: 12px;
}

.menu-word-group {
  display: grid;
  gap: 7px;
}

.menu-word-group > strong {
  color: var(--accent-strong);
  font-size: 13px;
  line-height: 1.25;
}

.menu-word-grid {
  display: grid;
  gap: 6px;
}

.menu-word-chip {
  display: grid;
  gap: 2px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
}

.menu-word-chip b {
  color: var(--ink);
  font-size: 14px;
}

.menu-word-chip small {
  color: var(--muted);
  line-height: 1.35;
}

@media (max-width: 760px) {
  .content-stage {
    margin-top: 0;
  }
}
/* Minimal learner surface */
.hero-meta,
.guided-stepper,
.phase-pill,
.guided-status,
.guided-shell__top p,
.guided-summary {
  display: none !important;
}

.lesson-hero {
  min-height: 170px;
}

.lesson-hero__content {
  min-height: 170px;
}

.lesson-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
}

.guided-shell {
  gap: 14px;
  padding: clamp(16px, 4vw, 24px);
}

.guided-shell__top {
  display: block;
}

.guided-shell__top h2 {
  margin: 0;
  font-size: clamp(23px, 5vw, 34px);
}

.guided-body > .section-band,
.guided-body > .audio-panel,
.guided-body > .badge-panel {
  padding-top: 0;
}

.shortcut-button:disabled,
.command-button:disabled,
.check-button:disabled {
  opacity: 0.42;
  cursor: default;
}

@media (max-width: 760px) {
  .lesson-hero {
    min-height: 116px;
  }

  .lesson-hero__content {
    min-height: 116px;
    padding: 12px 14px;
  }

  .lesson-hero h1 {
    font-size: clamp(22px, 6vw, 28px);
  }

  .guided-shell {
    padding: 15px 12px;
  }
}
/* Inline audio icons */
.audio-button,
.inline-audio-button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--accent-strong);
  cursor: pointer;
}

.audio-button {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
}

.inline-audio-button {
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  margin-left: 2px;
}

.audio-button svg,
.inline-audio-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.swahili-audio-text {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  vertical-align: middle;
}

.swahili-audio-text > span {
  min-width: 0;
}

.dialogue__line strong,
.word-card strong,
.menu-word-chip b,
.audio-row strong {
  min-width: 0;
}

.menu-word-chip .swahili-audio-text,
.word-card .swahili-audio-text {
  justify-content: space-between;
  width: 100%;
}

@media (max-width: 760px) {
  .audio-button {
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
  }

  .inline-audio-button {
    width: 34px;
    min-width: 34px;
    height: 34px;
    min-height: 34px;
  }
}

/* Course experience: compact mobile flow, focused menu and contextual help */
.topbar {
  flex-direction: row !important;
  min-height: 60px;
  padding: 8px clamp(12px, 3vw, 24px);
}

.brandmark {
  flex: 1 1 auto;
  max-width: calc(100% - 56px);
}

.brandmark__sigil,
.brandmark__logo {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
}

.brandmark > span:last-child {
  min-width: 0;
}

.brandmark strong,
.brandmark small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button,
.menu-button {
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
}

.app-menu {
  width: min(400px, 100vw);
  padding: 14px;
  overflow: hidden;
}

.app-menu__header {
  min-height: 44px;
}

.menu-nav {
  display: flex;
  gap: 6px;
  margin: 4px 0 14px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.menu-nav__button {
  flex: 0 0 auto;
  min-width: 88px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 750;
}

.menu-nav__button.is-active {
  border-color: var(--line);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.menu-panel-stack {
  height: calc(100dvh - 126px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.menu-panel {
  display: grid;
  gap: 14px;
  padding: 2px 1px 24px;
}

.menu-panel[hidden] {
  display: none !important;
}

.menu-panel > h3,
.menu-section > h3 {
  margin: 5px 0 0;
  font-size: 15px;
}

.menu-progress-grid {
  display: grid;
  gap: 10px;
}

.menu-panel .progress-box,
.menu-panel .stats-box {
  box-shadow: none;
}

.command-button {
  min-height: 44px;
}

.command-button--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.menu-word-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.menu-word-tools input,
.menu-word-tools select {
  width: 100%;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
}

.menu-word-group {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.menu-word-group summary {
  min-height: 44px;
  padding: 11px 2px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.lesson-progress {
  width: min(760px, calc(100% - 24px));
  height: 4px;
  margin: 10px auto 0;
  overflow: hidden;
  border-radius: 999px;
  background: var(--accent-soft);
}

.lesson-progress > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 180ms ease;
}

.content-stage {
  min-height: 0 !important;
}

.guided-shell {
  width: min(720px, 100%);
  min-height: 0;
  margin: 0 auto;
  gap: 14px;
}

.guided-shell__top h2 {
  max-width: 22ch;
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.18;
}

.guided-intro {
  display: grid;
  gap: 14px;
}

.guided-intro .outcome-list {
  margin: 0;
}

.guided-time-note {
  margin: 0;
  padding: 10px 12px;
  border-left: 3px solid var(--sun);
  background: #fff8e7;
  color: #5c4926;
  line-height: 1.45;
}

.guided-body > .section-band,
.guided-body > .audio-panel {
  padding: 0;
  border: 0;
  background: transparent;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.data-table {
  min-width: 540px;
}

.exercise__meta {
  display: none !important;
}

.exercise h3 {
  margin-top: 0;
  font-size: clamp(18px, 3vw, 22px);
  line-height: 1.35;
}

.choice-button,
.check-button,
.shortcut-button,
.text-button,
.coach-hint-button {
  min-height: 44px;
}

.text-button {
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.guided-actions {
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.guided-actions__secondary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.teacher-confirmation {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.teacher-confirmation input {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  accent-color: var(--accent);
}

.exercise-coach {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.coach-hint-button {
  padding: 0 12px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: #eef6fb;
  color: var(--blue);
  font-weight: 800;
}

.exercise-coach__response {
  width: 100%;
  padding: 10px 12px;
  border-left: 3px solid var(--blue);
  background: #f4f9fc;
  color: var(--ink);
  line-height: 1.5;
}

.course-toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  width: max-content;
  max-width: calc(100vw - 24px);
  transform: translateX(-50%);
  padding: 11px 16px;
  border: 1px solid var(--accent-strong);
  border-radius: 7px;
  background: var(--accent-strong);
  color: #fff;
  box-shadow: var(--shadow);
  font-weight: 850;
  text-align: center;
}

.course-toast[data-tone="complete"] {
  border-color: #8b6418;
  background: #8b6418;
}

.audio-button,
.inline-audio-button {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  margin-left: 2px;
  border-color: transparent;
  background: transparent;
}

.audio-button:hover,
.inline-audio-button:hover,
.audio-button:focus-visible,
.inline-audio-button:focus-visible {
  border-color: var(--line);
  background: var(--accent-soft);
}

.swahili-audio-text {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 3px;
}

.swahili-audio-text > span {
  overflow-wrap: anywhere;
}

.audio-row {
  min-height: 44px;
  padding: 2px 0;
  border-bottom: 1px solid var(--line);
}

.exercise-session .guided-actions {
  justify-content: flex-start;
}

@media (max-width: 760px) {
  .topbar {
    min-height: 56px;
    padding: 6px 10px;
  }

  .brandmark {
    gap: 8px;
  }

  .brandmark__sigil,
  .brandmark__logo {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .brandmark strong {
    font-size: 15px;
  }

  .brandmark small {
    max-width: 60vw;
    margin-top: 1px;
    font-size: 11px;
  }

  .app-menu {
    width: 100vw;
    padding: 10px;
  }

  .menu-panel-stack {
    height: calc(100dvh - 116px);
  }

  .lesson-hero {
    min-height: 104px;
  }

  .lesson-hero__content {
    min-height: 104px;
    padding: 11px 12px;
  }

  .lesson-hero h1 {
    max-width: 18ch;
    font-size: 23px;
    line-height: 1.12;
  }

  .lesson-progress {
    width: calc(100% - 20px);
    margin-top: 8px;
  }

  .guided-shell {
    padding: 14px 12px calc(76px + env(safe-area-inset-bottom));
  }

  .guided-shell__top h2 {
    font-size: 23px;
  }

  .guided-actions {
    position: fixed;
    z-index: 15;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0;
    padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -8px 24px rgba(33, 44, 36, 0.08);
  }

  .guided-actions .shortcut-button--primary {
    margin-left: auto;
  }

  .data-table {
    min-width: 500px;
  }

  .dialogue__line {
    gap: 4px;
  }

  .course-toast {
    bottom: calc(72px + env(safe-area-inset-bottom));
  }
}