/* edlimi — общий стиль платформы. */
/* ===== Токены edlimi (источник правды: docs/design/Стиль_кабинета_edlimi.md, раздел 2). Менять вид — здесь. ===== */
:root,[data-theme="dark"] :is(.tr-game,.tr-set){
  color-scheme:light;
  /* бренд: яркий / мягкая подложка / вариант для текста */
  --lime:#C6FF05; --lime-hover:#B9F000; --lime-edge:#9DD600; --lime-soft:#F4FFD6; --lime-ink:#4F6B00;
  --teal:#00D4CA; --teal-soft:#DDFAF6; --teal-ink:#007A73;
  --purple:#AD78FF; --purple-soft:#F1EAFF; --purple-ink:#7444DB;
  /* поверхности и текст */
  --bg:#FFFFFF; --bg-soft:#F7F8FD; --surface:#FFFFFF; --surface-2:#F7F8FD; --surface-3:#EEF1FA;
  --ink:#171D3B; --ink-2:#4A5170; --muted:#606781;
  --edge:#E5E9F4; --edge-2:#CBD1E3; --edge-strong:#7C85A3;
  --on-pri:#171D3B;
  /* состояния: текст / подложка / сплошная кнопка */
  --ok:#18794E; --ok-soft:#E3F8EC;
  --err:#C2264F; --err-soft:#FFEFF3; --err-solid:#C2264F; --err-hover:#A91D42;
  --warn:#8A5300; --warn-soft:#FFF4D6;
  --info:var(--teal-ink); --info-soft:var(--teal-soft);
  --star:#FFB800; --star-edge:#B47A00;
  --bar:linear-gradient(90deg,#86C400,#00B9AE);
  --focus:#7444DB; --scrim:rgba(23,29,59,.45);
  --toast-bg:#171D3B; --toast-ink:#FFFFFF;
  --tile-a:linear-gradient(150deg,#E8FDD0,#C9F5E8);
  --tile-b:linear-gradient(150deg,#E3FBF9,#BFF3EE);
  --tile-c:linear-gradient(150deg,#F5EEFF,#E3D2FF);
  /* форма */
  --r-sm:8px; --r-md:12px; --r-lg:16px; --r-xl:24px; --r-pill:999px;
  --sh-1:0 1px 2px rgba(23,29,59,.06);
  --sh-2:0 8px 24px rgba(68,76,131,.10);
  --sh-3:0 17px 52px rgba(68,76,131,.16);
  --s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px; --s-5:20px; --s-6:24px; --s-8:32px; --s-10:40px; --s-12:48px;
  /* шрифт */
  /* Onest — весь текст; Unbounded — только заголовки (h1, h2, названия крупных плиток, заголовки свода и финала).
     Unbounded широкий, поэтому заголовки на ступень меньше прежних (28/20 → 26/18). Решение владельца 19.11.2026. */
  --font:"Onest","Segoe UI",system-ui,-apple-system,sans-serif;
  --font-head:"Unbounded","Onest","Segoe UI",system-ui,sans-serif;
  --fs-h1:26px; --fs-h2:18px; --fs-h3:16px; --fs-body:15px; --fs-sm:13px; --fs-xs:12px;
  /* элементы управления */
  --ctl-h:44px; --ctl-h-sm:36px; --ctl-h-lg:52px;
  /* движение */
  --t-fast:120ms; --t-base:200ms; --t-slow:280ms; --ease:cubic-bezier(.2,.8,.2,1);
  /* старые имена — псевдонимы (таблица 2.6): правила ниже и тренажёры продолжают работать */
  --soft:var(--muted);
  --tint1:var(--lime-soft); --tint2:var(--teal-soft); --tint3:var(--purple-soft); --tint4:var(--warn-soft);
  --glow:var(--sh-2);
  /* только для оболочки тренажёров (tr-*, kit-*): заливка под белый текст. В кабинете не использовать. */
  --brand-a:#3fe21f; --brand-b:#2cc2b8; --brand-text:linear-gradient(90deg,#2bd40e,#22b8b8 45%,#9b5cff);
  --g1:linear-gradient(135deg,var(--brand-a),var(--brand-b));
  --g2:linear-gradient(135deg,#46d2d2 0%,#8f7bff 100%);
  --g3:linear-gradient(135deg,#bf80ff 0%,#ff7ac6 100%);
}
[data-theme="dark"]{
  color-scheme:dark;
  --lime-soft:rgba(198,255,5,.12); --lime-ink:#C6FF05; --lime-edge:#C6FF05;
  --teal-soft:rgba(0,212,202,.14); --teal-ink:#2EE6DC;
  --purple-soft:rgba(173,120,255,.18); --purple-ink:#C3A0FF;
  --bg:#0F1430; --bg-soft:#141A3A; --surface:#181E42; --surface-2:#212856; --surface-3:#2A3268;
  --ink:#F2F4FF; --ink-2:#C7CCE3; --muted:#9FA7C8;
  --edge:#2B3260; --edge-2:#4A5390; --edge-strong:#7780B3;
  --ok:#6EE7A8; --ok-soft:rgba(110,231,168,.14);
  --err:#FF8FA9; --err-soft:rgba(255,143,169,.14);
  --warn:#FFC857; --warn-soft:rgba(255,200,87,.14);
  --star-edge:#FFB800;
  --bar:linear-gradient(90deg,#C6FF05,#00D4CA);
  --focus:#C3A0FF; --scrim:rgba(5,8,24,.66);
  --toast-bg:#2A3268; --toast-ink:#F2F4FF;
  --tile-a:linear-gradient(150deg,rgba(198,255,5,.16),rgba(0,212,202,.12));
  --tile-b:linear-gradient(150deg,rgba(0,212,202,.22),rgba(0,212,202,.07));
  --tile-c:linear-gradient(150deg,rgba(173,120,255,.26),rgba(173,120,255,.09));
  --sh-1:0 1px 2px rgba(0,0,0,.30);
  --sh-2:0 8px 24px rgba(0,0,0,.34);
  --sh-3:0 17px 52px rgba(0,0,0,.50);
}
/* режим ученика: те же компоненты, крупнее (класс на body — views/layout/app.php) */
.kid{--fs-h1:28px; --fs-h2:20px; --fs-h3:18px; --fs-body:17px; --fs-sm:15px; --fs-xs:14px;
     --ctl-h:52px; --ctl-h-sm:44px; --ctl-h-lg:60px; --r-lg:20px}

*{box-sizing:border-box;margin:0;padding:0}
html,body{background:var(--bg)}
body{font-family:var(--font);color:var(--ink);min-height:100vh;font-variant-numeric:tabular-nums;-webkit-font-smoothing:antialiased}
body.has-nav,body.guest{font-size:var(--fs-body);line-height:1.5}
button,select{font:inherit;color:inherit;cursor:pointer;border:0;background:none}
a{color:inherit;text-decoration:none}
img{display:block}
:where(body.has-nav,body.guest) :is(h1,h2,h3){line-height:1.25}
/* Заголовки — Unbounded. Не для кнопок, меню, таблиц, подписей полей и мелкого текста. В тренажёрах заголовки заданий — как текст (Onest). */
/* плитки дисциплин (.dc b) — Onest: колонка текста рядом с картинкой узкая (~130 px), длинное казахское слово в Unbounded рвалось посреди слова */
h1,h2,.big b,.pg-tile b,.fin-title,.fin-cap b{font-family:var(--font-head)}
h1,h2{overflow-wrap:break-word}
.tr-root :is(h1,h2),.tr-player :is(h1,h2){font-family:inherit}
:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
/* В кабинете нет вечных анимаций, размытий и «стекла» (раздел 2.5 проекта стиля). Старые пятна фона скрыты. */
.blob{display:none}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

.wrap{position:relative;z-index:1;max-width:1180px;margin:0 auto;padding:16px 24px 40px}

/* шапка: слева название раздела (или логотип на телефоне и у гостя), справа язык, тема, профиль — одинаковая везде */
header{display:flex;align-items:center;gap:12px;min-height:var(--ctl-h)}
.crumb{font-size:var(--fs-sm);font-weight:600;color:var(--muted);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:20px;letter-spacing:-.3px;white-space:nowrap}
.logo b{width:36px;height:36px;border-radius:11px;background:var(--lime);display:grid;place-items:center;color:var(--on-pri);font-size:18px}
.nav-top{display:flex;gap:4px;margin-left:22px}
.nav-top a{padding:9px 14px;border-radius:var(--r-md);font-weight:600;font-size:14px;color:var(--ink-2)}
.nav-top a:hover{background:var(--surface-3);color:var(--ink)}
.nav-top a.on{background:var(--purple-soft);color:var(--ink);font-weight:700}
.hdr-r{margin-left:auto;display:flex;align-items:center;gap:8px}
.chip{height:var(--ctl-h);min-width:var(--ctl-h);padding:0 12px;border-radius:var(--r-md);background:var(--surface);border:1px solid var(--edge);display:flex;align-items:center;justify-content:center;gap:6px;font-weight:700;font-size:13px;line-height:1.2;transition:background var(--t-fast)}
.chip:hover{background:var(--surface-3)}
.chip select{font-weight:700}
.chip select option{color:#171D3B}
.ava{width:var(--ctl-h);height:var(--ctl-h);border-radius:50%;background:var(--purple-soft);display:grid;place-items:center;color:var(--purple-ink);font-weight:800}

/* заголовок страницы: один тёмный цвет, без градиента по тексту */
.ph{margin:22px 0 16px}
.ph h1{font-size:var(--fs-h1);font-weight:800;letter-spacing:-.02em;line-height:1.2}
.ph h1 span{color:inherit}
.ph p{margin-top:6px;color:var(--muted);font-size:var(--fs-body)}
.back{display:inline-flex;align-items:center;gap:6px;min-height:36px;color:var(--purple-ink);font-weight:700;font-size:var(--fs-sm);margin:10px 0 0}

/* кнопки: «таблетка». .pri (и .ls-go) — главное действие, салатовая с тёмным текстом; .ghost — обычная (с кантом);
   .quiet — тихая; .danger — опасная; .del — обычная с красным текстом. Высота — --ctl-h (у ученика крупнее). */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:var(--ctl-h);padding:6px 20px;border:1.5px solid transparent;border-radius:var(--r-pill);font-weight:700;font-size:var(--fs-body);line-height:1.2;text-align:center;cursor:pointer;transition:background var(--t-fast),border-color var(--t-fast),transform var(--t-fast)}
.btn:active{transform:translateY(1px)}
.btn.pri,.btn.ls-go{background:var(--lime);color:var(--on-pri);border-color:var(--lime-edge);box-shadow:0 6px 16px -8px rgba(120,170,0,.8)}
.btn.pri:hover,.btn.ls-go:hover{background:var(--lime-hover)}
.btn.ghost{background:var(--surface);color:var(--ink);border-color:var(--edge-2)}
.btn.ghost:hover{background:var(--surface-3)}
.btn.quiet{color:var(--purple-ink)}
.btn.quiet:hover{background:var(--purple-soft)}
.btn.danger{background:var(--err-solid);color:#fff}
.btn.danger:hover{background:var(--err-hover)}
.btn.sm{min-height:var(--ctl-h-sm);padding:4px 14px;font-size:var(--fs-sm)}
.btn.lg{min-height:var(--ctl-h-lg);padding:8px 28px;font-size:calc(var(--fs-body) + 2px)}
.btn[disabled],.btn.is-disabled{background:var(--surface-3);color:var(--muted);border-color:transparent;box-shadow:none;cursor:not-allowed;pointer-events:none;transform:none}

/* иконки вместо эмодзи: icon() (PHP) / тот же набор в JS — views/layout/icons.php, линия как в меню; цвет и размер — от текста */
.ic{display:inline-block;width:1.15em;height:1.15em;vertical-align:-.2em;flex:none;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.btn>.ic{width:18px;height:18px;stroke-width:2.2}
.chip>.ic{width:20px;height:20px}
.av>.ic{width:22px;height:22px}
.choices i>.ic{width:24px;height:24px}
.tr-ic>.ic{width:1.1em;height:1.1em;vertical-align:middle}
.ic.good{stroke:var(--ok)}

/* ---------- единая навигация: сайдбар (компьютер) — сплошной, без размытия ---------- */
body.has-nav .wrap{margin-left:232px;max-width:1180px;padding-left:28px;padding-right:28px}
.side{position:fixed;z-index:6;left:0;top:0;bottom:0;width:232px;display:flex;flex-direction:column;gap:2px;padding:16px 12px;overflow-y:auto;
  background:var(--surface);border-right:1px solid var(--edge)}
.side .logo{padding:4px 8px 18px}
.side a{display:flex;align-items:center;gap:12px;min-height:44px;padding:4px 12px;border-radius:var(--r-md);font-weight:600;font-size:14px;line-height:1.25;color:var(--ink-2);transition:background var(--t-fast),color var(--t-fast)}
.side a:hover{background:var(--surface-3);color:var(--ink)}
.side a.on{background:var(--purple-soft);color:var(--ink);font-weight:700}
.side a svg{width:22px;height:22px;flex:none;color:var(--muted);stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.side a.on svg{color:var(--purple-ink)}
.side .sep{height:1px;flex:none;background:var(--edge);margin:8px}
.side .cnt{margin-left:auto;min-width:22px;height:22px;padding:0 6px;border-radius:var(--r-pill);display:grid;place-items:center;font-size:12px;font-weight:700;color:#fff;background:var(--err-solid)}
.side .livedot{margin-left:auto;width:8px;height:8px;border-radius:50%;background:var(--err-solid)}
/* «Установить приложение» под окнами входа и регистрации (views/partials/pwa_install.php) */
.pwa{display:flex;align-items:center;gap:14px;margin:16px auto 0;max-width:520px;padding:14px 16px;border:1px solid var(--edge);border-radius:var(--r-lg);background:var(--surface)}
.pwa[hidden]{display:none}
.pwa img{width:48px;height:48px;border-radius:12px;flex:none}
.pwa-txt{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.pwa-txt b{font-size:var(--fs-sm);font-weight:700;color:var(--ink)}
.pwa-txt small{font-size:var(--fs-xs);color:var(--muted)}
.pwa-txt small[hidden],.pwa .btn[hidden]{display:none}
/* «Ещё» в боковом меню — только на планшете/узком экране, где второстепенные пункты (nav.php 'more') скрыты: меню без прокрутки */
.side .nav-more-link{display:none}
@media (max-width:1100px){.side a.nav-more{display:none}.side a.nav-more-link{display:flex}}
body.has-nav header .logo{display:none}
@media (max-width:1100px){
  body.has-nav .wrap{margin-left:72px;padding-left:24px;padding-right:24px}
  .side{width:72px;padding:14px 10px;align-items:center}
  .side .logo span,.side a span,.side .cnt,.side .livedot{display:none}
  .side .logo{padding:0 0 14px}
  .side a{width:48px;padding:0;justify-content:center}
  /* ученик: значок + подпись (дети подписи читают, значки угадывают хуже) */
  body.has-nav.kid .wrap{margin-left:96px}
  .kid .side{width:96px;padding:14px 4px;align-items:stretch}
  .kid .side .logo{justify-content:center}
  .kid .side a{width:auto;flex-direction:column;gap:4px;min-height:64px;padding:6px 0;font-size:12px;letter-spacing:-.01em;line-height:1.2;text-align:center}
  .kid .side a span{display:block;max-width:100%;overflow-wrap:break-word}
  .kid .side a.logo span{display:none}
  .kid .side a svg{width:26px;height:26px}
}

/* помощник и нижнее меню */
.aibtn{position:fixed;z-index:5;right:22px;bottom:22px;display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--edge);border-radius:var(--r-pill);padding:8px 18px 8px 8px;font-weight:700;box-shadow:var(--sh-2)}
.aibtn i{width:38px;height:38px;border-radius:50%;background:var(--purple-soft)}
.tabbar{display:none}
@media (max-width:900px){.nav-top{display:none}}
@media (max-width:760px){
  .side{display:none}
  body.has-nav .wrap,body.has-nav.kid .wrap{margin-left:auto}
  body.has-nav header .logo{display:flex}
  body.has-nav header .crumb{display:none}
  .wrap,body.has-nav .wrap{padding:12px 16px calc(96px + env(safe-area-inset-bottom))}
  body.guest .wrap{padding-bottom:40px}
  .logo{font-size:16px}
  .ph{margin:18px 0 14px}.ph h1{font-size:24px}
  .tabbar{display:flex;position:fixed;z-index:6;left:0;right:0;bottom:0;padding:0 0 env(safe-area-inset-bottom);
    background:var(--surface);border-top:1px solid var(--edge);justify-content:space-between}
  .tabbar a{flex:1;min-width:0;min-height:64px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:6px 0;color:var(--muted);font-size:12px;font-weight:600;letter-spacing:-.02em;line-height:1.15;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .tabbar a svg{width:24px;height:24px;flex:none;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
  .tabbar a.on{color:var(--purple-ink);font-weight:700}
  .tabbar a.on svg{fill:var(--purple-soft)}
  .aibtn{bottom:calc(76px + env(safe-area-inset-bottom));padding:8px}.aibtn span{display:none}
}

/* ================= страницы ================= */
.side a.logo{color:var(--ink);font-size:20px;font-weight:800;padding:4px 8px 18px;background:none;min-height:0}
.side a.logo:hover{background:none}
.logo img{height:36px;width:auto;max-width:140px;object-fit:contain}
/* логотип edlimi: знак + надпись; для тёмной темы — белая надпись (views/partials/logo.php) */
.logo .lg-wm{display:inline-flex;align-items:center}
.logo .lg-wm img{height:22px;max-width:none}
.logo .wm-d{display:none}
[data-theme="dark"] .logo .wm-l{display:none}
[data-theme="dark"] .logo .wm-d{display:block}
@media (max-width:1100px) and (min-width:761px){.side a.logo{padding:0 0 14px}}
.muted{color:var(--muted);font-weight:500}.small{font-size:12px}
.alert{margin:14px 0;padding:12px 16px;border-radius:var(--r-lg);background:var(--err-soft);color:var(--err);font-weight:600;font-size:var(--fs-sm)}
.alert.ok{background:var(--ok-soft);color:var(--ok)}

/* профиль */
.me{position:relative}
.me summary{list-style:none;cursor:pointer}.me summary::-webkit-details-marker{display:none}
.me .menu{position:absolute;right:0;top:calc(var(--ctl-h) + 8px);z-index:9;min-width:220px;background:var(--surface);border:1px solid var(--edge);border-radius:var(--r-lg);box-shadow:var(--sh-3);padding:14px;display:flex;flex-direction:column;gap:4px}
.me .menu small{color:var(--muted);font-weight:500;font-size:var(--fs-sm)}
.me .menu button{margin-top:8px;min-height:var(--ctl-h-sm);text-align:left;font-weight:700;color:var(--err)}

/* вход и регистрация */
body.guest .wrap{max-width:520px}
.auth{margin:32px auto 0;background:var(--surface);border:1px solid var(--edge);border-radius:var(--r-xl);padding:28px;box-shadow:var(--sh-2)}
.auth.wide{max-width:720px}
.auth h1{font-size:var(--fs-h1);font-weight:800;letter-spacing:-.02em;margin-bottom:16px}
.auth p{margin-top:14px}.auth a{color:var(--purple-ink);font-weight:700}
.auth a.btn.pri,.auth a.btn.ls-go{color:var(--on-pri)}.auth a.btn.ghost{color:var(--ink)}
.doc{line-height:1.6;margin-top:14px}
.form{display:flex;flex-direction:column;gap:16px}
.fld{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:var(--fs-sm);color:var(--ink-2)}
.fld small{font-size:var(--fs-xs);font-weight:500;color:var(--muted)}
input,select,textarea{font:inherit;font-weight:500;font-size:var(--fs-body);line-height:1.35;color:var(--ink);background:var(--surface);border:1px solid var(--edge-strong);border-radius:var(--r-md);padding:11px 14px;outline:none;width:100%}
.kid input:not([type=checkbox]):not([type=radio]),.kid select,.kid textarea{padding-top:14px;padding-bottom:14px}
input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}
input:hover,select:hover,textarea:hover{border-color:var(--ink-2)}
input:focus,select:focus,textarea:focus{border-color:var(--focus);box-shadow:inset 0 0 0 1px var(--focus),0 0 0 3px color-mix(in srgb,var(--focus) 30%,transparent)}
input[type=checkbox],input[type=radio]{accent-color:var(--purple-ink)}
.chip select{border:0;padding:0;width:auto;font-size:13px;background:none;box-shadow:none}
.check{display:flex;gap:10px;align-items:flex-start;font-weight:500;font-size:14px;cursor:pointer}
.check input{width:22px;height:22px;flex:none;margin-top:0;accent-color:var(--purple-ink)}
.seg{display:grid;grid-template-columns:1fr 1fr;gap:2px;background:var(--surface-3);padding:4px;border-radius:var(--r-md)}
.seg label{position:relative}.seg input,.ch input,.mo>input{position:absolute;opacity:0;pointer-events:none;width:1px;height:1px;left:0;top:0}
.seg span{display:grid;place-items:center;min-height:calc(var(--ctl-h) - 8px);text-align:center;padding:4px 10px;border-radius:var(--r-sm);font-weight:600;font-size:var(--fs-sm);line-height:1.2;color:var(--ink-2);cursor:pointer}
.seg input:checked+span{background:var(--surface);color:var(--ink);font-weight:700;box-shadow:var(--sh-1)}
[data-theme="dark"] .seg input:checked+span{background:var(--purple-soft);box-shadow:inset 0 0 0 1.5px var(--purple-ink)}
.seg input:focus-visible+span{outline:3px solid var(--focus);outline-offset:1px}
.form .for-student{display:none}
.form:has(input[value="student"]:checked) .for-student{display:inline}
.form:has(input[value="student"]:checked) .for-teacher{display:none}

/* главная педагога */
.hi{margin:22px 0 20px}
.hi h1{font-size:var(--fs-h1);font-weight:800;letter-spacing:-.02em;line-height:1.2}
.hi h1 span,.shi h1 span{color:inherit}
.hi p{margin-top:6px;color:var(--muted);font-size:var(--fs-body)}
.main3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
/* большие плитки: бледный фон, тёмный текст, стеклянный значок 112 px справа сверху */
.big{position:relative;overflow:hidden;border-radius:var(--r-xl);padding:20px 20px 18px;color:var(--ink);min-height:176px;display:flex;flex-direction:column;justify-content:flex-end;border:1px solid transparent;transition:transform var(--t-base) var(--ease),box-shadow var(--t-base)}
.big:hover{transform:translateY(-2px);box-shadow:var(--sh-2)}
.big.a{background:var(--tile-a)}.big.b{background:var(--tile-b)}.big.c{background:var(--tile-c)}
[data-theme="dark"] .big{background-color:var(--surface);border-color:var(--edge)}
.big img{position:absolute;right:8px;top:8px;width:112px;height:112px;object-fit:contain}
.big b{font-size:18px;font-weight:700;letter-spacing:-.01em;line-height:1.2;position:relative;max-width:calc(100% - 96px);overflow-wrap:anywhere}
.big small{font-size:var(--fs-sm);font-weight:500;color:var(--ink-2);margin-top:4px;position:relative}
.rest{display:none}
/* малые плитки разделов: квадрат 44 px с мягкой подложкой и линейным значком */
.tile{background:var(--surface);border:1px solid var(--edge);border-radius:var(--r-lg);padding:14px 8px;min-height:96px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;font-weight:600;font-size:var(--fs-sm);line-height:1.25;text-align:center;min-width:0;overflow-wrap:anywhere;transition:background var(--t-fast),border-color var(--t-fast)}
.tile:hover{background:var(--surface-2);border-color:var(--edge-2)}
.tile .ti{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;color:var(--ink)}
.tile .ti .ic{width:22px;height:22px}
.tile:nth-child(3n+1) .ti{background:var(--lime-soft)}.tile:nth-child(3n+2) .ti{background:var(--teal-soft)}.tile:nth-child(3n+3) .ti{background:var(--purple-soft)}
[data-theme="dark"] .tile:nth-child(3n+1) .ti{color:var(--lime-ink)}[data-theme="dark"] .tile:nth-child(3n+2) .ti{color:var(--teal-ink)}[data-theme="dark"] .tile:nth-child(3n+3) .ti{color:var(--purple-ink)}
.empty{margin-top:22px;border:1.5px dashed var(--edge-2);border-radius:var(--r-xl);padding:16px 18px;display:flex;align-items:center;gap:14px;color:var(--muted);font-weight:500;background:var(--surface)}
.empty img{width:64px;height:64px;object-fit:contain}.empty em{margin-left:auto;font-style:normal}

/* главная ученика */
.shi{display:flex;align-items:center;gap:16px;margin:18px 0}
.shi .masc{width:96px;height:96px;flex:none;object-fit:contain}
.shi h1{font-size:var(--fs-h1);font-weight:800;letter-spacing:-.02em;line-height:1.2}
.shi p{color:var(--ink-2);margin-top:4px}
.day{position:relative;border-radius:var(--r-xl);padding:20px;background:var(--surface);border:1px solid var(--edge);color:var(--ink);display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:20px;align-items:center}
.day h2{font-size:var(--fs-h2);font-weight:700}
.ring{--p:0;width:96px;height:96px;flex:none;border-radius:50%;background:conic-gradient(#86C400,#00B9AE calc(var(--p)*1%),var(--surface-3) 0);display:grid;place-items:center}
.ring div{width:76px;height:76px;border-radius:50%;background:var(--surface);display:grid;place-content:center;text-align:center;font-weight:800;font-size:22px;line-height:1}
.ring div small{display:block;font-size:12px;font-weight:600;color:var(--muted);margin-top:4px}
.go{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:var(--ctl-h-lg);padding:8px 28px;border-radius:var(--r-pill);background:var(--lime);color:var(--on-pri);border:1.5px solid var(--lime-edge);box-shadow:0 6px 16px -8px rgba(120,170,0,.8);font-weight:700;font-size:calc(var(--fs-body) + 2px);line-height:1.2;text-align:center;transition:background var(--t-fast)}
.go:hover{background:var(--lime-hover)}
.go .ic{width:20px;height:20px;stroke-width:2.2}
.tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:18px}
.t{background:var(--surface);border:1px solid var(--edge);border-radius:var(--r-xl);padding:14px 10px 16px;min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;transition:background var(--t-fast),border-color var(--t-fast)}
.t:hover{background:var(--surface-2);border-color:var(--edge-2)}
.t img{width:88px;height:88px;object-fit:contain}
.t b{font-size:17px;font-weight:700;line-height:1.25;overflow-wrap:anywhere}

/* дисциплины */
.find{display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--edge-strong);border-radius:var(--r-md);padding:0 0 0 14px;color:var(--muted);max-width:420px;margin-bottom:18px}
.find:focus-within{border-color:var(--focus);box-shadow:inset 0 0 0 1px var(--focus),0 0 0 3px color-mix(in srgb,var(--focus) 30%,transparent)}
.find input,.find input:focus{border:0;box-shadow:none;padding:11px 14px 11px 0;background:none}
.disc{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.dc{position:relative;overflow:hidden;border-radius:var(--r-xl);padding:18px;min-height:160px;display:flex;flex-direction:column;justify-content:flex-end;background:var(--surface);border:1px solid var(--edge);transition:transform var(--t-base) var(--ease),box-shadow var(--t-base),border-color var(--t-fast)}
.dc:hover{transform:translateY(-2px);box-shadow:var(--sh-2);border-color:var(--edge-2)}
/* программа/дисциплина «скоро»: видна в линейке, но не открывается */
.dc.is-soon{cursor:default}
.dc.is-soon:hover{transform:none;box-shadow:none;border-color:var(--edge)}
.dc.is-soon small{color:var(--purple-ink)}
.dc img{position:absolute;right:8px;top:8px;width:96px;height:96px;object-fit:contain}
.dc b{font-size:15px;font-weight:700;line-height:1.25;position:relative;max-width:calc(100% - 84px);overflow-wrap:anywhere}
.dc small{font-size:var(--fs-sm);font-weight:500;color:var(--muted);position:relative;margin-top:4px}
.hero{position:relative;overflow:hidden;border-radius:var(--r-xl);padding:24px 28px;background:var(--tile-b);color:var(--ink);border:1px solid transparent;margin:8px 0 22px;min-height:150px;display:flex;flex-direction:column;justify-content:center}
[data-theme="dark"] .hero,[data-theme="dark"] .head{background-color:var(--surface);border-color:var(--edge)}
.hero img{position:absolute;right:16px;top:50%;width:150px;height:150px;margin-top:-75px;object-fit:contain}
.hero h1{font-size:var(--fs-h1);font-weight:800;letter-spacing:-.02em;position:relative;max-width:calc(100% - 170px)}
.hero p{color:var(--ink-2);margin-top:6px;position:relative;max-width:calc(100% - 170px)}
/* вкладки: строка с полоской под текущей; не влезли — прокрутка вбок */
.dtabs{display:flex;gap:4px;box-shadow:inset 0 -1px 0 var(--edge);margin-bottom:18px;max-width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
.dtabs button,.dtabs a{flex:none;display:inline-flex;align-items:center;min-height:var(--ctl-h);padding:0 14px;border-bottom:3px solid transparent;font-weight:600;font-size:var(--fs-body);line-height:1.2;color:var(--muted);white-space:nowrap}
.dtabs button:hover,.dtabs a:hover{color:var(--ink)}
.dtabs button.on,.dtabs a.on{color:var(--ink);font-weight:700;border-bottom-color:var(--purple-ink)}
.pane{display:none}.pane.on{display:block}.pane.tr.on{display:grid}
.tr{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.tc{position:relative;background:var(--surface);border:1px solid var(--edge);border-radius:var(--r-xl);padding:14px 14px 16px;display:flex;flex-direction:column;gap:8px;transition:transform var(--t-base) var(--ease),box-shadow var(--t-base)}
.tc:hover{transform:translateY(-2px);box-shadow:var(--sh-2)}
.tc.soon{opacity:.7}.tc.soon:hover{transform:none;box-shadow:none}
.tc .pic{height:128px;border-radius:var(--r-lg);display:grid;place-items:center;background:var(--teal-soft)}
.tc:nth-child(3n+2) .pic{background:var(--purple-soft)}.tc:nth-child(3n+3) .pic{background:var(--lime-soft)}
.tc .pic img{height:108px;width:auto}
.tc b{font-size:var(--fs-h3);font-weight:700}.tc p{font-size:var(--fs-sm);color:var(--muted);line-height:1.4}
.tc .play{position:absolute;right:22px;top:110px;width:44px;height:44px;border-radius:50%;background:var(--lime);color:var(--on-pri);box-shadow:inset 0 0 0 1.5px var(--lime-edge);display:grid;place-items:center}
.tc .play .ic{width:20px;height:20px;stroke-width:2.2}
.tag{position:absolute;z-index:1;left:22px;top:22px;padding:4px 10px;border-radius:var(--r-pill);font-size:12px;font-weight:700;line-height:1.3;color:var(--purple-ink);background:var(--surface);box-shadow:inset 0 0 0 1.5px var(--purple-ink)}

/* управление */
.cols{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}
.card{background:var(--surface);border:1px solid var(--edge);border-radius:var(--r-xl);padding:20px}
.card h2{font-size:var(--fs-h2);font-weight:700;margin-bottom:12px}
.rows{list-style:none;display:flex;flex-direction:column;gap:8px;margin-bottom:14px}
.rows li{display:flex;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:var(--r-md);background:var(--surface-2)}
.rows li span{color:var(--muted);font-weight:500;font-size:var(--fs-sm)}
.inline{display:flex;gap:8px}.inline input{flex:1}

/* заглушки и «ещё» */
.soon{text-align:center;margin:60px auto;max-width:420px}
.soon img{width:110px;height:110px;margin:0 auto 14px;object-fit:contain}
.soon h1{font-size:24px;font-weight:800}.soon p{color:var(--muted);margin:8px 0 18px}
.morelist{display:flex;flex-direction:column;gap:8px}
.morelist a{display:flex;align-items:center;gap:12px;min-height:56px;background:var(--surface);border:1px solid var(--edge);border-radius:var(--r-lg);padding:10px 16px;font-weight:700}
.morelist a:hover{background:var(--surface-2)}
.morelist svg{width:24px;height:24px;color:var(--muted);stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

@media (max-width:1100px){.disc,.tr{grid-template-columns:repeat(3,minmax(0,1fr))}.tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:900px){.main3{grid-template-columns:1fr;gap:12px}.big{min-height:128px}}
@media (max-width:760px){
  .hi{margin:18px 0 16px}.hi h1{font-size:24px}
  .big b{font-size:18px}.big img{width:96px;height:96px}
  .rest{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}
  .shi{margin:14px 0;gap:12px}.shi .masc{width:64px;height:64px}.shi h1{font-size:24px}
  .day{grid-template-columns:auto minmax(0,1fr);gap:14px;padding:16px}.ring{width:84px;height:84px}.ring div{width:66px;height:66px;font-size:20px}
  .go{grid-column:1/-1}
  .tiles{gap:10px}.t{min-height:128px;padding:12px 8px}.t img{width:72px;height:72px}.t b{font-size:15px}
  .disc,.tr{grid-template-columns:1fr 1fr;gap:10px}.dc{min-height:168px;padding:14px}.dc img{width:64px;height:64px}.dc b{font-size:15px;max-width:100%}.find{max-width:none}
  .hero{padding:18px;min-height:120px}.hero img{width:96px;height:96px;margin-top:-48px;right:8px}.hero h1{font-size:22px;max-width:calc(100% - 100px)}.hero p{font-size:13px;max-width:calc(100% - 100px)}
  .tc{padding:10px}.tc .pic{height:96px}.tc .pic img{height:80px}.tc p{display:none}.tc b{font-size:14px}.tc .play{width:40px;height:40px;top:76px;right:16px}.tag{left:16px;top:16px}
  .cols{grid-template-columns:1fr}
  .auth{margin-top:20px;padding:20px}
  .empty{flex-wrap:wrap}.empty em{margin-left:0;width:100%}
}
.opt{border:1.5px dashed var(--edge-2);border-radius:var(--r-md);padding:10px 14px}.opt summary{cursor:pointer;font-weight:600;color:var(--ink-2)}.opt summary small{font-weight:500;color:var(--muted)}.opt[open]{display:flex;flex-direction:column;gap:12px}

/* ================= ДЗ ================= */
.hwph{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap}.hwph .btn{margin-left:auto}
.goals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.goal{background:var(--surface);border:1px solid var(--edge);border-radius:var(--r-xl);padding:18px;display:grid;grid-template-columns:72px minmax(0,1fr);gap:14px;transition:transform var(--t-base) var(--ease),box-shadow var(--t-base)}
a.goal:hover{transform:translateY(-2px);box-shadow:var(--sh-2)}
.goal .pic{width:72px;height:72px;border-radius:20px;display:grid;place-items:center;background:var(--surface-2)}
.goal .pic img{width:60px;height:60px;object-fit:contain}
.goal .top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.goal .top b{font-size:17px;font-weight:700}
/* метки состояния: «таблетка» 12/700, пара «текст + своя подложка» */
.mode{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:700;line-height:1.3;border-radius:var(--r-pill);padding:4px 10px}.mode.auto{background:var(--info-soft);color:var(--info)}.mode.man{background:var(--purple-soft);color:var(--purple-ink)}
.goal .skill{margin-top:4px;font-weight:500;color:var(--muted);font-size:14px}.goal .skill em{font-style:normal;color:var(--ink);font-weight:700}
.bar{height:8px;background:var(--surface-3);border-radius:var(--r-pill);margin-top:12px;overflow:hidden}.bar i{display:block;height:100%;border-radius:inherit;background:var(--bar)}
.goal .meta{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:8px;font-size:var(--fs-sm);font-weight:600;color:var(--muted)}.goal .meta b{color:var(--ink)}
.goals .empty{grid-column:1/-1;margin-top:0}
/* карточка ДЗ в списке: кому (с отметкой за сегодня), срок, действия — без захода внутрь; галочка — массовые действия */
.goal{position:relative}.goal .gbody{min-width:0}
.goal .gt{color:inherit;text-decoration:none}.goal .gt:hover b{color:var(--purple-ink)}
.goal .gcb{position:absolute;top:14px;right:14px}
.goal:has(.gcb input:checked){border-color:var(--purple-ink);background:var(--purple-soft)}
.gwho{margin-top:8px;font-size:13px;font-weight:600}
.gwho summary{display:inline-flex;align-items:center;gap:6px;cursor:pointer;list-style:none;padding:4px 10px;border-radius:var(--r-pill);background:var(--purple-soft);color:var(--purple-ink)}
.gwho summary::-webkit-details-marker{display:none}.gwho summary i{font-style:normal;background:var(--surface);border-radius:var(--r-pill);padding:0 7px;font-size:12px}
.gwho summary::after{content:"▾";font-size:12px}.gwho[open] summary::after{content:"▴"}
.gwho .sts{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.gwho.one{display:flex;align-items:center;gap:6px}
.gst{display:inline-block;padding:3px 10px;border-radius:var(--r-pill);font-size:12px;font-weight:700;background:var(--surface-3);color:var(--ink-2)}
.gst.done{background:var(--ok-soft);color:var(--ok)}.gst.part{background:var(--warn-soft);color:var(--warn)}
@media (max-width:700px){.gacts .hide-m{display:none}}
.goal .gacts{justify-content:flex-start;flex-wrap:wrap;margin-top:10px}
/* мастер ДЗ: ученики отмеченной группы */
.grpstu{margin:4px 0 10px;padding:10px 12px;border-radius:var(--r-lg);background:var(--surface-2)}
.grpstu .sub{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.lnk{background:none;border:0;padding:0;font:inherit;font-size:var(--fs-sm);font-weight:700;color:var(--purple-ink);cursor:pointer;text-decoration:underline}

.wizard{display:flex;flex-direction:column;gap:16px;max-width:860px}
.step{background:var(--surface);border:1px solid var(--edge);border-radius:var(--r-xl);padding:20px 22px}
.step h2{display:flex;align-items:center;gap:12px;font-size:var(--fs-h2);font-weight:700;margin-bottom:12px}
.step h2 i{width:32px;height:32px;flex:none;border-radius:50%;background:var(--purple-soft);color:var(--purple-ink);display:grid;place-items:center;font-style:normal;font-size:14px;font-weight:800}
.sub{margin:14px 0 8px;font-size:var(--fs-sm);font-weight:600;color:var(--ink-2)}
.chips{display:flex;flex-wrap:wrap;gap:8px}
/* чипы-фильтры: выбранный — фиолетовая подложка, рамка и галочка (цвет не единственный признак) */
.ch{position:relative}.ch input{position:absolute;opacity:0;pointer-events:none}
.ch span{display:inline-flex;align-items:center;min-height:var(--ctl-h-sm);padding:4px 14px;border-radius:var(--r-pill);border:1.5px solid var(--edge-2);font-weight:600;font-size:var(--fs-sm);line-height:1.2;color:var(--ink-2);background:var(--surface);cursor:pointer}
.ch span:hover{background:var(--surface-3)}
.ch input:checked+span,button.ch.on span{background:var(--purple-soft);border-color:var(--purple-ink);color:var(--purple-ink);font-weight:700}
.ch input:checked+span::before,button.ch.on span::before{content:"";flex:none;width:9px;height:5px;margin:0 8px 3px 1px;border-left:2px solid;border-bottom:2px solid;transform:rotate(-45deg)}
.ch input:focus-visible+span{outline:3px solid var(--focus);outline-offset:2px}
.lv{display:flex;flex-direction:column;gap:10px}.lv>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.lv>div>span{font-weight:600;font-size:13px;color:var(--ink-2);min-width:140px}
.modes{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.mo{position:relative}.mo>input{position:absolute;opacity:0}
.mo>span{display:block;height:100%;border:1.5px solid var(--edge-2);border-radius:var(--r-lg);padding:16px;cursor:pointer}
.mo>span b{font-size:17px;font-weight:700;display:block}.mo>span small{display:block;font-size:13px;color:var(--muted);font-weight:500;line-height:1.45;margin-top:6px}
.mo>input:checked+span{border-color:var(--purple-ink);box-shadow:inset 0 0 0 1px var(--purple-ink);background:var(--purple-soft)}
.mo>input:focus-visible+span{outline:3px solid var(--focus);outline-offset:2px}
.mo .rec{position:absolute;right:12px;top:12px;font-size:12px;font-weight:700;line-height:1.3;color:var(--ok);background:var(--ok-soft);border-radius:var(--r-pill);padding:3px 9px}
.hint{margin-top:12px;font-size:var(--fs-sm);line-height:1.5;color:var(--ink-2);font-weight:500;background:var(--surface-2);border-radius:var(--r-md);padding:10px 12px}

/* шапка страницы ДЗ: бледная плитка, тёмный текст */
.head{position:relative;overflow:hidden;border-radius:var(--r-xl);padding:22px 24px;background:var(--tile-c);color:var(--ink);border:1px solid transparent;margin:6px 0 16px}
.head img{position:absolute;right:14px;top:50%;width:120px;height:120px;margin-top:-60px;object-fit:contain}
.head h1{font-size:24px;font-weight:800;display:flex;align-items:center;gap:10px;flex-wrap:wrap;max-width:calc(100% - 130px)}
.head h1 span{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:700;line-height:1.3;background:var(--surface);color:var(--ink);border-radius:var(--r-pill);padding:4px 10px}
.head p{margin-top:6px;color:var(--ink-2);font-weight:500;max-width:calc(100% - 130px)}
.head .bar{background:var(--surface);max-width:70%}
.head small{display:block;margin-top:6px;font-weight:600;font-size:var(--fs-sm)}
.acts{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.acts form{display:contents}.acts .del,.btn.del{color:var(--err)}
.colh,.st{display:grid;grid-template-columns:44px 1.6fr 1fr .6fr 1fr;gap:14px;align-items:center}
.colh{padding:0 16px 6px;font-size:var(--fs-sm);font-weight:600;color:var(--muted)}
.list{display:flex;flex-direction:column;gap:10px}
.st{background:var(--surface);border:1px solid var(--edge);border-radius:var(--r-lg);padding:12px 16px}
.st .av,.trow .av,.srow .av{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;font-weight:700;color:var(--purple-ink);background:var(--purple-soft);font-size:14px}
.st b{font-size:15px;font-weight:700}.st small{display:block;font-size:12px;color:var(--muted);font-weight:500}
.st .k{font-size:15px;font-weight:700}
.today{font-size:12px;font-weight:700;line-height:1.3;border-radius:var(--r-pill);padding:4px 10px;justify-self:start}
.today.ok{background:var(--ok-soft);color:var(--ok)}.today.no{background:var(--err-soft);color:var(--err)}.today.part{background:var(--warn-soft);color:var(--warn)}
.lvl{display:flex;gap:3px}.lvl i{width:14px;height:14px;border-radius:4px;background:var(--surface-3)}.lvl i.f{background:var(--teal-ink)}
/* шаги задания дня: сделанный — зелёная «таблетка» с галочкой, несделанный — серая с номером */
.day .steps{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.day .steps span{display:inline-flex;align-items:center;gap:8px;min-height:40px;background:var(--ok-soft);color:var(--ok);border-radius:var(--r-pill);padding:4px 14px 4px 6px;font-weight:700;font-size:var(--fs-sm);line-height:1.2}
.day .steps span i{width:28px;height:28px;flex:none;border-radius:50%;background:var(--ok);color:var(--surface);display:grid;place-items:center;font-style:normal;font-size:13px;font-weight:800}
.day .steps span i .ic{width:16px;height:16px;stroke-width:3}
.day .steps span.todo{background:var(--surface-3);color:var(--ink-2)}
.day .steps span.todo i{background:var(--surface);color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--edge-strong)}
@media (max-width:900px){.goals{grid-template-columns:1fr}}
@media (max-width:760px){
  .hwph .btn{width:100%;margin-left:0}
  .goal{grid-template-columns:56px minmax(0,1fr);padding:14px}.goal .pic{width:56px;height:56px}.goal .pic img{width:46px;height:46px}
  .step{padding:16px}.modes{grid-template-columns:1fr}
  .lv>div>span{min-width:0;width:100%}
  .head{padding:18px}.head img{width:84px;height:84px;margin-top:-42px;right:6px}.head h1{font-size:21px;max-width:calc(100% - 84px)}.head p{max-width:calc(100% - 84px)}
  .acts .btn{flex:1 1 45%}
  .colh{display:none}.st{grid-template-columns:44px 1fr auto;gap:10px}.st .hide-m{display:none}
  .day .steps{display:none}
}
/* ================= статистика ================= */
.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}
.kpis div{background:var(--surface);border:1px solid var(--edge);border-radius:var(--r-lg);padding:16px}
.kpis b{display:block;font-size:28px;font-weight:800;line-height:1.2;color:var(--ink)}
.kpis span{font-size:13px;font-weight:500;color:var(--muted)}
.card{margin-bottom:16px}
.card h2 small{font-size:12px;font-weight:500}
.chart{width:100%;height:auto;display:block}
.chart rect.g{fill:#2fd06b}.chart rect.n{fill:#9aa5d6}.legend i.n{background:#9aa5d6}.chart rect.y{fill:#ffb020}.chart rect.r{fill:#ff5f7e}
.chart text{font-size:18px;fill:var(--muted);font-family:var(--font)}
.legend{display:flex;gap:6px 14px;align-items:center;font-size:12px;font-weight:500;color:var(--muted);margin-top:8px;flex-wrap:wrap}
.legend i{display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:4px;vertical-align:middle}
.legend i.g{background:#2fd06b}.legend i.y{background:#ffb020}.legend i.r{background:#ff5f7e}
.attn{border-color:var(--err)}
.st5{grid-template-columns:44px 1.6fr .8fr .8fr 1fr 1.4fr}
.st5 .k small{display:inline;margin-left:6px;font-size:12px;font-weight:700}
.up{color:var(--ok)}.down{color:var(--err)}
a.st:hover{box-shadow:var(--sh-2)}
.hist{display:flex;flex-direction:column;gap:8px}
.hist details{border:1px solid var(--edge);border-radius:var(--r-lg);padding:10px 14px}
.hist summary{display:grid;grid-template-columns:110px 1fr 60px auto;gap:10px;align-items:center;cursor:pointer;font-size:14px;list-style:none}
.hist summary::-webkit-details-marker{display:none}
.hist summary span{color:var(--muted);font-weight:500}.hist summary em{font-style:normal;font-size:12px;font-weight:700;background:var(--purple-soft);color:var(--purple-ink);border-radius:var(--r-pill);padding:2px 8px;justify-self:start}
.hist table{width:100%;border-collapse:collapse;margin-top:10px;font-size:13px}
.hist th,.hist td{text-align:left;padding:6px 8px;border-bottom:1px solid var(--edge)}
.hist th{color:var(--muted);font-weight:600}.hist tr.bad td{color:var(--err);font-weight:700}
@media (max-width:760px){
  .kpis{grid-template-columns:1fr 1fr;gap:10px}.kpis b{font-size:22px}
  .st5{grid-template-columns:44px 1fr auto auto}
  .hist summary{grid-template-columns:1fr auto;gap:4px}.hist summary em,.hist summary span:first-child{display:none}
}
/* ================= Управление: таблицы, панели, массовые действия (общие компоненты) ================= */
.toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:14px}.toolbar .find{margin:0;flex:1 1 260px}
.toolbar select{width:auto;min-width:180px}
.table{display:flex;flex-direction:column;gap:8px}
.trow{display:grid;grid-template-columns:auto 44px minmax(160px,1.4fr) 1.4fr .7fr auto;gap:14px;align-items:center;min-height:56px;background:var(--surface);border:1px solid var(--edge);border-radius:var(--r-lg);padding:8px 14px;transition:background var(--t-fast),border-color var(--t-fast)}
.trow:hover{background:var(--surface-2);border-color:var(--edge-2)}
.trow:has(.cb input:checked){background:var(--purple-soft);border-color:var(--purple-ink)}
.table:not(:has(.cb)) .trow{grid-template-columns:44px minmax(160px,1.4fr) 1.4fr .7fr auto}
.table.members .trow{grid-template-columns:44px 1fr .7fr auto}
.trow .who{min-width:0}.trow .who b{display:block;font-size:15px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.trow .who small{display:block;font-size:12px;color:var(--muted);font-weight:500}
.trow .grp{display:flex;flex-wrap:wrap;gap:6px}
.tag2{font-size:12px;font-weight:700;line-height:1.3;border-radius:var(--r-pill);padding:4px 10px;background:var(--surface-3);color:var(--ink-2)}
.acts2{display:flex;gap:6px;justify-content:flex-end}.acts2 form{display:contents}
.acts2 .btn,.pg-acts .btn,.ls-topic .btn,.btn.ls-save,.pcustom .btn{min-height:var(--ctl-h-sm);padding:4px 14px;font-size:var(--fs-sm)}
.cb{display:grid;place-items:center;width:22px;cursor:pointer}.cb input,.pick input{width:20px;height:20px;accent-color:var(--purple-ink);cursor:pointer}
/* массовые действия — тёмная полоса, появляется при выборе */
.bulkbar{position:sticky;bottom:16px;z-index:5;display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px;padding:8px 8px 8px 16px;border-radius:var(--r-lg);background:var(--toast-bg);color:var(--toast-ink);box-shadow:var(--sh-3);font-size:var(--fs-sm);font-weight:600}
.bulkbar[hidden]{display:none}.bulkbar>span{margin-right:auto}.bulkbar select{width:auto;min-width:160px}
.bulkbar .btn.ghost{background:transparent;color:inherit;border-color:rgba(255,255,255,.35)}
.bulkbar .btn.ghost:hover{background:rgba(255,255,255,.12)}
.bulkbar .btn.del{color:#FF8FA9}
.created{margin:14px 0;padding:16px 18px;border-radius:var(--r-lg);background:var(--ok-soft);display:flex;flex-direction:column;gap:10px;font-weight:500}
.created .cred{display:flex;gap:16px;flex-wrap:wrap;align-items:center}.created .cred b{font-size:18px;letter-spacing:.5px}
.gcards{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}
.gcard{display:flex;flex-direction:column;gap:6px;background:var(--surface);border:1px solid var(--edge);border-radius:var(--r-xl);padding:18px;transition:transform var(--t-base) var(--ease),box-shadow var(--t-base)}
.gcard:hover{transform:translateY(-2px);box-shadow:var(--sh-2)}
.gcard b{font-size:17px;font-weight:700}.gcard small{color:var(--muted);font-weight:500;font-size:13px}
.meta2{display:flex;gap:14px;margin-top:auto;padding-top:8px;font-size:13px;font-weight:600;color:var(--muted)}
.gcards .empty{grid-column:1/-1;margin-top:0}
.empty .btn{margin-left:auto}

/* Боковая панель (dialog.panel): справа на десктопе, снизу на телефоне */
dialog.panel{position:fixed;inset:0 0 0 auto;margin:0;height:100%;max-height:100dvh;width:min(460px,100vw);max-width:100vw;border:0;padding:0;background:var(--surface);color:var(--ink);box-shadow:var(--sh-3);overflow:auto}
dialog.panel[open]{animation:pin var(--t-slow) var(--ease)}
dialog.panel::backdrop{background:var(--scrim)}
@keyframes pin{from{transform:translateX(40px);opacity:0}to{transform:none;opacity:1}}
dialog.panel .form{padding:20px 24px 0;min-height:100%}
.phead{display:flex;align-items:center;gap:10px}.phead h2{font-size:var(--fs-h2);font-weight:700;margin-right:auto}
.x{width:44px;height:44px;flex:none;border-radius:var(--r-md);display:grid;place-items:center;font-size:16px;color:var(--ink-2);background:transparent}
.x:hover{background:var(--surface-3);color:var(--ink)}
.pfoot{position:sticky;bottom:0;margin-top:auto;padding:14px 0 20px;background:var(--surface);border-top:1px solid var(--edge)}.pfoot .btn{width:100%}
.passrow{display:flex;gap:8px}.passrow input{flex:1;min-width:0}.passrow .btn{flex:none}
.ro{font-size:16px;color:var(--ink);padding:6px 0}
dialog.panel.is-edit .new-only,dialog.panel:not(.is-edit) .edit-only{display:none}
.picklist{display:flex;flex-direction:column;gap:6px;max-height:55vh;overflow:auto}
.pick{display:flex;align-items:center;gap:12px;min-height:44px;padding:8px 12px;border-radius:var(--r-md);border:1px solid var(--edge);cursor:pointer}
.pick:has(input:checked){background:var(--purple-soft);border-color:var(--purple-ink)}
.pick b{display:block;font-weight:600;color:var(--ink)}.pick small{display:block;font-size:12px;color:var(--muted);font-weight:500}
dialog.panel .find{max-width:none;margin:0}

@media (max-width:760px){
  /* строка на телефоне: имя целиком сверху, группы и кнопки — второй строкой */
  .trow{grid-template-columns:auto 40px 1fr auto;gap:8px 10px;padding:10px 12px}
  .trow .cb{grid-area:1/1}.trow .av{grid-area:1/2;width:40px;height:40px}.trow .who{grid-area:1/3/2/5}
  .trow .grp{grid-area:2/2/3/4;align-self:center}.trow .acts2{grid-area:2/4}
  .table:not(:has(.cb)) .trow{grid-template-columns:40px 1fr auto}
  .table:not(:has(.cb)) .trow .av{grid-area:1/1}.table:not(:has(.cb)) .trow .who{grid-area:1/2/2/4}
  .table:not(:has(.cb)) .trow .grp{grid-area:2/1/3/3}.table:not(:has(.cb)) .trow .acts2{grid-area:2/3}
  .table.members .trow .who{grid-area:1/2}.table.members .trow .acts2{grid-area:1/3}
  .trow .who b{white-space:normal}
  .trow .hide-m{display:none}
  .acts2 .btn{padding:4px 10px}
  dialog.panel{inset:auto 0 0 0;width:100vw;height:auto;max-height:92dvh;border-radius:var(--r-xl) var(--r-xl) 0 0}
  @keyframes pin{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}
  .two{grid-template-columns:1fr}
  .bulkbar{bottom:calc(72px + env(safe-area-inset-bottom))}
}.alert.perr{margin:0}
.warn{color:var(--warn);font-weight:700}
/* Добавление учеников: кнопки, список, ссылка, выбор способа */
.addbar{display:flex;gap:8px;flex-wrap:wrap;margin-left:auto}.hwph .addbar .btn{margin-left:0}
.or{display:flex;align-items:center;gap:10px;color:var(--muted);font-weight:600;font-size:12px}.or::before,.or::after{content:"";flex:1;height:1px;background:var(--edge)}
.invite{display:flex;flex-direction:column;gap:6px;padding:14px;border:1px solid var(--edge);border-radius:var(--r-lg)}
.invite form{display:contents}
.linkbtn{align-self:flex-start;background:none;color:var(--purple-ink);font-weight:700;font-size:var(--fs-sm);text-decoration:underline;padding:6px 0}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.choices{display:flex;flex-direction:column;gap:10px}
.choices button{display:flex;align-items:center;gap:14px;text-align:left;padding:16px;border:1px solid var(--edge-2);border-radius:var(--r-lg);background:var(--surface);color:var(--ink);transition:background var(--t-fast),border-color var(--t-fast)}
.choices button:hover{border-color:var(--purple-ink);background:var(--purple-soft)}
.choices i{font-style:normal;font-size:24px;width:44px;height:44px;display:grid;place-items:center;border-radius:14px;background:var(--teal-soft);flex:none}
[data-theme="dark"] .choices i{color:var(--teal-ink)}
.choices b{display:block;font-weight:700;font-size:15px}.choices small{display:block;color:var(--muted);font-weight:500;font-size:var(--fs-sm);margin-top:2px}
.credlist{display:flex;flex-direction:column;gap:4px;max-height:320px;overflow:auto;background:var(--surface);border-radius:var(--r-md);padding:8px 12px}
.credlist div{display:grid;grid-template-columns:1.4fr 1fr .7fr;gap:10px;font-size:14px}.credlist b{letter-spacing:.3px}
.table.imp .trow{grid-template-columns:22px 1fr 1fr .9fr .7fr;padding:8px 12px}
.table.imp .trow input:not([type=checkbox]){padding:9px 10px;font-size:14px}
.table.imp .thead{background:none;border:0;min-height:0;padding:0 12px;font-size:var(--fs-sm);font-weight:600;color:var(--muted)}
.table.imp .trow.dupe{opacity:.75}.table.imp .trow .warn{grid-column:2/-1;font-size:12px}
.table.imp .trow:has(.cb input:not(:checked)) input:not([type=checkbox]){opacity:.5}
.imp-opts{margin-top:16px;display:flex;flex-direction:column;gap:14px;max-width:520px}
@media (max-width:760px){
  .addbar{width:100%}.addbar .btn{flex:1 1 auto}.addbar .btn.lg{flex-basis:100%}
  .table.imp .trow{grid-template-columns:22px 1fr 1fr;grid-template-areas:none}
  .table.imp .trow>*{grid-area:auto!important}
  .table.imp .thead{display:none}
  .credlist div{grid-template-columns:1fr 1fr;}.credlist span{grid-column:1/-1;font-weight:700}
}/* ================= Формы настроек тренажёров (мастер ДЗ, единые для всех дисциплин) ================= */
.sgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px 16px}
.sgrid .fld.wide{grid-column:1/-1}
.fld.row{flex-direction:row;align-items:center;justify-content:space-between;gap:12px}
.fld[hidden]{display:none}
.num{display:flex;align-items:center;gap:6px}.num input{text-align:center;min-width:0}
.num button{flex:none;width:44px;height:44px;border-radius:var(--r-md);background:var(--surface-3);color:var(--ink);font-weight:700;font-size:18px}
.num button:hover{background:var(--edge-2)}
.seg.n3{grid-template-columns:repeat(3,1fr)}.seg.n4{grid-template-columns:repeat(4,1fr)}
.seg.n3 span,.seg.n4 span{padding:4px}
.chips.sm .ch span{padding:4px 12px}
.tgl{position:relative;display:inline-block;width:48px;height:28px;flex:none}
.tgl input{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;cursor:pointer;z-index:1}
.tgl i{position:absolute;inset:0;border-radius:99px;background:var(--edge-strong);transition:background var(--t-fast)}
.tgl i::after{content:"";position:absolute;left:3px;top:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.2);transition:transform var(--t-fast)}
.tgl input:checked+i{background:#7444DB}.tgl input:checked+i::after{transform:translateX(20px)}
.tgl input:focus-visible+i{outline:3px solid var(--focus);outline-offset:2px}
details.more{margin-top:14px;border-top:1px dashed var(--edge-2);padding-top:10px}
details.more summary{cursor:pointer;font-weight:700;font-size:var(--fs-sm);color:var(--purple-ink);list-style:none;padding:8px 0}
details.more summary::before{content:"＋ "}details.more[open] summary::before{content:"－ "}
details.more .sgrid{margin-top:10px}
.rules{display:flex;flex-direction:column;gap:10px}
.rtheme{display:flex;flex-direction:column;gap:6px;padding:10px 12px;border:1px solid var(--edge-2);border-radius:var(--r-lg)}
.rtheme:has([data-theme-all]:checked){border-color:var(--purple-ink);background:var(--purple-soft)}
.rtheme .check span{font-weight:700;color:var(--ink)}
.rtheme:not(:has([data-theme-all]:checked)) .chips{display:none}
/* Карточки тренажёров в ручном режиме */
.cards{display:flex;flex-direction:column;gap:14px}
.tcard{border:1px solid var(--edge);border-radius:var(--r-xl);padding:16px 18px;background:var(--surface)}
.tcard-h{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}
.tcard-h .n,.pitem .n{width:32px;height:32px;border-radius:50%;background:var(--purple-soft);color:var(--purple-ink);display:grid;place-items:center;font-weight:800;font-size:14px;flex:none}
.tcard-h b{font-size:17px;font-weight:700;margin-right:auto}
.tcard-h .fld{flex-direction:row;align-items:center;gap:8px}.tcard-h .num input{width:64px}
.addtr{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.addtr button{min-height:var(--ctl-h-sm);border:1.5px dashed var(--purple-ink);border-radius:var(--r-pill);padding:4px 14px;font-weight:700;font-size:13px;color:var(--purple-ink);background:var(--surface)}
.addtr button:hover{background:var(--purple-soft)}
.cards.full~.addtr button{opacity:.4;pointer-events:none}
.cards.empty-list::before{content:attr(data-empty);display:block;color:var(--muted);font-weight:500;font-size:14px;padding:6px 0}
.wizard .step[hidden]{display:none}
.dates{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end}.dates .fld{flex:1 1 160px}
@media (max-width:760px){
  .sgrid{grid-template-columns:1fr 1fr;gap:12px}
  .sgrid .fld.row{grid-column:1/-1}
  .tcard{padding:14px}
}/* Мастер ДЗ: шаги появляются после выбора режима */
.wizard:not(:has(input[name="mode"]:checked)) .after-mode,
.wizard:not(:has(input[name="mode"][value="auto"]:checked)) .auto-only,
.wizard:not(:has(input[name="mode"][value="manual"]:checked)) .manual-only{display:none}
.step h2 small{font-size:13px;font-weight:500;margin-left:4px}
.dates .chips{flex:1 1 100%}
.plan{display:flex;flex-direction:column;gap:10px;margin-bottom:16px}
.pitem{display:flex;align-items:center;gap:14px;background:var(--surface);border:1px solid var(--edge);border-radius:var(--r-lg);padding:12px 16px}
.pitem>div{flex:1;min-width:0}.pitem b{display:block;font-weight:700}.pitem small{display:block;color:var(--muted);font-weight:500;font-size:13px}

/* ===== Совместимость: оболочка тренажёров (.tr-root — kit.js) в этом проходе НЕ перекрашивается.
   Общие классы (.btn, поля, .seg, .ch, .fld, .num, .hint, .alert) внутри неё выглядят как до перекраски кабинета.
   :where() не добавляет веса: правила тренажёров ниже по файлу по-прежнему сильнее. Перекраска оболочки — отдельная задача. ===== */
.tr-root,.prog-page,.fin-body{font-variant-numeric:normal;-webkit-font-smoothing:auto}
:where(.tr-root) .btn{min-height:0;gap:6px;border:0;border-radius:12px;padding:10px 16px;font-weight:800;font-size:13px;line-height:normal;box-shadow:none;transition:none}
:where(.tr-root) .btn:active{transform:none}
:where(.tr-root) .btn.pri{background:var(--lime);color:var(--on-pri);border:1.5px solid var(--lime-edge);box-shadow:none}
:where(.tr-root) .btn.pri:hover{background:var(--lime-hover)}
:where(.tr-root) .btn.ghost{background:var(--surface);border:1.5px solid var(--edge);color:inherit}
:where(.tr-root) .btn.ghost:hover{background:var(--surface)}
:where(.tr-root) .btn.lg{min-height:0;padding:15px;font-size:16px;border-radius:16px}
:where(.tr-root) .btn>.ic{width:1.25em;height:1.25em;stroke-width:1.9}
:where(.tr-root) :is(input,select,textarea){font-weight:600;font-size:15px;line-height:normal;border:1.5px solid var(--edge);border-radius:14px;padding:12px 14px}
:where(.tr-root) :is(input,select,textarea):hover{border-color:var(--edge)}
:where(.tr-root) :is(input,select,textarea):focus{border-color:var(--brand-b);box-shadow:0 0 0 4px rgba(44,194,184,.15)}
:where(.tr-root) :is(input[type=checkbox],input[type=radio]){accent-color:auto}
:where(.tr-root) .check{font-weight:600}
:where(.tr-root) .check input{width:20px;height:20px;margin-top:1px;accent-color:var(--brand-b)}
:where(.tr-root) .fld{font-weight:700;font-size:13px;color:var(--soft)}
:where(.tr-root) .fld small{font-size:smaller;font-weight:600;opacity:.8;color:inherit}
:where(.tr-root) .seg{gap:4px;background:var(--tint2);border-radius:16px}
:where(.tr-root) .seg span{display:block;min-height:0;padding:10px;border-radius:12px;font-weight:800;font-size:inherit;line-height:normal;color:var(--soft)}
:where(.tr-root) .seg input:checked+span{background:var(--g1);color:#fff;font-weight:800;box-shadow:none}
:where(.tr-root) .seg.n3 span,:where(.tr-root) .seg.n4 span{padding:9px 4px;font-size:13px}
:where(.tr-root) .ch span{display:inline-block;min-height:0;padding:10px 16px;border-radius:14px;border:1.5px solid var(--edge);font-weight:700;font-size:14px;line-height:normal;color:inherit}
:where(.tr-root) .ch span:hover{background:var(--surface)}
:where(.tr-root) .ch input:checked+span{background:var(--g1);border-color:transparent;color:#fff;font-weight:700}
:where(.tr-root) .ch input:checked+span::before{content:none}
:where(.tr-root) .chips.sm .ch span{padding:7px 11px;font-size:13px;border-radius:12px}
:where(.tr-root) .num button{width:40px;height:44px;border-radius:12px;background:var(--tint2);font-weight:800}
:where(.tr-root) .tgl i{background:var(--edge)}
:where(.tr-root) .tgl input:checked+i{background:var(--brand-b)}
:where(.tr-root) .hint{font-size:12.5px;color:var(--soft);background:var(--tint2);border-radius:14px}
:where(.tr-root) .alert{border-radius:14px;font-weight:700;font-size:inherit;border:1.5px solid #ffd0dd;background:#fff0f4;color:#c2264f}
:where(.tr-root) .muted{color:var(--soft)}
:where(.tr-root) :focus-visible{outline:revert;outline-offset:revert}
/* ================= Каркас новых тренажёров (kit.js) — единый экран для всех дисциплин ================= */
body.kit-page{min-height:100dvh;display:flex;flex-direction:column;background:var(--bg)}
#kit{flex:1;display:flex;padding:18px}
.kit-stage{flex:1;position:relative;display:grid;gap:14px}
.kit-stage.idle{place-items:center}
.kit-idle{text-align:center;max-width:520px;display:flex;flex-direction:column;align-items:center;gap:12px}
.kit-idle img{width:110px;height:110px;animation:fl 5s ease-in-out infinite}
.kit-idle h2{font-size:28px;font-weight:800}.kit-idle p{color:var(--soft);font-weight:600;line-height:1.5}
.kit-hw{background:var(--tint2);border-radius:14px;padding:8px 14px;color:var(--ink)!important}
.kit-players{display:flex;align-items:center;gap:10px;font-weight:800;color:var(--soft)}
.kit-players button{width:40px;height:40px;border-radius:12px;background:var(--tint2);font-size:20px;font-weight:800;color:var(--ink)}
.kit-players b{font-size:22px;color:var(--ink);min-width:24px}
.kit-stage.play.p2{grid-template-columns:1fr 1fr}.kit-stage.play.p3,.kit-stage.play.p4{grid-template-columns:repeat(2,1fr)}
.kit-stage.play.p5,.kit-stage.play.p6{grid-template-columns:repeat(3,1fr)}.kit-stage.play.p7,.kit-stage.play.p8{grid-template-columns:repeat(4,1fr)}
.kit-panel{position:relative;display:flex;flex-direction:column;gap:10px;background:var(--surface);border:1.5px solid var(--edge);border-radius:24px;padding:14px;min-width:0}
.kit-ph{font-weight:800;font-size:13px;color:var(--soft)}
.kit-bar{height:8px;border-radius:99px;background:var(--tint2);overflow:hidden}.kit-bar i{display:block;height:100%;width:0;background:var(--g1);transition:width .3s}
.kit-area{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:0}
.kit-fb{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:10px 14px;border-radius:16px;font-size:16px}
.kit-fb.ok{background:var(--tint1);color:#1d8a0a}.kit-fb.no{background:#fff0f4;color:#c2264f}
.kit-count{position:absolute;inset:0;display:grid;place-items:center;font-size:120px;font-weight:900;color:var(--brand-b);background:rgba(255,255,255,.75);border-radius:24px;z-index:5}
.kit-count.pulse{animation:b-pop .6s ease}
@keyframes b-pop{from{transform:scale(1.6);opacity:0}to{transform:scale(1);opacity:1}}
.kit-sum{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;width:100%}
.kit-sum div{background:var(--tint2);border-radius:18px;padding:14px;text-align:center}
.kit-sum b{display:block;font-size:30px;font-weight:900;background:var(--brand-text);-webkit-background-clip:text;background-clip:text;color:transparent}
.kit-sum span{font-size:13px;font-weight:700;color:var(--soft)}.kit-sum small{display:block;font-size:12px;color:var(--soft)}
.kit-again{grid-column:1/-1;display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap}
/* Таблицы Шульте */
.sch{display:flex;flex-direction:column;gap:10px;width:100%;max-width:min(620px,100cqw,calc(100cqh - 52px));margin:0 auto}   /* 52 = строка «Найди / время» + отступ */
.sch-head{display:flex;justify-content:space-between;align-items:center;gap:10px;font-weight:800;color:var(--soft)}
.sch-find b{font-size:26px;color:var(--ink);margin-left:4px}.sch-find b.red{color:#e5486f}
.sch-time{font-variant-numeric:tabular-nums;color:var(--ink)}.sch-err{color:#e5486f}
.sch-grid{position:relative;display:grid;gap:5px;aspect-ratio:1;width:100%}
.sch-cell{border-radius:10px;background:var(--surface);border:1.5px solid var(--edge);font-weight:800;color:var(--ink);font-size:clamp(14px,4.2vw,30px);display:grid;place-items:center;user-select:none;transition:transform .08s,background .15s}
.sch-cell:active{transform:scale(.94)}
.sch-grid.n7 .sch-cell,.sch-grid.n8 .sch-cell{font-size:clamp(12px,3.4vw,24px)}.sch-grid.n9 .sch-cell,.sch-grid.n10 .sch-cell{font-size:clamp(11px,2.8vw,20px);border-radius:7px}
.sch-cell.done{opacity:.25}.sch-cell.void{visibility:hidden}
.sch-cell.red{color:#e5486f}.sch-cell.black{color:#1b1f4b}
.sch-cell.fs1{font-size:.8em}.sch-cell.fs2{font-size:1em}.sch-cell.fs3{font-size:1.25em}.sch-cell.fs4{font-size:1.5em}
.sch-cell.fc1{color:#e5486f}.sch-cell.fc2{color:#2cc2b8}.sch-cell.fc3{color:#9b5cff}.sch-cell.fc4{color:#ff9a3c}.sch-cell.fc5{color:#1d8a0a}.sch-cell.fc6{color:#1b1f4b}
.sch-cell.bg1{background:#efffeb}.sch-cell.bg2{background:#e9fcff}.sch-cell.bg3{background:#f6edff}.sch-cell.bg4{background:#fff6e3}.sch-cell.bg5{background:#fff0f4}
.sch-cell.shake{animation:b-tilt .35s}
.sch-dot{position:absolute;left:50%;top:50%;width:7px;height:7px;margin:-3.5px 0 0 -3.5px;border-radius:50%;background:#e5486f;opacity:.6;pointer-events:none}
@keyframes b-tilt{30%{transform:rotate(-6deg)}60%{transform:rotate(4deg)}}
@media (max-width:760px){
  #kit{padding:10px}.kit-stage.play.p2,.kit-stage.play.p3,.kit-stage.play.p4{grid-template-columns:1fr}
  .kit-stage.play.p5,.kit-stage.play.p6,.kit-stage.play.p7,.kit-stage.play.p8{grid-template-columns:1fr 1fr}
  .kit-count{font-size:84px}
}.tc.soon{opacity:.55;cursor:default;filter:grayscale(.4)}.tc.soon:hover{transform:none;box-shadow:none}
/* Ридиум — чтение с пониманием */
.rd{width:100%;max-width:760px;margin:0 auto;display:flex;flex-direction:column;gap:14px}
.rd-intro{text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px;padding:20px}
.rd-intro h3{font-size:24px;font-weight:800}.rd-intro p{color:var(--soft);font-weight:700}
.rd-text{font-size:19px;line-height:1.7;font-weight:500;color:var(--ink);background:var(--surface);border:1.5px solid var(--edge);border-radius:20px;padding:20px 22px;max-height:calc(100cqh - 90px);overflow:auto;position:relative}
.rd-text p+p{margin-top:.6em}
.rd.size-small .rd-text{font-size:16px}.rd.size-large .rd-text{font-size:24px}
.rd-flash{display:grid;place-items:center;min-height:180px;font-size:34px;font-weight:800;text-align:center}
.rd.size-small .rd-flash{font-size:26px}.rd.size-large .rd-flash{font-size:44px}
.rd-vanish span{transition:opacity .25s}.rd-vanish span.gone{opacity:.08}
.rd-actions{display:flex;justify-content:center;gap:10px}
.fx-inverted{transform:rotate(180deg)}
.fx-strikethrough{text-decoration:line-through;text-decoration-thickness:2px}
.fx-cutBottom{-webkit-mask-image:repeating-linear-gradient(to bottom,#000 0,#000 .95em,transparent .95em,transparent 1.7em);mask-image:repeating-linear-gradient(to bottom,#000 0,#000 .95em,transparent .95em,transparent 1.7em)}
.fx-cutTop{-webkit-mask-image:repeating-linear-gradient(to bottom,transparent 0,transparent .75em,#000 .75em,#000 1.7em);mask-image:repeating-linear-gradient(to bottom,transparent 0,transparent .75em,#000 .75em,#000 1.7em)}
.fx-grid{background-image:repeating-linear-gradient(0deg,rgba(44,194,184,.35) 0 1px,transparent 1px 22px),repeating-linear-gradient(90deg,rgba(44,194,184,.35) 0 1px,transparent 1px 22px)}
/* Вопросы по тексту (reading-common.js): поле прокручивается внутри карточки игрока (ничего не уходит под плашку «Игрок»),
   вопрос — заголовок с номером, ответы — отдельные кнопки с кружком выбора под вопросом, «Проверить» всегда видна внизу поля. */
.rd:has(>.rd-q){max-width:860px;max-height:100cqh;min-height:0}
.rd-q{display:flex;flex-direction:column;gap:16px;min-height:0;max-height:100cqh;overflow-y:auto;overscroll-behavior:contain;padding:2px 6px 0 2px}
.rd-q h3{font-size:20px;font-weight:800;color:var(--ink)}
.rd-qi{flex:none;background:var(--surface);border:1px solid var(--edge-2);border-radius:20px;padding:16px 18px;display:flex;flex-direction:column;gap:12px}
.rd-qh{display:flex;align-items:flex-start;gap:12px}
.rd-qn{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--purple-soft);color:var(--purple-ink);font-size:15px;font-weight:800;font-variant-numeric:tabular-nums}
.rd-qh b{padding-top:3px;font-size:18px;font-weight:800;line-height:1.35;color:var(--ink)}
.rd-qi.ok{border-color:var(--ok);background:var(--ok-soft)}.rd-qi.no{border-color:var(--err);background:var(--err-soft)}
.rd-qi small{margin-left:42px;font-size:14px;font-weight:700;color:var(--ok)}
.rd-opts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-left:42px}
.rd-opt{display:flex;align-items:center;gap:10px;min-height:46px;border:1.5px solid var(--edge-2);border-radius:14px;padding:8px 14px;font-size:16px;font-weight:500;line-height:1.3;text-align:left;background:var(--surface);color:var(--ink-2);cursor:pointer;transition:background var(--t-fast),border-color var(--t-fast)}
.rd-opt i{flex:none;width:18px;height:18px;border-radius:50%;border:2px solid var(--edge-strong);background:var(--surface)}
.rd-opt:hover{border-color:var(--purple);background:var(--purple-soft)}
.rd-opt.on{border-color:var(--purple-ink);background:var(--purple-soft);color:var(--ink);font-weight:600}
.rd-opt.on i{border-color:var(--purple-ink);background:var(--purple-ink);box-shadow:inset 0 0 0 3px var(--surface)}
.rd-qi input{margin-left:42px;width:calc(100% - 42px)}
.rd-check{flex:none;position:sticky;bottom:0;z-index:1;margin-top:-4px;padding:12px 0 6px;background:linear-gradient(to bottom,transparent,var(--surface) 34%)}
.rd-check .btn{min-width:220px}
@media (max-width:760px){.rd-q{gap:12px}.rd-qi{padding:12px 14px}.rd-qh b{font-size:16px}.rd-opts,.rd-qi small{margin-left:0}.rd-qi input{margin-left:0;width:100%}.rd-check .btn{width:100%}}
@media (max-width:760px){.rd-opts{grid-template-columns:1fr}.rd-text{font-size:17px;padding:16px}}/* Чанкер */
.ch-text{max-height:calc(100cqh - 110px)}.ch-c{border-radius:8px;padding:1px 3px;transition:background .15s,color .15s}
.ch-c.on{background:var(--g1);color:#fff}
.ch-text.jumps .ch-c{position:relative}.ch-text.jumps .ch-c.on{background:none;color:var(--ink)}
.ch-m{position:absolute;left:50%;top:-6px;width:8px;height:8px;margin-left:-4px;border-radius:50%;background:#e5486f;opacity:0;transition:opacity .1s}
.ch-text.jumps .ch-c.on .ch-m{opacity:1}/* Саккады */
.sc{position:relative;width:100%;max-width:900px;aspect-ratio:16/9;max-height:calc(100cqh - 20px);margin:0 auto;background:var(--surface);border:1.5px solid var(--edge);border-radius:24px}
.sc-pt{position:absolute;width:52px;height:52px;margin:-26px 0 0 -26px;border-radius:50%;background:var(--tint2);border:2px solid var(--edge);font-weight:900;font-size:20px;color:var(--ink);transition:background .12s,transform .12s}
.sc.sz-small .sc-pt{width:38px;height:38px;margin:-19px 0 0 -19px;font-size:15px}.sc.sz-large .sc-pt{width:68px;height:68px;margin:-34px 0 0 -34px;font-size:26px}
.sc-pt.done{background:var(--tint1);border-color:#3fe21f;opacity:.5}
.sc-pt.on{background:var(--g1);border-color:transparent;transform:scale(1.15)}
.sc-pt.star{background:#ffd23f}.sc-pt.star::after{content:"★";color:#fff;font-size:1.2em}
.sc-pt.bad{animation:b-tilt .35s;border-color:#e5486f}
.sc-ask{display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:12px;font-size:18px}.sc-ask div{display:flex;gap:8px}/* Периферия */
.pf{position:relative;width:100%;max-width:960px;height:clamp(140px,calc(100cqh - 170px),360px);margin:0 auto;background:var(--surface);border:1.5px solid var(--edge);border-radius:24px}
.pf-dot{position:absolute;left:50%;top:50%;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%;background:#e5486f;box-shadow:0 0 0 4px #fff}
.pf-l,.pf-r{position:absolute;top:50%;transform:translate(-50%,-50%);font-weight:900;font-size:32px;color:var(--ink)}
.pf.sz-small .pf-l,.pf.sz-small .pf-r{font-size:22px}.pf.sz-large .pf-l,.pf.sz-large .pf-r{font-size:46px}
.pf-hint{position:absolute;left:0;right:0;bottom:14px;text-align:center;color:var(--soft);font-weight:700}
.pf-ask{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:12px}.pf-ask b{display:block;margin-bottom:6px}
.pf-o{padding:10px 14px;border-radius:14px;border:1.5px solid var(--edge);background:var(--surface);font-weight:800;font-size:18px;color:var(--ink)}
.pf-o.ok{background:var(--tint1);border-color:#3fe21f}.pf-o.no{background:#fff0f4;border-color:#e5486f}
.pf-circle{height:min(520px,calc(100cqh - 20px),100cqw);max-width:min(520px,calc(100cqh - 20px),100cqw);aspect-ratio:1}
.pf-c{position:absolute;width:64px;height:64px;margin:-32px 0 0 -32px;border-radius:50%;background:var(--tint2);border:2px solid var(--edge);font-size:30px;display:grid;place-items:center}
.pf-c small{position:absolute;right:-4px;top:-4px;background:var(--g1);color:#fff;border-radius:99px;font-size:12px;font-weight:900;min-width:20px;height:20px;display:grid;place-items:center}
.pf-c.done{opacity:.35}.pf-c.bad{animation:b-tilt .35s;border-color:#e5486f}.pf-c.ok{border-color:#3fe21f;background:var(--tint1)}
.pf-c svg{display:block;width:1.15em;height:1.15em}
.pf-c.blink{animation:pf-bl .25s 3 alternate;border-color:#ffd23f}
@keyframes pf-bl{to{transform:scale(1.25);background:#ffd23f}}
@container (max-width:480px){.pf-ask{grid-template-columns:1fr}}
@media (max-width:760px){.pf-c{width:48px;height:48px;margin:-24px 0 0 -24px;font-size:22px}}/* Пирамида слов */
.pm{position:relative;width:100%;max-width:960px;margin:0 auto;display:flex;flex-direction:column;align-items:center;gap:10px;padding:18px;background:var(--surface);border:1.5px solid var(--edge);border-radius:24px}
.pm.focus::before{content:"";position:absolute;left:50%;top:10px;bottom:10px;width:2px;margin-left:-1px;background:rgba(229,72,111,.35)}
.pm-row{display:flex;gap:18px;justify-content:center;font-weight:800;font-size:22px;color:var(--ink);opacity:0;transition:opacity .12s;min-height:1.4em}
.pm-row.on{opacity:1}
.pm.sz-small .pm-row{font-size:17px;gap:12px}.pm.sz-large .pm-row{font-size:30px;gap:24px}
.pf-ask.one{grid-template-columns:1fr}
@media (max-width:760px){.pm-row{font-size:15px;gap:8px}}/* Антиципация, Вордмикс, Лабиринт, Слово в шуме */
.an{width:100%;max-width:760px;margin:0 auto;display:flex;flex-direction:column;gap:16px;align-items:center}
.an-s{font-size:24px;font-weight:700;line-height:1.6;text-align:center;color:var(--ink)}.an.sz-small .an-s{font-size:19px}.an.sz-large .an-s{font-size:32px}
.an-gap{display:inline-block;min-width:80px;padding:0 10px;margin:0 4px;border-bottom:3px solid var(--brand-b);color:var(--brand-b);font-weight:900;letter-spacing:2px}
.an-gap.ok{color:#1d8a0a;border-color:#3fe21f}.an-gap.no{color:#c2264f;border-color:#e5486f}
.an-in{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}.an-in input{max-width:260px;font-size:20px;text-align:center}
.wm{width:100%;max-width:760px;margin:0 auto;display:flex;flex-direction:column;gap:14px;align-items:center}
.wm-top{display:flex;justify-content:space-between;align-items:center;width:100%;gap:10px;font-size:18px}.wm-timer{font-weight:800;color:#e5486f}
.wm-letters{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.wm-letters span{width:54px;height:60px;border-radius:14px;background:var(--g1);color:#fff;display:grid;place-items:center;font-size:30px;font-weight:900}
.wm-grid{display:flex;flex-direction:column;gap:4px}.wm-grid div{display:flex;gap:4px}
.wm-grid button,.lb-grid button{width:34px;height:38px;border-radius:9px;border:1.5px solid var(--edge);background:var(--surface);font-weight:800;font-size:17px;color:var(--ink)}
.wm-grid button.on,.lb-grid button.on{background:var(--tint2);border-color:var(--brand-b)}
.wm-grid button.ok,.lb-grid button.ok{background:var(--tint1);border-color:#3fe21f}
.lb{width:100%;max-width:640px;margin:0 auto;display:flex;flex-direction:column;gap:10px;align-items:center}
.lb-grid{display:grid;gap:4px;width:100%;aspect-ratio:1}.lb-grid button{width:auto;height:auto;font-size:clamp(13px,3.6vw,22px)}
.lb-grid button.start{outline:3px solid #ffd23f}.lb-grid button[data-n]::after{content:attr(data-n);position:absolute;font-size:9px;margin:-18px 0 0 18px;color:var(--soft)}
.nz{width:100%;max-width:760px;margin:0 auto;display:flex;flex-direction:column;gap:14px}
.nz-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.nz-grid button{padding:12px 6px;border-radius:14px;border:1.5px solid var(--edge);background:var(--surface);font-weight:800;font-size:18px;color:var(--ink)}
.nz.sz-small .nz-grid button{font-size:15px}.nz.sz-large .nz-grid button{font-size:24px}
.nz-grid button.ok{background:var(--tint1);border-color:#3fe21f}.nz-grid button.no{background:#fff0f4;border-color:#e5486f}
@media (max-width:760px){.nz-grid{grid-template-columns:repeat(3,1fr)}.wm-grid button{width:min(26px,7vw);height:32px;font-size:14px}.wm-grid div{gap:2px}.wm-letters span{width:42px;height:48px;font-size:24px}}.qopts{display:grid;grid-template-columns:1fr 1fr;gap:8px}.qopt{display:flex;align-items:center;gap:8px}.qopt input[type=radio]{width:20px;height:20px;flex:none;accent-color:#3fe21f}
@media (max-width:760px){.qopts{grid-template-columns:1fr}}
/* ===================== Оболочка тренажёра (kit.js) — вид по эталону тренажёров МА, свой код =====================
   Дисциплины не связаны: новые тренажёры НЕ подключают soroban.css МА. Меняется здесь — меняется у всех новых тренажёров. */
.tr-root{--tr-grad:linear-gradient(135deg,#00d4ff,#5dff00);--tr-pri:#41C8E5;--tr-pri-d:#3AB5D0;--tr-bg:#f8f9fa;--tr-text:#2c3e50;--tr-muted:#6c757d;--tr-light:#adb5bd;--tr-line:#e4e7eb;
  font-family:var(--font);color:var(--tr-text);background:var(--tr-bg);min-height:100dvh}
.tr-root *,.tr-root *::before,.tr-root *::after{box-sizing:border-box}
body.kit-page{background:#f8f9fa}
/* шапка */
/* Шапка «Светлая» (вариант A, решение владельца 19.11.2026; макет docs/design/style_prototype/trainers.html):
   та же белая поверхность с тонкой линией, что и шапка кабинета; логотип со стрелкой = «назад»; сводка — спокойная плашка,
   название акцентом; круглые кнопки с обводкой; салатовая — только «Старт». Цвета — токены: в тёмной теме шапка сама
   становится тёмно-синей, логотип — белым. Те же правила вида — у плеера программ (блок «Программы: плеер») и у МА (tr/ma/css). */
.tr-head{--h-bg:var(--surface);--h-ink:var(--ink);--h-mut:var(--muted);--h-line:var(--edge);--h-chip:var(--surface-3);--h-bd:var(--edge-2);--h-btn-ink:var(--ink-2);--h-hov:var(--surface-3);--h-acc:var(--purple-ink);
  position:sticky;top:0;z-index:100;height:60px;display:flex;align-items:center;gap:8px;padding:0 16px;background:var(--h-bg);color:var(--h-ink);border-bottom:1px solid var(--h-line);font-family:var(--font)}
.tr-logo{display:inline-flex;align-items:center;gap:4px;height:44px;padding:0 10px 0 4px;border-radius:var(--r-pill);flex:none;color:var(--h-mut)}
.tr-logo:hover{background:var(--h-hov)}
.tr-logo .ic{width:18px;height:18px;stroke-width:2.4}
.tr-logo img{height:28px;width:auto}
.tr-logo .d,.tr-logo .sym{display:none}
[data-theme="dark"] .tr-logo .l{display:none}[data-theme="dark"] .tr-logo .d{display:block}
.tr-sum{display:flex;align-items:center;gap:8px;min-width:0;height:36px;padding:0 14px;border-radius:var(--r-pill);background:var(--h-chip);font-size:13px;font-weight:600;color:var(--h-ink);white-space:nowrap;overflow:hidden}
.tr-sum span{overflow:hidden;text-overflow:ellipsis}
.tr-sum b{font-weight:800;color:var(--h-acc);overflow:hidden;text-overflow:ellipsis}
.tr-sum i{width:3px;height:3px;border-radius:50%;background:var(--h-mut);flex:none}
.tr-sp{flex:1 1 0;min-width:0}
.tr-acts{display:flex;align-items:center;gap:8px;flex:none}
.tr-ic{width:40px;height:40px;border:1.5px solid var(--h-bd);border-radius:50%;background:transparent;color:var(--h-btn-ink);cursor:pointer;display:inline-grid;place-items:center;flex:none;transition:background var(--t-fast)}
.tr-ic:hover,.tr-ic.active{background:var(--h-hov);color:var(--h-ink)}
.tr-ic>.ic{width:19px;height:19px;vertical-align:0}
.tr-go{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 16px;border:1.5px solid var(--lime-edge);border-radius:var(--r-pill);background:var(--lime);color:var(--on-pri);font-family:inherit;font-size:14px;font-weight:700;white-space:nowrap;cursor:pointer;flex:none}
.tr-go:hover{background:var(--lime-hover)}
.tr-go .ic{width:16px;height:16px;stroke-width:2.4}
/* уже 1020: вместо плашки — только название, логотип сжимается до знака */
@media (max-width:1020px){
  .tr-sum{background:none;padding:0 2px;font-size:14px}.tr-sum span,.tr-sum i{display:none}.tr-sum b{color:var(--h-ink)}
  .tr-logo .full{display:none!important}.tr-logo .sym{display:block}
}
@media (max-width:700px){
  .tr-head{height:52px;padding:0 10px;gap:6px}
  .tr-logo{height:40px;padding:0 6px 0 2px}.tr-logo .sym{height:26px}
  .tr-acts{gap:6px}.tr-ic{width:36px;height:36px}
  .tr-go{width:36px;height:36px;padding:0;justify-content:center;border-radius:50%}.tr-go span{display:none}
}
/* настройки — выпадают сверху, карточки с заголовками, «таблетки» */
.tr-set{position:fixed;top:60px;left:0;right:0;z-index:90;background:#fff;border-bottom:1px solid #dee2e6;padding:12px 16px 0;box-shadow:0 4px 12px rgba(0,0,0,.1);
  max-height:calc(100dvh - 64px);overflow-y:auto;overscroll-behavior:contain;transform:translateY(-100%);opacity:0;pointer-events:none;transition:transform .25s ease,opacity .25s ease}
.tr-set.open{transform:translateY(0);opacity:1;pointer-events:auto}
.tr-form{max-width:1200px;margin:0 auto}
.tr-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch}
.tr-cards>.tr-grp:only-child{grid-column:1/-1}
.tr-cards.mas{grid-auto-rows:1px;row-gap:0;align-items:start}   /* «кирпичики» — kit.js masonry() */
/* «Задание» — главная карточка, ей колонка шире (иначе поля встают в столбик и не влезают в экран) */
.tr-cards:has(>[data-main]:first-child){grid-template-columns:minmax(0,1.7fr) minmax(0,1fr)}
.tr-cards:has(>[data-main]:nth-child(2)){grid-template-columns:minmax(0,1fr) minmax(0,1.7fr)}
.tr-grp{border:1.5px solid var(--tr-line);border-radius:12px;padding:10px 12px;background:#fff}
.tr-grp h4{font-size:11px;font-weight:800;color:var(--tr-muted);text-transform:uppercase;letter-spacing:.6px;margin-bottom:8px}
.tr-form .sgrid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px 12px}.tr-form .fld{gap:4px}
.tr-form .fld>span:first-child{font-size:10px;font-weight:700;color:var(--tr-muted);text-transform:uppercase;letter-spacing:.5px}
.tr-form .fld>span:first-child small{text-transform:none;letter-spacing:0;font-weight:600}
.tr-form .seg{display:flex;flex-wrap:wrap;gap:3px;background:none;padding:0;border-radius:0}
.tr-form .seg span,.tr-pill{padding:6px 11px;min-height:30px;display:inline-flex;align-items:center;justify-content:center;background:#fff;border:1.5px solid var(--tr-line);border-radius:8px;font-size:12px;font-weight:600;color:#5a6472;cursor:pointer}
.tr-pill.n{width:30px;padding:0;font-weight:700}
.tr-form .seg input:checked+span,.tr-pill.active{background:var(--tr-pri);border-color:var(--tr-pri-d);color:#fff;box-shadow:0 2px 5px rgba(65,200,229,.25)}
.tr-form .seg label:hover input:not(:checked)+span,.tr-pill:not(.active):hover{background:#eef8fb;border-color:#b8e3ee}
.tr-pills{display:flex;flex-wrap:wrap;gap:3px}
.tr-form .chips.sm .ch span{padding:5px 10px;border-radius:8px;font-size:12px}
.tr-form .chips.sm .ch input:checked+span{background:var(--tr-pri);color:#fff}
.tr-form select,.tr-form input[type=number]{padding:7px 10px;font-size:13px;border-radius:8px}
.tr-form .num button{width:32px;height:34px;border-radius:8px;font-size:16px}
/* флажки — «таблетка с точкой», как «● Диктант» в МА (разметка та же, что в мастере ДЗ; меняется только вид) */
.tr-form .fld.row{display:inline-flex;flex-direction:row-reverse;justify-content:flex-end;justify-self:start;align-items:center;gap:7px;grid-column:auto;padding:6px 12px;min-height:30px;border:1.5px solid var(--tr-line);border-radius:8px;background:#fff;color:#5a6472;cursor:pointer}
.tr-form .fld.row>span:first-child{font-size:12px;font-weight:600;color:inherit;text-transform:none;letter-spacing:0}
.tr-form .fld.row .tgl{width:8px;height:8px}
.tr-form .fld.row .tgl i{border-radius:50%;background:#c5cdd6}.tr-form .fld.row .tgl i::after{display:none}
.tr-form .fld.row:has(input:checked){background:var(--tr-pri);border-color:var(--tr-pri-d);color:#fff;box-shadow:0 2px 5px rgba(65,200,229,.25)}
.tr-form .fld.row:has(input:checked) .tgl i{background:#fff}
.tr-form .fld.row:not(:has(input:checked)):hover{background:#eef8fb;border-color:#b8e3ee}
.tr-foot{position:sticky;bottom:0;display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:8px;padding:8px 0 10px;background:#fff}
.tr-more{display:none;margin-right:auto;font-size:12px;font-weight:700;color:var(--tr-pri-d)}.tr-set.more:not(.end) .tr-more{display:block}
/* настройки должны помещаться в экран: не влезли — kit.js включает плотный вид (tight) */
.tr-set.tight .tr-grp{padding:8px 10px}.tr-set.tight .tr-grp h4{margin-bottom:6px}.tr-set.tight .tr-cards{gap:8px}
.tr-set.tight .tr-form .sgrid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:6px 10px}
.tr-set.tight .tr-form .seg span,.tr-set.tight .tr-pill,.tr-set.tight .tr-form .fld.row{min-height:26px;padding:3px 9px;font-size:11.5px}
.tr-set.tight .tr-pill.n{width:26px;padding:0}
.tr-set.tight .tr-form select,.tr-set.tight .tr-form input[type=number]{padding:4px 8px}.tr-set.tight .tr-form .num button{height:28px;width:28px}
.tr-btn:where(:not(.tr-player *)){display:inline-flex;align-items:center;gap:6px;padding:10px 20px;border:none;border-radius:9999px;font:inherit;font-size:14px;font-weight:700;cursor:pointer;background:var(--tr-pri);color:#fff;transition:background .15s}
.tr-btn:where(:not(.tr-player *)):hover{background:var(--tr-pri-d)}
@media (max-width:700px){.tr-cards,.tr-cards:has(>[data-main]:first-child),.tr-cards:has(>[data-main]:nth-child(2)){grid-template-columns:1fr}.tr-set{padding:10px 12px 0;top:52px}}
/* игроки — карточки */
.tr-game{padding:16px}
/* Раскладка игроков: колонки и число рядов (--rows) по числу игроков и экрану. Карточки ближе к квадрату — поля
   (сетки, картинки) крупнее: на широком экране 4 игрока — в один ряд, а не 2×2 (низкие широкие карточки). */
.tr-players{display:grid;gap:12px;--rows:1}
.tr-players[data-count="1"]{grid-template-columns:1fr}.tr-players[data-count="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}
.tr-players[data-count="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}
.tr-players[data-count="4"]{grid-template-columns:repeat(2,minmax(0,1fr));--rows:2}
.tr-players[data-count="5"],.tr-players[data-count="6"]{grid-template-columns:repeat(3,minmax(0,1fr));--rows:2}
.tr-players[data-count="7"],.tr-players[data-count="8"]{grid-template-columns:repeat(4,minmax(0,1fr));--rows:2}
@media (min-width:901px) and (min-aspect-ratio:4/3){.tr-players[data-count="4"]{grid-template-columns:repeat(4,minmax(0,1fr));--rows:1}}
/* уже 900px (планшет книжкой, узкое окно): по двое в ряд, 7–8 — по трое */
@media (max-width:900px){
  .tr-game{padding:10px}
  .tr-players[data-count="3"],.tr-players[data-count="4"]{grid-template-columns:repeat(2,minmax(0,1fr));--rows:2}
  .tr-players[data-count="5"],.tr-players[data-count="6"]{grid-template-columns:repeat(2,minmax(0,1fr));--rows:3}
  .tr-players[data-count="7"],.tr-players[data-count="8"]{grid-template-columns:repeat(3,minmax(0,1fr));--rows:3}
}
@media (max-width:599px){.tr-players{grid-template-columns:1fr!important}}
/* Карточка игрока — ровно под экран (шапка 60 + отступы 32), по числу рядов: задание внутри меряет себя по карточке.
   Длинный итог прокручивается внутри карточки, страница — нет. На телефоне несколько игроков — по полэкрана, листаются. */
.tr-card{background:var(--surface);border:1.5px solid var(--edge-2);border-radius:20px;overflow:hidden;display:flex;flex-direction:column;container-type:inline-size;
  height:calc((100dvh - 92px - (var(--rows) - 1) * 12px) / var(--rows))}
@media (max-width:599px){.tr-players:not([data-count="1"]) .tr-card{height:max(300px,calc((100dvh - 104px) / 2))}}
.tr-card-head{display:flex;flex-direction:column;gap:4px;padding:8px 14px;background:var(--surface-2);color:var(--ink);border-bottom:1px solid var(--edge);font-family:var(--font)}
.tr-card-head .top,.tr-card-head .bot{display:flex;align-items:center;justify-content:space-between;gap:8px}
.tr-name{font-size:14px;font-weight:800}.tr-round{font-size:12px;font-weight:600;color:var(--muted)}
.tr-count{background:var(--surface-3);color:var(--ink);padding:4px 12px;border-radius:9999px;font-size:13px;font-weight:800;font-variant-numeric:tabular-nums}
.tr-card .kit-bar{height:3px;border-radius:0;background:transparent}.tr-card .kit-bar i{background:var(--bar);border-radius:0 3px 3px 0}
.tr-body{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:12px;padding:14px 12px;min-height:0;position:relative;overflow-y:auto}
/* область задания — контейнер размеров: упражнения задают себе размер в cqw/cqh (доля места в карточке) */
.tr-body .kit-area{flex:1;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:0;container-type:size}
.tr-num{font-weight:800;line-height:1;text-align:center;font-variant-numeric:tabular-nums}
.tr-num.idle{color:var(--tr-light);font-size:clamp(2rem,6vw,4rem)}
.tr-num.countdown{color:var(--tr-pri);font-size:clamp(3rem,45cqw,16rem);animation:tr-pulse .8s ease}
@keyframes tr-pulse{0%{transform:scale(.5);opacity:0}50%{transform:scale(1.1)}100%{transform:scale(1);opacity:1}}
.tr-goal{max-width:520px;text-align:center;color:var(--tr-muted);font-weight:600;line-height:1.5}
.tr-hw{background:#eef8fb;border-radius:12px;padding:8px 12px;color:var(--tr-text)}
.tr-body .kit-fb{width:100%;max-width:760px;margin:0 auto}
.tr-body .kit-again{display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap;width:100%}

/* ===== Аудит тренажёров (/dev/audit) ===== */
.au-page{background:var(--bg,#f6f8fb)}
.au{max-width:1280px;margin:0 auto;padding:20px 16px}
.au-head h1{font-size:24px;font-weight:800;margin-bottom:6px}.au-head p{color:var(--soft);max-width:900px;margin-bottom:12px}
.au-acts{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;margin-bottom:14px}
.au-chk{display:inline-flex;align-items:center;gap:6px;font-weight:700}.au-sum{font-weight:800;color:var(--ink)}
.au-stage{height:0;overflow:visible;position:relative}
.au-stage iframe{position:fixed;right:16px;bottom:16px;border:2px solid var(--edge);border-radius:12px;background:#fff;transform:scale(var(--au-scale,.4));transform-origin:right bottom;box-shadow:0 8px 30px rgba(0,0,0,.15);z-index:5}
.au-tbl{width:100%;border-collapse:collapse;background:var(--surface);border-radius:12px;overflow:hidden;font-size:13px}
.au-tbl th,.au-tbl td{padding:8px 10px;border-bottom:1px solid var(--edge);text-align:left;vertical-align:top}
.au-tbl th{font-size:12px;color:var(--soft)}
.au-tbl tr.bad td{background:var(--err-soft)}.au-tbl tr.bad td:last-child b{color:var(--err)}.au-tbl tr.ok td:last-child b{color:var(--ok)}
.au-tbl details summary{cursor:pointer;color:var(--err);font-weight:800}
/* /dev/prog-audit: фильтр «только проблемы», выбор тренажёра, счётчики по проверкам */
.au-tbl.au-onlybad tr.ok{display:none}
.au-sel{width:auto;padding:6px 10px;font-size:13px;border-radius:10px}
.au-counts span{padding:4px 10px;border-radius:99px;background:var(--tint2);font-weight:700;font-size:13px}.au-counts span.bad{background:var(--err-soft);color:var(--err)}

/* ===== Отчёт роста по скорочтению (страница ДЗ, карточка ученика) ===== */
.rrep{margin:-4px 0 6px;padding:12px 14px;border-radius:18px;background:var(--surface);border:1.5px dashed var(--edge);display:flex;flex-direction:column;gap:10px;width:100%}
.rows li .rrep{margin-top:8px}
.rnums{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.rnums>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.rnums small{font-size:12px;font-weight:800;color:var(--soft)}
.rnums b{font-size:18px;font-weight:800;color:var(--ink)}.rnums span{font-size:12px;font-weight:600;color:var(--soft)}
.rnums .tr-up,.rnums .c-ok{color:var(--ok)}.rnums .tr-down,.rnums .c-bad{color:var(--err)}.rnums .c-mid{color:var(--warn)}
.rflags{display:flex;flex-wrap:wrap;gap:6px}
.rflag{font-size:12px;font-weight:700;padding:4px 10px;border-radius:99px;background:var(--warn-soft);color:var(--warn)}.rflag.skim,.rflag.suspect,.rflag.floor{background:var(--err-soft);color:var(--err)}
.rparent{font-size:13px;color:var(--soft);font-weight:600}.rparent q{color:var(--ink);font-style:normal}.rparent q::before,.rparent q::after{content:"«"}.rparent q::after{content:"»"}

/* ===== Статистика за период: переключатель, блок дисциплины (договор Modules\Stats\Blocks) ===== */
.pbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin-bottom:14px}.pbar .dtabs{margin:0}.pbar>p{flex-basis:100%;margin:0}
.pcustom{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.pcustom label{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:var(--soft)}
.pcustom input[type=date]{width:auto;padding:7px 10px;font-size:13px}.pcustom .btn.on{border-color:var(--purple-ink);color:var(--purple-ink);background:var(--purple-soft)}
.dblock{display:flex;flex-direction:column;gap:10px}
.dbh{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.dbh h2{margin:0}
.dstep{font-size:12px;font-weight:800;padding:4px 10px;border-radius:99px;background:var(--info-soft);color:var(--info)}
.dgrowth{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border-radius:16px;background:var(--tint1)}
.dgrowth small{font-size:12px;font-weight:800;color:var(--soft)}
.dgrowth b{font-size:24px;font-weight:900;color:var(--ink)}.dgrowth span{font-size:12px;font-weight:600;color:var(--soft)}
.dgrowth .tr-up{color:var(--ok)}.dgrowth .tr-down{color:var(--err)}
.hwrap>summary{list-style:none;cursor:pointer}.hwrap>summary::-webkit-details-marker{display:none}.hwrap>summary h2{display:inline;margin:0}
.hwrap>summary::after{content:" ▾";color:var(--soft)}.hwrap[open]>summary::after{content:" ▴"}.hwrap[open]>summary{margin-bottom:10px}

/* ===== «Статистика»: дисциплина → группа → ученики; итог периода — сначала успехи ===== */
.dtabs.dsc{margin-bottom:10px}
.sgrp{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin-bottom:10px}.sgrp .dtabs{margin:0}.sgrp .find{flex:1;min-width:200px;margin:0}
.swins{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px}
.swins .win{background:var(--surface);border:1px solid var(--edge);border-radius:18px;padding:12px 14px;display:flex;flex-direction:column;gap:2px}
.swins .win b{font-size:26px;font-weight:800;line-height:1.2;color:var(--ink)}
.swins .win span{font-size:12px;font-weight:700;color:var(--soft)}
.swins .win.need b{color:var(--err)}
.slist{display:flex;flex-direction:column;gap:8px}
.srow{display:grid;grid-template-columns:44px minmax(180px,1.6fr) 1fr .8fr .6fr minmax(200px,1.8fr);gap:12px;align-items:center;background:var(--surface);border:1px solid var(--edge);border-radius:18px;padding:10px 14px;color:inherit;text-decoration:none;transition:border-color .15s}
.srow:hover{border-color:var(--edge-2);background:var(--surface-2)}.srow.warn{border-left:4px solid #E0A100}

.srow .who{min-width:0}.srow .who b{display:block;font-weight:800}.srow .who small{display:block;font-size:12px;color:var(--soft);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.srow .sg{display:flex;flex-direction:column;gap:1px;min-width:0}.srow .sg small{font-size:12px;font-weight:800;color:var(--soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.srow .sg b{font-size:16px;font-weight:800}.srow .sg em{font-style:normal;font-size:12px;color:var(--soft)}
.srow .tr-up,.srow .c-ok{color:var(--ok)}.srow .tr-down,.srow .c-bad{color:var(--err)}.srow .c-mid{color:var(--warn)}
.srow .sf{display:flex;flex-direction:column;gap:3px;min-width:0}.srow .sf .ok{font-size:12px;font-weight:700;color:var(--ok)}
@media (max-width:900px){
  .swins{grid-template-columns:repeat(2,1fr)}
  .srow{grid-template-columns:40px 1fr 1fr 1fr;gap:8px 10px}
  .srow .av{grid-row:1/3;width:40px;height:40px}.srow .who{grid-column:2/5}
  .srow .sg:nth-of-type(1){grid-column:2}.srow .sf{grid-column:1/-1}
}
/* строка фильтров статистики: дисциплина · группа · поиск · период (даты — только при «Свои даты») */
.sfilters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 12px;margin-bottom:14px;padding:12px 14px;border-radius:20px;background:var(--surface);border:1px solid var(--edge)}
.sfilters .sfl{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:800;color:var(--soft)}
.sfilters .sfl.grow{flex:1;min-width:160px}
.sfilters select,.sfilters input{width:auto;min-width:150px;padding:9px 12px;font-size:14px;border-radius:12px;text-transform:none;letter-spacing:0}
.sfilters .sfl.grow input{width:100%}
.sfdates{display:flex;gap:10px 12px;flex-wrap:wrap}.sfdates[hidden]{display:none}
@media (max-width:700px){.sfilters .sfl{flex:1 1 45%}.sfilters select,.sfilters input{min-width:0;width:100%}}

/* ===== Отчёт родителю: лист A4 (экран — с кнопками; печать — только лист) ===== */
.rp-open{margin:0 0 12px}
.rp-page{background:var(--bg,#f6f8fb);padding:16px}
.rp-tools{max-width:794px;margin:0 auto 14px;display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.rp-note{flex-basis:100%;display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:700;color:var(--soft)}.rp-note input{width:100%}
.rp-sheet{max-width:794px;margin:0 auto;background:#fff;color:#1b1f4b;border-radius:18px;padding:36px 40px;box-shadow:0 6px 30px rgba(20,18,60,.1)}
.rp-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-bottom:14px;border-bottom:3px solid transparent;border-image:linear-gradient(90deg,#00d4ff,#5dff00) 1}
.rp-brand{display:flex;align-items:center;gap:10px;font-weight:900;font-size:18px}.rp-brand img{height:44px;width:auto}
.rp-brand b{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#00d4ff,#5dff00)}
.rp-per{text-align:right;font-weight:800}.rp-per small{font-weight:600;color:#6b7290}
.rp-sheet h1{font-size:30px;font-weight:900;margin:20px 0 4px}
.rp-days{color:#6b7290;font-weight:700;margin-bottom:12px}
.rp-disc{padding:16px 0;border-bottom:1px solid #eceaf5}.rp-disc h2{font-size:18px;font-weight:800;margin-bottom:8px}
.rp-growth{display:inline-flex;flex-direction:column;padding:10px 16px;border-radius:14px;background:#efffeb;margin-bottom:8px}
.rp-growth small{font-size:11px;font-weight:800;text-transform:uppercase;color:#6b7290}.rp-growth b{font-size:26px;font-weight:900;color:#1d8a0a}
.rp-phrase{font-size:16px;line-height:1.55}.rp-done{font-weight:800;color:#1d8a0a;margin-top:6px}
.rp-teacher{margin-top:18px;padding:12px 16px;border-radius:14px;background:#f6edff;font-size:15px;font-style:italic}
.rp-foot{margin-top:22px;font-size:12px;color:#6b7290}
@media print{
  @page{size:A4;margin:14mm}
  .rp-page{background:#fff;padding:0}.no-print,.rp-tools{display:none!important}
  .rp-sheet{box-shadow:none;border-radius:0;padding:0;max-width:none}
  .rp-head,.rp-growth,.rp-brand b,.rp-teacher{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}

.rp-ai{margin-top:16px;padding:14px 16px;border-radius:14px;background:#e9fcff}.rp-ai h2{font-size:16px;font-weight:800;margin-bottom:6px}.rp-ai p{font-size:15px;line-height:1.5}
.rp-ai-empty{border:1.5px dashed #9fdcec;background:transparent;color:#6b7290}
@media print{.rp-ai{-webkit-print-color-adjust:exact;print-color-adjust:exact}}

/* ===== Память (memory-common.js и тренажёры) ===== */
/* Задание меряет себя по .kit-area (контейнер размеров): только cqw/cqh, без vh — помещается в карточку на ноутбуке 1366×657,
   планшетах 1024×700 и 768×950, телефоне 375×812. Кнопки для пальца — не меньше 44px. */
.mk{width:100%;height:100%;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(6px,2.2cqh,14px)}
.mk.mk-off{opacity:.5;pointer-events:none}
.mk-lab{flex:none;font-weight:800;font-size:clamp(14px,4cqh,20px);line-height:1.2;color:var(--tr-muted);text-align:center}
.mk-stage{flex:0 1 auto;min-height:0;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:clamp(6px,2cqh,14px)}
.mk-shake{animation:b-tilt .35s}
/* показ ряда: целиком (шрифт задаёт mem-row.js в cqw/cqh) и по одному */
.mk-row{display:flex;flex-wrap:wrap;justify-content:center;align-content:center;gap:.22em .3em;max-width:100%;font-weight:900;line-height:1.15;color:var(--tr-text)}
.mk-it{padding:.04em .28em;border-radius:.2em;background:#eef8fb;font-variant-numeric:tabular-nums;white-space:nowrap}
.mk-one{font-weight:900;line-height:1.1;color:var(--tr-text);font-variant-numeric:tabular-nums;white-space:nowrap}
.mk-one.blank{visibility:hidden}
.mk-pos{font-size:clamp(12px,3cqh,15px);font-weight:700;color:var(--tr-light)}
/* слоты: заполняются слева направо, заполненный слот очищается нажатием */
.mk-slots{--n:5;--g:6px;flex:none;display:flex;flex-wrap:wrap;justify-content:center;gap:var(--g);max-width:100%}
.mk-slot{position:relative;flex:none;min-width:clamp(34px,calc((100cqw - (var(--n) - 1) * var(--g)) / var(--n)),72px);height:clamp(40px,14cqh,80px);padding:0 4px;
  border:2px dashed #b8e3ee;border-radius:12px;background:#fff;color:var(--tr-text);display:grid;place-items:center;font:inherit;font-weight:900;font-size:clamp(18px,7.5cqh,40px);
  line-height:1;font-variant-numeric:tabular-nums;cursor:pointer;user-select:none;-webkit-user-select:none;touch-action:manipulation}
.mk-sn{position:absolute;top:2px;left:5px;font-size:10px;font-weight:700;line-height:1;color:var(--tr-light)}
.mk-slot.on{border-style:solid;border-color:var(--tr-pri);background:#eef8fb}
.mk-slot.part{color:var(--tr-muted)}
.mk-slot.cur{border-color:var(--tr-pri);box-shadow:0 0 0 3px rgba(65,200,229,.25)}
.mk-slots.locked .mk-slot{cursor:default}
.mk-slot.ok{border:2px solid #3fe21f;background:var(--tint1);color:#1d8a0a}
.mk-slot.no{border:2px solid #e5486f;background:#fff0f4;color:#c2264f}
.mk-slots.wide .mk-slot{min-width:clamp(44px,calc((100cqw - (var(--n) - 1) * var(--g)) / var(--n)),84px)}
.mk-slots.words .mk-slot{width:clamp(64px,calc((100cqw - 3 * var(--g)) / 4),120px);min-width:0;height:clamp(40px,8cqh,56px);padding:0 4px;font-size:clamp(14px,min(4cqh,5cqw),22px);font-weight:800}
.mk-slots.words .mk-sv{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* экранные кнопки: цифры 5×2, буквы набора, слова */
.mk-pad{--kg:clamp(5px,1.4cqh,10px);flex:none;display:flex;flex-wrap:wrap;justify-content:center;gap:var(--kg);max-width:100%}
.mk-key{flex:none;min-width:var(--kw,44px);height:var(--kh,44px);padding:0 8px;border:1.5px solid var(--tr-line);border-radius:12px;background:#fff;color:var(--tr-text);
  font:inherit;font-weight:800;font-size:var(--kf,20px);line-height:1;cursor:pointer;box-shadow:0 2px 0 var(--tr-line);transition:background .12s,transform .06s;
  user-select:none;-webkit-user-select:none;touch-action:manipulation}
.mk-key:hover{background:#eef8fb;border-color:#b8e3ee}
.mk-key:active{transform:translateY(1px);box-shadow:none}
.mk-key:disabled{opacity:.5;cursor:default}
.mk-pad.digits{--kw:clamp(44px,calc((100cqw - 4 * var(--kg)) / 5),86px);--kh:clamp(44px,14cqh,72px);--kf:clamp(20px,7cqh,36px);width:calc(5 * var(--kw) + 4 * var(--kg))}
.mk-pad.letters{--kw:clamp(44px,calc((100cqw - 5 * var(--kg)) / 6),60px);--kh:clamp(44px,9.5cqh,58px);--kf:clamp(18px,5cqh,28px);max-width:calc(9 * var(--kw) + 8 * var(--kg))}
.mk-pad.words{--kw:64px;--kh:clamp(44px,8cqh,54px);--kf:clamp(15px,4.2cqh,20px);max-width:min(100%,720px)}
.mk-pad.words .mk-key{padding:0 14px;font-weight:700}
.mk-acts{flex:none;display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.mk .tr-btn{min-height:44px;padding:10px 22px;font-size:15px}
.mk .tr-btn:disabled{opacity:.45;cursor:default;background:var(--tr-pri)}
.mk .tr-btn.mk-alt{background:#fff;color:var(--tr-pri-d);border:2px solid var(--tr-pri)}
.mk .tr-btn.mk-alt:hover,.mk .tr-btn.mk-alt:disabled{background:#fff}
.mk-right{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px;font-weight:700;color:var(--tr-muted);font-size:clamp(14px,3.8cqh,18px)}
.mk-right b{padding:2px 9px;border-radius:8px;background:var(--tint1);color:#1d8a0a;font-weight:900;font-size:1.15em}
/* ответ с клавиатуры */
.mk-type{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;width:100%;max-width:560px}
.mk-type input{flex:1 1 220px;min-width:0;min-height:52px;padding:8px 14px;border:2px solid var(--tr-line);border-radius:12px;background:#fff;color:var(--tr-text);
  font:inherit;font-size:clamp(18px,5cqh,26px);font-weight:800;text-align:center;letter-spacing:.04em}
.mk-type input:focus{outline:none;border-color:var(--tr-pri);box-shadow:0 0 0 3px rgba(65,200,229,.25)}
.mk-hint{font-size:13px;font-weight:600;color:var(--tr-muted)}
/* сетка (Матрица памяти): квадрат по меньшей стороне места, --res — px под подпись и кнопку */
.mk-grid{--res:110px;flex:none;display:grid;gap:clamp(3px,1.4cqmin,8px);width:min(100cqw,calc(100cqh - var(--res)),560px);aspect-ratio:1}
.mk-cell{min-width:0;min-height:0;border:2px solid var(--tr-line);border-radius:clamp(5px,1.6cqmin,14px);background:#fff;cursor:pointer;
  transition:background .12s,border-color .12s,transform .08s;touch-action:manipulation}
.mk-cell:hover{border-color:#b8e3ee}
.mk-cell:active{transform:scale(.95)}
.mk-grid.mk-wait .mk-cell{cursor:default;pointer-events:none}
.mk-cell.lit{background:var(--tr-pri);border-color:var(--tr-pri-d)}
.mk-cell.sel{background:#ffd23f;border-color:#e0b000}
.mk-cell.ok{background:#3fe21f;border-color:#2bb90f}
.mk-cell.no{background:#e5486f;border-color:#c2264f}
.mk-cell.miss{background:#eef8fb;border:3px dashed var(--tr-pri-d)}
/* картинки (Запомни порядок и другие картинные): плитка --t — по месту в карточке; --pr в строке, --rows строк, --res px под подписи и кнопки */
.mk-ord,.mk-fit{--pr:5;--rows:1;--res:56px;--t:min(calc((100cqw - (var(--pr) - 1) * 8px) / var(--pr)),calc((100cqh - var(--res)) / var(--rows) - 8px),150px)}
.mk-tiles,.mk-slots.pics{--g:8px;flex:none;display:flex;flex-wrap:wrap;justify-content:center;gap:8px;max-width:calc(var(--pr) * var(--t) + (var(--pr) - 1) * 8px)}
.mk-tile{position:relative;flex:none;width:var(--t);height:var(--t);display:grid;place-items:center;padding:calc(var(--t) * .07);border:2px solid var(--tr-line);
  border-radius:clamp(8px,14%,16px);background:#fff;font:inherit;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.mk-tile img{width:100%;height:100%;object-fit:contain;pointer-events:none;-webkit-user-drag:none}
button.mk-tile{cursor:grab;touch-action:none;transition:transform .1s,box-shadow .1s,border-color .1s}
button.mk-tile:disabled{cursor:default}
.mk-tile.pick{border-color:#ffb23f;box-shadow:0 0 0 3px rgba(255,178,63,.45);transform:translateY(-3px)}
.mk-tile.lift{opacity:.3}
.mk-ghost{position:fixed;left:0;top:0;z-index:1000;margin:0;padding:6px;pointer-events:none;box-shadow:0 12px 26px rgba(0,0,0,.22);transform:scale(1.06)}
.mk-no,.mk-slots.pics .mk-sn{position:absolute;top:3px;left:3px;z-index:2;min-width:20px;height:20px;padding:0 5px;border-radius:99px;background:var(--tr-pri);color:#fff;
  font-size:12px;font-weight:800;line-height:1;display:grid;place-items:center}
.mk-slots.pics .mk-slot{width:var(--t);height:var(--t);min-width:0;padding:0;border-radius:clamp(8px,14%,16px)}
.mk-slots.pics .mk-sv{position:absolute;inset:0;display:grid;place-items:center}
.mk-slots.pics .mk-slot .mk-tile{width:100%;height:100%;border:0;background:transparent}
.mk-spot{flex:none;width:var(--t);height:var(--t);border:2px dashed var(--tr-line);border-radius:clamp(8px,14%,16px);display:grid;place-items:center}
.mk-spot:has(.mk-tile){border-color:transparent}
.mk-spot .mk-tile{width:100%;height:100%}
.mk-tray.was{opacity:.9}
.mk [data-drop].mk-over,.mk-slots.pics .mk-slot.mk-over{border-color:#ffb23f;border-style:solid;background:#fff6e3}
/* плитка-кнопка «выбрать» (Что изменилось?): отмечена → проверка: верно / лишняя / пропущена (пунктир); бледная — пропавшая на своём месте */
button.mk-tile.mk-choose{cursor:pointer;touch-action:manipulation}
button.mk-tile.mk-choose:hover:not(:disabled){border-color:#b8e3ee}
.mk-tile.sel{border-color:#e0b000;background:#fff6d0;box-shadow:0 0 0 3px rgba(255,210,63,.5)}
.mk-tile.ok{border-color:#3fe21f;background:var(--tint1)}
.mk-tile.no{border-color:#e5486f;background:#fff0f4}
.mk-tile.miss{border:3px dashed var(--tr-pri-d);background:#eef8fb}
.mk-tile.pale{opacity:.45}
.mk-opts{padding-top:10px;margin-top:4px;border-top:2px dashed #cfe8ef}   /* варианты ответа — отдельно от поля, чтобы не путать */

/* Цветовая цепочка: плитки --cc×2 (цвет + значок), под ними — ход ответа плиточками; --res px под подпись, ход и «Правильно» */
.mk-cc{--cc:2;--cr:2;--res:190px}
.mk-ccg{flex:none;display:grid;grid-template-columns:repeat(var(--cc),minmax(0,1fr));grid-template-rows:repeat(var(--cr),minmax(0,1fr));gap:clamp(6px,2cqmin,14px);
  width:min(100cqw,calc((100cqh - var(--res)) * var(--cc) / var(--cr)),calc(var(--cc) * 170px));aspect-ratio:var(--cc) / var(--cr)}
.mk-ccb{min-width:0;min-height:0;padding:0;border:0;border-radius:clamp(10px,3cqmin,22px);background:var(--c);display:grid;place-items:center;cursor:pointer;opacity:.5;
  box-shadow:inset 0 -4px 0 rgba(0,0,0,.18);transition:opacity .08s,transform .08s,box-shadow .08s;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.mk-ccb svg{width:46%;height:46%;pointer-events:none}
.mk-ccb.lit{opacity:1;transform:scale(1.05);box-shadow:0 0 0 4px #fff,0 0 22px 6px var(--c)}
.mk-ccg.mk-wait .mk-ccb{cursor:default;pointer-events:none}
.mk-ccp{flex:none;display:flex;flex-wrap:wrap;justify-content:center;gap:4px;max-width:100%}
.mk-ccd{--s:clamp(16px,min(5cqh,6cqw),30px);flex:none;width:var(--s);height:var(--s);border-radius:7px;border:2px dashed #b8e3ee;background:#fff;display:grid;place-items:center}
.mk-ccd.on{border:0;background:var(--c)}
.mk-ccd svg{width:64%;height:64%}
.mk-ccd.ok{box-shadow:0 0 0 2px #3fe21f}
.mk-ccd.no{box-shadow:0 0 0 3px #e5486f}
.mk-right .mk-ccd{--s:clamp(16px,min(4.5cqh,5.5cqw),26px)}

/* Мемори: карточки рубашкой вверх (размер — .mk-fit), открытая — картинка, число или буква; найденная пара — бледнее */
.mk-card{position:relative;flex:none;width:var(--t);height:var(--t);padding:calc(var(--t) * .07);border:2px solid var(--tr-pri-d);border-radius:clamp(8px,14%,16px);
  background:var(--tr-grad);display:grid;place-items:center;cursor:pointer;font:inherit;transition:transform .12s,background .12s,opacity .2s;
  touch-action:manipulation;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}
.mk-card:active{transform:scale(.96)}
.mk-face{visibility:hidden;width:100%;height:100%;display:grid;place-items:center;font-weight:900;font-size:calc(var(--t) * .42);line-height:1;color:var(--tr-text);font-variant-numeric:tabular-nums}
.mk-face img{width:100%;height:100%;object-fit:contain;pointer-events:none;-webkit-user-drag:none}
.mk-card.open,.mk-card.done{background:#fff;border-color:var(--tr-line)}
.mk-card.open .mk-face,.mk-card.done .mk-face{visibility:visible}
.mk-card.done{border-color:#3fe21f;background:var(--tint1);opacity:.6;cursor:default}
.mk-cards.mk-wait .mk-card{pointer-events:none}

/* Запомни позиции: клетка --c = картинка внизу; --gn клеток в ряду, --tray строк картинок внизу, --res px под подпись и кнопку */
.mk-pl{--gn:4;--tray:1;--pr:4;--res:116px;--c:min(calc((100cqw - (var(--gn) - 1) * 6px) / var(--gn)),calc((100cqh - var(--res) - (var(--gn) - 1) * 6px - (var(--tray) - 1) * 8px) / (var(--gn) + var(--tray))),130px);--t:var(--c)}
.mk-pl .mk-grid{width:calc(var(--gn) * var(--c) + (var(--gn) - 1) * 6px);gap:6px}
.mk-pl .mk-cell{position:relative;padding:0;display:grid;place-items:center;overflow:hidden}
.mk-pl .mk-cell > .mk-tile{width:100%;height:100%;border:0;background:transparent}
.mk-pl .mk-cell.ok{background:var(--tint1);border-color:#3fe21f}
.mk-pl .mk-cell.no{background:#fff0f4;border-color:#e5486f}
.mk-should{position:absolute;inset:7%;display:grid;place-items:center;pointer-events:none;opacity:.4}
.mk-should img{width:100%;height:100%;object-fit:contain}
.mk-cell.no .mk-should{inset:auto 3px 3px auto;width:40%;height:40%;padding:2px;opacity:1;border:2px dashed var(--tr-pri-d);border-radius:8px;background:#fff}

/* Меморикс и Олимпикс: показ по одному — крупная картинка --b (под ней --bres px на подпись, номер и кнопки) или слово/число */
.mk-show{--b:min(64cqw,calc(100cqh - var(--bres,100px)),300px);flex:none;display:grid;place-items:center}
.mk-tile.mk-big{width:var(--b);height:var(--b);padding:calc(var(--b) * .06)}
.mk-show .blank{visibility:hidden}
.mk-left{font-weight:900;font-size:clamp(32px,18cqh,96px);line-height:1;color:var(--tr-light);font-variant-numeric:tabular-nums}
/* Меморикс: полоска мест (текущее, верно, неверно); кружок --d — тот же, что считает memorix.js */
.mk-dots{flex:none;display:flex;flex-wrap:wrap;justify-content:center;gap:4px;max-width:100%}
.mk-dot{--d:clamp(16px,5.5cqh,28px);flex:none;width:var(--d);height:var(--d);border:2px solid var(--tr-line);border-radius:50%;background:#fff;color:var(--tr-light);
  font-size:calc(var(--d) * .44);font-weight:800;line-height:1;display:grid;place-items:center;font-variant-numeric:tabular-nums;transition:transform .12s}
.mk-dot.cur{border-color:var(--tr-pri);background:var(--tr-pri);color:#fff;transform:scale(1.12)}
.mk-dot.ok{border-color:#3fe21f;background:var(--tint1);color:#1d8a0a}
.mk-dot.no{border-color:#e5486f;background:#fff0f4;color:#c2264f}
/* варианты-слова и числа: --kp в строке, --cw — ширина самого длинного варианта в em */
.mk-pad.mk-optx{--kp:3;--cw:4;--kw:min(calc((100cqw - (var(--kp) - 1) * var(--kg)) / var(--kp)),230px);--kh:clamp(44px,13cqh,84px);
  --kf:min(calc(var(--kw) / (var(--cw) + 1.1)),calc(var(--kh) * .5),34px);width:calc(var(--kp) * var(--kw) + (var(--kp) - 1) * var(--kg))}
.mk-pad.mk-optx .mk-key{width:var(--kw);padding:0 4px;white-space:nowrap;font-variant-numeric:tabular-nums}
.mk-key.ok{border-color:#3fe21f;background:var(--tint1);color:#1d8a0a}
.mk-key.no{border-color:#e5486f;background:#fff0f4;color:#c2264f}
.mk-key.ok:disabled,.mk-key.no:disabled{opacity:1}
/* итог: в уголке ошибочной картинки — как было (зелёный пунктир); у слов и чисел — под ответом */
.mk-was{position:absolute;right:3px;bottom:3px;width:42%;height:42%;padding:2px;border:2px dashed #3fe21f;border-radius:8px;background:#fff;display:grid;place-items:center}
.mk-was img{width:100%;height:100%;object-fit:contain}
.mk-ans{--pr:5;--cw:4;flex:none;display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-start;gap:6px;max-width:calc(var(--pr) * (var(--cw) * 1em + 1.3em) + (var(--pr) - 1) * 6px)}
.mk-an{position:relative;flex:none;width:calc(var(--cw) * 1em + 1.3em);padding:.35em .2em .3em;border:2px solid var(--tr-line);border-radius:.4em;background:#fff;
  display:flex;flex-direction:column;align-items:center;font-variant-numeric:tabular-nums}
.mk-an small{position:absolute;top:2px;left:4px;font-size:max(9px,.38em);font-weight:700;line-height:1;color:var(--tr-light)}
.mk-an b{font-weight:900;line-height:1.15;white-space:nowrap}
.mk-an i{font-style:normal;font-size:.75em;font-weight:800;line-height:1.2;color:#1d8a0a;white-space:nowrap}
.mk-an.ok{border-color:#3fe21f;background:var(--tint1);color:#1d8a0a}
.mk-an.no{border-color:#e5486f;background:#fff0f4;color:#c2264f}

/* Олимпикс: полоска времени на объект (не дольше displayTime), сетка выбора; номер на плитке — место в ответе, после проверки — в показе */
.mk-tbar{flex:none;width:min(100%,320px);height:6px;border-radius:99px;background:rgba(65,200,229,.15);overflow:hidden}
.mk-tbar i{display:block;height:100%;background:var(--tr-pri);transform-origin:left;animation:mk-drain linear forwards}
@keyframes mk-drain{from{transform:scaleX(1)}to{transform:scaleX(0)}}
.mk-chips{--pr:4;--cw:4;flex:none;display:flex;flex-wrap:wrap;justify-content:center;gap:8px;max-width:calc(var(--pr) * (var(--cw) * 1em + 1.4em) + (var(--pr) - 1) * 8px)}
.mk-chip{position:relative;flex:none;width:calc(var(--cw) * 1em + 1.4em);height:1.9em;padding:0 .2em;border:2px solid var(--tr-line);border-radius:.45em;background:#fff;
  color:var(--tr-text);font:inherit;font-weight:800;line-height:1;white-space:nowrap;font-variant-numeric:tabular-nums;cursor:pointer;
  touch-action:manipulation;user-select:none;-webkit-user-select:none;transition:border-color .1s,background .1s}
.mk-chip:hover:not(:disabled){border-color:#b8e3ee}
.mk-chip:disabled{cursor:default}
.mk-chip .mk-no{top:-7px;left:-7px;min-width:18px;height:18px;font-size:11px}
.mk-chip.sel{border-color:#e0b000;background:#fff6d0;box-shadow:0 0 0 3px rgba(255,210,63,.5)}
.mk-chip.ok{border-color:#3fe21f;background:var(--tint1);color:#1d8a0a}
.mk-chip.no{border-color:#e5486f;background:#fff0f4;color:#c2264f}
.mk-chip.miss{border:3px dashed var(--tr-pri-d);background:#eef8fb}
.mk-tile.near,.mk-chip.near{border-color:#ffb23f;background:#fff6e3}
.mk-chip.pale{opacity:.45}

/* Подгонка шрифта по месту (MK.shrink): на время замера содержимое не центрируется и не сжимается */
.mk.mk-measure,.mk.mk-measure .mk-stage{justify-content:flex-start}
.mk.mk-measure>*,.mk.mk-measure .mk-stage>*{flex-shrink:0}
.mk-show.blank{visibility:hidden}
/* варианты ответа с переносом строк (Пары, Цифра-образ, Лица и имена): --kp в строке, картинка над словом — если есть */
.mk-ch{--kp:2;flex:none;display:grid;grid-template-columns:repeat(var(--kp),minmax(0,1fr));gap:clamp(6px,1.4cqh,10px);width:min(100%,calc(var(--kp) * 280px))}
.mk-ch .mk-cho{width:100%;min-width:0;height:auto;min-height:clamp(44px,9cqh,60px);padding:6px 10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  font-size:clamp(14px,min(4.2cqh,4.8cqw),22px);line-height:1.15;white-space:normal;overflow-wrap:anywhere;text-align:center}
.mk-cho.pic img{width:clamp(28px,8cqh,60px);height:clamp(28px,8cqh,60px);object-fit:contain;pointer-events:none}

/* Пары слово-образ: карточка пары (шрифт задаёт word-pairs.js в cqw/cqh), итог — список пар (em, подгонка MK.shrink) */
.mk-wpc{flex:none;display:flex;flex-direction:column;align-items:center;gap:.12em;max-width:100%;font-weight:900;line-height:1.15;text-align:center;overflow-wrap:anywhere}
.mk-wpc.blank{visibility:hidden}
.mk-wq{color:var(--tr-text)}.mk-wa{color:var(--tr-pri-d)}.mk-wd{font-style:normal;font-size:.55em;line-height:1;color:var(--tr-light)}
.mk-wpo{flex:none;width:100%;display:flex;justify-content:center}
.mk-wpl{flex:none;width:100%;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,13em),1fr));gap:.4em;font-size:clamp(13px,3.6cqh,18px)}
.mk-wpr{display:flex;flex-wrap:wrap;align-items:baseline;gap:.15em .5em;padding:.35em .6em;border:2px solid var(--tr-line);border-radius:.6em;background:#fff;line-height:1.2}
.mk-wpr b{font-weight:800;color:var(--tr-text)}
.mk-wpr span{font-weight:700;color:#1d8a0a}.mk-wpr span::before{content:"— ";color:var(--tr-light)}
.mk-wpr s{font-size:.85em;font-weight:700;color:#c2264f}
.mk-wpr.ok{border-color:#3fe21f;background:var(--tint1)}
.mk-wpr.no{border-color:#e5486f;background:#fff0f4}

/* Группировка: группы сверху (--gc в строке), слова внизу; размеры в em — шрифт поля подгоняет MK.shrink */
.mk-gr{gap:clamp(4px,1.6cqh,10px)}
.mk-gra{flex:0 1 auto;min-height:0;width:100%;display:flex;flex-direction:column;gap:.55em;font-size:clamp(12px,3.4cqh,17px)}
.mk-gboxes{--gc:2;display:grid;grid-template-columns:repeat(var(--gc),minmax(0,1fr));gap:.5em}
.mk-gbox{display:flex;flex-direction:column;gap:.3em;min-height:4.2em;padding:.35em .4em .45em;border:2px dashed #b8e3ee;border-radius:.8em;background:#fff;cursor:pointer;transition:border-color .12s,background .12s}
.mk-gname{font-size:.85em;font-weight:800;line-height:1.15;color:var(--tr-pri-d);text-align:center}
.mk-gin{flex:1;display:flex;flex-wrap:wrap;align-content:flex-start;justify-content:center;gap:.3em;min-height:2.1em}
.mk-gra.picking .mk-gbox{border-color:var(--tr-pri);background:#f4fcfe}
.mk-gra.done .mk-gbox{cursor:default;border-style:solid;border-color:var(--tr-line)}
.mk-gpool{display:flex;flex-wrap:wrap;justify-content:center;align-content:flex-start;gap:.35em;min-height:2.4em;padding:.4em;border-top:2px dashed #cfe8ef}
.mk-gw{position:relative;flex:none;max-width:100%;display:inline-flex;flex-direction:column;align-items:center;padding:.35em .65em;border:2px solid var(--tr-line);border-radius:.55em;
  background:#fff;color:var(--tr-text);font:inherit;font-weight:700;line-height:1.15;text-align:center;white-space:normal;overflow-wrap:anywhere;box-shadow:0 2px 0 var(--tr-line);
  cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;transition:transform .1s,box-shadow .1s,border-color .1s}
.mk-gw:disabled{cursor:default;opacity:1}
.mk-gw.pick{border-color:#ffb23f;box-shadow:0 0 0 3px rgba(255,178,63,.45);transform:translateY(-2px)}
.mk-gw.lift{opacity:.3}
.mk-gw small{font-size:.72em;font-weight:700;color:#1d8a0a}
.mk-gw.ok{border-color:#3fe21f;background:var(--tint1);color:#1d8a0a}
.mk-gw.no{border-color:#e5486f;background:#fff0f4;color:#c2264f}
.mk-gw.miss{border:2px dashed var(--tr-pri-d);background:#eef8fb}
.mk-gw.pale{opacity:.45}
.mk-gw.xtra{text-decoration:line-through}

/* Цифра-образ: цифра крупно (.mk-one), образ (картинка + слово), число с образами-подсказками (.mk-dn, em — подгонка MK.shrink) */
.mk-dcode{color:var(--tr-pri-d)}
.mk-dimg{flex:none;display:flex;flex-direction:column;align-items:center;gap:6px;max-width:100%}
.mk-dimg img{width:clamp(48px,16cqh,170px);height:clamp(48px,16cqh,170px);object-fit:contain}
.mk-dimg b{font-weight:900;font-size:clamp(18px,min(6cqh,8cqw),44px);line-height:1.1;color:var(--tr-text);text-align:center}
.mk-dn{flex:none;display:flex;flex-wrap:wrap;justify-content:center;gap:.4em;max-width:100%;font-size:clamp(12px,4cqh,22px)}
.mk-dc{flex:none;width:5.2em;display:flex;flex-direction:column;align-items:center;gap:.15em;padding:.3em .2em;border:2px solid var(--tr-line);border-radius:.6em;background:#fff}
.mk-dc b{font-size:1.9em;font-weight:900;line-height:1;color:var(--tr-text);font-variant-numeric:tabular-nums}
.mk-dc img{width:2.6em;height:2.6em;object-fit:contain}
.mk-dc span{font-size:.75em;font-weight:700;line-height:1.15;color:var(--tr-muted);text-align:center;overflow-wrap:anywhere}

/* Блиц: карточка (шрифт задаёт blitz.js в cqw/cqh), поле записи, итог — ответы фишками (em, подгонка MK.shrink) */
.mk-fcw{flex:none;width:100%;display:flex;justify-content:center}
.mk-fc{width:min(100%,640px);min-height:clamp(110px,32cqh,250px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5em;padding:.8em 1em;
  border:3px solid var(--tr-pri);border-radius:18px;background:#fff;line-height:1.2;text-align:center;cursor:pointer;overflow-wrap:anywhere}
.mk-fq{font-weight:800;color:var(--tr-text)}
.mk-fa{font-weight:900;font-size:1.25em;color:var(--tr-pri-d)}
.mk-fa.hide{visibility:hidden}
.mk-dump{flex:none;width:min(100%,560px)}
.mk-dump textarea{display:block;width:100%;height:clamp(100px,36cqh,320px);resize:none;padding:10px 14px;border:2px solid var(--tr-line);border-radius:12px;background:#fff;
  color:var(--tr-text);font:inherit;font-size:16px;font-weight:700;line-height:1.4}
.mk-dump textarea:focus{outline:none;border-color:var(--tr-pri);box-shadow:0 0 0 3px rgba(65,200,229,.25)}
.mk-bl{flex:none;width:100%;display:flex;flex-wrap:wrap;justify-content:center;gap:.4em;font-size:clamp(12px,3.4cqh,17px)}
.mk-bc{display:flex;flex-direction:column;align-items:center;max-width:16em;padding:.3em .6em;border:2px solid var(--tr-line);border-radius:.6em;background:#fff;line-height:1.15;text-align:center}
.mk-bc b{font-weight:800}.mk-bc small{font-size:.7em;font-weight:600;color:var(--tr-muted)}
.mk-bc.ok{border-color:#3fe21f;background:var(--tint1);color:#1d8a0a}
.mk-bc.miss{border:2px dashed var(--tr-pri-d);background:#eef8fb;color:var(--tr-text)}

/* Лица и имена: подпись под лицом при показе, имя крупно (имя → лицо), подпись поверх плитки в итоге */
.mk-fnc{display:flex;flex-direction:column;align-items:center;margin-top:6px;line-height:1.15;text-align:center}
.mk-fnc b{font-weight:900;font-size:clamp(20px,min(6cqh,8cqw),34px);color:var(--tr-text)}
.mk-fnc span{font-weight:700;font-size:clamp(14px,min(4cqh,5cqw),20px);color:var(--tr-pri-d)}
.mk-fno{flex:none;width:100%;display:flex;flex-direction:column;align-items:center;gap:8px}
.mk-fnq{flex:none;font-weight:900;font-size:clamp(22px,min(7cqh,9cqw),40px);line-height:1.1;color:var(--tr-text)}
.mk-cap{position:absolute;left:0;right:0;bottom:0;z-index:2;display:flex;flex-direction:column;align-items:center;padding:2px 3px;border-radius:0 0 12px 12px;
  background:rgba(255,255,255,.9);font-size:clamp(10px,calc(var(--t) * .11),15px);line-height:1.1;text-align:center}
.mk-cap b{font-weight:800;color:var(--tr-text)}.mk-cap s{font-size:.85em;color:#c2264f}
.mk-type input.ok{border-color:#3fe21f;background:var(--tint1);color:#1d8a0a}
.mk-type input.no{border-color:#e5486f;background:#fff0f4;color:#c2264f}


/* ===== Программы: каталог (pg-*) — страница программы, состав темы, все тренажёры, плитки в «Тренажёрах» ===== */
:root{--ed-lime:#C6FF05;--ed-teal:#00D4CA;--ed-violet:#AD78FF}
.pg-sec{margin-top:34px}
.pg-sec h2{font-size:22px;font-weight:800;letter-spacing:-.3px}
.pg-sec>p{margin:4px 0 14px;font-size:14px}
.pg-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
.pg-tile{display:grid;grid-template-columns:96px minmax(0,1fr);column-gap:16px;row-gap:2px;align-items:center;background:var(--surface);border:1px solid var(--edge);border-radius:var(--r-xl);padding:16px;transition:transform var(--t-base) var(--ease),box-shadow var(--t-base)}
.pg-tile:hover{transform:translateY(-2px);box-shadow:var(--sh-2)}
.pg-tile img{grid-row:1/3;width:96px;height:96px;object-fit:contain}
.pg-tile b{font-size:16px;font-weight:700;line-height:1.25;align-self:end;overflow-wrap:anywhere}
.pg-tile small{font-size:var(--fs-sm);font-weight:500;color:var(--muted);align-self:start}
.pg-hero{position:relative;overflow:hidden;display:flex;align-items:center;gap:22px;border-radius:var(--r-xl);padding:18px 22px;background:var(--surface);border:1px solid var(--edge);margin:8px 0 18px}
.pg-hero img{width:160px;height:160px;object-fit:contain;flex:none}
.pg-hero h1{font-size:var(--fs-h1);font-weight:800;letter-spacing:-.02em;color:var(--ink)}
.pg-hero p{margin-top:6px;color:var(--soft);font-weight:600;font-size:14px;max-width:640px}
.pg-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.pg-bar .dtabs{margin-bottom:0}
.pg-count{font-weight:700;font-size:13px;color:var(--soft)}
.pg-all{margin-left:auto}
.pg-none{margin:20px 0}
.pg-domain{margin:0 0 22px}
.pg-domain h2{display:flex;align-items:center;gap:8px;font-size:var(--fs-h2);font-weight:700;margin-bottom:10px}
.pg-n{font-size:var(--fs-xs);font-weight:700;color:var(--purple-ink);background:var(--purple-soft);border-radius:var(--r-pill);padding:2px 9px}
/* карточка темы — как карточки тренажёров дисциплины (.tc): белая, радиус 24, рамка, подъём при наведении */
.pg-topics{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}
.pg-topic{display:flex;flex-direction:column;gap:6px;background:var(--surface);border:1px solid var(--edge);border-radius:var(--r-xl);padding:16px 18px;transition:transform var(--t-base) var(--ease),box-shadow var(--t-base) var(--ease)}
.pg-topic:hover{transform:translateY(-2px);box-shadow:var(--sh-2)}
.pg-topic b{font-size:var(--fs-h3);font-weight:700;line-height:1.3}
.pg-topic small{font-size:var(--fs-xs);font-weight:500;color:var(--muted)}
.pg-topic.is-empty{opacity:.6}
.pg-code{align-self:flex-start;font-size:12px;font-weight:700;color:var(--lime-ink);background:var(--lime-soft);border-radius:99px;padding:2px 9px;font-variant-numeric:tabular-nums}

.pg-acts{display:flex;gap:8px;flex-wrap:wrap;margin-top:auto;padding-top:6px}

.pg-note{background:var(--tint2);color:var(--ink);border-color:var(--edge)}
.pg-presets{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
.pg-preset{display:flex;flex-direction:column;gap:5px;background:var(--surface);border:1px solid var(--edge);border-radius:20px;padding:10px 10px 14px}
.pg-preset img,.pg-nocover{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:14px;margin-bottom:6px;background:var(--tint3)}
.pg-nocover{display:grid;place-items:center;color:var(--soft)}.pg-nocover .ic{width:40px;height:40px}
.pg-preset b{font-size:15px;font-weight:800;padding:0 4px}
.pg-preset small,.pg-type{padding:0 4px;font-size:12.5px;line-height:1.4}
.pg-type{font-weight:700;color:var(--ink)}
.pg-ex{font-weight:700;color:var(--soft)}
.pg-preset .pg-acts{padding:6px 4px 0}
.pg-preset.is-empty{opacity:.6}
/* Страница темы (tk-*) — обычная страница кабинета: шапка-.hero с кодом темы, плитки заданий как карточки тренажёров (.tc).
   Макет: docs/design/style_prototype/trainers.html №2. Плитка целиком — ссылка в плеер (растянутая .tk-t), кнопка педагога — поверх. */
.back .ic{width:16px;height:16px;stroke-width:2.4}
.tk-code{position:relative;align-self:flex-start;display:inline-flex;align-items:center;height:24px;margin-bottom:6px;padding:0 10px;border-radius:var(--r-pill);background:var(--surface);color:var(--teal-ink);font-size:12px;font-weight:800}
[data-theme="dark"] .tk-code{background:var(--teal-soft)}
.hero .acts{position:relative;display:flex;flex-wrap:wrap;gap:10px;margin-top:16px;max-width:calc(100% - 170px)}
.tk-note{margin:-8px 0 14px}
/* Язык заданий программы (Cambridge — English по умолчанию): строка над плитками заданий */
.tk-lang{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;margin:0 0 14px;font-size:13px;font-weight:700;color:var(--soft)}
.tk-lang .dtabs{margin:0}
/* Отчёт покрытия целей стандарта (/programs/{код}/coverage): таблицы — как в разборе урока (.rs-table) */
.cv-sum{margin-bottom:10px}.cv-sum td,.cv-sum th{font-variant-numeric:tabular-nums}
.cv-total td{font-weight:800}
.cv-note{margin:0 0 18px}
.cv-filters{row-gap:6px}
.cv-table td{vertical-align:top}
.cv-name{min-width:220px}.cv-twm{white-space:nowrap;color:var(--soft);font-variant-numeric:tabular-nums}
.cv-tasks{min-width:200px;line-height:1.5}.cv-tasks a{color:var(--purple-ink);font-weight:600}.cv-tasks small{margin-left:6px}
.cv-note-c{min-width:180px;font-size:12.5px;color:var(--ink-2)}
.cv-st{display:inline-block;white-space:nowrap;font-size:12px;font-weight:800;line-height:1.3;border-radius:var(--r-pill);padding:4px 10px;background:var(--surface-3);color:var(--ink-2)}
.cv-st.is-closed{background:var(--lime-soft);color:var(--lime-ink)}
.cv-st.is-partial,.cv-st.is-off{color:var(--warn)}
.cv-st.is-none{color:var(--err)}
.tks{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:16px}
.tk{position:relative;background:var(--surface);border:1px solid var(--edge);border-radius:var(--r-xl);padding:14px 14px 16px;display:flex;flex-direction:column;gap:4px;transition:transform var(--t-base) var(--ease),box-shadow var(--t-base)}
.tk:hover{transform:translateY(-2px);box-shadow:var(--sh-2)}
.tk .pic{position:relative;margin-bottom:8px}
.tk .pic img,.tk-nocover{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;border-radius:var(--r-lg);background:var(--surface-3)}
.tk-nocover{display:grid;place-items:center;background:var(--purple-soft);color:var(--purple-ink)}.tk-nocover .ic{width:40px;height:40px}
.tk .play{position:absolute;right:10px;bottom:-18px;width:44px;height:44px;border-radius:50%;background:var(--lime);color:var(--on-pri);box-shadow:inset 0 0 0 1.5px var(--lime-edge),0 0 0 4px var(--surface);display:grid;place-items:center}
.tk .play .ic{width:20px;height:20px;stroke-width:2.2;margin-left:2px}
.tk>.play{display:none}
.tk .cat{font-size:var(--fs-xs);font-weight:700;color:var(--purple-ink);padding-right:58px}
.tk-t b{font-size:var(--fs-h3);font-weight:700;line-height:1.3}
.tk-t::after{content:"";position:absolute;inset:0;border-radius:inherit}
.tk-t:focus-visible{outline:0}.tk-t:focus-visible::after{outline:3px solid var(--focus);outline-offset:2px}
.tk .n{font-size:var(--fs-sm);color:var(--muted)}
.tk-par{font-size:var(--fs-xs);line-height:1.4;color:var(--muted)}
.tk .grow{flex:1}
.tk .btn{position:relative;z-index:1;margin-top:10px;align-self:stretch}
.kid .tk-t b{font-size:18px}
@media (max-width:760px){.hero .acts{max-width:100%}}
/* телефон: плитка — строка «обложка · название · играть» */
@media (max-width:560px){
  .tks{grid-template-columns:1fr;gap:10px}
  .tk{display:grid;grid-template-columns:84px minmax(0,1fr) 48px;column-gap:12px;row-gap:0;align-items:center;padding:10px}
  .tk .pic{grid-column:1;grid-row:1/4;margin:0}
  .tk .pic img,.tk-nocover{aspect-ratio:1}
  .tk .pic .play,.tk .grow{display:none}
  .tk>.play{display:grid;position:static;grid-column:3;grid-row:1/4;width:48px;height:48px;box-shadow:inset 0 0 0 1.5px var(--lime-edge)}
  .tk .cat{grid-column:2;padding:0;align-self:end}
  .tk-t{grid-column:2}
  .tk .n{grid-column:2;align-self:start}
  .tk-par,.tk .btn{grid-column:1/-1}
  .tk-par{margin-top:8px}
}
@media (max-width:760px){
  .pg-hero{flex-direction:column;align-items:flex-start;padding:14px;gap:10px}.pg-hero img{width:112px;height:112px}.pg-hero h1{font-size:24px}
  .pg-all{margin-left:0}
  .pg-topics,.pg-presets,.pg-tiles{grid-template-columns:1fr}
}

/* ===== Программы: плеер (чужие тренажёры в стиле edlimi) =====
   Страница /programs/…/play: prog/trainers.css (как есть) + этот блок + assets/prog-light.js.
   Решение владельца 19.11.2026: плеер целиком светлый, без тёмного «космоса» (меню, задания, шапка, итоги).
   1) раскладка страницы; 2) переменные, которых ждёт trainers.css; 3) светлая палитра --trc-*;
   4) совместимость с нашим сбросом (то, что давал base.css старой платформы); 5) вид edlimi.
   Зашитые в тренажёрах белые линии и «стекло» перекрашивает prog-light.js (одно правило на все 42).
   Селекторы «:where(.tr-player) X» той же силы, что X в trainers.css: побеждают за счёт порядка,
   а уточнённые правила тренажёров (.tr-x .tr-btn, вставленные <style>) остаются сильнее — как было задумано. */
.prog-page{margin:0;background:#fff;min-height:100vh;min-height:100dvh}
.prog-page .tr-player{min-height:0;height:100vh;height:100dvh;border-radius:0;display:flex;flex-direction:column}
/* Высота плеера = окно: длинное меню и крупное задание прокручиваются внутри поля, шапка с «назад» всегда видна */
.prog-page .tr-shell__content{min-height:0}
.prog-page .tr-screen,.prog-page .tr-shell{flex:1;min-height:0}
.prog-page .tr-shell__content{display:flex;flex-direction:column}
.prog-page .tr-stage{flex:1;display:flex;flex-direction:column;justify-content:center}
/* Переменные, которых ждёт trainers.css (у старой платформы их давал tokens.css, блок :root 13px); цвета — edlimi */
.prog-page,.tr-player{
  --font-sans:"Onest","Segoe UI",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;
  --font-mono:ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace;
  --space-2:8px;--space-3:12px;--space-4:16px;--space-5:20px;
  --radius-md:12px;--radius-lg:16px;--radius-full:9999px;
  --text-sm:13px;--text-xl:28px;
  --weight-medium:500;--weight-semibold:600;--weight-bold:700;
  --leading-tight:1.25;--leading-normal:1.55;
  --transition-fast:.18s cubic-bezier(.4,0,.2,1);
  --shadow-sm:0 1px 2px rgba(20,18,54,.08);
  --bg-surface:#ffffff;--bg-muted:#f4f2ff;--border-default:#ece9ff;--border-strong:#d6d0ff;
  --text-secondary:#4a4f86;--text-muted:#5a5f94;--text-on-brand:#141236;
  --color-primary:#7b5cff;--color-primary-hover:#6a48f5;--color-primary-soft:#f1ebff;
  --color-success:#1d9a0a;--color-warning:#a56a00;--color-info:#0a8f88;
}
/* Светлая палитра плеера. --trc-white — «цвет рисунка на сцене» (у них белый на тёмном), у нас тёмно-синий;
   золото и бирюза чуть глубже фирменных, чтобы цифры и метки читались на белом */
.prog-page,.tr-player{--trc-bg:#ffffff;--trc-bg-2:#ffffff;--trc-blue:#6f5cff;--trc-purple:#9b6bff;--trc-teal:#00bdb3;--trc-gold:#eea200;--trc-red:#ef476f;--trc-white:#1b1f4b;--trc-text-dim:#5a5f94;--trc-line:rgba(27,31,75,.14);--trc-radius:20px}
/* Сцена: светлый фон с мягкими пятнами (как на страницах платформы) вместо космоса; !important — движок ставит фон-картинку в style */
.prog-page .tr-player{background:radial-gradient(48% 42% at 0% 0%,rgba(198,255,5,.16),transparent 70%),radial-gradient(44% 40% at 100% 4%,rgba(173,120,255,.13),transparent 70%),radial-gradient(50% 40% at 55% 100%,rgba(0,212,202,.10),transparent 70%),#fff!important;color:var(--trc-white)}
.prog-page .tr-decor,.prog-page .tr-bg-star{display:none}
/* Совместимость с нашим сбросом (* {margin:0;padding:0}, input{width:100%…}, .num{display:flex}) */
:where(.tr-player){font-family:var(--font-sans);font-size:15px;line-height:1.55}
:where(.tr-player) p{margin:0 0 16px}
:where(.tr-player) :is(h1,h2,h3,h4){margin:0 0 12px;line-height:1.25}
:where(.tr-player) :is(ul,ol){margin:0 0 16px;padding-left:24px}
:where(.tr-player) :is(img,svg,video){max-width:100%;height:auto;display:block}
:where(.tr-player) small{font-size:13px}
:where(.tr-player) .num{display:inline;gap:normal}
:where(.tr-player) :is(input,select,textarea){font:revert;color:revert;background:revert;border:revert;border-radius:revert;padding:revert;outline:revert;width:revert}
/* Кнопки: kit-овский .tr-btn выше (оболочка наших тренажёров) внутри плеера не действует — см. :not(.tr-player *) у него */
:where(.tr-player) .tr-btn{border-radius:9999px;font-family:var(--font-sans);font-weight:800;min-height:44px;color:var(--ink)}
:where(.tr-player) .tr-btn--primary{background:linear-gradient(135deg,#C6FF05,#00D4CA);color:#141236;border-color:transparent;box-shadow:0 8px 20px rgba(0,212,202,.26)}
:where(.tr-player) .tr-btn--primary:hover{box-shadow:0 10px 26px rgba(0,212,202,.38);filter:saturate(1.1)}
:where(.tr-player) .tr-btn--ghost{background:#fff;border-color:var(--ed-violet);color:var(--ink)}
:where(.tr-player) .tr-btn--ghost:hover{background:var(--tint3);border-color:#8f5cff;color:var(--ink)}
:where(.tr-player) .tr-btn--choice{background:#fff;border:1.5px solid #dcd6fb;border-radius:18px;color:var(--ink);box-shadow:0 4px 12px rgba(124,92,255,.08)}
:where(.tr-player) .tr-btn--choice:hover{border-color:var(--ed-violet);background:var(--tint3)}
:where(.tr-player) .tr-btn--choice.is-correct,:where(.tr-player) .tr-btn.is-correct{background:rgba(0,212,202,.16);border-color:#00bdb3;color:var(--ink)}
:where(.tr-player) .tr-btn--choice.is-wrong,:where(.tr-player) .tr-btn.is-wrong{background:rgba(239,71,111,.12);border-color:#ef476f;color:var(--ink)}
:where(.tr-player) .tr-input{background:#fff;border:1.5px solid #d6d0f7;border-radius:14px;color:var(--ink)}
:where(.tr-player) .tr-input:focus{border-color:var(--ed-violet);box-shadow:0 0 0 4px rgba(173,120,255,.18)}
:where(.tr-player) .tr-input.is-correct{border-color:#00bdb3;background:rgba(0,212,202,.12)}
:where(.tr-player) .tr-input.is-wrong{border-color:#ef476f;background:rgba(239,71,111,.08)}
/* Шапка «Светлая» (вариант A, решение владельца 19.11.2026; макет docs/design/style_prototype/trainers.html) — тот же вид,
   что у оболочки kit (.tr-head выше): белая поверхность с тонкой линией, слева стрелка + логотип edlimi = «назад»,
   тема (мелко) и задание (крупно), Лими, звёзды-плашка, круглые кнопки с обводкой (звук, сложность, размер, полный экран,
   выход); ход задания — тонкая линия по нижнему краю. Разметку строят shell.js/runtime.js/engine.js — здесь только вид.
   Тёмная тема: плеер остаётся светлым (решение владельца), тёмно-синей становится только шапка — prog-light.js ставит
   data-bar="dark" на <html>, и шапка получает тёмные значения тех же токенов. */
:where(.tr-player) .tr-shell__header{--h-bg:var(--surface);--h-ink:var(--ink);--h-mut:var(--muted);--h-line:var(--edge);--h-star:var(--warn-soft);--h-bd:var(--edge-2);--h-btn-ink:var(--ink-2);--h-hov:var(--surface-3);
  position:relative;height:60px;flex:none;padding:0 16px;gap:8px;background:var(--h-bg);border-bottom:1px solid var(--h-line);box-shadow:none;backdrop-filter:none;color:var(--h-ink);font-family:var(--font)}
[data-bar="dark"] :where(.tr-player) .tr-shell__header{--surface:#181E42;--surface-3:#2A3268;--ink:#F2F4FF;--ink-2:#C7CCE3;--muted:#9FA7C8;--edge:#2B3260;--edge-2:#4A5390;--warn-soft:rgba(255,200,87,.14);--teal-soft:rgba(0,212,202,.14);--bar:linear-gradient(90deg,#C6FF05,#00D4CA);--sh-3:0 17px 52px rgba(0,0,0,.5)}
:where(.tr-player) .tr-shell__back{width:auto;min-width:0;height:44px;padding:0 10px 0 4px;gap:4px;border:0;border-radius:var(--r-pill);background:transparent;color:var(--h-mut);cursor:pointer}
:where(.tr-player) .tr-shell__back:hover{background:var(--h-hov);transform:none}
:where(.tr-player) .tr-shell__back svg{display:block;width:18px;height:18px;stroke-width:2.4}
:where(.tr-player) .tr-shell__back::after{content:"";width:84px;height:28px;background:url(/img/brand/logo.webp?v=2) center/contain no-repeat}
[data-bar="dark"] :where(.tr-player) .tr-shell__back::after{background-image:url(/img/brand/logo-white.webp?v=2)}
:where(.tr-player) .tr-shell__meta{flex:0 1 auto;min-width:0;margin-right:auto;display:grid;grid-template-columns:minmax(0,1fr);line-height:1.2;padding:0 6px}
:where(.tr-player) .tr-shell__context{display:block;font-size:12px;font-weight:600;color:var(--h-mut)}
:where(.tr-player) .tr-shell__title{font-size:15px;font-weight:800;color:var(--h-ink)}
:where(.tr-player) .tr-shell__deadline{font-size:12px;color:var(--warn);font-weight:700}
:where(.tr-player) :is(.tr-shell__sound,.tr-shell__ctl){width:40px;min-width:40px;height:40px;padding:0;border:1.5px solid var(--h-bd,var(--edge-2));border-radius:50%;background:transparent;color:var(--h-btn-ink,var(--ink-2));display:inline-grid;place-items:center;cursor:pointer;transition:background var(--t-fast)}
:where(.tr-player) :is(.tr-shell__sound,.tr-shell__ctl):hover{background:var(--h-hov,var(--surface-3));color:var(--h-ink,var(--ink))}
:where(.tr-player) :is(.tr-shell__sound,.tr-shell__ctl) svg{width:19px;height:19px}
:where(.tr-player) .tr-shell__ctl span:empty,:where(.tr-player) .tr-shell__ctl--exit span{display:none}
:where(.tr-player) .tr-shell__ctl--zoom span:not(:empty){position:absolute;right:-6px;bottom:-4px;padding:0 4px;border-radius:6px;background:var(--h-ink);color:var(--h-bg);font-size:10px;line-height:14px}
:where(.tr-player) .tr-shell__ctl--zoom{position:relative}
:where(.tr-player) .tr-shell__header .tr-shell__sound{margin-left:2px}
/* «Настройки» телефона (engine.js, правка П8): на широком экране кнопки стоят в шапке как есть, общей шестерёнки нет */
:where(.tr-player) .tr-shell__more{display:contents}
:where(.tr-player) .tr-shell__ctl--more{display:none}
:where(.tr-player) .tr-kosmik-hdr{width:40px;height:40px;border-radius:50%;object-fit:cover;background:var(--teal-soft);box-shadow:0 0 0 2px var(--h-bg,var(--surface)),0 0 0 3.5px var(--teal);filter:none}
:where(.tr-player) .tr-stars-counter{height:36px;padding:0 12px 0 10px;gap:6px;background:var(--h-star);border:0;box-shadow:none}
:where(.tr-player) .tr-stars-counter .num{font-family:inherit;font-size:15px;font-weight:800;color:var(--h-ink)}
:where(.tr-player) .tr-progress{position:absolute;left:0;right:0;bottom:-1px;width:auto;height:3px;border-radius:0;background:transparent}
:where(.tr-player) .tr-progress__fill{background:var(--bar);box-shadow:none;border-radius:0 3px 3px 0}
/* Подвал — та же поверхность, что и шапка: счёт примеров слева, серия справа (на телефоне сюда переезжают Лими и звук) */
:where(.tr-player) .tr-shell__footer{justify-content:flex-start;gap:12px;padding:10px 20px;background:var(--surface);backdrop-filter:none;border-top:1px solid var(--edge);color:var(--ink-2);font-family:var(--font);font-size:14px;font-weight:700}
:where(.tr-player) .tr-shell__footer .num{color:var(--ink);font-weight:800}
:where(.tr-player) .tr-footer-streak{margin-left:auto;gap:6px}
:where(.tr-player) .tr-footer-streak img{width:18px;height:18px}
:where(.tr-player) .tr-footer-streak--hot{color:var(--warn)}
/* Задание: баннер, подсказка Космика, окно выхода, сложность */
:where(.tr-player) .tr-task-scroll{background:var(--tint3);border:1.5px solid #dccbff;border-radius:16px;color:var(--ink);font-weight:600}
:where(.tr-player) .tr-big-kosmik .bubble{background:#fff;color:var(--ink);border:1.5px solid var(--edge);border-radius:16px;box-shadow:var(--glow)}
:where(.tr-player) .tr-big-kosmik .bubble::after{border-top-color:#fff}
:where(.tr-player) .tr-big-kosmik img{filter:drop-shadow(0 8px 16px rgba(124,92,255,.25))}
:where(.tr-player) .tr-exit,:where(.tr-player) .tr-settings{background:rgba(20,18,54,.3)}
:where(.tr-player) .tr-exit__card,:where(.tr-player) .tr-settings__card{background:#fff;color:var(--ink);border:1.5px solid var(--edge);border-radius:28px;box-shadow:0 24px 60px rgba(20,18,54,.18)}
:where(.tr-player) .tr-exit__row .tr-btn:not(.tr-btn--primary){background:#fff;color:var(--ink);border:1.5px solid var(--ed-violet);box-shadow:none}
:where(.tr-player) .tr-exit__row .tr-btn:not(.tr-btn--primary):hover{background:var(--tint3)}
:where(.tr-player) .tr-settings__head{border-bottom-color:var(--edge);font-weight:800}
:where(.tr-player) .tr-settings__foot{border-top-color:var(--edge)}
:where(.tr-player) .tr-knob{color:var(--soft);font-weight:700}
:where(.tr-player) .tr-knob input[type="number"],:where(.tr-player) .tr-knob select{color-scheme:light;background:#fff;border:1.5px solid #d6d0f7;border-radius:12px;color:var(--ink)}
:where(.tr-player) .tr-knob input[type="checkbox"]{accent-color:#8f5cff}
/* Меню заданий: белые карточки как в каталоге (pg-preset), «Пройдено» — лаймовая метка */
:where(.tr-player) .tr-task-card{background:#fff;border:1.5px solid var(--edge);border-radius:20px;padding:10px 10px 12px;box-shadow:0 6px 18px rgba(124,92,255,.07);transition:transform .18s,box-shadow .18s,border-color .18s}
:where(.tr-player) .tr-task-card:hover{border-color:#d9c6ff;transform:translateY(-3px);box-shadow:var(--glow)}
:where(.tr-player) .tr-task-card--done{border-color:#a6e000}
:where(.tr-player) .tr-task-card__icon--cover{border-radius:14px;background:var(--tint3)}
:where(.tr-player) .tr-task-card__trainer{font-size:11.5px;font-weight:700;color:var(--soft)}
:where(.tr-player) .tr-task-card__name{font-size:13.5px;font-weight:800;color:var(--ink)}
:where(.tr-player) .tr-task-card__count{font-family:var(--font-sans);font-weight:700;color:var(--soft)}
:where(.tr-player) .tr-task-card__done-mark{top:16px;inset-inline-end:16px;z-index:1;padding:3px 9px;border-radius:99px;background:#C6FF05;color:#141236;font-weight:800;box-shadow:0 2px 6px rgba(20,18,54,.14)}
/* Итог задания и приветствие: светлый «праздник», крупные цифры, кнопки по центру */
:where(.tr-player) .tr-final{background:radial-gradient(circle at 50% 28%,rgba(198,255,5,.24),transparent 42%),radial-gradient(circle at 50% 78%,rgba(173,120,255,.16),transparent 55%),#fff}
:where(.tr-player) .tr-final__kosmik{filter:drop-shadow(0 10px 20px rgba(124,92,255,.25))}
:where(.tr-player) .tr-final__title{color:transparent;background:linear-gradient(90deg,#00a99f,#8f5cff);-webkit-background-clip:text;background-clip:text;text-shadow:none;font-weight:900;letter-spacing:-.5px;line-height:1.2;padding:0 2px}
:where(.tr-player) .tr-final__subtitle{color:var(--soft);font-weight:600}
:where(.tr-player) .tr-final__stats{font-size:20px;font-weight:700;color:var(--ink)}
:where(.tr-player) .tr-leaderboard{background:#fff;border:1.5px solid var(--edge);border-radius:20px;box-shadow:0 6px 18px rgba(124,92,255,.07)}
:where(.tr-player) .tr-leaderboard__title{color:var(--soft);font-weight:800}
:where(.tr-player) .tr-leaderboard__row--me{color:#7a3fe0;font-weight:800}
:where(.tr-player) .tr-leaderboard__done{color:#0a8f88}
:where(.tr-player) .tr-ach-toast{background:#fff;border:2px solid var(--ed-violet);border-radius:16px;color:var(--ink);font-weight:800;box-shadow:var(--glow)}
:where(.tr-player) .tr-ach-toast small{color:var(--soft)}
/* Два тоста подряд (награды приходят с шагом 1,3 с) — один под другим, а не друг на друге */
.prog-page .tr-ach-toast~.tr-ach-toast{top:146px}
.prog-page .tr-ach-toast~.tr-ach-toast~.tr-ach-toast{top:222px}
.prog-page .tr-ach-toast~.tr-ach-toast~.tr-ach-toast~.tr-ach-toast{top:298px}
/* Свободная игра: звёзды не начисляются — нет счётчика-кошелька и ряда звёзд в итоге (проект §2.4 п.6) */
.tr-player--nostars [data-tr-stars-counter],.tr-player--nostars .tr-final__stars-line{display:none}
/* Раскладка: меню во флекс-колонке растягивается на ширину (иначе сетка берёт 940 px и уезжает вбок);
   Космик-подсказка спрятан ниже края — fixed, чтобы спрятанный он не давал прокрутку поля задания */
.prog-page .tr-session-menu{width:100%}
.prog-page .tr-big-kosmik{position:fixed}
.prog-page .tr-task-card__icon--cover{height:auto;aspect-ratio:16/10}
/* Блоки base-10 (tr05): на тёмном их «держало» свечение, на светлом — лёгкая бирюзовая заливка */
.prog-page :is(.tr-b10-rod,.tr-b10-flat){background-color:rgba(0,212,202,.2)}
/* Уже 1020 (планшет): логотип сжимается до знака */
@media (max-width:1020px){
  .prog-page .tr-shell__back::after{width:28px;background-image:url(/img/brand/symbol.webp?v=2)}
}
/* Телефон (решение владельца 19.11.2026, макет trainers.html): меню в 2 колонки (уже 340 px — в одну), поле с меньшими полями.
   В шапке — назад, название, звёзды, «Настройки», выход. «Сложность», «Размер» и «Во весь экран» — в списке под шестерёнкой
   (ничего не пропало); Лими и звук — в подвале рядом со счётчиком примеров (переносит shell.js, правка П7). */
@media (max-width:700px){
  .prog-page .tr-session-menu{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .prog-page .tr-shell__content{padding:16px 12px 40px}
  .prog-page .tr-shell__header{height:52px;gap:6px;padding:0 10px}
  .prog-page .tr-shell__back{height:40px;padding:0 6px 0 2px}
  .prog-page .tr-shell__back::after{width:26px;height:26px}
  .prog-page .tr-shell__meta{padding:0 2px}
  .prog-page .tr-shell__context{font-size:11px}
  .prog-page .tr-shell__title{font-size:13px;line-height:1.15;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
  .prog-page :is(.tr-shell__sound,.tr-shell__ctl){width:36px;min-width:36px;height:36px}
  .prog-page .tr-stars-counter{height:32px;padding:0 10px 0 8px}
  .prog-page .tr-stars-counter .num{font-size:14px}
  .prog-page .tr-shell__header .tr-kosmik-hdr{display:none}
  .prog-page .tr-shell__ctl--more{display:inline-grid}
  .prog-page .tr-shell__more{display:none;position:absolute;top:calc(100% + 6px);right:10px;z-index:20;flex-direction:column;gap:2px;min-width:200px;padding:6px;background:var(--surface);border:1px solid var(--edge);border-radius:var(--r-lg);box-shadow:var(--sh-3)}
  .prog-page .tr-shell__more.is-open{display:flex}
  .prog-page .tr-shell__more .tr-shell__ctl{width:auto;height:44px;padding:0 12px;border:0;border-radius:var(--r-md);display:flex;justify-content:flex-start;gap:10px;color:var(--ink);font-family:inherit;font-size:14px;font-weight:600}
  .prog-page .tr-shell__more .tr-shell__ctl::after{content:attr(title)}
  .prog-page .tr-shell__more .tr-shell__ctl--zoom span:not(:empty){position:static;order:3;margin-left:auto;padding:0 6px;font-size:12px;line-height:20px}
  .prog-page .tr-shell__footer{padding:8px 12px;font-size:13px}
  .prog-page .tr-shell__footer .tr-kosmik-hdr{width:32px;height:32px;box-shadow:0 0 0 1.5px var(--teal)}
  .prog-page .tr-task-card{padding:8px 8px 10px}
  .prog-page .tr-task-card__done-mark{top:12px;inset-inline-end:12px}
}
@media (max-width:340px){.prog-page .tr-session-menu{grid-template-columns:1fr}}

/* ===== Программы: плеер — «Живой вид» (docs/design/Тренажёры_живой_вид.md; решение владельца 19.11.2026) =====
   Общий слой для всех тренажёров программ; действует только на экране задания — пока shell.js (правка П9) держит
   data-lv-scene на корне плеера. 1) детская палитра «цвет = роль»; 2) сцена темы; 3) Лими и облачко задания;
   4) белая доска; 5) кнопки, поле, «Проверить»; 6) звёзды хода и серия; 7) экранная клавиатура; 8) реакции;
   9) телефон; 10) правки отдельных тренажёров. Анимации — только transform/opacity. */
.prog-page,.tr-player{--trc-blue:#3DA9FF;--trc-red:#F26A2E;
  --lv-sky:#3DA9FF;--lv-sky-d:#1272C4;--lv-sky-s:#DCEFFF;--lv-rose:#FF5C8A;--lv-rose-d:#C92A5C;--lv-rose-s:#FFE0EA;
  --lv-sun:#FFC83D;--lv-sun-d:#B97A00;--lv-sun-s:#FFF3CC;--lv-grass:#3ED47A;--lv-grass-d:#16924A;--lv-grass-s:#DDF8E6;
  --lv-violet:#AD78FF;--lv-violet-d:#7444DB;--lv-violet-s:#F1EAFF;--lv-teal:#00D4CA;--lv-teal-d:#007A73;--lv-teal-s:#DDFAF6;
  --lv-orange:#FF8A3D;--lv-orange-d:#C75A10;--lv-orange-s:#FFE6D2;--lv-ink:#1B1F4B;--lv-num:"Unbounded","Onest",system-ui,sans-serif}
/* 2) сцена: два градиента неба + два «холма» + «солнце» — всё фоном, без узлов */
.prog-page .tr-player[data-lv-scene]{background:radial-gradient(42% 30% at 18% 106%,var(--lv-h1) 99.4%,transparent 100%),radial-gradient(52% 34% at 80% 110%,var(--lv-h2) 99.4%,transparent 100%),radial-gradient(circle at var(--lv-sx,92%) 96px,var(--lv-sn,transparent) 0 48px,transparent 49px),linear-gradient(180deg,var(--lv-a),var(--lv-b))!important}
.tr-player[data-lv-scene="meadow"]{--lv-a:#D8F0FF;--lv-b:#DDF6D2;--lv-h1:#C9EFB7;--lv-h2:#B3E6A2;--lv-sn:#FFE27A;--lv-sx:94%}
.tr-player[data-lv-scene="pond"]{--lv-a:#E3F6FF;--lv-b:#BDEDEC;--lv-h1:#A9E6E6;--lv-h2:#93DDE0}
.tr-player[data-lv-scene="beach"]{--lv-a:#FFF1D9;--lv-b:#FFE0C2;--lv-h1:#FFD9A8;--lv-h2:#FFCC94;--lv-sn:#FFE27A;--lv-sx:95%}
.tr-player[data-lv-scene="candy"]{--lv-a:#F1E8FF;--lv-b:#FFE6F1;--lv-h1:#E3D0FF;--lv-h2:#FFD0E2}
.tr-player[data-lv-scene="sky"]{--lv-a:#DCEBFF;--lv-b:#F1EAFF;--lv-h1:#CFDDFF;--lv-h2:#D9CCFF}
.tr-player[data-lv-scene="orchard"]{--lv-a:#F6FFDC;--lv-b:#E3F8C8;--lv-h1:#D5F2A0;--lv-h2:#BFE98A;--lv-sn:#FFD45C;--lv-sx:94%}
.tr-player[data-lv-scene="berry"]{--lv-a:#FFE9EF;--lv-b:#FFF1DC;--lv-h1:#FFD0DC;--lv-h2:#FFDDB0}
.tr-player[data-lv-scene="city"]{--lv-a:#E6F0FF;--lv-b:#E0F7FA;--lv-h1:#C9DBFF;--lv-h2:#BDEBF0}
.tr-player[data-lv-scene="lab"]{--lv-a:#E0FBF6;--lv-b:#EEFFD0;--lv-h1:#BDF0E6;--lv-h2:#D6F5A0}
.tr-player[data-lv-scene="sunset"]{--lv-a:#FFE7D6;--lv-b:#EBDDFF;--lv-h1:#FFCDB0;--lv-h2:#D9C2FF;--lv-sn:#FFC83D;--lv-sx:93%}
.tr-player[data-lv-scene="shop"]{--lv-a:#E6FBEF;--lv-b:#FFF6D2;--lv-h1:#C4F0D6;--lv-h2:#FFE9A0}
.tr-player[data-lv-scene="chart"]{--lv-a:#EDE6FF;--lv-b:#DDF3FF;--lv-h1:#D9CCFF;--lv-h2:#BFE3FF}
/* Лими теперь в сцене — из шапки (и из подвала на телефоне) убран */
.prog-page .tr-player[data-lv-scene] .tr-kosmik-hdr{display:none}
/* Высота: шапка задания (Лими + облачко) и поля доски вместе не выше прежнего баннера с полями (на 1024×700 было 98 + 70 px) —
   всё, что помещалось раньше, помещается и на доске; на высоком экране Лими крупнее */
.prog-page .tr-player[data-lv-scene] .tr-shell__content{padding:8px 12px 4px}
/* 3) задание: Лими + «облачко» */
.prog-page .tr-player[data-lv-scene] .tr-task-scroll{display:flex;align-items:flex-end;justify-content:center;gap:4px;max-width:860px;margin:0 auto 4px;padding:0;background:none;border:0;border-radius:0;backdrop-filter:none;text-align:left;transform-origin:50% 100%;flex:none}
.prog-page .tr-player[data-lv-scene] .tr-task-scroll>[data-tr-task-text]{position:relative;min-width:0;background:#fff;border-radius:20px;padding:9px 18px;margin-bottom:6px;font-size:18px;font-weight:700;line-height:1.3;color:var(--lv-ink);box-shadow:0 5px 0 rgba(27,31,75,.08)}
.prog-page .tr-player[data-lv-scene] .tr-task-scroll>[data-tr-task-text]::before{content:"";position:absolute;left:-6px;bottom:14px;width:16px;height:16px;background:inherit;transform:rotate(45deg);border-radius:4px}
.prog-page .tr-player[data-lv-scene] .tr-task-scroll>[data-tr-task-text]:empty{display:none}
.prog-page .lv-limi{width:60px;height:60px;max-width:none;flex:none;object-fit:contain;margin-bottom:-2px;transform-origin:50% 90%;animation:lv-breathe 3.2s ease-in-out infinite}
@keyframes lv-breathe{50%{transform:translateY(-3px) rotate(-1.5deg)}}
@media (min-height:820px) and (min-width:701px){.prog-page .lv-limi{width:92px;height:92px}.prog-page .tr-player[data-lv-scene] .tr-task-scroll>[data-tr-task-text]{font-size:20px;padding:12px 20px;margin-bottom:14px}}
/* 4) белая доска с предметами */
.prog-page .tr-player[data-lv-scene] .tr-stage{flex:0 0 auto;margin:auto;width:100%;max-width:980px;box-sizing:border-box;background:#fff;border-radius:28px;padding:6px 12px;box-shadow:0 6px 0 rgba(27,31,75,.07),0 14px 30px rgba(27,31,75,.08)}
/* cm50–cm52 (движок «Науки»): поле само занимает всю высоту и уже светлое — без доски, раскладка как раньше */
.prog-page .tr-player[data-lv-scene][data-lv-eng="sc"] .tr-stage{flex:1 1 auto;margin:0;max-width:none;padding:0;background:none;border-radius:0;box-shadow:none}
/* 5) ответы: «конфетные» кнопки четырёх цветов, поле-«солнце», объёмная «Проверить» */
.prog-page .tr-player[data-lv-scene] .tr-btn--choice{--lvc:#AD78FF;background:#fff;border:3px solid var(--lvc);border-radius:22px;box-shadow:0 5px 0 var(--lvc);color:var(--lv-ink);font-weight:800;transition:transform .08s,box-shadow .08s}
.prog-page .tr-player[data-lv-scene] .tr-btn--choice:nth-child(4n+2){--lvc:#00D4CA}
.prog-page .tr-player[data-lv-scene] .tr-btn--choice:nth-child(4n+3){--lvc:#FF8A3D}
.prog-page .tr-player[data-lv-scene] .tr-btn--choice:nth-child(4n+4){--lvc:#3DA9FF}
.prog-page .tr-player[data-lv-scene] .tr-btn--choice:hover{background:#fff;border-color:var(--lvc)}
.prog-page .tr-player[data-lv-scene] .tr-btn--choice:active{transform:translateY(3px);box-shadow:0 2px 0 var(--lvc)}
.prog-page .tr-player[data-lv-scene] :is(.tr-btn--choice,.tr-btn).is-correct{--lvc:#3ED47A;background:#DDF8E6;border-color:#3ED47A;animation:lv-jump .5s cubic-bezier(.3,1.6,.5,1)}
.prog-page .tr-player[data-lv-scene] :is(.tr-btn--choice,.tr-btn).is-wrong{--lvc:#FF8A3D;background:#FFE6D2;border-color:#FF8A3D;animation:lv-shake .4s}
.prog-page .tr-player[data-lv-scene] .tr-answer-zone{margin-top:14px}border-radius:18px;color:var(--lv-ink);font-weight:800}
.prog-page .tr-player[data-lv-scene] .tr-input::placeholder{color:#B97A00;opacity:.85}
.prog-page .tr-player[data-lv-scene] .tr-input:focus{border-style:solid;box-shadow:0 0 0 4px rgba(255,200,61,.4)}
.prog-page .tr-player[data-lv-scene] .tr-input.is-correct{background:#DDF8E6;border:2.5px solid #3ED47A;animation:lv-jump .5s cubic-bezier(.3,1.6,.5,1)}
.prog-page .tr-player[data-lv-scene] .tr-input.is-wrong{background:#FFE6D2;border:2.5px solid #FF8A3D;animation:lv-shake .4s}
.prog-page .tr-player[data-lv-scene] .tr-stage .tr-btn--primary{box-shadow:0 5px 0 #00A69E;transition:transform .08s,box-shadow .08s}
.prog-page .tr-player[data-lv-scene] .tr-stage .tr-btn--primary:hover{box-shadow:0 5px 0 #00A69E;filter:saturate(1.1)}
.prog-page .tr-player[data-lv-scene] .tr-stage .tr-btn--primary:active{transform:translateY(3px);box-shadow:0 2px 0 #00A69E}
/* 6) подвал: звёзды хода и серия */
.prog-page .lv-stars{display:flex;align-items:center;gap:5px;flex:none}
.prog-page .lv-stars[hidden]{display:none}
.prog-page .lv-star{width:24px;height:24px;flex:none;display:block;background:#E3E7F3;clip-path:polygon(50% 4%,63% 35%,96% 38%,71% 60%,79% 93%,50% 75%,21% 93%,29% 60%,4% 38%,37% 35%)}
.prog-page .lv-star--miss{background:#C3C9DC}
.prog-page .lv-star--now{background:#FFC83D;animation:lv-pulse 1.4s ease-in-out infinite}
.prog-page .lv-star--got{clip-path:none;background:url(/img/glass/icon-stars-256.webp) center/118% no-repeat}
.prog-page .lv-star--new{animation:lv-starin .6s cubic-bezier(.3,1.6,.5,1)}
@keyframes lv-pulse{0%,100%{opacity:.45}50%{opacity:.95;transform:scale(1.12)}}
@keyframes lv-starin{0%{transform:scale(0) rotate(-90deg)}100%{transform:none}}
.prog-page .tr-player[data-lv-scene] .tr-shell__footer{padding-top:8px;padding-bottom:8px;min-height:0}border-radius:999px;background:#FFE6D2;color:#C75A10;font-weight:800}
.prog-page .tr-player[data-lv-scene] .tr-footer-streak .num{color:#C75A10}
/* 7) экранная клавиатура цифр (сенсорные экраны): полоса над подвалом, системная клавиатура не выезжает */
.prog-page .lv-pad{position:absolute;left:0;right:0;bottom:0;z-index:30;display:grid;grid-template-columns:repeat(10,minmax(0,1fr)) 1fr 1fr 1.6fr;gap:6px;padding:8px 10px calc(8px + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid var(--edge);box-shadow:0 -8px 24px rgba(27,31,75,.10)}
.prog-page .lv-pad[hidden]{display:none}
.prog-page .lv-key{height:52px;min-width:0;padding:0;border:0;border-radius:14px;background:#fff;box-shadow:0 4px 0 #D9CCFF,inset 0 0 0 2px #E8DEFF;font-family:var(--lv-num);font-weight:700;font-size:22px;color:var(--lv-ink);cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.prog-page .lv-key:active{transform:translateY(3px);box-shadow:0 1px 0 #D9CCFF,inset 0 0 0 2px #E8DEFF}
.prog-page .lv-key svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;display:block;margin:auto}
.prog-page .lv-key--del{background:#FFE6D2;box-shadow:0 4px 0 #FFC59C;color:#C75A10}
.prog-page .lv-key--sys{background:#EEF1FA;box-shadow:0 4px 0 #D5DAEA;color:#4A5170}
.prog-page .lv-key--ok{background:linear-gradient(135deg,#C6FF05,#00D4CA);box-shadow:0 4px 0 #00A69E;font-family:var(--font);font-weight:800;font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.prog-page .lv-key--dot,.prog-page .lv-key--neg{display:none}
.prog-page .lv-pad--dec{grid-template-columns:repeat(10,minmax(0,1fr)) 1fr 1fr 1fr 1fr 1.6fr}
.prog-page .lv-pad--dec .lv-key--dot,.prog-page .lv-pad--dec .lv-key--neg{display:block}
.prog-page .tr-player.lv-kb-open .tr-shell__content{padding-bottom:84px}
.prog-page .tr-player.lv-kb-open .tr-big-kosmik.visible{bottom:150px}
/* 8) реакции: Лими радуется / думает; «верно» подпрыгивает, «почти» покачивается (без красного) */
.prog-page .tr-player.lv-joy .lv-limi{animation:lv-cheer .5s ease-in-out 2}
.prog-page .tr-player.lv-oops .lv-limi{animation:lv-think .6s ease-in-out}
@keyframes lv-cheer{50%{transform:translateY(-12px) rotate(4deg)}}
@keyframes lv-think{30%{transform:rotate(-6deg)}70%{transform:rotate(5deg)}}
@keyframes lv-jump{0%{transform:scale(.92)}55%{transform:scale(1.1) translateY(-6px)}100%{transform:none}}
@keyframes lv-shake{20%{transform:translateX(-6px)}40%{transform:translateX(6px)}60%{transform:translateX(-4px)}80%{transform:translateX(3px)}}
@media (prefers-reduced-motion:reduce){.prog-page .tr-player[data-lv-scene] :is(.lv-limi,.lv-star,.tr-btn,.tr-input,.lv-key),.prog-page .tr-player[data-lv-scene] .tr-stage *{animation:none!important}}
/* 9) телефон */
@media (max-width:700px){
  .prog-page .tr-player[data-lv-scene] .tr-shell__content{padding:6px 6px 4px}
  .prog-page .tr-player[data-lv-scene] .tr-stage{padding:8px 6px 6px;border-radius:22px}
  .prog-page .tr-player[data-lv-scene] .tr-task-scroll{margin-bottom:4px;gap:2px}
  .prog-page .tr-player[data-lv-scene] .tr-task-scroll>[data-tr-task-text]{font-size:15px;padding:8px 11px;border-radius:16px;margin-bottom:4px}
  .prog-page .lv-limi{width:46px;height:46px}
  .prog-page .lv-star{width:17px;height:17px}
  .prog-page .lv-stars{gap:2px}
  .prog-page .tr-shell__footer.lv-has-stars [data-tr-counter]{display:none}
  .prog-page .tr-player[data-lv-scene] .tr-footer-streak{height:26px;padding:0 8px;font-size:12px}
  .prog-page .lv-pad,.prog-page .lv-pad--dec{grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;padding:8px 8px calc(8px + env(safe-area-inset-bottom,0px))}
  .prog-page .lv-key{height:46px;font-size:20px}
  .prog-page .lv-key--ok{grid-column:span 2}
  .prog-page .lv-pad--dec .lv-key--ok{grid-column:span 1}
  .prog-page .lv-pad:not(.lv-pad--dec) .lv-key--del{grid-column:span 2}
  .prog-page .tr-player.lv-kb-open .tr-shell__content{padding-bottom:176px}
}
/* 9.9 Один Лими: он в сцене (над заданием). Нижний «большой Лими с подсказкой» тренажёров скрыт — остаётся карточка подсказки
   (владелец 19.11.2026: «Лими и сверху, и снизу — непрофессионально»); поза Лими в сцене при подсказке — «думает» (shell.js П10) */
.ed-prog .tr-big-kosmik img{display:none}
.ed-prog .tr-big-kosmik .bubble{border:2px solid var(--purple,#AD78FF);border-radius:16px;box-shadow:0 10px 28px rgba(68,76,131,.22);font-weight:600}
.ed-prog .tr-big-kosmik .bubble::after{display:none}

/* 10) «Живой вид»: правки отдельных тренажёров (вид; разметку строят сами тренажёры) */
/* 10.1 пример (tr10 и все, где есть .tr-equation): число — цветная плитка; 1-е — небо, 2-е — роза, дальше — солнце, фиолет */
.prog-page .tr-player[data-lv-scene] .tr-equation{font-family:var(--lv-num);font-size:42px;letter-spacing:0;gap:12px;margin:14px 0}
.prog-page .tr-player[data-lv-scene] .tr-equation>span:not(.op):not(.eq):not(.small){--tc:var(--lv-sky);--td:var(--lv-sky-d);--ts:var(--lv-sky-s);min-width:84px;height:88px;padding:0 16px;box-sizing:border-box;border-radius:22px;display:inline-grid;place-items:center;background:var(--ts);color:var(--td);box-shadow:0 6px 0 var(--tc);line-height:1}
.prog-page .tr-player[data-lv-scene] .tr-equation>span:nth-child(3):not(.op):not(.eq):not(.small){--tc:var(--lv-rose);--td:var(--lv-rose-d);--ts:var(--lv-rose-s)}
.prog-page .tr-player[data-lv-scene] .tr-equation>span:nth-child(5):not(.op):not(.eq):not(.small){--tc:var(--lv-sun);--td:var(--lv-sun-d);--ts:var(--lv-sun-s)}
.prog-page .tr-player[data-lv-scene] .tr-equation>span:nth-child(n+7):not(.op):not(.eq):not(.small){--tc:var(--lv-violet);--td:var(--lv-violet-d);--ts:var(--lv-violet-s)}
.prog-page .tr-player[data-lv-scene] .tr-equation>span:is(.ask,.blank){background:#fff;color:var(--lv-sun-d);border:3px dashed var(--lv-sun);box-shadow:none;padding:0 13px;animation:lv-wiggle 2.4s ease-in-out infinite}
.prog-page .tr-player[data-lv-scene] .tr-equation :is(.op,.eq){color:var(--lv-ink)}
@keyframes lv-wiggle{0%,80%,100%{transform:rotate(0)}85%{transform:rotate(-5deg)}92%{transform:rotate(5deg)}}
.prog-page .tr-player[data-lv-scene] .tr-choices .tr-btn--choice{font-family:var(--lv-num);font-weight:700;font-size:26px;min-height:76px}
/* фишки-опора (tr10: после ошибки) и общая «стеклянная» фишка */
.prog-page .lv-tf{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;width:max-content;max-width:100%;margin:0 auto 10px;padding:10px 12px;border-radius:18px;background:#F4F6FC;animation:lv-jump .5s cubic-bezier(.3,1.6,.5,1)}
.prog-page .lv-dot{--c:#3DA9FF;--cd:#1272C4;width:28px;height:28px;border-radius:50%;flex:none;display:block;background:radial-gradient(circle at 32% 26%,rgba(255,255,255,.95) 0 9%,rgba(255,255,255,0) 28%),radial-gradient(circle at 50% 45%,var(--c) 0 58%,var(--cd) 115%);box-shadow:inset 0 -3px 4px rgba(0,0,0,.10),0 2px 0 var(--cd)}
.prog-page .lv-dot--b{--c:#FF5C8A;--cd:#C92A5C}
.prog-page .lv-dot--off{--c:#D5DAEA;--cd:#B4BBD2;opacity:.75}
.prog-page .lv-tf .lv-dot:nth-child(5n+1):not(:first-child){margin-left:8px}
/* 10.2 рамка десяти (tr31): своя рамка — свой цвет, крупные белые клетки, рамки рядом на широком экране */
.prog-page .tr-player[data-lv-scene] .tr-frames{flex-direction:row;flex-wrap:wrap;justify-content:center;gap:14px;margin:10px 0}
.prog-page .tr-player[data-lv-scene] .tr-frame{--fc:var(--lv-sky);--fs:var(--lv-sky-s);grid-template-columns:repeat(5,60px);grid-template-rows:repeat(2,60px);gap:7px;padding:11px;border-radius:22px;border:3px solid var(--fc);background:var(--fs);box-shadow:0 5px 0 var(--fc)}
.prog-page .tr-player[data-lv-scene] .tr-frame[data-tf-frame="b"]{--fc:var(--lv-rose);--fs:var(--lv-rose-s)}
.prog-page .tr-player[data-lv-scene] .tr-frame__cell{border:0;border-radius:14px;background:rgba(255,255,255,.62);box-shadow:inset 0 0 0 2px rgba(27,31,75,.08)}
.prog-page .tr-player[data-lv-scene] .tr-frame__cell:hover{background:#fff}
.prog-page .tr-player[data-lv-scene] .tr-frame__cell img{width:46px;height:46px;animation:lv-jump .4s cubic-bezier(.3,1.6,.5,1)}
/* 10.3 блоки разрядов (tr05): цвет предмета = разряд (единицы — солнце, десятки — бирюза, сотни — фиолет, тысяча — роза); лоток = число */
.prog-page .tr-player[data-lv-scene] .tr-b10-zone{background:none;align-items:stretch;gap:14px;padding:4px;margin:8px 0}
.prog-page .tr-player[data-lv-scene] .tr-b10-zone>.tr-b10-group{justify-content:flex-end;padding:14px 16px 10px;border-radius:22px;background:var(--lv-sky-s);border:3px solid var(--lv-sky)}
.prog-page .tr-player[data-lv-scene] .tr-b10-zone>.tr-b10-group~.tr-b10-group{background:var(--lv-rose-s);border-color:var(--lv-rose)}
.prog-page .tr-player[data-lv-scene] .tr-b10-group__row{align-items:flex-end;gap:6px;max-width:260px}
.prog-page .tr-player[data-lv-scene] .tr-b10-group__lbl{font-family:var(--lv-num);font-weight:700;font-size:18px;color:var(--lv-ink)}
.prog-page .tr-player[data-lv-scene] :is(.tr-b10-unit,.tr-b10-rod,.tr-b10-flat,.tr-b10-cube){border:0;box-sizing:border-box}
.prog-page .tr-player[data-lv-scene] .tr-b10-unit{width:20px;height:20px;border-radius:6px;background:linear-gradient(160deg,#FFE78C,#FFC83D 60%,#F4AE10);box-shadow:inset 0 2px 0 rgba(255,255,255,.75),inset 0 -3px 0 rgba(150,95,0,.22),0 2px 0 #B97A00}
.prog-page .tr-player[data-lv-scene] .tr-b10-rod{width:20px;height:100px;border-radius:7px;background:repeating-linear-gradient(180deg,transparent 0 8px,rgba(0,95,90,.4) 8px 10px),linear-gradient(90deg,#7CF3EC,#00D4CA 55%,#00ABA3);box-shadow:inset 2px 0 0 rgba(255,255,255,.6),0 3px 0 #007A73}
.prog-page .tr-player[data-lv-scene] .tr-b10-flat{width:70px;height:70px;border-radius:9px;background:repeating-linear-gradient(180deg,transparent 0 5px,rgba(70,30,150,.3) 5px 7px),repeating-linear-gradient(90deg,transparent 0 5px,rgba(70,30,150,.3) 5px 7px),linear-gradient(160deg,#CDB0FF,#AD78FF 60%,#9258F2);box-shadow:inset 0 2px 0 rgba(255,255,255,.55),0 3px 0 #7444DB}
.prog-page .tr-player[data-lv-scene] .tr-b10-cube{background:linear-gradient(160deg,#FF9DB8,#FF5C8A 60%,#E83E72);box-shadow:6px 6px 0 #C92A5C,inset 0 2px 0 rgba(255,255,255,.5)}
.prog-page .tr-player[data-lv-scene] .tr-b10-key{background:#fff;border:2px solid #E8DEFF;border-radius:16px;box-shadow:0 4px 0 #D9CCFF;color:var(--lv-ink)}
.prog-page .tr-player[data-lv-scene] .tr-b10-count{color:var(--lv-sun-d);font-family:var(--lv-num)}
/* 10.4 столбик (tr06): колонка = разряд (справа налево: солнце, бирюза, фиолет, роза, небо, трава), крупные клетки ответа */
.prog-page .tr-player[data-lv-scene] .tr-col-wrap{background:none;border:0;padding:6px 8px;gap:6px}
.prog-page .tr-player[data-lv-scene] .tr-col-cell{--cc:var(--lv-sun);--cd:var(--lv-sun-d);--cs:var(--lv-sun-s);width:62px;height:62px;font-family:var(--lv-num);font-size:32px;border-radius:16px;background:var(--cs);color:var(--cd)}
.prog-page .tr-player[data-lv-scene] .tr-col-input{--cc:var(--lv-sun);--cd:var(--lv-sun-d);width:62px;height:64px;box-sizing:border-box;font-family:var(--lv-num);font-size:32px;border-radius:16px;background:#fff;border:3px solid var(--cc);color:var(--cd)}
.prog-page .tr-player[data-lv-scene] .tr-col-row>:nth-last-child(2){--cc:var(--lv-teal);--cd:var(--lv-teal-d);--cs:var(--lv-teal-s)}
.prog-page .tr-player[data-lv-scene] .tr-col-row>:nth-last-child(3){--cc:var(--lv-violet);--cd:var(--lv-violet-d);--cs:var(--lv-violet-s)}
.prog-page .tr-player[data-lv-scene] .tr-col-row>:nth-last-child(4){--cc:var(--lv-rose);--cd:var(--lv-rose-d);--cs:var(--lv-rose-s)}
.prog-page .tr-player[data-lv-scene] .tr-col-row>:nth-last-child(5){--cc:var(--lv-sky);--cd:var(--lv-sky-d);--cs:var(--lv-sky-s)}
.prog-page .tr-player[data-lv-scene] .tr-col-row>:nth-last-child(6){--cc:var(--lv-grass);--cd:var(--lv-grass-d);--cs:var(--lv-grass-s)}
.prog-page .tr-player[data-lv-scene] .tr-col-cell:is(:empty,.tr-col-cell--op){background:none}
.prog-page .tr-player[data-lv-scene] .tr-col-cell--op{width:34px;color:var(--lv-ink)}
.prog-page .tr-player[data-lv-scene] .tr-col-cell--btn{border:3px solid transparent;cursor:pointer}
.prog-page .tr-player[data-lv-scene] .tr-col-cell--btn:hover{border-color:var(--cc);background:var(--cs)}
.prog-page .tr-player[data-lv-scene] .tr-col-cell--btn.is-correct{background:var(--lv-grass-s);border-color:var(--lv-grass);color:var(--lv-grass-d)}
.prog-page .tr-player[data-lv-scene] .tr-col-cell--btn.is-wrong{background:var(--lv-orange-s);border-color:var(--lv-orange);color:var(--lv-orange-d)}
.prog-page .tr-player[data-lv-scene] .tr-col-line{height:6px;border-radius:99px;background:var(--lv-ink);margin:2px 0}
.prog-page .tr-player[data-lv-scene] .tr-col-input:focus{border-color:var(--cc);box-shadow:0 0 0 5px rgba(198,255,5,.75)}
.prog-page .tr-player[data-lv-scene] .tr-col-input.is-correct{background:var(--lv-grass-s);border-color:var(--lv-grass);color:var(--lv-grass-d)}
.prog-page .tr-player[data-lv-scene] .tr-col-input.is-wrong{background:var(--lv-orange-s);border-color:var(--lv-orange)}
.prog-page .tr-player[data-lv-scene] .tr-col-input--missing{border-style:dashed}
/* координатная плоскость (tr42): чертёж не выше 300 px — с полями X, Y и «Проверить» помещается на доске 1024×700 */
.prog-page .tr-player[data-lv-scene] svg.tr-geo-svg[data-cp-plane]{width:auto;max-width:100%;max-height:300px}
/* 10.5 числовая прямая (tr01, tr13): цветная дорожка, «кувшинки» вместо планет, крупные числа, по дорожке ходит Лими */
.prog-page .tr-player[data-lv-scene] .tr-line-wrap{margin-top:12px}
.prog-page .tr-player[data-lv-scene] .tr-line{height:14px;border-radius:99px;background:linear-gradient(90deg,#3DA9FF,#00D4CA);box-shadow:0 4px 0 #1272C4}
.prog-page .tr-player[data-lv-scene] img.tr-line-point{width:30px;height:30px;border-radius:50%;object-fit:none;object-position:-9999px -9999px;background:radial-gradient(circle at 34% 28%,#8BF0AE 0 30%,#3ED47A 70%);box-shadow:0 3px 0 #16924A;filter:none}
.prog-page .tr-player[data-lv-scene] .tr-line-label{top:24px;font-family:var(--lv-num);font-weight:700;font-size:15px;color:var(--lv-ink);text-shadow:none}
.prog-page .tr-player[data-lv-scene] .tr-marker__body{width:64px;height:64px}
.prog-page .tr-player[data-lv-scene] .tr-marker__img{filter:drop-shadow(0 4px 6px rgba(27,31,75,.2))}
.prog-page .tr-player[data-lv-scene] .tr-marker__char{content:url(/img/limi/wave-256.webp);width:64px;height:64px;filter:none;object-fit:contain}
.prog-page .tr-player[data-lv-scene] .tr-marker__bubble{background:var(--lv-sun);color:var(--lv-ink);font-family:var(--lv-num);box-shadow:0 3px 0 var(--lv-sun-d)}
.prog-page .tr-player[data-lv-scene] .tr-line-missing{border-color:var(--lv-orange);color:var(--lv-orange-d);background:#fff}
@media (max-width:700px){
  .prog-page .tr-player[data-lv-scene] .tr-equation{font-size:32px;gap:7px;margin:10px 0}
  .prog-page .tr-player[data-lv-scene] .tr-equation>span:not(.op):not(.eq):not(.small){min-width:60px;height:66px;padding:0 10px;border-radius:18px}
  .prog-page .tr-player[data-lv-scene] .tr-choices .tr-btn--choice{font-size:24px;min-height:72px}
  .prog-page .lv-dot{width:23px;height:23px}
  .prog-page .lv-tf{gap:5px;padding:8px}
  .prog-page .tr-player[data-lv-scene] .tr-frames{gap:10px}
  .prog-page .tr-player[data-lv-scene] .tr-frame{grid-template-columns:repeat(5,52px);grid-template-rows:repeat(2,52px);gap:6px;padding:9px;border-radius:20px}
  .prog-page .tr-player[data-lv-scene] .tr-frame__cell img{width:40px;height:40px}
  .prog-page .tr-player[data-lv-scene] .tr-b10-zone{gap:8px}
  .prog-page .tr-player[data-lv-scene] .tr-b10-zone>.tr-b10-group{padding:10px 8px 8px;border-radius:18px}
  .prog-page .tr-player[data-lv-scene] .tr-b10-unit{width:16px;height:16px;border-radius:5px}
  .prog-page .tr-player[data-lv-scene] .tr-b10-rod{width:16px;height:80px;background:repeating-linear-gradient(180deg,transparent 0 6px,rgba(0,95,90,.4) 6px 8px),linear-gradient(90deg,#7CF3EC,#00D4CA 55%,#00ABA3)}
  .prog-page .tr-player[data-lv-scene] .tr-b10-flat{width:56px;height:56px}
  .prog-page .tr-player[data-lv-scene] .tr-col-cell,.prog-page .tr-player[data-lv-scene] .tr-col-input{width:42px;height:48px;font-size:24px;border-radius:12px}
  .prog-page .tr-player[data-lv-scene] .tr-col-cell--op{width:24px}
  .prog-page .tr-player[data-lv-scene] .tr-col-row{gap:5px}
  .prog-page .tr-player[data-lv-scene] img.tr-line-point{width:22px;height:22px}
  .prog-page .tr-player[data-lv-scene] .tr-line-label{font-size:11px;top:18px}
  .prog-page .tr-player[data-lv-scene] .tr-marker__body{width:52px;height:52px}
}
/* 10.6 «Живой вид»: карточки-ответы остальных тренажёров (tr02, tr03, tr04, tr10, tr17, tr25, tr30, tr33 и др.) —
   белая «конфетная» карточка с цветной кромкой; цвет идёт по кругу (разнообразие), размеры не меняются */
.prog-page .tr-player[data-lv-scene] :is(.tr-chip-num,.tr-vs-card,.tr-bar-card,.tr-shape-card,.tr-price-card,.tr-money-key,.tr-digit-key,.tr-family-cell,.tr-align-card){--kc:var(--lv-violet);--kd:var(--lv-violet-d);--ks:var(--lv-violet-s);background:#fff;border:2.5px solid var(--kc);box-shadow:0 4px 0 var(--kc);color:var(--lv-ink)}
.prog-page .tr-player[data-lv-scene] :is(.tr-chip-num,.tr-vs-card,.tr-bar-card,.tr-shape-card,.tr-price-card,.tr-money-key,.tr-digit-key,.tr-family-cell,.tr-align-card,.tr-mem-card):nth-child(6n+2){--kc:var(--lv-teal);--kd:var(--lv-teal-d);--ks:var(--lv-teal-s)}
.prog-page .tr-player[data-lv-scene] :is(.tr-chip-num,.tr-vs-card,.tr-bar-card,.tr-shape-card,.tr-price-card,.tr-money-key,.tr-digit-key,.tr-family-cell,.tr-align-card,.tr-mem-card):nth-child(6n+3){--kc:var(--lv-orange);--kd:var(--lv-orange-d);--ks:var(--lv-orange-s)}
.prog-page .tr-player[data-lv-scene] :is(.tr-chip-num,.tr-vs-card,.tr-bar-card,.tr-shape-card,.tr-price-card,.tr-money-key,.tr-digit-key,.tr-family-cell,.tr-align-card,.tr-mem-card):nth-child(6n+4){--kc:var(--lv-sky);--kd:var(--lv-sky-d);--ks:var(--lv-sky-s)}
.prog-page .tr-player[data-lv-scene] :is(.tr-chip-num,.tr-vs-card,.tr-bar-card,.tr-shape-card,.tr-price-card,.tr-money-key,.tr-digit-key,.tr-family-cell,.tr-align-card,.tr-mem-card):nth-child(6n+5){--kc:var(--lv-rose);--kd:var(--lv-rose-d);--ks:var(--lv-rose-s)}
.prog-page .tr-player[data-lv-scene] :is(.tr-chip-num,.tr-vs-card,.tr-bar-card,.tr-shape-card,.tr-price-card,.tr-money-key,.tr-digit-key,.tr-family-cell,.tr-align-card,.tr-mem-card):nth-child(6n+6){--kc:var(--lv-grass);--kd:var(--lv-grass-d);--ks:var(--lv-grass-s)}
.prog-page .tr-player[data-lv-scene] :is(.tr-chip-num,.tr-vs-card,.tr-bar-card,.tr-shape-card,.tr-price-card--btn,.tr-money-key,.tr-digit-key):hover{border-color:var(--kc);background:var(--ks)}
.prog-page .tr-player[data-lv-scene] :is(.tr-chip-num,.tr-vs-card,.tr-bar-card,.tr-shape-card,.tr-price-card,.tr-family-cell):is(.is-correct,.is-picked){--kc:var(--lv-grass);background:var(--lv-grass-s);border-color:var(--lv-grass);opacity:1}
.prog-page .tr-player[data-lv-scene] :is(.tr-chip-num,.tr-vs-card,.tr-bar-card,.tr-shape-card,.tr-price-card):is(.is-wrong){--kc:var(--lv-orange);background:var(--lv-orange-s);border-color:var(--lv-orange);animation:lv-shake .4s}
.prog-page .tr-player[data-lv-scene] .tr-shape-card.is-missed{--kc:var(--lv-sun);border-color:var(--lv-sun);background:var(--lv-sun-s)}
.prog-page .tr-player[data-lv-scene] :is(.tr-chip-num,.tr-digit-key,.tr-family-cell,.tr-vs-card .num,.tr-bar-card .lbl){font-family:var(--lv-num);font-weight:700}
.prog-page .tr-player[data-lv-scene] .tr-family-cell{background:var(--ks);color:var(--kd)}
.prog-page .tr-player[data-lv-scene] .tr-family-cell--ask{background:#fff;border-style:dashed;--kc:var(--lv-sun);color:var(--lv-sun-d)}
/* фигуры (tr17): каждая карточка — фигура своего цвета */
.prog-page .tr-player[data-lv-scene] .tr-shape-card{color:var(--kd)}
.prog-page .tr-player[data-lv-scene] .tr-shape-card svg :is(polygon,rect,ellipse,circle,path){fill:var(--kc);fill-opacity:.4}
/* пары на память (tr30, tr10): рубашка — яркая, по кругу; открытая — белая с цветной кромкой; найденная — «трава» */
.prog-page .tr-player[data-lv-scene] .tr-mem-card{--kc:var(--lv-violet);--kd:var(--lv-violet-d);--ks:var(--lv-violet-s);border:0;border-radius:18px;background:linear-gradient(160deg,var(--kc),var(--kd));box-shadow:0 5px 0 var(--kd);color:var(--lv-ink);font-family:var(--lv-num)}
.prog-page .tr-player[data-lv-scene] .tr-mem-card--text{font-family:var(--font-sans)}
.prog-page .tr-player[data-lv-scene] .tr-mem-card.is-open{background:#fff;box-shadow:0 5px 0 var(--kc),inset 0 0 0 3px var(--kc)}
.prog-page .tr-player[data-lv-scene] .tr-mem-card.is-matched{background:var(--lv-grass-s);box-shadow:inset 0 0 0 3px var(--lv-grass);color:var(--lv-grass-d)}
/* таблица разрядов (tr02): колонка = разряд, как в столбике */
.prog-page .tr-player[data-lv-scene] .tr-pv-col{--cc:var(--lv-sun);--cd:var(--lv-sun-d);--cs:var(--lv-sun-s)}
.prog-page .tr-player[data-lv-scene] .tr-pv-col:nth-last-child(2){--cc:var(--lv-teal);--cd:var(--lv-teal-d);--cs:var(--lv-teal-s)}
.prog-page .tr-player[data-lv-scene] .tr-pv-col:nth-last-child(3){--cc:var(--lv-violet);--cd:var(--lv-violet-d);--cs:var(--lv-violet-s)}
.prog-page .tr-player[data-lv-scene] .tr-pv-col:nth-last-child(4){--cc:var(--lv-rose);--cd:var(--lv-rose-d);--cs:var(--lv-rose-s)}
.prog-page .tr-player[data-lv-scene] .tr-pv-col:nth-last-child(5){--cc:var(--lv-sky);--cd:var(--lv-sky-d);--cs:var(--lv-sky-s)}
.prog-page .tr-player[data-lv-scene] .tr-pv-col:nth-last-child(6){--cc:var(--lv-grass);--cd:var(--lv-grass-d);--cs:var(--lv-grass-s)}
.prog-page .tr-player[data-lv-scene] .tr-pv-col__head{color:var(--cd);font-weight:800}
.prog-page .tr-player[data-lv-scene] .tr-pv-slot{border:3px dashed var(--cc);background:var(--cs);color:var(--cd);font-family:var(--lv-num);border-radius:18px}
.prog-page .tr-player[data-lv-scene] .tr-pv-slot:is(.is-filled,.tr-pv-slot--static){border-style:solid;border-color:var(--cc)}
.prog-page .tr-player[data-lv-scene] .tr-pv-slot.is-active{background:#fff;border-color:var(--cc);box-shadow:0 0 0 5px rgba(198,255,5,.75)}
.prog-page .tr-player[data-lv-scene] .tr-expanded-row{font-family:var(--lv-num)}
.prog-page .tr-player[data-lv-scene] .tr-expanded-row .plus{color:var(--lv-ink)}
/* счёт с шагом (tr04): цепочка — цветные плитки; «платформы» — крупные подписи */
.prog-page .tr-player[data-lv-scene] .tr-chain{font-family:var(--lv-num)}
.prog-page .tr-player[data-lv-scene] .tr-chain__item{color:var(--lv-sky-d);background:var(--lv-sky-s);border-radius:12px;padding:2px 12px;box-shadow:0 3px 0 var(--lv-sky)}
.prog-page .tr-player[data-lv-scene] .tr-chain__item:nth-of-type(3n+2){color:var(--lv-rose-d);background:var(--lv-rose-s);box-shadow:0 3px 0 var(--lv-rose)}
.prog-page .tr-player[data-lv-scene] .tr-chain__item:nth-of-type(3n){color:var(--lv-teal-d);background:var(--lv-teal-s);box-shadow:0 3px 0 var(--lv-teal)}
.prog-page .tr-player[data-lv-scene] .tr-chain__next{color:var(--lv-sun-d);border:3px dashed var(--lv-sun);background:#fff;border-radius:12px}
.prog-page .tr-player[data-lv-scene] .tr-chain__arrow{color:var(--lv-ink)}
.prog-page .tr-player[data-lv-scene] .tr-platform{color:var(--lv-ink)}
.prog-page .tr-player[data-lv-scene] .tr-platform .lbl{font-family:var(--lv-num);font-weight:700}
.prog-page .tr-player[data-lv-scene] .tr-platform.is-picked .lbl{color:var(--lv-grass-d)}
.prog-page .tr-player[data-lv-scene] .tr-platform.is-wrong .lbl{color:var(--lv-orange-d)}
.prog-page .tr-player[data-lv-scene] .tr-order-line{color:var(--lv-teal-d);font-family:var(--lv-num)}
/* числовой домик (tr33): крыша-солнце, комнаты — небо и роза */
.prog-page .tr-player[data-lv-scene] .tr-house__roof{background:linear-gradient(160deg,#FFE27A,#FFC83D 60%,#FF9F3D);color:var(--lv-ink);box-shadow:0 6px 0 #C97A00;font-family:var(--lv-num)}
.prog-page .tr-player[data-lv-scene] .tr-house__room{border:3px solid var(--lv-sky);background:var(--lv-sky-s);color:var(--lv-sky-d);font-family:var(--lv-num);border-radius:18px}
.prog-page .tr-player[data-lv-scene] .tr-house__room~.tr-house__room{border-color:var(--lv-rose);background:var(--lv-rose-s);color:var(--lv-rose-d)}
/* таймер скорости, подсказка, «небо фактов», корзины */
.prog-page .tr-player[data-lv-scene] .tr-speed-timer{font-family:var(--lv-num);color:var(--lv-sun-d);text-shadow:none}
.prog-page .tr-player[data-lv-scene] .tr-speed-timer.is-low{color:var(--lv-orange-d)}
.prog-page .tr-player[data-lv-scene] .tr-hint-box{background:var(--lv-sun-s);border:2px dashed var(--lv-sun);color:var(--lv-ink);border-radius:16px;font-weight:600}
.prog-page .tr-player[data-lv-scene] .tr-sky-planet .lbl{font-family:var(--lv-num);font-size:12px;color:var(--lv-ink)}
.prog-page .tr-player[data-lv-scene] .tr-sky-planet--ask .lbl{color:var(--lv-sun-d)}
.prog-page .tr-player[data-lv-scene] .tr-basket{border-color:var(--lv-orange);background:var(--lv-orange-s)}
.prog-page .tr-player[data-lv-scene] .tr-basket:nth-child(3n+2){border-color:var(--lv-sky);background:var(--lv-sky-s)}
.prog-page .tr-player[data-lv-scene] .tr-basket:nth-child(3n){border-color:var(--lv-grass);background:var(--lv-grass-s)}
/* ===== Мои звёзды (st-*) — /stars, плашка на главной ученика, карточка в «Росте» ===== */
.st-level{display:flex;align-items:center;gap:22px}
.st-badge{flex:none;width:112px;height:112px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--ed-lime),var(--ed-teal));color:#141236;box-shadow:0 10px 26px rgba(0,212,202,.28)}
.st-badge small{font-size:12px;font-weight:800;opacity:.8}
.st-badge b{font-size:44px;font-weight:900;line-height:1}
.st-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px}
.st-total{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:700}
.st-total .ic{width:26px;height:26px;stroke:var(--star-edge);fill:var(--star)}
.st-total b{font-size:30px;font-weight:900}
.st-bar{margin-top:2px;height:12px}.st-bar i{background:linear-gradient(90deg,var(--ed-lime),var(--ed-teal))}
.st-hint{font-size:13px;font-weight:600}
.st-days{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;padding:4px 12px;border-radius:99px;background:var(--tint4);color:var(--warn);font-weight:800;font-size:13px}
.st-ach{display:flex;align-items:center;gap:14px}
.st-ach>div{display:flex;flex-direction:column;gap:2px}.st-ach>div b{font-size:16px;font-weight:800}.st-ach>div span{font-size:13px;color:var(--soft);font-weight:600}
.st-ach__ic{flex:none;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:var(--tint3);color:var(--purple-ink)}
.st-ach__ic .ic{width:24px;height:24px}
.st-kpis{margin-top:16px}
.st-awards{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px}
.st-awards .st-aw{display:grid;grid-template-columns:48px 1fr;column-gap:12px;align-items:center;background:var(--surface);border:1px solid var(--edge)}
.st-aw .st-ach__ic{grid-row:1/3}
.st-aw b{font-size:14px;font-weight:800;align-self:end}
.st-awards .st-aw>span:last-child{align-self:start;font-size:12.5px}
.st-awards .st-aw.is-on{border-color:var(--purple);background:linear-gradient(135deg,rgba(198,255,5,.12),rgba(173,120,255,.10))}
.st-aw.is-on .st-ach__ic{background:linear-gradient(135deg,var(--ed-lime),var(--ed-teal));color:#141236}
.st-aw.is-off{opacity:.72}.st-aw.is-off .st-ach__ic{background:var(--edge);color:var(--soft)}.st-aw.is-off b{color:var(--soft)}
.st-pill{display:inline-flex;align-items:center;gap:6px;margin-top:10px;padding:6px 14px;border-radius:99px;min-height:var(--ctl-h-sm);background:var(--warn-soft);color:var(--ink);font-weight:700;font-size:var(--fs-sm);transition:box-shadow var(--t-fast)}
.st-pill .ic{fill:var(--star);stroke:var(--star-edge);stroke-width:1.5}
.st-pill:hover{box-shadow:var(--glow)}

.st-link{transition:box-shadow .18s}.st-link:hover{box-shadow:var(--glow)}
.st-link h2 a{display:inline-flex;align-items:center;gap:8px}
.st-link h2 .ic{stroke:var(--star-edge)}
@media (max-width:600px){
  .st-level{flex-direction:column;text-align:center}
  .st-main{align-items:center;width:100%}.st-bar{width:100%}.st-days{align-self:center}
}

/* ===== Урок: сбор и список (ls-*), вход по коду и «Урок окончен» (jn-*) — docs/design/Урок_и_программы.md §4.1–4.4, §5.1–5.6 =====
   Светлый вид edlimi: белые карточки, скругления, основная кнопка — лайм с тёмно-синим текстом (.ls-go). */




.pg-acts>form,.pg-bar>form{display:inline-flex}
.ls-ph{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:22px 0 16px}
.ls-ph h1{font-size:var(--fs-h1);font-weight:800;letter-spacing:-.02em}
.ls-ph p{margin-top:6px;color:var(--soft);font-weight:500;font-size:15px;max-width:640px}
.ls-tip{display:flex;align-items:center;gap:10px;margin:0 0 16px;padding:12px 16px;border-radius:16px;background:var(--tint2);border:1px solid var(--edge);font-weight:700;font-size:13.5px;color:var(--ink)}
.ls-tip .ic{color:var(--purple-ink);width:20px;height:20px}
.ls-draft{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 12px;padding:12px 16px;border-radius:18px;background:var(--surface);border:1.5px dashed var(--ed-violet)}
.ls-draft b{font-weight:800}
.ls-draft .btn{margin-left:auto}
.ls-badge{font-size:12px;font-weight:800;color:var(--purple-ink);background:var(--tint3);border-radius:99px;padding:3px 10px}
[data-theme="dark"] .ls-badge{color:#d9c2ff}
.ls-tabs{margin:18px 0 14px}
.ls-empty{display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;padding:34px 18px;border:1.5px dashed var(--edge-2);border-radius:24px;color:var(--soft);font-weight:600}
.ls-empty-ic{width:44px;height:44px;color:var(--ed-violet)}
.ls-list{display:flex;flex-direction:column;gap:10px}
.ls-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:14px;padding:14px 16px;border-radius:20px;background:var(--surface);border:1px solid var(--edge)}
.ls-row-main{display:flex;flex-direction:column;gap:4px;min-width:0}
.ls-row-main b{font-size:16px;font-weight:800;overflow:hidden;text-overflow:ellipsis}
.ls-row-main small{display:flex;align-items:center;gap:6px;font-size:12.5px}
.ls-row-meta,.ls-row-acts,.ls-pills{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ls-row-acts form,.ls-pills form{display:inline-flex}
.ls-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:99px;background:var(--tint2);font-weight:700;font-size:12.5px;color:var(--ink);white-space:nowrap}
.ls-pill .ic{width:15px;height:15px}
.ls-pill.is-all{background:var(--ed-lime);color:#141236}
.ls-pill.is-help{background:var(--err-soft);color:var(--err)}
.ls-pill-code b{font-variant-numeric:tabular-nums;letter-spacing:1px}
.ls-steps{display:flex;gap:6px;list-style:none;padding:5px;border-radius:18px;background:var(--surface);border:1px solid var(--edge)}
.ls-steps li{display:flex;align-items:center;gap:8px;padding:8px 14px;border-radius:14px;font-weight:800;font-size:13px;color:var(--soft)}
.ls-steps li span{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--tint3);font-size:12px}
.ls-steps li span .ic{width:14px;height:14px}
.ls-steps li.on{background:var(--ed-lime);color:#141236}
.ls-steps li.on span{background:#fff}
.ls-steps li.is-done span{background:var(--ed-teal);color:#141236}
/* шаг «Что»: каталог слева, липкая корзина справа */
.ls-build{display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:18px;align-items:start}
.ls-cat .dtabs{margin-bottom:14px}
.ls-dom{margin:0 0 18px}
.ls-dom h2{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:800;margin-bottom:10px}
.ls-topics{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px}
.ls-topic{display:flex;flex-direction:column;gap:6px;padding:12px 14px;border-radius:18px;background:var(--surface);border:1px solid var(--edge)}
.ls-topic b{font-size:14px;font-weight:800;line-height:1.3}
.ls-topic small{font-size:12px;font-weight:700;color:var(--soft)}
.ls-topic form{margin-top:auto}
.ls-topic .btn{width:100%}
.ls-topic.is-in{border-color:var(--ed-teal);background:linear-gradient(180deg,rgba(0,212,202,.07),transparent)}
.ls-in{margin-top:auto;display:inline-flex;align-items:center;gap:6px;font-weight:800;font-size:12.5px;color:var(--teal-ink)}
.ls-cart{position:sticky;top:14px;max-height:calc(100vh - 28px);overflow:auto;display:flex;flex-direction:column;gap:12px;padding:16px;border-radius:24px;background:var(--surface);border:1px solid var(--edge);box-shadow:var(--glow)}
.ls-cart-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap}
.ls-cart-head h2{font-size:18px;font-weight:800}
.ls-cart-head span{font-size:12.5px;font-weight:700;color:var(--soft)}
.ls-cart-empty{padding:18px;border-radius:16px;border:1.5px dashed var(--edge-2);color:var(--soft);font-weight:600;text-align:center;font-size:13.5px}
.ls-grp{display:flex;flex-direction:column;gap:8px}
.ls-grp header{display:flex;align-items:center;justify-content:space-between;gap:8px}
.ls-grp header b{font-size:14px;font-weight:800}
.ls-link{font-weight:800;font-size:12.5px;color:var(--teal-ink);padding:4px 6px;border-radius:8px}
.ls-link:hover{background:var(--tint2)}
.ls-link.danger{color:var(--err)}
.ls-item{display:flex;flex-direction:column;gap:8px;padding:10px 12px;border-radius:16px;background:var(--bg);border:1px solid var(--edge)}
.ls-item.is-off{opacity:.6}
.ls-item-top{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px}
.ls-item-main{display:flex;flex-direction:column;gap:2px;min-width:0}
.ls-item-main b{font-size:13.5px;font-weight:800}
.ls-item-main small{font-size:12px;font-weight:600;color:var(--soft);line-height:1.35}
.ls-sw{position:relative;display:inline-block;width:42px;height:24px;flex:none;cursor:pointer}
.ls-sw input{position:absolute;opacity:0;width:1px;height:1px}
.ls-sw span{position:absolute;inset:0;border-radius:99px;background:var(--edge-strong);transition:background .15s}
.ls-sw span::after{content:"";position:absolute;left:3px;top:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(20,18,54,.25);transition:transform .15s}
.ls-sw input:checked+span{background:var(--ed-teal)}
.ls-sw input:checked+span::after{transform:translateX(18px)}
.ls-sw input:focus-visible+span{outline:3px solid var(--ed-violet);outline-offset:2px}
.ls-sw .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ls-ex{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:12px;font-weight:700;color:var(--soft)}
.ls-ex input{width:68px;padding:6px 8px;text-align:center;font-size:14px;border-radius:10px}
.ls-item-bot{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap}
.ls-diff{flex:1;min-width:0}
.ls-diff summary{display:inline-flex;align-items:center;gap:6px;cursor:pointer;font-weight:800;font-size:12.5px;color:var(--purple-ink);padding:6px 8px;border-radius:10px;list-style:none}
.ls-diff summary::-webkit-details-marker{display:none}
.ls-diff summary:hover{background:var(--tint3)}
[data-theme="dark"] .ls-diff summary{color:#d9c2ff}
.ls-diff-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px;padding:8px 2px 2px}
.ls-diff-grid .fld{font-size:12px}
.ls-diff-grid input,.ls-diff-grid select{padding:7px 10px;font-size:13px;border-radius:10px}
.ls-diff-grid .check{font-size:13px;align-items:center}
.ls-save{margin-left:auto}
.ls-cart-foot{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding-top:10px;border-top:1.5px solid var(--edge)}
.ls-cart-foot form{display:inline-flex}
.ls-cart-foot .btn.ls-go{margin-left:auto}
/* шаг «Кому» */
.ls-who{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start}
.ls-card{display:flex;flex-direction:column;gap:14px;padding:20px;border-radius:24px;background:var(--surface);border:1px solid var(--edge)}
.ls-card h2{display:flex;align-items:center;gap:8px;font-size:18px;font-weight:800}
.ls-g{border:1px solid var(--edge);border-radius:18px;padding:10px 12px;display:flex;flex-direction:column;gap:8px}
.ls-g-head{display:flex;align-items:center;gap:10px;cursor:pointer}
.ls-g-head input,.ls-st input{width:20px;height:20px;flex:none;accent-color:var(--ed-teal)}
.ls-g-head b{font-weight:800}
.ls-g-head small{margin-left:auto;font-size:12px}
.ls-st{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:6px 12px;padding-left:30px}
.ls-st .check{font-size:13.5px;align-items:center}
.ls-who-r .fld small{font-weight:600}

.ls-sum{padding:12px 14px;border-radius:16px;background:var(--tint1);display:flex;flex-direction:column;gap:6px}
.ls-sum ul{margin:0;padding-left:18px;font-weight:700;font-size:13.5px;display:flex;flex-direction:column;gap:2px}
.ls-sum small{font-weight:700;color:var(--soft)}
.ls-acts{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
/* временный свод (шаг 8 заменит) */
.ls-board{display:flex;flex-direction:column;gap:16px;margin-top:10px}
.ls-code-card{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;padding:20px 24px;border-radius:26px;background:var(--surface);border:1px solid var(--edge)}
.ls-code-card h1{font-size:26px;font-weight:800;letter-spacing:-.4px}
.ls-code-card p{margin-top:6px;color:var(--soft);font-weight:600}
.ls-code-card p b{color:var(--ink)}
.ls-closed{display:inline-flex;align-items:center;gap:6px;color:var(--teal-ink)!important;font-weight:800!important}
.ls-code{display:flex;flex-direction:column;align-items:center;gap:2px;padding:10px 22px;border-radius:20px;background:var(--ed-lime);color:#141236}
.ls-code small{font-weight:800;font-size:12px;text-transform:uppercase;letter-spacing:.6px}
.ls-code b{font-size:clamp(40px,7vw,72px);font-weight:900;letter-spacing:4px;font-variant-numeric:tabular-nums;line-height:1}
.btn.ls-stop{background:var(--surface);color:var(--err);border-color:var(--err)}
.ls-kids{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px}
.ls-kid{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:18px;background:var(--surface);border:1px solid var(--edge);border-left-width:5px}
.ls-kid.is-absent{opacity:.55}
.ls-kid.is-working{border-left-color:var(--ed-teal)}
.ls-kid.is-stuck{border-left-color:#ff5a7a}
.ls-kid.is-idle{border-left-color:#ffc53d}
.ls-kid.is-done{border-left-color:var(--ed-lime)}
.ls-ava{display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:50%;background:var(--tint3);color:var(--purple-ink);font-weight:800;font-size:13px}
.ls-kid-main{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.ls-kid-main b{font-size:14px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ls-kid-main small{display:flex;align-items:center;gap:4px;font-size:12px;font-weight:700;color:var(--soft)}
.ls-kid.is-stuck .ls-kid-main small{color:var(--err)}
.ls-kid-num{display:flex;flex-direction:column;align-items:flex-end;gap:2px;font-size:12px;font-weight:800;color:var(--soft);font-variant-numeric:tabular-nums}
.ls-star{display:inline-flex;align-items:center;gap:3px;color:var(--ink)}
.ls-star .ic{color:var(--star-edge);width:14px;height:14px}
/* полоса «Идёт урок» на главной ученика */
.ls-live{display:flex;align-items:center;gap:12px;margin:18px 0 0;padding:12px 16px;border-radius:20px;background:var(--surface);border:2px solid var(--ed-lime);box-shadow:0 8px 22px rgba(155,200,0,.22)}
.ls-live[hidden]{display:none}
.ls-live-dot{width:12px;height:12px;flex:none;border-radius:50%;background:#7bd400;box-shadow:0 0 0 4px rgba(123,212,0,.25)}

.ls-live-txt{font-weight:700;min-width:0;flex:1}
.ls-live-txt b{font-weight:800}
/* вход по коду, «Найди себя», «Урок окончен» */
.auth.jn{text-align:center}
.jn-badge{display:grid;place-items:center;width:64px;height:64px;margin:0 auto 12px;border-radius:20px;background:var(--ed-lime);color:#141236}
.jn-badge .ic{width:32px;height:32px}
.auth.jn .form{text-align:left}
.jn-code{text-align:center;font-size:clamp(30px,8vw,40px)!important;font-weight:900!important;letter-spacing:8px;font-variant-numeric:tabular-nums;padding:14px 10px!important;border-radius:18px!important}
.jn-home a{color:var(--purple-ink);font-weight:700}
.btn.jn-cta{display:flex;margin-top:14px}
body.guest .wrap:has(.jn-roster){max-width:1000px}
.jn-roster{margin:30px auto 0;text-align:center}
.jn-roster h1{font-size:30px;font-weight:800;letter-spacing:-.5px}
.jn-roster>p{margin-top:6px}
.jn-none{margin:26px auto;padding:24px;border:1.5px dashed var(--edge-2);border-radius:22px;color:var(--soft);font-weight:700;max-width:460px}
.jn-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;margin:22px 0}
.jn-tiles form{display:flex}
.jn-tile{flex:1;display:flex;flex-direction:column;align-items:center;gap:10px;padding:16px 10px;min-height:150px;border-radius:22px;background:var(--surface);border:1px solid var(--edge);box-shadow:0 6px 16px rgba(124,92,255,.08);transition:transform .15s,border-color .15s}
.jn-tile:hover,.jn-tile:focus-visible{transform:translateY(-3px);border-color:var(--ed-teal);outline:none}
.jn-tile b{font-size:14.5px;font-weight:800;line-height:1.3}
.jn-ava{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:linear-gradient(135deg,var(--ed-lime),var(--ed-teal));color:#141236;font-weight:900;font-size:22px}
.jn-tiles form:nth-child(3n+2) .jn-ava{background:linear-gradient(135deg,var(--ed-teal),#BFD9FF)}
.jn-tiles form:nth-child(3n+3) .jn-ava{background:linear-gradient(135deg,#D9C2FF,var(--ed-violet))}
.jn-over{margin:30px auto 0;padding:28px 22px;text-align:center;border-radius:30px;background:radial-gradient(circle at 50% 18%,rgba(198,255,5,.30),transparent 46%),radial-gradient(circle at 50% 90%,rgba(173,120,255,.16),transparent 55%),var(--surface);border:1px solid var(--edge);box-shadow:var(--glow);display:flex;flex-direction:column;align-items:center;gap:10px}
.jn-masc{width:120px;height:120px;object-fit:contain}
.jn-over h1{font-size:30px;font-weight:800;letter-spacing:-.02em;color:var(--ink)}
.jn-stars{display:flex;align-items:center;gap:10px;margin-top:6px;padding:10px 20px;border-radius:99px;background:var(--ed-lime);color:#141236}
.jn-stars .ic{width:30px;height:30px;fill:#141236;stroke:#141236}
.jn-stars b{font-size:38px;font-weight:900;line-height:1;font-variant-numeric:tabular-nums}
.jn-stars small{font-weight:800;font-size:14px}
.jn-line{font-weight:700;font-size:16px}
.jn-praise{display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:14px;background:var(--tint3);font-weight:800}
.jn-praise .ic{color:var(--purple-ink)}
.jn-top{display:inline-flex;align-items:center;gap:8px;font-weight:900;font-size:18px;color:var(--warn)}
.jn-top .ic{width:24px;height:24px}
.jn-ach{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.jn-ach-i{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:99px;background:var(--surface);border:1.5px solid var(--ed-violet);font-weight:700;font-size:13px;color:var(--ink)}
.jn-acts{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:10px}
.jn-acts form{display:inline-flex}
@media (max-width:1000px){
  .ls-build{grid-template-columns:1fr}
  .ls-cart{position:static;max-height:none}
}
@media (max-width:760px){
  .ls-ph h1{font-size:26px}
  .ls-row{grid-template-columns:1fr}
  .ls-who{grid-template-columns:1fr}
  .ls-st{padding-left:0}
  .ls-code-card{padding:16px}
  .ls-live{flex-wrap:wrap}
  .jn-tiles{grid-template-columns:repeat(2,1fr)}
}

/* ===== Урок: свод на проектор (bd-*) — docs/design/Урок_и_программы.md §4.5. Страница без меню, светлый вид edlimi.
   Размеры — от высоты экрана (font-size в vh): 30 карточек помещаются на 1366×657 и 1920×1080; не помещаются — lesson.js
   включает .is-dense (карточка в одну строку). Зал ожидания (.is-waiting): код на треть высоты экрана. ===== */
body.bd-body{background:var(--bg);min-height:100vh;overflow:hidden;font-size:clamp(13px,2.1vh,24px)}
.bd{height:100vh;height:100dvh;display:flex;flex-direction:column;gap:.6em;padding:.9em 1.3em}
.bd-head{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:1.1em}
.bd-title{min-width:0}
.bd-back{font-weight:800;font-size:.85em;color:var(--soft)}
.bd-back::before{content:"\2190  "}
.bd-title h1{font-size:1.55em;font-weight:900;letter-spacing:-.02em;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bd-join{font-weight:600;color:var(--soft);font-size:.95em}
.bd-join b{color:var(--ink)}
.bd-code-sm{display:flex;flex-direction:column;align-items:center;padding:.3em 1em;border-radius:1em;background:var(--ed-lime);color:#141236}
.bd-code-sm small{font-weight:800;font-size:.68em;text-transform:uppercase;letter-spacing:.06em}
.bd-code-sm b{font-size:2.1em;font-weight:900;letter-spacing:.08em;font-variant-numeric:tabular-nums;line-height:1}
.bd-side{display:flex;flex-direction:column;align-items:flex-end;gap:.45em}
.bd-pills,.bd-acts{display:flex;gap:.4em;flex-wrap:wrap;justify-content:flex-end;align-items:center}
.bd-acts form{display:inline-flex}
.bd .ls-pill{font-size:.85em}
.bd .btn{min-height:0;font-size:.85em;padding:.55em 1em}
.bd-live{display:inline-flex;align-items:center;gap:.45em;font-weight:700;font-size:.8em;color:var(--soft);white-space:nowrap}
.bd-dot{width:.7em;height:.7em;border-radius:50%;background:#7bd400}
.bd-live.is-stale .bd-dot{background:var(--edge-strong)}
.bd-live.is-stale{color:var(--err)}
.bd-flash{margin:0}
.bd-closed{display:flex;align-items:center;gap:.8em;padding:.6em 1em;border-radius:1em;background:var(--tint1);font-weight:800}
.bd-closed[hidden]{display:none}
.bd-closed .btn{margin-left:auto}
/* зал ожидания */
.bd-wait{display:none}
.bd.is-waiting .bd-wait{display:flex;flex:1;min-height:0;flex-direction:column;align-items:center;justify-content:center;gap:2vh;text-align:center}
.bd.is-waiting .bd-grid,.bd.is-waiting .bd-help,.bd.is-waiting .bd-code-sm,.bd.is-waiting .bd-join{display:none}
.bd-wait-lead{font-size:1.6em;font-weight:700;color:var(--soft)}
.bd-wait-lead b{color:var(--ink)}
.bd-code{font-size:min(33vh,14vw);font-weight:900;line-height:1;letter-spacing:.04em;font-variant-numeric:tabular-nums;color:#141236;background:var(--ed-lime);padding:.04em .22em .08em;border-radius:.14em;box-shadow:0 .08em .2em rgba(155,200,0,.3)}
.bd-wait-count{font-weight:800;font-size:1.2em;color:var(--soft)}
.bd-here{display:flex;flex-wrap:wrap;gap:.5em;justify-content:center;max-width:92vw;max-height:22vh;overflow:hidden}
.bd-chip{display:inline-flex;align-items:center;gap:.45em;padding:.25em .9em .25em .25em;border-radius:99px;background:var(--tint2);font-weight:800;animation:bdIn .4s cubic-bezier(.22,1,.36,1)}
.bd-chip[hidden]{display:none}
.bd-chip i{font-style:normal;display:grid;place-items:center;width:2em;height:2em;border-radius:50%;background:linear-gradient(135deg,var(--ed-lime),var(--ed-teal));color:#141236;font-size:.8em}
@keyframes bdIn{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:none}}
/* «Нужна помощь» */
.bd-help{display:flex;align-items:center;gap:.5em;flex-wrap:wrap;padding:.4em .8em;border-radius:1em;background:var(--err-soft);border:1.5px solid var(--err)}
.bd-help[hidden]{display:none}
.bd-help-t{display:inline-flex;align-items:center;gap:.35em;color:var(--err);font-weight:900}
.bd-help-list{display:flex;gap:.4em;flex-wrap:wrap}
.bd-hchip{padding:.2em .75em;border-radius:99px;font-weight:800;font-size:.9em}
.bd-hchip.is-stuck{background:#C2264F;color:#fff}
.bd-hchip.is-idle{background:var(--warn-soft);color:var(--warn)}
/* сетка карточек */
.bd-grid{flex:1;min-height:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(17.5em,1fr));grid-auto-rows:min-content;align-content:start;gap:.55em;overflow:auto}
.bd-card{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;grid-template-areas:"pl ava main st" "foot foot foot foot";align-items:center;gap:.25em .55em;padding:.45em .7em;border-radius:1em;background:var(--surface);border:1px solid var(--edge);border-left:.35em solid #d9d6ef;transition:border-color .3s,background .3s,opacity .3s}
.bd-place{grid-area:pl;min-width:1.1em;font-weight:900;color:var(--soft);font-variant-numeric:tabular-nums;text-align:center}
.bd-ava{grid-area:ava;display:grid;place-items:center;width:2.3em;height:2.3em;border-radius:50%;background:var(--tint3);color:var(--purple-ink);font-weight:900;font-size:.9em}
.bd-main{grid-area:main;min-width:0;display:flex;flex-direction:column}
.bd-name{font-weight:800;font-size:1.06em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bd-state{display:flex;align-items:center;gap:.25em;font-weight:700;font-size:.82em;color:var(--soft);white-space:nowrap;overflow:hidden}
.bd-state .bd-flag{display:none}
.bd-card.is-stuck .bd-flag,.bd-card.is-idle .bd-flag{display:inline-block}
.bd-stars{grid-area:st;display:inline-flex;align-items:center;gap:.2em;font-weight:900;font-variant-numeric:tabular-nums}
.bd-stars .ic{color:var(--star-edge);fill:var(--star)}
.bd-foot{grid-area:foot;display:flex;align-items:center;gap:.5em;min-width:0}
.bd-dots{display:flex;gap:.22em;flex:none;font-weight:800;font-size:.8em;color:var(--soft)}
.bd-dots i{width:.6em;height:.6em;border-radius:50%;background:var(--surface-3)}
.bd-dots i.on{background:var(--ed-teal)}
.bd-bar{flex:1;height:.4em;border-radius:99px;background:var(--surface-3);overflow:hidden}
.bd-bar i{display:block;height:100%;width:0;border-radius:inherit;background:linear-gradient(90deg,var(--ed-teal),var(--ed-lime));transition:width .6s}
.bd-card.is-weak .bd-bar i{background:#ffb4c4}
.bd-acc{min-width:2.6em;text-align:right;font-weight:900;font-size:.85em;font-variant-numeric:tabular-nums}
.bd-card.is-absent{opacity:.5}
.bd-card.is-working{border-left-color:var(--ed-teal)}
.bd-card.is-stuck{border-left-color:#ff5a7a;background:var(--err-soft)}
.bd-card.is-stuck .bd-state{color:var(--err)}
.bd-card.is-idle{border-left-color:#ffc53d;background:var(--warn-soft)}
.bd-card.is-idle .bd-state{color:var(--warn)}
.bd-card.is-done{border-left-color:var(--ed-lime)}
.bd-card.is-done .bd-state{color:var(--ok)}
.bd-grid.is-dense{gap:.35em}
.bd-grid.is-dense .bd-card{grid-template-columns:auto auto minmax(0,1fr) auto auto;grid-template-areas:"pl ava main foot st";padding:.25em .6em}
.bd-grid.is-dense .bd-state,.bd-grid.is-dense .bd-bar,.bd-grid.is-dense .bd-dots{display:none}
.bd-grid.is-dense .bd-ava{width:1.8em;height:1.8em;font-size:.8em}
@media (max-width:900px){
  body.bd-body{overflow:auto}
  .bd{height:auto;min-height:100vh}
  .bd-head{grid-template-columns:1fr}
  .bd-side{align-items:flex-start}
  .bd-pills,.bd-acts{justify-content:flex-start}
}

/* ===== Урок: разбор урока, разбор ученика (rs-*) и «Доска почёта» (hl-*) — §4.7 + решение владельца 19.11.2026
   (все ученики с очками и звёздами; ничья — одно место; не решавшие внизу «не начал(а)»). Светлый вид edlimi. ===== */
.rs-nums{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 16px}
.rs-num{padding:14px 16px;border-radius:20px;background:var(--surface);border:1px solid var(--edge);display:flex;flex-direction:column;gap:4px}
.rs-num b{font-size:28px;font-weight:900;font-variant-numeric:tabular-nums;line-height:1.1}
.rs-num b small{font-size:15px;color:var(--soft);font-weight:800}
.rs-num span{font-size:13px;font-weight:700;color:var(--soft)}
.rs-num.is-warn b{color:var(--err)}
.rs-table-wrap{overflow-x:auto;border-radius:20px;border:1px solid var(--edge);background:var(--surface)}
.rs-table{width:100%;border-collapse:collapse;font-size:13.5px}
.rs-table th{text-align:left;font-size:12px;font-weight:800;color:var(--soft);padding:10px 12px;border-bottom:1.5px solid var(--edge);white-space:nowrap;background:var(--surface);position:sticky;top:0}
.rs-table td{padding:9px 12px;border-bottom:1px solid var(--edge);vertical-align:middle}
.rs-table tr:last-child td{border-bottom:0}
.rs-table tr.is-off td{color:var(--soft)}
.rs-n{font-variant-numeric:tabular-nums;white-space:nowrap}
.rs-who{display:inline-flex;align-items:center;gap:10px;min-width:0}
.rs-who b{font-weight:800}
.rs-who .ls-ava{width:32px;height:32px;font-size:12px}
.rs-who-lg{gap:14px}
.rs-who-lg .ls-ava{width:56px;height:56px;font-size:20px}
.rs-who-lg h1{font-size:28px;font-weight:800;letter-spacing:-.4px}
.rs-who-lg p{color:var(--soft);font-weight:600;margin-top:4px}
.ls-ph p .ic{vertical-align:-.2em}
.rs-place{white-space:nowrap}
.rs-pl{display:inline-grid;place-items:center;min-width:28px;height:28px;padding:0 6px;border-radius:99px;background:var(--tint2);font-weight:900;font-variant-numeric:tabular-nums}
.rs-pl.is-1{background:#ffd23f;color:#141236}
.rs-pl.is-2{background:#d8deee;color:#141236}
.rs-pl.is-3{background:#f2a66b;color:#141236}
.rs-place small{margin-left:3px;font-weight:800;color:var(--soft)}
.rs-st{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:99px;font-weight:800;font-size:12px;white-space:nowrap}
.rs-st .ic{width:14px;height:14px}
.rs-st.is-done{background:var(--ed-lime);color:#141236}
.rs-st.is-go{background:var(--tint2);color:var(--ink)}
.rs-st.is-none{background:var(--surface-3);color:var(--ink-2)}

.rs-weak{display:inline-flex;align-items:center;gap:4px;color:var(--err);font-weight:800;font-size:12.5px}
.rs-note{margin:10px 2px;font-size:12.5px}
.rs-run{margin:0 0 14px;padding:14px;border-radius:22px;background:var(--surface);border:1px solid var(--edge)}
.rs-run.is-weak{border-color:var(--err)}
.rs-run-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.rs-run-head b{font-size:16px;font-weight:800}
.rs-run-head small{display:flex;align-items:center;gap:5px;margin-top:4px;font-size:12.5px}
.rs-run-nums{display:flex;gap:6px;flex-wrap:wrap}
.rs-run .rs-table-wrap{border-radius:14px}
.rs-shown{max-width:420px;overflow-wrap:anywhere}
.rs-res{display:inline-flex;align-items:center;gap:4px;font-weight:800;font-size:12.5px;white-space:nowrap}
.rs-res .ic{width:14px;height:14px}
.rs-res.is-star{color:var(--ok)}
.rs-res.is-ok{color:var(--teal-ink)}
.rs-res.is-bad{color:var(--err)}
.hl{margin:0 0 18px;padding:16px;border-radius:24px;background:linear-gradient(180deg,rgba(198,255,5,.12),transparent 120px),var(--surface);border:1px solid var(--edge)}
.hl-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.hl-head h2{display:flex;align-items:center;gap:8px;font-size:18px;font-weight:800;margin-right:auto}
.hl-head h2 .ic{color:var(--star-edge)}
.hl-seg{display:inline-flex;gap:4px;padding:4px;border-radius:14px;background:var(--bg);border:1px solid var(--edge)}
.hl-seg a{padding:6px 12px;border-radius:10px;font-weight:800;font-size:12.5px;color:var(--soft)}
.hl-seg a.on{background:var(--ed-lime);color:#141236}
.hl-grp select{padding:7px 10px;border-radius:12px;border:1px solid var(--edge);background:var(--surface);font-weight:700}
.hl-empty{padding:8px 4px}
.hl .rs-table-wrap{max-height:520px;overflow:auto}
@media (max-width:760px){
  .rs-nums{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rs-who-lg h1{font-size:22px}
}

/* ===== Финал урока «Церемония урока» (fin-*) — docs/design/Финал_урока_v2.md (одобрено владельцем 19.11.2026; макет —
   docs/design/style_prototype/finale.html). Тёмно-синяя сцена бренда edlimi (#171D3B, лайм #C6FF05, бирюза #00D4CA, фиолет #AD78FF).
   Сцена .fin-box нарисована в 1366×768 и целиком масштабируется под экран (finale.js: transform scale), поэтому размеры ниже — для 1366.
   Без скрипта или при ошибке видна серверная разметка .fin-fallback; со сценой она скрыта визуально (для диктора). ===== */
body.fin-body{background:#171D3B;min-height:100vh;color:#fff;font-family:var(--font)}
body.fin-body:has(.fin-on){overflow:hidden;background:#0C1028}

.fin-fallback{max-width:1100px;margin:0 auto;padding:28px 20px 40px;color:#fff}
.fin-fb-head h1{font-size:34px;font-weight:700;color:#C6FF05}
.fin-fb-head p{color:#C9CFEA;font-weight:600;margin-top:4px}
.fin-fb-empty{margin:24px 0;font-size:22px;font-weight:800}
.fin-fb-nums{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}
.fin-fb-nums div,.fin-fb-step{padding:14px;border-radius:18px;background:rgba(255,255,255,.08);border:1.5px solid rgba(255,255,255,.18)}
.fin-fb-nums b{display:block;font-size:40px;font-weight:800;color:#C6FF05;font-variant-numeric:tabular-nums}
.fin-fb-nums span{color:#C9CFEA;font-weight:700;font-size:14px}
.fin-fb-more{color:#00D4CA;font-weight:800}
.fin-fb-podium{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0}
.fin-fb-step{flex:1;min-width:200px}
.fin-fb-step small{display:block;color:#C9CFEA;font-weight:800}
.fin-fb-medal{display:inline-flex;align-items:center;gap:6px;font-weight:800;font-size:20px;color:#FFD23F}
.fin-fb-step.is-silver .fin-fb-medal{color:#D8DEEE}
.fin-fb-step.is-bronze .fin-fb-medal{color:#F2A66B}
.fin-fb-noms{display:flex;flex-direction:column;gap:8px;margin:12px 0}
.fin-fb-nom{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.fin-fb-nom .ic{color:#C6FF05}
.fin-fb-nom span{color:#C9CFEA;font-weight:700}
.fin-fb-h2{margin:22px 0 10px;font-size:22px;font-weight:700}
.fin-fb-rank{width:100%;border-collapse:collapse;font-size:15px}
.fin-fb-rank th{text-align:left;color:#C9CFEA;font-size:12px;font-weight:800;padding:8px}
.fin-fb-rank td{padding:8px;border-top:1px solid rgba(255,255,255,.12)}
.fin-fb-rank tr.is-off td{color:#9FA7C8}
.fin-fb-acts{display:flex;gap:10px;margin-top:20px;flex-wrap:wrap}
.fin-fb-acts .btn.ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.4)}
.fin.fin-on .fin-fallback{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;padding:0}

/* ---------- сцена ---------- */
.fin-stage{position:fixed;inset:0;overflow:hidden;background:#0C1028;z-index:5;
  --fin-bg:#171D3B;--fin-card:#222A57;--fin-card-2:#2B3470;--fin-line:rgba(255,255,255,.14);--fin-ink-2:#C9CFEA;--fin-dark:#171D3B;
  --fin-lime:#C6FF05;--fin-lime-h:#B9F000;--fin-teal:#00D4CA;--fin-purple:#AD78FF;--fin-star:#FFB800;
  --fin-gold:#FFD23F;--fin-silver:#D8DEEE;--fin-bronze:#F2A66B;--fin-ease:cubic-bezier(.2,.8,.2,1)}
.fin-box{position:absolute;left:0;top:0;width:1366px;height:768px;transform-origin:0 0;color:#fff;font:400 15px/1.5 var(--font);
  font-variant-numeric:tabular-nums;-webkit-font-smoothing:antialiased;
  display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:60px minmax(0,1fr) 68px;overflow:hidden;
  background:
    radial-gradient(620px 420px at 0% 0%,rgba(173,120,255,.22),transparent 70%),
    radial-gradient(620px 420px at 100% 100%,rgba(0,212,202,.16),transparent 70%),
    var(--fin-bg)}
.fin-box h1,.fin-box h2,.fin-box h3{font-family:var(--font-head);letter-spacing:-.01em;color:#fff}
.fin-box button{font-family:inherit;color:inherit}
.fin-box img{display:block;max-width:none}
.fin-box a{text-decoration:none}
.fin-box :focus-visible{outline:3px solid #C3A0FF;outline-offset:2px}
.fin-live{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}

.fin-top{display:flex;align-items:center;gap:18px;padding:0 28px;border-bottom:1px solid var(--fin-line)}
.fin-logo{height:24px;width:auto;flex:none}
.fin-lesson{display:flex;align-items:baseline;gap:12px;min-width:0;flex:0 1 auto;padding-left:18px;border-left:1px solid var(--fin-line)}
.fin-lesson b{font-size:19px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:0 1 auto}
.fin-lesson span{font-size:17px;color:var(--fin-ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:0 999 auto}
.fin-steps{margin-left:auto;display:flex;gap:6px;list-style:none;flex:none}
.fin-steps li{display:flex;align-items:center;gap:7px;height:34px;padding:0 12px 0 5px;border-radius:999px;font-size:15px;font-weight:600;color:var(--fin-ink-2);cursor:pointer;white-space:nowrap}
.fin-steps li i{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:13px;font-weight:800;background:rgba(255,255,255,.12);color:#fff}
.fin-steps li.done i{background:var(--fin-teal);color:var(--fin-dark)}
.fin-steps li.on{background:var(--fin-lime);color:var(--fin-dark);font-weight:800}
.fin-steps li.on i{background:var(--fin-dark);color:var(--fin-lime)}

.fin-scene{position:relative;min-height:0;padding:22px 44px 14px}
.fin-sc{height:100%;display:flex;flex-direction:column;min-height:0}
.fin-h{display:flex;align-items:flex-end;gap:20px;margin-bottom:18px}
.fin-h h2{font-size:38px;line-height:1.1;font-weight:700;white-space:nowrap}
.fin-h p{font-size:22px;color:var(--fin-ink-2);padding-bottom:3px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---------- панель управления ---------- */
.fin-bar{position:relative;display:flex;align-items:center;gap:10px;padding:0 28px;background:rgba(10,14,36,.55);border-top:1px solid var(--fin-line)}
.fin-bar[hidden]{display:flex;visibility:hidden}
.fin-b{display:inline-flex;align-items:center;gap:8px;height:46px;padding:0 18px;border-radius:999px;border:1.5px solid rgba(255,255,255,.34);background:transparent;color:#fff;font-size:18px;font-weight:700;line-height:1;cursor:pointer;white-space:nowrap}
.fin-b:hover{background:rgba(255,255,255,.12)}
.fin-b .ic{width:22px;height:22px;stroke-width:2.4;vertical-align:0}
.fin-box .fin-b.pri{background:var(--fin-lime);color:var(--fin-dark);border-color:var(--fin-lime);padding:0 22px 0 26px}
.fin-box .fin-b.pri:hover{background:var(--fin-lime-h)}
.fin-b[disabled]{opacity:.35;cursor:default}
.fin-hint{flex:1;text-align:center;font-size:16px;color:var(--fin-ink-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fin-prog{position:absolute;left:0;top:-3px;height:3px;width:0;background:var(--fin-lime)}
.fin-toast{position:absolute;left:50%;bottom:84px;transform:translateX(-50%);max-width:1100px;padding:14px 22px;border-radius:16px;background:#fff;color:var(--fin-dark);font-size:19px;font-weight:700;box-shadow:0 16px 50px rgba(0,0,0,.5);z-index:9}
.fin-toast[hidden]{display:none}

/* ---------- общие детали ---------- */
.fin-av{flex:none;width:56px;height:56px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:21px;line-height:1;color:var(--fin-dark);background:var(--fin-lime)}
.fin-av.c1{background:var(--fin-teal)}.fin-av.c2{background:var(--fin-purple)}
.fin-av.img{overflow:hidden;background:var(--fin-card-2)}
.fin-box .fin-av.img img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.fin-av.off{background:transparent;color:var(--fin-ink-2);box-shadow:inset 0 0 0 2px rgba(255,255,255,.3)}
.fin-st{display:inline-flex;align-items:center;gap:6px;font-weight:800;white-space:nowrap}
.fin-st .ic{width:.95em;height:.95em;fill:var(--fin-star);stroke:var(--fin-star);stroke-width:1.5;vertical-align:0}

@keyframes fin-k-up{from{opacity:0;transform:translateY(26px)}}
@keyframes fin-k-pop{0%{opacity:0;transform:scale(.55)}70%{opacity:1;transform:scale(1.07)}100%{transform:scale(1)}}
@keyframes fin-k-rise{from{transform:scaleY(0)}}
@keyframes fin-k-fly{0%{opacity:0;transform:translate(0,0) scale(1)}12%{opacity:1}85%{opacity:1}100%{opacity:0;transform:translate(var(--tx),var(--ty)) scale(.5)}}
@keyframes fin-k-bump{0%,100%{transform:scale(1)}50%{transform:scale(1.09)}}
@keyframes fin-k-spin{to{transform:rotate(360deg)}}
@keyframes fin-k-burst{0%{opacity:0;transform:translate(0,0) scale(.3) rotate(0)}15%{opacity:1}100%{opacity:0;transform:translate(var(--bx),var(--by)) scale(1) rotate(var(--br))}}
@keyframes fin-k-glow{0%{box-shadow:0 0 0 0 rgba(198,255,5,.9)}100%{box-shadow:0 0 0 26px rgba(198,255,5,0)}}
.fin-up{animation:fin-k-up .55s var(--fin-ease) both;animation-delay:var(--d,0s)}
.fin-pop{animation:fin-k-pop .55s var(--fin-ease) both;animation-delay:var(--d,0s)}
.fin-paused *{animation-play-state:paused!important}
.fin-skip *{animation-delay:0s!important;animation-duration:.01s!important}
.fin-skip .fin-rays{animation-duration:.01s,40s!important}
/* «меньше движения»: готовые неподвижные кадры */
.fin-rm *{animation:none!important;transition:none!important}
.fin-rm .fin-fly,.fin-rm .fin-burst,.fin-rm .fin-rays{display:none}
@media (prefers-reduced-motion:reduce){.fin-fly,.fin-burst,.fin-rays{display:none}}

/* ---------- 0. занавес ---------- */
.fin-intro{align-items:center;justify-content:center;text-align:center;gap:6px}
.fin-intro img{width:210px;height:210px}
.fin-intro h1{font-size:60px;line-height:1.05;font-weight:700}
.fin-intro .lt{font-size:30px;font-weight:700;margin-top:10px}
.fin-intro .lm{font-size:22px;color:var(--fin-ink-2)}
.fin-go{margin-top:22px;height:72px;padding:0 44px;border:0;border-radius:999px;background:var(--fin-lime);font:800 26px/1 var(--font);cursor:pointer;display:inline-flex;align-items:center;gap:12px;box-shadow:0 14px 40px -12px rgba(198,255,5,.7)}
.fin-box .fin-go{color:var(--fin-dark)}
.fin-go:hover{background:var(--fin-lime-h)}
.fin-go .ic{width:26px;height:26px;fill:currentColor;stroke:none;vertical-align:0}
.fin-plan{margin-top:20px;display:flex;gap:10px;align-items:center;font-size:19px;color:var(--fin-ink-2);font-weight:600}
.fin-plan b{color:#fff;font-weight:700}
.fin-plan .ic{width:18px;height:18px;opacity:.6;vertical-align:0}

/* ---------- 1. итоги класса ---------- */
.fin-cls{position:relative;flex:1;display:grid;grid-template-columns:540px minmax(0,1fr);gap:40px;min-height:0;align-items:center}
.fin-cls-main{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center}
.fin-cls-main img{width:210px;height:210px;filter:drop-shadow(0 18px 40px rgba(0,212,202,.35))}
.fin-cls-main img.bump{animation:fin-k-bump .35s ease 6}
.fin-cls-num{font:700 124px/1 var(--font-head);color:var(--fin-lime);margin-top:-6px}
.fin-cls-cap{font-size:30px;font-weight:700;margin-top:6px}
.fin-cls-more{margin-top:14px;display:inline-flex;align-items:center;gap:10px;height:48px;padding:0 20px;border-radius:999px;background:rgba(0,212,202,.16);box-shadow:inset 0 0 0 1.5px var(--fin-teal);font-size:21px;font-weight:700;white-space:nowrap}
.fin-cls-more .ic{width:24px;height:24px;color:var(--fin-teal);stroke-width:2.6;vertical-align:0}
.fin-tiles{display:grid;gap:14px}
.fin-tl{display:grid;grid-template-columns:190px minmax(0,1fr);align-items:center;gap:8px;min-height:112px;padding:0 30px;border-radius:28px;color:var(--fin-dark);background:var(--fin-lime)}
.fin-tl.t{background:var(--fin-teal)}.fin-tl.p{background:var(--fin-purple)}
.fin-tl b{font:700 58px/1 var(--font-head);white-space:nowrap}
.fin-tl.wide{grid-template-columns:auto minmax(0,1fr);gap:22px}.fin-tl.wide b{font-size:46px}
.fin-tl span{font-size:25px;font-weight:700;line-height:1.2}
.fin-tl small{display:block;font-size:20px;font-weight:600;opacity:.8}
.fin-who{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:16px}
.fin-who p{width:100%;font-size:20px;color:var(--fin-ink-2);font-weight:600}
.fin-who .fin-av{width:50px;height:50px;font-size:18px}
.fin-who.many{gap:5px}.fin-who.many .fin-av{width:36px;height:36px;font-size:13px}
.fin-fly{position:absolute;left:0;top:0;width:26px;height:26px;pointer-events:none;animation:fin-k-fly 1.1s cubic-bezier(.5,0,.6,1) both;animation-delay:var(--d)}

/* ---------- 2. достижение каждого ---------- */
.fin-each{flex:1;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-rows:1fr;gap:14px;min-height:0}
.fin-ec{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;padding:14px 12px;border-radius:26px;background:var(--fin-card);border:1px solid var(--fin-line);cursor:pointer;min-width:0}
.fin-ec .fin-av{width:68px;height:68px;font-size:25px}
.fin-ec.fin-pop .fin-av{animation:fin-k-glow .9s ease-out both;animation-delay:var(--d)}
.fin-ec b{font-size:26px;line-height:1.5;font-weight:800;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fin-ec p{display:flex;align-items:center;justify-content:center;gap:8px;font-size:21px;font-weight:600;line-height:1.2;color:var(--fin-ink-2);min-height:51px}
.fin-ec p .ic{width:24px;height:24px;color:var(--fin-lime);stroke-width:2.3;flex:none;vertical-align:0}

/* ---------- 3. награды ---------- */
.fin-aw{flex:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;min-height:0}
.fin-ac{display:flex;flex-direction:column;align-items:center;text-align:center;padding:18px 22px 20px;border-radius:32px;background:var(--fin-card);border:1px solid var(--fin-line);min-width:0;cursor:pointer}
.fin-ac>img{width:172px;height:172px;filter:drop-shadow(0 14px 30px rgba(0,0,0,.35))}
.fin-ac h3{font:700 30px/1.15 var(--font-head);margin-top:4px}
.fin-ac .val{margin-top:10px;font-size:28px;line-height:1.5;font-weight:800;color:var(--fin-lime)}
.fin-ac .val::first-letter{text-transform:uppercase}
.fin-ac .why{font-size:21px;color:var(--fin-ink-2);line-height:1.25;margin-top:4px}
.fin-ac .who{margin-top:auto;width:100%;display:flex;align-items:center;justify-content:center;gap:14px;padding:12px 16px;border-radius:999px;background:var(--fin-card-2);font-size:28px;line-height:1.5;font-weight:800;min-width:0}
.fin-ac .who>span:last-child{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fin-ac.c1 .who .fin-av{background:var(--fin-teal)}.fin-ac.c2 .who .fin-av{background:var(--fin-purple)}
.fin-aw.four .fin-ac>img{width:140px;height:140px}.fin-aw.four .fin-ac h3{font-size:24px}.fin-aw.four .fin-ac .val{font-size:24px}.fin-aw.four .fin-ac .who{font-size:22px}

/* ---------- 4. пьедестал ---------- */
.fin-pd{position:relative;flex:1;display:flex;align-items:flex-end;justify-content:center;gap:18px;min-height:0}
.fin-pc{position:relative;width:280px;display:flex;flex-direction:column;align-items:center}
.fin-pp{display:flex;gap:10px;justify-content:center;width:100%;margin-bottom:12px}
.fin-pers{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:0;flex:1;border:0;background:none;padding:0;cursor:pointer}
.fin-pers .fin-av{width:88px;height:88px;font-size:32px;box-shadow:0 0 0 5px var(--fin-bg),0 0 0 8px var(--mc)}
.fin-pers b{font-size:28px;line-height:1.5;font-weight:800;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fin-pp.two .fin-av{width:72px;height:72px;font-size:26px}
.fin-pp.two b{font-size:23px}
.fin-pp.many{flex-wrap:wrap;gap:8px 6px}
.fin-pp.many .fin-pers{flex:0 0 136px}
.fin-box .fin-pp.many .fin-av{width:60px;height:60px;font-size:22px}
.fin-box .fin-pp.many b{font-size:20px}
.fin-team{font:700 26px/1.2 var(--font-head);margin-bottom:14px}
.fin-pm{font-size:24px;font-weight:700;display:flex;gap:14px;align-items:center;margin-bottom:12px;white-space:nowrap}
.fin-pm em{font-style:normal;color:var(--fin-ink-2);font-weight:600}
.fin-pb{width:100%;border-radius:24px 24px 0 0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--fin-dark);transform-origin:50% 100%;animation:fin-k-rise .7s var(--fin-ease) both;animation-delay:var(--d)}
.fin-pb b{font:700 76px/1 var(--font-head)}
.fin-pb span{font-size:22px;line-height:1.5;font-weight:800}
.fin-pc.p1{--mc:var(--fin-gold)}.fin-pc.p2{--mc:var(--fin-silver)}.fin-pc.p3{--mc:var(--fin-bronze)}
.fin-pc.p1 .fin-pb{height:200px;background:var(--fin-lime)}
.fin-pc.p2 .fin-pb{height:148px;background:var(--fin-teal)}
.fin-pc.p3 .fin-pb{height:104px;background:var(--fin-purple)}
.fin-pc.p3 .fin-pb b{font-size:56px}
.fin-pc.p1 .fin-pp:not(.two):not(.many) .fin-av{width:112px;height:112px;font-size:40px}
.fin-pc.p1 .fin-pp:not(.two):not(.many) b{font-size:34px}
.fin-pc.p1 .fin-pm{font-size:28px}
.fin-pc.wide .fin-pb{height:120px}
.fin-cup{width:92px;height:92px;margin-bottom:-6px}
.fin-rays{position:absolute;left:50%;top:150px;width:760px;height:760px;margin:-380px 0 0 -380px;border-radius:50%;pointer-events:none;opacity:.5;
  background:repeating-conic-gradient(from 0deg,rgba(198,255,5,.20) 0 9deg,transparent 9deg 22.5deg);
  -webkit-mask:radial-gradient(circle,#000 10%,transparent 62%);mask:radial-gradient(circle,#000 10%,transparent 62%);
  animation:fin-k-pop .8s var(--fin-ease) both,fin-k-spin 40s linear infinite;animation-delay:var(--d),var(--d)}
.fin-burst{position:absolute;left:50%;top:150px;width:44px;height:44px;margin:-22px;pointer-events:none;animation:fin-k-burst 1.5s cubic-bezier(.1,.7,.3,1) both;animation-delay:var(--d)}
.fin-limi{position:absolute;right:-30px;bottom:6px;width:215px;height:215px}

/* ---------- 5. рейтинг ---------- */
.fin-rk{flex:1;display:grid;grid-template-columns:1fr 1fr;gap:0 22px;min-height:0;align-content:start}
.fin-rk-col{display:grid;gap:7px;align-content:start}
.fin-rr,.fin-rk-hd{display:grid;grid-template-columns:54px minmax(0,1fr) 92px 88px 96px;align-items:center;gap:10px;padding:0 16px 0 10px}
.fin-rk.nowallet .fin-rr,.fin-rk.nowallet .fin-rk-hd{grid-template-columns:54px minmax(0,1fr) 92px 88px}
.fin-rk-hd{font-size:18px;font-weight:700;color:var(--fin-ink-2);height:30px}
.fin-rk-hd span{text-align:right;white-space:nowrap}.fin-rk-hd span:nth-child(2){text-align:left}
.fin-rr{width:100%;height:65px;border-radius:18px;background:var(--fin-card);border:1px solid var(--fin-line);text-align:left;font-size:15px}
button.fin-rr{cursor:pointer}
button.fin-rr:hover{background:var(--fin-card-2)}
.fin-rr .pl{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;font:700 21px/1 var(--font-head);background:rgba(255,255,255,.12)}
.fin-rr .pl.ini{font:800 17px/1 var(--font)}
.fin-rr.m1 .pl{background:var(--fin-gold);color:var(--fin-dark)}.fin-rr.m2 .pl{background:var(--fin-silver);color:var(--fin-dark)}.fin-rr.m3 .pl{background:var(--fin-bronze);color:var(--fin-dark)}
.fin-rr .nm{font-size:25px;line-height:1.5;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fin-rr .n1{font-size:28px;line-height:1.5;justify-content:flex-end}
.fin-rr .n2{font-size:24px;font-weight:700;text-align:right}
.fin-rr .n3{font-size:22px;font-weight:700;text-align:right;color:var(--fin-ink-2)}
.fin-rr.off{background:transparent;border-style:dashed}
.fin-rr.off .nm{color:var(--fin-ink-2);font-weight:700}
.fin-rr.off .ns{grid-column:3/-1;text-align:right;font-size:22px;font-weight:600;color:var(--fin-ink-2);white-space:nowrap}
.fin-rk-leg{margin-top:10px;display:flex;gap:26px;font-size:19px;color:var(--fin-ink-2);line-height:1.25}
.fin-rk-leg b{color:#fff}
.fin-rk-leg>span{display:flex;gap:8px;align-items:flex-start;flex:1}
.fin-rk-leg .ic{width:22px;height:22px;flex:none;margin-top:1px;color:var(--fin-lime);vertical-align:0}

/* ---------- 6. открытка ---------- */
.fin-end{flex:1;display:grid;grid-template-columns:600px minmax(0,1fr);gap:48px;align-items:center;min-height:0}
.fin-png{position:relative;height:492px;border-radius:28px;background:#fff;overflow:hidden;box-shadow:0 24px 70px rgba(0,0,0,.45);transform:rotate(-2deg)}
.fin-png.fin-pop{animation-name:fin-k-up}
.fin-png img{width:100%;height:100%}
.fin-png img[hidden]{display:none}
.fin-end-r h2{font-size:42px;line-height:1.1;font-weight:700}
.fin-end-r>p{font-size:23px;color:var(--fin-ink-2);margin-top:10px;line-height:1.3}
.fin-acts{display:grid;gap:12px;margin-top:24px;justify-items:start}
.fin-acts .fin-go{margin:0;height:68px;font-size:24px;padding:0 34px}
.fin-acts .fin-go .ic{fill:none;stroke:currentColor;stroke-width:2.6}
.fin-acts small{font-size:19px;color:var(--fin-ink-2);margin:-4px 0 8px 6px}
.fin-row{display:flex;gap:10px;flex-wrap:wrap}
.fin-row .fin-b{height:54px;font-size:20px}

/* ---------- один решавший, никто не решал ---------- */
.fin-solo{flex:1;display:grid;grid-template-columns:300px minmax(0,1fr);gap:40px;align-items:center;min-height:0}
.fin-solo>img{width:300px;height:300px}
.fin-solo-card{border-radius:32px;background:var(--fin-card);border:1px solid var(--fin-line);padding:30px 36px}
.fin-solo-card .hd{display:flex;align-items:center;gap:18px}
.fin-solo-card .hd .fin-av{width:84px;height:84px;font-size:30px}
.fin-solo-card .hd b{font:700 40px/1.1 var(--font-head)}
.fin-nums{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:22px}
.fin-nums .fin-tl{grid-template-columns:1fr;gap:2px;min-height:118px;padding:14px 22px;align-content:center}
.fin-nums .fin-tl b{font-size:50px}.fin-nums .fin-tl span{font-size:21px}
.fin-facts{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.fin-facts span{display:inline-flex;align-items:center;gap:8px;height:48px;padding:0 18px;border-radius:999px;background:var(--fin-card-2);font-size:22px;font-weight:700;white-space:nowrap}
.fin-facts .ic{width:22px;height:22px;color:var(--fin-lime);stroke-width:2.3;vertical-align:0}
.fin-empty{align-items:center;justify-content:center;text-align:center;gap:10px}
.fin-empty img{width:240px;height:240px}
.fin-empty h2{font-size:44px;line-height:1.3;font-weight:700}
.fin-empty p{font-size:24px;color:var(--fin-ink-2);max-width:760px;line-height:1.35}
.fin-empty .fin-row{margin-top:18px;justify-content:center}

/* ---------- карточка ученика поверх сцены ---------- */
.fin-ov{position:absolute;inset:0;z-index:8;display:grid;place-items:center;background:rgba(8,11,30,.78)}
.fin-ov-card{position:relative;width:820px;border-radius:36px;background:var(--fin-card);border:1px solid var(--fin-line);padding:34px 40px 36px;box-shadow:0 30px 90px rgba(0,0,0,.6);animation:fin-k-pop .4s var(--fin-ease) both}
.fin-paused .fin-ov-card{animation-play-state:running!important}
.fin-ov-card .hd{display:flex;align-items:center;gap:20px}
.fin-ov-card .hd .fin-av{width:96px;height:96px;font-size:34px}
.fin-ov-card .hd b{font:700 42px/1.1 var(--font-head);display:block}
.fin-ov-card .hd span{font-size:24px;color:var(--fin-ink-2);font-weight:600}
.fin-ov-card .hd img{margin-left:auto;margin-right:130px;width:140px;height:140px;margin-top:-24px;margin-bottom:-16px}
.fin-ov-x{position:absolute;right:18px;top:18px;display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 16px;border-radius:999px;border:1.5px solid rgba(255,255,255,.34);background:var(--fin-card);color:#fff;font-size:17px;font-weight:700;line-height:1;cursor:pointer}
.fin-ov-x .ic{width:18px;height:18px;stroke-width:2.6;vertical-align:0}

/* ===== Организации: кабинет директора, админ-панель, профиль, аватары учеников (docs/design/Классы_и_группы.md) ===== */
/* аватар из набора edlimi в любом кружке с инициалами: шапка, свод, итоги, плитки входа */
.ava-img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
.ava:has(.ava-img),.bd-ava:has(.ava-img),.ls-ava:has(.ava-img),.jn-ava:has(.ava-img),.bd-chip i:has(.ava-img){background:var(--surface-3);overflow:hidden}
.me .menu a{display:flex;align-items:center;gap:8px;min-height:var(--ctl-h-sm);margin-top:8px;font-weight:700;color:var(--purple-ink)}
.me .menu a .ic{width:18px;height:18px}
/* полоса «Вы вошли как …» */
.impbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0 0;padding:10px 16px;border-radius:var(--r-lg);background:var(--warn-soft);color:var(--warn);font-weight:700;font-size:var(--fs-sm)}
.impbar span{display:flex;align-items:center;gap:8px;margin-right:auto}.impbar .ic{width:18px;height:18px}
.impbar .btn{min-height:var(--ctl-h-sm);background:var(--surface)}
/* разделы и списки кабинетов директора и администратора */
.org-sec{margin:22px 0}.org-sec>h2,.org-h h2{font-family:var(--font-head);font-size:var(--fs-h2);font-weight:600;margin-bottom:12px}
.org-h{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}.org-h h2{margin:0 auto 0 0}.org-h .addbar{margin-left:0}
.org-list{display:flex;flex-direction:column;gap:8px}
.org-row{display:flex;align-items:center;gap:12px;min-height:56px;padding:10px 14px;border:1px solid var(--edge);border-radius:var(--r-lg);background:var(--surface);color:var(--ink)}
.org-row>.ic{width:22px;height:22px;flex:none;color:var(--teal-ink)}
.org-row>span{flex:1 1 auto;min-width:0;font-weight:600}.org-row b{display:block;font-weight:700}.org-row small{display:block;font-size:var(--fs-xs);font-weight:500;color:var(--muted)}
.org-row em{font-style:normal;font-size:var(--fs-sm);font-weight:700;color:var(--purple-ink);white-space:nowrap}
.org-row.is-warn{background:var(--warn-soft);border-color:transparent}.org-row.is-warn>.ic{color:var(--warn)}
a.org-row:hover{border-color:var(--edge-2)}
.org-row form{display:contents}.org-row .btn{min-height:var(--ctl-h-sm);padding:4px 14px;font-size:var(--fs-sm)}
.org-inline{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:12px}.org-inline select{width:auto;min-width:220px;max-width:100%}
a.trow.org-link{color:var(--ink)}
.trow.is-off .who b,.trow.is-off .av{opacity:.55}
.tag2.is-err{background:var(--err-soft);color:var(--err)}
a.tag2{color:var(--purple-ink)}
.org-form{max-width:560px;display:flex;flex-direction:column;gap:16px}
.org-dot{display:inline-block;width:14px;height:14px;border-radius:50%;margin-right:8px;vertical-align:-2px}
.grp-teachers{display:flex;align-items:center;gap:6px;margin:-8px 0 14px}.grp-teachers .ic{width:16px;height:16px}
.yearbox form{display:flex;flex-direction:column;gap:12px;align-items:flex-start}
.gcard .warn{color:var(--warn);display:flex;align-items:center;gap:4px}.gcard .warn .ic{width:14px;height:14px}
#tchTable .acts2,#orgTable .acts2{min-width:0}
#usrTable .acts2,.org-sec .table .acts2{flex-wrap:wrap}
.table.imp.imp6 .trow{grid-template-columns:22px 1fr 1fr .8fr .7fr 1fr}
.table.imp.imp6 .trow select{padding:9px 10px;font-size:14px;min-width:0}
/* профиль */
.prof{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px;align-items:start;margin-bottom:24px}
.prof-card{display:flex;flex-direction:column;gap:14px;padding:20px;border:1px solid var(--edge);border-radius:var(--r-xl);background:var(--surface)}
.prof-card h2{font-family:var(--font-head);font-size:var(--fs-h2);font-weight:600}
.prof-card .btn{align-self:flex-start}
.ava-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:10px}
.ava-opt{position:relative;display:block;cursor:pointer}
.ava-opt input{position:absolute;opacity:0;width:1px;height:1px;left:0;top:0}
.ava-opt span{display:grid;place-items:center;aspect-ratio:1;border-radius:50%;background:var(--surface-3);border:3px solid transparent;overflow:hidden}
.ava-opt img{width:100%;height:100%;object-fit:cover;display:block}
.ava-opt .ava-none{font-weight:800;font-size:22px;color:var(--purple-ink);background:var(--purple-soft)}
.ava-opt input:checked+span{border-color:var(--purple-ink);box-shadow:0 0 0 3px var(--purple-soft)}
.ava-opt input:focus-visible+span{outline:3px solid var(--focus);outline-offset:2px}
@media (max-width:760px){
  .org-row{flex-wrap:wrap}.org-row em{white-space:normal}
  .org-inline select{flex:1 1 100%}
  .table.imp.imp6 .trow{grid-template-columns:22px 1fr 1fr}
  .acts2{flex-wrap:wrap}
  /* списки кабинетов с несколькими кнопками в строке: метки и кнопки — отдельными рядами во всю ширину */
  #usrTable .trow .grp,.org-sec .table:not(.members) .trow .grp,#stuTable:not(:has(.cb)) .trow .grp{grid-area:2/1/3/-1}
  #usrTable .trow .acts2,.org-sec .table:not(.members) .trow .acts2,#stuTable:not(:has(.cb)) .trow .acts2{grid-area:3/1/4/-1;justify-content:flex-start}
}
