@charset "UTF-8";
:root {
  color-scheme: light;
  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface-soft: #f5f5fb;
  --text: #292a3d;
  --muted: #666a7e;
  --faint: #666a7e;
  --border: #e9eaf1;
  --primary: #7560dc;
  --primary-hover: #604bc7;
  --primary-text: #6d54cc;
  --purple-soft: #f0ecfc;
  --blue-soft: #eaf2fc;
  --blue: #3869a8;
  --green-soft: #e9f5ee;
  --green: #327159;
  --orange-soft: #fff1e8;
  --orange: #995d33;
  --pink-soft: #fcebf3;
  --pink: #9e3f6d;
  --hero: #ede8fc;
  --hero-text: #342958;
  --hero-muted: #6c5c87;
  --hero-line: #cfc5ed;
  --ring-track: #eeeaf8;
  --danger: #b14b59;
  --danger-soft: #fbeef0;
  --shadow: 0 5px 25px #29204a04;
  --sidebar-width: 234px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #11131d;
  --surface: #1a1d2b;
  --surface-soft: #222535;
  --text: #eeedf7;
  --muted: #a4a6bc;
  --faint: #8b90aa;
  --border: #2c3042;
  --primary: #a48aef;
  --primary-hover: #baa4ff;
  --primary-text: #bda5ff;
  --purple-soft: #2c2645;
  --blue-soft: #222f43;
  --blue: #8db7ee;
  --green-soft: #20372e;
  --green: #87c7a8;
  --orange-soft: #3a2c26;
  --orange: #e7ac82;
  --pink-soft: #38283a;
  --pink: #e0a0bd;
  --hero: #2b2544;
  --hero-text: #f0eaff;
  --hero-muted: #bdb0d9;
  --hero-line: #51436f;
  --ring-track: #302b43;
  --danger: #f1a2b0;
  --danger-soft: #3b2831;
  --shadow: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Avenir Next", Avenir, "Segoe UI", "Noto Sans Thai", sans-serif; font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, a { touch-action: manipulation; }
button:disabled { cursor: default; opacity: .45; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button, input, select { border-radius: 8px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, .import-label:focus-within { outline: 3px solid var(--primary); outline-offset: 4px; }
main:focus, #question-title:focus { outline: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(27px, 2.5vw, 36px); letter-spacing: -1.25px; font-weight: 650; }
h2 { font-size: 19px; font-weight: 650; letter-spacing: -.45px; }
h3 { font-size: 15px; font-weight: 650; }
strong { font-weight: 650; }
svg { flex-shrink: 0; }
.icon { width: 21px; height: 21px; vertical-align: middle; flex-shrink: 0; object-fit: contain; user-select: none; }
.muted { color: var(--muted); }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.55px; color: var(--muted); }
.skip-link { position: fixed; top: -100px; left: 20px; padding: 12px 22px; background: var(--surface); color: var(--text); z-index: 100; border: 2px solid var(--primary); border-radius: 8px; }
.skip-link:focus { top: 10px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); background: var(--surface); border-right: 1px solid var(--border); z-index: 30; display: flex; flex-direction: column; padding: 35px 19px 17px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 11px; margin-bottom: 47px; font-size: 26px; letter-spacing: -1px; font-weight: 750; line-height: 1.1; }
.brand-mark { width: 39px; height: 43px; border-radius: 12px 12px 15px 12px; display: grid; place-items: center; background: linear-gradient(145deg, #a0a5f3, #7661ca 65%, #5849a3); box-shadow: inset 0 1px 2px #ffffff80, 0 3px 5px #493a751a; color: white; transform: rotate(-5deg); }
.brand-mark .icon { width: 31px; height: 31px; transform: rotate(5deg); }
.brand-sub { display: block; color: var(--muted); font-size: 8.5px; font-weight: 650; letter-spacing: 2.8px; padding-top: 6px; }
.sidebar-label, .appearance-label { color: var(--faint); font-weight: 650; font-size: 9px; letter-spacing: 1.4px; margin: 0 14px 15px; }
.nav-link { display: flex; align-items: center; width: 100%; gap: 13px; padding: 13px 14px; margin: 4px 0; color: var(--muted); border: 0; background: none; text-align: left; font-size: 12.5px; font-weight: 550; transition: background .15s, color .15s; border-radius: 9px; }
.nav-link .icon { width: 24px; height: 24px; }
.nav-link:hover { background: var(--surface-soft); color: var(--text); }
.nav-link.active { background: var(--purple-soft); color: var(--primary-text); font-weight: 650; }
.active-dot { margin-left: auto; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.nav-count { margin-left: auto; min-width: 21px; padding: 1px 5px; text-align: center; border-radius: 5px; font-size: 10px; background: var(--purple-soft); color: var(--primary-text); }
.sidebar-note { margin: 43px 9px 28px; padding: 20px 15px 16px; border: 1px solid var(--border); border-radius: 13px; background: linear-gradient(130deg, var(--purple-soft), var(--surface)); position: relative; }
.sidebar-note .tiny-spark { display: block; color: var(--primary-text); margin-bottom: 10px; font-size: 23px; line-height: 1; }
.sidebar-note strong { font-size: 13px; line-height: 1.55; }
.sidebar-note p { font-size: 10px; color: var(--muted); margin-top: 6px; }
.sidebar-note a { font-size: 10px; display: flex; align-items: center; gap: 8px; color: var(--primary-text); margin-top: 15px; font-weight: 600; }
.sidebar-note a .icon { width: 14px; height: 14px; }
.sidebar-bottom { margin-top: auto; }
.appearance-label { margin-top: 20px; margin-bottom: 10px; }
.theme-switch { background: var(--surface-soft); border: 1px solid var(--border); padding: 4px; border-radius: 9px; display: flex; gap: 2px; }
.theme-switch button { flex: 1; border: 1px solid transparent; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 7px 3px; background: none; color: var(--muted); font-size: 10px; border-radius: 6px; }
.theme-switch .icon { width: 14px; height: 14px; }
.theme-switch button[aria-pressed="true"] { color: var(--text); background: var(--surface); border-color: var(--border); box-shadow: 0 1px 3px #00000005; }
.sidebar-foot { text-align: center; font-size: 9px; color: var(--faint); margin-top: 17px; }
.site-content { margin-left: var(--sidebar-width); }
.topbar { height: 79px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 39px; background: var(--surface); }
.breadcrumb { display: flex; gap: 13px; align-items: center; font-size: 11px; color: var(--muted); }
.breadcrumb span { color: var(--faint); }
.breadcrumb strong { color: var(--text); font-weight: 550; }
.topbar-right { display: flex; align-items: center; gap: 19px; }
.header-streak { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.header-streak .icon { color: var(--orange); width: 18px; }
.header-streak span { color: var(--muted); }
.header-divider { height: 22px; border-left: 1px solid var(--border); }
.icon-button { border: 0; background: transparent; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); border-radius: 9px; }
.icon-button:hover { background: var(--surface-soft); color: var(--text); }
.quick-theme .icon { width: 18px; }
.avatar { width: 33px; height: 33px; border-radius: 50%; border: 3px solid var(--surface); outline: 1px solid var(--border); display: grid; place-items: center; background: var(--purple-soft); color: var(--primary-text); font-size: 11px; font-weight: 700; }
.menu-toggle { display: none; }
main { max-width: 1540px; margin: 0 auto; padding: 34px 39px 28px; min-height: calc(100vh - 143px); }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.page-heading .eyebrow { margin-bottom: 9px; }
.page-heading p { margin-top: 9px; color: var(--muted); font-size: 12px; }
.heading-spark { display: inline-block; font-size: 25px; color: var(--primary-text); margin-left: 13px; vertical-align: 3px; }
.date-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 7px; color: var(--muted); background: var(--surface); white-space: nowrap; }
.date-pill .icon { width: 14px; height: 14px; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 27px; padding: 22px 0; background: var(--surface); border: 1px solid var(--border); border-radius: 13px; box-shadow: var(--shadow); }
.stat { padding: 0 22px; display: flex; align-items: flex-start; gap: 13px; border-right: 1px solid var(--border); }
.stat:last-child { border: 0; }
.stat-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; flex-shrink: 0; margin-top: 2px; }
.stat-icon .icon { width: 29px; height: 29px; }
.purple { color: var(--primary-text); background: var(--purple-soft); }
.green { color: var(--green); background: var(--green-soft); }
.blue { color: var(--blue); background: var(--blue-soft); }
.orange { color: var(--orange); background: var(--orange-soft); }
.pink { color: var(--pink); background: var(--pink-soft); }
.stat-label { color: var(--muted); font-size: 10px; display: block; line-height: 1.2; }
.stat-value { font-size: 27px; font-weight: 650; letter-spacing: -.7px; line-height: 1.4; }
.stat-value small { font-size: 11px; color: var(--muted); letter-spacing: 0; font-weight: 450; }
.stat-sub { color: var(--faint); font-size: 10px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 23px; }
.main-column, .right-column { display: flex; flex-direction: column; gap: 23px; min-width: 0; }
.hero { min-height: 285px; position: relative; display: flex; overflow: hidden; background: var(--hero); border: 1px solid var(--hero-line); border-radius: 15px; }
.hero-copy { position: relative; z-index: 2; padding: 29px 0 29px 28px; width: 65%; }
.hero-kicker { display: flex; align-items: center; gap: 7px; font-size: 8px; font-weight: 650; letter-spacing: 1.2px; color: var(--hero-muted); }
.hero-kicker > span { width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }
.hero h2 { font-size: clamp(26px, 2.5vw, 37px); letter-spacing: -1.4px; line-height: 1.23; font-weight: 600; color: var(--hero-text); margin-top: 17px; }
.hero h2 > span { color: var(--primary-text); }
.hero p { color: var(--hero-muted); margin-top: 14px; font-size: 11px; max-width: 300px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.button { border: 1px solid transparent; border-radius: 8px; padding: 11px 16px; display: inline-flex; justify-content: center; align-items: center; gap: 10px; font-size: 11px; font-weight: 600; line-height: 1.5; transition: background .15s, transform .15s, border-color .15s; }
.button .icon { width: 16px; height: 16px; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button.primary, .hero-button { background: var(--primary); color: #fff; }
:root[data-theme="dark"] .button.primary { color: #1d1535; }
.button.primary:hover:not(:disabled), .hero-button:hover { background: var(--primary-hover); }
.hero-button { background: #7560dc; padding: 10px 13px; font-size: 10px; }
.hero-actions > span { display: inline-flex; gap: 5px; align-items: center; color: var(--hero-muted); font-size: 9px; }
.hero-actions > span .icon { width: 12px; height: 12px; }
.button.secondary { background: var(--surface); border-color: var(--border); color: var(--text); }
.button.secondary:hover:not(:disabled) { background: var(--surface-soft); border-color: var(--primary); }
.hero-art { position: absolute; inset: 0 0 0 60%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 26px; }
.hero-art img { width: 245px; height: 245px; object-fit: contain; position: relative; z-index: 1; filter: drop-shadow(0 12px 13px #5140931b); animation: lumi-float 6s ease-in-out infinite; }
.lumi-speech { font-size: 9px; color: #74618e; background: #ffffffcf; border: 1px solid #fff; border-radius: 9px 9px 9px 0; padding: 7px 12px; z-index: 3; position: absolute; top: 30px; right: 38px; transform: rotate(5deg); }
.lumi-label { position: absolute; bottom: 22px; z-index: 2; font-size: 8px; color: var(--hero-muted); }
.hero-star { position: absolute; color: var(--primary); }
.star-one { top: 65px; left: 2px; font-size: 24px; }
.star-two { bottom: 55px; right: 14px; font-size: 30px; }
.hero-orbit { position: absolute; border: 1px solid var(--hero-line); border-radius: 50%; width: 275px; height: 275px; opacity: .6; }
.orbit-one { transform: rotate(-30deg) scaleX(.73); }
.orbit-two { transform: rotate(40deg) scaleX(.8); }
@keyframes lumi-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(1deg); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 13px; box-shadow: var(--shadow); }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.section-heading h2 { font-size: 15px; letter-spacing: -.25px; }
.section-heading .eyebrow { font-size: 8px; margin-bottom: 5px; }
.section-heading p { color: var(--muted); font-size: 10px; margin-top: 6px; }
.text-link, .subtle-link { display: inline-flex; gap: 6px; align-items: center; font-size: 10px; font-weight: 550; color: var(--primary-text); background: none; border: 0; white-space: nowrap; padding: 5px 0; }
.text-link .icon, .subtle-link .icon { width: 14px; height: 14px; }
.subtle-link { color: var(--muted); font-size: 9px; }
.text-link:hover, .subtle-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.pathway-card { padding: 23px 24px 0; }
.path-section-label { display: flex; align-items: center; gap: 11px; margin-top: 23px; padding-top: 17px; border-top: 1px solid var(--border); }
.path-section-label > span:first-child { font-size: 10px; font-weight: 650; color: var(--primary-text); background: var(--purple-soft); width: 29px; height: 29px; display: grid; place-items: center; border-radius: 7px; }
.path-section-label strong { font-size: 11px; }
.path-section-label p { color: var(--muted); font-size: 9px; margin-top: 2px; }
.path-progress { color: var(--muted); font-size: 9px; margin-left: auto; white-space: nowrap; }
.learning-path { height: 185px; position: relative; display: flex; align-items: flex-start; justify-content: space-around; gap: 5px; padding-top: 23px; }
.path-line { position: absolute; inset: 20px 0 auto; width: 100%; height: 100px; object-fit: fill; opacity: .7; }
.path-stop { width: 20%; display: flex; flex-direction: column; align-items: center; border: 0; background: none; position: relative; padding: 0; z-index: 2; }
.path-node { width: 49px; height: 49px; border-radius: 50%; background: var(--surface-soft); border: 5px solid var(--surface); box-shadow: 0 3px 0 var(--border), 0 0 0 1px var(--border); color: var(--muted); display: grid; place-items: center; transition: transform .2s; }
.path-node .icon { width: 30px; height: 30px; }
.path-stop:hover .path-node { transform: translateY(-5px); color: var(--primary-text); }
.path-node.current { background: #8e79e3; color: white; outline: 2px solid var(--hero-line); outline-offset: 3px; box-shadow: 0 3px 0 #6350ac; }
.path-stop.complete .path-node { background: var(--green-soft); color: var(--green); box-shadow: 0 3px 0 var(--green); }
.path-stop strong { font-size: 9px; font-weight: 600; margin-top: 11px; }
.path-stop small { font-size: 8px; color: var(--muted); margin-top: 2px; }
.stop-0 { margin-top: 17px; }
.stop-1 { margin-top: 42px; }
.stop-2 { margin-top: 0; }
.stop-3 { margin-top: 39px; }
.stop-4 { margin-top: 17px; }
.path-note { font-size: 9px; color: var(--muted); display: flex; justify-content: center; align-items: center; gap: 7px; border-top: 1px solid var(--border); padding: 11px 0; }
.path-note .icon { width: 13px; height: 13px; color: var(--primary-text); }
.outside { margin: 2px 0 14px; }
.practice-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.practice-card { text-align: left; border: 1px solid var(--border); border-radius: 12px; padding: 18px; background: var(--surface); transition: transform .2s, border-color .2s; }
.practice-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.practice-purple { background: linear-gradient(140deg, var(--purple-soft), var(--surface)); }
.practice-peach { background: linear-gradient(140deg, var(--orange-soft), var(--surface)); }
.practice-card-icon { display: inline-flex; padding: 8px; border: 1px solid var(--border); border-radius: 9px; color: var(--primary-text); background: var(--surface); margin-bottom: 15px; }
.practice-peach .practice-card-icon { color: var(--orange); }
.practice-card-icon .icon { width: 28px; height: 28px; }
.practice-card h3 { font-size: 13px; }
.practice-card p { color: var(--muted); font-size: 10px; margin-top: 7px; }
.practice-card > div { border-top: 1px solid var(--border); margin-top: 17px; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 4px; font-size: 9px; color: var(--muted); }
.practice-card > div .icon { width: 15px; height: 15px; }
.daily-card { padding: 22px 21px 17px; text-align: center; }
.daily-card .section-heading { text-align: left; }
.goal-ring { margin: 23px auto 18px; width: 140px; height: 140px; border-radius: 50%; background: conic-gradient(var(--primary) var(--progress), var(--ring-track) 0); padding: 7px; transform: rotate(-90deg); }
.goal-ring > div { width: 100%; height: 100%; background: var(--surface); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-direction: column; transform: rotate(90deg); }
.goal-ring .icon { color: var(--primary-text); height: 21px; width: 21px; margin-bottom: 5px; fill: var(--purple-soft); }
.goal-ring strong { font-size: 27px; line-height: 1.3; }
.goal-ring strong span { font-size: 16px; font-weight: 450; color: var(--muted); }
.goal-ring small { color: var(--muted); font-size: 8px; margin-top: 2px; }
.daily-card h3 { font-size: 12px; }
.daily-card > p { font-size: 9px; line-height: 1.8; color: var(--muted); margin: 7px auto 0; max-width: 175px; }
.week-strip { display: flex; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 16px; margin-top: 18px; }
.day { display: flex; flex-direction: column; align-items: center; gap: 9px; font-size: 8px; color: var(--muted); }
.day b { display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--surface-soft); color: var(--faint); width: 23px; height: 23px; font-size: 14px; }
.day.today b { outline: 1px solid var(--primary); outline-offset: 2px; }
.day i { display: block; width: 5px; height: 5px; background: var(--primary); border-radius: 50%; }
.day.done b { color: var(--primary-text); background: var(--purple-soft); }
.day .icon { width: 13px; height: 13px; }
.countdown-card { border: 1px solid var(--hero-line); border-radius: 13px; padding: 19px 21px; background: var(--purple-soft); }
.countdown-top { display: flex; align-items: center; justify-content: space-between; color: var(--primary-text); }
.countdown-top > span { display: flex; align-items: center; gap: 7px; font-size: 8px; font-weight: 650; letter-spacing: .9px; }
.countdown-top .icon { width: 14px; height: 14px; }
.countdown-number { font-size: 39px; font-weight: 600; letter-spacing: -1.5px; line-height: 1.4; margin-top: 13px; }
.countdown-number > span { color: var(--muted); font-size: 11px; letter-spacing: 0; font-weight: 450; margin-left: 7px; }
.countdown-card h3 { font-size: 10px; margin-top: 2px; }
.countdown-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 4px; color: var(--muted); font-size: 8px; }
.countdown-bottom a { text-decoration: underline; text-underline-offset: 2px; }
.word-card { padding: 21px; }
.word-card .section-heading { color: var(--faint); }
.word-card .eyebrow { font-size: 7px; margin: 0; letter-spacing: .9px; }
.word-card .section-heading .icon { width: 15px; height: 15px; }
.word-card > h2 { font-size: 27px; letter-spacing: -.9px; margin-top: 19px; font-weight: 600; }
.word-dot { color: var(--primary-text); }
.pronunciation { display: block; font-size: 10px; margin-top: 8px; color: var(--muted); }
.pronunciation i { padding-left: 5px; font-size: 8px; }
.word-card > p { font-size: 10px; color: var(--muted); margin-top: 17px; line-height: 1.9; }
.word-card blockquote { font-size: 9px; color: var(--muted); margin: 14px 0 17px; padding-left: 11px; border-left: 2px solid var(--hero-line); line-height: 1.9; font-style: italic; }
.word-save { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 9px; border: 1px solid var(--border); background: var(--surface); font-size: 9px; color: var(--muted); }
.word-save:hover { border-color: var(--primary); color: var(--primary-text); }
.word-save .icon { width: 13px; height: 13px; }
.site-footer { max-width: 1540px; margin: 0 auto; padding: 15px 39px 25px; color: var(--faint); font-size: 8px; display: flex; justify-content: space-between; gap: 16px; }
.site-footer > span { display: flex; align-items: center; gap: 7px; }
.site-footer .icon { color: var(--primary-text); width: 12px; height: 12px; }
.badge { font-size: 10px; padding: 5px 9px; border-radius: 6px; display: inline-block; font-weight: 550; }
.topic-icon { width: 43px; height: 43px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; flex-shrink: 0; }
.topic-icon .icon { width: 32px; height: 32px; }
.full-pathway { margin-bottom: 24px; padding: 28px 35px 0; }
.full-pathway .learning-path { height: 230px; max-width: 800px; margin: 20px auto 0; }
.full-pathway .path-line { height: 140px; }
.full-pathway .path-node { width: 65px; height: 65px; }
.full-pathway .path-stop strong { font-size: 12px; }
.full-pathway .path-stop small { font-size: 10px; }
.full-pathway .stop-0, .full-pathway .stop-4 { margin-top: 30px; }
.full-pathway .stop-1, .full-pathway .stop-3 { margin-top: 70px; }
.lesson-list { display: flex; flex-direction: column; gap: 14px; }
.lesson-row { display: flex; align-items: center; gap: 22px; padding: 24px 28px; }
.lesson-row h2 { margin-top: 6px; font-size: 18px; }
.lesson-row p { font-size: 12px; color: var(--muted); margin-top: 7px; }
.lesson-row .button { margin-left: auto; white-space: nowrap; }
.practice-intro { display: flex; justify-content: space-between; align-items: center; padding: 26px 30px; background: var(--hero); border: 1px solid var(--hero-line); border-radius: 14px; margin-bottom: 25px; gap: 20px; }
.practice-intro h2 { margin: 12px 0 7px; font-size: 23px; }
.practice-intro p { color: var(--muted); font-size: 12px; }
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.topic-card { padding: 26px; display: flex; align-items: flex-start; flex-direction: column; }
.topic-card h2 { font-size: 20px; margin: 20px 0 9px; }
.topic-card > p { color: var(--muted); font-size: 12px; min-height: 57px; }
.topic-mastery { display: flex; justify-content: space-between; width: 100%; font-size: 10px; gap: 10px; margin: 22px 0 9px; color: var(--muted); }
.topic-mastery strong { color: var(--text); }
.progress-track { height: 5px; background: var(--surface-soft); border-radius: 9px; overflow: hidden; width: 100%; }
.progress-track > span { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.progress-track.blue > span { background: var(--blue); }
.progress-track.orange > span { background: var(--orange); }
.progress-track.green > span { background: var(--green); }
.progress-track.pink > span { background: var(--pink); }
.topic-card .button { margin-top: 25px; width: 100%; justify-content: space-between; }
.vocabulary-saved { background: var(--purple-soft); }
.vocabulary-saved > .icon { width: 34px; height: 43px; color: var(--primary-text); }
.saved-words { list-style: none; padding: 0; margin: 5px 0 0; font-size: 12px; }
.saved-words li { border-top: 1px solid var(--hero-line); padding: 10px 0; }
.saved-words p { color: var(--muted); font-size: 11px; margin-top: 5px; }
.exam-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.exam-card { padding: 32px; }
.exam-card > .topic-icon { display: flex; margin-bottom: 22px; }
.exam-card h2 { font-size: 27px; margin-top: 17px; }
.exam-card > p { color: var(--muted); font-size: 13px; margin-top: 13px; line-height: 1.9; }
.feature-list { list-style: none; padding: 0; margin: 26px 0; }
.feature-list li { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; margin: 12px 0; }
.feature-list .icon { width: 16px; height: 16px; color: var(--green); }
.content-note { display: flex; align-items: flex-start; gap: 12px; font-size: 11px; color: var(--muted); padding: 22px 8px; }
.content-note .icon { width: 17px; height: 17px; margin-top: 2px; }
.history-card { padding: 26px 30px; }
.history-card .section-heading { margin-bottom: 20px; }
.history-card .muted { font-size: 11px; }
.history-row { display: flex; align-items: center; gap: 14px; padding: 17px 0; border-top: 1px solid var(--border); }
.history-row > div { flex: 1; }
.history-row strong { font-size: 12px; }
.history-row small { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
.history-row .topic-icon { width: 34px; height: 34px; border-radius: 9px; }
.history-row .topic-icon .icon { width: 17px; height: 17px; }
.history-row .badge { min-width: 47px; text-align: center; }
.soft-empty { padding: 24px 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.empty-state { text-align: center; padding: 36px; }
.empty-state img { object-fit: contain; display: block; margin: 0 auto 15px; filter: drop-shadow(0 10px 12px #7560dc19); }
.empty-state .eyebrow { display: block; }
.empty-state h2 { font-size: 27px; margin-top: 13px; }
.empty-state p { max-width: 440px; margin: 16px auto 25px; color: var(--muted); font-size: 13px; }
.mistake-row { display: flex; align-items: center; gap: 22px; padding: 25px; }
.mistake-row > div { flex: 1; }
.mistake-row h3 { font-size: 15px; margin-top: 8px; line-height: 1.6; }
.mistake-row p { font-size: 12px; color: var(--muted); margin-top: 8px; }
.mistake-row .button { white-space: nowrap; }
.progress-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 25px; }
.skills-card, .activity-card { padding: 27px; }
.skills-card > p { font-size: 11px; margin-top: 14px; }
.skill-row { margin-top: 22px; }
.skill-row > div:first-child { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.skill-row .topic-icon { width: 29px; height: 29px; border-radius: 7px; }
.skill-row .topic-icon .icon { width: 15px; height: 15px; }
.skill-row strong, .skill-row span:last-child { font-size: 11px; }
.skill-row span:last-child { margin-left: auto; color: var(--muted); }
.activity-chart { display: flex; gap: 12px; padding-top: 35px; height: 300px; align-items: stretch; }
.chart-column { display: flex; flex-direction: column; align-items: center; flex: 1; gap: 12px; }
.chart-column > span { font-size: 10px; color: var(--muted); }
.chart-column > div { flex: 1; position: relative; width: 100%; max-width: 32px; background: var(--surface-soft); border-radius: 6px; }
.chart-column i { background: var(--primary); display: block; width: 100%; border-radius: 6px; position: absolute; bottom: 0; }
.chart-column small { font-size: 9px; color: var(--muted); }
.activity-summary { display: flex; align-items: center; gap: 13px; padding-top: 25px; margin-top: 20px; border-top: 1px solid var(--border); }
.activity-summary p { font-size: 12px; color: var(--muted); }
.storage-note { text-align: center; font-size: 10px; color: var(--muted); margin-top: 25px; }
.storage-note .icon { width: 14px; height: 14px; margin-right: 6px; }
.settings-stack { max-width: 950px; display: flex; flex-direction: column; gap: 24px; }
.settings-card { padding: 30px; }
.settings-card h2 { font-size: 21px; }
.settings-card > p { font-size: 12px; color: var(--muted); margin: 10px 0 25px; }
.appearance-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.appearance-option { background: var(--surface); border: 1px solid var(--border); padding: 10px; text-align: left; border-radius: 11px; }
.appearance-option[aria-pressed="true"] { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.theme-preview { display: block; height: 105px; position: relative; overflow: hidden; border-radius: 6px; background: #f5f5fb; border: 1px solid #e3e4ee; }
.theme-preview i { display: block; position: absolute; left: 0; width: 23%; height: 100%; background: #fff; border-right: 1px solid #e3e4ee; }
.theme-preview b { position: absolute; top: 20%; left: 30%; width: 61%; height: 35%; background: #ddd4f7; border-radius: 4px; }
.theme-preview em { position: absolute; top: 64%; left: 30%; width: 39%; height: 24%; background: #fff; border-radius: 4px; border: 1px solid #e3e4ee; }
.preview-dark { background: #151723; border-color: #323548; }
.preview-dark i { background: #222535; border-color: #323548; }
.preview-dark b { background: #51416e; }
.preview-dark em { background: #222535; border-color: #323548; }
.preview-system { background: linear-gradient(110deg, #f5f5fb 50%, #151723 50%); }
.preview-system b { background: linear-gradient(110deg, #ddd4f7 45%, #51416e 45%); }
.preview-system em { background: linear-gradient(110deg, white 55%, #222535 55%); }
.appearance-option > strong { display: flex; align-items: center; gap: 7px; margin: 12px 4px 5px; font-size: 12px; }
.appearance-option > strong .icon { width: 15px; height: 15px; }
.appearance-option small { font-size: 10px; color: var(--muted); display: block; margin-left: 4px; }
.selection-check { margin-left: auto; color: var(--primary-text); opacity: 0; }
.appearance-option[aria-pressed="true"] .selection-check { opacity: 1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 25px; }
.form-grid label { font-size: 12px; font-weight: 550; }
input, select { display: block; width: 100%; background: var(--surface-soft); color: var(--text); border: 1px solid var(--border); padding: 12px 14px; font-size: 12px; margin-top: 9px; min-height: 44px; }
input::placeholder { color: var(--muted); }
.settings-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.danger-outline { color: var(--danger); border-color: var(--border); background: var(--surface); margin-left: auto; }
.danger { color: var(--danger); background: var(--danger-soft); border-color: var(--danger); }
.import-label { cursor: pointer; position: relative; }
.import-label input { width: 1px; height: 1px; min-height: 0; padding: 0; position: absolute; opacity: 0; overflow: hidden; }
.resume-banner { display: flex; align-items: center; gap: 12px; padding: 12px 17px; margin: 0 0 20px; background: var(--purple-soft); border: 1px solid var(--hero-line); border-radius: 9px; color: var(--primary-text); font-size: 11px; }
.resume-banner > .icon { width: 17px; height: 17px; }
.resume-banner > span { flex: 1; }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translate(-50%, 20px); z-index: 110; max-width: min(90vw, 520px); padding: 13px 20px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 30px #0002; font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; text-align: center; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
dialog { color: var(--text); background: var(--surface); border: 1px solid var(--border); padding: 0; border-radius: 18px; max-height: 90vh; max-height: 90dvh; box-shadow: 0 30px 100px #0004; }
dialog::backdrop { background: #11112285; backdrop-filter: blur(5px); }
body:has(dialog[open]) { overflow: hidden; }
#info-dialog { width: 560px; max-width: calc(100% - 30px); }
#study-dialog { width: 800px; max-width: calc(100% - 32px); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 25px; border-bottom: 1px solid var(--border); }
.brand-mini { display: inline-flex; align-items: center; gap: 9px; font-size: 9px; color: var(--primary-text); letter-spacing: 1.2px; font-weight: 650; }
.brand-mini .icon { width: 17px; height: 17px; }
.info-content { padding: 28px 30px 32px; }
.info-content h2 { font-size: 25px; margin-bottom: 17px; }
.info-content > p { font-size: 13px; color: var(--muted); margin-top: 14px; line-height: 1.9; }
.help-list { padding-left: 20px; color: var(--muted); font-size: 13px; }
.help-list li { margin-bottom: 13px; }
.help-list strong { color: var(--text); }
.modal-actions { display: flex; gap: 12px; justify-content: center; margin-top: 25px; flex-wrap: wrap; }
.lesson-content { position: relative; }
.lesson-content .topic-icon { margin-top: 4px; }
.lesson-tips { padding-left: 21px; margin: 24px 0; }
.lesson-tips li { padding-left: 7px; margin: 17px 0; font-size: 13px; color: var(--muted); line-height: 1.9; }
.lesson-tips li::marker { color: var(--primary-text); font-weight: 650; }
.lesson-example { background: var(--purple-soft); border-left: 3px solid var(--primary); border-radius: 0 9px 9px 0; padding: 17px; margin-bottom: 25px; }
.lesson-example p { font-size: 13px; margin-top: 9px; }
.exam-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 23px 30px; }
.exam-header > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.exam-header .eyebrow { font-size: 8px; }
.exam-header strong { font-size: 15px; }
.exam-header > div:last-child { display: flex; align-items: center; gap: 17px; }
.session-timer { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.session-timer.urgent { color: var(--danger); font-weight: 700; }
.exam-progress { height: 3px; background: var(--surface-soft); }
.exam-progress > span { display: block; height: 100%; background: var(--primary); transition: width .3s; }
.question-body { padding: 27px 38px 30px; }
.question-meta { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 23px; }
.question-meta > span { font-size: 9px; font-weight: 650; letter-spacing: 1px; }
.question-meta > span > span { margin-left: 5px; }
.flag-button { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); background: none; padding: 7px 9px; border: 1px solid var(--border); }
.flag-button .icon { width: 13px; height: 13px; }
.flag-button[aria-pressed="true"] { color: var(--orange); background: var(--orange-soft); border-color: var(--orange); }
.question-body h2 { font-size: 23px; line-height: 1.6; letter-spacing: -.4px; margin-bottom: 25px; }
.reading-passage { padding: 20px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); margin-bottom: 25px; }
.reading-passage .eyebrow { font-size: 8px; }
.reading-passage p { font-size: 13px; line-height: 1.9; margin-top: 9px; }
.answer-options { display: flex; flex-direction: column; gap: 12px; }
.answer-option { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border: 1px solid var(--border); background: var(--surface); text-align: left; border-radius: 9px; font-size: 13px; min-height: 56px; }
.answer-letter { width: 28px; height: 28px; border: 1px solid var(--border); border-radius: 7px; flex-shrink: 0; display: grid; place-items: center; font-size: 11px; color: var(--muted); }
.answer-option > .icon:last-child { margin-left: auto; width: 18px; }
.answer-option:hover:not(:disabled), .answer-option.selected { border-color: var(--primary); background: var(--purple-soft); }
.answer-option.selected .answer-letter { border-color: var(--primary); background: var(--primary); color: var(--surface); }
.answer-option:disabled { opacity: 1; }
.answer-option.correct { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.answer-option.incorrect { border-color: var(--danger); background: var(--danger-soft); }
.answer-feedback { border-radius: 9px; padding: 18px 20px; margin-top: 23px; }
.correct-feedback { background: var(--green-soft); }
.incorrect-feedback { background: var(--purple-soft); }
.answer-feedback strong { font-size: 12px; display: flex; align-items: center; gap: 9px; }
.answer-feedback .icon { width: 16px; height: 16px; }
.answer-feedback p { color: var(--muted); font-size: 12px; line-height: 1.9; margin-top: 9px; }
.question-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 30px 15px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.question-dots { display: flex; flex-wrap: wrap; gap: 5px; }
.question-dots button { width: 26px; height: 28px; font-size: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); position: relative; }
.question-dots button.answered { background: var(--purple-soft); color: var(--primary-text); border-color: var(--hero-line); }
.question-dots button.current { outline: 1px solid var(--primary); outline-offset: 2px; }
.question-dots button.flagged::after { content: ''; position: absolute; width: 5px; height: 5px; background: var(--orange); border-radius: 50%; right: 1px; top: 1px; }
.exam-actions { display: flex; gap: 8px; margin-left: auto; }
.exam-footnote { text-align: center; color: var(--muted); padding: 0 20px 18px; font-size: 9px; }
.result-body { padding: 30px 38px 38px; text-align: center; }
.result-icon { display: grid; place-items: center; color: var(--primary-text); background: var(--purple-soft); width: 70px; height: 70px; border-radius: 50%; margin: 0 auto 22px; }
.result-icon .icon { width: 30px; height: 30px; }
.result-body > .eyebrow { display: block; }
.result-body h2 { font-size: 33px; margin-top: 10px; }
.result-body > p { color: var(--muted); font-size: 13px; margin-top: 12px; }
.result-stats { display: flex; padding: 23px 5px; margin-top: 27px; border-radius: 12px; background: var(--surface-soft); }
.result-stats > div { flex: 1; border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.result-stats > div:last-child { border: 0; }
.result-stats strong { font-size: 29px; }
.result-stats small { font-size: 15px; font-weight: 450; color: var(--muted); }
.result-stats span { font-size: 10px; color: var(--muted); margin-top: 4px; }
.diagnostic-breakdown { margin: 20px 0; text-align: left; }
.diagnostic-breakdown > div { display: flex; align-items: center; gap: 13px; border-bottom: 1px solid var(--border); padding: 12px 0; }
.diagnostic-breakdown .topic-icon { width: 30px; height: 30px; border-radius: 7px; }
.diagnostic-breakdown .topic-icon .icon { width: 16px; height: 16px; }
.diagnostic-breakdown strong { font-size: 12px; }
.diagnostic-breakdown > div > span:last-child { margin-left: auto; font-size: 12px; }
.diagnostic-breakdown > p { font-size: 12px; color: var(--muted); padding-top: 15px; }
.result-review { padding: 30px; }
.result-review > h2 { font-size: 25px; }
.review-question { padding: 25px 0; border-bottom: 1px solid var(--border); }
.review-question h3 { line-height: 1.65; margin: 11px 0; }
.review-question p { font-size: 12px; color: var(--muted); margin: 8px 0; }
.review-explanation { background: var(--surface-soft); border-radius: 8px; padding: 15px; margin-top: 15px; font-size: 12px; line-height: 1.9; }
.result-review > .button { margin-top: 25px; }
.review-question details { margin-top: 12px; font-size: 12px; color: var(--muted); }
.review-question summary { cursor: pointer; color: var(--primary-text); }
.noscript { margin: 40px; padding: 20px; }
.onboarding-shell { min-height: 100vh; background: radial-gradient(ellipse at 12% 45%, var(--purple-soft), transparent 48%), var(--bg); }
.onboarding-header { max-width: 1350px; margin: 0 auto; padding: 29px 45px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.onboarding-header .brand { margin: 0; padding: 0; }
.onboarding-header > div { display: flex; align-items: center; gap: 24px; }
.onboarding-header .theme-switch { width: 210px; }
.onboarding-exit { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.onboarding-exit:hover { color: var(--primary-text); }
.onboarding-exit .icon { width: 16px; height: 16px; }
main.onboarding-main { max-width: 1120px; min-height: 0; display: grid; grid-template-columns: 310px minmax(0, 570px); gap: 75px; padding: 24px 35px 45px; align-items: start; }
.onboarding-companion { padding-top: 22px; }
.onboarding-companion > .eyebrow { font-size: 9px; }
.onboarding-companion > h2 { margin-top: 19px; font-size: 34px; font-weight: 600; letter-spacing: -1.1px; line-height: 1.35; }
.onboarding-companion > h2 > span { color: var(--primary-text); }
.onboarding-lumi { position: relative; width: 235px; height: 235px; margin: 14px 0 14px 14px; }
.onboarding-lumi::before { content: ''; position: absolute; inset: 15%; border-radius: 50%; background: var(--purple-soft); filter: blur(25px); }
.onboarding-lumi img { width: 100%; height: 100%; object-fit: contain; position: relative; animation: lumi-float 6s ease-in-out infinite; }
.onboarding-lumi .lumi-speech { top: 8px; right: -8px; font-size: 10px; }
.onboarding-step-list { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 12px; }
.onboarding-step-list li { display: flex; align-items: center; gap: 11px; font-size: 12px; color: var(--muted); }
.onboarding-step-list li > span { width: 23px; height: 23px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; font-size: 10px; background: var(--surface); }
.onboarding-step-list li .icon { width: 13px; height: 13px; }
.onboarding-step-list li[aria-current] { color: var(--primary-text); font-weight: 650; }
.onboarding-step-list li[aria-current] > span { color: var(--surface); background: var(--primary); border-color: var(--primary); }
.onboarding-step-list li.done > span { color: var(--green); background: var(--green-soft); border-color: transparent; }
.onboarding-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 19px; padding: 33px 37px 23px; box-shadow: var(--shadow); }
.onboarding-progress { display: flex; align-items: center; justify-content: space-between; color: var(--muted); margin-bottom: 13px; }
.onboarding-progress > span { font-size: 9px; letter-spacing: 1.2px; font-weight: 600; }
.onboarding-progress strong { color: var(--primary-text); font-size: 12px; }
.onboarding-progress strong > span { color: var(--muted); font-weight: 450; }
.onboarding-panel > .progress-track { height: 4px; }
.onboarding-copy { padding-top: 32px; margin-bottom: 25px; }
.onboarding-copy .eyebrow { font-size: 9px; letter-spacing: 1.2px; }
.onboarding-copy h1 { margin: 11px 0 15px; font-size: 31px; letter-spacing: -.9px; line-height: 1.25; }
.onboarding-copy h1:focus { outline: none; }
.onboarding-copy > p { color: var(--muted); font-size: 13px; line-height: 1.85; }
.onboarding-preview { display: flex; flex-direction: column; gap: 18px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 24px 0; }
.onboarding-preview > span { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.onboarding-preview .icon { color: var(--primary-text); width: 19px; height: 19px; }
.onboarding-reassurance { font-size: 11px; color: var(--muted); line-height: 1.85; margin-top: 21px; }
.onboarding-fields { display: grid; gap: 23px; }
.onboarding-fields label, .custom-time { display: block; font-size: 12px; font-weight: 600; }
.onboarding-fields label > span { float: right; color: var(--muted); font-size: 10px; font-weight: 450; }
.onboarding-fields input, .onboarding-fields select { font-size: 14px; min-height: 48px; }
.onboarding-field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.onboarding-choices { display: grid; gap: 11px; }
.onboarding-choice { display: flex; position: relative; align-items: center; gap: 13px; border: 1px solid var(--border); border-radius: 11px; padding: 16px; cursor: pointer; background: var(--surface); transition: border-color .15s, background .15s; }
.onboarding-choice:hover { background: var(--surface-soft); border-color: var(--hero-line); }
.onboarding-choice:has(input:checked) { background: var(--purple-soft); border-color: var(--primary); }
.onboarding-choice:focus-within { outline: 2px solid var(--primary); outline-offset: 3px; }
.onboarding-choice input { appearance: none; position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; padding: 0; margin: 0; }
.onboarding-choice .choice-icon { display: grid; place-items: center; width: 35px; height: 35px; background: var(--surface-soft); color: var(--primary-text); border-radius: 9px; flex-shrink: 0; }
.onboarding-choice .choice-icon .icon { width: 18px; height: 18px; }
.onboarding-choice strong { display: block; font-size: 12px; line-height: 1.6; }
.onboarding-choice small { display: block; color: var(--muted); font-size: 11px; line-height: 1.7; margin-top: 3px; }
.choice-check { border: 1px solid var(--border); border-radius: 50%; margin-left: auto; width: 20px; height: 20px; display: grid; place-items: center; flex-shrink: 0; }
.choice-check .icon { width: 12px; height: 12px; opacity: 0; }
.onboarding-choice:has(input:checked) .choice-check { background: var(--primary); border-color: var(--primary); color: var(--surface); }
.onboarding-choice:has(input:checked) .choice-check .icon { opacity: 1; }
.custom-time { margin-top: 21px; }
.custom-time[hidden] { display: none; }
.custom-time small { display: block; color: var(--muted); font-size: 11px; font-weight: 450; margin-top: 8px; }
.custom-time input { font-size: 14px; max-width: 180px; }
.support-example { padding: 18px; background: var(--surface-soft); border-radius: 10px; margin-top: 22px; }
.support-example .eyebrow { font-size: 8px; }
.support-example p { font-size: 13px; margin: 9px 0; }
.support-example > small, .support-example > span[lang] { display: block; font-size: 11px; color: var(--muted); line-height: 1.9; }
.support-example > span[lang] { margin-top: 9px; }
.assessment-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 22px 0; }
.assessment-facts > span { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.assessment-facts .icon { color: var(--primary-text); }
.assessment-facts strong { font-size: 11px; }
.assessment-facts small { font-size: 10px; color: var(--muted); }
.onboarding-recap { margin-top: 23px; padding: 18px; background: var(--purple-soft); border-radius: 11px; }
.onboarding-recap .eyebrow { font-size: 8px; }
.onboarding-recap p { font-size: 12px; line-height: 1.8; margin-top: 7px; }
.onboarding-recap p:last-child { color: var(--muted); font-size: 11px; }
.onboarding-error { color: var(--danger); font-size: 12px; line-height: 1.7; }
.onboarding-error:not(:empty) { margin-top: 20px; padding: 11px 14px; background: var(--danger-soft); border-radius: 8px; }
.onboarding-actions { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 29px; }
.onboarding-actions .button { min-height: 45px; font-size: 12px; }
.onboarding-save { color: var(--muted); font-size: 10px; margin-top: 22px; display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; }
.onboarding-save .icon { width: 13px; height: 13px; }
.onboarding-footer { max-width: 1120px; padding: 0 35px 25px; text-align: center; margin: 0 auto; color: var(--muted); font-size: 10px; }
.plan-hero { display: flex; align-items: center; justify-content: space-between; background: var(--hero); border: 1px solid var(--hero-line); border-radius: 15px; padding: 29px 35px; margin-bottom: 25px; gap: 22px; }
.plan-hero > div { max-width: 600px; }
.plan-hero h2 { font-size: 31px; margin-top: 14px; color: var(--hero-text); }
.plan-hero p { color: var(--hero-muted); font-size: 13px; line-height: 1.9; margin: 15px 0 21px; }
.plan-hero img { width: 190px; height: 190px; object-fit: contain; }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.plan-routine, .plan-priorities, .plan-baseline { padding: 28px; }
.plan-grid h2 { font-size: 21px; margin-top: 10px; }
.plan-routine ol { list-style: none; padding: 0; margin: 25px 0; }
.plan-routine li { display: flex; align-items: center; gap: 16px; margin: 22px 0; }
.plan-routine li > span { width: 47px; height: 49px; display: flex; align-items: center; justify-content: center; flex-direction: column; flex-shrink: 0; font-size: 20px; font-weight: 650; border-radius: 10px; background: var(--purple-soft); color: var(--primary-text); line-height: 1.2; }
.plan-routine li > span > small { font-size: 9px; font-weight: 450; margin-top: 3px; }
.plan-routine li strong { font-size: 13px; }
.plan-routine li p { color: var(--muted); font-size: 11px; margin-top: 4px; }
.plan-note { font-size: 11px; color: var(--muted); line-height: 1.85; }
.plan-priority { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: none; display: flex; align-items: center; width: 100%; gap: 15px; text-align: left; padding: 23px 0; }
.plan-priority .priority-number { font-size: 18px; color: var(--primary-text); font-weight: 600; }
.plan-priority strong { font-size: 13px; }
.plan-priority small { display: block; color: var(--muted); font-size: 10px; margin-top: 6px; }
.plan-priority > .icon { margin-left: auto; width: 17px; height: 17px; color: var(--muted); }
.plan-priority:hover { color: var(--primary-text); }
.plan-priorities > .text-link { margin-top: 20px; font-size: 12px; }
.plan-scores { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; margin: 25px 0; }
.plan-scores > div { display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; }
.plan-scores strong { font-size: 11px; }
.plan-scores > div > span:not(.topic-icon) { font-size: 23px; font-weight: 600; }
.plan-scores small { color: var(--muted); font-size: 10px; }
.plan-ready { color: var(--primary-text) !important; font-weight: 600; background: var(--purple-soft); padding: 13px; border-radius: 8px; }
.thai-support { margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 12px; }
.thai-support summary { color: var(--primary-text); cursor: pointer; font-size: 12px; }
.thai-support p { line-height: 2; color: var(--muted); margin-top: 10px; }
@media (max-width: 1050px) {
  main.onboarding-main { grid-template-columns: 250px minmax(0, 520px); gap: 35px; padding-left: 30px; padding-right: 30px; }
  .onboarding-companion > h2 { font-size: 30px; }
  .onboarding-panel { padding-left: 29px; padding-right: 29px; }
  .plan-grid { grid-template-columns: 1fr; }
  .plan-hero { padding: 25px; }
  .plan-hero img { width: 130px; height: 150px; }
}
@media (max-width: 760px) {
  .onboarding-header { padding: 23px; }
  .onboarding-header .brand { font-size: 22px; }
  .onboarding-header .brand-mark { width: 34px; height: 37px; }
  .onboarding-header .brand-sub { font-size: 7px; }
  .onboarding-header > div { gap: 15px; }
  .onboarding-header .theme-switch { width: 120px; }
  .onboarding-header .theme-switch span { display: none; }
  .onboarding-header .theme-switch button { min-height: 30px; }
  .onboarding-header .onboarding-exit { font-size: 11px; }
  main.onboarding-main { display: block; max-width: 590px; padding: 10px 23px 30px; }
  .onboarding-companion { display: none; }
  .onboarding-panel { padding: 28px; }
  .onboarding-copy h1 { font-size: 29px; max-width: none; }
  .onboarding-copy > p { font-size: 13px; }
  .onboarding-exit .icon { display: none; }
  .plan-hero h2 { font-size: 26px; }
  .plan-hero .eyebrow { font-size: 9px; }
  .plan-scores { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
}
@media (max-width: 480px) {
  .onboarding-header { padding: 18px 16px; gap: 12px; flex-wrap: wrap; }
  .onboarding-header > div { gap: 12px; }
  .onboarding-header .theme-switch { width: 98px; }
  .onboarding-header .brand { font-size: 20px; gap: 8px; }
  .onboarding-header .brand-sub { font-size: 6px; letter-spacing: 1.4px; }
  .onboarding-header .brand-mark { width: 30px; height: 33px; }
  .onboarding-header .onboarding-exit { font-size: 10px; }
  main.onboarding-main { padding: 12px 14px 25px; }
  .onboarding-panel { padding: 24px 20px 20px; border-radius: 14px; }
  .onboarding-copy { padding-top: 25px; }
  .onboarding-copy h1 { font-size: 27px; }
  .onboarding-copy .eyebrow { font-size: 8px; }
  .onboarding-preview > span { font-size: 12px; }
  .onboarding-choice { padding: 13px 11px; gap: 10px; }
  .onboarding-choice .choice-icon { width: 30px; height: 30px; }
  .onboarding-choice strong { font-size: 12px; }
  .onboarding-choice small { font-size: 10px; }
  .choice-check { width: 17px; height: 17px; }
  .onboarding-field-pair { gap: 13px; }
  .onboarding-fields label > span { float: none; display: block; margin-top: 4px; }
  .onboarding-actions { gap: 9px; }
  .onboarding-actions .button { padding-left: 12px; padding-right: 12px; font-size: 11px; }
  .assessment-facts { gap: 10px; }
  .assessment-facts strong { font-size: 10px; }
  .assessment-facts small { font-size: 9px; }
  .onboarding-save { font-size: 9px; }
  .onboarding-footer { font-size: 9px; }
  .plan-hero { gap: 5px; padding: 24px; }
  .plan-hero img { display: none; }
  .plan-hero h2 { font-size: 27px; }
  .plan-routine, .plan-priorities, .plan-baseline { padding: 24px; }
  .plan-scores { grid-template-columns: 1fr 1fr; }
  .plan-baseline .section-heading { align-items: flex-start; }
  .plan-baseline .section-heading .badge { white-space: nowrap; font-size: 10px; }
}
@media (min-width: 1500px) {
  :root { --sidebar-width: 252px; }
  main { padding-left: 48px; padding-right: 48px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) 310px; gap: 26px; }
  .hero { min-height: 320px; }
  .hero-copy { padding: 35px; }
  .hero h2 { font-size: 42px; }
  .hero p { font-size: 13px; max-width: 350px; }
  .hero-art img { width: 285px; height: 285px; }
  .hero-actions > span { font-size: 10px; }
  .hero-button { font-size: 11px; }
  .pathway-card { padding-left: 30px; padding-right: 30px; }
  .path-stop strong { font-size: 11px; }
  .path-stop small { font-size: 9px; }
  .path-node { width: 56px; height: 56px; }
  .learning-path { height: 205px; }
  .daily-card { padding: 25px; }
  .goal-ring { width: 160px; height: 160px; }
  .goal-ring strong { font-size: 32px; }
  .daily-card h3 { font-size: 14px; }
  .daily-card > p { font-size: 11px; max-width: 220px; }
  .section-heading h2 { font-size: 17px; }
  .practice-card { padding: 22px; }
  .practice-card h3 { font-size: 15px; }
  .practice-card p { font-size: 11px; }
}
@media (max-width: 1200px) {
  :root { --sidebar-width: 208px; }
  .sidebar { padding-left: 13px; padding-right: 13px; }
  .brand { font-size: 24px; padding-left: 8px; gap: 9px; }
  .brand-sub { letter-spacing: 2px; }
  .nav-link { padding: 12px; gap: 10px; font-size: 11px; }
  main { padding: 29px 25px; }
  .topbar { padding: 0 25px; }
  .page-heading { align-items: flex-start; }
  .date-pill { margin-top: 16px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) 240px; gap: 18px; }
  .main-column, .right-column { gap: 18px; }
  .stat { padding: 0 14px; gap: 9px; }
  .stat-icon { width: 29px; height: 29px; border-radius: 9px; }
  .stat-icon .icon { width: 25px; height: 25px; }
  .stat-sub { font-size: 9px; }
  .hero-copy { padding-left: 23px; width: 65%; }
  .hero h2 { font-size: 28px; }
  .hero p { max-width: 245px; font-size: 10px; }
  .hero-kicker { font-size: 6.5px; }
  .hero-art { left: 64%; }
  .hero-art img { width: 200px; height: 200px; }
  .lumi-speech { right: 19px; top: 37px; font-size: 8px; }
  .lumi-label { font-size: 6px; bottom: 35px; }
  .hero-star { display: none; }
  .hero-actions { max-width: 210px; }
  .pathway-card { padding-left: 18px; padding-right: 18px; }
  .pathway-card .section-heading h2 { font-size: 14px; }
  .pathway-card .text-link { font-size: 9px; }
  .path-section-label p { font-size: 8px; }
  .path-progress { font-size: 8px; }
  .path-stop strong { font-size: 8px; }
  .path-stop small { font-size: 7px; }
  .practice-card { padding: 15px; }
  .practice-card h3 { font-size: 12px; }
  .practice-card p { font-size: 9px; }
  .practice-card > div { font-size: 8px; }
  .daily-card { padding: 20px 17px 16px; }
  .word-card, .countdown-card { padding: 19px; }
  .word-card .eyebrow { font-size: 6px; }
  .countdown-bottom { font-size: 7px; }
  .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer { padding-left: 25px; padding-right: 25px; }
}
@media (max-width: 1000px) {
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .right-column { display: grid; grid-template-columns: 1fr 1fr; }
  .daily-card { grid-row: span 2; }
  .daily-card .goal-ring { margin-top: 40px; margin-bottom: 28px; width: 165px; height: 165px; }
  .daily-card > p { margin-bottom: 22px; }
  .hero { min-height: 285px; }
  .hero h2 { font-size: 34px; }
  .hero p { max-width: 290px; font-size: 12px; }
  .hero-kicker { font-size: 8px; }
  .hero-actions { max-width: none; }
  .hero-art { left: 65%; }
  .hero-art img { width: 235px; height: 235px; }
  .lumi-label { font-size: 8px; bottom: 24px; }
  .path-stop strong { font-size: 10px; }
  .path-stop small { font-size: 9px; }
  .word-card .eyebrow { font-size: 8px; }
  .word-card blockquote { display: none; }
  .word-card > h2 { margin-top: 10px; font-size: 24px; }
  .word-card > p { margin: 10px 0 14px; }
  .countdown-bottom { font-size: 9px; }
  .page-heading { flex-wrap: wrap; gap: 12px; }
  .page-heading .date-pill { display: none; }
  .stat { flex-direction: column; gap: 10px; }
  .stat-value { font-size: 26px; }
  .stat-sub { font-size: 9px; }
  .progress-grid, .exam-grid { grid-template-columns: 1fr; }
  .activity-chart { height: 230px; }
  .lesson-row { gap: 15px; padding: 22px; flex-wrap: wrap; }
  .lesson-row-copy { flex: 1; min-width: 200px; }
  .lesson-row .button { margin-left: 58px; }
  .mistake-row { flex-wrap: wrap; }
  .mistake-row > div { min-width: 200px; }
  .mistake-row .button { margin-left: 65px; }
  .site-footer { flex-direction: column; }
}
@media (max-width: 760px) {
  :root { --sidebar-width: 234px; }
  .sidebar { transform: translateX(-100%); visibility: hidden; transition: transform .2s, visibility .2s; padding: 25px 19px 17px; box-shadow: 15px 0 40px #0002; top: 65px; }
  .sidebar.mobile-open { transform: translateX(0); visibility: visible; }
  .brand { margin-bottom: 25px; }
  .sidebar-note { margin-top: 25px; }
  .nav-link { padding: 12px; font-size: 12px; }
  .site-content { margin: 0; }
  .topbar { height: 65px; padding: 0 20px; position: sticky; top: 0; z-index: 40; }
  .menu-toggle { display: inline-flex; margin-left: -5px; margin-right: 12px; }
  .breadcrumb { margin-right: auto; gap: 8px; font-size: 10px; }
  .topbar-right { gap: 12px; }
  .header-streak { font-size: 10px; gap: 4px; }
  .header-streak span { display: none; }
  .header-divider { display: none; }
  main { padding: 27px 20px; }
  h1 { font-size: 30px; letter-spacing: -1px; }
  .page-heading { margin-bottom: 24px; }
  .stats-row { margin-bottom: 22px; }
  .stat { flex-direction: row; }
  .stat-icon { display: none; }
  .stat-label { font-size: 9px; }
  .stat-sub { font-size: 9px; }
  .hero-copy { padding: 28px; }
  .hero-art img { width: 250px; height: 250px; }
  .hero h2 { font-size: 35px; }
  .hero p { font-size: 12px; }
  .main-column, .right-column { gap: 20px; }
  .pathway-card { padding-top: 24px; }
  .practice-card { padding: 20px; }
  .practice-card h3 { font-size: 14px; }
  .practice-card p { font-size: 11px; }
  .practice-card > div { font-size: 9px; }
  .full-pathway { padding-left: 18px; padding-right: 18px; }
  .full-pathway .path-stop strong { font-size: 10px; }
  .full-pathway .path-stop small { font-size: 8px; }
  .topic-card { padding: 23px; }
  .practice-intro { padding: 24px; }
  .settings-card { padding: 25px; }
  .theme-preview { height: 90px; }
  .appearance-option small { font-size: 9px; }
  .site-footer { padding: 0 20px 23px; }
}
@media (max-width: 480px) {
  .breadcrumb { font-size: 10px; }
  .breadcrumb > span, .breadcrumb > strong { display: none; }
  .topbar { padding: 0 16px; }
  .topbar-right { gap: 8px; }
  main { padding: 24px 16px; }
  h1 { font-size: 27px; max-width: 340px; line-height: 1.3; }
  .heading-spark { font-size: 20px; margin-left: 8px; }
  .page-heading .eyebrow { font-size: 8px; }
  .page-heading p { font-size: 11px; }
  .stats-row { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
  .stat { padding: 17px; gap: 12px; border-bottom: 1px solid var(--border); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { border-bottom: 0; }
  .stat-icon { display: grid; width: 30px; height: 30px; }
  .stat-label { font-size: 9px; }
  .stat-value { font-size: 24px; }
  .stat-sub { font-size: 9px; }
  .hero { min-height: 380px; }
  .hero-copy { padding: 25px 24px; width: 100%; }
  .hero-kicker { font-size: 7px; }
  .hero h2 { font-size: 32px; max-width: 280px; margin-top: 16px; }
  .hero p { font-size: 11px; max-width: 245px; margin-top: 12px; }
  .hero-actions { margin-top: 22px; max-width: 175px; gap: 10px; }
  .hero-art { top: 180px; left: 51%; padding-top: 0; }
  .hero-art img { width: 200px; height: 200px; }
  .lumi-speech { right: 11px; top: 8px; font-size: 7px; padding: 5px 8px; }
  .lumi-label { display: none; }
  .hero-orbit { width: 185px; height: 185px; }
  .hero-button { font-size: 10px; padding: 10px; }
  .hero-actions > span { font-size: 8px; }
  .pathway-card { padding: 21px 14px 0; }
  .pathway-card .section-heading h2 { font-size: 14px; }
  .pathway-card .text-link { font-size: 8px; gap: 3px; }
  .path-section-label { gap: 8px; }
  .path-section-label strong { font-size: 10px; }
  .path-section-label p { font-size: 7px; }
  .path-section-label > span:first-child { width: 25px; height: 25px; font-size: 9px; }
  .path-progress { font-size: 7px; }
  .learning-path { height: 160px; }
  .path-node { width: 41px; height: 41px; border-width: 4px; }
  .path-node .icon { width: 27px; height: 27px; }
  .path-stop strong { font-size: 7px; margin-top: 10px; }
  .path-stop small { font-size: 6px; }
  .path-line { height: 90px; }
  .path-note { font-size: 8px; gap: 5px; }
  .outside h2 { font-size: 14px; }
  .outside .text-link { font-size: 8px; }
  .practice-cards { gap: 12px; }
  .practice-card { padding: 15px 13px; }
  .practice-card h3 { font-size: 12px; line-height: 1.5; }
  .practice-card p { font-size: 9px; line-height: 1.7; }
  .practice-card > div { font-size: 7px; gap: 3px; }
  .practice-card > div .icon { width: 12px; height: 12px; }
  .right-column { gap: 14px; }
  .daily-card { padding: 20px 13px; }
  .daily-card .section-heading h2 { font-size: 12px; }
  .daily-card .subtle-link { font-size: 8px; }
  .daily-card .subtle-link .icon { display: none; }
  .daily-card .goal-ring { width: 123px; height: 123px; margin-top: 35px; }
  .daily-card h3 { font-size: 11px; }
  .daily-card > p { font-size: 9px; }
  .week-strip { gap: 2px; }
  .day b { width: 16px; height: 16px; }
  .day { font-size: 7px; }
  .countdown-card { padding: 17px 13px; }
  .countdown-top > span { font-size: 6px; letter-spacing: .5px; gap: 4px; }
  .countdown-top > .icon { display: none; }
  .countdown-top > span .icon { width: 11px; height: 11px; }
  .countdown-number { font-size: 34px; margin-top: 13px; }
  .countdown-number > span { font-size: 8px; }
  .countdown-card h3 { font-size: 9px; }
  .countdown-bottom { display: block; font-size: 8px; }
  .countdown-bottom a { display: block; margin-top: 8px; }
  .word-card { padding: 17px 13px; }
  .word-card .eyebrow { font-size: 6px; line-height: 1.7; }
  .word-card .section-heading > .icon { display: none; }
  .word-card > h2 { font-size: 22px; margin-top: 13px; }
  .pronunciation { font-size: 8px; }
  .pronunciation i { display: block; padding: 4px 0 0; }
  .word-card > p { font-size: 9px; }
  .word-save { font-size: 7px; gap: 5px; padding: 8px 4px; }
  .word-save .icon { width: 11px; height: 11px; }
  .topic-grid { grid-template-columns: 1fr; gap: 16px; }
  .topic-card > p { min-height: auto; }
  .topic-card .topic-mastery { margin-top: 20px; }
  .practice-intro { flex-direction: column; align-items: flex-start; padding: 22px; }
  .practice-intro h2 { font-size: 22px; }
  .full-pathway .learning-path { height: 170px; margin-top: 10px; }
  .full-pathway .path-node { width: 43px; height: 43px; }
  .full-pathway .stop-0, .full-pathway .stop-4 { margin-top: 20px; }
  .full-pathway .stop-1, .full-pathway .stop-3 { margin-top: 50px; }
  .full-pathway .path-line { height: 100px; }
  .full-pathway .path-stop strong { font-size: 7px; }
  .full-pathway .path-stop small { font-size: 6px; }
  .full-pathway .badge { font-size: 8px; padding: 4px 6px; }
  .lesson-row { padding: 21px; gap: 13px; }
  .lesson-row-copy { min-width: 150px; }
  .lesson-row h2 { font-size: 16px; }
  .lesson-row p { font-size: 11px; }
  .lesson-row .eyebrow { font-size: 8px; }
  .lesson-row .button { width: 100%; margin-left: 0; }
  .exam-card { padding: 25px; }
  .exam-card h2 { font-size: 25px; }
  .exam-card > p { font-size: 12px; }
  .history-card { padding: 22px; }
  .history-row { gap: 10px; }
  .history-row strong { font-size: 10px; }
  .history-row small { font-size: 9px; }
  .history-row .badge { display: none; }
  .history-row .topic-icon { width: 29px; height: 29px; }
  .empty-state { padding: 30px 22px; }
  .empty-state h2 { font-size: 25px; }
  .mistake-row { padding: 20px; gap: 13px; }
  .mistake-row > div { min-width: 160px; }
  .mistake-row .button { width: 100%; margin-left: 0; }
  .mistake-row h3 { font-size: 13px; }
  .skills-card, .activity-card { padding: 22px; }
  .skills-card .badge { font-size: 8px; }
  .storage-note { font-size: 9px; }
  .settings-card { padding: 23px 19px; }
  .appearance-options { gap: 9px; }
  .appearance-option { padding: 7px; }
  .theme-preview { height: 75px; }
  .appearance-option > strong { font-size: 10px; gap: 4px; margin-left: 1px; margin-right: 1px; }
  .appearance-option > strong .icon { width: 13px; height: 13px; }
  .appearance-option .selection-check { display: none; }
  .appearance-option small { font-size: 8px; line-height: 1.6; margin-left: 1px; }
  .form-grid { grid-template-columns: 1fr; gap: 20px; }
  .settings-actions { gap: 9px; }
  .settings-actions .button { font-size: 10px; padding: 10px 12px; }
  .danger-outline { margin-left: 0; }
  .resume-banner { padding: 12px; font-size: 10px; gap: 8px; }
  .resume-banner .text-link { font-size: 9px; }
  .site-footer { font-size: 7px; padding-left: 16px; padding-right: 16px; }
  #study-dialog { max-width: calc(100% - 16px); border-radius: 13px; max-height: 95dvh; }
  .exam-header { padding: 18px; }
  .exam-header strong { font-size: 13px; }
  .exam-header .eyebrow { font-size: 7px; letter-spacing: .7px; }
  .exam-header > div:last-child { gap: 9px; }
  .session-timer { font-size: 10px; }
  .question-body { padding: 23px 20px; }
  .question-body h2 { font-size: 20px; line-height: 1.65; margin-bottom: 19px; }
  .question-meta { margin-bottom: 17px; }
  .question-meta > span { font-size: 8px; }
  .flag-button { font-size: 9px; }
  .reading-passage { padding: 17px; }
  .reading-passage p { font-size: 12px; }
  .answer-option { font-size: 12px; padding: 12px; gap: 11px; }
  .answer-feedback { padding: 15px; }
  .answer-feedback strong { font-size: 11px; }
  .answer-feedback p { font-size: 11px; }
  .question-footer { padding: 20px; gap: 21px; }
  .question-dots { justify-content: center; width: 100%; gap: 5px; }
  .exam-actions { width: 100%; }
  .exam-actions .button { flex: 1; }
  .exam-actions .button:first-child { flex: 0; min-width: 80px; }
  .exam-footnote { font-size: 8px; }
  .info-content { padding: 25px; }
  .info-content h2 { font-size: 23px; }
  .modal-header { padding: 18px 20px; }
  .result-body { padding: 28px 20px; }
  .result-body h2 { font-size: 28px; }
  .result-body > p { font-size: 12px; }
  .result-stats strong { font-size: 25px; }
  .result-stats span { font-size: 8px; }
  .result-review { padding: 23px; }
  .review-question h3 { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* Keep supporting copy readable at the smallest viewport. */
@media (max-width: 480px) {
  .right-column { grid-template-columns: 1fr; }
  .daily-card { grid-row: auto; padding: 25px; }
  .daily-card .section-heading h2 { font-size: 16px; }
  .daily-card .subtle-link { font-size: 12px; }
  .daily-card .goal-ring { width: 150px; height: 150px; margin: 25px auto; }
  .daily-card h3 { font-size: 14px; }
  .daily-card > p { font-size: 12px; max-width: 240px; }
  .day { font-size: 11px; }
  .day b { width: 29px; height: 29px; }
  .countdown-card, .word-card { padding: 24px; }
  .countdown-top > span, .word-card .eyebrow { font-size: 10px; }
  .countdown-top > span .icon { width: 16px; height: 16px; }
  .countdown-number { font-size: 42px; }
  .countdown-number > span { font-size: 12px; }
  .countdown-card h3 { font-size: 13px; }
  .countdown-bottom { display: flex; font-size: 11px; }
  .countdown-bottom a { margin-top: 0; }
  .word-card > h2 { font-size: 30px; }
  .pronunciation { font-size: 12px; }
  .pronunciation i { display: inline; padding-left: 5px; font-size: 10px; }
  .word-card > p { font-size: 13px; }
  .word-card blockquote { display: block; font-size: 12px; }
  .word-save { font-size: 12px; min-height: 44px; }
  .word-save .icon { width: 16px; height: 16px; }
  .path-stop strong, .full-pathway .path-stop strong { font-size: 9px; overflow-wrap: anywhere; }
  .path-stop small, .full-pathway .path-stop small { font-size: 8px; }
  .path-section-label p, .path-progress { font-size: 9px; }
  .path-note { font-size: 10px; text-align: center; }
  .learning-path { height: 180px; }
  .practice-card p { font-size: 11px; }
  .practice-card > div { font-size: 10px; line-height: 1.7; }
  .practice-card > div .icon { display: none; }
  .site-footer { font-size: 10px; }
}
/* Bilingual public experience. Thai uses native shaping and generous line height. */
:lang(th) { font-family: "Noto Sans Thai", "Thonburi", "Leelawadee UI", sans-serif; line-height: 1.85; word-break: normal; overflow-wrap: break-word; letter-spacing: 0; }
.wordmark { display: inline-flex; align-items: baseline; gap: 1px; font-style: normal; font-weight: 800; font-size: 25px; letter-spacing: -1.4px; white-space: nowrap; color: var(--text); line-height: 1.5; }
.wordmark > :lang(th) { font-size: .94em; font-weight: 800; letter-spacing: -.9px; }
.wordmark > span:last-child { letter-spacing: -1.5px; }
.wordmark small { font-size: .62em; letter-spacing: -.4px; }
.wordmark-dot { color: var(--primary); }
.brand.wordmark-link { padding: 6px 0; gap: 0; }
.sidebar .wordmark { font-size: 24px; }
.public-site { max-width: 1600px; margin: auto; }
.public-header { display:flex; align-items:center; gap:30px; min-height:100px; padding:20px 5%; border-bottom:1px solid var(--border); }
.public-brand { text-decoration:none; flex-shrink:0; }
.public-header nav { display:flex; gap:24px; margin:auto; }
.public-header nav a { color:var(--muted); text-decoration:none; font-size:13px; }
.public-header nav a:hover { color:var(--primary-text); }
.public-tools { display:flex; gap:18px; align-items:center; }
.public-tools .theme-switch { width:auto; margin:0; }
.public-tools .theme-switch button span { display:none; }
.public-learning { color:var(--primary-text); text-decoration:none; font-size:12px; }
main.landing-main { padding:0; max-width:none; }
.landing-hero { display:grid; grid-template-columns:1.08fr 1fr; gap:5%; padding:70px 6% 60px; align-items:center; }
.hero-label { color:var(--primary-text); font-size:13px; font-weight:600; display:flex; align-items:center; gap:10px; }
.hero-label > span { width:7px; height:7px; border-radius:50%; background:var(--primary); }
.landing-hero h1 { font-size:clamp(44px,5.5vw,78px); line-height:1.08; letter-spacing:-3.8px; margin:26px 0; max-width:none; font-weight:750; }
.landing-hero h1 em { font-style:normal; color:var(--primary-text); }
.hero-thai-title { font-size:22px; font-weight:600; margin:0 0 12px; }
.hero-thai-description { max-width:490px; font-size:15px; color:var(--muted); margin:0; }
.landing-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-top:28px; }
.landing-actions .button, .public-site .button { font-size:14px; padding:12px 23px; text-decoration:none; line-height:1.8; }
.hero-fine { font-size:11px; color:var(--muted); margin:16px 0 0; }
.landing-art { border:1px solid var(--border); border-radius:150px 150px 28px 28px; position:relative; min-height:510px; display:flex; align-items:center; justify-content:center; background:radial-gradient(ellipse at 45% 42%,#cabaff90,transparent 68%),linear-gradient(145deg,var(--surface-soft),var(--purple-soft)); overflow:hidden; }
.landing-art > img { width:95%; height:auto; position:relative; z-index:1; filter:drop-shadow(0 25px 25px #6653ac22); }
.art-caption { position:absolute; top:35px; font-size:11px; letter-spacing:1px; color:var(--muted); }
.lumi-halo { position:absolute; width:75%; aspect-ratio:1; border:1px solid #a995e460; border-radius:50%; box-shadow:0 0 0 30px #a995e416,0 0 0 60px #a995e40b; }
.lumi-note { position:absolute; z-index:2; bottom:70px; left:24px; display:flex; align-items:center; gap:12px; padding:12px 20px; background:var(--surface); box-shadow:0 10px 35px #37305412; border:1px solid var(--border); border-radius:14px; transform:rotate(-4deg); }
.lumi-note > span { color:var(--primary); font-size:30px; }
.lumi-note p { font-size:12px; margin:0; color:var(--muted); }
.lumi-note strong { color:var(--text); }
.art-star { position:absolute; right:18px; top:100px; color:var(--primary); font-size:70px; }
.art-bottom { position:absolute; bottom:23px; left:26px; right:26px; display:flex; justify-content:space-between; font-size:8px; letter-spacing:1.8px; color:var(--muted); }
.landing-stat-strip { display:flex; align-items:center; justify-content:space-between; margin:0 6%; padding:29px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); gap:25px; }
.landing-stat-strip > div { display:flex; align-items:center; gap:15px; }
.landing-stat-strip strong { font-size:37px; letter-spacing:-1.8px; }
.landing-stat-strip span { font-size:12px; color:var(--muted); }
.landing-stat-strip p { font-size:11px; color:var(--primary-text); line-height:1.9; }
.landing-section { padding:90px 6%; display:grid; grid-template-columns:1fr 1fr; gap:9%; align-items:center; }
.public-site h2, .landing-section h1 { font-size:clamp(32px,3.6vw,49px); line-height:1.16; letter-spacing:-1.8px; margin:16px 0; }
.public-site .thai-sub { font-size:20px; font-weight:600; color:var(--text); margin:16px 0 12px; }
.landing-section p { color:var(--muted); font-size:14px; }
.landing-section .button { margin-top:12px; }
.diagnostic-visual { padding:36px; border:1px solid var(--border); border-radius:24px; background:var(--surface); box-shadow:0 25px 65px #65608b0c; }
.sample-question { padding:30px 0; border-bottom:1px solid var(--border); }
.sample-question > span { color:var(--primary-text); font-size:12px; }
.sample-question h3 { font-size:35px; line-height:1.15; letter-spacing:-1.2px; margin:15px 0; }
.sample-question p { font-size:13px; }
.skill-chips { display:flex; flex-wrap:wrap; gap:9px; margin:24px 0; }
.skill-chips span { border-radius:8px; background:var(--purple-soft); color:var(--primary-text); font-size:10px; padding:9px 12px; }
.diagnostic-visual > small { color:var(--muted); font-size:10px; }
.curriculum-section { background:var(--surface-soft); border-block:1px solid var(--border); }
.curriculum-item { display:flex; align-items:center; gap:16px; padding:20px 0; border-bottom:1px solid var(--border); text-decoration:none; color:var(--text); }
.curriculum-item:first-child { border-top:1px solid var(--border); }
.curriculum-item > span { font-size:12px; color:var(--primary-text); }
.curriculum-item h3 { margin:0; font-size:18px; }
.curriculum-item p { font-size:11px; margin:5px 0 0; }
.curriculum-item strong { margin-left:auto; font-size:23px; text-align:right; }
.curriculum-item small { display:block; font-size:9px; color:var(--muted); font-weight:400; }
.curriculum-item > b { color:var(--primary-text); margin-left:8px; }
.progress-editorial { border-radius:24px; padding:38px; background:var(--purple-soft); border:1px solid var(--border); }
.progress-editorial > span { color:var(--primary-text); font-size:14px; }
.progress-editorial h3 { font-size:30px; line-height:1.25; letter-spacing:-1px; }
.progress-editorial ol { padding-left:23px; font-size:14px; line-height:2.5; }
.progress-editorial p { font-size:11px; border-top:1px solid var(--border); padding-top:16px; }
.papers-section { background:var(--surface); border-block:1px solid var(--border); }
.source-panel { border:1px solid var(--border); border-radius:20px; padding:30px; background:var(--bg); }
.source-panel h3 { font-size:20px; }
.source-panel a { display:block; padding:19px 0; border-top:1px solid var(--border); color:var(--primary-text); text-decoration:none; }
.source-panel a strong { font-size:13px; }
.source-panel a span { display:block; font-size:11px; color:var(--muted); margin-top:5px; }
.source-panel p { font-size:11px; }
.lumi-section { padding-top:50px; padding-bottom:50px; }
.lumi-section > img { width:85%; height:auto; max-width:380px; justify-self:center; filter:drop-shadow(0 16px 30px #8b73dc25); }
.pricing-section { background:var(--surface-soft); }
.price-panel { border:1px solid var(--primary); border-radius:24px; padding:35px; background:var(--surface); box-shadow:0 15px 45px #7660db12; }
.price-panel h3 { font-size:26px; margin:24px 0 15px; letter-spacing:-.8px; }
.price-amount { font-size:48px; font-weight:750; letter-spacing:-2px; }
.price-amount > span { font-size:11px; font-weight:400; color:var(--muted); }
.price-panel ul { padding:15px 0; list-style:none; border-block:1px solid var(--border); font-size:13px; }
.price-panel li { padding:5px 0; }
.price-panel li::before { content:'✓'; color:var(--primary); margin-right:12px; }
.price-panel .price-note { font-size:11px; margin:20px 0 0; }
.landing-final { margin:65px 6%; padding:55px; border-radius:28px; background:var(--purple-soft); border:1px solid var(--border); position:relative; overflow:hidden; }
.landing-final p { font-size:18px; }
.final-star { position:absolute; right:10%; top:20%; font-size:180px; color:var(--primary); opacity:.2; }
.public-footer { margin:0 6%; padding:35px 0; display:flex; gap:30px; align-items:flex-start; border-top:1px solid var(--border); }
.public-footer > div { flex:1; }
.public-footer p { font-size:10px; color:var(--muted); margin:3px 0; }
.public-footer > a:last-child { font-size:11px; color:var(--primary-text); }
.site-footer .independent-notice { max-width:620px; }
.site-footer .independent-notice p { margin:3px 0; font-size:10px; }
.practice-controls { display:flex; flex-wrap:wrap; gap:16px; align-items:end; padding:20px; margin-bottom:20px; background:var(--surface); border:1px solid var(--border); border-radius:16px; }
.practice-controls label { display:grid; gap:6px; font-size:12px; color:var(--muted); }
.practice-controls select, .practice-controls input { font:inherit; background:var(--surface-soft); color:var(--text); border:1px solid var(--border); padding:10px; border-radius:8px; min-height:42px; max-width:100%; }
.practice-controls .button { font-size:12px; }
.bank-list { display:grid; gap:12px; }
.bank-question { padding:24px; border:1px solid var(--border); background:var(--surface); border-radius:16px; display:flex; gap:20px; align-items:center; }
.bank-question > div { flex:1; min-width:0; }
.bank-question h2 { font-size:16px; margin:10px 0; line-height:1.6; letter-spacing:0; }
.bank-question p { font-size:11px; color:var(--muted); margin:5px 0; }
.bank-pagination { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:24px 0; font-size:12px; }
.question-tags { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:18px; font-size:10px; color:var(--muted); }
.question-tags span { padding:5px 9px; background:var(--surface-soft); border-radius:6px; }
.reading-passage p, .review-question details p { white-space:pre-line; }
.explanation-detail { margin-top:16px; border-top:1px solid var(--border); padding-top:14px; }
.explanation-detail summary { cursor:pointer; font-weight:600; font-size:12px; }
.option-rationales { list-style:none; padding:0; }
.option-rationales li { padding:8px 0; border-bottom:1px solid var(--border); font-size:12px; line-height:1.8; }
.option-rationales strong { display:block; }
.explanation-detail p { font-size:12px; }
@media(max-width:1100px) {
 .public-header { gap:18px; flex-wrap:wrap; }
 .public-header nav { gap:18px; }
 .public-tools { gap:10px; }
 .public-learning { display:none; }
 .landing-hero { gap:4%; padding-top:50px; }
 .landing-art { min-height:440px; }
 .landing-hero h1 { letter-spacing:-2.6px; }
 .landing-stat-strip { flex-wrap:wrap; }
 .landing-section { gap:6%; padding-block:65px; }
 .public-footer { flex-wrap:wrap; }
}
@media(max-width:760px) {
 .public-header { padding:15px 5%; gap:15px; justify-content:space-between; }
 .public-header nav { order:3; width:100%; justify-content:space-between; margin:0; gap:8px; }
 .public-header nav a { font-size:12px; }
 .public-tools .theme-switch button { min-width:29px; }
 .landing-hero { grid-template-columns:1fr; padding:40px 6%; }
 .landing-hero h1 { font-size:54px; letter-spacing:-2.8px; }
 .hero-thai-title { font-size:20px; }
 .hero-thai-description { font-size:14px; }
 .landing-art { min-height:0; height:390px; max-width:440px; width:100%; margin:35px auto 0; border-radius:120px 120px 24px 24px; }
 .landing-art > img { height:350px; width:350px; object-fit:contain; }
 .art-caption { top:23px; font-size:10px; }
 .lumi-note { bottom:50px; left:15px; padding:10px 16px; }
 .lumi-note p { font-size:11px; }
 .art-star { font-size:55px; top:70px; }
 .landing-stat-strip { gap:16px; }
 .landing-stat-strip > div { display:block; }
 .landing-stat-strip strong { display:block; font-size:31px; }
 .landing-stat-strip span { font-size:11px; }
 .landing-stat-strip > p { width:100%; margin:0; }
 .landing-section { grid-template-columns:1fr; gap:30px; padding:50px 6%; }
 .diagnostic-section > div:last-child { order:-1; }
 .public-site h2, .landing-section h1 { font-size:36px; letter-spacing:-1.4px; }
 .public-site .thai-sub { font-size:19px; }
 .lumi-section { gap:0; }
 .lumi-section > img { width:70%; max-width:260px; }
 .lumi-section > div { order:-1; }
 .landing-final { margin:40px 6%; padding:30px; }
 .landing-final .final-star { right:-25px; font-size:120px; top:45%; pointer-events:none; }
 .landing-final p { font-size:15px; }
 .public-footer { flex-direction:column; gap:18px; }
 .bank-question { flex-direction:column; align-items:flex-start; }
 .bank-question .button { width:100%; }
 .practice-controls > label { flex:1; min-width:130px; }
 .question-dots { max-height:120px; overflow:auto; }
 .site-footer { gap:12px; }
}
@media(max-width:480px) {
 .landing-hero h1 { font-size:clamp(36px,11vw,48px); letter-spacing:-2px; }
 .hero-thai-title { font-size:18px; }
 .landing-hero .landing-actions .button { font-size:12px; padding:11px 16px; }
 .landing-art { height:330px; }
 .landing-art > img { width:300px; height:300px; }
 .public-site h2, .landing-section h1 { font-size:32px; }
 .public-site .thai-sub { font-size:18px; }
 .diagnostic-visual, .source-panel, .price-panel, .progress-editorial { padding:25px; }
}

/* Annual Plus offer: shares the existing theme tokens and layout. */
.plus-section { align-items: start; }
.plus-intro { padding-top: 30px; }
.plus-availability { font-size: 13px; color: var(--muted); }
.plus-card { background: linear-gradient(145deg, #8070f312, transparent 48%), var(--surface); border-color: var(--primary); }
.plus-card .price-amount > span { font-size: 18px; letter-spacing: 0; }
.plus-monthly { font-weight: 600; margin-bottom: 0; }
.plus-card .price-note { margin: 12px 0; line-height: 1.8; }
.plus-features-label { font-size: 10px; letter-spacing: 1.4px; font-weight: 700; margin-top: 25px; }
.plus-benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.plus-card .plus-benefits li { position: relative; padding-left: 22px; font-size: 12px; line-height: 1.7; }
.plus-card .plus-benefits li::before { position: absolute; left: 0; }
.plus-cta { width: 100%; justify-content: center; margin-top: 14px; }
.plus-faq-section { display: block; }
.plus-faq { max-width: 780px; margin: auto; }
.plus-faq h2 { font-size: 32px; margin-bottom: 24px; }
.plus-faq details { border-bottom: 1px solid var(--border); padding: 20px 0; }
.plus-faq summary { cursor: pointer; font-weight: 600; line-height: 1.6; }
.plus-faq p { color: var(--muted); font-size: 14px; line-height: 1.9; }
.plus-prompt { padding: 25px; border: 1px solid var(--border); border-radius: 22px; background: linear-gradient(135deg, #8070f318, #3d5aff0b), var(--surface); }
.plus-prompt h2 { font-size: 22px; margin: 10px 0; }
.plus-prompt p, .plus-prompt small { font-size: 12px; line-height: 1.7; color: var(--muted); }
.plus-prompt .button { margin-top: 18px; }
.plus-summary { margin: 25px 0; }
.plus-summary > div { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--border); padding: 15px 0; font-size: 13px; }
.plus-summary dd { margin: 0; text-align: right; font-weight: 600; }
.price-panel button:disabled { opacity: .6; cursor: not-allowed; }
@media (max-width: 600px) {
  .plus-benefits { grid-template-columns: 1fr; }
  .plus-intro { padding-top: 0; }
  .plus-card .price-amount { font-size: 42px; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .plus-section { grid-template-columns: 1fr; }
  .plus-intro { padding-top: 0; }
}
