/* Дополнения к стилям прежнего сайта: элементы, которые появились в PHP-версии
   (пространства клиентов, права администраторов, админка платформы). Цвета берутся из тех же
   переменных темы, поэтому обе темы — бирюзовая и тёмная — работают без отдельных правил. */

[x-cloak] { display: none !important; }

.login-signup-hint { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin-top: 4px; color: var(--muted); font-size: 14px; }
.login-signup-hint .login-link-button { margin: 0; }

/* Права администраторов */
.permission-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.permission-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--field, transparent); color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; }
.permission-chip input { margin: 0; accent-color: var(--primary); }
.permission-chip.on { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); }
.permission-chip.locked { cursor: default; opacity: .85; }
.owner-badge { display: inline-flex; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--primary); font-size: 12px; font-weight: 700; }

.admins-table { width: 100%; border-collapse: collapse; }
.admins-table th, .admins-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.admins-table th { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* Вкладки раздела «Настройки» */
.settings-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.settings-tabs a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-weight: 600; text-decoration: none; }
.settings-tabs a[aria-current="page"] { border-color: var(--primary); background: var(--primary); color: #fff; }

/* Админка платформы */
.platform-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.platform-stats article { padding: 18px; }
.platform-stats span { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.platform-stats strong { display: block; margin-top: 6px; font-size: 28px; }
.platform-table-wrap { overflow-x: auto; }
.platform-table { width: 100%; border-collapse: collapse; min-width: 860px; }
.platform-table th, .platform-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.platform-table th { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.platform-table a { color: var(--ink); font-weight: 700; text-decoration: none; }
.platform-table a:hover { color: var(--primary); }
.workspace-status { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.workspace-status.active { background: color-mix(in srgb, #2aa876 16%, transparent); color: #1f8a5f; }
.workspace-status.blocked { background: color-mix(in srgb, #d64545 14%, transparent); color: #c03a3a; }
.source-pill { color: var(--muted); font-size: 12px; }

/* Операции */
.ops-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 18px; align-items: start; }
.ops-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ops-filters button { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font-weight: 600; cursor: pointer; }
.ops-filters button[aria-pressed="true"] { border-color: var(--primary); background: var(--primary); color: #fff; }
.ops-list { display: grid; gap: 10px; }
.ops-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface, transparent); color: var(--ink); text-align: left; cursor: pointer; }
.ops-item.unread { border-color: color-mix(in srgb, var(--primary) 55%, var(--line)); }
.ops-item.selected { outline: 2px solid var(--primary); }
.ops-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); font-size: 13px; font-weight: 800; }
.ops-item small { display: block; color: var(--muted); }
.ops-detail { padding: 20px; position: sticky; top: 16px; }
.ops-detail .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.priority-urgent { color: #c03a3a; font-weight: 700; font-size: 12px; }

/* Импорт */
.import-created { margin-top: 16px; }
.import-created table { width: 100%; border-collapse: collapse; }
.import-created td, .import-created th { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; }
.import-created code { font-size: 14px; }

@media (max-width: 960px) {
  .ops-layout { grid-template-columns: 1fr; }
  .ops-detail { position: static; }
}

/* Обычные выпадающие списки браузера в стиле полей платформы. :where() обнуляет вес
   правила: у списков, оформленных в исходном дизайне (фильтр статусов, статус в таблице,
   курс в строке пользователя), остаются их собственные размеры и цвета. */
:where(select.native-select) { width: 100%; min-height: 42px; padding: 9px 36px 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--field, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%237c8f94' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 8l4.5 4.5L14.5 8'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; color: var(--ink); font: inherit; font-size: 15px; appearance: none; cursor: pointer; }
:where(select.native-select.compact) { min-height: 34px; padding: 5px 30px 5px 10px; font-size: 14px; }
select.native-select:focus { outline: 2px solid color-mix(in srgb, var(--primary) 40%, transparent); outline-offset: 1px; }

/* Кнопка-файл в ленте редактора выглядит как остальные кнопки ленты */
.ribbon-file-button { display: grid; min-width: 27px; height: 27px; padding: 0 4px; place-items: center; border: 1px solid transparent; border-radius: 7px; color: var(--ink); cursor: pointer; }
.ribbon-file-button:hover { border-color: color-mix(in srgb, var(--primary) 22%, var(--line)); background: color-mix(in srgb, var(--primary) 9%, var(--field)); }
.ribbon-file-button[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* Кнопки «выше/ниже» для пар сопоставления */
.match-move-buttons { display: inline-flex; flex-direction: column; gap: 2px; }
.match-move-buttons button { width: 22px; height: 18px; padding: 0; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: var(--field); cursor: pointer; font-size: 11px; line-height: 1; }
.match-move-buttons button:disabled { opacity: .35; cursor: default; }

/* Поле текстового ответа в тесте ученика */
.test-text-answer { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--field); font: inherit; }
.test-text-answer:focus { border-color: var(--primary); outline: none; }

/* Текст ошибки рядом со значком «!»: значок — span, текст — отдельный элемент */
.form-error-text { flex: 1; min-width: 0; font-weight: inherit; overflow-wrap: anywhere; }

/* Сертификаты: правило выдачи и выбор курсов для сертификата за набор курсов */
.form-success { margin: 0; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--line)); border-radius: 13px; background: var(--mint-soft); color: var(--ink); font-size: 13px; font-weight: 700; }
.certificate-catalog-list li { align-items: flex-start; }
.certificate-rule { display: grid; flex: 1; gap: 4px; min-width: 0; }
.certificate-rule small { color: var(--muted); font-size: 12px; }
.certificate-program-editor { display: grid; gap: 8px; margin-top: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface, var(--field)); }
.certificate-program-editor p { margin: 0; font-size: 13px; }
.certificate-program-editor ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.certificate-program-editor label { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.certificate-program-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.button.compact { min-height: 32px; padding: 0 12px; font-size: 13px; white-space: nowrap; }
.learner-program-card ul { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.learner-program-card li { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.learner-program-card li > span:first-child { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: var(--line); font-size: 11px; }
.learner-program-card li.done > span:first-child { background: var(--primary); color: #fff; }
.certificate-catalog-list .certificate-program-editor li { display: block; padding: 0; border: 0; border-radius: 0; background: none; }

/* ═════════════ Админка платформы (pf-*) ═════════════ */
.platform-app-frame .workspace-topbar { display: none; }
.platform-app-frame .workspace { padding: 40px clamp(20px, 4vw, 64px) 72px; }
:root[data-theme="dark"] .platform-app-frame .workspace { background: var(--background); }
.pf-page { width: 100%; max-width: 1320px; margin: 0 auto; gap: 20px; }
.pf-page a { text-decoration: none; }
.pf-page h1, .pf-page h2 { margin: 0; color: var(--ink); }
.pf-page h1 { font-size: clamp(30px, 3.4vw, 40px); letter-spacing: -.02em; }
.pf-page h2 { font-size: 17px; letter-spacing: -.01em; }
.pf-page .back-link { margin-bottom: -6px; }
.pf-page .eyebrow { margin-bottom: 6px; }
.pf-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.pf-lead { max-width: 640px; margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.pf-header > .button, .pf-header-actions .button { min-height: 42px; padding-inline: 18px; font-size: 14px; }
.pf-header-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.button.secondary.pf-danger { color: #c03a3a; border-color: color-mix(in srgb, #d64545 32%, var(--line)); }
.button.secondary.pf-danger:hover { background: color-mix(in srgb, #d64545 8%, var(--surface)); }
:root[data-theme="dark"] .button.secondary.pf-danger { color: #ff8b8b; }

/* Карточки и сетки */
.pf-card { min-width: 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 1px 2px rgba(23, 55, 64, .04), 0 10px 30px rgba(23, 55, 64, .05); }
.pf-card-flush { padding: 0; overflow: hidden; }
.pf-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.pf-card-head p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.pf-card-head-pad { margin: 0; padding: 18px 22px 14px; border-bottom: 1px solid var(--line); }
.pf-card-figure { color: var(--ink); font-size: 26px; font-weight: 800; line-height: 1; text-align: right; }
.pf-card-figure small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 700; }
.pf-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pf-grid-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 20px; }
.pf-link { color: var(--primary); font-size: 13px; font-weight: 800; white-space: nowrap; }
.pf-link:hover { text-decoration: underline; }

/* Показатели */
.pf-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pf-kpi { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: var(--surface); box-shadow: 0 1px 2px rgba(23, 55, 64, .04); transition: border-color .16s ease, transform .16s ease; }
a.pf-kpi:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); transform: translateY(-1px); }
.pf-kpi-label { color: var(--muted); font-size: 13px; font-weight: 700; }
.pf-kpi-value { font-size: 34px; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pf-kpi-value small { margin-left: 2px; color: var(--muted); font-size: 18px; font-weight: 700; }
.pf-kpi-note { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.pf-text-danger { color: #c03a3a; }
.pf-delta { display: inline-block; margin-right: 4px; padding: 1px 7px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.pf-delta.up { color: #1f8a5f; background: color-mix(in srgb, #2aa876 15%, transparent); }
.pf-delta.down { color: #c03a3a; background: color-mix(in srgb, #d64545 13%, transparent); }
.pf-delta.flat { color: var(--muted); background: var(--subtle); }

/* Столбчатые графики */
.pf-bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 18px; border-bottom: 1px solid var(--line); }
.pf-bars-dense { gap: 3px; }
.pf-bar-col { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.pf-bar { display: block; width: 100%; max-width: 34px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 82%, white), var(--primary)); transition: filter .15s ease; }
.pf-bar-alt { background: linear-gradient(180deg, color-mix(in srgb, var(--mint) 75%, white), var(--mint)); }
.pf-bar[data-empty="1"] { background: var(--line); }
.pf-bar-col:hover .pf-bar { filter: brightness(1.12); }
.pf-bar-value { margin-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 800; }
.pf-axis { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); font-size: 12px; }

/* Списки */
.pf-list { display: grid; margin: 0; padding: 0; list-style: none; }
.pf-list li + li { border-top: 1px solid var(--line); }
.pf-list-row { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 11px 4px; color: var(--ink); border-radius: 10px; }
.pf-list-row:hover { background: var(--subtle); }
.pf-list-main { display: grid; flex: 1; min-width: 0; gap: 2px; }
.pf-list-main strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.pf-list-main small { overflow: hidden; color: var(--muted); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.pf-list-meta { flex: 0 0 auto; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.pf-chevron { color: var(--muted); }
.pf-reason { flex: 0 0 auto; width: 132px; padding: 4px 8px; border-radius: 8px; font-size: 11.5px; font-weight: 800; text-align: center; }
.pf-reason-stalled { color: #8a6312; background: var(--gold-soft); }
.pf-reason-silent { color: #2f6f8f; background: color-mix(in srgb, var(--primary) 14%, transparent); }
.pf-reason-blocked { color: #c03a3a; background: color-mix(in srgb, #d64545 13%, transparent); }
:root[data-theme="dark"] .pf-reason-stalled { color: var(--gold); }
:root[data-theme="dark"] .pf-reason-silent { color: var(--mint); }
.pf-empty { display: grid; justify-items: center; gap: 4px; padding: 34px 20px; color: var(--muted); text-align: center; }
.pf-empty > span { display: grid; width: 40px; height: 40px; margin-bottom: 6px; place-items: center; border-radius: 50%; color: var(--primary); background: var(--mint-soft); font-size: 18px; }
.pf-empty strong { color: var(--ink); }
.pf-empty small { max-width: 360px; font-size: 13px; }

/* Аватары, метки */
.pf-avatar { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border-radius: 12px; color: var(--primary); background: color-mix(in srgb, var(--primary) 13%, var(--surface)); font-size: 15px; font-weight: 800; }
.pf-avatar-sm { flex-basis: 32px; width: 32px; height: 32px; border-radius: 50%; font-size: 12px; }
.pf-avatar-square { border-radius: 9px; }
.pf-avatar-lg { flex-basis: 64px; width: 64px; height: 64px; border-radius: 18px; font-size: 26px; }
.pf-tag { flex: 0 0 auto; padding: 3px 9px; border-radius: 999px; color: var(--muted); background: var(--subtle); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.pf-tag-accent { color: var(--primary); background: color-mix(in srgb, var(--primary) 13%, transparent); }
.pf-icon-button { display: inline-grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: var(--surface); cursor: pointer; font-size: 14px; }
.pf-icon-button:hover { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }

/* Лента событий */
.pf-timeline { display: grid; margin: 0; padding: 0; list-style: none; }
.pf-timeline li { display: grid; grid-template-columns: 112px 14px minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.pf-timeline li:first-child { border-top: 0; }
.pf-timeline-flush li { padding-inline: 22px; }
.pf-timeline time { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-timeline-dot { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: #2aa876; box-shadow: 0 0 0 3px color-mix(in srgb, #2aa876 18%, transparent); }
.pf-result-warning .pf-timeline-dot { background: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent); }
.pf-result-denied .pf-timeline-dot { background: #d64545; box-shadow: 0 0 0 3px color-mix(in srgb, #d64545 18%, transparent); }
.pf-timeline strong { display: block; color: var(--ink); font-size: 14px; }
.pf-timeline small { display: block; overflow: hidden; color: var(--muted); font-size: 12.5px; text-overflow: ellipsis; }
.pf-timeline small a { color: var(--primary); font-weight: 700; }

/* Панель инструментов, поиск, переключатели */
.pf-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.pf-toolbar-tight { padding: 14px 22px; }
.pf-search { display: flex; flex: 1 1 240px; align-items: center; gap: 8px; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: var(--field); }
.pf-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent); }
.pf-search svg { flex: 0 0 18px; width: 18px; height: 18px; }
.pf-search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: none; color: var(--ink); background: transparent; font: inherit; font-size: 14px; box-shadow: none; }
.pf-select { width: auto; max-width: 230px; height: 40px; }
.pf-segmented { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--subtle); }
.pf-segmented button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 0; border-radius: 9px; color: var(--muted); background: transparent; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; white-space: nowrap; }
.pf-segmented button span { color: var(--muted); font-size: 11.5px; font-weight: 800; opacity: .8; }
.pf-segmented button[aria-pressed="true"] { color: var(--ink); background: var(--surface); box-shadow: 0 1px 3px rgba(23, 55, 64, .12); }
.pf-tabs { display: flex; gap: 4px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.pf-tabs button { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 50px; padding: 0 10px; border: 0; color: var(--muted); background: none; cursor: pointer; font: inherit; font-size: 14px; font-weight: 800; }
.pf-tabs button span { padding: 1px 7px; border-radius: 999px; background: var(--subtle); font-size: 11.5px; }
.pf-tabs button[aria-selected="true"] { color: var(--ink); }
.pf-tabs button[aria-selected="true"]::after { content: ""; position: absolute; right: 8px; bottom: -1px; left: 8px; height: 2px; border-radius: 2px; background: var(--primary); }

/* Таблица клиентов (сетка без горизонтальной прокрутки) */
.pf-table-head, .pf-table-row { display: grid; grid-template-columns: minmax(200px, 1.6fr) minmax(160px, 1.2fr) 96px 64px 120px 118px 44px; align-items: center; gap: 12px; padding: 0 22px; }
.pf-table-head { height: 42px; border-bottom: 1px solid var(--line); color: var(--muted); background: var(--subtle); font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.pf-table-row { min-height: 66px; border-bottom: 1px solid var(--line); transition: background .12s ease; }
.pf-table-row:last-of-type { border-bottom: 0; }
.pf-table-row:hover { background: color-mix(in srgb, var(--primary) 4%, var(--surface)); }
.pf-table-row.is-blocked .pf-cell-client strong { color: var(--muted); }
.pf-cell-client { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--ink); }
.pf-cell-client > span:last-child { display: grid; min-width: 0; gap: 2px; }
.pf-cell-client strong { overflow: hidden; font-size: 14.5px; text-overflow: ellipsis; white-space: nowrap; }
.pf-cell-client small, .pf-cell-owner small { overflow: hidden; color: var(--muted); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.pf-cell-client:hover strong { color: var(--primary); }
.pf-cell-owner { display: grid; min-width: 0; gap: 2px; font-size: 14px; }
.pf-cell-owner > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-cell-num { display: grid; gap: 1px; font-variant-numeric: tabular-nums; }
.pf-cell-num b { font-size: 15px; }
.pf-cell-num small { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.pf-cell-activity { color: var(--muted); font-size: 13px; }
.pf-cell-actions { display: flex; justify-content: flex-end; }

/* Карточка клиента */
.pf-client-header { align-items: center; }
.pf-client-title { display: flex; align-items: center; gap: 18px; min-width: 0; }
.pf-client-title > div { display: grid; justify-items: start; gap: 6px; min-width: 0; }
.pf-editable { display: flex; align-items: center; gap: 10px; }
.pf-editable .pf-icon-button { opacity: .55; }
.pf-editable:hover .pf-icon-button { opacity: 1; }
.pf-rename { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-rename input { min-width: 260px; height: 44px; padding: 0 12px; border: 1px solid var(--primary); border-radius: 12px; color: var(--ink); background: var(--field); font: inherit; font-size: 20px; font-weight: 800; }
.pf-banner { padding: 13px 16px; border-radius: 13px; font-size: 14px; }
.pf-banner-danger { border: 1px solid color-mix(in srgb, #d64545 30%, var(--line)); color: var(--ink); background: color-mix(in srgb, #d64545 8%, var(--surface)); }
.pf-people { display: grid; margin: 0; padding: 0; list-style: none; }
.pf-people li { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 22px; border-bottom: 1px solid var(--line); }
.pf-people li:last-child { border-bottom: 0; }
.pf-people-progress { display: flex; flex: 0 0 170px; align-items: center; gap: 8px; }
.pf-people-progress small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.pf-progress { position: relative; flex: 1; height: 6px; overflow: hidden; border-radius: 999px; background: var(--line); }
.pf-progress > span { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--primary); }
.pf-status-dot { flex: 0 0 92px; color: var(--muted); font-size: 12px; font-weight: 700; text-align: right; }
.pf-status-dot::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: currentColor; vertical-align: 1px; }
.pf-status-dot.active { color: #1f8a5f; }
.pf-status-dot.inactive { color: #c03a3a; }
.pf-status-dot.frozen, .pf-status-dot.renewal { color: #8a6312; }
.pf-status-dot.completed { color: var(--primary); }
.pf-owner-card { display: grid; gap: 14px; }
.pf-owner { display: flex; gap: 12px; }
.pf-owner > div { display: grid; min-width: 0; gap: 2px; }
.pf-owner a { overflow: hidden; color: var(--primary); font-size: 13px; font-weight: 700; text-overflow: ellipsis; }
.pf-owner small { color: var(--muted); font-size: 12px; }
.pf-facts { display: grid; gap: 0; margin: 0; }
.pf-facts > div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; }
.pf-facts dt { color: var(--muted); }
.pf-facts dd { margin: 0; color: var(--ink); font-weight: 700; text-align: right; }
.pf-stack-form { display: grid; gap: 12px; }
.pf-stack-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.pf-stack-form input { height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--field); font: inherit; }
.pf-stack-form input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent); }
.pf-card > h2 + .muted { margin: 8px 0 14px; font-size: 13px; line-height: 1.5; }
.pf-dialog .eyebrow { margin-bottom: 4px; }

/* Адаптивность */
@media (max-width: 1180px) {
  .pf-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-grid-aside { grid-template-columns: minmax(0, 1fr); }
  .pf-table-head, .pf-table-row { grid-template-columns: minmax(200px, 1.6fr) minmax(150px, 1.2fr) 90px 60px 118px 44px; }
  .pf-table-head > :nth-child(5), .pf-table-row > :nth-child(5) { display: none; }
}
@media (max-width: 900px) {
  .platform-app-frame .workspace { padding: 24px 16px 56px; }
  .pf-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .pf-table-head { display: none; }
  .pf-table-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "client status" "owner owner" "learners courses"; gap: 8px 12px; padding: 14px 16px; }
  .pf-table-row > :nth-child(1) { grid-area: client; }
  .pf-table-row > :nth-child(2) { grid-area: owner; padding-left: 50px; }
  .pf-table-row > :nth-child(3) { grid-area: learners; padding-left: 50px; }
  .pf-table-row > :nth-child(4) { grid-area: courses; }
  .pf-table-row > :nth-child(6) { grid-area: status; }
  .pf-table-row > :nth-child(5), .pf-table-row > :nth-child(7) { display: none; }
  .pf-cell-num { grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 6px; }
  .pf-cell-num::before { content: attr(data-label) ":"; color: var(--muted); font-size: 12px; }
  .pf-people li { flex-wrap: wrap; padding: 12px 16px; }
  .pf-people-progress { flex-basis: 100%; order: 5; padding-left: 44px; }
  .pf-timeline li { grid-template-columns: 14px minmax(0, 1fr); }
  .pf-timeline time { grid-column: 2; order: 2; }
  .pf-timeline .pf-tag { display: none; }
  .pf-timeline-flush li { padding-inline: 16px; }
  .pf-toolbar { padding: 14px 16px; }
  .pf-segmented { max-width: 100%; overflow-x: auto; }
  .pf-select { flex: 1 1 160px; max-width: none; }
}
@media (max-width: 560px) {
  .pf-kpis { grid-template-columns: minmax(0, 1fr); }
  .pf-kpi-value { font-size: 30px; }
  .pf-reason { width: auto; }
  .pf-list-row { flex-wrap: wrap; }
  .pf-client-title { align-items: flex-start; }
  .pf-avatar-lg { flex-basis: 48px; width: 48px; height: 48px; font-size: 20px; }
  .pf-rename input { min-width: 0; width: 100%; }
}

/* Доводка админки платформы после просмотра скриншотов */
.pf-grid-aside { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); }
.pf-search { flex: 1 1 200px; }
.pf-select { max-width: 200px; }
.pf-table-head { background: color-mix(in srgb, var(--ink) 4%, var(--surface)); }
.pf-segmented { background: color-mix(in srgb, var(--ink) 6%, var(--surface)); }
.pf-tag { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.pf-tabs button span { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.pf-avatar-lg { color: #fff; background: linear-gradient(135deg, var(--primary), var(--mint)); box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 30%, transparent); }
.pf-list-row:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }

/* Админка платформы на телефоне: меню превращается в полосу сверху */
@media (max-width: 700px) {
  .app-frame.platform-app-frame { grid-template-columns: minmax(0, 1fr); }
  .platform-app-frame .sidebar { position: sticky; top: 0; z-index: 60; height: auto; flex-direction: row; align-items: center; gap: 6px; padding: 8px 10px; overflow: visible; }
  .platform-app-frame .sidebar::after, .platform-app-frame .sidebar-context, .platform-app-frame .brand-copy, .platform-app-frame .profile-copy { display: none; }
  .platform-app-frame .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .platform-app-frame .brand-mark-icon { width: 26px; height: 25px; }
  .platform-app-frame .sidebar-nav { display: flex; flex: 1; gap: 2px; margin: 0; padding: 0; overflow-x: auto; }
  .platform-app-frame .nav-link { flex: 1 0 44px; justify-content: center; min-height: 44px; padding: 2px; border-radius: 12px; }
  .platform-app-frame .nav-marker { width: 34px; height: 34px; }
  .platform-app-frame .sidebar-bottom { flex-direction: row; gap: 4px; margin: 0; }
  .platform-app-frame .sidebar-profile { margin: 0; padding: 0; border: 0; }
  .platform-app-frame .profile-avatar { width: 36px; height: 36px; flex-basis: 36px; }
  .platform-app-frame .profile-popover { top: calc(100% + 10px); right: 0; bottom: auto; left: auto; }
  .platform-app-frame .workspace { padding: 20px 14px 48px; }
  .pf-page h1 { font-size: 28px; }
  .pf-header > .button { width: 100%; }
  .pf-header-actions { width: 100%; }
  .pf-header-actions .button { flex: 1 1 auto; }
}

/* ═════════════ Анимации и «живой» вид админки платформы ═════════════ */
@keyframes pf-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pf-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes pf-float-1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-40px, 26px) scale(1.12); } }
@keyframes pf-float-2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(36px, -22px) scale(.92); } }
@keyframes pf-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent); } 80%, 100% { box-shadow: 0 0 0 7px transparent; } }
@keyframes pf-shine { from { transform: translateX(-120%) skewX(-18deg); } to { transform: translateX(260%) skewX(-18deg); } }

/* Блоки страницы появляются по очереди */
.pf-page > * { animation: pf-rise .55s cubic-bezier(.2, .7, .2, 1) both; }
.pf-page > :nth-child(2) { animation-delay: .06s; }
.pf-page > :nth-child(3) { animation-delay: .12s; }
.pf-page > :nth-child(4) { animation-delay: .18s; }
.pf-page > :nth-child(5) { animation-delay: .24s; }
.pf-page > :nth-child(6) { animation-delay: .3s; }
.pf-page > :nth-child(n+7) { animation-delay: .36s; }
.pf-kpis > * { animation: pf-rise .55s cubic-bezier(.2, .7, .2, 1) both; }
.pf-kpis > :nth-child(2) { animation-delay: .08s; }
.pf-kpis > :nth-child(3) { animation-delay: .16s; }
.pf-kpis > :nth-child(4) { animation-delay: .24s; }

/* Приветственный баннер */
.pf-hero { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; overflow: hidden; isolation: isolate; padding: 34px 36px; border-radius: 26px; color: #fff; background: linear-gradient(125deg, #0f3a46 0%, #13616f 42%, #1a9aa9 78%, #2bc3a4 100%); box-shadow: 0 24px 60px rgba(16, 70, 82, .28); }
.pf-hero-blob { position: absolute; z-index: -1; border-radius: 50%; filter: blur(42px); opacity: .55; pointer-events: none; }
.pf-hero-blob-1 { top: -90px; right: 8%; width: 320px; height: 320px; background: #4fd0e8; animation: pf-float-1 14s ease-in-out infinite; }
.pf-hero-blob-2 { bottom: -120px; left: 22%; width: 360px; height: 260px; background: #7b70ec; opacity: .35; animation: pf-float-2 18s ease-in-out infinite; }
.pf-hero-grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 34px 34px; mask-image: radial-gradient(ellipse at 80% 20%, #000 0%, transparent 70%); }
.pf-hero-copy { max-width: 720px; }
.pf-hero-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: rgba(255,255,255,.75); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.pf-hero h1 { margin: 0; color: #fff; font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.025em; }
.pf-hero-copy > p:last-child { margin: 12px 0 0; color: rgba(255,255,255,.85); font-size: 16px; line-height: 1.55; }
.pf-hero-copy b { color: #fff; }
.pf-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.pf-hero-button { position: relative; display: inline-flex; align-items: center; gap: 8px; overflow: hidden; min-height: 46px; padding: 0 20px; border-radius: 14px; color: #0f3a46; background: #fff; font-size: 14px; font-weight: 800; box-shadow: 0 10px 24px rgba(0, 0, 0, .18); transition: transform .18s ease, box-shadow .18s ease; }
.pf-hero-button span { font-size: 18px; line-height: 1; }
.pf-hero-button::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(79, 208, 232, .35), transparent); animation: pf-shine 3.8s ease-in-out 1.2s infinite; }
.pf-hero-button:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(0, 0, 0, .24); }
.pf-hero-link { color: rgba(255,255,255,.85); font-size: 14px; font-weight: 800; }
.pf-hero-link:hover { color: #fff; }
.pf-live-dot { width: 8px; height: 8px; border-radius: 50%; color: #6ef0c4; background: currentColor; animation: pf-pulse 2s ease-out infinite; }
:root[data-theme="dark"] .pf-hero { background: linear-gradient(125deg, #0a1f29 0%, #0e3a47 45%, #15606e 80%, #1d8a7a 100%); box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }

/* Карточки оживают при наведении */
.pf-card, .pf-kpi { transition: transform .22s cubic-bezier(.2, .7, .2, 1), box-shadow .22s ease, border-color .22s ease; }
.pf-kpi:hover, .pf-grid-2 > .pf-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); box-shadow: 0 18px 40px rgba(23, 55, 64, .1), 0 0 0 4px color-mix(in srgb, var(--primary) 7%, transparent); }
.pf-kpi { position: relative; overflow: hidden; }
.pf-kpi::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--primary), var(--mint)); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.pf-kpi:hover::before { transform: scaleX(1); }

/* Столбики вырастают по очереди */
.pf-bar { transform-origin: bottom; animation: pf-grow .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.25s + var(--i, 0) * 28ms); }
.pf-bar-value { animation: pf-rise .4s ease both; animation-delay: calc(.6s + var(--i, 0) * 28ms); }
.pf-bar-col::after { content: attr(title); position: absolute; bottom: calc(100% + 6px); left: 50%; z-index: 5; padding: 5px 9px; border-radius: 8px; color: #fff; background: #10343d; font-size: 11.5px; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-50%, 4px); transition: opacity .15s ease, transform .15s ease; }
.pf-bar-col:hover::after { opacity: 1; transform: translate(-50%, 0); }
.pf-bars .pf-bar-col:first-child::after { left: 0; transform: translate(0, 4px); }
.pf-bars .pf-bar-col:last-child::after { right: 0; left: auto; transform: translate(0, 4px); }
.pf-bars .pf-bar-col:first-child:hover::after, .pf-bars .pf-bar-col:last-child:hover::after { transform: none; }

/* Строки таблиц и списков */
.pf-table-row { position: relative; }
.pf-table-row::before, .pf-people li::before { content: ""; position: absolute; top: 10px; bottom: 10px; left: 0; width: 3px; border-radius: 0 3px 3px 0; background: var(--primary); transform: scaleY(0); transition: transform .2s ease; }
.pf-people li { position: relative; transition: background .15s ease; }
.pf-people li:hover { background: color-mix(in srgb, var(--primary) 4%, transparent); }
.pf-table-row:hover::before, .pf-people li:hover::before { transform: scaleY(1); }
.pf-table-row .pf-icon-button { transition: transform .2s ease, color .2s ease, border-color .2s ease, background .2s ease; }
.pf-table-row:hover .pf-icon-button { color: #fff; border-color: var(--primary); background: var(--primary); transform: translateX(3px); }
.pf-list-row .pf-chevron { transition: transform .2s ease, color .2s ease; }
.pf-list-row:hover .pf-chevron { color: var(--primary); transform: translateX(4px); }
.pf-avatar { transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.pf-list-row:hover .pf-avatar, .pf-table-row:hover .pf-avatar { transform: scale(1.08) rotate(-4deg); }
.workspace-status.active { position: relative; padding-left: 20px; }
.workspace-status.active::before { content: ""; position: absolute; top: 50%; left: 9px; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; color: #2aa876; background: currentColor; animation: pf-pulse 2.4s ease-out infinite; }

/* Прогресс-полоски заполняются */
@keyframes pf-fill { from { transform: scaleX(0); } }
.pf-progress > span { transform-origin: left; animation: pf-fill .9s cubic-bezier(.2, .8, .2, 1) .3s both; }

/* Лента событий */
.pf-timeline li { transition: background .15s ease; }
.pf-timeline-flush li:hover { background: color-mix(in srgb, var(--primary) 4%, transparent); }
.pf-timeline li:hover .pf-timeline-dot { transform: scale(1.35); }
.pf-timeline-dot { transition: transform .2s ease; }

/* Вкладки и переключатели — плавные */
.pf-tabs button, .pf-segmented button { transition: color .18s ease, background .18s ease, box-shadow .18s ease; }
.pf-tabs button[aria-selected="true"]::after { animation: pf-grow-x .3s ease both; }
@keyframes pf-grow-x { from { transform: scaleX(.3); opacity: 0; } }
[role="tabpanel"] > * { animation: pf-rise .35s ease both; }

/* Подсказка «всё спокойно» и пустые состояния — мягко пульсируют */
.pf-empty > span { animation: pf-pulse 2.6s ease-out infinite; color: var(--primary); }

@media (max-width: 700px) {
  .pf-hero { padding: 24px 20px; border-radius: 20px; }
  .pf-hero-actions { width: 100%; }
  .pf-hero-button { flex: 1; justify-content: center; }
}

/* Тем, кого укачивает от движения, анимации не показываем */
@media (prefers-reduced-motion: reduce) {
  .pf-page *, .pf-page *::before, .pf-page *::after, .pf-page { animation: none !important; transition: none !important; }
}

/* ═════════════ Чтение урока учеником ═════════════ */
.lesson-kicker { margin: 0 0 8px; color: var(--primary); font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.lesson-toc { margin: 18px 0 6px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--primary) 5%, var(--surface)); }
.lesson-toc strong { display: block; margin-bottom: 8px; color: var(--ink); font-size: 14px; }
.lesson-toc ol { display: grid; gap: 4px; margin: 0; padding-left: 20px; }
.lesson-toc li { font-size: 15px; line-height: 1.45; }
.lesson-toc li.level-3 { margin-left: 16px; list-style-type: circle; font-size: 14px; }
.lesson-toc a { color: var(--ink); text-decoration: none; }
.lesson-toc a:hover { color: var(--primary); text-decoration: underline; }

.longread-body .learner-reading { font-size: 18px; line-height: 1.72; }
.learner-reading > :is(p, ul, ol, blockquote, h2, h3, h4, .editor-callout),
.learner-reading .lesson-section > :is(p, ul, ol, blockquote, h2, h3, h4, .editor-callout) { max-width: 72ch; }
.learner-reading p { margin: 0 0 1em; }
.learner-reading :is(b, strong) { color: var(--ink); font-weight: 750; }
.learner-reading h2 { margin: 0 0 .6em; color: var(--ink); font-size: 26px; line-height: 1.25; letter-spacing: -.015em; scroll-margin-top: 24px; }
.learner-reading h3 { margin: 1.4em 0 .5em; color: var(--ink); font-size: 21px; line-height: 1.3; scroll-margin-top: 24px; }
.learner-reading > h2:not(:first-child) { margin-top: 1.8em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.learner-reading li { margin: .35em 0; }
.learner-reading li::marker { color: var(--primary); }

/* Разделы урока — отдельные карточки */
.learner-reading .lesson-section { position: relative; margin: 0 0 22px; padding: 26px 30px 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 1px 2px rgba(23, 55, 64, .04), 0 12px 30px rgba(23, 55, 64, .05); }
.learner-reading .lesson-section::before { content: ""; position: absolute; top: 26px; left: 0; width: 4px; height: 30px; border-radius: 0 4px 4px 0; background: linear-gradient(180deg, var(--primary), var(--mint)); }
.learner-reading .lesson-intro::before { content: none; }
.learner-reading .lesson-intro { background: color-mix(in srgb, var(--primary) 4%, var(--surface)); }
:root[data-theme="dark"] .learner-reading .lesson-section { background: color-mix(in srgb, #fff 3%, var(--surface)); box-shadow: none; }

/* Картинки: по центру, без искажений, с увеличением по клику */
.learner-reading .editor-image-frame { float: none !important; width: fit-content !important; max-width: min(100%, 880px); height: auto !important; margin: 26px auto !important; border: 1px solid var(--line); border-radius: 14px; background: var(--subtle); box-shadow: 0 10px 28px rgba(23, 55, 64, .08); }
.learner-reading .editor-image-frame img.editor-image, .learner-reading img { width: auto; max-width: 100%; height: auto !important; max-height: 70vh; margin-inline: auto; object-fit: contain; cursor: zoom-in; transition: transform .25s ease; }
.learner-reading > img, .learner-reading p > img:only-child { display: block; margin: 26px auto; border: 1px solid var(--line); }
.learner-reading .editor-image-frame:hover img { transform: scale(1.015); }
.lesson-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; max-width: 100%; margin: 26px 0; }
.lesson-gallery > * { margin: 0 !important; width: auto !important; max-width: none !important; }
.lesson-gallery .editor-image-frame { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; overflow: hidden; }
.lesson-gallery img { width: 100% !important; height: 100% !important; max-height: none; object-fit: contain; }
.learner-reading .editor-video-frame { width: 100% !important; max-width: 880px; height: auto !important; aspect-ratio: 16 / 9; margin: 26px auto !important; }
.learner-reading table { margin: 20px 0; font-size: 16px; }

@media (max-width: 700px) {
  .longread-body .learner-reading { font-size: 17px; }
  .learner-reading .lesson-section { padding: 20px 18px 8px; border-radius: 16px; }
  .learner-reading h2 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .learner-reading img { transition: none; } }

/* Доводка чтения: текст на всю ширину, прогресс — компактный значок в углу */
.longread { position: relative; }
.longread .lesson-hero { display: block; }
.longread .lesson-progress-ring { position: absolute; top: 22px; right: 26px; z-index: 2; display: flex; align-items: center; gap: 10px; width: auto; max-width: 230px; margin: 0; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: 0 6px 18px rgba(23, 55, 64, .08); }
.longread .lesson-progress-ring svg { flex: 0 0 46px; width: 46px; height: 46px; }
.longread .lesson-progress-ring text { font-size: 22px; font-weight: 800; }
.longread .lesson-progress-ring p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.3; text-align: left; }
.longread .lesson-hero-text > header { padding-right: 250px; }
.lesson-gallery { align-items: start; }
.lesson-gallery .editor-image-frame { display: block; aspect-ratio: auto; }
.lesson-gallery img { width: 100% !important; height: auto !important; max-height: 60vh; }
@media (max-width: 900px) {
  .longread .lesson-progress-ring { position: static; margin: 0 0 14px; align-self: flex-start; }
  .longread .lesson-hero-text > header { padding-right: 0; }
}

/* Просмотр картинки с приближением */
.attachment-lightbox-backdrop { padding: 0; backdrop-filter: blur(6px); }
.lightbox-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 64px 40px 96px; overflow: hidden; }
.attachment-lightbox-image { touch-action: none; user-select: none; cursor: zoom-in; transition: transform .18s ease; transform-origin: center; }
.attachment-lightbox-image.zoomed { cursor: grab; }
.attachment-lightbox-image.dragging { cursor: grabbing; transition: none; }
.attachment-lightbox-close { display: grid; place-items: center; z-index: 2; width: 44px; height: 44px; padding: 0; }
.attachment-lightbox-close svg, .lightbox-toolbar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lightbox-toolbar { position: absolute; z-index: 2; bottom: 24px; left: 50%; display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px; background: rgba(15, 26, 36, .78); box-shadow: 0 14px 40px rgba(0, 0, 0, .35); transform: translateX(-50%); }
.lightbox-toolbar button, .lightbox-toolbar a { display: grid; min-width: 44px; height: 44px; padding: 0 10px; place-items: center; border: 0; border-radius: 999px; color: #fff; background: transparent; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background-color .15s ease; }
.lightbox-toolbar button:hover:not(:disabled), .lightbox-toolbar a:hover { background: rgba(255, 255, 255, .14); }
.lightbox-toolbar button:disabled { opacity: .35; cursor: default; }
.lightbox-toolbar > span { width: 1px; height: 22px; margin: 0 4px; background: rgba(255, 255, 255, .2); }
.lightbox-percent { min-width: 64px !important; font-variant-numeric: tabular-nums; }
.lightbox-hint { position: absolute; z-index: 2; bottom: 86px; left: 50%; margin: 0; color: rgba(255, 255, 255, .7); font-size: 13px; transform: translateX(-50%); white-space: nowrap; pointer-events: none; }
@media (max-width: 640px) { .lightbox-stage { padding: 56px 8px 96px; } .lightbox-hint { display: none; } }

/* Вложения: крупнее миниатюры, значок лупы, зона для перетаскивания и вставки */
.attachment-thumb { position: relative; transition: transform .16s ease, box-shadow .16s ease; }
.attachment-thumb img { width: 128px; height: 128px; }
.attachment-thumb::after { content: ""; position: absolute; inset: 0; background: rgba(11, 22, 33, .38) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m20 20-4.3-4.3M11 8.5v5M8.5 11h5'/%3E%3C/svg%3E") no-repeat center / 30px; opacity: 0; transition: opacity .16s ease; }
.attachment-thumb:hover, .attachment-thumb:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11, 22, 33, .16); }
.attachment-thumb:hover::after, .attachment-thumb:focus-visible::after { opacity: 1; }
.attachment-remove { width: 28px; height: 28px; font-size: 18px; }
.media-drop-zone { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; padding: 12px; margin: -12px; border: 2px dashed transparent; border-radius: 16px; transition: border-color .16s ease, background-color .16s ease; }
.media-drop-zone.over { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, transparent); }
.media-add-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.assignment-task-media-add { position: relative; gap: 8px; min-height: 44px; padding: 0 16px; font-size: 14px; }
.assignment-task-media-add svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.media-add-hint { color: var(--muted); font-size: 13px; }
.media-add-hint kbd { padding: 2px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--field); font: inherit; font-size: 12px; font-weight: 700; }

/* Ссылка «назад»: круглая кнопка со стрелкой и подпись. Одинаковая во всех разделах. */
.back-link { display: inline-flex; align-items: center; gap: 10px; width: fit-content; margin-bottom: 18px; color: var(--ink); font-size: 15px; font-weight: 700; text-decoration: none; transition: color .16s ease; }
.back-link-icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: var(--surface, var(--field)); box-shadow: 0 4px 12px rgba(16, 42, 52, .06); transition: transform .18s ease, border-color .16s ease, color .16s ease, background-color .16s ease; }
.back-link-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.back-link:hover, .page-header-back:hover { color: var(--primary); }
.back-link:hover .back-link-icon, .page-header-back:hover .back-link-icon { border-color: var(--primary); color: #fff; background: var(--primary); transform: translateX(-3px); }
.back-link:focus-visible, .page-header-back:focus-visible { outline: none; }
.back-link:focus-visible .back-link-icon, .page-header-back:focus-visible .back-link-icon { box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 30%, transparent); }
.back-link.course-experience-back { gap: 14px; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.back-link.course-experience-back .back-link-icon, .page-header-back .back-link-icon { width: 44px; height: 44px; }
.back-link.course-experience-back .back-link-icon svg, .page-header-back .back-link-icon svg { width: 22px; height: 22px; }
.page-header-back { gap: 14px; }

/* Раздел «Пользователи»: панель не выталкивает кнопки, таблица не обрезает имена и статусы */
.people-controls { flex-wrap: wrap; }
.people-actions { flex: 1 1 520px; justify-content: flex-end; min-width: 0; }
.people-actions .button { white-space: nowrap; flex: 0 0 auto; }
.people-search-field { flex: 1 1 200px; max-width: 320px; min-width: 160px; }
.people-status-filter { flex: 0 0 auto; width: 176px; min-width: 0; background-position: right 14px center; }
.table-wrap .people-table { min-width: 1180px; }
.table-wrap .people-table th, .table-wrap .people-table td { padding: 14px 12px; }
.table-wrap .people-table th:nth-child(1), .table-wrap .people-table td:nth-child(1) { width: 250px; padding-left: 22px; }
.table-wrap .people-table th:nth-child(2), .table-wrap .people-table td:nth-child(2) { width: 150px; }
.table-wrap .people-table th:nth-child(3), .table-wrap .people-table td:nth-child(3) { width: 220px; }
.table-wrap .people-table th:nth-child(4), .table-wrap .people-table td:nth-child(4) { width: 150px; }
.table-wrap .people-table th:nth-child(5), .table-wrap .people-table td:nth-child(5),
.table-wrap .people-table th:nth-child(6), .table-wrap .people-table td:nth-child(6) { width: 140px; }
.table-wrap .people-table th:nth-child(7), .table-wrap .people-table td:nth-child(7) { width: 160px; }
.table-wrap .people-table th:nth-child(8), .table-wrap .people-table td:nth-child(8) { width: 56px; padding: 14px 8px; }
.people-table th { font-size: 11.5px; letter-spacing: .07em; }
.people-table .user-cell strong { font-size: 14px; }
.people-table .user-cell small { margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.people-table .table-avatar { flex: 0 0 auto; }
.people-table .inline-course-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.people-table .inline-course-select { width: 196px; min-height: 38px; text-overflow: ellipsis; }
.people-table .inline-date-trigger, .people-table .inline-date-input { width: 116px; text-align: center; }
.people-table .status-select { width: 140px; min-height: 38px; padding: 0 30px 0 14px; text-align: center; text-align-last: center; background-position: right 10px center; }
.people-table .status-until { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.people-table .learning-stage { padding: 6px 12px; }
.people-table .learning-stage-link { gap: 6px; }
.table-wrap .people-table th:nth-child(4), .table-wrap .people-table td:nth-child(4) { width: 180px; }
.table-wrap .people-table th:nth-child(3), .table-wrap .people-table td:nth-child(3) { width: 210px; }
.people-table .learning-stage-link { max-width: 100%; }
.people-table .learning-stage-link .learning-stage { overflow: hidden; text-overflow: ellipsis; }
.stage-arrow { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .16s ease; }
.learning-stage-link:hover .stage-arrow { transform: translateX(3px); }
.table-wrap .people-table th:nth-child(1), .table-wrap .people-table td:nth-child(1) { width: 240px; }
.table-wrap .people-table th:nth-child(2), .table-wrap .people-table td:nth-child(2) { width: 140px; }
.table-wrap .people-table th:nth-child(3), .table-wrap .people-table td:nth-child(3) { width: 200px; }
.table-wrap .people-table th:nth-child(4), .table-wrap .people-table td:nth-child(4) { width: 160px; }
.table-wrap .people-table th:nth-child(5), .table-wrap .people-table td:nth-child(5),
.table-wrap .people-table th:nth-child(6), .table-wrap .people-table td:nth-child(6) { width: 130px; }
.table-wrap .people-table th:nth-child(7), .table-wrap .people-table td:nth-child(7) { width: 150px; }
.table-wrap .people-table th:nth-child(8), .table-wrap .people-table td:nth-child(8) { width: 48px; }
.table-wrap .people-table { min-width: 1150px; }
.people-table .inline-course-select { width: 184px; }
.people-table .status-select { width: 132px; }

/* Статусы пользователей: в тёмной теме — те же оттенки, что и в светлой, на полупрозрачной подложке */
:root[data-theme="dark"] .status-select.active { color: #5fdcb0; background-color: rgba(95, 220, 176, .14); }
:root[data-theme="dark"] .status-select.inactive { color: #f59aab; background-color: rgba(245, 154, 171, .14); }
:root[data-theme="dark"] .status-select.frozen { color: #8cc4f5; background-color: rgba(140, 196, 245, .14); }
:root[data-theme="dark"] .status-select.renewal { color: #cfd5d8; background-color: rgba(207, 213, 216, .12); }
:root[data-theme="dark"] .status-select.completed { color: #f5c06e; background-color: rgba(245, 192, 110, .14); }
:root[data-theme="dark"] .learning-stage.done { color: #5fdcb0; background: rgba(95, 220, 176, .14); }
:root[data-theme="dark"] .people-table .soft-pill { color: #7fe3dc; background: rgba(127, 227, 220, .12); }
.status-select option { color: var(--ink); background: var(--field, #fff); }
.table-wrap .people-table th:nth-child(1), .table-wrap .people-table td:nth-child(1) { width: 230px; }
.table-wrap .people-table th:nth-child(5), .table-wrap .people-table td:nth-child(5),
.table-wrap .people-table th:nth-child(6), .table-wrap .people-table td:nth-child(6) { width: 144px; }
.table-wrap .people-table td:nth-child(5), .table-wrap .people-table td:nth-child(6), .table-wrap .people-table td:nth-child(7) { text-overflow: clip; }
.people-tabs { flex: 0 0 auto; }
@media (max-width: 1400px) {
  .table-wrap .people-table { min-width: 1080px; }
  .table-wrap .people-table th, .table-wrap .people-table td { padding-left: 8px; padding-right: 8px; }
  .table-wrap .people-table th:nth-child(1), .table-wrap .people-table td:nth-child(1) { width: 200px; padding-left: 16px; }
  .table-wrap .people-table th:nth-child(2), .table-wrap .people-table td:nth-child(2) { width: 124px; }
  .table-wrap .people-table th:nth-child(3), .table-wrap .people-table td:nth-child(3) { width: 180px; }
  .table-wrap .people-table th:nth-child(4), .table-wrap .people-table td:nth-child(4) { width: 140px; }
  .table-wrap .people-table th:nth-child(5), .table-wrap .people-table td:nth-child(5),
  .table-wrap .people-table th:nth-child(6), .table-wrap .people-table td:nth-child(6) { width: 124px; }
  .table-wrap .people-table th:nth-child(7), .table-wrap .people-table td:nth-child(7) { width: 140px; }
  .table-wrap .people-table th:nth-child(8), .table-wrap .people-table td:nth-child(8) { width: 44px; }
  .people-table .inline-course-select { width: 166px; }
  .people-table .inline-date-trigger, .people-table .inline-date-input { width: 108px; }
  .people-table .status-select { width: 124px; }
}
.people-actions { flex: 1 1 740px; }

/* Содержание курса: понятные значки состояния урока и раскрывающиеся этапы */
.sidebar-group summary { min-height: 32px; }
.sidebar-group summary::before { content: ""; width: 18px; height: 18px; margin-right: 0; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4.5 13.5 10 8 15.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4.5 13.5 10 8 15.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.lesson-list button > span, .lesson-list a > span, .lesson-list li.locked > span > span { flex: 0 0 32px; height: 32px; border-radius: 10px; color: var(--muted); font-size: 13px; font-weight: 800; transition: background-color .16s ease, color .16s ease; }
.lesson-list button > span.done { color: #fff; background: var(--primary); }
.lesson-list li.current button > span:not(.done) { color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
.lesson-state-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lesson-list li.locked > span > span svg { width: 16px; height: 16px; }
.lesson-list strong { font-size: 14px; }
.button-arrow { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .16s ease; }
.button:has(.button-arrow) { gap: 8px; }
.button:hover:not(:disabled) .button-arrow:first-child { transform: translateX(-3px); }
.button:hover:not(:disabled) .button-arrow:last-child:not(:first-child) { transform: translateX(3px); }

/* ───── Кабинеты клиента и ученика на телефоне ─────
   Боковое меню становится двумя панелями: сверху — логотип, тема и профиль, снизу —
   разделы с подписями, как в мобильных приложениях. Содержимое занимает всю ширину. */
@media (max-width: 760px) {
  .app-frame.admin-app-frame, .app-frame.learner-app-frame { display: block; min-height: 100dvh; }
  .admin-app-frame .sidebar, .learner-app-frame .sidebar { position: sticky; top: 0; z-index: 60; height: auto; flex-direction: row; align-items: center; gap: 8px; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); overflow: visible; box-shadow: 0 6px 20px rgba(4, 22, 26, .18); }
  .admin-app-frame .sidebar::after, .learner-app-frame .sidebar::after,
  .admin-app-frame .profile-copy, .learner-app-frame .profile-copy { display: none; }
  .admin-app-frame .brand, .learner-app-frame .brand { margin: 0; }
  .admin-app-frame .brand-mark, .learner-app-frame .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .admin-app-frame .brand-mark-icon, .learner-app-frame .brand-mark-icon { width: 26px; height: 25px; }
  .admin-app-frame .brand-copy, .learner-app-frame .brand-copy { display: none; }
  .admin-app-frame .sidebar-context, .learner-app-frame .sidebar-context { display: flex; flex: 1; min-width: 0; margin: 0; overflow: hidden; color: #c8dcde; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
  .admin-app-frame .sidebar-bottom, .learner-app-frame .sidebar-bottom { flex-direction: row; gap: 6px; margin: 0 0 0 auto; }
  .admin-app-frame .sidebar-profile, .learner-app-frame .sidebar-profile { margin: 0; padding: 0; border: 0; }
  .admin-app-frame .profile-avatar, .learner-app-frame .profile-avatar { width: 38px; height: 38px; flex-basis: 38px; }
  .admin-app-frame .theme-switcher-trigger, .learner-app-frame .theme-switcher-trigger { width: 40px; height: 40px; }
  .admin-app-frame .profile-popover, .learner-app-frame .profile-popover,
  .admin-app-frame .theme-switcher-popover, .learner-app-frame .theme-switcher-popover { top: calc(100% + 10px); right: 0; bottom: auto; left: auto; }

  /* Нижняя панель разделов */
  .admin-app-frame .sidebar-nav, .learner-app-frame .sidebar-nav { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; display: flex; gap: 0; margin: 0; padding: 6px 6px max(6px, env(safe-area-inset-bottom)); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; background: var(--sidebar-surface); box-shadow: 0 -8px 24px rgba(4, 22, 26, .22); }
  .admin-app-frame .sidebar-nav::-webkit-scrollbar, .learner-app-frame .sidebar-nav::-webkit-scrollbar { display: none; }
  .admin-app-frame .nav-link, .learner-app-frame .nav-link { flex: 1 0 68px; flex-direction: column; justify-content: center; gap: 3px; min-height: 56px; padding: 4px 2px; border: 0; border-radius: 14px; background: none; box-shadow: none; }
  .admin-app-frame .nav-link:hover, .learner-app-frame .nav-link:hover { transform: none; }
  .admin-app-frame .nav-marker, .learner-app-frame .nav-marker { width: 30px; height: 30px; border: 0; background: none; }
  .admin-app-frame .nav-icon, .learner-app-frame .nav-icon { width: 22px; height: 22px; }
  .admin-app-frame .nav-link > .nav-label, .learner-app-frame .nav-link > .nav-label { display: block; max-width: 72px; overflow: hidden; color: #9fc5c8; font-size: 10.5px; font-weight: 700; line-height: 1.15; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
  .admin-app-frame .nav-arrow, .learner-app-frame .nav-arrow { display: none; }
  .admin-app-frame .nav-link.active, .learner-app-frame .nav-link.active { background: rgba(115, 213, 202, .12); }
  .admin-app-frame .nav-link.active .nav-marker, .learner-app-frame .nav-link.active .nav-marker,
  .admin-app-frame .nav-link.active > .nav-label, .learner-app-frame .nav-link.active > .nav-label { color: #73d5ca; }

  .admin-app-frame .workspace, .learner-app-frame .workspace { padding: 20px 16px calc(96px + env(safe-area-inset-bottom)); }
  .admin-app-frame .workspace-topbar, .learner-app-frame .workspace-topbar { display: none; }

  /* Заголовки и общие блоки */
  .page-header h1, .page-header.split h1, .page-header.greet-header h1 { font-size: 30px; line-height: 1.1; }
  .page-header.split { flex-direction: column; align-items: stretch; gap: 14px; }
  .page-header.split .header-actions, .header-actions { flex-wrap: wrap; }
  .page-header.editor-top-row { flex-wrap: wrap; }
  .page-header-back { font-size: 26px; }
  .back-link.course-experience-back { font-size: 24px; }
  .surface { border-radius: 20px; }
  .button { min-height: 46px; padding: 0 18px; }
  .empty-state { padding: 28px 18px; }

  /* Пользователи */
  .people-controls { padding: 10px; gap: 10px; }
  .people-tabs { overflow-x: auto; scrollbar-width: none; }
  .people-tabs button { flex: 0 0 auto; padding: 0 12px; }
  .people-actions { flex: 1 1 auto; flex-wrap: wrap; justify-content: stretch; }
  .people-search-field { flex: 1 1 100%; max-width: none; }
  .people-status-filter { flex: 1 1 auto; width: auto; }
  .people-actions .button { flex: 1 1 auto; }

  /* Обучение ученика */
  .learning-layout, .task-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .lesson-sidebar { padding: 18px; border-radius: 20px; }
  .longread, .task-editor { padding: 22px 18px; border-radius: 20px; }
  .lesson-hero { padding-right: 0; }
  .task-switcher-nav { flex-wrap: wrap; gap: 10px; }
  .task-switcher-nav .button { flex: 1 1 auto; }
  .media-add-hint { display: none; }
  .journey small { font-size: 10.5px; }
  .streak-days span { width: 28px; height: 28px; }
  .course-hero { padding: 22px 18px; }

  /* Отчёты, настройки, сертификаты, прогресс ученика */
  .report-layout, .settings-builder, .certificate-layout, .learner-certificate-layout, .admin-workspace-layout, .ops-layout { grid-template-columns: minmax(0, 1fr); }
  .report-header-actions { flex-wrap: wrap; }
  .report-table-wrap, .report-preview { overflow-x: auto; }
  .certificate-summary { grid-template-columns: minmax(0, 1fr); }
  .section-function-sidebar nav { grid-template-columns: minmax(0, 1fr); }
  .progress-override-table { overflow-x: auto; }
  .progress-override-table table { min-width: 680px; }
  .panel-heading { flex-wrap: wrap; gap: 12px; }
  .panel-heading > .button { width: 100%; }
  .people-controls { display: grid; }
  .people-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .people-actions > * { min-width: 0; width: 100%; max-width: none; }
  .people-actions .people-search-field, .people-actions .button.primary { grid-column: 1 / -1; }
  .people-actions .button { padding-inline: 10px; }
  .admin-app-frame .nav-link > .nav-label, .learner-app-frame .nav-link > .nav-label { max-width: 100%; }
}

/* Переключатель «Раздел включён»: тумблер и подпись */
.master-switch-label { font-weight: inherit; white-space: nowrap; }
.settings-group-list .stage-arrow { color: var(--primary); opacity: .55; }
.settings-group-list button[aria-pressed="true"] .stage-arrow, .settings-group-list button:hover .stage-arrow { opacity: 1; transform: translateX(3px); }

/* Главная администратора: значки быстрых действий одного размера и стиля */
.quick-icon { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 13px; color: var(--primary); background: var(--mint-soft); transition: transform .16s ease, background-color .16s ease, color .16s ease; }
.quick-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stat-row:hover .quick-icon { color: #fff; background: var(--primary); transform: scale(1.05); }

/* Маршрут этапов: подписи не слипаются на узком экране и при 10+ этапах */
.stage-step { min-width: 0; padding: 0 2px; }
.stage-step small { display: block; max-width: 100%; overflow: hidden; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) {
  .journey { overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .stage-step { flex: 0 0 76px; }
}

/* Подсказки бокового меню — с небольшой задержкой и без «залипания» над содержимым */
.admin-app-frame .nav-link::after, .learner-app-frame .nav-link::after { pointer-events: none; transition-delay: 0s; }
.admin-app-frame .nav-link:hover::after, .learner-app-frame .nav-link:hover::after { transition-delay: .25s; }

/* Текст задания и ответов: длинные ссылки переносятся, ссылки кликабельны */
.rich-text { overflow-wrap: anywhere; word-break: break-word; }
.rich-text a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.task-prompt { font-size: 18px; font-weight: 650; }
.review-history-comment { display: block; margin: 4px 0 8px 12px; padding-left: 10px; border-left: 2px solid var(--line); color: var(--muted); font-size: 13px; font-style: normal; quotes: none; }
.learner-reading .lesson-subheading { margin-top: 1.6em; scroll-margin-top: 24px; font-size: 1.15em; }
