/* Português para Persas — learner site. Look: design/stitch_v1 (DESIGN.md). Rules: 08_Proposta_Design_App.md.
   Layout: one phone-width column (max 560px), sticky lesson header, fixed bottom nav / bottom action bar. */
@font-face{font-family:'Vazirmatn';src:url(fonts/vazirmatn.woff2) format('woff2');font-weight:100 900;font-display:swap}
@font-face{font-family:'Inter';src:url(fonts/inter-latin.woff2) format('woff2');font-weight:100 900;font-display:swap;
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';src:url(fonts/inter-latin-ext.woff2) format('woff2');font-weight:100 900;font-display:swap;unicode-range:U+0100-024F,U+1E00-1EFF}

:root{
  --bg:#F6F8F7; --surface:#FFFFFF; --surface-2:#EEF4F2; --ink:#14201F; --muted:#56635F; --line:#DCE5E2;
  --primary:#0F766E; --primary-ink:#FFFFFF; --primary-soft:#DDF1EE; --primary-deep:#005C55;
  --accent:#9D431B; --accent-soft:#FBE7DE;
  --ok:#1E7A45; --ok-soft:#E1F4E8; --warn:#8A5A00; --warn-soft:#FFF3D9; --warn-line:#F0C35A;
  --shadow:0 1px 2px rgba(16,40,36,.06),0 4px 16px rgba(16,40,36,.06);
  --fa:'Vazirmatn',Tahoma,'Segoe UI',sans-serif; --pt:'Inter','Segoe UI',Roboto,Arial,sans-serif;
  --r:18px; --r-sm:12px; --nav-h:68px;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#0F1514; --surface:#18201F; --surface-2:#1F2A28; --ink:#E6EFEC; --muted:#9FB2AD; --line:#2B3735;
  --primary:#4FC2B3; --primary-ink:#06211E; --primary-soft:#173A36; --primary-deep:#7FD8CC;
  --accent:#F0A27E; --accent-soft:#3A2419; --ok:#6FD39A; --ok-soft:#173326; --warn:#F4C969; --warn-soft:#33290F; --warn-line:#7A6021;
  --shadow:0 1px 2px rgba(0,0,0,.3); color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#0F1514; --surface:#18201F; --surface-2:#1F2A28; --ink:#E6EFEC; --muted:#9FB2AD; --line:#2B3735;
  --primary:#4FC2B3; --primary-ink:#06211E; --primary-soft:#173A36; --primary-deep:#7FD8CC;
  --accent:#F0A27E; --accent-soft:#3A2419; --ok:#6FD39A; --ok-soft:#173326; --warn:#F4C969; --warn-soft:#33290F; --warn-line:#7A6021;
  --shadow:0 1px 2px rgba(0,0,0,.3); color-scheme:dark}

*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--fa);font-size:1rem;line-height:1.75;direction:rtl;
  -webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}
button{font:inherit;color:inherit;cursor:pointer}
img{max-width:100%;display:block}
/* programmatic focus on a screen's heading after navigation: no ring unless the keyboard is in use */
[tabindex="-1"]:focus:not(:focus-visible){outline:none}
[hidden]{display:none!important}
:focus-visible{outline:3px solid var(--primary);outline-offset:2px;border-radius:10px}
@media (prefers-reduced-motion: reduce){*{animation:none!important;transition:none!important}}

#app{max-width:560px;margin:0 auto;min-height:100%;position:relative}
.screen{padding:16px max(16px,env(safe-area-inset-right,0px)) calc(var(--nav-h) + 28px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));
  display:flex;flex-direction:column;gap:16px}
.screen.lesson{padding-bottom:calc(112px + env(safe-area-inset-bottom,0px))}

/* Portuguese blocks: always their own LTR block */
.pt{font-family:var(--pt);direction:ltr;text-align:left;unicode-bidi:isolate}
.pt-xl{font-size:1.6rem;font-weight:700;line-height:1.35}
.pt-lg{font-size:1.25rem;font-weight:600;line-height:1.4}
.pt-md{font-size:1.06rem;font-weight:600;line-height:1.45}
.fa-sm{font-size:.88rem;color:var(--muted)}
h1,h2,h3{margin:0;line-height:1.5;text-wrap:balance}
h1{font-size:1.4rem;font-weight:800}
h2{font-size:1.15rem;font-weight:800}
h3{font-size:1rem;font-weight:700}
p{margin:0}

.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:16px;box-shadow:var(--shadow);
  display:flex;flex-direction:column;gap:12px;min-width:0}
.card.soft{background:var(--surface-2);box-shadow:none}
.card.tappable{cursor:pointer;text-align:start;width:100%}
.row{display:flex;align-items:center;gap:12px;min-width:0}
.row>.grow{flex:1;min-width:0}
.stack{display:flex;flex-direction:column;gap:8px;min-width:0}
.muted{color:var(--muted)}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:0 20px;border-radius:16px;
  border:0;font-weight:700;font-size:1.02rem}
.btn.primary{background:var(--primary);color:var(--primary-ink)}
.btn.secondary{background:var(--surface);color:var(--primary-deep);border:1.5px solid var(--line)}
.btn.ghost{background:transparent;color:var(--primary-deep);min-height:44px}
.btn.block{width:100%}
.btn:disabled{opacity:.45;cursor:default}
.btn svg{width:22px;height:22px;flex:none}
.icon-btn{width:48px;height:48px;border-radius:50%;border:0;background:var(--surface-2);display:inline-grid;place-items:center;flex:none}
.icon-btn svg{width:24px;height:24px}
.play{width:64px;height:64px;border-radius:50%;border:0;background:var(--primary);color:var(--primary-ink);display:inline-grid;place-items:center;flex:none}
.play svg{width:30px;height:30px}
.play.sm{width:44px;height:44px}
.play.sm svg{width:20px;height:20px}
.play.is-playing{box-shadow:0 0 0 6px var(--primary-soft)}
.play.no-audio{background:var(--surface-2);color:var(--muted)}
.pill{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 16px;border-radius:999px;border:1.5px solid var(--line);
  background:var(--surface);font-weight:600;font-size:.95rem}
.pill svg{width:20px;height:20px}
.pill.on{background:var(--primary-soft);border-color:var(--primary);color:var(--primary-deep)}
.chip{display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border-radius:999px;background:var(--surface-2);font-size:.88rem;font-weight:600;border:0}
.chip.on{background:var(--primary);color:var(--primary-ink)}

/* bottom nav */
.nav{position:fixed;inset:auto 0 0 0;z-index:20;background:var(--surface);border-top:1px solid var(--line);
  padding:6px max(8px,env(safe-area-inset-right,0px)) calc(6px + env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px))}
.nav-in{max-width:560px;margin:0 auto;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:2px}
.nav button{border:0;background:transparent;display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 2px;border-radius:14px;
  font-size:.78rem;font-weight:600;color:var(--muted);min-height:56px}
.nav button svg{width:24px;height:24px}
.nav button.on{color:var(--primary-deep)}
.nav button.on .ico{background:var(--primary-soft)}
.nav .ico{display:grid;place-items:center;width:48px;height:30px;border-radius:999px}

/* home */
.hello{display:flex;align-items:center;gap:12px}
.avatar{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:1.25rem;flex:none;
  background:var(--primary-soft);color:var(--primary-deep);border:0}
.hero{padding:0;overflow:hidden}
.hero .body{padding:16px;display:flex;flex-direction:column;gap:12px}
/* every course image is 16:9 (Firefly); the box keeps that ratio, so nothing is ever cut off (Hamid, 2 Nov 2026) */
.media{aspect-ratio:16/9;width:100%;max-width:100%;height:auto;background:linear-gradient(135deg,var(--primary-soft),var(--accent-soft));object-fit:cover}
.bar{height:8px;border-radius:99px;background:var(--surface-2);overflow:hidden}
.bar>i{display:block;height:100%;background:var(--primary);border-radius:99px}
.offline{align-self:center;display:inline-flex;align-items:center;gap:6px;font-size:.82rem;color:var(--ok);background:var(--ok-soft);
  padding:4px 12px;border-radius:999px}
.offline svg{width:16px;height:16px}
.tile-ico{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;flex:none;background:var(--accent-soft);color:var(--accent)}
.tile-ico svg{width:22px;height:22px}

/* lessons path */
.unit-h{padding:4px 2px 0}
.path{display:flex;flex-direction:column;gap:10px;position:relative}
.node{display:flex;align-items:center;gap:12px;width:100%;text-align:start;border:1px solid var(--line);background:var(--surface);
  border-radius:var(--r);padding:12px 14px;min-height:64px}
.node .dot{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;flex:none;background:var(--surface-2);color:var(--muted);font-weight:700;font-size:.9rem}
.node.done .dot{background:var(--primary);color:var(--primary-ink)}
.node.current{border:2px solid var(--primary);box-shadow:var(--shadow)}
.node.current .dot{background:var(--primary-soft);color:var(--primary-deep)}
.node.later{opacity:.72}
.node .dot svg{width:20px;height:20px}

/* lesson header */
.lhead{position:sticky;top:env(safe-area-inset-top,0px);z-index:15;background:var(--bg);margin:-16px -16px 0;padding:10px 16px 8px;
  display:flex;flex-direction:column;gap:6px;border-bottom:1px solid var(--line)}
.lhead .row{gap:10px}
.steps{display:flex;gap:6px;flex:1}
.steps i{flex:1;height:6px;border-radius:99px;background:var(--line)}
.steps i.on{background:var(--primary)}
.steps .stepseg{flex:1;min-width:0;display:flex;align-items:center;border:0;background:none;margin:0;padding:14px 0;cursor:pointer;border-radius:8px}
.steps .stepseg:hover i,.steps .stepseg:focus-visible i{height:10px}
.steps .stepseg[aria-current] i{height:10px}
.stepper{display:flex;flex-direction:row;gap:4px;margin:8px 0 4px}
.stepper .stp{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:3px;border:0;background:none;margin:0;padding:6px 2px;border-radius:12px;cursor:pointer;color:var(--muted);font:inherit;font-size:.74rem;line-height:1.35}
.stepper .stp .dot{width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:2px solid var(--line);font-size:.8rem;font-weight:700}
.stepper .stp .dot svg{width:15px;height:15px}
.stepper .stp .lbl{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stepper .stp.done .dot{background:var(--primary);border-color:var(--primary);color:var(--surface)}
.stepper .stp.cur{background:var(--primary-soft);color:inherit;font-weight:700}
.stepper .stp.cur .dot{border-color:var(--primary);color:var(--primary)}
.pathcard .prow{display:flex;flex-direction:row;gap:6px;align-items:stretch;margin:8px 0}
.pathcard .pnode{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:4px;border:1px solid var(--line);background:none;border-radius:14px;padding:10px 6px;margin:0;font:inherit;color:var(--muted);cursor:pointer;text-align:center}
.pathcard .pnode.none{cursor:default;border-style:dashed}
.pathcard .pdot{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:2px solid var(--line);font-weight:700;font-size:.85rem}
.pathcard .pdot svg{width:16px;height:16px}
.pathcard .plbl{font-size:.72rem}
.pathcard .ptitle{font-size:.82rem;font-weight:600;color:inherit;max-width:100%;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.pathcard .pnode.done .pdot{background:var(--primary);border-color:var(--primary);color:var(--surface)}
.pathcard .pnode.cur{border-color:var(--primary);background:var(--primary-soft);color:inherit}
.pathcard .pnode.cur .pdot{border-color:var(--primary);color:var(--primary)}
html[dir="ltr"] svg.ic-fwd,html[dir="ltr"] svg.ic-back{transform:scaleX(-1)}
.lhead .t{font-size:.8rem;color:var(--muted);text-align:center}
.actionbar{position:fixed;inset:auto 0 0 0;z-index:20;background:var(--bg);border-top:1px solid var(--line);
  padding:10px max(16px,env(safe-area-inset-right,0px)) calc(10px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px))}
.actionbar .in{max-width:528px;margin:0 auto;display:flex;gap:10px}
.actionbar .in .btn.primary{flex:1}

/* sentence card */
.scard{align-items:stretch}
.scard .top{display:flex;justify-content:space-between;align-items:center}
.ptbox{border-inline-end:4px solid var(--primary);background:var(--surface-2);border-radius:var(--r-sm);padding:14px 16px}
.controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.pronbox{background:var(--accent-soft);border-radius:var(--r-sm);padding:10px 14px;font-weight:600;color:var(--accent)}
.dots{display:flex;gap:6px;justify-content:center}
.dots i{width:8px;height:8px;border-radius:50%;background:var(--line)}
.dots i.on{background:var(--primary);width:20px;border-radius:99px}
.note{font-size:.9rem;color:var(--muted)}

/* dialogue */
.bubble{max-width:88%;display:flex;flex-direction:column;gap:6px}
.bubble.a{align-self:flex-start}
.bubble.b{align-self:flex-end}
.bubble .who{font-size:.82rem;font-weight:700;color:var(--muted)}
.bubble .in{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:12px 14px;display:flex;flex-direction:column;gap:6px}
.bubble.b .in{background:var(--primary-soft);border-color:transparent}
.bubble.now .in{outline:2px solid var(--primary)}
.bubble .in .row{align-items:flex-start}
.audiobar{position:fixed;inset:auto 0 calc(76px + env(safe-area-inset-bottom,0px)) 0;z-index:19;pointer-events:none}
.audiobar .in{pointer-events:auto;max-width:528px;margin:0 auto;background:var(--surface);border:1px solid var(--line);border-radius:999px;box-shadow:var(--shadow);
  display:flex;align-items:center;gap:8px;padding:6px 8px}
.screen.lesson.has-audiobar{padding-bottom:calc(180px + env(safe-area-inset-bottom,0px))}

/* exercises */
.opts{display:flex;flex-direction:column;gap:10px}
.opt{display:flex;align-items:center;gap:12px;width:100%;min-height:58px;padding:10px 16px;border-radius:16px;border:1.5px solid var(--line);
  background:var(--surface);text-align:start;font-weight:600}
.opt .r{width:22px;height:22px;border-radius:50%;border:2px solid var(--line);flex:none}
.opt.sel{border-color:var(--primary);background:var(--primary-soft)}
.opt.sel .r{border-color:var(--primary);background:radial-gradient(var(--primary) 45%,transparent 50%)}
.opt.good{border-color:var(--ok);background:var(--ok-soft)}
.opt.bad{border-color:var(--warn-line);background:var(--warn-soft)}
.opt.done{opacity:.55}
.match{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.match .col{display:flex;flex-direction:column;gap:10px;min-width:0}
.match .opt{min-height:64px;padding:10px 12px;font-size:.95rem}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.wchip{min-height:48px;padding:6px 14px;border-radius:14px;border:1.5px solid var(--line);background:var(--surface);font-family:var(--pt);direction:ltr;font-weight:600}
.wchip.used{visibility:hidden}
.answer{min-height:64px;border:2px dashed var(--line);border-radius:16px;padding:8px;display:flex;flex-direction:column;gap:8px;direction:ltr}
.answer .wchip{text-align:left}
.blank{display:inline-block;min-width:4.5em;border-bottom:2px solid var(--primary);text-align:center;padding:0 4px;color:var(--primary-deep)}

/* bottom sheet */
.sheet-wrap{position:fixed;inset:0;z-index:40;display:flex;align-items:flex-end;justify-content:center;background:rgba(10,20,18,.25)}
.sheet{width:100%;max-width:560px;border-radius:24px 24px 0 0;padding:14px max(16px,env(safe-area-inset-right,0px)) calc(16px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));
  display:flex;flex-direction:column;gap:12px;animation:up .22s ease-out}
.sheet::before{content:"";align-self:center;width:44px;height:5px;border-radius:9px;background:currentColor;opacity:.2}
.sheet.good{background:var(--ok-soft);color:var(--ok)}
.sheet.bad{background:var(--warn-soft);color:var(--warn)}
.sheet p{color:var(--ink)}
.sheet .btn.primary{background:var(--ok);color:#fff}
.sheet.bad .btn.primary{background:var(--primary);color:var(--primary-ink)}
@keyframes up{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}

/* accordion */
details.more{background:var(--surface);border:1px solid var(--line);border-radius:var(--r)}
details.more>summary{list-style:none;cursor:pointer;padding:14px 16px;font-weight:700;display:flex;align-items:center;justify-content:space-between;min-height:52px}
details.more>summary::-webkit-details-marker{display:none}
details.more>summary svg{width:20px;height:20px;transition:transform .2s}
details.more[open]>summary svg{transform:rotate(180deg)}
details.more>.in{padding:0 16px 16px;display:flex;flex-direction:column;gap:12px}
.line{display:flex;align-items:center;gap:10px;padding:8px 0;border-top:1px solid var(--line)}
.line:first-child{border-top:0}
.line .grow{flex:1;min-width:0}

/* pocket card */
.pocket{background:var(--surface);border:2px dashed var(--line);border-radius:var(--r);padding:12px;display:flex;flex-direction:column;gap:8px}
.pocket .line{border:1px solid var(--line);border-radius:14px;padding:10px 12px}
.check{display:flex;align-items:flex-start;gap:10px;padding:8px 0}
.check input{width:24px;height:24px;margin-top:2px;accent-color:var(--primary);flex:none}

/* complete */
.leaf{width:120px;height:120px;border-radius:50%;margin:24px auto 0;display:grid;place-items:center;background:var(--primary-soft);color:var(--primary)}
.leaf svg{width:56px;height:56px}
.cando{display:flex;gap:10px;align-items:flex-start}
.cando svg{width:22px;height:22px;color:var(--ok);flex:none;margin-top:3px}

/* who */
.people{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.person{display:flex;flex-direction:column;align-items:center;gap:10px;padding:20px 12px;border-radius:var(--r);border:1px solid var(--line);background:var(--surface);min-height:150px;justify-content:center}
.person .avatar{width:72px;height:72px;font-size:1.8rem}
.person.add{border-style:dashed;background:transparent}
.field{display:flex;flex-direction:column;gap:6px}
.field input{min-height:52px;border-radius:14px;border:1.5px solid var(--line);background:var(--surface);color:var(--ink);padding:0 14px;font:inherit}
.field input:focus{border-color:var(--primary)}
.field input:focus-visible,.search input:focus-visible{outline:3px solid var(--primary);outline-offset:2px}

/* phrases */
.search{display:flex;align-items:center;gap:8px;border:1.5px solid var(--line);border-radius:14px;background:var(--surface);padding:0 12px;min-height:52px}
.search input{flex:1;border:0;background:transparent;font:inherit;color:var(--ink);min-width:0}
.search:focus-within{border-color:var(--primary)}
.search svg{width:22px;height:22px;color:var(--muted)}
.prow{display:flex;flex-direction:column;gap:8px}
.staff{position:fixed;inset:0;z-index:50;background:var(--surface);display:flex;flex-direction:column;justify-content:center;gap:24px;
  padding:24px max(24px,env(safe-area-inset-right,0px)) calc(24px + env(safe-area-inset-bottom,0px)) max(24px,env(safe-area-inset-left,0px))}
.staff .pt{font-size:2.3rem;font-weight:800;line-height:1.25}
.staff .x{position:absolute;top:calc(12px + env(safe-area-inset-top,0px));inset-inline-start:12px}

/* progress */
.week{display:flex;justify-content:space-between;gap:4px}
.week .d{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:.8rem;color:var(--muted)}
.week .d i{width:34px;height:34px;border-radius:50%;background:var(--surface-2);display:grid;place-items:center}
.week .d i.on{background:var(--primary);color:var(--primary-ink)}
.week .d i svg{width:18px;height:18px}

.toast{position:fixed;inset:auto 16px calc(var(--nav-h) + 24px + env(safe-area-inset-bottom,0px)) 16px;z-index:60;display:flex;justify-content:center;pointer-events:none}
.toast span{background:var(--ink);color:var(--bg);padding:10px 16px;border-radius:14px;font-size:.92rem;max-width:520px}
.row>svg{width:22px;height:22px;flex:none;color:var(--muted)}
.story .body{padding:12px 16px 14px}
.linkbtn{border:0;background:none;padding:0;color:var(--primary-deep);font-weight:700}
/* karaoke: the word being spoken lights up and the light moves word by word */
.pt .w{border-radius:6px;padding:0 2px;margin:0 -2px;transition:background-color .12s ease,color .12s ease;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.pt .w.on{background:var(--accent);color:#fff}
.pt .w.past{color:var(--primary-deep)}
@media (prefers-reduced-motion: reduce){.pt .w{transition:none}}
/* role-play */
.rp .chips .chip{min-height:44px}
.bubble.turn .in{outline:3px solid var(--accent);background:var(--accent-soft)}
.bubble.masked .pt{filter:blur(7px);user-select:none}
.countdown{display:flex;flex-direction:column;gap:6px;color:var(--accent);font-weight:700;font-size:.92rem}
.countdown i{display:block;height:6px;border-radius:9px;background:var(--accent);transform-origin:left;animation:shrink linear forwards}
@keyframes shrink{from{transform:scaleX(1)}to{transform:scaleX(0)}}
/* review */
.card.due{border:2px solid var(--accent)}
.badge{min-width:32px;height:32px;padding:0 8px;border-radius:999px;background:var(--accent);color:#fff;display:grid;place-items:center;font-weight:800}

/* round 4 (external review): status tags, downloads, alphabet and syllables, reference, settings, hidden translation */
.tags{display:flex;flex-wrap:wrap;gap:6px}
.tag{display:inline-flex;align-items:center;min-height:24px;padding:0 9px;border-radius:999px;font-size:.76rem;font-weight:700;background:var(--surface-2);color:var(--muted);vertical-align:middle}
.tag.part{background:var(--warn-soft);color:var(--warn)}
.tag.good{background:var(--primary-soft);color:var(--primary-deep)}
.tag.lv-own{background:var(--ok-soft);color:var(--ok)}
.tag.lv-help{background:var(--primary-soft);color:var(--primary-deep)}
.tag.lv-more{background:var(--warn-soft);color:var(--warn)}
.dl{display:flex;flex-direction:column;gap:8px}
.dl .ok{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--ok-soft);color:var(--ok);flex:none}
.dl .ok svg{width:18px;height:18px}
.btn.sm{min-height:40px;padding:0 14px;font-size:.9rem}
.btn.danger{color:var(--accent)}
.fa-lg{font-size:1.15rem;font-weight:700}
.sec-h{padding-top:8px}
.alpha{direction:ltr;display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:8px}
.alpha .tile{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 4px;border-radius:14px;border:1.5px solid var(--line);background:var(--surface);min-height:72px}
.alpha .tile.vowel{border-color:var(--accent);background:var(--accent-soft)}
.alpha .big{font-family:var(--pt);font-size:1.35rem;font-weight:700;line-height:1.2}
.syl-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%}
table.syl{border-collapse:separate;border-spacing:4px;direction:ltr;margin:0 auto}
table.syl th{font-family:var(--pt);color:var(--muted);font-size:.9rem;padding:2px 6px}
table.syl .wchip{min-width:48px}
.src{display:flex;flex-direction:column;gap:4px;padding:10px 0;border-top:1px solid var(--line)}
.srclink{font-family:var(--pt);font-size:.85rem;color:var(--primary-deep);overflow-wrap:anywhere;word-break:normal;text-align:left;direction:ltr;display:block;max-width:100%}
.pt.saying{background:var(--primary-soft);border-radius:8px;box-shadow:0 0 0 4px var(--primary-soft)}
.hide-tr .tr{filter:blur(6px);cursor:pointer;user-select:none;transition:filter .2s}
.hide-tr .tr.show{filter:none}
.pocket.hidden-model .pt{filter:blur(7px)}
.countdown.manual{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between}
.cando.lv-1 svg{color:var(--primary)}
.cando.lv-0 svg{color:var(--muted)}

/* tablet and desktop: use the space instead of a phone column everywhere */
@media (min-width:760px){
  #app{max-width:760px}
  .nav-in{max-width:760px}
  .actionbar .in,.audiobar .in{max-width:728px}
  .sheet{max-width:640px;border-radius:24px 24px 0 0}
  .bubble{max-width:72%}
  .people{grid-template-columns:repeat(3,1fr)}
  .pt-xl{font-size:2rem}
}
@media (min-width:1100px){
  #app{max-width:960px}
  .nav-in{max-width:960px}
  .actionbar .in,.audiobar .in{max-width:928px}
}

/* Familiar, task-first layout (October 2026). Shared controls keep their labels. */
:root{--shadow:0 2px 8px rgba(16,40,36,.035)}
.row,.controls{flex-wrap:wrap}
.grow{min-width:0}
.card{gap:14px}
.chip,.pill,.btn.sm{min-height:48px}
.chip{padding:8px 14px}
.icon-btn.labeled{width:auto;min-width:48px;min-height:48px;height:auto;border-radius:12px;display:inline-flex;gap:6px;padding:8px 12px;font-size:.88rem;font-weight:600}
.icon-btn.labeled svg{width:20px;height:20px;flex:none}
.play,.play.sm{width:auto;min-width:88px;height:52px;border-radius:14px;display:inline-flex;justify-content:center;gap:8px;padding:0 14px;font-size:1rem;font-weight:700}
.play svg,.play.sm svg{width:22px;height:22px;flex:none}
.bubble .in .row{flex-direction:column;align-items:stretch}
.bubble .play{align-self:flex-start}
.person-switch{border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:.8rem;min-height:64px;padding:0;color:var(--primary-deep)}
.person-switch .avatar{width:40px;height:40px;font-size:1.1rem}
.hello{align-items:flex-start}
.hello .grow{flex:1}
.hello h1{font-size:1.25rem;text-wrap:wrap;overflow-wrap:anywhere}
.home-screen .hero>.body{gap:10px}
.home-screen .hero .body>.pt{display:none}
.hero details.more{box-shadow:none;border:0;background:var(--surface-2)}
.hero details.more>summary{font-size:.9rem;min-height:48px;padding:8px 12px}
.home-screen .hero .bar{height:6px}
.node.later{opacity:1}
.node .grow{text-align:start}
.chapter>.in{padding:0 12px 12px}
.chapter>summary{gap:12px}
.chapter .path{gap:8px}
.chapter[open]>summary{color:var(--primary-deep)}
.story>.in>.media{border-radius:12px}
.story>summary{font-size:.9rem;min-height:48px;padding:10px 16px}
.scard .top{gap:8px}
.scard .controls{gap:8px}
.ptbox{padding:12px}
.lhead .steps{min-width:48px}
.lhead .row{flex-wrap:nowrap}
.lhead .icon-btn.labeled{max-width:118px;padding:8px;font-size:.8rem;gap:4px}
.screen.lesson{gap:12px}
.field select{font:inherit;color:var(--ink);background:var(--surface);border:1.5px solid var(--line);border-radius:14px;min-height:52px;padding:8px 12px;max-width:100%;width:100%}
.search input{min-height:48px}
.linkbtn{min-height:48px;padding:8px 4px}
.prow .controls{gap:8px}
.prow .controls .labeled{font-size:.85rem}
.check{min-height:48px;cursor:pointer}
.sheet.good .btn.primary{background:var(--primary);color:var(--primary-ink)}
/* Ensure text on the warm accent remains readable in dark mode too. */
.badge,.pt .w.on{color:var(--surface)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .badge,:root:not([data-theme="light"]) .pt .w.on{color:#14201F}}
:root[data-theme="dark"] .badge,:root[data-theme="dark"] .pt .w.on{color:#14201F}
@media (max-width:359px){
  .screen{padding-inline:12px}
  .lhead{margin-inline:-12px;padding-inline:12px}
  .scard{padding:12px}
  .scard .controls{gap:6px}
  .scard .pill{padding-inline:10px}
  .scard .play{min-width:80px;padding-inline:10px}
  .pt-xl{font-size:1.45rem}
  .nav button{font-size:.72rem}
}
@media (min-width:760px){
  .home-screen .hero{display:grid;grid-template-columns:minmax(0,1fr) 300px;align-items:stretch}
  .home-screen .hero>.media{grid-column:2;grid-row:1;width:100%;align-self:center}
  .home-screen .hero>.body{grid-column:1;grid-row:1;min-width:0}
  .home-screen .hero .body>.pt{display:block}
  .screen.lesson{max-width:760px;margin-inline:auto}
  .actionbar .in,.audiobar .in{max-width:728px}
}
@media (min-width:1100px){
  body.has-nav #app{max-width:860px;margin-left:auto;margin-right:calc(220px + (100vw - 1100px)/2)}
  body.has-nav .screen{padding-bottom:32px}
  .nav{inset:0 0 0 auto;width:220px;border-top:0;border-left:1px solid var(--line);padding:48px 16px}
  .nav-in{display:flex;flex-direction:column;gap:12px;max-width:none}
  .nav button{flex-direction:row;justify-content:flex-start;gap:12px;padding:10px 12px;font-size:1rem;min-height:56px}
  .nav .ico{width:36px;height:36px;flex:none}
  .nav button.on{background:var(--primary-soft)}
  .actionbar .in,.audiobar .in{max-width:728px}
}
.story-intro{display:flex;flex-direction:column;gap:6px}
/* the story image is shown whole, full width, above its lead sentence (no more 56-px thumbnail) */
.story-teaser{display:flex;flex-direction:column;gap:8px;padding:0}
.story-teaser>.media{border-radius:12px}
.story-lead{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.6}
@media (min-width:760px){.home-screen .hero.no-media{grid-template-columns:1fr}}

/* Course-player layout (2 Nov 2026): outline beside the lesson, today's goal, the «عمیق‌تر شو» row. Rules: design/revisao_interface_2026-11-02.md */
.course-pct{display:flex;flex-direction:column;gap:6px}
.course-pct strong{font-size:.9rem;color:var(--primary-deep)}
.course-pct .bar{height:6px}
.goal{display:flex;flex-direction:column;gap:8px;padding:10px 12px;border-radius:var(--r-sm);background:var(--surface-2)}
.goal.card{background:var(--surface);padding:16px}
.goal .goal-ico{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;flex:none;background:var(--accent-soft);color:var(--accent)}
.goal .goal-ico svg{width:20px;height:20px}
.goal.done .goal-ico{background:var(--ok-soft);color:var(--ok)}
.goal .bar{height:6px}
.goal.done .bar>i{background:var(--ok)}
.goal-card{gap:12px}
.goal-card .goal{background:transparent;padding:0}
.outline{display:flex;flex-direction:column;gap:12px}
.ohead{display:flex;flex-direction:column;gap:10px}
.ohead h2{font-size:1.05rem}
.ochapter>summary{font-size:.95rem;min-height:48px;padding:10px 12px;gap:8px}
.ochapter>summary>span{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ochapter>.in{padding:0 8px 8px}
.olist{display:flex;flex-direction:column;gap:4px}
.oitem{display:flex;align-items:center;gap:10px;width:100%;text-align:start;border:0;background:transparent;border-radius:12px;padding:8px 8px;min-height:56px}
.oitem strong{font-size:.95rem;line-height:1.4}
.oitem .odot{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;flex:none;background:var(--surface-2);color:var(--muted);font-weight:700;font-size:.85rem;border:2px solid transparent}
.oitem .odot svg{width:16px;height:16px}
.oitem.done .odot{background:var(--primary);color:var(--primary-ink)}
.oitem.started .odot{border-color:var(--primary);background:linear-gradient(90deg,var(--primary) 50%,var(--surface-2) 50%);color:var(--primary-deep)}
.oitem.current{background:var(--primary-soft)}
.oitem.current .odot{border-color:var(--primary);background:var(--surface);color:var(--primary-deep)}
.oitem.current strong{color:var(--primary-deep)}
.oparts{display:flex;flex-direction:column;gap:2px;margin:0 0 6px 0;padding-inline-start:12px;border-inline-start:2px solid var(--primary-soft)}
.opart{display:flex;align-items:center;gap:10px;width:100%;text-align:start;border:0;background:transparent;border-radius:12px;padding:6px 8px;min-height:52px}
.opart .pico{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;flex:none;background:var(--surface-2);color:var(--muted)}
.opart .pico svg{width:18px;height:18px}
.opart .pname{font-weight:700;font-size:.92rem}
.opart.done .pico{background:var(--ok-soft);color:var(--ok)}
.opart.now{background:var(--surface);box-shadow:inset 0 0 0 2px var(--primary)}
.opart.now .pico{background:var(--primary);color:var(--primary-ink)}
/* the drawer (phone and tablet): slides in from the start side, the page behind is inert */
.outline-drawer{position:fixed;inset:0;z-index:45;background:rgba(10,20,18,.35);display:flex;justify-content:flex-start}
.outline-drawer .drawer{width:min(360px,92vw);height:100%;overflow:auto;background:var(--bg);display:flex;flex-direction:column;gap:12px;
  padding:calc(10px + env(safe-area-inset-top,0px)) 12px calc(16px + env(safe-area-inset-bottom,0px));animation:slide .22s ease-out;box-shadow:var(--shadow)}
.drawer .dhead{position:sticky;top:0;background:var(--bg);padding:4px 0 8px;z-index:1}
@keyframes slide{from{transform:translateX(30%);opacity:0}to{transform:none;opacity:1}}
.outline-side{display:none}
/* the «عمیق‌تر شو» row under every part: three fixed buttons, one open panel */
.deeper{display:flex;flex-direction:column;gap:10px;padding-top:4px}
.deeper .pill{gap:8px}
.deeper-panel{margin-top:2px}
@media (max-width:420px){.lhead .outline-btn span{display:none}.lhead .outline-btn{width:48px;min-width:48px;padding:8px;border-radius:50%}}
@media (min-width:1100px){
  .lhead .outline-btn{display:none}
  /* the column sits on the start side (the right, in the Persian edition), like the lesson list of a course player */
  .outline-side{display:block;position:fixed;top:0;bottom:0;inset-inline-start:0;inset-inline-end:auto;width:340px;overflow:auto;background:var(--surface);
    border-inline-end:1px solid var(--line);padding:20px 16px 32px;z-index:14}
  body.has-outline #app{max-width:none;margin-inline-start:340px;margin-inline-end:0}
  body.has-outline .screen.lesson{max-width:760px;margin-inline:auto}
  body.has-outline .actionbar,body.has-outline .audiobar{inset-inline-start:340px}
  body.has-outline .toast{inset-inline-start:356px}
  body.has-outline .sheet-wrap{inset-inline-start:340px}
}

/* ---------- alphabet and pronunciation (pron.js) ---------- */
.pron{display:flex;flex-direction:column;gap:12px;margin-top:8px;min-width:0}
.pn-tabs{display:flex;gap:8px;overflow-x:auto;padding:2px 0 8px;scrollbar-width:thin}.pn-tabs .chip{flex:none;cursor:pointer;color:var(--ink);font-family:inherit}.pn-tabs .chip.on{color:var(--primary-ink)}
.pn-h2{font-size:1.25rem;margin:4px 0 0;color:var(--primary-deep)}
.pn-hd{direction:ltr;text-align:left;font-family:var(--pt);font-size:1.8rem;font-weight:700;color:var(--primary);line-height:1.2}
.pn-row{display:flex;align-items:center;gap:8px;padding:8px 0;border-top:1px solid var(--line)}.pn-row:first-child{border-top:0}
.pn-pl,.pn-sl{flex:none;width:48px;height:48px;border-radius:14px;border:0;display:flex;align-items:center;justify-content:center;cursor:pointer;font-family:inherit}
.pn-pl{background:var(--primary);color:var(--primary-ink)}.pn-pl svg{width:24px;height:24px}.pn-pl.on{background:var(--accent);color:#fff}
.pn-sl{background:var(--primary-soft);color:var(--primary-deep);font-size:.8rem;font-weight:600}
.pn-w{flex:1;min-width:0}.pn-pt{direction:ltr;text-align:left;font-family:var(--pt);font-size:1.25rem;font-weight:600;display:block;unicode-bidi:isolate}
.pn-pr{color:var(--primary-deep);font-size:.92rem}.pn-mn{color:var(--muted);font-size:.92rem}
.pn-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:8px;direction:ltr}
.pn-lt{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:14px;padding:8px 4px;text-align:center;min-height:76px;cursor:pointer;font-family:inherit}
.pn-lt b{display:block;font-family:var(--pt);font-size:1.3rem}.pn-lt span{display:block;font-size:.85rem;color:var(--muted);direction:rtl}
.pn-lt.v{background:var(--accent-soft)}.pn-lt.on{outline:3px solid var(--primary)}
.pn-hint{margin-top:10px;min-height:2em;color:var(--primary-deep)}
.pn-qz{background:var(--warn-soft);border-color:var(--warn-line)}.pn-qz h3{margin:0 0 8px;font-size:1.1rem}
.pn-q{padding:8px 0;border-top:1px solid var(--warn-line)}.pn-q:first-of-type{border-top:0}
.pn-qo{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.pn-op{border:2px solid var(--line);background:var(--surface);color:var(--ink);border-radius:14px;padding:6px 14px;min-height:52px;text-align:center;cursor:pointer;font-family:inherit}
.pn-op .pn-pt{font-size:1.15rem;text-align:center}.pn-op .pn-mn{display:block;font-size:.8rem}
.pn-op.ok{border-color:var(--ok);background:var(--ok-soft)}.pn-op.no{border-color:var(--accent);background:var(--accent-soft)}
.pn-fb{font-size:.92rem;color:var(--primary-deep);min-height:1.7em}
.pn-nx{display:flex;gap:10px;margin-top:6px}.pn-nx .btn{flex:1}

/* ---------- classroom mode ---------- */
body.is-classe #app{max-width:1200px}
.cl-card{align-items:center;text-align:center;padding:clamp(20px,5vw,56px);gap:18px}
.cl-pt{font-family:var(--pt);direction:ltr;font-weight:700;font-size:clamp(2rem,6.5vw,5rem);line-height:1.25;margin:0;unicode-bidi:isolate}
.cl-fa{font-size:clamp(1.2rem,3vw,2.2rem);color:var(--muted)}.cl-fa p{margin:0}.cl-pron{color:var(--accent)}
.cl-play{display:flex;justify-content:center}.cl-ctl{gap:10px;flex-wrap:wrap}

.cl-card.cl-left{align-items:stretch;text-align:start}.cl-kind{color:var(--primary-deep);font-weight:700;margin:0}
.cl-img{max-height:46vh;width:auto;margin:0 auto;border-radius:var(--r-sm);aspect-ratio:16/9;object-fit:cover}
.cl-txt{font-size:clamp(1.15rem,2.4vw,1.9rem);margin:0;line-height:1.8}.cl-q{color:var(--primary-deep);font-weight:600}.cl-chk{font-size:clamp(1rem,2vw,1.5rem)}
.cl-line{display:flex;gap:12px;align-items:center;padding:8px 0;border-top:1px solid var(--line)}.cl-line .grow{min-width:0}
.cl-lpt{font-family:var(--pt);direction:ltr;text-align:left;font-size:clamp(1.3rem,3.2vw,2.4rem);font-weight:600;margin:0;line-height:1.35;unicode-bidi:isolate}
.cl-lfa{margin:0;color:var(--muted);font-size:clamp(1rem,2vw,1.5rem)}.cl-who{display:block;text-align:left;color:var(--accent);font-weight:700}
/* ---------- printable handout ---------- */
.au-ico{display:flex;justify-content:center;gap:clamp(12px,4vw,48px);flex-wrap:wrap}.au-ico svg{width:clamp(96px,17vw,190px);height:auto;fill:none;stroke:var(--primary-deep);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.au-ico .ac{stroke:var(--accent)}.au-ico .f{fill:var(--primary-soft)}
.au-doc{margin-bottom:14px;padding:clamp(14px,3vw,32px)}.au-doc .cl-pt{font-size:clamp(1.6rem,4.2vw,3.2rem)}.au-doc .cl-img{max-height:34vh}
.gr-txt{margin:0;line-height:2}.gr-tt{margin:8px 0 0;font-weight:700;color:var(--primary-deep)}.gr-tab{border:1px solid var(--line);border-radius:var(--r-sm);overflow:hidden}.gr-tab .gr-tt{margin:0;padding:6px 12px;background:var(--primary-soft)}
.gr-row{display:flex;gap:10px;align-items:center;padding:6px 12px;border-top:1px solid var(--line);direction:ltr}.gr-pt{font-family:var(--pt);font-weight:600;font-size:1.1rem;flex:1 1 50%;text-align:left;unicode-bidi:isolate}.gr-fa{flex:1 1 50%;direction:rtl;text-align:right;color:var(--muted)}
.gr-duo{display:grid;grid-template-columns:1fr 1fr;gap:10px}@media(max-width:640px){.gr-duo{grid-template-columns:1fr}}.gr-item{border-top:1px solid var(--line);padding:8px 0}.gr-q{font-family:var(--pt);font-size:1.15rem;margin:0;text-align:left;unicode-bidi:isolate}.gr-gap{color:var(--accent)}.gr-ok{color:var(--primary-deep);text-decoration:underline}
.gr-op{font-family:var(--pt);font-size:1.05rem;border:2px solid var(--line);background:transparent;color:inherit;border-radius:999px;padding:4px 18px;cursor:pointer;min-height:40px}.gr-op.ok{border-color:var(--primary-deep);background:var(--primary-soft)}.gr-op.no{border-color:var(--accent);opacity:.55;text-decoration:line-through}.gr-conv{border-top:1px solid var(--line);padding:6px 0}
.au-log{color:var(--accent);font-weight:600}
.au-secs{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 8px}.au-sec{border:1px solid var(--line);background:transparent;color:inherit;border-radius:999px;padding:2px 12px;font:inherit;font-size:.85rem;cursor:pointer}.au-sec.on{background:var(--primary-deep);color:var(--bg,#fff);border-color:var(--primary-deep)}
.au-cue{font-size:clamp(2.4rem,7vw,5rem);text-align:center;margin:0;line-height:1.2}.au-bigfa{font-size:clamp(1.6rem,4.5vw,3.4rem);font-weight:700;text-align:center;margin:0;color:var(--primary-deep)}
.au-resp{border:2px solid var(--primary-deep);border-radius:var(--r-sm);padding:6px 14px;margin-top:6px;background:rgba(15,118,110,.08);gap:10px}.au-resp .cl-line:first-child{border-top:0}.au-resp .cl-lpt{text-align:center!important}.classe .cl-kind{font-size:1.05rem}
.au-ops{display:flex;gap:10px;flex-wrap:wrap;direction:ltr;justify-content:flex-start;margin-top:4px}.au-op{font-family:var(--pt);font-size:clamp(1.05rem,2.2vw,1.7rem);border:2px solid var(--line);border-radius:999px;padding:0 16px}
.au-quadro{width:100%;min-height:84px;font-family:var(--pt);direction:ltr;text-align:left;font-size:clamp(1.2rem,2.6vw,2rem);border:2px dashed var(--line);border-radius:var(--r-sm);padding:10px;background:transparent;color:inherit;resize:vertical}
.au-quadro::placeholder{font-family:inherit;direction:rtl;text-align:right;font-size:1rem}.au-badge{display:inline-block;background:var(--accent);color:#fff;border-radius:999px;padding:0 10px;font-size:.85rem;margin-inline-start:8px}.au-n{flex:none;font-weight:700;color:var(--muted);min-width:1.4em}
.fo-page{background:#fff;color:#111;border:1px solid var(--line);border-radius:12px;padding:24px;line-height:1.9}
.fo-page h2{margin:0;font-size:1.4rem}.fo-page h3{margin:16px 0 4px;font-size:1.05rem;border-bottom:1px solid #999}.fo-page p{margin:2px 0}
.fo-pt{font-family:var(--pt);text-align:left;unicode-bidi:isolate}.fo-t{width:100%;border-collapse:collapse;margin-top:8px}.fo-t td{border:1px solid #999;padding:5px 8px;vertical-align:top}
.fo-line{border-bottom:1px solid #999;height:34px}
@media print{.no-print,.nav,.toast,.ct{display:none!important}body,html{background:#fff!important}#app{max-width:none!important}.screen{padding:0!important}.fo-page{border:0;padding:0}}
/* one sheet = one A4 page (audit 08-010): the same compact sizes on paper and in the hidden box where app.js measures the sheet (foCabe) */
@page{size:A4;margin:10mm}
.fo-voc{columns:2;column-gap:10mm}.fo-voc p{break-inside:avoid}
.fo-print .fo-page{border:0;padding:0;font-size:10.5pt;line-height:1.5}.fo-print .fo-page h2{font-size:13pt}.fo-print .fo-page h3{margin:7px 0 2px;font-size:11pt}.fo-print .fo-page p{margin:1px 0}.fo-print .fo-line{height:6.4mm}.fo-print .fo-t{margin-top:4px}.fo-print .fo-t td{padding:1.5px 6px}.fo-print .no-print{display:none}
@media print{.fo-page{font-size:10.5pt;line-height:1.5;zoom:var(--fo-z,1)}.fo-page h2{font-size:13pt}.fo-page h3{margin:7px 0 2px;font-size:11pt;break-after:avoid}.fo-page p{margin:1px 0}.fo-line{height:6.4mm}.fo-t{margin-top:4px}.fo-t td{padding:1.5px 6px}.fo-par,.fo-t tr,.fo-card{break-inside:avoid}}


/* per-lesson progress in the lessons list */
.lpct{display:flex;align-items:center;gap:8px;margin-top:4px}.lpct .bar{flex:1;max-width:220px;height:8px;border-radius:6px;background:var(--surface-2);overflow:hidden;display:block}.lpct .bar i{display:block;height:100%;background:var(--primary);border-radius:6px}
/* grammar: conjugation tables grouped by person, one colour per person */
.gr-row.p1,.gr-chip.p1{--pc:#0d9488}.gr-row.p2,.gr-chip.p2{--pc:#c2410c}.gr-row.p3,.gr-chip.p3{--pc:#6d28d9}
.gr-conj .gr-row{border-left:6px solid var(--pc,transparent)}.gr-grp{margin:0;padding:4px 12px;font-size:.85rem;font-weight:700;border-top:1px solid var(--line);background:color-mix(in srgb,var(--primary-soft) 55%,transparent)}
.gr-pn{font-weight:500;opacity:.75}.gr-vb{color:var(--pc);font-weight:800}
.gr-chip{display:inline-block;font-size:.74rem;font-weight:700;line-height:1.7;background:var(--pc);color:#fff;border-radius:999px;padding:0 9px;white-space:nowrap}
.gr-leg{display:flex;flex-wrap:wrap;gap:6px}.gr-leg .gr-chip{white-space:normal;font-size:.8rem;padding:2px 12px}
.gr-txt{white-space:pre-line}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) .gr-row.p1,:root:not([data-theme="light"]) .gr-chip.p1{--pc:#2dd4bf}:root:not([data-theme="light"]) .gr-row.p2,:root:not([data-theme="light"]) .gr-chip.p2{--pc:#fb923c}:root:not([data-theme="light"]) .gr-row.p3,:root:not([data-theme="light"]) .gr-chip.p3{--pc:#c4b5fd}:root:not([data-theme="light"]) .gr-chip{color:#14201F}}
[data-theme="dark"] .gr-row.p1,[data-theme="dark"] .gr-chip.p1{--pc:#2dd4bf}[data-theme="dark"] .gr-row.p2,[data-theme="dark"] .gr-chip.p2{--pc:#fb923c}[data-theme="dark"] .gr-row.p3,[data-theme="dark"] .gr-chip.p3{--pc:#c4b5fd}[data-theme="dark"] .gr-chip{color:#14201F}
.gr-how{border-inline-start:4px solid var(--primary);padding-inline-start:10px}
/* class sessions: slides where the learners work have their own colour */
.cl-card.au-ex{background:#fff4dc;border:2px solid #f59e0b;border-top-width:12px}.cl-card.au-ex .cl-kind{color:#92400e}
.au-exb{align-self:flex-start;margin:0;background:#f59e0b;color:#1f1300;font-weight:800;border-radius:999px;padding:3px 16px}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) .cl-card.au-ex{background:#3a2a08;border-color:#f59e0b}:root:not([data-theme="light"]) .cl-card.au-ex .cl-kind{color:#fcd34d}}
[data-theme="dark"] .cl-card.au-ex{background:#3a2a08;border-color:#f59e0b}[data-theme="dark"] .cl-card.au-ex .cl-kind{color:#fcd34d}
/* 2026-11-19 (Hamid): the bottom menu is always solid; the fading on scroll is removed */
/* Portuguese words inside Persian explanations: a small tinted chip, easier to read in a right-to-left line */
.ptc{font-family:var(--pt);font-weight:600;font-size:.94em;direction:ltr;unicode-bidi:isolate;background:var(--primary-soft);color:var(--primary-deep);border:1px solid color-mix(in srgb,var(--primary) 30%,transparent);border-radius:7px;padding:1px 7px;margin:0 2px;-webkit-box-decoration-break:clone;box-decoration-break:clone;line-height:1.9}
.gr-chip .ptc,.btn .ptc{background:transparent;border:0;padding:0;margin:0;color:inherit}
.cl-card.au-ex .ptc{background:#fde9b8;color:#7c2d12;border-color:#f59e0b}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) .cl-card.au-ex .ptc{background:#5a3f0a;color:#fde68a}}
[data-theme="dark"] .cl-card.au-ex .ptc{background:#5a3f0a;color:#fde68a}


/* grammar tables: on narrow screens the Portuguese line and its meaning stand one under the other, so that phrases are not broken word by word (Hamid, 14 Nov 2026) */
.gr-tx{flex:1 1 auto;min-width:0;display:flex;gap:10px;align-items:center;direction:ltr}
@media(max-width:700px){.gr-tx{flex-direction:column;align-items:stretch;gap:0}.gr-tx .gr-pt,.gr-tx .gr-fa{flex:none}.gr-tx .gr-fa{font-size:.95rem}}

/* summary grids of the grammar units (Hamid, 14 Nov 2026) */
.gg-box{border:1px solid var(--line);border-radius:var(--r-sm);overflow:hidden}
.gg-box .gg-tt{margin:0;padding:8px 12px;background:var(--primary);color:#fff}
.gg-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;direction:ltr}
.gg{border-collapse:collapse;width:100%;direction:ltr}
.gg th,.gg td{padding:8px 10px;border-top:1px solid var(--line);border-inline-start:1px solid var(--line);text-align:center;vertical-align:middle}
.gg tr>:first-child{border-inline-start:0}
.gg thead th{background:var(--primary-soft);color:var(--primary-deep);font-size:.86rem;font-weight:700}
.gg tbody tr:nth-child(even) td{background:color-mix(in srgb,var(--primary-soft) 28%,transparent)}
.gg tbody th{text-align:left;font-weight:700;border-left:6px solid var(--pc,var(--primary));background:color-mix(in srgb,var(--pc,var(--primary)) 14%,var(--surface))}
.gg tr>:first-child{position:sticky;left:0;z-index:1}.gg thead th:first-child{background:color-mix(in srgb,var(--primary-soft) 100%,var(--surface))}
.gg tbody th .gg-pt{white-space:nowrap}
.gg-pt{display:block;font-family:var(--pt);font-weight:600;font-size:1.05rem;unicode-bidi:isolate;white-space:nowrap}
.gg td .gg-pt{font-weight:500}.gg-end{color:var(--pc,var(--primary-deep));font-weight:800}
.gg-fa{display:block;font-weight:600;font-size:.95rem}.gg-sub{display:block;font-size:.8rem;color:var(--muted);font-weight:500;white-space:normal}
.gg-nota{margin:0;padding:8px 12px;border-top:1px solid var(--line);font-size:.92rem;line-height:1.9;background:color-mix(in srgb,var(--primary-soft) 40%,transparent)}
.gg .p1{--pc:#0d9488}.gg .p2{--pc:#c2410c}.gg .p3{--pc:#6d28d9}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]) .gg .p1{--pc:#2dd4bf}:root:not([data-theme="light"]) .gg .p2{--pc:#fb923c}:root:not([data-theme="light"]) .gg .p3{--pc:#c4b5fd}:root:not([data-theme="light"]) .gg-box .gg-tt{color:#14201F}}
[data-theme="dark"] .gg .p1{--pc:#2dd4bf}[data-theme="dark"] .gg .p2{--pc:#fb923c}[data-theme="dark"] .gg .p3{--pc:#c4b5fd}[data-theme="dark"] .gg-box .gg-tt{color:#14201F}
@media(max-width:700px){.gg th,.gg td{padding:7px 8px}.gg-pt{font-size:.98rem}}
.gr-sub{margin:14px 0 0;padding:6px 12px;font-size:1.05rem;line-height:1.9;border-inline-start:5px solid var(--primary);background:var(--primary-soft);border-radius:var(--r-sm);color:var(--primary-deep)}
.au-modo{border-style:dashed}.au-modo[aria-pressed=true]{background:var(--surface-2,#eef3f1)}.au-qbtn{margin-top:8px}
/* 2026-11-15 (review): controls whose only outline is a border get a border of at least 3:1 against the page (WCAG 1.4.11); cards keep the light line */
:root{--line-ctl:#7F918C}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--line-ctl:#667874}}
:root[data-theme="dark"]{--line-ctl:#667874}
.btn.secondary,.wchip,.field input,.field select,.search,.opt,.alpha .tile,.au-sec{border-color:var(--line-ctl)}
.opt .r{border-color:var(--line-ctl)}
/* 2026-11-15: one closed «کمک» box under the lesson (grammar links + «عمیق‌تر شو») */
details.lesson-help{padding:0}
details.lesson-help>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px;padding:12px 16px;min-height:52px;font-weight:700}
details.lesson-help>summary::-webkit-details-marker{display:none}
details.lesson-help>summary svg{width:20px;height:20px;flex:none}
details.lesson-help[open]>summary{border-bottom:1px solid var(--line)}
details.lesson-help>section{padding:12px 16px}
details.lesson-help .gram-links{border:0;background:none;box-shadow:none}
@media (max-width:359px){.lhead .icon-btn.labeled>span{display:none}}
/* 2026-11-15: the start card of a lesson (task, new words, patterns) */
.intro-card{border-inline-start:4px solid var(--accent)}
.intro-item{align-items:flex-start;padding:8px 0;border-top:1px solid var(--line)}
.intro-item:first-of-type{border-top:0}
.intro-item .pt-sm{font-size:.82rem}
.intro-pat+.intro-pat{border-top:1px solid var(--line);padding-top:10px}
.intro-ex{align-items:center;gap:10px}.intro-ex .pt-sm{font-size:.92rem;font-weight:600}
/* 2026-11-15: class sessions — step of the cycle on a slide, pair cards on the worksheet */
.au-ciclo{vertical-align:middle;margin-inline-end:4px}
.fo-par{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:8px 0;break-inside:avoid}
.fo-card{border:1.5px dashed #888;border-radius:10px;padding:10px 12px}
.fo-card p{margin:4px 0}
/* 2026-11-15: grammar | alphabet and pronunciation as two tabs of one menu place */
.gram-tabs{margin:4px 0 2px}.gram-tabs .chip{font-size:1rem;min-height:44px;padding:0 16px}
/* 2026-11-15 (Hamid): the menu on every learner screen. On the phone a screen with a bottom action (lesson, review, end of
   lesson) keeps both: the action bar and the audio bar sit above the menu; --nav-real is the menu's measured height. */
@media (max-width:1099px){
  body.has-nav .actionbar{bottom:var(--nav-real,68px);padding-bottom:10px;border-bottom:0}
  body.has-nav .audiobar{bottom:calc(var(--nav-real,68px) + 66px)}
  body.has-nav .screen.lesson{padding-bottom:calc(var(--nav-real,68px) + 112px)}
  body.has-nav .screen.lesson.has-audiobar{padding-bottom:calc(var(--nav-real,68px) + 180px)}
  body.has-nav .toast{bottom:calc(var(--nav-real,68px) + 84px)}
}
@media (max-width:519px){
  .nav{padding-top:4px;padding-bottom:calc(4px + env(safe-area-inset-bottom,0px))}
  .nav button{min-height:48px;padding:3px 1px;font-size:.7rem;line-height:1.2;gap:1px}
  .nav .ico{width:44px;height:28px}.nav button svg{width:21px;height:21px}
}
/* pronunciation check (fala.js, 2026-11-15): green = well said, orange = almost, red = say again; live wave while recording */
.pt .w.fala-ok{color:#1b7f3b;background:rgba(27,127,59,.13);border-radius:4px}
.pt .w.fala-quase{color:#b45309;background:rgba(217,119,6,.15);border-radius:4px}
.pt .w.fala-mal{color:#b3261e;background:rgba(179,38,30,.13);border-radius:4px;text-decoration:underline wavy}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .pt .w.fala-ok{color:#6FD39A}:root:not([data-theme="light"]) .pt .w.fala-quase{color:#F4B35E}:root:not([data-theme="light"]) .pt .w.fala-mal{color:#FF8A80}}
:root[data-theme="dark"] .pt .w.fala-ok{color:#6FD39A}:root[data-theme="dark"] .pt .w.fala-quase{color:#F4B35E}:root[data-theme="dark"] .pt .w.fala-mal{color:#FF8A80}
.fala-btn.on{background:#b3261e;color:#fff;animation:fala-pulso 1.2s ease-in-out infinite}
@keyframes fala-pulso{0%,100%{box-shadow:0 0 0 0 rgba(179,38,30,.45)}50%{box-shadow:0 0 0 8px rgba(179,38,30,0)}}
.fala-onda{position:relative;margin:12px 0 4px;padding:8px 10px;border-radius:14px;background:var(--surface-2);overflow:hidden}
.fala-onda canvas{display:block;width:100%;height:56px}
.fala-msg{margin:8px 0 0}.fala-msg.ok{color:#1b7f3b}.fala-msg.quase{color:#b45309}.fala-msg.mal{color:#b3261e}
/* «بگو» feedback panel (fala.js, 2026-11-15): orange words as buttons (hear / say again), own voice vs lesson voice */
.fala-pan{margin-top:6px}
.fala-linha{margin-top:4px}
.pill.sm.fala-btn{font-size:.85rem;padding:4px 10px;min-height:32px}
.fala-chips{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 2px}
.fala-chip{display:flex;align-items:stretch;border-radius:999px;overflow:hidden;border:2px solid #d97706;background:rgba(217,119,6,.12)}
.fala-chip.ok{border-color:#1b7f3b;background:rgba(27,127,59,.12)}
.fala-chip button{border:0;background:none;color:inherit;font:inherit;cursor:pointer;min-height:44px}
.fala-chip-pal{padding:6px 12px 6px 14px;font-size:1.15rem;font-weight:700;color:#b45309}
.fala-chip.ok .fala-chip-pal{color:#1b7f3b}
.fala-chip-diz{padding:6px 12px;border-inline-start:1px solid rgba(217,119,6,.4)!important;font-size:1.05rem}
.fala-chip.on .fala-chip-diz,.fala-chip-diz.on{background:#b45309;color:#fff}
.fala-chip .fala-onda{display:none}
.fala-ouvir{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .fala-chip-pal{color:#F4B35E}:root:not([data-theme="light"]) .fala-chip.ok .fala-chip-pal{color:#6FD39A}}
:root[data-theme="dark"] .fala-chip-pal{color:#F4B35E}:root[data-theme="dark"] .fala-chip.ok .fala-chip-pal{color:#6FD39A}
.fala-msg.quase{color:#b45309}

/* 2026-11-15 (Hamid's phone): nothing may make the page wider than the screen — a wider page lets the phone zoom and moves the bottom menu off screen */
body{overflow-x:clip}

/* 2026-11-15 class sessions: explanation points, grammar grid and word cards */
.au-pts{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.au-pt{display:flex;gap:12px;align-items:flex-start;background:color-mix(in srgb,var(--primary-soft) 55%,var(--surface));border-inline-start:6px solid var(--primary);border-radius:var(--r-sm);padding:10px 14px}
.au-pt:nth-child(3n+2){border-inline-start-color:#c2410c}.au-pt:nth-child(3n){border-inline-start-color:#6d28d9}
.au-ptn{flex:none;width:2em;height:2em;border-radius:50%;background:var(--primary);color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center;font-size:clamp(.95rem,1.6vw,1.25rem)}
.au-pt:nth-child(3n+2) .au-ptn{background:#c2410c}.au-pt:nth-child(3n) .au-ptn{background:#6d28d9}
.au-ptx{font-size:clamp(1.05rem,2vw,1.55rem);line-height:1.9}
.au-grade .gg-pt{font-size:clamp(1.05rem,2vw,1.5rem)}.au-grade .gg-sub{font-size:clamp(.8rem,1.3vw,1rem)}.au-grade .gg-tt{font-size:clamp(1rem,1.8vw,1.35rem)}
.au-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(clamp(150px,22vw,230px),1fr));gap:12px}
.au-card{border:2px solid var(--line);border-radius:var(--r);padding:10px;display:flex;flex-direction:column;align-items:center;gap:6px;background:var(--surface);text-align:center}
.au-cic svg{width:clamp(64px,9vw,110px);height:auto;fill:none;stroke:var(--primary-deep);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.au-cic .ac{stroke:var(--accent)}.au-cic .f{fill:var(--primary-soft)}
.au-cic:empty{display:none}.au-cpt{display:flex;gap:6px;align-items:center;justify-content:center}.au-cpt .cl-lpt{font-size:clamp(1.1rem,2vw,1.6rem);text-align:center}
.au-cfa{margin:0;color:var(--muted);font-size:clamp(.95rem,1.6vw,1.2rem)}
.au-exh{margin:14px 0 0;font-weight:800;color:var(--primary-deep);font-size:clamp(1rem,1.8vw,1.3rem)}
.au-cpt{display:flex;flex-direction:column-reverse;gap:6px;align-items:center}
@media(min-width:700px){.ptc{white-space:nowrap}} /* 2026-11-15: a Portuguese chip broken over two lines is read in the wrong order inside a Persian sentence */

/* 2026-11-19 (audits 08-002, 08-012): class slides on a projector — the controls stay at the bottom of the screen whatever the height of the slide, and an explanation opens one point at a time */
.classe .cl-ctl{position:sticky;bottom:0;z-index:6;background:var(--bg);padding:10px 0 12px;margin-top:4px;border-top:1px solid var(--line);box-shadow:0 -10px 14px -12px rgba(0,0,0,.35)}
.au-cam{margin-top:-2px}.au-cam .au-modo{font-size:.8rem}.au-cam .au-modo.on{background:var(--primary-deep);color:#fff;border:1px solid var(--primary-deep);opacity:1}
.au-pt.au-visto{opacity:.62;padding-block:4px}.au-pt.au-visto .au-ptx{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.8em;min-width:0}.au-pt.au-visto .au-ptn{transform:scale(.8)}
.classe .au-pt,.classe .cl-line{scroll-margin-bottom:110px}
/* projector fit (audit 08-012): on a wide landscape screen the sizes of a class slide follow the HEIGHT of the screen, so that a slide and its controls are seen together */
@media (min-width:900px) and (orientation:landscape){
.screen.classe{padding-top:8px}.screen.classe>.row h1{font-size:1.15rem;margin:0}.screen.classe>.row .btn{min-height:36px;padding-block:4px}.screen.classe .au-secs{margin-bottom:4px}.screen.classe .au-sec{font-size:.78rem}
.screen.classe .cl-card{padding:clamp(12px,2.6vh,40px) clamp(20px,4vw,56px);gap:clamp(6px,1.4vh,18px)}
.screen.classe .au-ico svg{width:auto;height:clamp(72px,19vh,190px)}.screen.classe .cl-img{max-height:32vh}
.screen.classe .cl-txt{line-height:1.5;font-size:clamp(1.1rem,3.4vh,1.9rem)}.screen.classe .cl-line{padding:clamp(2px,.7vh,8px) 0}.screen.classe .cl-lpt{font-size:clamp(1.25rem,4.4vh,2.4rem)}
.screen.classe .cl-pt{font-size:clamp(2rem,9vh,5rem)}.screen.classe .au-cue{font-size:clamp(2rem,9vh,5rem)}.screen.classe .au-bigfa{font-size:clamp(1.5rem,6vh,3.4rem)}
.screen.classe .au-cards{grid-template-columns:repeat(auto-fill,minmax(clamp(140px,17vw,210px),1fr));gap:8px}.screen.classe .au-card{padding:6px}.screen.classe .au-cic svg{width:auto;height:clamp(44px,9vh,110px)}
.screen.classe .au-pt{padding:clamp(4px,1.1vh,10px) 14px}.screen.classe .cl-ctl{padding:6px 0 8px}.screen.classe .au-qbtn{margin-top:0;min-height:32px;padding-block:2px}
}

/* 2026-11-19 (class feedback): one name for the list of all lessons, beside «continue»; chapter · lesson · step in the lesson header; grammar lessons by «how do I say …?» */
.home-all{margin-top:8px}.tag.here{margin-inline-start:6px}
.lhead-onde{border:0;background:transparent;color:inherit;font:inherit;font-size:.86rem;font-weight:700;text-align:start;padding:4px 0;min-height:44px;cursor:pointer;display:flex;flex-direction:column;justify-content:center;gap:0;min-width:0}
.lhead-onde .lhead-cap{font-weight:400;color:var(--muted);font-size:.76rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.gr-plain{margin:2px 0 0;font-size:.95rem}
.gr-sec{display:flex;align-items:center;gap:10px;margin:18px 0 0;font-size:1.1rem}
.gr-sec-n{flex:none;width:28px;height:28px;border-radius:50%;background:var(--primary);color:var(--primary-ink);display:inline-flex;align-items:center;justify-content:center;font-size:.95rem}
.gr-tema{font-family:var(--pt);direction:ltr;text-align:left;unicode-bidi:isolate;margin:2px 0 0;font-size:.9rem;color:var(--muted)}
.gr-formas{font-family:var(--pt);direction:ltr;text-align:left;unicode-bidi:isolate;margin:2px 0 0;font-weight:600;color:var(--primary-deep);font-size:1rem}
.gr-como{font-weight:700;margin:6px 0 0;color:var(--primary-deep)}
@media (max-width:420px){.lhead .icon-btn.labeled>span{display:none}.lhead .icon-btn.labeled{width:48px;min-width:48px;padding:8px;border-radius:50%}.lhead .outline-btn{display:none}}
.lhead-onde .lhead-l1{display:flex;align-items:center;gap:6px}.lhead-onde .lhead-l1 svg{width:18px;height:18px;flex:none;color:var(--primary-deep)}
/* 2026-11-19 (Hamid): continuous view of a class session — title, section chips and path chips stay at the top while the page scrolls */
.screen.classe .au-fixo{position:sticky;top:0;z-index:5;background:var(--bg);padding:8px 0 4px;margin-top:-8px;border-bottom:1px solid var(--line)}
.screen.classe .au-fixo .au-secs:last-child{margin-bottom:0}
.screen.classe>h2[id^="au-s"],.screen.classe .au-doc{scroll-margin-top:var(--au-fixo,120px)}
@media print{.screen.classe .au-fixo{position:static;border:0}}
@media (max-width:600px){.screen.classe .au-fixo .au-secs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.screen.classe .au-fixo .au-sec{white-space:nowrap;flex:0 0 auto}}
/* grammar lesson opened over a lesson (2026-11-20): a full sheet with its close button always in reach */
.gram-sheet{position:fixed;inset:0;z-index:30;background:var(--bg);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.gram-sheet .screen{padding-bottom:calc(32px + env(safe-area-inset-bottom,0px))}
.gram-sheet .gs-head{position:sticky;top:0;z-index:2;background:var(--bg);padding:8px 0;margin-top:-8px;border-bottom:1px solid var(--line)}
body.has-gram-sheet .audiobar{z-index:31;inset-block-end:calc(16px + env(safe-area-inset-bottom,0px))}
/* lesson header as a picture (2026-11-20): chapter + title + one bar per lesson of the chapter; then the four parts as a path */
.lh-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.lhead-onde{position:relative;align-items:flex-start;gap:1px}
.lh-ch{font-size:.74rem;font-weight:400;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.lhead .t.lh-name{font-size:1rem;font-weight:800;color:var(--ink);text-align:start;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;margin:0}
.lh-dots{display:flex;align-items:center;gap:3px;margin-top:3px;max-width:100%}
.lh-dots i{width:12px;height:5px;border-radius:99px;background:var(--line);flex:none}
.lh-dots i.done{background:color-mix(in srgb,var(--primary) 55%,var(--line))}
.lh-dots i.cur{width:22px;background:var(--primary)}
.lh-dots .lh-of{font-size:.7rem;font-weight:400;color:var(--muted);margin-inline-start:6px}
.task-short{font-size:1.1rem;font-weight:600;line-height:1.9;margin:6px 0 12px}
.node.locked{opacity:.55}.node.locked .dot{background:var(--surface-2);color:var(--muted);border-color:var(--line)}.node.locked .dot svg{width:16px;height:16px}
.uc-lock{font-weight:700;margin:10px 0}.uc-result.pass .uc-lock{color:var(--ok)}
.lh-steps{display:flex;align-items:flex-start;margin-top:6px}
.lh-st{flex:1;min-width:0;position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;background:none;border:0;padding:2px 0 4px;margin:0;font:inherit;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.lh-st:hover .n,.lh-st:active .n{border-color:var(--primary)}.lh-st:hover .l{color:var(--ink)}
.lh-st:focus-visible{outline:0}.lh-st:focus-visible .n{outline:3px solid var(--primary);outline-offset:2px}
.lh-st .n{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--surface-2);color:var(--muted);border:2px solid var(--line);position:relative;z-index:2;box-sizing:border-box}
.lh-st .n svg{width:16px;height:16px}
.lh-st .l{font-size:.72rem;color:var(--muted);white-space:nowrap}
.lh-st+.lh-st::before{content:"";position:absolute;top:14.5px;inset-inline-start:-50%;width:100%;height:3px;border-radius:99px;background:var(--line)}
.lh-st.done+.lh-st::before{background:var(--primary)}
.lh-st.cur:not(:last-child)::after{content:"";position:absolute;top:14.5px;inset-inline-start:50%;width:calc(var(--f,0) * 100%);height:3px;border-radius:99px;background:var(--primary);z-index:1}
.lh-st.done .n{background:var(--primary);border-color:var(--primary);color:var(--primary-ink)}
.lh-st.cur .n{background:var(--primary-soft);border-color:var(--primary);color:var(--primary-deep);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 22%,transparent)}
.lh-st.cur .l{color:var(--ink);font-weight:800}
@media (max-width:359px){.lh-st .l{font-size:.66rem}.lh-dots i{width:9px}.lh-dots i.cur{width:16px}}
/* lesson and grammar films (2026-11-25) */
.vid-box{padding:10px}
.vid-btn{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:10px 14px;border:0;border-radius:14px;background:var(--surface-2);color:inherit;font:inherit;font-weight:700;text-align:start;cursor:pointer}
.vid-btn:active{transform:scale(.99)}
.vid-play{display:grid;place-items:center;width:40px;height:40px;flex:none;border-radius:50%;background:var(--primary);color:var(--primary-ink);font-size:16px}
.vid-wrap{position:relative;width:100%;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:#000}
.vid-frame{position:absolute;inset:0;width:100%;height:100%;border:0}
