:root {
  color-scheme: light;
  --bg: #f7f5f0;
  --bg-alt: #f0eee8;
  --card: #fffefb;
  --card-strong: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --quiet: #9ca3af;
  --border: #e5e1d8;
  --border-strong: #d8d2c6;
  --gold: #c8a24a;
  --gold-dark: #a9852f;
  --gold-soft: #f4ead2;
  --mock-card-untaken-bg: #fffefa;
  --mock-card-untaken-hover-bg: #fff8ea;
  --mock-card-untaken-border: rgba(31, 35, 45, 0.10);
  --mock-card-taken-bg: #f8f1e3;
  --mock-card-taken-hover-bg: #f5e7ce;
  --mock-card-taken-border: #d2a94d;
  --mock-card-icon-bg: color-mix(in srgb, var(--writing) 14%, #ffffff);
  --green: #22c55e;
  --red: #ef4444;
  --reading: #64748b;
  --listening: #d9778f;
  --writing: #4fa36f;
  --speaking: #d89a42;
  --vocab: #8b7ac8;
  --shadow: 0 16px 42px rgba(17, 24, 39, 0.08);
  --shadow-soft: 0 10px 28px rgba(17, 24, 39, 0.06);
  --radius: 8px;
  --nav-height: 72px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(200, 162, 74, 0.12), transparent 30rem),
    linear-gradient(180deg, #faf8f3 0%, var(--bg) 42%, #f2f0eb 100%);
  color: var(--text);
  font-family:
    Inter, Geist, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0;
}

body.writing-image-modal-open {
  overflow: hidden;
}

body.site-gate-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

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

button {
  border: 0;
}

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

.app-shell {
  min-height: 100vh;
  padding: calc(var(--nav-height) + 28px) 20px 48px;
}

.container {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.site-gate-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, 0.08), transparent 40%),
    linear-gradient(180deg, #fffefb 0%, #f2f0eb 100%);
}

.site-gate-panel {
  width: min(100%, 440px);
  padding: 28px;
  border: 1px solid rgba(216, 210, 198, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 254, 251, 0.94);
  box-shadow: 0 24px 72px rgba(17, 24, 39, 0.14);
}

.site-gate-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 34px;
}

.site-gate-mark {
  width: 42px;
  height: 42px;
}

.site-gate-copy {
  margin-bottom: 22px;
}

.site-gate-copy h1 {
  margin: 6px 0 8px;
  color: #111827;
  font-size: 2rem;
  line-height: 1.06;
  letter-spacing: 0;
}

.site-gate-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.site-gate-form {
  display: grid;
  gap: 12px;
}

.site-gate-input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.site-gate-input:focus {
  border-color: rgba(200, 162, 74, 0.9);
  box-shadow: 0 0 0 4px rgba(200, 162, 74, 0.16);
}

.site-gate-button {
  min-height: 52px;
  border-radius: var(--radius);
  background: #111827;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.site-gate-button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #202938;
}

.site-gate-button:disabled,
.site-gate-input:disabled {
  cursor: wait;
  opacity: 0.68;
}

.site-gate-error {
  min-height: 20px;
  margin: 0;
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 700;
}

.top-nav {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid rgba(229, 225, 216, 0.88);
  background: rgba(255, 254, 251, 0.84);
  backdrop-filter: blur(18px);
}

.nav-inner {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: var(--nav-height);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
}

.home-top-nav .nav-inner {
  width: 100%;
  max-width: none;
  padding-right: 32px;
  padding-left: 32px;
  display: flex;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-zone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.top-nav .brand-zone {
  transform: none;
}

.home-top-nav .brand-zone {
  transform: none;
}

.header-home-slot {
  position: absolute;
  top: 50%;
  left: clamp(190px, calc((100vw - var(--max)) / 2 + 32px), 340px);
  z-index: 1;
  transform: translateY(-50%);
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(200, 162, 74, 0.32);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #ffffff, #f8efd9);
  color: var(--gold-dark);
  font-weight: 800;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(200, 162, 74, 0.15);
}

.brand-mark img {
  display: block;
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.brand-copy {
  min-width: 0;
}

.brand-name {
  display: block;
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-subtitle {
  display: block;
  margin-top: -2px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
}

.exam-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(229, 225, 216, 0.88);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.exam-home-link .icon {
  width: 15px;
  height: 15px;
}

.exam-home-link:hover {
  border-color: rgba(200, 162, 74, 0.35);
  background: var(--gold-soft);
  color: #6f5415;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(229, 225, 216, 0.8);
  border-radius: 999px;
  background: rgba(240, 238, 232, 0.7);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.nav-link.active {
  background: var(--gold-soft);
  color: #6f5415;
  box-shadow: inset 0 0 0 1px rgba(200, 162, 74, 0.18);
}

.nav-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 10px;
  min-width: 0;
}

.goal-pill,
.badge,
.tiny-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
}

.goal-pill {
  border-color: rgba(200, 162, 74, 0.3);
  background: rgba(244, 234, 210, 0.85);
  color: #6f5415;
}

.avatar-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(200, 162, 74, 0.35);
  border-radius: 50%;
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.avatar-btn:hover {
  transform: translateY(-1px);
  border-color: var(--gold);
  background: #fffaf0;
}

.profile-popover {
  position: absolute;
  top: 50px;
  right: 0;
  width: min(330px, calc(100vw - 32px));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fffefb;
  box-shadow: var(--shadow);
  padding: 14px;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 14px;
  border-bottom: 1px solid var(--border);
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: #6f5415;
  font-weight: 850;
}

.profile-name {
  margin: 0;
  font-weight: 800;
}

.profile-email {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.profile-meta {
  display: grid;
  gap: 8px;
  padding: 14px 8px;
}

.meta-row,
.skill-row,
.criteria-row,
.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.meta-row span:first-child,
.skill-row span:first-child,
.criteria-row span:first-child,
.mini-row span:first-child {
  color: var(--muted);
}

.meta-row strong,
.skill-row strong,
.criteria-row strong,
.mini-row strong {
  text-align: right;
}

.profile-actions {
  display: grid;
  gap: 8px;
}

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

.eyebrow {
  margin: 0 0 6px;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.06;
  font-weight: 850;
}

h2 {
  font-size: clamp(1.28rem, 2vw, 1.72rem);
  line-height: 1.18;
  font-weight: 820;
}

h3 {
  font-size: 1rem;
  line-height: 1.28;
  font-weight: 800;
}

.page-subtitle {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.lift-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.lift-card:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 162, 74, 0.4);
  box-shadow: var(--shadow);
}

.card-pad {
  padding: 22px;
}

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

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

.dashboard-main {
  display: grid;
  gap: 20px;
}

.side-stack {
  display: grid;
  gap: 14px;
}

.daily-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
}

.daily-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(244, 234, 210, 0.7), transparent 38%);
}

.daily-card > * {
  position: relative;
}

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

.card-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 850;
}

.card-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
}

.progress-orb {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background:
    radial-gradient(circle closest-side, #fffefb 74%, transparent 75%),
    conic-gradient(var(--gold) 0deg, #ece7dc 0deg);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 850;
}

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

.task-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(229, 225, 216, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.task-row:hover {
  transform: translateY(-1px);
  border-color: rgba(200, 162, 74, 0.42);
  background: #ffffff;
}

.icon-circle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--accent, var(--gold-dark));
  background: color-mix(in srgb, var(--accent, var(--gold)) 14%, #ffffff);
}

.icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  vertical-align: middle;
}

.task-title {
  margin: 0;
  font-weight: 800;
}

.task-helper,
.muted,
.empty-text,
.small-text {
  color: var(--muted);
}

.task-helper {
  margin: 2px 0 0;
  font-size: 0.9rem;
}

.small-text {
  font-size: 0.86rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

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

.btn-primary {
  background: var(--gold);
  color: #fffefb;
  box-shadow: 0 12px 24px rgba(200, 162, 74, 0.22);
}

.btn-primary:hover {
  background: var(--gold-dark);
}

.btn-secondary {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
}

.btn-secondary:hover {
  border-color: rgba(200, 162, 74, 0.45);
  background: #fffaf0;
}

.btn-quiet {
  background: transparent;
  color: var(--muted);
}

.btn-quiet:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.btn-danger {
  border: 1px solid rgba(239, 68, 68, 0.18);
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
}

.btn-warning {
  border: 1px solid rgba(200, 162, 74, 0.3);
  background: rgba(200, 162, 74, 0.12);
  color: #7a5b13;
}

.btn-warning:hover {
  border-color: rgba(200, 162, 74, 0.48);
  background: rgba(200, 162, 74, 0.18);
}

.btn-small {
  min-height: 32px;
  padding: 0 11px;
  font-size: 0.82rem;
}

.btn-icon {
  width: 38px;
  min-width: 38px;
  padding: 0;
}

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

.stat-card {
  min-height: 142px;
  padding: 18px;
}

.stat-title {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.stat-value {
  margin: 10px 0 5px;
  font-size: 2rem;
  line-height: 1;
  font-weight: 850;
}

.skill-list {
  display: grid;
  gap: 10px;
}

.skill-row {
  padding: 10px 0;
  border-bottom: 1px solid rgba(229, 225, 216, 0.72);
}

.skill-row:last-child {
  border-bottom: 0;
}

.school-interface-page {
  --school-accent: #c2932e;
}

.school-dashboard-grid {
  grid-template-columns: minmax(0, 1fr) 340px;
}

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

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

.school-alert-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(194, 147, 46, 0.28);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 249, 235, 0.94), rgba(255, 255, 255, 0.86));
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.school-alert-card strong {
  white-space: nowrap;
}

.school-alert-card span {
  color: var(--muted);
  font-weight: 700;
}

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

.teacher-ops-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.teacher-ops-section {
  width: 100%;
}

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

.section-heading-row h2 {
  margin: 0;
}

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

.teacher-class-card {
  cursor: pointer;
}

.teacher-class-card:hover,
.clickable-row:hover {
  border-color: rgba(194, 147, 46, 0.48);
  box-shadow: var(--shadow-soft);
}

.teacher-class-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.teacher-class-meta span {
  padding: 6px 10px;
  border: 1px solid rgba(229, 225, 216, 0.86);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.86);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.school-list {
  display: grid;
  gap: 10px;
}

.school-list-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(229, 225, 216, 0.84);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

.school-list-row > div {
  min-width: 0;
}

.school-list-row strong,
.school-list-row p {
  overflow-wrap: anywhere;
}

.school-list-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.assignment-row {
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
}

.teacher-student-row {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.teacher-detail-page .plan-section-grid {
  align-items: start;
}

.teacher-assignment-builder {
  border-color: rgba(194, 147, 46, 0.22);
}

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

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

.assignment-target-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(229, 225, 216, 0.84);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font-weight: 800;
}

.assignment-target-option input {
  accent-color: var(--gold);
}

.school-note-card h2,
.school-interface-page h2 {
  margin: 0;
}

.school-textarea {
  min-height: 110px;
  resize: vertical;
}

.school-staff-code-box {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(229, 225, 216, 0.76);
}

.status-active,
.status-unused,
.status-approved {
  border-color: rgba(79, 159, 114, 0.28);
  background: rgba(79, 159, 114, 0.12);
  color: #256b48;
}

.status-overdue,
.status-awaiting-approval,
.status-awaiting-admin {
  border-color: rgba(216, 154, 66, 0.3);
  background: rgba(216, 154, 66, 0.14);
  color: #8a5b1e;
}

.status-completed,
.status-redeemed {
  border-color: rgba(100, 116, 139, 0.22);
  background: rgba(100, 116, 139, 0.1);
  color: #475569;
}

.skill-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 750;
}

.skill-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent, var(--gold));
}

.empty-state {
  position: relative;
  display: block;
  min-height: 154px;
  padding: 26px 24px 28px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.52);
  text-align: center;
}

.empty-state > div {
  max-width: 560px;
  margin: 0 auto;
  padding: 8px 54px 0;
}

.empty-icon {
  position: absolute;
  top: 22px;
  left: 22px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-dark);
}

.empty-state .mock-actions {
  justify-content: center;
  margin-top: 16px;
}

.chart-shell {
  min-height: 276px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
}

.chart-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.score-chart-legend .legend-item.inactive {
  opacity: 0.45;
}

.score-chart-range {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.score-chart-range-button {
  padding: 7px 10px;
  border: 1px solid rgba(204, 196, 177, 0.78);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 850;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.score-chart-range-button:hover,
.score-chart-range-button.active {
  border-color: rgba(200, 162, 74, 0.52);
  background: rgba(244, 234, 210, 0.84);
  color: #6f5415;
  box-shadow: 0 8px 18px rgba(150, 113, 34, 0.12);
}

.chart-empty {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid rgba(229, 225, 216, 0.72);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(229, 225, 216, 0.56) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229, 225, 216, 0.56) 1px, transparent 1px);
  background-size: 100% 46px, 86px 100%;
}

.chart-empty::before {
  content: "";
  position: absolute;
  right: 10%;
  left: 10%;
  bottom: 44%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(200, 162, 74, 0.42), transparent);
}

.score-chart-empty {
  padding: 0 24px;
  text-align: center;
}

.score-chart-empty.compact {
  min-height: 160px;
}

.score-chart-empty::before {
  display: none;
}

.score-chart {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid rgba(229, 225, 216, 0.72);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(248, 245, 238, 0.76));
}

.score-chart.compact {
  min-height: 160px;
}

.score-chart-svg {
  display: block;
  width: 100%;
  height: auto;
}

.score-chart-axis {
  stroke: rgba(121, 109, 87, 0.5);
  stroke-width: 1.2;
}

.score-chart-grid {
  stroke: rgba(229, 225, 216, 0.86);
  stroke-width: 1;
}

.score-chart-y-label,
.score-chart-x-label {
  fill: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.score-chart-line {
  fill: none;
  stroke: var(--line-color);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.score-chart-single-line {
  fill: none;
  stroke: var(--line-color);
  stroke-width: 2.4;
  opacity: 0.3;
}

.score-chart-dot {
  fill: #fffdf8;
  stroke: var(--dot-color);
  stroke-width: 2.5;
  cursor: pointer;
  outline: none;
  transform-box: fill-box;
  transform-origin: center;
  transition:
    filter 160ms ease,
    transform 160ms ease,
    stroke-width 160ms ease;
}

.score-chart-dot.mini {
  fill: #fffdf8;
}

.score-chart-dot.active,
.score-chart-dot:focus,
.score-chart-dot:hover {
  filter: drop-shadow(0 0 5px var(--dot-color));
  stroke-width: 2.8;
  transform: scale(1.16);
}

.score-point-popover {
  position: absolute;
  z-index: 3;
  width: max-content;
  min-width: 180px;
  max-width: 260px;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid rgba(200, 162, 74, 0.28);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 14px 32px rgba(87, 69, 30, 0.14);
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: center;
  pointer-events: auto;
  transform: translate(-50%, -100%);
}

.score-point-popover.below {
  transform: translate(-50%, 0);
}

.score-point-popover strong,
.score-point-popover span {
  display: block;
}

.score-point-popover strong {
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.score-point-popover span {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 750;
}

.score-point-popover span + span {
  margin-top: 2px;
}

.inline-link {
  color: var(--gold-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.tabbar,
.filter-row,
.subtab-row,
.time-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tabbar {
  margin-bottom: 18px;
}

.tab-btn,
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.tab-btn:hover,
.filter-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(200, 162, 74, 0.42);
  color: var(--text);
}

.tab-btn.active,
.filter-pill.active {
  border-color: rgba(200, 162, 74, 0.38);
  background: var(--gold-soft);
  color: #6f5415;
}

.mocks-page {
  display: grid;
  gap: 14px;
}

.mocks-page .page-header {
  margin-bottom: 2px;
}

.mocks-page .tests-section,
.mocks-page .section-stack {
  gap: 12px;
}

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

.exam-selection-grid {
  align-items: stretch;
}

.practice-option-grid.ielts-type-grid,
.practice-option-grid.academic-section-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.practice-option-card {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 220px;
  background:
    linear-gradient(135deg, rgba(255, 252, 246, 0.96), rgba(255, 255, 255, 0.98)),
    var(--card);
}

.practice-option-card.active {
  border-color: rgba(200, 162, 74, 0.34);
  box-shadow: 0 16px 38px rgba(200, 162, 74, 0.1), var(--shadow-soft);
}

.practice-option-card.coming-soon {
  opacity: 0.82;
}

.exam-selection-card {
  align-content: stretch;
  grid-template-rows: 1fr auto;
  min-height: 214px;
}

.exam-selection-card.active {
  min-height: 214px;
}

.exam-selection-card.coming-soon {
  border-style: dashed;
  background:
    linear-gradient(135deg, rgba(255, 252, 246, 0.78), rgba(255, 255, 255, 0.9)),
    var(--card);
}

.exam-selection-card.coming-soon .status-pill {
  background: rgba(240, 238, 232, 0.82);
  color: #7c7162;
}

.exam-selection-card .practice-option-copy {
  align-self: start;
  gap: 10px;
}

.exam-selection-card .card-head {
  align-items: flex-start;
  margin-bottom: 0;
}

.exam-selection-card .mock-actions {
  justify-content: flex-start;
  margin-top: auto;
}

.academic-section-grid .practice-option-card {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  min-height: 238px;
}

.practice-option-copy {
  display: grid;
  gap: 6px;
}

.practice-option-copy .card-subtitle {
  margin: 0;
}

.practice-option-card .icon-circle {
  width: 46px;
  height: 46px;
}

.practice-option-card .icon-circle .icon {
  width: 21px;
  height: 21px;
}

.practice-option-card .mini-pen-icon .icon {
  width: 16px;
  height: 16px;
}

.practice-option-card .mock-actions {
  margin-top: auto;
}

.ielts-inner-back {
  display: flex;
  align-items: center;
}

.ielts-section-header {
  display: grid;
  gap: 10px;
}

.ielts-section-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(229, 225, 216, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 254, 251, 0.74);
}

.ielts-section-nav h2 {
  font-size: 1rem;
  white-space: nowrap;
}

.ielts-section-nav .mocks-nav-chips {
  justify-content: flex-end;
}

.mocks-nav-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.mocks-nav-summary {
  display: grid;
  gap: 2px;
}

.mocks-nav-summary .eyebrow,
.mocks-nav-summary .card-subtitle {
  margin: 0;
}

.mocks-nav-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.mocks-nav-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mocks-nav-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mock-nav-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 820;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.mock-nav-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(200, 162, 74, 0.42);
  color: var(--text);
}

.mock-nav-chip.active {
  border-color: rgba(200, 162, 74, 0.38);
  background: var(--gold-soft);
  color: #6f5415;
}

.mock-nav-chip.coming-soon:not(.active) {
  opacity: 0.72;
}

.mock-nav-soon {
  color: var(--gold-dark);
  font-size: 0.68rem;
  font-weight: 850;
}

.mock-content-intro {
  display: grid;
  gap: 4px;
}

.mock-content-intro .card-subtitle {
  margin: 0;
}

.settings-plan-option {
  min-height: 58px;
  padding: 12px 16px;
  border-radius: 12px;
}

.badge {
  min-height: 22px;
  padding: 0 7px;
  font-size: 0.72rem;
}

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

.highlight-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(244, 234, 210, 0.85), rgba(255, 255, 255, 0.92)),
    var(--card);
}

.highlight-copy {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.highlight-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  color: var(--gold-dark);
}

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

.test-card {
  display: grid;
  min-height: 218px;
  padding: 18px;
}

.test-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.test-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 850;
}

.test-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0;
}

.mock-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  margin: 12px 0 0;
}

.mock-meta-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid rgba(120, 120, 120, 0.16);
  border-radius: 12px;
  background: rgba(248, 248, 246, 0.92);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
}

.mock-meta-item .icon {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.test-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  align-self: end;
}

.status-pill {
  min-height: 26px;
  background: #ffffff;
}

.practice-shell {
  display: grid;
  gap: 18px;
}

.practice-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(200, 162, 74, 0.35);
  border-radius: 999px;
  background: var(--gold-soft);
  color: #6f5415;
  font-weight: 850;
}

.practice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.84fr);
  gap: 18px;
}

.passage-card,
.question-card {
  padding: 22px;
}

.passage-placeholder {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.line {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ece7dc, #f7f3e9, #ece7dc);
}

.line.short {
  width: 62%;
}

.line.medium {
  width: 82%;
}

.question-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

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

.answer-row label {
  color: var(--muted);
  font-weight: 800;
}

.text-input,
.search-input,
.textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  outline: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.text-input,
.search-input {
  min-height: 40px;
  padding: 0 12px;
}

.textarea {
  min-height: 260px;
  padding: 14px;
  resize: vertical;
}

.text-input:focus,
.search-input:focus,
.textarea:focus {
  border-color: rgba(200, 162, 74, 0.72);
  box-shadow: 0 0 0 4px rgba(200, 162, 74, 0.13);
}

.reading-start-shell,
.reading-exam-page {
  display: grid;
  gap: 18px;
}

.reading-exam-page:not(.listening-exam-page) {
  position: relative;
  left: 50%;
  width: min(96vw, 1680px);
  max-width: 1680px;
  transform: translateX(-50%);
}

.reading-start-card {
  position: relative;
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 28px;
  display: grid;
  gap: 22px;
}

.reading-start-card.is-opening {
  animation: readingStartIn 180ms ease both;
}

.reading-start-icon {
  position: absolute;
  top: 24px;
  left: 24px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(200, 162, 74, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  color: var(--gold-dark);
}

.reading-start-head {
  max-width: 620px;
  margin: 0 auto;
  padding-top: 4px;
  text-align: center;
}

.reading-start-head h1 {
  margin-top: 4px;
  font-size: clamp(2rem, 5vw, 3rem);
}

.reading-selected-mock {
  display: block;
  padding: 14px 16px;
  border: 1px solid rgba(200, 162, 74, 0.28);
  border-radius: var(--radius);
  background: var(--gold-soft);
  text-align: center;
}

.reading-selected-mock strong:first-child {
  display: block;
  min-width: 0;
}

.reading-stat-row,
.reading-review-summary,
.reading-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

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

.reading-result-modal {
  width: min(100%, 760px);
}

.reading-card-score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(200, 162, 74, 0.32);
  border-radius: 10px;
  background: var(--gold-soft);
  color: #6f5415;
  font-size: 0.88rem;
  font-weight: 850;
}

.reading-test-card {
  position: relative;
  min-height: 178px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 16px 20px 16px 16px;
  border: 1px solid var(--mock-card-untaken-border);
  cursor: pointer;
  background: var(--mock-card-untaken-bg);
  overflow: hidden;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.reading-test-card > div:first-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.mock-card-heading-row {
  position: relative;
  min-width: 0;
  padding-right: 58px;
}

.mock-card-heading {
  display: grid;
  min-width: 0;
  max-width: 100%;
  gap: 7px;
}

.reading-test-card .test-title {
  max-width: 100%;
  font-size: 1.12rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reading-test-card .icon-circle {
  position: absolute;
  top: 0;
  right: 0;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  background: var(--mock-card-icon-bg);
}

.reading-test-card .test-meta {
  margin: 16px 0 0;
}

.reading-test-card:hover {
  transform: translateY(-3px) scale(1.006);
  border-color: rgba(200, 162, 74, 0.46);
  box-shadow: 0 22px 46px rgba(86, 66, 22, 0.13), 0 0 0 1px rgba(200, 162, 74, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 249, 236, 0.72), rgba(255, 255, 255, 0.78)),
    var(--mock-card-untaken-hover-bg);
}

.reading-test-card.is-completed {
  border: 2px solid var(--mock-card-taken-border);
  box-shadow: 0 14px 34px rgba(200, 162, 74, 0.12), 0 0 0 1px rgba(200, 162, 74, 0.12);
  background: var(--mock-card-taken-bg);
}

.reading-test-card.is-completed:hover {
  transform: translateY(-3px) scale(1.006);
  border-color: var(--mock-card-taken-border);
  box-shadow: 0 22px 48px rgba(200, 162, 74, 0.18), 0 0 0 1px rgba(200, 162, 74, 0.18);
  background:
    linear-gradient(135deg, rgba(250, 237, 205, 0.62), rgba(255, 250, 239, 0.72)),
    var(--mock-card-taken-hover-bg);
}

.reading-test-card.is-locked {
  border-style: dashed;
}

.reading-test-card.is-locked .mock-card-heading {
  padding-right: 0;
}

.locked-card-overlay {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  pointer-events: none;
}

.locked-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 25px;
  padding: 0 9px;
  border: 1px solid rgba(200, 162, 74, 0.36);
  border-radius: 999px;
  background: rgba(244, 234, 210, 0.92);
  color: #765714;
  font-size: 0.76rem;
  font-weight: 850;
}

.locked-card-badge .icon {
  width: 13px;
  height: 13px;
}

.locked-card-copy {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 720;
}

.reading-test-card:active {
  transform: translateY(-1px) scale(0.995);
}

.reading-test-card:focus-visible {
  outline: 3px solid rgba(200, 162, 74, 0.24);
  outline-offset: 3px;
}

.reading-uncompleted-status {
  display: block;
  width: 100%;
  color: var(--muted);
  font-weight: 850;
  text-align: center;
}

.reading-card-status {
  align-self: stretch;
  justify-content: center;
  margin-top: auto;
  padding-top: 12px;
}

.reading-card-status .reading-card-score {
  width: 100%;
  margin-top: 0;
}

.mock-card-action {
  position: absolute;
  left: 50%;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, #7a5a13, #c8a24a, #7a5a13);
  background-size: 180% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: #8a6719;
  box-shadow: none;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 860;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(6px);
  overflow: visible;
  transition: opacity 220ms ease, transform 220ms ease, color 220ms ease;
}

.mock-card-action span {
  position: relative;
  z-index: 1;
}

.mock-card-action::after {
  content: "";
  position: absolute;
  inset: -30% -45%;
  background: linear-gradient(
    110deg,
    transparent 0%,
    transparent 28%,
    rgba(255, 246, 210, 0.14) 40%,
    rgba(255, 235, 165, 0.54) 50%,
    rgba(255, 246, 210, 0.14) 60%,
    transparent 72%,
    transparent 100%
  );
  filter: blur(3px);
  opacity: 0;
  transform: translateX(-130%) skewX(-18deg);
  pointer-events: none;
}

.reading-test-card:hover .mock-card-action,
.reading-test-card:focus-visible .mock-card-action,
.reading-test-card:focus-within .mock-card-action {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mock-card-action:hover {
  color: #6f5415;
}

.reading-test-card:hover .mock-card-action::after,
.reading-test-card:focus-visible .mock-card-action::after,
.reading-test-card:focus-within .mock-card-action::after {
  animation: actionShine 900ms ease forwards;
}

@keyframes actionShine {
  0% {
    opacity: 0;
    transform: translateX(-130%) skewX(-18deg);
  }
  18% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(130%) skewX(-18deg);
  }
}

.animated-mock-card {
  animation: mockCardEnter 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--card-index, 0) * 42ms);
}

.animated-mock-card .icon-circle {
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.animated-mock-card:hover .icon-circle {
  transform: translateY(-1px) scale(1.035);
  border-color: rgba(200, 162, 74, 0.32);
  background: rgba(255, 250, 239, 0.94);
}

@keyframes mockCardEnter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .animated-mock-card {
    animation: none;
  }

  .animated-mock-card,
  .animated-mock-card .icon-circle,
  .mock-card-action {
    transition: none;
  }

  .mock-card-action::after {
    animation: none;
    display: none;
  }
}

.reading-primary-types {
  display: grid;
  gap: 8px;
}

.reading-primary-types-card {
  margin-top: 0;
  gap: 0;
  color: var(--muted);
  text-align: left;
}

.reading-primary-types-card .reading-primary-type-list {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 7px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.reading-primary-types-start {
  padding: 14px;
  border: 1px solid rgba(200, 162, 74, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
  text-align: center;
}

.reading-primary-type-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reading-primary-types-start .reading-primary-type-list {
  justify-content: center;
}

.reading-primary-type-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(200, 162, 74, 0.26);
  border-radius: 999px;
  background: rgba(250, 246, 237, 0.72);
  color: #6f5415;
  font-size: 0.82rem;
  font-weight: 800;
}

.reading-primary-types-card .reading-primary-type-pill {
  box-sizing: border-box;
  flex: 0 1 auto;
  justify-content: center;
  max-width: 124px;
  min-width: 0;
  height: 25px;
  min-height: 25px;
  padding: 0 10px;
  border-color: rgba(180, 139, 49, 0.18);
  border-radius: 8px;
  background: rgba(255, 251, 243, 0.5);
  color: rgba(111, 84, 21, 0.78);
  font-size: 0.69rem;
  font-weight: 650;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.writing-test-card .writing-primary-types-card {
  width: 100%;
  max-width: 100%;
  margin-top: 1px;
  overflow: visible;
}

.writing-test-card .writing-primary-types-card .writing-primary-type-list {
  flex-wrap: wrap;
  gap: 6px;
  max-width: 100%;
  overflow: visible;
}

.writing-test-card .writing-primary-types-card .writing-primary-type-pill {
  flex: 0 0 auto;
  max-width: 156px;
  height: 24px;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 720;
  line-height: 1;
}

.reading-history-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
}

.reading-history-empty {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.reading-history-chart {
  width: 100%;
  overflow: hidden;
}

.reading-history-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.reading-history-axis,
.reading-history-grid {
  stroke: rgba(229, 225, 216, 0.9);
  stroke-width: 1;
}

.reading-history-line {
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.reading-history-dot {
  fill: #fffefb;
  stroke: var(--gold-dark);
  stroke-width: 3;
}

.reading-history-label,
.reading-history-date {
  fill: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.reading-history-score {
  fill: #374151;
  font-size: 14px;
  font-weight: 500;
}

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

.reading-history-list span {
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid rgba(200, 162, 74, 0.24);
  border-radius: 10px;
  background: rgba(250, 246, 237, 0.72);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.reading-history-list strong {
  color: var(--text);
  font-weight: 700;
}

.reading-note-grid,
.reading-passage-actions {
  display: grid;
  gap: 10px;
}

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

.reading-passage-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.reading-passage-practice h3 {
  text-align: center;
}

.reading-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  font-weight: 800;
}

.reading-note .icon {
  flex: 0 0 auto;
  color: var(--gold-dark);
}

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

.reading-mode-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 18px;
  min-height: 210px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

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

.reading-exam-title {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  text-align: left;
}

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

.reading-section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.reading-alert {
  padding: 12px 14px;
  border: 1px solid rgba(200, 162, 74, 0.32);
  border-radius: var(--radius);
  background: var(--gold-soft);
  color: #6f5415;
  font-weight: 850;
}

.reading-exam-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 24px;
  min-height: 68vh;
  align-items: start;
}

.reading-passage-panel,
.reading-question-panel {
  min-width: 0;
  padding: 22px;
  max-height: calc(100vh - 230px);
  overflow: auto;
}

.reading-exam-page:not(.listening-exam-page) .reading-passage-panel,
.reading-exam-page:not(.listening-exam-page) .reading-question-panel {
  padding: 26px;
}

.reading-passage-text {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  line-height: 1.72;
  color: var(--text);
  overflow-wrap: break-word;
}

.reading-question-stack,
.reading-select-list {
  display: grid;
  gap: 14px;
}

.reading-question-group {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(229, 225, 216, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
}

.reading-exam-page:not(.listening-exam-page) .reading-question-group {
  padding: 18px;
}

.reading-question-group-head p,
.reading-question-item p {
  margin: 6px 0 0;
  color: var(--muted);
}

.reading-question-item {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(229, 225, 216, 0.7);
  border-radius: var(--radius);
  background: #fffefb;
}

.reading-exam-page:not(.listening-exam-page) .reading-question-item {
  padding: 14px;
}

.reading-question-correct {
  border-color: rgba(34, 197, 94, 0.22);
  background: rgba(240, 253, 244, 0.5);
}

.reading-question-incorrect {
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(254, 242, 242, 0.5);
}

.reading-question-unanswered {
  border-color: rgba(200, 162, 74, 0.26);
  background: rgba(250, 246, 237, 0.72);
}

.reading-choice-grid {
  display: grid;
  gap: 8px;
  min-width: 0;
}

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

.reading-choice {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.reading-exam-page:not(.listening-exam-page) .reading-choice {
  align-items: flex-start;
  white-space: normal;
  overflow-wrap: anywhere;
}

.reading-exam-page:not(.listening-exam-page) .reading-choice strong {
  flex: 0 0 auto;
}

.reading-exam-page:not(.listening-exam-page) .reading-choice span {
  min-width: 0;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
}

.reading-choice:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(200, 162, 74, 0.42);
}

.reading-choice.active {
  border-color: rgba(200, 162, 74, 0.58);
  background: var(--gold-soft);
  color: #6f5415;
}

.sat-rw-card .test-meta-line {
  margin: 14px 0 0;
  color: #3f3a31;
  font-weight: 700;
  line-height: 1.45;
}

.sat-rw-card.animated-mock-card {
  animation: none;
}

.sat-rw-card.animated-mock-card:hover .sat-mock-icon {
  background: var(--mock-card-icon-bg);
  color: var(--gold-dark);
}

.sat-rw-card .mock-card-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-right: 0;
}

.sat-rw-card .mock-card-heading {
  flex: 1 1 auto;
}

.sat-rw-card .icon-circle {
  position: static;
  flex: 0 0 auto;
}

.sat-rw-card .reading-card-score {
  width: 100%;
  margin-top: 18px;
}

.icon-circle.sat-mock-icon,
.reading-start-icon.sat-mock-icon {
  color: var(--gold-dark);
  background: var(--mock-card-icon-bg);
}

.icon-circle.sat-mock-icon {
  border-radius: 50%;
}

.sat-module-page.reading-exam-page {
  left: auto;
  width: min(100%, 1040px);
  max-width: 1040px;
  margin: 0 auto;
  transform: none;
  overflow-x: hidden;
}

.sat-results-page.reading-exam-page {
  left: auto;
  width: min(100%, 1120px);
  max-width: 1120px;
  margin: 0 auto;
  transform: none;
  overflow-x: hidden;
}

.sat-start-modal {
  width: min(100%, 1040px);
  max-height: min(92vh, 900px);
  overflow: auto;
  animation: modalScale 220ms ease both;
}

.sat-note-box {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(200, 162, 74, 0.28);
  border-radius: var(--radius);
  background: rgba(250, 246, 237, 0.78);
  color: #6f5415;
}

.sat-note-box p {
  margin: 0;
  color: #80621f;
}

.sat-question-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 0 2px 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.sat-question-pill {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
  font-weight: 850;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.sat-question-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(200, 162, 74, 0.42);
}

.sat-question-pill.answered {
  border-color: rgba(79, 163, 111, 0.28);
  background: color-mix(in srgb, var(--writing) 10%, #ffffff);
  color: #2f7048;
}

.sat-question-pill.marked {
  box-shadow: inset 0 -3px 0 rgba(200, 162, 74, 0.65);
}

.sat-question-pill.active {
  border-color: rgba(200, 162, 74, 0.62);
  background: var(--gold-soft);
  color: #6f5415;
}

.sat-question-card {
  width: min(100%, 980px);
  max-height: none;
  margin: 0 auto;
  padding: 26px;
  display: grid;
  gap: 18px;
  overflow: visible;
}

.sat-stimulus-stack,
.sat-question-stack,
.sat-review-detail {
  display: grid;
  gap: 16px;
}

.sat-text-block,
.sat-graphic-card,
.sat-review-question {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(229, 225, 216, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.sat-graphic-card h3 {
  margin: 0;
  font-size: 1rem;
}

.sat-passage-text {
  margin-top: 0;
}

.sat-underlined {
  padding: 0 2px;
  border-bottom: 2px solid rgba(200, 162, 74, 0.7);
  background: transparent;
  color: inherit;
}

.sat-notes-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 16px 16px 16px 34px;
  border: 1px solid rgba(229, 225, 216, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.sat-question-stem {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 780;
  line-height: 1.55;
}

.sat-choice-grid {
  gap: 10px;
}

.sat-module-actions {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sat-module-actions > div:first-child,
.sat-module-actions > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sat-module-actions > div:last-child {
  justify-content: flex-end;
}

.sat-route-alert {
  width: min(1040px, 100%);
  margin: 0 auto;
}

.sat-results-summary,
.sat-breakdown-card,
.sat-review-list-card,
.sat-review-detail-card {
  min-width: 0;
  padding: 22px;
}

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

.sat-breakdown-grid,
.sat-review-grid {
  display: grid;
  gap: 18px;
}

.sat-breakdown-grid {
  grid-template-columns: 1fr;
}

.sat-review-grid {
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  align-items: start;
}

.sat-review-list {
  display: grid;
  gap: 8px;
  max-height: 620px;
  overflow: auto;
}

.sat-review-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.sat-review-row span:first-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.sat-review-row small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 720;
  line-height: 1.25;
}

.sat-review-row span:last-child {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: capitalize;
}

.sat-review-row.correct {
  border-color: rgba(34, 197, 94, 0.2);
}

.sat-review-row.incorrect {
  border-color: rgba(239, 68, 68, 0.22);
}

.sat-review-row.unanswered {
  border-color: rgba(200, 162, 74, 0.26);
}

.sat-review-row.active {
  border-color: rgba(200, 162, 74, 0.58);
  background: var(--gold-soft);
}

.sat-review-choice {
  cursor: default;
}

.sat-review-choice.correct {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(240, 253, 244, 0.88);
  color: #166534;
}

.sat-review-choice.selected:not(.correct) {
  border-color: rgba(239, 68, 68, 0.26);
  background: rgba(254, 242, 242, 0.9);
  color: #991b1b;
}

.act-english-card.animated-mock-card {
  animation: none;
}

.act-question-card {
  width: min(100%, 1080px);
}

.act-question-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 18px;
  align-items: start;
}

.act-passage-panel,
.act-question-stack {
  min-width: 0;
}

.act-passage-text {
  display: grid;
  gap: 14px;
  max-height: 62vh;
  overflow: auto;
  padding-right: 4px;
}

.act-passage-text p {
  margin: 0;
  line-height: 1.72;
}

.act-paragraph-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #7a5a15;
  font-size: 0.78rem;
  font-weight: 850;
  vertical-align: 1px;
}

.act-target-marker {
  padding: 0 3px 1px;
  border-radius: 4px;
  border-bottom: 2px solid rgba(200, 162, 74, 0.72);
  background: rgba(250, 246, 237, 0.82);
  color: inherit;
}

.act-target-marker.active {
  background: var(--gold-soft);
  border-bottom-color: var(--gold-dark);
  box-shadow: 0 0 0 2px rgba(200, 162, 74, 0.12);
}

.act-start-modal {
  width: min(100%, 1040px);
}

.qb-page {
  gap: 18px;
}

.qb-builder-grid {
  align-items: start;
}

.qb-builder-card,
.qb-actions-card {
  min-width: 0;
}

.qb-summary-grid .stat-card {
  min-height: 128px;
}

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

.qb-filter-control {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.qb-filter-control span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.qb-filter-control select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  font-weight: 780;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.qb-filter-control select:focus {
  border-color: rgba(200, 162, 74, 0.78);
  box-shadow: 0 0 0 4px rgba(200, 162, 74, 0.14);
}

.qb-session-page.reading-exam-page {
  left: auto;
  width: min(100%, 1040px);
  max-width: 1040px;
  margin: 0 auto;
  transform: none;
  overflow-x: hidden;
}

.qb-question-card {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 26px;
  display: grid;
  gap: 18px;
}

.qb-question-stack {
  min-width: 0;
}

.qb-choice-grid .reading-choice {
  text-align: left;
}

.qb-choice-grid .reading-choice.correct {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(240, 253, 244, 0.92);
  color: #166534;
}

.qb-choice-grid .reading-choice.incorrect {
  border-color: rgba(239, 68, 68, 0.26);
  background: rgba(254, 242, 242, 0.92);
  color: #991b1b;
}

.qb-feedback-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(200, 162, 74, 0.24);
  border-radius: var(--radius);
  background: rgba(250, 246, 237, 0.72);
}

.qb-feedback-card h3,
.qb-feedback-card p {
  margin: 0;
}

.qb-feedback-card.correct {
  border-color: rgba(34, 197, 94, 0.24);
  background: rgba(240, 253, 244, 0.86);
}

.qb-feedback-card.incorrect {
  border-color: rgba(239, 68, 68, 0.24);
  background: rgba(254, 242, 242, 0.86);
}

.qb-feedback-card.revealed {
  border-color: rgba(200, 162, 74, 0.28);
  background: var(--gold-soft);
}

.act-qb-passage-text {
  max-height: 58vh;
  overflow: auto;
  padding-right: 4px;
}

.act-qb-active-marker {
  background: var(--gold-soft);
  border-bottom-color: var(--gold-dark);
  box-shadow: 0 0 0 2px rgba(200, 162, 74, 0.12);
}

.qb-session-actions {
  margin-top: 4px;
}

.reading-choice:disabled {
  cursor: default;
  opacity: 0.8;
}

.reading-inline-question,
.reading-select-question {
  grid-template-columns: minmax(0, 1fr);
}

.reading-blank-input {
  max-width: 260px;
}

.reading-inline-select {
  width: min(220px, 100%);
  display: inline-block;
  margin: 0 4px;
}

.reading-table-wrap {
  overflow-x: auto;
}

.reading-table {
  width: 100%;
  border-collapse: collapse;
}

.reading-table th,
.reading-table td {
  min-width: 150px;
  padding: 10px;
  border: 1px solid var(--border);
  vertical-align: top;
}

.reading-table th {
  background: var(--gold-soft);
  color: #6f5415;
  text-align: left;
}

.reading-table-input {
  min-width: 150px;
}

.reading-option-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reading-exam-page:not(.listening-exam-page) .reading-option-bank .tiny-pill {
  justify-content: flex-start;
  height: auto;
  min-height: 30px;
  max-width: 100%;
  white-space: normal;
  text-align: left;
  overflow-wrap: anywhere;
}

.reading-summary-box {
  padding: 14px;
  border: 1px solid rgba(200, 162, 74, 0.24);
  border-radius: var(--radius);
  background: rgba(250, 246, 237, 0.78);
  line-height: 1.8;
}

.reading-answer-feedback {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 0.88rem;
}

.reading-answer-feedback.correct {
  border-color: rgba(34, 197, 94, 0.25);
  background: rgba(240, 253, 244, 0.86);
  color: #166534;
}

.reading-answer-feedback.incorrect {
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(254, 242, 242, 0.86);
  color: #991b1b;
}

.reading-answer-feedback.unanswered {
  border-color: rgba(200, 162, 74, 0.3);
  background: var(--gold-soft);
  color: #6f5415;
}

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

.reading-answer-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #ffffff;
  font-weight: 850;
}

.reading-answer-chip.correct {
  border-color: rgba(34, 197, 94, 0.25);
  background: rgba(240, 253, 244, 0.9);
  color: #166534;
}

.reading-answer-chip.incorrect {
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(254, 242, 242, 0.92);
  color: #991b1b;
}

.reading-answer-chip.unanswered {
  border-color: rgba(200, 162, 74, 0.32);
  background: var(--gold-soft);
  color: #6f5415;
}

.reading-reveal-btn {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(200, 162, 74, 0.28);
  border-radius: 8px;
  background: rgba(250, 246, 237, 0.72);
  color: #6f5415;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 850;
  transition: border-color 160ms ease, transform 160ms ease;
}

.reading-reveal-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(200, 162, 74, 0.48);
}

.reading-explanation-toggle {
  justify-self: start;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(200, 162, 74, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #6f5415;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  transition: border-color 160ms ease, transform 160ms ease;
}

.reading-explanation-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(200, 162, 74, 0.48);
}

.reading-explanation-box {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(200, 162, 74, 0.24);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.86);
  color: var(--text);
}

.reading-explanation-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.reading-exam-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.reading-exam-actions > div {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.reading-prep-modal {
  width: min(100%, 520px);
}

.reading-prep-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.reading-prep-status strong {
  color: #6f5415;
}

.listening-test-card .icon-circle,
.listening-start-card .reading-start-icon {
  color: var(--gold-dark);
}

.listening-test-card {
  min-height: 178px;
}

.listening-test-card .reading-card-status {
  padding-top: 10px;
}

.listening-start-card [data-listening-start-mode="chill"] {
  border-color: rgba(200, 162, 74, 0.46);
  background: rgba(250, 246, 237, 0.92);
  color: #6f5415;
  box-shadow: inset 0 0 0 1px rgba(200, 162, 74, 0.12);
}

.listening-start-card [data-listening-start-mode="chill"]:hover {
  border-color: rgba(200, 162, 74, 0.62);
  background: var(--gold-soft);
  color: #6f5415;
}

.listening-primary-types-start {
  margin-top: 0;
}

.listening-part-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.listening-question-panel {
  width: min(1040px, 100%);
  margin: 0 auto;
  max-height: none;
}

.listening-audio-card,
.listening-transcript-box {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 18px;
}

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

.listening-audio-player {
  display: grid;
  grid-template-columns: auto auto auto auto auto minmax(120px, 1fr) auto auto minmax(92px, 130px);
  gap: 10px;
  align-items: center;
}

.listening-audio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid rgba(200, 162, 74, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  color: #6f5415;
  cursor: pointer;
  font-weight: 850;
}

.listening-audio-btn.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #ffffff;
}

.listening-audio-btn:disabled,
.listening-progress:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.listening-audio-btn:disabled:hover {
  transform: none;
  cursor: not-allowed;
}

.listening-speed-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(200, 162, 74, 0.22);
  border-radius: 10px;
  background: rgba(248, 248, 246, 0.9);
  color: #6f5415;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.listening-time {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.listening-progress,
.listening-volume {
  width: 100%;
  accent-color: var(--gold);
}

.listening-progress {
  --listening-progress-percent: 0%;
  appearance: none;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold) var(--listening-progress-percent), rgba(229, 225, 216, 0.9) var(--listening-progress-percent), rgba(229, 225, 216, 0.9) 100%);
  cursor: pointer;
  touch-action: none;
  user-select: none;
}

.listening-progress::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: transparent;
}

.listening-progress::-webkit-slider-thumb {
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -4px;
  border: 2px solid var(--gold);
  border-radius: 999px;
  background: #fffefb;
  cursor: grab;
}

.listening-progress::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(229, 225, 216, 0.9);
}

.listening-progress::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
}

.listening-progress::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 2px solid var(--gold);
  border-radius: 999px;
  background: #fffefb;
  cursor: grab;
}

.listening-progress.is-dragging,
.listening-progress.is-dragging::-webkit-slider-thumb {
  cursor: grabbing;
}

.listening-progress.is-dragging::-moz-range-thumb {
  cursor: grabbing;
}

.listening-progress:disabled,
.listening-progress:disabled::-webkit-slider-thumb {
  cursor: not-allowed;
}

.listening-progress:disabled::-moz-range-thumb {
  cursor: not-allowed;
}

.listening-volume-icon {
  display: inline-flex;
  color: var(--gold-dark);
}

.listening-transcript-actions {
  width: min(1040px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
}

.listening-transcript-lines {
  display: grid;
  gap: 9px;
  color: var(--text);
  line-height: 1.62;
}

.listening-transcript-lines p {
  margin: 0;
}

.listening-transcript-lines strong {
  color: #6f5415;
}

.listening-form-box {
  display: grid;
  gap: 12px;
}

.listening-form-box h4,
.reading-table-wrap h4 {
  margin: 0;
}

.listening-form-row {
  grid-template-columns: minmax(160px, 0.7fr) minmax(220px, 1fr);
  align-items: center;
}

.listening-inline-question {
  grid-template-columns: minmax(0, 1fr);
}

.listening-completion-line {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  line-height: 1.65;
}

.listening-completion-line .reading-blank-input {
  flex: 0 1 180px;
  width: min(180px, 100%);
  margin: 0 2px;
}

.listening-explanation-box {
  gap: 6px;
}

.listening-distractor-notes {
  display: grid;
  gap: 4px;
}

.listening-distractor-notes ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.reading-submit-modal {
  position: relative;
  padding-right: 54px;
}

.reading-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.reading-modal-close:hover {
  background: rgba(200, 162, 74, 0.12);
  color: var(--text);
  transform: translateY(-1px);
}

@keyframes readingStartIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.99);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.audio-player {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
}

.audio-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #ece7dc;
}

.audio-track span {
  display: block;
  width: 28%;
  height: 100%;
  border-radius: inherit;
  background: var(--listening);
}

.section-list,
.feedback-grid,
.criteria-list,
.plan-steps,
.mock-sections {
  display: grid;
  gap: 10px;
}

.section-item,
.feedback-item,
.step-item,
.mock-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(229, 225, 216, 0.76);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}

.section-item strong,
.feedback-item strong,
.step-item strong,
.mock-section strong {
  min-width: 0;
}

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

.writing-test-card .icon-circle,
.writing-start-card .reading-start-icon {
  color: var(--gold-dark);
}

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

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

.writing-exam-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  min-height: 68vh;
  align-items: start;
}

.writing-task-panel,
.writing-editor-panel {
  min-width: 0;
  max-height: calc(100vh - 230px);
  overflow: auto;
  padding: 24px;
}

.writing-editor-panel {
  display: grid;
  gap: 14px;
}

.writing-task-head {
  display: grid;
  gap: 10px;
}

.writing-task-head h2 {
  margin: 0;
}

.writing-image-card {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 220px;
  margin: 18px 0;
  padding: 10px;
  overflow: visible;
  border: 1px solid rgba(200, 162, 74, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.86);
}

.writing-image-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}

.writing-image-open:focus-visible {
  outline: 3px solid rgba(200, 162, 74, 0.28);
  outline-offset: 3px;
}

.writing-visual-title {
  margin: 18px 0 -4px;
  color: var(--text);
  font-weight: 900;
  line-height: 1.35;
}

.writing-image-card img {
  display: block;
  width: 100%;
  max-height: 440px;
  object-fit: contain;
  border-radius: 10px;
}

.writing-image-open img {
  cursor: zoom-in;
}

.writing-image-card.is-missing,
.writing-image-fallback {
  min-height: 160px;
  color: var(--muted);
  font-weight: 850;
}

.writing-prompt-box,
.writing-response-box,
.writing-helper-card {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(229, 225, 216, 0.76);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.writing-prompt-box p,
.writing-response-box p {
  margin: 0;
  line-height: 1.65;
}

.writing-helper-notes {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.writing-helper-card h3 {
  margin: 0;
  font-size: 1rem;
}

.writing-helper-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}

.writing-editor {
  min-height: calc(100vh - 390px);
  line-height: 1.65;
}

.timer-pill.warning {
  border-color: rgba(200, 162, 74, 0.34);
  background: var(--gold-soft);
  color: #6f5415;
}

.writing-word-warning {
  display: none;
}

.writing-word-warning.show {
  display: block;
  color: #8a6719;
  font-weight: 800;
}

.writing-image-modal-overlay {
  z-index: 90;
  padding: 24px;
  background: rgba(37, 31, 20, 0.34);
  backdrop-filter: blur(12px);
}

.writing-image-modal {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(92vw, 1200px);
  max-height: 88vh;
  padding: 18px;
  overflow: auto;
  border: 1px solid rgba(200, 162, 74, 0.28);
  border-radius: var(--radius);
  background: #fffefb;
  box-shadow: 0 28px 70px rgba(45, 36, 18, 0.24);
  animation: writingImageZoomIn 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.writing-image-modal h2 {
  margin: 0;
  padding-right: 48px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.3;
}

.writing-image-modal img {
  display: block;
  justify-self: center;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 10px;
}

.writing-image-close {
  color: var(--text);
}

@keyframes writingImageZoomIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.writing-submit-modal .criteria-list {
  margin-top: 16px;
}

.writing-feedback-placeholder {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-color: rgba(200, 162, 74, 0.28);
  background: var(--gold-soft);
}

.writing-feedback-placeholder h2 {
  margin: 0 0 4px;
  font-size: 1.12rem;
}

.writing-review-stack {
  display: grid;
  gap: 18px;
}

.writing-review-card {
  padding: 24px;
}

.writing-response-box {
  background: #fffefb;
}

.word-count {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.speaking-recorder {
  display: grid;
  place-items: center;
  min-height: 190px;
  margin: 18px 0;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
  text-align: center;
}

.record-dot {
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--speaking) 0 32%, transparent 34%),
    rgba(216, 154, 66, 0.14);
}

.mock-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 18px;
}

.mock-card-main {
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(244, 234, 210, 0.8), rgba(255, 255, 255, 0.86)),
    var(--card);
}

.mock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

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

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

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

.wide-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
}

.weekly-dots {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  overflow: visible;
  margin: 14px 0 8px;
}

.day-dot {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 34px;
  box-sizing: border-box;
  overflow: visible;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: #f2efe7;
  color: var(--quiet);
  font-size: 0.72rem;
  font-weight: 850;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.day-dot.active {
  border: 1.5px solid #c98218;
  background: #f2ce6b;
  color: #4a3210;
  box-shadow: none;
}

.day-dot.current::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1.5px solid #32ff7e;
  border-radius: calc(var(--radius) + 4px);
  box-shadow:
    0 0 6px rgba(50, 255, 126, 0.75),
    0 0 14px rgba(50, 255, 126, 0.35);
  pointer-events: none;
}

.day-dot.current {
  border-color: transparent;
  box-shadow: none;
}

.day-dot.active.current {
  border-color: #c98218;
  box-shadow: none;
}

.bar-shell {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #ece7dc;
}

.bar-fill {
  display: block;
  height: 100%;
  width: var(--value, 0%);
  border-radius: inherit;
  background: var(--accent, var(--gold));
}

.heatmap {
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  grid-template-rows: repeat(7, 1fr);
  gap: 5px;
  margin-top: 16px;
}

.heat-square {
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--shade, #ebe7dd);
}

.heat-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.skill-summary-grid,
.criteria-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.skill-summary-grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.criteria-card {
  padding: 18px;
}

.recommendation {
  border-color: rgba(200, 162, 74, 0.35);
  background: linear-gradient(135deg, rgba(244, 234, 210, 0.75), #fffefb 70%);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.plan-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  padding: 22px;
}

.plan-hub-card {
  min-height: 250px;
}

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

.plan-top h2,
.plan-detail-hero h2,
.plan-section-heading h2 {
  margin: 0;
}

.plan-status {
  align-self: end;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(229, 225, 216, 0.8);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.plan-detail-page {
  max-width: 1120px;
}

.plan-detail-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  border-color: rgba(200, 162, 74, 0.32);
  background: linear-gradient(135deg, rgba(244, 234, 210, 0.58), rgba(255, 253, 248, 0.94) 64%);
}

.plan-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.plan-section {
  display: grid;
  gap: 14px;
}

.plan-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tiny-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #6f5415;
}

.tiny-icon .icon {
  width: 15px;
  height: 15px;
}

.plan-empty-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(200, 162, 74, 0.24);
  border-radius: 8px;
  background: rgba(244, 234, 210, 0.42);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.plan-snapshot-list,
.plan-bullet-list,
.plan-link-list {
  display: grid;
  gap: 10px;
}

.plan-bullet {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.plan-bullet span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(200, 162, 74, 0.14);
  color: #8d6a1b;
}

.plan-bullet .icon {
  width: 13px;
  height: 13px;
}

.plan-bullet p {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

.plan-steps {
  padding-top: 2px;
}

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

.step-item {
  justify-content: flex-start;
}

.step-number {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: #6f5415;
  font-size: 0.78rem;
  font-weight: 850;
}

.plan-actions {
  margin-top: 0;
}

.plan-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(229, 225, 216, 0.86);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--text);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 820;
  text-align: left;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.plan-link-row:hover {
  transform: translateY(-1px);
  border-color: rgba(200, 162, 74, 0.42);
  background: rgba(244, 234, 210, 0.46);
}

.plan-link-row .icon {
  width: 15px;
  height: 15px;
  color: var(--gold-dark);
}

.vocab-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(139, 122, 200, 0.14), rgba(244, 234, 210, 0.64)),
    var(--card);
}

.vocab-review-info {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 20px;
  background: #fffefb;
}

.vocab-review-info .small-text {
  margin-top: 8px;
}

.review-setup-modal {
  width: min(100%, 720px);
  max-height: min(86vh, 780px);
  overflow: auto;
}

.review-setup-overlay,
.review-setup-overlay .review-setup-modal {
  animation: none;
}

.review-setup-section {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 254, 251, 0.72);
}

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

.review-option {
  padding: 18px;
}

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

.vocab-library-controls {
  display: grid;
  gap: 14px;
}

.sort-control {
  display: grid;
  gap: 6px;
  min-width: 190px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.select-input {
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  padding: 0 12px;
  outline: 0;
  font: inherit;
  text-transform: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.select-input:focus {
  border-color: rgba(200, 162, 74, 0.72);
  box-shadow: 0 0 0 4px rgba(200, 162, 74, 0.13);
}

.search-wrap {
  position: relative;
}

.search-wrap .icon {
  position: absolute;
  top: 50%;
  left: 13px;
  color: var(--quiet);
  transform: translateY(-50%);
}

.search-input {
  padding-left: 40px;
}

.filter-block {
  display: grid;
  gap: 10px;
}

.vocab-filter-block .filter-row {
  margin-bottom: 6px;
}

.filter-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.vocab-results-head {
  margin-bottom: 12px;
  color: var(--muted);
}

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

.vocabulary-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  text-align: left;
  cursor: pointer;
}

.vocab-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.vocab-card-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

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

.vocab-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(229, 225, 216, 0.9);
  background: #f8f6f0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.cefr-pill {
  background: var(--gold-soft);
  color: var(--gold-dark);
  border-color: rgba(200, 162, 74, 0.24);
}

.band-pill {
  background: #f5f1e7;
  color: #6f5415;
}

.topic-pill {
  background: rgba(139, 122, 200, 0.1);
  color: #62569c;
}

.saved-pill {
  background: #fff8e7;
  color: var(--gold-dark);
  border-color: rgba(200, 162, 74, 0.32);
}

.saved-pill .icon {
  width: 15px;
  height: 15px;
}

.bookmark-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fffefb;
  color: var(--muted);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.bookmark-button:hover {
  border-color: rgba(200, 162, 74, 0.46);
  color: var(--gold-dark);
  transform: translateY(-1px);
}

.bookmark-button.saved {
  border-color: rgba(200, 162, 74, 0.38);
  background: var(--gold-soft);
  color: var(--gold-dark);
}

.vocab-definition {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.load-more-row {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.vocab-shortcut-card {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 18px;
  text-align: left;
  cursor: pointer;
}

.vocab-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  justify-content: flex-end;
  background: rgba(17, 24, 39, 0.18);
  backdrop-filter: blur(6px);
}

.vocab-detail-panel {
  width: min(440px, 100%);
  min-height: calc(100% - 32px);
  display: grid;
  align-content: start;
  gap: 16px;
  margin: 16px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fffefb;
  box-shadow: var(--shadow);
  animation: vocabPanelIn 180ms ease both;
  overflow: auto;
}

.vocab-detail-word {
  margin-top: 4px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: 0;
}

.vocab-detail-meta,
.vocab-save-actions {
  display: grid;
  gap: 10px;
}

.vocab-save-actions {
  justify-items: start;
  padding-top: 4px;
}

.vocab-definition-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fffefb;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.icon-button:hover {
  border-color: rgba(200, 162, 74, 0.46);
  color: var(--gold-dark);
  transform: translateY(-1px);
}

.review-page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 24px;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(200, 162, 74, 0.12), transparent 34rem),
    linear-gradient(180deg, #fbfaf6 0%, var(--bg) 60%, #f1eee8 100%);
}

.review-library-page {
  grid-template-rows: 1fr;
}

.review-library-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

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

.review-session-card {
  min-height: 318px;
  display: grid;
  grid-template-rows: auto 150px 1fr auto;
  gap: 14px;
  padding: 16px;
  text-align: left;
}

.review-new-card {
  grid-template-rows: 150px auto;
  align-content: center;
  cursor: pointer;
}

.review-session-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.review-menu-wrap {
  position: relative;
  display: inline-flex;
}

.review-menu-button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--quiet);
  cursor: pointer;
  color: var(--quiet);
  letter-spacing: 2px;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.review-menu-button:hover {
  border-color: rgba(200, 162, 74, 0.28);
  background: #fffefb;
  color: var(--gold-dark);
}

.review-menu-dropdown {
  position: absolute;
  z-index: 4;
  top: 32px;
  right: 0;
  min-width: 148px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fffefb;
  box-shadow: var(--shadow);
}

.review-menu-dropdown button {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 7px;
  background: transparent;
  color: var(--red);
  text-align: left;
  cursor: pointer;
  font-weight: 800;
}

.review-menu-dropdown button:hover {
  background: rgba(239, 68, 68, 0.08);
}

.review-card-preview {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(229, 225, 216, 0.9);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 246, 240, 0.86)),
    #ffffff;
  color: var(--text);
  text-align: center;
}

.review-plus-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(200, 162, 74, 0.34);
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-dark);
}

.review-plus-icon .icon {
  width: 30px;
  height: 30px;
}

.review-session-body {
  display: grid;
  gap: 10px;
}

.review-session-body h2 {
  margin: 0;
  font-size: 1.04rem;
}

.review-session-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.review-session-meta span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f8f6f0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

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

.review-session-progress .small-text {
  margin: 0;
}

.review-session-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.review-status-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 850;
}

.review-status-label.improve {
  border-color: rgba(239, 68, 68, 0.22);
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
}

.review-status-label.perfected {
  border-color: rgba(34, 197, 94, 0.22);
  background: rgba(34, 197, 94, 0.09);
  color: #15803d;
}

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

.review-library-empty {
  margin-top: 18px;
}

.review-create-modal {
  width: min(100%, 680px);
}

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

.review-create-option {
  min-height: 180px;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 12px;
  padding: 18px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.review-create-option:disabled,
.review-create-option:disabled:hover {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

.review-delete-modal {
  width: min(100%, 520px);
}

.review-loading-overlay,
.review-loading-overlay .review-loading-modal {
  animation: none;
}

.review-loading-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.review-loading-modal {
  width: min(520px, calc(100vw - 32px));
  margin: 0 auto;
  justify-items: start;
}

.review-loading-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.review-loading-steps span {
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 254, 251, 0.74);
}

.review-topbar {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(220px, 520px) auto;
  gap: 16px;
  align-items: center;
}

.active-review-page {
  position: relative;
  grid-template-rows: 1fr;
  padding: 32px;
}

.review-page-back {
  position: absolute;
  top: 28px;
  left: 32px;
  z-index: 5;
}

.active-review-page .review-stage {
  width: min(960px, 100%);
  min-height: calc(100vh - 64px);
  padding-top: 36px;
}

.review-session-wrap {
  width: min(720px, calc(100vw - 160px));
  display: grid;
  gap: 16px;
}

.review-card-wrap {
  position: relative;
  width: 100%;
}

.review-card-wrap .review-flashcard {
  width: 100%;
}

.review-card-wrap .review-nav-button {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
}

.review-card-wrap .review-nav-button:hover {
  transform: translateY(calc(-50% - 1px));
}

.review-card-wrap .review-nav-button:disabled,
.review-card-wrap .review-nav-button:disabled:hover {
  transform: translateY(-50%);
}

.review-card-wrap .review-nav-button[data-review-nav="back"] {
  left: -58px;
}

.review-card-wrap .review-nav-button[data-review-nav="forward"] {
  right: -58px;
}

.review-progress {
  display: grid;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}

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

.review-progress strong {
  color: var(--text);
}

.review-nav-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fffefb;
  color: var(--text);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, opacity 160ms ease;
}

.review-nav-button:hover {
  border-color: rgba(200, 162, 74, 0.45);
  background: #fffaf0;
  transform: translateY(-1px);
}

.review-nav-button:disabled,
.review-nav-button:disabled:hover {
  cursor: not-allowed;
  opacity: 0.42;
  border-color: var(--border);
  background: #fffefb;
  transform: none;
}

.review-stage {
  width: min(920px, 100%);
  min-height: calc(100vh - 140px);
  margin: 0 auto;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 22px;
}

.review-flashcard {
  position: relative;
  width: min(720px, 100%);
  min-height: 360px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #fffefb;
  box-shadow: var(--shadow);
  color: var(--text);
  text-align: center;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.review-flashcard .bookmark-button {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 4;
}

.review-flashcard:hover {
  border-color: rgba(200, 162, 74, 0.46);
  box-shadow: 0 20px 42px rgba(17, 24, 39, 0.12);
  transform: translateY(-2px);
}

.review-flashcard.revealed {
  border-color: rgba(200, 162, 74, 0.5);
  background:
    linear-gradient(135deg, rgba(244, 234, 210, 0.46), rgba(255, 254, 251, 0.96)),
    #fffefb;
}

.review-flashcard h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.review-word-form {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 850;
}

.review-definition {
  max-width: 620px;
  margin: 0;
  color: var(--text);
  font-size: clamp(1.12rem, 2.3vw, 1.52rem);
  line-height: 1.65;
}

.review-actions {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.review-current-rating {
  margin: -6px 0 0;
  color: var(--gold-dark);
  font-size: 0.86rem;
  font-weight: 850;
}

.review-response-btn {
  min-height: 92px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 16px;
  color: var(--text);
  text-align: center;
}

.review-response-btn.selected {
  border-color: rgba(200, 162, 74, 0.58);
  background: #fff8e6;
  box-shadow: 0 14px 26px rgba(200, 162, 74, 0.16);
}

.review-response-btn span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.review-response-btn:disabled,
.review-response-btn:disabled:hover {
  cursor: not-allowed;
  opacity: 0.55;
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
  transform: none;
}

.review-message {
  margin: 0;
  color: var(--gold-dark);
  font-weight: 850;
  text-align: center;
}

.review-empty-card,
.review-complete-card {
  width: min(920px, 100%);
  align-self: center;
  justify-self: center;
}

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

@keyframes vocabPanelIn {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  max-width: min(360px, calc(100vw - 40px));
  padding: 13px 15px;
  border: 1px solid rgba(200, 162, 74, 0.34);
  border-radius: var(--radius);
  background: #fffefb;
  box-shadow: var(--shadow);
  color: var(--text);
  font-weight: 750;
}

.btn:disabled,
.btn:disabled:hover {
  cursor: not-allowed;
  transform: none;
  background: #d8d2c6;
  color: #fffefb;
  box-shadow: none;
}

.onboarding-shell {
  position: relative;
  display: grid;
  min-height: 100vh;
  padding: 28px 20px;
  background:
    radial-gradient(circle at top left, rgba(200, 162, 74, 0.14), transparent 32rem),
    linear-gradient(180deg, #fbfaf6 0%, var(--bg) 58%, #f1eee8 100%);
}

.onboarding-top {
  position: relative;
  z-index: 2;
  width: min(100%, 1120px);
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.signin-link,
.onboarding-footnote button {
  border: 0;
  background: transparent;
  color: var(--gold-dark);
  cursor: pointer;
  font-weight: 850;
}

.onboarding-card {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(100%, 920px);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 42px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 254, 251, 0.92)),
    var(--card);
}

.signin-card {
  width: min(100%, 560px);
  display: grid;
  gap: 14px;
}

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

.exam-choice-button {
  min-height: 132px;
}

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

.role-choice-card {
  min-height: 150px;
  text-align: left;
}

.onboarding-facts-card {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

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

.score-label {
  margin: 0 0 10px;
  font-weight: 850;
  color: var(--gold-dark);
}

.auth-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  font-weight: 800;
}

.auth-link-row a {
  color: var(--gold-dark);
}

.loading-card {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 140px;
}

.loading-spinner {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 3px solid rgba(194, 147, 46, 0.2);
  border-top-color: var(--gold);
  animation: spin 0.85s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.onboarding-progress {
  display: grid;
  gap: 9px;
  margin-bottom: 28px;
}

.progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.progress-label strong {
  color: var(--gold-dark);
}

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

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
  transition: width 420ms ease;
}

.onboarding-step {
  min-height: 410px;
  display: grid;
  align-content: center;
  gap: 24px;
}

.onboarding-step.animate {
  animation: stepIn 340ms ease both;
}

.onboarding-step.animate.from-left {
  animation-name: stepInLeft;
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes stepInLeft {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.onboarding-copy {
  max-width: 760px;
}

.onboarding-copy h1 {
  max-width: 780px;
}

.onboarding-copy p:not(.eyebrow),
.trust-text,
.method-card p,
.encouragement-card p,
.feature-card p,
.timeline-item p,
.pricing-text {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

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

.visual-node,
.summary-card,
.feature-card,
.method-card,
.encouragement-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
}

.visual-node {
  display: grid;
  gap: 12px;
  min-height: 132px;
  padding: 18px;
  align-content: center;
  transition: transform 180ms ease, border-color 180ms ease;
}

.visual-node:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 162, 74, 0.42);
}

.visual-node span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: #6f5415;
  font-weight: 850;
}

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

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

.choice-button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.choice-button:hover,
.score-button:hover,
.pricing-card:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 162, 74, 0.42);
  box-shadow: var(--shadow-soft);
}

.choice-button:active,
.score-button:active,
.pricing-card:active {
  transform: scale(0.985);
  transition-duration: 120ms;
}

.choice-button.selected,
.score-button.selected,
.pricing-card.selected {
  border-color: rgba(200, 162, 74, 0.72);
  background: rgba(244, 234, 210, 0.62);
  box-shadow: inset 0 0 0 1px rgba(200, 162, 74, 0.18), var(--shadow-soft);
}

.choice-button strong {
  display: block;
  font-size: 0.98rem;
}

.choice-button small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.choice-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f5f1e7;
  color: var(--gold-dark);
}

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

.score-button {
  min-height: 74px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 850;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.method-card,
.encouragement-card {
  padding: 22px;
}

.method-card {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.method-card p {
  flex-basis: 100%;
}

.encouragement-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: center;
}

.expert-badge {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 24px;
  border: 1px solid rgba(200, 162, 74, 0.32);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at center, rgba(244, 234, 210, 0.9), rgba(255, 255, 255, 0.8)),
    #ffffff;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.expert-badge strong {
  display: block;
  color: #6f5415;
  font-size: clamp(3.4rem, 8vw, 5.6rem);
  line-height: 1;
}

.expert-badge span {
  color: var(--muted);
  font-weight: 850;
}

.summary-grid,
.feature-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.summary-card,
.feature-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px;
}

.summary-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.summary-card strong {
  font-size: 1.05rem;
}

.onboarding-input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--text);
  outline: 0;
  font-size: 1rem;
  direction: ltr;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.onboarding-input:focus {
  border-color: rgba(200, 162, 74, 0.72);
  box-shadow: 0 0 0 4px rgba(200, 162, 74, 0.13);
}

.password-stack {
  display: grid;
  gap: 14px;
}

.password-field {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-weight: 800;
}

.password-input-wrap {
  position: relative;
  display: block;
}

.password-input-wrap .onboarding-input {
  padding-right: 52px;
}

.password-eye {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 160ms ease, color 160ms ease;
}

.password-eye:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.onboarding-input.input-error {
  border-color: rgba(239, 68, 68, 0.72);
}

.input-error-text {
  margin: -12px 0 0;
  color: #b91c1c;
  font-size: 0.88rem;
  font-weight: 750;
}

.inline-error-link {
  border: 0;
  background: transparent;
  color: var(--gold-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  padding: 0;
}

.loading-stack {
  display: grid;
  gap: 18px;
}

.loading-row {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 24, 39, 0.24);
  backdrop-filter: blur(10px);
  animation: modalFade 180ms ease both;
}

.strategy-modal {
  width: min(100%, 560px);
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fffefb;
  box-shadow: var(--shadow);
  animation: modalScale 220ms ease both;
}

.account-modal {
  max-height: min(88vh, 860px);
  overflow: auto;
}

.settings-modal {
  width: min(100%, 780px);
  position: relative;
  overflow: auto;
  box-shadow: 0 26px 70px rgba(41, 33, 17, 0.16), 0 0 0 1px rgba(200, 162, 74, 0.08);
}

.settings-modal::before {
  content: "";
  position: sticky;
  top: -24px;
  display: block;
  height: 2px;
  margin: -24px -24px 0;
  background: linear-gradient(90deg, transparent, rgba(200, 162, 74, 0.64), transparent);
  animation: settingsModalShine 5.8s ease-in-out infinite;
}

.settings-identity-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.95rem;
}

.settings-identity-line strong {
  color: var(--text);
}

.settings-modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.settings-modal-badge {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(217, 210, 194, 0.72);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.settings-modal-badge-role {
  background: rgba(200, 162, 74, 0.13);
  color: #7c5b17;
}

.settings-modal-badge-ok {
  background: rgba(79, 163, 111, 0.13);
  color: #1f6b43;
}

.settings-modal-badge-demo,
.settings-modal-badge-warning {
  background: rgba(200, 162, 74, 0.16);
  color: #7c5b17;
}

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

.settings-inline-note {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(200, 162, 74, 0.22);
  border-radius: 10px;
  background: rgba(250, 246, 237, 0.72);
  color: var(--muted);
  overflow-wrap: anywhere;
}

.modal-head,
.modal-actions,
.compact-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.compact-actions {
  justify-content: flex-start;
}

.settings-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.settings-section h3 {
  margin: 0;
}

.settings-section .btn-primary,
.settings-section .btn-secondary {
  box-shadow: 0 10px 24px rgba(200, 162, 74, 0.12);
}

.settings-section .btn-primary:hover,
.settings-section .btn-secondary:hover {
  box-shadow: 0 14px 30px rgba(200, 162, 74, 0.18);
}

.danger-section {
  border-color: rgba(239, 68, 68, 0.22);
  background: rgba(239, 68, 68, 0.05);
}

.danger-action-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(239, 68, 68, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
}

.danger-action-card.warning-action {
  border-color: rgba(200, 162, 74, 0.24);
  background: rgba(250, 246, 237, 0.68);
}

.danger-action-card .small-text {
  margin-top: 4px;
}

@media (max-width: 760px) {
  .settings-compact-grid {
    grid-template-columns: 1fr;
  }

  .danger-action-card {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .settings-modal::before {
    animation: none;
  }
}

@keyframes settingsModalShine {
  0%,
  100% {
    opacity: 0.42;
    transform: translateX(-18%);
  }
  50% {
    opacity: 0.86;
    transform: translateX(18%);
  }
}

@keyframes modalFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalScale {
  from {
    opacity: 0;
    transform: scale(0.98) translateY(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.journey-card {
  display: grid;
  gap: 18px;
}

.score-graph-card {
  min-height: 210px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.score-graph-card svg {
  display: block;
  width: 100%;
  height: auto;
}

.score-graph-grid {
  fill: none;
  stroke: rgba(229, 225, 216, 0.78);
  stroke-width: 1;
}

.score-graph-area {
  fill: url("#scoreFill");
}

.score-graph-line {
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-width: 5;
}

.score-graph-dot {
  fill: #fffefb;
  stroke: var(--gold-dark);
  stroke-width: 4;
}

.score-graph-kicker {
  fill: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.score-graph-label {
  fill: var(--text);
  font-size: 16px;
  font-weight: 850;
}

.journey-line {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  color: var(--gold-dark);
  font-size: 1.08rem;
  font-weight: 850;
}

.journey-line span {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(200, 162, 74, 0.66));
}

.journey-line span:last-child {
  background: linear-gradient(90deg, rgba(200, 162, 74, 0.66), transparent);
}

.expect-timeline {
  display: grid;
  gap: 10px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.timeline-item span {
  color: var(--gold-dark);
  font-weight: 850;
}

.timeline-item p {
  margin-top: 4px;
  font-size: 0.9rem;
}

.pricing-card {
  display: grid;
  gap: 12px;
  min-height: 330px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  cursor: default;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.pricing-card .btn {
  align-self: end;
  justify-self: start;
}

.plans-page {
  display: grid;
  gap: 22px;
}

.billing-message {
  justify-self: start;
}

.upgrade-modal {
  width: min(100%, 600px);
}

.upgrade-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(200, 162, 74, 0.26);
  border-radius: var(--radius);
  background: var(--gold-soft);
  color: #765714;
  font-weight: 780;
}

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

.pricing-price {
  font-size: 2.35rem;
  line-height: 1;
  font-weight: 850;
}

.pricing-features {
  display: grid;
  gap: 9px;
  color: var(--muted);
  font-size: 0.9rem;
}

.pricing-features span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.pricing-features .icon {
  color: var(--gold-dark);
}

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

.promo-message {
  margin: -12px 0 0;
  color: var(--gold-dark);
  font-weight: 800;
}

.feedback-pop {
  animation: feedbackPop 220ms ease both;
}

.password-error-pulse {
  animation: passwordErrorPulse 420ms ease both;
}

@keyframes feedbackPop {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.99);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes passwordErrorPulse {
  0%,
  100% {
    border-color: var(--border);
    transform: translateX(0);
  }

  25% {
    border-color: rgba(239, 68, 68, 0.55);
    transform: translateX(-2px);
  }

  55% {
    border-color: rgba(239, 68, 68, 0.45);
    transform: translateX(2px);
  }
}

.onboarding-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
}

.onboarding-footnote {
  margin: 18px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}

@media (max-width: 1080px) {
  .home-grid,
  .school-dashboard-grid,
  .practice-grid,
  .reading-exam-grid,
  .writing-exam-grid,
  .mock-grid,
  .wide-grid,
  .writing-layout,
  .act-question-layout {
    grid-template-columns: 1fr;
  }

  .reading-passage-panel,
  .reading-question-panel,
  .writing-task-panel,
  .writing-editor-panel,
  .act-passage-text {
    max-height: none;
  }

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

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

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

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

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

  .vocab-grid,
  .vocab-shortcut-grid,
  .stats-grid.four,
  .school-stat-grid,
  .school-mini-stats,
  .school-card-grid,
  .teacher-ops-stats,
  .teacher-class-grid,
  .assignment-form-grid,
  .assignment-target-grid,
  .role-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .progress-grid,
  .review-mode-grid,
  .pricing-grid,
  .feature-grid,
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-grid,
  .skill-summary-grid,
  .skill-summary-grid.five,
  .criteria-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sat-module-grid,
  .sat-breakdown-grid,
  .sat-review-grid,
  .qb-filter-grid {
    grid-template-columns: 1fr;
  }

  .school-dashboard-grid .side-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  :root {
    --nav-height: 108px;
  }

  .app-shell {
    padding-top: calc(var(--nav-height) + 20px);
  }

  .nav-inner {
    min-height: var(--nav-height);
    grid-template-columns: auto 1fr auto;
    gap: 8px 12px;
    padding: 10px 16px;
  }

  .home-top-nav .nav-inner {
    padding: 10px 16px;
    display: flex;
  }

  .header-home-slot {
    position: static;
    grid-column: 2;
    grid-row: 1;
    transform: none;
    justify-self: start;
  }

  .nav-actions {
    grid-column: 3;
    grid-row: 1;
  }

  .exam-home-link {
    width: 36px;
    padding: 0;
  }

  .exam-home-link span {
    display: none;
  }

  .nav-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .goal-pill {
    display: none;
  }

  .page-header,
  .chart-top,
  .practice-top,
  .reading-exam-topbar,
  .highlight-card,
  .school-alert-card,
  .vocab-hero,
  .vocab-library-controls .card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-header {
    display: grid;
  }

  .highlight-card,
  .vocab-hero,
  .reading-exam-topbar,
  .vocab-review-info {
    grid-template-columns: 1fr;
  }

  .reading-exam-title,
  .reading-top-actions {
    justify-content: flex-start;
    text-align: left;
  }

  .review-topbar {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .active-review-page {
    grid-template-rows: auto 1fr;
    padding: 20px 16px;
  }

  .review-page-back {
    position: static;
    justify-self: start;
  }

  .active-review-page .review-stage {
    min-height: calc(100vh - 112px);
    padding-top: 0;
  }

  .review-session-wrap {
    width: 100%;
  }

  .review-card-wrap .review-nav-button[data-review-nav="back"] {
    left: 12px;
  }

  .review-card-wrap .review-nav-button[data-review-nav="forward"] {
    right: 12px;
  }

  .review-topbar .btn {
    justify-content: center;
  }

  .sort-control {
    width: 100%;
  }

  .time-filters {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .onboarding-step {
    min-height: 360px;
  }

  .trust-grid,
  .plan-builder-visual,
  .school-card-grid,
  .teacher-ops-stats,
  .teacher-class-grid,
  .assignment-form-grid,
  .assignment-target-grid,
  .role-choice-grid,
  .school-stat-grid,
  .school-mini-stats,
  .school-dashboard-grid .side-stack {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(1.85rem, 9vw, 2.75rem);
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding-right: 14px;
    padding-left: 14px;
  }

  .school-list-row,
  .assignment-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .school-list-row > .status-pill,
  .school-list-row > strong,
  .school-list-row > .btn {
    grid-column: 2;
    justify-self: start;
  }

  .mocks-nav-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .ielts-section-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .ielts-section-nav .mocks-nav-chips {
    justify-content: flex-start;
    width: 100%;
  }

  .mocks-nav-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .mocks-nav-chips::-webkit-scrollbar {
    display: none;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    font-size: 0.98rem;
  }

  .brand-subtitle {
    font-size: 0.7rem;
  }

  .stats-grid,
  .stats-grid.four,
  .side-stack,
  .practice-option-grid,
  .test-grid,
  .reading-stat-row,
  .reading-review-summary,
  .reading-result-grid,
  .reading-mode-grid,
  .reading-note-grid,
  .reading-passage-actions,
  .listening-part-actions,
  .listening-audio-player,
  .reading-history-list,
  .vocab-grid,
  .vocab-shortcut-grid,
  .progress-grid,
  .overview-grid,
  .skill-summary-grid,
  .skill-summary-grid.five,
    .criteria-grid,
    .plan-grid,
    .plan-section-grid,
    .plan-week-steps,
    .review-mode-grid,
    .mini-card-grid,
    .choice-grid,
    .choice-grid.compact,
    .exam-choice-grid,
    .score-grid,
    .dual-score-grid,
    .pricing-grid,
    .feature-grid,
    .summary-grid {
    grid-template-columns: 1fr;
  }

  .card-pad,
  .daily-card,
  .mock-card-main,
  .vocab-hero,
  .plan-card,
    .reading-start-card,
    .reading-passage-panel,
    .reading-question-panel,
    .passage-card,
    .question-card,
    .onboarding-card {
    padding: 18px;
  }

  .task-row,
  .test-bottom,
    .reading-selected-mock,
    .reading-exam-actions,
    .audio-player,
    .sentence-check,
    .promo-row,
    .encouragement-card,
    .timeline-item {
    grid-template-columns: 1fr;
  }

  .review-page {
    padding: 16px;
  }

  .review-topbar {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .review-progress {
    width: min(100%, 420px);
  }

  .review-stage {
    min-height: calc(100vh - 220px);
  }

  .review-flashcard {
    min-height: 320px;
    border-radius: 20px;
  }

  .review-flashcard .bookmark-button {
    top: 18px;
    right: 18px;
  }

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

  .review-session-grid,
  .review-create-grid {
    grid-template-columns: 1fr;
  }

  .vocab-detail-overlay {
    display: block;
  }

  .vocab-detail-panel {
    width: 100%;
    min-height: 100%;
    margin: 0;
    border-radius: 0;
    border: 0;
  }

	  .task-row {
	    align-items: start;
	  }

	  .danger-action-card {
	    align-items: stretch;
	    flex-direction: column;
	  }

	  .task-row .btn,
  .highlight-card .btn,
  .vocab-hero .btn,
  .test-bottom .btn,
    .reading-passage-actions .btn,
    .reading-exam-actions .btn,
    .mock-actions .btn,
    .sentence-check .btn,
    .onboarding-actions .btn,
    .promo-row .btn {
    width: 100%;
  }

  .reading-start-icon {
    position: static;
    margin-bottom: -8px;
  }

  .reading-start-head {
    text-align: left;
  }

  .sat-question-pill {
    width: 32px;
    height: 32px;
    font-size: 0.82rem;
  }

  .sat-module-actions > div:last-child {
    width: 100%;
    justify-content: stretch;
  }

  .sat-results-grid {
    grid-template-columns: 1fr;
  }

  .onboarding-shell {
    padding: 16px 14px;
  }

  .onboarding-top {
    margin-bottom: 14px;
  }

  .onboarding-step {
    min-height: auto;
  }

  .onboarding-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .onboarding-actions > span {
    display: none;
  }

  .heatmap {
    grid-template-columns: repeat(18, 1fr);
  }
}
