/* Стили кабинета. Взяты из макета версии 38 (папка «исходники-макета»): правила те же, что видели клиенты. */
:root{color-scheme:light;padding:env(safe-area-inset-top,0px) 0 env(safe-area-inset-bottom,0px)}
body{margin:0;font:14px system-ui}img{max-width:100%}[hidden]{display:none!important}
/* Layout: neutral canvas with white rounded cards in a grid ("bento"). Labelled sidebar from 1024px, drawer below, bottom tab bar for the learner on phones.
   Rules: one grey scale, black for primary actions, one accent (--accent), status shown as a dot plus text. Text 14/20, controls 36px (44px on touch). */
:root{
  --canvas:#F3F3F1; --card:#FFFFFF; --soft:#F5F5F2; --hover:#EBEBE7;
  --ink:#17171A; --ink-2:#5F5F68; --ink-3:#93939B; --line:#E6E6E1;
  --primary:#17171A; --on-primary:#FFFFFF;
  --accent:#FF6A2B; --accent-soft:#FFEBDD; --accent-ink:#B4420F; --on-accent:#17171A;
  --ok:#1FA35B; --warn:#E5A100; --bad:#E0473B; --info:#3B74E6;
  --shadow-pop:0 1px 2px rgba(0,0,0,.06),0 12px 32px rgba(0,0,0,.14);
  --font:"Manrope",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --canvas:#0E0E10; --card:#19191C; --soft:#222226; --hover:#2A2A2F;
    --ink:#F3F3F1; --ink-2:#ABABB3; --ink-3:#77777F; --line:#2D2D32;
    --primary:#F3F3F1; --on-primary:#17171A;
    --accent:#FF7B42; --accent-soft:#3B2114; --accent-ink:#FFAC83; --on-accent:#17171A;
    --ok:#4CC985; --warn:#F2BC3D; --bad:#FF7A6E; --info:#7EA6FF;
    --shadow-pop:0 1px 2px rgba(0,0,0,.5),0 12px 32px rgba(0,0,0,.6);
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --canvas:#0E0E10; --card:#19191C; --soft:#222226; --hover:#2A2A2F;
  --ink:#F3F3F1; --ink-2:#ABABB3; --ink-3:#77777F; --line:#2D2D32;
  --primary:#F3F3F1; --on-primary:#17171A;
  --accent:#FF7B42; --accent-soft:#3B2114; --accent-ink:#FFAC83; --on-accent:#17171A;
  --ok:#4CC985; --warn:#F2BC3D; --bad:#FF7A6E; --info:#7EA6FF;
  --shadow-pop:0 1px 2px rgba(0,0,0,.5),0 12px 32px rgba(0,0,0,.6);
  color-scheme:dark;
}
*{box-sizing:border-box}
body{background:var(--canvas);color:var(--ink);font:500 14px/20px var(--font);-webkit-font-smoothing:antialiased}
button,input,textarea,select{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none;padding:0}
button:disabled{cursor:default;opacity:.35}
:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
h1,h2,h3,p{margin:0}
.ic{flex:none}

/* shell */
.app{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100vh}
.side{position:sticky;top:env(safe-area-inset-top,0px);align-self:start;height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));overflow:auto;display:flex;flex-direction:column;gap:20px;padding:20px 8px 16px max(16px,env(safe-area-inset-left,0px))}
.main{min-width:0;padding-block:16px 72px;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.wrap{max-width:1440px;margin-inline:auto;display:flex;flex-direction:column;gap:20px;container:page / inline-size}
.scrim{display:none}
.brand{display:flex;align-items:center;gap:10px;padding:4px 8px}
.logo{width:36px;height:36px;border-radius:11px;background:var(--primary);display:grid;place-items:center;flex:none}
.brand b{display:block;font-weight:700;font-size:15px;line-height:18px}
.brand span{font-size:12px;line-height:16px;color:var(--ink-2)}
.cap{font-size:12px;line-height:16px;font-weight:600;color:var(--ink-2);padding:0 12px;margin-bottom:-12px}
.pills{display:inline-flex;gap:2px;background:var(--card);border-radius:999px;padding:4px;max-width:100%;overflow-x:auto}
.pills.full{display:grid;grid-auto-flow:column;grid-auto-columns:1fr}
.pills button{height:32px;padding:0 14px;border-radius:999px;font-weight:600;font-size:13px;color:var(--ink-2);white-space:nowrap}
.pills button:hover{color:var(--ink)}
.pills button[aria-pressed="true"],.pills button[aria-selected="true"]{background:var(--primary);color:var(--on-primary)}
.nav{display:flex;flex-direction:column;gap:2px}
.nav button{display:flex;align-items:center;gap:10px;width:100%;height:40px;padding:0 12px;border-radius:12px;font-weight:600;color:var(--ink-2);text-align:left;white-space:nowrap}
.nav button:hover{background:var(--hover);color:var(--ink)}
.nav button[aria-current="page"]{background:var(--primary);color:var(--on-primary)}
.nav .cnt{margin-left:auto;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--accent);color:var(--on-accent);font-weight:700;font-size:12px;line-height:20px;text-align:center}
.nav .soon{margin-left:auto;font-size:12px;font-weight:500;color:var(--ink-3)}
.side-foot{margin-top:auto;padding:12px;border-radius:14px;background:var(--card);font-size:12px;line-height:16px;color:var(--ink-2)}

/* top bar */
.top{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:40px}
.top-l,.top-r{display:flex;align-items:center;gap:8px;min-width:0}
.top-l{flex:1}
.ibtn.menu-btn{display:none}
.crumbs{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--ink-2);min-width:0;white-space:nowrap;overflow:hidden}
.crumbs button{color:var(--ink-2);font-weight:500}
.crumbs button:hover{color:var(--ink)}
.crumbs b{font-weight:600;color:var(--ink);overflow:hidden;text-overflow:ellipsis}
.ibtn{position:relative;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--card);color:var(--ink);flex:none}
.ibtn:hover:not(:disabled){background:var(--hover)}
.ibtn.sm{width:30px;height:30px;background:var(--soft)}
.ibtn .pip{position:absolute;top:8px;right:9px;width:8px;height:8px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 2px var(--card)}
.me{display:flex;align-items:center;gap:8px;background:var(--card);border-radius:999px;padding:4px 14px 4px 4px;min-width:0}
.me b{display:block;font-size:13px;line-height:16px;font-weight:700;white-space:nowrap}
.me-t span{display:block;font-size:11.5px;line-height:14px;color:var(--ink-2);white-space:nowrap}
.ava{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--soft);color:var(--ink-2);font-weight:700;font-size:12px;flex:none}
.ava.md{width:36px;height:36px;font-size:14px}
.ava.lg{width:44px;height:44px;font-size:16px}
.kidsw{display:inline-flex;gap:2px;background:var(--card);border-radius:999px;padding:4px}
.kidsw button{display:flex;align-items:center;gap:6px;height:28px;padding:0 12px 0 4px;border-radius:999px;font-weight:600;font-size:13px;color:var(--ink-2)}
.kidsw .ava{width:22px;height:22px;font-size:11px}
.kidsw button[aria-pressed="true"]{background:var(--primary);color:var(--on-primary)}
.kidsw button[aria-pressed="true"] .ava{background:var(--on-primary);color:var(--primary)}

/* type and blocks */
.head{display:flex;justify-content:space-between;align-items:flex-end;gap:12px 20px;flex-wrap:wrap}
.head h1{font:700 28px/34px var(--font);letter-spacing:-.02em;text-wrap:balance}
.head .sub{margin-top:4px;color:var(--ink-2);max-width:68ch}
.head-r{display:flex;gap:8px;flex-wrap:wrap}
h3{font:700 16px/22px var(--font)}
.muted{color:var(--ink-2)}
.small{font-size:13px}
.eyebrow{font-size:12px;line-height:16px;font-weight:600;color:var(--ink-2)}
.clip{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.card{background:var(--card);border-radius:20px;padding:20px;display:flex;flex-direction:column;gap:16px;min-width:0}
.card-h{display:flex;justify-content:space-between;align-items:center;gap:8px 12px;flex-wrap:wrap}
.card-h .m{font-size:13px;color:var(--ink-2)}
.stack{display:flex;flex-direction:column;gap:20px;min-width:0}
.rowc{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap}
.g-2,.g-hero,.split,.lesson{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;align-items:start}
.g-hero{align-items:stretch}

/* buttons, tags, status */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:36px;padding:0 16px;border-radius:999px;border:1px solid transparent;font-weight:600;background:var(--primary);color:var(--on-primary);white-space:nowrap}
.btn:hover:not(:disabled){opacity:.88}
.btn.sec{background:var(--card);border-color:var(--line);color:var(--ink)}
.btn.soft{background:var(--soft);color:var(--ink)}
.btn.ghost{background:none;color:var(--ink-2);padding:0 10px}
.btn.danger{background:none;border-color:var(--line);color:var(--bad)}
.btn.inv{background:var(--on-primary);color:var(--primary)}
.btn.lg{height:44px;padding:0 22px;font-size:15px}
.btn.sm{height:32px;padding:0 12px;font-size:13px}
.btn.block{width:100%}
.tag{display:inline-flex;align-items:center;gap:5px;height:22px;padding:0 9px;border-radius:999px;background:var(--soft);font-size:12px;font-weight:600;color:var(--ink-2);white-space:nowrap}
.tag.dark{background:var(--primary);color:var(--on-primary)}
.tag.onc{background:color-mix(in srgb,currentColor 16%,transparent);color:inherit}
.st{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;white-space:nowrap}
.st i{width:8px;height:8px;border-radius:50%;background:var(--ink-3);flex:none}
.st.ok i{background:var(--ok)}
.st.warn i{background:var(--warn)}
.st.bad i{background:var(--bad)}
.st.info i{background:var(--info)}

/* rows */
.rows{display:flex;flex-direction:column}
.row{display:flex;align-items:center;gap:12px;min-height:56px;padding:8px 0;border-top:1px solid var(--line);width:100%;text-align:left;min-width:0}
.rows > .row:first-child{border-top:0}
button.row:hover,.row[aria-current="true"]{background:var(--soft);box-shadow:-12px 0 0 var(--soft),12px 0 0 var(--soft)}
.t{flex:1;min-width:0;display:flex;flex-direction:column}
.t > b{font-weight:700}
.t > span{font-size:13px;color:var(--ink-2)}
.meta{font-size:13px;color:var(--ink-2);white-space:nowrap}
.chev{color:var(--ink-3);display:grid}
.wd{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--soft);font-weight:700;font-size:13px;color:var(--ink-2);flex:none}
.th{width:40px;height:52px;border-radius:10px;background:var(--soft) center/cover no-repeat;display:grid;place-items:center;color:var(--ink-3);flex:none}
.ctl{display:flex;align-items:center;gap:6px}

/* numbers */
.g-kpi{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.g-kpi.three{grid-template-columns:minmax(0,1fr)}
.kpi{background:var(--card);border-radius:20px;padding:18px 20px;display:flex;flex-direction:column;gap:12px;min-width:0;text-align:left}
.kpi-h{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--ink-2)}
.kpi-i{width:32px;height:32px;border-radius:50%;background:var(--soft);display:grid;place-items:center;color:var(--ink);flex:none}
.kpi .v{font:700 32px/36px var(--font);letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.kpi .v small{font-size:15px;font-weight:600;color:var(--ink-2);letter-spacing:0}
.kpi .f{font-size:12.5px;line-height:16px;color:var(--ink-2)}
.kpi.acc{background:var(--accent);color:var(--on-accent)}
.kpi.acc .kpi-h,.kpi.acc .f{color:inherit}
.kpi.acc .kpi-i{background:rgba(255,255,255,.4);color:inherit}
.big{font:700 40px/44px var(--font);letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.big small{font-size:15px;font-weight:600;color:var(--ink-2);letter-spacing:0}
.chart{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;height:160px}
.bar{display:flex;flex-direction:column-reverse;gap:3px;min-width:0}
.bar i{display:block;border-radius:6px;min-height:8px}
.bar .a{background:var(--primary)}
.bar .b{background:var(--accent)}
.bar .c{background:repeating-linear-gradient(135deg,var(--line) 0 4px,transparent 4px 8px);box-shadow:inset 0 0 0 1px var(--line)}
.bar .e{box-shadow:inset 0 0 0 1px var(--line);background:var(--soft)}
.chart-x{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;text-align:center;font-size:12px;line-height:16px;color:var(--ink-2)}
.chart-x b{color:var(--ink);font-weight:700}
.legend{display:flex;gap:6px 14px;flex-wrap:wrap;font-size:12.5px;color:var(--ink-2)}
.legend span{display:inline-flex;align-items:center;gap:6px}
.legend i{width:10px;height:10px;border-radius:3px;display:inline-block}
.dots{display:inline-flex;gap:6px;vertical-align:middle}
.dot{width:12px;height:12px;border-radius:50%;display:inline-block;background:var(--line)}
.dot.p2{background:var(--accent)}
.dot.p1{background:linear-gradient(90deg,var(--accent) 50%,var(--accent-soft) 50%)}
.dot.p0{background:none;box-shadow:inset 0 0 0 2px var(--bad)}
.dot.now{background:none;box-shadow:inset 0 0 0 2px var(--ink)}
.wk{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.wk div{background:var(--soft);border-radius:12px;padding:10px 4px;text-align:center;display:flex;flex-direction:column;gap:2px}
.wk span{font-size:12px;line-height:16px;color:var(--ink-2);font-weight:600}
.wk b{font:700 18px/22px var(--font);font-variant-numeric:tabular-nums}
.wk .p2{background:var(--accent-soft)}
.wk .p2 b{color:var(--accent-ink)}
.wk .p0 b{color:var(--bad)}
.wk .now{background:var(--primary)}
.wk .now span,.wk .now b{color:var(--on-primary)}
.wk .fut b{color:var(--ink-3)}

/* courses and exercises */
.g-courses{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));gap:20px}
.course{background:var(--card);border-radius:20px;padding:10px;display:flex;flex-direction:column;min-width:0}
.cov{position:relative;overflow:hidden;border-radius:14px;min-height:148px;padding:16px;display:flex;flex-direction:column;justify-content:space-between;gap:16px;background:var(--primary);color:var(--on-primary)}
.cov.light{background:var(--soft);color:var(--ink)}
.cov h3{font:700 22px/28px var(--font);letter-spacing:-.01em;max-width:18ch;text-wrap:balance;position:relative}
.cov .mark{position:absolute;right:-22px;bottom:-40px;opacity:.14}
.course .body{padding:16px 10px 10px;display:flex;flex-direction:column;gap:16px}
.stats{display:flex;gap:8px 24px;flex-wrap:wrap}
.stat b{display:block;font:700 22px/26px var(--font);font-variant-numeric:tabular-nums}
.stat span{font-size:12.5px;color:var(--ink-2)}
.xgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:12px}
.xcard{background:var(--card);border-radius:20px;padding:8px 8px 14px;display:flex;flex-direction:column;gap:10px;text-align:left;min-width:0}
.xcard:hover .ximg{filter:brightness(.95)}
.ximg{position:relative;aspect-ratio:4/5;border-radius:14px;background:var(--soft) center/cover no-repeat;display:grid;place-items:center;color:var(--ink-3);overflow:hidden}
.ximg .ph{width:40px;height:40px;border-radius:50%;background:var(--card);display:grid;place-items:center}
.ximg .dur{position:absolute;left:8px;bottom:8px;height:22px;padding:0 8px;border-radius:999px;background:rgba(23,23,26,.72);color:#fff;font-size:12px;font-weight:600;display:inline-flex;align-items:center}
.ximg .flag{position:absolute;right:8px;top:8px;display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 9px 0 6px;border-radius:999px;background:var(--card);color:var(--ink);font-size:12px;font-weight:700}
.ximg .flag .ic{color:var(--ok)}
.x-t{padding:0 6px;display:flex;flex-direction:column;gap:2px;min-width:0}
.x-t b{font-weight:700;line-height:18px}
.x-t span{font-size:12.5px;line-height:16px;color:var(--ink-2)}
.strip{display:flex;gap:8px;overflow-x:auto}
.strip .th{width:56px;height:70px;border-radius:12px}

/* learner */
.hero{background:var(--primary);color:var(--on-primary);border-radius:20px;padding:24px;display:flex;flex-direction:column;gap:24px;justify-content:space-between;min-width:0}
.hero .eyebrow{color:inherit;opacity:.65}
.hero h2{font:700 24px/30px var(--font);letter-spacing:-.02em;text-wrap:balance;margin-top:6px}
.hero p{opacity:.75;margin-top:6px;max-width:52ch}
.hero-b{display:flex;align-items:center;justify-content:space-between;gap:12px 16px;flex-wrap:wrap}
.hero .n{font-weight:700;font-size:15px}
.hero.light{background:var(--card);color:var(--ink)}
.segs{display:flex;gap:6px}
.segs i{width:36px;height:8px;border-radius:99px;background:color-mix(in srgb,currentColor 22%,transparent)}
.segs i.on{background:var(--accent)}
.notice{display:flex;gap:10px;align-items:center;background:var(--card);border-radius:14px;padding:12px 16px;font-weight:600;box-shadow:inset 0 0 0 1px var(--bad)}
.player{display:grid;place-items:center;width:100%;max-width:340px;aspect-ratio:360/644;border-radius:20px;background:#0c0c0e center/cover no-repeat;overflow:hidden;margin-inline:auto}
.playb{width:64px;height:64px;border-radius:50%;background:rgba(23,23,26,.72);color:#fff;display:grid;place-items:center}
.facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.facts div{padding:0 14px;border-left:1px solid var(--line);min-width:0}
.facts div:first-child{padding-left:0;border-left:0}
.facts span{display:block;font-size:12px;line-height:16px;color:var(--ink-2)}
.facts b{font-weight:700}
.steps{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:10px;counter-reset:s}
.steps li{display:flex;gap:12px;align-items:flex-start;max-width:64ch}
.steps li::before{counter-increment:s;content:counter(s);width:24px;height:24px;border-radius:50%;background:var(--soft);display:grid;place-items:center;font-size:12px;font-weight:700;color:var(--ink-2);flex:none;margin-top:-2px}
.prog{height:8px;border-radius:99px;background:var(--soft);overflow:hidden}
.prog i{display:block;height:100%;width:0;background:var(--accent);border-radius:99px;transition:width .15s linear}
.days{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:10px}
.dtile{background:var(--soft);border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:12px;justify-content:space-between;min-height:96px;text-align:left;min-width:0}
.dtile .d1{font-size:12px;line-height:16px;font-weight:600;color:var(--ink-2)}
.dtile b{display:block;font:700 16px/20px var(--font)}
.dtile.now{background:var(--primary);color:var(--on-primary)}
.dtile.now .d1{color:inherit;opacity:.7}
.dtile.lock{color:var(--ink-3)}
.dtile.lock .d1{color:inherit}
.rank{width:28px;font-weight:700;color:var(--ink-2);text-align:center;font-variant-numeric:tabular-nums;flex:none}
.score{font:700 18px/22px var(--font);font-variant-numeric:tabular-nums;min-width:24px;text-align:right}

/* table-like list */
.tr{display:grid;grid-template-columns:minmax(0,1fr) 84px 44px;gap:12px;align-items:center;min-height:56px;padding:8px 0;border-top:1px solid var(--line)}
.tr.h{min-height:32px;padding:0 0 8px;border-top:0;font-size:12px;font-weight:600;color:var(--ink-2)}
.tr .c2{display:none}
.tr .num{font-weight:700;font-variant-numeric:tabular-nums;text-align:right}
.tr .who{display:flex;align-items:center;gap:10px;min-width:0}

/* review */
.reports{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;max-width:580px}
.rep{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:12px;line-height:16px;color:var(--ink-2)}
.rep .v{position:relative;aspect-ratio:3/4;border-radius:12px;background:var(--primary);color:var(--on-primary);display:grid;place-items:center}
.rep .v span{position:absolute;left:7px;bottom:6px;font-size:11px;font-weight:600;opacity:.8}

/* forms */
.field{display:flex;flex-direction:column;gap:6px;min-width:0}
.lbl{font-size:13px;font-weight:600}
.inp,textarea,select{width:100%;min-width:0;height:40px;padding:0 12px;border:1px solid var(--line);border-radius:12px;background:var(--card);font-weight:500}
textarea{height:auto;min-height:96px;padding:10px 12px;line-height:20px;resize:vertical}
.inp:focus-visible,textarea:focus-visible,select:focus-visible{outline:0;border-color:var(--ink);box-shadow:0 0 0 3px color-mix(in srgb,var(--ink) 12%,transparent)}
.inp.n{width:56px;text-align:center;font-weight:700;font-variant-numeric:tabular-nums;padding:0}
.inp.auto{width:auto}
.opt{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border:1px solid var(--line);border-radius:14px;cursor:pointer}
.opt:has(input:checked){border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.opt input{margin:2px 0 0;width:16px;height:16px;accent-color:var(--ink);flex:none}
.sw{position:relative;width:40px;height:24px;flex:none}
.sw input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.sw i{position:absolute;inset:0;border-radius:99px;background:var(--line);transition:background .15s;pointer-events:none}
.sw i::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25);transition:transform .15s}
.sw input:checked + i{background:var(--primary)}
.sw input:checked + i::after{transform:translateX(16px);background:var(--on-primary)}
.sw input:focus-visible + i{outline:2px solid var(--ink);outline-offset:2px}
.fmt{display:flex;gap:12px;align-items:flex-start;padding:16px 0;border-top:1px solid var(--line)}
.fmt:first-child{border-top:0;padding-top:0}
.fmt:last-child{padding-bottom:0}
.tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.prule{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px 12px;align-items:center}
.drop{border:1px dashed var(--line);border-radius:14px;padding:12px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.f2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}

/* overlays */
.sheet-wrap{position:fixed;inset:0;background:rgba(10,10,12,.45);display:grid;place-items:center;padding:16px;z-index:60}
.sheet{background:var(--card);border-radius:20px;width:100%;max-width:520px;max-height:88dvh;overflow:auto;padding:24px;display:flex;flex-direction:column;gap:16px;box-shadow:var(--shadow-pop)}
.sheet.wide{max-width:640px}
.sheet h2{font:700 20px/26px var(--font)}
.toast{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:var(--primary);color:var(--on-primary);padding:10px 18px;border-radius:999px;font-weight:600;font-size:13px;z-index:70;max-width:calc(100% - 32px);text-align:center;box-shadow:var(--shadow-pop)}
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:30;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;background:var(--card);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))}
.tabbar button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:48px;font-size:11.5px;line-height:14px;font-weight:600;color:var(--ink-3);border-radius:12px}
.tabbar button[aria-current="page"]{color:var(--ink)}

/* content adapts to the width of the page column, not the window */
@container page (min-width:640px){
  .days{grid-template-columns:repeat(5,minmax(0,1fr))}
  .g-kpi.three{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
}
@container page (min-width:720px){
  .lesson{grid-template-columns:minmax(0,300px) minmax(0,1fr)}
  .g-kpi{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
  .tr{grid-template-columns:minmax(0,1.5fr) minmax(0,1.2fr) minmax(0,1.1fr) 84px 48px minmax(0,1fr)}
  .tr .c2{display:block}
  .tr .only-n{display:none}
}
@container page (min-width:880px){
  .g-2{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}
  .g-2.even{grid-template-columns:repeat(2,minmax(0,1fr))}
  .g-hero{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}
  .split{grid-template-columns:340px minmax(0,1fr)}
  .split .backrow{display:none}
  .xgrid.five{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
}
@container page (max-width:879.98px){
  .split:not(.open) .pane-d{display:none}
  .split.open .pane-l{display:none}
}
@container page (max-width:560px){
  .row.ex{flex-wrap:wrap}
  .row.ex .ctl{width:100%;padding-left:52px}
  .reports{grid-template-columns:repeat(3,minmax(0,1fr))}
  .facts{grid-template-columns:minmax(0,1fr);gap:10px}
  .facts div{padding:0;border-left:0}
  .segs i{width:28px}
}

/* shell adapts to the window */
@media (max-width:1023.98px){
  .app{grid-template-columns:minmax(0,1fr)}
  .side{position:fixed;inset:0 auto 0 0;z-index:50;width:min(288px,86vw);height:auto;background:var(--canvas);padding-top:calc(20px + env(safe-area-inset-top,0px));padding-right:12px;box-shadow:var(--shadow-pop);transform:translateX(-104%);visibility:hidden;transition:transform .2s ease,visibility 0s .2s}
  .app.menu .side{transform:none;visibility:visible;transition:transform .2s ease}
  .app.menu .scrim{display:block;position:fixed;inset:0;z-index:45;background:rgba(10,10,12,.45)}
  .ibtn.menu-btn{display:grid}
}
@media (max-width:767.98px){
  .head h1{font-size:24px;line-height:30px}
  .me-t{display:none}
  .crumbs.one{display:none}
  .me{padding:4px}
  .card{padding:16px}
  .hero{padding:20px}
  .hero h2{font-size:21px;line-height:27px}
  .sheet-wrap{place-items:end center;padding:0}
  .sheet{border-radius:20px 20px 0 0;max-width:none;padding:20px 16px calc(20px + env(safe-area-inset-bottom,0px))}
  .app.has-tabbar .main{padding-bottom:104px}
  .app.has-tabbar ~ .toast{bottom:calc(84px + env(safe-area-inset-bottom,0px))}
  .f2{grid-template-columns:minmax(0,1fr)}
}
@media (min-width:768px){.tabbar{display:none}}
@media (pointer:coarse){
  .btn{height:44px;padding:0 18px}
  .btn.sm{height:40px}
  .ibtn{width:44px;height:44px}
  .ibtn.sm{width:40px;height:40px}
  .nav button{height:48px}
  .pills button{height:40px}
  .kidsw button{height:36px}
  .inp,select{height:48px;font-size:16px}
  textarea{font-size:16px}
  .inp.n{width:64px}
}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}

/* block builder */
.blk{padding:16px;gap:12px}
.blk-h{display:flex;align-items:center;gap:10px;min-width:0}
.blk-k{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 10px 0 8px;border-radius:999px;background:var(--soft);font-size:12px;font-weight:700;color:var(--ink-2);white-space:nowrap}
.inp.ttl{font-weight:700;font-size:15px}
.bt-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:8px}
.bt{display:flex;flex-direction:column;gap:6px;align-items:flex-start;text-align:left;padding:12px;border-radius:14px;background:var(--soft);min-width:0}
.bt:hover{background:var(--hover)}
.bt b{font-weight:700}
.bt span{font-size:12px;line-height:16px;color:var(--ink-2)}
.q{display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:14px;background:var(--soft)}
.q-h{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.q-h .inp{flex:1;min-width:160px}
.optr{display:flex;gap:8px;align-items:center}
.optr input[type="radio"],.optr input[type="checkbox"],.chk input{width:16px;height:16px;accent-color:var(--ink);flex:none;margin:0}
.chk{display:inline-flex;align-items:center;gap:8px;cursor:pointer}
.cover-box{width:96px;aspect-ratio:4/5;border-radius:12px;background:var(--soft) center/cover no-repeat;display:grid;place-items:center;color:var(--ink-3);flex:none}
.cover-box.sm{width:44px;border-radius:10px}
.setrow{display:flex;gap:8px 16px;flex-wrap:wrap;align-items:center;font-size:13px}
.setrow label{display:inline-flex;align-items:center;gap:8px}

/* learner blocks */
.prose{max-width:68ch;display:flex;flex-direction:column;gap:8px}
.ans{display:flex;gap:10px;align-items:flex-start;padding:10px 12px;border:1px solid var(--line);border-radius:12px;cursor:pointer}
.ans:has(input:checked){border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
.ans input{margin:2px 0 0;width:16px;height:16px;accent-color:var(--ink);flex:none}
.ans.right{border-color:var(--ok);box-shadow:inset 0 0 0 1px var(--ok)}
.ans.wrong{border-color:var(--bad);box-shadow:inset 0 0 0 1px var(--bad)}
.scale{display:flex;gap:6px;flex-wrap:wrap}
.scale button{width:40px;height:40px;border-radius:12px;background:var(--soft);font-weight:700}
.scale button[aria-pressed="true"]{background:var(--primary);color:var(--on-primary)}
details.fold summary{font:700 16px/22px var(--font);cursor:pointer}
details.fold[open] summary{margin-bottom:10px}
.filerow{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;background:var(--soft)}
.imgph{aspect-ratio:16/9;border-radius:14px;background:var(--soft);display:grid;place-items:center;color:var(--ink-3)}
@media (pointer:coarse){.scale button{width:44px;height:44px}}
.sheet .row.ex{flex-wrap:wrap}
.sheet .row.ex .ctl{margin-left:auto}
.q-h select.inp{flex:0 0 auto;min-width:0}
button.row:disabled{opacity:.55}
button.row:disabled:hover{background:none;box-shadow:none}

/* reviewer hints, reply templates */
.hints{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px;max-width:68ch;font-size:13px;line-height:18px;color:var(--ink-2)}
.hints b{color:var(--ink);font-weight:600}
.tpl{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.tpl .eyebrow{margin-right:2px}
.tpl-t{font-size:13px;line-height:18px;color:var(--ink-2);white-space:normal}

/* compact rules */
.pills.in{background:var(--soft);padding:3px}
.pills.in button{height:30px;padding:0 12px}
.rule{display:flex;gap:10px 16px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:14px 0;border-top:1px solid var(--line)}
.rule:first-child{border-top:0;padding-top:0}
.rule:last-child{padding-bottom:0}
.rule > .t{flex:1 1 200px}
.rule > .t > span{line-height:18px;margin-top:2px}
.kv{margin:0;display:flex;flex-direction:column}
.kv > div{display:flex;justify-content:space-between;align-items:baseline;gap:2px 16px;flex-wrap:wrap;padding:10px 0;border-top:1px solid var(--line)}
.kv > div:first-child{border-top:0;padding-top:0}
.kv dt{font-size:13px;color:var(--ink-2)}
.kv dd{margin:0 0 0 auto;font-weight:600;text-align:right}
@media (pointer:coarse){.pills.in button{height:40px}}
@container page (min-width:640px){.g-kpi.two{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}}

/* horizontal video */
.player.wide{max-width:880px;aspect-ratio:16/9}
.lesson.wide{grid-template-columns:minmax(0,1fr)}
.cover-box.sm.w{width:64px;aspect-ratio:16/9}
.blk .rowc > .t{flex:1 1 140px}

/* sales, clients */
.lnk{font-weight:600;text-decoration:underline;color:inherit}
.pills.multi{flex-wrap:wrap;border-radius:20px;overflow:visible}
.board{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start}
.col{display:flex;flex-direction:column;gap:8px;min-width:0;padding:10px;border-radius:20px;background:color-mix(in srgb,var(--ink) 5%,transparent)}
.col.over{box-shadow:inset 0 0 0 2px var(--ink)}
.col-h{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:2px 8px;padding:4px 6px 2px}
.col-h b{font-weight:700}
.col-h .m{font-size:12px;color:var(--ink-2);white-space:nowrap}
.col-e{padding:12px 6px;font-size:13px;color:var(--ink-3)}
.ocard{display:flex;flex-direction:column;gap:6px;padding:12px;border-radius:14px;background:var(--card);text-align:left;cursor:pointer;min-width:0}
.ocard:hover{box-shadow:0 0 0 1px var(--ink-3)}
.ocard:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.ocard.drag{opacity:.45}
.ocard > b{font-weight:700}
.ocard .w{font-size:13px;line-height:18px;color:var(--ink-2);overflow-wrap:anywhere}
.ocard .f{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:2px 8px;margin-top:2px}
.ocard .f b{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.ocard .f span{font-size:12px;color:var(--ink-3);white-space:nowrap}
.otr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;align-items:center;min-height:56px;padding:10px 0;border-top:1px solid var(--line);width:100%;text-align:left}
.otr.h{display:none}
.otr .c2{display:none}
.otr .num{font-weight:700;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
.otr.h + .otr{border-top:0}
button.tr{width:100%;text-align:left}
button.otr:hover,button.tr:hover{background:var(--soft);box-shadow:-12px 0 0 var(--soft),12px 0 0 var(--soft)}
.ors{display:flex;flex-direction:column;align-items:flex-end;gap:2px;flex:none}
.ors b{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.ev{display:flex;gap:12px;align-items:flex-start;padding:10px 0;border-top:1px solid var(--line)}
.ev:first-child{border-top:0;padding-top:0}
.ev:last-child{padding-bottom:0}
.ev .kpi-i{width:28px;height:28px}
.ev .when{font-size:12px;line-height:20px;color:var(--ink-3);white-space:nowrap;flex:none}
.kv dd{overflow-wrap:anywhere}
@container page (min-width:720px){
  .otr{grid-template-columns:52px minmax(0,1.1fr) minmax(0,1.3fr) 92px 128px minmax(0,.8fr)}
  .otr.h{display:grid;min-height:32px;padding:0 0 8px;border-top:0;font-size:12px;font-weight:600;color:var(--ink-2)}
  .otr .c2{display:block}
  .otr .only-n{display:none}
}
@container page (min-width:720px){
  .board{grid-template-columns:repeat(4,minmax(0,1fr))}
  .stages-w{display:none}
}
@container page (max-width:719.98px){.board .col:not(.cur){display:none}}
@container page (max-width:639.98px){
  .g-kpi.duo{grid-template-columns:repeat(2,minmax(0,1fr))}
  .g-kpi.duo > :first-child{grid-column:1 / -1}
  .g-kpi.duo .kpi{padding:14px 16px;gap:8px}
  .g-kpi.duo .kpi .v{font-size:24px;line-height:28px}
}

/* sales filters */
.fbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.fbar > .pills{flex:none}
.fbar .inp{border-radius:999px;border-color:transparent}
.fbar .inp:focus-visible{border-color:var(--ink)}
.fbar select.inp{width:auto;flex:1 1 150px;max-width:220px;padding-left:16px}
.dr{display:flex;gap:8px;flex:1 1 320px;max-width:400px;min-width:0}
.dr label{display:flex;align-items:center;gap:6px;flex:1;min-width:0;font-size:13px;color:var(--ink-2)}
.dr input{flex:1;min-width:0;width:auto;padding:0 12px}
.srch{position:relative;flex:2 1 240px;min-width:0}
.srch .ic{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--ink-3);pointer-events:none}
.srch .inp{padding-left:38px}
.fsum{font-size:13px;line-height:18px;color:var(--ink-2)}
.fsum b{color:var(--ink);font-weight:700}
.fbar.lean .srch{max-width:420px}
.fbar > .fsum{margin-left:auto}

/* launches */
.lstats{display:flex;gap:8px 24px;flex:none}
.lstat{display:flex;flex-direction:column;align-items:flex-end;min-width:88px}
.lstat b{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.lstat span{font-size:12px;line-height:16px;color:var(--ink-2);white-space:nowrap}
.flows{display:flex;flex-direction:column;gap:8px;margin-top:14px}
.flows .lbl{color:var(--ink)}
.flow{display:flex;align-items:center;gap:6px 12px;flex-wrap:wrap;min-height:40px}
.flow > b{min-width:72px;font-size:14px;font-weight:700;color:var(--ink)}
.flow label{display:inline-flex;align-items:center;gap:8px}
@container page (max-width:719.98px){
  .row.launch{flex-wrap:wrap}
  .row.launch .t{flex:1 1 50%}
  .lstats{order:3;width:100%;padding-left:52px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 12px}
  .lstat{align-items:flex-start;min-width:0}
  .lstat span{white-space:normal}
}
@container page (max-width:560px){
  .row.qrow{flex-wrap:wrap;row-gap:2px}
  .row.qrow .st{order:3;width:100%;padding-left:48px}
}

/* dropdown */
.dd{position:relative;display:flex;min-width:0;max-width:100%}
.dd.auto{display:inline-flex;width:auto}
.dd-b{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;height:40px;padding:0 10px 0 14px;border:1px solid var(--line);border-radius:12px;background:var(--card);color:var(--ink);font-weight:500;text-align:left;min-width:0}
.dd.auto .dd-b{height:36px;padding:0 8px 0 12px}
.dd-v{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.dd-b .ic{flex:none;color:var(--ink-2);transition:transform .15s}
.dd-b:hover{border-color:var(--ink-3)}
.dd-b[aria-expanded="true"]{border-color:var(--ink)}
.dd-b[aria-expanded="true"] .ic{transform:rotate(180deg)}
.dd-b:focus-visible{outline:0;border-color:var(--ink);box-shadow:0 0 0 3px color-mix(in srgb,var(--ink) 12%,transparent)}
.dd-pop{position:fixed;z-index:90;display:flex;flex-direction:column;gap:2px;padding:6px;background:var(--card);border-radius:16px;box-shadow:var(--shadow-pop);overflow:auto;overscroll-behavior:contain}
.dd-o{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:36px;padding:8px 10px 8px 12px;border-radius:10px;text-align:left;font-weight:500;color:var(--ink);line-height:20px}
.dd-o:hover,.dd-o:focus-visible{background:var(--soft);outline:0}
.dd-o[aria-selected="true"]{font-weight:700}
.dd-o .ic{flex:none}
.q-h .dd{flex:none}
.fbar .dd{flex:1 1 170px;max-width:240px}
.fbar .dd-b,.sortm .dd-b{border-radius:999px;border-color:transparent;padding:0 12px 0 16px}
.fbar .dd-b:hover,.sortm .dd-b:hover{border-color:var(--line)}
.fbar .dd-b[aria-expanded="true"],.fbar .dd-b:focus-visible,.sortm .dd-b[aria-expanded="true"],.sortm .dd-b:focus-visible{border-color:var(--ink)}
@media (pointer:coarse){.dd-b{height:48px;font-size:16px}.dd.auto .dd-b{height:44px}.dd-o{min-height:44px;font-size:16px}}

/* sortable tables */
.sh{display:inline-flex;align-items:center;gap:4px;font-weight:600;color:inherit;border-radius:6px;white-space:nowrap}
.sh .ic{color:var(--ink-3)}
.sh:hover,.sh.on,.sh.on .ic{color:var(--ink)}
.sh:focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.ct > span{display:block}
.sortm{display:flex}
.sortm .dd{flex:0 1 280px}
.ut{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;align-items:center;min-height:56px;padding:10px 0;border-top:1px solid var(--line);width:100%;text-align:left}
.ut.h{display:none}
.ut.h + .ut{border-top:0}
.ut .who{display:flex;align-items:center;gap:10px;min-width:0}
.ut .c2,.ut .c3,.otr .c3{display:none}
.ut .num{font-weight:700;font-variant-numeric:tabular-nums;text-align:right}
button.ut:hover{background:var(--soft);box-shadow:-12px 0 0 var(--soft),12px 0 0 var(--soft)}
@container page (min-width:720px){
  .ut{grid-template-columns:minmax(0,1.2fr) minmax(0,1.4fr) 120px 48px}
  .ut.h{display:grid;min-height:32px;padding:0 0 8px;font-size:12px;font-weight:600;color:var(--ink-2)}
  .ut .c2{display:block}
  .ut .u-n{display:none}
  .sortm{display:none}
}
@container page (min-width:900px){
  .ut{grid-template-columns:minmax(0,1.1fr) minmax(0,1.1fr) minmax(0,1.4fr) 120px 92px 44px minmax(0,.9fr)}
  .ut .c3,.otr .c3{display:block}
  .ut .u-p,.otr .o-p{display:none}
  .otr{grid-template-columns:52px minmax(0,1.1fr) minmax(0,1.25fr) minmax(0,1.2fr) 92px 128px minmax(0,.8fr)}
}

/* date picker */
.dd-pop.cal{display:block;width:304px;padding:12px}
.cal-h{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.cal-h b{font-weight:700}
.cal-g{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}
.cal-w{height:28px;line-height:28px;text-align:center;font-size:12px;font-weight:600;color:var(--ink-3)}
.cal-d{height:36px;border-radius:10px;font-weight:500;font-variant-numeric:tabular-nums;color:var(--ink)}
.cal-d:hover:not(:disabled),.cal-d:focus-visible{background:var(--soft);outline:0}
.cal-d:focus-visible{box-shadow:inset 0 0 0 2px var(--ink)}
.cal-d.out{color:var(--ink-3)}
.cal-d.now{box-shadow:inset 0 0 0 1px var(--ink-3)}
.cal-d[aria-selected="true"]{background:var(--primary);color:var(--on-primary)}
.cal-d:disabled{color:var(--line);cursor:default}
.cal-f{display:flex;justify-content:center;margin-top:6px;padding-top:6px;border-top:1px solid var(--line)}
.dr .dd{flex:1 1 0;min-width:0;max-width:none}
@media (pointer:coarse){.cal-d{height:42px}}

/* roles, team, thread */
.pills.roles{display:grid;grid-template-columns:1fr 1fr;border-radius:20px;overflow:visible}
.nbar{display:flex;align-items:center;gap:10px 12px;flex-wrap:wrap;background:var(--card);border-radius:14px;padding:12px 16px;font-weight:600}
.card .nbar{background:var(--soft)}
.nbar > .t{flex:1 1 220px}
.msgs{display:flex;flex-direction:column;gap:8px;max-width:72ch}
.msg{align-self:flex-start;max-width:88%;background:var(--soft);border-radius:4px 16px 16px 16px;padding:10px 12px}
.msg.own{align-self:flex-end;background:var(--primary);color:var(--on-primary);border-radius:16px 4px 16px 16px}
.mh{display:flex;gap:4px 6px;align-items:baseline;flex-wrap:wrap;font-size:12px;line-height:16px;opacity:.75;margin-bottom:4px}
.mh span{margin-left:auto;padding-left:8px}
.mh i{font-style:normal}
.msg p{line-height:20px}
.ut .fcc{display:block;margin-top:3px}
.tt{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;align-items:center;min-height:60px;padding:10px 0;border-top:1px solid var(--line);width:100%;text-align:left}
.tt.h{display:none}
.tt.h + .tt{border-top:0}
.tt .who{display:flex;align-items:center;gap:12px;min-width:0}
.tt .c2{display:none}
.tt .num{text-align:right;font-weight:700;font-variant-numeric:tabular-nums}
button.tt:hover{background:var(--soft);box-shadow:-12px 0 0 var(--soft),12px 0 0 var(--soft)}
.rt{display:flex;flex-direction:column}
.rr{display:grid;grid-template-columns:minmax(0,1fr) 60px 68px;gap:4px;align-items:center;min-height:44px;padding:6px 0;border-top:1px solid var(--line)}
.rr.h{min-height:32px;border-top:0;font-size:12px;font-weight:600;color:var(--ink-2)}
.rr.h span:not(:first-child),.rc{text-align:center;justify-self:center}
.rc input{width:18px;height:18px;accent-color:var(--ink);cursor:pointer}
.rc input:disabled{cursor:default;opacity:.5}
.rr > :nth-child(4){display:none}
@container page (min-width:560px){.rr{grid-template-columns:minmax(0,1fr) 72px 80px 64px;gap:8px}.rr > :nth-child(4){display:block}}
.asgl{display:flex;flex-direction:column}
.asg{display:flex;align-items:center;gap:12px;min-height:48px;padding:6px 0;border-top:1px solid var(--line);cursor:pointer}
.asg:first-child{border-top:0}
.asg input{width:18px;height:18px;accent-color:var(--ink);flex:none;margin:0}
.kcur{display:flex;margin-top:6px}
@container page (min-width:720px){
  .tt{grid-template-columns:minmax(0,1.6fr) 150px 90px 110px 24px}
  .tt.h{display:grid;min-height:32px;padding:0 0 8px;font-size:12px;font-weight:600;color:var(--ink-2)}
  .tt .c2{display:block}
  .tt .only-n{display:none}
  .nocon .ut{grid-template-columns:minmax(0,1.6fr) 150px 48px}
}
@container page (min-width:900px){
  .nocon .ut{grid-template-columns:minmax(0,1.2fr) minmax(0,1.2fr) 150px 92px 44px minmax(0,1fr)}
}
@media (max-width:1023.98px){.side{align-self:stretch}}

/* course from scratch */
.start{display:grid;gap:20px}
.start .steps li > span{line-height:20px}
.tree{background:var(--soft);border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:6px;min-width:0}
.tree .cap{font-size:12px;font-weight:600;color:var(--ink-2);padding:0 2px 4px}
.tn{display:flex;align-items:center;gap:10px;min-height:40px;padding:6px 12px;border-radius:12px;background:var(--card);min-width:0;font-size:13px}
.tn .kpi-i{width:26px;height:26px;flex:none}
.tn b{font-weight:700;white-space:nowrap}
.tn span.s{color:var(--ink-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.tn.l2{margin-left:16px}
.tn.l3{margin-left:32px}
.tn.gh{background:transparent;box-shadow:inset 0 0 0 1px var(--line);color:var(--ink-3)}
.tn.gh .s{color:var(--ink-3)}
.modh{display:flex;align-items:center;gap:6px;flex:none}
@container page (min-width:880px){.start{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:start}}

/* drag to reorder */
.grip{flex:none;width:28px;height:40px;display:grid;place-items:center;border-radius:8px;color:var(--ink-3);cursor:grab;touch-action:none;margin-left:-6px}
.grip:hover{color:var(--ink);background:var(--soft)}
.grip:focus-visible{outline:2px solid var(--ink);outline-offset:-2px;color:var(--ink)}
.grip.off{cursor:default;opacity:.55}
.grip.off:hover{background:none;color:var(--ink-3)}
.lrow{padding:0;gap:4px}
.lrow:hover{background:var(--soft);box-shadow:-12px 0 0 var(--soft),12px 0 0 var(--soft)}
.lmain{display:flex;align-items:center;gap:12px;flex:1;min-width:0;min-height:56px;padding:8px 0;text-align:left}
.mhd{display:flex;align-items:center;gap:6px;min-width:0}
.mhd .grip{height:44px}
.blk-h .grip{height:32px;margin-left:-8px}
.rows[data-box]:empty{display:none}
.srt-on,.srt-on *{cursor:grabbing!important;-webkit-user-select:none;user-select:none}
.srt-on .lrow:hover{background:none;box-shadow:none}
.srt-on .lrow.srt-drag:hover,.srt-on .srt-drag{background:var(--card)}
.srt-drag{position:relative;z-index:40;background:var(--card);box-shadow:var(--shadow-pop)!important;border-radius:14px}
.srt-drag.lrow{padding-right:8px}
.srt-drag .grip{color:var(--ink);background:var(--soft)}
.srt-day .rows[data-box="day"]:empty{display:grid;place-items:center;min-height:56px;border:1px dashed var(--ink-3);border-radius:12px}
.srt-day .rows[data-box="day"]:empty::before{content:"Перетащите сюда";color:var(--ink-3);font-size:13px}
.srt-day .mod-empty{display:none}

/* sales: tariffs and offers */
.g-tar{display:grid;gap:20px}
.tcard.off{opacity:.65}
.tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
.tprice{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.tprice b{font-size:26px;line-height:32px;font-weight:700;letter-spacing:-.01em}
.tprice s,.ofr s{color:var(--ink-3)}
.chain{display:flex;flex-wrap:wrap;align-items:stretch;gap:8px}
.ch{flex:1 1 140px;display:flex;flex-direction:column;gap:4px;padding:12px;border-radius:14px;background:var(--soft);min-width:0}
.ch .kpi-i{background:var(--card);margin-bottom:4px}
.ch span:last-child{font-size:12px;line-height:16px;color:var(--ink-2)}
.ch-a{display:grid;place-items:center;color:var(--ink-3);flex:none}
.tw{display:flex;flex-direction:column;border-top:1px solid var(--line);padding:8px 0}
.tw:first-of-type{border-top:0}
.tw-h,.tw-d{display:flex;align-items:center;gap:10px;min-height:40px;cursor:pointer;min-width:0}
.tw-h b{flex:1;min-width:0}
.tw-d{padding-left:28px;font-size:13px}
.tw-d .clip{flex:1;min-width:0}
.tw input,.tchk input{width:18px;height:18px;accent-color:var(--ink);flex:none;margin:0}
.tchk{display:flex;flex-wrap:wrap;gap:8px 16px}
.two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ckb{display:flex;flex-direction:column;gap:2px;padding:12px;border-radius:12px;background:var(--soft)}
.ofr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;align-items:center;min-height:60px;padding:10px 0;border-top:1px solid var(--line);width:100%;text-align:left}
.ofr.h{display:none}
.ofr.h + .ofr{border-top:0}
.ofr .t{display:flex;flex-direction:column;min-width:0}
.ofr .t > span{font-size:13px;color:var(--ink-2)}
.ofr .num{text-align:right;display:flex;flex-direction:column;align-items:flex-end;font-variant-numeric:tabular-nums}
.ofr .c2,.ofr .c3,.ofr .num.c2,.ofr .num.c3{display:none}
button.ofr:hover{background:var(--soft);box-shadow:-12px 0 0 var(--soft),12px 0 0 var(--soft)}
@container page (min-width:720px){
  .g-tar{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ofr{grid-template-columns:minmax(0,1.6fr) 140px 100px 70px 130px}
  .ofr.h{display:grid;min-height:32px;padding:0 0 8px;font-size:12px;font-weight:600;color:var(--ink-2)}
  .ofr .c2{display:block}
  .ofr .num.c2{display:flex}
  .ofr .only-n{display:none}
}
@container page (min-width:900px){
  .ofr{grid-template-columns:minmax(0,1.6fr) 140px 100px 70px 100px 130px}
  .ofr .c3,.ofr .num.c3{display:flex}
}
@container page (min-width:1180px){.g-tar{grid-template-columns:repeat(3,minmax(0,1fr))}}
@container page (max-width:559px){.ch-a{width:100%;transform:rotate(90deg)}}

/* child card, stages, segments */
.dg{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px}
.dc{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border-radius:12px;background:var(--soft);min-width:0}
.dc .d1{font-size:12px;line-height:16px;font-weight:600;color:var(--ink-2)}
.dc .dv{display:flex;align-items:center;gap:6px;font-weight:600;font-size:13px}
.dc.now{background:var(--primary);color:var(--on-primary)}
.dc.now .d1{color:inherit;opacity:.7}
.dc.fut{background:transparent;box-shadow:inset 0 0 0 1px var(--line);color:var(--ink-3)}
.pipe{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.pp{display:inline-flex;align-items:center;gap:4px;height:28px;padding:0 12px;border-radius:999px;background:var(--card);color:var(--ink-3);font-size:13px;font-weight:600;box-shadow:inset 0 0 0 1px var(--line)}
.pp.done{color:var(--ink-2);box-shadow:none}
.pp.on{background:var(--primary);color:var(--on-primary);box-shadow:none}
.pp.bad{background:color-mix(in srgb,var(--bad) 14%,transparent);color:var(--bad)}
.pa{color:var(--ink-3);display:inline-flex}
.sgc{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr) auto;gap:8px;align-items:center}
.sgc .dd{max-width:none}

/* public pages */
.app.pub{display:block}
.app.pub .side,.app.pub .scrim{display:none}
.ptop{display:flex;align-items:center;justify-content:space-between;gap:12px}
.pbrand{display:flex;align-items:center;gap:10px;min-width:0;font-size:15px}
.pbrand b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.plinks{display:none;gap:2px}
.plinks button{height:36px;padding:0 12px;border-radius:999px;font-weight:600;color:var(--ink-2)}
.plinks button:hover{color:var(--ink);background:var(--card)}
.lhero{display:grid;gap:24px;background:var(--card);border-radius:24px;padding:24px;align-items:center}
.lh-t{display:flex;flex-direction:column;gap:16px;min-width:0}
.lh-t h1{font:700 32px/38px var(--font);letter-spacing:-.02em;text-wrap:balance}
.lh-t > p{color:var(--ink-2);font-size:16px;line-height:24px;max-width:52ch}
.lh-img{aspect-ratio:16/10;max-width:100%;border-radius:18px;background:var(--soft) center/cover no-repeat}
.lsec{display:flex;flex-direction:column;gap:16px;scroll-margin-top:16px}
.lsec > h2{font:700 26px/32px var(--font);letter-spacing:-.01em}
.lhow{display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.lhow .card{gap:8px}
.lprog{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}
.lp-w{background:var(--card);border-radius:16px;padding:14px 16px;display:flex;flex-direction:column;gap:4px;min-width:0}
.lp-w > span:last-child{color:var(--ink-2);font-size:13px;line-height:18px}
.ltars{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));align-items:stretch}
.ltar{background:var(--card);border-radius:20px;padding:20px;display:flex;flex-direction:column;gap:12px;min-width:0}
.ltar.hot{box-shadow:inset 0 0 0 2px var(--ink)}
.ltar > .btn{margin-top:auto}
.lperks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.lperks li{display:flex;gap:8px;align-items:flex-start;line-height:20px}
.lperks .ic{flex:none;margin-top:2px}
.lfaq details{background:var(--card);border-radius:16px;padding:14px 16px}
.lfaq summary{font-weight:700;cursor:pointer}
.lfaq details p{margin-top:8px;color:var(--ink-2);max-width:72ch}
.lfoot{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;color:var(--ink-2);font-size:13px;padding:8px 0 48px}
.authc{max-width:460px;width:100%;margin-inline:auto}
.authc h2{font:700 24px/30px var(--font)}
.kpi-i.ok{background:color-mix(in srgb,var(--ok) 16%,transparent);color:var(--ok)}
.mback{position:fixed;left:max(12px,env(safe-area-inset-left,0px));bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:40;display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 14px;border-radius:999px;background:var(--primary);color:var(--on-primary);font-weight:600;font-size:13px;box-shadow:var(--shadow-pop)}
button.me{cursor:pointer}
@container page (min-width:880px){
  .plinks{display:flex}
  .lhero{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);padding:40px}
  .lh-t h1{font-size:44px;line-height:50px}
}

/* review player, achievements, letters, analytics */
button.rep{text-align:left;color:inherit}
button.rep:hover .v{opacity:.85}
.rtabs button{display:inline-flex;align-items:center;gap:4px}
.rgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.rv{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:3/4;max-height:320px;border-radius:14px;background:#0c0c0e center/cover no-repeat;color:#fff;object-fit:cover}
.rv .ph{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:rgba(255,255,255,.16)}
.rvt{position:absolute;left:10px;bottom:8px;font-size:12px;opacity:.75}
.pwrap{position:relative}
.wm{position:absolute;left:50%;top:44%;transform:translate(-50%,-50%) rotate(-24deg);color:#fff;opacity:.3;font-size:12px;font-weight:600;white-space:nowrap;pointer-events:none;text-shadow:0 1px 2px rgba(0,0,0,.6)}
.pnote{display:flex;align-items:center;gap:6px;justify-content:center;margin-top:8px}
.achs{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px}
.ach{display:flex;flex-direction:column;gap:4px;padding:12px;border-radius:14px;box-shadow:inset 0 0 0 1px var(--line);color:var(--ink-3);min-width:0}
.ach b{color:var(--ink-2);font-size:13px}
.ach span:last-child{font-size:12px;line-height:16px}
.ach.got{box-shadow:none;background:var(--soft);color:var(--ink)}
.ach.got b{color:var(--ink)}
.ach.got .kpi-i{background:var(--primary);color:var(--on-primary)}
.fnb{display:flex;flex-direction:column;text-align:left;min-width:0;flex:1}
.fnb span{font-size:13px;color:var(--ink-2)}
.fns{white-space:nowrap}
.fstep{display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:14px;background:var(--soft)}
.fstep .dd{flex:1 1 0;max-width:none}
.vbars{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);align-items:end;gap:6px;height:180px;border-bottom:1px solid var(--line);padding-top:20px}
.vbars.sm{height:150px}
.vb-c{position:relative;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;height:100%}
.vb{display:block;width:62%;max-width:28px;min-height:2px;background:var(--ink-2);border-radius:4px 4px 0 0;cursor:default;outline-offset:2px}
.vb.hot,.vb:hover,.vb:focus-visible{background:var(--ink)}
.vb-v{position:absolute;top:-18px;font-size:12px;font-weight:600;white-space:nowrap;color:var(--ink)}
.vb-x{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:6px;font-size:11px;color:var(--ink-3);text-align:center}
.hbs{display:flex;flex-direction:column;gap:10px}
.hb-row{display:grid;grid-template-columns:minmax(0,9rem) minmax(0,1fr) auto;gap:10px;align-items:center;font-size:13px}
.hb-t{display:block;height:12px}
.hb{display:block;height:12px;min-width:2px;background:var(--ink-2);border-radius:0 4px 4px 0}
.hb:hover{background:var(--ink)}
.hb-row b{font-variant-numeric:tabular-nums;white-space:nowrap}
.ctr{display:grid;grid-template-columns:minmax(0,1fr) 72px 92px 92px;gap:8px;align-items:center;min-height:52px;border-top:1px solid var(--line)}
.ctr.h{min-height:32px;border-top:0;font-size:12px;font-weight:600;color:var(--ink-2)}
.ctr .who{display:flex;align-items:center;gap:10px;min-width:0}
.ctr .num{text-align:right;font-variant-numeric:tabular-nums}
.ctr .c2{display:none}
.tip{position:fixed;z-index:95;pointer-events:none;max-width:260px;padding:6px 10px;border-radius:10px;background:var(--primary);color:var(--on-primary);font-size:12px;line-height:16px;box-shadow:var(--shadow-pop)}
.sw-c{width:28px;height:28px;border-radius:8px;flex:none}
@container page (min-width:720px){.ctr{grid-template-columns:minmax(0,1fr) 90px 110px 110px 150px}.ctr .c2{display:block}}
@container page (max-width:559px){.rgrid{grid-template-columns:1fr}.hb-row{grid-template-columns:minmax(0,6.5rem) minmax(0,1fr) auto}}
.rep .seen{position:absolute;top:6px;right:6px;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--ok);color:var(--card)}

/* student cabinet and client actions */
.sched{display:grid;grid-template-columns:repeat(auto-fit,minmax(104px,1fr));gap:8px}
.sc{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-radius:12px;background:var(--soft);min-width:0}
.sc .d1{font-size:12px;font-weight:600;color:var(--ink-2)}
.sc b{font-size:14px}
.sc .d2{font-size:12px;line-height:16px;color:var(--ink-2)}
.sc.now{background:var(--primary);color:var(--on-primary)}
.sc.now .d1,.sc.now .d2{color:inherit;opacity:.75}
.sc.fut,.sc.off{background:transparent;box-shadow:inset 0 0 0 1px var(--line)}
.sc.off b{color:var(--ink-2)}
.kpi-i.bad{background:color-mix(in srgb,var(--bad) 14%,transparent);color:var(--bad)}
.impb{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 14px;border-radius:14px;background:var(--primary);color:var(--on-primary);font-weight:600;font-size:13px}
.impb .t{flex:1 1 220px}
.impb .btn{background:var(--on-primary);color:var(--primary)}

/* search, import, promo, cookies */
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.02em}
.cookie{position:fixed;right:max(12px,env(safe-area-inset-right,0px));bottom:calc(56px + env(safe-area-inset-bottom,0px));z-index:41;display:flex;align-items:center;gap:10px;max-width:min(420px,calc(100vw - 24px));padding:10px 12px;border-radius:14px;background:var(--card);box-shadow:var(--shadow-pop);font-size:13px;line-height:18px}
#modal .srch{max-width:none}

.tk{width:18px;height:18px;accent-color:var(--ink);flex:none;margin:0}

.wkh{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap;font-size:13px}
.wkh span{color:var(--ink-2)}

/* AI curator */
.run{display:flex;flex-direction:column;gap:8px}
.rs{display:flex;align-items:center;gap:10px;color:var(--ink-3)}
.rs .t{display:flex;flex-direction:column;min-width:0}
.rs .t b{font-weight:600}
.rs.done,.rs.now{color:var(--ink)}
.rs .t span{font-size:12px;color:var(--ink-2)}
.ri{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--soft);flex:none;color:var(--ink-2)}
.rs.done .ri{background:color-mix(in srgb,var(--ok) 16%,transparent);color:var(--ok)}
.spin{display:block;width:14px;height:14px;border:2px solid var(--line);border-top-color:var(--ink);border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.spin{animation:none;border-color:var(--ink)}}
.bar2{height:6px;border-radius:999px;background:var(--soft);overflow:hidden}
.bar2 i{display:block;height:100%;background:var(--ink);border-radius:999px;transition:width .4s}
.pt-v{position:relative;width:100%;max-width:220px;margin-inline:auto}
.pt-v video,.pt-v img{display:block;width:100%;border-radius:14px;background:#000}
.pv-e{display:block;width:100%;aspect-ratio:9/16;border-radius:14px;background:var(--soft)}
.pv-e.w{aspect-ratio:16/9}
.pv-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:rgba(0,0,0,.5);color:#fff;border:0;cursor:pointer}
.ptop{display:grid;grid-template-columns:200px minmax(0,1fr);gap:20px;align-items:start}
@container page (max-width:639px){.ptop{grid-template-columns:minmax(0,1fr)}.ptop .pt-v{max-width:180px}}
.phs,.sps,.crs{display:flex;flex-direction:column;gap:12px}
.phr{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;align-items:start}
.fth{position:relative;display:block;height:112px;border-radius:10px;overflow:hidden;background:var(--soft);color:var(--ink-3)}
.fth img{display:block;height:100%;width:auto;max-width:150px;object-fit:cover}
.fth.e{display:grid;place-items:center;width:63px}
@container page (max-width:559px){.fth{height:84px}.fth img{max-width:112px}.fth.e{width:48px}}
.tc{position:absolute;left:4px;bottom:4px;padding:1px 5px;border-radius:6px;background:rgba(0,0,0,.6);color:#fff;font-size:11px;font-weight:600;font-variant-numeric:tabular-nums}
.phb{display:flex;flex-direction:column;gap:4px;min-width:0}
.phb textarea{min-height:0}
.spr{display:grid;grid-template-columns:36px minmax(0,1fr);gap:8px;align-items:start}
.tc2{font-size:12px;font-weight:700;color:var(--ink-2);padding-top:11px;font-variant-numeric:tabular-nums}
.crr{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:start}
.crr > input[type="checkbox"]{width:18px;height:18px;accent-color:var(--ink);margin-top:11px}
.crr > .ri{margin-top:8px;width:24px;height:24px}
.crr > .ibtn{margin-top:4px}
.crm{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px}
.warnb{background:color-mix(in srgb,var(--warn) 14%,var(--card))}
.warnb .rowc{margin-top:6px}
.faq{display:flex;flex-direction:column;gap:6px;padding-top:12px;border-top:1px solid var(--line)}
.faq:first-child{border-top:0;padding-top:0}
.ctx{white-space:pre-wrap;font:13px/19px ui-monospace,SFMono-Regular,Menlo,monospace;background:var(--soft);border-radius:12px;padding:12px;max-height:55vh;overflow:auto;margin:0}
textarea.ag{min-height:40px;resize:none;overflow:hidden;padding:9px 12px;line-height:20px}
.crr > .ri{color:var(--warn)}
@container page (min-width:880px){.g-2.flip{grid-template-columns:minmax(0,1fr) minmax(0,1.5fr)}}

/* learner day */
.dgrid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start}
.dmain{display:flex;flex-direction:column;gap:16px;min-width:0}
.daside{min-width:0}
@container page (min-width:1000px){.dgrid{grid-template-columns:minmax(0,820px) 300px;justify-content:start}.daside{grid-column:2;grid-row:1;position:sticky;top:16px}.dmain{grid-column:1;grid-row:1}}
.dstat{gap:10px}
.dst-h{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.dpts{display:flex;align-items:center;justify-content:space-between;gap:4px 8px;flex-wrap:wrap;padding-top:10px;border-top:1px solid var(--line);font-size:13px;color:var(--ink-2)}
.dplan{display:flex;flex-wrap:wrap;gap:6px}
.pi{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:0 10px 0 5px;border-radius:999px;border:1px solid var(--line);background:var(--card);color:var(--ink);font:inherit;font-size:13px;font-weight:600;cursor:pointer;min-width:0}
.pi:not(.bk){padding-right:5px}
.pi:disabled{cursor:default}
.pi .pn{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--soft);font-size:12px;flex:none}
.pi.done .pn{background:color-mix(in srgb,var(--ok) 18%,transparent);color:var(--ok)}
.pi .nm{display:none;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}
.dplan.names{flex-direction:column}
.dplan.names .pi{width:100%;border-radius:12px;padding:6px 10px 6px 6px}
.dplan.names .nm{display:block}
@container page (min-width:1000px){.dplan{flex-direction:column;gap:4px}.pi,.pi:not(.bk){width:100%;border-radius:12px;padding:6px 10px 6px 6px}.pi .nm{display:block}.pi .sh{display:none}}
.xc{display:grid;grid-template-columns:88px minmax(0,1fr);gap:12px 14px;align-items:start}
.xc-b{display:contents}
.xc-b > *{grid-column:1 / -1;min-width:0}
.xc-b > .xc-h{grid-column:2}
@container page (min-width:640px){.xc{grid-template-columns:150px minmax(0,1fr);gap:16px 20px}.xc-b{display:flex;flex-direction:column;gap:12px;min-width:0}}
.xc-h{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}
.xn{display:inline-flex;align-items:center;justify-content:center;gap:3px;min-width:24px;height:24px;padding:0 7px;border-radius:999px;background:var(--soft);font-size:12px;font-weight:700}
.xn.on{background:color-mix(in srgb,var(--ok) 18%,transparent);color:var(--ok)}
.xth{position:relative;display:block;width:100%;aspect-ratio:9/16;border-radius:12px;background:var(--soft) center/cover no-repeat;border:0;padding:0;cursor:pointer;overflow:hidden}
.xth.w{aspect-ratio:16/9}
.xth .pb{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:rgba(0,0,0,.5);color:#fff}
.xth .dur{position:absolute;right:6px;bottom:6px;padding:1px 6px;border-radius:6px;background:rgba(0,0,0,.6);color:#fff;font-size:11px;font-weight:600}
.xth.none{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;cursor:default;color:var(--ink-3);font-size:11px;font-weight:600;text-align:center;padding:6px}
.xrep{display:flex;flex-direction:column;gap:8px;padding-top:12px;border-top:1px solid var(--line)}
.xmore summary{cursor:pointer;font-weight:600;font-size:13px}
.xmore[open] summary{margin-bottom:8px}
.xmore .card{padding:0;background:none}
.xc,.dblk,.fbm{scroll-margin-top:16px}
.hl{outline:2px solid var(--ink);outline-offset:2px}
.clamp{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;max-width:72ch}
.xplay .pwrap{width:fit-content;max-width:100%;margin-inline:auto}
.xplay .player{width:min(340px,34.7dvh);max-width:100%}
.xplay.w .pwrap{width:100%}
.xplay.w .player{width:100%;max-width:none}
.fbr{flex-direction:row;align-items:center;gap:12px;width:100%;border:0;text-align:left;font:inherit;color:inherit;cursor:pointer}
.fbr .t{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.fbr .t > span{color:var(--ink-2);font-size:13px}
.pi.redo .pn{background:color-mix(in srgb,var(--warn) 24%,transparent)}

/* v26: one thumbnail frame for any format, plan checks, faces, questions */
.xth,.xth.w{aspect-ratio:9/16;background-color:var(--soft);background-image:var(--cv,none);background-size:cover;background-position:center;background-repeat:no-repeat}
.xth.w,.xth.nc{background-color:#1d1d21}
.xth.w{background-image:none}
.xth.w::before{content:"";position:absolute;inset:-12px;background-image:var(--cv,none);background-size:cover;background-position:center;filter:blur(10px) brightness(.5)}
.xth .xi{position:absolute;left:0;right:0;top:50%;transform:translateY(-50%);aspect-ratio:16/9;background-color:#2c2c32;background-image:var(--cv,none);background-size:cover;background-position:center}
.xth .pb,.xth .dur{z-index:1}
.pi .ck{display:inline-flex;color:var(--ok);flex:none}
.pi.redo .ck{color:var(--warn)}
.pi.done,.pi.redo{padding-right:8px}
@container page (min-width:1000px){.pi .ck{margin-left:auto}}
.dlg{display:flex;align-items:center;gap:4px}
.dlg .ic{color:var(--ok)}
.scale.faces{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;max-width:460px}
.scale.faces button{width:auto;height:auto;padding:10px 4px 8px;display:flex;flex-direction:column;align-items:center;gap:4px;border-radius:14px;background:var(--soft);font-weight:600;color:inherit}
.scale.faces .em{font-size:26px;line-height:1}
.scale.faces .fl{font-size:11px;line-height:14px;color:var(--ink-2);text-align:center}
.scale.faces button[aria-pressed="true"]{background:var(--card);box-shadow:inset 0 0 0 2px var(--ink);color:inherit}
.scale.faces button[aria-pressed="true"] .fl{color:var(--ink)}
.xask{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px}
.xask .lnk{display:inline-flex;align-items:center;gap:6px}
.qbox{display:flex;flex-direction:column;gap:8px;padding-top:12px;border-top:1px solid var(--line)}
.qbox:first-child{border-top:0;padding-top:0}
#dq{scroll-margin-top:16px}

.scale.faces button{padding:10px 0}
.scale.faces .em{font-size:28px}
.fends{display:flex;justify-content:space-between;align-items:baseline;gap:8px;max-width:460px;font-size:12px;color:var(--ink-2)}
.fends b{color:var(--ink);font-weight:600}

.fends{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;max-width:460px;font-size:12px;line-height:15px;color:var(--ink-2);text-align:center}
.fends .on{color:var(--ink);font-weight:600}

/* v28: motivation and community */
.mchips{display:flex;flex-wrap:wrap;gap:4px 14px;align-items:center}
.mc{display:inline-flex;align-items:center;gap:5px;font-weight:600;color:var(--ink)}
.row.sm{min-height:40px;padding:6px 0}
.hcard{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px 20px;align-items:center}
.hcard > .hst{grid-row:1 / span 2}
.hc-h{display:flex;flex-direction:column;gap:4px;min-width:0;align-self:end}
.hc-b{display:flex;flex-direction:column;gap:10px;min-width:0;align-self:start}
@container page (max-width:559px){.hcard > .hst{grid-row:auto}.hcard > .hst .hfig{height:104px !important}.hc-h{align-self:center}.hc-b{grid-column:1 / -1}}
.hst{display:grid;place-items:end center;background:var(--tile);border-radius:14px;padding:12px 18px 8px}
.hfig{display:block;width:auto;max-width:none}
.hstrip{display:flex;gap:6px;flex-wrap:wrap}
.hmini{display:grid;place-items:end center;background:var(--tile);border-radius:10px;padding:6px 8px 4px}
.hmini.fut{opacity:.45}
.hmini.on{box-shadow:inset 0 0 0 2px var(--ink)}
.hgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.hopt{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:8px 8px 10px;border-radius:16px;border:1px solid var(--line);background:var(--card);font:inherit;color:inherit;cursor:pointer;text-align:center}
.hopt[aria-pressed="true"]{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}
@media (max-width:420px){.hgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.ccal{display:grid;grid-template-columns:repeat(auto-fill,minmax(212px,1fr));gap:8px 24px}
.calw{display:flex;align-items:center;gap:6px}
.calw > .small{width:46px;flex:none}
.cd{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;font-size:12px;font-weight:700;background:var(--soft);color:var(--ink-3);box-sizing:border-box}
.cd.p2{background:color-mix(in srgb,var(--ok) 24%,var(--card));color:var(--ink)}
.cd.p1{background:color-mix(in srgb,var(--warn) 34%,var(--card));color:var(--ink)}
.cd.p0{background:color-mix(in srgb,var(--bad) 22%,var(--card));color:var(--ink)}
.cd.now{background:var(--card);box-shadow:inset 0 0 0 2px var(--ink);color:var(--ink)}
.cd.miss{background:var(--card);border:1.5px dashed var(--bad);color:var(--ink)}
.cd.sm{display:inline-block;width:14px;height:14px;border-radius:4px;vertical-align:-2px;margin-right:6px}
.chd{display:flex;gap:6px;flex-wrap:wrap}
.chd span{display:grid;place-items:center;width:42px;height:36px;border-radius:10px;background:var(--soft);font-size:12px;font-weight:700;color:var(--ink-2)}
.chd .on{background:color-mix(in srgb,var(--ok) 22%,var(--card));color:var(--ok)}
.chd .now{box-shadow:inset 0 0 0 2px var(--ink);color:var(--ink)}
.bmap{display:grid;grid-template-columns:1fr 1fr;gap:12px;width:100%;max-width:420px;margin-inline:auto}
.bmap figure{margin:0;display:flex;flex-direction:column;align-items:center;gap:6px}
.bmap svg{width:100%;max-width:190px;height:auto}
.bmap figcaption{font-size:12px;font-weight:600;color:var(--ink-2)}
.mb{fill:var(--card);stroke:var(--line);stroke-width:1.5}
.mz{stroke:var(--line);stroke-width:1.5;cursor:pointer}
.mz.on{stroke:var(--ink);stroke-width:2.5}
.mbar{display:block;height:6px;border-radius:99px;background:var(--soft);overflow:hidden;margin-top:6px;max-width:220px}
.mbar i{display:block;height:100%;background:var(--accent);border-radius:99px}
.gbal{display:inline-flex;align-items:center;gap:6px;font:700 18px/22px var(--font)}
.score.neg{color:var(--ink-2)}
.fds{display:flex;flex-direction:column}
.fd{display:flex;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.fd:first-child{border-top:0;padding-top:0}
.fd-b{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}
.fd.ann .fd-b{background:var(--soft);border-radius:12px;padding:10px 12px}
.fd-f{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
.res{display:inline-flex;gap:6px}
.re{display:inline-flex;align-items:center;gap:4px;height:32px;padding:0 10px;border-radius:999px;border:1px solid var(--line);background:var(--card);font:inherit;font-size:14px;cursor:pointer}
.re span{font-size:13px;font-weight:600;color:var(--ink-2)}
.re[aria-pressed="true"]{border-color:var(--ink);background:var(--soft)}
.mchs{display:flex;flex-wrap:wrap;gap:6px}
.mch{height:32px;padding:0 12px;border-radius:999px;border:1px solid var(--line);background:var(--card);font:inherit;font-weight:600;font-size:13px;color:var(--ink-2);cursor:pointer}
.mch[aria-pressed="true"]{background:var(--primary);color:var(--on-primary);border-color:var(--primary)}
.prule.mrw{grid-template-columns:64px auto 64px minmax(0,1fr) auto;margin-bottom:8px}
.field > .prule{margin-bottom:8px}
.rwe{display:grid;grid-template-columns:minmax(0,1fr) 72px auto;gap:8px;align-items:center;margin-bottom:8px}
.libg{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}
.libc{display:flex;gap:12px;align-items:center;padding:12px;border-radius:16px;background:var(--card);border:0;text-align:left;font:inherit;color:inherit;cursor:pointer;min-width:0}
.libcov{display:grid;place-items:center;width:56px;height:56px;border-radius:12px;background:var(--soft);color:var(--ink-2);flex:none}
.libc .t{display:flex;flex-direction:column;gap:2px;min-width:0}
.art{max-width:720px}
.art h1{font-size:24px;line-height:30px;text-wrap:balance}
.art .prose p{max-width:65ch}
@container page (max-width:999px){.pi.bk .sh{display:none}.pi.bk{padding:0 5px}}

/* v29: learner home */
.home{display:flex;flex-direction:column;gap:16px}
.hmain,.hrail{display:contents}
.home .o1{order:1}.home .o2{order:2}.home .o3{order:3}.home .o4{order:4}.home .o5{order:5}.home .o6{order:6}.home .o7{order:7}.home .o8{order:8}
@container page (min-width:1000px){.home{display:grid;grid-template-columns:minmax(0,1fr) 328px;gap:20px;align-items:start}.hmain,.hrail{display:flex;flex-direction:column;gap:20px;min-width:0}}
.hsec{display:flex;flex-direction:column;gap:10px;min-width:0}
.sec-h{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:0 4px}
.sec-h h2{font-size:17px;line-height:22px}
.hbn{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 16px;align-items:end;background:var(--accent-soft);color:var(--ink);border-radius:24px;padding:24px 28px 0;overflow:hidden}
.hbn-t{display:flex;flex-direction:column;gap:10px;align-items:flex-start;padding:16px 0 28px;min-width:0;align-self:center}
.hbn h1{font-size:32px;line-height:38px;font-weight:800;letter-spacing:-.01em;color:var(--ink)}
.hbn h1 span{color:var(--accent-ink)}
.hbn p{max-width:36ch;color:var(--ink-2);font-size:15px;line-height:21px}
.hbn .btn{background:var(--primary);color:var(--on-primary);margin-top:6px}
.hbn-c{position:absolute;top:16px;right:16px;display:flex;gap:6px}
.hchip{display:inline-flex;align-items:center;gap:5px;height:32px;padding:0 12px;border-radius:999px;background:var(--card);color:var(--ink);font:inherit;font-weight:700;font-size:13px;border:0;cursor:pointer;white-space:nowrap}
.hbn-h{display:block;align-self:end;border:0;background:none;padding:0;margin-top:40px;cursor:pointer}
@container page (max-width:559px){.hbn{padding:16px 16px 0;border-radius:20px}.hbn-t{padding:40px 0 20px}.hbn h1{font-size:25px;line-height:30px}.hbn p{font-size:14px;line-height:20px}.hbn-h .hfig{height:156px !important}}
.hface{width:36px;height:36px;border-radius:50%;background:#F6F1EA;object-fit:cover;flex:none}
.kidsw .hface{width:24px;height:24px}
.cont{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px 16px;align-items:center}
.cont-th{display:grid;place-items:center;width:112px;aspect-ratio:4/3;border-radius:12px;background:var(--soft) center 30%/cover no-repeat;color:var(--ink-3)}
.cont-b{display:flex;flex-direction:column;gap:6px;min-width:0}
.cont-p{display:flex;align-items:center;gap:10px}
.cont-p .bar2{flex:1;max-width:280px}
.cont .bar2 i{background:var(--accent)}
@container page (max-width:559px){.cont{grid-template-columns:auto minmax(0,1fr)}.cont > .btn{grid-column:1 / -1}.cont-th{width:84px}}
.mts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.mt{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:16px;background:var(--card);border:0;font:inherit;color:inherit;text-align:left;cursor:pointer;min-width:0}
.mt .t{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.mt .t span{font-size:12px;line-height:16px;color:var(--ink-2)}
.zf{width:22px;height:60px;flex:none}
.goal-m{display:flex;align-items:center;gap:14px}
.goal-m .t{display:flex;flex-direction:column;gap:2px;min-width:0}
.goal-m .t span{font-size:13px;line-height:18px;color:var(--ink-2)}
.goal-r{position:relative;width:104px;height:104px;flex:none}
.goal-c{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.15}
.goal-c .ic{color:var(--accent)}
.goal-c b{font-size:17px}
.goal-c span{font-size:11px;color:var(--ink-2)}
.wkd{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;font-size:11px;line-height:14px;color:var(--ink-2)}
.wkd span{display:flex;flex-direction:column;align-items:center;gap:4px}
.wkd i{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--line);font-style:normal;color:#fff}
.wkd .p2 i{background:var(--ok);box-shadow:none}
.wkd .p1 i{background:var(--warn);box-shadow:none}
.wkd .p0 i{background:var(--bad);box-shadow:none}
.wkd .now i{box-shadow:inset 0 0 0 2px var(--ink)}
.wkd .now{color:var(--ink);font-weight:700}
.lb{display:flex;flex-direction:column;gap:2px}
.lbr{display:flex;align-items:center;gap:10px;padding:6px 8px;border-radius:12px;min-width:0}
.lbr.you{background:var(--accent-soft)}
.lbr b{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lbn{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;font-size:12px;font-weight:700;color:var(--ink-2);flex:none}
.lbr:first-child .lbn{background:var(--accent);color:var(--on-accent)}
.gift{flex-direction:row;align-items:center;gap:14px;background:var(--accent-soft);color:var(--ink)}
.gift img{width:64px;height:64px;flex:none}
.gift .t{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.gift .bar2{background:color-mix(in srgb,var(--ink) 12%,transparent)}
.gift .bar2 i{background:var(--ink)}
.side-b{margin-top:auto;display:flex;flex-direction:column;gap:8px}
.side-inv{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:12px;border-radius:14px;background:var(--card)}
.side-inv span:not(.kpi-i){font-size:12px;line-height:16px;color:var(--ink-2)}
.side-inv .btn{margin-top:6px}
.side-me{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:14px;background:var(--card);border:0;font:inherit;color:inherit;text-align:left;cursor:pointer;width:100%}
.side-me .t{flex:1;min-width:0;display:flex;flex-direction:column}
.side-me .t span{font-size:12px;line-height:16px;color:var(--ink-2)}
.ach .bdg{width:56px;height:56px}
.ach:not(.got) .bdg{filter:grayscale(1);opacity:.4}
.libcov{background:var(--tile);overflow:hidden}
.libcov img{width:100%;height:100%;object-fit:contain;padding:4px;box-sizing:border-box}
.fbr > .libcov{width:44px;height:44px;border-radius:10px;display:grid;flex:none}
.artcov{width:120px;height:120px;border-radius:16px;background:var(--tile);object-fit:contain;padding:8px;box-sizing:border-box}
@container page (min-width:640px) and (max-width:999px){.home{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.hmain > *,.hrail > *{grid-column:1 / -1}.home .gift{order:4}.home .goal{grid-column:1;order:5;align-self:stretch}.home .hrail > .o6{grid-column:2;order:5}}

/* v30: colour themes for the hero */
.tones{display:flex;flex-wrap:wrap;gap:6px}
.tone{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 14px 0 8px;border-radius:999px;border:1px solid var(--line);background:var(--card);font:inherit;font-weight:600;font-size:13px;color:inherit;cursor:pointer}
.tone i{width:20px;height:20px;border-radius:50%;flex:none}
.tone[aria-pressed="true"]{border-color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}

/* v31: drawn muscle map */
.bmap{max-width:520px}
.bmap figure{background:#F6F1EA;border-radius:16px;padding:12px 8px 8px}
.bmap figcaption{color:#5F5F68}
.bmap .bfig{display:block;width:100%;max-width:230px;height:auto;isolation:isolate;overflow:visible}
.mz{fill:var(--accent);fill-opacity:var(--o,0);mix-blend-mode:multiply;stroke:none;cursor:pointer}
.mz:hover{fill-opacity:max(var(--o,0),.2)}
.mz.on{stroke:#17171A;stroke-width:9;stroke-linejoin:round}
.zf{display:block;width:34px;height:auto;flex:none}
.zf .bfig{display:block;width:100%;height:auto;isolation:isolate}
.zf .mz{pointer-events:none}
.bmap.sm{max-width:240px}
.bvar{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}
/* v31: the child's colour is the accent of the whole learner's cabinet */
:root[data-tone="sky"]{--accent:#2A6FDB;--accent-soft:#E1EEFF;--accent-ink:#1D4FB8;--on-accent:#FFFFFF}
:root[data-tone="mint"]{--accent:#0E9F9A;--accent-soft:#D9F3F1;--accent-ink:#0B6E6B;--on-accent:#17171A}
:root[data-tone="lilac"]{--accent:#7C4DEB;--accent-soft:#ECE6FF;--accent-ink:#5B33C4;--on-accent:#FFFFFF}
@media (prefers-color-scheme: dark){
  :root[data-tone="sky"]:not([data-theme="light"]){--accent:#5B9BF5;--accent-soft:#14253F;--accent-ink:#9CC3FF;--on-accent:#0E1A2E}
  :root[data-tone="mint"]:not([data-theme="light"]){--accent:#2CC1BB;--accent-soft:#0F2E2D;--accent-ink:#86E0DB;--on-accent:#062322}
  :root[data-tone="lilac"]:not([data-theme="light"]){--accent:#A78BFA;--accent-soft:#261C45;--accent-ink:#CDBBFF;--on-accent:#1A1238}
}
:root[data-theme="dark"][data-tone="sky"]{--accent:#5B9BF5;--accent-soft:#14253F;--accent-ink:#9CC3FF;--on-accent:#0E1A2E}
:root[data-theme="dark"][data-tone="mint"]{--accent:#2CC1BB;--accent-soft:#0F2E2D;--accent-ink:#86E0DB;--on-accent:#062322}
:root[data-theme="dark"][data-tone="lilac"]{--accent:#A78BFA;--accent-soft:#261C45;--accent-ink:#CDBBFF;--on-accent:#1A1238}
.hbn-h{position:relative}
.hbn-e{position:absolute;right:-6px;top:6px;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--card);color:var(--ink);box-shadow:0 0 0 1px var(--line)}
.tsw{width:16px;height:16px;border-radius:50%;flex:none}
.kpi.acc .v small{color:inherit}

/* v32: the school's screens are a control panel, not a showcase — no accent fills. The accent stays only as a small signal (menu counters, the bell dot, "late" in charts); the main number of a screen is marked by a dark icon chip */
:root[data-area="staff"] .kpi.acc{background:var(--card);color:var(--ink)}
:root[data-area="staff"] .kpi.acc .kpi-h,:root[data-area="staff"] .kpi.acc .f,:root[data-area="staff"] .kpi.acc .v small{color:var(--ink-2)}
:root[data-area="staff"] .kpi.acc .kpi-i{background:var(--primary);color:var(--on-primary)}

/* v33: phone. Above a list there are at most three short rows — title, search with one "Filters" button, tabs — so the content is visible on the first screen without scrolling.
   fxBuild in app.js rebuilds every filter bar on the page: the search stays, the dropdowns move into a sheet. On a wide screen the sheet's wrappers are "transparent" and everything stands in a row as before. */
.fx-btn,.fx-scrim,.fx-h,.fx-f{display:none}
.fx-sheet,.fx-i{display:contents}
.fx-i > .lbl{display:none}
/* a list with a card (listview): the wrappers do not affect the layout until the card is open on a narrow screen */
.listview,.listview-top{display:contents}
/* a window scrolls as a whole instead of squashing what is inside (a row of tabs, for example) */
.sheet > *{flex-shrink:0}
@media (max-width:767.98px){
  /* filters: the search and one button; the filters themselves are a sheet from the bottom */
  .fbar.fx > .srch{flex:1 1 0;min-width:0}
  .fx-btn{display:grid}
  .fx-n{position:absolute;top:-3px;right:-3px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--accent);color:var(--on-accent);font:700 11px/18px var(--font);font-style:normal;text-align:center}
  .fx-sheet{display:none}
  .fbar.fx.open > .fx-scrim{display:block;position:fixed;inset:0;z-index:58;background:rgba(10,10,12,.45)}
  .fbar.fx.open > .fx-sheet{display:flex;flex-direction:column;gap:14px;position:fixed;inset:auto 0 0 0;z-index:59;max-height:86dvh;overflow:auto;background:var(--card);border-radius:20px 20px 0 0;padding:20px max(16px,env(safe-area-inset-right,0px)) calc(20px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));box-shadow:var(--shadow-pop)}
  .fx-h{display:flex;align-items:center;justify-content:space-between}
  .fx-h b{font:700 18px/24px var(--font)}
  .fx-i{display:flex;flex-direction:column;gap:6px}
  .fx-i > .lbl{display:block}
  .fbar .fx-sheet .fx-i > .dd,.fbar .fx-sheet .dr{flex:none;max-width:none;width:100%}
  .fbar .fx-sheet .dd-b{border-color:var(--line);border-radius:12px;padding:0 10px 0 14px}
  .fx-f{display:flex;gap:8px;margin-top:4px}
  .fx-f .btn{flex:1}
  :root.fx-lock{overflow:hidden}

  /* tabs in one scrollable row instead of two rows */
  .pills.multi{flex-wrap:nowrap;overflow-x:auto;border-radius:999px;scrollbar-width:none;overscroll-behavior-x:contain}
  .pills.multi::-webkit-scrollbar{display:none}
  .pills.multi > button{flex:none}
  .pills.multi.more:not(.end){-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 32px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 32px),transparent)}
  .fbar > .pills.multi{flex:1 1 100%;min-width:0}

  /* screen title: the explanatory hint gives way to the content; the buttons under the title fill the row */
  .head .sub.hint{display:none}
  .head-r .btn{flex:1 1 auto;justify-content:center;padding:0 10px;font-size:13px;min-width:0}
  .head-r .btn:not(:only-child) .ic{display:none}

  /* number tiles on the school's screens are denser: the label in one line, the icon only on the main number */
  :root[data-area="staff"] .g-kpi{gap:10px}
  :root[data-area="staff"] .g-kpi .kpi{padding:14px 16px;gap:6px}
  :root[data-area="staff"] .g-kpi .kpi .v{font-size:26px;line-height:30px}
  :root[data-area="staff"] .g-kpi .kpi:not(.acc) .kpi-i{display:none}
  :root[data-area="staff"] .g-kpi .kpi.acc .kpi-i{width:26px;height:26px}
  :root[data-area="staff"] .g-kpi .kpi-h{min-height:26px}

  /* reply templates and report tiles: one scrollable row each */
  .tpl{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
  .tpl::-webkit-scrollbar{display:none}
  .tpl > *{flex:none}
  .reports{display:flex;gap:8px;max-width:none;overflow-x:auto;scrollbar-width:none}
  .reports::-webkit-scrollbar{display:none}
  .reports .rep{flex:0 0 84px}
}
@media (max-width:559px){
  /* buttons under the video: the note across the whole width, "Back" and "Next" in halves */
  .repnav{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .repnav > span{display:none}
  .repnav > .btn{justify-content:center}
  .repnav > [data-act="repNote"]{grid-column:1 / -1}
  /* buttons under the reply: each across the whole width, the last two share a row */
  .dacts{display:grid;grid-template-columns:5fr 7fr;gap:8px}
  .dacts > .btn{grid-column:1 / -1;justify-content:center;min-width:0;padding:0 8px}
  .dacts > .btn:nth-last-child(2){grid-column:1}
  .dacts > .btn:last-child{grid-column:2}
  .dacts > .btn:nth-last-child(-n+2){font-size:13px}
  .dacts > .btn:nth-last-child(-n+2) .ic{display:none}
  /* the head of a report: the status goes under the name instead of squeezing it into two lines */
  .rhead{flex-wrap:wrap;row-gap:2px}
  .rhead > .t{flex:1 1 0}
  .rhead > .st{flex:1 1 100%;padding-left:56px}
}
/* an open card on a narrow screen is a view of its own: the list's title, filters and tabs are not shown above it; and the list is just a list — the open report's row is not highlighted */
@container page (max-width:879.98px){
  .listview.is-open > .listview-top{display:none}
  .pane-l .row[aria-current="true"]{background:none;box-shadow:none}
}

/* v33, continued: the rest of what stood between the top of a phone screen and the content */
@media (max-width:767.98px){
  /* the screen title and its buttons share a row when they fit; otherwise the buttons go below and fill the row */
  .head{align-items:center}
  .head > div:first-child{flex:9999 1 auto;min-width:0}
  .head-r{flex:1 1 auto;width:auto}

  /* a notice is one compact row: the text and its button side by side, without the "how to" sentence */
  .nbar{flex-wrap:nowrap;gap:10px;padding:10px 12px 10px 14px}
  .nbar > .t{flex:1 1 0;min-width:0;font-size:13px;line-height:18px}
  .nbar > .btn{flex:none}
  .nbar .more{display:none}

  /* the list's order lives in the "Filters" sheet (fxSort in app.js), not in a row of its own;
     the plain count of an unfiltered list repeats the number on the "All" tab and is not shown */
  .sortm:empty,.fsum.plain{display:none}
  /* the school's screens are a little tighter vertically */
  :root[data-area="staff"] .wrap{gap:16px}

  /* the numbers above a list are a thin strip — a label and a value; on the tabs with a list they are not shown at all */
  :root[data-area="staff"] .g-kpi.three.duo{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  :root[data-area="staff"] .g-kpi.three.duo > :first-child{grid-column:auto}
  :root[data-area="staff"] .g-kpi.three.duo .kpi{padding:10px 12px;gap:2px;border-radius:14px;justify-content:space-between}
  :root[data-area="staff"] .g-kpi.three.duo .kpi-h{display:block;min-height:0;font-size:12px;line-height:15px}
  :root[data-area="staff"] .g-kpi.three.duo .kpi .kpi-i,:root[data-area="staff"] .g-kpi.three.duo .kpi .f{display:none}
  :root[data-area="staff"] .g-kpi.three.duo .kpi .v{font-size:17px;line-height:22px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .hide-m{display:none!important}

  /* a day of the program: the counts go under the title instead of squeezing it into a column one word wide */
  .lmain{flex-wrap:wrap;row-gap:0}
  .lmain > .chev{order:2}
  .lmain > .meta{order:3;flex:1 1 100%;padding-left:52px;margin-top:-4px;font-size:12.5px;white-space:normal}
}

/* v33: a report is made of blocks. A block folds, and its head says what is inside and how much, so a long report does not turn into a sheet of text */
.fo{background:var(--soft);border-radius:14px}
.fo > summary{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 12px 8px 14px;border-radius:14px;cursor:pointer;list-style:none}
.fo > summary::-webkit-details-marker{display:none}
.fo > summary > b{font-weight:700}
.fo > summary:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}
.fo-m{margin-left:auto;font-size:13px;color:var(--ink-2);white-space:nowrap}
.fo > summary > .ic{flex:none;color:var(--ink-2);transition:transform .15s}
.fo[open] > summary > .ic{transform:rotate(180deg)}
.fo-b{display:flex;flex-direction:column;padding:0 14px 4px}
.fo-n{font-size:12.5px;line-height:17px;color:var(--ink-2);padding-bottom:10px}
.fo-i{display:flex;flex-direction:column;gap:2px;padding:10px 0;border-top:1px solid var(--line);font-size:13px;line-height:18px;color:var(--ink-2)}
.fo-i b{font-weight:600;font-size:14px;line-height:20px;color:var(--ink)}
.fo-r{display:flex;align-items:center;gap:8px;min-width:0}
.fo-r > b{flex:1;min-width:0}
.fo-r > .st{gap:0}
.fo-r > .lnk{flex:none;font-size:13px;padding:6px 0 6px 8px}
.fo-w{color:var(--ink)}
@media (max-width:767.98px){
  /* an automatic letter: the "sent" counter goes under the description instead of squeezing it into a narrow column */
  .row:has(> .fnb){flex-wrap:wrap;row-gap:0}
  .row > .fnb{flex:1 1 0}
  .row > .fns{order:3;flex:1 1 100%;margin-top:-4px;padding-bottom:4px}
}

/* v33: what the pass through the roles on a phone turned up */
.up-btn{display:none}
@media (max-width:767.98px){
  /* the top bar: instead of a path cut to three letters — a "back" button to the parent screen; the screen's name is its title right below */
  .top .crumbs{display:none}
  .up-btn{display:grid}
  /* in the learner's cabinet the second child shows only the face on a nested screen, so the button fits next to the menu */
  .top.nested .kidsw button[aria-pressed="false"]{font-size:0;gap:0;padding:0 4px}
  /* "To the students" inside a card repeats the arrow in the top bar */
  .backline{display:none}

  /* the owner's overview: launches and "All flows" in one row; the "other flows" dropdown repeats that window */
  .fbar.scope{flex-wrap:nowrap}
  .fbar.scope > .pills.multi{flex:1 1 0}
  .fbar.scope > .dd{display:none}
  .flows-btn{flex:none;width:44px;height:44px;padding:0;justify-content:center;border-radius:50%;background:var(--card);color:var(--ink)}
  .flows-btn > span{display:none}
  .flows-btn .ic{width:18px;height:18px}

  /* answers and questions: the status goes under the text instead of squeezing it to a few letters */
  .row.arow{flex-wrap:wrap;row-gap:0}
  .arow > .chev{order:2}
  .arow > .st{order:3;flex:1 1 100%;padding-left:52px;margin-top:-4px;padding-bottom:4px}
  /* profile: a long e-mail wraps, "confirmed" goes under it and no longer lies on top of the address */
  .row.prow{flex-wrap:wrap;row-gap:0}
  .prow > .t{flex:1 1 0}
  .prow > .t b{overflow-wrap:anywhere}
  .prow > .st{order:3;flex:1 1 100%;margin-top:-4px;padding-bottom:6px}
}
@media (max-width:767.98px){
  /* a child in the parent's card: the week's marks and the points go to a second line, so the curator's name fits in its dropdown */
  .row.krow{flex-wrap:wrap;row-gap:6px}
  .krow > .t{flex:1 1 calc(100% - 48px)}
  .krow > .dots{margin-left:48px}
  .krow > .score{margin-left:auto}
  .krow .kcur .dd{max-width:100%}
}
/* a very narrow phone: on a nested screen the "back" button takes the menu's place */
@media (max-width:359.98px){.top.nested .menu-btn{display:none}}

/* v34: the learner's sections each have their own colour: a chip in the menu and the tab bar, the active row, the page band. The school's screens stay neutral */
:root{
  --s-home:#FF7A30;--s-home-bg:#FFEBDD;--s-home-ink:#A8400C;
  --s-less:#2F7BF5;--s-less-bg:#E3EEFF;--s-less-ink:#1D4FB8;
  --s-prog:#F5A300;--s-prog-bg:#FFF3CC;--s-prog-ink:#7A5200;
  --s-flow:#8B5CF6;--s-flow-bg:#EFE7FF;--s-flow-ink:#5B33C4;
  --s-lib:#12B08A;--s-lib-bg:#DCF5EC;--s-lib-ink:#0B6B53;
  --s-ans:#F0508A;--s-ans-bg:#FFE4EE;--s-ans-ink:#A8255A;
  --s-prof:#64748B;--s-prof-bg:#ECEEF2;--s-prof-ink:#334155;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --s-home:#FF7B42;--s-home-bg:#3B2114;--s-home-ink:#FFB48E;
    --s-less:#4F8DF7;--s-less-bg:#16253F;--s-less-ink:#A3C6FF;
    --s-prog:#F2B43D;--s-prog-bg:#352A0B;--s-prog-ink:#FFD875;
    --s-flow:#9B74F7;--s-flow-bg:#261C45;--s-flow-ink:#D0BFFF;
    --s-lib:#22C597;--s-lib-bg:#0F2E25;--s-lib-ink:#86E3C6;
    --s-ans:#F0659A;--s-ans-bg:#3A1424;--s-ans-ink:#FFA9C6;
    --s-prof:#7C8798;--s-prof-bg:#23262D;--s-prof-ink:#CBD5E1;
  }
}
:root[data-theme="dark"]{
  --s-home:#FF7B42;--s-home-bg:#3B2114;--s-home-ink:#FFB48E;
  --s-less:#4F8DF7;--s-less-bg:#16253F;--s-less-ink:#A3C6FF;
  --s-prog:#F2B43D;--s-prog-bg:#352A0B;--s-prog-ink:#FFD875;
  --s-flow:#9B74F7;--s-flow-bg:#261C45;--s-flow-ink:#D0BFFF;
  --s-lib:#22C597;--s-lib-bg:#0F2E25;--s-lib-ink:#86E3C6;
  --s-ans:#F0659A;--s-ans-bg:#3A1424;--s-ans-ink:#FFA9C6;
  --s-prof:#7C8798;--s-prof-bg:#23262D;--s-prof-ink:#CBD5E1;
}
[data-sec="home"]{--sc:var(--s-home);--sc-bg:var(--s-home-bg);--sc-ink:var(--s-home-ink)}
[data-sec="less"]{--sc:var(--s-less);--sc-bg:var(--s-less-bg);--sc-ink:var(--s-less-ink)}
[data-sec="prog"]{--sc:var(--s-prog);--sc-bg:var(--s-prog-bg);--sc-ink:var(--s-prog-ink)}
[data-sec="flow"]{--sc:var(--s-flow);--sc-bg:var(--s-flow-bg);--sc-ink:var(--s-flow-ink)}
[data-sec="lib"]{--sc:var(--s-lib);--sc-bg:var(--s-lib-bg);--sc-ink:var(--s-lib-ink)}
[data-sec="ans"]{--sc:var(--s-ans);--sc-bg:var(--s-ans-bg);--sc-ink:var(--s-ans-ink)}
[data-sec="prof"]{--sc:var(--s-prof);--sc-bg:var(--s-prof-bg);--sc-ink:var(--s-prof-ink)}
.schip{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:var(--sc);color:#fff;flex:none;box-shadow:inset 0 -2px 0 rgba(0,0,0,.14)}
.schip .ic{width:62%;height:62%;stroke-width:2.1}
.sic{display:block;width:28px;height:28px;object-fit:contain;flex:none}
.nav button[data-sec]{gap:12px;height:44px;padding:0 8px}
.nav button[data-sec]:hover{background:var(--sc-bg);color:var(--sc-ink)}
.nav button[data-sec][aria-current="page"]{background:var(--sc-bg);color:var(--sc-ink);box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--sc) 45%,transparent)}
.tabbar button[data-sec]{gap:3px}
.tabbar button[data-sec] .schip,.tabbar button[data-sec] .sic{width:30px;height:30px}
.tabbar button[data-sec] .schip{border-radius:10px}
.tabbar button[data-sec][aria-current="page"]{color:var(--sc-ink)}
.tabbar button[data-sec][aria-current="page"] .schip{box-shadow:0 0 0 3px var(--sc-bg),inset 0 -2px 0 rgba(0,0,0,.14)}
.tabbar button:not([data-sec]) > .ic{width:30px;height:30px;padding:5px;border-radius:10px;background:var(--soft)}
.row[data-sec] .schip,.row[data-sec] .sic{width:36px;height:36px}
.row[data-sec] .schip{border-radius:11px}
.head.band{position:relative;isolation:isolate;overflow:hidden;flex-wrap:nowrap;justify-content:flex-start;align-items:center;gap:16px;padding:20px 24px;border-radius:24px;background:var(--sc-bg)}
.head.band > div:not(.head-r){flex:1;min-width:0}
.head.band h1{color:var(--sc-ink)}
.head.band > .schip,.head.band > .sic{width:56px;height:56px}
.head.band > .schip{border-radius:18px;box-shadow:inset 0 -3px 0 rgba(0,0,0,.14)}
.head.band::after{content:"";position:absolute;z-index:-1;right:-56px;top:-84px;width:260px;height:260px;border-radius:50%;background:var(--sc);opacity:.13}
.head.band::before{content:"";position:absolute;z-index:-1;right:150px;bottom:-70px;width:130px;height:130px;border-radius:50%;background:var(--sc);opacity:.08}
.head.band .head-r{flex:none}
@media (max-width:767.98px){
  .head.band{padding:12px 14px;gap:12px;border-radius:18px}
  .head.band h1{font-size:21px;line-height:26px}
  .head.band > .schip,.head.band > .sic{width:42px;height:42px}
  .head.band > .schip{border-radius:13px}
  .head.band::after{width:160px;height:160px;right:-40px;top:-60px}
  .head.band::before{display:none}
}
/* wide monitors: the page grows to 1440px, the home rail gets wider */
@container page (min-width:1280px){.home{grid-template-columns:minmax(0,1fr) 360px;gap:24px}}
/* v34: the curator's answer stands out: a pink card, the answer in a bubble, the points as a gold chip */
.cura{display:flex;flex-direction:column;gap:12px;width:100%;border:0;text-align:left;font:inherit;color:var(--ink);cursor:pointer;background:var(--sc-bg);box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--sc) 32%,transparent)}
.cura:hover{box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--sc) 65%,transparent)}
.cura-h{display:flex;align-items:center;gap:12px;min-width:0}
.cura-h .ava{background:var(--card);color:var(--sc-ink);box-shadow:0 0 0 3px color-mix(in srgb,var(--sc) 35%,transparent)}
.cura-h .t{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.cura-h .t b{font-size:16px;line-height:22px;color:var(--sc-ink)}
.cura-h .t span{font-size:13px;line-height:18px;color:var(--ink-2)}
.cura-new{flex:none;height:24px;padding:0 10px;border-radius:999px;background:var(--sc);color:#fff;font-size:11px;font-weight:800;line-height:24px;letter-spacing:.06em;text-transform:uppercase}
.cura-q{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;background:var(--card);border-radius:4px 16px 16px 16px;padding:12px 14px;font-size:14px;line-height:20px}
.cura-f{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.cura-pts{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border-radius:999px;background:var(--s-prog);color:#17171A;font-weight:800;font-size:13px}
.cura-go{margin-left:auto;display:inline-flex;align-items:center;gap:4px;font-weight:700;color:var(--sc-ink)}
/* v34: tiles behind the pictures follow the theme; the hero card sits on the cabinet colour */
:root{--tile:#F6F1EA}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--tile:#2A2722}}
:root[data-theme="dark"]{--tile:#2A2722}
.hcard .hst{background:var(--accent-soft)}
.tone .ic{flex:none;margin-left:2px}
/* v34: drawn section pictures */
.nav button[data-sec] .sic{width:30px;height:30px}
.head.band > .sic{width:68px;height:68px;margin:-6px 0}
@media (max-width:767.98px){.head.band > .sic{width:46px!important;height:46px!important;margin:-4px 0}}

/* v34: 8 hero stages; stages that are not drawn yet and future superhero stages are silhouettes */
.hfig.sil,.hmini.sup .hfig,.pmile:not(.got) .hfig{filter:brightness(0);opacity:.2}
.hstrip.h8{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px;max-width:440px}
.hstrip.h8 .hmini{padding:4px 2px 2px;min-width:0}
.hstrip.h8 .hmini .hfig{height:auto !important;width:100%;max-width:40px;aspect-ratio:1 / 2;object-fit:contain}

/* v34: the lessons path */
.pgrid{display:flex;flex-direction:column;gap:20px}
.prail{display:flex;flex-direction:column;gap:20px;min-width:0}
@container page (min-width:1000px){.pgrid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px;align-items:start}.prail{order:2;position:sticky;top:16px}.path{order:1}}
@container page (max-width:999.98px){.psched{display:none}}
.path{display:flex;flex-direction:column;align-items:center;gap:16px;padding:4px 0 24px;min-width:0}
.pwk{width:100%;display:flex;flex-direction:column;align-items:center;gap:8px}
.wban{width:100%;max-width:560px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border-radius:18px;background:var(--sc);color:#fff;box-shadow:inset 0 -4px 0 rgba(0,0,0,.15)}
.wban .eyebrow{color:rgba(255,255,255,.88)}
.wban h3{color:#fff;font-size:18px;line-height:24px}
.wpts{flex:none;font-weight:800;font-size:12px;line-height:16px;background:rgba(255,255,255,.22);padding:5px 10px;border-radius:999px;white-space:nowrap}
.psteps{display:flex;flex-direction:column;align-items:center;gap:10px;padding:10px 0 4px}
.pstep{position:relative;display:flex;flex-direction:column;align-items:center;transform:translateX(var(--x))}
.pstep.cur{margin-top:34px}
.pnode{position:relative;width:70px;height:70px;border-radius:50%;display:grid;place-items:center;border:0;cursor:pointer;color:#fff;background:var(--sc);box-shadow:inset 0 -6px 0 rgba(0,0,0,.18);transition:transform .15s}
.pnode .ic{stroke-width:2.6}
.pnode:hover:not(:disabled){transform:translateY(-2px)}
.pnode:active:not(:disabled){transform:translateY(2px);box-shadow:inset 0 -2px 0 rgba(0,0,0,.18)}
.pnode:disabled{opacity:1;cursor:default}
.pnode.late{background:var(--s-prog);color:#17171A}
.pnode.zero{background:var(--ink-3)}
.pnode.miss{background:var(--card);color:var(--bad);box-shadow:inset 0 0 0 3px var(--bad),inset 0 -6px 0 rgba(0,0,0,.06)}
.pnode.miss b{font-size:30px;line-height:1;font-weight:800}
.pnode.lock{background:var(--soft);color:var(--ink-3);box-shadow:inset 0 0 0 2px var(--line),inset 0 -6px 0 rgba(0,0,0,.05)}
.pnode.now{width:82px;height:82px;box-shadow:0 0 0 6px var(--canvas),0 0 0 10px color-mix(in srgb,var(--sc) 45%,transparent),inset 0 -6px 0 rgba(0,0,0,.18);animation:ppulse 2.2s ease-in-out infinite}
@keyframes ppulse{0%,100%{box-shadow:0 0 0 6px var(--canvas),0 0 0 10px color-mix(in srgb,var(--sc) 45%,transparent),inset 0 -6px 0 rgba(0,0,0,.18)}50%{box-shadow:0 0 0 6px var(--canvas),0 0 0 16px color-mix(in srgb,var(--sc) 18%,transparent),inset 0 -6px 0 rgba(0,0,0,.18)}}
.pbub{position:absolute;top:-36px;left:50%;transform:translateX(-50%);white-space:nowrap;background:var(--card);color:var(--sc-ink);font-weight:800;font-size:13px;line-height:18px;padding:6px 12px;border-radius:12px;box-shadow:inset 0 0 0 2px var(--line);animation:pbob 2.2s ease-in-out infinite}
.pbub::after{content:"";position:absolute;left:50%;bottom:-6px;width:10px;height:10px;background:var(--card);transform:translateX(-50%) rotate(45deg);box-shadow:2px 2px 0 0 var(--line)}
@keyframes pbob{0%,100%{transform:translate(-50%,0)}50%{transform:translate(-50%,-3px)}}
.plbl{display:flex;flex-direction:column;align-items:center;margin-top:6px;text-align:center}
.plbl b{font-size:13px;line-height:16px}
.plbl span{font-size:12px;line-height:15px;color:var(--ink-2)}
.phero{position:absolute;top:-30px;pointer-events:none}
.phero.l{right:calc(100% + 18px)}
.phero.r{left:calc(100% + 18px)}
.pmile{display:flex;align-items:center;gap:12px;padding:6px 16px 6px 6px;border-radius:999px;background:var(--card);box-shadow:inset 0 0 0 2px var(--line)}
.pmile.got{box-shadow:inset 0 0 0 2px var(--s-prog)}
.pmile-f{width:60px;height:60px;border-radius:50%;background:var(--tile);display:grid;place-items:start center;overflow:hidden;flex:none;color:var(--s-prog-ink)}
.pmile-f .hfig{margin-top:2px}
.pmile.fin .pmile-f{place-items:center;background:var(--s-prog-bg)}
.pmile .t{display:flex;flex-direction:column}
.pmile .t b{font-size:14px;line-height:18px}
.pmile .t span{font-size:12px;line-height:16px;color:var(--ink-2)}
.pweek{width:100%;max-width:560px;display:flex;align-items:center;gap:14px;padding:12px 16px;border-radius:18px;background:var(--sc-bg);color:var(--sc-ink)}
.pweek .lk{width:40px;height:40px;border-radius:50%;background:var(--card);display:grid;place-items:center;flex:none}
.pweek .t{display:flex;flex-direction:column}
.pweek .t > span:last-child{font-size:12px;color:var(--ink-2)}
.pweek .eyebrow{color:var(--sc-ink)}
.phc{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px 16px;align-items:end}
.phc-f{grid-row:span 1;display:grid;place-items:end center;background:var(--accent-soft);border-radius:16px;padding:10px 14px 4px}
.phc-t{display:flex;flex-direction:column;gap:6px;align-self:center}
.phc .hstrip,.phc-b{grid-column:1 / -1}
@container page (max-width:559px){.phc-f .hfig{height:120px !important}.phero{display:none}.pnode{width:64px;height:64px}.pnode.now{width:74px;height:74px}.path{gap:14px}}

/* v34: the helper on the home banner */
.hbn-m{position:relative;align-self:end;display:flex;flex-direction:column;align-items:center;min-width:0}
.masc{display:block;width:auto;max-width:none;animation:mbob 3.4s ease-in-out infinite;transform-origin:50% 100%}
@keyframes mbob{0%,100%{transform:translateY(0) rotate(0)}40%{transform:translateY(-6px) rotate(-1.5deg)}70%{transform:translateY(-2px) rotate(1deg)}}
.mbub{position:relative;max-width:230px;background:var(--card);color:var(--ink);border-radius:16px;padding:10px 14px;font-weight:700;font-size:13px;line-height:18px;margin-bottom:10px;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.mbub::after{content:"";position:absolute;left:50%;bottom:-7px;width:14px;height:14px;background:var(--card);transform:translateX(-50%) rotate(45deg)}
.mbub.lg{font-size:15px;line-height:21px;max-width:320px;margin:0}
.hgrid.m3{grid-template-columns:repeat(3,minmax(0,1fr))}
.hgrid.m3 .hst{place-items:end center;background:var(--tile)}
@container page (max-width:559px){.hbn-m .masc{height:132px !important}.hbn-m .mbub{display:none}}
@media (prefers-reduced-motion:reduce){.masc,.pnode.now,.pbub{animation:none}}

/* v34: the chest of knowledge */
.chest-s{gap:16px}
.cs-h{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.cs-img{width:96px;height:auto;flex:none}
.cs-h .t{flex:1;min-width:200px;display:flex;flex-direction:column;gap:6px}
.cs-h .bar2 i{background:var(--s-lib)}
.fgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}
.fmini{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:12px 14px;border-radius:16px;border:0;background:var(--sc-bg);color:var(--ink);text-align:left;font:inherit;cursor:pointer;min-height:96px}
.fmini .t{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;line-height:18px}
.fmini.lock{align-items:center;justify-content:center;background:var(--soft);color:var(--ink-3);cursor:default;font-weight:700;font-size:13px}
.fc-cat{display:inline-flex;align-items:center;height:22px;padding:0 9px;border-radius:999px;background:var(--sc);color:#fff;font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}
.fcard{display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:18px;border-radius:20px;background:var(--sc-bg);max-width:460px;margin-inline:auto}
.fcard p{font-size:17px;line-height:25px;font-weight:600;color:var(--ink)}
.fc-img{width:100%;max-height:200px;object-fit:contain}
.chestbox{display:flex;flex-direction:column;align-items:center;gap:14px}
.chest{position:relative;width:240px;height:150px}
.chest img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;transition:opacity .35s,transform .35s}
.chest .c-open{opacity:0;transform:scale(.92)}
.chestbox:not(.open) .chest{animation:cshake .5s ease-in-out 2}
@keyframes cshake{0%,100%{transform:rotate(0)}25%{transform:rotate(-4deg)}75%{transform:rotate(4deg)}}
.chestbox.open .c-closed{opacity:0;transform:scale(1.05)}
.chestbox.open .c-open{opacity:1;transform:scale(1.06)}
.chestbox .fcard{opacity:0;transform:translateY(16px);transition:opacity .4s .3s,transform .4s .3s}
.chestbox.open .fcard{opacity:1;transform:none}
.fask{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;justify-content:center}
.chest-n{flex-direction:row;align-items:center;gap:14px;width:100%;border:0;text-align:left;font:inherit;color:inherit;cursor:pointer;background:var(--sc-bg);box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--sc) 35%,transparent)}
.chest-n img{width:72px;height:auto;flex:none}
.chest-n .t{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.chest-n .t b{font-size:16px;color:var(--sc-ink)}
.chest-n .t span{color:var(--ink-2);font-size:13px}
@media (prefers-reduced-motion:reduce){.chestbox:not(.open) .chest{animation:none}}
/* v34: the helper's speech bubble sits to the left of the helper, below the chips */
.hbn-m{flex-direction:row;align-items:flex-start;gap:8px}
.hbn-m .mbub{margin:60px 0 0;max-width:210px}
.hbn-m .mbub::after{left:auto;right:-6px;bottom:auto;top:18px;transform:rotate(45deg)}
@container page (min-width:560px) and (max-width:759px){.hbn-m .mbub{display:none}}
/* v34: on phones the hero card above the path is one short row */
@container page (max-width:559px){.phc{padding:12px 14px;gap:10px 14px;align-items:center}.phc-f{padding:6px 8px 2px;border-radius:12px}.phc-f .hfig{height:84px !important}.phc .hstrip,.phc-b{display:none}.phc-t{gap:4px}.phc-t h3{font-size:16px;line-height:20px}}
/* v34: on phones the chest is a short header and the discoveries scroll sideways */
@container page (max-width:559px){
  .cs-h{display:grid;grid-template-columns:64px minmax(0,1fr);gap:4px 12px;align-items:center}
  .cs-img{width:64px}
  .cs-h .t{min-width:0}
  .cs-h .t p{display:none}
  .cs-h > .btn{grid-column:1 / -1}
  .fgrid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:8px;scrollbar-width:none;overscroll-behavior-x:contain}
  .fgrid::-webkit-scrollbar{display:none}
  .fmini{flex:0 0 76%;scroll-snap-align:start}
  .fmini.lock{flex-basis:48%}
}
/* v34: discovery pictures; the animated helper does not bob on top of its own motion */
.fmini{position:relative;padding-right:72px}
.fm-img{position:absolute;right:8px;top:8px;width:58px;height:58px;object-fit:contain}
.fmini.lock{padding-right:14px}
.fcard .fc-img{max-height:180px;align-self:center}
.masc.p-wave{animation:none}
.fask{flex-wrap:nowrap;align-items:center;justify-content:center;gap:16px}
.fask .mbub::after{left:-6px;top:50%;bottom:auto;transform:translateY(-50%) rotate(45deg)}
@media (max-width:420px){.fask{flex-direction:column}.fask .mbub::after{left:50%;top:-6px;transform:translateX(-50%) rotate(45deg)}}
/* v34: the lessons path is a map: a meadow board, a sandy road through the steps, scenery on the free sides, clouds over closed weeks */
:root{--map:#E4F2D9;--map-edge:#D2E8C2;--map-dot:rgba(255,255,255,.5);--road:#F5E6C8;--road-dot:rgba(255,255,255,.9)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--map:#16211A;--map-edge:#203024;--map-dot:rgba(255,255,255,.05);--road:#3B3427;--road-dot:rgba(255,255,255,.22)}}
:root[data-theme="dark"]{--map:#16211A;--map-edge:#203024;--map-dot:rgba(255,255,255,.05);--road:#3B3427;--road-dot:rgba(255,255,255,.22)}
.path{position:relative;isolation:isolate;border-radius:32px;padding:22px 12px 32px;background:radial-gradient(circle at 30% 40%,var(--map-dot) 0 2px,transparent 2.5px) 0 0 / 46px 46px,var(--map);box-shadow:inset 0 0 0 2px var(--map-edge)}
.ptrail{position:absolute;left:0;top:0;z-index:0;pointer-events:none;overflow:visible}
.ptrail path{fill:none;stroke-linecap:round;stroke-linejoin:round}
.ptrail .r1{stroke:var(--road);stroke-width:30}
.ptrail .r2{stroke:var(--road-dot);stroke-width:5;stroke-dasharray:1 15}
.pwk,.pmile,.pfog{position:relative;z-index:1}
.pstep{width:100%;transform:none}
.pin{position:relative;z-index:2;display:flex;flex-direction:column;align-items:center;transform:translateX(var(--x))}
.plbl{background:color-mix(in srgb,var(--map) 80%,transparent);border-radius:8px;padding:0 6px}
.pdeco{position:absolute;top:50%;width:var(--s);height:auto;transform:translateY(-50%);z-index:1;pointer-events:none}
.pdeco.l{right:calc(50% + 124px + var(--d))}
.pdeco.r{left:calc(50% + 124px + var(--d))}
.pdeco.far.l{right:calc(50% + 210px + var(--d))}
.pdeco.far.r{left:calc(50% + 210px + var(--d))}
.pfog{width:100%;display:flex;justify-content:center}
.pfog .pweek{position:relative;z-index:2}
.pfog .pdeco{z-index:1;opacity:.95}
@container page (max-width:899.98px){.pdeco.far{display:none}}
@container page (max-width:559px){
  .path{border-radius:24px;padding:16px 4px 26px}
  .pdeco{--s:50px !important;--d:0px !important}
  .pdeco.l{right:calc(50% + 100px)}
  .pdeco.r{left:calc(50% + 100px)}
  .pfog .pdeco{display:none}
}
/* the road reads better with an edge */
:root{--road-edge:#E2C793}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--road-edge:#4D4331}}
:root[data-theme="dark"]{--road-edge:#4D4331}
.ptrail .r0{stroke:var(--road-edge);stroke-width:36}
.ptrail .r1{stroke:var(--road);stroke-width:28}
/* closed weeks peek out of the clouds */
.path{overflow:hidden}
.pfog .pweek{max-width:440px}
.pfog .pdeco.l{right:calc(50% + 186px + var(--d) * .4)}
.pfog .pdeco.r{left:calc(50% + 186px + var(--d) * .4)}
/* v34: the celebration screen after a handed-in day: the chest opens in the middle, the helper cheers, confetti falls */
.celeb{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:20px max(16px,env(safe-area-inset-right,0px)) 20px max(16px,env(safe-area-inset-left,0px));background:#2B196A;color:#fff;overflow:auto;animation:celIn .35s ease-out}
:root.cel-on{overflow:hidden}
@keyframes celIn{from{opacity:0}to{opacity:1}}
.cel-rays{position:fixed;left:50%;top:48%;width:1800px;height:1800px;margin:-900px 0 0 -900px;background:repeating-conic-gradient(rgba(255,255,255,.07) 0deg 9deg,transparent 9deg 18deg);-webkit-mask-image:radial-gradient(circle,#000 0,transparent 52%);mask-image:radial-gradient(circle,#000 0,transparent 52%);animation:celSpin 70s linear infinite;pointer-events:none}
@keyframes celSpin{to{transform:rotate(360deg)}}
.cel-box{position:relative;z-index:1;width:min(560px,100%);display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center}
.cel-box h2{font-size:32px;line-height:38px;font-weight:800;color:#fff}
.cel-sub{color:rgba(255,255,255,.8);font-size:15px;line-height:21px;max-width:36ch}
.cel-pts{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 14px;border-radius:999px;background:#FFC83D;color:#3A2600;font-weight:800;animation:celPop .5s .15s both}
@keyframes celPop{from{transform:scale(.3);opacity:0}to{transform:scale(1);opacity:1}}
.cel-stage{position:relative;width:min(340px,70vw);aspect-ratio:1;transition:width .45s ease}
.cel-chest{display:block;width:100%;height:100%;object-fit:cover;-webkit-mask-image:radial-gradient(circle,#000 56%,transparent 70.5%);mask-image:radial-gradient(circle,#000 56%,transparent 70.5%)}
.celeb:not(.opening) .cel-chest{animation:celWiggle 1.8s ease-in-out infinite;transform-origin:50% 75%}
@keyframes celWiggle{0%,55%,100%{transform:rotate(0)}65%{transform:rotate(-3deg)}75%{transform:rotate(3deg)}85%{transform:rotate(-2deg)}}
.cel-m{position:absolute;right:-38%;bottom:0;height:66%;width:auto;max-width:none;pointer-events:none;animation:celPop .5s .3s both}
.cel-stage.solo .cel-m{position:static;display:block;height:100%;margin:0 auto}
.celeb.open .cel-stage:not(.solo){width:min(200px,46vw)}
.cel-fact{display:none;width:100%}
.celeb.open .cel-fact{display:block;animation:celUp .45s ease-out both}
.cel-fact .fcard{text-align:left;box-shadow:0 10px 30px rgba(0,0,0,.25)}
@keyframes celUp{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
.cel-acts{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:6px}
.celeb .btn.lg{background:#FFC83D;color:#2A1D00}
.celeb .btn.ghost{color:#fff;background:transparent;box-shadow:inset 0 0 0 1px rgba(255,255,255,.4)}
.celeb.opening:not(.open) .cel-acts{visibility:hidden}
.cel-conf{position:fixed;inset:0;pointer-events:none;overflow:hidden}
.cel-conf i{position:absolute;top:-24px;left:var(--x);width:10px;height:16px;background:var(--c);border-radius:3px;opacity:0;transform:rotate(var(--r))}
.celeb.day .cel-conf i,.celeb.open .cel-conf i{animation:celFall 2.8s var(--d) ease-in both}
.celeb.day.open .cel-conf i{animation-name:celFall2}
@keyframes celFall{0%{opacity:1;transform:translateY(0) rotate(var(--r))}100%{opacity:0;transform:translateY(105vh) rotate(calc(var(--r) + 540deg))}}
@keyframes celFall2{0%{opacity:1;transform:translateY(0) rotate(var(--r))}100%{opacity:0;transform:translateY(105vh) rotate(calc(var(--r) - 540deg))}}
@media (max-width:560px){.cel-box h2{font-size:26px;line-height:32px}.cel-m{right:-20%;height:54%}.cel-stage{width:min(300px,72vw)}}
@media (prefers-reduced-motion:reduce){.cel-rays,.celeb:not(.opening) .cel-chest,.cel-conf i{animation:none !important}}
@media (min-width:900px) and (min-height:760px){.cel-stage{width:420px}.celeb.open .cel-stage:not(.solo){width:220px}}
/* v34: the progress overview: the hero with 8 tappable stages, four tappable numbers, the streak as a road of rewards */
.pgv{display:flex;flex-direction:column;gap:20px}
.pgh{display:grid;grid-template-columns:minmax(220px,300px) minmax(0,1fr);gap:20px 28px;align-items:center}
.pgh-stage{position:relative;display:grid;place-items:end center;min-height:300px;border-radius:22px;padding-top:44px;overflow:hidden;background:radial-gradient(circle at 50% 38%,color-mix(in srgb,var(--sc) 34%,var(--sc-bg)) 0%,var(--sc-bg) 68%)}
.pgh-stage .hfig{position:relative;margin-bottom:8px;animation:pgIn .35s ease-out}
.pgh-stage.lock .hfig{filter:brightness(0);opacity:.22}
@keyframes pgIn{from{opacity:0;transform:translateY(10px) scale(.97)}to{opacity:1;transform:none}}
.pgh-badge{position:absolute;left:12px;top:12px;display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border-radius:999px;background:var(--card);color:var(--sc-ink);font-weight:800;font-size:13px}
.pgh-info{display:flex;flex-direction:column;gap:12px;min-width:0}
.pgh-info h2{font-size:24px;line-height:30px;font-weight:800}
.pgh-info h2::first-letter{text-transform:uppercase}
.pgh-note{color:var(--ink-2)}
.pgh-bar{height:12px;border-radius:999px;background:var(--soft);overflow:hidden}
.pgh-bar i{display:block;height:100%;border-radius:inherit;background:var(--sc)}
.pgh-st{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px;max-width:560px}
.pgh-st button{position:relative;display:grid;place-items:end center;aspect-ratio:3 / 4;border:0;border-radius:12px;padding:16px 2px 2px;background:var(--tile);cursor:pointer;overflow:hidden;transition:transform .15s}
.pgh-st button:hover{transform:translateY(-2px)}
.pgh-st button .hfig{height:auto !important;width:100%;max-width:44px}
.pgh-st button.lock .hfig{filter:brightness(0);opacity:.2}
.pgh-st button[aria-pressed="true"]{box-shadow:inset 0 0 0 3px var(--sc)}
.pgh-st .n{position:absolute;left:6px;top:4px;font-size:11px;font-weight:800;color:var(--ink-2)}
.pgh-st button.cur::after{content:"";position:absolute;right:6px;top:7px;width:8px;height:8px;border-radius:50%;background:var(--sc)}
.pgs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.pgt{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:16px;border:0;border-radius:20px;background:var(--card);color:inherit;font:inherit;text-align:left;cursor:pointer;box-shadow:inset 0 0 0 2px transparent;transition:box-shadow .15s,transform .15s}
.pgt:hover{box-shadow:inset 0 0 0 2px var(--sc);transform:translateY(-2px)}
.pgt .schip{width:34px;height:34px;border-radius:11px}
.pgt .v{font-size:30px;line-height:34px;font-weight:800;margin-top:4px}
.pgt .v small{font-size:15px;font-weight:700;color:var(--ink-2)}
.pgt .l{font-size:13px;line-height:17px;color:var(--ink-2)}
.pg2{align-items:stretch}
.pgsr{gap:16px}
.pgsr-h{display:flex;align-items:center;gap:12px}
.pgsr-h .schip{width:40px;height:40px;border-radius:13px}
.srt{position:relative;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin-top:4px}
.srt::before,.srt-fill{content:"";position:absolute;left:0;top:23px;height:6px;border-radius:3px}
.srt::before{right:0;background:var(--soft)}
.srt-fill{width:var(--p);background:var(--sc)}
.srt-n{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center;min-width:0}
.srt-n .dot{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:var(--card);color:var(--ink-3);box-shadow:inset 0 0 0 3px var(--line)}
.srt-n.got .dot{background:var(--sc);color:#fff;box-shadow:none}
.srt-n.next .dot{color:var(--sc-ink);box-shadow:inset 0 0 0 3px var(--sc);animation:pgPulse 2s ease-in-out infinite}
@keyframes pgPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
.srt-n b{font-size:13px;line-height:16px}
.srt-n span{font-size:11.5px;line-height:15px;color:var(--ink-2)}
button.cd{border:0;cursor:pointer;font:inherit;font-size:12px;font-weight:700}
button.cd:hover{filter:brightness(.95);box-shadow:inset 0 0 0 2px var(--ink-3)}
@container page (max-width:719px){.pgh{grid-template-columns:1fr}.pgh-stage{min-height:250px}.pgh-stage .hfig{height:200px !important}.pgs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container page (max-width:559px){.pgh-st{grid-template-columns:repeat(4,minmax(0,1fr));max-width:none}.pgh-info h2{font-size:20px;line-height:26px}.pgt{padding:12px 14px}.pgt .v{font-size:24px;line-height:28px}.srt-n .dot{width:42px;height:42px}.srt::before,.srt-fill{top:18px}.srt-n span{font-size:10.5px}}
@media (prefers-reduced-motion:reduce){.srt-n.next .dot,.pgh-stage .hfig{animation:none}}
.pgh-st button.fut .hfig{opacity:.45}
.pgh-stage.ahead .hfig{opacity:.55}
.pgh-q{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:96px;line-height:1;font-weight:800;color:var(--sc);opacity:.85;text-shadow:0 2px 0 var(--card)}
.pgsr-b{margin-block:auto;display:flex;flex-direction:column;gap:20px}
@container page (max-width:559px){
  .pgh{gap:14px}
  .pgh-stage{min-height:200px;padding-top:40px}
  .pgh-stage .hfig{height:170px !important}
  .pgh-q{font-size:72px}
  .pgh-st{display:flex;overflow-x:auto;gap:6px;scrollbar-width:none;overscroll-behavior-x:contain;margin:0 -2px;padding:2px}
  .pgh-st::-webkit-scrollbar{display:none}
  .pgh-st button{flex:0 0 58px}
}
/* v37: live streak flame, sound switch, the helper's reaction after a report, streak reward, «Герой вырос!», hello and the how-to video */
.flm{display:inline-block;width:auto;max-width:none;vertical-align:middle;transform-origin:50% 92%}
.flm.on{animation:flk 1.7s ease-in-out infinite;filter:drop-shadow(0 0 4px rgba(255,140,40,.45))}
.flm:not(.on){filter:grayscale(1);opacity:.5}
@keyframes flk{0%,100%{transform:scale(1,1) skewX(0)}25%{transform:scale(1.05,.95) skewX(-4deg)}50%{transform:scale(.96,1.07) skewX(3deg)}75%{transform:scale(1.03,.97) skewX(-2deg)}}
.hchip .flm{margin:-6px -1px -4px -4px}
.cel-snd{position:fixed;top:calc(14px + env(safe-area-inset-top,0px));right:max(14px,env(safe-area-inset-right,0px));z-index:3;width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.14);color:#fff;display:grid;place-items:center;cursor:pointer}
.cel-snd:hover{background:rgba(255,255,255,.24)}
.mtap{display:block;border:0;background:none;padding:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
.react{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom,0px));z-index:70;display:flex;align-items:flex-end;gap:12px;width:max-content;max-width:calc(100vw - 32px);padding:10px 18px 12px 10px;border-radius:22px;background:var(--card);color:var(--ink);box-shadow:0 14px 44px rgba(30,16,80,.28);transform:translateX(-50%);animation:rIn .45s cubic-bezier(.2,1.5,.45,1) both}
.react.out{animation:rOut .3s ease-in both}
.react .masc{flex:none;height:104px;width:auto;margin:-46px 0 -4px}
.react .t{display:flex;flex-direction:column;gap:2px;min-width:0;padding-bottom:4px}
.react .t b{font-size:16px;line-height:21px}
.react .t span{font-size:13px;line-height:18px;color:var(--muted)}
.app.has-tabbar ~ .react{bottom:calc(84px + env(safe-area-inset-bottom,0px))}
@keyframes rIn{from{opacity:0;transform:translate(-50%,24px) scale(.92)}to{opacity:1;transform:translate(-50%,0)}}
@keyframes rOut{to{opacity:0;transform:translate(-50%,16px)}}
.cel-flame{position:relative;width:100%;height:100%;display:grid;place-items:center}
.cel-flame img{width:76%;height:auto;transform-origin:50% 92%;animation:celPop .5s both,flk 1.5s .5s ease-in-out infinite;filter:drop-shadow(0 0 34px rgba(255,150,40,.6))}
.cel-flame b{position:absolute;left:0;right:0;bottom:15%;text-align:center;font-size:76px;line-height:1;font-weight:900;color:#fff;-webkit-text-stroke:4px #6A2200;paint-order:stroke fill;text-shadow:0 5px 0 #6A2200;animation:celPop .5s .25s both}
.cel-morph,.cel-hi{display:block;width:100%;height:100%;object-fit:cover;-webkit-mask-image:radial-gradient(circle,#000 57%,transparent 71%);mask-image:radial-gradient(circle,#000 57%,transparent 71%)}
.evo{position:relative;width:100%;height:100%}
.evo > span{position:absolute;inset:0;display:flex;justify-content:center;align-items:flex-end}
.evo-i{display:flex;justify-content:center;align-items:flex-end;height:100%;transform-origin:50% 100%}
.evo .hfig{height:100% !important;width:auto;max-width:100%}
.evo-a{animation:evoA 3s step-end both}
.evo-b{opacity:0;animation:evoB 3s step-end both}
.evo-a .evo-i{animation:evoW 3s ease both}
.evo-b .evo-i{animation:evoW2 3s ease both}
.evo-f{position:absolute;inset:-12%;border-radius:50%;background:radial-gradient(circle,#fff 0,rgba(255,255,255,.85) 30%,transparent 66%);opacity:0;animation:evoF 3s ease both;pointer-events:none}
@keyframes evoA{0%{opacity:1}26%{opacity:0}36%{opacity:1}44%{opacity:0}51%{opacity:1}56%{opacity:0}61%{opacity:1}64%{opacity:0}67%{opacity:1}70%{opacity:0}100%{opacity:0}}
@keyframes evoB{0%{opacity:0}26%{opacity:1}36%{opacity:0}44%{opacity:1}51%{opacity:0}56%{opacity:1}61%{opacity:0}64%{opacity:1}67%{opacity:0}70%{opacity:1}100%{opacity:1}}
@keyframes evoW{0%{filter:none}18%,100%{filter:brightness(0) invert(1) drop-shadow(0 0 14px rgba(255,255,255,.9))}}
@keyframes evoW2{0%,76%{filter:brightness(0) invert(1) drop-shadow(0 0 14px rgba(255,255,255,.9));transform:scale(1)}86%{filter:none;transform:scale(1.07)}100%{filter:none;transform:scale(1)}}
@keyframes evoF{0%,70%{opacity:0;transform:scale(.6)}80%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1.25)}}
.cel-stage.hi{width:min(380px,74vw)}
.hi-play{position:absolute;left:50%;top:50%;width:84px;height:84px;margin:-42px 0 0 -42px;border-radius:50%;border:0;background:#FFC83D;color:#2A1D00;display:grid;place-items:center;cursor:pointer;box-shadow:0 10px 34px rgba(0,0,0,.35);animation:hiPulse 1.6s ease-in-out infinite}
.hi-play svg{margin-left:5px}
.celeb.playing .hi-play{display:none}
@keyframes hiPulse{50%{transform:scale(1.08)}}
.celeb.cel-tut .cel-box{width:min(980px,100%)}
.tut-v{width:100%;aspect-ratio:16 / 9;max-width:100%;border-radius:18px;overflow:hidden;background:#000;box-shadow:0 20px 60px rgba(0,0,0,.45)}
.tut-v video{display:block;width:100%;height:100%;background:#000}
.hi-c{display:flex;flex-direction:row;align-items:center;gap:14px;flex-wrap:wrap}
.hi-c .masc{flex:none;height:68px;width:auto}
.hi-c .t{display:flex;flex-direction:column;gap:2px;flex:1 1 220px;min-width:0}
.hi-c .t span{color:var(--muted);font-size:13px;line-height:18px}
.hi-b{display:flex;gap:8px;flex-wrap:wrap}
@media (prefers-reduced-motion:reduce){.flm.on,.cel-flame img,.hi-play{animation:none !important}.react{animation:none}}

/* v38: «Уроки» снизу вверх — первый день внизу, дорога поднимается через недели к финишу курса.
   В разметке порядок прежний, по дням: его читают диктор и Tab. Линию дороги pathTrail строит по координатам, она идёт вверх сама. */
.path,.pwk,.psteps{flex-direction:column-reverse}
