/* Aidemy language apps: the same dark theme as PhysikPlay. */

:root {
  color-scheme: dark;
  --paper: #10171b; --ink: #f0f4f5; --soft: #a3b3ba; --line: #2d3b43; --accent: #f5c842; --on-accent: #1b1605; --solid: #1f2c33; --card: #19242a; --track: #43545d;
  --good: #5fdb9d; --bad: #ff8f70; --blue: #56b4f5; --violet: #d48cff; --orange: #ffad33;
  --state-done: #5fdb9d; --state-started: #f5c842; --radius: 10px;
  --subject: #d26b77; /* subject colour, Deutsch */
  --font: "Segoe UI Variable Display", "Segoe UI", -apple-system, "SF Pro Display", Roboto, "Noto Sans", "Liberation Sans", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--font); }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; touch-action: manipulation; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
strong { color: var(--accent); font-weight: 650; }
em { color: var(--blue); font-style: normal; font-weight: 600; }

.primary, .quiet { min-height: 44px; padding: 0 18px; border-radius: var(--radius); font-weight: 600; }
.primary { background: var(--accent); color: var(--on-accent); }
.primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.quiet { border: 1px solid var(--line); }
.quiet:hover { border-color: var(--soft); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.actions.center { justify-content: center; }
.hint { color: var(--soft); font-size: 14px; }
.card-like { padding: 20px 22px; border-radius: 16px; background: var(--card); display: grid; gap: 14px; }

/* AiDemy design system (Stitch "AiDemy Unified"): light scheme. Dark values above are the system's dark tokens.
   Follows the device unless html[data-colours] is set. */
@media (prefers-color-scheme: light) { :root:not([data-colours=dark]) { color-scheme: light; --paper: #f4f7fb; --ink: #181c1f; --soft: #43474f; --line: #c4c6d0; --accent: #22416c; --on-accent: #ffffff; --solid: #e5e8ec; --card: #ffffff; --track: #c4c6d0;
  --good: #347f52; --bad: #b9523a; --blue: #1565c0; --violet: #7b1fa2; --orange: #a36200; --state-done: #347f52; --state-started: #9b661a; --subject: #b23a48; } }
html[data-colours=light] { color-scheme: light; --paper: #f4f7fb; --ink: #181c1f; --soft: #43474f; --line: #c4c6d0; --accent: #22416c; --on-accent: #ffffff; --solid: #e5e8ec; --card: #ffffff; --track: #c4c6d0;
  --good: #347f52; --bad: #b9523a; --blue: #1565c0; --violet: #7b1fa2; --orange: #a36200; --state-done: #347f52; --state-started: #9b661a; --subject: #b23a48; }

/* header */
.home-head { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 26px; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .02em; font-size: 18px; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 800; }
.corner { display: flex; align-items: center; gap: 12px; flex: none; }
.stat { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; white-space: nowrap; }
.star { color: var(--accent); } .flame { color: var(--orange); font-size: 13px; }

/* start page */
.home-body { max-width: 1180px; margin: 0 auto; padding: 28px 26px 60px; display: grid; gap: 26px; }
.home-hero h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -.02em; }
.home-hero p { margin-top: 10px; max-width: 46em; color: var(--soft); font-size: 18px; }
.home-body > section > h2 { font-size: 20px; }
.grade-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.grade-chip { display: grid; place-items: center; min-width: 76px; min-height: 70px; padding: 6px 10px; border-radius: 16px; background: var(--solid); line-height: 1.1; }
.grade-chip span { font-size: 26px; font-weight: 700; } .grade-chip small { font-size: 12px; color: var(--soft); }
.grade-chip:hover { background: var(--line); }
.grade-chip[aria-pressed=true] { background: var(--accent); color: var(--on-accent); } .grade-chip[aria-pressed=true] small { color: var(--on-accent); }
.summary-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.summary-number { text-align: right; display: grid; } .summary-number strong { font-size: 34px; line-height: 1.1; color: var(--ink); }
.state-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--track); }
.state-part.done { background: var(--state-done); } .state-part.started { background: var(--state-started); } .state-part.new { background: var(--track); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; color: var(--soft); } .legend > span { display: inline-flex; align-items: center; gap: 7px; }
.state-dot { flex: none; display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--track); }
.state-dot.done { background: var(--state-done); } .state-dot.started { background: var(--state-started); }
.modes { display: flex; flex-wrap: wrap; gap: 8px; } .modes button { min-height: 44px; padding: 0 20px; border-radius: 22px; background: var(--solid); font-weight: 600; } .modes [aria-pressed=true] { background: var(--ink); color: var(--paper); }
.area { display: grid; gap: 12px; } .area-title { font-size: 20px; }
.home-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.unit-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 16px; background: var(--card); text-align: left; border: 1px solid transparent; transition: border-color .12s, transform .12s; }
.unit-card:hover { border-color: var(--line); transform: translateY(-2px); }
.unit-card.done { border-color: color-mix(in srgb, var(--good) 40%, transparent); }
.unit-top { display: flex; align-items: center; gap: 8px; } .unit-kind { font-size: 13px; color: var(--soft); text-transform: uppercase; letter-spacing: .06em; }
.unit-title { color: var(--ink); font-size: 18px; line-height: 1.25; } .unit-about { color: var(--soft); font-size: 14.5px; flex: 1; }
.mini-bar { display: block; height: 5px; border-radius: 3px; background: var(--track); overflow: hidden; } .mini-bar span { display: block; height: 100%; background: var(--good); }

/* unit page */
.unit-heading { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; } .unit-heading h1 { font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grade-badge { flex: none; padding: 3px 10px; border-radius: 12px; background: var(--solid); color: var(--soft); font-size: 13px; font-weight: 600; }
.unit-body { max-width: 1180px; margin: 0 auto; padding: 24px 26px 60px; display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 24px; align-items: start; }
.rule-card { position: sticky; top: 84px; padding: 20px 22px; border-radius: 16px; background: var(--card); display: grid; gap: 10px; max-height: calc(100dvh - 110px); overflow: auto; }
.rule-card h2 { font-size: 18px; } .rule-card h3 { font-size: 15px; color: var(--soft); margin-top: 6px; }
.examples { display: grid; gap: 6px; } .example { display: flex; gap: 8px; align-items: flex-start; }
.tip { padding: 10px 14px; border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 12%, var(--paper)); font-size: 15px; }
.speak { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--soft); vertical-align: middle; margin-left: 4px; }
.speak:hover { background: var(--solid); color: var(--accent); } .speak svg { width: 19px; height: 19px; }
.ex-area { display: grid; gap: 16px; min-width: 0; }
.ex-steps { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.step-chip { flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px; border-radius: 19px; background: var(--solid); font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.step-chip[aria-selected=true] { background: var(--ink); color: var(--paper); }
.ex-panel { padding: 22px 24px; border-radius: 16px; background: var(--card); min-height: 360px; }
.ex-head { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; } .ex-head h2 { font-size: 19px; }
.progress { display: flex; gap: 5px; margin-bottom: 20px; } .progress span { flex: 1; height: 6px; border-radius: 3px; background: var(--track); } .progress .on { background: var(--good); } .progress .now { background: var(--accent); }
.ex-body { min-height: 150px; display: grid; align-content: center; }
.ex-question, .ex-sentence { font-size: 22px; line-height: 1.9; }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 18px; }
.option { min-height: 54px; padding: 8px 16px; border-radius: 12px; background: var(--solid); font-size: 19px; font-weight: 600; border: 2px solid transparent; }
.option:hover:not(:disabled) { border-color: var(--line); }
.option[aria-pressed=true], .chip-option[aria-pressed=true] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--solid)); }
.good { border-color: var(--good) !important; background: color-mix(in srgb, var(--good) 22%, var(--solid)) !important; color: var(--ink) !important; }
.bad { border-color: var(--bad) !important; background: color-mix(in srgb, var(--bad) 22%, var(--solid)) !important; }
.gap-choices { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 2px 4px; margin: 0 2px; border-radius: 10px; border: 1px dashed var(--track); vertical-align: middle; line-height: 1.3; }
.chip-option { min-height: 38px; padding: 0 12px; border-radius: 9px; background: var(--solid); font-size: 18px; font-weight: 600; border: 2px solid transparent; }
.gap-input { min-height: 42px; padding: 0 8px; margin: 0 3px; border-radius: 9px; border: 2px solid var(--track); background: var(--paper); font-size: 20px; text-align: center; vertical-align: middle; }
.gap-input:focus { border-color: var(--accent); outline: none; } .gap-input.wide { width: 100%; text-align: left; padding: 0 14px; min-height: 52px; margin: 16px 0 0; }
.gap-input::placeholder { color: var(--track); font-size: 15px; }
.big-speak { display: inline-flex; align-items: center; gap: 10px; justify-self: start; min-height: 54px; } .big-speak svg { width: 24px; height: 24px; }
.feedback { margin-top: 16px; padding: 12px 16px; border-radius: 12px; font-size: 17px; }
.feedback.good { border: 0; } .feedback.bad { border: 0; } .feedback.open { background: var(--solid); color: var(--soft); }
.feedback.good strong { color: var(--good); } .feedback.bad strong { color: var(--bad); }

/* tiles */
.tile { min-height: 46px; padding: 0 14px; border-radius: 10px; background: var(--solid); border: 2px solid var(--line); font-size: 19px; font-weight: 600; user-select: none; -webkit-user-select: none; touch-action: none; }
.tile:hover:not(:disabled) { border-color: var(--soft); } .tile.chosen { border-color: var(--accent); } .tile.lifted { opacity: .3; }
.ghost { position: fixed; z-index: 100; pointer-events: none; border-color: var(--accent); box-shadow: 0 12px 30px #0009; }
.tile-pool, .answer-line { display: flex; flex-wrap: wrap; gap: 8px; min-height: 64px; padding: 10px; border-radius: 12px; }
.answer-row { display: flex; align-items: flex-end; gap: 6px; margin-bottom: 18px; } .answer-line { flex: 1; border: 2px dashed var(--track); } .end-mark { font-size: 28px; font-weight: 700; padding-bottom: 8px; } .tile-pool { background: color-mix(in srgb, var(--paper) 60%, transparent); }
.over { border-color: var(--accent) !important; background: color-mix(in srgb, var(--accent) 10%, transparent); }
.choosing .drop { outline: 1px dashed var(--accent); outline-offset: 2px; }
.buckets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); gap: 10px; margin-top: 16px; }
.bucket { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; min-height: 160px; padding: 10px; border-radius: 12px; border: 2px dashed var(--track); }
.bucket-name { flex: 1 0 100%; font-weight: 700; color: var(--accent); text-align: center; margin-bottom: 4px; }
.bucket .tile { font-size: 16px; min-height: 38px; padding: 0 10px; }

/* tap words */
.tap-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 2px; }
.word { padding: 2px 6px; border-radius: 7px; border: 2px solid transparent; font-size: 22px; } .word:hover:not(:disabled) { background: var(--solid); }
.word.tapped { background: color-mix(in srgb, var(--accent) 22%, transparent); border-color: var(--accent); } .word.missed { border-color: var(--good); border-style: dashed; }

/* pairs, memory, cards */
.ex-match { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .match-col { display: grid; gap: 8px; align-content: start; }
.card-pair { min-height: 50px; padding: 6px 12px; border-radius: 10px; background: var(--solid); border: 2px solid transparent; font-size: 17px; font-weight: 600; }
.card-pair.chosen { border-color: var(--accent); } .card-pair.paired { border-color: var(--good); opacity: .55; }
.shake { animation: shake .4s; border-color: var(--bad) !important; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.ex-memory { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.memo { position: relative; min-height: 92px; border-radius: 12px; background: var(--solid); border: 2px solid var(--line); font-size: 16px; font-weight: 600; padding: 6px; }
.memo-back { font-size: 30px; color: var(--track); } .memo-face { display: none; }
.memo.open .memo-back { display: none; } .memo.open .memo-face { display: inline; } .memo.open { border-color: var(--accent); }
.memo.paired { border-color: var(--good); background: color-mix(in srgb, var(--good) 14%, var(--solid)); }
.ex-cards { display: grid; justify-items: center; gap: 12px; }
.flash { width: min(100%, 440px); min-height: 220px; border-radius: 20px; background: var(--solid); border: 2px solid var(--line); font-size: 30px; font-weight: 700; padding: 20px; display: grid; place-items: center; }
.flash .flash-back { display: none; color: var(--accent); } .flash.turned .flash-front { display: none; } .flash.turned .flash-back { display: block; } .flash.turned { border-color: var(--accent); }

/* explanation before the lesson */
.unit-body.learning { grid-template-columns: minmax(0, 860px); justify-content: center; } .unit-body.learning .rule-card { display: none; }
.learn { display: grid; gap: 22px; }
.learn h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--soft); margin-bottom: 8px; }
.learn-lead { font-size: 24px; line-height: 1.35; font-weight: 600; }
.learn-why { margin-top: 10px; font-size: 18px; color: var(--soft); } .learn-label { display: inline-block; margin-right: 8px; padding: 1px 9px; border-radius: 10px; background: var(--solid); color: var(--accent); font-size: 14px; font-weight: 700; }
.learn-steps { margin: 0; padding-left: 26px; display: grid; gap: 8px; font-size: 19px; } .learn-steps li::marker { color: var(--accent); font-weight: 700; }
.learn-formula { padding: 18px 22px; border-radius: 14px; border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--paper)); }
.learn-formula h2 { color: var(--accent); } .learn-formula p { font-size: 21px; font-weight: 600; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.examples.big .example { font-size: 20px; }
.primary.big { min-height: 54px; padding: 0 26px; font-size: 18px; }
.learn-chip { background: color-mix(in srgb, var(--accent) 18%, var(--solid)); }

/* result */
.result { display: grid; justify-items: center; gap: 10px; padding: 30px 0; text-align: center; }
.result-stars { display: flex; gap: 8px; font-size: 54px; line-height: 1; } .result-stars span { color: var(--track); } .result-stars .on { color: var(--accent); animation: pop .4s backwards; }
.result-stars .on:nth-child(2) { animation-delay: .15s; } .result-stars .on:nth-child(3) { animation-delay: .3s; }
@keyframes pop { from { transform: scale(.2); opacity: 0; } }
.big-number { font-size: 34px; font-weight: 650; }

@media (max-width: 820px) {
  .unit-body { grid-template-columns: 1fr; padding: 14px 12px 40px; } .rule-card { position: static; max-height: none; }
  .unit-heading h1 { font-size: 16px; } .ex-panel { padding: 16px; }
}
@media (max-width: 640px) {
  .learn-lead { font-size: 20px; } .learn-steps, .learn-formula p, .examples.big .example { font-size: 17px; } .learn-formula { padding: 14px 16px; }
  .home-head { padding: 10px 12px; } .home-body { padding: 18px 12px 40px; } .home-head .corner > .quiet { display: none; } .brand-name { display: none; }
  .grade-chip { min-width: 62px; min-height: 60px; } .ex-question, .ex-sentence, .word { font-size: 19px; } .buckets { grid-template-columns: 1fr; }
}

/* ===== AiDemy design system layer (Stitch "AiDemy Unified", 2026-12-05) =====
   Fonts: Hanken Grotesk for all text, JetBrains Mono for code/formulas/tables (bundled, no external requests).
   Radii: controls 6px, cards 8px, badges 4px. Touch targets 44px. Hairline 1px borders instead of shadows.
   Primary action: #22416c light / #415f91 dark with white text. Focus: 2px outline, 1px offset.
   Subject colour (--subject) only for subject cards, badges and headers. */
@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/hanken-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
:root {
  --font: "Hanken Grotesk", "Segoe UI Variable Display", "Segoe UI", -apple-system, "SF Pro Display", Roboto, "Noto Sans", "Liberation Sans", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r-sm: .125rem; --r: .25rem; --r-md: .375rem; --r-lg: .5rem; --r-xl: .75rem;
  --space-xs: .25rem; --space-sm: .5rem; --space-md: 1rem; --space-lg: 1.5rem; --space-xl: 2rem;
  --measure: 70ch; --container: 1240px;
  --accent: #aac8fb; --on-accent: #042b55;            /* text, outlines, tonal selected states on dark */
  --action: #415f91; --on-action: #ffffff;            /* primary action fill on dark */
  --hairline: #2a3942;
}
@media (prefers-color-scheme: light) { :root:not([data-colours=dark]) { --action: #22416c; --hairline: #d8d8d4; } }
html[data-colours=light] { --action: #22416c; --hairline: #d8d8d4; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
body { font-family: var(--font); }
code, kbd, samp, pre, .mono { font-family: var(--font-mono); font-size: .92em; }
.stat, .percent, .summary-number, .count, .legend, .tick { font-variant-numeric: tabular-nums; }
.primary { background: var(--action); color: var(--on-action); min-height: 44px; }
.primary:not(:disabled):hover, .primary:hover { background: color-mix(in srgb, var(--action) 86%, var(--ink)); }
.primary, .quiet, .option, .chip-option, .gap-input, .tile, input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]), select, textarea { border-radius: var(--r-md); }
.quiet, input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]), select, textarea { min-height: 44px; }
input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]), select, textarea { font-size: 16px; }
.card-like, .unit-card, .rule-card, .ex-panel, .summary, .area, .language-list { border-radius: var(--r-lg); border: 1px solid var(--hairline); }
.unit-card, .area { box-shadow: inset 0 3px 0 var(--subject); }   /* subject accent bar on top of subject cards */
.grade-badge { border-radius: var(--r); }
/* opt-in data tables: <table class="aidemy-table"> */
.aidemy-table { border-collapse: collapse; width: 100%; }
.aidemy-table td, .aidemy-table th { padding: var(--space-sm) var(--space-md); text-align: left; border-top: 1px solid var(--hairline); }
@media (max-width: 600px) { .aidemy-table, .aidemy-table tbody, .aidemy-table tr, .aidemy-table td, .aidemy-table th { display: block; } .aidemy-table thead { position: absolute; left: -9999px; } .aidemy-table td::before { content: attr(data-label); display: block; color: var(--soft); font-size: 13px; } }
/* Reading texts above the exercises (unit.text) */
.reading { padding: 14px 18px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.reading summary { cursor: pointer; font-size: 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; min-height: 32px; }
.reading-kind { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.reading-body { display: grid; gap: 10px; margin-top: 10px; font-size: 17px; line-height: 1.65; max-width: 70ch; }
.reading-body > .speak { justify-self: start; }
.reading-lines { margin: 0; padding-left: 3em; } .reading-lines li { padding-left: .4em; } .reading-lines li::marker { color: var(--soft); font-size: 13px; }
.reading-lines li.gap { list-style: none; height: .8em; }

/* Page for teachers */
.teacher-steps { display: grid; gap: 6px; padding-left: 22px; margin: 0; font-size: 17px; }
.plan-grade h3 { margin: 0 0 6px; font-size: 18px; }
.plan-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.plan-table th, .plan-table td { text-align: left; vertical-align: top; padding: 8px 10px; border-top: 1px solid var(--line); }
.plan-table th { color: var(--soft); font-weight: 600; font-size: 13px; }
.plan-table .link { color: var(--accent); text-decoration: underline; text-align: left; padding: 0; }
.plan-status { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.plan-status.covered { background: color-mix(in srgb, var(--good) 22%, transparent); } .plan-status.partial { background: color-mix(in srgb, var(--accent) 22%, transparent); } .plan-status.missing { background: color-mix(in srgb, var(--bad) 22%, transparent); }
@media (max-width: 640px) { .home-head .corner > .teachers-button { display: inline-flex; align-items: center; padding: 0 10px; font-size: 14px; } }
@media (max-width: 700px) {
  .plan-table thead { display: none; } .plan-table, .plan-table tbody, .plan-table tr, .plan-table td { display: block; width: 100%; }
  .plan-table tr { border-top: 1px solid var(--line); padding: 6px 0; } .plan-table td { border: 0; padding: 3px 0; }
  .plan-table td::before { content: attr(data-label) ': '; color: var(--soft); font-size: 13px; }
}

/* Adaptive layer: 44px targets, wrapping step chips, no clipped titles */
.brand { min-height: 44px; min-width: 44px; }
.speak { width: 44px; height: 44px; margin-left: 0; }
.step-chip { min-height: 44px; border-radius: 22px; }
.ex-steps { flex-wrap: wrap; overflow-x: visible; }
h1 { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 520px) { .lesson-top h1, .lesson-head h1, header h1 { max-width: none; flex: 1 1 100%; } }
.tile { min-width: 44px; }
.unit-heading h1 { white-space: normal; text-overflow: clip; overflow: visible; }
.chip-option { min-width: 44px; min-height: 44px; }
