/* Препка v2 — раскладка страниц приложения в стиле /next. Подключается только на /v2/, после v2-skin.css.
   Разметку новых страниц рисует assets/v2.js */
/* палитра кабинета: белый и нейтральный серый (светлая), графит (тёмная).
   Активное и главные кнопки — чёрные (в тёмной — белые); кислотный — один акцент на экран; синий/кислотный — прогресс */
html.v2 {
  --x-ink: #0E0E10; --x-acid: #D4FF3A; --x-red: #FF4A1C; --x-blue: #3B3BFF;
  --x-paper: #F2F2F4; --x-paper-line: #E4E4E9;
  --x-inv: #0E0E10; --x-on-inv: #FFFFFF; --x-on-inv-acc: #D4FF3A;   /* сильная поверхность */
  --x-act: #0E0E10; --x-on-act: #FFFFFF;                            /* активное и главная кнопка */
  --x-prog: #3B3BFF;                                                 /* прогресс и ссылки */
  --x-spring: cubic-bezier(.2, .9, .3, 1.35); --x-out: cubic-bezier(.2, .8, .2, 1);
}
html.v2[data-theme="dark"] {
  --x-paper: #222229; --x-paper-line: #2C2C33;
  --x-inv: #FFFFFF; --x-on-inv: #0E0E10; --x-on-inv-acc: #0E0E10;
  --x-act: #FFFFFF; --x-on-act: #0E0E10;
  --x-prog: #D4FF3A;
}

/* ======================= рамка кабинета: боковое меню (понятнее для десятка разделов), в новом стиле ======================= */
html.v2 .lms-page-wrapper { background: var(--bg); }
html.v2 .lms-sidebar { width: 264px; min-width: 264px; background: var(--bg); border-right: 1.5px solid var(--x-paper-line); box-shadow: none; padding: 0 0 16px; }
html.v2 .lms-brand-block { padding: 20px 18px 14px; }
html.v2 .lms-logo-link { display: inline-flex; align-items: center; gap: 0; padding: 10px 16px; border-radius: 999px; background: var(--x-ink); }
html.v2 .lms-logo-icon { display: none; }
html.v2 .lms-logo-text { color: #fff; font-size: 22px; }
html.v2 .lms-logo-text i { color: var(--x-acid); font-style: normal; }
html.v2 .lms-nav-list { padding: 4px 12px; gap: 2px; }
html.v2 .lms-nav-label { margin: 18px 12px 6px; font: 700 12px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
html.v2 .lms-nav-item { gap: 12px; padding: 11px 14px; border-radius: 14px; color: var(--text); font-weight: 600; font-size: 15px; }
html.v2 .lms-nav-item .lms-ico { color: var(--muted); }
html.v2 .lms-nav-item:hover { background: var(--x-paper); color: var(--text); }
html.v2 .lms-nav-item.active { background: var(--x-act); color: var(--x-on-act); }
html.v2 .lms-nav-item.active .lms-ico { color: var(--x-on-act); }
html.v2 .cab-nav-badge { background: var(--x-red); color: #fff; }
html.v2 .cab-side-stats { margin: 16px 12px 0; padding: 0; border: 0; }
html.v2 .cab-side-row { padding: 14px 16px; border-radius: 16px; background: var(--x-paper); color: var(--text); }
html.v2 .cab-side-hint { color: var(--muted); }
html.v2 .cab-t-studio .lms-sidebar { width: 72px; min-width: 72px; }
html.v2 .cab-t-studio .lms-logo-link { padding: 10px 12px; }
html.v2 .cab-t-studio .lms-logo-text { font-size: 0; }
html.v2 .cab-t-studio .lms-logo-text::before { content: 'п'; font-size: 22px; }
/* верхняя строка раздела: крупный заголовок, поиск, уведомления, профиль */
html.v2 .lms-topbar { height: auto; min-height: 76px; padding: 18px 32px; background: var(--bg); border-bottom: 0; }
html.v2 .cab-top-title { font: 400 clamp(26px, 2.4vw, 36px)/1 var(--font-d); letter-spacing: -.02em; }
html.v2 .lms-main { background: var(--bg); }
html.v2 .lms-icon-action { border: 0; border-radius: 999px; background: var(--surface-2); }
/* палитра формул нужна только в редакторе уроков — на остальных страницах кнопку «Σ» прячем */
html.v2 body:not(:has(.cab-t-studio)) .fpad-fab { display: none !important; }
html.v2 .cab-search { border-radius: 999px; background: var(--surface-2); border-color: transparent; }


/* ======================= Кабинет: главная ======================= */
html.v2 .v2-dash { display: flex; flex-direction: column; gap: 72px; padding-bottom: 80px; }
html.v2 .v2-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
html.v2 .v2-sec-h h2 { font: 400 clamp(28px, 2.6vw, 40px)/1 var(--font-d); letter-spacing: -.02em; }
html.v2 .v2-sec-h a { font-weight: 700; border-bottom: 2px solid currentColor; }
html.v2 .v2-quiet { color: var(--muted); font-size: 17px; }

/* следующий шаг — стикеры */
html.v2 .v2-next-row { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
html.v2 .v2-next { position: relative; flex: 1 1 520px; max-width: 760px; display: flex; flex-direction: column; gap: 10px; padding: 32px 96px 32px 32px; border-radius: 26px;
  background: var(--x-acid); color: var(--x-ink); transform: rotate(var(--r, -1.5deg)); transition: transform .4s var(--x-spring); }
html.v2 .v2-next:hover { transform: rotate(0) translateY(-6px); }
html.v2 .v2-next small { font-weight: 700; font-size: 14px; opacity: .75; }
html.v2 .v2-next b { font: 400 clamp(28px, 3vw, 44px)/1.02 var(--font-d); letter-spacing: -.02em; }
html.v2 .v2-next span { font-weight: 600; }
html.v2 .v2-next > i { position: absolute; right: 26px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--x-inv); color: var(--x-on-inv-acc); font-style: normal; font-size: 26px; font-weight: 700; transition: transform .3s var(--x-spring); }
html.v2 .v2-next:hover > i { transform: rotate(-45deg); }
html.v2 .v2-next.is-small { flex: 1 1 320px; max-width: 420px; background: var(--x-inv); color: var(--x-on-inv); padding: 24px 84px 24px 24px; }
html.v2 .v2-next.is-small b { font-size: 24px; }
html.v2 .v2-next.is-small > i { background: var(--x-acid); color: var(--x-ink); width: 48px; height: 48px; right: 20px; }
html.v2 .v2-next-empty { max-width: 640px; }

/* эфир */
html.v2 .v2-live { display: flex; align-items: center; gap: 18px; padding: 18px 24px; border-radius: 999px; background: var(--x-red); color: #fff; align-self: flex-start; }
html.v2 .v2-live span { font-weight: 800; }
html.v2 .v2-live b { font-weight: 700; }
html.v2 .v2-live i { font-style: normal; font-weight: 700; }

/* сроки — доска со стикерами */
html.v2 .v2-board { padding: 36px; border-radius: 32px; background-color: var(--x-paper); }
html.v2 .v2-dues { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 26px 22px; }
html.v2 .v2-due { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 20px; background: var(--surface); color: var(--text); transform: rotate(var(--r, 0deg)); transition: transform .35s var(--x-spring); }
html.v2 .v2-due:hover { transform: rotate(0) scale(1.03); }
html.v2 .v2-due.is-soon { background: var(--x-acid); color: var(--x-ink); }
html.v2 .v2-due.is-late { background: var(--x-red); color: #fff; }
html.v2 .v2-due-date { display: flex; align-items: baseline; gap: 6px; font-weight: 700; }
html.v2 .v2-due-date b { font: 400 44px/1 var(--font-d); }
html.v2 .v2-due-t { font-size: 18px; line-height: 1.3; }
html.v2 .v2-due small { opacity: .75; font-weight: 600; }
html.v2 .v2-due .cab-chip { align-self: flex-start; }

/* неделя — клеточки бланка */
html.v2 .v2-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
html.v2 .v2-week-nav { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
html.v2 .v2-week-nav button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--text); font-weight: 700; cursor: pointer; }
html.v2 .v2-cells { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
html.v2 .v2-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 0 10px; border: 2px solid var(--x-paper-line); border-radius: 8px; background: var(--surface);
  color: var(--text); cursor: pointer; transition: transform .2s var(--x-spring), border-color .2s; }
html.v2 .v2-cell:hover { transform: translateY(-3px); }
html.v2 .v2-cell small { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: lowercase; }
html.v2 .v2-cell b { font: 400 26px/1 var(--font-d); }
html.v2 .v2-cell span { display: flex; gap: 3px; min-height: 8px; }
html.v2 .v2-cell span i { width: 8px; height: 8px; border-radius: 50%; background: var(--x-red); }
html.v2 .v2-cell.is-today { border-color: var(--x-blue); }
html.v2 .v2-cell.is-sel { background: var(--x-act); border-color: var(--x-act); color: var(--x-on-act); }
html.v2 .v2-cell.is-sel small { color: var(--x-on-act); }
html.v2 .v2-agenda { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
html.v2 .v2-agenda a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); }
html.v2 .v2-agenda small { grid-column: 1; color: var(--muted); }
html.v2 .v2-agenda .cab-chip { grid-row: 1 / 3; grid-column: 2; }

/* записки куратора */
html.v2 .v2-notes { display: flex; flex-direction: column; gap: 18px; }
html.v2 .v2-note { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px 24px 22px; border-radius: 6px; background: var(--x-paper); color: var(--text);
  transform: rotate(var(--r, 0deg)); transition: transform .3s var(--x-spring); }
/* полоска скотча сверху записки */
html.v2 .v2-note::before { content: ''; position: absolute; left: 50%; top: -11px; width: 92px; height: 22px; translate: -50% 0; rotate: -3deg; background: rgba(212, 255, 58, .75); }
html.v2 .v2-note:hover { transform: rotate(0); }
html.v2 .v2-note-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
html.v2 .v2-note-top small { color: var(--muted); }
html.v2 .v2-note q { font-size: 17px; line-height: 1.6; quotes: '«' '»'; }
html.v2 .v2-note > small { color: var(--muted); font-weight: 600; }

/* мои модули — наклейки */
html.v2 .v2-slaps { display: flex; flex-wrap: wrap; gap: 28px; }
html.v2 .v2-slap { position: relative; width: min(380px, 100%); display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 26px;
  transform: rotate(var(--r, 0deg)); transition: transform .4s var(--x-spring); }
html.v2 .v2-slap:hover { transform: rotate(0) translateY(-6px); }
html.v2 .v2-slap-ЕГЭ { background: var(--x-acid); color: var(--x-ink); }
html.v2 .v2-slap-ОГЭ { background: var(--x-red); color: #fff; }
html.v2 .v2-slap-ВПР { background: var(--x-blue); color: #fff; }
html.v2 .v2-slap-exam { font: 400 64px/.85 var(--font-d); letter-spacing: -.04em; }
html.v2 .v2-slap b { font: 400 24px/1.1 var(--font-d); }
html.v2 .v2-slap-bar { height: 10px; border-radius: 99px; background: rgba(14, 14, 16, .15); overflow: hidden; }
html.v2 .v2-slap-bar i { display: block; height: 100%; border-radius: inherit; background: var(--x-ink); }
html.v2 .v2-slap-ОГЭ .v2-slap-bar, html.v2 .v2-slap-ВПР .v2-slap-bar { background: rgba(255, 255, 255, .25); }
html.v2 .v2-slap-ОГЭ .v2-slap-bar i, html.v2 .v2-slap-ВПР .v2-slap-bar i { background: #fff; }
html.v2 .v2-slap small { font-weight: 700; opacity: .85; }
html.v2 .v2-slap-go { position: absolute; right: 22px; top: 22px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--x-inv); color: var(--x-on-inv); font-style: normal; font-weight: 700; font-size: 20px; }

@media (max-width: 980px) {
  html.v2 .v2-dhero, html.v2 .v2-two { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  html.v2 .v2-dhero { margin-top: 0; }
  html.v2 .v2-nums { grid-template-columns: repeat(2, auto); }
  html.v2 .v2-dash { gap: 48px; }
  html.v2 .v2-board { padding: 22px; }
  html.v2 .v2-next { padding: 24px 84px 24px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html.v2 .v2-next, html.v2 .v2-due, html.v2 .v2-note, html.v2 .v2-slap, html.v2 .v2-chip, html.v2 .v2-cell { transition: none; }
}
/* аватарка в кабинете — чёрный кружок с кислотной буквой (сгенерированные правила красили её в оранжевый) */
html.v2 .lms-user-cluster .lms-avatar-btn.cab-avatar:not(.has-img) { background: var(--x-ink) !important; color: var(--x-acid) !important; }
html.v2[data-theme="dark"] .lms-user-cluster .lms-avatar-btn.cab-avatar:not(.has-img) { background: var(--x-acid) !important; color: var(--x-ink) !important; }

/* ======================= шапка сайта вне кабинета: плашки, как на /next ======================= */
html.v2 .topbar { background: transparent; border: 0; }
html.v2 .topbar .logo { padding: 9px 16px 9px 10px; border-radius: 999px; background: var(--x-inv); color: var(--x-on-inv); }
html.v2 .topbar .logo-mark { background: var(--x-acid); color: var(--x-ink); }
html.v2 .topbar .logo-word i { color: var(--x-acid); }
@media (min-width: 981px) {
  html.v2 .topbar .nav-main { padding: 5px; border-radius: 999px; background: var(--x-ink); }
  html.v2 .topbar .nav-main .nav-link { color: #fff; border-radius: 999px; padding: 9px 14px; }
  html.v2 .topbar .nav-main .nav-link:hover, html.v2 .topbar .nav-main .nav-link[aria-expanded="true"] { background: #fff; color: var(--x-ink); }
  html.v2 .topbar .nav-tasks-pill { background: transparent; }
}
html.v2 .topbar .btn-topbar-cta { border-radius: 999px; background: var(--x-acid); color: var(--x-ink); box-shadow: 0 0 0 2px var(--x-ink); }
html.v2 .topbar .topbar-phone, html.v2 .topbar .icon-btn { border-radius: 999px; background: var(--x-inv); color: var(--x-on-inv); border: 0; }
html.v2 .topbar .topbar-phone { padding: 0 16px; }
html.v2 .topbar .topbar-phone .ic { color: var(--x-acid); }

/* старый подвал на ещё не переделанных страницах — тоже кислотный */
html.v2 .footer { background: var(--x-acid); color: var(--x-ink); border: 0; }
html.v2 .footer a, html.v2 .footer .muted, html.v2 .footer h4 { color: var(--x-ink); }

/* ======================= общий подвал v2 ======================= */
html.v2 .v2-foot { margin-top: 120px; padding: 72px 32px 36px; background: var(--x-acid); color: var(--x-ink); overflow: hidden; }
html.v2 .v2-giant { font: 400 clamp(80px, 20vw, 320px)/.8 var(--font-d); letter-spacing: -.045em; white-space: nowrap; margin: 0 0 40px; }
html.v2 .v2-foot-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-weight: 600; }
html.v2 .v2-foot-row nav { display: flex; gap: 22px; flex-wrap: wrap; }
html.v2 .v2-foot-row a:hover { text-decoration: underline; }

/* ======================= страница курса ======================= */
html.v2 .v2-page { width: min(1280px, 100% - 40px); margin: 0 auto; padding-top: 24px; }
html.v2 .v2-back { display: inline-flex; padding: 10px 16px; border-radius: 999px; background: var(--surface-2); font-weight: 700; margin-bottom: 36px; }
html.v2 .v2-chero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 56px; align-items: start; }
html.v2 .v2-exam { display: inline-block; padding: 14px 24px 10px; border-radius: 20px; font: 400 clamp(56px, 7vw, 104px)/.9 var(--font-d); letter-spacing: -.04em; transform: rotate(var(--r, -3deg)); }
html.v2 .v2-exam-ЕГЭ { background: var(--x-acid); color: var(--x-ink); }
html.v2 .v2-exam-ОГЭ { background: var(--x-red); color: #fff; }
html.v2 .v2-exam-ВПР { background: var(--x-blue); color: #fff; }
html.v2 .v2-chero h1 { margin-top: 28px; font: 400 clamp(40px, 4.6vw, 72px)/1 var(--font-d); letter-spacing: -.025em; }
html.v2 .v2-facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
html.v2 .v2-facts li { padding: 10px 16px; border-radius: 999px; background: var(--surface-2); font-weight: 600; }
html.v2 .v2-facts b { font-weight: 800; }
html.v2 .v2-teacher { margin-top: 28px; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
html.v2 .v2-teacher span { grid-row: 1 / 3; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--x-inv); color: var(--x-on-inv-acc); font-weight: 800; }
html.v2 .v2-teacher b { font-size: 18px; }
html.v2 .v2-teacher small { color: var(--muted); }
html.v2 .v2-cside { display: flex; flex-direction: column; gap: 28px; }
html.v2 .v2-cside .v2-next { flex: none; max-width: none; }
html.v2 .v2-tariffs { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 26px; background: var(--x-paper); }
html.v2 .v2-tariffs h3 { font: 400 26px/1 var(--font-d); margin-bottom: 6px; }
html.v2 .v2-topt { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--surface); cursor: pointer; border: 2px solid transparent; }
html.v2 .v2-topt:has(input:checked) { border-color: var(--x-ink); }
html.v2 .v2-topt input { width: 20px; height: 20px; accent-color: var(--x-ink); margin: 0; }
html.v2 .v2-tname { display: flex; flex-direction: column; gap: 2px; }
html.v2 .v2-tname small { color: var(--muted); font-size: 13px; }
html.v2 .v2-tprice { font: 400 22px/1 var(--font-d); white-space: nowrap; }
html.v2 .v2-tprice small { font: 600 13px var(--font); color: var(--muted); }
html.v2 .v2-tlink { align-self: flex-start; border: 0; background: none; padding: 4px 0; font: inherit; font-weight: 700; color: var(--text); text-decoration: underline; cursor: pointer; }

/* программа — как бланк: номер в клеточке, фишка состояния справа */
html.v2 .v2-program { margin-top: 110px; }
html.v2 .v2-plist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
html.v2 .v2-prow { display: grid; grid-template-columns: 52px 1fr 26px; gap: 18px; align-items: center; padding: 10px 18px 10px 10px; border-radius: 16px; transition: background-color .15s, transform .2s var(--x-spring); }
html.v2 .v2-prow:hover { background: var(--surface-2); transform: translateX(4px); }
html.v2 .v2-pnum { display: grid; place-items: center; height: 52px; border: 2px solid var(--x-paper-line); border-radius: 6px; font: 400 20px/1 var(--font-d); color: var(--x-blue); background: var(--surface); }
html.v2 .v2-prow.is-web .v2-pnum { color: var(--x-red); border-color: var(--x-red); }
html.v2 .v2-ptitle { display: flex; flex-direction: column; gap: 2px; }
html.v2 .v2-ptitle b { font-size: 18px; font-weight: 700; }
html.v2 .v2-ptitle small { color: var(--muted); }
html.v2 .v2-ptitle em { font-style: normal; font-weight: 700; }
html.v2 .v2-ptitle em.is-free { color: #19A34A; }
html.v2 .v2-ptitle em.is-web { color: var(--x-red); }
html.v2 .v2-prow.is-locked { opacity: .55; }
html.v2 .v2-prow .v2-chip { width: 26px; height: 26px; }
html.v2 .v2-pmod { margin-bottom: 18px; }
html.v2 .v2-pmod-head { display: flex; align-items: baseline; gap: 14px; width: 100%; padding: 18px 4px; border: 0; background: none; color: var(--text); cursor: pointer; text-align: left; }
html.v2 .v2-pmod-head b { font: 400 26px/1.1 var(--font-d); }
html.v2 .v2-pmod-head small { color: var(--muted); font-weight: 600; }
html.v2 .v2-pmod-head i { margin-left: auto; font-style: normal; font-weight: 700; transition: transform .25s; }
html.v2 .v2-pmod-head[aria-expanded="true"] i { transform: rotate(180deg); }
html.v2 .v2-pmod:not(.open) .v2-plist { display: none; }

@media (max-width: 980px) {
  html.v2 .v2-chero { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  html.v2 .v2-program { margin-top: 72px; }
  html.v2 .v2-prow { grid-template-columns: 44px 1fr 22px; gap: 12px; }
  html.v2 .v2-pnum { height: 44px; }
  html.v2 .v2-foot { padding: 56px 16px 28px; }
}
html.v2 .v2-plist.is-clipped > li:nth-child(n+13) { display: none; }
html.v2 .v2-more { margin-top: 14px; padding: 14px 22px; border: 0; border-radius: 999px; background: var(--x-inv); color: var(--x-on-inv); font: 700 15px/1 var(--font); cursor: pointer; }

/* ======================= страница урока: рамка и блоки ======================= */
html.v2 .lesson-page { padding-top: 16px; }
html.v2 .v2-lbar { display: grid; grid-template-columns: auto auto 1fr; gap: 16px 22px; align-items: center; margin-bottom: 36px; }
html.v2 .v2-lbar .v2-back { margin: 0; max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.v2 .v2-lnum { display: inline-flex; align-items: baseline; gap: 8px; }
html.v2 .v2-lnum b { display: grid; place-items: center; min-width: 58px; height: 58px; padding: 0 10px; border: 2px solid var(--x-ink); border-radius: 8px; font: 400 30px/1 var(--font-d); color: var(--x-blue); }
html.v2 .v2-lnum small { font-weight: 700; color: var(--muted); }
html.v2 .v2-lchips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
html.v2 .v2-lchips .v2-chip { width: 16px; height: 16px; }
html.v2 .v2-chip.is-cur { box-shadow: 0 0 0 3px var(--x-blue); background: var(--x-blue); transform: scale(1.25); }
/* блоки урока — бумажные поверхности без рамок */
html.v2 .lesson-page .tile { background: var(--x-paper); border: 0; border-radius: 24px; }
html.v2 .lesson-page .tile h2, html.v2 .lesson-page .tile h3 { font-family: var(--font-d); font-weight: 400; }
html.v2 .lesson-page .pill { background: var(--x-inv); color: var(--x-on-inv); border: 0; }
html.v2 .lesson-page .pill .ic { color: var(--x-acid); }
html.v2 .lesson-page .hw-section { background-color: var(--x-paper); }
/* поля ответа — клеточки бланка */
html.v2 .lesson-page input[type="text"], html.v2 .lesson-page .q-input, html.v2 .lesson-page textarea {
  border: 2px solid var(--x-paper-line); border-radius: 8px; background: var(--surface); }
html.v2 .lesson-page input[type="text"]:focus, html.v2 .lesson-page textarea:focus { border-color: var(--x-blue); outline: none; }
/* таймкоды — чёрные фишки времени */
html.v2 .lesson-page .tc-item code { background: var(--x-inv); color: var(--x-on-inv-acc); border-radius: 999px; font-family: var(--font); font-weight: 700; }
/* переход к следующему уроку — кислотный стикер */
html.v2 .lesson-page .lesson-nav { gap: 18px; margin-top: 48px; }
html.v2 .lesson-page .lesson-nav .btn { height: auto; min-height: 64px; padding: 16px 26px; border-radius: 22px; font-size: 17px; }
html.v2 .lesson-page .lesson-nav .btn-primary { background: var(--x-acid); color: var(--x-ink); transform: rotate(-1.5deg); }
html.v2 .lesson-page .lesson-nav .btn-primary:hover { transform: rotate(0) translateY(-3px); }
html.v2 .lesson-page .qa-inline { background: var(--x-inv); color: var(--x-on-inv); }
@media (max-width: 980px) {
  html.v2 .v2-lbar { grid-template-columns: auto 1fr; }
  html.v2 .v2-lchips { grid-column: 1 / -1; }
}
/* аватарка спикера на уроке (цвет задан прямо в разметке) и текущий таймкод */
html.v2 .lesson-page .teacher-row .ava { background: var(--x-ink) !important; color: var(--x-acid); }
html.v2 .lesson-page .tc-item.active, html.v2 .lesson-page .tc-item.is-active, html.v2 .lesson-page .tc-item[aria-current] { background: var(--x-acid); color: var(--x-ink); }

/* ======================= каталог курсов ======================= */
html.v2 .v2-h1 { font: 400 clamp(56px, 8vw, 128px)/.9 var(--font-d); letter-spacing: -.035em; }
html.v2 .v2-catalog .v2-lead { margin-top: 18px; }
html.v2 .v2-exams { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
html.v2 .v2-examtab { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px; border: 0; border-radius: 24px; text-align: left; cursor: pointer;
  background: var(--surface-2); color: var(--text); transform: rotate(var(--r, 0deg)) scale(.96); opacity: .72; transition: transform .35s var(--x-spring), opacity .2s; }
html.v2 .v2-examtab b { font: 400 clamp(40px, 4.4vw, 68px)/.9 var(--font-d); letter-spacing: -.03em; }
html.v2 .v2-examtab small { font-weight: 600; opacity: .8; }
html.v2 .v2-examtab:hover { opacity: 1; transform: rotate(0) scale(1); }
html.v2 .v2-examtab.is-on { opacity: 1; transform: rotate(var(--r, 0deg)) scale(1.02); }
html.v2 .v2-et-ЕГЭ.is-on { background: var(--x-acid); color: var(--x-ink); }
html.v2 .v2-et-ОГЭ.is-on { background: var(--x-red); color: #fff; }
html.v2 .v2-et-ВПР.is-on { background: var(--x-blue); color: #fff; }
html.v2 .v2-et-all.is-on { background: var(--x-inv); color: var(--x-on-inv); }
html.v2 .v2-cat-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 40px 0 44px; }
html.v2 .v2-search { flex: 0 1 320px; padding: 15px 20px; border-radius: 999px; border: 2px solid transparent; background: var(--surface-2); font: 500 16px var(--font); color: var(--text); }
html.v2 .v2-search:focus { outline: none; border-color: var(--x-blue); background: var(--surface); }
html.v2 .v2-pills { display: flex; flex-wrap: wrap; gap: 6px; }
html.v2 .v2-pill { padding: 11px 16px; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--text); font: 600 14px var(--font); cursor: pointer; }
html.v2 .v2-pill.active { background: var(--x-act); color: var(--x-on-act); }
html.v2 .v2-cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 40px 28px; align-items: start; }
html.v2 .v2-cc { width: auto; min-height: 340px; }
html.v2 .v2-cc-top { display: flex; align-items: center; gap: 12px; padding-right: 60px; }
html.v2 .v2-cc-badge { padding: 6px 12px; border-radius: 999px; background: var(--x-inv); color: var(--x-on-inv); font: 700 13px var(--font); }
html.v2 .v2-cc-sub { font-weight: 700; opacity: .75; }
html.v2 .v2-cc p { opacity: .85; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
html.v2 .v2-cc-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
html.v2 .v2-cc-facts span { padding: 6px 11px; border-radius: 999px; background: rgba(14, 14, 16, .1); font-weight: 700; font-size: 13px; }
html.v2 .v2-slap-ОГЭ .v2-cc-facts span, html.v2 .v2-slap-ВПР .v2-cc-facts span { background: rgba(255, 255, 255, .2); }
html.v2 .v2-cc-price { font-weight: 600; }
html.v2 .v2-cc-price b { font: 400 26px/1 var(--font-d); }
@media (max-width: 980px) {
  html.v2 .v2-exams { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  html.v2 .v2-examtab { padding: 18px; }
}
/* у Dela Gothic длинные хвосты у «у», «р» — даём им место */
html.v2 .v2-h1 { padding-bottom: .12em; }
html.v2 .v2-giant { line-height: .9; margin-bottom: 64px; }

/* ======================= разделы кабинета: общее ======================= */
html.v2 .v2-sect { display: flex; flex-direction: column; gap: 36px; padding-bottom: 80px; }
html.v2 .cab-filters { display: flex; flex-wrap: wrap; gap: 10px; }
html.v2 .cab-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 999px; background: var(--surface-2); border: 0; }
html.v2 .cab-seg button { border: 0; border-radius: 999px; padding: 9px 15px; background: none; color: var(--muted); font: 600 14px var(--font); cursor: pointer; }
html.v2 .cab-seg button.on { background: var(--x-act); color: var(--x-on-act); }
html.v2 .v2-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
html.v2 .v2-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--text); font: 700 15px var(--font); cursor: pointer; }
html.v2 .v2-tabs button i { font-style: normal; min-width: 24px; padding: 2px 7px; border-radius: 99px; background: rgba(14, 14, 16, .08); font-size: 13px; }
html.v2 .v2-tabs button.is-on { background: var(--x-act); color: var(--x-on-act); }
html.v2 .v2-tabs button.is-on i { background: var(--x-inv); color: var(--x-on-inv); }
html.v2 .v2-tabs button.is-hot:not(.is-on) i { background: var(--x-red); color: #fff; }
html.v2 .v2-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 36px; border-radius: 26px; background: var(--x-paper); max-width: 640px; transform: rotate(-1deg); }
html.v2 .v2-empty b { font: 400 32px/1.05 var(--font-d); }
html.v2 .v2-empty p { color: var(--muted); font-size: 17px; }

/* мои видеоразборы */
html.v2 .v2-lblock { display: flex; flex-direction: column; gap: 18px; }
html.v2 .v2-lblock-h { display: flex; align-items: center; gap: 16px; }
html.v2 .v2-lblock-h h2 { font: 400 clamp(26px, 2.6vw, 38px)/1.05 var(--font-d); flex: 1; }
html.v2 .v2-lblock-h > b { font: 400 34px/1 var(--font-d); color: var(--x-blue); }
html.v2 .v2-exam.is-sm { padding: 8px 14px 6px; border-radius: 12px; font-size: 26px; transform: rotate(-3deg); }
html.v2 .v2-vbar { display: block; height: 4px; margin-top: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; max-width: 260px; }
html.v2 .v2-vbar i { display: block; height: 100%; background: var(--x-blue); border-radius: inherit; }
html.v2 .v2-prow { grid-template-columns: 52px 1fr auto; }
html.v2 .v2-prow-st { display: flex; justify-content: flex-end; }

/* практические работы — оттенки стикеров по статусу */
html.v2 .v2-due.is-review { background: var(--x-blue); color: #fff; }
html.v2 .v2-due.is-closed { background: var(--x-inv); color: var(--x-on-inv); }
html.v2 .v2-due-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
html.v2 .v2-due-top small { font-weight: 700; opacity: .8; }
html.v2 .v2-due q { font-size: 15px; line-height: 1.5; quotes: '«' '»'; opacity: .9; }
html.v2 .v2-due-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: auto; font-weight: 600; font-size: 14px; opacity: .85; }
html.v2 .v2-due-foot b { font: 400 24px/1 var(--font-d); opacity: 1; }
html.v2 .v2-notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px 24px; }

/* вебинары — билеты с отрывным корешком */
html.v2 .v2-tickets { display: flex; flex-direction: column; gap: 16px; }
html.v2 .v2-ticket { display: grid; grid-template-columns: 130px 1fr auto; align-items: center; border-radius: 22px; background: var(--x-paper); overflow: hidden; position: relative; }
html.v2 .v2-tk-stub { align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 18px 10px;
  background: var(--x-inv); color: var(--x-on-inv); border-right: 3px dashed var(--bg); }
html.v2 .v2-tk-stub b { font: 400 46px/1 var(--font-d); color: var(--x-acid); }
html.v2 .v2-tk-stub small { font-weight: 700; font-size: 13px; opacity: .85; }
html.v2 .v2-tk-body { display: flex; flex-direction: column; gap: 6px; padding: 22px 26px; }
html.v2 .v2-tk-body > b { font: 400 24px/1.1 var(--font-d); }
html.v2 .v2-tk-body > small { color: var(--muted); font-weight: 600; }
html.v2 .v2-tk-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
html.v2 .v2-tk-tags i { font-style: normal; padding: 5px 11px; border-radius: 999px; background: var(--surface); font-weight: 700; font-size: 13px; }
html.v2 .v2-tk-tags i.is-live { background: var(--x-red); color: #fff; }
html.v2 .v2-tk-tags small { color: var(--muted); font-weight: 600; }
html.v2 .v2-tk-act { padding: 0 26px; }
html.v2 .v2-tk-btn { display: inline-flex; padding: 14px 20px; border-radius: 999px; background: var(--x-inv); color: var(--x-on-inv); font-weight: 700; white-space: nowrap; transition: transform .2s var(--x-spring); }
html.v2 .v2-tk-btn:hover { transform: translateY(-2px) rotate(-1deg); }
html.v2 .v2-tk-btn.is-live { background: var(--x-red); }
html.v2 .v2-ticket.is-live .v2-tk-stub { background: var(--x-red); }
html.v2 .v2-ticket.is-live .v2-tk-stub b { color: #fff; }
html.v2 .v2-ticket.is-past .v2-tk-stub { background: var(--surface-3); color: var(--text); }
html.v2 .v2-ticket.is-past .v2-tk-stub b { color: var(--text); }
html.v2 .v2-ticket.is-locked { opacity: .6; }
html.v2 .v2-tk-lock { font-weight: 700; color: var(--muted); }
@media (max-width: 760px) {
  html.v2 .v2-ticket { grid-template-columns: 96px 1fr; }
  html.v2 .v2-tk-act { grid-column: 1 / -1; padding: 0 20px 20px; }
  html.v2 .v2-tk-body { padding: 18px; }
}
/* панели кабинета — бумажные, без рамок и теней */
html.v2 .cab-panel { background: var(--x-paper); border: 0; }
/* статус на цветном стикере — белой плашкой, чтобы читался */
html.v2 .v2-due:is(.is-late, .is-review, .is-closed, .is-soon) .cab-chip { background: #fff; color: var(--x-ink); }
/* длинный список уроков в «Моих видеоразборах» */
html.v2 .v2-lblock .v2-plist.is-clipped > li:nth-child(n+13) { display: none; }

/* ======================= успеваемость: табло ======================= */
html.v2 .pf-cards { gap: 22px; }
html.v2 .pf-card { padding: 26px; border-radius: 26px; border: 0; background: var(--x-paper); transform: rotate(-1deg); transition: transform .3s var(--x-spring); }
html.v2 .pf-card:nth-child(2n) { transform: rotate(1.2deg); }
html.v2 .pf-card:hover { transform: rotate(0) translateY(-4px); }
html.v2 .pf-card:nth-child(1) { background: var(--x-acid); color: var(--x-ink); }
html.v2 .pf-card:nth-child(3) { background: var(--x-inv); color: var(--x-on-inv); }
html.v2 .pf-card-ico { display: none; }
html.v2 .pf-card-val { font: 400 clamp(52px, 5vw, 76px)/.9 var(--font-d); letter-spacing: -.03em; }
html.v2 .pf-card-val small { font: 700 16px var(--font); opacity: .7; }
html.v2 .pf-card-lbl { font-weight: 700; font-size: 16px; margin-top: 8px; }
html.v2 .pf-card .pf-bar { height: 8px; border-radius: 99px; background: rgba(14, 14, 16, .12); }
html.v2 .pf-card:nth-child(3) .pf-bar { background: rgba(255, 255, 255, .2); }
html.v2 .pf-card .pf-bar i { background: currentColor; }
html.v2 .pf-list header h3 { font: 400 32px/1 var(--font-d); }
html.v2 .pf-filters button { border: 0; border-radius: 999px; background: var(--surface-2); padding: 9px 14px; font-weight: 700; }
html.v2 .pf-filters button.on { background: var(--x-act); color: var(--x-on-act); }
html.v2 .pf-r { border-radius: 14px; border: 0; background: transparent; }
html.v2 .pf-r:nth-child(odd) { background: var(--surface-2); }
html.v2 .pf-r.is-problem { background: rgba(255, 74, 28, .1); }
html.v2 .pf-score { font: 400 24px/1 var(--font-d); }
html.v2 .pf-how { border-radius: 18px; background: var(--x-paper); border: 0; }

/* ======================= куратор: переписка ======================= */
html.v2 .cm-list, html.v2 .cm-side { background: var(--x-paper); border: 0; }
html.v2 .cm-item { border-radius: 16px; border: 0; }
html.v2 .cm-item.active, html.v2 .cm-item.is-on, html.v2 .cm-item[aria-current] { background: var(--x-act); color: var(--x-on-act); }
html.v2 .cm-main { border: 0; background: var(--surface); }
html.v2 .cm-bubble { border-radius: 20px; }
html.v2 .cm-msg.me .cm-bubble, html.v2 .cm-msg.mine .cm-bubble { background: var(--x-blue); color: #fff; border-bottom-right-radius: 6px; }
html.v2 .cm-msg:not(.me):not(.mine) .cm-bubble { background: var(--x-paper); border-bottom-left-radius: 6px; }
html.v2 .cm-form textarea, html.v2 .cm-form input { border-radius: 999px; border: 2px solid transparent; background: var(--surface-2); }
html.v2 .cm-head b { font-family: var(--font-d); font-weight: 400; font-size: 22px; }

/* ======================= пробный экзамен: варианты как экзаменационные билеты ======================= */
html.v2 .cab-exam-grid { gap: 24px; }
html.v2 .cab-exam { border: 0; border-radius: 22px; background: var(--x-paper); padding: 26px; position: relative; }
html.v2 .cab-exam::before { content: 'ВАРИАНТ'; position: absolute; right: 22px; top: 22px; font: 400 13px/1 var(--font-d); letter-spacing: .05em; opacity: .35; }
html.v2 .cab-exam b { font: 400 26px/1.1 var(--font-d); }
html.v2 .cab-exam .cab-pill { background: var(--x-inv); color: var(--x-on-inv); }

/* ======================= профиль ======================= */
html.v2 .pp-card { border: 0; border-radius: 26px; background: var(--x-paper); }
html.v2 .pp-card h3, html.v2 .pp-card h2 { font-family: var(--font-d); font-weight: 400; }
html.v2 .pp-ava { background: var(--x-inv); color: var(--x-on-inv-acc); }
html.v2 .pp-form input, html.v2 .pp-form select, html.v2 .pp-form textarea { border: 2px solid transparent; border-radius: 14px; background: var(--surface); }
html.v2 .pp-form input:focus, html.v2 .pp-form select:focus, html.v2 .pp-form textarea:focus { border-color: var(--x-blue); outline: none; }
html.v2 .pp-chip { border: 0; border-radius: 999px; background: var(--surface); }
html.v2 .pp-chip.on, html.v2 .pp-chip.active, html.v2 .pp-chip:has(input:checked) { background: var(--x-inv); color: var(--x-on-inv); }

/* ======================= вход: пропуск на экзамен ======================= */
html.v2 .gate { position: relative; max-width: 520px; padding: 92px 40px 40px; border: 0; border-radius: 28px; background: var(--x-paper); transform: rotate(-1.2deg); overflow: hidden; }
html.v2 .gate::before { content: 'ПРОПУСК · препка/'; position: absolute; inset: 0 0 auto; height: 58px; display: flex; align-items: center; padding: 0 28px;
  background: var(--x-inv); color: var(--x-on-inv-acc); font: 400 18px/1 var(--font-d); letter-spacing: .02em; }
html.v2 .gate-ic { display: none; }
html.v2 .gate h1 { font: 400 40px/1 var(--font-d); text-align: left; }
html.v2 .gate > p { text-align: left; }
html.v2 .gate input { border: 2px solid var(--x-paper-line); border-radius: 10px; background: var(--surface); }
html.v2 .gate input:focus { border-color: var(--x-blue); outline: none; }
html.v2 .gate .seg button.active, html.v2 .gate .auth-tabs button.active { background: var(--x-inv); color: var(--x-on-inv); }

/* ======================= банк заданий: задание — как бланк ======================= */
html.v2 .task-card { border: 0; border-radius: 22px; background: var(--x-paper); }
html.v2 .task-ans-input { border: 2px solid var(--x-paper-line); border-radius: 8px; background: var(--surface); font-weight: 700; letter-spacing: .04em; }
html.v2 .task-ans-input:focus { border-color: var(--x-blue); outline: none; }
html.v2 .task-actions { border-top-style: dashed; }
html.v2 .btn-check-task { background: var(--x-inv); color: var(--x-on-inv); border-radius: 999px; }
html.v2 .btn-sol-toggle, html.v2 .btn-fav-task { border-radius: 999px; background: var(--surface); border: 0; }
html.v2 .task-sol-panel { border-radius: 16px; background: var(--x-acid); color: var(--x-ink); border: 0; }
html.v2 .task-sol-panel .sol-title,
html.v2 .task-sol-panel .sol-body { color: inherit; }
html.v2 .task-sol-panel .sol-official-ans { background: var(--x-ink); color: var(--x-on-inv-acc); border: 0; }
html.v2 .task-sol-panel .sol-official-ans code { color: var(--x-acid); }
/* в тёмной теме кислотный блок на всю карточку режет глаз и текст в нём теряется — делаем тихую поверхность */
html.v2[data-theme="dark"] .task-sol-panel { background: var(--x-paper); color: var(--text); border: 1px solid var(--x-paper-line); }
html.v2[data-theme="dark"] .task-sol-panel .sol-title { color: var(--x-acid); }
html.v2[data-theme="dark"] .task-sol-panel .sol-official-ans { background: var(--x-acid); color: var(--x-ink); border: 0; }
html.v2[data-theme="dark"] .task-sol-panel .sol-official-ans code { color: var(--x-ink); }
/* банк заданий: боковые панели — бумажные, активный раздел чёрной плашкой */
html.v2 .tasks-nav-box, html.v2 .tasks-filter-box { border: 0; border-radius: 24px; background: var(--x-paper); }
html.v2 .tasks-nav-item { border-radius: 999px; color: var(--text); }
html.v2 .tasks-nav-item.active { background: var(--x-act); color: var(--x-on-act); }
html.v2 .tasks-nav-item.active .ic { color: var(--x-on-act); }
html.v2 .tasks-page-title { font: 400 clamp(32px, 3.4vw, 52px)/1 var(--font-d); letter-spacing: -.02em; }
html.v2 .tasks-search-input { border-radius: 999px; border: 2px solid transparent; background: var(--surface-2); }
html.v2 .tasks-search-input:focus { border-color: var(--x-blue); outline: none; }
html.v2 .tasks-filter-box .custom-select-btn, html.v2 .tasks-filter-box select { border: 0; border-radius: 14px; background: var(--surface); }

/* ======================= главная кабинета (понятная версия) ======================= */
html.v2 .v2-dash { gap: 56px; }
html.v2 .v2-hello h1 { font: 400 clamp(44px, 5vw, 80px)/.95 var(--font-d); letter-spacing: -.03em; padding-bottom: .1em; }
html.v2 .v2-hello .v2-lead { margin-top: 10px; max-width: 720px; }
html.v2 .v2-block { display: flex; flex-direction: column; }
html.v2 .v2-sec-h { align-items: flex-end; }
html.v2 .v2-note-line { margin-top: 6px; color: var(--muted); font-size: 15px; max-width: 620px; }
html.v2 .v2-pbar { display: block; height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
html.v2 .v2-pbar i { display: block; height: 100%; border-radius: inherit; background: var(--x-prog); }
html.v2 .v2-slap-ОГЭ .v2-pbar, html.v2 .v2-slap-ВПР .v2-pbar { background: rgba(255, 255, 255, .25); }
html.v2 .v2-slap-ОГЭ .v2-pbar i, html.v2 .v2-slap-ВПР .v2-pbar i { background: #fff; }
/* продолжить обучение */
html.v2 .v2-resumes { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 20px; }
html.v2 .v2-resume { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 26px; background: var(--x-acid); color: var(--x-ink); transition: transform .3s var(--x-spring); }
html.v2 .v2-resume:hover { transform: translateY(-4px); }
html.v2 .v2-resume.is-small { background: var(--x-paper); color: var(--text); }
html.v2 .v2-resume > small { font-weight: 700; opacity: .75; }
html.v2 .v2-resume > b { font: 400 clamp(24px, 2.4vw, 34px)/1.05 var(--font-d); letter-spacing: -.01em; }
html.v2 .v2-resume-meta { font-weight: 600; }
html.v2 .v2-resume-prog { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
html.v2 .v2-resume-prog em { font-style: normal; font-weight: 700; font-size: 14px; }
html.v2 .v2-resume-btn { align-self: flex-start; margin-top: 8px; padding: 12px 20px; border-radius: 999px; background: var(--x-ink); color: #fff; font-weight: 700; }
/* ближайшие сроки — строки */
html.v2 .v2-rows { display: flex; flex-direction: column; gap: 8px; }
html.v2 .v2-row { display: grid; grid-template-columns: 72px 1fr auto auto; gap: 16px; align-items: center; padding: 14px 18px 14px 14px; border-radius: 18px; background: var(--x-paper); transition: transform .2s var(--x-spring); }
html.v2 .v2-row:hover { transform: translateX(4px); }
html.v2 .v2-row-date { display: flex; flex-direction: column; align-items: center; padding: 8px 0; border-radius: 12px; background: var(--surface); font-weight: 700; font-size: 13px; }
html.v2 .v2-row-date b { font: 400 28px/1 var(--font-d); }
html.v2 .v2-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
html.v2 .v2-row-main b { font-size: 16px; }
html.v2 .v2-row-main small { color: var(--muted); }
html.v2 .v2-row-when { font-weight: 700; white-space: nowrap; }
html.v2 .v2-row.is-soon .v2-row-date { background: var(--x-acid); }
html.v2 .v2-row.is-late .v2-row-date { background: var(--x-red); color: #fff; }
html.v2 .v2-row.is-late .v2-row-when { color: var(--x-red); }
/* мой прогресс — цифры с подписями */
html.v2 .v2-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
html.v2 .v2-stat { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: 22px; background: var(--x-paper); }
html.v2 .v2-stat b { font: 400 44px/1 var(--font-d); letter-spacing: -.02em; }
html.v2 .v2-stat b small { font: 700 16px var(--font); opacity: .7; }
html.v2 .v2-stat > span { font-weight: 700; font-size: 16px; }
html.v2 .v2-stat > small { color: var(--muted); font-size: 13px; line-height: 1.4; }
html.v2 .v2-stat.is-acid { background: var(--x-paper); color: var(--text); }
html.v2 .v2-stat.is-acid > small { color: var(--muted); }
html.v2 .v2-stat.is-ink { background: var(--x-paper); color: var(--text); }
html.v2 .v2-stat.is-ink > small { color: var(--muted); }
html.v2 .v2-note { transform: none; }
html.v2 .v2-slap .v2-pbar { margin-top: 4px; }
/* рабочие разделы преподавателя и админа */
html.v2 .v2-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
html.v2 .v2-tool { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px 24px 26px; border-radius: 22px; background: var(--x-paper); transition: transform .25s var(--x-spring); }
html.v2 .v2-tool:hover { transform: translateY(-4px); }
html.v2 .v2-tool-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--surface); }
html.v2 .v2-tool b { font: 400 22px/1.1 var(--font-d); }
html.v2 .v2-tool small { color: var(--muted); }
html.v2 .v2-tool > i { position: absolute; right: 20px; top: 22px; font-style: normal; font-weight: 700; }
html.v2 .v2-tool.is-acid { background: var(--x-acid); color: var(--x-ink); }
html.v2 .v2-tool.is-ink { background: var(--x-inv); color: var(--x-on-inv); }
html.v2 .v2-tool.is-red { background: var(--x-red); color: #fff; }
html.v2 .v2-tool:is(.is-acid, .is-ink, .is-red) small { color: inherit; opacity: .8; }
html.v2 .v2-tool:is(.is-ink, .is-red) .v2-tool-ico { background: rgba(255, 255, 255, .15); color: #fff; }
/* страница курса: прогресс с подписью */
html.v2 .v2-cprog { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 22px; background: var(--x-paper); }
html.v2 .v2-cprog b { font: 400 22px/1 var(--font-d); }
html.v2 .v2-cprog small { color: var(--muted); }
/* статус урока в программе — словом */
html.v2 .v2-prow { grid-template-columns: 52px 1fr auto; }
html.v2 .v2-pst { font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 999px; }
html.v2 .v2-pst:empty { display: none; }
html.v2 .v2-pst.is-done { background: var(--x-inv); color: var(--x-on-inv-acc); }
html.v2 .v2-pst.is-half { background: var(--surface-2); }
html.v2 .v2-pst.is-lock { color: var(--muted); }
/* урок: навигация «предыдущий — номер — следующий» */
html.v2 .v2-lbar { grid-template-columns: auto 1fr; }
html.v2 .v2-lnav { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
html.v2 .v2-lstep { padding: 12px 18px; border-radius: 999px; background: var(--surface-2); font-weight: 700; white-space: nowrap; }
html.v2 .v2-lstep.is-next { background: var(--x-act); color: var(--x-on-act); }
html.v2 .v2-lstep.is-off { opacity: .4; }
html.v2 .v2-lpos { display: flex; flex-direction: column; gap: 6px; min-width: 200px; text-align: center; }
html.v2 .v2-lpos b { font-weight: 800; }
html.v2 .v2-lpos small { color: var(--muted); font-weight: 600; }
/* мои видеоразборы: прогресс курса */
html.v2 .v2-lblock-prog { display: flex; flex-direction: column; gap: 6px; max-width: 520px; }
html.v2 .v2-lblock-prog small { font-weight: 700; color: var(--muted); }
@media (max-width: 980px) {
  html.v2 .v2-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.v2 .v2-row { grid-template-columns: 60px 1fr; }
  html.v2 .v2-row-when, html.v2 .v2-row > .cab-chip { grid-column: 2; justify-self: start; }
  html.v2 .v2-lbar { grid-template-columns: 1fr; }
  html.v2 .v2-lnav { justify-content: space-between; }
  html.v2 .v2-lpos { min-width: 0; flex: 1; }
}
html.v2 .lms-page-wrapper:has(.v2-dash) .cab-top-title { visibility: hidden; }

/* ======================= общие правила для содержимого кабинета, разделов преподавателя и админки ======================= */
/* карточки, панели и блоки — бумажные поверхности без рамок и теней */
html.v2 :is(.cab-content, .admin) :is(.tile, [class*="-card"], [class*="panel"], [class$="-box"], [class*="-box "]):not(.v2-cc):not(.v2-slap):not(.v2-resume):not(.v2-note):not(.pf-card) {
  border-color: transparent; box-shadow: none; }
html.v2 :is(.cab-content, .admin) :is(.tile, .cab-panel, .rv-card, .t-card, .tw-card) { background: var(--x-paper); }
/* кружки с инициалами — чёрные с кислотной буквой (картинки не трогаем) */
html.v2 :is(.qa-ava, .s-ava, .ava, .th-avatar, .st2-ava, .rv-ava, .cab-ava):not(:has(img)) { background: var(--x-ink) !important; color: var(--x-acid) !important; }
/* таблицы — строки-полосы без сетки */
html.v2 :is(.cab-content, .admin) table { border-collapse: separate; border-spacing: 0 6px; }
html.v2 :is(.cab-content, .admin) th { color: var(--muted); font-weight: 700; font-size: 13px; border: 0; }
html.v2 :is(.cab-content, .admin) td { border: 0; background: var(--surface); }
html.v2 :is(.cab-content, .admin) tr td:first-child { border-radius: 14px 0 0 14px; }
html.v2 :is(.cab-content, .admin) tr td:last-child { border-radius: 0 14px 14px 0; }
/* метки тарифов и статусов — в общей палитре */
html.v2 .t-badge { background: var(--x-inv); color: var(--x-on-inv); border: 0; }
html.v2 :is(.cab-content, .admin) .pill, html.v2 :is(.cab-content, .admin) .chip { border-color: transparent; }
/* кнопки внутри разделов — плоские */
html.v2 :is(.cab-content, .admin, .ls-editor) .btn { border-color: transparent; box-shadow: none; }
html.v2 :is(.cab-content, .admin, .ls-editor) .btn:not(.btn-primary):not(.btn-lime):not(.btn-ok):not(.btn-bad):not(.btn-danger) { background: var(--surface-2); }
/* блок AI-разбора при проверке работ — читаемый */
html.v2 .rv-ai-block { background: var(--x-ink) !important; color: #fff !important; border: 0; }
html.v2 .rv-ai-block * { color: inherit; }
html.v2 .rv-ai-block .btn { background: var(--x-acid) !important; color: var(--x-ink) !important; }
/* админка: вкладки и цифры */
html.v2 .admin .section-head h2 { font: 400 clamp(44px, 5vw, 72px)/1 var(--font-d); letter-spacing: -.03em; }
html.v2 .admin-tabs { gap: 4px; padding: 5px; border-radius: 999px; background: var(--x-paper); border: 0; }
html.v2 .admin-tabs button { border-radius: 999px; }
html.v2 .admin-tabs button.active { background: var(--x-act); color: var(--x-on-act); }
/* редактор уроков: розовые акценты → чёрный и синий */
html.v2 .ls-add-lesson, html.v2 .ls-editor .btn-primary { background: var(--x-ink) !important; color: #fff !important; }
/* окна: выбранный тариф и выделенная колонка сравнения — без сиреневого */
html.v2 .modal .t-option { border-color: transparent; background: var(--x-paper); }
html.v2 .modal .t-option:has(input:checked) { background: var(--surface); border-color: var(--x-ink); box-shadow: none; }
html.v2 .tariff-compare :is(.is-popular, .hl, .featured, .on) { background: rgba(212, 255, 58, .35) !important; }
html.v2 .modal { border-radius: 28px; }
html.v2 .user-menu { border-radius: 20px; border: 0; }
html.v2 .v2-chero h1 { padding-bottom: .12em; }
html.v2 .v2-dash > .v2-next { flex: none; align-self: flex-start; width: min(640px, 100%); }
/* тёмная тема: активный пункт меню — кислотный, логотип — на светлой плашке */
html.v2[data-theme="dark"] .lms-nav-item.active { background: var(--x-act); color: var(--x-on-act); }
html.v2[data-theme="dark"] .lms-nav-item.active .lms-ico { color: var(--x-on-act); }
html.v2[data-theme="dark"] .lms-logo-link { background: var(--x-inv); }
html.v2[data-theme="dark"] .lms-logo-text { color: var(--x-on-inv); }
html.v2[data-theme="dark"] .lms-logo-text i { color: var(--x-blue); }
html.v2[data-theme="dark"] .lms-sidebar { background: #141418; }
html.v2 .v2-resume.is-small .v2-resume-btn { background: var(--x-act); color: var(--x-on-act); }

/* ======================= успеваемость ======================= */
html.v2 .v2-res { display: flex; flex-direction: column; gap: 2px; min-width: 150px; }
html.v2 .v2-res b { font-weight: 800; }
html.v2 .v2-res b.is-ok { color: #19A34A; } html.v2 .v2-res b.is-bad { color: var(--x-red); }
html.v2 .v2-res small { color: var(--muted); font-size: 13px; }
html.v2 .v2-tag { padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; white-space: nowrap; background: var(--surface-2); }
html.v2 .v2-tag.is-ok { background: rgba(25, 163, 74, .14); color: #15803D; }
html.v2 .v2-tag.is-warn { background: rgba(255, 74, 28, .12); color: #C9340D; }
html.v2 .v2-tag.is-bad { background: var(--x-red); color: #fff; }
html.v2[data-theme="dark"] .v2-tag.is-ok { color: #4ADE80; } html.v2[data-theme="dark"] .v2-tag.is-warn { color: #FF8A6B; }
html.v2 .v2-trows { display: flex; flex-direction: column; gap: 6px; }
html.v2 .v2-trow { display: grid; grid-template-columns: minmax(0, 1fr) 190px 130px 130px; gap: 16px; align-items: center; padding: 14px 18px; border-radius: 16px; background: var(--x-paper); }
html.v2 .v2-trow:hover { background: var(--surface-3); }
html.v2 .v2-trow.is-problem { box-shadow: inset 4px 0 0 var(--x-red); }
html.v2 .v2-trow-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
html.v2 .v2-trow-t small, html.v2 .v2-trow-d small { color: var(--muted); }
html.v2 .v2-trow-d { display: flex; flex-direction: column; font-weight: 600; font-size: 14px; }
html.v2 .v2-trow .v2-tag { justify-self: end; }
html.v2 .v2-tfilter { margin-bottom: 14px; }
html.v2 .v2-tnone { display: none; }
html.v2 [data-v2-filter].is-empty .v2-tnone { display: block; }

/* ======================= пробный экзамен ======================= */
html.v2 .v2-callout { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px; border-radius: 22px; background: var(--x-paper); }
html.v2 .v2-callout b { font: 400 22px/1.1 var(--font-d); }
html.v2 .v2-callout span { color: var(--muted); }
html.v2 .v2-exams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
html.v2 .v2-variant { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 22px; background: var(--x-paper); }
html.v2 .v2-variant > small { font-weight: 700; color: var(--muted); }
html.v2 .v2-variant > b { font: 400 22px/1.15 var(--font-d); }
html.v2 .v2-variant-facts { display: flex; flex-wrap: wrap; gap: 6px; }
html.v2 .v2-variant-facts span { padding: 6px 11px; border-radius: 999px; background: var(--surface); font-weight: 700; font-size: 13px; }
html.v2 .v2-variant-best b { font: 400 20px var(--font-d); }
html.v2 .v2-variant-go { align-self: flex-start; margin-top: auto; padding: 13px 20px; border: 0; border-radius: 999px; background: var(--x-act); color: var(--x-on-act); font: 700 15px var(--font); cursor: pointer; }
html.v2 .v2-variant-go.is-cont { background: var(--x-inv); color: var(--x-on-inv); }
html.v2 .v2-variant.is-locked { opacity: .55; }
html.v2 .v2-attempt { width: 100%; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; grid-template-columns: 72px 1fr auto; }
@media (max-width: 980px) {
  html.v2 .v2-trow { grid-template-columns: 1fr auto; }
  html.v2 .v2-trow-d { display: none; }
  html.v2 .v2-trow .v2-res { grid-column: 1; }
}

/* ---- переключатели, сегменты, аватары — в палитре v2 ---- */
html.v2 .seg button.active, html.v2 .seg button[aria-pressed="true"], html.v2 .cab-seg button.on, html.v2 .cab-tabs button.on { background: var(--x-act) !important; color: var(--x-on-act) !important; box-shadow: none !important; }
html.v2 .seg .fluid-drop-pill { background: var(--x-act) !important; box-shadow: none !important; }
html.v2 .switch input:checked + span, html.v2 .pp-toggle input:checked + i { background: var(--x-ink) !important; }
html.v2 .switch input:checked + span::after, html.v2 .pp-toggle input:checked + i::after { background: var(--x-acid); box-shadow: none; }
html.v2[data-theme="dark"] .switch input:checked + span, html.v2[data-theme="dark"] .pp-toggle input:checked + i { background: var(--x-acid) !important; }
html.v2[data-theme="dark"] .switch input:checked + span::after, html.v2[data-theme="dark"] .pp-toggle input:checked + i::after { background: #0E0E10; }
html.v2 .pp-toggle input:focus-visible + i { outline-color: var(--x-blue); }
html.v2 :is(.qa-ava, .rv-ava, .s-ava, .a2-big-ava) { background: var(--x-inv) !important; color: var(--x-on-inv-acc) !important; box-shadow: none !important; }
html.v2 input[type="checkbox"], html.v2 input[type="radio"], html.v2 input[type="range"], html.v2 progress { accent-color: var(--x-blue); }

/* ---- аватар в шапке, тарифы в таблицах, график модуля ---- */
html.v2 .lms-avatar-btn, html.v2 .cab-avatar { background: var(--x-inv) !important; color: var(--x-on-inv-acc) !important; box-shadow: none !important; }
html.v2 .mini-tag[style*="background"] { background: var(--x-paper) !important; color: var(--x-ink) !important; border: 1.5px solid var(--x-ink); }
html.v2[data-theme="dark"] .mini-tag[style*="background"] { color: #F3F3F5 !important; border-color: #F3F3F5; }
html.v2 .sch-days button.on, html.v2 .sch-now, html.v2 .sch-tags i.next { background: var(--x-act) !important; border-color: var(--x-act) !important; color: var(--x-on-act) !important; }
html.v2 .sch-stat > svg { background: var(--x-paper); color: var(--x-ink); }
html.v2[data-theme="dark"] .sch-stat > svg { color: #F3F3F5; }
html.v2 .sch-bar i { background: var(--x-prog) !important; }
html.v2 .sch-month.now, html.v2 .sch-item.next .sch-card { border-color: var(--x-prog) !important; background: var(--x-paper) !important; }
html.v2 .sch-item.next .sch-dot { border-color: var(--x-prog); box-shadow: 0 0 0 4px color-mix(in srgb, var(--x-prog) 20%, transparent); }
html.v2 .sch-item.chain::before { background: var(--x-paper-line) !important; }
html.v2 .sch-chip.on { border-color: var(--x-ink); background: var(--x-act); color: var(--x-on-act); }
html.v2 .sch-chip:not(.off):hover { border-color: var(--x-ink); }

/* ---- акцентная карточка «Продолжить обучение»: прогресс чёрным по кислотному ---- */
html.v2 .v2-resume:not(.is-small) .v2-pbar { background: rgba(14, 14, 16, .14); }
html.v2 .v2-resume:not(.is-small) .v2-pbar i { background: var(--x-ink); }
html.v2 .v2-tabs button.is-on i { background: var(--x-acid); color: var(--x-ink); }
html.v2[data-theme="dark"] .v2-tabs button.is-on i { background: var(--x-ink); color: #fff; }

/* ---- урок: без шапки главной, своя короткая шапка ---- */
html.v2 body:has(.lesson-page) #site-header { display: none; }
html.v2 .v2-ltop { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 4px 0 28px; }
html.v2 .v2-ltop-logo { padding: 9px 16px; border-radius: 999px; background: var(--x-inv); color: var(--x-on-inv); font: 400 20px/1 var(--font-d); }
html.v2 .v2-ltop-logo i { font-style: normal; color: var(--x-acid); }
html.v2[data-theme="dark"] .v2-ltop-logo i { color: var(--x-blue); }
html.v2 .v2-ltop-act { display: flex; align-items: center; gap: 8px; }
html.v2 .v2-ltop-cab { padding: 12px 20px; border-radius: 999px; background: var(--x-paper); color: var(--text); font-weight: 700; }
html.v2 .v2-ltop-theme { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--x-paper); color: var(--text); font-size: 20px; cursor: pointer; }
html.v2 :is(.v2-ltop-cab, .v2-ltop-theme):hover { background: var(--x-paper-line); }

/* ======================= Преподаватель: программа и вебинары ======================= */
html.v2 #webinars-admin .web-adm { padding: 0; border: 0; background: none; box-shadow: none; display: flex; flex-direction: column; gap: 10px; }
html.v2 #webinars-admin .web-adm-head { display: flex; justify-content: flex-end; margin: -64px 0 8px; }
html.v2 #webinars-admin .web-adm-head h3 { display: none; }
html.v2 #webinars-admin .web-adm-head .btn { padding: 13px 22px; border-radius: 999px; background: var(--x-act); color: var(--x-on-act); font-weight: 700; font-size: 15px; }
html.v2 #webinars-admin > .web-adm > .muted { padding: 22px 24px; border-radius: 20px; background: var(--x-paper); color: var(--muted); margin: 0; }
html.v2 #webinars-admin .web-adm-row { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 16px 18px; border: 0; border-radius: 20px; background: var(--x-paper); }
html.v2 #webinars-admin .web-adm-thumb { display: none; }
html.v2 #webinars-admin .web-adm-when { min-width: 150px; font-weight: 700; }
html.v2 #webinars-admin .web-adm-live { margin-right: 8px; padding: 3px 9px; border-radius: 999px; background: var(--x-red); color: #fff; font-style: normal; font-size: 12px; }
html.v2 #webinars-admin .web-adm-info b { display: block; font-size: 17px; }
html.v2 #webinars-admin .web-adm-info small { color: var(--muted); }
html.v2 #webinars-admin .web-adm-info em { font-style: normal; color: var(--x-red); font-weight: 700; }
html.v2 #webinars-admin .web-adm-acts { display: flex; gap: 6px; }
html.v2 #webinars-admin .web-adm-acts .btn { border-radius: 999px; background: var(--bg); border: 0; }
html.v2 #webinars-admin .web-adm-past { margin-top: 4px; }
html.v2 #webinars-admin .web-adm-past summary { display: inline-flex; padding: 10px 16px; border-radius: 999px; background: var(--x-paper); font-weight: 700; cursor: pointer; list-style: none; }
html.v2 #webinars-admin .web-adm-past summary::-webkit-details-marker { display: none; }
html.v2 #webinars-admin .web-adm-past[open] summary { margin-bottom: 10px; }
html.v2 #webinars-admin .web-adm-past .web-adm-row { background: none; border: 1.5px solid var(--x-paper-line); }
html.v2 #webinars-admin .web-adm-form { padding: 24px; border-radius: 22px; background: var(--x-paper); border: 0; margin-bottom: 6px; }

html.v2 .v2-cmod { padding: 28px; border-radius: 28px; background: var(--x-paper); margin-bottom: 18px; }
html.v2 .v2-cmod-h { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
html.v2 .v2-cmod-h .v2-exam.is-sm { font-size: 34px; padding: 10px 16px 7px; border-radius: 14px; }
html.v2 .v2-cmod-t { flex: 1 1 260px; min-width: 0; }
html.v2 .v2-cmod-t h3 { font: 400 clamp(24px, 2.4vw, 32px)/1.05 var(--font-d); }
html.v2 .v2-cmod-t small { color: var(--muted); font-weight: 600; }
html.v2 .v2-cmod-acts { display: flex; gap: 8px; flex-wrap: wrap; }
html.v2 .v2-cbtn { padding: 13px 20px; border-radius: 999px; background: var(--bg); color: var(--text); font-weight: 700; white-space: nowrap; transition: transform .2s var(--x-spring); }
html.v2 .v2-cbtn.is-main { background: var(--x-act); color: var(--x-on-act); }
html.v2 .v2-cbtn:hover { transform: translateY(-2px); }
html.v2 .v2-cmod-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 22px 0 18px; color: var(--muted); font-weight: 600; }
html.v2 .v2-cmod-facts b { margin-right: 6px; font: 400 24px/1 var(--font-d); color: var(--text); }
html.v2 .v2-kfilter { margin-bottom: 14px; }
html.v2 .v2-clist { background: var(--bg); border-radius: 20px; padding: 8px; }
html.v2 .v2-clist.is-clipped > li:nth-child(n+13) { display: none; }
html.v2 .v2-clist > li[hidden] { display: none !important; }
html.v2 .v2-crow { grid-template-columns: 52px 1fr auto; }
html.v2 .v2-crow:hover { transform: none; }
html.v2 .v2-crow .v2-ptitle small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
html.v2 .v2-ktag { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--x-paper); color: var(--text); }
html.v2 .v2-ktag.is-quiz { background: var(--x-blue); color: #fff; }
html.v2 .v2-ktag.is-file { background: var(--x-ink); color: #fff; }
html.v2 .v2-ktag.is-web { background: var(--x-red); color: #fff; }
html.v2[data-theme="dark"] .v2-ktag.is-file { background: #fff; color: var(--x-ink); }
html.v2 .v2-crow-acts { display: flex; gap: 6px; }
html.v2 .v2-crow-acts :is(a, button) { padding: 10px 16px; border: 0; border-radius: 999px; background: var(--x-paper); color: var(--text); font: 700 14px/1 var(--font); cursor: pointer; }
html.v2 .v2-crow-acts :is(a, button):hover { background: var(--x-act); color: var(--x-on-act); }
html.v2 .v2-cmod > .v2-more { margin-top: 14px; }
html.v2 .v2-knone { display: none; }
html.v2 .v2-cmod.is-empty .v2-knone { display: block; }
@media (max-width: 760px) {
  html.v2 .v2-cmod { padding: 18px; border-radius: 22px; }
  html.v2 .v2-crow { grid-template-columns: 40px 1fr; }
  html.v2 .v2-crow .v2-pnum { height: 40px; }
  html.v2 .v2-crow-acts { grid-column: 2; }
  html.v2 #webinars-admin .web-adm-head { margin: 0 0 8px; justify-content: flex-start; }
  html.v2 #webinars-admin .web-adm-row { grid-template-columns: 1fr; }
}
html.v2 .v2-ptitle .v2-ktag.is-web { color: #fff; }
html.v2[data-theme="dark"] .v2-pnum { color: var(--x-acid); }

/* ======================= Главная ученика: «Сейчас» и «Что дальше» ======================= */
html.v2 .v2-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: start; }
html.v2 .v2-now-wrap { display: flex; flex-direction: column; gap: 10px; }
html.v2 .v2-now { min-height: 300px; }
html.v2 .v2-now > b { font-size: clamp(26px, 2.6vw, 38px); }
html.v2 .v2-now.is-late { background: var(--x-red); color: #fff; }
html.v2 .v2-now.is-late .v2-resume-btn { background: #fff; color: var(--x-ink); }
html.v2 .v2-now.is-late .v2-pbar { background: rgba(255, 255, 255, .3); }
html.v2 .v2-now.is-late .v2-pbar i { background: #fff; }
html.v2 .v2-now.is-live { background: var(--x-blue); color: #fff; }
html.v2 .v2-now.is-live .v2-resume-btn { background: var(--x-acid); color: var(--x-ink); }
html.v2 .v2-now .v2-resume-btn { margin-top: auto; }
html.v2 .v2-now-also { padding: 4px 6px; font-weight: 700; color: var(--text); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
html.v2 .v2-now-also:hover { color: var(--x-prog); }

html.v2 .v2-feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
html.v2 .v2-feed-day { margin: 14px 0 2px; font: 700 13px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
html.v2 .v2-feed-day:first-child { margin-top: 0; }
html.v2 .v2-feed-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--x-paper); color: var(--text); transition: transform .2s var(--x-spring); }
html.v2 .v2-feed-row:hover { transform: translateX(4px); }
html.v2 .v2-feed-tag { justify-self: start; padding: 5px 10px; border-radius: 999px; font: 700 12px/1 var(--font); background: var(--bg); }
html.v2 .v2-feed-row.is-due .v2-feed-tag { background: var(--x-act); color: var(--x-on-act); }
html.v2 .v2-feed-row.is-web .v2-feed-tag { background: var(--x-blue); color: #fff; }
html.v2 .v2-feed-row.is-open .v2-feed-tag { background: var(--x-acid); color: var(--x-ink); }
html.v2 .v2-feed-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
html.v2 .v2-feed-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.v2 .v2-feed-main small { color: var(--muted); }
html.v2 .v2-feed-time { font-weight: 700; white-space: nowrap; }
html.v2 .v2-feed-empty { padding: 26px 24px; border-radius: 20px; background: var(--x-paper); color: var(--muted); font-weight: 600; }

/* ответы куратора — в ряд, новые помечены, у доработки кнопка */
html.v2 .v2-notes-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px 20px; }
html.v2 .v2-note.is-new { box-shadow: inset 0 0 0 2px var(--text); }
html.v2 .v2-new { padding: 3px 8px; border-radius: 999px; background: var(--x-red); color: #fff; font: 700 11px/1.2 var(--font); font-style: normal; }
html.v2 .v2-note-top { display: flex; align-items: center; gap: 8px; }
html.v2 .v2-note-top small { margin-left: auto; }
html.v2 .v2-note-fix { align-self: flex-start; margin-top: 6px; padding: 10px 16px; border-radius: 999px; background: var(--x-act); color: var(--x-on-act); font-weight: 700; font-size: 14px; }

/* меню: серия и имя в шапке */
html.v2 .cab-side-row { display: flex; align-items: center; gap: 8px; }
html.v2 .cab-side-row .ic { color: var(--x-red); }
html.v2 .cab-side-hint { display: block; margin: 8px 4px 0; font-size: 12.5px; line-height: 1.35; }
html.v2 .v2-me { margin-left: -2px; padding: 8px 4px; font-weight: 700; color: var(--text); }
html.v2 .v2-me:hover { text-decoration: underline; }

@media (max-width: 1100px) { html.v2 .v2-top { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
@media (max-width: 600px) {
  html.v2 .v2-feed-row { grid-template-columns: minmax(0, 1fr) auto; }
  html.v2 .v2-feed-tag { grid-column: 1 / -1; }
  html.v2 .v2-me { display: none; }
}

/* ======================= Урок: практика без бежевых слоёв — белый бланк, карточки-вопросы, чёрные номера ======================= */
html.v2 .lesson-page .lesson-check.tile { background: var(--bg); border: 2px solid var(--x-paper-line); }
html.v2 .lesson-page .q-card { background: var(--x-paper); border: 0; border-radius: 22px; }
html.v2 .lesson-page .q-card.right { box-shadow: inset 0 0 0 2px #19A34A; }
html.v2 .lesson-page .q-card.wrong { box-shadow: inset 0 0 0 2px var(--x-red); }
html.v2 .lesson-page .q-num { background: var(--x-inv); color: var(--x-on-inv-acc); border-radius: 10px; font-size: 14px; }
html.v2 .lesson-page .q-type { color: var(--muted); }
html.v2 .lesson-page .opt { background: var(--bg); border: 2px solid transparent; }
html.v2 .lesson-page .opt:hover { border-color: var(--text); }
html.v2 .lesson-page .opt-l { background: var(--x-paper); color: var(--text); }
html.v2 .lesson-page .opt:has(input:checked) { background: var(--x-inv); border-color: var(--x-inv); color: var(--x-on-inv); }
html.v2 .lesson-page .opt:has(input:checked) .opt-l { background: var(--x-acid); color: var(--x-ink); }
html.v2 .lesson-page .opt.is-correct { background: #19A34A; border-color: #19A34A; color: #fff; }
html.v2 .lesson-page .opt.is-correct .opt-l { background: #fff; color: #19A34A; }
html.v2 .lesson-page .short-ans .input { background-color: var(--bg); border: 2px solid transparent; }
html.v2 .lesson-page .short-ans .input:focus { border-color: var(--text); }

/* главная преподавателя */
html.v2 .v2-skel { min-height: 280px; border-radius: 26px; background: var(--x-paper); animation: v2-pulse 1.2s ease-in-out infinite alternate; }
@keyframes v2-pulse { to { opacity: .55; } }
html.v2 .v2-qwho { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--x-inv); color: var(--x-on-inv-acc); font: 400 20px/1 var(--font-d); }
html.v2 .v2-sec-h a { white-space: nowrap; }
html.v2 #v2-thome > * + * { margin-top: 72px; }
/* чаты преподавателя: свои сообщения — чёрные, выбранный чат — обводкой, без синего */
html.v2 .cm-msg.me .cm-bubble, html.v2 .cm-msg.mine .cm-bubble { background: var(--x-inv) !important; color: var(--x-on-inv) !important; }
html.v2 .cm-msg.me .cm-bubble :is(b, small, a, span) { color: inherit; }
html.v2 .cm-item.on { outline: 2px solid var(--text) !important; background: var(--x-paper); }
html.v2 .cm-head :is(.qa-ava, .cm-ava, .ic-box), html.v2 .cm-head > span:first-child { background: var(--x-inv) !important; color: var(--x-on-inv-acc) !important; }

/* номера уроков — круглые, без клеточек бланка */
html.v2 .v2-pnum { width: 48px; height: 48px !important; justify-self: center; border: 0; border-radius: 50%; background: var(--x-paper); color: var(--text); font-size: 18px; }
html.v2[data-theme="dark"] .v2-pnum { color: var(--text); }
html.v2 .v2-prow.is-web .v2-pnum { background: var(--x-red); color: #fff; }
html.v2 .v2-prow:hover .v2-pnum { background: var(--x-act); color: var(--x-on-act); }
html.v2 .v2-clist .v2-pnum { background: var(--x-paper); }
html.v2 .v2-cell { border-radius: 18px; }

/* фильтр «Мои уроки»: состояния с числами, предметы — отдельной строкой, сброс */
html.v2 .v2-lfilter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 36px; }
html.v2 .v2-lfilter .v2-tabs { margin: 0; }
html.v2 .v2-tabs button:disabled { opacity: .4; cursor: default; }
html.v2 .v2-reset { padding: 10px 4px; border: 0; background: none; color: var(--text); font: 700 14px/1 var(--font); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
html.v2 .v2-lblock-h { align-items: center; }

/* ======================= Мои уроки: один курс, модули, поиск ======================= */
html.v2 .v2-exam.is-xs { padding: 5px 9px 4px; border-radius: 9px; font-size: 15px; transform: rotate(-3deg); }
html.v2 .v2-cpick { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; margin-bottom: 28px; scrollbar-width: thin; }
html.v2 .v2-cpick-i { flex: 0 0 260px; display: grid; grid-template-columns: auto 1fr; gap: 8px 10px; align-items: center; padding: 16px; border: 2px solid transparent; border-radius: 20px; background: var(--x-paper); color: var(--text); text-align: left; font: inherit; cursor: pointer; }
html.v2 .v2-cpick-i b { font-weight: 700; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
html.v2 .v2-cpick-i .v2-pbar, html.v2 .v2-cpick-i small { grid-column: 1 / -1; }
html.v2 .v2-cpick-i small { color: var(--muted); font-weight: 600; }
html.v2 .v2-cpick-i.is-on { border-color: var(--text); background: var(--bg); }
html.v2 .v2-lhead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: 28px; }
html.v2 .v2-lhead > div { flex: 1 1 380px; }
html.v2 .v2-lhead h2 { display: inline; margin-left: 12px; font: 400 clamp(26px, 3vw, 40px)/1.05 var(--font-d); letter-spacing: -.02em; vertical-align: middle; }
html.v2 .v2-lhead .v2-lblock-prog { margin-top: 16px; max-width: 520px; }
html.v2 .v2-lresume { display: grid; gap: 4px; min-width: 280px; max-width: 420px; padding: 18px 22px; border-radius: 22px; background: var(--x-acid); color: var(--x-ink); transition: transform .25s var(--x-spring); }
html.v2 .v2-lresume:hover { transform: translateY(-3px); }
html.v2 .v2-lresume small { font-weight: 700; opacity: .7; }
html.v2 .v2-lresume b { font-size: 18px; line-height: 1.2; }
html.v2 .v2-lresume span { font-weight: 700; }
html.v2 .v2-ltools { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 0; margin-bottom: 14px; background: var(--bg); }
html.v2 .v2-ltools .v2-tabs { margin: 0; }
html.v2 .v2-lsearch { display: flex; align-items: center; gap: 8px; flex: 1 1 220px; max-width: 340px; margin-left: auto; padding: 0 16px; border-radius: 999px; background: var(--x-paper); }
html.v2 .v2-lsearch input { flex: 1; min-width: 0; padding: 12px 0; border: 0; background: none; color: var(--text); font: 600 15px var(--font); outline: none; }
html.v2 .v2-lsearch .ic { width: 18px; height: 18px; color: var(--muted); }
html.v2 .v2-lmod { margin-bottom: 10px; border-radius: 22px; background: var(--x-paper); }
html.v2 .v2-lmod[hidden] { display: none; }
html.v2 .v2-lmod > summary { display: grid; grid-template-columns: 1fr 200px 28px; gap: 18px; align-items: center; padding: 18px 22px; cursor: pointer; list-style: none; }
html.v2 .v2-lmod > summary::-webkit-details-marker { display: none; }
html.v2 .v2-lmod-t b { display: block; font: 400 20px/1.15 var(--font-d); }
html.v2 .v2-lmod-t small { color: var(--muted); font-weight: 600; }
html.v2 .v2-lmod > summary > i { font-style: normal; font-weight: 700; transition: transform .25s; }
html.v2 .v2-lmod[open] > summary > i { transform: rotate(180deg); }
html.v2 .v2-lmod .v2-plist { margin: 0 8px 8px; padding: 6px; border-radius: 16px; background: var(--bg); }
html.v2 .v2-lessons .v2-plist > li[hidden] { display: none; }
html.v2 .v2-prow.is-next { background: var(--x-paper); }
html.v2 .v2-prow.is-next .v2-pnum { background: var(--x-acid); color: var(--x-ink); }
html.v2 .v2-here { margin-right: 8px; padding: 4px 10px; border-radius: 999px; background: var(--x-inv); color: var(--x-on-inv); font: 700 12px/1 var(--font); font-style: normal; }
html.v2 .v2-lessons .v2-prow-st { display: flex; align-items: center; }
@media (max-width: 700px) {
  html.v2 .v2-lmod > summary { grid-template-columns: 1fr 28px; }
  html.v2 .v2-lmod > summary .v2-pbar { display: none; }
  html.v2 .v2-lsearch { max-width: none; margin-left: 0; }
  html.v2 .v2-lhead h2 { display: block; margin: 12px 0 0; }
}
html.v2 .v2-lhead { margin-bottom: 12px; }

/* ======================= Редактор уроков в v2: список шире, кнопки лёгкие, выход виден ======================= */
html.v2 #studio-root .ls-wrap { grid-template-columns: 340px minmax(0, 1fr) !important; }
html.v2 .ls-lessons { padding: 0 4px 10px 6px; }
html.v2 .ls-lesson-btn { gap: 10px; padding: 8px 6px 8px 8px; }
html.v2 .ls-num { width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--x-paper); color: var(--text); font-size: 11px; }
html.v2 .ls-lesson.active { background: var(--x-paper); }
html.v2 .ls-lesson.active .ls-num { background: var(--x-act); color: var(--x-on-act); }
html.v2 .ls-lesson.active .ls-lesson-txt b { color: var(--text); }
html.v2 .ls-lesson-txt b { font-size: 13px; line-height: 1.3; }
html.v2 .ls-lesson-txt small { font-size: 11px; gap: 4px 8px; }
html.v2 .ls-lesson-flags { gap: 1px; padding-right: 2px; }
html.v2 .ls-lesson-flags .fg { width: 15px; }
html.v2 .ls-wrap .ls-add-lesson { display: inline-flex; width: auto; min-height: 0; margin: 10px 6px 0 0; padding: 8px 12px; border: 1.5px dashed var(--x-paper-line); border-radius: 999px; background: transparent !important; color: var(--text) !important; font: 700 13px/1 var(--font); }
html.v2 .ls-wrap .ls-add-lesson:hover { border-style: solid; border-color: var(--text); background: var(--x-paper) !important; }
html.v2 .ls-wrap .ls-add-lesson:first-of-type { margin-left: 8px; }
/* свёрнутое меню редактора: читаемый логотип и подсказки у иконок */
html.v2 .cab-t-studio .lms-logo-link { display: grid !important; place-items: center; width: 46px; height: 46px; padding: 0 !important; border-radius: 14px; background: var(--x-inv); }
html.v2 .cab-t-studio .lms-logo-text { font-size: 0; }
html.v2 .cab-t-studio .lms-logo-text i { display: none; }
html.v2 .cab-t-studio .lms-logo-text::before { content: 'п.'; font: 400 20px/1 var(--font-d); color: var(--x-on-inv); }
html.v2 .v2-exit { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 10px 16px; border-radius: 999px; background: var(--x-paper); color: var(--text); font-weight: 700; white-space: nowrap; }
html.v2 .v2-exit:hover { background: var(--x-act); color: var(--x-on-act); }
/* выход из аккаунта — последним пунктом меню */
html.v2 .v2-logout { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; color: var(--muted) !important; }
html.v2 .v2-logout:hover { color: var(--x-red) !important; }
html.v2 .cab-t-studio .lms-logo-text { display: none; }
html.v2 .cab-t-studio .lms-logo-link::after { content: 'п.'; font: 400 20px/1 var(--font-d); color: var(--x-on-inv); }
html.v2 body:has(.cab-t-studio) .fpad-fab { left: auto !important; right: 24px !important; top: auto !important; bottom: 24px !important; }

/* ===== жабка в уроке: пиксельный спрайт, кадр 64×88, масштаб --s ===== */
.v2-frog { position: fixed; left: 0; bottom: 0; z-index: 60; width: calc(64px * var(--s, 1)); height: calc(88px * var(--s, 1)); pointer-events: none; }
.v2-frog-body { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent no-repeat 0 0; background-size: calc(640px * var(--s, 1)) calc(352px * var(--s, 1));
  image-rendering: pixelated; cursor: pointer; pointer-events: auto; }
.v2-frog-body:focus-visible { outline: 2px solid var(--ink, #0e0e10); outline-offset: 2px; border-radius: 8px; }
.v2-frog-say { position: absolute; right: calc(100% - 12px); bottom: calc(72px * var(--s, 1)); width: max-content; max-width: min(260px, calc(var(--room, 260px) - 4px)); padding: 10px 14px;
  border: 2px solid #0e0e10; border-radius: 16px 16px 4px 16px; background: #fff; color: #0e0e10; font: 600 14px/1.35 Onest, system-ui, sans-serif;
  box-shadow: 3px 3px 0 #0e0e10; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; pointer-events: none; }
.v2-frog-say.on { opacity: 1; transform: none; }
.v2-frog-hide { position: absolute; top: calc(10px * var(--s, 1)); right: -6px; width: 24px; height: 24px; padding: 0; border: 2px solid #0e0e10; border-radius: 50%;
  background: #fff; color: #0e0e10; font: 700 15px/1 Onest, sans-serif; cursor: pointer; pointer-events: auto; opacity: 0; transition: opacity .15s; }
.v2-frog:hover .v2-frog-hide, .v2-frog-hide:focus-visible { opacity: 1; }
@media (hover: none) { .v2-frog-hide { opacity: .85; } }
.v2-frog-back { position: fixed; left: 12px; bottom: 12px; z-index: 60; padding: 8px 12px; border: 2px solid #0e0e10; border-radius: 999px; background: #d4ff3a; color: #0e0e10;
  font: 700 13px/1 Onest, system-ui, sans-serif; cursor: pointer; box-shadow: 2px 2px 0 #0e0e10; }
@media print { .v2-frog, .v2-frog-back { display: none; } }
.v2-frog.is-left .v2-frog-say { right: auto; left: calc(100% - 12px); border-radius: 16px 16px 16px 4px; }

/* ===== кабинет родителя ===== */
.v2-parent { max-width: 1040px; }
.v2-parent h1 { font: 400 clamp(36px, 5vw, 60px)/1 'Dela Gothic One', Onest, sans-serif; letter-spacing: -.02em; margin: 14px 0 10px; }
.v2-pc-add { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; align-items: end; margin: 26px 0 18px; padding: 22px; border-radius: 22px; background: #d4ff3a; border: 2px solid #0e0e10; box-shadow: 4px 4px 0 #0e0e10; transform: rotate(-.4deg); }
.v2-pc-add label { display: grid; gap: 6px; font-weight: 700; }
.v2-pc-add input { padding: 14px 16px; border: 2px solid #0e0e10; border-radius: 14px; background: #fff; font: 600 16px Onest, sans-serif; color: #0e0e10; }
.v2-pc-add small { grid-column: 1 / -1; color: #2a2a33; }
@media (max-width: 600px) { .v2-pc-add { grid-template-columns: 1fr; } }
.v2-pc-wait { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.v2-pc-wait li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--raise, #f2f2f4); }
.v2-pc-x { margin-left: auto; padding: 8px 12px; border: 0; border-radius: 999px; background: transparent; color: #6b6b75; font: 700 13px Onest, sans-serif; cursor: pointer; text-decoration: underline; }
.v2-pc-unlink { margin: -6px 0 30px; text-align: right; }
.v2-pc-empty { padding: 30px; border-radius: 22px; background: var(--raise, #f2f2f4); }
.v2-pc-empty b { font: 400 24px/1.1 'Dela Gothic One', Onest, sans-serif; }
.v2-pc-child { margin: 28px 0 0; }
.v2-pc-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; margin-bottom: 14px; }
.v2-pc-head h2 { font: 400 32px/1 'Dela Gothic One', Onest, sans-serif; }
.v2-pc-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.v2-pc-pills li { padding: 7px 12px; border-radius: 999px; background: var(--raise, #f2f2f4); font-size: 14px; }
.v2-pc-course { margin-bottom: 16px; padding: 22px; border-radius: 22px; background: var(--raise, #f2f2f4); }
.v2-pc-course > header { display: flex; align-items: center; gap: 14px; }
.v2-pc-course h3 { font: 400 22px/1.1 'Dela Gothic One', Onest, sans-serif; }
.v2-pc-course > header small { color: #6b6b75; font-weight: 600; }
.v2-pc-bar { height: 10px; margin: 16px 0 6px; border-radius: 999px; background: rgba(14, 14, 16, .1); overflow: hidden; }
.v2-pc-bar i { display: block; height: 100%; border-radius: inherit; background: #0e0e10; }
.v2-pc-sub { color: #6b6b75; font-size: 14px; }
.v2-pc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; padding: 0; list-style: none; }
.v2-pc-stats li { padding: 14px; border-radius: 16px; background: #fff; }
.v2-pc-stats b { display: block; font: 400 28px/1 'Dela Gothic One', Onest, sans-serif; }
.v2-pc-stats small { color: #6b6b75; font-weight: 600; }
@media (max-width: 600px) { .v2-pc-stats { grid-template-columns: 1fr; } }
.v2-pc-alert { display: grid; gap: 4px; margin-bottom: 14px; padding: 14px 16px; border-radius: 16px; background: #ff4a1c; color: #fff; }
.v2-pc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .v2-pc-cols { grid-template-columns: 1fr; } }
.v2-pc-cols h4 { margin-bottom: 8px; font: 800 13px/1 Onest, sans-serif; text-transform: uppercase; letter-spacing: .05em; color: #6b6b75; }
.v2-pc-cols ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.v2-pc-cols li { padding: 10px 12px; border-radius: 12px; background: #fff; font-size: 14px; }
.v2-pc-cols em { color: #ff4a1c; font-style: normal; font-weight: 700; }
.v2-pc-t { display: inline-block; margin-left: 4px; padding: 2px 8px; border-radius: 999px; background: #f2f2f4; font-size: 12px; font-weight: 700; }
.v2-pc-t.is-ok { background: #d4ff3a; } .v2-pc-t.is-warn { background: #ffc531; } .v2-pc-t.is-bad { background: #ff4a1c; color: #fff; }
/* заявка родителя у ученика */
.v2-pr { display: grid; gap: 10px; margin-bottom: 20px; }
.v2-pr-card { padding: 18px 20px; border-radius: 20px; background: #d4ff3a; border: 2px solid #0e0e10; box-shadow: 3px 3px 0 #0e0e10; }
.v2-pr-card.is-on { background: var(--raise, #f2f2f4); border-color: transparent; box-shadow: none; }
.v2-pr-card b { font: 400 20px/1.15 'Dela Gothic One', Onest, sans-serif; }
.v2-pr-card p { margin: 6px 0 12px; color: #2a2a33; }
.v2-pr-card div { display: flex; flex-wrap: wrap; gap: 8px; }
.v2-pc-exam { flex: none; padding: 8px 12px; border-radius: 12px; background: #d4ff3a; border: 2px solid #0e0e10; font: 400 18px/1 'Dela Gothic One', Onest, sans-serif; transform: rotate(-3deg); }
html.v2 .v2-pc-add .btn { padding: 15px 22px; border: 0; border-radius: 999px; background: #0e0e10; color: #fff; font: 700 15px/1 Onest, sans-serif; cursor: pointer; }
html.v2 .v2-pr-card .btn { padding: 11px 18px; border: 2px solid #0e0e10; border-radius: 999px; background: #fff; color: #0e0e10; font: 700 14px/1 Onest, sans-serif; cursor: pointer; }
html.v2 .v2-pr-card .btn-primary { background: #0e0e10; color: #d4ff3a; }
.v2-pc-ask { margin: 24px 0 -8px; }
.v2-pr-wait { padding: 9px 14px; border-radius: 999px; background: #fff; font: 700 13px/1.2 Onest, sans-serif; }
.v2-pc-how { margin-top: 18px; padding: 24px; border-radius: 22px; background: var(--raise, #f2f2f4); }
.v2-pc-how b { font: 400 22px/1.1 'Dela Gothic One', Onest, sans-serif; }
.v2-pc-how ol { margin: 12px 0 16px; padding-left: 20px; display: grid; gap: 6px; }
.v2-pc-cat { font-weight: 700; text-decoration: underline; }
.v2-parent .v2-pc-add { margin-top: 30px; }
.v2-pc-course > summary { display: flex; align-items: center; gap: 14px; cursor: pointer; list-style: none; }
.v2-pc-course > summary::-webkit-details-marker { display: none; }
.v2-pc-course > summary > div { flex: 1; min-width: 0; }
.v2-pc-course > summary::after { content: '▾'; flex: none; font-size: 18px; transition: transform .2s; }
.v2-pc-course[open] > summary { margin-bottom: 18px; }
.v2-pc-course[open] > summary::after { transform: rotate(180deg); }
.v2-pc-course .v2-pc-bar { display: block; margin: 10px 0 0; }

/* ===== телефон: правки по аудиту на ширине 390 px ===== */
/* на странице урока своя полоса сверху (логотип, «В кабинет») — общая шапка там лишняя на любой ширине */
html.v2 body:has(.v2-ltop) .x-head { display: none; }
@media (max-width: 640px) {
  /* урок: «Предыдущий / Следующий» в ряд, положение в курсе — строкой над ними */
  html.v2 .v2-lnav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
  html.v2 .v2-lpos { grid-column: 1 / -1; order: -1; min-width: 0; }
  html.v2 .v2-lstep { display: flex; justify-content: center; padding: 12px 10px; }
  /* список уроков: статус уходит под название, чтобы названию хватало ширины */
  html.v2 .v2-prow { grid-template-columns: 40px 1fr; gap: 4px 12px; padding: 10px; }
  html.v2 .v2-prow-st { grid-column: 2; justify-content: flex-start; }
  html.v2 .v2-ptitle b { font-size: 16px; }
  /* тарифы на странице курса: цена — справа от названия, описание — во всю ширину */
  html.v2 .v2-topt { grid-template-columns: auto 1fr auto; grid-template-areas: "r n p" "d d d"; row-gap: 6px; }
  html.v2 .v2-topt input { grid-area: r; }
  html.v2 .v2-topt .v2-tname { display: contents; }
  html.v2 .v2-topt .v2-tname b { grid-area: n; align-self: center; }
  html.v2 .v2-topt .v2-tname small { grid-area: d; }
  html.v2 .v2-topt .v2-tprice { grid-area: p; font-size: 18px; }
  /* «Сдачи по неделям»: все 10 недель на экране, подпись — через неделю */
  html.v2 .pfw { min-width: 0; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 3px; --h: 130px; }
  html.v2 .pfw-col small { font-size: 9.5px; }
  html.v2 .pfw-col:nth-child(even) small { visibility: hidden; }
  /* куратор: шапка переписки и список вопросов переносятся, а не наезжают друг на друга */
  html.v2 .cm-head { flex-wrap: wrap; gap: 8px 10px; }
  html.v2 .cm-head > div { flex: 1 1 calc(100% - 60px); min-width: 0; }
  html.v2 .cm-head b { font-size: 17px; line-height: 1.15; }
  html.v2 .cm-item-top { flex-wrap: wrap; gap: 2px 8px; }
  html.v2 .cm-item-top b { white-space: normal; }
  /* длинные приветствия («Здравствуйте, …») не вылезают за экран */
  html.v2 .v2-hello h1 { font-size: clamp(30px, 10vw, 44px); overflow-wrap: anywhere; }
  /* кабинет родителя: шапка курса — плашка экзамена над названием, карточки цифр — в столбик */
  html.v2 .v2-pc-course { padding: 14px; }
  html.v2 .v2-pc-course > summary { flex-wrap: wrap; }
  html.v2 .v2-pc-course h3 { font-size: 19px; }
  html.v2 .v2-pc-head h2 { font-size: 26px; }
  html.v2 .v2-pf .pf-cards { grid-template-columns: 1fr 1fr; }
  html.v2 .v2-pc-add, html.v2 .v2-pr-card { padding: 16px; }
}
/* содержимое кабинета не растягивается по самому широкому графику внутри — иначе на телефоне страница уезжает вбок */
html.v2 .cab-content > *, html.v2 .v2-pc-course, html.v2 .v2-pf, html.v2 .v2-pf .pf { min-width: 0; max-width: 100%; }
@media (max-width: 640px) {
  html.v2 .v2-pc-course > summary > div { flex-basis: 100%; order: 2; }
  /* карточка «Продолжить / Попробуй» на странице курса: место под круглую стрелку справа */
  html.v2 .v2-cside .v2-next { padding-right: 76px; }
}
/* полный экран при вертикальном телефоне: видео 16:9 по центру на чёрном, а не растянуто на всю высоту */
@media (orientation: portrait) {
  .player:fullscreen { justify-content: center; background: #000; }
  .player:fullscreen .screen { flex: none; width: 100%; aspect-ratio: 16 / 9; }
}
/* банк заданий: кнопка «Фильтры» — только на телефоне */
html.v2 .v2-filt-btn { display: none; }
@media (max-width: 860px) {
  html.v2 .tasks-filter-col { order: 1; }
  html.v2 .tasks-main-col { order: 2; }
  html.v2 .v2-filt-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px 16px; border: 0; border-radius: 16px; background: var(--x-paper, #f2f2f4); color: inherit; font: 700 15px/1 Onest, sans-serif; cursor: pointer; }
  html.v2 .v2-filt-btn i { font-style: normal; transition: transform .2s; }
  html.v2 .tasks-filter-col.is-open .v2-filt-btn i { transform: rotate(180deg); }
  html.v2 .tasks-filter-col:not(.is-open) > :not(.v2-filt-btn) { display: none; }
  html.v2 .tasks-filter-col.is-open > .v2-filt-btn { margin-bottom: 10px; }
}
/* вопрос куратору из урока на телефоне — нижняя шторка по высоте содержимого, а не пустой экран целиком */
@media (max-width: 640px) {
  html.v2 .qa-drawer { top: auto; left: 0; right: 0; width: 100%; max-height: 86dvh; border-left: 0; border-radius: 24px 24px 0 0;
    box-shadow: 0 -18px 50px rgba(0, 0, 0, .22); transform: translateY(100%); }
  html.v2 .qa-drawer.on { transform: none; }
  html.v2 .qa-drawer::before { content: ''; align-self: center; width: 44px; height: 5px; margin-top: 8px; border-radius: 99px; background: rgba(14, 14, 16, .15); }
  html.v2 .qa-dhead { padding: 10px 16px 12px; }
  html.v2 .qa-topic { padding: 10px 16px; }
  html.v2 .qa-dbody { flex: 0 1 auto; padding: 14px 16px; }
  html.v2 .qa-hello { margin: 4px 0; justify-items: start; text-align: left; }
  html.v2 .qa-hello svg { display: none; }
  html.v2 .qa-dfoot { padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); }
}

/* ===== телефон: плотнее и легче — меньше заголовки, отступы и карточки ===== */
@media (max-width: 640px) {
  /* урок: программа курса уже есть в «Предыдущий / Следующий» и в «Моих уроках» — на телефоне не дублируем */
  html.v2 .lesson-page .lc-b-outline { display: none; }
  /* заголовки страниц и блоков */
  html.v2 .cab-top-title { font-size: 22px; }
  html.v2 .v2-sec-h h2, html.v2 .v2-block > header h2 { font-size: 24px; }
  html.v2 .v2-block, html.v2 .v2-sect { gap: 14px; }
  html.v2 .v2-block + .v2-block { margin-top: 24px; }
  html.v2 .v2-course h1, html.v2 .v2-page > h1 { font-size: clamp(28px, 9vw, 40px); }
  html.v2 .v2-lead { font-size: 15px; }
  /* карточки успеваемости: 2×2 компактно, без наклона */
  html.v2 .pf-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  html.v2 .pf-card, html.v2 .pf-card:nth-child(2n) { padding: 14px; border-radius: 18px; transform: none; }
  html.v2 .pf-card-val { font-size: 30px; }
  html.v2 .pf-card-val small { font-size: 12px; }
  html.v2 .pf-card-lbl { font-size: 13px; margin-top: 4px; line-height: 1.2; }
  html.v2 .pf-card small { font-size: 11px; line-height: 1.3; }
  html.v2 .pf-card .pf-bar { height: 5px; margin: 8px 0 6px; }
  html.v2 .pf-box h3, html.v2 .pf-list h3 { font-size: 19px; }
  /* «Сдачи по неделям»: без серой капсулы у текущей недели — её отмечает только подпись */
  html.v2 .pfw-col.now { background: none; }
  html.v2 .pfw-col.now small { color: inherit; }
  /* каталог: карточка курса — по содержимому, без описания */
  html.v2 .v2-cc { min-height: 0; padding: 18px; gap: 8px; }
  html.v2 .v2-cc .v2-slap-exam { font-size: 40px; }
  html.v2 .v2-cc > b { font-size: 20px; line-height: 1.1; }
  html.v2 .v2-cc p { display: none; }
  html.v2 .v2-cc-price b { font-size: 20px; }
  html.v2 .v2-cc .v2-slap-go { width: 40px; height: 40px; }
  /* «Мои курсы» на главной и карточки «Продолжить» */
  html.v2 .v2-next { padding: 20px 64px 20px 20px; gap: 6px; }
  html.v2 .v2-next b { font-size: 22px; }
}
@media (max-width: 860px) { html.v2 .tasks-main-col > .tasks-filter-col { margin: 10px 0 14px; } }

/* ===== «Куратор» на телефоне: список вопросов ↔ переписка, как в мессенджере ===== */
html.v2 .v2-cm-back { display: none; }
@media (max-width: 640px) {
  /* карточка куратора — одной компактной строкой */
  html.v2 .cur-card { display: grid; grid-template-columns: 44px 1fr; gap: 6px 12px; align-items: center; padding: 14px; }
  html.v2 .cur-card .qa-ava.big { width: 44px; height: 44px; }
  html.v2 .cur-card .cur-who small { font-size: 11px; }
  html.v2 .cur-card .cur-who b { font-size: 17px; }
  html.v2 .cur-card .cur-who span { font-size: 12px; }
  html.v2 .cur-card .cur-quota { grid-column: 1 / -1; padding: 10px 12px; }
  html.v2 .cur-card .cur-quota small { display: none; }
  html.v2 .cur-card .cur-courses { grid-column: 1 / -1; }
  html.v2 .cur-tabs { margin: 10px 0; }
  /* экран списка: только вопросы */
  html.v2 .cab-content:not(.v2-cur-thread) .cm:not(.cur-single) > .cm-main { display: none; }
  html.v2 .cab-content:not(.v2-cur-thread) .cm:not(.cur-single) { display: block; }
  html.v2 .cm-side { display: grid; gap: 8px; max-height: none; padding: 12px; }
  html.v2 .cm-item { padding: 12px 14px; }
  /* экран переписки: шапка с «назад», сообщения, поле ввода прижато к низу */
  html.v2 .cab-content.v2-cur-thread .cur-card, html.v2 .cab-content.v2-cur-thread .cur-tabs, html.v2 .cab-content.v2-cur-thread .cm-side { display: none; }
  html.v2 .cab-content.v2-cur-thread .cm { display: block; padding: 0; overflow: visible; background: none; }
  html.v2 .cab-content.v2-cur-thread .cm-main { display: flex; flex-direction: column; min-height: calc(100dvh - 120px); border-radius: 22px; overflow: visible; }
  html.v2 .v2-cur-thread .cm-head { position: sticky; top: 0; z-index: 3; flex-wrap: wrap; gap: 6px 10px; padding: 12px; background: var(--surface); border-radius: 22px 22px 0 0; }
  html.v2 .v2-cur-thread .v2-cm-back { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--surface-2); color: inherit; font: 700 18px/1 Onest, sans-serif; cursor: pointer; }
  html.v2 .v2-cur-thread .cm-head .qa-ava { display: none; }
  html.v2 .v2-cur-thread .cm-head > div { flex: 1 1 calc(100% - 60px); }
  html.v2 .v2-cur-thread .cm-head b { font-size: 16px; }
  html.v2 .v2-cur-thread .cm-head small { font-size: 12px; }
  html.v2 .v2-cur-thread .cm-head .cur-status, html.v2 .v2-cur-thread .cm-head .btn { margin-left: 48px; font-size: 12px; padding: 6px 10px; }
  html.v2 .v2-cur-thread .cm-head .btn + .cur-status, html.v2 .v2-cur-thread .cm-head .cur-status + .btn { margin-left: 0; }
  html.v2 .v2-cur-thread .cm-list { flex: 1; max-height: none; padding: 12px; }
  html.v2 .v2-cur-thread .cm-msg .qa-ava { display: none; }
  html.v2 .v2-cur-thread .cm-bubble { max-width: 85%; padding: 10px 12px; }
  html.v2 .v2-cur-thread .cm-form { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; background: var(--surface); border-top: 1px solid rgba(14, 14, 16, .06); }
  html.v2 .v2-cur-thread .cm-form textarea { flex: 1; min-height: 44px; max-height: 120px; padding: 11px 16px; border-radius: 22px; font-size: 15px; line-height: 1.35; resize: none; }
  html.v2 .v2-cur-thread .cm-form .btn { flex: none; width: 44px; height: 44px; padding: 0; border-radius: 50%; }
  html.v2 .v2-cur-thread .cur-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 12px 12px; font-size: 12px; }
  html.v2 .v2-cur-thread .cur-foot .btn { flex: none; padding: 7px 12px; font-size: 12px; }
  html.v2 .v2-cur-thread .cur-ask { padding: 12px; }
}
