:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #f0f6ff;
  --text: #152436;
  --muted: #64748b;
  --line: #d9e2ec;
  --navy: #16324f;
  --blue: #2f80ed;
  --blue-dark: #1f66c2;
  --mint: #e8f6f3;
  --mint-strong: #bfe9de;
  --amber: #f2a541;
  --amber-soft: #fff4df;
  --danger: #c2413a;
  --success: #18805e;
  --shadow: 0 18px 50px rgba(22, 50, 79, 0.1);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  background: var(--surface);
  color: var(--text);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 22px 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius);
}

.brand:hover .brand-mark {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(47, 128, 237, 0.2);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #cfe0f8;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 15px;
  line-height: 18px;
}

.brand span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

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

.nav-item {
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  color: #43566f;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 11px;
  text-align: left;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.nav-item:hover,
.nav-item.active {
  background: var(--surface-soft);
  color: var(--blue);
}

.nav-icon,
[data-icon] {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: currentColor;
  flex: 0 0 auto;
}

.call-card {
  margin-top: auto;
  border: 1px solid var(--line);
  background: #fbfdff;
  border-radius: var(--radius);
  padding: 14px;
}

.call-card span,
.card-kicker {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

.call-card strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
}

.call-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
}

.main {
  padding: 24px;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-label {
  margin: 0 0 3px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

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

h1 {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 34px;
}

h2 {
  margin: 10px 0 10px;
  font-size: 26px;
  line-height: 32px;
  max-width: 720px;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 25px;
}

.topbar-actions,
.player-footer,
.word-actions,
.choice-row,
.name-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.word-actions {
  flex-wrap: wrap;
}

.primary-button,
.ghost-button,
.small-button,
.icon-button {
  border-radius: var(--radius);
  border: 1px solid transparent;
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 760;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  text-decoration: none;
}

.primary-button svg,
.ghost-button svg,
.small-button svg,
.icon-button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.audio-button {
  min-height: 48px;
  padding: 0 13px;
}

.audio-mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--blue-dark);
  flex: 0 0 auto;
}

.audio-mark svg {
  width: 16px;
  height: 16px;
}

.audio-copy {
  display: grid;
  gap: 1px;
  text-align: left;
  line-height: 1.05;
}

.audio-copy b {
  font-size: 14px;
  line-height: 16px;
}

.audio-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 13px;
  text-transform: uppercase;
}

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

.primary-button:hover {
  background: var(--blue-dark);
}

.primary-button:disabled,
.ghost-button:disabled,
.small-button:disabled,
.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.ghost-button {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}

.ghost-button:hover {
  border-color: #b7c7da;
}

.small-button,
.icon-button {
  min-height: 34px;
  padding: 0 10px;
  background: var(--surface-soft);
  border-color: #c9dcf8;
  color: var(--navy);
}

.small-button.audio-button {
  min-height: 48px;
  padding: 0 13px;
  gap: 10px;
}

.small-button.audio-button.is-playing {
  border-color: #7db5ff;
  background: #e8f1ff;
}

.small-button.has-file-audio {
  border-color: #a8dcc0;
  background: #f4fff8;
}

.small-button.has-file-audio .audio-mark {
  background: #dff7ea;
  color: #147257;
}

.small-button.has-file-audio.is-playing {
  border-color: #46b178;
  background: #e6f6ef;
}

.audio-status {
  display: block;
  width: 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 16px;
}

.audio-status[data-tone="active"] {
  color: var(--blue-dark);
}

.audio-status[data-tone="warning"] {
  color: #8a5a00;
}

.icon-button {
  width: 34px;
  padding: 0;
}

.lesson-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: end;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 18px;
}

.lesson-copy p {
  color: var(--muted);
  line-height: 24px;
  max-width: 720px;
  margin-bottom: 0;
}

.lesson-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lesson-meta span {
  background: var(--surface-soft);
  color: var(--navy);
  border: 1px solid #cfe0f8;
  border-radius: var(--radius);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 760;
}

.lesson-meter {
  display: grid;
  gap: 8px;
}

.lesson-meter span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.meter-track {
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: #e5edf7;
}

.meter-fill {
  height: 100%;
  width: 12.5%;
  background: linear-gradient(90deg, var(--blue), var(--success));
  transition: width 240ms ease;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.player-panel,
.right-rail > section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.player-panel {
  min-width: 0;
  overflow: hidden;
}

.step-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
}

.step-tabs.collapsed {
  display: none;
}

.step-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  min-height: 56px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 800;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.step-tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
  background: #fff;
}

.step-tab.done {
  color: var(--success);
}

.player-content {
  min-height: 430px;
  padding: 24px;
  scroll-margin-top: 18px;
}

.player-footer {
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 14px 18px;
  background: #fbfdff;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 22px;
}

.content-grid > * {
  min-width: 0;
}

.quiet-text {
  color: var(--muted);
  line-height: 24px;
  margin-bottom: 18px;
}

.info-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.info-list li {
  position: relative;
  display: block;
  padding-left: 18px;
  color: var(--text);
  line-height: 22px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.info-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.lesson-note {
  background: var(--amber-soft);
  border: 1px solid #f5d6a4;
  border-radius: var(--radius);
  padding: 14px;
  color: #70430a;
  line-height: 22px;
}

.start-hero,
.theory-focus {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.start-hero-head,
.theory-lead,
.start-choice-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 22px;
  min-width: 0;
}

.start-hero-head,
.theory-lead {
  border-left: 5px solid var(--blue);
}

.start-hero-head h3,
.theory-lead h3 {
  margin: 10px 0;
  font-size: 28px;
  line-height: 34px;
  overflow-wrap: anywhere;
}

.start-hero-head p,
.theory-lead p,
.start-choice-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 24px;
}

.starter-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.starter-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: var(--surface-soft);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 850;
}

.starter-badge.mint {
  background: var(--mint);
  color: var(--success);
}

.starter-badge.amber {
  background: var(--amber-soft);
  color: #8a5208;
}

.starter-promise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.starter-promise {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.starter-promise span,
.start-mode-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.starter-promise b {
  color: var(--text);
  font-size: 18px;
  line-height: 23px;
}

.starter-promise p {
  margin: 0;
  color: var(--muted);
  line-height: 22px;
}

.start-route {
  display: grid;
  gap: 10px;
}

.start-route-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid #d3e3fb;
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
  color: var(--text);
}

.start-route-step > b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--blue-dark);
}

.start-route-step span {
  line-height: 22px;
}

.start-choice-panel {
  display: grid;
  gap: 14px;
}

.start-choice-panel h4 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 28px;
}

.start-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.start-mode-card {
  min-height: 142px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  padding: 16px;
  text-align: left;
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.start-mode-card strong {
  font-size: 22px;
  line-height: 28px;
}

.start-mode-card em {
  color: var(--muted);
  font-style: normal;
  line-height: 22px;
}

.start-mode-card.selected {
  border-color: var(--blue);
  background: #f7fbff;
  box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.14);
}

.start-mode-card[data-start-mode="refresh"].selected {
  border-color: var(--success);
  background: #f6fffc;
  box-shadow: 0 0 0 3px rgba(24, 128, 94, 0.14);
}

.start-mode-card:focus-visible {
  outline: 3px solid rgba(47, 128, 237, 0.28);
  outline-offset: 2px;
}

.start-mode-result {
  border: 1px solid var(--mint-strong);
  border-radius: var(--radius);
  background: var(--mint);
  color: #0f5e46;
  padding: 13px 14px;
  line-height: 22px;
}

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

.formula-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr) 34px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  min-width: 0;
}

.formula-step {
  border: 1px solid #d3e3fb;
  border-radius: var(--radius);
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 7px;
  min-width: 0;
}

.formula-step span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 900;
}

.formula-step b {
  font-size: 25px;
  line-height: 30px;
  overflow-wrap: anywhere;
}

.formula-step p {
  margin: 0;
  color: var(--muted);
  line-height: 21px;
}

.formula-symbol {
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 26px;
  font-weight: 900;
}

.review-track {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.review-track .formula-symbol {
  display: none;
}

.speech-drill {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mistake-map,
.dialogue-preview {
  display: grid;
  gap: 8px;
}

.mistake-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(120px, 1fr) minmax(130px, 1fr);
  gap: 8px;
  align-items: stretch;
}

.mistake-row > * {
  border-radius: var(--radius);
  padding: 10px;
  line-height: 20px;
}

.mistake-row span {
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.mistake-row .bad {
  background: #fff2f1;
  color: var(--danger);
}

.mistake-row .good {
  background: var(--mint);
  color: var(--success);
}

.dialogue-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
  padding: 14px;
}

.dialogue-preview p {
  margin: 0;
  color: var(--text);
}

.mini-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin: 14px 0;
}

.mini-table-row {
  display: grid;
  grid-template-columns: var(--cols, repeat(2, minmax(0, 1fr)));
  border-top: 1px solid var(--line);
}

.mini-table-row:first-child {
  border-top: 0;
}

.mini-table-row.head {
  background: var(--surface-soft);
}

.mini-table-row > b,
.mini-table-row > span {
  min-width: 0;
  padding: 12px 14px;
  line-height: 22px;
  overflow-wrap: break-word;
}

.mini-table-row > b + b,
.mini-table-row > span + span {
  border-left: 1px solid var(--line);
}

.answer-key summary {
  cursor: pointer;
  font-weight: 850;
}

.lesson-library {
  display: grid;
  gap: 18px;
}

.lesson-browser {
  display: grid;
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.lesson-index-panel {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
  display: grid;
  gap: 14px;
}

.lesson-index-panel h3 {
  margin-bottom: 6px;
}

.lesson-index-panel .quiet-text {
  margin-bottom: 0;
}

.lesson-filter-row {
  display: grid;
  gap: 8px;
}

.lesson-filter {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  min-height: 38px;
  padding: 0 10px;
  text-align: left;
  font-size: 13px;
  font-weight: 800;
}

.lesson-filter:hover,
.lesson-filter.active {
  border-color: #9fc8ff;
  background: var(--surface-soft);
  color: var(--blue-dark);
}

.lesson-outline {
  display: grid;
  gap: 8px;
}

.lesson-outline-link {
  border: 1px solid #dbe6f5;
  border-radius: var(--radius);
  background: #fbfdff;
  color: var(--text);
  padding: 10px;
  text-decoration: none;
  display: grid;
  gap: 3px;
}

.lesson-outline-link:hover {
  border-color: #9fc8ff;
  background: var(--surface-soft);
}

.lesson-outline-link.is-control {
  border-color: #f2c46d;
  background: #fff8eb;
  box-shadow: inset 4px 0 0 var(--amber);
}

.lesson-outline-link.is-control:hover {
  border-color: #e19a1b;
  background: #fff2d6;
}

.lesson-outline-link span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.lesson-outline-link strong {
  color: var(--navy);
  font-size: 14px;
  line-height: 18px;
}

.lesson-outline-link.is-control span,
.lesson-outline-link.is-control strong {
  color: #70430a;
}

.lesson-outline-link.is-hidden {
  display: none;
}

.compact-note {
  font-size: 13px;
}

.course-overview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
  box-shadow: var(--shadow);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.overview-stat {
  border: 1px solid #dbe6f5;
  border-radius: var(--radius);
  background: #fbfdff;
  padding: 13px;
}

.overview-stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.overview-stat strong {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-size: 22px;
  line-height: 26px;
}

.lesson-library-grid {
  display: grid;
  gap: 16px;
}

.vocabulary-library {
  gap: 18px;
}

.vocabulary-overview h2 {
  max-width: 820px;
}

.vocabulary-browser {
  grid-template-columns: 300px minmax(0, 1fr);
}

.vocabulary-panel {
  gap: 13px;
}

.filter-field {
  display: grid;
  gap: 6px;
}

.filter-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.search-input,
.filter-select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

.search-input:focus,
.filter-select:focus {
  border-color: #9fc8ff;
  box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.12);
}

.quick-topic-row {
  grid-template-columns: 1fr;
}

.dictionary-workspace {
  display: grid;
  gap: 16px;
}

.dictionary-toolbar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dictionary-toolbar h2 {
  margin: 4px 0 0;
  font-size: 24px;
  line-height: 30px;
}

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

.dictionary-tips div {
  border: 1px solid #dbe6f5;
  border-radius: var(--radius);
  background: #fbfdff;
  padding: 13px;
}

.dictionary-tips strong,
.dictionary-tips span {
  display: block;
}

.dictionary-tips strong {
  color: var(--navy);
  font-size: 14px;
}

.dictionary-tips span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
}

.dictionary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
}

.dictionary-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 15px;
  display: grid;
  gap: 10px;
  min-height: 218px;
}

.dictionary-card.is-favorite {
  border-color: #b8d6ff;
  background: #fbfdff;
}

.dictionary-card.is-review {
  box-shadow: inset 4px 0 0 var(--amber);
}

.dictionary-card-head,
.dictionary-meta-row,
.dictionary-actions,
.dictionary-tags {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.dictionary-card-head {
  justify-content: space-between;
  align-items: flex-start;
}

.dictionary-badge {
  border: 1px solid #dbe6f5;
  border-radius: 999px;
  background: #fbfdff;
  color: var(--muted);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 850;
  line-height: 14px;
}

.dictionary-badge.warning {
  border-color: #f5d6a4;
  background: var(--amber-soft);
  color: #70430a;
}

.dictionary-badge.review {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

.dictionary-word {
  margin: 0;
  color: var(--text);
  font-size: 27px;
  line-height: 32px;
  overflow-wrap: anywhere;
}

.dictionary-pronunciation {
  margin: 0;
  color: var(--blue-dark);
  font-size: 17px;
  line-height: 23px;
  font-weight: 780;
}

.dictionary-translation {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 23px;
}

.dictionary-tag {
  border: 1px solid #dbe6f5;
  border-radius: 999px;
  background: #fff;
  color: #43566f;
  min-height: 28px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
}

.dictionary-tag:hover {
  border-color: #9fc8ff;
  background: var(--surface-soft);
  color: var(--blue-dark);
}

.dictionary-actions {
  justify-content: flex-end;
}

.dictionary-sound,
.dictionary-state {
  min-height: 31px;
  padding: 0 9px;
  font-size: 12px;
}

.dictionary-sound svg {
  width: 15px;
  height: 15px;
}

.dictionary-state.active {
  border-color: var(--mint-strong);
  background: var(--mint);
  color: var(--success);
}

.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
  text-align: center;
}

.empty-state p {
  margin-bottom: 0;
  color: var(--muted);
}

.dictation-library {
  gap: 18px;
}

.dictation-overview h2 {
  max-width: 880px;
}

.dictation-overview .overview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.quick-dictations h2 {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 30px;
  max-width: none;
}

.quick-dictations .quiet-text {
  margin-bottom: 0;
}

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

.quick-dictation-card {
  min-height: 126px;
  border: 1px solid #dbe6f5;
  border-radius: var(--radius);
  background: #fbfdff;
  color: var(--text);
  padding: 13px;
  display: grid;
  align-content: start;
  gap: 6px;
  text-align: left;
}

.quick-dictation-card:hover,
.quick-dictation-card.active {
  border-color: #9fc8ff;
  background: var(--surface-soft);
}

.quick-dictation-card.planned {
  border-color: #f5d6a4;
  background: #fff8eb;
}

.quick-dictation-card span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.quick-dictation-card.planned span {
  color: #8a5a00;
}

.quick-dictation-card strong {
  color: var(--navy);
  font-size: 18px;
  line-height: 23px;
}

.quick-dictation-card em,
.quick-dictation-card small {
  color: var(--muted);
  font-style: normal;
  font-weight: 760;
  line-height: 18px;
}

.quick-dictation-card small {
  color: var(--blue-dark);
}

.dictation-browser {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.dictation-panel {
  gap: 13px;
}

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

.dictation-list-item {
  border: 1px solid #dbe6f5;
  border-radius: var(--radius);
  background: #fbfdff;
  color: var(--text);
  padding: 11px;
  text-align: left;
  display: grid;
  gap: 4px;
}

.dictation-list-item:hover,
.dictation-list-item.active {
  border-color: #9fc8ff;
  background: var(--surface-soft);
}

.dictation-list-item span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.dictation-list-item strong {
  color: var(--navy);
  font-size: 15px;
  line-height: 19px;
}

.dictation-list-item em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 17px;
}

.dictation-workspace {
  display: grid;
  gap: 16px;
}

.dictation-toolbar h2 {
  max-width: none;
}

.dictation-formula {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dictation-formula div {
  border: 1px solid #dbe6f5;
  border-radius: var(--radius);
  background: #fbfdff;
  padding: 13px;
}

.dictation-formula strong,
.dictation-formula span {
  display: block;
}

.dictation-formula strong {
  color: var(--navy);
  font-size: 14px;
}

.dictation-formula span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
}

.dictation-page-card {
  box-shadow: var(--shadow);
}

.dictation-progress {
  height: 11px;
  border-radius: 999px;
  background: #e8eef7;
  overflow: hidden;
}

.dictation-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--success));
}

.lesson-dictation-count {
  display: inline-grid;
  place-items: center;
  justify-self: start;
  min-width: 76px;
  min-height: 42px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--blue-dark);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.lesson-summary-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
  display: grid;
  gap: 16px;
  scroll-margin-top: 110px;
}

.lesson-summary-card.is-control {
  border-color: #f2c46d;
  background: linear-gradient(180deg, #fff9ed 0%, #ffffff 42%);
  box-shadow: inset 6px 0 0 var(--amber), var(--shadow);
}

.lesson-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.lesson-summary-head > div,
.lesson-summary-section {
  min-width: 0;
}

.lesson-summary-card,
.lesson-summary-card *,
.summary-cluster,
.summary-result,
.theory-line,
.formula-list li {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}

.lesson-summary-head h2 {
  margin: 4px 0 6px;
}

.lesson-number {
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.lesson-status {
  flex: 0 0 auto;
  border: 1px solid var(--mint-strong);
  border-radius: 999px;
  background: var(--mint);
  color: var(--success);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.lesson-status.control {
  border-color: #f2c46d;
  background: #fff3d7;
  color: #70430a;
}

.lesson-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lesson-pill {
  border: 1px solid #dbe6f5;
  border-radius: 999px;
  background: #fbfdff;
  color: var(--muted);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.lesson-summary-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.lesson-summary-section h3 {
  margin-bottom: 10px;
}

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

.formula-list li {
  border-left: 3px solid var(--blue);
  padding-left: 10px;
  color: var(--text);
  line-height: 22px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.summary-cluster {
  display: grid;
  gap: 10px;
}

.summary-cluster div,
.summary-result {
  border-left: 4px solid #2f80ed;
  background: #fbfdff;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.summary-cluster span,
.summary-result span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.summary-cluster b,
.summary-result b {
  display: inline;
  color: var(--text);
  line-height: 1.35;
}

.summary-result {
  margin-top: 12px;
  border-left-color: var(--success);
}

.theory-line {
  display: inline;
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--blue-dark);
  padding: 2px 6px;
  font-weight: 850;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  overflow-wrap: anywhere;
}

.lesson-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.theory-grid,
.lesson-recap-grid,
.skill-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.theory-card,
.recap-card,
.exercise-section,
.prompt-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
  min-width: 0;
}

.theory-card h4,
.recap-card h4 {
  margin: 8px 0 10px;
  font-size: 22px;
}

.theory-card p,
.recap-card p,
.skill-map p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0 0 14px;
}

.exercise-section {
  margin-top: 22px;
}

.exercise-section > h3 {
  margin: 8px 0 8px;
}

.prompt-panel {
  background: var(--surface-soft);
  margin: 18px 0;
}

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

.prompt-chip {
  border: 1px solid #d7e4f3;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
  line-height: 1.3;
  padding: 12px 14px;
}

.responsive-table {
  width: 100%;
  overflow-x: auto;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.rule-card-grid,
.transform-grid,
.lesson-word-grid,
.lesson-phrase-grid {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

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

.lesson40-theory-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.rule-card {
  border: 1px solid #cfe0f4;
  border-radius: 8px;
  background: #fbfdff;
  padding: 16px;
  display: grid;
  gap: 8px;
}

.rule-card span,
.transform-card span,
.lesson-phrase-card .card-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rule-card strong {
  color: var(--navy);
  font-size: 22px;
  line-height: 28px;
}

.rule-card p,
.transform-card p,
.lesson-word-card p,
.lesson-phrase-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.lesson-phrase-card .pron-text {
  color: var(--blue);
  font-weight: 850;
}

.lesson-phrase-card .muted-line {
  font-size: 14px;
}

.transform-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.transform-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.transform-side {
  min-width: 0;
}

.transform-card p {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.transform-card strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 21px;
  line-height: 27px;
  overflow-wrap: anywhere;
}

.transform-arrow {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--blue-dark);
  display: grid;
  place-items: center;
  font-weight: 900;
}

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

.lesson-word-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.lesson-word-card .word-main strong {
  font-size: 30px;
  line-height: 34px;
}

.lesson-word-card .ipa {
  font-size: 15px;
}

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

.lesson-phrase-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  display: grid;
  gap: 14px;
}

.lesson-phrase-card strong {
  display: block;
  margin: 7px 0 6px;
  color: var(--text);
  font-size: 23px;
  line-height: 30px;
}

.skill-map > div {
  border-left: 4px solid var(--blue);
  padding-left: 14px;
}

.skill-map b {
  display: block;
  color: var(--text);
  font-size: 18px;
  margin: 4px 0 6px;
}

.theory-block {
  border: 1px solid #b9d5ff;
  border-radius: var(--radius);
  background: #f4f8ff;
  padding: 16px;
  margin: 18px 0;
  display: grid;
  gap: 12px;
}

.theory-block h4 {
  margin: 0;
  color: var(--blue-dark);
  font-size: 18px;
  line-height: 24px;
}

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

.theory-item {
  border: 1px solid #d3e3fb;
  border-radius: var(--radius);
  background: #fff;
  padding: 12px;
  color: var(--text);
  line-height: 21px;
}

.theory-item span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.theory-formula {
  display: inline-block;
  border-radius: 8px;
  background: #e8f1ff;
  color: var(--blue-dark);
  padding: 2px 7px;
  font-weight: 850;
}

.letter-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(72px, 1fr));
  gap: 10px;
}

.letter-card {
  min-height: 92px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 10px;
}

.letter-card strong {
  font-size: 30px;
  line-height: 34px;
}

.letter-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
  margin: 16px 0;
}

.scroll-table {
  width: 100%;
  overflow-x: auto;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.lesson-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.lesson-table th,
.lesson-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
  line-height: 20px;
}

.lesson-table th {
  background: #fbfdff;
  color: var(--navy);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.lesson-table tr:last-child td {
  border-bottom: 0;
}

.theory-card .lesson-table {
  min-width: 0;
  table-layout: fixed;
}

.theory-card .lesson-table th,
.theory-card .lesson-table td {
  overflow-wrap: anywhere;
  padding: 9px 10px;
}

.dialogue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.lesson39-dialogue-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

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

.dialogue-card p {
  margin: 0;
  color: var(--text);
  line-height: 21px;
}

.dialogue-card--script {
  align-content: start;
}

.dialogue-script {
  display: grid;
  gap: 10px;
}

.dialogue-turn {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  padding: 10px 12px;
}

.dialogue-turn.speaker-b {
  background: #f4fbf8;
}

.dialogue-turn span {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 8px;
  background: #eaf2ff;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.dialogue-turn.speaker-b span {
  background: #e8f7ef;
  color: var(--green);
}

.dialogue-turn p {
  padding-top: 4px;
  font-weight: 800;
}

.dialogue-turn strong,
.dialogue-turn em {
  display: block;
}

.dialogue-turn strong {
  color: var(--navy);
  font-size: 16px;
  line-height: 23px;
}

.dialogue-turn em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px;
}

.dialogue-listen-row {
  display: flex;
  margin-top: 4px;
}

.dialogue-listen-row .listen-button {
  width: 100%;
}

.task-section {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.task-section h3 {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
  line-height: 28px;
}

.recap-help-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.recap-help-list article {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px 16px;
}

.recap-help-list strong {
  color: var(--navy);
  font-size: 18px;
  line-height: 24px;
}

.recap-help-list p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
}

.teaching-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: start;
}

.pattern-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
  display: grid;
  gap: 12px;
}

.phrase-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
  padding: 12px;
}

.phrase-line strong {
  display: block;
  color: var(--navy);
  font-size: 20px;
  line-height: 26px;
}

.phrase-line span {
  display: block;
  margin-top: 4px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 760;
}

.phrase-line p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 20px;
}

.rule-box {
  border-radius: var(--radius);
  border: 1px solid #f5d6a4;
  background: var(--amber-soft);
  padding: 13px;
  color: #70430a;
}

.rule-box strong {
  display: block;
  margin-bottom: 6px;
  color: #70430a;
}

.rule-box p {
  margin: 0 0 6px;
  line-height: 21px;
}

.rule-box p:last-child {
  margin-bottom: 0;
}

.topic-word-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.topic-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  align-items: stretch;
  margin-top: 14px;
}

.topic-word-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 13px;
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 118px;
  min-width: 0;
  color: var(--text);
  font: inherit;
  text-align: left;
  overflow-wrap: anywhere;
}

button.topic-word-card {
  width: 100%;
  cursor: pointer;
}

button.topic-word-card:hover {
  border-color: #9fc8ff;
  background: #fbfdff;
}

button.topic-word-card:focus-visible {
  outline: 3px solid rgba(47, 128, 237, 0.18);
  outline-offset: 2px;
}

.topic-word-card strong {
  display: block;
  color: var(--text);
  font-size: 22px;
  line-height: 28px;
}

.topic-word-card .ipa {
  margin-top: 4px;
  font-size: 14px;
}

.topic-word-card span {
  display: block;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 22px;
}

.topic-word-card .word-actions {
  margin-top: 8px;
  min-width: 0;
}

.topic-word-card .small-button.audio-button {
  max-width: 100%;
  min-width: 0;
}

.topic-word-card .audio-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
  color: inherit;
  font: inherit;
  line-height: 1.05;
}

.topic-word-card .audio-copy b {
  width: auto;
  height: auto;
  display: block;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 14px;
  line-height: 16px;
  overflow-wrap: anywhere;
}

.topic-word-card .audio-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 13px;
}

.reading-card .ghost-button {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  white-space: normal;
  line-height: 18px;
  text-align: center;
}

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

.mistake-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 8px;
}

.mistake-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mistake-grid b {
  color: var(--danger);
  font-size: 20px;
  line-height: 26px;
}

.mistake-grid strong {
  color: var(--success);
  font-size: 20px;
  line-height: 26px;
}

.mistake-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 22px;
}

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

.practice-grid .speak-panel {
  grid-column: 1 / -1;
}

.builder-output {
  min-height: 58px;
  border: 1px dashed #bcd0e7;
  border-radius: var(--radius);
  background: #fbfdff;
  display: flex;
  align-items: center;
  padding: 12px;
  color: var(--muted);
  font-weight: 760;
}

.builder-output.ready {
  color: var(--success);
  border-color: var(--mint-strong);
  background: var(--mint);
}

.builder-output.wrong {
  color: var(--danger);
  border-color: #efb6b2;
  background: #fff2f1;
}

.piece-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.answer-chip:disabled {
  cursor: default;
  opacity: 1;
}

.speak-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
  display: grid;
  gap: 12px;
}

.speak-panel strong {
  color: var(--navy);
  font-size: 24px;
  line-height: 30px;
}

.speak-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 22px;
}

.dictation-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
  display: grid;
  gap: 16px;
}

.dictation-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.dictation-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  height: 34px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--blue-dark);
  font-weight: 850;
}

.dictation-prompt {
  display: grid;
  gap: 10px;
}

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

.dictation-input {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 46px;
  padding: 0 14px;
  font-size: 18px;
  color: var(--text);
}

.dictation-input:focus,
.name-row input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(47, 128, 237, 0.14);
}

.dictation-result {
  border-radius: var(--radius);
  min-height: 84px;
  padding: 14px;
  border: 1px solid var(--line);
  background: #fbfdff;
  color: var(--muted);
  line-height: 22px;
}

.dictation-result.correct {
  border-color: var(--mint-strong);
  background: #eefbf7;
  color: var(--success);
}

.dictation-result.wrong {
  border-color: #f1b9b4;
  background: #fff4f3;
  color: #85302b;
}

.dictation-word-reveal {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text);
}

.dictation-word-reveal strong {
  font-size: 28px;
}

.dictation-word-reveal span {
  color: var(--blue);
  font-weight: 750;
}

.dictation-target {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 16px;
  min-width: 0;
}

.dictation-target strong {
  display: inline-block;
  font-size: 32px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

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

.dictation-card .dictation-actions {
  flex-wrap: wrap;
  justify-content: flex-start;
}

.listen-button {
  min-height: 52px;
  border: 1px solid #bcd6ff;
  border-radius: var(--radius);
  background: #eef5ff;
  color: var(--navy);
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  line-height: 20px;
  cursor: pointer;
}

.listen-button:hover {
  border-color: #8bbcff;
  background: #e8f1ff;
}

.listen-button:focus-visible {
  outline: 3px solid rgba(47, 128, 237, 0.18);
  outline-offset: 2px;
}

.listen-button svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

.listen-button span:not([data-icon]) {
  display: grid;
  gap: 1px;
}

.listen-button small {
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 850;
  line-height: 15px;
  text-transform: lowercase;
}

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

.stat-tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
  padding: 12px;
}

.stat-tile span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.stat-tile strong {
  display: block;
  margin-top: 6px;
  color: var(--navy);
  font-size: 22px;
}

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

.error-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: #fff;
}

.error-row b {
  color: var(--text);
}

.error-row span {
  color: var(--muted);
  font-size: 13px;
}

.soft-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border-radius: var(--radius);
  padding: 0 8px;
  background: var(--amber-soft);
  color: #8a5208;
  font-size: 12px;
  font-weight: 850;
}

.word-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.word-main strong {
  display: block;
  font-size: 42px;
  line-height: 44px;
}

.ipa {
  display: inline-block;
  margin-top: 8px;
  color: var(--blue);
  font-size: 17px;
  font-weight: 750;
}

.translation {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 750;
}

.pronunciation-note {
  margin: 0;
  color: var(--muted);
  line-height: 22px;
}

.word-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(90px, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.word-chip,
.answer-chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: var(--radius);
  min-height: 38px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 750;
}

.word-chip.active,
.answer-chip.selected,
.answer-chip.correct {
  border-color: var(--blue);
  background: var(--surface-soft);
  color: var(--blue-dark);
}

.answer-chip.wrong {
  border-color: #efb6b2;
  background: #fff2f1;
  color: var(--danger);
}

.name-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 42px;
  padding: 0 12px;
  color: var(--text);
}

.phrase-output {
  margin: 18px 0 12px;
  min-height: 58px;
  border: 1px dashed #bcd0e7;
  border-radius: var(--radius);
  background: #fbfdff;
  display: flex;
  align-items: center;
  padding: 12px;
  color: var(--muted);
  font-weight: 750;
}

.phrase-output.ready {
  color: var(--navy);
  border-color: var(--blue);
  background: var(--surface-soft);
}

.choice-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.content-intro {
  margin: 4px 0 18px;
}

.content-intro h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 26px;
  line-height: 32px;
}

.content-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 24px;
}

.soft-panel,
.practice-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
  margin: 18px 0;
}

.soft-panel {
  background: #fbfdff;
}

.practice-card h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 22px;
  line-height: 28px;
}

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

.choice-option {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  padding: 11px 14px;
  text-align: center;
  font-size: 18px;
  font-weight: 850;
  line-height: 24px;
}

.choice-option:hover:not(:disabled) {
  border-color: #9fc8ff;
  background: #fbfdff;
}

.choice-option.correct {
  border-color: var(--mint-strong);
  background: var(--mint);
  color: var(--success);
}

.choice-option.wrong {
  border-color: #efb6b2;
  background: #fff2f1;
  color: var(--danger);
}

.dictation-pron {
  color: var(--blue);
  font-size: 20px;
  font-weight: 850;
}

.hidden {
  display: none !important;
}

.free-answer {
  width: 100%;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--text);
  font: inherit;
  resize: vertical;
}

.free-answer:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(47, 128, 237, 0.14);
}

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

.written-card {
  display: grid;
  gap: 12px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
}

.written-card strong {
  color: var(--text);
  font-size: 24px;
  line-height: 30px;
}

.scrambled-prompt {
  display: grid;
  gap: 8px;
}

.scrambled-prompt > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.scrambled-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.scrambled-chip {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--blue-dark);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  font-size: 16px;
  font-weight: 850;
  line-height: 20px;
}

.scrambled-chip small {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: inherit;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.scrambled-chip--0 {
  border-color: #9bbcff;
  background: #edf4ff;
  color: #194f9f;
}

.scrambled-chip--1 {
  border-color: #86d6b2;
  background: #eaf8f1;
  color: #106443;
}

.scrambled-chip--2 {
  border-color: #f5c26b;
  background: #fff5df;
  color: #865006;
}

.scrambled-chip--3 {
  border-color: #f3a5b5;
  background: #fff0f3;
  color: #96324a;
}

.scrambled-chip--4 {
  border-color: #85d3d7;
  background: #e8f8f8;
  color: #0f6468;
}

.scrambled-chip--5 {
  border-color: #c2b1f1;
  background: #f4efff;
  color: #5940a1;
}

.recap-section {
  display: grid;
  gap: 18px;
}

.recap-hero {
  border: 1px solid #cfe0f8;
  border-left: 5px solid var(--blue);
  border-radius: var(--radius);
  background: #f8fbff;
  padding: 24px;
}

.recap-hero h2 {
  margin: 6px 0 10px;
}

.recap-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 28px;
}

.recap-score-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.recap-score-row span {
  border: 1px solid #cfe0f8;
  border-radius: 999px;
  background: #fff;
  color: var(--blue-dark);
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 850;
}

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

.recap-check-grid article,
.recap-next-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
}

.recap-check-grid article span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.recap-check-grid article h3,
.recap-next-panel h3 {
  margin: 6px 0 8px;
}

.recap-check-grid article p,
.recap-next-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 24px;
}

.recap-next-panel {
  display: grid;
  gap: 16px;
  background: #fbfcf8;
}

.recap-dictation-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recap-dictation-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #d8e1c3;
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 850;
}

.recap-dictation-chip b {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #edf4ff;
  color: var(--blue-dark);
  font-size: 11px;
}

.self-practice-prompt {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 850;
  line-height: 26px;
}

.written-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.written-input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  font-size: 18px;
  font-weight: 750;
}

.written-input:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(47, 128, 237, 0.14);
}

.answer-policy {
  margin-top: 12px;
}

.dialogue-stack {
  display: grid;
  gap: 12px;
}

.next-dictation-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.next-dictation-list div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px;
}

.next-dictation-list b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--blue-dark);
  font-size: 13px;
}

.next-dictation-list span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.next-dictation-list strong {
  color: var(--text);
  font-size: 17px;
  line-height: 22px;
  word-break: break-word;
}

.next-dictation-list em {
  color: var(--blue);
  font-size: 14px;
  font-style: normal;
  font-weight: 850;
  line-height: 19px;
}

.next-dictation-list small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 19px;
}

.next-dictation-list div > b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--blue-dark);
  font-size: 13px;
}

.next-dictation-list div > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.next-dictation-list .word-actions {
  margin-top: 5px;
  min-width: 0;
}

.next-dictation-list .small-button.audio-button {
  width: 100%;
  min-width: 0;
  justify-content: flex-start;
}

.next-dictation-list .audio-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
  color: inherit;
  font: inherit;
  line-height: 1.05;
}

.next-dictation-list .audio-copy b {
  width: auto;
  height: auto;
  display: block;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 14px;
  line-height: 16px;
  overflow-wrap: anywhere;
}

.next-dictation-list .audio-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 13px;
}

.next-dictation-list--compact {
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 12px;
}

.next-dictation-list--compact div {
  align-items: start;
  border-color: #d7e4f3;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 12px;
}

.next-dictation-list--compact b {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

.next-dictation-list--compact strong {
  font-size: 16px;
  line-height: 20px;
}

.next-dictation-list--compact em,
.next-dictation-list--compact small {
  font-size: 13px;
  line-height: 18px;
}

.quiz-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.quiz-card p {
  margin-bottom: 10px;
  font-weight: 780;
}

.answer-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.answer-option {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  padding: 10px 14px;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
}

.answer-option:hover:not(:disabled) {
  border-color: #9fc8ff;
  background: #fbfdff;
}

.answer-option:disabled {
  cursor: default;
  opacity: 1;
}

.answer-option.correct,
.answer-option.correct:disabled {
  border-color: var(--mint-strong);
  background: var(--mint);
  color: var(--success);
  box-shadow: inset 0 0 0 1px rgba(24, 128, 94, 0.12);
}

.answer-option.wrong,
.answer-option.wrong:disabled {
  border-color: #efb6b2;
  background: #fff2f1;
  color: var(--danger);
  box-shadow: inset 0 0 0 1px rgba(194, 65, 58, 0.12);
}

.quiz-feedback {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.quiz-feedback.correct {
  color: var(--success);
}

.quiz-feedback.wrong {
  color: var(--danger);
}

.recorder {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  gap: 14px;
}

.wave {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 3px;
  height: 54px;
  align-items: center;
}

.wave span {
  display: block;
  height: 16px;
  background: #cfe2ff;
  border-radius: 4px;
}

.recording .wave span {
  animation: pulse 900ms ease-in-out infinite alternate;
}

.wave span:nth-child(3n) {
  height: 36px;
}

.wave span:nth-child(4n) {
  height: 24px;
}

@keyframes pulse {
  from {
    transform: scaleY(0.65);
    background: #9fc8ff;
  }
  to {
    transform: scaleY(1.18);
    background: var(--blue);
  }
}

.complete-panel {
  display: grid;
  gap: 18px;
}

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

.reward-card {
  background: var(--mint);
  border: 1px solid var(--mint-strong);
  border-radius: var(--radius);
  padding: 14px;
}

.reward-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.reward-card strong {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-size: 22px;
}

.lesson-recap {
  display: grid;
  gap: 14px;
}

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

.recap-section h4 {
  margin: 0 0 10px;
  font-size: 16px;
}

.recap-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  line-height: 22px;
}

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

.recap-word {
  display: grid;
  gap: 3px;
  align-content: start;
  border: 1px solid #dbe6f5;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fbfdff;
  min-width: 0;
}

.recap-word strong {
  color: var(--navy);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.recap-word span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.recap-word em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 18px;
}

.right-rail {
  display: grid;
  gap: 14px;
}

.right-rail > section {
  padding: 16px;
}

.passport-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 21px;
  font-size: 13px;
}

.stamp {
  display: grid;
  place-items: center;
  height: 88px;
  margin-top: 12px;
  border: 2px dashed #e2ad49;
  border-radius: var(--radius);
  background: var(--amber-soft);
  color: #8a5208;
  font-size: 19px;
  font-weight: 900;
  transform: rotate(-1deg);
}

.stamp.unlocked {
  color: var(--success);
  border-color: #6bc6a7;
  background: #ecfbf6;
}

.xp-card {
  display: grid;
  gap: 13px;
}

.xp-card > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.xp-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.xp-card strong {
  font-size: 34px;
  color: var(--navy);
}

.xp-row,
.rail-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.xp-row b,
.rail-title b {
  color: var(--navy);
  font-size: 13px;
}

.rail-title {
  align-items: center;
  margin-bottom: 12px;
}

.rail-title span {
  font-weight: 850;
}

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

.rail-preview-entry {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
  padding: 9px 10px;
}

.rail-preview-entry b {
  color: var(--navy);
  font-size: 14px;
  line-height: 18px;
}

.rail-preview-entry em {
  color: var(--blue);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  line-height: 16px;
}

.rail-preview-entry small {
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
}

.preview-word {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fbfdff;
  min-height: 34px;
  padding: 7px 8px;
  font-size: 13px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-word.locked {
  color: #95a3b5;
  background: #f5f7fa;
}

.status-line {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--success);
  font-size: 14px;
  font-weight: 760;
}

.status-line.wrong {
  color: var(--danger);
}

.mobile-only {
  display: none;
}

@media (max-width: 1060px) {
  .app-shell {
    grid-template-columns: 1fr;
    min-width: 0;
    overflow-x: clip;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    height: auto;
    max-height: none;
    flex-direction: row;
    align-items: center;
    padding: 12px;
    gap: 12px;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: hidden;
  }

  .brand {
    flex: 0 0 auto;
  }

  .nav-list {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
  }

  .nav-item {
    width: auto;
    flex: 0 0 auto;
  }

  .call-card {
    display: none;
  }

  .workspace,
  .lesson-hero,
  .content-grid,
  .lesson-browser,
  .vocabulary-browser,
  .dictation-browser,
  .overview-grid,
  .lesson-summary-body,
  .dictionary-tips,
  .dictation-formula,
  .teaching-layout,
  .starter-promise-grid,
  .start-mode-grid,
  .theory-grid,
  .formula-track,
  .mistake-row,
  .recap-word-grid,
  .recap-check-grid,
  .two-column {
    grid-template-columns: 1fr;
  }

  .formula-symbol {
    min-height: 18px;
  }

  .right-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lesson-index-panel {
    position: static;
    min-width: 0;
    max-width: 100%;
    max-height: none;
    overflow-x: hidden;
    overflow-y: visible;
    scrollbar-gutter: auto;
  }

  .lesson-filter-row {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
  }

  .quick-topic-row {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
  }

  .lesson-outline {
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
  }

  .lesson-library,
  .lesson-browser {
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
  }

  .player-content {
    scroll-margin-top: 86px;
  }
}

@media (max-width: 760px) {
  .main {
    padding: 14px;
  }

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

  .topbar-actions {
    width: 100%;
    align-items: stretch;
    flex-wrap: wrap;
  }

  .topbar-actions button,
  .topbar-actions a {
    flex: 1 1 150px;
    min-width: 0;
    white-space: normal;
    text-align: center;
    line-height: 18px;
    padding-block: 8px;
  }

  .player-footer button {
    flex: 1;
  }

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

  .dictionary-toolbar .ghost-button {
    width: 100%;
  }

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

  .rule-card-grid,
  .recap-check-grid,
  .transform-grid,
  .lesson-word-grid,
  .lesson-phrase-grid {
    grid-template-columns: 1fr;
  }

  .transform-card {
    grid-template-columns: 1fr;
  }

  .transform-arrow {
    transform: rotate(90deg);
  }

  h1 {
    font-size: 24px;
    line-height: 30px;
  }

  h2 {
    font-size: 22px;
    line-height: 28px;
  }

  .lesson-hero,
  .player-content {
    padding: 16px;
  }

  .mini-table {
    overflow: hidden;
  }

  .mini-table[data-cols="3"] .mini-table-row {
    grid-template-columns: 1fr;
  }

  .mini-table[data-cols="3"] .mini-table-row.head {
    display: none;
  }

  .mini-table[data-cols="3"] .mini-table-row {
    border-top: 1px solid var(--line);
  }

  .mini-table[data-cols="3"] .mini-table-row:first-child + .mini-table-row {
    border-top: 0;
  }

  .mini-table[data-cols="3"] .mini-table-row > span {
    display: grid;
    grid-template-columns: minmax(86px, 0.42fr) minmax(0, 1fr);
    gap: 10px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .mini-table[data-cols="3"] .mini-table-row > span:first-child {
    border-top: 0;
  }

  .mini-table[data-cols="3"] .mini-table-row > span::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    line-height: 16px;
    text-transform: uppercase;
  }

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

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

  .topic-word-grid,
  .practice-grid,
  .dialogue-grid {
    grid-template-columns: 1fr;
  }

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

  .theory-card .responsive-table {
    overflow-x: visible;
  }

  .theory-card .lesson-table,
  .theory-card .lesson-table tbody,
  .theory-card .lesson-table tr,
  .theory-card .lesson-table td {
    display: block;
    width: 100%;
  }

  .theory-card .lesson-table {
    min-width: 0;
  }

  .theory-card .lesson-table thead {
    display: none;
  }

  .theory-card .lesson-table tr {
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
  }

  .theory-card .lesson-table tr:last-child {
    border-bottom: 0;
  }

  .theory-card .lesson-table td {
    display: grid;
    grid-template-columns: minmax(94px, 0.44fr) minmax(0, 1fr);
    gap: 10px;
    border-bottom: 0;
    padding: 6px 10px;
  }

  .theory-card .lesson-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    line-height: 16px;
    text-transform: uppercase;
  }

  .word-head,
  .name-row,
  .choice-row,
  .word-actions,
  .dictation-top,
  .dictation-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .word-actions .primary-button,
  .word-actions .ghost-button,
  .word-actions .small-button {
    width: 100%;
  }

  .dictation-card .dictation-actions {
    align-items: center;
    flex-direction: row;
  }

  .dictation-card .listen-button {
    width: auto;
    max-width: 100%;
  }

  .dictation-input-row,
  .dictation-stats,
  .error-row {
    grid-template-columns: 1fr;
  }

  .right-rail,
  .reward-grid {
    grid-template-columns: 1fr;
  }

  .word-main strong {
    font-size: 36px;
    line-height: 40px;
  }
}


.portfolio-hero {
  background:
    linear-gradient(135deg, rgba(232, 244, 255, 0.96), rgba(252, 247, 226, 0.94) 46%, rgba(238, 249, 242, 0.96)),
    #fff;
}

.portfolio-milestone,
.portfolio-thanks-panel {
  border: 1px solid #cfe0f8;
  border-left: 6px solid var(--blue);
  border-radius: var(--radius);
  background: #f8fbff;
  padding: 24px;
}

.portfolio-milestone span,
.portfolio-thanks-panel > span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.portfolio-milestone h3,
.portfolio-thanks-panel h2,
.portfolio-thanks-panel h3 {
  margin: 8px 0 10px;
}

.portfolio-milestone p,
.portfolio-thanks-panel p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 18px;
  line-height: 28px;
}

.portfolio-level-grid,
.portfolio-theory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.portfolio-level-card,
.portfolio-topic-card,
.portfolio-theory-card,
.portfolio-check-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.portfolio-level-card,
.portfolio-theory-card {
  padding: 18px;
}

.portfolio-level-card {
  display: grid;
  align-content: start;
  gap: 14px;
}

.portfolio-level-card h3 {
  margin: 0;
}

.portfolio-level-facts {
  display: grid;
  gap: 10px;
}

.portfolio-level-facts div {
  min-width: 0;
  border: 1px solid #dce8f6;
  border-radius: var(--radius);
  background: #fbfdff;
  padding: 12px;
}

.portfolio-level-facts span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.portfolio-level-facts b {
  display: block;
  color: var(--text);
  font-size: 16px;
  line-height: 22px;
  overflow-wrap: normal;
  word-break: normal;
}

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

.portfolio-topic-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.portfolio-topic-head span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.portfolio-topic-head h3 {
  margin: 6px 0 6px;
}

.portfolio-topic-head p {
  margin: 0;
  color: var(--muted);
}

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

.portfolio-topic-grid > div {
  border: 1px solid #dce8f6;
  border-radius: var(--radius);
  background: #fbfdff;
  padding: 12px;
}

.portfolio-topic-grid b {
  display: block;
  margin-bottom: 6px;
  color: var(--blue-dark);
  font-size: 12px;
  text-transform: uppercase;
}

.portfolio-topic-grid p {
  margin: 0;
  color: var(--text);
  line-height: 23px;
}

.portfolio-topic-grid p,
.portfolio-level-facts b,
.portfolio-theory-card .mini-table-row > span,
.lesson-section .rule-card .mini-table-row > span,
.lesson-section .soft-panel .mini-table-row > span {
  overflow-wrap: normal;
  word-break: normal;
}

.portfolio-theory-card .mini-table-row {
  grid-template-columns: 52px minmax(0, 1fr);
}

.portfolio-theory-card .mini-table-row.head {
  display: none;
}

.portfolio-theory-card .mini-table-row > span {
  padding: 11px 12px;
}

.portfolio-theory-card .mini-table-row > span:first-child {
  display: grid;
  place-items: center;
  color: var(--blue-dark);
  font-weight: 900;
  background: #f7fbff;
}

.lesson-section .rule-card .mini-table[data-cols="2"] .mini-table-row {
  grid-template-columns: 1fr;
}

.lesson-section .rule-card .mini-table[data-cols="2"] .mini-table-row.head {
  display: none;
}

.lesson-section .rule-card .mini-table[data-cols="2"] .mini-table-row > span {
  display: grid;
  grid-template-columns: minmax(112px, 0.34fr) minmax(0, 1fr);
  gap: 10px;
  border-left: 0;
  border-top: 1px solid var(--line);
  padding: 10px 12px;
}

.lesson-section .rule-card .mini-table[data-cols="2"] .mini-table-row > span:first-child {
  border-top: 0;
}

.lesson-section .rule-card .mini-table[data-cols="2"] .mini-table-row > span::before {
  content: attr(data-label);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.lesson-section .soft-panel .mini-table[data-cols="2"] .mini-table-row {
  grid-template-columns: minmax(180px, 0.5fr) minmax(0, 1fr);
}

.lesson-section .soft-panel .lesson37-mini-table[data-cols="2"] .mini-table-row,
.lesson37-mini-table[data-cols="2"] .mini-table-row {
  grid-template-columns: 1fr;
}

.lesson-section .soft-panel .lesson37-mini-table[data-cols="2"] .mini-table-row.head,
.lesson37-mini-table[data-cols="2"] .mini-table-row.head {
  display: none;
}

.lesson-section .soft-panel .lesson37-mini-table[data-cols="2"] .mini-table-row > span,
.lesson37-mini-table[data-cols="2"] .mini-table-row > span {
  display: grid;
  grid-template-columns: minmax(112px, 0.34fr) minmax(0, 1fr);
  gap: 10px;
  border-left: 0;
  border-top: 1px solid var(--line);
  overflow-wrap: normal;
  word-break: normal;
}

.lesson-section .soft-panel .lesson37-mini-table[data-cols="2"] .mini-table-row > span:first-child,
.lesson37-mini-table[data-cols="2"] .mini-table-row > span:first-child {
  border-top: 0;
}

.lesson-section .soft-panel .lesson37-mini-table[data-cols="2"] .mini-table-row > span::before,
.lesson37-mini-table[data-cols="2"] .mini-table-row > span::before {
  content: attr(data-label);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.lesson-section .soft-panel .lesson38-mini-table[data-cols="2"] .mini-table-row,
.lesson38-mini-table[data-cols="2"] .mini-table-row {
  grid-template-columns: 1fr;
}

.lesson-section .soft-panel .lesson38-mini-table[data-cols="2"] .mini-table-row.head,
.lesson38-mini-table[data-cols="2"] .mini-table-row.head {
  display: none;
}

.lesson-section .soft-panel .lesson38-mini-table[data-cols="2"] .mini-table-row > span,
.lesson38-mini-table[data-cols="2"] .mini-table-row > span {
  display: grid;
  grid-template-columns: minmax(112px, 0.34fr) minmax(0, 1fr);
  gap: 10px;
  border-left: 0;
  border-top: 1px solid var(--line);
  overflow-wrap: normal;
  word-break: normal;
}

.lesson-section .soft-panel .lesson38-mini-table[data-cols="2"] .mini-table-row > span:first-child,
.lesson38-mini-table[data-cols="2"] .mini-table-row > span:first-child {
  border-top: 0;
}

.lesson-section .soft-panel .lesson38-mini-table[data-cols="2"] .mini-table-row > span::before,
.lesson38-mini-table[data-cols="2"] .mini-table-row > span::before {
  content: attr(data-label);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.lesson-section .soft-panel .lesson39-mini-table[data-cols="2"] .mini-table-row,
.lesson39-mini-table[data-cols="2"] .mini-table-row {
  grid-template-columns: 1fr;
}

.lesson-section .soft-panel .lesson39-mini-table[data-cols="2"] .mini-table-row.head,
.lesson39-mini-table[data-cols="2"] .mini-table-row.head {
  display: none;
}

.lesson-section .soft-panel .lesson39-mini-table[data-cols="2"] .mini-table-row > span,
.lesson39-mini-table[data-cols="2"] .mini-table-row > span {
  display: grid;
  grid-template-columns: minmax(112px, 0.34fr) minmax(0, 1fr);
  gap: 10px;
  border-left: 0;
  border-top: 1px solid var(--line);
  overflow-wrap: normal;
  word-break: normal;
}

.lesson-section .soft-panel .lesson39-mini-table[data-cols="2"] .mini-table-row > span:first-child,
.lesson39-mini-table[data-cols="2"] .mini-table-row > span:first-child {
  border-top: 0;
}

.lesson-section .soft-panel .lesson39-mini-table[data-cols="2"] .mini-table-row > span::before,
.lesson39-mini-table[data-cols="2"] .mini-table-row > span::before {
  content: attr(data-label);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.lesson-section .soft-panel .lesson40-mini-table[data-cols="2"] .mini-table-row,
.lesson40-mini-table[data-cols="2"] .mini-table-row {
  grid-template-columns: 1fr;
}

.lesson-section .soft-panel .lesson40-mini-table[data-cols="2"] .mini-table-row.head,
.lesson40-mini-table[data-cols="2"] .mini-table-row.head {
  display: none;
}

.lesson-section .soft-panel .lesson40-mini-table[data-cols="2"] .mini-table-row > span,
.lesson40-mini-table[data-cols="2"] .mini-table-row > span {
  display: grid;
  grid-template-columns: minmax(112px, 0.34fr) minmax(0, 1fr);
  gap: 10px;
  border-left: 0;
  border-top: 1px solid var(--line);
  overflow-wrap: normal;
  word-break: normal;
}

.lesson-section .soft-panel .lesson40-mini-table[data-cols="2"] .mini-table-row > span:first-child,
.lesson40-mini-table[data-cols="2"] .mini-table-row > span:first-child {
  border-top: 0;
}

.lesson-section .soft-panel .lesson40-mini-table[data-cols="2"] .mini-table-row > span::before,
.lesson40-mini-table[data-cols="2"] .mini-table-row > span::before {
  content: attr(data-label);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .lesson-section .soft-panel .lesson38-mini-table .mini-table-row {
    grid-template-columns: 1fr;
  }

  .lesson-section .soft-panel .lesson38-mini-table .mini-table-row.head {
    display: none;
  }

  .lesson-section .soft-panel .lesson38-mini-table .mini-table-row > span {
    display: grid;
    grid-template-columns: minmax(86px, 0.34fr) minmax(0, 1fr);
    gap: 10px;
    border-left: 0;
    border-top: 1px solid var(--line);
    overflow-wrap: normal;
    word-break: normal;
  }

  .lesson-section .soft-panel .lesson38-mini-table .mini-table-row > span:first-child {
    border-top: 0;
  }

  .lesson-section .soft-panel .lesson38-mini-table .mini-table-row > span::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
  }

  .lesson-section .soft-panel .lesson39-mini-table .mini-table-row {
    grid-template-columns: 1fr;
  }

  .lesson-section .soft-panel .lesson39-mini-table .mini-table-row.head {
    display: none;
  }

  .lesson-section .soft-panel .lesson39-mini-table .mini-table-row > span {
    display: grid;
    grid-template-columns: minmax(86px, 0.34fr) minmax(0, 1fr);
    gap: 10px;
    border-left: 0;
    border-top: 1px solid var(--line);
    overflow-wrap: normal;
    word-break: normal;
  }

  .lesson-section .soft-panel .lesson39-mini-table .mini-table-row > span:first-child {
    border-top: 0;
  }

  .lesson-section .soft-panel .lesson39-mini-table .mini-table-row > span::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
  }

  .lesson-section .soft-panel .lesson40-mini-table .mini-table-row {
    grid-template-columns: 1fr;
  }

  .lesson-section .soft-panel .lesson40-mini-table .mini-table-row.head {
    display: none;
  }

  .lesson-section .soft-panel .lesson40-mini-table .mini-table-row > span {
    display: grid;
    grid-template-columns: minmax(86px, 0.34fr) minmax(0, 1fr);
    gap: 10px;
    border-left: 0;
    border-top: 1px solid var(--line);
    overflow-wrap: normal;
    word-break: normal;
  }

  .lesson-section .soft-panel .lesson40-mini-table .mini-table-row > span:first-child {
    border-top: 0;
  }

  .lesson-section .soft-panel .lesson40-mini-table .mini-table-row > span::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
  }
}

.portfolio-example-strip,
.portfolio-celebration-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portfolio-example-strip span {
  border: 1px solid #d8e4f3;
  border-radius: 999px;
  background: #f7fbff;
  color: var(--blue-dark);
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 850;
}

.portfolio-textarea {
  min-height: 150px;
}

.portfolio-checklist {
  display: grid;
  gap: 10px;
}

.portfolio-check-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 14px;
  color: var(--text);
  font-weight: 760;
}

.portfolio-check-item input {
  width: 20px;
  height: 20px;
  accent-color: var(--blue);
}

.portfolio-thanks {
  display: grid;
  gap: 16px;
}

.portfolio-thanks-panel {
  border-left-color: #f0b429;
  background:
    linear-gradient(135deg, rgba(255, 248, 225, 0.98), rgba(239, 248, 255, 0.98) 45%, rgba(237, 250, 242, 0.98)),
    #fff;
}

.portfolio-celebration-grid {
  margin: 18px 0;
}

.portfolio-celebration-grid div {
  min-width: 150px;
  border: 1px solid rgba(54, 94, 160, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  padding: 14px;
}

.portfolio-celebration-grid b {
  display: block;
  color: var(--blue-dark);
  font-size: 22px;
  line-height: 26px;
}

.portfolio-celebration-grid small {
  color: var(--muted);
  font-weight: 760;
}

@media (max-width: 1060px) {
  .portfolio-level-grid,
  .portfolio-theory-grid,
  .portfolio-topic-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {

  .mini-table[data-cols="2"] .mini-table-row {
    grid-template-columns: 1fr;
  }

  .mini-table[data-cols="2"] .mini-table-row.head {
    display: none;
  }

  .mini-table[data-cols="2"] .mini-table-row > span {
    display: grid;
    grid-template-columns: minmax(82px, 0.34fr) minmax(0, 1fr);
    gap: 10px;
    border-left: 0;
    border-top: 1px solid var(--line);
    overflow-wrap: normal;
    word-break: normal;
  }

  .mini-table[data-cols="2"] .mini-table-row > span:first-child {
    border-top: 0;
  }

  .mini-table[data-cols="2"] .mini-table-row > span::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
  }

  .portfolio-milestone,
  .portfolio-thanks-panel,
  .portfolio-topic-card {
    padding: 16px;
  }

  .portfolio-milestone p,
  .portfolio-thanks-panel p {
    font-size: 16px;
    line-height: 25px;
  }

  .portfolio-celebration-grid div {
    width: 100%;
  }
}


.progress-hero,
.group-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  border: 1px solid #cfe0f8;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(239, 248, 255, 0.98), rgba(237, 250, 242, 0.98) 52%, rgba(255, 248, 225, 0.96)),
    #fff;
  padding: 28px;
  margin-bottom: 18px;
}

.progress-hero h2,
.group-hero h2 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 40px;
}

.progress-hero p,
.group-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 28px;
}

.progress-ring {
  display: grid;
  place-items: center;
  width: 154px;
  height: 154px;
  border: 14px solid #d9f3e8;
  border-top-color: var(--blue);
  border-radius: 50%;
  background: #fff;
  color: var(--blue-dark);
}

.progress-ring span {
  font-size: 34px;
  font-weight: 950;
}

.progress-ring small,
.group-next-call small {
  color: var(--muted);
  font-weight: 800;
}

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

.progress-stat-grid > div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
}

.progress-stat-grid span,
.track-lesson,
.group-next-call span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.progress-stat-grid strong {
  display: block;
  margin: 7px 0 4px;
  color: var(--text);
  font-size: 26px;
  line-height: 30px;
}

.progress-stat-grid small {
  color: var(--muted);
  font-weight: 750;
}

.progress-layout,
.group-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
}

.progress-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
}

.progress-panel.compact {
  display: grid;
  gap: 12px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-head > div:first-child {
  flex: 1 1 240px;
  min-width: 220px;
}

.panel-head h2,
.progress-panel h3 {
  margin: 0;
}

.progress-filter-row {
  display: flex;
  flex: 2 1 460px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin: 0;
  min-width: 0;
}

.progress-filter-row .lesson-filter {
  flex: 1 1 118px;
  max-width: 180px;
  min-width: 108px;
}

.progress-track-list,
.task-list {
  display: grid;
  gap: 10px;
}

.progress-track-item,
.student-row {
  width: 100%;
  border: 1px solid #d8e4f3;
  border-radius: var(--radius);
  background: #fbfdff;
  color: var(--text);
  text-align: left;
}

.progress-track-item {
  display: grid;
  grid-template-columns: minmax(120px, 0.4fr) minmax(0, 1fr) 86px 140px 54px;
  align-items: center;
  gap: 12px;
  padding: 14px;
}

.progress-track-item.active,
.student-row.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(60, 126, 230, 0.12);
}

.progress-track-item strong {
  font-size: 16px;
}

.progress-track-item small {
  color: var(--muted);
  font-weight: 800;
}

.progress-track-item b {
  color: var(--blue-dark);
  text-align: right;
}

.progress-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef7;
}

.progress-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #23a26d);
}

.progress-side {
  display: grid;
  align-content: start;
  gap: 18px;
}

.task-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  border: 1px solid #d8e4f3;
  border-radius: var(--radius);
  background: #fbfdff;
  padding: 12px;
}

.task-item.static {
  grid-template-columns: 1fr;
}

.task-item b,
.task-item small {
  display: block;
}

.task-item small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 20px;
}

.group-next-call {
  min-width: 260px;
  border: 1px dashed #78d2ae;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  padding: 18px;
}

.group-next-call strong {
  display: block;
  margin: 8px 0 5px;
  color: #147257;
  font-size: 24px;
  line-height: 28px;
}

.student-table {
  display: grid;
  gap: 10px;
}

.student-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 96px 110px 88px;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.student-row b,
.student-row small,
.student-row span {
  display: block;
}

.student-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.student-status {
  border-radius: 999px;
  padding: 7px 10px;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.student-status.ready {
  background: #e6f6ef;
  color: #147257;
}

.student-status.watch {
  background: #fff2d8;
  color: #8a5700;
}

.student-status.portfolio {
  background: #eaf1ff;
  color: var(--blue-dark);
}

.student-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.student-detail-grid span,
.teacher-note {
  border: 1px solid #d8e4f3;
  border-radius: var(--radius);
  background: #fbfdff;
  padding: 10px;
}

.student-detail-grid b,
.teacher-note b,
.teacher-note span {
  display: block;
}

.teacher-note span {
  margin-top: 5px;
  color: var(--muted);
  line-height: 20px;
}

@media (max-width: 1100px) {
  .progress-layout,
  .group-layout {
    grid-template-columns: 1fr;
  }

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

  .progress-filter-row {
    justify-content: flex-start;
  }

  .progress-filter-row .lesson-filter {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .progress-hero,
  .group-hero,
  .panel-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .progress-ring,
  .group-next-call {
    width: 100%;
    min-width: 0;
  }

  .progress-ring {
    height: auto;
    min-height: 128px;
    border-radius: var(--radius);
  }

  .progress-stat-grid,
  .progress-track-item,
  .student-row,
  .student-detail-grid {
    grid-template-columns: 1fr;
  }

  .progress-filter-row .lesson-filter {
    flex-basis: calc(50% - 6px);
  }

  .progress-track-item b {
    text-align: left;
  }
}


/* Course audio system */
.course-audio-dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: grid;
  justify-items: end;
  gap: 10px;
  color: var(--text);
}

.course-audio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  border: 1px solid #b8d1f5;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  padding: 0 16px;
  box-shadow: 0 14px 34px rgba(38, 82, 150, 0.22);
  font-weight: 900;
}

.course-audio-toggle svg,
.course-audio-controls svg {
  width: 18px;
  height: 18px;
}

.course-audio-panel {
  width: min(390px, calc(100vw - 28px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 46px rgba(19, 41, 75, 0.18);
  padding: 16px;
}

.course-audio-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.course-audio-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 26px;
}

.course-audio-head [data-audio-status] {
  border-radius: 999px;
  background: #eaf1ff;
  color: var(--blue-dark);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.course-audio-dock.is-speaking .course-audio-head [data-audio-status] {
  background: #e6f6ef;
  color: #147257;
}

.course-audio-controls,
.course-audio-settings {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  margin-bottom: 10px;
}

.course-audio-controls .primary-button,
.course-audio-controls .ghost-button {
  min-height: 40px;
}

.course-audio-controls .primary-button {
  gap: 8px;
}

.course-audio-controls .icon-only {
  width: 42px;
  padding: 0;
}

.course-audio-settings {
  grid-template-columns: 1fr 1fr;
}

.course-audio-settings label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.course-audio-settings select {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  padding: 0 10px;
  font: inherit;
  font-weight: 800;
}

.course-audio-track-list {
  display: grid;
  gap: 8px;
  max-height: 286px;
  overflow: auto;
  padding-right: 2px;
}

.course-audio-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 1px solid #d8e4f3;
  border-radius: var(--radius);
  background: #fbfdff;
  color: var(--text);
  padding: 10px 12px;
  text-align: left;
}

.course-audio-track.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(60, 126, 230, 0.12);
}

.course-audio-track span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.course-audio-track small {
  color: var(--muted);
  font-weight: 850;
  text-transform: uppercase;
}

.course-audio-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.course-audio-foot span {
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 850;
}

@media (max-width: 760px) {
  .course-audio-dock {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .course-audio-toggle {
    justify-self: end;
  }

  .course-audio-panel {
    width: 100%;
  }
}

/* Premium sales landing */
.landing-page {
  --landing-navy: #061b33;
  --landing-navy-2: #0d2e52;
  --landing-red: #b5121b;
  --landing-red-dark: #8e1018;
  --landing-steel: #52657d;
  --landing-line: #d8dee8;
  --landing-soft: #f4f7fb;
  --landing-white: #ffffff;
  background: var(--landing-white);
  color: var(--landing-navy);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

.landing-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  height: 72px;
  padding: 0 clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(216, 222, 232, 0.76);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.landing-brand,
.landing-nav,
.landing-footer {
  display: flex;
  align-items: center;
}

.landing-brand {
  gap: 11px;
  color: var(--landing-navy);
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 800;
}

.landing-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 44px;
  border: 1px solid rgba(6, 27, 51, 0.28);
  border-radius: 6px;
  background:
    linear-gradient(180deg, #ffffff 0 40%, #b5121b 40% 52%, #ffffff 52% 64%, #b5121b 64% 76%, #ffffff 76%),
    #fff;
  color: var(--landing-navy);
  box-shadow: inset 0 -10px 0 rgba(6, 27, 51, 0.08);
  font-family: Inter, sans-serif;
  font-size: 12px;
  letter-spacing: 0;
}

.landing-nav {
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
}

.landing-nav a,
.landing-footer a {
  color: var(--landing-navy);
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
}

.landing-nav a:hover,
.landing-footer a:hover {
  color: var(--landing-red);
}

.landing-nav-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--landing-red);
  color: #fff;
  padding: 0 23px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(181, 18, 27, 0.18);
}

.landing-hero {
  position: relative;
  min-height: calc(100vh - 132px);
  overflow: hidden;
  background: var(--landing-navy);
  color: #fff;
}

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

.landing-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 15, 29, 0.94) 0%, rgba(3, 15, 29, 0.74) 38%, rgba(3, 15, 29, 0.2) 72%),
    linear-gradient(180deg, rgba(3, 15, 29, 0.2), rgba(3, 15, 29, 0.35));
}

.landing-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 410px);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
  min-height: calc(100vh - 132px);
  padding: clamp(44px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.landing-hero-copy {
  max-width: 760px;
}

.landing-hero h1 {
  margin: 0;
  max-width: 850px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 7.8vw, 104px);
  line-height: 0.95;
  letter-spacing: 0;
}

.landing-hero-copy p {
  max-width: 650px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
}

.landing-hero-actions,
.landing-free-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.landing-button {
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 24px;
  color: var(--landing-navy);
  text-decoration: none;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.landing-button-red {
  background: var(--landing-red);
  color: #fff;
  box-shadow: 0 16px 34px rgba(181, 18, 27, 0.22);
}

.landing-button-red:hover,
.landing-nav-cta:hover {
  background: var(--landing-red-dark);
}

.landing-button-light {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.92);
  color: var(--landing-navy);
}

.landing-button-navy {
  width: 100%;
  background: var(--landing-navy);
  color: #fff;
}

.landing-button-outline {
  width: 100%;
  border-color: var(--landing-navy);
  background: transparent;
  color: var(--landing-navy);
}

.landing-lead-card,
.landing-final-form {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(216, 222, 232, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--landing-navy);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  padding: 26px;
}

.landing-lead-card h2,
.landing-final-form h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 1.12;
}

.landing-lead-card p {
  margin: -6px 0 2px;
  color: var(--landing-steel);
  line-height: 1.45;
}

.landing-lead-card label,
.landing-final-form label {
  display: grid;
  gap: 7px;
  color: var(--landing-steel);
  font-size: 13px;
  font-weight: 800;
}

.landing-lead-card input,
.landing-lead-card select,
.landing-final-form input,
.landing-final-form select {
  min-height: 44px;
  width: 100%;
  border: 1px solid #cfd8e5;
  border-radius: 4px;
  background: #fff;
  color: var(--landing-navy);
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
}

.landing-lead-card small,
.landing-final-form small {
  color: #738296;
  font-size: 11px;
  line-height: 1.45;
}

.landing-form-status {
  min-height: 20px;
  margin: 0;
  color: #147257;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.4;
}

.landing-netlify-field {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.thanks-page {
  min-height: calc(100vh - 82px);
  background: var(--landing-paper);
}

.thanks-hero {
  position: relative;
  min-height: calc(100vh - 82px);
  display: grid;
  align-items: center;
  padding: 120px clamp(20px, 6vw, 92px);
  overflow: hidden;
}

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

.thanks-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 31, 58, 0.92), rgba(11, 31, 58, 0.68) 42%, rgba(11, 31, 58, 0.22));
}

.thanks-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: #fffdf8;
}

.thanks-hero-copy h1 {
  margin: 14px 0 18px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.thanks-hero-copy p {
  max-width: 610px;
  color: rgba(255, 253, 248, 0.84);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
}

@media (max-width: 640px) {
  .thanks-hero {
    min-height: calc(100svh - 126px);
    align-items: end;
    padding: 72px 22px 36px;
  }

  .thanks-hero::after {
    background: linear-gradient(180deg, rgba(11, 31, 58, 0.44), rgba(11, 31, 58, 0.7) 38%, rgba(11, 31, 58, 0.92));
  }

  .thanks-hero-copy h1 {
    max-width: 100%;
    font-size: 40px;
    line-height: 1.08;
    overflow-wrap: normal;
    word-break: normal;
  }

  .thanks-hero-copy p {
    font-size: 16px;
    line-height: 1.55;
  }

  .thanks-hero-copy .landing-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 100%;
  }

  .thanks-hero-copy .landing-button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .thanks-hero-copy h1 {
    font-size: 36px;
  }
}

.landing-proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--landing-line);
  background: #fff;
}

.landing-proof div {
  min-height: 116px;
  display: grid;
  align-content: center;
  gap: 5px;
  border-right: 1px solid var(--landing-line);
  padding: 0 clamp(20px, 4vw, 64px);
}

.landing-proof div:last-child {
  border-right: 0;
}

.landing-proof strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1;
}

.landing-proof span {
  color: var(--landing-steel);
  font-weight: 800;
}

.landing-section {
  padding: clamp(66px, 9vw, 118px) clamp(20px, 5vw, 72px);
}

.landing-section-head {
  max-width: 820px;
  margin: 0 auto 40px;
  text-align: center;
}

.landing-section-head h2,
.landing-control-list h2,
.landing-visa-band h2,
.landing-final-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.landing-section-head p,
.landing-control-list p,
.landing-final-copy p {
  margin: 16px 0 0;
  color: var(--landing-steel);
  font-size: 18px;
  line-height: 1.55;
}

.landing-offer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 1140px;
  margin: 0 auto;
}

.landing-offer-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 500px;
  border: 1px solid #b8c3d4;
  border-radius: 8px;
  background: #fff;
  padding: clamp(28px, 4vw, 42px);
}

.landing-offer-card-dark {
  border-color: var(--landing-navy);
  box-shadow: 0 22px 55px rgba(6, 27, 51, 0.14);
}

.landing-offer-top {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  min-height: 32px;
  display: grid;
  place-items: center;
  border-radius: 7px 7px 0 0;
  background: var(--landing-navy);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

.landing-offer-card-dark .landing-offer-icon,
.landing-offer-card-dark h3 {
  margin-top: 18px;
}

.landing-offer-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--landing-navy);
}

.landing-offer-icon svg {
  width: 46px;
  height: 46px;
}

.landing-offer-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 2.45vw, 32px);
  line-height: 1.16;
  text-wrap: pretty !important;
}

.landing-offer-card p {
  margin: 0;
  color: var(--landing-steel);
  font-size: 16px;
  line-height: 1.55;
}

.landing-offer-card ul,
.landing-control-list ul {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-offer-card li,
.landing-control-list li {
  position: relative;
  padding-left: 28px;
  line-height: 1.45;
  font-weight: 750;
}

.landing-offer-card li::before,
.landing-control-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 9px;
  height: 9px;
  border: 4px solid var(--landing-navy);
  border-radius: 50%;
}

.landing-offer-card .landing-button {
  margin-top: auto;
}

.landing-footnote {
  max-width: 1020px;
  margin: 24px auto 0;
  color: var(--landing-steel);
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
}

.landing-process {
  background: var(--landing-soft);
}

.landing-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.landing-step {
  position: relative;
  display: grid;
  gap: 12px;
  border-top: 2px solid var(--landing-navy);
  padding-top: 28px;
}

.landing-step b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--landing-navy);
  color: #fff;
  font-size: 16px;
}

.landing-step h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.landing-step p {
  margin: 0;
  color: var(--landing-steel);
  line-height: 1.5;
}

.landing-control {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: clamp(34px, 6vw, 80px);
}

.landing-dashboard {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  overflow: hidden;
  min-height: 460px;
  border: 1px solid #cfd8e5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(6, 27, 51, 0.14);
}

.landing-dashboard aside {
  display: grid;
  align-content: start;
  gap: 8px;
  background: var(--landing-navy);
  color: #fff;
  padding: 28px 18px;
}

.landing-dashboard aside span {
  margin-bottom: 14px;
  font-weight: 950;
}

.landing-dashboard aside a {
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.78);
  padding: 10px 11px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.landing-dashboard aside a.active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.landing-dashboard-main {
  display: grid;
  align-content: start;
  gap: 22px;
  padding: clamp(24px, 4vw, 38px);
  background: #f8fafc;
}

.landing-dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.landing-dashboard-head span {
  color: var(--landing-red);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.landing-dashboard-head h2 {
  margin: 7px 0 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.05;
}

.landing-dashboard-head a {
  flex: 0 0 auto;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  background: var(--landing-navy);
  color: #fff;
  padding: 0 16px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.landing-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.landing-metrics div,
.landing-next-lesson {
  border: 1px solid #d8e1ec;
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.landing-metrics strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.landing-metrics span,
.landing-next-lesson span {
  display: block;
  margin-top: 8px;
  color: var(--landing-steel);
  font-size: 13px;
  font-weight: 800;
}

.landing-next-lesson {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.landing-next-lesson strong {
  display: block;
  font-size: 18px;
}

.landing-next-lesson button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: #edf1f6;
  color: var(--landing-steel);
  padding: 0 15px;
  font-weight: 900;
}

.landing-control-list ul {
  margin-top: 28px;
}

.landing-control-list li {
  display: grid;
  gap: 4px;
}

.landing-control-list li::before {
  border-color: var(--landing-red);
}

.landing-control-list li span {
  color: var(--landing-steel);
  font-weight: 600;
}

.landing-visa-band {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(6, 27, 51, 0.98), rgba(6, 27, 51, 0.9)),
    url("assets/english-path-usa-hero.png") center/cover;
  color: #fff;
  padding: clamp(72px, 9vw, 120px) clamp(20px, 5vw, 72px);
}

.landing-visa-band > div {
  max-width: 960px;
}

.landing-visa-band p {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 1.55;
}

.landing-visa-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0;
}

.landing-visa-icons span {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 12px 15px;
  font-weight: 900;
}

.landing-visa-band small {
  display: block;
  max-width: 820px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.landing-final {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 470px);
  gap: clamp(30px, 7vw, 96px);
  align-items: center;
  background:
    linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.94) 52%, rgba(255, 255, 255, 0.72) 100%),
    url("assets/english-path-usa-hero.png") right center/cover;
}

.landing-free-row {
  margin-top: 32px;
}

.landing-free-row a,
.landing-free-row span {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--landing-line);
  border-radius: 6px;
  background: #fff;
  color: var(--landing-navy);
  padding: 0 16px;
  text-decoration: none;
  font-weight: 900;
}

.landing-final-form {
  box-shadow: 0 26px 64px rgba(6, 27, 51, 0.16);
}

.landing-footer {
  justify-content: center;
  gap: 28px;
  min-height: 86px;
  border-top: 1px solid var(--landing-line);
  background: #fff;
}

.landing-footer span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 850;
}

@media (max-width: 1060px) {
  .landing-header {
    grid-template-columns: 1fr auto;
  }

  .landing-nav {
    display: none;
  }

  .landing-hero-inner,
  .landing-control,
  .landing-final {
    grid-template-columns: 1fr;
  }

  .landing-hero-inner {
    align-items: start;
  }

  .landing-lead-card,
  .landing-final-form {
    max-width: 520px;
  }

  .landing-proof,
  .landing-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .landing-offer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .landing-header {
    height: auto;
    min-height: 64px;
    gap: 14px;
    padding: 12px 16px;
  }

  .landing-brand {
    font-size: 18px;
  }

  .landing-nav-cta {
    min-height: 38px;
    padding: 0 14px;
  }

  .landing-hero {
    min-height: 0;
  }

  .landing-hero-inner {
    min-height: 0;
    padding: 42px 16px;
  }

  .landing-lead-card {
    display: none;
  }

  .landing-hero h1 {
    font-size: clamp(42px, 14vw, 62px);
  }

  .landing-hero-copy p {
    font-size: 17px;
  }

  .landing-button,
  .landing-hero-actions .landing-button {
    width: 100%;
  }

  .landing-proof,
  .landing-steps,
  .landing-metrics {
    grid-template-columns: 1fr;
  }

  .landing-proof div {
    min-height: 92px;
    border-right: 0;
    border-bottom: 1px solid var(--landing-line);
  }

  .landing-section {
    padding: 58px 16px;
  }

  .landing-section-head {
    text-align: left;
  }

  .landing-offer-card {
    min-height: auto;
  }

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

  .landing-dashboard aside {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 16px;
  }

  .landing-dashboard aside span {
    grid-column: 1 / -1;
    margin-bottom: 0;
  }

  .landing-dashboard aside a {
    padding: 8px;
    font-size: 12px;
  }

  .landing-dashboard-head,
  .landing-next-lesson {
    display: grid;
  }

  .landing-dashboard-head a,
  .landing-next-lesson button {
    width: 100%;
    justify-content: center;
  }

  .landing-footer {
    flex-wrap: wrap;
    gap: 16px;
    padding: 22px 16px;
    justify-content: flex-start;
  }
}

/* Portal and refined sales flow */
.landing-page {
  --landing-blue: #1769e0;
  --landing-sky: #eaf4ff;
  --landing-gold: #f5b842;
  --landing-green: #16805e;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fbff 48%, #ffffff 100%);
}

.landing-header {
  height: 76px;
  gap: 22px;
  box-shadow: 0 14px 36px rgba(6, 27, 51, 0.06);
}

.landing-brand,
.landing-nav a,
.landing-footer a,
.landing-button,
.landing-nav-cta {
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.landing-brand:hover,
.portal-brand:hover {
  transform: translateY(-1px);
}

.landing-nav {
  gap: clamp(12px, 1.75vw, 26px);
}

.landing-nav a {
  position: relative;
}

.landing-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--landing-red);
  transition: transform 0.18s ease;
}

.landing-nav a:hover::after {
  transform: scaleX(1);
}

.landing-hero {
  min-height: calc(100vh - 186px);
}

.landing-hero-shade {
  background:
    linear-gradient(90deg, rgba(3, 15, 29, 0.94) 0%, rgba(3, 15, 29, 0.7) 42%, rgba(3, 15, 29, 0.08) 78%),
    linear-gradient(180deg, rgba(16, 105, 224, 0.12), rgba(181, 18, 27, 0.18));
}

.landing-hero-inner {
  min-height: calc(100vh - 186px);
  padding-top: clamp(34px, 4.2vw, 48px);
  padding-bottom: clamp(34px, 4.2vw, 48px);
}

.landing-lead-card {
  gap: 12px;
  padding: 22px;
}

.landing-button:hover,
.landing-nav-cta:hover {
  transform: translateY(-1px);
}

.landing-button-light:hover {
  border-color: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 34px rgba(255, 255, 255, 0.16);
}

.landing-proof {
  border-top: 4px solid var(--landing-red);
}

.landing-proof div:nth-child(2) {
  border-top: 4px solid var(--landing-blue);
}

.landing-proof div:nth-child(3) {
  border-top: 4px solid var(--landing-gold);
}

.landing-proof div:nth-child(4) {
  border-top: 4px solid var(--landing-green);
}

.landing-route {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--landing-line);
  background: #fff;
}

.landing-route a {
  position: relative;
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 0 clamp(16px, 3vw, 42px);
  border-right: 1px solid var(--landing-line);
  color: var(--landing-navy);
  text-decoration: none;
}

.landing-route a::before {
  content: "";
  position: absolute;
  top: 0;
  right: 18px;
  left: 18px;
  height: 4px;
  border-radius: 0 0 6px 6px;
  background: var(--landing-blue);
}

.landing-route a:nth-child(2)::before,
.landing-route a:nth-child(5)::before {
  background: var(--landing-red);
}

.landing-route a:nth-child(3)::before {
  background: var(--landing-gold);
}

.landing-route a:nth-child(4)::before {
  background: var(--landing-green);
}

.landing-route a:nth-child(6)::before {
  background: var(--landing-red);
}

.landing-route a:last-child {
  border-right: 0;
}

.landing-route b {
  font-size: 18px;
}

.landing-route span {
  color: var(--landing-steel);
  font-size: 13px;
  font-weight: 760;
}

.landing-route a:hover {
  background: var(--landing-sky);
}

.landing-offer-card,
.landing-step,
.landing-dashboard,
.landing-metrics div,
.landing-next-lesson,
.landing-free-row a,
.landing-free-row span,
.landing-final-form,
.landing-lead-card {
  box-shadow: 0 18px 50px rgba(6, 27, 51, 0.08);
}

.landing-offer-card::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  height: 4px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--landing-blue), var(--landing-red));
  opacity: 0.18;
}

.landing-offer-card-dark::after {
  opacity: 0.34;
}

.landing-step {
  border: 1px solid #d9e3ef;
  border-top: 4px solid var(--landing-navy);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
}

.landing-step:nth-child(2) {
  border-top-color: var(--landing-red);
}

.landing-step:nth-child(3) {
  border-top-color: var(--landing-blue);
}

.landing-step:nth-child(4) {
  border-top-color: var(--landing-green);
}

.landing-next-lesson a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--landing-navy);
  color: #fff;
  padding: 0 15px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.portal-page {
  --portal-navy: #061b33;
  --portal-ink: #102033;
  --portal-muted: #62728a;
  --portal-line: #d8e2ef;
  --portal-blue: #1769e0;
  --portal-red: #bd1d2a;
  --portal-gold: #f3b33f;
  --portal-green: #16805e;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #ffffff 0%, #f4f8fd 46%, #ffffff 100%);
  color: var(--portal-ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

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

.portal-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 0 clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(216, 226, 239, 0.9);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 36px rgba(6, 27, 51, 0.06);
  backdrop-filter: blur(16px);
}

.portal-brand,
.portal-nav,
.student-next-actions,
.manager-detail-actions {
  display: flex;
  align-items: center;
}

.portal-brand {
  gap: 11px;
  color: var(--portal-navy);
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 900;
  transition: transform 0.18s ease;
}

.portal-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 44px;
  border: 1px solid rgba(6, 27, 51, 0.22);
  border-radius: 6px;
  background:
    linear-gradient(180deg, #ffffff 0 42%, #bd1d2a 42% 54%, #ffffff 54% 66%, #bd1d2a 66% 78%, #ffffff 78%),
    #fff;
  color: var(--portal-navy);
  font-family: Inter, sans-serif;
  font-size: 12px;
  letter-spacing: 0;
  box-shadow: inset 0 -10px 0 rgba(6, 27, 51, 0.08);
}

.portal-nav {
  justify-content: center;
  gap: clamp(14px, 2vw, 30px);
}

.portal-nav a,
.portal-header-action,
.portal-user {
  color: var(--portal-navy);
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
}

.portal-nav a {
  position: relative;
  min-height: 76px;
  display: inline-flex;
  align-items: center;
}

.portal-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
}

.portal-nav a:hover,
.portal-nav a.active {
  color: var(--portal-blue);
}

.portal-nav a.active::after {
  background: var(--portal-blue);
}

.portal-header-action,
.portal-user {
  border: 1px solid var(--portal-line);
  border-radius: 6px;
  background: #fff;
  padding: 11px 14px;
}

.portal-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--portal-line);
  border-radius: 6px;
  background: #fff;
  color: var(--portal-navy);
  padding: 0 16px;
  text-decoration: none;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

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

.portal-button.danger {
  border-color: rgba(189, 29, 42, 0.22);
  background: #fff3f4;
  color: var(--portal-red);
}

.student-main,
.manager-main {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 42px);
}

.student-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  background: var(--portal-navy);
  color: #fff;
  box-shadow: 0 24px 70px rgba(6, 27, 51, 0.15);
}

.student-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 22px;
  padding: clamp(28px, 4vw, 54px);
}

.student-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1;
}

.student-hero-copy > p {
  max-width: 590px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.5;
}

.student-hero-visual {
  position: relative;
  min-height: 430px;
}

.student-hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, var(--portal-navy), rgba(6, 27, 51, 0.35) 48%, rgba(6, 27, 51, 0.02)),
    linear-gradient(180deg, rgba(23, 105, 224, 0.05), rgba(189, 29, 42, 0.16));
}

.student-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.student-plan-panel {
  max-width: 470px;
  display: grid;
  gap: 13px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--portal-navy);
  padding: 22px;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.18);
}

.student-plan-panel span,
.student-grid article > span,
.student-tools span,
.manager-card span,
.manager-detail-status {
  color: var(--portal-muted);
  font-size: 13px;
  font-weight: 850;
}

.student-plan-panel strong {
  font-size: 25px;
  line-height: 1.15;
}

.student-plan-panel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: #33465d;
  line-height: 1.4;
}

.student-plan-panel a {
  justify-self: start;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  background: var(--portal-navy);
  color: #fff;
  padding: 0 14px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.student-grid,
.student-tools,
.manager-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.student-grid article,
.student-tools a,
.student-lock,
.student-support,
.manager-filters,
.manager-column,
.manager-detail,
.manager-stats div {
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(6, 27, 51, 0.07);
}

.student-grid article {
  min-height: 178px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
}

.student-progress {
  grid-template-columns: minmax(0, 1fr) 128px;
  align-items: center;
}

.student-progress strong {
  display: block;
  margin-top: 16px;
  font-size: 44px;
  line-height: 1;
}

.student-progress p {
  margin: 4px 0 0;
  color: var(--portal-muted);
  font-weight: 800;
}

.student-ring {
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 58%, transparent 59%),
    conic-gradient(var(--portal-blue) 0 14deg, #e8eef6 14deg 360deg);
}

.student-ring span {
  color: var(--portal-blue);
  font-weight: 950;
}

.student-next h2,
.student-free h2 {
  margin: 2px 0 0;
  font-size: 24px;
  line-height: 1.15;
}

.student-next p,
.student-free p {
  margin: 0;
  color: var(--portal-muted);
  line-height: 1.48;
}

.student-next-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.student-free {
  border-top: 4px solid var(--portal-green);
}

.student-lock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 22px 24px;
  background:
    linear-gradient(90deg, #fff7f7, #fff),
    #fff;
}

.student-lock.is-open {
  background:
    linear-gradient(90deg, #eefaf6, #fff),
    #fff;
}

.student-lock strong {
  font-size: 19px;
}

.student-lock p {
  margin: 6px 0 0;
  color: var(--portal-muted);
}

.student-tools {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.student-tools a {
  min-height: 164px;
  display: grid;
  align-content: start;
  gap: 12px;
  color: var(--portal-ink);
  padding: 22px;
  text-decoration: none;
}

.student-tools strong {
  font-size: 19px;
}

.student-tools em {
  align-self: end;
  color: var(--portal-blue);
  font-style: normal;
  font-weight: 900;
}

.student-support {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 28px;
  margin-top: 18px;
  padding: clamp(24px, 4vw, 40px);
}

.student-support h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 46px);
}

.student-support p {
  color: var(--portal-muted);
  line-height: 1.55;
}

.student-message {
  display: grid;
  gap: 10px;
}

.student-message span {
  color: var(--portal-green);
  font-weight: 900;
}

.manager-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.manager-top-tools {
  display: grid;
  justify-items: end;
  gap: 10px;
  min-width: min(100%, 420px);
}

.manager-top-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.manager-sync-status {
  max-width: 420px;
  border: 1px solid rgba(176, 138, 69, 0.24);
  border-radius: 999px;
  background: rgba(176, 138, 69, 0.08);
  color: var(--premium-gold);
  padding: 8px 12px;
  text-align: right;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

.manager-sync-status.online {
  border-color: rgba(38, 118, 93, 0.24);
  background: rgba(38, 118, 93, 0.1);
  color: #26765d;
}

.manager-sync-status.loading {
  color: var(--premium-navy);
}

.manager-sync-status.error {
  border-color: rgba(155, 47, 54, 0.2);
  background: rgba(155, 47, 54, 0.08);
  color: #9b2f36;
}

.manager-top h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1;
}

.manager-top p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--portal-muted);
  font-size: 17px;
  line-height: 1.5;
}

.manager-filters {
  display: grid;
  grid-template-columns: 240px minmax(240px, 520px);
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px;
}

.manager-filters label,
.manager-detail label {
  display: grid;
  gap: 7px;
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 900;
}

.manager-filters select,
.manager-filters input,
.manager-detail select,
.manager-detail textarea {
  width: 100%;
  border: 1px solid #cfd9e7;
  border-radius: 6px;
  background: #fff;
  color: var(--portal-ink);
  font: inherit;
  font-size: 14px;
}

.manager-filters select,
.manager-filters input,
.manager-detail select {
  min-height: 42px;
  padding: 0 12px;
}

.manager-detail textarea {
  resize: vertical;
  padding: 12px;
  line-height: 1.45;
}

.manager-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.manager-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(138px, 1fr));
  gap: 10px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 6px;
}

.manager-column {
  min-height: 460px;
  padding: 12px;
}

.manager-column header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.manager-column h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
}

.manager-column header span {
  min-width: 30px;
  min-height: 26px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #eef4fb;
  color: var(--portal-blue);
  font-size: 13px;
  font-weight: 950;
}

.manager-column-list {
  display: grid;
  gap: 10px;
}

.manager-card {
  width: 100%;
  display: grid;
  gap: 6px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #fff;
  color: var(--portal-ink);
  padding: 12px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.manager-card.active,
.manager-card:hover {
  border-color: var(--portal-blue);
  box-shadow: 0 12px 28px rgba(23, 105, 224, 0.12);
}

.manager-card strong {
  font-size: 15px;
}

.manager-card em,
.manager-card small {
  color: var(--portal-muted);
  font-style: normal;
  font-size: 12px;
}

.manager-empty {
  margin: 0;
  color: var(--portal-muted);
  font-size: 13px;
}

.manager-detail {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.manager-detail-close {
  justify-self: end;
  width: 32px;
  height: 32px;
  border: 1px solid var(--portal-line);
  border-radius: 6px;
  background: #fff;
  color: var(--portal-muted);
  font-size: 22px;
  line-height: 1;
}

.manager-detail-status {
  justify-self: start;
  border-radius: 999px;
  background: #fff1f2;
  color: var(--portal-red);
  padding: 6px 10px;
}

.manager-detail h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.manager-detail p {
  margin: 0;
  color: var(--portal-muted);
  font-weight: 800;
}

.manager-detail dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.manager-detail dl div {
  display: grid;
  gap: 3px;
}

.manager-detail dt {
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 900;
}

.manager-detail dd {
  margin: 0;
  font-weight: 850;
}

.manager-detail-actions {
  flex-wrap: wrap;
  gap: 9px;
}

.manager-detail-actions .portal-button {
  width: 100%;
}

.crm-next-card,
.crm-timeline {
  display: grid;
  gap: 12px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #f8fbff;
  padding: 14px;
}

.crm-next-card > span,
.crm-timeline-head span {
  color: var(--portal-blue);
  font-size: 12px;
  font-weight: 950;
}

.crm-next-card h3,
.crm-timeline-head h3 {
  margin: 0;
  color: var(--portal-navy);
  font-size: 18px;
  line-height: 1.18;
}

.crm-next-card p {
  margin: 0;
  color: var(--portal-muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.crm-step-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.crm-step-actions .portal-button {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  white-space: normal;
}

.crm-timeline {
  background: #fff;
}

.crm-timeline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.crm-event-list {
  display: grid;
  gap: 9px;
  max-height: 250px;
  overflow: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crm-event {
  display: grid;
  gap: 4px;
  border-left: 3px solid rgba(23, 105, 224, 0.26);
  padding: 2px 0 2px 10px;
}

.crm-event time {
  color: var(--portal-muted);
  font-size: 11px;
  font-weight: 900;
}

.crm-event strong {
  color: var(--portal-navy);
  font-size: 13px;
  line-height: 1.25;
}

.crm-event span {
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.manager-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.manager-stats div {
  min-height: 116px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 22px;
}

.manager-stats strong {
  font-size: 34px;
  line-height: 1;
}

.manager-stats span {
  color: var(--portal-muted);
  font-weight: 850;
}

@media (max-width: 1120px) {
  .portal-header {
    grid-template-columns: 1fr auto;
  }

  .portal-nav {
    display: none;
  }

  .student-hero,
  .student-support,
  .manager-layout {
    grid-template-columns: 1fr;
  }

  .student-hero-visual {
    display: none;
  }

  .manager-detail {
    position: static;
  }
}

@media (max-width: 820px) {
  .landing-route,
  .student-grid,
  .student-tools,
  .manager-stats {
    grid-template-columns: 1fr;
  }

  .landing-route a {
    min-height: 82px;
    border-right: 0;
    border-bottom: 1px solid var(--landing-line);
  }

  .portal-header {
    min-height: 66px;
    padding: 11px 16px;
  }

  .portal-brand {
    font-size: 18px;
  }

  .portal-header-action,
  .portal-user {
    padding: 10px 11px;
    font-size: 12px;
  }

  .student-main,
  .manager-main {
    padding: 16px;
  }

  .student-hero {
    min-height: 0;
  }

  .student-hero-copy {
    padding: 26px 20px;
  }

  .student-plan-panel {
    padding: 18px;
  }

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

  .student-lock,
  .manager-top {
    display: grid;
  }

  .student-lock .portal-button,
  .portal-button.primary,
  .manager-top .portal-button {
    width: 100%;
  }

  .manager-filters {
    grid-template-columns: 1fr;
  }

  .manager-board {
    grid-template-columns: 1fr;
    overflow: visible;
    margin-right: 0;
    padding-right: 0;
  }

  .manager-column {
    min-height: 0;
  }

  .landing-hero,
  .landing-hero-inner {
    min-height: 0;
  }
}

/* Restored premium landing showcase sections */
.landing-control {
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
  gap: clamp(36px, 5vw, 76px);
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding-top: clamp(58px, 7vw, 86px);
  padding-bottom: clamp(58px, 7vw, 86px);
}

.landing-control-title {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.landing-control-title h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
  color: var(--landing-navy);
  text-transform: uppercase;
}

.landing-control-title span {
  width: 84px;
  height: 4px;
  border-radius: 4px;
  background: var(--landing-red);
}

.landing-control .landing-dashboard {
  min-height: 430px;
  grid-template-columns: 212px minmax(0, 1fr);
  border-color: rgba(216, 226, 239, 0.95);
  box-shadow: 0 26px 70px rgba(6, 27, 51, 0.14);
}

.landing-control .landing-dashboard aside {
  gap: 10px;
  padding: 30px 22px;
  background:
    linear-gradient(180deg, #092845, #0b355c);
}

.landing-control .landing-dashboard aside span {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.2;
}

.landing-control .landing-dashboard aside a {
  min-height: 40px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  padding: 0 12px;
}

.landing-control .landing-dashboard-main {
  gap: 28px;
  background:
    linear-gradient(180deg, #ffffff, #f7fbff);
  padding: clamp(26px, 3vw, 36px);
}

.landing-control .landing-dashboard-head h2 {
  max-width: 420px;
  font-family: Inter, sans-serif;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.15;
}

.landing-control .landing-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-control .landing-metrics div {
  display: grid;
  gap: 10px;
  min-height: 120px;
  align-content: center;
  box-shadow: 0 12px 32px rgba(6, 27, 51, 0.07);
}

.landing-control .landing-metrics span {
  order: -1;
  margin: 0;
  color: #7a8798;
  font-size: 12px;
}

.landing-control .landing-metrics strong {
  color: var(--landing-navy);
  font-size: clamp(25px, 3vw, 34px);
}

.landing-control .landing-next-lesson {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  padding: 18px;
  box-shadow: 0 12px 34px rgba(6, 27, 51, 0.08);
}

.landing-lesson-thumb {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid #aac1d9;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #bfd5e8, #88a9c4);
  color: var(--landing-navy);
}

.landing-lesson-thumb svg {
  width: 36px;
  height: 36px;
}

.landing-support-list {
  display: grid;
  gap: clamp(22px, 3vw, 34px);
}

.landing-support-list article {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
}

.landing-support-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--landing-navy);
  color: #fff;
  box-shadow: 0 16px 32px rgba(6, 27, 51, 0.18);
}

.landing-support-icon svg {
  width: 32px;
  height: 32px;
}

.landing-support-list h3 {
  margin: 0 0 7px;
  font-size: 22px;
  line-height: 1.2;
}

.landing-support-list p {
  margin: 0;
  color: var(--landing-steel);
  font-size: 16px;
  line-height: 1.45;
}

.landing-visa-band {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.05fr);
  align-items: stretch;
  gap: clamp(36px, 5vw, 72px);
  min-height: 430px;
  padding: 0 clamp(20px, 5vw, 72px) 0 0;
  background:
    radial-gradient(circle at 88% 22%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(90deg, #061b33, #082b4d 58%, #061b33);
}

.landing-visa-visual {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(6, 27, 51, 0.2), rgba(6, 27, 51, 0.7)),
    url("assets/english-path-usa-hero.png") center/cover;
}

.landing-visa-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 27, 51, 0.08), rgba(6, 27, 51, 0.82));
}

.landing-passport-card,
.landing-checklist-card {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

.landing-passport-card {
  left: clamp(26px, 5vw, 72px);
  bottom: 48px;
  width: 210px;
  min-height: 270px;
  display: grid;
  align-content: center;
  gap: 20px;
  padding: 26px;
  transform: rotate(-3deg);
  background:
    linear-gradient(145deg, #071d36, #102f51);
  color: #f5d79d;
  text-align: center;
  text-transform: uppercase;
}

.landing-passport-card span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 900;
  text-transform: none;
}

.landing-passport-card strong {
  color: rgba(245, 215, 157, 0.82);
  font-size: 16px;
  line-height: 1.35;
}

.landing-checklist-card {
  right: clamp(18px, 6vw, 88px);
  bottom: 34px;
  width: min(310px, 48vw);
  display: grid;
  gap: 10px;
  padding: 24px;
  transform: rotate(2deg);
  background: rgba(255, 255, 255, 0.92);
  color: var(--landing-navy);
}

.landing-checklist-card strong {
  margin-bottom: 4px;
  font-size: 19px;
}

.landing-checklist-card span {
  position: relative;
  padding-left: 26px;
  color: #46596d;
  font-size: 14px;
  font-weight: 780;
}

.landing-checklist-card span::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border: 1px solid #8ca9c5;
  border-radius: 4px;
  color: var(--landing-navy);
  font-size: 12px;
}

.landing-visa-copy {
  display: grid;
  align-content: center;
  max-width: 720px;
  padding: clamp(56px, 7vw, 92px) 0;
}

.landing-visa-band .landing-visa-copy h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1;
}

.landing-visa-band .landing-visa-copy p {
  max-width: 620px;
}

.landing-visa-icons {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.landing-visa-icons span {
  display: grid;
  justify-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 0;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  line-height: 1.25;
}

.landing-visa-icons svg {
  width: 34px;
  height: 34px;
  color: rgba(255, 255, 255, 0.78);
}

.landing-final {
  min-height: 430px;
  border-top: 1px solid rgba(216, 222, 232, 0.9);
  background:
    linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.96) 46%, rgba(255, 255, 255, 0.72) 100%),
    url("assets/english-path-usa-hero.png") right center/cover;
}

@media (max-width: 1120px) {
  .landing-control,
  .landing-visa-band {
    grid-template-columns: 1fr;
  }

  .landing-visa-band {
    padding: 0;
  }

  .landing-visa-copy {
    max-width: none;
    padding: 56px 20px;
  }
}

@media (max-width: 820px) {
  .landing-control {
    padding: 52px 16px;
  }

  .landing-control .landing-dashboard {
    grid-template-columns: 1fr;
  }

  .landing-control .landing-dashboard aside {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 16px;
  }

  .landing-control .landing-dashboard aside span {
    grid-column: 1 / -1;
  }

  .landing-control .landing-metrics,
  .landing-control .landing-next-lesson,
  .landing-visa-icons {
    grid-template-columns: 1fr;
  }

  .landing-control .landing-next-lesson {
    justify-items: start;
  }

  .landing-support-list article {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 16px;
  }

  .landing-support-icon {
    width: 52px;
    height: 52px;
  }

  .landing-visa-visual {
    min-height: 360px;
  }

  .landing-passport-card {
    left: 18px;
    bottom: 34px;
    width: 152px;
    min-height: 204px;
    padding: 18px;
  }

  .landing-passport-card span {
    font-size: 25px;
  }

  .landing-checklist-card {
    right: 16px;
    bottom: 26px;
    width: 198px;
    padding: 16px;
  }

  .landing-checklist-card span {
    font-size: 12px;
  }
}

/* Professional geometry pass for the sales showcase */
.landing-control {
  grid-template-columns: minmax(0, 700px) minmax(300px, 390px);
  justify-content: center;
  align-items: center;
  column-gap: clamp(42px, 5vw, 64px);
  row-gap: clamp(28px, 4vw, 42px);
  padding: clamp(56px, 6vw, 78px) clamp(22px, 4vw, 64px);
}

.landing-control-title {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 4px;
}

.landing-control-title h2 {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(32px, 3.1vw, 42px);
  line-height: 1.14;
  text-align: center;
  text-wrap: balance;
}

.landing-control-title span {
  width: 76px;
  height: 3px;
}

.landing-control .landing-dashboard {
  width: 100%;
  max-width: 700px;
  min-height: 0;
  grid-template-columns: 190px minmax(0, 1fr);
  align-self: center;
}

.landing-control .landing-dashboard aside {
  min-width: 0;
  gap: 8px;
  padding: 26px 20px;
}

.landing-control .landing-dashboard aside span {
  margin-bottom: 12px;
}

.landing-control .landing-dashboard aside a {
  min-height: 38px;
}

.landing-control .landing-dashboard-main {
  gap: 20px;
  padding: 28px;
  min-width: 0;
}

.landing-control .landing-dashboard-head {
  align-items: center;
}

.landing-control .landing-dashboard-head h2 {
  margin-top: 5px;
  font-size: 26px;
  line-height: 1.15;
}

.landing-control .landing-dashboard-head a {
  min-height: 40px;
  padding: 0 14px;
}

.landing-control .landing-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.landing-control .landing-metrics div {
  position: relative;
  min-height: 108px;
  overflow: hidden;
  align-content: center;
  gap: 8px;
  padding: 15px;
}

.landing-control .landing-metrics div::after {
  content: "";
  position: absolute;
  right: 15px;
  bottom: 14px;
  left: 15px;
  height: 4px;
  border-radius: 5px;
  background:
    linear-gradient(90deg, #1f66c2 0 62%, #e7edf4 62% 100%);
}

.landing-control .landing-metrics strong {
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.05;
  white-space: normal;
}

.landing-control .landing-metrics span {
  min-height: 30px;
  font-size: 11px;
  line-height: 1.25;
}

.landing-control .landing-next-lesson {
  grid-template-columns: 62px minmax(0, 1fr) 132px;
  gap: 16px;
  padding: 16px;
}

.landing-control .landing-next-lesson strong,
.landing-control .landing-next-lesson span {
  overflow-wrap: anywhere;
}

.landing-lesson-thumb {
  width: 56px;
  height: 56px;
}

.landing-support-list {
  width: 100%;
  max-width: 390px;
  justify-self: start;
  gap: 28px;
}

.landing-support-list article {
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
}

.landing-support-icon {
  width: 58px;
  height: 58px;
}

.landing-support-list h3 {
  font-size: 21px;
  line-height: 1.22;
}

.landing-support-list p {
  font-size: 15px;
}

.landing-visa-band {
  grid-template-columns: minmax(0, 47%) minmax(0, 53%);
  align-items: center;
  gap: 0;
  min-height: 440px;
  padding-right: clamp(22px, 5vw, 72px);
}

.landing-visa-copy {
  max-width: 700px;
  padding: clamp(56px, 7vw, 86px) 0;
}

.landing-visa-band .landing-visa-copy h2 {
  font-size: clamp(38px, 4.2vw, 56px);
  line-height: 1.08;
  text-wrap: balance;
}

.landing-visa-icons {
  align-items: start;
}

.landing-visa-icons span {
  min-width: 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.landing-final {
  min-height: 520px;
  grid-template-columns: minmax(0, 0.95fr) minmax(330px, 480px);
  padding-top: clamp(58px, 7vw, 82px);
  padding-bottom: clamp(58px, 7vw, 82px);
}

.landing-final-copy h2 {
  max-width: 640px;
  text-wrap: balance;
}

.landing-proof {
  border-top: 1px solid var(--landing-line);
}

.landing-proof div {
  min-height: 96px;
}

.landing-proof strong {
  font-size: 36px;
}

.landing-route a {
  min-height: 86px;
}

@media (max-width: 1200px) {
  .landing-control {
    grid-template-columns: minmax(0, 760px);
  }

  .landing-support-list {
    max-width: 760px;
    justify-self: center;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .landing-control {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 26px;
    padding: 52px 16px;
  }

  .landing-control-title {
    margin-bottom: 0;
  }

  .landing-control-title h2 {
    max-width: 340px;
    font-size: clamp(27px, 7.6vw, 34px);
    line-height: 1.16;
    letter-spacing: 0;
  }

  .landing-control .landing-dashboard {
    max-width: 100%;
    grid-template-columns: 1fr;
  }

  .landing-control .landing-dashboard aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 18px;
  }

  .landing-control .landing-dashboard aside span {
    grid-column: 1 / -1;
    margin-bottom: 4px;
    text-align: center;
  }

  .landing-control .landing-dashboard-main {
    padding: 20px;
  }

  .landing-control .landing-dashboard-head {
    display: grid;
    text-align: center;
  }

  .landing-control .landing-dashboard-head a {
    width: 100%;
    justify-content: center;
  }

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

  .landing-control .landing-metrics div {
    min-height: 102px;
  }

  .landing-control .landing-next-lesson {
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: center;
  }

  .landing-control .landing-next-lesson a {
    grid-column: 1 / -1;
    width: 100%;
  }

  .landing-support-list {
    max-width: 100%;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .landing-support-list article {
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: start;
  }

  .landing-support-icon {
    width: 50px;
    height: 50px;
  }

  .landing-support-list h3 {
    font-size: 19px;
  }

  .landing-visa-band {
    grid-template-columns: 1fr;
    padding-right: 0;
  }

  .landing-visa-copy {
    padding: 46px 18px 54px;
    text-align: center;
  }

  .landing-visa-band .landing-visa-copy h2 {
    max-width: 340px;
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(31px, 8.2vw, 40px);
    line-height: 1.12;
  }

  .landing-visa-band .landing-visa-copy p,
  .landing-visa-band small {
    margin-right: auto;
    margin-left: auto;
  }

  .landing-visa-icons {
    grid-template-columns: 1fr;
    max-width: 310px;
    margin-right: auto;
    margin-left: auto;
  }

  .landing-final {
    min-height: 0;
    grid-template-columns: 1fr;
    padding: 54px 16px;
  }

  .landing-final-copy {
    text-align: center;
  }

  .landing-final-copy h2 {
    max-width: 340px;
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1.12;
  }

  .landing-free-row {
    justify-content: center;
  }

  .landing-proof div {
    min-height: 84px;
  }

  .landing-route a {
    min-height: 76px;
  }
}

/* Live premium sales page pass */
.landing-page {
  background: #ffffff;
}

.landing-header {
  z-index: 10;
}

.landing-hero {
  min-height: calc(100vh - 76px);
  isolation: isolate;
}

.landing-hero-image {
  object-position: center;
  transform: scale(1.01);
}

.landing-hero-shade {
  background:
    linear-gradient(90deg, rgba(3, 14, 28, 0.96) 0%, rgba(3, 14, 28, 0.78) 36%, rgba(3, 14, 28, 0.12) 72%, rgba(3, 14, 28, 0.06) 100%),
    linear-gradient(180deg, rgba(3, 14, 28, 0.08), rgba(3, 14, 28, 0.2));
}

.landing-hero-inner {
  min-height: calc(100vh - 76px);
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 420px);
  max-width: 1440px;
  margin: 0 auto;
  padding-right: clamp(22px, 4vw, 58px);
  padding-left: clamp(22px, 5vw, 78px);
}

.landing-hero-copy {
  max-width: 720px;
}

.landing-hero h1 {
  max-width: 820px;
  font-size: clamp(58px, 7.1vw, 102px);
  line-height: 0.98;
  text-wrap: balance;
}

.landing-hero-copy p {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.88);
}

.landing-lead-card,
.landing-final-form {
  border-color: rgba(222, 229, 239, 0.98);
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(3, 14, 28, 0.24);
}

.landing-control {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.landing-control::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(23, 105, 224, 0.05), transparent 34%),
    linear-gradient(270deg, rgba(181, 18, 27, 0.045), transparent 34%);
}

.landing-control > * {
  position: relative;
}

.landing-control-title h2 {
  font-size: clamp(34px, 3.2vw, 44px);
  line-height: 1.16;
}

.landing-dashboard {
  border-radius: 12px;
}

.landing-control .landing-dashboard {
  box-shadow: 0 28px 78px rgba(6, 27, 51, 0.16);
}

.landing-support-list article {
  min-width: 0;
}

.landing-visa-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 620px);
  min-height: 560px;
  overflow: hidden;
  padding: 0 clamp(24px, 5vw, 82px);
  background: #061b33;
  isolation: isolate;
}

.landing-visa-band > div {
  max-width: none;
}

.landing-visa-visual {
  position: absolute;
  z-index: -1;
  inset: 0;
  min-height: 100%;
  overflow: hidden;
  background: #061b33;
}

.landing-visa-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: center;
}

.landing-visa-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 27, 51, 0.02) 0%, rgba(6, 27, 51, 0.1) 37%, rgba(6, 27, 51, 0.72) 56%, rgba(6, 27, 51, 0.96) 100%),
    linear-gradient(180deg, rgba(6, 27, 51, 0.08), rgba(6, 27, 51, 0.16));
}

.landing-visa-copy {
  grid-column: 2;
  justify-self: end;
  align-content: center;
  max-width: 620px;
  min-height: 560px;
  padding: clamp(58px, 7vw, 92px) 0;
}

.landing-visa-band .landing-visa-copy h2 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(42px, 4.4vw, 62px);
  line-height: 1.08;
  text-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
}

.landing-visa-band .landing-visa-copy p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.86);
}

.landing-visa-icons {
  grid-template-columns: repeat(5, minmax(76px, 1fr));
  gap: 18px;
  max-width: 620px;
}

.landing-visa-icons span {
  font-size: 14px;
  line-height: 1.28;
  overflow-wrap: normal;
  word-break: normal;
}

.landing-visa-icons svg {
  width: 38px;
  height: 38px;
}

.landing-visa-band small {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.76);
}

.landing-final {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background:
    linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.98) 39%, rgba(255, 255, 255, 0.84) 58%, rgba(255, 255, 255, 0.25) 100%),
    url("assets/english-path-final-live.png") right center/cover;
}

.landing-final::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(216, 222, 232, 0.92);
}

.landing-final-copy,
.landing-final-form {
  position: relative;
  z-index: 1;
}

.landing-final-copy h2 {
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1.04;
}

.landing-final-copy p {
  max-width: 620px;
}

.landing-free-row a,
.landing-free-row span {
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(6, 27, 51, 0.08);
}

@media (max-width: 1120px) {
  .landing-hero-inner {
    grid-template-columns: 1fr;
    align-content: center;
    max-width: 780px;
  }

  .landing-lead-card {
    max-width: 460px;
  }

  .landing-visa-band {
    grid-template-columns: 1fr;
    padding-right: 24px;
    padding-left: 24px;
  }

  .landing-visa-copy {
    grid-column: 1;
    justify-self: end;
    max-width: 570px;
  }
}

@media (max-width: 820px) {
  .landing-header {
    min-height: 68px;
  }

  .landing-hero {
    min-height: 690px;
  }

  .landing-hero-image {
    object-position: 62% center;
  }

  .landing-hero-shade {
    background:
      linear-gradient(180deg, rgba(3, 14, 28, 0.78) 0%, rgba(3, 14, 28, 0.64) 42%, rgba(3, 14, 28, 0.82) 100%),
      linear-gradient(90deg, rgba(3, 14, 28, 0.72), rgba(3, 14, 28, 0.16));
  }

  .landing-hero-inner {
    min-height: 690px;
    align-content: end;
    padding: 88px 18px 42px;
  }

  .landing-hero-copy {
    max-width: 352px;
    margin: 0 auto;
    text-align: center;
  }

  .landing-hero h1 {
    max-width: 352px;
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(39px, 10.8vw, 52px);
    line-height: 1.07;
    text-align: center;
  }

  .landing-hero-copy p {
    max-width: 340px;
    margin-right: auto;
    margin-left: auto;
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
  }

  .landing-hero-actions {
    gap: 10px;
    margin-top: 24px;
  }

  .landing-control-title h2 {
    max-width: 348px;
    font-size: clamp(27px, 7.2vw, 34px);
    line-height: 1.2;
  }

  .landing-control .landing-dashboard-main {
    padding: 18px;
  }

  .landing-control .landing-metrics span {
    min-height: 0;
  }

  .landing-control .landing-metrics strong {
    font-size: 24px;
  }

  .landing-visa-band {
    display: block;
    min-height: 0;
    padding: 0;
  }

  .landing-visa-visual {
    position: relative;
    z-index: 0;
    min-height: 330px;
  }

  .landing-visa-visual img {
    min-height: 330px;
    object-position: 22% center;
  }

  .landing-visa-visual::after {
    background:
      linear-gradient(180deg, rgba(6, 27, 51, 0.03) 0%, rgba(6, 27, 51, 0.22) 58%, #061b33 100%),
      linear-gradient(90deg, rgba(6, 27, 51, 0.04), rgba(6, 27, 51, 0.22));
  }

  .landing-visa-copy {
    max-width: 390px;
    min-height: 0;
    margin: 0 auto;
    padding: 30px 18px 48px;
    text-align: center;
  }

  .landing-visa-band .landing-visa-copy h2 {
    max-width: 350px;
    font-size: clamp(31px, 8vw, 39px);
    line-height: 1.16;
  }

  .landing-visa-band .landing-visa-copy p {
    max-width: 350px;
    font-size: 16px;
    line-height: 1.52;
  }

  .landing-visa-icons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
    max-width: 350px;
  }

  .landing-visa-icons span {
    font-size: 13px;
  }

  .landing-visa-icons span:last-child {
    grid-column: 1 / -1;
    max-width: 240px;
    justify-self: center;
  }

  .landing-final {
    min-height: 0;
    padding: 236px 16px 50px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.76) 28%, #ffffff 48%, #ffffff 100%),
      url("assets/english-path-final-live.png") 68% top/auto 310px no-repeat,
      #ffffff;
  }

  .landing-final-copy h2 {
    max-width: 350px;
    font-size: clamp(34px, 9.4vw, 45px);
    line-height: 1.12;
  }

  .landing-final-copy p {
    max-width: 350px;
    margin-right: auto;
    margin-left: auto;
    font-size: 16px;
    line-height: 1.5;
  }

  .landing-final-form {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 20px;
  }
}

/* Expanded premium landing funnel */
/* Expanded premium landing funnel */
.landing-section-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 16px;
  border-left: 4px solid var(--landing-red);
  color: var(--landing-red);
  padding-left: 12px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-split-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.65fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: end;
  max-width: 1180px;
  margin: 0 auto clamp(32px, 5vw, 58px);
}

.landing-split-head h2,
.landing-result h2,
.landing-book-strip h2,
.landing-faq h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}

.landing-split-head p {
  margin: 0;
  color: var(--landing-steel);
  font-size: 18px;
  line-height: 1.62;
}

.landing-audience {
  background: #fff;
}

.landing-audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
}

.landing-audience-grid article,
.landing-inside-grid article,
.landing-faq-list details {
  border: 1px solid #d9e3ef;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(6, 27, 51, 0.08);
}

.landing-audience-grid article {
  display: grid;
  align-content: start;
  min-height: 270px;
  padding: clamp(24px, 3vw, 34px);
}

.landing-audience-grid b {
  color: var(--landing-red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1;
}

.landing-audience-grid h3,
.landing-inside-grid h3 {
  margin: 26px 0 10px;
  color: var(--landing-navy);
  font-size: clamp(22px, 2.3vw, 28px);
  line-height: 1.16;
}

.landing-audience-grid p,
.landing-inside-grid p {
  margin: 0;
  color: var(--landing-steel);
  line-height: 1.58;
}

.landing-result {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 0.9fr);
  gap: clamp(34px, 6vw, 86px);
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(6, 27, 51, 0.98), rgba(6, 27, 51, 0.9)),
    url("assets/english-path-usa-hero-live.png") center/cover;
  color: #fff;
}

.landing-result::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(6, 27, 51, 0.05), rgba(6, 27, 51, 0.3));
}

.landing-result > * {
  position: relative;
  z-index: 1;
}

.landing-result-copy {
  max-width: 650px;
}

.landing-result-copy p {
  max-width: 610px;
  margin: 22px 0 30px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.62;
}

.landing-result .landing-section-label,
.landing-book-strip .landing-section-label {
  border-left-color: #ffffff;
  color: rgba(255, 255, 255, 0.78);
}

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

.landing-week-list article {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px 20px;
  align-items: start;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  backdrop-filter: blur(12px);
}

.landing-week-list span {
  color: #f2c772;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.landing-week-list strong {
  display: block;
  font-size: 22px;
  line-height: 1.15;
}

.landing-week-list p {
  grid-column: 2;
  margin: -8px 0 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.5;
}

.landing-inside {
  background:
    linear-gradient(180deg, #ffffff 0%, #f5f9fd 100%);
}

.landing-inside-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
}

.landing-inside-grid article {
  min-height: 235px;
  padding: clamp(22px, 3vw, 30px);
}

.landing-inside-grid span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #061b33;
  color: #fff;
  font-weight: 950;
}

.landing-inside-grid h3 {
  margin-top: 22px;
}

.landing-book-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  min-height: 330px;
  padding: clamp(48px, 7vw, 82px) clamp(22px, 6vw, 86px);
  background:
    linear-gradient(90deg, rgba(6, 27, 51, 0.94), rgba(6, 27, 51, 0.72) 48%, rgba(6, 27, 51, 0.18)),
    url("assets/english-path-final-live.png") right center/cover;
  color: #fff;
}

.landing-book-strip > div {
  max-width: 740px;
}

.landing-book-strip p {
  max-width: 620px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.58;
}

.landing-faq {
  background: #fff;
}

.landing-faq-list {
  display: grid;
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}

.landing-faq-list details {
  padding: 0;
}

.landing-faq-list summary {
  cursor: pointer;
  padding: 22px 26px;
  color: var(--landing-navy);
  font-size: 19px;
  font-weight: 950;
  line-height: 1.35;
}

.landing-faq-list summary:focus {
  outline: none;
}

.landing-faq-list summary:focus-visible {
  border-radius: 10px;
  box-shadow: inset 0 0 0 2px rgba(181, 18, 27, 0.36);
}

.landing-faq-list p {
  margin: 0;
  border-top: 1px solid #d9e3ef;
  color: var(--landing-steel);
  padding: 0 26px 24px;
  line-height: 1.62;
}

.landing-final + .landing-route {
  border-top: 1px solid var(--landing-line);
}

@media (max-width: 1120px) {
  .landing-split-head,
  .landing-result,
  .landing-book-strip {
    grid-template-columns: 1fr;
  }

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

  .landing-result {
    background-position: 58% center;
  }

  .landing-book-strip {
    justify-items: start;
  }
}

@media (max-width: 820px) {
  .landing-split-head {
    gap: 18px;
    text-align: center;
  }

  .landing-split-head h2,
  .landing-result h2,
  .landing-book-strip h2,
  .landing-faq h2 {
    max-width: 360px;
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(32px, 8.5vw, 42px);
    line-height: 1.14;
    text-align: center;
  }

  .landing-split-head p {
    max-width: 350px;
    margin: 0 auto;
    font-size: 16px;
    text-align: center;
  }

  .landing-section-label {
    margin-right: auto;
    margin-left: auto;
  }

  .landing-audience-grid,
  .landing-inside-grid {
    grid-template-columns: 1fr;
  }

  .landing-audience-grid article,
  .landing-inside-grid article {
    min-height: 0;
  }

  .landing-result {
    padding: 58px 18px;
    text-align: center;
  }

  .landing-result-copy,
  .landing-result-copy p {
    margin-right: auto;
    margin-left: auto;
  }

  .landing-week-list article {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .landing-week-list p {
    grid-column: auto;
    margin-top: 0;
  }

  .landing-inside .landing-section-head {
    text-align: center;
  }

  .landing-book-strip {
    min-height: 440px;
    justify-items: center;
    padding: 58px 18px;
    text-align: center;
    background:
      linear-gradient(180deg, rgba(6, 27, 51, 0.9), rgba(6, 27, 51, 0.76)),
      url("assets/english-path-final-live.png") 64% center/cover;
  }

  .landing-book-strip p {
    max-width: 350px;
    margin-right: auto;
    margin-left: auto;
    font-size: 16px;
  }

  .landing-inside .landing-section-head,
  .landing-offers .landing-section-head,
  .landing-process .landing-section-head,
  .landing-faq .landing-section-head {
    text-align: center;
  }

  .landing-offers .landing-section-head h2,
  .landing-process .landing-section-head h2 {
    max-width: 350px;
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(32px, 8.5vw, 42px);
    line-height: 1.14;
    text-align: center;
  }

  .landing-offers .landing-section-head p,
  .landing-process .landing-section-head p {
    max-width: 350px;
    margin-right: auto;
    margin-left: auto;
    font-size: 16px;
    text-align: center;
  }

  .landing-faq-list summary {
    padding: 20px;
    font-size: 17px;
  }

  .landing-faq-list p {
    padding: 0 20px 22px;
  }
}

/* Reference concept expansion: live USA funnel */
.landing-page {
  overflow-x: hidden;
  background: #ffffff;
}

.landing-nav-free {
  border-bottom: 2px solid var(--landing-red);
  color: var(--landing-red) !important;
  padding-bottom: 6px;
}

.landing-button-start,
.landing-free-start {
  position: relative;
}

.landing-button-start::after,
.landing-free-start::after {
  content: "";
  position: absolute;
  inset: -5px;
  z-index: -1;
  border-radius: inherit;
  background: rgba(181, 18, 27, 0.16);
}

.landing-hero {
  min-height: 720px;
}

.landing-hero-inner {
  max-width: 1360px;
  min-height: 720px;
  margin: 0 auto;
}

.landing-hero h1 {
  max-width: 780px;
  font-size: 76px;
  line-height: 0.98;
}

.landing-proof strong {
  color: var(--landing-navy);
}

.landing-proof div:nth-child(3) strong,
.landing-proof div:nth-child(3) span {
  color: var(--landing-red);
}

.landing-audience {
  padding: 0;
  background: #061b33;
  color: #ffffff;
}

.landing-audience-layout {
  display: grid;
  grid-template-columns: minmax(390px, 0.8fr) minmax(0, 1.2fr);
  min-height: 660px;
}

.landing-audience-copy {
  display: grid;
  align-content: center;
  padding: 78px clamp(32px, 5vw, 72px);
}

.landing-audience .landing-section-label,
.landing-inside .landing-section-label,
.landing-process .landing-section-label {
  border-left-color: #d52331;
  color: #ffffff;
}

.landing-audience h2,
.landing-takeaways h2,
.landing-inside-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 56px;
  line-height: 1.04;
  letter-spacing: 0;
}

.landing-audience h2,
.landing-inside-copy h2 {
  color: #ffffff;
}

.landing-audience-copy > p,
.landing-inside-copy > p {
  max-width: 560px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.58;
}

.landing-audience .landing-audience-grid {
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 590px;
  margin: 34px 0 0;
}

.landing-audience .landing-audience-grid article {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 4px 18px;
  min-height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.landing-audience .landing-audience-grid b {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  color: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 950;
}

.landing-audience .landing-audience-grid h3 {
  margin: 0;
  color: #ffffff;
  font-size: 19px;
  line-height: 1.22;
}

.landing-audience .landing-audience-grid p {
  grid-column: 2;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.48;
}

.landing-audience-photo {
  position: relative;
  min-height: 660px;
  margin: 0;
  overflow: hidden;
}

.landing-audience-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, #061b33 0%, rgba(6, 27, 51, 0.6) 18%, rgba(6, 27, 51, 0.04) 50%),
    linear-gradient(180deg, rgba(6, 27, 51, 0.12), rgba(6, 27, 51, 0.18));
}

.landing-audience-photo img {
  width: 100%;
  height: 100%;
  min-height: 660px;
  object-fit: cover;
  object-position: 66% center;
}

.landing-takeaways {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 0.9fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: stretch;
  padding: 0;
  background: #ffffff;
}

.landing-takeaways-copy {
  display: grid;
  align-content: center;
  padding: 84px clamp(28px, 6vw, 82px);
}

.landing-takeaways h2 {
  max-width: 620px;
  color: var(--landing-navy);
}

.landing-takeaways-copy > p {
  max-width: 610px;
  margin: 20px 0 0;
  color: var(--landing-steel);
  font-size: 18px;
  line-height: 1.6;
}

.landing-takeaway-icons {
  display: grid;
  grid-template-columns: repeat(5, minmax(96px, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.landing-takeaway-icons span {
  display: grid;
  gap: 10px;
  justify-items: center;
  color: var(--landing-navy);
  text-align: center;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.28;
}

.landing-takeaway-icons i {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #f2f5f9;
  color: var(--landing-red);
  font-style: normal;
  font-weight: 950;
}

.landing-takeaway-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 34px;
  border: 1px solid #dfe6ef;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 20px 56px rgba(6, 27, 51, 0.08);
  overflow: hidden;
}

.landing-takeaway-stats div {
  min-height: 94px;
  display: grid;
  align-content: center;
  gap: 5px;
  border-right: 1px solid #dfe6ef;
  padding: 18px;
}

.landing-takeaway-stats div:last-child {
  border-right: 0;
}

.landing-takeaway-stats strong {
  color: var(--landing-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  line-height: 1;
}

.landing-takeaway-stats span {
  color: var(--landing-steel);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.landing-takeaways-photo {
  min-height: 610px;
  margin: 0;
  overflow: hidden;
}

.landing-takeaways-photo img {
  width: 100%;
  height: 100%;
  min-height: 610px;
  object-fit: cover;
  object-position: 70% center;
}

.landing-inside {
  background:
    radial-gradient(circle at 70% 10%, rgba(65, 124, 178, 0.28), transparent 32%),
    linear-gradient(135deg, #061b33 0%, #09213c 58%, #031120 100%);
  color: #ffffff;
}

.landing-inside-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.82fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto 46px;
}

.landing-laptop-frame {
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    #091d34;
  padding: 18px 18px 32px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.34);
}

.landing-laptop-screen {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: #f8fbff;
  color: var(--landing-navy);
}

.landing-laptop-screen aside {
  display: grid;
  align-content: start;
  gap: 10px;
  background: #08223d;
  color: #ffffff;
  padding: 24px 16px;
}

.landing-laptop-screen aside span {
  margin-bottom: 12px;
  font-weight: 950;
}

.landing-laptop-screen aside b {
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px;
  font-size: 13px;
}

.landing-laptop-screen main {
  display: grid;
  align-content: start;
  gap: 20px;
  padding: 30px;
}

.landing-laptop-screen h3 {
  margin: 0;
  font-size: 26px;
}

.landing-mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.landing-mini-metrics span,
.landing-mini-lesson {
  border: 1px solid #dce5ef;
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
  color: var(--landing-steel);
  font-size: 13px;
  font-weight: 850;
}

.landing-mini-metrics strong {
  display: block;
  color: var(--landing-navy);
  font-size: 30px;
  line-height: 1;
}

.landing-mini-lesson {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
}

.landing-mini-lesson b,
.landing-mini-lesson span {
  grid-column: 1;
}

.landing-mini-lesson em {
  grid-row: 1 / span 2;
  grid-column: 2;
  border-radius: 6px;
  background: var(--landing-navy);
  color: #ffffff;
  padding: 10px 14px;
  font-style: normal;
  font-weight: 900;
}

.landing-inside-copy {
  display: grid;
  justify-items: start;
}

.landing-cabinet-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 30px;
  padding: 0;
  list-style: none;
}

.landing-cabinet-list li {
  position: relative;
  color: rgba(255, 255, 255, 0.86);
  padding-left: 34px;
  font-weight: 850;
  line-height: 1.35;
}

.landing-cabinet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.62);
  border-radius: 5px;
}

.landing-cabinet-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 7px;
  width: 8px;
  height: 4px;
  border-bottom: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  transform: rotate(-45deg);
}

.landing-inside .landing-inside-grid {
  gap: 16px;
}

.landing-inside .landing-inside-grid article {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  box-shadow: none;
}

.landing-inside .landing-inside-grid span {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.landing-inside .landing-inside-grid h3 {
  color: #ffffff;
}

.landing-inside .landing-inside-grid p {
  color: rgba(255, 255, 255, 0.72);
}

.landing-offers {
  background: #ffffff;
}

.landing-offers .landing-section-head h2,
.landing-process .landing-section-head h2,
.landing-final-copy h2 {
  font-size: 52px;
  line-height: 1.04;
}

.landing-offer-card {
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px 24px;
  min-height: 0;
  overflow: hidden;
}

.landing-offer-card .landing-offer-icon,
.landing-offer-card h3,
.landing-offer-card p,
.landing-offer-card ul,
.landing-offer-card .landing-price,
.landing-offer-card .landing-button {
  grid-column: 1;
}

.landing-offer-card .landing-offer-top {
  grid-column: 1 / -1;
}

.landing-offer-card-dark .landing-offer-icon {
  margin-top: 26px;
}

.landing-offer-media {
  grid-column: 2;
  grid-row: 2 / span 6;
  align-self: center;
  margin: 0 -10px 0 4px;
}

.landing-offer-media img {
  width: 100%;
  height: 280px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 22px 46px rgba(6, 27, 51, 0.16);
  transform: rotate(-4deg);
}

.landing-offer-card-dark .landing-offer-media img {
  transform: rotate(4deg);
}

.landing-price {
  color: var(--landing-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 850;
  line-height: 1;
}

.landing-process {
  background:
    linear-gradient(90deg, rgba(6, 27, 51, 0.97) 0%, rgba(6, 27, 51, 0.92) 55%, rgba(6, 27, 51, 0.54) 100%),
    url("assets/english-path-usa-hero-live.png") right center/cover;
  color: #ffffff;
}

.landing-process .landing-section-head {
  max-width: 1180px;
  text-align: left;
}

.landing-process .landing-section-head p,
.landing-process .landing-step p {
  color: rgba(255, 255, 255, 0.72);
}

.landing-process .landing-step {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top: 3px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.landing-process .landing-step b {
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: transparent;
}

.landing-process .landing-step h3 {
  color: #ffffff;
}

.landing-final {
  min-height: 640px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 44%, rgba(255, 255, 255, 0.44) 100%),
    url("assets/english-path-final-live.png") right center/cover;
}

.landing-final-form {
  border-radius: 10px;
}

.landing-free-start {
  border-color: rgba(181, 18, 27, 0.34) !important;
  background: #b5121b !important;
  color: #ffffff !important;
}

@media (max-width: 1120px) {
  .landing-hero h1 {
    font-size: 62px;
  }

  .landing-audience-layout,
  .landing-takeaways,
  .landing-inside-showcase {
    grid-template-columns: 1fr;
  }

  .landing-audience-photo {
    min-height: 420px;
  }

  .landing-audience-photo img {
    min-height: 420px;
  }

  .landing-takeaways-photo {
    min-height: 420px;
  }

  .landing-takeaways-photo img {
    min-height: 420px;
  }

  .landing-takeaway-icons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .landing-takeaway-stats div:nth-child(2) {
    border-right: 0;
  }

  .landing-takeaway-stats div:nth-child(-n + 2) {
    border-bottom: 1px solid #dfe6ef;
  }

  .landing-offer-card {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
}

@media (max-width: 820px) {
  .landing-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .landing-brand {
    min-width: 0;
    gap: 8px;
    font-size: 16px;
  }

  .landing-mark {
    width: 34px;
    height: 38px;
    font-size: 11px;
  }

  .landing-brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .landing-nav-cta {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .landing-hero {
    min-height: 0;
  }

  .landing-hero-inner {
    min-height: 0;
    padding: 54px 18px 62px;
  }

  .landing-hero h1 {
    max-width: 360px;
    font-size: 44px;
    line-height: 1.06;
  }

  .landing-hero-copy p {
    max-width: 350px;
    font-size: 17px;
    line-height: 1.5;
  }

  .landing-audience-copy,
  .landing-takeaways-copy {
    padding: 58px 18px;
  }

  .landing-audience h2,
  .landing-takeaways h2,
  .landing-inside-copy h2,
  .landing-offers .landing-section-head h2,
  .landing-process .landing-section-head h2,
  .landing-final-copy h2 {
    max-width: 360px;
    font-size: 38px;
    line-height: 1.12;
  }

  .landing-audience-copy > p,
  .landing-takeaways-copy > p,
  .landing-inside-copy > p {
    max-width: 350px;
    font-size: 16px;
    line-height: 1.52;
  }

  .landing-audience .landing-section-label,
  .landing-inside .landing-section-label,
  .landing-process .landing-section-label {
    margin-left: 0;
  }

  .landing-audience .landing-audience-grid article {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 4px 14px;
  }

  .landing-audience .landing-audience-grid b {
    width: 36px;
    height: 36px;
  }

  .landing-audience .landing-audience-grid h3 {
    font-size: 17px;
  }

  .landing-audience-photo,
  .landing-audience-photo img,
  .landing-takeaways-photo,
  .landing-takeaways-photo img {
    min-height: 310px;
  }

  .landing-takeaway-icons {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .landing-takeaway-icons span {
    grid-template-columns: 42px minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    text-align: left;
  }

  .landing-takeaway-icons i {
    width: 40px;
    height: 40px;
  }

  .landing-takeaway-stats {
    grid-template-columns: 1fr;
  }

  .landing-takeaway-stats div,
  .landing-takeaway-stats div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid #dfe6ef;
  }

  .landing-takeaway-stats div:last-child {
    border-bottom: 0;
  }

  .landing-laptop-frame {
    padding: 10px 10px 18px;
  }

  .landing-laptop-screen {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .landing-laptop-screen aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px;
  }

  .landing-laptop-screen aside span {
    grid-column: 1 / -1;
  }

  .landing-laptop-screen main {
    padding: 18px;
  }

  .landing-mini-metrics,
  .landing-mini-lesson {
    grid-template-columns: 1fr;
  }

  .landing-mini-lesson em {
    grid-row: auto;
    grid-column: 1;
    text-align: center;
  }

  .landing-offer-card {
    grid-template-columns: 1fr;
  }

  .landing-offer-card .landing-offer-icon,
  .landing-offer-card h3,
  .landing-offer-card p,
  .landing-offer-card ul,
  .landing-offer-card .landing-price,
  .landing-offer-card .landing-button,
  .landing-offer-media {
    grid-column: 1;
  }

  .landing-offer-media {
    grid-row: auto;
    margin: 4px 0 2px;
  }

  .landing-offer-media img {
    height: 210px;
    transform: none;
  }

  .landing-offer-card-dark .landing-offer-media img {
    transform: none;
  }

  .landing-price {
    font-size: 30px;
  }

  .landing-process {
    background:
      linear-gradient(180deg, rgba(6, 27, 51, 0.95), rgba(6, 27, 51, 0.85)),
      url("assets/english-path-usa-hero-live.png") 62% center/cover;
  }

  .landing-process .landing-section-head {
    text-align: left;
  }

  .landing-final {
    min-height: 0;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.78) 32%, #ffffff 54%, #ffffff 100%),
      url("assets/english-path-final-live.png") 68% top/auto 300px no-repeat,
      #ffffff;
  }
}

/* Access and sales-flow gates */
.course-access-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
  border: 1px solid #c9d8eb;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(235, 244, 255, 0.96)),
    #fff;
  box-shadow: 0 20px 48px rgba(18, 54, 92, 0.08);
  padding: 22px;
}

.course-access-banner span {
  color: var(--blue, #2f7de1);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.course-access-banner h2 {
  margin: 5px 0 8px;
  color: var(--text, #162235);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
}

.course-access-banner p {
  max-width: 760px;
  margin: 0;
  color: var(--muted, #64748b);
  line-height: 1.55;
}

.course-access-progress {
  display: grid;
  place-items: center;
  min-width: 138px;
  border-radius: 16px;
  background: #061b33;
  color: #fff;
  padding: 16px;
}

.course-access-progress strong {
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.course-access-progress span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  text-align: center;
  text-transform: none;
}

.lesson-summary-card.is-locked {
  position: relative;
  border-color: #d7e2f0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(242, 247, 253, 0.94)),
    #fff;
}

.lesson-summary-card.is-locked::before {
  content: "Закрыто до оплаты";
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 1;
  border-radius: 999px;
  background: #fff1f2;
  color: #bd1d2a;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 950;
}

.lesson-summary-card.is-locked .lesson-status {
  background: #fff1f2;
  color: #bd1d2a;
}

.lesson-summary-card.is-locked .lesson-actions a {
  border-color: #bd1d2a;
  background: #fff;
  color: #bd1d2a;
}

.lesson-outline-link.is-locked {
  opacity: 0.58;
}

.lesson-outline-link.is-locked::after {
  content: "замок";
  margin-left: auto;
  border-radius: 999px;
  background: #fff1f2;
  color: #bd1d2a;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.manager-card i {
  display: inline-flex;
  width: max-content;
  border-radius: 999px;
  background: #eff6ff;
  color: #1769e0;
  padding: 5px 9px;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.portal-button:disabled {
  cursor: default;
  opacity: 0.62;
}

.student-paid-access .student-free {
  border-top-color: var(--portal-blue);
}

html.course-gate-checking body {
  opacity: 0;
}

.course-gated .app-shell {
  max-height: 100vh;
  overflow: hidden;
  pointer-events: none;
  filter: blur(5px);
}

.course-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(6, 27, 51, 0.88), rgba(6, 27, 51, 0.66)),
    url("assets/english-path-usa-hero-live.png") center/cover;
  padding: 20px;
}

.course-gate-card {
  width: min(560px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.34);
  padding: clamp(24px, 5vw, 42px);
  text-align: center;
}

.course-gate-card span {
  color: #bd1d2a;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.course-gate-card h1 {
  margin: 12px 0 14px;
  color: #061b33;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.05;
}

.course-gate-card p {
  margin: 0 auto;
  max-width: 480px;
  color: #52657d;
  font-size: 17px;
  line-height: 1.58;
}

.course-gate-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 840px) {
  .course-access-banner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .course-access-progress {
    width: 100%;
  }

  .course-access-banner .primary-button,
  .course-gate-actions .primary-button,
  .course-gate-actions .ghost-button {
    width: 100%;
  }

  .lesson-summary-card.is-locked::before {
    position: static;
    justify-self: start;
    display: inline-flex;
    margin: 0 0 14px;
  }
}

/* Teacher dashboard */
.teacher-main {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 42px);
}

.teacher-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(22px, 4vw, 44px);
  overflow: hidden;
  border: 1px solid rgba(6, 27, 51, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(100deg, rgba(6, 27, 51, 0.97) 0%, rgba(6, 27, 51, 0.86) 48%, rgba(6, 27, 51, 0.24) 100%),
    url("assets/english-path-final-live.png") right center/cover;
  color: #fff;
  padding: clamp(28px, 5vw, 56px);
  box-shadow: 0 26px 70px rgba(6, 27, 51, 0.15);
}

.teacher-hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 0.98;
}

.teacher-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
}

.teacher-hero-actions,
.teacher-feedback-actions,
.teacher-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.teacher-hero-actions {
  margin-top: 28px;
}

.teacher-day-card {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.93);
  color: var(--portal-navy);
  padding: 24px;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.18);
}

.teacher-day-card span,
.teacher-stat-strip span,
.teacher-panel-head span,
.teacher-review-top span,
.teacher-progress-card span,
.teacher-submission-card span {
  color: var(--portal-muted);
  font-size: 13px;
  font-weight: 900;
}

.teacher-day-card strong {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
}

.teacher-day-card p {
  margin: 0;
  color: var(--portal-muted);
  font-size: 15px;
}

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

.teacher-stat-strip article,
.teacher-students,
.teacher-review,
.teacher-insights section {
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(6, 27, 51, 0.07);
}

.teacher-stat-strip article {
  min-height: 126px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 22px;
}

.teacher-stat-strip strong {
  color: var(--portal-navy);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1;
}

.teacher-stat-strip p {
  margin: 0;
  color: var(--portal-muted);
  font-weight: 850;
}

.teacher-workspace {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.teacher-students,
.teacher-review,
.teacher-insights section {
  padding: 18px;
}

.teacher-students,
.teacher-insights {
  position: sticky;
  top: 94px;
}

.teacher-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.teacher-panel-head h2,
.teacher-review-top h2 {
  margin: 4px 0 0;
  color: var(--portal-navy);
  font-size: 24px;
  line-height: 1.12;
}

.teacher-filter,
.teacher-filter-row button,
.teacher-submission-side button {
  min-height: 34px;
  border: 1px solid var(--portal-line);
  border-radius: 6px;
  background: #fff;
  color: var(--portal-navy);
  padding: 0 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.teacher-filter.active,
.teacher-filter-row button.active {
  border-color: rgba(23, 105, 224, 0.32);
  background: #eef5ff;
  color: var(--portal-blue);
}

.teacher-filter-row {
  margin-bottom: 14px;
}

.teacher-student-list {
  display: grid;
  gap: 10px;
}

.teacher-student-card {
  width: 100%;
  display: grid;
  gap: 7px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #fff;
  color: var(--portal-ink);
  padding: 14px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.teacher-student-card:hover,
.teacher-student-card.active {
  border-color: var(--portal-blue);
  background: #f7fbff;
  box-shadow: 0 12px 30px rgba(23, 105, 224, 0.12);
}

.teacher-student-card span {
  justify-self: start;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--portal-blue);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.teacher-student-card strong {
  font-size: 17px;
  line-height: 1.15;
}

.teacher-student-card small,
.teacher-student-card i,
.teacher-student-card em,
.teacher-empty {
  color: var(--portal-muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.teacher-student-card i {
  color: var(--portal-navy);
  font-weight: 900;
}

.teacher-review {
  display: grid;
  gap: 18px;
}

.teacher-review-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.teacher-review-top p {
  margin: 8px 0 0;
  color: var(--portal-muted);
  font-weight: 800;
}

.teacher-progress-card {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border: 1px solid #dce6f2;
  border-radius: 8px;
  background:
    linear-gradient(90deg, #f7fbff, #ffffff);
  padding: 18px;
}

.teacher-progress-card strong {
  display: block;
  margin-top: 8px;
  color: var(--portal-navy);
  font-size: 34px;
  line-height: 1;
}

.teacher-progress-card p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--portal-muted);
  line-height: 1.45;
}

.teacher-progress-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef6;
}

.teacher-progress-bar i {
  display: block;
  width: 4%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--portal-blue), var(--portal-green));
}

.teacher-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.teacher-section-title h3,
.teacher-feedback-box h3,
.teacher-insights h3,
.teacher-submission-card h3 {
  margin: 0;
  color: var(--portal-navy);
  line-height: 1.15;
}

.teacher-section-title span {
  color: var(--portal-muted);
  font-size: 13px;
  font-weight: 900;
}

.teacher-submissions {
  display: grid;
  gap: 12px;
}

.teacher-submission-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 16px;
  border: 1px solid #dbe4f0;
  border-left: 5px solid var(--portal-blue);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.teacher-submission-card.status-revision {
  border-left-color: var(--portal-red);
}

.teacher-submission-card.status-checked {
  border-left-color: var(--portal-green);
}

.teacher-submission-card.status-draft {
  border-left-color: var(--portal-gold);
}

.teacher-submission-main {
  display: grid;
  gap: 8px;
}

.teacher-submission-main p {
  margin: 0;
  color: #33465d;
  line-height: 1.45;
}

.teacher-submission-main small {
  color: var(--portal-muted);
  font-weight: 800;
}

.teacher-submission-side {
  display: grid;
  gap: 8px;
  align-content: start;
}

.teacher-submission-side strong {
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
  background: #f1f5fa;
  color: var(--portal-navy);
  padding: 7px 10px;
  font-size: 12px;
}

.teacher-submission-side button:hover {
  border-color: var(--portal-blue);
  color: var(--portal-blue);
}

.teacher-feedback-box {
  display: grid;
  gap: 14px;
  border: 1px solid #dce6f2;
  border-radius: 8px;
  background: #f8fbff;
  padding: 18px;
}

.teacher-feedback-box p {
  margin: 8px 0 0;
  color: var(--portal-muted);
  line-height: 1.45;
}

.teacher-feedback-box textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid #cfd9e7;
  border-radius: 8px;
  background: #fff;
  color: var(--portal-ink);
  padding: 14px;
  font: inherit;
  font-size: 15px;
  line-height: 1.45;
}

.teacher-feedback-actions {
  align-items: center;
}

.teacher-feedback-actions span {
  color: var(--portal-green);
  font-weight: 900;
}

.teacher-insights {
  display: grid;
  gap: 14px;
}

.teacher-insights section {
  display: grid;
  gap: 13px;
}

.teacher-insights p {
  margin: 0;
  color: var(--portal-muted);
  line-height: 1.5;
}

.teacher-word-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.teacher-word-list span {
  display: grid;
  gap: 3px;
  border: 1px solid #dce6f2;
  border-radius: 8px;
  background: #f8fbff;
  padding: 10px;
}

.teacher-word-list b {
  color: var(--portal-blue);
}

.teacher-word-list small,
.teacher-dictation-row small {
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 800;
}

.teacher-dictation-list {
  display: grid;
  gap: 9px;
}

.teacher-dictation-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  border-bottom: 1px solid #edf2f8;
  padding-bottom: 9px;
}

.teacher-dictation-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.teacher-dictation-row span {
  color: var(--portal-navy);
  font-weight: 900;
}

.teacher-dictation-row strong {
  color: var(--portal-green);
}

.teacher-dictation-row small {
  grid-column: 1 / -1;
}

@media (max-width: 1220px) {
  .teacher-workspace {
    grid-template-columns: minmax(260px, 0.38fr) minmax(0, 0.62fr);
  }

  .teacher-insights {
    grid-column: 1 / -1;
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .teacher-insights .teacher-support-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  .teacher-hero,
  .teacher-workspace,
  .teacher-review-top,
  .teacher-progress-card,
  .teacher-submission-card {
    grid-template-columns: 1fr;
  }

  .teacher-students {
    position: static;
  }

  .teacher-stat-strip,
  .teacher-insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teacher-review-top {
    display: grid;
  }
}

@media (max-width: 620px) {
  .teacher-main {
    padding: 16px;
  }

  .teacher-hero {
    padding: 24px 18px;
  }

  .teacher-stat-strip,
  .teacher-insights,
  .teacher-word-list {
    grid-template-columns: 1fr;
  }

  .teacher-day-card,
  .teacher-students,
  .teacher-review,
  .teacher-insights section,
  .teacher-stat-strip article {
    padding: 16px;
  }

  .teacher-review-top .portal-button,
  .teacher-feedback-actions .portal-button,
  .teacher-hero-actions .portal-button {
    width: 100%;
  }
}

/* Owner admin dashboard */
.admin-main {
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 42px);
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: clamp(22px, 4vw, 44px);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(6, 27, 51, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(105deg, rgba(6, 27, 51, 0.98) 0%, rgba(6, 27, 51, 0.9) 46%, rgba(6, 27, 51, 0.22) 100%),
    url("assets/english-path-usa-hero-live.png") right center/cover;
  color: #fff;
  padding: clamp(28px, 5vw, 56px);
  box-shadow: 0 26px 70px rgba(6, 27, 51, 0.16);
}

.admin-hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 5.6vw, 74px);
  line-height: 0.98;
}

.admin-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
}

.admin-hero-actions,
.admin-filter-row,
.admin-access-actions,
.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-hero-actions {
  margin-top: 28px;
}

.admin-revenue-card {
  display: grid;
  align-content: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--portal-navy);
  padding: 24px;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.2);
}

.admin-revenue-card span,
.admin-kpis span,
.admin-panel-head span,
.admin-funnel-step span,
.admin-lead-row span,
.admin-detail-list dt,
.admin-price-field span,
.admin-detail label span {
  color: var(--portal-muted);
  font-size: 13px;
  font-weight: 900;
}

.admin-revenue-card strong {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
}

.admin-revenue-card p {
  margin: 0;
  color: var(--portal-muted);
  font-size: 15px;
}

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

.admin-kpis article,
.admin-card,
.admin-board {
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(6, 27, 51, 0.07);
}

.admin-kpis article {
  min-height: 126px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 22px;
}

.admin-kpis strong {
  color: var(--portal-navy);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1;
}

.admin-kpis p {
  margin: 0;
  color: var(--portal-muted);
  font-weight: 850;
}

.admin-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.admin-sidebar,
.admin-detail {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 14px;
}

.admin-card,
.admin-board {
  padding: 18px;
}

.admin-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.admin-panel-head h2 {
  margin: 4px 0 0;
  color: var(--portal-navy);
  font-size: 24px;
  line-height: 1.12;
}

.admin-price-field,
.admin-detail label {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.admin-price-field input,
.admin-detail select,
.admin-detail textarea {
  width: 100%;
  border: 1px solid #cfd9e7;
  border-radius: 8px;
  background: #fff;
  color: var(--portal-ink);
  font: inherit;
  font-size: 14px;
}

.admin-price-field input,
.admin-detail select {
  min-height: 42px;
  padding: 0 12px;
}

.admin-detail textarea {
  resize: vertical;
  padding: 12px;
  line-height: 1.45;
}

.admin-card .portal-button {
  width: 100%;
  margin-top: 12px;
}

.admin-save-status {
  min-height: 18px;
  margin: 8px 0 0;
  color: var(--portal-green);
  font-size: 13px;
  font-weight: 900;
}

.admin-task-list {
  display: grid;
  gap: 9px;
}

.admin-task {
  width: 100%;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #fff;
  color: var(--portal-ink);
  padding: 10px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.admin-task span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef5ff;
  color: var(--portal-blue);
  font-weight: 950;
}

.admin-task strong {
  font-size: 13px;
  line-height: 1.3;
}

.admin-task.done {
  border-color: rgba(22, 128, 94, 0.26);
  background: #f3fbf8;
}

.admin-filter-row button,
.admin-row-actions button {
  min-height: 34px;
  border: 1px solid var(--portal-line);
  border-radius: 6px;
  background: #fff;
  color: var(--portal-navy);
  padding: 0 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.admin-filter-row button.active {
  border-color: rgba(23, 105, 224, 0.32);
  background: #eef5ff;
  color: var(--portal-blue);
}

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

.admin-funnel-step {
  display: grid;
  gap: 10px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #f8fbff;
  padding: 12px;
}

.admin-funnel-step div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-funnel-step strong {
  color: var(--portal-navy);
  font-size: 13px;
  line-height: 1.2;
}

.admin-funnel-step span {
  color: var(--portal-blue);
}

.admin-funnel-step i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--portal-blue), var(--portal-green));
}

.admin-lead-list {
  display: grid;
  gap: 10px;
}

.admin-lead-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.75fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.admin-lead-row.active,
.admin-lead-row:hover {
  border-color: var(--portal-blue);
  box-shadow: 0 12px 30px rgba(23, 105, 224, 0.12);
}

.admin-lead-row > button {
  display: grid;
  gap: 5px;
  border: 0;
  background: transparent;
  color: var(--portal-ink);
  padding: 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.admin-lead-row strong {
  color: var(--portal-navy);
  font-size: 17px;
}

.admin-lead-row b {
  display: block;
  color: var(--portal-navy);
  font-size: 14px;
}

.admin-lead-row small,
.admin-empty {
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-row-actions {
  justify-content: flex-end;
}

.admin-row-actions button:first-child {
  border-color: rgba(23, 105, 224, 0.32);
  background: #eef5ff;
  color: var(--portal-blue);
}

.admin-row-actions button:last-child {
  border-color: rgba(189, 29, 42, 0.18);
  color: var(--portal-red);
}

.admin-selected-card > p {
  margin: 0 0 14px;
  color: var(--portal-muted);
  font-weight: 800;
  line-height: 1.45;
}

.admin-detail-list {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
}

.admin-detail-list div {
  display: grid;
  gap: 3px;
}

.admin-detail-list dd {
  margin: 0;
  color: var(--portal-navy);
  font-weight: 900;
}

.admin-access-actions {
  margin-top: 12px;
}

.admin-access-actions .portal-button {
  margin-top: 0;
}

.admin-team-load {
  display: grid;
  gap: 10px;
}

.admin-team-load div {
  display: grid;
  gap: 4px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #f8fbff;
  padding: 12px;
}

.admin-team-load span {
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-team-load strong {
  color: var(--portal-navy);
  font-size: 22px;
}

.admin-team-load small {
  color: var(--portal-muted);
  font-weight: 800;
}

.admin-materials {
  display: grid;
  gap: 9px;
}

.admin-materials a {
  display: grid;
  gap: 3px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #fff;
  color: var(--portal-navy);
  padding: 12px;
  text-decoration: none;
}

.admin-materials a:hover {
  border-color: var(--portal-blue);
  background: #f7fbff;
}

.admin-materials span {
  color: var(--portal-muted);
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 1280px) {
  .admin-layout {
    grid-template-columns: 290px minmax(0, 1fr);
  }

  .admin-detail {
    grid-column: 1 / -1;
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-selected-card {
    grid-column: span 2;
  }
}

@media (max-width: 980px) {
  .admin-hero,
  .admin-layout,
  .admin-lead-row {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-detail,
  .admin-funnel,
  .admin-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-selected-card {
    grid-column: 1 / -1;
  }

  .admin-row-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .admin-main {
    padding: 16px;
  }

  .admin-hero {
    padding: 24px 18px;
  }

  .admin-sidebar,
  .admin-detail,
  .admin-funnel,
  .admin-kpis {
    grid-template-columns: 1fr;
  }

  .admin-card,
  .admin-board,
  .admin-kpis article,
  .admin-revenue-card {
    padding: 16px;
  }

  .admin-hero-actions .portal-button,
  .admin-access-actions .portal-button,
  .admin-row-actions button {
    width: 100%;
  }
}

/* Role login and access gates */
.auth-main {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 42px);
}

.auth-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  gap: clamp(22px, 4vw, 44px);
  overflow: hidden;
  border: 1px solid rgba(6, 27, 51, 0.18);
  border-radius: 8px;
  background: var(--portal-navy);
  color: #fff;
  box-shadow: 0 26px 70px rgba(6, 27, 51, 0.16);
}

.auth-hero > div {
  display: grid;
  align-content: center;
  gap: 24px;
  padding: clamp(28px, 5vw, 56px);
}

.auth-hero h1 {
  max-width: 700px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
}

.auth-hero p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
}

.auth-current-card {
  max-width: 520px;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--portal-navy);
  padding: 20px;
}

.auth-current-card span,
.auth-role-card span,
.auth-gate-card span {
  color: var(--portal-muted);
  font-size: 13px;
  font-weight: 900;
}

.auth-current-card strong {
  font-size: 30px;
  line-height: 1;
}

.auth-current-card p,
.auth-current-card small {
  color: var(--portal-muted);
}

.auth-current-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.auth-visual {
  min-height: 440px;
  margin: 0;
}

.auth-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.auth-role-card {
  min-height: 310px;
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  background: #fff;
  color: var(--portal-ink);
  padding: 22px;
  box-shadow: 0 16px 44px rgba(6, 27, 51, 0.07);
}

.auth-role-card.active {
  border-color: var(--portal-blue);
  box-shadow: 0 18px 48px rgba(23, 105, 224, 0.14);
}

.auth-role-card.owner {
  border-top: 4px solid var(--portal-red);
}

.auth-role-card h2 {
  margin: 0;
  color: var(--portal-navy);
  font-size: 28px;
  line-height: 1.1;
}

.auth-role-card p {
  margin: 0;
  color: #33465d;
  line-height: 1.48;
}

.auth-role-card small {
  min-height: 48px;
  color: var(--portal-muted);
  font-weight: 800;
  line-height: 1.35;
}

.auth-role-card .portal-button {
  width: 100%;
  margin-top: auto;
}

.auth-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(6, 27, 51, 0.92), rgba(6, 27, 51, 0.72)),
    url("assets/english-path-usa-hero-live.png") center/cover;
  padding: 20px;
}

.auth-gate-card {
  width: min(720px, 100%);
  display: grid;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.97);
  color: var(--portal-navy);
  padding: clamp(24px, 5vw, 42px);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.34);
}

.auth-gate-card h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
}

.auth-gate-card p {
  margin: 0;
  color: var(--portal-muted);
  font-size: 17px;
  line-height: 1.5;
}

.auth-gate-roles {
  display: grid;
  gap: 10px;
}

.auth-gate-roles button {
  display: grid;
  gap: 4px;
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  background: #f8fbff;
  color: var(--portal-ink);
  padding: 14px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.auth-gate-roles button:hover {
  border-color: var(--portal-blue);
}

.auth-gate-roles strong {
  color: var(--portal-navy);
  font-size: 18px;
}

.auth-gate-roles span {
  color: var(--portal-muted);
  font-size: 13px;
  line-height: 1.35;
}

.auth-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 1040px) {
  .auth-hero,
  .auth-role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-hero > div {
    grid-column: 1 / -1;
  }

  .auth-visual {
    display: none;
  }
}

@media (max-width: 680px) {
  .auth-main {
    padding: 16px;
  }

  .auth-hero,
  .auth-role-grid {
    grid-template-columns: 1fr;
  }

  .auth-hero > div,
  .auth-role-card {
    padding: 18px;
  }

  .auth-current-actions .portal-button,
  .auth-current-actions button,
  .auth-gate-actions .portal-button {
    width: 100%;
  }
}

/* Geometry pass: landing + lesson layout stability */
html,
body {
  max-width: 100%;
}

body {
  overflow-x: clip;
}

img,
video,
canvas {
  max-width: 100%;
  height: auto;
}

.app-shell,
.main,
.topbar,
.lesson-hero,
.workspace,
.player-panel,
.player-content,
.right-rail,
.right-rail > section,
.content-grid,
.theory-card,
.recap-card,
.exercise-section,
.prompt-panel,
.rule-card,
.lesson-word-card,
.lesson-phrase-card,
.transform-card,
.portfolio-topic-card,
.portfolio-theory-card,
.landing-page,
.landing-page main,
.landing-section,
.landing-hero,
.landing-hero-inner,
.landing-hero-copy,
.landing-lead-card {
  min-width: 0;
}

.landing-hero {
  overflow: hidden;
}

.landing-hero-image {
  transform: none;
}

.landing-button {
  overflow: hidden;
}

.landing-button-start::after,
.landing-free-start::after {
  inset: 0;
}

.landing-proof strong,
.landing-takeaway-stats strong,
.landing-metrics strong {
  line-height: 1.12;
}

.landing-takeaway-icons,
.landing-visa-icons {
  min-width: 0;
  max-width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
}

.landing-takeaway-icons span,
.landing-visa-icons span {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.landing-takeaway-stats div,
.landing-offer-card h3,
.landing-price {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.landing-offer-media {
  max-width: 100%;
  margin: 0;
  overflow: hidden;
}

.landing-offer-media img,
.landing-offer-card-dark .landing-offer-media img {
  transform: none;
}

.step-tabs,
.nav-list,
.lesson-filter-row,
.lesson-outline {
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.step-tabs {
  max-width: 100%;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 12px;
}

.step-tab {
  flex: 0 0 auto;
  line-height: 1.2;
}

.primary-button,
.ghost-button,
.small-button,
.landing-button,
.portal-button {
  max-width: 100%;
  min-width: 0;
}

.topbar-actions .primary-button,
.topbar-actions .ghost-button,
.player-footer .primary-button,
.player-footer .ghost-button,
.lesson-actions .primary-button,
.lesson-actions .ghost-button,
.landing-hero-actions .landing-button {
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}

.lesson-hero h2,
.player-content h2,
.player-content h3,
.theory-card h3,
.theory-card h4,
.rule-card strong,
.lesson-word-card .word-main strong,
.lesson-phrase-card strong,
.portfolio-topic-head h3,
.portfolio-level-facts b,
.landing-hero h1,
.landing-section h2 {
  overflow-wrap: normal;
  word-break: normal;
  -webkit-hyphens: none;
  hyphens: none;
}

.player-content p,
.player-content li,
.rule-card p,
.lesson-word-card p,
.lesson-phrase-card p,
.portfolio-topic-grid p,
.portfolio-theory-card .mini-table-row > span,
.lesson-section .rule-card .mini-table-row > span,
.lesson-section .soft-panel .mini-table-row > span {
  overflow-wrap: normal;
  word-break: normal;
  -webkit-hyphens: none;
  hyphens: none;
}

.mini-table,
.responsive-table,
.scroll-table,
.lesson-table {
  max-width: 100%;
}

.mini-table-row,
.mini-table-row > *,
.lesson-table th,
.lesson-table td {
  min-width: 0;
}

.lesson-table th,
.lesson-table td {
  overflow-wrap: normal;
  word-break: normal;
  -webkit-hyphens: none;
  hyphens: none;
}

@media (max-width: 1060px) {
  .sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
    padding: 10px 12px 12px;
  }

  .brand {
    width: 100%;
    min-width: 0;
  }

  .brand > div:last-child {
    min-width: 0;
  }

  .brand strong,
  .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-list {
    width: 100%;
    flex: none;
    gap: 6px;
    margin: 0;
    padding: 0 0 3px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-padding-inline: 4px;
  }

  .nav-item {
    flex: 0 0 auto;
    min-width: max-content;
    padding: 0 12px;
  }

  .main {
    max-width: 100%;
    overflow-x: clip;
  }
}

@media (max-width: 760px) {
  .player-content {
    min-height: 360px;
  }

  .step-tabs {
    scroll-padding-inline: 8px;
  }

  .step-tab {
    min-height: 48px;
    padding: 0 12px;
  }

  .lesson-hero h2 {
    font-size: 24px;
    line-height: 1.2;
  }

  .lesson-meta span {
    max-width: 100%;
  }

  .lesson-phrase-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lesson-phrase-card,
  .lesson-word-card,
  .rule-card,
  .theory-card,
  .recap-card,
  .exercise-section,
  .prompt-panel {
    padding: 14px;
  }

  .theory-card .lesson-table td {
    grid-template-columns: minmax(76px, 0.36fr) minmax(0, 1fr);
  }

  .landing-hero-copy {
    width: 100%;
    max-width: min(100%, 360px);
  }

  .landing-hero h1 {
    font-size: clamp(36px, 10vw, 44px);
    line-height: 1.12;
  }

  .landing-hero-actions {
    width: 100%;
    max-width: 352px;
    margin-right: auto;
    margin-left: auto;
  }

  .landing-hero-actions .landing-button {
    width: 100%;
  }

  .landing-takeaway-icons {
    grid-template-columns: repeat(2, minmax(136px, 1fr));
  }

  .landing-takeaway-icons span:last-child {
    grid-column: 1 / -1;
    max-width: 240px;
    justify-self: center;
  }
}

@media (max-width: 460px) {
  .main {
    padding: 12px;
  }

  .brand {
    gap: 10px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

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

  .nav-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
  }

  .nav-item {
    width: 100%;
    min-width: 0;
    justify-content: center;
    gap: 6px;
  }

  .nav-icon,
  [data-icon] {
    width: 16px;
    height: 16px;
  }

  .player-content,
  .lesson-hero {
    padding: 14px;
  }

  .theory-card .lesson-table td {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .mini-table[data-cols] .mini-table-row > span,
  .lesson-section .rule-card .mini-table[data-cols] .mini-table-row > span,
  .lesson-section .soft-panel .mini-table[data-cols] .mini-table-row > span {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .landing-hero-inner {
    padding-right: 16px;
    padding-left: 16px;
  }
}

/* Final typography guard: keep Russian readable while layouts resize. */
body,
.landing-page,
.app-shell {
  -webkit-hyphens: none;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

.landing-page :where(h1, h2, h3, h4, p, li, a, span, strong, b, em, small, label, button),
.app-shell :where(h1, h2, h3, h4, p, li, a, span, strong, b, em, small, label, button, th, td),
.portal-page :where(h1, h2, h3, h4, p, li, a, span, strong, b, em, small, label, button) {
  -webkit-hyphens: none !important;
  hyphens: none !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  text-wrap: pretty;
}

.landing-page :where(h1, h2, h3),
.app-shell :where(h1, h2, h3),
.portal-page :where(h1, h2, h3) {
  text-wrap: balance;
}

.landing-page :where(img, picture, video),
.app-shell :where(img, picture, video),
.portal-page :where(img, picture, video) {
  max-width: 100%;
}

.landing-takeaway-stats {
  grid-template-columns: repeat(2, minmax(170px, 1fr));
}

.landing-takeaway-stats div {
  border-right: 1px solid #dfe6ef;
  border-bottom: 1px solid #dfe6ef;
}

.landing-takeaway-stats div:nth-child(2n) {
  border-right: 0;
}

.landing-takeaway-stats div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

@media (max-width: 760px) {
  .landing-page :where(h1, h2, h3),
  .app-shell :where(h1, h2, h3),
  .portal-page :where(h1, h2, h3) {
    letter-spacing: 0;
  }

  .landing-takeaway-stats,
  .landing-metrics {
    grid-template-columns: repeat(2, minmax(132px, 1fr));
  }

  .landing-visa-icons {
    grid-template-columns: repeat(2, minmax(132px, 1fr));
  }
}

@media (max-width: 460px) {
  .landing-takeaway-icons,
  .landing-takeaway-stats,
  .landing-metrics,
  .landing-visa-icons {
    grid-template-columns: 1fr;
  }

  .landing-takeaway-stats div,
  .landing-takeaway-stats div:nth-child(2n) {
    border-right: 0;
  }

  .landing-takeaway-stats div:nth-last-child(-n + 2) {
    border-bottom: 1px solid #dfe6ef;
  }

  .landing-takeaway-stats div:last-child {
    border-bottom: 0;
  }

  .landing-takeaway-icons span,
  .landing-visa-icons span {
    justify-items: center;
    text-align: center;
  }
}

/* Landing interior geometry pass: make every section read evenly. */
.landing-page :where(.landing-hero-copy, .landing-result-copy, .landing-inside-copy, .landing-final-copy) {
  display: grid;
  align-content: center;
  gap: 22px;
}

.landing-page :where(.landing-hero-copy p, .landing-result-copy p, .landing-final-copy p),
.landing-page :where(.landing-audience-copy > p, .landing-takeaways-copy > p, .landing-inside-copy > p),
.landing-page :where(.landing-section-head p, .landing-offer-card p, .landing-support-list p, .landing-faq-list p) {
  margin-top: 0;
  max-width: 62ch;
  line-height: 1.55;
}

.landing-hero-actions,
.landing-free-row {
  margin-top: 4px;
}

.landing-lead-card,
.landing-final-form {
  align-content: start;
  gap: 16px;
}

.landing-lead-card h2,
.landing-final-form h2 {
  line-height: 1.14;
}

.landing-lead-card p,
.landing-final-form small {
  margin: 0;
}

.landing-proof div,
.landing-takeaway-stats div,
.landing-metrics div {
  justify-items: start;
  text-align: left;
}

.landing-proof span,
.landing-takeaway-stats span,
.landing-metrics span {
  max-width: 16ch;
  line-height: 1.32;
}

.landing-section-head {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.landing-section-head h2,
.landing-section-head p {
  margin: 0;
}

.landing-audience .landing-audience-grid,
.landing-support-list,
.landing-inside .landing-inside-grid,
.landing-steps,
.landing-faq-list {
  align-items: stretch;
}

.landing-audience .landing-audience-grid article,
.landing-support-list article,
.landing-inside .landing-inside-grid article,
.landing-step,
.landing-faq-list details {
  min-width: 0;
}

.landing-audience .landing-audience-grid h3,
.landing-support-list h3,
.landing-inside .landing-inside-grid h3,
.landing-step h3,
.landing-faq-list summary {
  line-height: 1.22;
}

.landing-offer-card {
  align-content: stretch;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
}

.landing-offer-card ul {
  align-content: start;
  align-self: stretch;
  gap: 12px;
}

.landing-offer-card li {
  line-height: 1.38;
}

.landing-price {
  align-self: end;
  margin-top: 4px;
}

.landing-offer-card .landing-button {
  align-self: end;
}

.landing-route a {
  align-content: center;
  gap: 5px;
}

@media (min-width: 821px) {
  .landing-offer-card {
    grid-template-columns: minmax(260px, 1fr) 190px;
  }

  .landing-offer-media img {
    height: 260px;
  }
}

@media (max-width: 820px) {
  .landing-page :where(.landing-hero-copy, .landing-result-copy, .landing-inside-copy, .landing-final-copy) {
    justify-items: center;
    gap: 18px;
    text-align: center;
  }

  .landing-proof div,
  .landing-takeaway-stats div,
  .landing-metrics div {
    justify-items: center;
    text-align: center;
  }

  .landing-proof span,
  .landing-takeaway-stats span,
  .landing-metrics span {
    max-width: 22ch;
  }

  .landing-offer-card {
    grid-template-rows: none;
  }
}

/* Premium American education / visa consulting landing */
.landing-page {
  --landing-text: #111827;
  --landing-steel: #5b6472;
  --landing-navy: #0b1f3a;
  --landing-navy-2: #122d50;
  --landing-gold: #b08a45;
  --landing-gold-soft: #e8d7b9;
  --landing-bg: #f7f4ef;
  --landing-paper: #fffdf8;
  --landing-line: rgba(17, 24, 39, 0.12);
  --landing-red: #b08a45;
  --landing-red-dark: #967238;
  min-width: 0;
  overflow-x: hidden;
  background: var(--landing-bg);
  color: var(--landing-text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

.landing-page main {
  background:
    linear-gradient(180deg, rgba(247, 244, 239, 0) 0%, rgba(247, 244, 239, 0.86) 42%, #f7f4ef 100%),
    var(--landing-bg);
}

.landing-page :where(h1, h2, h3) {
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--landing-text);
}

.landing-page :where(p, li, small, label, input, select, button, a, span) {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
}

.landing-page :where(p, li) {
  color: var(--landing-steel);
  font-size: clamp(17px, 1.18vw, 19px);
  line-height: 1.6;
}

.landing-header {
  height: 84px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(20px, 3.5vw, 46px);
  padding: 0 clamp(18px, 4.8vw, 74px);
  border-bottom: 1px solid rgba(11, 31, 58, 0.1);
  background: rgba(247, 244, 239, 0.92);
  box-shadow: 0 18px 52px rgba(11, 31, 58, 0.08);
}

.landing-brand {
  gap: 12px;
  color: var(--landing-navy);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
}

.landing-mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(176, 138, 69, 0.48);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
    var(--landing-navy);
  color: var(--landing-gold-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 900;
}

.landing-nav {
  gap: clamp(16px, 2vw, 30px);
}

.landing-nav a,
.landing-footer a {
  color: rgba(17, 24, 39, 0.78);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.landing-nav a:hover,
.landing-footer a:hover,
.landing-nav-free {
  color: var(--landing-navy) !important;
}

.landing-nav a::after {
  background: var(--landing-gold);
}

.landing-nav-free {
  border-bottom: 2px solid var(--landing-gold);
}

.landing-nav-cta,
.landing-button {
  min-height: 48px;
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: normal;
}

.landing-nav-cta,
.landing-button-red,
.landing-button-start,
.landing-free-start {
  border-color: var(--landing-gold);
  background: var(--landing-gold) !important;
  color: var(--landing-navy) !important;
  box-shadow: 0 18px 34px rgba(176, 138, 69, 0.22);
}

.landing-button-red:hover,
.landing-nav-cta:hover,
.landing-button-start:hover,
.landing-free-start:hover {
  background: #9c783c !important;
  color: #fffdf8 !important;
}

.landing-button-start::after,
.landing-free-start::after {
  display: none;
}

.landing-button-light {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 253, 248, 0.93);
  color: var(--landing-navy);
}

.landing-button-navy {
  background: var(--landing-navy);
  color: #ffffff;
}

.landing-button-outline {
  border-color: rgba(11, 31, 58, 0.35);
  background: transparent;
  color: var(--landing-navy);
}

.landing-hero {
  min-height: 760px;
  background: var(--landing-navy);
}

.landing-hero-image {
  filter: saturate(0.9) contrast(1.04);
  object-position: center center;
}

.landing-hero-shade {
  background:
    linear-gradient(90deg, rgba(11, 31, 58, 0.96) 0%, rgba(11, 31, 58, 0.82) 36%, rgba(11, 31, 58, 0.3) 68%, rgba(11, 31, 58, 0.08) 100%),
    linear-gradient(180deg, rgba(11, 31, 58, 0.12), rgba(11, 31, 58, 0.28));
}

.landing-hero-inner {
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 430px);
  min-height: 760px;
  max-width: 1320px;
  padding: clamp(72px, 9vw, 120px) clamp(20px, 5vw, 72px);
}

.landing-hero-copy {
  max-width: 790px;
  justify-items: start !important;
  text-align: left !important;
}

.landing-hero h1 {
  max-width: 790px;
  color: #fffdf8;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(56px, 5.6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.landing-hero-copy p {
  max-width: 640px;
  color: rgba(255, 253, 248, 0.82);
  font-size: clamp(18px, 1.35vw, 20px);
  line-height: 1.65;
}

.landing-hero-actions {
  gap: 12px;
  justify-content: flex-start;
  max-width: 680px;
}

.landing-lead-card,
.landing-final-form {
  border: 1px solid rgba(176, 138, 69, 0.22);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
  color: var(--landing-text);
  box-shadow: 0 32px 70px rgba(11, 31, 58, 0.28);
  padding: 28px;
}

.landing-lead-card h2,
.landing-final-form h2 {
  color: var(--landing-text);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 28px;
  letter-spacing: -0.03em;
}

.landing-lead-card p,
.landing-lead-card small,
.landing-final-form small {
  color: var(--landing-steel);
}

.landing-lead-card label,
.landing-final-form label {
  color: var(--landing-text);
  font-size: 13px;
  font-weight: 700;
}

.landing-lead-card input,
.landing-lead-card select,
.landing-final-form input,
.landing-final-form select {
  min-height: 48px;
  border: 1px solid rgba(11, 31, 58, 0.18);
  border-radius: 6px;
  background: #ffffff;
  color: var(--landing-text);
  font-size: 15px;
}

.landing-proof {
  max-width: 1180px;
  margin: -44px auto 0;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(176, 138, 69, 0.24);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 22px 56px rgba(11, 31, 58, 0.12);
  overflow: hidden;
}

.landing-proof div {
  min-height: 118px;
  border-right: 1px solid rgba(176, 138, 69, 0.18);
  padding: 24px clamp(18px, 3vw, 38px);
}

.landing-proof strong {
  color: var(--landing-navy);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 38px;
  letter-spacing: -0.03em;
}

.landing-proof span {
  color: var(--landing-steel);
  font-size: 14px;
  font-weight: 700;
}

.landing-proof div:nth-child(3) strong,
.landing-proof div:nth-child(3) span {
  color: var(--landing-gold);
}

.landing-section {
  padding: clamp(78px, 9vw, 124px) clamp(18px, 5vw, 72px);
}

.landing-section-label {
  border-left: 3px solid var(--landing-gold) !important;
  color: var(--landing-gold) !important;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-section-head {
  max-width: 850px;
  gap: 16px;
}

.landing-section-head h2,
.landing-control-title h2,
.landing-control-list h2,
.landing-visa-band h2,
.landing-final-copy h2,
.landing-teacher-copy h2,
.landing-editorial-copy h2,
.landing-result h2,
.landing-book-strip h2,
.landing-faq h2,
.landing-audience h2,
.landing-takeaways h2,
.landing-inside-copy h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(36px, 4.2vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.landing-section-head p {
  color: var(--landing-steel);
}

.landing-editorial {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(38px, 6vw, 82px);
  align-items: start;
  max-width: 1320px;
  margin: 0 auto;
}

.landing-editorial-copy {
  display: grid;
  gap: 18px;
  align-content: start;
}

.landing-editorial-copy p {
  max-width: 58ch;
}

.landing-editorial-grid {
  display: grid;
  gap: 14px;
}

.landing-editorial-grid article {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 6px 20px;
  min-width: 0;
  border: 1px solid rgba(176, 138, 69, 0.22);
  border-radius: 8px;
  background: #fffdf8;
  padding: 24px;
  box-shadow: 0 16px 42px rgba(11, 31, 58, 0.06);
}

.landing-editorial-grid span {
  grid-row: 1 / span 2;
  color: var(--landing-gold);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 26px;
  font-weight: 700;
}

.landing-editorial-grid h3 {
  margin: 0;
  font-size: 25px;
  line-height: 1.16;
}

.landing-editorial-grid p {
  margin: 0;
}

.landing-audience {
  background: var(--landing-navy);
}

.landing-audience-layout {
  grid-template-columns: minmax(420px, 0.9fr) minmax(0, 1.1fr);
}

.landing-audience-copy {
  padding: clamp(72px, 8vw, 116px) clamp(30px, 5.2vw, 78px);
}

.landing-audience h2,
.landing-audience .landing-audience-grid h3,
.landing-inside-copy h2,
.landing-inside .landing-inside-grid h3,
.landing-process .landing-section-head h2,
.landing-process .landing-step h3,
.landing-result h2,
.landing-result strong {
  color: #fffdf8;
}

.landing-audience-copy > p,
.landing-audience .landing-audience-grid p,
.landing-inside-copy > p,
.landing-inside .landing-inside-grid p,
.landing-process .landing-section-head p,
.landing-process .landing-step p,
.landing-result p {
  color: rgba(255, 253, 248, 0.76);
}

.landing-audience .landing-audience-grid article {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 4px 18px;
}

.landing-audience .landing-audience-grid b {
  border-color: rgba(176, 138, 69, 0.55);
  color: var(--landing-gold-soft);
}

.landing-audience-photo::before {
  background:
    linear-gradient(90deg, var(--landing-navy) 0%, rgba(11, 31, 58, 0.58) 22%, rgba(11, 31, 58, 0) 58%),
    linear-gradient(180deg, rgba(11, 31, 58, 0.08), rgba(11, 31, 58, 0.28));
}

.landing-audience-photo img {
  object-position: 58% center;
}

.landing-takeaways {
  background: #fffdf8;
}

.landing-takeaways-copy {
  padding: clamp(72px, 8vw, 112px) clamp(28px, 6vw, 86px);
}

.landing-takeaway-icons span {
  color: var(--landing-text);
  font-size: 14px;
  line-height: 1.35;
}

.landing-takeaway-icons i {
  border: 1px solid rgba(176, 138, 69, 0.2);
  background: rgba(176, 138, 69, 0.1);
  color: var(--landing-gold);
}

.landing-takeaway-stats {
  border-color: rgba(176, 138, 69, 0.22);
  border-radius: 8px;
  box-shadow: 0 20px 48px rgba(11, 31, 58, 0.08);
}

.landing-takeaway-stats div {
  border-color: rgba(176, 138, 69, 0.18);
}

.landing-takeaway-stats strong,
.landing-price {
  color: var(--landing-navy);
  font-family: "Libre Baskerville", Georgia, serif;
}

.landing-takeaways-photo img {
  object-position: 54% center;
}

.landing-result {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  background:
    linear-gradient(90deg, rgba(11, 31, 58, 0.96), rgba(11, 31, 58, 0.82) 48%, rgba(11, 31, 58, 0.22)),
    url("assets/7FF2550E-09B4-4AD2-94D5-815A4F217410.PNG") center/cover;
  color: #fffdf8;
}

.landing-week-list {
  gap: 14px;
}

.landing-week-list article {
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.08);
  backdrop-filter: blur(12px);
}

.landing-week-list span {
  color: var(--landing-gold-soft);
}

.landing-control {
  max-width: 1320px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.74fr);
}

.landing-control-title h2 {
  color: var(--landing-text);
}

.landing-dashboard {
  border-color: rgba(176, 138, 69, 0.2);
  border-radius: 8px;
  box-shadow: 0 28px 76px rgba(11, 31, 58, 0.14);
}

.landing-dashboard aside,
.landing-dashboard-head a,
.landing-mini-lesson em {
  background: var(--landing-navy);
}

.landing-dashboard-head span {
  color: var(--landing-gold);
}

.landing-support-list article,
.landing-inside-grid article,
.landing-step,
.landing-faq-list details {
  border-radius: 8px;
}

.landing-support-icon {
  border-color: rgba(176, 138, 69, 0.22);
  background: rgba(176, 138, 69, 0.1);
  color: var(--landing-gold);
}

.landing-inside {
  background:
    linear-gradient(135deg, rgba(11, 31, 58, 0.98) 0%, rgba(11, 31, 58, 0.93) 54%, rgba(18, 45, 80, 0.98) 100%),
    var(--landing-navy);
}

.landing-inside-showcase {
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.82fr);
  max-width: 1320px;
}

.landing-dashboard-photo,
.landing-teacher-photo,
.landing-visa-visual,
.landing-audience-photo,
.landing-takeaways-photo {
  border-radius: 8px;
}

.landing-dashboard-photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(176, 138, 69, 0.22);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.32);
}

.landing-dashboard-photo img {
  display: block;
  width: 100%;
  min-height: 460px;
  object-fit: cover;
  object-position: 36% center;
}

.landing-inside .landing-inside-grid article {
  border-color: rgba(176, 138, 69, 0.18);
  background: rgba(255, 253, 248, 0.08);
}

.landing-inside .landing-inside-grid span {
  background: rgba(176, 138, 69, 0.18);
  color: var(--landing-gold-soft);
}

.landing-teacher-track {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
}

.landing-teacher-photo {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(176, 138, 69, 0.22);
  box-shadow: 0 22px 64px rgba(11, 31, 58, 0.12);
}

.landing-teacher-photo img {
  display: block;
  width: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: 62% center;
}

.landing-teacher-copy {
  display: grid;
  gap: 18px;
}

.landing-teacher-copy p {
  max-width: 58ch;
}

.landing-teacher-copy ul {
  display: grid;
  gap: 12px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.landing-teacher-copy li {
  position: relative;
  padding-left: 28px;
  color: var(--landing-text);
  font-size: 17px;
  font-weight: 600;
}

.landing-teacher-copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--landing-gold);
}

.landing-visa-band {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 0;
  padding: 0;
  background: var(--landing-navy);
  color: #fffdf8;
}

.landing-visa-band > div {
  max-width: none;
}

.landing-visa-visual {
  margin: 0;
  overflow: hidden;
  border-radius: 0;
}

.landing-visa-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  object-position: 48% center;
}

.landing-visa-copy {
  display: grid;
  align-content: center;
  gap: 20px;
  padding: clamp(64px, 7vw, 110px) clamp(26px, 5vw, 78px);
}

.landing-visa-band h2 {
  color: #fffdf8;
}

.landing-visa-band p,
.landing-visa-band small {
  color: rgba(255, 253, 248, 0.76);
}

.landing-visa-icons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.landing-visa-icons span {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(176, 138, 69, 0.34);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.06);
  color: #fffdf8;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.landing-visa-icons svg {
  width: 24px;
  height: 24px;
  color: var(--landing-gold-soft);
}

.landing-offers {
  background: #fffdf8;
}

.landing-offer-grid {
  max-width: 1180px;
  gap: 24px;
}

.landing-offer-card {
  border: 1px solid rgba(176, 138, 69, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff, #fffaf0);
  box-shadow: 0 22px 58px rgba(11, 31, 58, 0.08);
}

.landing-offer-card-dark {
  border-color: rgba(11, 31, 58, 0.42);
  background:
    linear-gradient(145deg, rgba(11, 31, 58, 0.98), rgba(18, 45, 80, 0.96));
  color: #fffdf8;
}

.landing-offer-card-dark h3,
.landing-offer-card-dark .landing-price,
.landing-offer-card-dark li {
  color: #fffdf8;
}

.landing-offer-card-dark p,
.landing-offer-card-dark .landing-offer-card li {
  color: rgba(255, 253, 248, 0.72);
}

.landing-offer-top {
  border-radius: 7px 7px 0 0;
  background: var(--landing-gold);
  color: var(--landing-navy);
  letter-spacing: 0.04em;
}

.landing-offer-icon {
  color: var(--landing-gold);
}

.landing-offer-card h3 {
  font-size: clamp(28px, 2.35vw, 34px);
}

.landing-offer-card p,
.landing-offer-card li {
  color: var(--landing-steel);
  font-size: 16px;
}

.landing-offer-card li::before {
  border-color: var(--landing-gold);
}

.landing-offer-media {
  border-radius: 8px;
  overflow: hidden;
}

.landing-offer-media img {
  border-radius: 8px;
  box-shadow: none;
}

.landing-process {
  background:
    linear-gradient(90deg, rgba(11, 31, 58, 0.96), rgba(11, 31, 58, 0.86) 56%, rgba(11, 31, 58, 0.32)),
    url("assets/BE8BA325-9066-4440-906A-82CAB17A34F5.PNG") center/cover;
}

.landing-process .landing-step {
  border-color: rgba(176, 138, 69, 0.3);
  border-top-color: var(--landing-gold);
  background: rgba(255, 253, 248, 0.08);
}

.landing-process .landing-step b {
  border-color: rgba(176, 138, 69, 0.5);
  color: var(--landing-gold-soft);
}

.landing-book-strip {
  background:
    linear-gradient(90deg, var(--landing-navy), var(--landing-navy-2));
}

.landing-book-strip h2,
.landing-book-strip p {
  color: #fffdf8;
}

.landing-book-strip p {
  color: rgba(255, 253, 248, 0.74);
}

.landing-faq {
  background: var(--landing-bg);
}

.landing-faq-list details {
  border: 1px solid rgba(176, 138, 69, 0.2);
  background: #fffdf8;
}

.landing-faq-list summary {
  color: var(--landing-text);
  font-size: 17px;
}

.landing-faq-list p {
  color: var(--landing-steel);
}

.landing-final {
  min-height: 660px;
  background:
    linear-gradient(90deg, rgba(247, 244, 239, 0.96) 0%, rgba(247, 244, 239, 0.88) 42%, rgba(247, 244, 239, 0.2) 100%),
    url("assets/07165655-E35C-448E-AEDE-370E63F932AE.PNG") center/cover;
}

.landing-final-copy {
  justify-items: start !important;
  text-align: left !important;
}

.landing-final-copy h2 {
  color: var(--landing-text);
}

.landing-free-row a,
.landing-free-row span {
  min-height: 46px;
  border-color: rgba(176, 138, 69, 0.22);
  border-radius: 8px;
  color: var(--landing-navy);
  font-size: 15px;
  font-weight: 700;
}

.landing-route,
.landing-footer {
  background: #fffdf8;
}

.landing-route a {
  border-color: rgba(176, 138, 69, 0.18);
}

.landing-route b,
.landing-footer span {
  color: var(--landing-navy);
  font-family: "Libre Baskerville", Georgia, serif;
}

@media (max-width: 1180px) {
  .landing-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .landing-nav {
    display: none;
  }

  .landing-editorial,
  .landing-control,
  .landing-inside-showcase,
  .landing-teacher-track,
  .landing-visa-band,
  .landing-result {
    grid-template-columns: 1fr;
  }

  .landing-visa-visual img,
  .landing-teacher-photo img,
  .landing-dashboard-photo img {
    min-height: 430px;
  }

  .landing-visa-copy {
    padding-top: 58px;
  }
}

@media (max-width: 820px) {
  .landing-page {
    font-size: 17px;
  }

  .landing-header {
    min-height: 68px;
    height: auto;
    padding: 12px 16px;
  }

  .landing-brand {
    font-size: 16px;
  }

  .landing-nav-cta {
    min-height: 40px;
    padding: 0 13px;
    font-size: 14px;
  }

  .landing-hero {
    min-height: 0;
  }

  .landing-hero-image {
    object-position: 32% center;
  }

  .landing-hero-shade {
    background:
      linear-gradient(180deg, rgba(11, 31, 58, 0.96) 0%, rgba(11, 31, 58, 0.8) 58%, rgba(11, 31, 58, 0.54) 100%);
  }

  .landing-hero-inner {
    min-height: 0;
    padding: 70px 18px 84px;
  }

  .landing-hero-copy,
  .landing-final-copy {
    max-width: 100%;
    justify-items: start !important;
    text-align: left !important;
  }

  .landing-hero h1 {
    max-width: 11ch;
    font-size: clamp(40px, 12vw, 52px);
    line-height: 1.08;
  }

  .landing-hero-copy p {
    max-width: 31ch;
    font-size: 17px;
    line-height: 1.58;
  }

  .landing-hero-actions {
    width: 100%;
    max-width: 360px;
    margin-left: 0;
  }

  .landing-hero-actions .landing-button {
    width: 100%;
  }

  .landing-proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    border-radius: 0;
    border-right: 0;
    border-left: 0;
  }

  .landing-proof div {
    min-height: 104px;
    justify-items: start;
    text-align: left;
  }

  .landing-section {
    padding: 64px 18px;
  }

  .landing-editorial-grid article {
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 20px;
  }

  .landing-editorial-grid span {
    font-size: 21px;
  }

  .landing-editorial-grid h3 {
    font-size: 22px;
  }

  .landing-audience-layout,
  .landing-takeaways {
    grid-template-columns: 1fr;
  }

  .landing-audience-copy,
  .landing-takeaways-copy {
    padding: 64px 18px;
  }

  .landing-audience h2,
  .landing-takeaways h2,
  .landing-inside-copy h2,
  .landing-offers .landing-section-head h2,
  .landing-process .landing-section-head h2,
  .landing-final-copy h2,
  .landing-section-head h2,
  .landing-teacher-copy h2,
  .landing-editorial-copy h2,
  .landing-result h2,
  .landing-visa-band h2 {
    max-width: 100%;
    font-size: clamp(34px, 9.2vw, 40px);
    line-height: 1.16;
  }

  .landing-audience-copy > p,
  .landing-takeaways-copy > p,
  .landing-inside-copy > p,
  .landing-teacher-copy p,
  .landing-editorial-copy p,
  .landing-result p,
  .landing-visa-band p,
  .landing-section-head p {
    max-width: 100%;
    font-size: 17px;
    line-height: 1.58;
  }

  .landing-audience-photo,
  .landing-audience-photo img,
  .landing-takeaways-photo,
  .landing-takeaways-photo img {
    min-height: 340px;
  }

  .landing-takeaway-icons {
    grid-template-columns: 1fr;
  }

  .landing-takeaway-icons span {
    grid-template-columns: 42px minmax(0, 1fr);
    justify-items: start;
    text-align: left;
  }

  .landing-takeaway-stats,
  .landing-metrics,
  .landing-visa-icons {
    grid-template-columns: 1fr;
  }

  .landing-result {
    background:
      linear-gradient(180deg, rgba(11, 31, 58, 0.95), rgba(11, 31, 58, 0.86)),
      url("assets/7FF2550E-09B4-4AD2-94D5-815A4F217410.PNG") 34% center/cover;
  }

  .landing-dashboard-photo img,
  .landing-teacher-photo img,
  .landing-visa-visual img {
    min-height: 320px;
  }

  .landing-teacher-track {
    gap: 28px;
  }

  .landing-visa-copy {
    padding: 58px 18px;
  }

  .landing-offer-card {
    padding: 24px;
  }

  .landing-offer-media img {
    height: 210px;
  }

  .landing-process {
    background:
      linear-gradient(180deg, rgba(11, 31, 58, 0.96), rgba(11, 31, 58, 0.88)),
      url("assets/BE8BA325-9066-4440-906A-82CAB17A34F5.PNG") 44% center/cover;
  }

  .landing-final {
    min-height: 0;
    background:
      linear-gradient(180deg, rgba(247, 244, 239, 0.18) 0%, rgba(247, 244, 239, 0.9) 34%, #f7f4ef 56%, #f7f4ef 100%),
      url("assets/07165655-E35C-448E-AEDE-370E63F932AE.PNG") 54% top/auto 320px no-repeat,
      var(--landing-bg);
    padding-top: 350px;
  }

  .landing-free-row {
    width: 100%;
  }

  .landing-free-row a,
  .landing-free-row span {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

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

  .landing-nav-cta {
    width: 100%;
  }

  .landing-hero h1 {
    max-width: 10ch;
  }

  .landing-proof {
    grid-template-columns: 1fr;
  }

  .landing-proof div {
    border-right: 0;
    border-bottom: 1px solid rgba(176, 138, 69, 0.18);
  }

  .landing-editorial-grid article,
  .landing-audience .landing-audience-grid article {
    grid-template-columns: 1fr;
  }

  .landing-editorial-grid span,
  .landing-audience .landing-audience-grid b {
    grid-row: auto;
  }

  .landing-visa-icons span {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

/* Landing dedupe pass: one clear sales route, fewer repeated promises */
.landing-outcome-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.landing-outcome-steps article {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(176, 138, 69, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 20px;
  box-shadow: 0 18px 44px rgba(11, 31, 58, 0.06);
}

.landing-outcome-steps span {
  color: var(--landing-gold);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 18px;
  font-weight: 700;
}

.landing-outcome-steps strong {
  color: var(--landing-navy);
  font-size: 18px;
  line-height: 1.2;
}

.landing-outcome-steps p {
  margin: 0;
  color: var(--landing-steel);
  font-size: 15px;
  line-height: 1.48;
}

.landing-control {
  align-items: start;
}

.landing-control .landing-support-list {
  align-self: stretch;
}

.landing-control .landing-inside-showcase {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  margin: clamp(28px, 4vw, 48px) 0 0;
  border: 1px solid rgba(176, 138, 69, 0.22);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(11, 31, 58, 0.98) 0%, rgba(11, 31, 58, 0.94) 56%, rgba(18, 45, 80, 0.98) 100%);
  padding: clamp(20px, 3vw, 34px);
  color: #fffdf8;
  box-shadow: 0 28px 78px rgba(11, 31, 58, 0.18);
}

.landing-control .landing-inside-copy h2 {
  max-width: 11ch;
  color: #fffdf8;
}

.landing-control .landing-inside-copy > p,
.landing-control .landing-cabinet-list li {
  color: rgba(255, 253, 248, 0.78);
}

.landing-control .landing-cabinet-list li::before {
  border-color: rgba(176, 138, 69, 0.68);
}

.landing-control .landing-cabinet-list li::after {
  border-color: #fffdf8;
}

.landing-control .landing-inside-grid {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 18px;
}

.landing-control .landing-inside-grid article {
  border: 1px solid rgba(176, 138, 69, 0.2);
  background: #fffdf8;
}

.landing-control .landing-inside-grid span {
  background: rgba(176, 138, 69, 0.12);
  color: var(--landing-gold);
}

.landing-control .landing-inside-grid h3 {
  color: var(--landing-navy);
}

.landing-control .landing-inside-grid p {
  color: var(--landing-steel);
}

@media (max-width: 1180px) {
  .landing-control .landing-inside-showcase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .landing-takeaway-icons {
    grid-template-columns: 1fr;
  }

  .landing-takeaway-icons span,
  .landing-takeaway-icons span:last-child {
    grid-column: auto;
    justify-self: stretch;
    max-width: none;
    grid-template-columns: 42px minmax(0, 1fr);
    justify-items: start;
    text-align: left;
  }

  .landing-outcome-steps {
    grid-template-columns: 1fr;
  }

  .landing-control .landing-inside-showcase {
    padding: 18px;
  }

  .landing-control .landing-inside-copy h2 {
    max-width: 100%;
  }
}

@media (max-width: 460px) {
  .landing-outcome-steps article {
    padding: 18px;
  }
}

.landing-page .landing-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 24px;
  width: 100%;
  max-width: 100vw;
  min-width: 0;
  overflow: hidden;
  padding-right: clamp(18px, 5vw, 72px);
  padding-left: clamp(18px, 5vw, 72px);
  box-sizing: border-box;
}

.landing-page .landing-footer > * {
  min-width: 0;
}

.landing-page .landing-footer a,
.landing-page .landing-footer span {
  overflow-wrap: anywhere;
  text-align: center;
}

/* Premium product shell: student, teacher, and lessons */
:root {
  --premium-text: #111827;
  --premium-muted: #5b6472;
  --premium-navy: #0b1f3a;
  --premium-navy-2: #142d4f;
  --premium-gold: #b08a45;
  --premium-gold-soft: #e8d7b9;
  --premium-bg: #f7f4ef;
  --premium-paper: #fffdf8;
  --premium-line: rgba(17, 24, 39, 0.12);
  --premium-shadow: 0 22px 58px rgba(11, 31, 58, 0.1);
}

body,
.portal-page,
.app-shell {
  color: var(--premium-text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body:has(.app-shell) {
  background:
    radial-gradient(circle at 80% -10%, rgba(176, 138, 69, 0.16), transparent 34%),
    linear-gradient(180deg, #fffdf8 0%, var(--premium-bg) 55%, #f1ece3 100%);
}

.portal-page {
  --portal-navy: var(--premium-navy);
  --portal-ink: var(--premium-text);
  --portal-muted: var(--premium-muted);
  --portal-line: rgba(17, 24, 39, 0.12);
  --portal-blue: var(--premium-gold);
  --portal-red: #9b2f36;
  --portal-gold: var(--premium-gold);
  --portal-green: #26765d;
  background:
    radial-gradient(circle at 82% 0%, rgba(176, 138, 69, 0.18), transparent 30%),
    linear-gradient(180deg, #fffdf8 0%, var(--premium-bg) 48%, #f1ece3 100%);
}

.portal-page :where(h1, h2),
.app-shell :where(.topbar h1, .lesson-hero h2, .player-content h2, .passport-card .stamp) {
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  letter-spacing: -0.03em;
}

.portal-page :where(h3, p, li, span, a, button, label, input, select, textarea),
.app-shell :where(h3, p, li, span, a, button, label, input, select, textarea) {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
}

.portal-header {
  min-height: 84px;
  border-bottom: 1px solid rgba(11, 31, 58, 0.1);
  background: rgba(247, 244, 239, 0.94);
  box-shadow: 0 18px 52px rgba(11, 31, 58, 0.08);
}

.portal-brand {
  color: var(--premium-navy);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
}

.portal-mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(176, 138, 69, 0.48);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
    var(--premium-navy);
  color: var(--premium-gold-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  font-family: "Inter", sans-serif;
  font-weight: 900;
}

.portal-nav a,
.portal-header-action,
.portal-user {
  color: rgba(17, 24, 39, 0.75);
  font-size: 15px;
  font-weight: 650;
}

.portal-nav a:hover,
.portal-nav a.active {
  color: var(--premium-navy);
}

.portal-nav a.active::after {
  background: var(--premium-gold);
}

.portal-header-action,
.portal-user,
.portal-button {
  border-color: rgba(176, 138, 69, 0.22);
  border-radius: 8px;
  background: var(--premium-paper);
  color: var(--premium-navy);
}

.portal-button {
  min-height: 44px;
  font-size: 15px;
  font-weight: 750;
}

.portal-button.primary {
  border-color: var(--premium-navy);
  background: var(--premium-navy);
  color: #fffdf8;
  box-shadow: 0 16px 34px rgba(11, 31, 58, 0.16);
}

.portal-button.primary:hover {
  border-color: var(--premium-gold);
  background: #143256;
}

.portal-button.danger {
  border-color: rgba(155, 47, 54, 0.22);
  background: #fff7f3;
  color: #9b2f36;
}

.student-main,
.teacher-main,
.manager-main,
.admin-main {
  width: min(100%, 1480px);
}

.student-hero,
.teacher-hero,
.admin-hero {
  border-color: rgba(176, 138, 69, 0.24);
  border-radius: 8px;
  box-shadow: 0 28px 76px rgba(11, 31, 58, 0.16);
}

.student-hero {
  background: var(--premium-navy);
}

.student-hero h1,
.teacher-hero h1,
.admin-hero h1 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.student-hero-copy > p,
.teacher-hero p,
.admin-hero p {
  color: rgba(255, 253, 248, 0.78);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.6;
}

.student-hero-visual::before {
  background:
    linear-gradient(90deg, var(--premium-navy) 0%, rgba(11, 31, 58, 0.76) 34%, rgba(11, 31, 58, 0.1) 74%),
    linear-gradient(180deg, rgba(11, 31, 58, 0.06), rgba(11, 31, 58, 0.22));
}

.student-hero-visual img {
  object-position: 40% center;
  filter: saturate(0.96) contrast(1.03);
}

.student-plan-panel,
.teacher-day-card,
.admin-revenue-card,
.student-grid article,
.student-tools a,
.student-lock,
.student-support,
.teacher-stat-strip article,
.teacher-students,
.teacher-review,
.teacher-insights section,
.teacher-progress-card,
.teacher-feedback-box,
.admin-card,
.admin-board,
.admin-kpis article,
.manager-filters,
.manager-column,
.manager-detail,
.manager-stats div {
  border-color: rgba(176, 138, 69, 0.2);
  border-radius: 8px;
  background: var(--premium-paper);
  box-shadow: var(--premium-shadow);
}

.student-plan-panel {
  background: rgba(255, 253, 248, 0.96);
}

.student-plan-panel a,
.student-ring span,
.student-tools em,
.teacher-word-list b,
.teacher-dictation-row strong,
.manager-column header span,
.admin-funnel-step span {
  color: var(--premium-gold);
}

.student-plan-panel a {
  background: var(--premium-navy);
  color: #fffdf8;
  border-radius: 8px;
}

.student-grid article > span,
.student-tools span,
.student-message span,
.teacher-day-card span,
.teacher-stat-strip span,
.teacher-panel-head span,
.teacher-review-top span,
.teacher-progress-card span,
.teacher-submission-card span,
.admin-panel-head span,
.admin-kpis span {
  color: var(--premium-muted);
  letter-spacing: 0.02em;
}

.student-progress strong,
.student-next h2,
.student-free h2,
.student-support h2,
.teacher-day-card strong,
.teacher-stat-strip strong,
.teacher-panel-head h2,
.teacher-review-top h2,
.teacher-section-title h3,
.teacher-feedback-box h3,
.teacher-insights h3,
.teacher-submission-card h3,
.admin-panel-head h2,
.admin-kpis strong,
.admin-revenue-card strong {
  color: var(--premium-navy);
}

.student-ring {
  background:
    radial-gradient(circle at center, var(--premium-paper) 58%, transparent 59%),
    conic-gradient(var(--premium-gold) 0 14deg, #ebe4d7 14deg 360deg);
}

.student-free {
  border-top-color: var(--premium-gold);
}

.student-lock {
  background:
    linear-gradient(90deg, rgba(176, 138, 69, 0.12), rgba(255, 253, 248, 0.94)),
    var(--premium-paper);
}

.student-lock.is-open {
  background:
    linear-gradient(90deg, rgba(38, 118, 93, 0.12), rgba(255, 253, 248, 0.94)),
    var(--premium-paper);
}

.student-tools a:hover,
.manager-card:hover,
.manager-card.active,
.teacher-student-card:hover,
.teacher-student-card.active,
.admin-lead-row:hover,
.admin-lead-row.active {
  border-color: rgba(176, 138, 69, 0.52);
  box-shadow: 0 18px 46px rgba(176, 138, 69, 0.12);
}

.teacher-hero {
  background:
    linear-gradient(100deg, rgba(11, 31, 58, 0.97) 0%, rgba(11, 31, 58, 0.83) 52%, rgba(11, 31, 58, 0.2) 100%),
    url("assets/07165655-E35C-448E-AEDE-370E63F932AE.PNG") 62% center/cover;
}

.teacher-filter,
.teacher-filter-row button,
.teacher-submission-side button,
.admin-filter-row button,
.admin-row-actions button {
  border-color: rgba(176, 138, 69, 0.22);
  border-radius: 8px;
  background: var(--premium-paper);
  color: var(--premium-navy);
  font-weight: 750;
}

.teacher-filter.active,
.teacher-filter-row button.active,
.admin-filter-row button.active {
  border-color: rgba(176, 138, 69, 0.5);
  background: rgba(176, 138, 69, 0.12);
  color: var(--premium-navy);
}

.teacher-progress-card {
  background:
    linear-gradient(90deg, rgba(176, 138, 69, 0.12), rgba(255, 253, 248, 0.92));
}

.teacher-progress-bar,
.meter-track {
  background: #ebe4d7;
}

.teacher-progress-bar i,
.meter-fill {
  background: linear-gradient(90deg, var(--premium-gold), var(--premium-navy));
}

.teacher-submission-card {
  border-left-color: var(--premium-gold);
}

.teacher-submission-card.status-checked {
  border-left-color: #26765d;
}

.teacher-submission-card.status-revision {
  border-left-color: #9b2f36;
}

.teacher-word-list span,
.teacher-feedback-box textarea,
.manager-filters select,
.manager-filters input,
.manager-detail select,
.manager-detail textarea,
.admin-price-field input,
.admin-detail select,
.admin-detail textarea {
  border-color: rgba(176, 138, 69, 0.22);
  border-radius: 8px;
  background: #ffffff;
}

.app-shell {
  --surface: var(--premium-paper);
  --surface-soft: rgba(176, 138, 69, 0.1);
  --text: var(--premium-text);
  --muted: var(--premium-muted);
  --line: rgba(17, 24, 39, 0.12);
  --navy: var(--premium-navy);
  --blue: var(--premium-gold);
  --blue-dark: #9c783c;
  --success: #26765d;
  --shadow: var(--premium-shadow);
  background: transparent;
}

.sidebar {
  border-right: 1px solid rgba(176, 138, 69, 0.18);
  background:
    linear-gradient(180deg, var(--premium-navy) 0%, #102947 100%);
  color: #fffdf8;
}

.brand {
  color: #fffdf8;
}

.brand-mark {
  border-color: rgba(176, 138, 69, 0.5);
  background: rgba(255, 253, 248, 0.08);
  color: var(--premium-gold-soft);
  box-shadow: none;
}

.brand span,
.call-card span,
.call-card p {
  color: rgba(255, 253, 248, 0.68);
}

.nav-item {
  color: rgba(255, 253, 248, 0.76);
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255, 253, 248, 0.09);
  color: var(--premium-gold-soft);
}

.call-card {
  border-color: rgba(176, 138, 69, 0.24);
  background: rgba(255, 253, 248, 0.06);
  color: #fffdf8;
}

.main {
  padding: clamp(18px, 3vw, 32px);
}

.topbar {
  margin-bottom: 20px;
}

.section-label {
  color: var(--premium-gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar h1 {
  color: var(--premium-navy);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.08;
}

.primary-button,
.ghost-button,
.small-button,
.icon-button {
  border-radius: 8px;
  font-weight: 750;
}

.primary-button {
  background: var(--premium-navy);
  color: #fffdf8;
}

.primary-button:hover {
  background: #143256;
}

.ghost-button,
.small-button,
.icon-button {
  border-color: rgba(176, 138, 69, 0.22);
  background: var(--premium-paper);
  color: var(--premium-navy);
}

.small-button {
  background: rgba(176, 138, 69, 0.1);
}

.audio-mark {
  background: rgba(176, 138, 69, 0.12);
  color: var(--premium-navy);
}

.lesson-hero {
  border-color: rgba(176, 138, 69, 0.22);
  background:
    linear-gradient(100deg, rgba(11, 31, 58, 0.96) 0%, rgba(11, 31, 58, 0.88) 58%, rgba(11, 31, 58, 0.62) 100%),
    url("assets/D51F3297-C101-4C06-93CD-179A026BB2D6.PNG") right center/cover;
  color: #fffdf8;
  box-shadow: var(--premium-shadow);
}

.lesson-hero h2 {
  color: #fffdf8;
  font-size: clamp(30px, 3.3vw, 46px);
  line-height: 1.12;
}

.lesson-copy p,
.lesson-meter span {
  color: rgba(255, 253, 248, 0.76);
}

.lesson-meta span {
  border-color: rgba(176, 138, 69, 0.34);
  background: rgba(255, 253, 248, 0.1);
  color: var(--premium-gold-soft);
}

.player-panel,
.right-rail > section,
.theory-card,
.recap-card,
.exercise-section,
.prompt-panel,
.rule-card,
.lesson-word-card,
.lesson-phrase-card,
.transform-card,
.portfolio-topic-card,
.portfolio-theory-card {
  border-color: rgba(176, 138, 69, 0.2);
  border-radius: 8px;
  background: var(--premium-paper);
  box-shadow: var(--premium-shadow);
}

.step-tabs,
.player-footer {
  background: rgba(255, 253, 248, 0.88);
}

.step-tab {
  color: var(--premium-muted);
  font-weight: 750;
}

.step-tab.active {
  border-bottom-color: var(--premium-gold);
  background: #fffaf0;
  color: var(--premium-navy);
}

.step-tab.done {
  color: #26765d;
}

.player-content {
  background: var(--premium-paper);
}

.player-content :where(h2, h3) {
  color: var(--premium-navy);
}

.passport-card {
  background:
    linear-gradient(180deg, #fffdf8, #fff8ea);
}

.passport-card .stamp {
  border-color: rgba(176, 138, 69, 0.4);
  color: var(--premium-gold);
}

.xp-card strong,
.rail-title b,
.word-preview b {
  color: var(--premium-navy);
}

@media (max-width: 1120px) {
  .student-hero-visual {
    display: block;
    min-height: 320px;
  }

  .student-hero {
    grid-template-columns: 1fr;
  }

  .student-hero-visual::before {
    background:
      linear-gradient(180deg, rgba(11, 31, 58, 0.08), rgba(11, 31, 58, 0.42));
  }
}

@media (max-width: 820px) {
  .portal-header {
    min-height: 68px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .portal-brand {
    min-width: 0;
    font-size: 16px;
  }

  .portal-brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .portal-header-action,
  .portal-user {
    min-height: 38px;
    padding: 0 12px;
  }

  .student-hero h1,
  .teacher-hero h1,
  .admin-hero h1 {
    font-size: clamp(34px, 10vw, 44px);
    line-height: 1.12;
  }

  .student-hero-visual {
    min-height: 260px;
  }

  .student-hero-visual img {
    object-position: 34% center;
  }

  .student-plan-panel strong {
    font-size: 21px;
  }

  .teacher-hero {
    background:
      linear-gradient(180deg, rgba(11, 31, 58, 0.96), rgba(11, 31, 58, 0.82)),
      url("assets/07165655-E35C-448E-AEDE-370E63F932AE.PNG") center/cover;
  }

  .lesson-hero {
    background:
      linear-gradient(180deg, rgba(11, 31, 58, 0.96), rgba(11, 31, 58, 0.84)),
      url("assets/D51F3297-C101-4C06-93CD-179A026BB2D6.PNG") center/cover;
  }

  .lesson-hero h2 {
    font-size: clamp(28px, 8vw, 34px);
  }

  .topbar-actions,
  .student-next-actions,
  .teacher-hero-actions,
  .teacher-feedback-actions {
    width: 100%;
  }

  .topbar-actions .primary-button,
  .topbar-actions .ghost-button,
  .student-next-actions .portal-button,
  .teacher-hero-actions .portal-button,
  .teacher-feedback-actions .portal-button {
    width: 100%;
  }
}

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

  .portal-header-action,
  .portal-user {
    width: 100%;
    justify-content: center;
  }

  .student-hero-copy,
  .teacher-hero,
  .lesson-hero,
  .player-content,
  .player-footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .student-hero-visual {
    min-height: 220px;
  }

  .lesson-meta {
    gap: 6px;
  }

  .lesson-meta span {
    width: 100%;
  }
}

/* Lesson geometry polish: clear scroll affordance and compact mobile audio. */
.player-panel {
  position: relative;
}

.step-tabs {
  scrollbar-color: rgba(176, 138, 69, 0.48) transparent;
  box-shadow: inset -24px 0 24px -28px rgba(11, 31, 58, 0.9);
}

.step-tab {
  scroll-snap-align: start;
}

.lesson10-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 8px;
  margin-top: 10px;
}

.lesson10-check-grid div {
  min-width: 0;
  border: 1px solid rgba(176, 138, 69, 0.2);
  border-radius: 8px;
  background: #fffdf8;
  padding: 10px 12px;
}

.lesson10-check-grid span {
  display: block;
  margin-bottom: 5px;
  color: var(--premium-muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
}

.lesson10-check-grid strong {
  display: block;
  color: var(--premium-navy);
  font-size: 14px;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .step-tabs {
    scroll-snap-type: x proximity;
    box-shadow: inset -30px 0 24px -26px rgba(11, 31, 58, 0.82);
  }

  .course-audio-dock {
    right: 12px;
    bottom: 14px;
    left: auto;
    width: auto;
  }

  .course-audio-toggle {
    width: 52px;
    min-height: 52px;
    justify-content: center;
    padding: 0;
  }

  .course-audio-toggle span {
    display: none;
  }

  .course-audio-panel {
    width: min(360px, calc(100vw - 24px));
  }
}

/* Portal geometry polish: keep sales, CRM, and role pages optically even. */
.portal-page,
.portal-page main,
.portal-header,
.portal-nav,
.student-main,
.teacher-main,
.manager-main,
.admin-main,
.student-hero,
.teacher-hero,
.admin-hero,
.manager-layout,
.manager-board,
.manager-column,
.manager-card,
.manager-detail,
.admin-layout,
.admin-board,
.admin-detail,
.teacher-workspace,
.teacher-review {
  min-width: 0;
}

.portal-header {
  align-items: center;
  row-gap: 12px;
}

.portal-nav {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.portal-nav a {
  flex: 0 0 auto;
  white-space: nowrap;
}

.landing-control .landing-metrics {
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
}

.landing-control .landing-metrics div {
  min-width: 0;
  overflow: visible;
}

.landing-control .landing-metrics span {
  max-width: none;
}

.manager-board {
  grid-template-columns: repeat(5, minmax(200px, 1fr));
  scroll-padding-inline: 8px;
}

.manager-column,
.manager-column-list,
.manager-card {
  min-width: 0;
}

.manager-card {
  align-content: start;
  line-height: 1.35;
}

.manager-card :where(strong, span, em, i, small),
.admin-lead-row :where(strong, span, b, small),
.teacher-student-card :where(strong, span, small, i, em) {
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.manager-card i {
  width: fit-content;
  max-width: 100%;
  white-space: normal;
}

.admin-materials a strong,
.student-tools a strong,
.teacher-student-card strong,
.manager-card strong {
  line-height: 1.22;
}

@media (max-width: 1180px) {
  .manager-layout,
  .admin-layout,
  .teacher-workspace {
    grid-template-columns: 1fr;
  }

  .admin-sidebar,
  .admin-detail,
  .teacher-insights {
    position: static;
  }
}

@media (max-width: 820px) {
  .manager-top {
    display: grid;
  }

  .manager-top-tools,
  .manager-top-actions {
    justify-items: stretch;
    justify-content: stretch;
    width: 100%;
  }

  .manager-top-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .manager-sync-status {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 820px) {
  .portal-nav {
    grid-column: 1 / -1;
    order: 3;
    display: flex;
    gap: 8px;
    padding-bottom: 2px;
  }

  .portal-nav a {
    min-height: 36px;
    border: 1px solid rgba(176, 138, 69, 0.2);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.7);
    padding: 0 12px;
  }

  .portal-nav a.active {
    background: rgba(176, 138, 69, 0.12);
  }

  .manager-board {
    grid-template-columns: repeat(5, minmax(238px, 76vw));
  }

  .manager-detail-actions,
  .crm-step-actions,
  .admin-hero-actions,
  .admin-access-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .manager-detail-actions .portal-button,
  .crm-step-actions .portal-button,
  .admin-hero-actions .portal-button,
  .admin-access-actions .portal-button {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .portal-nav {
    justify-content: flex-start;
  }

  .student-main,
  .teacher-main,
  .manager-main,
  .admin-main,
  .auth-main {
    padding-right: 14px;
    padding-left: 14px;
  }

  .manager-board {
    margin-right: -14px;
    margin-left: -14px;
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media (max-width: 820px) {
  .manager-board {
    display: grid;
    grid-template-columns: repeat(5, minmax(238px, 76vw)) !important;
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
  }

  .manager-layout,
  .manager-main {
    max-width: 100%;
    overflow-x: clip;
  }

  .formula-list li {
    overflow-wrap: anywhere !important;
  }
}

.lesson-summary-body,
.lesson-summary-section,
.formula-list,
.formula-list li {
  min-width: 0;
  max-width: 100%;
}

.formula-list,
.formula-list li {
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

.lesson-summary-body,
.lesson-summary-section,
.formula-list,
.formula-list li {
  overflow-x: clip;
}

/* Student dashboard logic pass */
.student-plan-panel p {
  margin: -2px 0 0;
  color: var(--premium-muted);
  font-size: 15px;
  line-height: 1.45;
}

.student-ring {
  background:
    radial-gradient(circle at center, var(--premium-paper) 58%, transparent 59%),
    conic-gradient(var(--premium-gold) 0 var(--student-progress-deg, 14deg), #ebe4d7 var(--student-progress-deg, 14deg) 360deg);
}

.student-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 18px;
  margin-top: 18px;
}

.student-route-card,
.student-teacher-card,
.student-homework-panel {
  min-width: 0;
  border: 1px solid rgba(176, 138, 69, 0.2);
  border-radius: 8px;
  background: var(--premium-paper);
  box-shadow: var(--premium-shadow);
}

.student-route-card,
.student-teacher-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: clamp(22px, 3vw, 30px);
}

.student-route-card > span,
.student-teacher-card > span,
.student-panel-head span {
  color: var(--premium-muted);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.student-route-card h2,
.student-teacher-card h2,
.student-panel-head h2 {
  margin: 0;
  color: var(--premium-navy);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(27px, 2.8vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.student-route-list {
  display: grid;
  gap: 12px;
}

.student-route-item {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 6px 14px;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(176, 138, 69, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  padding: 16px;
  color: var(--premium-text);
  text-decoration: none;
}

.student-route-item span {
  grid-row: 1 / span 2;
  width: fit-content;
  border-radius: 999px;
  background: rgba(176, 138, 69, 0.14);
  color: var(--premium-gold);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 850;
}

.student-route-item strong {
  min-width: 0;
  color: var(--premium-navy);
  font-size: 18px;
  line-height: 1.2;
}

.student-route-item p {
  min-width: 0;
  margin: 0;
  color: var(--premium-muted);
  font-size: 15px;
  line-height: 1.45;
}

.student-route-item em {
  grid-row: 1 / span 2;
  color: var(--premium-gold);
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.student-route-item.done span {
  background: rgba(38, 118, 93, 0.12);
  color: #26765d;
}

.student-route-item.locked {
  background: rgba(155, 47, 54, 0.05);
}

.student-route-item.locked span {
  background: rgba(155, 47, 54, 0.1);
  color: #9b2f36;
}

.student-teacher-card p {
  margin: 0;
  color: var(--premium-muted);
  line-height: 1.58;
}

.student-mini-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.student-mini-stats div {
  border: 1px solid rgba(176, 138, 69, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  padding: 16px;
}

.student-mini-stats strong {
  display: block;
  color: var(--premium-navy);
  font-size: 26px;
  line-height: 1;
}

.student-mini-stats span {
  display: block;
  margin-top: 8px;
  color: var(--premium-muted);
  font-size: 13px;
  font-weight: 800;
}

.student-homework-panel {
  margin-top: 18px;
  padding: clamp(22px, 3vw, 30px);
}

.student-panel-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.student-homework-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.student-homework-item {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(176, 138, 69, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  padding: 18px;
}

.student-homework-item span {
  width: fit-content;
  border-radius: 999px;
  background: rgba(176, 138, 69, 0.14);
  color: var(--premium-gold);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 850;
}

.student-homework-item strong {
  color: var(--premium-navy);
  font-size: 18px;
  line-height: 1.22;
}

.student-homework-item p {
  margin: 0;
  color: var(--premium-muted);
  font-size: 15px;
  line-height: 1.48;
}

.student-homework-item.done span {
  background: rgba(38, 118, 93, 0.12);
  color: #26765d;
}

.student-homework-item.locked span {
  background: rgba(155, 47, 54, 0.1);
  color: #9b2f36;
}

@media (max-width: 1120px) {
  .student-workbench,
  .student-homework-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .student-route-item {
    grid-template-columns: 1fr;
  }

  .student-route-item span,
  .student-route-item em {
    grid-row: auto;
  }

  .student-route-item em {
    white-space: normal;
  }

  .student-mini-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .portal-page .portal-nav {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 8px;
    overflow: visible;
  }

  .portal-page .portal-nav a {
    min-width: 0;
    justify-content: center;
    text-align: center;
    line-height: 1.15;
  }
}

@media (max-width: 460px) {
  .portal-page .portal-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Student dashboard geometry pass: keep inner cards calm, aligned, and readable. */
.student-route-card,
.student-teacher-card,
.student-homework-panel,
.student-support {
  overflow: hidden;
}

.student-route-card h2,
.student-teacher-card h2,
.student-panel-head h2 {
  font-size: clamp(28px, 2.35vw, 36px);
  line-height: 1.16;
}

.student-route-item {
  grid-template-columns: minmax(92px, max-content) minmax(0, 1fr) max-content;
  gap: 12px 20px;
  align-items: center;
  min-height: 112px;
  padding: 18px 20px;
}

.student-route-item > span {
  grid-row: auto;
  justify-self: start;
  white-space: nowrap;
}

.student-route-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.student-route-item strong {
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.18;
}

.student-route-item p {
  max-width: 76ch;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.42;
}

.student-route-item em {
  grid-row: auto;
  justify-self: end;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(176, 138, 69, 0.28);
  border-radius: 999px;
  background: rgba(176, 138, 69, 0.08);
  padding: 0 16px;
  color: var(--premium-gold);
  font-size: 14px;
  line-height: 1.1;
  text-align: center;
}

.student-route-item.locked em {
  border-color: rgba(155, 47, 54, 0.18);
  background: rgba(155, 47, 54, 0.06);
  color: #9b2f36;
}

.student-support {
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 460px);
  align-items: start;
  gap: clamp(20px, 3vw, 32px);
  padding: clamp(24px, 3vw, 36px);
}

.student-support > div:first-child {
  display: grid;
  align-content: start;
  gap: 10px;
}

.student-support h2 {
  margin: 0;
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1.12;
}

.student-support p {
  max-width: 760px;
  margin: 0;
  font-size: clamp(16px, 1.28vw, 19px);
  line-height: 1.48;
}

.student-message {
  align-content: start;
  border: 1px solid rgba(176, 138, 69, 0.2);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
  padding: clamp(18px, 2.4vw, 24px);
}

.student-message span {
  color: var(--premium-muted);
}

.student-message .portal-button {
  width: auto;
  min-width: 210px;
  justify-self: start;
  margin-top: 4px;
}

@media (max-width: 980px) {
  .student-route-item {
    grid-template-columns: minmax(88px, max-content) minmax(0, 1fr);
  }

  .student-route-item em {
    grid-column: 2;
    justify-self: start;
  }

  .student-support {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .student-route-card,
  .student-teacher-card,
  .student-homework-panel,
  .student-support {
    padding: 18px;
  }

  .student-route-item {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 16px;
  }

  .student-route-item em {
    grid-column: auto;
    width: 100%;
  }

  .student-message .portal-button {
    width: 100%;
    min-width: 0;
  }
}

/* Manager access flow */
.manager-access-panel {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(176, 138, 69, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(176, 138, 69, 0.12), rgba(255, 253, 248, 0.94)),
    var(--premium-paper);
  padding: 16px;
}

.manager-access-panel.is-paid {
  border-color: rgba(38, 118, 93, 0.24);
  background:
    linear-gradient(135deg, rgba(38, 118, 93, 0.13), rgba(255, 253, 248, 0.94)),
    var(--premium-paper);
}

/* Landing responsive geometry pass: keep the premium page calm on phones. */
.landing-page main > section {
  scroll-margin-top: 112px;
}

.landing-page :where(h1, h2, h3, p, li, a, span, strong, small, button) {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.landing-page :where(h1, h2, h3) {
  text-wrap: balance;
}

.landing-page :where(p, li) {
  text-wrap: pretty;
}

@media (max-width: 820px) {
  .landing-header {
    padding: 12px 16px;
    row-gap: 12px;
  }

  .landing-nav-cta {
    min-height: 42px;
  }

  .landing-hero-inner {
    padding: 58px 20px 72px;
  }

  .landing-hero h1 {
    max-width: 11.6ch;
    font-size: clamp(38px, 11.4vw, 48px);
    line-height: 1.08;
  }

  .landing-hero-copy p {
    max-width: 32ch;
    font-size: 16.5px;
    line-height: 1.56;
  }

  .landing-hero-actions {
    gap: 10px;
    max-width: 100%;
  }

  .landing-hero-actions .landing-button {
    min-height: 48px;
  }

  .landing-proof strong {
    font-size: 34px;
  }

  .landing-control {
    gap: 22px;
  }

  .landing-control-title {
    display: grid;
    justify-items: center;
    text-align: center;
  }

  .landing-control-title h2 {
    max-width: 12ch;
    margin: 0 auto;
    font-size: clamp(36px, 10vw, 42px);
    line-height: 1.12;
  }

  .landing-control-title span {
    width: 76px;
    height: 4px;
    margin-top: 14px;
    border-radius: 999px;
    background: var(--landing-gold);
  }

  .landing-dashboard {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    overflow: hidden;
  }

  .landing-dashboard aside,
  .landing-control .landing-dashboard aside {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 20px 16px 22px;
  }

  .landing-dashboard aside span,
  .landing-control .landing-dashboard aside span {
    grid-column: 1 / -1;
    justify-self: center;
    margin: 0 0 4px;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 20px;
    line-height: 1.15;
    text-align: center;
  }

  .landing-dashboard aside a,
  .landing-control .landing-dashboard aside a {
    min-height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0 8px;
    text-align: center;
    font-size: 13px;
    line-height: 1.2;
  }

  .landing-dashboard-main {
    gap: 18px;
    padding: 24px 18px 22px;
  }

  .landing-dashboard-head {
    display: grid;
    gap: 12px;
    align-items: start;
  }

  .landing-dashboard-head h2 {
    margin: 4px 0 0;
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
    font-size: 30px;
    line-height: 1.12;
    letter-spacing: 0;
  }

  .landing-dashboard-head a {
    justify-self: start;
    min-height: 42px;
    padding: 0 18px;
  }

  .landing-control .landing-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px;
  }

  .landing-control .landing-metrics div {
    min-height: 104px;
    padding: 16px 10px;
    text-align: center;
  }

  .landing-control .landing-metrics span {
    font-size: 12px;
    line-height: 1.25;
  }

  .landing-control .landing-metrics strong {
    font-size: 30px;
    line-height: 1.05;
  }

  .landing-next-lesson {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
  }

  .landing-next-lesson a {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }

  .landing-control .landing-inside-showcase {
    padding: 16px;
  }

  .landing-dashboard-photo img {
    min-height: 260px;
    max-height: 340px;
    object-position: center;
  }

  .landing-control .landing-inside-copy h2 {
    max-width: 100%;
    font-size: clamp(30px, 8.5vw, 36px);
    line-height: 1.14;
  }

  .landing-visa-visual img {
    height: 300px;
    min-height: 300px;
    object-position: 48% center;
  }

  .landing-visa-copy {
    justify-items: center;
    padding: 54px 18px 56px;
    text-align: center;
  }

  .landing-visa-band h2 {
    max-width: 12ch;
    margin: 0 auto;
    font-size: clamp(34px, 9.4vw, 42px);
    line-height: 1.14;
  }

  .landing-visa-band p {
    max-width: 32ch;
    margin: 0 auto;
  }

  .landing-visa-icons {
    width: 100%;
    max-width: 440px;
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .landing-visa-icons span,
  .landing-visa-icons span:last-child {
    grid-column: auto;
    justify-self: stretch;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) !important;
    min-height: 64px;
    align-items: center;
    justify-items: start;
    gap: 12px;
    max-width: none;
    padding: 14px 16px;
    text-align: left;
    font-size: 16px;
    line-height: 1.25;
  }

  .landing-visa-icons svg {
    justify-self: center;
  }

  .landing-visa-band small {
    max-width: 38ch;
    margin: 2px auto 0;
    text-align: center;
    font-size: 15px;
    line-height: 1.55;
  }
}

@media (max-width: 460px) {
  .landing-page main > section {
    scroll-margin-top: 126px;
  }

  .landing-dashboard {
    margin-right: 0;
    margin-left: 0;
  }

  .landing-dashboard aside,
  .landing-control .landing-dashboard aside {
    gap: 9px 12px;
    padding: 20px 16px 22px;
  }

  .landing-dashboard aside a,
  .landing-control .landing-dashboard aside a {
    padding: 0 11px;
    font-size: 14px;
  }

  .landing-control .landing-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .landing-control .landing-metrics div {
    min-height: 98px;
  }

  .landing-visa-icons span,
  .landing-visa-icons span:last-child {
    grid-template-columns: 34px minmax(0, 1fr) !important;
    padding: 13px 14px;
  }
}

@media (max-width: 360px) {
  .landing-dashboard aside,
  .landing-control .landing-dashboard aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.manager-access-panel > span {
  color: var(--premium-muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.02em;
}

.manager-access-panel h3 {
  margin: 0;
  color: var(--premium-navy);
  font-size: 19px;
  line-height: 1.18;
}

.manager-access-panel p {
  margin: 0;
  color: var(--premium-muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.manager-access-metrics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.manager-access-metrics div {
  min-width: 0;
  border: 1px solid rgba(176, 138, 69, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
}

.manager-access-metrics strong {
  display: block;
  color: var(--premium-navy);
  font-size: 22px;
  line-height: 1;
}

.manager-access-metrics span {
  display: block;
  margin-top: 7px;
  color: var(--premium-muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

.manager-notice {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 80;
  width: min(380px, calc(100vw - 32px));
  display: grid;
  gap: 6px;
  border: 1px solid rgba(38, 118, 93, 0.24);
  border-radius: 8px;
  background: #f7fffb;
  box-shadow: 0 22px 58px rgba(11, 31, 58, 0.18);
  padding: 16px 18px;
  color: var(--premium-navy);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.manager-notice.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.manager-notice strong {
  font-size: 17px;
  line-height: 1.2;
}

.manager-notice span {
  color: var(--premium-muted);
  font-size: 14px;
  line-height: 1.4;
}

@media (max-width: 520px) {
  .manager-access-metrics {
    grid-template-columns: 1fr;
  }
}

/* Manager board fit pass */
@media (min-width: 1181px) {
  .manager-board {
    grid-template-columns: repeat(5, minmax(132px, 1fr));
    overflow-x: visible;
  }
}

@media (min-width: 821px) and (max-width: 1180px) {
  .manager-board {
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    overflow-x: visible;
  }
}

/* Lesson responsive audit pass */
@media (max-width: 760px) {
  .mini-table[data-cols="4"]:has(.mini-table-row > span[data-label]) {
    overflow: hidden;
  }

  .mini-table[data-cols="4"]:has(.mini-table-row > span[data-label]) .mini-table-row {
    grid-template-columns: minmax(0, 1fr) !important;
    border-top: 1px solid var(--line);
  }

  .mini-table[data-cols="4"]:has(.mini-table-row > span[data-label]) .mini-table-row.head {
    display: none;
  }

  .mini-table[data-cols="4"]:has(.mini-table-row > span[data-label]) .mini-table-row:first-child + .mini-table-row {
    border-top: 0;
  }

  .mini-table[data-cols="4"]:has(.mini-table-row > span[data-label]) .mini-table-row > span {
    display: grid;
    grid-template-columns: minmax(96px, 0.38fr) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 10px 12px;
    line-height: 1.38;
  }

  .mini-table[data-cols="4"]:has(.mini-table-row > span[data-label]) .mini-table-row > span:first-child {
    border-top: 0;
  }

  .mini-table[data-cols="4"]:has(.mini-table-row > span[data-label]) .mini-table-row > span::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    line-height: 16px;
    text-transform: uppercase;
  }

  .course-gate-overlay {
    padding: 16px;
  }

  .course-gate-card {
    width: min(100%, 520px);
    max-width: calc(100vw - 32px);
    padding: clamp(22px, 7vw, 34px);
  }

  .course-gate-card h1 {
    font-size: clamp(32px, 8.8vw, 42px);
    line-height: 1.08;
  }
}

/* Launch funnel thank-you page */
.thanks-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin: 26px 0 0;
}

.thanks-summary div {
  min-width: 0;
  border: 1px solid rgba(255, 253, 248, 0.24);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.1);
  backdrop-filter: blur(14px);
  padding: 16px;
}

.thanks-summary dt {
  margin: 0 0 6px;
  color: rgba(255, 253, 248, 0.66);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.thanks-summary dd {
  margin: 0;
  color: #fffdf8;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.thanks-next {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: -74px auto 0;
  position: relative;
  z-index: 3;
  padding: 0 clamp(18px, 5vw, 42px) 82px;
}

.thanks-next article {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  border: 1px solid rgba(176, 138, 69, 0.24);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 24px 58px rgba(11, 31, 58, 0.14);
  padding: clamp(22px, 3vw, 30px);
}

.thanks-next span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(176, 138, 69, 0.14);
  color: var(--landing-gold);
  font-weight: 900;
}

.thanks-next h2 {
  margin: 0;
  color: var(--landing-navy);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(24px, 2.4vw, 31px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.thanks-next p {
  margin: 0;
  color: var(--landing-steel);
  font-size: 16px;
  line-height: 1.52;
}

.thanks-next a {
  min-height: 42px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(176, 138, 69, 0.28);
  border-radius: 8px;
  background: rgba(176, 138, 69, 0.08);
  color: var(--landing-navy);
  padding: 0 16px;
  font-weight: 850;
  text-decoration: none;
}

@media (max-width: 880px) {
  .thanks-next {
    grid-template-columns: 1fr;
    margin-top: 0;
    padding-top: 22px;
  }

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

@media (max-width: 520px) {
  .thanks-hero-copy p strong {
    display: inline;
    color: #fffdf8;
  }

  .thanks-summary dd {
    font-size: 15px;
  }

  .thanks-next {
    padding-right: 16px;
    padding-left: 16px;
    padding-bottom: 54px;
  }

  .thanks-next article {
    padding: 20px;
  }

  .thanks-next a {
    width: 100%;
  }
}
