@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap");

:root {
  color-scheme: dark;
  --bg: #0b1210;
  --sidebar: #0f1916;
  --surface: #121e1a;
  --surface-2: #172722;
  --surface-3: #1c2f29;
  --border: rgba(221, 240, 231, 0.11);
  --border-strong: rgba(221, 240, 231, 0.2);
  --text: #f2f6f3;
  --muted: #94a69e;
  --lime: #dff56b;
  --lime-dark: #22311c;
  --coral: #ff8d5c;
  --blue: #80b8ff;
  --danger: #ff8074;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.26);
  --radius: 22px;
  --sidebar-width: 248px;
  font-family: "DM Sans", system-ui, sans-serif;
}

:root.light {
  color-scheme: light;
  --bg: #f2f3ed;
  --sidebar: #e6e9df;
  --surface: #fafbf6;
  --surface-2: #eef1e7;
  --surface-3: #e4eadf;
  --border: rgba(32, 54, 45, 0.11);
  --border-strong: rgba(32, 54, 45, 0.2);
  --text: #15231e;
  --muted: #66766f;
  --lime-dark: #e8f1b3;
  --shadow: 0 18px 50px rgba(30, 48, 40, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); color: var(--text); }
button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(223, 245, 107, 0.6); outline-offset: 2px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; transform: translateY(-150%); padding: 10px 14px; border-radius: 8px; background: var(--lime); color: #172013; }
.skip-link:focus { transform: translateY(0); }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; width: var(--sidebar-width); flex-direction: column; border-right: 1px solid var(--border); background: var(--sidebar); padding: 28px 18px 22px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 30px; }
.brand-mark { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 13px 6px 13px 6px; background: var(--lime); color: #142019; font-family: "Manrope", sans-serif; font-weight: 800; box-shadow: 0 8px 24px rgba(223, 245, 107, 0.15); }
.brand strong, .brand span { display: block; }
.brand strong { font-family: "Manrope", sans-serif; font-size: 17px; }
.brand span { margin-top: 2px; color: var(--muted); font-size: 11px; }
.nav-list { display: grid; gap: 7px; }
.nav-item { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; width: 100%; padding: 12px 14px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); text-align: left; cursor: pointer; transition: 160ms ease; }
.nav-item span { font-size: 18px; text-align: center; }
.nav-item b { min-width: 22px; padding: 2px 6px; border-radius: 99px; background: var(--surface-3); color: var(--text); font-size: 10px; text-align: center; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--lime-dark); color: var(--lime); font-weight: 600; }
.sidebar-footer { margin-top: auto; padding: 16px 8px 0; }
.privacy-note { padding: 13px; border: 1px solid var(--border); border-radius: 12px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.privacy-note span { color: #69d89b; font-size: 9px; }
.sidebar-footer .text-button { margin-top: 14px; color: var(--muted); font-size: 11px; }

.main-content { min-height: 100vh; margin-left: var(--sidebar-width); padding: 0 42px 60px; }
.topbar { display: flex; min-height: 104px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.eyebrow { margin: 0 0 5px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.eyebrow.accent { color: var(--lime); }
.topbar h1 { margin: 0; font-family: "Manrope", sans-serif; font-size: clamp(19px, 2vw, 25px); letter-spacing: -0.03em; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.streak-pill { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border: 1px solid var(--border); border-radius: 99px; color: var(--muted); font-size: 12px; }
.streak-pill span { color: var(--coral); }
.streak-pill b { color: var(--text); }
.icon-button { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); cursor: pointer; }
.view { display: none; padding-top: 32px; animation: enter 240ms ease; }
.view.active { display: block; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } }

.hero-card { position: relative; display: grid; min-height: 290px; grid-template-columns: minmax(0, 1fr) 250px; align-items: center; overflow: hidden; border: 1px solid var(--border); border-radius: 28px; background: radial-gradient(circle at 85% 20%, rgba(223,245,107,.12), transparent 30%), linear-gradient(120deg, #14241f, #101b18); padding: 40px 48px; box-shadow: var(--shadow); }
:root.light .hero-card { background: radial-gradient(circle at 85% 20%, rgba(223,245,107,.45), transparent 32%), linear-gradient(120deg, #1b352d, #12251f); color: #f6faf7; }
.hero-card::after { position: absolute; right: 17%; bottom: -100px; width: 290px; height: 290px; border: 1px solid rgba(223,245,107,.13); border-radius: 50%; content: ""; }
.hero-copy { position: relative; z-index: 1; }
.hero-copy h2 { max-width: 700px; margin: 10px 0 14px; font-family: "Manrope", sans-serif; font-size: clamp(30px, 4.2vw, 50px); line-height: 1.08; letter-spacing: -0.055em; }
.hero-copy > p:not(.eyebrow) { max-width: 610px; margin: 0; color: #b7c6c0; font-size: 14px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.primary-button, .secondary-button { min-height: 43px; border-radius: 12px; padding: 0 18px; font-weight: 700; cursor: pointer; transition: transform 150ms ease, border-color 150ms ease; }
.primary-button { border: 1px solid var(--lime); background: var(--lime); color: #172013; }
.primary-button span { margin-left: 12px; }
.secondary-button { border: 1px solid var(--border-strong); background: transparent; color: inherit; }
.hero-card .secondary-button { color: #f2f6f3; }
.primary-button:hover, .secondary-button:hover { transform: translateY(-2px); }
.hero-progress { position: relative; z-index: 1; display: grid; justify-items: center; }
.progress-ring { --progress: 0deg; display: grid; width: 138px; height: 138px; place-items: center; border-radius: 50%; background: conic-gradient(var(--lime) var(--progress), rgba(255,255,255,.09) 0); }
.progress-ring::before { position: absolute; width: 112px; height: 112px; border-radius: 50%; background: #14231e; content: ""; }
.progress-ring span { position: relative; z-index: 1; font-family: "Manrope"; font-size: 30px; font-weight: 800; }
.hero-progress p { margin: 14px 0 2px; font-weight: 700; }
.hero-progress small { color: #9cb0a7; font-size: 11px; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; }
.stat-card { display: grid; grid-template-columns: 44px 1fr 28px; align-items: center; gap: 13px; min-height: 88px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); padding: 16px; }
.stat-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 13px; color: #152019; font-size: 18px; }
.stat-icon.lime { background: var(--lime); }
.stat-icon.coral { background: var(--coral); }
.stat-icon.blue { background: var(--blue); }
.stat-card strong, .stat-card span { display: block; }
.stat-card strong { font-family: "Manrope"; font-size: 19px; }
.stat-card div span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.stat-card button { border: 0; background: none; color: var(--muted); cursor: pointer; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(250px, .75fr); gap: 18px; }
.panel { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: 0 10px 35px rgba(0,0,0,.08); }
.dashboard-grid > .panel { min-height: 290px; padding: 25px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel-heading h3, .next-panel h3 { margin: 0; font-family: "Manrope"; font-size: 18px; }
.text-button { border: 0; background: none; color: var(--lime); cursor: pointer; }
.mastery-map { display: grid; gap: 11px; margin-top: 22px; }
.mastery-row { display: grid; grid-template-columns: minmax(150px, 1fr) 2fr 42px; align-items: center; gap: 13px; font-size: 11px; }
.mastery-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mastery-bar { height: 7px; overflow: hidden; border-radius: 99px; background: var(--surface-3); }
.mastery-bar i { display: block; height: 100%; border-radius: inherit; background: var(--lime); }
.mastery-row b { color: var(--muted); text-align: right; }
.next-panel { display: flex; flex-direction: column; }
.challenge-icon { display: grid; width: 50px; height: 50px; margin: 18px 0; place-items: center; border-radius: 15px; background: rgba(255,141,92,.13); color: var(--coral); font-size: 26px; }
.next-panel > p:not(.eyebrow) { color: var(--muted); font-size: 12px; line-height: 1.6; }
.next-panel .secondary-button { align-self: flex-start; margin-top: auto; }

.learn-layout { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 18px; min-height: calc(100vh - 165px); }
.lesson-index { padding: 16px; }
.search-field { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); padding: 0 12px; }
.search-field span { color: var(--muted); }
.search-field input { width: 100%; height: 42px; border: 0; outline: 0; background: transparent; color: var(--text); }
.lesson-list { display: grid; gap: 5px; max-height: calc(100vh - 245px); margin-top: 14px; overflow-y: auto; padding-right: 4px; }
.module-divider { margin: 16px 8px 5px; color: var(--lime); font-size: 9px; font-weight: 800; letter-spacing: .09em; line-height: 1.35; text-transform: uppercase; }
.module-divider:first-child { margin-top: 4px; }
.lesson-button { display: grid; grid-template-columns: 33px 1fr 8px; align-items: center; gap: 10px; width: 100%; border: 0; border-radius: 11px; background: transparent; padding: 10px; text-align: left; cursor: pointer; }
.lesson-button:hover, .lesson-button.active { background: var(--surface-2); }
.lesson-button.active { color: var(--lime); }
.lesson-number { display: grid; width: 33px; height: 33px; place-items: center; border: 1px solid var(--border); border-radius: 10px; color: var(--muted); font-size: 11px; }
.lesson-button.active .lesson-number { border-color: rgba(223,245,107,.4); background: var(--lime-dark); color: var(--lime); }
.lesson-button strong, .lesson-button small { display: block; }
.lesson-button strong { font-size: 12px; }
.lesson-button small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.lesson-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong); }
.lesson-dot.visited { background: var(--lime); }
.lesson-detail { padding: clamp(26px, 4vw, 54px); }
.lesson-detail-header { padding-bottom: 25px; border-bottom: 1px solid var(--border); }
.lesson-detail h2 { max-width: 720px; margin: 9px 0 13px; font-family: "Manrope"; font-size: clamp(27px, 4vw, 44px); letter-spacing: -0.045em; }
.lesson-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 5px 9px; border-radius: 99px; background: var(--surface-3); color: var(--muted); font-size: 10px; }
.lesson-summary { margin: 30px 0; color: var(--text); font-size: 16px; line-height: 1.75; }
.lesson-detail h3 { margin: 28px 0 13px; font-family: "Manrope"; font-size: 17px; }
.key-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.key-list li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; color: var(--muted); line-height: 1.55; }
.key-list li::before { display: grid; width: 21px; height: 21px; place-items: center; border-radius: 50%; background: var(--lime-dark); color: var(--lime); content: "✓"; font-size: 10px; }
.analogy-box { margin-top: 27px; border-left: 3px solid var(--coral); border-radius: 0 13px 13px 0; background: rgba(255,141,92,.07); padding: 18px 20px; }
.analogy-box span { display: block; margin-bottom: 6px; color: var(--coral); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.analogy-box p { margin: 0; color: var(--muted); line-height: 1.6; }
.lesson-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 35px; }

.mode-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: 900px; margin: 0 auto 24px; }
.mode-intro.compact { max-width: none; }
.mode-intro h2 { margin: 5px 0; font-family: "Manrope"; font-size: clamp(29px, 4vw, 43px); letter-spacing: -0.045em; }
.mode-intro p:not(.eyebrow) { margin: 0; color: var(--muted); }
.session-counter, .quiz-score { text-align: right; }
.session-counter b, .quiz-score b { display: block; font-family: "Manrope"; font-size: 30px; }
.session-counter span, .quiz-score span { color: var(--muted); font-size: 11px; }
.session-counter i { font-style: normal; }
.flashcard-stage { display: grid; max-width: 820px; justify-items: center; margin: 0 auto; }
.flashcard { display: flex; min-height: 390px; width: 100%; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--border-strong); border-radius: 30px; background: radial-gradient(circle at 50% 0, rgba(223,245,107,.08), transparent 40%), var(--surface); color: var(--text); padding: 50px; text-align: center; box-shadow: var(--shadow); cursor: pointer; }
.flashcard.revealed { border-color: rgba(223,245,107,.35); }
.card-label { margin-bottom: 24px; color: var(--lime); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.flashcard strong { max-width: 650px; font-family: "Manrope"; font-size: clamp(24px, 4vw, 37px); line-height: 1.25; }
#card-hint { margin-top: 28px; color: var(--muted); font-size: 11px; }
.card-back { display: none; max-width: 680px; margin: 26px 0 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.flashcard.revealed #card-hint { display: none; }
.flashcard.revealed .card-back { display: block; }
.rating-actions { display: grid; width: 100%; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 16px; }
.rating-actions button { display: grid; gap: 3px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 11px; cursor: pointer; }
.rating-actions button:hover { border-color: var(--lime); }
.rating-actions span { font-size: 12px; font-weight: 700; }
.rating-actions small { color: var(--muted); font-size: 9px; }
.empty-state { max-width: 600px; margin: 70px auto; text-align: center; }
.empty-state > div { display: grid; width: 66px; height: 66px; margin: 0 auto 20px; place-items: center; border-radius: 50%; background: var(--lime); color: #172013; font-size: 25px; }
.empty-state h3 { font-family: "Manrope"; font-size: 27px; }
.empty-state p { color: var(--muted); }

.quiz-tabs { display: inline-flex; gap: 3px; border-radius: 12px; background: var(--surface); padding: 4px; }
.quiz-tabs button { border: 0; border-radius: 9px; background: transparent; color: var(--muted); padding: 9px 14px; cursor: pointer; }
.quiz-tabs button.active { background: var(--surface-3); color: var(--text); }
.quiz-workspace { max-width: 960px; margin: 30px auto 0; }
.question-card { min-height: 410px; padding: clamp(24px, 5vw, 52px); }
.question-progress { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.question-card h3 { max-width: 760px; margin: 35px 0 27px; font-family: "Manrope"; font-size: clamp(22px, 3vw, 32px); line-height: 1.35; }
.option-list { display: grid; gap: 10px; }
.option-button { display: grid; grid-template-columns: 29px 1fr; align-items: center; gap: 11px; width: 100%; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-2); padding: 13px 15px; text-align: left; cursor: pointer; }
.option-button:hover:not(:disabled) { border-color: var(--lime); }
.option-button span { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; background: var(--surface-3); color: var(--muted); font-size: 10px; }
.option-button.correct { border-color: rgba(105,216,155,.65); background: rgba(105,216,155,.08); }
.option-button.wrong { border-color: rgba(255,128,116,.65); background: rgba(255,128,116,.08); }
.feedback-box { margin-top: 18px; border-radius: 13px; background: var(--surface-2); padding: 15px; color: var(--muted); line-height: 1.5; }
.feedback-box strong { color: var(--text); }
.question-next { display: flex; justify-content: flex-end; margin-top: 18px; }
.scenario-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.scenario-card { min-height: 220px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 23px; cursor: pointer; }
.scenario-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.scenario-card span { color: var(--coral); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.scenario-card h3 { margin: 17px 0 9px; font-family: "Manrope"; }
.scenario-card p { color: var(--muted); font-size: 12px; line-height: 1.55; }
.scenario-workbench { padding: clamp(25px, 5vw, 50px); }
.scenario-workbench textarea { width: 100%; min-height: 180px; resize: vertical; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-2); color: var(--text); padding: 15px; }
.rubric { display: grid; gap: 8px; padding: 0; list-style: none; }
.rubric li { padding: 11px 13px; border-radius: 10px; background: var(--surface-2); color: var(--muted); }

.tutor-shell { display: flex; max-width: 920px; min-height: calc(100vh - 165px); flex-direction: column; margin: 0 auto; overflow: hidden; }
.tutor-header { display: flex; align-items: center; gap: 13px; border-bottom: 1px solid var(--border); padding: 18px 22px; }
.tutor-avatar, .message-avatar { display: grid; flex: 0 0 auto; place-items: center; border-radius: 12px; background: var(--lime); color: #172013; }
.tutor-avatar { width: 42px; height: 42px; }
.tutor-header h2 { margin: 0; font-family: "Manrope"; font-size: 17px; }
.tutor-header p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.tutor-header p span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #69d89b; }
.chat-messages { display: flex; flex: 1; flex-direction: column; gap: 18px; overflow-y: auto; padding: 27px; }
.message { display: flex; max-width: 80%; gap: 10px; }
.message.user-message { align-self: flex-end; flex-direction: row-reverse; }
.message-avatar { width: 29px; height: 29px; font-size: 12px; }
.message > div:last-child { border-radius: 5px 16px 16px 16px; background: var(--surface-2); padding: 12px 15px; }
.user-message > div:last-child { border-radius: 16px 5px 16px 16px; background: var(--lime-dark); }
.message p { margin: 0; line-height: 1.6; }
.message ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.message cite { display: block; margin-top: 10px; color: var(--lime); font-size: 10px; font-style: normal; }
.prompt-chips { display: flex; gap: 7px; overflow-x: auto; padding: 10px 22px; }
.prompt-chips button { flex: 0 0 auto; border: 1px solid var(--border); border-radius: 99px; background: transparent; color: var(--muted); padding: 7px 10px; font-size: 10px; cursor: pointer; }
.prompt-chips button:hover { border-color: var(--lime); color: var(--text); }
.tutor-form { display: grid; grid-template-columns: 1fr 42px; gap: 9px; margin: 0 22px; border: 1px solid var(--border-strong); border-radius: 15px; background: var(--surface-2); padding: 8px; }
.tutor-form textarea { max-height: 120px; resize: none; border: 0; outline: 0; background: transparent; color: var(--text); padding: 10px; }
.tutor-form button { border: 0; border-radius: 11px; background: var(--lime); color: #172013; font-weight: 800; cursor: pointer; }
.tutor-disclaimer { margin: 8px 22px 14px; color: var(--muted); font-size: 9px; text-align: center; }
.mobile-nav { display: none; }
.toast { position: fixed; right: 25px; bottom: 25px; z-index: 100; transform: translateY(20px); border: 1px solid var(--border); border-radius: 12px; background: var(--surface-3); padding: 12px 16px; opacity: 0; pointer-events: none; box-shadow: var(--shadow); transition: 180ms ease; }
.toast.visible { transform: translateY(0); opacity: 1; }

@media (max-width: 1000px) {
  :root { --sidebar-width: 200px; }
  .main-content { padding-inline: 25px; }
  .hero-card { padding: 36px; }
  .learn-layout { grid-template-columns: 280px 1fr; }
}

@media (max-width: 760px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; padding: 0 16px 92px; }
  .topbar { min-height: 82px; }
  .topbar .eyebrow { display: none; }
  .streak-pill { height: 36px; padding-inline: 10px; }
  .icon-button { width: 36px; height: 36px; }
  .view { padding-top: 20px; }
  .hero-card { grid-template-columns: 1fr; padding: 29px 23px; }
  .hero-progress { display: none; }
  .hero-copy h2 { font-size: 34px; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat-card { min-height: 76px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .mastery-row { grid-template-columns: minmax(110px, 1fr) 1.4fr 36px; }
  .learn-layout { grid-template-columns: 1fr; }
  .lesson-index { padding: 12px; }
  .lesson-list { display: flex; max-height: none; overflow-x: auto; padding-bottom: 6px; }
  .lesson-button { min-width: 210px; }
  .lesson-detail { padding: 25px 20px; }
  .mode-intro { align-items: flex-start; }
  .mode-intro > div:first-child p:not(.eyebrow) { max-width: 250px; }
  .flashcard { min-height: 390px; padding: 34px 22px; }
  .rating-actions { grid-template-columns: repeat(2, 1fr); }
  .scenario-grid { grid-template-columns: 1fr; }
  .message { max-width: 94%; }
  .tutor-shell { min-height: calc(100vh - 125px); }
  .mobile-nav { position: fixed; inset: auto 0 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--border); background: color-mix(in srgb, var(--sidebar) 92%, transparent); padding: 8px max(8px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); backdrop-filter: blur(18px); }
  .mobile-nav button { display: grid; justify-items: center; gap: 3px; border: 0; background: transparent; color: var(--muted); font-size: 9px; cursor: pointer; }
  .mobile-nav span { font-size: 17px; }
  .mobile-nav button.active { color: var(--lime); }
}

@media (max-width: 420px) {
  .topbar h1 { font-size: 18px; }
  .hero-copy h2 { font-size: 30px; }
  .hero-actions > * { width: 100%; }
  .dashboard-grid > .panel { padding: 19px; }
  .mode-intro h2 { font-size: 29px; }
  .session-counter { display: none; }
  .question-card { padding: 21px 16px; }
  .prompt-chips { padding-inline: 14px; }
  .tutor-form { margin-inline: 13px; }
}

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