/* =========================================================================
   Приложение: вход, личный кабинет, админка
   (страницы, не подключающие landing.css)
   ========================================================================= */

/* --- общие из шапки/бренда (нужны без landing.css) --- */
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 22px; color: #fff; background: linear-gradient(150deg, var(--orange-400), var(--orange-600)); box-shadow: var(--shadow-accent); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--font-ui); font-weight: 800; font-size: 16px; }
.brand-text small { font-size: 11.5px; color: var(--text-muted); }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--panel-border); background: var(--surface-2); color: var(--text); font-size: 17px; display: grid; place-items: center; transition: border-color .2s, transform .2s; }
.icon-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--panel-border); border-radius: 12px; background: var(--surface-2); flex-direction: column; gap: 4px; align-items: center; justify-content: center; }
.burger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; }
.course-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: var(--c, var(--orange)); background: color-mix(in srgb, var(--c, var(--orange)) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c, var(--orange)) 40%, transparent); }
.course-ico svg { width: 26px; height: 26px; }
.card.pad { padding: 24px; }
.block-title { font-family: var(--font-display); font-size: 24px; margin-bottom: 18px; }
.page-head { margin-bottom: 26px; }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.back-link { display: inline-block; color: var(--text-muted); font-weight: 600; font-size: 14px; margin-bottom: 16px; transition: color .2s; }
.back-link:hover { color: var(--accent); }
.rbadge { font-family: var(--font-ui); font-weight: 700; font-size: 10.5px; letter-spacing: .03em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--text-muted); }
.rbadge.teacher { background: var(--accent-soft); color: var(--accent); }

/* ========================== AUTH ========================== */
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-wrap { width: 100%; max-width: 1020px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--panel-border); }
.auth-aside { background: radial-gradient(120% 120% at 20% 10%, var(--navy-650), var(--navy-900)); padding: 38px; display: flex; flex-direction: column; gap: 28px; position: relative; }
[data-theme="light"] .auth-aside { background: linear-gradient(165deg, #ffe7d6 0%, #f7efe6 55%, #ffffff 100%); }
[data-theme="light"] .auth-aside,
[data-theme="light"] .auth-aside .brand-text small,
[data-theme="light"] .auth-aside .muted,
[data-theme="light"] .auth-aside .lead,
[data-theme="light"] .auth-aside-body .lead { color: var(--text-soft); }
[data-theme="light"] .auth-aside-body h1,
[data-theme="light"] .auth-aside .brand-text strong { color: var(--text); }
[data-theme="light"] .auth-perks li { color: var(--text-soft); }
[data-theme="light"] .auth-perks span { background: var(--surface); border: 1px solid var(--panel-border); }
[data-theme="light"] .auth-back { color: var(--text-muted); }
[data-theme="light"] .auth-back:hover { color: var(--accent); }
.auth-aside, .auth-aside .brand-text small, .auth-aside .muted, .auth-aside .lead { color: #e8f0fa; }
.auth-aside-body h1 { font-size: 34px; color: #fff; margin-bottom: 16px; }
.auth-aside-body .lead { color: #c6d6e8; }
.auth-perks { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 13px; }
.auth-perks li { display: flex; align-items: center; gap: 11px; color: #dbe6f2; font-weight: 500; }
.auth-perks span { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--accent); }
.auth-perks span svg { width: 17px; height: 17px; }
.auth-back { color: #aac1da; font-size: 14px; font-weight: 600; margin-top: auto; }
.auth-back:hover { color: #fff; }

/* Парящие фирменные буквы на панели входа (декор) */
.auth-aside { overflow: hidden; }
.auth-letters span { position: absolute; font-family: var(--font-display); font-weight: 800; color: var(--accent); opacity: .10; pointer-events: none; line-height: 1; animation: brandFloat 9s ease-in-out infinite alternate; }
.auth-letters span:first-child { font-size: 150px; right: 6%; bottom: 4%; }
.auth-letters .l2 { font-size: 82px; left: 7%; bottom: 24%; color: var(--gold); opacity: .12; animation-delay: -3s; animation-duration: 11s; }
.auth-letters .l3 { font-size: 62px; right: 34%; bottom: 32%; color: var(--graphite); opacity: .07; animation-delay: -6s; }
@keyframes brandFloat { to { transform: translateY(-16px) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .auth-letters span, .dash-letters span { animation: none; } }

.auth-main { background: var(--surface); padding: 38px; display: flex; align-items: center; }
.auth-card { border: 0; box-shadow: none; background: transparent; width: 100%; }
.auth-tabs { display: inline-flex; background: var(--surface-2); border: 1px solid var(--panel-border); border-radius: var(--r-pill); padding: 4px; margin-bottom: 22px; }
.auth-tab { border: 0; background: transparent; color: var(--text-muted); font-family: var(--font-ui); font-weight: 700; font-size: 14px; padding: 9px 20px; border-radius: var(--r-pill); }
.auth-tab.is-active { background: var(--accent); color: #fff; }
.auth-title { font-family: var(--font-display); font-size: 27px; margin-bottom: 6px; }
.auth-hint { font-size: 14px; margin-bottom: 22px; }
.role-pick { margin: 6px 0 16px; }
.role-label { font-family: var(--font-ui); font-weight: 600; font-size: 13px; color: var(--text-soft); display: block; margin-bottom: 8px; }
.role-options { display: flex; gap: 10px; }
.role-opt { flex: 1; position: relative; }
.role-opt input { position: absolute; opacity: 0; }
.role-opt span { display: block; text-align: center; padding: 12px; border: 1px solid var(--panel-border); border-radius: var(--r-sm); font-size: 14px; font-weight: 600; color: var(--text-soft); transition: all .2s; cursor: pointer; }
.role-opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.consent-group { display: flex; flex-direction: column; gap: 11px; margin: 4px 0 2px; }
.consent-group .checkrow { margin: 0; }
.auth-or { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--text-faint); font-size: 13px; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }
.auth-demo { display: flex; gap: 10px; }
.auth-demo .btn { flex: 1; }
.demo-note { margin-top: 22px; font-size: 12.5px; color: var(--text-faint); background: var(--surface-2); border: 1px dashed var(--panel-border); border-radius: var(--r-sm); padding: 11px 13px; }

/* Госуслуги-кнопка */
.btn-gos { background: #0d4cd3; color: #fff; gap: 10px; }
.btn-gos:hover { background: #0b40b4; }
.gos-logo { width: 24px; height: 24px; border-radius: 6px; background: #fff; color: #0d4cd3; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 15px; }
.link-btn { border: 0; background: transparent; color: var(--accent); font: inherit; font-weight: 600; text-decoration: underline; padding: 0; cursor: pointer; }
.code-sent { font-size: 14px; margin-bottom: 16px; }
.code-input { letter-spacing: .5em; text-align: center; font-size: 22px; font-weight: 700; padding-left: .5em; }
.demo-code { font-size: 13px; color: var(--text-soft); background: var(--accent-soft); border: 1px dashed var(--accent-ring); border-radius: var(--r-sm); padding: 9px 12px; text-align: center; }
.demo-code b { color: var(--accent); letter-spacing: .12em; }
@media (max-width: 820px) {
  .auth-wrap { grid-template-columns: 1fr; max-width: 460px; }
  .auth-aside { display: none; }
  .auth-main { padding: 30px 24px; }
}

/* ========================== APP SHELL ========================== */
.app-body { min-height: 100vh; }
.app-shell { display: grid; grid-template-columns: 268px 1fr; min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; height: 100vh; height: 100dvh; align-self: start;
  display: flex; flex-direction: column; gap: 12px; padding: 16px 14px;
  background: var(--bg-2); border-right: 1px solid var(--hairline); z-index: 60;
  overflow-x: hidden; scrollbar-width: thin;
}
.sidebar-brand { padding: 2px 6px 4px; flex: none; }
.side-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.side-link { display: flex; align-items: center; gap: 11px; padding: 7px 13px; border-radius: var(--r-sm); color: var(--text-soft); font-family: var(--font-ui); font-weight: 600; font-size: 14.5px; transition: background .2s, color .2s; }
button.side-link { width: 100%; text-align: left; border: 0; background: transparent; font: inherit; cursor: pointer; }
.side-link .si { display: grid; place-items: center; width: 22px; height: 22px; flex: none; }
.side-link .si svg { width: 19px; height: 19px; }
.side-link:hover { background: var(--surface-2); color: var(--text); }
.side-link.active { background: var(--accent-soft); color: var(--accent); }
.side-cta { margin: 0; width: 100%; }
/* «Написать Арине» — лёгкое винное поле под кнопкой (без второго контура) */
.side-cta-wrap { flex: none; margin: 0; padding: 7px; border-radius: var(--r); background: var(--accent-soft); border: 0; }
.side-foot { flex: none; display: flex; flex-direction: column; gap: 10px; padding-top: 10px; border-top: 1px solid var(--hairline); }
/* кнопка выхода: иконка + подпись */
.side-logout { flex: 1; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.side-logout svg { width: 17px; height: 17px; flex: none; }
/* стильный стикер в заголовке экрана входа */
.hero-sticker { display: inline-flex; vertical-align: -0.12em; color: var(--gold); }
.hero-sticker svg { width: .92em; height: .92em; }
.user-card { display: flex; align-items: center; gap: 11px; padding: 8px; border-radius: var(--r-sm); background: var(--surface-2); }
.user-meta { overflow: hidden; }
.user-meta b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta small { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.side-actions { display: flex; gap: 8px; }

.sidebar-scrim { display: none; }

/* Журнал занятий */
.journal-table td { vertical-align: top; }
.stars-line { letter-spacing: 2px; white-space: nowrap; }
.stars-line .star { color: var(--surface-3); font-size: 15px; }
.stars-line .star.on { color: var(--gold); }
.journal-row > td { background: var(--surface-2); }
.rbadge.parent { background: rgba(194, 147, 63, .16); color: #a07728; border: 1px solid rgba(194, 147, 63, .4); }
.parent-code { font-family: var(--font-ui); font-weight: 800; font-size: 20px; letter-spacing: .14em; color: var(--accent); background: var(--accent-soft); border: 1px dashed var(--accent-ring); border-radius: 10px; padding: 8px 16px; }

/* Вложения к ДЗ */
.hw-files { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.hw-files > small { flex-basis: 100%; }
.hw-file { display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 13px; font-weight: 600; color: var(--text-soft); background: var(--surface-2); border: 1px solid var(--panel-border); border-radius: var(--r-pill); padding: 7px 13px; cursor: pointer; transition: color .2s, border-color .2s; max-width: 100%; }
.hw-file:hover { color: var(--accent); border-color: var(--accent-ring); }
.hw-file svg { width: 14px; height: 14px; flex: none; }
.hw-attach { margin-top: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hw-attach-btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-ui); font-weight: 600; font-size: 13.5px; color: var(--text-soft); background: var(--surface-2); border: 1px dashed var(--panel-border); border-radius: var(--r-pill); padding: 9px 15px; cursor: pointer; transition: color .2s, border-color .2s; }
.hw-attach-btn:hover { color: var(--accent); border-color: var(--accent-ring); }
.hw-attach-btn svg { width: 15px; height: 15px; }
.hw-attach-list { font-size: 12.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 22px; border-bottom: 1px solid var(--hairline); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); }
.topbar-title { font-family: var(--font-ui); font-weight: 700; font-size: 16px; }
.topbar-actions { margin-left: auto; }
.view { padding: clamp(20px, 3vw, 38px); max-width: 1060px; width: 100%; margin-inline: auto; outline: none; }

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: 280px; transform: translateX(-105%); transition: transform .3s var(--ease); box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .sidebar-scrim.show { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 55; }
  .burger { display: flex; }
  body.nav-lock { overflow: hidden; }
}

/* ========================== DASHBOARD ========================== */
.dash-hero { display: flex; align-items: center; gap: 28px; padding: 30px; margin-bottom: 22px; background: radial-gradient(120% 140% at 90% 10%, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface)); position: relative; overflow: hidden; }
.dash-hero-copy { flex: 1; position: relative; z-index: 1; }
.dash-ring { position: relative; z-index: 1; }
.dash-letters span { position: absolute; font-family: var(--font-display); font-weight: 800; color: var(--accent); opacity: .07; pointer-events: none; line-height: 1; animation: brandFloat 10s ease-in-out infinite alternate; }
.dash-letters span:first-child { font-size: 120px; right: 24%; top: -18px; }
.dash-letters .l2 { font-size: 70px; right: 4%; bottom: -12px; color: var(--gold); opacity: .1; animation-delay: -4s; }
.dash-hero-copy h1 { font-size: clamp(26px, 4vw, 38px); margin: 10px 0 8px; }
.dash-ring { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dash-ring .ring { --sz: 108px; }
.dash-ring .ring > span { font-size: 22px; }
@media (max-width: 620px) { .dash-hero { flex-direction: column-reverse; align-items: flex-start; } }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.stat-grid.mini { grid-template-columns: repeat(3, 1fr); margin-bottom: 0; }
.stat { padding: 22px; display: flex; flex-direction: column; gap: 3px; }
.stat-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 12px; background: var(--accent-soft); color: var(--accent); }
.stat-ico svg { width: 22px; height: 22px; }
.stat-ico.t-good { background: var(--good-soft); color: var(--good); }
.stat-ico.t-info { background: rgba(47,128,194,.14); color: #2f7fbf; }
.stat-ico.t-warm { background: rgba(216,150,40,.16); color: #c2802a; }
.stat-val { font-family: var(--font-display); font-size: 28px; font-weight: 800; }
.stat-label { font-size: 12.5px; }
@media (max-width: 760px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

.lvl-chip { font-family: var(--font-ui); font-weight: 700; font-size: 12px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-ring); padding: 4px 12px; border-radius: var(--r-pill); margin-top: 2px; }

/* Достижения (геймификация) */
.ach-section { margin-bottom: 26px; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; margin-top: 16px; }
.ach { padding: 15px 11px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--panel-border); text-align: center; transition: transform .2s var(--ease), box-shadow .2s; }
.ach b { font-size: 14px; }
.ach small { font-size: 11.5px; line-height: 1.35; display: block; margin-top: 3px; color: var(--text-muted); }
.ach.locked { opacity: .62; }
.ach.earned { background: var(--surface); box-shadow: var(--shadow-sm); }
.ach.earned:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ach.locked { opacity: .5; }
.ach-ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 10px; background: var(--accent-soft); color: var(--accent); }
.ach-ico svg { width: 23px; height: 23px; }
.ach.locked .ach-ico { background: var(--surface-3); color: var(--text-faint); }
.ach b { display: block; font-size: 13px; font-family: var(--font-ui); font-weight: 700; }
.ach small { display: block; font-size: 10.5px; color: var(--text-muted); margin-top: 3px; line-height: 1.3; }
@media (max-width: 860px) { .ach-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .ach-grid { grid-template-columns: repeat(2, 1fr); } }

.dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 860px) { .dash-cols { grid-template-columns: 1fr; } }
.pcourse-list { display: flex; flex-direction: column; gap: 12px; }
.pcourse { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--panel-border); }
.pcourse-lg { padding: 22px; gap: 18px; border-color: color-mix(in srgb, var(--c, var(--accent)) 32%, var(--panel-border)); background: linear-gradient(120deg, color-mix(in srgb, var(--c, var(--accent)) 8%, var(--surface)), var(--surface) 60%); }
.pcourse-lg .pcourse-ico { width: 52px; height: 52px; }
.pcourse-lg b { font-size: 18px; }
.pcourse-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 38%, transparent); flex: none; }
.pcourse-ico svg { width: 22px; height: 22px; }
.crs-h-ico { display: inline-grid; place-items: center; vertical-align: -.12em; margin-right: 10px; color: var(--accent); }
.crs-h-ico svg { width: .8em; height: .8em; }
.pcourse-body { flex: 1; min-width: 0; }

.ann-list { display: flex; flex-direction: column; gap: 12px; }
.ann-item { padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--panel-border); }
.ann-item h4 { font-family: var(--font-ui); font-weight: 700; font-size: 16px; margin: 10px 0 6px; }
.ann-list.wide .ann-item { padding: 22px; }

/* ========================== COURSES / COURSE ========================== */
.ccard { padding: 24px; display: block; }
.ccard-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ccard h3 { font-family: var(--font-display); font-size: 23px; margin-bottom: 7px; }
.ccard .badge { background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); border-color: color-mix(in srgb, var(--c) 40%, transparent); }

.course-head { display: flex; gap: 28px; padding: 30px; align-items: center; }
.course-head-main { flex: 1; }
.course-head-main h1 { font-size: clamp(26px, 4vw, 40px); margin: 12px 0; }
.course-head .badge { background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.course-head-side { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.course-head-side .ring { --sz: 100px; }
@media (max-width: 680px) { .course-head { flex-direction: column-reverse; align-items: flex-start; } }

.modules { display: flex; flex-direction: column; gap: 12px; }
.module { background: var(--surface); border: 1px solid var(--panel-border); border-radius: var(--r); overflow: hidden; }
.module summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; font-family: var(--font-ui); font-weight: 700; font-size: 16px; }
.module summary::-webkit-details-marker { display: none; }
.module summary::after { content: "▾"; color: var(--text-muted); transition: transform .25s; }
.module[open] summary::after { transform: rotate(180deg); }
.mod-meta { font-size: 13px; font-weight: 500; }
.lesson-list { border-top: 1px solid var(--hairline); }
.lrow { display: flex; align-items: center; gap: 14px; padding: 15px 20px; border-bottom: 1px solid var(--hairline); transition: background .2s; }
.lrow:last-child { border-bottom: 0; }
.lrow:hover { background: var(--surface-2); }
.lrow-status { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--surface-3); color: var(--text-muted); flex: none; }
.lrow.done .lrow-status { background: var(--good-soft); color: var(--good); }
.lrow-main { flex: 1; min-width: 0; }
.lrow-main b { font-weight: 600; font-size: 15px; display: block; }
.lrow-meta { font-size: 12.5px; }
.lrow-meta .free { color: var(--good); font-weight: 600; }
.lrow-go { color: var(--text-faint); font-size: 22px; }

/* ========================== LESSON ========================== */
.lesson-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.lesson-h1 { font-size: clamp(24px, 3.6vw, 34px); margin-top: 6px; }
@media (max-width: 620px) { .lesson-top { flex-direction: column; } }

.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #06121f; border: 1px solid var(--panel-border); box-shadow: var(--shadow); margin-bottom: 20px; }
.player-poster { position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #cfe0f0; background: radial-gradient(120% 120% at 50% 30%, var(--navy-650), #06121f); }
.player-poster.empty { cursor: default; }
.play-btn { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; color: #fff; background: linear-gradient(180deg, var(--orange-400), var(--orange)); box-shadow: var(--shadow-accent); transition: transform .2s; }
.player-poster:hover .play-btn { transform: scale(1.08); }
.play-btn.ghost { background: rgba(255,255,255,.08); box-shadow: none; }
.player-cap { font-size: 13px; color: #9fb6cd; max-width: 70%; text-align: center; }
.player-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.ltabs { display: flex; gap: 6px; border-bottom: 1px solid var(--hairline); margin-bottom: 18px; overflow-x: auto; }
.ltab { border: 0; background: transparent; color: var(--text-muted); font-family: var(--font-ui); font-weight: 700; font-size: 14.5px; padding: 12px 14px; border-bottom: 2px solid transparent; white-space: nowrap; }
.ltab.is-active { color: var(--accent); border-color: var(--accent); }
.tab-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); font-size: 12px; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeUp .3s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }

.materials-list { display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.material { display: flex; align-items: center; gap: 13px; padding: 13px 15px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--panel-border); transition: border-color .2s; }
.material:hover { border-color: var(--accent); }
.material-ico { font-size: 20px; }
.material span:nth-child(2) { flex: 1; font-weight: 600; font-size: 14.5px; }
.material-go { font-size: 12.5px; color: var(--accent); font-weight: 600; }

.lesson-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.lesson-nav .btn { max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ========================== QUIZ ========================== */
.quiz-title { font-family: var(--font-display); font-size: 21px; }
.quiz .q { padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.quiz .q:last-of-type { border-bottom: 0; }
.q-prompt { display: flex; gap: 12px; margin-bottom: 13px; }
.q-n { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--font-ui); font-weight: 800; font-size: 13px; background: var(--accent-soft); color: var(--accent); }
.q-prompt p { font-weight: 600; }
.q-options { display: flex; flex-direction: column; gap: 9px; padding-left: 38px; }
.opt { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid var(--panel-border); border-radius: var(--r-sm); cursor: pointer; transition: border-color .2s, background .2s; }
.opt:hover { border-color: var(--accent-ring); }
.opt input { accent-color: var(--accent); width: 17px; height: 17px; }
.q-input { margin-left: 38px; width: calc(100% - 38px); }
.q-feedback { margin: 12px 0 0 38px; font-size: 13.5px; color: var(--text-soft); }
.q-feedback:empty { display: none; }
.q-feedback { padding: 0; }
.q.ok .q-feedback { background: var(--good-soft); border-radius: var(--r-sm); padding: 11px 13px; }
.q.no .q-feedback { background: var(--bad-soft); border-radius: var(--r-sm); padding: 11px 13px; }
.ok-t { color: var(--good); } .no-t { color: var(--bad); }
.q.ok .opt input:checked + span { color: var(--good); font-weight: 600; }
.quiz-foot { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.quiz-score { font-size: 14px; color: var(--text-soft); }

/* ========================== COMMENTS ========================== */
.comments-note { font-size: 13px; margin: 6px 0 18px; }
.comment-form { display: flex; gap: 12px; margin-bottom: 22px; }
.cf-body { flex: 1; }
.cf-foot { display: flex; gap: 10px; margin-top: 9px; }
.comment-list { display: flex; flex-direction: column; gap: 18px; }
.comment { display: flex; gap: 12px; }
.comment.pinned { background: var(--accent-soft); border: 1px solid var(--accent-ring); border-radius: var(--r); padding: 14px; margin: -2px; }
.comment-body { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 5px; }
.comment-head b { font-size: 14.5px; }
.pin-tag { font-size: 11.5px; color: var(--accent); font-weight: 600; }
.comment-text { color: var(--text-soft); line-height: 1.6; white-space: pre-wrap; word-wrap: break-word; }
.comment-actions { display: flex; gap: 14px; margin-top: 8px; }
.cact { border: 0; background: transparent; color: var(--text-muted); font-size: 13px; font-weight: 600; padding: 2px 0; transition: color .2s; }
.cact:hover { color: var(--text); }
.cact.like.on { color: var(--accent); }
.cact.danger:hover { color: var(--bad); }
.replies { margin-top: 14px; padding-left: 18px; border-left: 2px solid var(--hairline); display: flex; flex-direction: column; gap: 16px; }
.comment.reply { gap: 10px; }
.reply-mount:not(:empty) { margin-top: 12px; }

/* ========================== PROFILE ========================== */
.profile-id { display: flex; align-items: center; gap: 16px; }
.profile-name { font-family: var(--font-display); font-size: 22px; }
.danger-zone { border-color: color-mix(in srgb, var(--bad) 30%, var(--panel-border)); }
.danger-btn { background: var(--bad-soft); color: var(--bad); border: 1px solid color-mix(in srgb, var(--bad) 35%, transparent); }
.danger-btn:hover { background: var(--bad); color: #fff; }

/* ========================== ADMIN ========================== */
.admin-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-ring); padding: 5px 11px; border-radius: var(--r-pill); margin-bottom: 14px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { text-align: left; font-family: var(--font-ui); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); padding: 10px 12px; border-bottom: 1px solid var(--hairline); }
.admin-table td { padding: 13px 12px; border-bottom: 1px solid var(--hairline); }
.admin-table tr:hover td { background: var(--surface-2); }
.admin-mini { display: flex; align-items: center; gap: 10px; }
.adm-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; border-bottom: 1px solid var(--hairline); }
.adm-tab { border: 0; background: transparent; color: var(--text-muted); font-family: var(--font-ui); font-weight: 700; font-size: 14.5px; padding: 12px 16px; border-bottom: 2px solid transparent; }
.adm-tab.is-active { color: var(--accent); border-color: var(--accent); }
.adm-panel { display: none; } .adm-panel.is-active { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.mod-builder { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }

/* ========================== РАСПИСАНИЕ ========================== */
.slot-list { display: flex; flex-direction: column; gap: 12px; }
.slot { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--panel-border); border-left: 4px solid var(--accent); border-radius: var(--r); }
.slot.group { border-left-color: #2f80c2; }
.slot.individual { border-left-color: var(--accent); }
.slot-when { display: flex; flex-direction: column; min-width: 96px; flex: none; }
.slot-when b { font-family: var(--font-display); font-size: 22px; line-height: 1; }
.slot-when span { font-size: 12px; }
.slot-main { flex: 1; min-width: 0; }
.slot .btn { flex: none; }
@media (max-width: 560px) { .slot { flex-wrap: wrap; } .slot .btn { width: 100%; } }

/* ========================== ДОМАШКИ ========================== */
.hw-list { display: flex; flex-direction: column; gap: 14px; }
.hwcard { display: flex; flex-direction: column; gap: 4px; }
.hw-task { color: var(--text-soft); margin: 10px 0 4px; line-height: 1.6; }
.hw-status { font-family: var(--font-ui); font-weight: 700; font-size: 11px; letter-spacing: .03em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--r-pill); }
.hw-status.st-assigned { background: var(--accent-soft); color: var(--accent); }
.hw-status.st-submitted { background: rgba(47,128,194,.16); color: #2f80c2; }
.hw-status.st-graded { background: var(--good-soft); color: var(--good); }
.hw-status.st-revision { background: var(--bad-soft); color: var(--bad); }
.hw-note { margin-top: 10px; padding: 11px 14px; border-radius: var(--r-sm); font-size: 14px; background: var(--surface-2); color: var(--text-soft); }
.hw-note.good { background: var(--good-soft); color: var(--good); }
.hw-note.bad { background: var(--bad-soft); color: var(--bad); }
.hw-sub { margin-top: 10px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--panel-border); }
.hw-sub p { margin-top: 4px; white-space: pre-wrap; }
.hw-form, .grade-form { margin-top: 12px; }
.badge.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }

/* ========================== CRM-карточка ========================== */
.crm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 640px) { .crm-grid { grid-template-columns: 1fr 1fr; } }
.crm-cell { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--panel-border); border-radius: var(--r-sm); }
.crm-cell small { font-size: 11.5px; }
.crm-cell b { font-size: 14.5px; }
.crm-row:hover td { background: var(--surface-2); }

/* ========================== Сайдбар-группы ========================== */
.side-group { font-family: var(--font-ui); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); padding: 6px 14px 2px; }

/* ========================== AI: проверка сочинения ========================== */
.essay-top { display: flex; align-items: center; gap: 20px; }
.essay-top .ring { --sz: 92px; } .essay-top .ring > span { font-size: 16px; }
.crit-list { display: flex; flex-direction: column; gap: 6px; }
.crit { display: grid; grid-template-columns: 38px 1.4fr auto; grid-template-areas: "code label score" "code note note"; gap: 2px 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); border-left: 3px solid var(--text-faint); }
.crit.ok { border-left-color: var(--good); } .crit.part { border-left-color: var(--warn); } .crit.no { border-left-color: var(--bad); }
.crit-code { grid-area: code; font-family: var(--font-ui); font-weight: 800; color: var(--text-muted); }
.crit-label { grid-area: label; font-weight: 600; font-size: 14.5px; }
.crit-score { grid-area: score; font-family: var(--font-ui); font-weight: 800; }
.crit.ok .crit-score { color: var(--good); } .crit.part .crit-score { color: var(--warn); } .crit.no .crit-score { color: var(--bad); }
.crit-note { grid-area: note; font-size: 12.5px; }
.essay-marked { line-height: 1.85; color: var(--text-soft); white-space: pre-wrap; }
mark.err { background: var(--bad-soft); color: var(--bad); border-radius: 4px; padding: 0 3px; text-decoration: underline wavy var(--bad); cursor: help; }
.tips { margin: 12px 0 0; padding-left: 20px; color: var(--text-soft); line-height: 1.7; }

/* ========================== AI: чат-репетитор ========================== */
.chat { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.chat-log { display: flex; flex-direction: column; gap: 12px; max-height: 48vh; overflow-y: auto; padding: 4px; }
.msg { display: flex; gap: 9px; align-items: flex-end; max-width: 86%; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg-ava { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); flex: none; }
.bubble { padding: 11px 15px; border-radius: 16px; font-size: 14.5px; line-height: 1.55; }
.msg.bot .bubble { background: var(--surface-2); border: 1px solid var(--panel-border); border-bottom-left-radius: 5px; }
.msg.me .bubble { background: linear-gradient(180deg, var(--orange-400), var(--orange)); color: #fff; border-bottom-right-radius: 5px; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chat-chip { cursor: pointer; border: 1px solid var(--panel-border); transition: border-color .2s, color .2s; }
.chat-chip:hover { border-color: var(--accent); color: var(--accent); }
.chat-form { display: flex; gap: 10px; }
.chat-form .input { flex: 1; }
.chat-form .btn { flex: none; width: 52px; font-size: 18px; }

/* ========================== AI: повторения (флэш-карты) ========================== */
.flashcard { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: 36px 26px; }
.flash-topic { align-self: center; }
.flash-front { font-family: var(--font-display); font-size: clamp(22px, 3.5vw, 30px); font-weight: 700; }
.flash-back { font-size: 17px; color: var(--text-soft); background: var(--good-soft); border-radius: var(--r); padding: 16px 20px; max-width: 540px; }
#flash-actions { width: 100%; max-width: 420px; }
.grade-row { display: flex; gap: 10px; }
.grade-row .btn { flex: 1; }
.grade-bad { background: var(--bad-soft); color: var(--bad); } .grade-bad:hover { background: var(--bad); color: #fff; }
.grade-mid { background: rgba(245,165,36,.16); color: var(--warn); } .grade-mid:hover { background: var(--warn); color: #fff; }
.grade-good { background: var(--good-soft); color: var(--good); } .grade-good:hover { background: var(--good); color: #fff; }
.big-emoji { font-size: 56px; }

/* ========================== AI: прогноз балла ========================== */
.forecast-top { display: flex; align-items: center; gap: 22px; }
.forecast-top .ring { --sz: 104px; } .forecast-top .ring > span { font-size: 26px; }
.forecast-band { font-size: 18px; margin: 4px 0; }
.forecast-band b { font-family: var(--font-display); font-size: 24px; color: var(--accent); }
.fc-parts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fc-part { background: var(--surface-1); border: 1px solid var(--panel-border); border-radius: var(--r); padding: 14px 16px; }
.fc-part b { font-size: 14.5px; }
.fc-note { border-color: var(--accent-ring); background: var(--accent-soft); }
@media (max-width: 640px) { .fc-parts { grid-template-columns: 1fr; } }
.heatmap { display: flex; flex-wrap: wrap; gap: 8px; }
.heat { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-ui); font-weight: 700; font-size: 13px; color: #fff; }
.heat.hi { background: var(--good); } .heat.mid { background: var(--warn); } .heat.lo { background: var(--bad); }
.heat-legend { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 12.5px; }
.heat-legend .heat { width: 16px; height: 16px; border-radius: 5px; }
@media (max-width: 620px) { .forecast-top, .essay-top { flex-direction: column; text-align: center; align-items: center; } }

/* ========================== AI в домашках ========================== */
.hw-essay-tag { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-ring); padding: 3px 10px; border-radius: var(--r-pill); margin: 8px 0; }
.hw-ai { margin-top: 12px; border: 1px solid var(--accent-ring); border-radius: var(--r); overflow: hidden; }
.hw-ai > summary { cursor: pointer; list-style: none; padding: 12px 16px; background: var(--accent-soft); color: var(--accent); font-family: var(--font-ui); font-weight: 700; font-size: 14px; }
.hw-ai > summary::-webkit-details-marker { display: none; }
.hw-ai > summary::before { content: "▸ "; }
.hw-ai[open] > summary::before { content: "▾ "; }
.hw-ai-body { padding: 16px; }
.hw-ai-body .essay-top .ring { --sz: 72px; } .hw-ai-body .essay-top .ring > span { font-size: 13px; }
.hw-ai-result:empty { display: none; }

/* ================================================================
   Repetutor-style админ: обзор, календарь, финансы, ученики, модалки
   ================================================================ */
b.good, .good { color: var(--good); } b.bad, .bad { color: var(--bad); }
.link-btn { background: none; border: 0; font: inherit; font-weight: 600; font-size: 13.5px; color: var(--accent); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.mt-24 { margin-top: 24px; } .mt-8 { margin-top: 8px; }
.btn-light { background: #fff; color: var(--accent); border: 0; }
.btn-light:hover { background: rgba(255,255,255,.88); }
.btn-ghost { background: transparent; border: 1px solid var(--panel-border); color: var(--text-soft); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---- сегмент-переключатель и чип-фильтры ---- */
.seg-group { display: inline-flex; background: var(--surface-2); border: 1px solid var(--panel-border); border-radius: var(--r-pill); padding: 3px; }
.seg { font: inherit; font-family: var(--font-ui); font-weight: 600; font-size: 13px; padding: 7px 15px; border: 0; background: none; color: var(--text-soft); border-radius: var(--r-pill); cursor: pointer; transition: .18s; }
.seg.on { background: var(--accent); color: #fff; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 4px; }
.chip-f { font: inherit; font-family: var(--font-ui); font-weight: 600; font-size: 13px; padding: 7px 14px; border: 1px solid var(--panel-border); background: var(--surface-1); color: var(--text-soft); border-radius: var(--r-pill); cursor: pointer; transition: .18s; }
.chip-f:hover { border-color: var(--accent); color: var(--accent); }
.chip-f.on { background: var(--accent-soft); border-color: var(--accent-ring); color: var(--accent); }
.chip-f.danger.on { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.sort-sel { max-width: 210px; }
/* select.input из theme.css задаёт padding 13px и обрезает текст при фикс. высоте — перебиваем специфичнее */
select.input.sort-sel, input.input.sort-sel { height: 40px; padding-top: 0; padding-bottom: 0; padding-left: 12px; font-size: 14px; line-height: 38px; }

/* ---- Главная (обзор) ---- */
.ov-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.ov-top { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; }
.hero-lesson { position: relative; overflow: hidden; border-radius: var(--r); padding: 28px 30px; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 68%, #000)); color: #fff; display: flex; flex-direction: column; gap: 6px; min-height: 210px; justify-content: center; }
.hero-lesson.empty { justify-content: center; }
.hero-kick { font-family: var(--font-ui); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.hero-title { font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px); line-height: 1.1; }
.hero-when { opacity: .9; margin-bottom: 10px; }
.hero-lesson .btn-light { align-self: flex-start; }
.ov-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ov-stat { background: var(--surface-1); border: 1px solid var(--panel-border); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.ov-stat.accent { background: var(--accent-soft); border-color: var(--accent-ring); }
.ov-stat-top { display: flex; align-items: center; justify-content: space-between; }
.ov-stat-top b { font-family: var(--font-display); font-size: 26px; }
.ov-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.ov-ico svg { width: 20px; height: 20px; }
.ov-ico.t-good { background: var(--good-soft); color: var(--good); }
.ov-ico.t-warm { background: rgba(245,165,36,.16); color: var(--warn); }
.ov-ico.t-info { background: rgba(47,128,194,.14); color: #2f80c2; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.qa-btn { font: inherit; font-family: var(--font-ui); font-weight: 600; font-size: 14px; padding: 12px 20px; border-radius: var(--r-sm); border: 1px solid var(--panel-border); background: var(--surface-1); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: .18s; }
.qa-btn:hover { border-color: var(--accent); color: var(--accent); }
.qa-btn.primary { background: var(--accent); color: #fff; border-color: transparent; }
.qa-btn.primary:hover { filter: brightness(1.06); color: #fff; }
.qa-badge { background: var(--bad); color: #fff; font-size: 12px; border-radius: 10px; padding: 1px 7px; }
.ov-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ov-list { display: flex; flex-direction: column; }
.ov-row { display: flex; align-items: center; gap: 12px; padding: 11px 6px; border-bottom: 1px solid var(--panel-border); }
.ov-row:last-child { border-bottom: 0; }
.ov-row.link { cursor: pointer; border-radius: var(--r-sm); } .ov-row.link:hover { background: var(--surface-2); }
.ov-main { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ov-main small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-time { font-family: var(--font-ui); font-weight: 800; color: var(--accent); display: flex; flex-direction: column; line-height: 1.1; min-width: 46px; }
.ov-time small { font-weight: 500; color: var(--text-faint); font-size: 10.5px; }
.fin-mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fin-mini-grid > div { display: flex; flex-direction: column; gap: 3px; }
.fin-mini-grid b { font-family: var(--font-display); font-size: 20px; }
@media (max-width: 860px) { .ov-top, .ov-cols, .fin-mini-grid { grid-template-columns: 1fr; } .ov-stats { grid-template-columns: 1fr 1fr; } }

/* ---- Расписание: неделя/месяц/день ---- */
.sched-wrap { display: flex; flex-direction: column; }
.wk-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 6px 0 16px; }
.wk-st { background: var(--surface-1); border: 1px solid var(--panel-border); border-radius: var(--r-sm); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.wk-st b { font-family: var(--font-display); font-size: 22px; }
.wk-nav { display: flex; align-items: center; gap: 12px; margin: 6px 0 14px; }
.wk-nav b { font-family: var(--font-ui); font-size: 15px; }
.wk-nav .btn-ghost { margin-left: auto; }
.wk-grid { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.wk-col { background: var(--surface-1); border: 1px solid var(--panel-border); border-radius: var(--r-sm); min-height: 150px; display: flex; flex-direction: column; }
.wk-col.today { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-ring) inset; }
.wk-colhead { display: flex; align-items: baseline; gap: 6px; padding: 9px 11px; border-bottom: 1px solid var(--panel-border); }
.wk-colhead .wk-wd { font-family: var(--font-ui); font-weight: 700; font-size: 12px; text-transform: uppercase; color: var(--text-faint); }
.wk-colhead .wk-dn { font-family: var(--font-display); font-size: 18px; margin-right: auto; }
.wk-cells { padding: 8px; display: flex; flex-direction: column; gap: 7px; flex: 1; max-height: 440px; overflow-y: auto; }
.lz { text-align: left; width: 100%; border: 1px solid var(--panel-border); background: var(--surface-2); border-radius: 10px; padding: 8px 10px; cursor: pointer; display: flex; flex-direction: column; gap: 1px; position: relative; transition: .16s; font: inherit; }
.lz:hover { border-color: var(--accent); transform: translateY(-1px); }
.lz.booked { border-left: 3px solid var(--accent); }
.lz.free { border-left: 3px dashed var(--text-faint); opacity: .82; }
.lz-time { font-family: var(--font-ui); font-weight: 800; font-size: 13px; color: var(--accent); }
.lz-name { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lz-sub { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lz-dot { position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.lz-dot.y { background: var(--good); }
.wk-add { margin-top: auto; border: 1px dashed var(--panel-border); background: none; color: var(--text-faint); border-radius: 9px; padding: 6px; font-size: 16px; cursor: pointer; transition: .16s; }
.wk-add:hover { border-color: var(--accent); color: var(--accent); }
.mo-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.mo-body { grid-auto-rows: 120px; }  /* все ячейки дней — одного размера */
.mo-head { margin-bottom: 6px; } .mo-head > div { text-align: center; font-family: var(--font-ui); font-weight: 700; font-size: 11.5px; text-transform: uppercase; color: var(--text-faint); }
.mo-cell { min-height: 0; overflow: hidden; background: var(--surface-1); border: 1px solid var(--panel-border); border-radius: 10px; padding: 6px 7px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; transition: .16s; }
.mo-cell:hover { border-color: var(--accent); }
.mo-cell.out { opacity: .4; } .mo-cell.today { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent-ring) inset; }
.mo-dn { font-family: var(--font-ui); font-weight: 700; font-size: 13px; }
.mo-chip { font-size: 10.5px; font-weight: 600; padding: 2px 6px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--accent-soft); color: var(--accent); border: 0; cursor: pointer; width: 100%; text-align: left; font-family: inherit; display: block; }
.mo-chip:hover { filter: brightness(1.12); text-decoration: underline; }
.mo-chip.paid { background: var(--good-soft); color: var(--good); }
.mo-chip.unpaid { background: rgba(245,165,36,.16); color: var(--warn); }
.mo-chip.free { background: var(--surface-2); color: var(--text-faint); }
.mo-more { font-size: 10.5px; font-weight: 700; color: var(--accent); background: none; border: 0; padding: 1px 2px; margin-top: auto; text-align: left; font-family: inherit; cursor: pointer; }
.mo-count { display: none; }  /* индикатор занятий — только на мобильном (плашки скрыты) */
.mo-more:hover { text-decoration: underline; }
.day-list { display: flex; flex-direction: column; }
.day-row { display: flex; align-items: center; gap: 14px; padding: 13px 8px; border-bottom: 1px solid var(--panel-border); cursor: pointer; border-radius: var(--r-sm); }
.day-row:hover { background: var(--surface-2); }
.day-row .lz-time { flex-direction: column; display: flex; min-width: 52px; } .day-row .lz-time small { color: var(--text-faint); font-weight: 500; }
@media (max-width: 720px) { .wk-stats { grid-template-columns: 1fr 1fr; } .mo-body { grid-auto-rows: 66px; } .mo-chip { display: none; }
  .mo-count { display: inline-flex; align-items: center; margin-top: auto; align-self: flex-start; font-size: 10px; font-weight: 700; color: #fff; background: var(--accent); border-radius: 6px; padding: 1px 5px; cursor: pointer; } }
/* Календарь ученика — только просмотр (ячейки нельзя «нажать для добавления») */
.stud-sched .mo-cell { cursor: default; }
.stud-sched .mo-cell:hover { border-color: var(--panel-border); }
/* плашки занятий ученика — читаемые на тёмном фоне (не бледно-винные) */
.stud-sched .mo-chip { cursor: pointer; background: var(--accent); color: #fff; font-weight: 700; }
.stud-sched .mo-chip:hover { filter: brightness(1.12); text-decoration: none; }
.stud-sched .lz.booked { background: color-mix(in srgb, var(--accent) 22%, var(--surface-2)); border-left-color: var(--accent); }
/* Мини-карточки ДЗ в модалке занятия */
.hw-mini-list { display: flex; flex-direction: column; gap: 8px; }
.hw-mini { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid var(--panel-border); border-radius: var(--r-sm); background: var(--surface-1); text-decoration: none; color: inherit; transition: .16s; }
.hw-mini:hover { border-color: var(--accent-ring); }
.hw-mini .hw-status { align-self: flex-start; }
.jrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ---- Финансы ---- */
.fin-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 8px 0 16px; }
.fin-kpi { background: var(--surface-1); border: 1px solid var(--panel-border); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.fin-kpi b { font-family: var(--font-display); font-size: 24px; }
.fin-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 4px; }
.fin-ico svg { width: 21px; height: 21px; }
.fin-ico.t-good { background: var(--good-soft); color: var(--good); }
.fin-ico.t-warm { background: rgba(245,165,36,.16); color: var(--warn); }
.fin-ico.t-info { background: rgba(47,128,194,.14); color: #2f80c2; }
.fin-analytics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fin-mini2 { background: var(--surface-2); border: 1px solid var(--panel-border); border-radius: var(--r-sm); padding: 13px 15px; display: flex; flex-direction: column; gap: 3px; }
.fin-mini2 b { font-size: 16px; }
.fc-legend { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-soft); margin: 6px 0 14px; }
.dotk { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.dotk.recv { background: var(--good); } .dotk.await { background: var(--warn); }
.fc-chart { display: flex; align-items: flex-end; gap: 12px; height: 170px; padding-top: 10px; }
.fc-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; }
.fc-bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.fc-bar { width: 42%; max-width: 26px; border-radius: 5px 5px 0 0; min-height: 3px; transition: height .3s var(--ease); }
.fc-bar.recv { background: var(--good); } .fc-bar.await { background: var(--warn); }
.fin-studs { display: flex; flex-direction: column; gap: 14px; }
.fin-stud { padding-bottom: 12px; border-bottom: 1px solid var(--panel-border); }
.fin-stud:last-child { border-bottom: 0; }
.bar i.good-fill { background: var(--good); }
/* Тесты · разбор вопросов и ошибок (админ) */
.tq-list { display: flex; flex-direction: column; gap: 12px; }
.tq-item { border: 1px solid var(--panel-border); border-radius: var(--r); padding: 14px 16px; background: var(--surface-1); }
.tq-q { font-weight: 600; margin-bottom: 10px; white-space: pre-wrap; }
.tq-opts { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.tq-opt { padding: 7px 11px; border: 1px solid var(--panel-border); border-radius: var(--r-sm); font-size: 14px; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.tq-opt.correct { border-color: transparent; background: var(--good-soft); color: var(--good); }
.tq-opt.chosen-wrong { border-color: transparent; background: var(--bad-soft); color: var(--bad); }
.tq-tag { font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.tq-tag.ok { color: var(--good); } .tq-tag.bad { color: var(--bad); }
.tq-ans { font-size: 13.5px; padding: 8px 11px; border-radius: var(--r-sm); background: var(--surface-2); }
.tq-exp { font-size: 13px; margin-top: 8px; line-height: 1.55; }
/* Марафон · загрузка файла сочинения */
.mar-file-drop { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1.5px dashed var(--panel-border); border-radius: var(--r); background: var(--surface-1); color: var(--text-soft); cursor: pointer; transition: .16s; }
.mar-file-drop:hover { border-color: var(--accent-ring); color: var(--text); }
.mar-file-drop.has-file { border-style: solid; border-color: var(--accent-ring); color: var(--text); background: var(--accent-soft); }
.mar-file-drop .mar-file-ico { display: inline-flex; }
.mar-file-drop .mar-file-ico svg { width: 20px; height: 20px; }
/* Финансы · продажи продуктов */
.fin-toggle { margin-bottom: 4px; }
.fin-sales-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fin-sale { display: flex; flex-direction: column; }
.fin-sale-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--hairline, var(--panel-border)); }
.fin-sale-metric { display: flex; flex-direction: column; gap: 2px; }
.fin-sale-metric b { font-family: var(--font-display); font-size: 21px; line-height: 1.1; }
.fin-sale-metric small { font-size: 11.5px; line-height: 1.25; }
@media (max-width: 860px) { .fin-kpis, .fin-analytics { grid-template-columns: 1fr 1fr; } .fin-sales-grid { grid-template-columns: 1fr; } }

/* ---- Ученики: карточки ---- */
.stud-list { display: flex; flex-direction: column; gap: 10px; }
.stud-card { display: flex; align-items: center; gap: 14px; background: var(--surface-1); border: 1px solid var(--panel-border); border-radius: var(--r); padding: 14px 16px; cursor: pointer; transition: .16s; }
.stud-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.stud-main { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.stud-rate { text-align: right; display: flex; flex-direction: column; gap: 1px; }
.stud-rate b { font-family: var(--font-display); font-size: 17px; }
@media (max-width: 560px) { .stud-rate { display: none; } }

/* ---- Модалки ---- */
.modal-scrim { position: fixed; inset: 0; background: rgba(8,11,20,.66); backdrop-filter: blur(5px); display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; z-index: 200; overflow-y: auto; animation: mfade .18s ease; }
@keyframes mfade { from { opacity: 0; } }
.modal-card { width: 100%; max-width: 560px; background: var(--surface-1); border: 1px solid var(--panel-border); border-radius: var(--r-lg, 18px); box-shadow: 0 24px 70px rgba(0,0,0,.3); animation: mpop .2s var(--ease); }
.modal-card.wide { max-width: 720px; }
@keyframes mpop { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--panel-border); }
.modal-head h3 { font-family: var(--font-display); font-size: 19px; }
.modal-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.modal-foot .btn-ghost { margin-right: auto; }
.note-box { font-size: 12.8px; color: var(--text-soft); background: var(--surface-2); border: 1px dashed var(--panel-border); border-radius: var(--r-sm); padding: 11px 13px; }
.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pick-card { text-align: left; background: var(--surface-1); border: 1px solid var(--panel-border); border-radius: var(--r); padding: 20px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; transition: .16s; font: inherit; }
.pick-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.08); }
.pick-card b { font-size: 15.5px; }
.pick-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.pick-ico svg { width: 24px; height: 24px; }
@media (max-width: 520px) { .pick-grid { grid-template-columns: 1fr; } }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--panel-border); border-radius: var(--r-sm); cursor: pointer; }
.switch-row > span { display: flex; flex-direction: column; gap: 1px; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch { width: 42px; height: 24px; border-radius: 20px; background: var(--panel-border); position: relative; transition: .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch-row input:checked + .switch { background: var(--accent); }
.switch-row input:checked + .switch::after { transform: translateX(18px); }
.rec-box { border: 1px solid var(--panel-border); border-radius: var(--r-sm); padding: 14px; display: flex; flex-direction: column; gap: 4px; background: var(--surface-2); }
.mini-label { font-family: var(--font-ui); font-weight: 700; font-size: 12px; color: var(--text-soft); }
.wd-row, .hz-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.wd-btn { width: 40px; height: 38px; border-radius: 10px; border: 1px solid var(--panel-border); background: var(--surface-1); color: var(--text-soft); font: inherit; font-weight: 600; cursor: pointer; transition: .16s; }
.wd-btn:hover { border-color: var(--accent); }
.wd-btn.on { background: var(--accent); color: #fff; border-color: transparent; }
.hz-btn { padding: 8px 13px; border-radius: 10px; border: 1px solid var(--panel-border); background: var(--surface-1); color: var(--text-soft); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; transition: .16s; }
.hz-btn:hover { border-color: var(--accent); }
.hz-btn.on { background: var(--accent-soft); border-color: var(--accent-ring); color: var(--accent); }
.hz-custom .input { width: 90px; height: 38px; padding: 0 10px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--text-soft); }
.detail-title { font-family: var(--font-display); font-size: 18px; }
.journal-box { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--panel-border); padding-top: 14px; margin-top: 2px; }
.checkrow.big { padding: 11px 13px; background: var(--surface-2); border: 1px solid var(--panel-border); border-radius: var(--r-sm); }

/* ---- Задания: строки-список + детали ---- */
.hw-rows { display: flex; flex-direction: column; gap: 8px; }
.hw-row { display: flex; align-items: center; gap: 13px; background: var(--surface-1); border: 1px solid var(--panel-border); border-radius: var(--r); padding: 12px 16px; cursor: pointer; transition: .16s; }
.hw-row:hover { border-color: var(--accent); transform: translateY(-1px); }
.hw-row-main { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hw-row-main b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hw-row-acts { display: flex; align-items: center; gap: 6px; }
.icon-mini { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--panel-border); background: var(--surface-2); color: var(--text-soft); display: grid; place-items: center; cursor: pointer; transition: .16s; }
.icon-mini:hover { border-color: var(--accent); color: var(--accent); }
.icon-mini.danger:hover { border-color: var(--bad); color: var(--bad); }
.hw-block { display: flex; flex-direction: column; gap: 5px; }
.hw-block > small { font-family: var(--font-ui); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.hw-block > p { background: var(--surface-2); border: 1px solid var(--panel-border); border-radius: var(--r-sm); padding: 12px 14px; line-height: 1.55; white-space: pre-wrap; }
.hw-block .hw-files { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 560px) { .hw-row-acts .cact { display: none; } }
a.hw-row { text-decoration: none; color: inherit; }
.hw-row .hw-status { flex: none; }

/* ---- страница задания (кабинет ученика) ---- */
.hwd-title { font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px); margin: 8px 0 4px; }
.hwd-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 26px 16px; border: 1.5px dashed var(--panel-border); border-radius: var(--r); background: var(--surface-2); cursor: pointer; transition: border-color .2s, background .2s; }
.hwd-drop:hover { border-color: var(--accent); background: var(--accent-soft); }
.hwd-drop svg { width: 22px; height: 22px; color: var(--accent); }
.hwd-drop b { font-size: 14.5px; }
.hwd-drop .muted { font-size: 12.5px; }
.hwd-drop .hw-attach-list { margin-top: 4px; font-size: 12.5px; color: var(--accent); }

/* ---- крестик удаления файла (админ) ---- */
.fchip-wrap { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; }
.fchip-del { width: 26px; height: 26px; flex: none; border-radius: 8px; border: 1px solid var(--panel-border); background: var(--surface-2); color: var(--text-faint); display: grid; place-items: center; cursor: pointer; transition: .16s; }
.fchip-del svg { width: 13px; height: 13px; }
.fchip-del:hover { border-color: var(--bad); color: var(--bad); }

/* ---- карточка «Пригласить родителя» ---- */
.parent-invite-card { border-color: var(--accent-ring); }

/* ---- Тесты ОГЭ/ЕГЭ: каталог + тренажёр ---- */
.tests-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.test-card { display: flex; flex-direction: column; gap: 6px; background: var(--surface-1); border: 1px solid var(--panel-border); border-radius: var(--r); padding: 16px 18px; text-decoration: none; color: inherit; transition: .16s; }
.test-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.tr-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 6px 0 8px; }
.tr-bar { height: 6px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin-bottom: 14px; }
.tr-bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .3s var(--ease); }
.tr-card .chip { align-self: flex-start; }
.tr-text { white-space: normal; line-height: 1.75; margin: 12px 0 6px; font-size: 15.5px; }
.tr-nums { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 10px; }
.tr-num { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--panel-border); background: var(--surface-2); font: 700 16px var(--font-ui); color: var(--text); cursor: pointer; transition: .15s; }
.tr-num:hover { border-color: var(--accent); color: var(--accent); }
.tr-num.on { background: var(--accent); border-color: transparent; color: #fff; }
.tr-num:disabled { opacity: .5; cursor: default; }
.tr-expl { margin-top: 10px; padding: 12px 14px; background: var(--surface-2); border-radius: var(--r-sm); font-size: 13.5px; line-height: 1.6; }
.tr-done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 36px 24px; }
.tr-done .ring { --sz: 110px; } .tr-done .ring > span { font-size: 24px; }

/* ---- Paywall подписки ---- */
.paywall { position: relative; text-align: center; border-color: var(--accent-ring); background: linear-gradient(180deg, var(--accent-soft), var(--surface-1)); }
.paywall-badge { display: inline-block; font-family: var(--font-ui); font-weight: 800; font-size: 11px; letter-spacing: .12em; color: #fff; background: var(--accent); border-radius: var(--r-pill); padding: 5px 13px; }
.paywall-h { font-family: var(--font-display); font-size: clamp(20px, 3vw, 26px); margin-top: 12px; }
.paywall-list { list-style: none; display: inline-flex; flex-direction: column; gap: 9px; text-align: left; margin: 0 auto; font-size: 14.5px; color: var(--text-soft); }
.paywall-list li { display: flex; gap: 8px; }
.paywall-price { display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.paywall-price b { font-family: var(--font-display); font-size: 34px; color: var(--accent); }
.paywall .btn { min-width: 220px; }

/* ---- Финансы: таблица начислений (Excel на платформе) ---- */
.bill-table th, .bill-table td { vertical-align: middle; }
.bill-inp { width: 92px; height: 34px; padding: 0 10px; border: 1px solid var(--panel-border); border-radius: 8px; background: var(--surface-1); color: var(--text); font: inherit; font-weight: 600; }
.bill-inp:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.bill-sum { font-family: var(--font-ui); font-weight: 700; white-space: nowrap; }
.bill-paid { text-align: center; }
.bill-paid input { width: 20px; height: 20px; accent-color: var(--good); cursor: pointer; }
.bill-table tfoot td { border-top: 2px solid var(--panel-border); font-size: 14px; padding-top: 12px; }
.bill-table tfoot .good { font-weight: 700; }
.bill-seq { width: 44px; text-align: center; color: var(--text-faint); font-family: var(--font-ui); font-weight: 700; font-size: 13px; }
#ba-namewrap { transition: none; }

/* ========================== Виртуальный класс ========================== */
.classroom-live { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: radial-gradient(120% 140% at 90% 10%, color-mix(in srgb, var(--good) 12%, var(--surface)), var(--surface)); }
.room-mock { margin-top: 16px; }
.room-board { height: 180px; border: 2px dashed var(--panel-border); border-radius: var(--r); display: grid; place-items: center; font-size: 17px; color: var(--text-muted); background: var(--surface-2); margin-bottom: 12px; }
.ai-tag { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-ring); padding: 3px 10px; border-radius: var(--r-pill); margin-bottom: 6px; }

.rec-list { display: flex; flex-direction: column; gap: 18px; }
.rec { overflow: hidden; padding: 0; }
.rec-player { position: relative; aspect-ratio: 16/9; background: #06121f; }
.rec-player .player { margin: 0; border: 0; border-radius: 0; aspect-ratio: 16/9; }
.rec-player .player-poster { border-radius: 0; }
.rec-body { padding: 20px; }
.rec-body > b { font-size: 16.5px; }
.rec-summary { margin: 12px 0; padding: 14px 16px; border-radius: var(--r-sm); background: var(--accent-soft); border: 1px solid var(--accent-ring); }
.rec-summary p { color: var(--text-soft); line-height: 1.6; }
.rec-kp { margin-top: 8px; }
.rec-quiz { margin-top: 12px; border-top: 1px solid var(--hairline); padding-top: 12px; }
.rec-quiz > summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--accent); }
.rq { margin-top: 10px; } .rq b { font-weight: 600; } .rq-a { font-size: 13.5px; margin-top: 3px; }

/* ========================== Telegram-бот ========================== */
.tg-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.tg-feed { display: flex; flex-direction: column; gap: 12px; }
.tg-msg { display: flex; gap: 11px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--panel-border); }
.tg-ava { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--accent-soft); font-size: 16px; }
.tg-body { flex: 1; min-width: 0; }
.tg-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 3px; }
.tg-body p { color: var(--text-soft); line-height: 1.5; font-size: 14.5px; }
.tg-card .tg-msg { background: var(--surface-2); }
