@font-face {
  font-family: "Manrope";
  src: url("./assets/manrope-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  /* Brand colors sampled from the supplied Ahabito avatar. */
  --ink: #242b47;
  --ink-rgb: 36 43 71;
  --ink-soft: #414b68;
  --cream: #f4eedf;
  --paper: #fcfaf6;
  --white: #fffdf9;
  --surface-soft: #f1eee8;
  --muted: #656d82;
  --line: #e8e4dc;
  --line-strong: #b3a996;
  --accent-soft: #e4e7f0;
  --focus: #626f96;
  --success: #426045;
  --success-soft: #edf2e9;
  --error: #9a503e;
  --error-soft: #fbefe8;
  --hero-muted: #ddd8cf;
  --sage: var(--accent-soft);
  --sage-dark: var(--success);
  --warm: var(--cream);
  --sidebar-width: 224px;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--font);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-size: 14px; line-height: 1.65; }
button, input, select { font: inherit; }
button, a, select, input { -webkit-tap-highlight-color: transparent; }
button { color: inherit; cursor: pointer; }
button, input, select { border-radius: 0; }
button { border: 0; background: none; }
a { color: inherit; text-decoration: none; }
svg, img { display: block; flex-shrink: 0; }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.2; }
strong { font-weight: 750; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
main:focus { outline: none; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; }
.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; z-index: 100; left: 16px; top: -100px; padding: 12px 20px; color: white; background: var(--ink); border-radius: 12px; }
.skip-link:focus { top: 16px; }

/* The quiet frame keeps the learning path in focus. */
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: var(--sidebar-width); display: flex; flex-direction: column; padding: 33px 20px 20px; background: var(--white); border-right: 1px solid var(--line); }
.brand { display: flex; gap: 8px; align-items: center; padding: 0 7px; font-size: 29px; font-weight: 800; line-height: 1; letter-spacing: -1.7px; }
.brand img { width: 48px; height: 48px; object-fit: contain; border-radius: 12px; background: var(--cream); }
.brand-dot { color: var(--ink-soft); }
.sidebar-caption { margin: 17px 0 0 11px; font-size: 11px; letter-spacing: 1.75px; color: var(--muted); font-weight: 700; }
.desktop-nav { display: grid; gap: 8px; margin-top: 51px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 13px; min-height: 49px; padding: 12px 16px; border-radius: 13px; color: var(--muted); font-size: 14px; font-weight: 700; transition: color .18s, background .18s, transform .18s; }
.nav-item .icon { width: 19px; height: 19px; stroke-width: 1.65; }
.nav-item:hover { color: var(--ink); background: var(--cream); }
.nav-item.active { color: var(--ink); background: var(--cream); }
.nav-count { display: inline-grid; place-items: center; margin-left: auto; min-width: 20px; height: 20px; border-radius: 7px; background: var(--ink); color: var(--cream); font-size: 12px; }
.sidebar-profile { display: flex; gap: 10px; align-items: center; padding: 18px 0 0; border-top: 1px solid var(--line); }
.avatar, .top-avatar { display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--cream); }
.avatar { width: 34px; height: 34px; flex: 0 0 34px; }
.avatar .icon { width: 16px; height: 16px; }
.sidebar-profile strong { display: block; font-size: 12px; }
.sidebar-profile small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.sidebar-profile > .icon { margin-left: auto; width: 13px; height: 13px; color: var(--muted); }
.workspace { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 77px; padding: 14px 46px; border-bottom: 1px solid var(--line); background: rgb(252 250 246 / .94); }
.topbar-label { font-size: 11px; font-weight: 750; letter-spacing: 1.8px; color: var(--muted); }
.topbar-stats { display: flex; align-items: center; gap: 21px; }
.stat-pill { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.stat-pill .icon { color: var(--ink-soft); width: 18px; height: 18px; margin-right: 2px; }
.stat-pill strong { color: var(--ink); font-size: 13px; }
.xp-pill .icon { color: var(--muted); }
.top-avatar { width: 34px; height: 34px; margin-left: 4px; }
.top-avatar .icon { width: 15px; height: 15px; }
.mobile-brand, .mobile-nav { display: none; }
.workspace main { width: 100%; max-width: 1292px; padding: 43px 46px 26px; margin: 0 auto; }
.page-footer { display: flex; justify-content: space-between; gap: 15px; max-width: 1292px; padding: 20px 46px 27px; margin: 0 auto; font-size: 11px; color: var(--muted); }
.page-footer span:last-child { color: var(--muted); }

/* Shared type and controls. */
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 31px; }
.page-heading > div { min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; line-height: 1.6; letter-spacing: 1.65px; color: var(--muted); }
.page-heading h1 { margin-top: 12px; font-size: clamp(29px,2.9vw,42px); font-weight: 750; letter-spacing: -1.85px; line-height: 1.2; }
.heading-accent { color: var(--ink-soft); }
.page-heading p { margin-top: 12px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.grade-picker { position: relative; flex: 0 0 auto; display: flex; align-items: center; }
.grade-picker select { appearance: none; cursor: pointer; min-height: 44px; padding: 0 42px 0 17px; border: 1px solid var(--line); border-radius: 11px; background: var(--white); color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.grade-picker .icon { position: absolute; right: 14px; width: 13px; height: 13px; pointer-events: none; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; border: 1px solid transparent; border-radius: 12px; padding: 13px 21px; font-size: 14px; font-weight: 750; line-height: 1.5; transition: background .18s, transform .18s, box-shadow .18s; }
.button .icon { width: 18px; height: 18px; }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button:active:not(:disabled) { transform: translateY(0); }
.button-primary { color: var(--cream); background: var(--ink); box-shadow: 0 3px 0 #161c32; }
.button-primary:hover:not(:disabled) { background: var(--ink-soft); box-shadow: 0 5px 0 #161c32, 0 9px 18px rgb(var(--ink-rgb) / 0.071); }
.button-primary:disabled { color: var(--muted); background: var(--cream); box-shadow: none; }
.button-cream { color: var(--ink); background: var(--cream); box-shadow: 0 3px 0 var(--line-strong); min-width: 184px; }
.button-cream:hover { background: var(--cream); box-shadow: 0 5px 0 var(--line-strong), 0 10px 24px rgb(var(--ink-rgb) / 0.133); }
.button-ghost { color: var(--ink-soft); border-color: var(--line); background: var(--paper); }
.button-ghost:hover { background: var(--cream); }
.button-wide { width: 100%; }
.text-link { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 8px 0; min-height: 44px; color: var(--ink-soft); font-size: 13px; font-weight: 750; }
.text-link .icon { width: 16px; height: 16px; }
.text-link:hover { color: var(--ink); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 34px 0 17px; }
.section-heading .eyebrow { margin-bottom: 5px; font-size: 11px; letter-spacing: 1.5px; }
.section-heading h2 { font-size: 21px; font-weight: 750; letter-spacing: -.65px; }
.subtle-text { color: var(--muted); font-size: 13px; }

/* The next lesson and the weekly study record. */
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 2.13fr) minmax(264px, 1fr); gap: 22px; align-items: stretch; }
.lesson-hero { position: relative; isolation: isolate; display: flex; flex-direction: column; overflow: hidden; border-radius: 23px; background: var(--ink); color: var(--cream); min-height: 354px; box-shadow: 0 9px 28px rgb(var(--ink-rgb) / 0.051); }
.hero-copy { position: relative; z-index: 2; width: 64%; padding: 29px 0 25px 30px; }
.hero-kicker { display: flex; align-items: center; gap: 7px; color: var(--hero-muted); font-size: 11px; font-weight: 750; letter-spacing: 1.55px; }
.hero-subject { display: block; margin-top: 26px; font-size: 12px; color: var(--hero-muted); }
.hero-subject > span { margin: 0 6px; color: var(--hero-muted); }
.hero-copy h2 { max-width: 350px; margin-top: 8px; font-size: clamp(25px,2.35vw,33px); letter-spacing: -1px; line-height: 1.2; font-weight: 750; }
.hero-copy > p { max-width: 265px; margin-top: 11px; color: var(--hero-muted); font-size: 13px; line-height: 1.75; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 16px 0 23px; color: var(--hero-muted); font-size: 11px; font-weight: 550; }
.hero-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .icon { width: 13px; height: 13px; color: var(--hero-muted); }
.hero-bottom { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: auto 29px 0; padding: 17px 0 20px; border-top: 1px solid rgb(243 232 212 / 0.071); color: var(--hero-muted); font-size: 11px; }
.hero-bottom > span, .hero-bottom > a { display: inline-flex; align-items: center; gap: 7px; }
.hero-bottom .icon { width: 12px; height: 12px; }
.hero-bottom > a { font-weight: 700; color: var(--hero-muted); }
.rhythm-card { display: flex; flex-direction: column; min-width: 0; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: 23px; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-topline h2 { font-size: 14px; font-weight: 750; letter-spacing: -.3px; }
.round-icon { display: grid; place-items: center; width: 30px; height: 30px; background: var(--cream); border-radius: 10px; color: var(--ink-soft); }
.round-icon .icon { width: 16px; height: 16px; }
.rhythm-number { display: flex; align-items: baseline; gap: 11px; margin-top: 16px; font-size: 50px; font-weight: 750; letter-spacing: -2px; line-height: 1.15; }
.rhythm-number > span { font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.rhythm-card > p { max-width: 210px; margin-top: 8px; font-size: 12px; line-height: 1.8; color: var(--muted); }
.week-days { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 5px; margin: 23px 0 23px; }
.week-day { display: flex; flex-direction: column; align-items: center; gap: 9px; min-width: 0; color: var(--muted); font-size: 11px; }
.day-circle { display: grid; place-items: center; width: 26px; height: 26px; color: var(--muted); border-radius: 50%; background: var(--cream); font-size: 15px; line-height: 1; }
.week-day.current > span:first-child { color: var(--ink); font-weight: 800; }
.week-day.current .day-circle { border: 1px solid var(--line-strong); background: var(--cream); box-shadow: 0 0 0 3px rgb(243 232 212 / 0.267); }
.day-circle > span { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.week-day.done .day-circle { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.day-circle .icon { width: 12px; height: 12px; stroke-width: 2.5; }
.daily-goal { margin-top: auto; }
.daily-goal > div:first-child { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: var(--muted); }
.daily-goal strong { font-size: 11px; color: var(--ink-soft); }
.progress-track { height: 5px; margin-top: 11px; border-radius: 10px; background: var(--surface-soft); overflow: hidden; }
.progress-track > span { display: block; height: 100%; border-radius: inherit; background: var(--ink); transition: width .6s; }
.rhythm-bottom { display: block; margin-top: 17px; text-align: center; color: var(--muted); font-size: 11px; }

/* Topic discovery. */
.discovery-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin-top: 22px; }
.discovery-card { display: flex; align-items: center; gap: 15px; padding: 19px; background: var(--cream); border: 1px solid var(--line); border-radius: 17px; transition: transform .2s, border-color .2s, box-shadow .2s; }
.review-discovery { background: var(--accent-soft); border-color: var(--line); }
.discovery-icon { display: grid; place-items: center; width: 39px; height: 39px; flex: 0 0 39px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); }
.discovery-icon .icon { width: 19px; height: 19px; }
.review-discovery .discovery-icon { color: var(--muted); border-color: var(--line); }
.discovery-card > span:nth-child(2) { min-width: 0; }
.discovery-card strong { display: block; font-size: 13px; letter-spacing: -.15px; line-height: 1.55; }
.discovery-card small { display: block; color: var(--muted); font-size: 11px; line-height: 1.6; margin-top: 4px; }
.circle-arrow { flex: 0 0 26px; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; margin-left: auto; color: var(--muted); }
.circle-arrow .icon { width: 13px; height: 13px; }
.topic-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.topic-card { min-width: 0; display: flex; align-items: center; position: relative; width: 100%; padding: 20px; gap: 18px; text-align: left; border: 1px solid var(--line); border-radius: 18px; background: var(--white); transition: transform .2s, border-color .2s, box-shadow .2s; }
.topic-card:hover, .discovery-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 9px 24px rgb(var(--ink-rgb) / 0.031); }
.topic-illustration { display: grid; place-items: center; width: 76px; height: 88px; flex: 0 0 76px; color: var(--ink-soft); border-radius: 15px; background: var(--accent-soft); }
.topic-illustration.geometry { color: var(--ink-soft); background: var(--accent-soft); }
.math-art { width: 57px; height: 69px; }
.math-art text { stroke: none; fill: currentColor; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-style: italic; }
.math-art .art-equation { font-size: 36px; }
.art-dashed { stroke-dasharray: 4 4; opacity: .4; }
.art-fill { fill: currentColor; fill-opacity: .15; }
.art-dot { fill: currentColor; }
.topic-card-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; min-width: 0; }
.topic-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11px; font-weight: 650; color: var(--muted); line-height: 1.5; }
.topic-eyebrow > span { color: var(--muted); }
.topic-card-body > strong { display: block; margin-top: 6px; font-size: 14px; line-height: 1.45; letter-spacing: -.3px; }
.topic-description { color: var(--muted); margin-top: 4px; font-size: 11px; line-height: 1.65; }
.topic-meta { display: flex; align-items: center; gap: 5px; margin-top: 11px; font-size: 11px; color: var(--muted); }
.topic-meta .icon { width: 11px; height: 11px; }
.topic-arrow { color: var(--muted); margin-left: auto; align-self: flex-end; padding-bottom: 2px; }
.topic-arrow .icon { width: 15px; height: 15px; }
.topic-done .topic-meta { color: var(--success); }
.topic-done .topic-illustration { border: 1px solid var(--success); }

/* Search and library. */
.library-controls { display: flex; align-items: stretch; gap: 13px; margin-top: 30px; }
.search-field { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; min-height: 54px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); padding: 0 17px; color: var(--muted); transition: border-color .2s,box-shadow .2s; }
.search-field:focus-within { border-color: var(--line-strong); box-shadow: 0 0 0 3px rgb(var(--ink-rgb) / 0.071); }
.search-field input { min-width: 0; width: 100%; height: 50px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.search-field input::placeholder { color: var(--muted); opacity: 1; }
.search-field > .icon { width: 18px; height: 18px; }
.search-field kbd { display: grid; place-items: center; width: 23px; height: 24px; flex: 0 0 23px; border: 1px solid var(--line); border-radius: 5px; font-size: 13px; font-family: inherit; }
.library-controls .grade-picker select { height: 100%; min-height: 54px; }
.filter-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; margin-top: 22px; margin-bottom: 22px; }
.segmented { display: flex; flex-wrap: wrap; gap: 5px; }
.segmented button { padding: 10px 17px; min-height: 44px; font-size: 12px; font-weight: 750; border-radius: 10px; color: var(--muted); border: 1px solid transparent; transition: background .18s; }
.segmented button:hover { color: var(--ink); background: var(--cream); }
.segmented button.selected { color: var(--cream); background: var(--ink); }
.library-note { font-size: 11px; color: var(--muted); }
.results-caption { color: var(--muted); font-size: 12px; padding: 1px 0 15px; }
.content-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 27px; font-size: 12px; line-height: 1.9; color: var(--muted); }
.content-note .icon { width: 15px; height: 15px; margin-top: 2px; }
.empty-state { padding: 68px 20px; text-align: center; border: 1px dashed var(--line); border-radius: 20px; background: var(--white); }
.empty-icon { display: grid; place-items: center; margin: 0 auto 22px; width: 60px; height: 60px; background: var(--accent-soft); border-radius: 20px; color: var(--ink-soft); }
.empty-icon .icon { width: 26px; height: 26px; }
.empty-state h2 { font-size: 24px; letter-spacing: -.7px; }
.empty-state p { color: var(--muted); font-size: 14px; margin: 12px 0 25px; }

/* Revision and personal progress. */
.review-banner { display: flex; align-items: center; gap: 24px; padding: 29px; background: var(--cream); border: 1px solid var(--line); border-radius: 22px; }
.review-banner-icon { width: 67px; height: 67px; display: grid; place-items: center; flex: 0 0 67px; color: var(--ink-soft); background: var(--accent-soft); border-radius: 22px; }
.review-banner-icon .icon { width: 29px; height: 29px; }
.review-banner > div:nth-child(2) { flex: 1; min-width: 0; }
.review-banner .eyebrow { font-size: 11px; color: var(--muted); }
.review-banner h2 { font-size: 22px; letter-spacing: -.7px; margin: 6px 0 9px; }
.review-banner p { color: var(--muted); font-size: 13px; line-height: 1.9; max-width: 430px; }
.review-banner > .button { flex-shrink: 0; }
.review-list { display: grid; gap: 12px; }
.review-item { display: flex; align-items: center; gap: 19px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 17px; background: var(--white); }
.review-art { display: grid; place-items: center; width: 58px; height: 67px; flex: 0 0 58px; border-radius: 12px; background: var(--accent-soft); color: var(--ink-soft); }
.review-art .math-art { width: 46px; height: 57px; }
.review-item-copy { min-width: 0; flex: 1; }
.review-item-copy h3 { font-size: 15px; line-height: 1.5; margin: 4px 0 5px; letter-spacing: -.25px; }
.review-status { font-size: 11px; color: var(--muted); line-height: 1.7; display: block; }
.review-status.is-due { color: var(--ink-soft); }
.review-item .button { min-height: 44px; font-size: 12px; padding: 11px 15px; }
.memory-explainer { display: flex; justify-content: center; align-items: center; gap: 35px; padding: 73px 10px; }
.memory-explainer > span { color: var(--ink-soft); font-size: 40px; font-weight: 700; letter-spacing: -2px; text-align: center; line-height: 1.2; }
.memory-explainer small { display: block; font-size: 13px; letter-spacing: 0; color: var(--muted); font-weight: 650; margin-top: 15px; }
.memory-explainer > i { font-style: normal; color: var(--muted); font-size: 22px; }
.gentle-note { display: flex; align-items: flex-start; gap: 13px; padding: 22px; border-radius: 14px; border: 1px solid var(--line); margin-top: 28px; color: var(--muted); }
.gentle-note .icon { width: 17px; height: 17px; margin-top: 1px; }
.gentle-note p { font-size: 13px; line-height: 1.8; }
.profile-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.profile-stats > div { display: grid; grid-template-columns: 1fr auto; padding: 25px; border: 1px solid var(--line); border-radius: 19px; background: var(--white); }
.profile-stats .icon { grid-column: 2; grid-row: 1 / 3; color: var(--muted); width: 24px; height: 24px; }
.profile-stats strong { grid-column: 1; grid-row: 1; font-size: 40px; letter-spacing: -1.5px; font-weight: 750; line-height: 1.2; }
.profile-stats > div > span { grid-column: 1 / 3; margin-top: 11px; color: var(--muted); font-size: 12px; }
.badge-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.achievement { padding: 29px 20px 21px; border: 1px solid var(--line); border-radius: 19px; background: var(--cream); text-align: center; color: var(--muted); }
.achievement-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 20px; border-radius: 50%; border: 1px solid var(--line); background: var(--cream); }
.achievement-icon .icon { width: 25px; height: 25px; }
.achievement h3 { font-size: 14px; letter-spacing: -.3px; }
.achievement p { font-size: 12px; line-height: 1.75; margin-top: 9px; min-height: 35px; }
.achievement-label { display: inline-flex; padding: 4px 10px; border-radius: 7px; font-size: 11px; background: var(--surface-soft); color: var(--muted); margin-top: 16px; }
.achievement.earned { color: var(--ink); background: var(--cream); border-color: var(--line); }
.achievement.earned .achievement-icon { color: var(--muted); background: var(--cream); border-color: var(--line-strong); box-shadow: 0 0 0 7px rgb(var(--ink-rgb) / .06); }
.achievement.earned p { color: var(--muted); }
.achievement.earned .achievement-label { color: var(--ink-soft); background: var(--surface-soft); }
.empty-inline { padding: 30px; background: var(--cream); border: 1px dashed var(--line); border-radius: 17px; color: var(--muted); font-size: 14px; }
.storage-note { display: flex; align-items: flex-start; gap: 12px; padding-top: 27px; margin-top: 30px; border-top: 1px solid var(--line); color: var(--muted); }
.storage-note > .icon { width: 17px; height: 17px; margin-top: 2px; }
.storage-note strong { font-size: 13px; color: var(--muted); }
.storage-note p { max-width: 600px; font-size: 12px; line-height: 1.9; margin-top: 5px; }

/* A focused lesson surface. */
.lesson-page { width: 100%; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); }
.lesson-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(100%,1024px); margin: 0 auto; padding: 26px 32px 20px; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; color: var(--muted); background: var(--surface-soft); border-radius: 50%; transition: background .18s; }
.icon-button:hover { background: var(--surface-soft); }
.icon-button .icon { width: 19px; height: 19px; }
.lesson-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 25px; font-weight: 800; letter-spacing: -1.5px; margin-right: auto; margin-left: 10px; }
.lesson-brand img { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; background: var(--cream); }
.lesson-step-label { color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: .3px; }
.lesson-progress-row { display: flex; align-items: center; gap: 19px; width: min(100%,1024px); margin: 0 auto; padding: 0 32px; }
.lesson-progress { flex: 1; height: 7px; border-radius: 20px; background: var(--cream); overflow: hidden; }
.lesson-progress > span { display: block; height: 100%; background: var(--ink); border-radius: inherit; transition: width .45s ease; }
.lesson-progress-row > span { font-size: 12px; color: var(--muted); font-weight: 700; }
.lesson-main { width: 100%; max-width: 720px; padding: 45px 24px 44px; margin: 0 auto; flex: 1; }
.lesson-main h1 { font-size: clamp(27px,3vw,36px); font-weight: 750; letter-spacing: -1.25px; line-height: 1.3; }
.lesson-intro > h1 { margin-top: 12px; }
.lesson-intro-subtitle { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.theory-card { display: grid; grid-template-columns: 146px minmax(0,1fr); gap: 24px; margin-top: 30px; padding: 27px; background: var(--white); border: 1px solid var(--line); border-radius: 23px; }
.theory-visual { display: grid; place-items: center; min-height: 164px; align-self: stretch; border-radius: 16px; color: var(--ink-soft); background: var(--accent-soft); }
.theory-visual .math-art { width: 100px; height: 127px; }
.pill-label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 700; }
.pill-label .icon { width: 13px; height: 13px; }
.theory-content h2 { font-size: 17px; letter-spacing: -.4px; margin: 11px 0; }
.theory-content p { font-size: 14px; color: var(--muted); line-height: 1.9; }
.formula { display: block; margin-top: 18px; padding: 14px 17px; border-radius: 10px; background: var(--cream); color: var(--ink-soft); font-size: 20px; font-weight: 700; letter-spacing: -.5px; line-height: 1.65; overflow-wrap: anywhere; }
.example-card { display: flex; gap: 13px; padding: 23px; margin: 18px 0 26px; border-radius: 16px; border: 1px solid var(--line); background: var(--cream); }
.example-card > span { color: var(--muted); }
.example-card .icon { width: 19px; height: 19px; }
.example-card strong { display: block; font-size: 13px; color: var(--ink-soft); }
.example-card p { font-size: 14px; color: var(--muted); line-height: 1.95; margin-top: 8px; white-space: pre-line; }
.lesson-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; width: min(100%,1024px); margin: auto auto 0; padding: 24px 32px; color: var(--muted); font-size: 11px; }
.lesson-footer > span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.lesson-footer .icon { width: 13px; height: 13px; }
.question-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.question-heading .eyebrow { font-size: 11px; letter-spacing: 1.35px; }
.question-heading .text-link { font-size: 11px; gap: 6px; white-space: nowrap; }
.question-heading .text-link .icon { width: 14px; height: 14px; }
.question-view > h1 { max-width: 650px; font-size: clamp(25px,2.6vw,33px); }
.question-instruction { margin: 16px 0 24px; font-size: 13px; color: var(--muted); }
.inline-theory { border: 1px solid var(--line); background: var(--cream); border-radius: 16px; padding: 20px; margin: 16px 0 20px; animation: appear .25s ease both; }
.inline-theory strong { font-size: 14px; }
.inline-theory p { font-size: 13px; line-height: 1.9; margin-top: 8px; color: var(--muted); }
.inline-theory .formula { background: var(--paper); font-size: 17px; }
.answer-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; margin-bottom: 27px; }
.answer-option { position: relative; display: flex; align-items: center; gap: 14px; text-align: left; min-height: 81px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: 0 3px 0 var(--line); font-size: 17px; font-weight: 650; line-height: 1.5; transition: border .18s, background .18s, box-shadow .18s, transform .18s; }
.answer-option:not(:disabled):hover { border-color: var(--line-strong); background: var(--paper); transform: translateY(-2px); box-shadow: 0 5px 0 var(--line); }
.answer-letter { display: grid; place-items: center; width: 26px; height: 28px; flex: 0 0 26px; border: 1px solid var(--line); border-radius: 7px; font-size: 12px; color: var(--muted); background: var(--white); font-weight: 700; }
.answer-option > span:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }
.answer-indicator { display: grid; place-items: center; min-width: 18px; margin-left: auto; }
.answer-indicator .icon { width: 18px; height: 18px; }
.answer-option.is-selected { border-color: var(--ink); background: var(--cream); box-shadow: 0 3px 0 var(--ink); color: var(--ink); }
.answer-option.is-selected .answer-letter { color: white; background: var(--ink); border-color: var(--ink); }
.answer-option.is-correct { border-color: var(--success); background: var(--success-soft); box-shadow: 0 3px 0 var(--success); color: var(--success); }
.answer-option.is-correct .answer-letter { border-color: var(--success); background: var(--success-soft); color: var(--success); }
.answer-option.is-wrong { border-color: var(--error); background: var(--error-soft); box-shadow: 0 3px 0 var(--error); color: var(--error); }
.answer-option.is-wrong .answer-letter { background: var(--error-soft); color: var(--error); border-color: var(--error); }
.question-actions { display: flex; align-items: center; justify-content: space-between; gap: 17px; padding-top: 3px; }
.question-actions .button { min-width: 192px; }
.hint-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 0; font-size: 13px; font-weight: 650; color: var(--muted); text-align: left; }
.hint-button .icon { width: 17px; height: 17px; }
.hint-button:hover { color: var(--ink-soft); }
.hint-text { margin-top: 21px; padding: 20px; border-radius: 13px; border: 1px solid var(--line); color: var(--muted); background: var(--cream); font-size: 14px; line-height: 1.9; animation: appear .25s ease both; }
.answer-feedback { display: flex; align-items: flex-start; gap: 13px; padding: 20px; margin: 0 0 24px; border-radius: 15px; animation: appear .3s ease both; }
.feedback-correct { background: var(--success-soft); border: 1px solid var(--success); color: var(--success); }
.feedback-learn { background: var(--error-soft); border: 1px solid var(--error); color: var(--error); }
.answer-feedback > span { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; background: rgb(243 232 212 / 0.376); }
.answer-feedback .icon { width: 16px; height: 16px; }
.answer-feedback strong { display: block; font-size: 13px; margin-top: 1px; }
.answer-feedback p { font-size: 14px; margin-top: 7px; line-height: 1.9; }

/* Lesson results and the next scheduled practice. */
.result-view { max-width: 520px; margin: 0 auto; text-align: center; }
.result-view h1 { margin: 12px 0; font-size: clamp(27px,3vw,35px); }
.result-view > p { color: var(--muted); font-size: 14px; line-height: 1.9; max-width: 430px; margin: 0 auto; }
.result-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin: 26px 0 18px; }
.result-metrics > div { display: grid; justify-items: center; padding: 21px 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.result-metrics .icon { width: 19px; height: 19px; color: var(--muted); margin-bottom: 8px; }
.result-metrics strong { font-size: 25px; letter-spacing: -.75px; line-height: 1.3; }
.result-metrics > div > span { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.result-next { display: flex; align-items: center; gap: 13px; text-align: left; padding: 19px; border: 1px solid var(--line); border-radius: 15px; background: var(--cream); margin-bottom: 26px; color: var(--muted); }
.result-next > .icon { width: 23px; height: 23px; }
.result-next strong { display: block; color: var(--ink-soft); font-size: 13px; }
.result-next span { display: block; margin-top: 5px; font-size: 12px; line-height: 1.7; }
.result-library { margin-top: 14px; font-size: 12px; }

/* Feedback and layers. */
dialog { width: min(420px,calc(100% - 36px)); padding: 31px; color: var(--ink); border: 1px solid var(--line); border-radius: 23px; background: var(--white); box-shadow: 0 30px 100px rgb(var(--ink-rgb) / 0.188); }
dialog::backdrop { background: rgb(var(--ink-rgb) / 0.631); backdrop-filter: blur(5px); }
dialog[open] { animation: appear .2s ease both; }
.dialog-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 20px; background: var(--cream); border-radius: 14px; font-size: 25px; color: var(--muted); }
dialog h2 { font-size: 23px; letter-spacing: -.7px; }
dialog p { font-size: 14px; color: var(--muted); line-height: 1.9; margin-top: 13px; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 11px; margin-top: 26px; }
.dialog-actions .button { padding: 12px 15px; font-size: 12px; }
.toast { position: fixed; bottom: 25px; left: calc(50% + var(--sidebar-width)/2); z-index: 100; max-width: min(430px,calc(100vw - 32px)); padding: 14px 21px; border-radius: 12px; color: var(--cream); background: var(--ink); box-shadow: 0 8px 25px rgb(var(--ink-rgb) / 0.125); transform: translate(-50%,20px); opacity: 0; visibility: hidden; transition: transform .25s,opacity .25s,visibility .25s; text-align: center; font-size: 13px; line-height: 1.7; pointer-events: none; }
.toast.show, .toast.visible { opacity: 1; visibility: visible; transform: translate(-50%,0); }
.is-lesson .toast { left: 50%; }
noscript { display: block; padding: 40px; }

/* Motion is deliberately small and settles quickly. */
.workspace main > *, .lesson-main > * { animation: appear .45s cubic-bezier(.22,1,.36,1) both; }
.workspace main > :nth-child(2) { animation-delay: .045s; }
.workspace main > :nth-child(3) { animation-delay: .085s; }
.workspace main > :nth-child(4) { animation-delay: .12s; }
@keyframes appear { from { opacity: 0; transform: translateY(11px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1600px) {
  :root { --sidebar-width: 245px; }
  .sidebar { padding-left: 25px; padding-right: 25px; }
  .workspace main { padding-top: 52px; }
  .dashboard-grid { grid-template-columns: minmax(0,2.1fr) minmax(290px,1fr); }
  .lesson-hero { min-height: 378px; }
  .hero-copy { padding: 33px 0 29px 35px; }
  .rhythm-card { padding: 28px; }
  .topic-card { padding: 24px; }
  .topic-card-body > strong { font-size: 15px; }
}
@media (max-width: 1200px) {
  :root { --sidebar-width: 196px; }
  .sidebar { padding-left: 14px; padding-right: 14px; }
  .brand { font-size: 26px; gap: 5px; }
  .brand img { width: 42px; height: 42px; }
  .sidebar-caption { font-size: 10px; letter-spacing: 1.3px; }
  .nav-item { padding-left: 13px; padding-right: 12px; gap: 11px; font-size: 13px; }
  .topbar { padding-left: 30px; padding-right: 30px; }
  .workspace main { padding: 35px 30px 22px; }
  .page-footer { padding-left: 30px; padding-right: 30px; }
  .dashboard-grid { grid-template-columns: minmax(0,1fr) 252px; gap: 16px; }
  .hero-copy { width: 72%; padding-left: 24px; }
  .hero-copy h2 { font-size: 28px; max-width: 260px; }
  .hero-copy > p { max-width: 210px; }
  .hero-bottom { margin-left: 24px; margin-right: 24px; font-size: 10px; }
  .rhythm-card { padding: 22px 19px; }
  .week-days { gap: 3px; }
  .discovery-card { gap: 11px; padding: 17px; }
  .discovery-icon { width: 33px; height: 36px; flex-basis: 33px; }
  .discovery-card strong { font-size: 12px; }
  .discovery-card small { font-size: 11px; }
  .topic-card { gap: 13px; padding: 17px; }
  .topic-illustration { width: 61px; flex-basis: 61px; height: 79px; }
  .topic-card-body > strong { font-size: 14px; }
  .topic-description { font-size: 11px; }
  .topic-arrow { display: none; }
  .review-banner { flex-wrap: wrap; }
  .review-banner > .button { margin-left: 90px; }
}
@media (max-width: 980px) {
  :root { --sidebar-width: 0px; }
  .sidebar { display: none; }
  .workspace { margin-left: 0; padding-bottom: 72px; }
  .topbar { padding: 15px 28px; min-height: 73px; }
  .topbar-label { display: none; }
  .mobile-brand { display: inline-flex; align-items: center; gap: 6px; font-size: 24px; font-weight: 800; letter-spacing: -1.4px; }
  .mobile-brand img { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; background: var(--cream); }
  .workspace main { max-width: 850px; }
  .page-heading h1 { font-size: 36px; }
  .mobile-nav { position: fixed; z-index: 30; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); background: rgb(255 250 242 / .95); border-top: 1px solid var(--line); backdrop-filter: blur(16px); padding: 6px 16px max(8px, env(safe-area-inset-bottom)); }
  .mobile-nav .nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 52px; padding: 6px 3px; border-radius: 10px; font-size: 11px; font-weight: 650; line-height: 1.5; }
  .mobile-nav .nav-item.active { background: rgb(243 232 212 / 0.478); }
  .mobile-nav .nav-item .icon { width: 20px; height: 20px; }
  .mobile-nav .nav-count { position: absolute; top: 2px; left: calc(50% + 9px); min-width: 16px; height: 16px; font-size: 11px; margin: 0; border-radius: 5px; }
  .toast { bottom: 88px; left: 50%; }
  .top-avatar { margin-left: 0; }
  .dashboard-grid { grid-template-columns: minmax(0,1fr) 253px; }
  .hero-copy h2 { font-size: 29px; }
}
@media (max-width: 760px) {
  .topbar { min-height: 68px; padding: 15px 21px; }
  .topbar-stats { gap: 14px; }
  .stat-pill { gap: 4px; font-size: 11px; }
  .stat-pill .icon { width: 16px; height: 16px; margin-right: 1px; }
  .stat-pill strong { font-size: 14px; }
  .stat-label { display: none; }
  .top-avatar { width: 31px; height: 31px; }
  .workspace main { padding: 29px 21px 16px; }
  .page-heading { gap: 16px; margin-bottom: 24px; align-items: flex-start; flex-wrap: wrap; }
  .page-heading h1 { font-size: clamp(29px,5.6vw,39px); letter-spacing: -1.45px; max-width: 570px; }
  .page-heading p { font-size: 13px; line-height: 1.8; max-width: 400px; }
  .page-heading > .grade-picker { margin-top: 0; }
  .eyebrow { font-size: 11px; letter-spacing: 1.2px; }
  .grade-picker select { font-size: 12px; min-height: 44px; padding-left: 14px; }
  .dashboard-grid { grid-template-columns: 1fr; gap: 17px; }
  .lesson-hero { min-height: 339px; border-radius: 21px; }
  .hero-copy { width: 65%; padding: 26px 0 25px 26px; }
  .hero-copy h2 { font-size: 32px; max-width: 350px; }
  .hero-copy > p { max-width: 270px; font-size: 13px; }
  .hero-subject { margin-top: 24px; }
  .hero-meta { font-size: 12px; }
  .hero-bottom { font-size: 11px; padding-bottom: 20px; }
  .rhythm-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0 25px; padding: 23px; }
  .card-topline { grid-column: 1; grid-row: 1; }
  .rhythm-number { grid-column: 1; grid-row: 2; margin-top: 12px; font-size: 43px; }
  .rhythm-card > p { grid-column: 1; grid-row: 3; max-width: 220px; font-size: 12px; }
  .week-days { grid-column: 2; grid-row: 1 / 3; margin: 10px 0 18px; align-content: center; }
  .daily-goal { grid-column: 2; grid-row: 3; align-self: center; }
  .rhythm-bottom { grid-column: 1 / 3; margin-top: 17px; font-size: 11px; }
  .round-icon { width: 26px; height: 26px; }
  .discovery-row { margin-top: 17px; gap: 13px; }
  .discovery-card { align-items: flex-start; flex-wrap: wrap; padding: 18px; gap: 12px 8px; }
  .discovery-card > span:nth-child(2) { width: 100%; order: 3; }
  .discovery-card strong { font-size: 13px; }
  .discovery-card small { font-size: 11px; }
  .circle-arrow { margin-top: 6px; }
  .topic-card { gap: 13px; padding: 17px; }
  .topic-grid { gap: 13px; }
  .topic-illustration { width: 52px; flex-basis: 52px; height: 74px; }
  .topic-illustration .math-art { width: 45px; height: 58px; }
  .topic-card-body > strong { font-size: 14px; }
  .section-heading { margin-top: 29px; }
  .section-heading h2 { font-size: 21px; }
  .page-footer { padding: 19px 21px 25px; font-size: 11px; }
  .page-footer span:last-child { display: none; }
  .review-banner { gap: 16px; padding: 23px; }
  .review-banner-icon { width: 52px; height: 52px; flex-basis: 52px; border-radius: 17px; }
  .review-banner h2 { font-size: 21px; }
  .review-banner > .button { margin-left: 68px; }
  .review-item { gap: 14px; padding: 18px; flex-wrap: wrap; }
  .review-item-copy h3 { font-size: 14px; }
  .review-item .button { margin-left: 72px; }
  .memory-explainer { gap: 20px; padding: 50px 0; }
  .memory-explainer > span { font-size: 34px; }
  .memory-explainer small { font-size: 11px; max-width: 100px; }
  .profile-stats { gap: 12px; }
  .profile-stats > div { padding: 20px; }
  .profile-stats strong { font-size: 34px; }
  .profile-stats .icon { width: 19px; height: 19px; }
  .badge-grid { gap: 12px; }
  .achievement { padding: 24px 13px 19px; }
  .achievement h3 { font-size: 13px; }
  .achievement p { font-size: 11px; }
  .subtle-text { font-size: 11px; }
}
@media (max-width: 520px) {
  .page-heading .heading-copy { max-width: 100%; }
  .page-heading h1 { font-size: 31px; line-height: 1.22; }
  .page-heading h1 .heading-accent { display: block; }
  .page-heading p { max-width: 300px; font-size: 12px; }
  .page-heading > .grade-picker { position: relative; margin-top: 0; }
  .page-heading .grade-picker select { min-height: 44px; }
  .lesson-hero { min-height: 355px; }
  .hero-copy { width: 82%; padding: 25px 0 24px 23px; }
  .hero-kicker { font-size: 10px; letter-spacing: 1.15px; }
  .hero-copy h2 { max-width: 265px; font-size: 29px; }
  .hero-copy > p { max-width: 230px; font-size: 12px; }
  .hero-subject { font-size: 11px; margin-top: 24px; }
  .hero-meta { font-size: 11px; margin-top: 17px; margin-bottom: 22px; }
  .hero-bottom { margin-left: 23px; margin-right: 23px; padding: 16px 0 17px; font-size: 10px; gap: 8px; }
  .hero-bottom > span { gap: 5px; }
  .hero-bottom > a { gap: 4px; }
  .button-cream { min-width: 184px; min-height: 47px; }
  .rhythm-card { display: grid; grid-template-columns: 1fr; padding: 23px; gap: 0; }
  .card-topline { grid-row: 1; grid-column: 1; }
  .rhythm-number { grid-row: 2; grid-column: 1; font-size: 43px; }
  .rhythm-card > p { grid-row: 3; grid-column: 1; max-width: 100%; margin-top: 6px; font-size: 12px; }
  .week-days { grid-row: 4; grid-column: 1; margin: 21px 0; gap: 7px; }
  .week-day { font-size: 11px; gap: 9px; }
  .day-circle { width: 31px; height: 31px; }
  .daily-goal { grid-row: 5; grid-column: 1; }
  .rhythm-bottom { grid-row: 6; grid-column: 1; }
  .daily-goal > div:first-child, .daily-goal strong { font-size: 12px; }
  .discovery-row { grid-template-columns: 1fr; gap: 12px; }
  .discovery-card { flex-wrap: nowrap; align-items: center; padding: 17px; gap: 12px; }
  .discovery-card > span:nth-child(2) { width: auto; order: initial; }
  .discovery-card strong { font-size: 13px; }
  .discovery-card small { font-size: 11px; }
  .circle-arrow { margin-top: 0; }
  .topic-grid { grid-template-columns: 1fr; }
  .topic-card { padding: 19px; gap: 17px; }
  .topic-card-body > strong { font-size: 14px; margin-top: 5px; }
  .topic-description { font-size: 11px; }
  .topic-eyebrow { font-size: 11px; }
  .topic-meta { font-size: 11px; margin-top: 10px; }
  .topic-illustration { width: 65px; flex-basis: 65px; height: 84px; border-radius: 13px; }
  .topic-illustration .math-art { width: 51px; height: 64px; }
  .topic-arrow { display: block; }
  .section-heading { margin-top: 30px; margin-bottom: 16px; }
  .section-heading .text-link { font-size: 12px; gap: 6px; }
  .library-controls { flex-wrap: wrap; gap: 11px; margin-top: 23px; }
  .search-field { flex-basis: 100%; min-height: 51px; padding: 0 14px; }
  .search-field input { font-size: 13px; }
  .search-field kbd { display: none; }
  .library-controls .grade-picker select { min-height: 44px; }
  .filter-row { gap: 12px; margin-top: 15px; margin-bottom: 19px; }
  .segmented { gap: 4px; width: 100%; }
  .segmented button { flex: 1; padding: 10px 9px; font-size: 11px; }
  .library-note { font-size: 11px; }
  .content-note { font-size: 11px; margin-top: 23px; }
  .empty-state { padding: 40px 20px; }
  .empty-state h2 { font-size: 22px; }
  .empty-state p { font-size: 13px; }
  .review-banner { padding: 23px; gap: 15px; }
  .review-banner > div:nth-child(2) { flex-basis: calc(100% - 70px); }
  .review-banner h2 { font-size: 20px; }
  .review-banner .eyebrow { font-size: 10px; letter-spacing: .8px; }
  .review-banner p { font-size: 12px; }
  .review-banner > .button { width: 100%; margin: 5px 0 0; }
  .review-item { padding: 18px; }
  .review-item .button { width: 100%; margin: 0; }
  .review-status { font-size: 11px; }
  .memory-explainer { gap: 12px; }
  .memory-explainer > span { font-size: 30px; }
  .memory-explainer > i { font-size: 16px; }
  .memory-explainer small { font-size: 11px; max-width: 75px; margin-top: 10px; line-height: 1.8; }
  .gentle-note { padding: 18px; gap: 10px; }
  .gentle-note p { font-size: 12px; }
  .profile-stats { gap: 9px; }
  .profile-stats > div { padding: 17px 13px; display: flex; flex-direction: column; align-items: flex-start; border-radius: 15px; }
  .profile-stats .icon { width: 17px; height: 17px; margin-bottom: 13px; }
  .profile-stats strong { font-size: 29px; }
  .profile-stats > div > span { font-size: 11px; line-height: 1.7; margin-top: 8px; }
  .badge-grid { grid-template-columns: 1fr; gap: 11px; }
  .achievement { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 0 16px; padding: 20px; text-align: left; }
  .achievement-icon { grid-column: 1; grid-row: 1 / 4; width: 48px; height: 48px; align-self: center; margin: 0; }
  .achievement-icon .icon { width: 22px; height: 22px; }
  .achievement h3 { grid-column: 2; font-size: 13px; }
  .achievement p { grid-column: 2; min-height: 0; margin-top: 5px; font-size: 11px; }
  .achievement-label { grid-column: 2; justify-self: start; margin-top: 10px; padding: 3px 7px; font-size: 10px; }
  .section-heading .subtle-text { display: none; }
  .empty-inline { padding: 23px; font-size: 13px; line-height: 1.9; }
  .storage-note { margin-top: 25px; padding-top: 22px; }
  .storage-note p { font-size: 11px; }
  .lesson-top { padding: 17px 20px; gap: 12px; }
  .lesson-brand { font-size: 23px; margin-left: 3px; }
  .lesson-step-label { font-size: 11px; }
  .lesson-progress-row { padding: 0 21px; gap: 13px; }
  .lesson-main { padding: 32px 21px; }
  .lesson-main h1 { font-size: 28px; letter-spacing: -.9px; }
  .lesson-intro-subtitle { font-size: 12px; }
  .theory-card { grid-template-columns: 1fr; gap: 21px; padding: 23px; margin-top: 24px; }
  .theory-visual { min-height: 134px; }
  .theory-visual .math-art { width: 86px; height: 111px; }
  .theory-content h2 { font-size: 17px; }
  .theory-content p { font-size: 13px; }
  .formula { font-size: 20px; padding: 13px 15px; }
  .example-card { padding: 19px; margin-bottom: 24px; }
  .example-card p { font-size: 13px; }
  .lesson-footer { padding: 18px 21px 25px; font-size: 11px; gap: 10px; }
  .lesson-footer > span:last-child { display: none; }
  .question-heading { gap: 7px; margin-bottom: 15px; flex-wrap: wrap; }
  .question-heading .eyebrow { font-size: 10px; letter-spacing: .8px; }
  .question-heading .text-link { font-size: 11px; gap: 4px; }
  .question-view > h1 { font-size: 27px; line-height: 1.4; }
  .question-instruction { margin-top: 13px; margin-bottom: 21px; font-size: 12px; }
  .answer-options { gap: 12px; grid-template-columns: 1fr; margin-bottom: 24px; }
  .answer-option { min-height: 67px; padding: 15px; font-size: 17px; }
  .answer-letter { height: 27px; }
  .question-actions { flex-direction: column-reverse; gap: 10px; }
  .question-actions > .button { width: 100%; }
  .hint-button { width: 100%; font-size: 12px; }
  .answer-feedback { padding: 18px; gap: 10px; margin-bottom: 23px; }
  .answer-feedback strong { font-size: 14px; }
  .answer-feedback p { font-size: 13px; }
  .hint-text { padding: 18px; font-size: 13px; margin-top: 13px; }
  .result-view h1 { font-size: 28px; }
  .result-view > p { font-size: 13px; }
  .result-metrics { gap: 12px; margin-top: 23px; }
  .result-metrics > div { padding: 20px 10px; }
  .result-metrics strong { font-size: 24px; }
  .result-metrics > div > span { font-size: 11px; }
  .result-next { padding: 17px; gap: 11px; }
  .result-next strong { font-size: 12px; }
  .result-next span { font-size: 11px; }
  .mobile-nav { padding-left: 10px; padding-right: 10px; }
  .mobile-nav .nav-item { font-size: 11px; }
  .toast { font-size: 12px; bottom: calc(85px + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100vw - 32px); }
}
@media (max-width: 375px) {
  .topbar, .workspace main { padding-left: 17px; padding-right: 17px; }
  .mobile-brand { font-size: 22px; }
  .mobile-brand img { width: 36px; height: 36px; }
  .topbar-stats { gap: 10px; }
  .top-avatar { width: 29px; height: 29px; }
  .page-heading h1 { font-size: 29px; }
  .hero-copy { padding-left: 21px; width: 87%; }
  .hero-copy h2 { font-size: 28px; }
  .hero-bottom { margin-left: 21px; margin-right: 21px; font-size: 10px; }
  .hero-bottom .icon { width: 10px; height: 10px; }
  .topic-card { padding: 16px; gap: 14px; }
  .topic-card-body > strong { font-size: 13px; }
  .topic-illustration { width: 57px; flex-basis: 57px; height: 77px; }
  .topic-arrow { display: none; }
  .discovery-card { padding: 16px; gap: 10px; }
  .discovery-card strong { font-size: 12px; }
  .discovery-card small { font-size: 11px; }
  .circle-arrow { width: 23px; height: 23px; flex-basis: 23px; }
  .rhythm-card { padding: 21px; }
  .day-circle { width: 29px; height: 29px; }
  .lesson-main { padding-left: 18px; padding-right: 18px; }
  .question-heading .text-link { font-size: 10px; }
  dialog { padding: 25px; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions .button { width: 100%; font-size: 13px; }
}
/* Learning content stays readable at normal browser zoom, on every screen. */
.nav-item { font-size: 14px; }
.sidebar { padding-left: 16px; padding-right: 16px; }
.sidebar-caption { font-size: 10px; letter-spacing: .9px; color: var(--muted); }
.sidebar-profile strong { font-size: 11px; }
.sidebar-profile small { font-size: 10px; color: var(--muted); }
.topbar-label { font-size: 10px; color: var(--muted); letter-spacing: 1.4px; }
.page-heading p { font-size: 14px; color: var(--muted); line-height: 1.8; max-width: 610px; }
.eyebrow, .section-heading .eyebrow, .hero-kicker { font-size: 10px; }
.eyebrow { color: var(--muted); letter-spacing: 1.2px; }
.button, .dialog-actions .button, .review-item .button { font-size: 14px; }
.grade-picker select { font-size: 13px; }
.text-link { font-size: 13px; }
.hero-kicker { color: var(--hero-muted); letter-spacing: 1.2px; }
.hero-subject { font-size: 12px; }
.hero-copy > p { font-size: 14px; line-height: 1.75; color: var(--hero-muted); max-width: 300px; }
.hero-meta { font-size: 12px; }
.hero-bottom { font-size: 11px; }
.card-topline h2 { font-size: 16px; }
.rhythm-number > span { font-size: 13px; color: var(--ink-soft); }
.rhythm-card > p { max-width: 100%; font-size: 13px; color: var(--muted); line-height: 1.8; }
.week-day { font-size: 11px; color: var(--muted); }
.daily-goal > div:first-child, .daily-goal strong { font-size: 12px; color: var(--ink-soft); }
.rhythm-bottom { font-size: 11px; color: var(--muted); line-height: 1.7; }
.discovery-card strong { font-size: 14px; line-height: 1.55; }
.discovery-card small { font-size: 13px; color: var(--ink-soft); line-height: 1.65; }
.discovery-card { padding-top: 21px; padding-bottom: 21px; }
.topic-card { padding-top: 23px; padding-bottom: 23px; }
.topic-card-body > strong { font-size: 16px; line-height: 1.45; }
.topic-eyebrow { font-size: 11px; color: var(--muted); }
.topic-description { font-size: 13px; color: var(--ink-soft); line-height: 1.75; }
.topic-meta { font-size: 11px; color: var(--muted); }
.topic-meta .icon { width: 13px; height: 13px; }
.page-footer { font-size: 11px; color: var(--muted); }
.page-footer span:last-child { color: var(--muted); }
.search-field input { font-size: 14px; }
.search-field input::placeholder { color: var(--muted); }
.segmented button { font-size: 13px; color: var(--ink-soft); }
.library-note, .results-caption { font-size: 12px; color: var(--muted); }
.content-note { font-size: 12px; color: var(--muted); }
.empty-state p { font-size: 14px; color: var(--ink-soft); }
.subtle-text { font-size: 12px; color: var(--muted); }
.review-banner .eyebrow { font-size: 10px; color: var(--ink-soft); }
.review-banner p { font-size: 14px; color: var(--ink-soft); }
.review-status { font-size: 12px; color: var(--ink-soft); }
.review-status.is-due { color: var(--ink-soft); }
.review-item-copy h3 { font-size: 16px; }
.memory-explainer small { font-size: 13px; color: var(--ink-soft); line-height: 1.7; }
.gentle-note p { font-size: 14px; color: var(--ink-soft); }
.profile-stats > div > span { font-size: 12px; color: var(--ink-soft); }
.achievement { color: var(--ink-soft); }
.achievement h3 { font-size: 15px; }
.achievement p { font-size: 13px; line-height: 1.8; }
.achievement-label { font-size: 11px; color: var(--ink-soft); }
.achievement.earned p { color: var(--ink-soft); }
.achievement.earned .achievement-label { color: var(--ink-soft); }
.empty-inline { font-size: 14px; color: var(--ink-soft); }
.storage-note { color: var(--ink-soft); }
.storage-note strong { font-size: 13px; color: var(--ink-soft); }
.storage-note p { font-size: 12px; }
.lesson-step-label, .lesson-progress-row > span { font-size: 12px; color: var(--ink-soft); }
.lesson-intro-subtitle { font-size: 14px; color: var(--muted); line-height: 1.8; }
.pill-label { font-size: 12px; color: var(--ink-soft); }
.theory-content h2 { font-size: 20px; }
.theory-content p { font-size: 16px; color: var(--ink-soft); line-height: 1.9; }
.formula { font-size: 22px; color: var(--ink-soft); }
.example-card strong { font-size: 14px; color: var(--ink-soft); }
.example-card p { font-size: 15px; color: var(--ink-soft); line-height: 1.9; }
.lesson-footer { font-size: 12px; color: var(--muted); }
.question-heading .eyebrow { font-size: 10px; }
.question-heading .text-link { font-size: 12px; }
.question-instruction { font-size: 14px; color: var(--ink-soft); }
.inline-theory strong { font-size: 15px; }
.inline-theory p { font-size: 15px; color: var(--ink-soft); line-height: 1.9; }
.inline-theory .formula { font-size: 20px; }
.answer-letter { font-size: 12px; color: var(--ink-soft); }
.hint-button { font-size: 14px; color: var(--ink-soft); }
.hint-text { font-size: 15px; color: var(--ink-soft); line-height: 1.9; }
.answer-feedback strong { font-size: 16px; }
.answer-feedback p { font-size: 15px; line-height: 1.9; }
.result-view > p { font-size: 15px; color: var(--ink-soft); }
.result-metrics > div > span { font-size: 12px; color: var(--ink-soft); }
.result-next strong { font-size: 14px; color: var(--ink-soft); }
.result-next span { font-size: 13px; color: var(--ink-soft); }
.result-library { font-size: 13px; }
dialog p { font-size: 14px; color: var(--ink-soft); }
.toast { font-size: 13px; }
@media (min-width: 981px) and (max-width: 1200px) {
  :root { --sidebar-width: 215px; }
  .hero-copy { width: 83%; }
  .hero-copy > p { max-width: 250px; }
  .hero-kicker { font-size: 9px; letter-spacing: .7px; }
  .hero-copy h2 { font-size: 27px; }
  .dashboard-grid { grid-template-columns: minmax(0,1fr) 260px; }
  .topic-illustration { width: 53px; flex-basis: 53px; }
}
@media (max-width: 760px) {
  .page-heading p { font-size: 14px; }
  .hero-copy { width: 72%; }
  .hero-kicker { font-size: 9px; }
  .hero-copy > p { max-width: 310px; }
  .section-heading .text-link { font-size: 13px; }
  .topic-card-body > strong { font-size: 15px; }
  .memory-explainer small { font-size: 12px; }
  .achievement p { font-size: 12px; }
  .achievement h3 { font-size: 15px; }
  .mobile-nav .nav-item { font-size: 11px; }
  .lesson-footer { font-size: 11px; }
  .review-banner > .button { margin-left: 0; }
}
@media (max-width: 520px) {
  .page-heading p { font-size: 13px; max-width: 100%; }
  .eyebrow { font-size: 9px; letter-spacing: .9px; }
  .hero-copy { width: 92%; }
  .hero-kicker { font-size: 9px; letter-spacing: .6px; }
  .hero-copy > p { max-width: 265px; font-size: 14px; }
  .hero-copy h2 { max-width: 270px; }
  .hero-meta { font-size: 12px; }
  .hero-bottom { font-size: 10px; flex-wrap: wrap; gap: 8px 15px; }
  .hero-bottom > span { flex-basis: 100%; }
  .hero-bottom > a { min-height: 32px; }
  .discovery-card strong { font-size: 14px; }
  .discovery-card small { font-size: 12px; }
  .topic-card-body > strong { font-size: 15px; }
  .topic-description { font-size: 13px; }
  .topic-eyebrow, .topic-meta { font-size: 11px; }
  .topic-card { gap: 14px; padding: 20px 17px; }
  .topic-illustration { width: 56px; flex-basis: 56px; height: 76px; }
  .topic-arrow { display: none; }
  .search-field input { font-size: 13px; }
  .segmented button { padding-left: 7px; padding-right: 7px; font-size: 12px; }
  .library-note, .results-caption, .content-note { font-size: 11px; }
  .review-banner { align-items: flex-start; }
  .review-banner p { font-size: 13px; }
  .review-banner > .button { width: 100%; }
  .review-status { font-size: 11px; }
  .memory-explainer small { font-size: 11px; max-width: 89px; }
  .profile-stats > div > span { font-size: 11px; }
  .achievement p { font-size: 13px; }
  .storage-note p { font-size: 12px; }
  .lesson-intro-subtitle { font-size: 14px; }
  .theory-content h2 { font-size: 20px; }
  .theory-content p, .example-card p, .inline-theory p, .hint-text, .answer-feedback p { font-size: 15px; line-height: 1.85; }
  .theory-card { padding: 22px; }
  .formula { font-size: 21px; }
  .question-heading .eyebrow { font-size: 10px; letter-spacing: .6px; }
  .question-heading .text-link { font-size: 11px; }
  .question-instruction { font-size: 14px; }
  .answer-feedback strong { font-size: 15px; }
  .hint-button { font-size: 14px; }
  .result-view > p { font-size: 14px; }
  .result-metrics > div > span { font-size: 12px; }
  .result-next strong { font-size: 14px; }
  .result-next span { font-size: 12px; }
  .mobile-nav .nav-item { font-size: 10px; }
  .page-footer { font-size: 11px; }
}
/* Classes are the main way into the curriculum. */
.sidebar-profile { margin-top: auto; }
.page-heading h1:first-child { margin-top: 0; }
.grade-tabs { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 6px; padding: 6px; margin: 0 0 27px; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 16px; }
.grade-tab { display: flex; align-items: center; justify-content: center; gap: 9px; min-width: 0; min-height: 62px; padding: 11px 12px; border-radius: 11px; color: var(--muted); transition: background .18s, color .18s, box-shadow .18s; }
.grade-tab strong { font-size: 23px; font-weight: 750; letter-spacing: -.8px; line-height: 1.25; }
.grade-tab > span { font-size: 13px; line-height: 1.5; }
.grade-tab:hover { color: var(--ink); background: var(--cream); }
.grade-tab.selected { background: var(--ink); color: var(--cream); box-shadow: 0 2px 4px rgb(var(--ink-rgb) / 0.063); }
.grade-tab.selected > span { color: var(--hero-muted); }
.grade-tab:focus-visible { outline-offset: 2px; }
.classes-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.class-card { display: flex; flex-direction: column; min-width: 0; padding: 27px 25px 0; border: 1px solid var(--line); border-radius: 20px; background: var(--white); transition: transform .2s, border-color .2s, box-shadow .2s; }
.class-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 8px 22px rgb(var(--ink-rgb) / 0.031); }
.class-card.is-current { background: var(--cream); border-color: var(--line-strong); }
.class-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 55px; }
.class-number { display: block; color: var(--ink-soft); font-size: 45px; font-weight: 750; letter-spacing: -1.8px; line-height: 1; font-variant-numeric: lining-nums; }
.is-current .class-number { color: var(--ink); }
.class-current { display: inline-flex; align-items: center; padding: 6px 10px; background: var(--ink); color: var(--cream); border-radius: 7px; font-size: 11px; font-weight: 650; line-height: 1.4; white-space: nowrap; }
.class-card h2 { margin: 20px 0 19px; font-size: 23px; font-weight: 750; letter-spacing: -.65px; }
.class-summary { flex: 1; }
.class-summary p + p { margin-top: 17px; }
.class-summary strong { display: block; font-size: 13px; font-weight: 700; line-height: 1.5; }
.class-summary p > span { display: block; margin-top: 5px; font-size: 13px; line-height: 1.75; color: var(--ink-soft); overflow-wrap: anywhere; }
.class-card-progress { margin-top: 27px; margin-bottom: 22px; }
.class-card-progress > span { display: block; font-size: 12px; line-height: 1.7; color: var(--ink-soft); }
.class-card-progress .progress-track { margin-top: 9px; height: 5px; background: var(--surface-soft); }
.is-current .class-card-progress .progress-track { background: var(--surface-soft); }
.class-card-progress .progress-track > span { background: var(--ink); }
.class-card-open { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 17px 0 19px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 750; line-height: 1.6; }
.is-current .class-card-open { border-color: var(--line); }
.class-card-open .icon { width: 18px; height: 18px; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: -13px 0 21px; color: var(--ink-soft); font-size: 12px; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 40px; }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.breadcrumbs > .icon { width: 13px; height: 13px; color: var(--muted); }
.breadcrumbs > span { color: var(--ink); font-weight: 650; }
.class-progress-label { display: inline-block; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink-soft); font-size: 12px; line-height: 1.7; flex-shrink: 0; }
.subject-section { margin-top: 33px; }
.subject-section .section-heading { margin-top: 0; }
.subject-section .section-heading h2 { font-size: 23px; }
.subject-section .section-heading p { margin-top: 8px; color: var(--ink-soft); font-size: 13px; line-height: 1.8; }
.subject-count { flex: 0 0 auto; min-width: 60px; text-align: center; padding: 6px 11px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.subject-section .topic-card:only-child { grid-column: 1 / -1; }
.subject-section .topic-card-body { padding-top: 2px; padding-bottom: 2px; }
.subject-section .topic-illustration { height: 80px; }
.subject-section .topic-arrow { align-self: center; display: block; }
.class-search-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding: 21px 0 0; margin-top: 33px; border-top: 1px solid var(--line); }
.class-search-row > span { color: var(--ink-soft); font-size: 13px; line-height: 1.8; }
.class-search-row + .content-note { margin-top: 15px; }

/* A useful lesson outline replaces the decorative hero illustration. */
.lesson-hero-clean { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(165px,.8fr); grid-template-rows: 1fr auto; min-height: 370px; }
.lesson-hero-clean .hero-copy { grid-column: 1; grid-row: 1; width: 100%; min-width: 0; padding: 29px 0 26px 30px; }
.lesson-hero-clean .hero-copy h2 { max-width: 390px; }
.lesson-hero-clean .hero-copy > p { max-width: 340px; }
.lesson-hero-clean .hero-subject { margin-top: 25px; }
.lesson-outline { grid-column: 2; grid-row: 1; min-width: 0; align-self: center; padding: 6px 0 6px 21px; margin: 27px 24px 24px 22px; border-left: 1px solid rgb(243 232 212 / 0.102); }
.lesson-outline h3 { margin: 0 0 22px; color: var(--cream); font-size: 13px; font-weight: 650; line-height: 1.5; }
.lesson-outline ol { list-style: none; display: grid; gap: 19px; padding: 0; margin: 0; }
.lesson-outline li { display: flex; align-items: baseline; gap: 10px; color: var(--hero-muted); font-size: 12px; line-height: 1.8; }
.lesson-outline li > span { font-size: 11px; color: var(--hero-muted); font-weight: 650; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.lesson-hero-clean .hero-bottom { grid-column: 1 / -1; grid-row: 2; }
.result-check { display: grid; place-items: center; width: 72px; height: 72px; margin: 12px auto 28px; border: 1px solid var(--success); border-radius: 20px; color: var(--success); background: var(--success-soft); }
.result-check .icon { width: 31px; height: 31px; stroke-width: 1.9; }

@media (max-width: 1200px) {
  .classes-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
  .lesson-hero-clean { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .lesson-hero-clean .hero-copy { grid-column: 1; grid-row: 1; padding: 27px 25px 22px; }
  .lesson-hero-clean .hero-copy h2 { max-width: 100%; }
  .lesson-hero-clean .hero-copy > p { max-width: 100%; }
  .lesson-outline { grid-column: 1; grid-row: 2; padding: 20px 0; margin: 0 25px; border-left: 0; border-top: 1px solid rgb(243 232 212 / 0.102); }
  .lesson-outline h3 { margin-bottom: 13px; }
  .lesson-outline ol { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
  .lesson-outline li { display: block; font-size: 12px; }
  .lesson-outline li > span { display: block; margin-bottom: 5px; font-size: 11px; }
  .lesson-hero-clean .hero-bottom { grid-row: 3; }
  .lesson-hero-clean .hero-kicker { font-size: 10px; }
  .class-card { padding-left: 24px; padding-right: 24px; }
}
@media (min-width: 761px) and (max-width: 980px) {
  .grade-tabs { margin-bottom: 24px; }
  .lesson-hero-clean .hero-copy h2 { font-size: 29px; }
}
@media (max-width: 760px) {
  .grade-tabs { margin-bottom: 23px; gap: 5px; padding: 5px; border-radius: 14px; }
  .grade-tab { min-height: 60px; padding: 9px 8px; gap: 7px; border-radius: 9px; }
  .grade-tab strong { font-size: 22px; }
  .grade-tab > span { font-size: 12px; }
  .class-card { padding: 24px 21px 0; }
  .class-number { font-size: 40px; }
  .class-card h2 { font-size: 22px; margin-top: 16px; }
  .class-summary p > span { font-size: 13px; }
  .class-current { font-size: 10px; padding: 5px 8px; }
  .class-card-progress { margin-top: 23px; }
  .breadcrumbs { margin-top: -9px; margin-bottom: 17px; }
  .class-progress-label { font-size: 12px; }
  .subject-section { margin-top: 29px; }
  .subject-section .section-heading { gap: 16px; }
  .subject-section .section-heading h2 { font-size: 22px; }
  .subject-section .section-heading p { font-size: 13px; max-width: 410px; }
  .lesson-hero-clean { min-height: 0; }
  .lesson-hero-clean .hero-copy { padding: 26px 25px 25px; }
  .lesson-hero-clean .hero-copy h2 { max-width: 100%; }
  .lesson-hero-clean .hero-copy > p { max-width: 100%; }
  .lesson-hero-clean .hero-meta { margin-bottom: 23px; }
  .lesson-outline { margin-left: 25px; margin-right: 25px; }
  .lesson-outline h3 { font-size: 13px; }
  .lesson-outline li { font-size: 13px; }
}
@media (max-width: 520px) {
  .grade-tabs { gap: 4px; padding: 5px; }
  .grade-tab { flex-direction: column; gap: 1px; min-height: 65px; padding: 8px 4px; }
  .grade-tab strong { font-size: 22px; letter-spacing: -.6px; }
  .grade-tab > span { font-size: 11px; }
  .classes-grid { grid-template-columns: 1fr; gap: 16px; }
  .class-card { padding: 23px 23px 0; }
  .class-card-top { min-height: 43px; }
  .class-number { font-size: 38px; }
  .class-card h2 { margin: 16px 0 18px; font-size: 23px; }
  .class-current { font-size: 11px; padding: 6px 9px; }
  .class-summary strong, .class-summary p > span { font-size: 14px; }
  .class-summary p + p { margin-top: 15px; }
  .class-card-progress { margin: 22px 0 20px; }
  .class-card-open { font-size: 14px; }
  .breadcrumbs { font-size: 12px; margin-top: -7px; margin-bottom: 15px; }
  .class-progress-label { font-size: 12px; }
  .subject-section .section-heading { align-items: flex-start; }
  .subject-section .section-heading h2 { font-size: 22px; }
  .subject-section .section-heading p { font-size: 12px; }
  .subject-count { padding: 5px 8px; min-width: 53px; font-size: 11px; }
  .subject-section .topic-arrow { display: none; }
  .class-search-row { display: block; margin-top: 29px; }
  .class-search-row > span { display: block; font-size: 13px; }
  .class-search-row .text-link { margin-top: 5px; }
  .lesson-hero-clean .hero-copy { width: 100%; padding: 25px 23px 24px; }
  .lesson-hero-clean .hero-copy h2 { font-size: 29px; }
  .lesson-hero-clean .hero-subject { margin-top: 21px; }
  .lesson-hero-clean .hero-kicker { font-size: 10px; letter-spacing: .9px; }
  .lesson-outline { margin-left: 23px; margin-right: 23px; padding: 18px 0 20px; }
  .lesson-outline h3 { margin-bottom: 13px; }
  .lesson-outline ol { grid-template-columns: 1fr; gap: 9px; }
  .lesson-outline li { display: flex; align-items: baseline; gap: 11px; font-size: 13px; line-height: 1.65; }
  .lesson-outline li > span { display: inline; margin: 0; font-size: 11px; }
  .lesson-hero-clean .hero-bottom { font-size: 11px; gap: 9px 12px; padding-top: 12px; padding-bottom: 13px; }
  .lesson-hero-clean .hero-bottom > span { flex-basis: auto; }
  .lesson-hero-clean .hero-bottom > a { min-height: 32px; }
  .result-check { width: 65px; height: 65px; margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
