/* Platform modules — new sections live here, not in index.html */

#platform-screens-root {
  display: contents;
}

.platform-screen {
  min-height: 0;
}

.platform-screen-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
}

.platform-sat-flashcards-host {
  padding: 0;
  max-width: none;
}

.platform-sat-flashcards-host #screen-flashcards {
  display: block;
}

.fc-page--sat .fc-deck-tabs,
.fc-page--sat #fcStudioPromo {
  display: none !important;
}

.fc-body-aside--sat .fc-deck-promo--studio {
  display: none !important;
}

.platform-ge-flashcards-host {
  padding: 0;
  max-width: none;
}

.platform-ge-flashcards-host #screen-flashcards {
  display: block;
}

.ge-fc-course-panel {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1rem 0.5rem;
}

.ge-fc-course-title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.ge-fc-course-intro {
  margin: 0 0 0.85rem;
  color: #475569;
  font-size: 0.95rem;
}

.ge-fc-course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.ge-fc-course-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  background: #fff;
}

.ge-fc-course-card-title {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.ge-fc-course-card-meta {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  color: #64748b;
}

.ge-fc-course-foot {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: #0f766e;
}

.ge-hw-add-flash {
  margin-top: 0.65rem;
}

.fc-page--ge .fc-deck-tabs,
.fc-page--ge #fcStudioPromo {
  display: none !important;
}

.fc-body-aside--ge .fc-deck-promo--studio {
  display: none !important;
}

.ge-fc-course-foot--ok {
  color: #0f766e;
  font-weight: 600;
}

.ge-fc-course-foot--err {
  color: #b91c1c;
  font-weight: 600;
}

.ge-fc-course-card--locked {
  opacity: 0.92;
  background: #f8fafc;
}

.ge-fc-course-lock-hint {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  color: #b45309;
  line-height: 1.35;
}

.ge-fc-vocab-link {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}

.ge-fc-import-btn--done {
  opacity: 0.85;
  pointer-events: none;
}

.platform-premium-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 18rem;
}

.platform-premium-gate-inner {
  max-width: 34rem;
  width: 100%;
  padding: 1.75rem 1.5rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  text-align: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.platform-premium-gate-badge {
  display: inline-block;
  margin: 0 0 0.65rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #7c2d12;
  background: #ffedd5;
  border: 1px solid #fdba74;
}

.platform-premium-gate-title {
  margin: 0 0 0.55rem;
  font-size: 1.25rem;
  color: #0f172a;
}

.platform-premium-gate-body {
  margin: 0 0 1.1rem;
  color: #64748b;
  line-height: 1.55;
}

.platform-premium-gate-btn {
  appearance: none;
  border: none;
  border-radius: 10px;
  padding: 0.7rem 1.15rem;
  background: #1d4ed8;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.platform-material-intro--premium {
  margin-top: -0.35rem;
  margin-bottom: 0.85rem;
  color: #64748b;
  font-size: 0.88rem;
}

/* Dashboard diagnostics: same full width as IELTS #screen-dashboard (uses .main padding only) */
#screen-general-english > .platform-screen-inner,
#screen-sat > .platform-screen-inner {
  max-width: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.ge-dash,
.sat-dash {
  width: 100%;
}

.sat-teacher-student-bar {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid #bfdbfe;
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
}

.platform-screen > .sat-teacher-student-bar {
  max-width: 1120px;
  margin: 1rem auto 0;
  width: calc(100% - 2rem);
}

[data-sat-teacher-bar-host] {
  display: block;
  margin: 0 0 1rem;
}

[data-sat-teacher-bar-host] .sat-teacher-student-bar {
  margin: 0;
}

.sat-teacher-student-bar.hidden {
  display: none;
}

.sat-teacher-student-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
}

.sat-teacher-student-bar__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  flex: 1 1 320px;
  justify-content: flex-end;
}

.sat-teacher-student-bar__search {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.95rem;
  background: #fff;
  color: #0f172a;
  box-sizing: border-box;
}

.sat-teacher-student-bar__select,
#teacherStudentSelect {
  min-height: 11rem;
  font-size: 0.88rem;
}

.teacher-student-list {
  min-height: 11rem;
  max-height: 11rem;
  overflow-y: auto;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  padding: 0.35rem;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

.teacher-student-list-empty {
  padding: 0.75rem;
  color: #64748b;
  font-size: 0.88rem;
}

.teacher-student-list-item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  font: inherit;
  font-size: 0.88rem;
  color: #0f172a;
  cursor: pointer;
  line-height: 1.35;
}

.teacher-student-list-item:hover {
  background: #f1f5f9;
}

.teacher-student-list-item.is-selected {
  background: #ccfbf1;
  color: #0f766e;
  font-weight: 700;
}

.sat-teacher-student-bar__control--list {
  min-width: min(100%, 320px);
}

[data-sat-student-count],
.teacher-student-select-count {
  font-weight: 700;
  color: #64748b;
}

.sat-teacher-student-bar__title {
  display: block;
  font-size: 0.95rem;
  color: #0f172a;
}

.sat-teacher-student-bar__hint {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: #475569;
  max-width: 42rem;
}

.sat-teacher-student-bar__viewing {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f766e;
}

.sat-teacher-student-bar__viewing.hidden {
  display: none;
}

.sat-teacher-student-bar__control {
  min-width: min(100%, 320px);
  flex: 1 1 240px;
}

.sat-teacher-student-bar__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
}

.sat-teacher-student-bar__select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.95rem;
  background: #fff;
  color: #0f172a;
}

.ge-dash .ge-diag-banner,
.sat-dash .sat-diag-banner {
  margin-bottom: 20px;
}

.sat-syllabus {
  margin-top: 0;
}

.platform-hero {
  margin-bottom: 1.75rem;
}

.platform-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent, #2563eb);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.65rem;
}

.platform-hero-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text, #0f172a);
}

.platform-hero-sub {
  margin: 0;
  max-width: 52ch;
  color: var(--muted, #64748b);
  line-height: 1.55;
  font-size: 0.98rem;
}

.platform-section {
  margin-top: 1.5rem;
}

.platform-section-title {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text, #0f172a);
}

.platform-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.85rem;
}

.platform-card {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  padding: 1rem 1.05rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 120px;
}

.platform-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.platform-card-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text, #0f172a);
}

.platform-card-tag {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
}

.platform-card-body {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted, #64748b);
  flex: 1;
}

.platform-card-status {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent, #2563eb);
}

.platform-note {
  margin: 1.25rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ── Top horizontal nav (General English, SAT, Study Abroad) ── */
.platform-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0 22px;
  position: sticky;
  top: 0;
  z-index: 41;
}

.platform-top-nav-inner {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  min-height: 50px;
}

.platform-top-nav-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0.35rem 0;
}

.platform-top-nav-actions .top-bar-auth-btn {
  min-height: 38px;
  padding: 8px 18px;
  font-size: 0.9rem;
}

@media (max-width: 520px) {
  .platform-top-nav {
    padding: 0 12px;
    gap: 0.5rem;
  }

  .platform-top-nav-actions .top-bar-auth-btn {
    min-height: 36px;
    padding: 7px 12px;
    font-size: 0.82rem;
  }
}

.platform-top-nav-inner::-webkit-scrollbar {
  display: none;
}

.platform-top-nav-link {
  flex-shrink: 0;
  appearance: none;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  opacity: 1;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.platform-top-nav-link:not(.active) {
  color: #1e293b;
}

.platform-top-nav-link:hover {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.1);
}

.platform-top-nav-link.active {
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.platform-top-nav-link.active:hover {
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.platform-nav-soon {
  font-weight: 600;
  font-size: 0.88em;
  color: #64748b;
  letter-spacing: 0.02em;
  margin-left: 0.12em;
}

.platform-top-nav-link:hover .platform-nav-soon {
  color: #3b82f6;
}

.platform-top-nav-link.active .platform-nav-soon {
  color: rgba(255, 255, 255, 0.88);
}

/* ── Site footer (About · Privacy · Contact) ── */
.site-footer {
  flex-shrink: 0;
  padding: 1rem 22px 1.35rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: var(--dash-bg, #fff);
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.site-footer-sep {
  opacity: 0.35;
  user-select: none;
  font-weight: 700;
  color: var(--dash-muted, #64748b);
  padding: 0 1px;
}

.site-footer-link {
  border: none;
  background: none;
  padding: 6px 4px;
  margin: 0;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dash-blue, #2563eb);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.site-footer-link:hover {
  opacity: 0.88;
}

.site-footer-link:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
  border-radius: 4px;
}

.site-footer-link.active {
  color: #0f172a;
  text-decoration: none;
  font-weight: 800;
}

/* ── Contextual sidebar: show only the active program's links ── */
.sidebar-nav [data-nav-program],
.sidebar-band-widget[data-nav-program] {
  display: none !important;
}

body:not([data-nav-program]) .sidebar-nav [data-nav-program="ielts"],
body[data-nav-program="ielts"] .sidebar-nav [data-nav-program="ielts"],
body[data-nav-program="general-english"] .sidebar-nav [data-nav-program="general-english"],
body[data-nav-program="sat"] .sidebar-nav [data-nav-program="sat"],
body[data-nav-program="study-abroad"] .sidebar-nav [data-nav-program="study-abroad"] {
  display: flex !important;
}

body:not([data-nav-program]) .sidebar-nav p.sidebar-section-label[data-nav-program="ielts"],
body[data-nav-program="ielts"] .sidebar-nav p.sidebar-section-label[data-nav-program="ielts"],
body[data-nav-program="general-english"] .sidebar-nav p.sidebar-section-label[data-nav-program="general-english"],
body[data-nav-program="sat"] .sidebar-nav p.sidebar-section-label[data-nav-program="sat"],
body[data-nav-program="study-abroad"] .sidebar-nav p.sidebar-section-label[data-nav-program="study-abroad"] {
  display: block !important;
}

html[data-nav-program="ielts"] .sidebar-band-widget[data-nav-program="ielts"],
body[data-nav-program="ielts"] .sidebar-band-widget[data-nav-program="ielts"] {
  display: flex !important;
}

.sidebar-nav button.platform-sidebar-soon {
  opacity: 0.55;
  cursor: default;
}

/* ── General English level bar (A0–B2) ── */
.ge-level-bar-wrap {
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0 1rem;
}

.ge-level-bar-wrap.hidden {
  display: none !important;
}

.ge-level-bar {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  min-height: 42px;
}

.ge-level-bar::-webkit-scrollbar {
  display: none;
}

.ge-level-tab {
  flex: 0 0 auto;
  appearance: none;
  border: none;
  background: transparent;
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  color: #64748b;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.ge-level-tab-code {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.ge-level-tab-name {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0.9;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
}

.ge-level-tab:hover {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.06);
}

.ge-level-tab.active {
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-bottom-color: transparent;
  border-radius: 8px 8px 0 0;
  margin-bottom: -1px;
  padding-bottom: calc(0.5rem + 1px);
}

.ge-level-tab.active .ge-level-tab-code,
.ge-level-tab.active .ge-level-tab-name {
  color: #fff;
}

.ge-dash .ge-diag-banner {
  margin-bottom: 1.25rem;
}

.ge-diag-note {
  margin: -8px 0 14px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.ge-diag-banner .diag-start-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ge-diag-teacher-preview-banner {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
  font-size: 0.86rem;
  line-height: 1.45;
}

.ge-diag-runner {
  margin-top: 1rem;
  padding: 1rem 1.1rem 1.25rem;
  background: #fff;
  border-radius: 14px;
  color: #0f172a;
  max-height: min(78vh, 720px);
  overflow: auto;
}

.ge-diag-runner-head {
  margin-bottom: 0.75rem;
}

.ge-diag-progress {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: #64748b;
}

.ge-diag-listening-player {
  margin-bottom: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.ge-diag-listening-part {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #475569;
}

.ge-diag-part-intro {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.45;
}

.ge-diag-listening-hint {
  margin: 0.65rem 0 0;
  font-size: 0.84rem;
  color: #64748b;
}

.ge-diag-play-btn {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.ge-diag-transcript--teacher {
  margin-top: 0.85rem;
  padding: 0.65rem 0.75rem;
  background: #fffbeb;
  border: 1px dashed #f59e0b;
  border-radius: 8px;
}

.ge-diag-transcript--teacher summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  color: #b45309;
}

.ge-diag-transcript-text {
  margin: 0.5rem 0 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #334155;
}

.ge-diag-answer-key--teacher {
  margin-top: 0.85rem;
  padding: 0.65rem 0.85rem;
  background: #ecfdf5;
  border: 1px dashed #10b981;
  border-radius: 8px;
}

.ge-diag-answer-key-title {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #047857;
}

.ge-diag-answer-key-meta {
  margin: 0 0 0.3rem;
  font-size: 0.8rem;
  color: #065f46;
}

.ge-diag-answer-key-answer {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #064e3b;
}

.ge-diag-quiz-choice--correct {
  border-color: #10b981 !important;
  background: #ecfdf5;
}

.ge-diag-correct-tag {
  margin-left: 0.4rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #047857;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ge-diag-reading-passage {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.ge-diag-reading-block {
  margin-bottom: 1rem;
}

.ge-diag-reading-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.ge-diag-reading-band {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
}

.ge-diag-reading-part-label {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
}

.ge-diag-reading-part-label--compact {
  margin-top: -0.15rem;
}

.ge-diag-reading-passage--1 {
  max-height: none;
}

.ge-diag-reading-passage--2 {
  max-height: 14rem;
  overflow-y: auto;
}

.ge-diag-reading-passage--3 {
  max-height: 18rem;
  overflow-y: auto;
  padding-right: 0.35rem;
}

.ge-diag-grading-progress {
  margin: 1rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #475569;
}

.ge-diag-speaking-results {
  margin: 1.25rem 0 0;
  text-align: left;
}

.ge-diag-speaking-results-title {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.ge-diag-speaking-results-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ge-diag-speaking-result-item {
  padding: 0.85rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.ge-diag-speaking-result-prompt {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.ge-diag-speaking-result-score {
  margin: 0 0 0.25rem;
  font-size: 0.88rem;
}

.ge-diag-speaking-result-feedback {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #334155;
}

.ge-diag-grammar-sentence {
  margin-bottom: 0.85rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
}

.ge-diag-listening-recording-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.ge-diag-quiz {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.ge-diag-quiz-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #0f172a;
}

.ge-diag-quiz-choice:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.ge-diag-quiz-choice input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.ge-diag-quiz-choice span {
  flex: 1;
}

.ge-diag-sentence-wrap {
  margin-top: 0.35rem;
}

.ge-diag-sentence-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ge-diag-sentence-input {
  width: 100%;
  max-width: 420px;
  padding: 0.7rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 1rem;
  line-height: 1.4;
}

.ge-diag-sentence-input:focus {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
  border-color: #2563eb;
}

.ge-diag-cefr-tag {
  display: none;
}

.ge-diag-directions {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.45;
}

.ge-diag-audio-wrap {
  margin-bottom: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.ge-diag-audio {
  width: 100%;
  max-width: 420px;
}

.ge-diag-transcript {
  margin-bottom: 0.75rem;
  font-size: 0.86rem;
  color: #64748b;
}

.ge-diag-passage {
  margin-bottom: 0.85rem;
  padding: 0.75rem 0.9rem;
  background: #f8fafc;
  border-radius: 10px;
  line-height: 1.55;
  font-size: 0.95rem;
}

.ge-diag-q-text {
  margin: 0 0 0.65rem;
  font-weight: 700;
  line-height: 1.45;
}

.ge-diag-nav {
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.ge-diag-speaking-card {
  margin-top: 0.5rem;
}

.ge-diag-speaking-feedback {
  margin: 0.75rem 0;
  padding: 0.75rem;
  background: #f0fdf4;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.45;
}

body.ge-diag-active .sidebar,
body.ge-diag-active #platformTopNav,
body.ge-diag-active .site-footer,
body.ge-diag-active #mainHeader,
body.ge-diag-active #geLevelBar {
  display: none !important;
}

body.ge-diag-active .layout-main {
  padding-top: 0.5rem;
}

.ge-diag-fullscreen-portal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: #fff;
  overflow: auto;
}

.ge-diag-fullscreen-portal .ge-diag-runner {
  max-height: none;
  min-height: 100vh;
  border-radius: 0;
}

.ge-sub-screen-title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
}

.ge-sub-screen-sub {
  margin: 0 0 1rem;
  color: #64748b;
  line-height: 1.55;
  max-width: 56ch;
}

/* ── SAT sub-navigation & dashboard ── */
.sat-subnav-wrap {
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 0 1rem;
}

.sat-subnav-wrap.hidden {
  display: none !important;
}

.sat-subnav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  overflow-x: auto;
  scrollbar-width: none;
  min-height: 42px;
}

.sat-subnav::-webkit-scrollbar {
  display: none;
}

.sat-subnav-tab {
  flex-shrink: 0;
  appearance: none;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: #64748b;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.sat-subnav-tab:hover {
  color: #334155;
}

.sat-subnav-tab.active {
  color: #dc2626;
  border-bottom-color: #dc2626;
}

.sat-diag-note {
  margin: -8px 0 14px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.sat-diag-runner-mount {
  margin-top: 1rem;
}

.sat-diag-runner-mount.hidden {
  display: none;
}

.sat-diag-previous {
  margin: 0.85rem 0 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.14);
  color: #0f172a;
}

.sat-diag-previous-label {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #1d4ed8;
}

.sat-diag-previous-score {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.sat-diag-previous-list {
  margin: 0;
  padding-left: 1.1rem;
  color: #334155;
  font-size: 0.88rem;
  line-height: 1.5;
}

.sat-diag-previous-list li {
  color: #334155;
}

.sat-diag-banner .diag-module.diag-state-next {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  opacity: 1;
}

.sat-diag-banner .diag-module.diag-state-next .diag-module-status {
  color: rgba(255, 255, 255, 0.88);
}

.sat-diag-previous.hidden {
  display: none;
}

.sat-diag-retake-prompt {
  margin-top: 0.5rem;
  padding: 1.35rem 1.4rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  text-align: center;
}

.sat-diag-retake-title {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  color: #0f172a;
}

.sat-diag-retake-sub {
  margin: 0 0 1rem;
  color: #64748b;
  line-height: 1.5;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

.sat-diag-retake-score {
  margin: 0 auto 1.1rem;
  max-width: 22rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.sat-diag-retake-score-main {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
}

.sat-diag-retake-score-list {
  margin: 0;
  padding-left: 1.1rem;
  text-align: left;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.5;
}

.sat-diag-retake-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: center;
}

.sat-diag-retake-cancel {
  appearance: none;
  border: none;
  background: transparent;
  color: #64748b;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0.35rem 0.5rem;
}

.sat-diag-complete {
  margin-top: 0.5rem;
  padding: 1.25rem 1.35rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  text-align: center;
}

.sat-diag-complete-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  color: #0f172a;
}

.sat-diag-complete-sub {
  margin: 0 0 1rem;
  color: #64748b;
}

.sat-diag-complete-btn {
  appearance: none;
  border: none;
  border-radius: 10px;
  padding: 0.65rem 1.1rem;
  background: #dc2626;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.sat-diag-complete-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: center;
}

.sat-diag-complete-btn--secondary {
  background: #fff;
  color: #334155;
  border: 1px solid rgba(15, 23, 42, 0.15);
}

.sat-diag-complete-score {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.sat-diag-complete-score-main {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
}

.sat-diag-complete-score-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #64748b;
  font-size: 0.92rem;
}

.sat-diag-complete-score-list li + li {
  margin-top: 0.2rem;
}

.sat-diag-runner .sat-mock-viewer-title,
.sat-diag-runner .sat-mock-viewer-source,
.sat-diag-runner .sat-mock-picker-label {
  color: #0f172a;
}

.sat-exam-spr-wrap {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  background: #f8fafc;
}

.sat-exam-spr-wrap--correct {
  border-color: #16a34a;
  background: #f0fdf4;
}

.sat-exam-spr-wrap--wrong {
  border-color: #dc2626;
  background: #fef2f2;
}

.sat-exam-spr-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
}

.sat-exam-spr-input {
  width: 100%;
  max-width: 220px;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 8px;
  font: inherit;
  font-size: 1rem;
}

.sat-exam-spr-submit {
  margin-top: 0.65rem;
  appearance: none;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
  background: #dc2626;
  color: #fff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.sat-exam-spr-feedback {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.sat-exam-spr-wrap--correct .sat-exam-spr-feedback {
  color: #15803d;
}

.sat-exam-spr-wrap--wrong .sat-exam-spr-feedback {
  color: #b91c1c;
}

.sat-syllabus {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 1.25rem 1.35rem 1.5rem;
}

.sat-syllabus-title {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.sat-syllabus-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.sat-syllabus-col-title {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.sat-syllabus-list {
  margin: 0;
  padding-left: 1.1rem;
  color: #475569;
  font-size: 0.86rem;
  line-height: 1.65;
}

.sat-syllabus-list li {
  margin-bottom: 0.15rem;
}

.sat-sub-screen-title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
}

.sat-sub-screen-sub {
  margin: 0 0 1rem;
  color: #64748b;
  line-height: 1.55;
  max-width: 56ch;
}

/* ── SAT Real Mock Exams (interactive practice tests) ── */
.sat-real-mock-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1rem 2rem;
}

.sat-real-mock-head {
  margin-bottom: 1.25rem;
}

.sat-single-test-shell .sat-real-mock-head {
  margin-bottom: 0.75rem;
}

.sat-single-test-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.sat-mock-card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

.sat-official-test-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.sat-official-test-list-hint {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  color: #64748b;
}

.sat-official-test-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.sat-official-test-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.sat-official-test-link:hover {
  border-color: #2563eb;
  background: #f8fbff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.sat-official-test-link:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.sat-official-test-link-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.sat-official-test-link-title {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.sat-official-test-link-meta {
  font-size: 0.84rem;
  color: #64748b;
}

.sat-official-test-link-arrow {
  flex-shrink: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #2563eb;
}

.sat-official-test-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sat-official-test-card .sat-mock-card-head {
  margin-bottom: 0.15rem;
}

.sat-mock-card-note {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #64748b;
}

.sat-mock-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  padding: 1.15rem 1.25rem 1.25rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.sat-mock-card-title {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  font-weight: 800;
  color: #0f172a;
}

.sat-mock-card-sub,
.sat-mock-card-source,
.sat-mock-card-meta {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #64748b;
}

.sat-mock-card-source {
  font-size: 0.82rem;
  color: #94a3b8;
}

.sat-mock-open-btn {
  margin-top: 0.65rem;
  appearance: none;
  border: none;
  border-radius: 10px;
  padding: 0.62rem 1rem;
  font: inherit;
  font-weight: 800;
  font-size: 0.92rem;
  cursor: pointer;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28);
}

.sat-mock-open-btn:hover {
  filter: brightness(1.03);
}

.sat-mock-runner-mount {
  margin-top: 1.5rem;
}

.sat-mock-runner-mount.hidden {
  display: none !important;
}

.sat-mock-runner {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

.sat-mock-loading,
.sat-mock-error {
  padding: 1.25rem;
  color: #64748b;
}

.sat-mock-error {
  color: #b91c1c;
}

.sat-mock-picker-label {
  margin: 0;
  padding: 0 1.15rem 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  color: #475569;
}

.sat-mock-picker-body {
  padding-bottom: 0.25rem;
}

.sat-mock-mod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
  padding: 0 1.15rem 1.35rem;
}

.sat-mock-mod-card {
  appearance: none;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem 1.2rem;
  min-height: 118px;
  text-align: left;
  cursor: pointer;
  background: #f8fafc;
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.sat-mock-mod-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.14);
  transform: translateY(-1px);
}

.sat-mock-mod-section {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.sat-mock-mod-label {
  display: block;
  font-size: 1.28rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.sat-mock-mod-count {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.95rem;
  color: #64748b;
}

.sat-mock-runner-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
}

.sat-mock-viewer-source {
  margin: 0.15rem 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #64748b;
}

.sat-mock-exam-breadcrumb {
  margin: 0 0 0.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
}

.sat-mock-directions {
  margin: 0 1.15rem 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.86rem;
  line-height: 1.5;
}

.sat-mock-directions strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.sat-mock-directions p {
  margin: 0;
}

.sat-mock-progress {
  height: 4px;
  background: #e2e8f0;
  margin: 0 1.15rem 0.75rem;
  border-radius: 999px;
  overflow: hidden;
}

.sat-mock-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.sat-mock-dotstrip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 1.15rem 1rem;
  max-height: 72px;
  overflow-y: auto;
}

.sat-mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: #cbd5e1;
}

.sat-mock-dot.active {
  background: #2563eb;
  transform: scale(1.15);
}

.sat-mock-dot.done {
  background: #86efac;
}

.sat-mock-dot.done.active {
  background: #16a34a;
}

.sat-mock-question-card {
  margin: 0 1.15rem 1rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

.sat-mock-passage {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid #2563eb;
  background: #f8fafc;
  font-size: 0.94rem;
  line-height: 1.65;
  color: #1e293b;
}

.sat-mock-figure {
  margin: 0 0 1rem;
  padding: 0;
  text-align: center;
}

.sat-mock-figure-img {
  max-width: 100%;
  height: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.sat-mock-question-text {
  margin: 0 0 1rem;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.5;
  color: #0f172a;
}

.sat-mock-choices {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sat-mock-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.sat-mock-choice:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}

.sat-mock-choice input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.sat-mock-choice-letter {
  flex-shrink: 0;
  font-weight: 800;
  color: #475569;
  min-width: 1.1rem;
}

.sat-mock-choice-text {
  font-size: 0.92rem;
  line-height: 1.45;
  color: #1e293b;
}

.sat-mock-choice--selected {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.06);
}

.sat-mock-choice--correct {
  border-color: #16a34a;
  background: rgba(22, 163, 74, 0.08);
}

.sat-mock-choice--wrong {
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.06);
}

.sat-mock-explanation {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.55;
  background: #f1f5f9;
  color: #334155;
}

.sat-mock-explanation--correct {
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.25);
}

.sat-mock-explanation--wrong {
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.sat-mock-explanation p {
  margin: 0.35rem 0 0;
  max-height: 280px;
  overflow-y: auto;
}

.sat-mock-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 1.15rem 1.25rem;
}

.sat-mock-nav-btn {
  appearance: none;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.62rem 1.1rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  background: #fff;
  color: #475569;
}

.sat-mock-nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sat-mock-nav-btn--primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  border-color: transparent;
  color: #fff;
}

.sat-mock-viewer-mount {
  margin-top: 1.5rem;
}

.sat-mock-viewer-mount.hidden {
  display: none !important;
}

.sat-mock-viewer {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

.sat-mock-viewer-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
}

.sat-mock-viewer-title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.sat-mock-viewer-note {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #64748b;
  max-width: 52ch;
}

.sat-mock-viewer-close {
  flex-shrink: 0;
  appearance: none;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  background: #fff;
  color: #475569;
}

.sat-mock-tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}

.sat-mock-tab {
  flex: 1 1 auto;
  min-width: 0;
  appearance: none;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  color: #64748b;
}

.sat-mock-tab.active {
  color: #1d4ed8;
  border-bottom-color: #2563eb;
  background: rgba(37, 99, 235, 0.06);
}

.sat-mock-panel {
  display: none;
  padding: 0.75rem 1rem 1rem;
}

.sat-mock-panel.active {
  display: block;
}

.sat-mock-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.sat-mock-dl-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  background: #0f172a;
  color: #fff;
}

.sat-mock-dl-btn--ghost {
  background: #fff;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.sat-mock-pdf-frame {
  width: 100%;
  height: min(78vh, 920px);
  min-height: 420px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f1f5f9;
}

@media (max-width: 640px) {
  .sat-mock-pdf-frame {
    height: min(70vh, 720px);
    min-height: 360px;
  }
}

/* ── Digital SAT exam UI (split-pane test taker) ── */
.sat-exam-fullscreen-portal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sat-exam-fullscreen-portal .sat-diag-runner-mount,
.sat-exam-fullscreen-portal #satDiagRunnerMount,
.sat-exam-fullscreen-portal .sat-mock-runner-mount,
.sat-exam-fullscreen-portal #satMockRunnerMount {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0;
  width: 100%;
}

.sat-exam-fullscreen-portal .sat-diag-runner-mount > .sat-exam,
.sat-exam-fullscreen-portal #satDiagRunnerMount > .sat-exam,
.sat-exam-fullscreen-portal .sat-mock-runner-mount > .sat-exam,
.sat-exam-fullscreen-portal #satMockRunnerMount > .sat-exam {
  flex: 1;
  min-height: 0;
}

.sat-exam-fullscreen-portal .sat-mock-runner-mount > .sat-mock-runner,
.sat-exam-fullscreen-portal .sat-mock-runner-mount > .sat-diag-runner,
.sat-exam-fullscreen-portal #satMockRunnerMount > .sat-mock-runner,
.sat-exam-fullscreen-portal #satMockRunnerMount > .sat-diag-runner {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}

.sat-exam-fullscreen-portal .sat-mock-runner-toolbar {
  flex-shrink: 0;
  padding: 1.35rem clamp(1.25rem, 4vw, 2.5rem);
}

.sat-exam-fullscreen-portal .sat-mock-viewer-title {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  margin-bottom: 0.35rem;
}

.sat-exam-fullscreen-portal .sat-mock-viewer-source {
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  max-width: 56ch;
}

.sat-exam-fullscreen-portal .sat-mock-viewer-close {
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
}

.sat-exam-fullscreen-portal .sat-mock-picker-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(1rem, 3vh, 2rem) clamp(1.25rem, 4vw, 2.5rem) clamp(1.5rem, 4vh, 2.75rem);
  box-sizing: border-box;
}

.sat-exam-fullscreen-portal .sat-mock-picker-label {
  padding: 0 0 1.15rem;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: #334155;
}

.sat-exam-fullscreen-portal .sat-mock-mod-grid {
  padding: 0;
  gap: clamp(1rem, 2vw, 1.35rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}

.sat-exam-fullscreen-portal .sat-mock-mod-card {
  padding: clamp(1.35rem, 2.5vw, 1.85rem) clamp(1.2rem, 2vw, 1.6rem);
  min-height: clamp(130px, 18vh, 168px);
  border-radius: 16px;
}

.sat-exam-fullscreen-portal .sat-mock-mod-section {
  font-size: clamp(0.78rem, 1.2vw, 0.88rem);
  margin-bottom: 0.45rem;
}

.sat-exam-fullscreen-portal .sat-mock-mod-label {
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
}

.sat-exam-fullscreen-portal .sat-mock-mod-count {
  font-size: clamp(0.92rem, 1.5vw, 1.05rem);
  margin-top: 0.55rem;
}

@media (max-width: 640px) {
  .sat-exam-fullscreen-portal .sat-mock-mod-grid {
    grid-template-columns: 1fr;
  }
}

body.sat-diag-active,
body.sat-exam-mode {
  overflow: hidden;
}

body.sat-diag-active .sidebar,
body.sat-diag-active #platformTopNav,
body.sat-diag-active .site-footer,
body.sat-diag-active #mainHeader,
body.sat-exam-mode .sidebar,
body.sat-exam-mode #platformTopNav,
body.sat-exam-mode .site-footer,
body.sat-exam-mode #mainHeader {
  display: none !important;
}

body.sat-diag-active .layout-main,
body.sat-exam-mode .layout-main {
  margin: 0;
  padding: 0;
  max-width: none;
}

.sat-exam-active-page {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.sat-exam-mode #mainHeader {
  display: none;
}

body.sat-exam-mode .sat-subnav-wrap {
  display: none !important;
}

.sat-exam {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 52px);
  height: 100%;
  background: #fff;
  border-top: 1px solid #e2e8f0;
}

.sat-exam-fullscreen-portal .sat-exam,
body.sat-diag-active .sat-exam,
body.sat-exam-mode .sat-exam {
  min-height: 100vh;
  height: 100vh;
  border-top: none;
}

.sat-diag-complete--fullscreen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.sat-exam-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
  flex-shrink: 0;
}

.sat-exam-topbar-start,
.sat-exam-topbar-end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.sat-exam-back,
.sat-exam-directions-btn {
  appearance: none;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
}

.sat-exam-back:hover,
.sat-exam-directions-btn:hover {
  background: #f1f5f9;
}

.sat-exam-timer-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.sat-exam-timer {
  font-size: 1.35rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  letter-spacing: 0.02em;
}

.sat-exam-timer-toggle {
  appearance: none;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
}

.sat-exam-topbar-end {
  flex: 1 1 auto;
  justify-content: flex-end;
}

.sat-exam-test-context {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  min-width: 0;
  text-align: right;
}

.sat-exam-test-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(42vw, 320px);
}

.sat-exam-module-tag {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}

.sat-exam-directions-panel {
  padding: 0.85rem 1.25rem;
  background: #0f172a;
  color: #f8fafc;
  font-size: 0.88rem;
  line-height: 1.55;
  border-bottom: 1px solid #1e293b;
}

.sat-exam-directions-panel.hidden {
  display: none !important;
}

.sat-exam-directions-panel strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

.sat-exam-directions-panel p {
  margin: 0;
}

.sat-exam-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1 1 auto;
  min-height: 0;
  border-bottom: 1px solid #e2e8f0;
}

.sat-exam-body--single {
  grid-template-columns: 1fr;
}

.sat-exam-passage-pane {
  border-right: 1px solid #e2e8f0;
  background: #fafafa;
  min-height: 0;
}

.sat-exam-passage-scroll,
.sat-exam-question-scroll {
  height: 100%;
  max-height: calc(100vh - 200px);
  min-height: 360px;
  overflow-y: auto;
  padding: 1.25rem 1.35rem 2rem;
  -webkit-user-select: text;
  user-select: text;
}

.vocab-text-surface {
  -webkit-user-select: text;
  user-select: text;
}

.sat-exam-passage-label {
  margin: 1rem 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.sat-exam-passage-label:first-child {
  margin-top: 0;
}

.sat-exam-passage-p {
  margin: 0 0 0.85rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #1e293b;
}

.sat-passage-underline {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

.sat-passage-blank {
  display: inline-block;
  min-width: 5.5rem;
  border-bottom: 2px solid #1e293b;
  margin: 0 0.1rem;
  vertical-align: baseline;
}

.sat-exam-figure {
  margin: 1rem 0;
  text-align: center;
}

.sat-exam-figure-img {
  max-width: 100%;
  height: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}

.sat-exam-question-pane {
  background: #fff;
  min-height: 0;
}

.sat-exam-qhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.sat-exam-qnum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  background: #0f172a;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 4px;
}

.sat-exam-mark {
  appearance: none;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
}

.sat-exam-mark.active {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #b45309;
}

.sat-exam-save-later.active {
  border-color: #6366f1;
  background: #eef2ff;
  color: #4338ca;
}

.sat-exam-save-later:hover {
  border-color: #818cf8;
  color: #4338ca;
}

.sat-exam-question-text {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
  color: #0f172a;
}

.sat-exam-choices {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sat-exam-choice {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  position: relative;
}

.sat-exam-choice:hover {
  border-color: #94a3b8;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

.sat-exam-choice--selected {
  border-color: #2563eb;
  border-width: 2px;
  background: #dbeafe;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.28);
}

.sat-exam-choice--selected:hover {
  border-color: #1d4ed8;
  background: #bfdbfe;
}

.sat-exam-choice--correct {
  border-color: #15803d;
  border-width: 2px;
  background: #bbf7d0;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35);
}

.sat-exam-choice--correct .sat-exam-choice-letter {
  color: #14532d;
}

.sat-exam-choice--wrong {
  border-color: #b91c1c;
  border-width: 2px;
  background: #fecaca;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.32);
}

.sat-exam-choice--wrong .sat-exam-choice-letter {
  color: #991b1b;
}

/* Legacy cross-out buttons — hidden even if cached JS still renders them */
.sat-exam-elim-btn,
.sat-exam-elim-icon {
  display: none !important;
}

.sat-exam-choice-letter {
  flex-shrink: 0;
  font-weight: 800;
  color: #334155;
  min-width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid #cbd5e1;
  background: #fff;
  font-size: 0.82rem;
}

.sat-exam-choice-letter--selected {
  color: #fff;
  background: #2563eb;
  border-color: #1d4ed8;
}

.sat-exam-choice--selected .sat-exam-choice-text {
  color: #1e3a8a;
  font-weight: 600;
}

.sat-exam-choice-text {
  font-size: 0.95rem;
  line-height: 1.45;
  color: #1e293b;
}

.sat-exam-explanation {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.55;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.sat-exam-explanation--correct {
  background: #dcfce7;
  border: 2px solid #22c55e;
  color: #14532d;
}

.sat-exam-explanation--correct strong {
  color: #15803d;
}

.sat-exam-explanation--wrong {
  background: #fee2e2;
  border: 2px solid #ef4444;
  color: #7f1d1d;
}

.sat-exam-explanation--wrong strong {
  color: #b91c1c;
}

.sat-exam-explanation-body {
  margin-top: 0.5rem;
  max-height: min(420px, 45vh);
  overflow-y: auto;
}

.sat-exam-explanation-p {
  margin: 0 0 0.75rem;
}

.sat-exam-explanation-p:last-child {
  margin-bottom: 0;
}

/* IELTS-style question grid with vibrant correct / incorrect states */
.sat-exam-qnav {
  flex-shrink: 0;
  padding: 0.5rem 0.75rem 0.65rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.sat-exam-qnav-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
}

.sat-qnav-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.sat-qnav-legend-item::before {
  content: "";
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 3px;
  border: 2px solid #94a3b8;
  background: #fff;
}

.sat-qnav-legend-item--correct::before {
  background: #22c55e;
  border-color: #15803d;
}

.sat-qnav-legend-item--wrong::before {
  background: #ef4444;
  border-color: #b91c1c;
}

.sat-qnav-legend-item--marked::before {
  background: #fef3c7;
  border-color: #f59e0b;
}

.sat-qnav-legend-item--answered::before {
  background: #2563eb;
  border-color: #1d4ed8;
}

.sat-exam-qgrid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-height: 88px;
  overflow-y: auto;
  padding: 2px;
}

.sat-qnav-btn {
  appearance: none;
  min-width: 28px;
  height: 28px;
  padding: 0 4px;
  border: 2px solid #94a3b8;
  border-radius: 4px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.sat-qnav-btn:hover {
  border-color: #64748b;
}

.sat-qnav-btn.sat-qnav-correct {
  background: #22c55e;
  border-color: #15803d;
  color: #fff;
}

.sat-qnav-btn.sat-qnav-wrong {
  background: #ef4444;
  border-color: #b91c1c;
  color: #fff;
}

.sat-qnav-btn.sat-qnav-answered {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #fff;
}

.sat-qnav-btn.sat-qnav-answered.sat-qnav-current {
  background: #1d4ed8;
  border-color: #1e40af;
  color: #fff;
}

.sat-qnav-btn.sat-qnav-marked:not(.sat-qnav-correct):not(.sat-qnav-wrong) {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}

.sat-qnav-btn.sat-qnav-marked.sat-qnav-correct,
.sat-qnav-btn.sat-qnav-marked.sat-qnav-wrong {
  box-shadow: inset 0 0 0 2px #fef3c7;
}

.sat-qnav-btn.sat-qnav-current {
  outline: 3px solid #0f172a;
  outline-offset: 1px;
}

.sat-exam-qcounter {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
}

.sat-exam-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fff;
  flex-shrink: 0;
}

.sat-exam-footer-left,
.sat-exam-footer-center,
.sat-exam-footer-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sat-exam-timer.hidden {
  visibility: hidden;
}

.sat-exam-qselect-wrap {
  display: inline-flex;
}

.sat-exam-qselect {
  appearance: none;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #1e293b;
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.5rem 2rem 0.5rem 0.85rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
}

.sat-exam-explain-btn {
  appearance: none;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: #475569;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
}

.sat-exam-explain-btn:not(:disabled):hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.sat-exam-explain-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sat-exam-nav-btn {
  appearance: none;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: #334155;
  padding: 0.55rem 1.15rem;
  cursor: pointer;
}

.sat-exam-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.sat-exam-nav-btn--primary {
  background: #1e293b;
  border-color: #1e293b;
  color: #fff;
  min-width: 5.5rem;
}

@media (max-width: 900px) {
  .sat-exam-body {
    grid-template-columns: 1fr;
  }

  .sat-exam-passage-pane {
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
    max-height: 42vh;
  }

  .sat-exam-passage-scroll {
    max-height: 42vh;
    min-height: 180px;
  }

  .sat-exam-question-scroll {
    max-height: none;
    min-height: 280px;
  }

  .sat-exam-footer {
    flex-wrap: wrap;
  }
}

@media (max-width: 900px) {
  .sat-syllabus-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .platform-screen-inner {
    padding-inline: 0.75rem;
  }
  .ge-level-tab {
    padding-inline: 0.75rem;
  }
}

/* ── Embedded study materials (no external links) ── */
.platform-materials-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
}

.platform-material-head {
  margin-bottom: 1.25rem;
}

.platform-material-title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
}

.platform-material-intro {
  margin: 0;
  color: #64748b;
  line-height: 1.55;
  max-width: 60ch;
}

.platform-material-h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.platform-material-h4 {
  margin: 1rem 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.platform-material-p {
  margin: 0 0 0.75rem;
  line-height: 1.6;
  color: #334155;
}

.platform-material-list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  line-height: 1.65;
  color: #334155;
}

.platform-material-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.platform-material-section:last-child {
  border-bottom: none;
}

.platform-material-examples {
  background: #f8fafc;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
}

.platform-material-table-wrap {
  overflow-x: auto;
  margin: 0.5rem 0 0;
}

.platform-material-table-caption {
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: #475569;
}

.platform-material-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.platform-material-table th,
.platform-material-table td {
  padding: 0.55rem 0.7rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}

.platform-material-table th {
  background: #f1f5f9;
  font-weight: 700;
  color: #0f172a;
}

.platform-material-table tr:last-child td {
  border-bottom: none;
}

.ge-ipa {
  font-family: "Charis SIL", "Doulos SIL", "DejaVu Sans", "Segoe UI Symbol", "Noto Sans", sans-serif;
  font-variant-ligatures: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.ge-highlight-term {
  font-weight: 800;
  color: #0f172a;
}

.ge-grammar-table td .ge-highlight-term {
  font-size: 0.98em;
}

/* ── General English grammar unit (lesson / homework / answers) ── */
.ge-grammar-verb {
  font-weight: 800;
  color: #1d4ed8;
}

.ge-grammar-blank {
  display: inline-block;
  min-width: 3.5rem;
  border-bottom: 2px solid #94a3b8;
  font-weight: 700;
  color: #0f172a;
}

.ge-grammar-unit-head.platform-material-section {
  border-bottom: none;
  margin: 2rem 0 0.75rem;
  padding: 0;
}

.ge-grammar-unit-head:first-of-type {
  margin-top: 0.5rem;
}

.ge-grammar-unit-head-inner {
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  border-radius: 12px;
  color: #fff;
}

.ge-grammar-unit-num {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.2rem;
}

.ge-grammar-unit-head-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.ge-grammar-unit-head-title .ge-grammar-verb {
  color: #fde68a;
}

.ge-grammar-block.platform-material-section {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 2rem;
}

.ge-grammar-overview-card {
  background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  padding: 1.1rem 1.15rem;
}

.ge-grammar-part {
  border-radius: 14px;
  padding: 1.15rem 1.2rem;
}

.ge-grammar-part--lesson {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 4px solid #2563eb;
}

.ge-grammar-part--homework {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-left: 4px solid #d97706;
}

.ge-grammar-part--answers {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-left: 4px solid #16a34a;
}

.ge-grammar-part-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.5rem;
}

.ge-grammar-part-badge--lesson {
  background: #dbeafe;
  color: #1e40af;
}

.ge-grammar-part-badge--homework {
  background: #fef3c7;
  color: #92400e;
}

.ge-grammar-part-badge--answers {
  background: #dcfce7;
  color: #166534;
}

.ge-grammar-part-title {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.ge-grammar-part-intro {
  margin: 0 0 1rem;
  color: #475569;
  line-height: 1.55;
  max-width: 58ch;
}

.ge-grammar-lesson-body {
  margin-top: 0.5rem;
}

.ge-grammar-lesson-section .platform-material-section {
  border-bottom: 1px dashed #e2e8f0;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
}

.ge-grammar-lesson-section .platform-material-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.ge-grammar-guide-group {
  margin: 0 0 1.15rem;
}

.ge-grammar-guide-group:last-child {
  margin-bottom: 0;
}

.ge-grammar-guide-groups {
  margin-top: 0.35rem;
}

.ge-grammar-guide-subhead {
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-left: 4px solid #3b82f6;
  background: linear-gradient(90deg, #e8f0fe 0%, #f8fafc 100%);
  border-radius: 0 10px 10px 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.45;
}

.ge-grammar-guide-groups > .ge-grammar-guide-group:first-child .ge-grammar-guide-subhead {
  margin-top: 0;
}

.ge-grammar-guide-subhead-lead {
  margin: 0.35rem 0 0.55rem 0.15rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: #475569;
  line-height: 1.55;
}

.ge-grammar-example-stack {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.15rem 0 0;
}

.ge-grammar-example-line {
  margin: 0;
  padding: 0.5rem 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #334155;
}

.ge-grammar-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.ge-grammar-chip {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #1e40af;
  line-height: 1.3;
}

.ge-grammar-emphasis {
  font-weight: 700;
  color: #0f172a;
}

.ge-grammar-example-list li {
  margin-bottom: 0.35rem;
}

.ge-grammar-homework-sheet {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ge-grammar-homework-exercise {
  background: #fff;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 1rem 1.05rem;
  box-shadow: 0 1px 0 rgba(217, 119, 6, 0.08);
}

.ge-grammar-homework-exercise-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.35rem;
}

.ge-grammar-exercise-num {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b45309;
  background: #fef3c7;
  border-radius: 6px;
  padding: 0.15rem 0.45rem;
}

.ge-grammar-exercise-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.ge-grammar-exercise-instruction {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: #64748b;
  font-style: italic;
}

.ge-grammar-notebook {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ge-notebook;
}

.ge-grammar-notebook-line {
  counter-increment: ge-notebook;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.ge-grammar-notebook-line::before {
  content: counter(ge-notebook) ".";
  font-weight: 700;
  color: #b45309;
  font-size: 0.88rem;
}

.ge-grammar-notebook-text {
  font-size: 0.92rem;
  color: #334155;
  line-height: 1.5;
}

.ge-grammar-notebook-prompt {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ge-grammar-notebook-prompt--inline {
  display: block;
  font-size: 0.92rem;
  color: #334155;
  line-height: 2;
}

.ge-grammar-notebook-input {
  font: inherit;
  font-size: 0.92rem;
  color: #0f172a;
  background: #fff;
  border: none;
  border-bottom: 1.5px solid #94a3b8;
  border-radius: 0;
  padding: 0.1rem 0.2rem;
  min-width: 4.5rem;
  outline: none;
}

.ge-grammar-notebook-input:focus {
  border-bottom-color: #2563eb;
  background: #f8fafc;
}

.ge-grammar-notebook-input--inline {
  display: inline-block;
  vertical-align: baseline;
  margin: 0 0.12rem;
  min-width: 5.5rem;
  max-width: min(12rem, 40vw);
}

.ge-grammar-notebook-input--full {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 0.15rem;
  padding: 0.35rem 0.2rem;
}

.ge-grammar-notebook-rule {
  display: none;
}

.ge-grammar-quiz {
  margin-top: 0.25rem;
}

.ge-grammar-quiz-q {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
}

.ge-grammar-quiz-choice span {
  font-weight: 600;
}

.ge-grammar-check-btn {
  margin-top: 0.65rem;
  background: #d97706 !important;
}

.ge-grammar-answer-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.15rem 0;
}

.ge-grammar-answer-summary::-webkit-details-marker {
  display: none;
}

.ge-grammar-answer-summary-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.ge-grammar-answer-summary-hint {
  font-size: 0.8rem;
  color: #64748b;
  margin-left: auto;
}

.ge-grammar-answer-body {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed #86efac;
}

.ge-grammar-answer-group {
  margin-bottom: 1rem;
}

.ge-grammar-answer-group:last-child {
  margin-bottom: 0;
}

.ge-grammar-answer-group-title {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: #166534;
}

.ge-grammar-answer-list {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.65;
  color: #334155;
}

.ge-grammar-table td .ge-grammar-verb {
  font-size: 0.95em;
}

/* Grammar unit hub + chapter tabs (A0+) */
.ge-grammar-page {
  max-width: 52rem;
}

.ge-grammar-loading {
  padding: 2rem 0;
  text-align: center;
  color: #64748b;
}

.ge-grammar-hub {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ge-grammar-hub-overview {
  padding: 1rem 1.1rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.ge-grammar-hub-overview-text {
  margin: 0.5rem 0 0.65rem;
  color: #475569;
  line-height: 1.55;
  font-size: 0.92rem;
}

.ge-grammar-hub-overview-scroll {
  --ge-overview-visible-items: 5;
  max-height: calc(var(--ge-overview-visible-items) * 4.25rem);
  margin-top: 0.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  scrollbar-gutter: stable;
}

.ge-grammar-hub-overview-scroll:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.ge-grammar-hub-overview-list {
  margin: 0;
  padding: 0.55rem 0.75rem 0.55rem 1.2rem;
  color: #334155;
  line-height: 1.55;
  font-size: 0.88rem;
}

.ge-grammar-hub-overview-list li + li {
  margin-top: 0.35rem;
}

.ge-grammar-hub-section-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.ge-grammar-unit-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.ge-grammar-unit-card {
  padding: 1rem 1.05rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.ge-grammar-unit-card--review {
  border-color: #fde68a;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
}

.ge-grammar-unit-badge {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0369a1;
  background: #e0f2fe;
}

.ge-grammar-unit-badge--review {
  color: #b45309;
  background: #fef3c7;
}

.ge-grammar-unit-card-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}

.ge-grammar-unit-card-summary {
  margin: 0 0 0.75rem;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.5;
}

/* General English — unified unit hub */
.ge-unit-hub-page .ge-unit-hub-title {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.ge-unit-bundle-card {
  padding: 1rem 1.05rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
}

.ge-unit-bundle-progress {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
}

.ge-unit-skill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.ge-unit-skill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.ge-unit-skill-btn:hover:not(.ge-unit-skill-btn--locked) {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.ge-unit-skill-btn--vocab {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.ge-unit-skill-btn--reading {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.ge-unit-skill-btn--listening {
  border-color: #fde68a;
  background: #fffbeb;
}

.ge-unit-skill-btn--speaking {
  border-color: #fbcfe8;
  background: #fdf2f8;
}

.ge-unit-skill-btn--grammar {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.ge-unit-skill-btn--locked {
  opacity: 0.72;
  cursor: not-allowed;
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #64748b;
}

.ge-unit-hub-loading {
  padding: 2rem 1rem;
  text-align: center;
  color: #64748b;
}

.ge-grammar-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.ge-grammar-open-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.ge-grammar-chapter {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ge-grammar-back {
  align-self: flex-start;
  padding: 0.35rem 0.65rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.ge-grammar-back:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.ge-grammar-chapter-head {
  margin: 0;
}

.ge-grammar-chapter-title {
  margin: 0.35rem 0 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.ge-grammar-chapter-sub {
  margin: 0.35rem 0 0;
  color: #64748b;
  font-size: 0.9rem;
}

.ge-grammar-vocab-link-note {
  margin: 0.65rem 0 0;
  padding: 0.55rem 0.75rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.5;
}

.ge-grammar-vocab-jump {
  margin-left: 0.35rem;
  padding: 0;
  border: none;
  background: none;
  color: #2563eb;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.ge-grammar-vocab-jump:hover {
  color: #1d4ed8;
}

.ge-grammar-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.ge-grammar-tab {
  flex: 1 1 auto;
  min-width: 7rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.ge-grammar-tab:hover {
  color: #0f172a;
  background: #fff;
}

.ge-grammar-tab--active {
  color: #0f172a;
  background: #fff;
  border-color: #cbd5e1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.ge-grammar-tab-panel-wrap {
  min-height: 4rem;
}

.ge-grammar-tab-panel-wrap .platform-material-section {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.ge-grammar-tab-panel {
  padding: 0.25rem 0;
}

.ge-grammar-tab-panel--lesson .ge-grammar-lesson-body {
  margin-top: 0.5rem;
}

.ge-grammar-tab-panel--homework .ge-grammar-homework-sheet {
  margin-top: 0.25rem;
}

.ge-grammar-tab-panel--answers .ge-grammar-answer-group:first-child {
  margin-top: 0.25rem;
}

.ge-grammar-empty {
  margin: 0;
  padding: 1.5rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.92rem;
}

/* General English listening hub + tasks */
.ge-listening-page {
  max-width: 52rem;
}

.ge-listening-loading {
  padding: 2rem 0;
  text-align: center;
  color: #64748b;
}

.ge-listening-hub-title {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.ge-listening-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.ge-listening-card {
  padding: 1rem 1.05rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.ge-listening-card-badge {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7c3aed;
  background: #ede9fe;
}

.ge-listening-card-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}

.ge-listening-card-summary {
  margin: 0 0 0.75rem;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.5;
}

.ge-listening-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.ge-listening-open-btn:hover {
  background: #f5f3ff;
  border-color: #a78bfa;
}

.ge-listening-task {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.ge-listening-back {
  align-self: flex-start;
  padding: 0.35rem 0.65rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.ge-listening-back:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.ge-listening-task-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
}

.ge-listening-task-sub {
  margin: 0.35rem 0 0;
  color: #64748b;
  font-size: 0.9rem;
}

.ge-listening-player-wrap {
  padding: 1rem 1.1rem;
  border: 1px solid #ddd6fe;
  border-radius: 14px;
  background: linear-gradient(180deg, #faf5ff 0%, #fff 100%);
}

.ge-listening-player-label {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #5b21b6;
}

.ge-listening-player {
  width: 100%;
  max-width: 100%;
}

.ge-listening-player-hint {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  color: #64748b;
}

.ge-listening-transcript {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  padding: 0.65rem 0.9rem;
}

.ge-listening-transcript-gate--locked .ge-listening-transcript {
  display: none;
}

.ge-listening-transcript-lock-msg {
  margin: 0 0 0.65rem;
  padding: 0.65rem 0.9rem;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.5;
}

.ge-listening-transcript-summary {
  cursor: pointer;
  font-weight: 700;
  color: #475569;
  list-style: none;
}

.ge-listening-transcript-summary::-webkit-details-marker {
  display: none;
}

.ge-listening-transcript-body {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #cbd5e1;
  color: #334155;
  line-height: 1.65;
  font-size: 0.92rem;
}

.ge-listening-dialogue {
  margin: 0;
}

.ge-listening-dialogue-turn {
  margin: 0 0 0.5rem;
  line-height: 1.55;
  color: #334155;
}

.ge-listening-dialogue-turn:last-child {
  margin-bottom: 0;
}

.ge-listening-dialogue-speaker {
  font-weight: 700;
  color: #1e293b;
}

.ge-listening-dialogue-text {
  color: #334155;
}

.ge-listening-dialogue-turn--orphan {
  padding-left: 0.5rem;
}

.ge-listening-monologue-para {
  margin: 0 0 0.75rem;
}

.ge-listening-monologue-para:last-child {
  margin-bottom: 0;
}

.ge-listening-quiz-title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.ge-listening-quiz-wrap .platform-material-section {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.ge-listening-empty {
  margin: 0;
  color: #94a3b8;
  font-size: 0.92rem;
}

.ge-listening-card--locked {
  opacity: 0.92;
  border-style: dashed;
}

.ge-listening-link-vocab,
.ge-reading-link-vocab {
  display: inline-flex;
  text-decoration: none;
}

.ge-listening-unit-badge,
.ge-reading-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.ge-listening-unit-badge--open,
.ge-reading-badge--open {
  background: #dcfce7;
  color: #166534;
}

.ge-listening-unit-badge--locked,
.ge-reading-badge--locked {
  background: #fef2f2;
  color: #b91c1c;
}

.ge-listening-unit-block {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

.ge-listening-unit-block:first-of-type {
  margin-top: 1rem;
  padding-top: 0;
  border-top: none;
}

.ge-listening-unit-block-title {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ge-listening-kind-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: #e0f2fe;
  color: #0369a1;
}

.ge-listening-hub--legacy {
  margin-top: 2rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e2e8f0;
}

.ge-reading-page .ge-reading-loading {
  padding: 2rem 1rem;
  text-align: center;
  color: #64748b;
}

.ge-reading-hub-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: #0f172a;
}

.ge-reading-page .ge-reading-card--locked {
  opacity: 0.92;
  border-style: dashed;
}

.ge-reading-task {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ge-reading-task-title {
  font-size: 1.35rem;
  margin: 0.35rem 0 0;
}

.ge-reading-passage-block {
  margin-top: 1.5rem;
}

.ge-reading-passage-title {
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
}

.ge-reading-passage-instructions {
  margin: 0.75rem 0 0.5rem;
  font-weight: 600;
  color: #334155;
}

.ge-reading-comp {
  margin-top: 1rem;
}

.ge-reading-comp-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.ge-reading-comp-section:last-of-type {
  border-bottom: none;
}

.ge-reading-comp-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: #0f172a;
}

.ge-reading-comp-intro {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  color: #475569;
}

.ge-reading-word-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.ge-reading-word-bank-chip {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 0.86rem;
  font-weight: 600;
}

.ge-reading-comp-list {
  margin: 0;
  padding-left: 1.25rem;
}

.ge-reading-comp-list--inline {
  list-style: none;
  padding-left: 0;
}

.ge-reading-comp-list--tfng {
  list-style: none;
  padding-left: 0;
}

.ge-reading-comp-item--tfng.ge-reading-comp-item--correct {
  border-left: 3px solid #16a34a;
  padding-left: 0.65rem;
}

.ge-reading-comp-item--tfng.ge-reading-comp-item--wrong {
  border-left: 3px solid #dc2626;
  padding-left: 0.65rem;
}

.ge-reading-tfng-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.ge-reading-tfng-option {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: 0.9rem;
}

.ge-reading-tfng-option:has(input:checked) {
  border-color: #4f46e5;
  background: #eef2ff;
}

.ge-reading-tfng-option input {
  margin: 0;
}

.ge-reading-comp-item {
  margin-bottom: 0.85rem;
}

.ge-reading-comp-item--cat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ge-reading-comp-cat-word {
  min-width: 5rem;
  font-weight: 600;
}

.ge-reading-comp-item--order {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0.65rem;
  align-items: start;
  list-style: none;
  margin-left: 0;
}

.ge-reading-comp-list--order {
  list-style: none;
  padding-left: 0;
}

.ge-reading-comp-wrong {
  margin: 0 0 0.35rem;
  color: #64748b;
  font-style: italic;
}

.ge-reading-comp-input {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  font-size: 0.95rem;
  min-width: 6rem;
}

.ge-reading-comp-input--inline {
  min-width: 5rem;
  max-width: 8rem;
}

.ge-reading-comp-input--full {
  display: block;
  width: 100%;
  max-width: 36rem;
  margin-top: 0.25rem;
}

.ge-reading-comp-input--cat {
  width: 2.5rem;
  text-align: center;
  text-transform: uppercase;
}

.ge-reading-comp-match-table {
  width: 100%;
  max-width: 36rem;
  border-collapse: collapse;
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.ge-reading-comp-match-table td {
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}

.ge-reading-comp-match-letter {
  width: 2.5rem;
  white-space: nowrap;
}

.ge-reading-comp-match-arrow {
  color: #94a3b8;
}

.ge-reading-comp-input--order {
  width: 100%;
}

.ge-reading-comp-input--correct {
  border-color: #16a34a;
  background: #f0fdf4;
}

.ge-reading-comp-input--wrong {
  border-color: #dc2626;
  background: #fef2f2;
}

.ge-reading-comp-answer-reveal {
  display: block;
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #166534;
}

.ge-reading-comp-check {
  margin-top: 0.5rem;
}

.ge-reading-comp .platform-material-section {
  padding: 0;
  margin: 0;
  background: transparent;
  box-shadow: none;
}

.platform-vocab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.65rem;
}

.platform-vocab-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem;
}

.platform-vocab-word {
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.platform-vocab-meaning {
  font-size: 0.88rem;
  color: #475569;
}

.platform-vocab-example {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: #64748b;
  font-style: italic;
}

.platform-reading-passage {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  line-height: 1.65;
  color: #334155;
  margin-bottom: 1rem;
}

.platform-reading-passage .ge-reading-vocab-term {
  color: #4338ca;
  font-weight: 700;
}

.platform-phrase-list {
  display: grid;
  gap: 0.65rem;
}

.platform-phrase-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.platform-phrase-situation {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.platform-phrase-en {
  font-weight: 700;
  color: #0f172a;
}

.platform-phrase-note {
  font-size: 0.84rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.platform-quiz-q {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid transparent;
}

.platform-quiz-q--correct {
  border-color: #86efac;
  background: #f0fdf4;
}

.platform-quiz-q--wrong {
  border-color: #fca5a5;
  background: #fef2f2;
}

.platform-quiz-choice,
.platform-sat-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.35rem 0;
  cursor: pointer;
  font-size: 0.9rem;
}

.platform-quiz-btn {
  margin-top: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: none;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.platform-quiz-result {
  margin-top: 0.75rem;
  font-weight: 600;
  color: #0f172a;
}

.platform-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.platform-check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  font-size: 0.92rem;
  color: #334155;
}

.platform-sat-q {
  padding: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.platform-sat-q--correct {
  border-color: #86efac;
  background: #f0fdf4;
}

.platform-sat-q--wrong {
  border-color: #fca5a5;
  background: #fef2f2;
}

.platform-sat-explain {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: #475569;
}

.platform-tips-grid,
.platform-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.platform-tip-card,
.platform-preview-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1rem;
}

.platform-preview-card h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.platform-preview-card p {
  margin: 0 0 0.75rem;
  font-size: 0.86rem;
  color: #64748b;
}

.platform-preview-btn {
  appearance: none;
  border: none;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
}

.platform-preview-btn:hover {
  background: #dbeafe;
}

.platform-materials-preview {
  margin-top: 1.25rem;
}

.platform-flash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.65rem;
}

.platform-flash-card {
  appearance: none;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 1rem;
  min-height: 100px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.platform-flash-card--open {
  border-color: #93c5fd;
  background: #eff6ff;
}

.platform-flash-front {
  font-weight: 800;
  color: #0f172a;
}

.platform-flash-back {
  font-size: 0.86rem;
  color: #334155;
}

.platform-country-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.platform-country-tab {
  appearance: none;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.platform-inline-sheet {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
}

.platform-inline-sheet-inner {
  background: #fff;
  border-radius: 16px;
  max-width: 720px;
  width: 100%;
  padding: 1.25rem;
  position: relative;
}

.platform-sheet-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

/* —— SAT Skill Library —— */
.sat-qb-page {
  max-width: 1100px;
}

.sat-qb-loading {
  padding: 2rem 1rem;
  color: #64748b;
  font-size: 0.95rem;
}

.sat-qb-hub-head {
  margin-bottom: 1.25rem;
}

.sat-qb-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.sat-qb-stat {
  flex: 1 1 140px;
  min-width: 120px;
  padding: 0.75rem 0.9rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.sat-qb-stat--total {
  background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);
  border-color: #c7d2fe;
}

.sat-qb-stat-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.2rem;
}

.sat-qb-stat-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.sat-topic-section-title-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
}

.sat-topic-section-count {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
}

.sat-topic-domain-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
}

.sat-topic-section {
  margin-bottom: 2rem;
}

.sat-topic-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.sat-topic-section-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.sat-topic-practice-all {
  appearance: none;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
}

.sat-topic-practice-all:hover {
  background: #e0e7ff;
}

.sat-topic-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
}

.sat-topic-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.sat-topic-table-head th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 0.75rem 1rem 0.55rem;
  border-bottom: 1px solid #e2e8f0;
}

.sat-topic-table-head th:nth-child(2) {
  width: 42%;
}

.sat-topic-table-head th:nth-child(3) {
  width: 88px;
  text-align: right;
}

.sat-topic-domain-row td {
  padding: 0.85rem 1rem 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  border-top: 1px solid #e2e8f0;
}

.sat-topic-domain-row:first-child td {
  border-top: none;
}

.sat-topic-row td {
  padding: 0.55rem 1rem;
  vertical-align: middle;
  border-top: 1px solid #f1f5f9;
}

.sat-topic-row--clickable {
  cursor: pointer;
}

.sat-topic-row--clickable:hover {
  background: #f8fafc;
}

.sat-topic-name-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.sat-topic-q-total {
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.4;
}

.sat-topic-radio {
  width: 16px;
  height: 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 999px;
  flex-shrink: 0;
}

.sat-topic-name {
  font-size: 0.92rem;
  color: #334155;
}

.sat-topic-progress-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sat-topic-progress {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: #eef2ff;
  overflow: hidden;
}

.sat-topic-progress-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  min-width: 0;
}

.sat-topic-count {
  font-size: 0.82rem;
  color: #64748b;
  white-space: nowrap;
}

.sat-topic-accuracy-cell {
  text-align: right;
}

.sat-topic-accuracy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.sat-topic-accuracy-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
}

.sat-topic-accuracy--strong {
  color: #15803d;
}

.sat-topic-accuracy--mid {
  color: #b45309;
}

.sat-topic-accuracy--weak {
  color: #dc2626;
}

.sat-topic-accuracy--muted {
  color: #94a3b8;
  font-weight: 500;
}

.sat-results-topics-panel .sat-topic-section {
  margin-bottom: 1.25rem;
}

.sat-results-topics-panel .sat-topic-section:last-child {
  margin-bottom: 0;
}

.sat-results-topics-panel .sat-topic-practice-all {
  display: none;
}

.sat-qb-domain {
  margin-bottom: 1.75rem;
}

.sat-qb-domain-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.sat-qb-domain-title {
  margin: 0;
  font-size: 1.05rem;
  color: #0f172a;
}

.sat-qb-domain-all {
  appearance: none;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.45rem 0.85rem;
  background: #fff;
  font: inherit;
  font-weight: 700;
  color: #1d4ed8;
  cursor: pointer;
}

.sat-qb-skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.sat-qb-skill-card {
  --skill-color: #6366f1;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  padding: 1rem;
  background: #fff;
}

.sat-qb-skill-card-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.sat-qb-skill-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--skill-color);
  flex-shrink: 0;
}

.sat-qb-skill-name {
  margin: 0;
  font-size: 0.92rem;
  color: #0f172a;
}

.sat-qb-skill-meta {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  color: #64748b;
}

.sat-qb-skill-bar {
  height: 5px;
  border-radius: 999px;
  background: #e2e8f0;
  margin-bottom: 0.65rem;
  overflow: hidden;
}

.sat-qb-skill-bar span {
  display: block;
  height: 100%;
  background: var(--skill-color);
  border-radius: 999px;
}

.sat-qb-skill-btn {
  appearance: none;
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 0.45rem;
  background: #eff6ff;
  color: #1d4ed8;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.sat-qb-session {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.sat-qb-session-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.sat-qb-back {
  appearance: none;
  border: none;
  background: transparent;
  color: #475569;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.sat-qb-session-meta {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.sat-qb-session-title {
  font-weight: 800;
  color: #0f172a;
}

.sat-qb-session-skill {
  --skill-color: #6366f1;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--skill-color);
  background: color-mix(in srgb, var(--skill-color) 12%, white);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}

.sat-qb-session-tools {
  display: flex;
  gap: 0.45rem;
}

.sat-qb-tool {
  appearance: none;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  background: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.sat-qb-tool--map {
  color: #1d4ed8;
  border-color: #93c5fd;
  background: #eff6ff;
}

.sat-qb-flag--on {
  color: #c2410c;
  border-color: #fdba74;
  background: #fff7ed;
}

.sat-qb-qnav.sat-exam-qnav {
  flex-shrink: 0;
  background: #fff;
  border-top: 1px solid #e2e8f0;
}

.sat-qb-qnav-grid {
  max-height: 132px;
}

.sat-qb-session-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 0;
  overflow: hidden;
}

@media (max-width: 860px) {
  .sat-qb-session-body {
    grid-template-columns: 1fr;
  }
}

.sat-qb-passage-col {
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  overflow-y: auto;
  min-height: 0;
}

.sat-qb-passage {
  padding: 1.1rem 1.15rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #1e293b;
}

.sat-qb-passage-block + .sat-qb-passage-block {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
}

.sat-qb-passage-label {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6366f1;
}

.sat-qb-passage-text {
  line-height: 1.65;
}

.sat-qb-data-table {
  width: 100%;
  margin: 0.75rem 0 0.5rem;
  border-collapse: collapse;
  font-size: 0.88rem;
  line-height: 1.4;
}

.sat-qb-data-table th,
.sat-qb-data-table td {
  border: 1px solid #cbd5e1;
  padding: 0.35rem 0.5rem;
  text-align: center;
  white-space: nowrap;
}

.sat-qb-data-table th:first-child,
.sat-qb-data-table td:first-child {
  text-align: left;
  white-space: normal;
}

.sat-qb-data-table thead th {
  background: #f1f5f9;
  font-weight: 700;
  color: #0f172a;
}

.sat-qb-data-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.sat-qb-question-col {
  padding: 1.1rem 1.15rem;
  overflow-y: auto;
  min-height: 0;
}

.sat-qb-q-label {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.sat-qb-q-text {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #0f172a;
  font-weight: 600;
}

.sat-qb-choices {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.sat-qb-choice {
  appearance: none;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  background: #fff;
  cursor: pointer;
  font: inherit;
}

.sat-qb-choice-letter {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
  background: #f1f5f9;
  color: #334155;
}

.sat-qb-choice--selected {
  border-color: #2563eb;
  background: #eff6ff;
}

.sat-qb-choice--correct {
  border-color: #16a34a;
  background: #f0fdf4;
}

.sat-qb-choice--wrong {
  border-color: #dc2626;
  background: #fef2f2;
}

.sat-qb-explanation {
  margin-top: 1rem;
  padding: 0.85rem;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #1e3a8a;
}

.sat-qb-session-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #fff;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.sat-qb-nav {
  appearance: none;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.5rem 0.9rem;
  background: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.sat-qb-nav--primary {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}

.sat-qb-nav:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sat-qb-foot-progress {
  font-size: 0.88rem;
  font-weight: 700;
  color: #64748b;
}

.sat-qb-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(360px, 92vw);
  background: #fff;
  border-right: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 8px 0 28px rgba(15, 23, 42, 0.12);
  z-index: 5;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sat-qb-panel.hidden {
  display: none;
}

.sat-qb-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.85rem 1rem 0.5rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.sat-qb-panel-title {
  margin: 0;
  font-size: 1rem;
  color: #0f172a;
}

.sat-qb-panel-stats {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: #64748b;
}

.sat-qb-panel-close {
  appearance: none;
  border: none;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}

.sat-qb-panel-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
}

.sat-qb-filter {
  appearance: none;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  background: #f8fafc;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
}

.sat-qb-filter--active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}

.sat-qb-panel-filters--difficulty {
  border-top: 1px solid #f1f5f9;
}

.sat-qb-filter--diff-easy.sat-qb-filter--active {
  background: #059669;
  border-color: #059669;
}

.sat-qb-filter--diff-medium.sat-qb-filter--active {
  background: #d97706;
  border-color: #d97706;
}

.sat-qb-filter--diff-hard.sat-qb-filter--active {
  background: #dc2626;
  border-color: #dc2626;
}

.sat-qb-difficulty {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  vertical-align: middle;
}

.sat-qb-difficulty--easy {
  background: #d1fae5;
  color: #047857;
}

.sat-qb-difficulty--medium {
  background: #fef3c7;
  color: #b45309;
}

.sat-qb-difficulty--hard {
  background: #fee2e2;
  color: #b91c1c;
}

.sat-qb-group-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0 1rem 0.45rem;
  font-size: 0.8rem;
  color: #475569;
}

.sat-qb-panel-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  padding: 0 1rem 0.55rem;
  font-size: 0.68rem;
  color: #64748b;
}

.sat-qb-legend-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 3px;
  margin-right: 0.2rem;
  vertical-align: middle;
}

.sat-qb-legend-dot--unanswered { background: #e2e8f0; }
.sat-qb-legend-dot--correct { background: #22c55e; }
.sat-qb-legend-dot--incorrect { background: #ef4444; }
.sat-qb-legend-dot--flagged { background: #f97316; }
.sat-qb-legend-dot--corrected { background: #8b5cf6; }

.sat-qb-panel > .sat-qb-grid,
.sat-qb-panel > .sat-qb-grid-group {
  flex: 1;
  overflow-y: auto;
  padding: 0 1rem;
}

.sat-qb-grid-group {
  margin-bottom: 0.75rem;
}

.sat-qb-grid-group-label {
  --skill-color: #6366f1;
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--skill-color);
}

.sat-qb-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.35rem;
  padding-bottom: 0.5rem;
}

.sat-qb-cell {
  --skill-color: #94a3b8;
  position: relative;
  appearance: none;
  border: 2px solid #e2e8f0;
  border-left: 4px solid var(--skill-color);
  border-radius: 8px;
  aspect-ratio: 1;
  min-height: 2.4rem;
  background: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  font-size: 0.82rem;
  color: #0f172a;
}

.sat-qb-cell--current {
  border-color: #0f172a;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.15);
}

.sat-qb-cell--correct { background: #f0fdf4; border-color: #86efac; }
.sat-qb-cell--incorrect { background: #fef2f2; border-color: #fca5a5; }
.sat-qb-cell--flagged { background: #fff7ed; border-color: #fdba74; }
.sat-qb-cell--corrected { background: #f5f3ff; border-color: #c4b5fd; }

.sat-qb-cell-icon {
  position: absolute;
  top: 2px;
  right: 3px;
  font-size: 0.58rem;
  line-height: 1;
}

.sat-qb-panel-jump {
  padding: 0.55rem 1rem 0.85rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 0.82rem;
}

.sat-qb-panel-jump input {
  width: 4rem;
  margin-left: 0.35rem;
  padding: 0.25rem 0.4rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}

.sat-rush-plan {
  margin: 1rem 0;
  padding-left: 1.2rem;
  color: #475569;
  line-height: 1.6;
}

.sat-rush-note {
  font-size: 0.9rem;
  color: #64748b;
}

/* ── SAT Results / analytics ── */
.sat-results-page {
  max-width: 1080px;
}

.sat-results-loading {
  padding: 2rem 0;
  color: #64748b;
}

.sat-results-head {
  margin-bottom: 1.25rem;
}

.sat-results-teacher-note {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  font-size: 0.9rem;
}

.sat-results-time-tabs {
  margin-bottom: 1.25rem;
}

.sat-results-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.sat-results-stat-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 1rem 1.05rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.sat-results-stat-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #64748b;
}

.sat-results-stat-value {
  margin: 0.35rem 0 0;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.1;
  color: #0f172a;
}

.sat-results-stat-of {
  font-size: 1rem;
  font-weight: 600;
  color: #94a3b8;
}

.sat-results-stat-hint {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

.sat-results-empty-banner {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef2ff 0%, #f0fdfa 100%);
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.sat-results-empty-banner p {
  margin: 0 0 0.75rem;
  color: #334155;
  line-height: 1.5;
}

.sat-results-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sat-results-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sat-results-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sat-results-panel {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 1.1rem 1.15rem 1.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.sat-results-panel--wide {
  margin-bottom: 0;
}

.sat-results-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.sat-results-panel-head h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #0f172a;
}

.sat-results-panel-note {
  font-size: 0.78rem;
  color: #94a3b8;
  white-space: nowrap;
}

.sat-results-panel-sub {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: #64748b;
}

.sat-results-legend {
  display: flex;
  gap: 0.85rem;
  font-size: 0.78rem;
  color: #64748b;
}

.sat-results-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.sat-results-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  font-style: normal;
}

.sat-results-legend i.ok {
  background: #22c55e;
}

.sat-results-legend i.bad {
  background: #f87171;
}

.sat-results-weekly {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  min-height: 140px;
  padding-top: 0.5rem;
  overflow-x: auto;
}

.sat-results-week-col {
  flex: 1 0 42px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.sat-results-week-bar {
  width: 100%;
  max-width: 36px;
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-start;
  border-radius: 8px 8px 4px 4px;
  overflow: hidden;
  background: #f1f5f9;
}

.sat-results-week-correct {
  display: block;
  width: 100%;
  background: #22c55e;
}

.sat-results-week-wrong {
  display: block;
  width: 100%;
  background: #fca5a5;
}

.sat-results-week-label {
  font-size: 0.62rem;
  color: #94a3b8;
  text-align: center;
  line-height: 1.2;
}

.sat-results-diag-score {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin: 0.5rem 0 0.85rem;
}

.sat-results-diag-big {
  font-size: 2.2rem;
  font-weight: 800;
  color: #4f46e5;
  line-height: 1;
}

.sat-results-diag-sub {
  font-size: 0.88rem;
  color: #64748b;
}

.sat-results-diag-sections {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.sat-results-diag-sec {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 0.88rem;
}

.sat-results-diag-sec-name {
  color: #475569;
}

.sat-results-diag-sec-sub {
  font-size: 0.78rem;
  color: #94a3b8;
}

.sat-results-focus-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.sat-results-focus-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #fafafa;
}

.sat-results-focus-rank {
  font-size: 1.35rem;
  font-weight: 700;
  color: #cbd5e1;
  line-height: 1;
}

.sat-results-focus-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 0.2rem;
}

.sat-results-focus-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #b45309;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
}

.sat-results-focus-meta {
  font-size: 0.78rem;
  color: #94a3b8;
}

.sat-results-focus-title {
  display: block;
  font-size: 0.95rem;
  color: #0f172a;
}

.sat-results-focus-side {
  text-align: right;
}

.sat-results-focus-pct {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
}

.sat-results-practice-link {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  margin-top: 0.15rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #4f46e5;
  cursor: pointer;
}

.sat-results-practice-link:hover {
  text-decoration: underline;
}

.tone-strong {
  color: #15803d;
}

.tone-mid {
  color: #b45309;
}

.tone-weak {
  color: #dc2626;
}

.tone-muted {
  color: #94a3b8;
}

.sat-results-skill-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.25rem 0.65rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.sat-results-skill-row:last-child {
  border-bottom: none;
}

.sat-results-skill-head {
  grid-column: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.sat-results-skill-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
}

.sat-results-skill-meta {
  font-size: 0.75rem;
  color: #94a3b8;
}

.sat-results-skill-track {
  grid-column: 1 / -1;
  height: 8px;
  border-radius: 999px;
  background: #f1f5f9;
  overflow: hidden;
}

.sat-results-skill-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  opacity: 0.85;
}

.sat-results-skill-pct {
  grid-column: 2;
  grid-row: 1;
  font-size: 0.88rem;
  font-weight: 700;
}

.sat-results-heatmap-wrap {
  margin-top: 0.5rem;
}

.sat-results-heatmap-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  max-width: 560px;
  margin-bottom: 4px;
  font-size: 0.68rem;
  color: #94a3b8;
  text-align: center;
}

.sat-results-heatmap {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  max-width: 560px;
}

.sat-results-heat-cell {
  aspect-ratio: 1;
  border-radius: 4px;
  background: #f1f5f9;
}

.sat-results-heat-cell.lvl-1 {
  background: #dbeafe;
}

.sat-results-heat-cell.lvl-2 {
  background: #93c5fd;
}

.sat-results-heat-cell.lvl-3 {
  background: #3b82f6;
}

.sat-results-heat-cell.lvl-4 {
  background: #1d4ed8;
}

.sat-results-empty-copy {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
}

.sat-results-cta {
  appearance: none;
  border: none;
  border-radius: 10px;
  padding: 0.55rem 0.95rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  background: #4f46e5;
  cursor: pointer;
}

.sat-results-cta:hover {
  background: #4338ca;
}

.sat-results-cta--ghost {
  color: #4f46e5;
  background: #eef2ff;
}

.sat-results-cta--ghost:hover {
  background: #e0e7ff;
}

.sat-topic-accuracy--muted {
  color: #94a3b8;
  font-weight: 500;
}

.sat-topic-action-cell {
  text-align: right;
  white-space: nowrap;
}

.sat-topic-open-link {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #4f46e5;
  cursor: pointer;
}

.sat-topic-open-link:hover {
  text-decoration: underline;
}

.sat-topic-open-link--disabled {
  color: #94a3b8;
  font-weight: 500;
  cursor: default;
}

.sat-topic-diff-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.35rem;
}

.sat-topic-diff-link {
  appearance: none;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  background: #fff;
  font: inherit;
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
}

.sat-topic-diff-link:hover {
  border-color: #cbd5e1;
  color: #334155;
}

.sat-topic-domain-row--link {
  cursor: pointer;
}

.sat-topic-domain-row--link:hover td {
  background: #f8fafc;
}

.sat-qb-section-nav {
  flex-shrink: 0;
  padding: 0.65rem 1rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 168px;
  overflow-y: auto;
}

.sat-qb-section-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}

.sat-qb-section-group-label {
  flex: 0 0 100%;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.sat-qb-section-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.sat-qb-section-link {
  appearance: none;
  border: 1px solid #cbd5e1;
  border-left: 3px solid var(--skill-color, #6366f1);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.28rem 0.65rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.sat-qb-section-link:hover {
  border-color: #94a3b8;
  background: #fff;
}

.sat-qb-section-link--active {
  background: #eef2ff;
  border-color: #6366f1;
  color: #312e81;
}

.sat-qb-section-link--disabled {
  border: 1px dashed #e2e8f0;
  border-left: 3px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #94a3b8;
  font-size: 0.78rem;
  padding: 0.28rem 0.65rem;
}

.sat-qb-section-link-count {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 0.05rem 0.35rem;
}

.sat-qb-section-link--active .sat-qb-section-link-count {
  background: #c7d2fe;
  color: #3730a3;
}

.sat-results-panel--saved {
  margin-bottom: 1.25rem;
}

/* ~4 saved-question cards visible; scroll for the rest (teacher review) */
.sat-results-saved-scroll {
  --sat-saved-row: 5rem;
  --sat-saved-gap: 0.65rem;
  --sat-saved-visible: 4;
  margin-top: 0.15rem;
  padding-right: 0.35rem;
  scrollbar-gutter: stable;
}

.sat-results-saved-scroll--clip {
  height: calc(
    var(--sat-saved-row) * var(--sat-saved-visible) + var(--sat-saved-gap) *
      (var(--sat-saved-visible) - 1)
  );
  max-height: calc(
    var(--sat-saved-row) * var(--sat-saved-visible) + var(--sat-saved-gap) *
      (var(--sat-saved-visible) - 1)
  );
  overflow-y: scroll;
  overflow-x: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.5rem 0.35rem 0.5rem 0.5rem;
  background: linear-gradient(#f8fafc, #fff);
  -webkit-overflow-scrolling: touch;
}

.sat-results-saved-scroll--clip .sat-results-saved-list {
  padding-bottom: 0.15rem;
}

.sat-results-saved-scroll:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
  border-radius: 8px;
}

.sat-results-saved-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sat-results-saved-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  flex-shrink: 0;
  box-sizing: border-box;
}

.sat-results-saved-body {
  min-width: 0;
  flex: 1;
}

.sat-results-saved-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.sat-results-saved-context {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: #64748b;
}

.sat-results-saved-preview {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sat-results-saved-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
}

.sat-results-saved-remove {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.78rem;
  color: #94a3b8;
  cursor: pointer;
}

.sat-results-saved-remove:hover {
  color: #dc2626;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .sat-results-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sat-results-grid,
  .sat-results-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .sat-results-summary {
    grid-template-columns: 1fr;
  }

  .sat-results-focus-item {
    grid-template-columns: auto 1fr;
  }

  .sat-results-focus-side {
    grid-column: 2;
    text-align: left;
  }
}

/* ── Study Abroad AI assessment ── */
.sa-journey-badge {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1d4ed8;
}

.sa-journey {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.sa-journey-step {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: #f1f5f9;
}

.sa-journey-step span {
  display: inline-grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  background: #e2e8f0;
  color: #64748b;
}

.sa-journey-step.is-active {
  color: #1d4ed8;
  background: #eff6ff;
}

.sa-journey-step.is-active span {
  background: #2563eb;
  color: #fff;
}

.sa-journey-step.is-done {
  color: #0f766e;
}

.sa-journey-step.is-done span {
  background: #10b981;
  color: #fff;
}

.sa-guides-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.85rem;
}

.sa-guides-tab {
  appearance: none;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}

.sa-guides-tab.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.sa-guides-panel {
  margin-top: 1rem;
}

.sa-guides-country-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.sa-guides-pill {
  appearance: none;
  border: 1px solid #e2e8f0;
  background: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  color: #475569;
}

.sa-guides-pill.active {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.sa-guides-country-block {
  padding: 0 0 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.sa-guides-country-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.sa-country-field {
  position: relative;
}

.sa-country-picker {
  position: relative;
}

.sa-country-search {
  width: 100%;
  font: inherit;
  font-weight: 500;
  padding: 0.65rem 0.75rem;
  padding-right: 2rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242 1.156a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E") no-repeat right 0.65rem center;
  box-sizing: border-box;
}

.sa-country-picker.is-valid .sa-country-search {
  border-color: #34d399;
}

.sa-country-picker.is-invalid .sa-country-search {
  border-color: #f87171;
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.2);
}

.sa-country-list {
  position: absolute;
  z-index: 50;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  padding: 0.35rem;
}

.sa-country-list.hidden {
  display: none;
}

.sa-country-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.88rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  color: #0f172a;
}

.sa-country-option:hover,
.sa-country-option.is-active {
  background: #eff6ff;
  color: #1d4ed8;
}

.sa-country-option.is-selected {
  font-weight: 700;
}

.sa-country-popular {
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.sa-country-empty {
  padding: 0.65rem;
  font-size: 0.86rem;
  color: #64748b;
}

.sa-quota-banner {
  margin: 0.75rem 0 0;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: #eff6ff;
  color: #1e40af;
  font-size: 0.84rem;
  font-weight: 600;
}

.sa-limit-msg {
  margin: 0.5rem 0 0;
  font-size: 0.86rem;
  color: #b45309;
  text-align: center;
}

.sa-link-btn {
  appearance: none;
  border: none;
  background: none;
  font: inherit;
  font-weight: 700;
  color: #2563eb;
  cursor: pointer;
  text-decoration: underline;
}

.sa-step-nav {
  display: flex;
  gap: 0.65rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.sa-step-nav--split {
  justify-content: space-between;
  align-items: center;
}

.sa-checkbox-label {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.55rem !important;
  font-weight: 500 !important;
  font-size: 0.88rem !important;
  line-height: 1.4;
}

.sa-checkbox-label input {
  margin-top: 0.2rem;
  width: auto;
}

.sa-assessment-out {
  margin-top: 0.75rem;
}

.sa-assessment-out:empty {
  display: none;
}

.sa-overview-hero {
  margin: 0 0 1.25rem;
  padding: 1.25rem 1.35rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid #bfdbfe;
}

.sa-overview-hero-badge {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1d4ed8;
}

.sa-overview-hero h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  color: #0f172a;
}

.sa-overview-hero p {
  margin: 0 0 0.85rem;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 42rem;
}

.sa-assessment-page {
  max-width: 820px;
}

.sa-assessment-head {
  margin-bottom: 1rem;
}

.sa-assessment-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.25rem;
}

.sa-assessment-panel h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.sa-assessment-sub {
  margin: 0 0 1rem;
  color: #64748b;
  font-size: 0.9rem;
}

.sa-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sa-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
}

.sa-field-hint {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 400;
  line-height: 1.35;
}

.sa-required {
  color: #dc2626;
  font-weight: 800;
}

.sa-form input,
.sa-form textarea,
.sa-form select {
  font: inherit;
  font-weight: 500;
  padding: 0.65rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
}

.sa-form textarea {
  resize: vertical;
  min-height: 4.5rem;
  line-height: 1.45;
}

.sa-field-hint--block {
  display: block;
  margin-top: -0.45rem;
}

.sa-form-row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

@media (max-width: 560px) {
  .sa-form-row--2 {
    grid-template-columns: 1fr;
  }
}

.sa-btn {
  appearance: none;
  border: none;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
}

.sa-btn--primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
}

.sa-btn--primary:hover {
  filter: brightness(1.05);
}

.sa-btn--ghost {
  background: #f1f5f9;
  color: #334155;
}

.sa-btn--wide {
  width: 100%;
  margin-top: 0.35rem;
}

.sa-loading {
  padding: 2rem 1rem;
  text-align: center;
  color: #64748b;
}

.sa-suggestion-grid {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.sa-suggestion-card {
  appearance: none;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  padding: 1rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sa-suggestion-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

.sa-suggestion-match {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #0f766e;
  background: #ccfbf1;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}

.sa-suggestion-card strong {
  display: block;
  font-size: 1rem;
  color: #0f172a;
  margin-bottom: 0.2rem;
}

.sa-suggestion-meta {
  display: block;
  font-size: 0.82rem;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.sa-suggestion-card p {
  margin: 0;
  font-size: 0.86rem;
  color: #475569;
  line-height: 1.4;
}

.sa-suggestion-card--analyzed {
  cursor: default;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sa-suggestion-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sa-suggestion-likelihoods {
  display: grid;
  gap: 0.35rem;
  margin: 0.25rem 0;
}

.sa-mini-likelihood {
  display: grid;
  grid-template-columns: 5.5rem 2.5rem 1fr;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
}

.sa-mini-likelihood__label {
  color: #64748b;
  font-weight: 600;
}

.sa-mini-likelihood__pct {
  font-weight: 800;
}

.sa-mini-likelihood__pct--strong { color: #0f766e; }
.sa-mini-likelihood__pct--mid { color: #b45309; }
.sa-mini-likelihood__pct--weak { color: #b91c1c; }

.sa-mini-likelihood__track {
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  display: block;
}

.sa-mini-likelihood__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.sa-btn--card {
  width: 100%;
  margin-top: 0.25rem;
}

.sa-ai-source {
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-size: 0.84rem;
  line-height: 1.45;
}

.sa-ai-source--live {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.sa-ai-source--fallback {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
}

.sa-batch-note {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.75rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  font-size: 0.84rem;
  color: #1e40af;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.sa-batch-note--flash {
  background: #dbeafe;
  border-color: #60a5fa;
}

.sa-priority-toast {
  margin: 0.75rem 0 0;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
  font-size: 0.84rem;
  font-weight: 600;
}

.sa-refinement-panel {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
}

.sa-refinement-checks {
  border: none;
  padding: 0;
  margin: 0 0 0.5rem;
}

.sa-refinement-checks legend {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.35rem;
}

.sa-refinement-check {
  font-weight: 500;
}

.sa-loading-inline {
  margin: 0;
  font-size: 0.82rem;
  color: #94a3b8;
}

.sa-deep-dive .sa-deep-dive__head {
  margin-bottom: 1rem;
}

.sa-deep-section {
  margin-bottom: 1.25rem;
}

.sa-deep-section h4 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: #0f172a;
}

.sa-reasoning-list,
.sa-improve-list {
  margin: 0;
  padding-left: 1.15rem;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.45;
}

.sa-improve-impact {
  color: #0f766e;
  font-weight: 600;
}

.sa-scholarship-card {
  padding: 0.65rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 0.5rem;
  background: #fff;
}

.sa-facts-row {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .sa-facts-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sa-facts-subhead {
  margin-top: 0.75rem;
  font-size: 0.88rem;
}

.sa-likelihood-grid--compact {
  margin-top: 0.75rem;
}

.sa-likelihood-grid {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
}

.sa-contact-team-note {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.45;
  max-width: 36rem;
}

.sa-contact-context {
  margin: 1rem 0 1.25rem;
  padding: 1rem;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #f0f9ff;
}

.sa-contact-context h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: #0f172a;
}

.sa-contact-context__dl {
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.84rem;
}

.sa-contact-context__dl dt {
  font-weight: 700;
  color: #475569;
}

.sa-contact-context__dl dd {
  margin: 0 0 0.35rem;
  color: #0f172a;
}

.sa-contact-alt {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
}

.sa-priority-toggle {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

.sa-priority-toggle__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.sa-priority-toggle__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.sa-priority-btn {
  appearance: none;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
}

.sa-priority-btn.is-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

.sa-priority-btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.sa-priority-toggle__hint {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  color: #64748b;
}

.sa-top-pick {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.85rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  font-size: 0.86rem;
  color: #065f46;
}

.sa-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 800;
}

.sa-suggestion-card--top-pick {
  border-color: #93c5fd;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1);
}

.sa-suggestion-card--top-pick .sa-rank-badge {
  background: #2563eb;
  color: #fff;
}

.sa-top-pick-badge {
  display: inline-block;
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #1d4ed8;
  background: #dbeafe;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.sa-mini-likelihood--emphasis {
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.sa-priority-recap {
  margin-top: -0.35rem;
}

@media (min-width: 640px) {
  .sa-likelihood-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.sa-likelihood-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155;
}

.sa-likelihood-track {
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.sa-likelihood-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.sa-likelihood-fill--strong {
  background: linear-gradient(90deg, #059669, #10b981);
}

.sa-likelihood-fill--mid {
  background: linear-gradient(90deg, #d97706, #f59e0b);
}

.sa-likelihood-fill--weak {
  background: linear-gradient(90deg, #dc2626, #f87171);
}

.sa-result-cards {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

@media (min-width: 640px) {
  .sa-result-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.sa-result-cards article {
  background: #f8fafc;
  border-radius: 12px;
  padding: 0.85rem;
}

.sa-result-cards h4 {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
}

.sa-result-cards p {
  margin: 0;
  font-size: 0.86rem;
  color: #475569;
  line-height: 1.45;
}

.sa-tags ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  color: #475569;
  font-size: 0.86rem;
}

.sa-tags--gaps ul {
  color: #64748b;
}

.sa-disclaimer {
  margin: 1rem 0;
  font-size: 0.78rem;
  color: #94a3b8;
}

.sa-contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.45);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.sa-contact-modal {
  width: min(100%, 420px);
  background: #fff;
  border-radius: 16px;
  padding: 1.35rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

.sa-contact-badge {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0f766e;
}

.sa-contact-modal h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.sa-contact-copy {
  margin: 0 0 1rem;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.45;
}

.sa-contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sa-contact-toast {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.9rem;
}

.sa-contact-toast[role="alert"] {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.sa-contact-toast--yes {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.sa-leads-page {
  max-width: 920px;
}

.sa-leads-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

.sa-leads-count {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: #64748b;
}

.sa-leads-list {
  display: grid;
  gap: 0.85rem;
}

.sa-leads-empty {
  text-align: center;
}

.sa-lead-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1rem 1.1rem;
}

.sa-lead-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.sa-lead-card__name {
  font-size: 1rem;
  color: #0f172a;
}

.sa-lead-card__meta {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

.sa-lead-card__badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0369a1;
  background: #e0f2fe;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
}

.sa-lead-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  font-size: 0.88rem;
}

@media (max-width: 640px) {
  .sa-lead-card__grid {
    grid-template-columns: 1fr;
  }
}

.sa-lead-k {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  margin-bottom: 0.15rem;
}

.sa-lead-card a {
  color: #2563eb;
  text-decoration: none;
  word-break: break-all;
}

.sa-lead-phone {
  font-weight: 700;
  font-size: 1rem;
}

.sa-lead-missing {
  color: #b45309;
  font-weight: 600;
}

.sa-leads-incomplete {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed #cbd5e1;
}

.sa-leads-incomplete h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: #b45309;
}

/* Study Abroad — services & pricing */
.sa-services-page .sa-assessment {
  max-width: 820px;
}

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

.sa-service-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1rem 1.1rem;
  background: #fff;
}

.sa-service-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.sa-service-card__title {
  margin: 0;
  font-size: 1rem;
  color: #0f172a;
}

.sa-service-card__price {
  flex-shrink: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}

.sa-service-card__note {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
}

.sa-service-card__summary {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.45;
}

.sa-service-card__list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.86rem;
  color: #475569;
  line-height: 1.5;
}

.sa-services-highlight {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.92rem;
  color: #0f172a;
}

.sa-services-highlight--free {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.sa-services-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.sa-services-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.sa-services-cta > .sa-assessment-sub {
  margin: 0;
}

.sa-services-premium-badge {
  display: inline-block;
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #047857;
  background: #d1fae5;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}

.platform-premium-gate-secondary {
  margin-top: 0.5rem;
  width: 100%;
  max-width: 280px;
}

.sa-motivation-personal {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
}

.sa-motivation-ten-words-banner {
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 0.88rem;
  color: #1e40af;
}

.sa-motivation-plan-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 720px) {
  .sa-motivation-plan-picker {
    grid-template-columns: 1fr;
  }
}

.sa-motivation-plan-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.15rem 1.2rem;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.sa-motivation-plan-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.1);
}

.sa-motivation-plan-card--ai {
  background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
}

.sa-motivation-plan-card__badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  margin-bottom: 0.5rem;
}

.sa-motivation-plan-card__badge--premium {
  color: #047857;
  background: #d1fae5;
}

.sa-motivation-plan-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: #0f172a;
}

.sa-motivation-plan-card__price {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #2563eb;
}

.sa-motivation-plan-card__cta {
  display: block;
  margin-top: auto;
  padding-top: 0.85rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #2563eb;
}

.sa-motivation-plan-card__cta--locked {
  color: #64748b;
}

.sa-motivation-back {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0;
  border: none;
  background: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: #2563eb;
  cursor: pointer;
}

.sa-motivation-back:hover {
  text-decoration: underline;
}

.sa-motivation-input--over {
  border-color: #f59e0b !important;
  background: #fffbeb;
}

.sa-motivation-form__hint {
  font-size: 0.78rem;
  font-weight: 500;
  color: #64748b;
}

.sa-motivation-word-count {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

.sa-motivation-word-count--over {
  color: #b45309;
  font-weight: 700;
}

.sa-motivation-page .sa-assessment {
  max-width: 920px;
}

.sa-motivation-plans {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sa-motivation-plan {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.15rem 1.25rem;
  background: #fff;
}

.sa-motivation-plan--ai {
  border-color: #c7d2fe;
  background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
}

.sa-motivation-plan--teacher {
  border-color: #e2e8f0;
}

.sa-motivation-plan__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.sa-motivation-plan__title {
  margin: 0;
  font-size: 1.05rem;
  color: #0f172a;
}

.sa-motivation-plan__tag {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

.sa-motivation-plan__summary {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.45;
}

.sa-service-card__price--included {
  color: #047857;
  background: #d1fae5;
}

.sa-motivation-form {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed #e2e8f0;
}

.sa-motivation-form__title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: #334155;
}

.sa-motivation-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 0.85rem;
  margin-bottom: 0.65rem;
}

@media (max-width: 640px) {
  .sa-motivation-form__grid {
    grid-template-columns: 1fr;
  }
}

.sa-motivation-form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.55rem;
}

.sa-motivation-form input,
.sa-motivation-form textarea {
  font-weight: 400;
  font-size: 0.9rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
}

.sa-motivation-uni {
  margin: 0.75rem 0;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.sa-motivation-uni legend {
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  padding: 0 0.25rem;
}

.sa-motivation-limit {
  margin: 0.35rem 0 0.75rem;
}

.sa-motivation-plan__locked {
  margin-top: 0.75rem;
  padding: 0.85rem;
  border-radius: 12px;
  background: #f8fafc;
}

.sa-motivation-status {
  margin-top: 0.65rem;
  font-size: 0.88rem;
}

.sa-motivation-status--loading {
  color: #2563eb;
}

.sa-motivation-status--ok {
  color: #047857;
}

.sa-motivation-status--error {
  color: #b45309;
}

.sa-motivation-results {
  margin-top: 1rem;
}

.sa-motivation-results__title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: #0f172a;
}

.sa-motivation-letter-result {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 0.85rem;
  background: #fff;
}

.sa-motivation-letter-result__head {
  margin-bottom: 0.65rem;
}

.sa-motivation-letter-result__head h5 {
  margin: 0;
  font-size: 0.95rem;
  color: #0f172a;
}

.sa-motivation-letter-result__meta {
  font-size: 0.82rem;
  color: #64748b;
}

.sa-motivation-letter-result__body {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #334155;
  margin-bottom: 0.65rem;
  white-space: pre-wrap;
}

.sa-lead-card a:hover {
  text-decoration: underline;
}

.sa-lead-details {
  margin-top: 0.85rem;
  font-size: 0.88rem;
}

.sa-lead-details summary {
  cursor: pointer;
  font-weight: 700;
  color: #475569;
}

.sa-lead-dl {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.35rem 0.75rem;
  margin: 0.65rem 0 0;
}

.sa-lead-dl dt {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
}

.sa-lead-dl dd {
  margin: 0;
  color: #334155;
}

/* —— SAT Explanations + Drills —— */
.sat-ed-page {
  max-width: 920px;
}

.sat-ed-loading {
  padding: 2rem 1rem;
  color: #64748b;
}

.sat-ed-hub-head {
  margin-bottom: 1.5rem;
}

.sat-ed-section {
  margin-bottom: 2rem;
}

.sat-ed-section-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.sat-ed-section-intro {
  margin: 0 0 0.85rem;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
}

.sat-ed-chapter-grid,
.sat-ed-drill-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.sat-ed-chapter-card,
.sat-ed-drill-card {
  padding: 1rem 1.05rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.sat-ed-chapter-badge {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4338ca;
  background: #eef2ff;
}

.sat-ed-card-title,
.sat-ed-drill-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.sat-ed-card-sub {
  margin: 0 0 0.45rem;
  color: #475569;
  font-size: 0.88rem;
}

.sat-ed-skill-tag {
  display: inline-block;
  margin: 0 0 0.55rem;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #0f766e;
  background: #ecfdf5;
}

.sat-ed-card-teaser {
  margin: 0 0 0.75rem;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.45;
}

.sat-ed-open-btn,
.sat-ed-back {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: #4f46e5;
  cursor: pointer;
}

.sat-ed-open-btn:hover,
.sat-ed-back:hover {
  text-decoration: underline;
}

.sat-ed-drill-body {
  margin: 0;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.5;
}

.sat-ed-videos-soon {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #64748b;
  font-size: 0.88rem;
}

.sat-ed-back {
  margin-bottom: 1rem;
}

.sat-ed-chapter-head {
  margin-bottom: 1rem;
}

.sat-ed-chapter-title {
  margin: 0.25rem 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
}

.sat-ed-chapter-sub {
  margin: 0 0 0.5rem;
  color: #475569;
}

.sat-ed-teacher-note {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid #bfdbfe;
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
  color: #1e3a5f;
  font-size: 0.88rem;
  line-height: 1.5;
}

.sat-ed-md-body {
  padding: 1rem 0 2rem;
  line-height: 1.65;
  color: #1e293b;
}

.sat-ed-md-h2 {
  margin: 1.5rem 0 0.65rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

.sat-ed-md-h3 {
  margin: 1.35rem 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.sat-ed-md-h4 {
  margin: 1rem 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.sat-ed-md-p {
  margin: 0 0 0.75rem;
}

.sat-ed-md-ul,
.sat-ed-md-ol {
  margin: 0 0 0.85rem 1.25rem;
  padding: 0;
}

.sat-ed-md-ul li,
.sat-ed-md-ol li {
  margin-bottom: 0.35rem;
}

.sat-ed-md-quote {
  margin: 0 0 0.85rem;
  padding: 0.75rem 1rem;
  border-left: 3px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
}

.sat-ed-md-quote p {
  margin: 0 0 0.5rem;
}

.sat-ed-md-quote p:last-child {
  margin-bottom: 0;
}

.sat-ed-underline {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
  text-decoration-skip-ink: none;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.sat-ed-md-hr {
  margin: 1.25rem 0;
  border: none;
  border-top: 1px solid #e2e8f0;
}

.sat-ed-md-body code {
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  background: #f1f5f9;
  font-size: 0.88em;
}

.sat-ed-md-table-wrap {
  margin: 1rem 0 1.25rem;
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.sat-ed-md-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.45;
}

.sat-ed-md-table th,
.sat-ed-md-table td {
  padding: 0.55rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
}

.sat-ed-md-table th {
  background: #f8fafc;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
}

.sat-ed-md-table tbody tr:last-child td {
  border-bottom: none;
}

.sat-ed-md-table tbody tr:nth-child(even) td {
  background: #fafbfd;
}

.sat-ed-md-options {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 1rem 0 1.25rem;
}

.sat-ed-md-option {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  line-height: 1.5;
}

.sat-ed-md-option__letter {
  flex: 0 0 auto;
  min-width: 1.5rem;
  font-weight: 700;
  color: #2563eb;
}

.sat-ed-md-option__text {
  flex: 1 1 auto;
  color: #334155;
}

.sat-ed-md-answer {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-weight: 600;
}

.sat-ed-reveal {
  margin: 1rem 0 1.5rem;
}

.sat-ed-reveal-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.95rem;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.sat-ed-reveal-btn:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

.sat-ed-reveal-panel {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.sat-ed-reveal-panel .sat-ed-md-p,
.sat-ed-reveal-panel .sat-ed-md-explain-line,
.sat-ed-reveal-panel .sat-ed-md-tip {
  margin-top: 0.65rem;
  margin-bottom: 0;
}

.sat-ed-reveal-panel .sat-ed-md-p:first-child,
.sat-ed-reveal-panel .sat-ed-md-answer:first-child {
  margin-top: 0;
}

.sat-ed-md-explain-head {
  margin: 0.75rem 0 0.35rem;
  font-weight: 700;
  color: #0f172a;
}

.sat-ed-md-explain-line,
.sat-ed-md-tip {
  margin: 0.55rem 0;
  color: #475569;
  line-height: 1.55;
}

.sat-ed-test-q {
  margin: 1.25rem 0 1.75rem;
  padding: 1rem 1.1rem;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
}

.sat-ed-test-q__head {
  margin-top: 0;
}

.sat-ed-test-q__num {
  font-weight: 700;
  color: #0f172a;
}

.sat-ed-answer-key-note {
  margin: 0.5rem 0 1.5rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.92rem;
}

.sat-ed-video-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  margin-bottom: 1rem;
}

.sat-ed-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #0f172a;
}

.sat-ed-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.sat-ed-video-card video {
  width: 100%;
  border-radius: 10px;
}

.sat-ed-error {
  color: #b91c1c;
}

/* General English — Conversation (unit-linked speaking) */
.ge-conversation-page .ge-conversation-card--locked {
  opacity: 0.92;
  border-style: dashed;
}

.ge-conversation-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.ge-conversation-badge--open {
  background: #dcfce7;
  color: #166534;
}

.ge-conversation-badge--locked {
  background: #f1f5f9;
  color: #64748b;
}

.ge-conversation-link-vocab {
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.ge-conversation-section {
  margin-bottom: 2rem;
}

.ge-conversation-section-title {
  font-size: 1.1rem;
  margin: 0 0 1rem;
  color: #0f172a;
}

.ge-conversation-question {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.ge-conversation-prompt {
  font-weight: 600;
  margin: 0 0 0.85rem;
  color: #0f172a;
}

.ge-conversation-criteria {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
}

.ge-conversation-criteria-title {
  margin: 0 0 0.45rem;
  font-weight: 700;
  color: #1e3a8a;
  font-size: 0.92rem;
}

.ge-conversation-criteria-list {
  margin: 0;
  padding-left: 1.15rem;
  color: #334155;
  font-size: 0.88rem;
  line-height: 1.45;
}

.ge-conversation-speak-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.35rem;
}

.ge-conversation-rec-btn {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.ge-conversation-rec-btn--start {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.ge-conversation-rec-btn--start:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ge-conversation-rec-btn--stop:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ge-conversation-question--recording .ge-conversation-rec-btn--stop {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.ge-conversation-rec-timer {
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
  color: #64748b;
}

.ge-conversation-rec-status {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: #64748b;
  min-height: 1.2em;
}

.ge-conversation-playback {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0 0 0.65rem;
}

.ge-conversation-playback.hidden {
  display: none;
}

.ge-conversation-answer-label {
  display: block;
  font-size: 0.9rem;
  color: #475569;
  margin-bottom: 0.75rem;
}

.ge-conversation-answer {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
  resize: vertical;
  min-height: 3.5rem;
}

.ge-conversation-submit {
  margin-top: 0.25rem;
}

.ge-conversation-feedback {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.ge-conversation-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.65rem;
  font-size: 0.9rem;
}

.ge-conversation-feedback-text {
  margin: 0 0 0.5rem;
  line-height: 1.5;
}

.ge-conversation-vocab-used,
.ge-conversation-vocab-missed {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: #475569;
}

.ge-conversation-learn {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px dashed #cbd5e1;
}

.ge-conversation-learn-title {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: #334155;
}

.ge-conversation-learn-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.ge-conv-vocab-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  background: #fff;
}

.ge-conv-vocab-card summary {
  cursor: pointer;
  font-size: 0.9rem;
  color: #0f766e;
}

.ge-conv-vocab-meaning {
  margin: 0.4rem 0 0.25rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #334155;
}

.ge-conv-vocab-example {
  margin: 0.2rem 0;
  font-size: 0.85rem;
  color: #64748b;
}

.ge-conv-vocab-practice {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  color: #475569;
}

.ge-conversation-model-open {
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: #eff6ff;
  border-radius: 8px;
  border: 1px solid #bfdbfe;
}

.ge-conversation-model-open--revealed {
  animation: ge-conversation-reveal 0.35s ease-out;
}

@keyframes ge-conversation-reveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ge-conversation-model-label {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  color: #1e40af;
}

.ge-conversation-model-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #1e293b;
}

.ge-conversation-sample-preview {
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.ge-conversation-sample-preview-summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1d4ed8;
}

.ge-conversation-sample-preview-text {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #334155;
}

.ge-homework-sample-answer {
  margin-top: 0.85rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #f0f9ff;
}

.ge-homework-sample-answer-summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1d4ed8;
}

.ge-homework-sample-answer-list {
  margin: 0.55rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #334155;
}

.ge-conversation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.ge-conversation-action-btn {
  font-size: 0.85rem;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  cursor: pointer;
}

.ge-conversation-action-btn:hover {
  background: #f1f5f9;
}

.ge-conversation-action-btn--flash {
  border-color: #0f766e;
  color: #0f766e;
}

.ge-conversation-model {
  margin-top: 0.65rem;
  font-size: 0.9rem;
}

.ge-conversation-model summary {
  cursor: pointer;
  font-weight: 600;
  color: #1d4ed8;
}

/* Single-press command buttons (see platform/core/single-action-button.js) */
button.single-action-locked,
button.single-action-locked:disabled {
  opacity: 0.55;
  cursor: not-allowed !important;
  filter: grayscale(0.25);
  box-shadow: none;
}
