/* Vocalen design system. One palette, one radius scale, one button family. */
:root {
 --bg: #f5f3ec; --surface: #ffffff; --ink: #10231e; --muted: #56655f; --line: #dcdfd3;
 --brand: #173b34; --brand-deep: #0e2823; --lime: #c9f26c; --lime-deep: #9cc83c; --lime-soft: #ebf9cc;
 --good: #1a7f4e; --good-soft: #dcf4e6; --bad: #b83f25; --bad-soft: #fde5dd; --sun: #f5a300; --sun-soft: #ffeebf;
 --r-s: 10px; --r-m: 16px; --r-l: 24px;
 --shadow: 0 1px 2px rgb(16 35 30 / .06), 0 8px 24px rgb(16 35 30 / .07);
 --font: "Readex Pro", "Vazirmatn", "Noto Sans Arabic", "Segoe UI", system-ui, sans-serif;
 --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.35; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.4; font-weight: 700; }
h3 { font-size: 1.1rem; line-height: 1.5; font-weight: 600; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
[lang="en"] { letter-spacing: 0; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: var(--r-s); transition: top .15s; }
.skip:focus { top: 12px; }
.boot { padding: 20vh 24px; text-align: center; color: var(--muted); }
.wrap { inline-size: min(1120px, 100% - 40px); margin-inline: auto; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center { display: flex; justify-content: center; }
.icon { inline-size: 1.25em; block-size: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon-filled { fill: currentColor; stroke: none; }
[dir="rtl"] .btn .icon:last-child, [dir="rtl"] .lesson-row > .icon:last-child, [dir="rtl"] .side-card > .icon:last-child, [dir="rtl"] .track-meta .icon { transform: scaleX(-1); }
.kicker { font-size: .85rem; font-weight: 600; color: var(--good); letter-spacing: .01em; }
.lead { font-size: 1.1rem; color: var(--muted); max-inline-size: 56ch; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-block-size: 46px; padding: 9px 20px; border: 1.5px solid transparent; border-radius: var(--r-m); font-weight: 600; text-decoration: none; background: none; transition: transform .16s var(--ease), box-shadow .16s var(--ease), background-color .16s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(2px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary { background: var(--lime); color: var(--ink); box-shadow: 0 3px 0 var(--lime-deep); }
.btn-primary:hover { box-shadow: 0 4px 0 var(--lime-deep); }
.btn-primary:active { box-shadow: 0 0 0 var(--lime-deep); }
.btn-quiet { background: var(--surface); border-color: var(--brand); color: var(--brand); }
.btn-quiet:hover { background: var(--lime-soft); }
.btn-ghost { color: var(--brand); padding-inline: 12px; }
.btn-ghost:hover { background: rgb(23 59 52 / .07); }
.btn-danger { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.btn-small { min-block-size: 44px; padding: 6px 14px; font-size: .92rem; border-radius: 12px; }
.btn-big { min-block-size: 54px; padding-inline: 26px; font-size: 1.05rem; }
.btn-wide { inline-size: 100%; }
.link { background: none; border: 0; padding: 10px 4px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; font-size: .95rem; }
.link:hover { color: var(--ink); }
.icon-btn { display: grid; place-items: center; inline-size: 44px; block-size: 44px; border: 0; border-radius: 50%; background: none; color: var(--muted); transition: background-color .15s; }
.icon-btn:hover { background: rgb(16 35 30 / .08); color: var(--ink); }
.pill { display: inline-block; padding: 3px 12px; border-radius: 99px; background: var(--lime); font-size: .82rem; font-weight: 600; white-space: nowrap; }
.pill-quiet { background: rgb(16 35 30 / .07); color: var(--muted); }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgb(245 243 236 / .9); backdrop-filter: blur(12px); border-block-end: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 20px; min-block-size: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.25rem; }
.top-nav { display: flex; gap: 4px; margin-inline-start: 12px; }
.top-nav a { display: inline-flex; align-items: center; gap: 8px; min-block-size: 44px; padding: 6px 12px; border-radius: 12px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: .96rem; transition: background-color .15s, color .15s; }
.top-nav a:hover, .top-nav a.is-current { color: var(--ink); background: rgb(16 35 30 / .06); }
.top-side { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.lang-select { min-block-size: 44px; padding: 6px 10px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); }
.chip-stat { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; font-size: .92rem; background: var(--surface); border: 1px solid var(--line); }
.chip-flame .icon { color: #e8590c; } .chip-bolt .icon { color: var(--sun); }
.tabbar { display: none; }

/* landing */
.hero { padding-block: clamp(28px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 20px; animation: rise .7s var(--ease) both; }
.hero h1 { font-size: clamp(1.9rem, 4.3vw, 3.1rem); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: .95rem; }
.facts li { color: var(--ink); font-weight: 500; }
.hero-visual { position: relative; animation: rise .8s .1s var(--ease) both; }
.hero-media { display: block; inline-size: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: var(--r-l); background: #d9d4c4; box-shadow: var(--shadow); }
.hero-float { position: absolute; inset-inline-start: -16px; inset-block-end: 26px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--surface); border-radius: var(--r-m); box-shadow: var(--shadow); animation: rise .8s .45s var(--ease) both; }
.hero-float strong { display: block; font-size: .98rem; } .hero-float small { color: var(--muted); }
.float-pic { font-size: 1.9rem; line-height: 1; }
.float-ok { display: grid; place-items: center; inline-size: 30px; block-size: 30px; border-radius: 50%; background: var(--good); color: #fff; }
.band { background: var(--surface); border-block: 1px solid var(--line); padding-block: clamp(40px, 7vw, 88px); }
.block { padding-block: clamp(40px, 7vw, 88px); }
.block > .wrap, .band > .wrap { display: grid; gap: 14px; }
.split { grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px) !important; align-items: center; }
.split > div:first-child { display: grid; gap: 14px; }
.block-dark { background: var(--brand); color: #eef4ea; }
.block-dark .kicker { color: var(--lime); }
.try-card { display: grid; gap: 18px; padding: 28px; border-radius: var(--r-l); background: var(--bg); border: 1px solid var(--line); }
.try-label { text-align: center; font-weight: 600; }
.try-status { min-block-size: 1.75em; text-align: center; font-weight: 600; }
.track-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-block-start: 18px; }
.track-card { display: grid; gap: 6px; align-content: start; padding: 22px; border-radius: var(--r-l); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.track-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.track-card strong { font-size: 1.3rem; } .track-card p { color: rgb(16 35 30 / .75); font-size: .96rem; }
.track-age { font-size: .88rem; font-weight: 600; }
.track-meta { display: flex; align-items: center; justify-content: space-between; margin-block-start: 14px; font-size: .9rem; font-weight: 600; }
.track-0 { background: var(--sun-soft); } .track-1 { background: #d3efdc; } .track-2 { background: #d5e8f6; } .track-3 { background: var(--lime-soft); }
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-block-start: 18px; }
.method { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--r-l); background: rgb(255 255 255 / .07); }
.method p { color: rgb(238 244 234 / .8); font-size: .96rem; }
.method-icon { display: grid; place-items: center; inline-size: 46px; block-size: 46px; border-radius: 14px; background: var(--lime); color: var(--ink); }
.save-card { display: grid; gap: 14px; padding: 24px; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow); }
.save-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-m); background: var(--bg); }
.save-row strong { display: block; line-height: 1.4; } .save-row small { color: var(--muted); }
.save-stats { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.avatar { display: grid; place-items: center; flex: none; inline-size: 42px; block-size: 42px; border-radius: 50%; background: var(--brand); color: var(--lime); font-weight: 700; }
.avatar-b { background: var(--sun); color: var(--ink); }
.site-foot { border-block-start: 1px solid var(--line); padding-block: 32px; color: var(--muted); font-size: .95rem; }
.foot-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; justify-content: space-between; }
.foot-small { font-size: .85rem; }

/* pages */
.page { padding-block: 28px 96px; display: grid; gap: 22px; align-content: start; }
.page-narrow { inline-size: min(560px, 100% - 40px); }
.page-head { display: grid; gap: 6px; }
.section-title { margin-block-start: 12px; }
.steps-dots { display: flex; gap: 8px; }
.page > .link, .step-body > .btn-ghost { justify-self: start; }
.steps-dots i { flex: 1; block-size: 6px; border-radius: 99px; background: var(--line); }
.steps-dots i.is-on { background: var(--brand); }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice-list { display: grid; gap: 12px; }
.choice-card { display: grid; gap: 2px; text-align: start; padding: 18px 20px; border: 2px solid var(--line); border-radius: var(--r-m); background: var(--surface); transition: border-color .15s, transform .16s var(--ease); }
.choice-card:hover { border-color: var(--brand); transform: translateY(-1px); }
.choice-card[aria-pressed="true"] { border-color: var(--brand); background: var(--lime-soft); }
.choice-card strong { font-size: 1.12rem; } .choice-card small { color: var(--muted); font-size: .92rem; }
.field { display: grid; gap: 6px; font-weight: 500; }
.field small { color: var(--muted); font-weight: 400; font-size: .88rem; }
.text-input, .text-area { inline-size: 100%; min-block-size: 50px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--r-m); background: var(--surface); font-size: 1.02rem; }
.text-input:focus, .text-area:focus, .fill-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgb(23 59 52 / .15); }
.text-area { resize: vertical; line-height: 1.6; }
.stack { display: grid; gap: 16px; }
.form-note { min-block-size: 1.5em; font-size: .95rem; color: var(--good); }
.form-error { color: var(--bad); font-weight: 500; }
.switch { color: var(--muted); } .switch a { color: var(--brand); font-weight: 600; }

/* today + path */
.today { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }
.today-main { display: grid; gap: 8px; justify-items: start; padding: 28px; border-radius: var(--r-l); background: var(--brand); color: #eef4ea; }
.today-main .kicker { color: var(--lime); } .today-main p { color: rgb(238 244 234 / .8); }
.today-label { font-size: .9rem; margin-block-start: 6px; }
.today-main .btn { margin-block-start: 10px; }
.today-stats { display: flex; align-items: center; gap: 18px; padding: 24px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); }
.today-stats > div:last-child { display: grid; gap: 2px; flex: 1; } .today-stats small { color: var(--muted); }
.ring { position: relative; inline-size: 96px; block-size: 96px; flex: none; }
.ring svg { inline-size: 100%; block-size: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring-track { stroke: var(--line); } .ring-value { stroke: var(--lime-deep); stroke-linecap: round; transition: stroke-dashoffset .8s var(--ease); }
.ring-text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.2; }
.ring-text b { font-size: 1.3rem; } .ring-text small { font-size: .75rem; color: var(--muted); }
.week { display: flex; align-items: end; gap: 6px; block-size: 64px; margin-block-start: 8px; }
.week span { flex: 1; display: grid; grid-template-rows: 1fr auto; justify-items: center; align-items: end; block-size: 100%; gap: 2px; }
.week i { inline-size: 100%; max-inline-size: 18px; border-radius: 5px; background: var(--line); }
.week i.is-some { background: #b9d98a; } .week i.is-goal { background: var(--lime-deep); } .week i.is-future { opacity: .35; }
.week small { font-size: .7rem; color: var(--muted); line-height: 1; }
.side-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.side-card { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform .16s var(--ease), border-color .15s; }
.side-card:hover { transform: translateY(-2px); border-color: var(--brand); }
.side-card div { flex: 1; display: grid; } .side-card strong { line-height: 1.5; } .side-card small { color: var(--muted); font-size: .88rem; }
.side-card > .icon:first-child { inline-size: 26px; block-size: 26px; color: var(--brand); }
.side-review { background: var(--sun-soft); border-color: transparent; } .side-save { background: var(--lime-soft); border-color: transparent; }
.unit { display: grid; gap: 14px; padding: 24px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); }
.unit-head { display: flex; gap: 16px; justify-content: space-between; align-items: start; cursor: pointer; list-style: none; }
.unit-head::-webkit-details-marker { display: none; }
.unit-head h2 { font-size: 1.25rem; }
details.unit:not([open]) { padding-block: 18px; }
details.unit:not([open]) .unit-head p:not(.kicker) { display: none; }
details.unit .unit-count::after { content: '▾'; margin-inline-start: 8px; display: inline-block; transition: transform .2s; }
details.unit[open] .unit-count::after { transform: rotate(180deg); }
details.unit.is-complete .unit-count { background: var(--lime, #c9f26c); }
.unit-head:focus-visible { outline: 3px solid var(--accent, #c9f26c); outline-offset: 4px; border-radius: 8px; }
.unit-head p:not(.kicker) { color: var(--muted); font-size: .96rem; }
.unit-count { padding: 4px 12px; border-radius: 99px; background: var(--bg); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.lesson-list { display: grid; gap: 8px; }
.lesson-row { display: flex; align-items: center; gap: 14px; min-block-size: 64px; padding: 10px 14px; border-radius: var(--r-m); background: var(--bg); text-decoration: none; border: 1.5px solid transparent; transition: transform .16s var(--ease), border-color .15s, background-color .15s; }
a.lesson-row:hover { transform: translateY(-2px); border-color: var(--brand); }
.lesson-row.is-next { background: var(--lime-soft); border-color: var(--lime-deep); }
.lesson-row.is-locked { opacity: .6; }
.lesson-extra { background: none; border: 1.5px dashed var(--line); }
.node { display: grid; place-items: center; flex: none; inline-size: 40px; block-size: 40px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); font-weight: 700; }
.is-done .node { background: var(--good); border-color: var(--good); color: #fff; }
.is-next .node { background: var(--brand); border-color: var(--brand); color: var(--lime); }
.lesson-text { flex: 1; display: grid; min-inline-size: 0; } .lesson-text strong { line-height: 1.5; } .lesson-text small { color: var(--muted); font-size: .85rem; }
.stars { display: inline-flex; gap: 2px; } .stars .icon { inline-size: 18px; block-size: 18px; }
.star-on { color: var(--sun); } .star-off { color: var(--line); }

/* map + my space */
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { min-block-size: 44px; padding: 6px 16px; border: 1.5px solid var(--line); border-radius: 99px; background: var(--surface); font-weight: 500; transition: border-color .15s, background-color .15s; }
.seg button:hover { border-color: var(--brand); }
.seg button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.map-count { font-weight: 600; font-size: 1.1rem; }
.stages { display: grid; gap: 10px; }
.stage { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
.stage div { flex: 1; } .stage h2 { font-size: 1.12rem; } .stage p { color: var(--muted); font-size: .96rem; }
.stage-no { display: grid; place-items: center; flex: none; inline-size: 40px; block-size: 40px; border-radius: 50%; background: var(--bg); font-weight: 700; }
.stage.is-open { border-color: var(--lime-deep); } .stage.is-open .stage-no { background: var(--brand); color: var(--lime); }
.unit-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.unit-card { display: grid; gap: 6px; align-content: start; padding: 20px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
.unit-card p:not(.kicker) { color: var(--muted); font-size: .95rem; } .unit-card small { font-weight: 600; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { display: grid; gap: 2px; justify-items: start; padding: 18px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
.stat .icon { inline-size: 24px; block-size: 24px; color: var(--sun); } .stat b { font-size: 1.6rem; line-height: 1.3; } .stat small { color: var(--muted); font-size: .88rem; }
.stat-week .week { inline-size: 100%; margin: 0; }
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.panel { display: grid; gap: 14px; padding: 24px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); }
.panel > p { color: var(--muted); font-size: .95rem; margin-block-start: -8px; }
.panel-accent { background: var(--lime-soft); border-color: transparent; }
.skills { display: grid; gap: 10px; }
.skill { display: grid; grid-template-columns: 6.5em 1fr 3.2em; align-items: center; gap: 10px; font-size: .95rem; }
.skill-bar { block-size: 10px; border-radius: 99px; background: var(--bg); overflow: hidden; } .skill-bar i { display: block; block-size: 100%; border-radius: 99px; background: var(--good); }
.skill b { text-align: end; }
.profile-list { display: grid; gap: 8px; } .profile-list li { display: flex; gap: 6px; align-items: center; }
.profile { flex: 1; display: flex; align-items: center; gap: 12px; text-align: start; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r-m); background: var(--bg); transition: border-color .15s; }
.profile:hover { border-color: var(--brand); } .profile.is-current { border-color: var(--brand); background: var(--lime-soft); }
.profile strong { display: block; line-height: 1.4; } .profile small { color: var(--muted); font-size: .85rem; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; } .inline-form .text-input { flex: 1; min-inline-size: 150px; }
.account { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; } .account dt { color: var(--muted); } .account dd { font-weight: 600; overflow-wrap: anywhere; }
.sync-note { display: flex; align-items: center; gap: 8px; color: var(--good) !important; margin: 0 !important; }
.more summary { cursor: pointer; padding-block: 8px; font-weight: 500; } .more form { padding-block: 10px; }
.empty { display: grid; gap: 12px; justify-items: center; text-align: center; padding-block: 64px; }
.empty-icon { display: grid; place-items: center; inline-size: 72px; block-size: 72px; border-radius: 50%; background: var(--good-soft); color: var(--good); } .empty-icon .icon { inline-size: 36px; block-size: 36px; }
.empty p { color: var(--muted); }

/* lesson player */
.player { min-block-size: 100dvh; display: grid; grid-template-rows: auto 1fr auto; background: var(--bg); }
.player-top { display: flex; align-items: center; gap: 12px; inline-size: min(720px, 100% - 24px); margin-inline: auto; padding-block: 12px; }
.bar { flex: 1; block-size: 14px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar-fill { block-size: 100%; inline-size: 0; border-radius: 99px; background: var(--lime-deep); transition: inline-size .5s var(--ease); }
.player-title { font-size: .85rem; color: var(--muted); max-inline-size: 34%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step-body { inline-size: min(680px, 100% - 32px); margin-inline: auto; padding-block: 12px 28px; display: grid; gap: 20px; align-content: start; animation: rise .35s var(--ease) both; }
.step-title { font-size: clamp(1.25rem, 3.4vw, 1.6rem); }
.prompt { font-size: 1.1rem; color: var(--muted); }
.phrase-card { display: grid; gap: 16px; padding: 22px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); }
.phrase { font-size: clamp(1.25rem, 3.6vw, 1.6rem); font-weight: 600; line-height: 1.5; text-align: left; }
.hint-text { padding: 14px 18px; border-radius: var(--r-m); background: var(--sun-soft); }
.sound { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-inline-size: 48px; min-block-size: 48px; padding: 8px 14px; border: 0; border-radius: var(--r-m); background: var(--brand); color: #fff; font-weight: 600; transition: transform .16s var(--ease), background-color .15s; }
.sound:hover { transform: translateY(-1px); background: var(--brand-deep); } .sound:active { transform: translateY(1px); }
.sound-big { min-block-size: 54px; padding-inline: 22px; }
.sound-slow { background: var(--surface); color: var(--brand); border: 1.5px solid var(--line); }
.sound-slow:hover { background: var(--surface); border-color: var(--brand); }
.sound.is-playing .icon, .learn-card.is-playing .icon, .bubble.is-playing { animation: pulse .7s ease-in-out infinite alternate; }
.learn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.learn-card { display: flex; align-items: center; gap: 14px; text-align: start; padding: 16px 18px; border: 2px solid var(--line); border-radius: var(--r-m); background: var(--surface); transition: transform .16s var(--ease), border-color .15s; }
.learn-card:hover { transform: translateY(-2px); border-color: var(--brand); }
.learn-card > .icon { color: var(--brand); } .learn-pic { font-size: 2rem; line-height: 1; }
.learn-text { flex: 1; display: grid; } .learn-text strong { font-size: 1.15rem; text-align: left; } .learn-text small { color: var(--muted); }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 14px; }
.pick { display: grid; place-items: center; min-block-size: 130px; padding: 12px; border: 3px solid var(--line); border-radius: var(--r-l); background: var(--surface); font-size: clamp(2.2rem, 9vw, 3.4rem); line-height: 1.2; transition: transform .18s var(--ease), border-color .15s; }
.pick:hover:not(:disabled) { transform: translateY(-3px) scale(1.02); border-color: var(--brand); }
.pick-many { font-size: clamp(1.5rem, 6vw, 2.3rem); }
.options { display: grid; gap: 10px; }
.option { text-align: left; min-block-size: 56px; padding: 12px 18px; border: 2px solid var(--line); border-radius: var(--r-m); background: var(--surface); font-size: 1.08rem; font-weight: 500; transition: transform .16s var(--ease), border-color .15s, background-color .15s; }
.option:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--brand); }
.option[aria-pressed="true"] { border-color: var(--brand); background: var(--lime-soft); }
.is-right { border-color: var(--good) !important; background: var(--good-soft) !important; animation: pop .35s var(--ease); }
.is-wrong { border-color: var(--bad) !important; background: var(--bad-soft) !important; animation: shake .35s; }
.match { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; direction: ltr; }
.match-col { display: grid; gap: 10px; align-content: start; }
.match-card { min-block-size: 60px; padding: 10px 14px; border: 2px solid var(--line); border-radius: var(--r-m); background: var(--surface); font-size: 1.05rem; font-weight: 500; transition: transform .16s var(--ease), border-color .15s; }
.match-card:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--brand); }
.match-card.is-selected { border-color: var(--brand); background: var(--lime-soft); }
.match-card:disabled { opacity: .75; } .match-pic { font-size: 1.7rem; }
.build-line { display: flex; flex-wrap: wrap; gap: 8px; min-block-size: 68px; padding: 10px; border-block-end: 2px solid var(--line); border-radius: var(--r-s); align-content: start; }
.build-bank { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { min-block-size: 46px; padding: 6px 16px; border: 2px solid var(--line); border-block-end-width: 4px; border-radius: 12px; background: var(--surface); font-size: 1.05rem; font-weight: 500; transition: transform .12s var(--ease), border-color .15s; }
.chip:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--brand); } .chip:active { transform: translateY(1px); }
.fill-phrase { line-height: 2.4; }
.fill-input { min-block-size: 46px; margin-inline: 6px; padding: 4px 10px; border: 0; border-block-end: 3px solid var(--brand); border-radius: 8px 8px 0 0; background: var(--surface); font-weight: 600; text-align: center; }
.dialogue { display: grid; gap: 10px; direction: ltr; }
.bubble { display: grid; gap: 2px; text-align: left; justify-self: start; max-inline-size: 86%; padding: 12px 16px; border: 0; border-radius: 18px 18px 18px 4px; background: var(--surface); box-shadow: 0 1px 2px rgb(16 35 30 / .1); font-size: 1.05rem; transition: transform .16s var(--ease); }
.bubble:hover { transform: translateY(-1px); } .bubble small { color: var(--good); font-weight: 600; }
.bubble-b { justify-self: end; border-radius: 18px 18px 4px 18px; background: var(--lime-soft); }
.mic { display: grid; place-items: center; inline-size: 92px; block-size: 92px; border: 0; border-radius: 50%; background: var(--lime); color: var(--ink); box-shadow: 0 4px 0 var(--lime-deep); transition: transform .16s var(--ease), box-shadow .16s; }
.mic:hover { transform: translateY(-2px); } .mic:active { transform: translateY(3px); box-shadow: 0 0 0 var(--lime-deep); }
.mic .icon { inline-size: 38px; block-size: 38px; }
.mic.is-live { background: var(--bad); color: #fff; box-shadow: 0 0 0 0 rgb(184 63 37 / .5); animation: live 1.2s infinite; }
.speak-status { min-block-size: 1.75em; text-align: center; font-weight: 500; }
.speak-result { text-align: center; font-size: 1.2rem; font-weight: 600; }
.word-ok { color: var(--good); } .word-miss { color: var(--bad); text-decoration: underline wavy; text-underline-offset: 5px; }
audio { inline-size: 100%; }
.player-foot { position: sticky; inset-block-end: 0; background: var(--surface); border-block-start: 1px solid var(--line); padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); }
.player-foot > * { inline-size: min(680px, 100%); margin-inline: auto; }
.player-foot .btn { display: flex; }
.feedback { display: grid; gap: 4px; margin-block-end: 12px; padding: 14px 18px; border-radius: var(--r-m); animation: rise .25s var(--ease) both; }
.feedback strong { font-size: 1.12rem; }
.feedback-good { background: var(--good-soft); color: #0f5132; } .feedback-bad { background: var(--bad-soft); color: #7c2512; } .feedback-info { background: var(--sun-soft); }
.feedback-answer bdi { font-weight: 600; }

/* result */
.result { justify-items: center; text-align: center; padding-block-start: 48px; }
.result-burst { display: grid; place-items: center; min-inline-size: 120px; min-block-size: 120px; padding: 20px; border-radius: 50%; background: var(--lime-soft); color: var(--good); animation: pop .6s var(--ease) both; }
.result-burst .stars .icon { inline-size: 34px; block-size: 34px; } .result-burst > .icon { inline-size: 54px; block-size: 54px; }
.result-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; inline-size: 100%; }
.result-stat { display: grid; justify-items: center; padding: 14px 8px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
.result-stat .icon { color: var(--sun); } .result-stat b { font-size: 1.35rem; } .result-stat small { color: var(--muted); font-size: .82rem; line-height: 1.4; }
.result-goal { display: flex; align-items: center; gap: 18px; inline-size: 100%; padding: 18px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); text-align: start; }
.result-goal > div:last-child { flex: 1; } .result .side-card { inline-size: 100%; text-align: start; }
.result-actions { display: grid; gap: 10px; inline-size: 100%; }

/* little learners: bigger targets, rounder shapes */
.player-kids .step-title { text-align: center; font-size: clamp(1.4rem, 4.4vw, 1.9rem); }
.player-kids .pick { min-block-size: 150px; border-radius: 32px; }
.player-kids .learn-card { flex-direction: column; text-align: center; padding: 22px; } .player-kids .learn-pic { font-size: 3.2rem; }
.player-kids .learn-text strong { text-align: center; font-size: 1.5rem; }
.player-kids .match-card { min-block-size: 76px; font-size: 1.25rem; } .player-kids .match-pic { font-size: 2.1rem; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes pop { 0% { transform: scale(.9); } 60% { transform: scale(1.05); } }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes pulse { to { opacity: .45; } }
@keyframes live { to { box-shadow: 0 0 0 18px rgb(184 63 37 / 0); } }

@media (max-width: 900px) {
 .hero-grid, .split, .today, .panels { grid-template-columns: 1fr; }
 .track-grid, .method-grid { grid-template-columns: 1fr 1fr; }
 .stat-grid { grid-template-columns: 1fr 1fr; }
 .hero-float { inset-inline-start: 12px; }
}
@media (max-width: 720px) {
 body { font-size: 16px; }
 .top-nav { display: none; }
 .top-row { gap: 10px; min-block-size: 60px; }
 .logo-word { font-size: 1.4rem; }
 .top-landing .btn-quiet { display: none; }
 .tabbar { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--surface); border-block-start: 1px solid var(--line); padding-block-end: env(safe-area-inset-bottom); }
 .tab { display: grid; justify-items: center; gap: 2px; padding: 8px 2px; min-block-size: 58px; text-decoration: none; color: var(--muted); font-size: .72rem; line-height: 1.25; text-align: center; font-weight: 500; }
 .tab .icon { inline-size: 24px; block-size: 24px; } .tab.is-current { color: var(--brand); font-weight: 700; }
 .hero .btn, .page-narrow .btn-big { inline-size: 100%; }
 .unit, .panel, .today-main { padding: 18px; }
 .choice-grid { grid-template-columns: 1fr; }
 .unit-head { flex-direction: column; gap: 8px; }
 .today-stats { padding: 18px; }
}
@media (max-width: 520px) {
 .track-grid, .method-grid { grid-template-columns: 1fr; }
 .wrap { inline-size: calc(100% - 32px); }
 .lesson-row .pill { display: none; }
 .pick-grid { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 10px; }
 .player-title { display: none; }
 .chip-bolt { display: none; }
}
@media (prefers-reduced-motion: reduce) {
 *, *::before, *::after { animation: none !important; transition: none !important; }
 html { scroll-behavior: auto; }
}

/* ───────── pronunciation checker ───────── */
.coach-head { display: grid; gap: 8px; margin-block-end: 18px; }
.coach-panel, .coach-drills { display: grid; gap: 16px; margin-block-end: 18px; }
.coach-label { font-weight: 600; font-size: .95rem; color: var(--muted); }
.coach-input { font-size: 1.15rem; text-align: start; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 6px; }
.sound-chip { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 99px; background: var(--lime); color: var(--ink); font-weight: 700; font-size: .9rem; direction: ltr; }
.coach-result { display: grid; gap: 12px; padding: 18px; border-radius: var(--r-m); background: var(--bg); animation: rise .35s var(--ease); }
.coach-score { display: grid; justify-items: center; }
.coach-score b { font-size: 3rem; line-height: 1; color: var(--brand, #173b34); }
.coach-verdict { text-align: center; font-weight: 600; }
.coach-words { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.coach-word { border: 0; border-radius: 10px; padding: 6px 12px; font: inherit; font-size: 1.25rem; font-weight: 600; cursor: pointer; transition: transform .15s; }
.coach-word:hover { transform: translateY(-2px); }
.word-ok.coach-word { background: rgb(42 140 84 / .14); color: var(--good); }
.word-close.coach-word { background: rgb(214 140 20 / .16); color: #9a5b00; }
.word-miss.coach-word { background: rgb(184 63 37 / .14); color: var(--bad); text-decoration: underline wavy; text-underline-offset: 5px; }
.coach-legend, .coach-heard, .coach-honest { text-align: center; color: var(--muted); font-size: .92rem; }
.tip-list { display: grid; gap: 10px; }
.tip-card { display: grid; gap: 6px; justify-items: start; padding: 14px 16px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
.coach-example { display: inline-flex; gap: 6px; align-items: center; }
.drill-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.drill-tab { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; min-block-size: 44px; }
.drill-tab[aria-selected="true"] { background: var(--ink, #10231e); color: #fff; border-color: transparent; }
.drill-body { display: grid; gap: 12px; }
.pair-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.pair { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; border-radius: var(--r-m); background: var(--bg); }
.pair-vs { color: var(--muted); }
.ear-test { display: grid; gap: 10px; padding: 16px; border-radius: var(--r-m); border: 2px dashed var(--line); }
.ear-head { display: flex; justify-content: space-between; align-items: center; }
.ear-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ear-feedback { font-weight: 600; min-block-size: 1.4em; }
.coach-sentence { text-align: start; }
.word-close { color: #9a5b00; } .speak-score { color: var(--muted); font-size: .95rem; }
.speak-tip { text-align: center; color: var(--ink); font-size: .95rem; max-inline-size: 52ch; margin-inline: auto; }
.speak-tip:empty { display: none; }

/* ───────── interactive exercises ───────── */
.memory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-inline-size: 520px; margin-inline: auto; inline-size: 100%; }
.memory-8 { grid-template-columns: repeat(4, 1fr); }
.memory-card { display: grid; place-items: center; aspect-ratio: 1 / 1.1; border: 0; border-radius: var(--r-m); background: var(--brand); color: #fff; font: inherit; cursor: pointer; transition: transform .3s var(--ease), background-color .2s; }
.memory-card:hover:not(:disabled) { transform: translateY(-3px); }
.memory-back { font-size: 2rem; font-weight: 700; color: var(--lime); }
.memory-face { display: none; padding: 6px; font-weight: 600; font-size: 1rem; overflow-wrap: anywhere; }
.memory-pic { font-size: clamp(2rem, 8vw, 2.8rem); }
.memory-card.is-open { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 3px var(--line); animation: flip .3s var(--ease); }
.memory-card.is-open .memory-back { display: none; }
.memory-card.is-open .memory-face { display: block; }
.memory-card.is-right { box-shadow: inset 0 0 0 3px var(--good); background: var(--good-soft); }
.gap-slot { display: inline-block; min-inline-size: 5ch; margin-inline: 6px; padding: 2px 10px; border-block-end: 3px solid var(--brand); color: var(--muted); text-align: center; }
.gap-slot.is-filled { color: var(--ink); font-weight: 700; }
.gap-slot.is-right { border-color: var(--good); color: var(--good); } .gap-slot.is-wrong { border-color: var(--bad); color: var(--bad); }
.chip[aria-pressed="true"] { background: var(--lime); border-color: var(--lime-deep); }
.yesno-pic { text-align: center; font-size: clamp(4rem, 18vw, 6rem); line-height: 1.1; }
.yesno-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-inline-size: 420px; margin-inline: auto; inline-size: 100%; }
.yesno-btn { display: grid; justify-items: center; gap: 4px; padding: 16px; border: 3px solid var(--line); border-radius: var(--r-l); background: var(--surface); font: inherit; font-weight: 700; font-size: 1.1rem; cursor: pointer; transition: transform .16s var(--ease), border-color .15s; }
.yesno-btn .icon { inline-size: 36px; block-size: 36px; }
.yesno-yes .icon { color: var(--good); } .yesno-no .icon { color: var(--bad); }
.yesno-btn:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--brand); }
.yesno-btn.is-right { border-color: var(--good); background: var(--good-soft); } .yesno-btn.is-wrong { border-color: var(--bad); background: var(--bad-soft); }
@keyframes flip { from { transform: rotateY(90deg); } to { transform: rotateY(0); } }
@media (prefers-reduced-motion: reduce) { .memory-card.is-open { animation: none; } }
.method-cta { margin-block-start: 26px; justify-content: center; }
.placement-offer { inline-size: 100%; margin-block-start: 14px; border: 1.5px dashed var(--brand); background: var(--lime-soft); text-align: start; font: inherit; cursor: pointer; }

/* ───────── stories ───────── */
.story-group { display: grid; gap: 12px; margin-block-end: 24px; }
.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.story-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: transform .16s var(--ease), border-color .15s; }
.story-card:hover { transform: translateY(-2px); border-color: var(--brand); }
.story-card.is-done { background: var(--lime-soft); }
.story-cover { font-size: 2.2rem; }
.story-card-text { display: grid; gap: 2px; flex: 1; } .story-card-text small { color: var(--muted); }
.side-emoji { font-size: 1.6rem; }
.story { display: grid; gap: 8px; }
.story-line { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); font: inherit; text-align: start; cursor: pointer; transition: border-color .15s, background-color .15s; }
.story-line:hover { border-color: var(--brand); }
.story-line.is-playing { border-color: var(--brand); background: var(--lime-soft); }
.story-pic { font-size: 1.8rem; }
.story-text { display: grid; gap: 4px; font-size: 1.08rem; } .story-text > span { direction: ltr; text-align: left; }
.story-tr { color: var(--muted); font-size: .95rem; }
.story-kids .story-line { padding: 14px 16px; } .story-kids .story-pic { font-size: 2.6rem; } .story-kids .story-text { font-size: 1.2rem; }
.stat-emoji { font-size: 1.5rem; }

/* ───────── certificates ───────── */
.cert-list { display: grid; gap: 12px; margin-block-end: 16px; }
.cert-card { color: inherit; } .cert-card.is-ready { border-color: var(--lime-deep); background: var(--lime-soft); }
.cert-icon { font-size: 1.8rem; }
.cert-text { display: grid; gap: 4px; flex: 1; } .cert-text small { color: var(--muted); }
.cert-bar { display: block; block-size: 8px; border-radius: 99px; background: var(--line); overflow: hidden; } .cert-bar i { display: block; block-size: 100%; background: var(--brand); border-radius: inherit; }
.cert-note { color: var(--muted); font-size: .9rem; }
.stat-link { text-decoration: none; color: inherit; }
.certificate { display: grid; justify-items: center; gap: 10px; margin-block: 20px; padding: 48px 32px; text-align: center; background: var(--surface); border: 10px double var(--brand); border-radius: var(--r-l); }
.cert-brand { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; }
.cert-kicker { font-size: 1.5rem; font-weight: 700; color: var(--brand); letter-spacing: .02em; }
.cert-line { font-size: 1.1rem; }
.cert-name { font-size: clamp(2rem, 6vw, 3rem); border-block-end: 2px solid var(--lime-deep); padding-inline: 24px; }
.cert-date { color: var(--muted); }
.cert-foot { margin-block-start: 12px; font-size: .9rem; color: var(--muted); }
@media print {
 .no-print, header.top, nav.tabbar, .site-foot { display: none !important; }
 body { background: #fff; }
 .certificate { margin: 0; border-color: #173b34; }
}
.word-drill { display: grid; gap: 8px; }
.word-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
.word-row strong { min-inline-size: 8ch; font-size: 1.15rem; }
.mic-small { inline-size: 48px; block-size: 48px; box-shadow: 0 3px 0 var(--lime-deep); } .mic-small .icon { inline-size: 22px; block-size: 22px; }
.word-verdict { font-weight: 600; font-size: .95rem; } .word-verdict.is-right { color: var(--good); } .word-verdict.is-wrong { color: var(--bad); } .word-verdict.is-close { color: #9a5b00; }
.coach-recent { display: grid; gap: 12px; margin-block-end: 18px; }
.family-board { display: grid; gap: 8px; list-style: none; padding: 0; }
.family-board li { display: grid; grid-template-columns: 2.2em minmax(6ch, 9em) 1fr auto; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--r-m); background: var(--bg); }
.family-board li.is-me { background: var(--lime-soft); }
.family-rank { text-align: center; font-weight: 700; }
.family-bar { block-size: 10px; border-radius: 99px; background: var(--line); overflow: hidden; } .family-bar i { display: block; block-size: 100%; background: var(--brand); border-radius: inherit; }

/* ───────── order the story ───────── */
.order-line { display: grid; gap: 8px; min-block-size: 64px; padding: 10px; margin: 0; border: 2px dashed var(--line); border-radius: var(--r-m); list-style: none; counter-reset: step; }
.order-line li { display: flex; align-items: center; gap: 10px; counter-increment: step; }
.order-line li::before { content: counter(step); display: grid; place-items: center; inline-size: 28px; block-size: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; flex: none; }
.order-line.is-right { border-color: var(--good); background: var(--good-soft); } .order-line.is-wrong { border-color: var(--bad); background: var(--bad-soft); }
.order-bank { display: grid; gap: 8px; }
.order-card { padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--r-m); background: var(--surface); font: inherit; text-align: start; cursor: pointer; transition: transform .15s var(--ease), border-color .15s; flex: 1; }
.order-card:hover:not(:disabled) { border-color: var(--brand); transform: translateY(-1px); }
.order-pic { font-size: 2.4rem; text-align: center; padding: 8px; }
.order-bank:has(.order-pic) { grid-template-columns: repeat(4, 1fr); }
/* Mid-width screens: the top menu shows icons only, the current page keeps its label. */
@media (max-width: 1180px) { .top-nav a:not(.is-current) .tab-label { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } .top-nav a { padding-inline: 10px; } }
.yesno-text { text-align: center; font-size: 1.3rem; font-weight: 600; padding: 18px; border-radius: var(--r-m); background: var(--bg); }

/* ───────── weekly report ───────── */
.report { display: grid; gap: 14px; margin-block: 20px; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); }
.report h1 { font-size: 1.8rem; } .report h2 { font-size: 1.15rem; margin-block-start: 6px; }
.report-who { color: var(--muted); }
.report-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.report-stat { display: grid; gap: 2px; padding: 12px; border-radius: var(--r-m); background: var(--bg); text-align: center; } .report-stat b { font-size: 1.5rem; } .report-stat small { color: var(--muted); }
.report-skills { display: grid; gap: 8px; }
.report-advice { display: grid; gap: 6px; padding-inline-start: 20px; }
.report-next { padding: 12px; border-radius: var(--r-m); background: var(--lime-soft); }
@media (max-width: 520px) { .report-stats { grid-template-columns: repeat(2, 1fr); } .report { padding: 20px; } }
@media print { .report { border: 0; padding: 0; } }

/* ───────── word of the day ───────── */
.word-day { display: grid; gap: 10px; padding: 18px 22px; margin-block: 14px; border-radius: var(--r-l); background: linear-gradient(135deg, var(--lime-soft), var(--surface)); border: 1px solid var(--line); }
.word-day-head { display: flex; justify-content: space-between; align-items: baseline; } .word-day-head small { color: var(--muted); }
.word-day-body { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.word-day-pic { font-size: 3rem; }
.word-day-en { font-size: 1.8rem; display: block; direction: ltr; }
.word-day-body > div:nth-child(2) { flex: 1; min-inline-size: 140px; }
.word-day-example { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; padding: 10px 12px; border: 0; border-radius: var(--r-m); background: var(--surface); font: inherit; text-align: start; cursor: pointer; }
.word-day-example span { direction: ltr; text-align: left; } .word-day-example small { grid-column: 2; color: var(--muted); }
.stories-tabs { margin-block: 4px 18px; }
.map-level { margin-block-end: 12px; } .map-level .unit-cards { margin-block-start: 4px; } details.unit.map-level:not([open]) .unit-head p:not(.kicker) { display: block; color: var(--muted); } details.unit.map-level .unit-head p { color: var(--muted); }

/* subscriptions */
.plan-badge { display: inline-flex; align-items: center; gap: 4px; min-block-size: 36px; padding: 4px 12px; border-radius: 99px; background: var(--sun-soft); color: var(--ink); font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.logout-btn { display: inline-flex; align-items: center; gap: 6px; min-block-size: 40px; padding: 4px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; white-space: nowrap; }
.logout-btn:hover { border-color: currentColor; }
.logout-btn svg { inline-size: 18px; block-size: 18px; }
.plan-badge-free { background: var(--surface); border: 1px solid var(--line); }
.plan-badge:hover { filter: brightness(.97); }
.plan-now { display: grid; gap: 2px; padding: 16px 20px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
.plan-now.is-paid { background: var(--sun-soft); border-color: transparent; }
.plan-now small { color: var(--muted); }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan-card { display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); }
.plan-card.plan-plus { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan-card.plan-family { background: var(--lime-soft); border-color: transparent; }
.plan-who { color: var(--muted); }
.plan-price b { font-size: 1.8rem; } .plan-price small { color: var(--muted); }
.plan-year { font-size: .95rem; } .plan-save { color: var(--good); font-weight: 600; }
.plan-features { display: grid; gap: 6px; margin-block-start: 6px; }
.plan-features li { display: flex; gap: 8px; align-items: flex-start; } .plan-features .icon { color: var(--good); margin-block-start: 4px; }
.code-input { font-family: ui-monospace, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.form-ok { color: var(--good); font-weight: 600; } .form-error { color: var(--bad); }
.pay-where { padding: 12px 14px; border-radius: var(--r-s); background: var(--sun-soft); line-height: 1.9; }
.pay-number { font-weight: 700; font-size: 1.1rem; letter-spacing: .04em; }
.pay-history { display: grid; gap: 8px; margin-block-start: 12px; }
.pay-history li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 14px; border-radius: var(--r-s); background: var(--bg); }
.pay-history li small { grid-column: 1; color: var(--muted); } .pay-history li b { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: .9rem; }
.pay-history li.is-approved b { color: var(--good); } .pay-history li.is-rejected b { color: var(--bad); }
.pay-help { color: var(--muted); font-size: .95rem; }
.paywall { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 48px 20px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); }
.paywall-icon { font-size: 3.4rem; line-height: 1; }
.paywall-actions { justify-content: center; } .paywall-note { color: var(--muted); }
.admin-list { display: grid; gap: 10px; }
.admin-row { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr auto auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-s); background: var(--bg); }
.admin-row strong, .admin-row small { display: block; } .admin-row small { color: var(--muted); }
.code-out { display: grid; gap: 10px; }
.code-list { max-block-size: 240px; overflow: auto; padding: 12px; border-radius: var(--r-s); background: var(--bg); font-size: .9rem; user-select: all; }
@media (max-width: 860px) { .plan-grid { grid-template-columns: 1fr; } .admin-row { grid-template-columns: 1fr 1fr; } }
.plans-flash { padding: 14px 18px; border-radius: var(--r-m); background: var(--good-soft); color: var(--good); font-weight: 700; }
/* spam trap: present in the form for bots, invisible and unreachable for people */
.trap-field { position: absolute !important; inset-inline-start: -10000px; inline-size: 1px; block-size: 1px; opacity: 0; pointer-events: none; }
/* plan cards: the subscribe buttons sit at the bottom of each card; the chosen card is outlined */
.plan-card { grid-template-rows: auto auto auto auto 1fr auto; }
.plan-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-self: end; }
.plan-pick .btn { min-block-size: 46px; padding-inline: 10px; }
.plan-card.is-picked { outline: 3px solid var(--brand); outline-offset: 3px; }
.pay-holder { display: inline-block; margin-inline-start: 6px; }
.pay-panel { scroll-margin-block-start: 90px; }

/* ───── live lessons with teachers ───── */
.teacher-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.teacher-card { display: grid; gap: 12px; align-content: start; padding: 22px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); }
.teacher-head { display: flex; gap: 14px; align-items: center; }
.teacher-head h2 { font-size: 1.25rem; line-height: 1.3; }
.teacher-avatar { display: grid; place-items: center; flex: none; inline-size: 56px; block-size: 56px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 1.5rem; font-weight: 700; }
.teacher-price { color: var(--muted); font-size: .95rem; } .teacher-price b { color: var(--ink); }
.teacher-about { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.teacher-top .teacher-about { -webkit-line-clamp: unset; }
.teacher-open { color: var(--muted); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 2px 10px; border-radius: 99px; background: var(--lime-soft); font-size: .85rem; font-weight: 500; }
.tag-soft { background: var(--bg); border: 1px solid var(--line); }
.teacher-top { display: grid; gap: 8px; }
.lesson-length { color: var(--muted); }
.back-link { justify-self: start; color: var(--muted); text-decoration: none; font-weight: 500; }
.slot-days { display: grid; gap: 18px; }
.slot-day h3 { font-size: 1.02rem; }
.chip.slot { min-block-size: 42px; font-size: .98rem; }
.booking-panel { scroll-margin-block-start: 90px; }
.booking-when { font-size: 1.1rem; }
.empty-note { color: var(--muted); }
.balance-box { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 18px 22px; border-radius: var(--r-l); background: var(--sun-soft, #fff3cc); }
.balance-box b { font-size: 1.5rem; } .balance-box small { flex-basis: 100%; color: var(--muted); }
.lesson-list { display: grid; gap: 10px; }
.lesson-item { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 12px 16px; border-radius: var(--r-s); background: var(--bg); }
.lesson-item strong, .lesson-item small { display: block; } .lesson-item small { color: var(--muted); }
.lesson-item.is-cancelled, .lesson-item.is-rejected { opacity: .65; }
.status-badge { padding: 3px 10px; border-radius: 99px; font-size: .85rem; font-weight: 600; background: var(--surface); border: 1px solid var(--line); white-space: nowrap; }
.is-confirmed .status-badge { background: var(--lime-soft); border-color: transparent; }
.is-pending .status-badge { background: var(--sun-soft, #fff3cc); border-color: transparent; }
.lesson-hint { color: var(--muted); font-size: .82rem; max-inline-size: 16ch; }
.hours-grid { display: grid; gap: 14px; }
.hours-day h3 { font-size: 1rem; }
.chip.hour-chip { min-block-size: 38px; min-inline-size: 70px; padding: 4px 10px; font-size: .9rem; }
.teach-status.is-approved { background: var(--lime-soft); border-color: transparent; }
.teach-status.is-pending, .teach-status.is-paused { background: var(--sun-soft, #fff3cc); border-color: transparent; }
.teacher-row { grid-template-columns: 1.1fr .8fr 1.6fr auto auto; }
.admin-counts { color: var(--muted); }
textarea.text-input { resize: vertical; min-block-size: 70px; line-height: 1.6; padding-block: 10px; }
@media (max-width: 720px) {
 .lesson-item { grid-template-columns: 1fr auto; }
 .lesson-item > :last-child:not(:nth-child(2)) { grid-column: 1 / -1; justify-self: start; }
 .teacher-row { grid-template-columns: 1fr; }
}

/* ───── the lesson room ───── */
body[data-view="room"] { background: #0f1714; }
.room { min-block-size: 100dvh; display: grid; grid-template-rows: auto 1fr auto; color: #fff; background: #0f1714; }
.room-top { display: flex; align-items: center; gap: 14px; padding: 10px 18px; background: rgb(255 255 255 / .04); border-block-end: 1px solid rgb(255 255 255 / .08); }
.room-top .brand { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.room-title { font-weight: 600; margin-inline-start: auto; }
.room-state { font-size: .88rem; padding: 3px 10px; border-radius: 99px; background: rgb(255 255 255 / .1); }
.room-state[data-state="connected"] { background: #1f9d55; }
.room-state[data-state="failed"] { background: #b83f25; }
.room-timer { font-variant-numeric: tabular-nums; font-size: .92rem; opacity: .85; }
.room-timer.is-late { color: #ffc83d; opacity: 1; font-weight: 700; }
.room-loading { padding: 40px; }
.room-notice { display: grid; gap: 14px; place-content: center; justify-items: center; text-align: center; padding: 40px 20px; }
.room-notice h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.room-sub, .room-privacy { color: rgb(255 255 255 / .7); }
.room-privacy { font-size: .9rem; }
.room-lobby { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: center; padding: 32px clamp(16px, 4vw, 56px); }
.room-lobby-text { display: grid; gap: 12px; justify-items: start; }
.room-lobby .kicker { color: #c9f26c; }
.room-preview-box { aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; background: #1c2723; }
.room-preview { inline-size: 100%; block-size: 100%; object-fit: cover; transform: scaleX(-1); }
.room-stage { position: relative; display: flex; min-block-size: 0; }
.room-videos { position: relative; flex: 1; min-block-size: 0; background: #000; }
.room-remote { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: contain; background: #000; }
.room-self { position: absolute; inset-block-end: 16px; inset-inline-end: 16px; inline-size: clamp(110px, 18vw, 240px); aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; border: 2px solid rgb(255 255 255 / .5); background: #1c2723; transform: scaleX(-1); box-shadow: 0 10px 30px rgb(0 0 0 / .4); }
.room-self.is-off { opacity: .25; }
.room-muted { position: absolute; inset-block-start: 14px; inset-inline-start: 14px; padding: 4px 12px; border-radius: 99px; background: rgb(0 0 0 / .6); font-size: .88rem; }
.room-waiting { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 20px; }
.room-pulse { inline-size: 64px; block-size: 64px; border-radius: 50%; background: #c9f26c; animation: room-pulse 1.6s ease-in-out infinite; }
@keyframes room-pulse { 50% { transform: scale(.75); opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .room-pulse { animation: none; } }
.room-chat { display: grid; grid-template-rows: auto 1fr auto auto; gap: 8px; inline-size: min(340px, 100%); padding: 14px; background: #17211d; border-inline-start: 1px solid rgb(255 255 255 / .08); }
.room-chat h2 { font-size: 1.05rem; }
.room-chat-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; display: grid; align-content: start; gap: 6px; min-block-size: 0; }
.room-chat-list li { padding: 6px 10px; border-radius: 12px; background: rgb(255 255 255 / .07); overflow-wrap: anywhere; }
.room-chat-list li.is-mine { background: rgb(201 242 108 / .16); }
.room-chat-form { display: flex; gap: 6px; }
.room-chat-form .text-input { flex: 1; min-inline-size: 0; }
.room-chat-note { color: #ffc83d; font-size: .85rem; }
.room-tools { display: flex; justify-content: center; gap: 10px; padding: 12px; padding-block-end: max(12px, env(safe-area-inset-bottom)); background: rgb(255 255 255 / .04); }
.room-tool { position: relative; display: grid; justify-items: center; gap: 2px; min-inline-size: 72px; padding: 8px 10px; border: 0; border-radius: 16px; background: rgb(255 255 255 / .1); color: #fff; font: inherit; font-size: .8rem; cursor: pointer; }
.room-tool .icon { inline-size: 26px; block-size: 26px; }
.room-tool:hover:not(:disabled) { background: rgb(255 255 255 / .18); }
.room-tool:disabled { opacity: .35; cursor: not-allowed; }
.room-tool[aria-pressed="true"] { background: #b83f25; }
.room-tool.room-leave { background: #d93b2b; }
.room-unread { position: absolute; inset-block-start: 6px; inset-inline-end: 14px; inline-size: 10px; block-size: 10px; border-radius: 50%; background: #ffc83d; }
@media (max-width: 760px) {
 .room-lobby { grid-template-columns: 1fr; }
 .room-preview-box { order: -1; }
 .room-chat { position: absolute; inset: 0; inline-size: 100%; z-index: 2; }
 .room-tool { min-inline-size: 0; flex: 1; font-size: .72rem; }
 .room-title { display: none; }
}

/* safety: tick boxes, the teacher's promise, reports */
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { inline-size: 22px; block-size: 22px; flex: none; margin-block-start: 3px; accent-color: var(--brand); }
.guardian-box, .pledge-box { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--r-m); background: var(--sun-soft); }
.guardian-box small { color: var(--muted); }
.pledge-box ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 4px; font-size: .95rem; }
.lesson-actions { display: grid; gap: 8px; justify-items: start; }
.complaint-box { margin-block-start: 6px; min-inline-size: min(320px, 70vw); }
.report-form textarea { min-block-size: 80px; }
.panel-alert { border-color: var(--bad); }
.report-row { display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--r-s); background: var(--bg); }
.report-row.is-safety { background: var(--bad-soft); }
.report-row small { color: var(--muted); display: block; }
.review-actions { display: grid; gap: 6px; }
.review-actions small { color: var(--muted); }
.must-change { padding: 14px 18px; border-radius: var(--r-m); background: var(--sun-soft); font-weight: 600; }
.forgot { display: grid; gap: 6px; justify-items: start; }
.mail-box { display: grid; gap: 8px; margin-block: 10px; }
.mail-state { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border-radius: var(--r-s); background: var(--sun-soft); }
.mail-state.is-ok { background: var(--lime-soft); }
.mail-url { padding: 6px 10px; border-radius: var(--r-s); background: var(--surface); border: 1px solid var(--line); font-size: .85rem; overflow-wrap: anywhere; max-inline-size: 100%; }
.mail-help { color: var(--muted); }
.code-input { font: 700 1.6rem/1.2 ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: .4em; text-align: center; }
.reset-out { display: grid; gap: 6px; }
.room-child { padding: 8px 14px; border-radius: 12px; background: rgb(255 200 61 / .18); color: #ffe08a; }
.room-report { position: absolute; inset-block-end: 12px; inset-inline-start: 12px; z-index: 3; display: grid; gap: 8px; inline-size: min(360px, calc(100% - 24px)); padding: 16px; border-radius: 16px; background: #fff; color: #15213b; box-shadow: 0 16px 40px rgb(0 0 0 / .45); }
.room-report h2 { font-size: 1.1rem; }

.admin-box { display: grid; gap: 16px; }
.admin-lock { max-inline-size: 460px; }
.admin-open { background: var(--lime-soft); border-color: transparent; gap: 10px; }
.admin-open > p { margin: 0; color: var(--ink); font-weight: 600; }

/* narrow phones: a signed-out visitor sees "create account" instead of the upgrade badge, so the header fits */
@media (max-width: 480px) { .top-side .narrow-hide { display: none; } .top-side .btn-small { white-space: nowrap; padding-inline: 12px; } .top-row { gap: 8px; } }
/* On a phone the header may need two lines (logo, then streak · plan · language · log out) rather than spilling off the screen. */
@media (max-width: 520px) { .top-row { flex-wrap: wrap; row-gap: 6px; padding-block: 6px; } .top-side { gap: 6px; flex-wrap: wrap; justify-content: flex-end; } .top-side .plan-badge, .logout-btn { padding-inline: 10px; } }

/* lesson or practice: a small tag in each row of the lesson list */
.kind-tag { display: inline-block; padding: 0 8px; border-radius: 99px; font-size: .78rem; font-weight: 600; background: var(--bg); border: 1px solid var(--line); }
.kind-lesson { background: var(--lime-soft); border-color: transparent; }
.kind-test { background: var(--sun-soft); border-color: transparent; }

/* terms and privacy */
.legal { display: grid; gap: 18px; }
.legal h2 { font-size: 1.2rem; margin-block-end: 6px; }
.legal ul { margin: 0; padding-inline-start: 22px; display: grid; gap: 6px; }
.legal-date, .legal-links { color: var(--muted); font-size: .92rem; }
.legal-agree { color: var(--muted); font-size: .9rem; }
.foot-small a { color: inherit; }

/* ratings and earnings */
.teacher-rating { font-size: .9rem; color: var(--muted); } .teacher-rating b { color: var(--ink); }
.stars { color: #f5a300; letter-spacing: 2px; white-space: nowrap; }
.review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.review-list li { padding: 10px 14px; border-radius: var(--r-s); background: var(--bg); }
.rate-box { display: grid; gap: 4px; justify-items: start; }
.rate-stars { display: flex; gap: 2px; }
.star-button { border: 0; background: none; font-size: 1.6rem; line-height: 1; color: #d6cfc0; cursor: pointer; padding: 2px; }
.star-button[aria-pressed="true"] { color: #f5a300; }
.rate-box .text-input { min-block-size: 38px; font-size: .9rem; }
.payout-list { margin: 0; padding-inline-start: 18px; color: var(--muted); }
.commission-form { align-items: end; }
.commission-form .field { max-inline-size: 220px; }

/* the wordmark logo (option 7-a): dark green "vocalen", lime dot under the c; white with a lime dot on dark bars */
.logo-word { display: inline-block; font-family: "Readex Pro", var(--font); font-weight: 800; font-size: 1.6rem; line-height: 1; letter-spacing: -.02em; color: #173b34; padding-block-end: .22em; }   /* fixed colours: the kids' world changes --brand, the logo stays the same */
.logo-dot { position: relative; }
.logo-dot::after { content: ""; position: absolute; inset-inline-start: 50%; inset-block-end: -.2em; inline-size: .2em; block-size: .2em; margin-inline-start: -.1em; border-radius: 50%; background: #9cc83c; }
.room-top .logo-word { color: #fff; } .room-top .logo-dot::after { background: var(--lime, #c9f26c); }
.cert-brand .logo-word { font-size: 2rem; }

/* "install the app" button (home hero and the "me" page); the note explains the two taps on iPhone and iPad */
.install-box { display: grid; gap: 8px; justify-items: start; }
.install-box[hidden] { display: none; }
.install-btn { display: inline-flex; align-items: center; gap: 8px; min-block-size: 44px; padding: 8px 16px; border: 1.5px dashed #173b34; border-radius: 14px; background: rgb(255 255 255 / .7); color: #173b34; font: inherit; font-weight: 600; cursor: pointer; }
.install-btn:hover { background: #ebf9cc; }
.install-btn .icon { inline-size: 20px; block-size: 20px; }
.install-note { margin: 0; max-inline-size: 42ch; font-size: .92rem; color: #556270; }

/* Phones with a notch or Dynamic Island turned sideways: keep content clear of the cut-out. */
body { padding-inline: env(safe-area-inset-left, 0) env(safe-area-inset-right, 0); }

/* shown to the teacher and the student for as long as a supervisor from the site is in their lesson */
.room-watched { position: absolute; inset-block-start: 0; inset-inline: 0; z-index: 4; margin: 0; padding: 8px 16px; background: #ffd23f; color: #2b1d0e; font-weight: 600; text-align: center; font-size: .95rem; }
.room-watched[hidden] { display: none; }

/* plans: one paid plan in four lengths, paid over WhatsApp (1 Dec 2026) */
.plan-grid.plan-grid-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
@media (max-width: 860px) { .plan-grid.plan-grid-two { grid-template-columns: 1fr; } }
.plan-grid-two .plan-card { grid-template-rows: none; }
.plan-options { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }
.plan-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.plan-option.is-best { border: 2px solid var(--brand); background: var(--lime-soft); }
.plan-option-text { display: grid; gap: 2px; }
.plan-option-text strong { font-size: 1.05rem; }
.plan-option-price { font-size: 1.3rem; }
.plan-option-text small { color: var(--muted); }
.btn-wa { white-space: nowrap; }
.pay-steps { margin: 0; padding-inline-start: 22px; display: grid; gap: 8px; }
.trial-box { margin-block-end: 16px; }
.story-lock { font-size: 1.1rem; opacity: .7; }
.story-free { font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: var(--lime); color: var(--ink); white-space: nowrap; }

/* lesson packages, balance, rules and teacher videos (2 Dec 2026) */
.rules-box { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--r-m); background: var(--sun-soft, #fff3cc); }
.rules-box ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 4px; font-size: .95rem; }
.rules-box .check { font-weight: 600; }
.plan-option-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.packs { margin-block-start: 28px; }
.packs .page-head h2 { font-size: 1.6rem; }
.balance-line { font-size: 1.05rem; }
.pack-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pack-list li { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 10px 14px; border-radius: var(--r-m); background: var(--lime-soft); }
.pack-list li.is-ended { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.balance-box .btn { margin-inline-start: auto; }
.lesson-item.is-moved { outline: 2px solid var(--sun, #f2b53a); }
.moved-note { display: block; color: #8a5a00; font-weight: 600; }
.move-box { display: grid; gap: 6px; margin-block-start: 8px; }
.teacher-video { inline-size: 100%; max-block-size: 420px; border-radius: var(--r-m); background: #000; }
.adm-video { display: grid; gap: 6px; margin-block-start: 6px; }
.adm-video .teacher-video { max-block-size: 200px; }
.adm-warn { color: #b3261e; }

/* one stage at a time on the lessons page, and the map of stages (2 Dec 2026) */
.stage-panel { display: grid; gap: 12px; }
.stage-head { display: grid; gap: 8px; padding: 20px 22px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); }
.stage-head h2 { margin: 0; font-size: 1.5rem; }
.stage-bar { display: block; block-size: 8px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.stage-bar i { display: block; block-size: 100%; border-radius: 99px; background: var(--lime-deep); }
.stage-nav { flex-wrap: wrap; gap: 8px; }
.unit-head h2 { margin: 0; }
.map-stages { display: grid; gap: 18px; }
.map-group { display: grid; gap: 10px; }
.map-stage-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.map-stage { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; }
a.map-stage:hover { border-color: var(--brand); }
.map-stage.is-current { border: 2px solid var(--brand); background: var(--lime-soft); }
.map-stage h3 { margin: 0; font-size: 1.1rem; }
.map-stage p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.map-stage > div { flex: 1; }

/* ───── full level test ───── */
.lt-facts { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.lt-facts li { display: flex; gap: 10px; align-items: center; }
.lt-facts .icon { color: var(--brand); flex: none; }
.lt-ages { margin-bottom: 8px; }
.lt-note { color: var(--muted); font-size: .95rem; margin: 14px 0; }
.lt-basis { color: var(--muted); font-size: .85rem; margin-top: 22px; line-height: 1.7; }
.lt-last { padding: 10px 14px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); display: inline-block; }
.lt-skill { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .85rem; color: var(--muted); margin: 0; justify-self: start; }
.lt-text p { margin: 0; font-size: 1.1rem; line-height: 1.7; text-align: start; }
.lt-audio { display: flex; justify-content: center; }
.lt-q { font-size: 1.2rem; font-weight: 700; margin: 0; }
.lt-foot { display: flex; gap: 12px; align-items: center; }
.lt-foot .btn-quiet { flex: 0 0 auto; width: auto; }
.lt-foot .btn-primary { flex: 1 1 0; width: auto; min-width: 0; }
.lt-result { text-align: center; }
.lt-result .panel, .lt-result .lt-note, .lt-result .lt-basis { text-align: start; }
.lt-level { font-size: clamp(2.6rem, 9vw, 4rem); margin: 4px 0; color: var(--brand); }
.lt-level small { font-size: 1.1rem; color: var(--muted); }
.lt-near { color: var(--muted); margin: 0 0 10px; }
.lt-scale { list-style: none; padding: 0; margin: 16px auto; display: flex; gap: 4px; direction: ltr; max-width: 560px; }
.lt-scale li { flex: 1; min-width: 0; white-space: nowrap; padding: 8px 0; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: .72rem; font-weight: 700; color: var(--muted); }
.lt-scale li.is-done { background: color-mix(in srgb, var(--brand) 18%, var(--surface)); color: var(--ink, inherit); }
.lt-scale li.is-here { background: var(--brand); border-color: var(--brand); color: #fff; transform: scale(1.08); }
.lt-rec { margin-top: 22px; }
.lt-path { font-size: 1.25rem; margin: 6px 0 14px; }
.lt-rec .btn { margin-top: 8px; }
.lt-skills { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lt-skills li { display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; align-items: center; }
.lt-meter { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.lt-meter i { display: block; height: 100%; background: var(--brand); border-radius: inherit; }
/* level test certificate and its public check (/v/<code>) */
.lt-cert, .lt-ready { margin-top: 22px; text-align: start; border: 2px solid color-mix(in srgb, #a8801f 55%, var(--line)); background: color-mix(in srgb, #f3e3b0 22%, var(--surface)); }
.lt-cert h2 .icon { color: #a8801f; }
.lt-cert-form { display: grid; gap: 10px; }
.lt-cert-form .lt-note { margin: 0; }
.lt-cert-done { display: grid; gap: 12px; }
.lt-cert-done .row { flex-wrap: wrap; }
.lt-verify { text-align: center; }
.lt-verify .panel, .lt-verify .lt-basis, .lt-verify .lt-note { text-align: start; }
.lt-verify .cert-picture { margin: 0 0 18px; inline-size: 100%; }
.lt-verdict { display: flex; gap: 16px; align-items: center; text-align: start; padding: 18px 20px; border-radius: var(--r-m); margin: 8px 0 18px; }
.lt-verdict > .icon { flex: none; width: 46px; height: 46px; padding: 10px; border-radius: 50%; color: #fff; }
.lt-verdict h1 { margin: 0 0 4px; font-size: 1.6rem; }
.lt-verdict p { margin: 0; }
.lt-verdict .lt-who { font-size: 1.35rem; font-weight: 800; margin: 2px 0 6px; }
.lt-verdict.is-good { background: color-mix(in srgb, #1f9d55 12%, var(--surface)); border: 2px solid #1f9d55; }
.lt-verdict.is-good > .icon { background: #1f9d55; }
.lt-verdict.is-bad { background: color-mix(in srgb, #d64545 10%, var(--surface)); border: 2px solid #d64545; }
.lt-verdict.is-bad > .icon { background: #d64545; }
.lt-facts-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; text-align: start; margin: 0 0 8px; padding: 16px 18px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
.lt-facts-list dt { color: var(--muted); }
.lt-facts-list dd { margin: 0; }
.lt-code { font-size: 1.3rem; font-weight: 700; letter-spacing: 2px; }
/* the level test is the first choice on the level step (3 Dec 2026) */
.placement-offer.is-first { margin-block: 4px 6px; border-style: solid; }
.choice-or { margin-block: 14px 8px; color: var(--muted); font-weight: 600; }
/* the page after the free lessons (3 Dec 2026): what was achieved, the trial, the prices in short */
.paywall-won { display: flex; justify-content: center; gap: 12px; margin-block: 6px 4px; }
.paywall-won div { display: grid; justify-items: center; min-inline-size: 92px; padding: 10px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.paywall-won b { font-size: 1.5rem; } .paywall-won small { color: var(--muted); font-size: .85rem; }
.paywall-gets { display: grid; gap: 6px; justify-content: center; text-align: start; margin-block: 4px 8px; }
.paywall-gets li { display: flex; gap: 8px; align-items: center; } .paywall-gets .icon { color: var(--brand); inline-size: 18px; block-size: 18px; flex: none; }
.paywall-trial { display: grid; justify-items: center; gap: 6px; margin-block: 8px; }
.paywall-trial small { color: var(--muted); }
.paywall-prices { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-block: 4px; }
.paywall-prices li { display: grid; justify-items: center; padding: 8px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.paywall-prices small { color: var(--muted); font-size: .82rem; }
.report-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.report-topics li { padding: 4px 12px; border-radius: 99px; background: var(--lime-soft); font-size: .92rem; }
/* questions page (3 Dec 2026) */
.faq-page main { padding-block: 32px 56px; }
.faq-list { display: grid; gap: 10px; margin-block: 8px 24px; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 4px 18px; }
.faq-item summary { cursor: pointer; padding-block: 14px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::after { content: '+'; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.faq-item[open] summary::after { content: '−'; }
.faq-answer { display: grid; gap: 8px; padding-block-end: 14px; color: var(--muted); }
.faq-prices { padding-block-end: 14px; font-weight: 600; }

/* discount codes on the plans page and the invite link (offers.mjs) */
.discount-box { display: grid; gap: 6px; margin-block-start: 12px; }
.discount-box .row { flex-wrap: nowrap; }
.discount-box .text-input { flex: 1; min-inline-size: 0; }
.price-was { color: var(--muted); font-weight: 400; font-size: .85em; }
.invite-link { margin: 0 0 10px; padding: 10px 14px; border-radius: var(--r-s); background: var(--lime-soft); font-weight: 700; overflow-wrap: anywhere; }
/* the report and certificate as pictures to share (sharecard.js) */
.share-preview { display: block; inline-size: 100%; block-size: auto; margin-block: 16px; border-radius: var(--r-l); box-shadow: var(--shadow); }
.share-preview[hidden] { display: none; }
.cert-picture { border-radius: 10px; }
@media print { .share-preview { box-shadow: none; margin: 0; } }

/* ───── the practice exam in the IELTS style (mock.js) ───── */
.mock-page h1 { margin: 12px 0 6px; }
.mock-tips { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 6px; }
.mock-check { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.mock-check input { inline-size: 22px; block-size: 22px; accent-color: var(--brand); }
.mock-locked p { margin: 0; }
.mock-bar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; padding: 12px 16px; margin: 0 0 16px; border-radius: var(--r-m); background: var(--brand-deep); color: #fff; }
.mock-clock { font-variant-numeric: tabular-nums; font-size: 1.1rem; }
.mock-clock.is-low { color: var(--sun); }
.mock-title { text-align: start; margin: 4px 0 12px; font-size: 1.25rem; }
.mock-player { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 16px; margin-bottom: 18px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
.mock-progress { flex: 1 1 160px; block-size: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.mock-progress i { display: block; block-size: 100%; inline-size: 0; background: var(--lime-deep); transition: inline-size .4s linear; }
.mock-audio-state { color: var(--muted); font-size: .92rem; }
.mock-group { margin: 0 0 22px; padding: 16px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
.mock-instr { margin: 0 0 6px; font-weight: 600; text-align: left; }
.mock-hint { margin: 0 0 12px; color: var(--muted); font-size: .9rem; }
.mock-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.mock-item:first-of-type { border-top: 0; }
.mock-n { flex: none; display: grid; place-items: center; min-inline-size: 30px; block-size: 30px; padding: 0 6px; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 700; font-size: .9rem; }
.mock-q { flex: 1; margin: 0; padding: 0; border: 0; text-align: left; line-height: 1.9; min-inline-size: 0; }
.mock-q legend { padding: 0; margin-bottom: 6px; }
.mock-q > span { display: block; margin-bottom: 6px; }
.mock-gap { inline-size: 11em; max-inline-size: 100%; margin: 0 4px; padding: 4px 8px; font: inherit; border: 0; border-bottom: 2px solid var(--brand); background: var(--lime-soft); border-radius: 6px 6px 0 0; }
.mock-gap:focus { outline: 2px solid var(--brand); outline-offset: 2px; }
.mock-select { max-inline-size: 100%; padding: 8px; font: inherit; border-radius: var(--r-s); border: 1px solid var(--line); background: #fff; }
.mock-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.mock-options { display: grid; gap: 6px; }
.mock-option { display: flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: var(--r-s); border: 1px solid var(--line); background: #fff; cursor: pointer; line-height: 1.5; }
.mock-option:has(input:checked) { border-color: var(--brand); background: var(--lime-soft); font-weight: 600; }
.mock-option input { accent-color: var(--brand); }
.mock-nav { justify-content: space-between; margin: 8px 0 30px; }
.mock-jump { display: flex; gap: 8px; margin-bottom: 12px; }
.mock-split { display: grid; gap: 18px; direction: ltr; }   /* the passage on the left, the questions on the right, as on the computer test */
.mock-passage { padding: 20px; border-radius: var(--r-m); background: #fff; border: 1px solid var(--line); text-align: left; line-height: 1.85; font-size: 1.02rem; }
.mock-passage h2 { margin: 0 0 12px; font-size: 1.3rem; }
.mock-para { display: inline-grid; place-items: center; inline-size: 26px; block-size: 26px; margin-inline-end: 4px; border-radius: 6px; background: var(--brand-deep); color: #fff; font-size: .85rem; }
.mock-scores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 16px; }
.mock-score { display: grid; gap: 2px; justify-items: center; padding: 14px 8px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
.mock-score b { font-size: 2rem; line-height: 1.1; color: var(--brand-deep); }
.mock-score span, .mock-score small { color: var(--muted); font-size: .85rem; text-align: center; }
.mock-score.is-main { background: var(--brand-deep); }
.mock-score.is-main b, .mock-score.is-main small { color: #fff; }
.mock-grid-row { display: grid; gap: 8px; }
.mock-grid { display: flex; flex-wrap: wrap; gap: 5px; }
.mock-grid span { display: grid; place-items: center; inline-size: 32px; block-size: 32px; border-radius: 8px; font-weight: 700; font-size: .85rem; }
.mock-grid .is-right { background: var(--good-soft); color: var(--good); }
.mock-grid .is-wrong { background: var(--bad-soft); color: var(--bad); }
.mock-card { border-color: var(--brand); }
/* writing and speaking practice (/mock/writing, /mock/speaking) */
.mock-prompt { margin: 0 0 12px; text-align: left; line-height: 1.8; white-space: pre-line; font-size: 1.02rem; }
.mock-chart { display: block; inline-size: 100%; max-inline-size: 760px; block-size: auto; margin: 6px auto 12px; border-radius: var(--r-s); border: 1px solid var(--line); }
.mock-essay, .mock-notes { display: block; inline-size: 100%; box-sizing: border-box; padding: 14px 16px; font: inherit; font-size: 1.02rem; line-height: 1.8; text-align: left; border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; resize: vertical; }
.mock-essay:focus, .mock-notes:focus { outline: 2px solid var(--brand); outline-offset: 2px; }
.mock-essay[readonly] { background: var(--surface); }
.mock-bar b.is-enough { color: var(--sun); }
.mock-review h3 { margin: 16px 0 8px; font-size: 1.05rem; }
.mock-compare { display: grid; gap: 14px; }
.mock-text { padding: 14px 16px; border-radius: var(--r-m); background: #fff; border: 1px solid var(--line); text-align: left; line-height: 1.8; white-space: pre-wrap; }
.mock-text.is-model { background: var(--lime-soft); white-space: normal; }
.mock-text p { margin: 0 0 10px; }
.mock-text p:last-child { margin: 0; }
.mock-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mock-checklist label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 12px; border-radius: var(--r-s); border: 1px solid var(--line); background: #fff; cursor: pointer; line-height: 1.6; }
.mock-checklist input { flex: none; inline-size: 20px; block-size: 20px; margin-top: 3px; accent-color: var(--brand); }
.mock-checklist label:has(input:checked) { border-color: var(--brand); background: var(--lime-soft); }
.mock-speak-q { padding: 12px 0; border-top: 1px solid var(--line); }
.mock-q-text { margin: 8px 0 0; text-align: left; font-weight: 600; }
.mock-rec { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 10px; }
.mock-rec audio { max-inline-size: 100%; block-size: 40px; }
.mock-rec .btn.is-recording { border-color: #b3261e; color: #b3261e; }
.mock-card-topic { margin: 12px 0; padding: 16px 18px; border-radius: var(--r-m); border: 2px solid var(--brand); background: #fff; text-align: left; line-height: 1.7; }
.mock-card-topic strong { display: block; font-size: 1.1rem; margin-bottom: 6px; }
.mock-card-topic p { margin: 0; }
.mock-card-topic ul { margin: 4px 0 0; padding-left: 1.2em; }
.mock-notes { margin: 10px 0; }
@media (min-width: 900px) { .mock-compare { grid-template-columns: 1fr 1fr; } .mock-page:has(.mock-compare) { inline-size: min(1200px, 100% - 40px); } }
@media (min-width: 1000px) {
 .mock-page:has(.mock-split) { inline-size: min(1320px, 100% - 40px); }
 .mock-split { grid-template-columns: 1fr 1fr; align-items: start; }
 .mock-passage, .mock-questions { position: sticky; top: 70px; max-block-size: calc(100vh - 90px); overflow: auto; }
 .mock-jump { display: none; }
}

/* the quick buttons at the top of the lessons page (Dec 2026) */
.quick-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 16px; }
.quick-link { display: grid; justify-items: center; gap: 4px; padding: 12px 6px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); color: var(--ink, inherit); text-decoration: none; font-weight: 700; font-size: .92rem; text-align: center; line-height: 1.3; transition: transform .15s ease, border-color .15s ease; }
.quick-link:hover { border-color: var(--brand); transform: translateY(-2px); }
.quick-link:active { transform: scale(.97); }
.quick-emoji { font-size: 1.6rem; line-height: 1; }
.tests-sub { margin: 22px 0 10px; font-size: 1.15rem; }
@media (max-width: 380px) { .quick-links { grid-template-columns: repeat(2, 1fr); } }
