/* ===== Общий слой «Закат» (20.11, одно приложение): токены дизайна ИИ-психолога для всего приложения =====
   Образец — кабинет психолога (ai-psychologist/cabinet_server/static/index.html), язык «Закат» утверждён Никитой 11.11.
   Тёмная «Закат» — по умолчанию, светлая «Рассвет» — выбор человека, «как в Telegram» — по оформлению Telegram/системы.
   data-theme на <html> ставит скрипт в <head> до первой отрисовки (без мигания): всегда "dark" или "light".
   Имена клуба (--bg, --bg2, --card, --text, --hint, --accent…) — те же, что раньше, только теперь из палитры «Заката»;
   имена кабинета (--ink, --ash, --canvas, --glass, --btn…) — для вкладки «Психолог» и новых экранов. */
@font-face{font-family:"Onest";font-style:normal;font-weight:100 900;font-display:swap;src:url(/static/fonts/onest-cyrillic-wght-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Onest";font-style:normal;font-weight:100 900;font-display:swap;src:url(/static/fonts/onest-latin-wght-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:400 900;font-display:swap;src:url(/static/fonts/golos-text-cyrillic-wght-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:400 900;font-display:swap;src:url(/static/fonts/golos-text-latin-wght-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Cormorant Garamond";font-style:normal;font-weight:300 700;font-display:swap;src:url(/static/fonts/cormorant-garamond-cyrillic-wght-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Cormorant Garamond";font-style:normal;font-weight:300 700;font-display:swap;src:url(/static/fonts/cormorant-garamond-latin-wght-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Cormorant Garamond";font-style:italic;font-weight:300 700;font-display:swap;src:url(/static/fonts/cormorant-garamond-cyrillic-wght-italic.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Cormorant Garamond";font-style:italic;font-weight:300 700;font-display:swap;src:url(/static/fonts/cormorant-garamond-latin-wght-italic.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* ===== Токены «Тёплый свет» (22.11, docs/DESIGN_WARM_LIGHT_BRIEF.md) — единственное место, где заданы цвета, шрифты,
   размеры, поверхности и движение. «Закат» — глубокий графит со сливовым оттенком, «Рассвет» — жемчужный тёплый белый.
   Акценты: коралл, персик, пыльная роза, немного сирени. Градиент --btn — только у главного действия экрана;
   «закатная линия» --rail — прогресс (фундамент, глава, практика, перемотка).
   Поверхности: --surface — спокойная устойчивая (карточки, переписка, дневник, длинный текст);
   --glass — стекло только у плавающего (нижняя панель, плеер, листы, тосты).
   Контраст обычного текста ≥ 4.5:1 проверен скриптом (docs/DESIGN_WARM_LIGHT/STAGE1.md).
   Старые имена (--bg, --card, --ink, --ash, --accent, --c-*) сохранены: на них живут остальные экраны. */
:root {
  /* фон и поверхности */
  --canvas: #16121a; --bg2: #16121a; --surface: #221c26; --surface-2: #2c2431; --raised: #2a2230;
  --card: var(--surface); --field: #1d1821;
  /* текст */
  --ink: #f6eff2; --ash: #c4b6c0; --faint: #ab9ba8;
  /* линии */
  --line: rgba(255,236,244,.08); --edge: rgba(255,236,244,.11); --hair: rgba(255,171,148,.4);
  /* акценты */
  --accent: #ffab94; --coral: #ff8f7a; --peach: #ffc49a; --rose: #f293b3; --lilac: #c3b0f2;
  --amber: #f3b56e; --magenta: #d2668f; --green: #7fd6a6; --danger: #ff8a8a; --lime: #e4f27a; --sos: #ff9a9a;
  --wine: #d2668f; --berry: #f293b3;
  --rail: linear-gradient(90deg,#b9a3f0 0%,#f08fb4 38%,#ff9d82 70%,#ffc895 100%);
  --rail-track: rgba(255,236,244,.1);
  --btn: linear-gradient(110deg,#f39ab4 0%,#ff9f88 52%,#ffc59c 100%); --on-btn: #2a1420;
  --glow: 0 8px 24px rgba(255,140,130,.22);
  /* стекло — только плавающее */
  --glass: rgba(34,27,38,.74); --glass-edge: rgba(255,255,255,.07); --blur: blur(22px) saturate(160%);
  --u-bubble: #33283a; --scrim: rgba(8,5,10,.62);
  --shadow: inset 0 0 0 1px rgba(255,236,244,.045); --shadow-card: 0 12px 32px rgba(0,0,0,.32); --shadow-lg: 0 18px 44px rgba(0,0,0,.5);
  /* мягкий цветной свет фона */
  --glow-a: rgba(255,150,120,.20); --glow-b: rgba(170,130,230,.15); --glow-c: rgba(242,147,179,.12); --aura-op: 1;
  --top: #16121a;
  /* rgb-тройки для полупрозрачных оттенков (старые правила) */
  --c-hi: 255,236,244; --c-amber: 243,181,110; --c-acc: 255,171,148; --c-dan: 255,138,138; --c-rose: 242,147,179; --c-mag: 210,102,143; --c-green: 127,214,166; --c-fade: 22,18,26;
  --sos-ink: #ffd9d4; --sos-k: #ffb5ab;
  /* шрифты: Onest — интерфейс, заголовки, карточки; Golos Text — длинное чтение; Cormorant — редкий акцент (цитаты) */
  --fui: "Onest", system-ui, -apple-system, sans-serif; --fhead: var(--fui); --fbody: "Golos Text", system-ui, sans-serif;
  --fdisp: "Cormorant Garamond", Georgia, serif; --serif: var(--fdisp);
  /* размеры текста (телефон): экран, заголовок раздела, карточка, основной, чтение, подпись, «бровь» */
  --fs-display: 26px; --fs-title: 24px; --fs-h2: 19px; --fs-card-l: 18px; --fs-card: 15.5px; --fs-body: 16px; --fs-read: 16.5px; --fs-meta: 13px; --fs-eb: 11.5px;
  /* скругления */
  --r-xs: 10px; --r-s: 14px; --r-m: 18px; --r-l: 22px; --radius: var(--r-m);
  /* движение: короткий отклик, смена состояния, появление */
  --d1: 120ms; --d2: 180ms; --d3: 240ms; --ease: cubic-bezier(.2,.7,.3,1);
  /* старые имена клуба */
  --bg: var(--canvas); --text: var(--ink); --hint: var(--ash); --accent-soft: rgba(var(--c-acc),.13); --ok: var(--green);
  --view-w: 640px;   /* ширина колонки экрана; на компьютере 980 (медиа ниже) — от неё же значок темы */
  color-scheme: dark;
}
:root[data-theme="light"] {
  --canvas: #faf6f3; --bg2: #faf6f3; --surface: #fffdfb; --surface-2: #f3ebe9; --raised: #ffffff;
  --card: var(--surface); --field: #fffdfb;
  --ink: #2b2230; --ash: #64566a; --faint: #6c5c6b;
  --line: rgba(60,30,50,.08); --edge: rgba(60,30,50,.11); --hair: rgba(162,64,95,.36);
  --accent: #9c3b5a; --coral: #ad4b37; --peach: #b86c2e; --rose: #9a3c63; --lilac: #6f58b0;
  --amber: #84500d; --magenta: #9c3b5a; --green: #19694a; --danger: #b3323c; --lime: #6b7a10; --sos: #b3324f;
  --wine: #8e2f5e; --berry: #b8466f;
  --rail: linear-gradient(90deg,#8e78d8 0%,#d0527f 38%,#e26a4f 70%,#eba05c 100%);
  --rail-track: rgba(60,30,50,.09);
  --btn: linear-gradient(110deg,#a33a68 0%,#b4475f 55%,#b4553f 100%); --on-btn: #ffffff;
  --glow: 0 8px 22px rgba(180,70,95,.24);
  --glass: rgba(255,253,251,.76); --glass-edge: rgba(255,255,255,.85); --blur: blur(22px) saturate(170%);
  --u-bubble: #f6e9e6; --scrim: rgba(43,34,48,.3);
  --shadow: 0 1px 2px rgba(70,35,55,.05), 0 6px 22px rgba(120,60,90,.07); --shadow-card: 0 10px 30px rgba(120,60,90,.12); --shadow-lg: 0 16px 40px rgba(120,60,90,.16);
  --glow-a: rgba(248,200,175,.55); --glow-b: rgba(226,214,240,.6); --glow-c: rgba(246,200,214,.45); --aura-op: 1;
  --top: #faf6f3;
  --c-hi: 60,30,50; --c-amber: 138,82,13; --c-acc: 194,84,74; --c-dan: 179,50,60; --c-rose: 168,69,108; --c-mag: 162,64,95; --c-green: 31,122,82; --c-fade: 250,246,243;
  --sos-ink: #8f2232; --sos-k: #9b2d3a;
  --accent-soft: rgba(162,64,95,.09);
  color-scheme: light;
}

/* ===================================================================================================================
   Клуб «Тёплый свет» — одна система вместо слоёв по датам (этап 2, 22.11, docs/DESIGN_WARM_LIGHT/STAGE2.md).
   Порядок: основа → компоненты (кнопки, пилюли, поле, списки, поверхности, пустые и служебные состояния, листы, тосты,
   панель вкладок, мини-плеер) → обложки → экраны (главная, каталог, фундамент, эфир, практики, марафоны, «Моё», дневник,
   оплата, замок и вход, первый вход, «Мне плохо») → психолог → «Рассвет» → движение.
   Цвета, шрифты, размеры, скругления и длительности — только из токенов выше. Космос — в cosmos.css.
   =================================================================================================================== */

/* ---------- основа ---------- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root { --tgt: var(--tg-content-safe-area-inset-top, 0px); --tgb: var(--tg-content-safe-area-inset-bottom, 0px); }
html, body { margin: 0; background: var(--bg2); color: var(--ink); }
body { font: var(--fs-body)/1.5 var(--fui); -webkit-font-smoothing: antialiased; min-height: 100vh;
  padding-bottom: calc(74px + max(env(safe-area-inset-bottom), var(--tgb))); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
:where(a, button, [role="radio"], summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
#view { position: relative; max-width: var(--view-w); margin: 0 auto; padding: calc(16px + var(--tgt)) 16px 8px; }
@media (display-mode: standalone) { #view { padding-top: calc(16px + env(safe-area-inset-top)); } }
body.bare { padding-bottom: 24px; }
body.bare .tabbar { display: none; }
body.noscroll { overflow: hidden; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; }
/* мягкий цветной свет: персик справа сверху, сирень слева, роза внизу; медленно «дышит» (без reduced-motion) */
.auraB { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; opacity: var(--aura-op); }
.auraB .g { position: absolute; inset: -10%;
  background: radial-gradient(60% 42% at 92% 0%, var(--glow-a), transparent 70%), radial-gradient(55% 40% at 0% 42%, var(--glow-b), transparent 72%),
    radial-gradient(70% 40% at 70% 108%, var(--glow-c), transparent 72%); animation: auraBreath 26s ease-in-out infinite alternate; }
@keyframes auraBreath { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-2%,1.5%,0) scale(1.05); } }
.fade { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes fade { from { opacity: 0; } }

/* ---------- типографика: Onest — интерфейс и заголовки, Golos — чтение, Cormorant — редкий акцент (цитаты) ---------- */
h1 { font-family: var(--fhead); font-weight: 650; font-size: var(--fs-display); line-height: 1.18; letter-spacing: -.02em; margin: 2px 0 8px; text-wrap: balance; overflow-wrap: break-word; }
h1 em, .h em { font-style: normal; color: var(--accent); }
h2 { font-family: var(--fhead); font-weight: 650; font-size: var(--fs-h2); line-height: 1.25; letter-spacing: -.01em; margin: 28px 0 12px; text-wrap: balance; }
h2 .h-no { color: var(--accent); margin-right: 8px; font-weight: 600; font-variant-numeric: tabular-nums; }
.h-link { display: flex; justify-content: space-between; align-items: baseline; }
.eb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-family: var(--fui); font-size: var(--fs-eb); font-weight: 600; line-height: 1.35; letter-spacing: .08em; text-transform: uppercase; color: var(--ash); margin: 4px 0 6px; }
.eb a { color: var(--accent); }
.eb .i { width: 15px; height: 15px; }
.sub { color: var(--ash); margin: 0 0 4px; }
.ml { font-family: var(--fui); font-size: var(--fs-meta); color: var(--ash); line-height: 1.45; font-variant-numeric: tabular-nums; margin: 0; }
.ml a, .meta a { color: var(--accent); font-weight: 600; }
.meta { color: var(--ash); font-size: 12.5px; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.lede { font-family: var(--fbody); font-size: var(--fs-read); line-height: 1.6; color: var(--ink); margin: 10px 0 4px; }
.desc-h { font-family: var(--fui); font-size: var(--fs-eb); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ash); margin-bottom: 8px; }
.article { white-space: pre-line; font-family: var(--fbody); font-size: var(--fs-read); line-height: 1.6; margin-top: 14px; }
.item-t { font-size: var(--fs-title); line-height: 1.22; letter-spacing: -.015em; margin: 2px 0 8px; }
.faint { color: var(--faint); }
.center { text-align: center; }
.fine { font-size: 12.5px; line-height: 1.5; color: var(--ash); text-align: center; margin: 14px 4px; }
.fine.left { text-align: left; margin: 10px 2px; }
.fine a, .note-soft a, .paynote a.under { color: var(--accent); font-weight: 600; }
.demo { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 3px 8px; border-radius: 99px; margin-bottom: 10px; }
.demo.mini { font-size: 10px; padding: 2px 6px; margin: 0 0 0 6px; vertical-align: 1px; }
/* словесный знак: Woo — Onest, Mind — курсив Cormorant (как на карточках для сторис) */
.wmark { display: inline-flex; align-items: baseline; gap: 1px; line-height: 1; color: var(--ink); }
.wmark b { font-family: var(--fui); font-weight: 700; font-size: 1em; letter-spacing: -.01em; }
.wmark i { font-family: var(--fdisp); font-style: italic; font-weight: 600; font-size: 1.14em; color: var(--accent); }

/* ---------- иконки: линейные, 24 px, обводка 1.7 (icons.js) ---------- */
.i { width: 1.2em; height: 1.2em; flex: none; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.22em; }
.i.lg { width: 40px; height: 40px; stroke-width: 1.4; }
a .i.arr, .tile-link .arr { width: 18px; height: 18px; color: var(--faint); margin-left: auto; flex: none; }
.more-link, .under, .q-link { display: inline-flex; align-items: center; gap: 2px; }
.more-link .i, .under .i, .q-link .i, .pill-cta .i { width: 16px; height: 16px; }
.more-link { font-family: var(--fui); font-size: 13px; font-weight: 600; color: var(--accent); flex: none; min-height: 44px; }
.under { margin-top: 8px; color: var(--accent); font-weight: 600; font-size: 14px; }

/* ---------- кнопки: короткий отклик; градиент --btn — только у главного действия экрана ---------- */
.btn { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; min-height: 46px; padding: 13px 16px; border-radius: var(--r-s);
  font-family: var(--fui); font-weight: 600; font-size: 15px; line-height: 1.25; text-align: center; transition: transform var(--d1) var(--ease), box-shadow var(--d2), opacity var(--d2); }
.btn:active { transform: scale(.97); }
.btn .i { width: 18px; height: 18px; }
.btn:disabled, .btn[disabled] { opacity: .55; cursor: default; transform: none; }
.btn.primary { background: var(--btn); color: var(--on-btn); box-shadow: var(--glow); }
.btn.ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--edge); }
.btn.ghost .i { color: var(--accent); }
.btn.ghost.on { color: var(--accent); }
.btn.danger { background: none; color: var(--danger); box-shadow: inset 0 0 0 1px rgba(var(--c-dan),.45); }
.actions { display: flex; flex-direction: column; gap: 8px; margin: 18px 0; }
.actions.row2 { flex-direction: row; }
.actions.row2 .btn { flex: 1; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.sm-btn, .q-adm button { min-height: 36px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); font-weight: 600; font-size: 13px; color: var(--accent); flex: none; }

/* ---------- пилюли, фильтры, сегменты: выбранное спокойно (тёплая подложка и тонкая рамка), не градиентом ---------- */
.pillrow { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 10px 15px; border-radius: 999px; font-family: var(--fui); font-size: 14px; font-weight: 600; color: var(--ink);
  background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--edge); transition: transform var(--d1) var(--ease), box-shadow var(--d2), color var(--d2); }
.pill .i { width: 18px; height: 18px; }
.pill.on { color: var(--accent); box-shadow: inset 0 0 0 1px var(--hair); }
.pill.on .i { fill: rgba(var(--c-rose),.18); }
.pill-cta { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-top: 10px; padding: 10px 14px 10px 16px; border-radius: 999px;
  background: var(--btn); color: var(--on-btn); font-family: var(--fui); font-weight: 600; font-size: 13.5px; box-shadow: var(--glow); }
.chips { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.chips.pills { margin: 14px -16px 0; padding: 2px 16px 4px; scroll-padding: 0 16px; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 16px; border-radius: 999px; font-family: var(--fui); font-size: 13.5px; font-weight: 600;
  color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--edge); transition: background-color var(--d2) var(--ease), box-shadow var(--d2), color var(--d2); }
.chip .i { width: 16px; height: 16px; color: var(--accent); }
.chip.fnd-chip { color: var(--accent); box-shadow: inset 0 0 0 1px var(--hair); }
.chip.on, .seg a.on, .seg button.on, .scale10 button.on { background: rgba(var(--c-acc),.16); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair); font-weight: 600; }
.seg { display: flex; gap: 2px; margin: 14px 0; padding: 4px; border-radius: var(--r-s); background: var(--surface-2); }
.seg.small { margin: 8px 0; }
.seg.speeds button { padding: 8px 1px; font-size: 12px; letter-spacing: -.01em; }   /* 7 скоростей до 3× (25.11) */
.seg a, .seg button { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 6px; border-radius: 10px;
  font-family: var(--fui); font-size: 13px; font-weight: 600; line-height: 1.25; color: var(--ash); text-align: center; cursor: pointer; transition: background-color var(--d2) var(--ease), color var(--d2); }
.seg button .i, .seg a .i { width: 15px; height: 15px; margin-right: 5px; flex: none; }
.seg a small, .seg button small { font-weight: 500; opacity: .85; }
.seg.tabs4 a { flex-direction: column; gap: 1px; line-height: 1.15; padding: 7px 2px; font-size: 12.5px; }
.seg.tabs4 small { font-size: 11px; opacity: .8; font-weight: 600; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-family: var(--fui); font-size: 12.5px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 3px 9px; border-radius: 99px; }
.tag .i { width: 14px; height: 14px; }
.tag.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }

/* ---------- поле: спокойное, тонкая рамка; при наборе — мягкая подсветка ---------- */
.search { width: 100%; min-height: 48px; padding: 12px 16px; border-radius: var(--r-s); border: 0; outline: none; color: var(--ink); font-family: var(--fbody); font-size: 16px;
  background: var(--field); box-shadow: 0 0 0 1px var(--edge); transition: box-shadow var(--d2); }
.search:focus { box-shadow: 0 0 0 1.5px var(--hair), 0 0 0 4px rgba(var(--c-acc),.1); }
.search::placeholder { color: var(--faint); }
textarea.search { resize: vertical; min-height: 48px; line-height: 1.5; }
.search-field { position: relative; display: block; margin-top: 12px; }
.search-field > .i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--accent); width: 19px; height: 19px; pointer-events: none; z-index: 1; }
.search-field .search { padding-left: 44px; background: var(--surface); }
a.search-link { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 15px; border-radius: var(--r-s); color: var(--faint); font-family: var(--fui); font-size: 15px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--edge); transition: box-shadow var(--d2); }
a.search-link:active { box-shadow: inset 0 0 0 1.5px var(--hair); }
a.search-link .i { color: var(--ash); width: 19px; height: 19px; }
a.search-link > span { color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl { display: block; font-family: var(--fui); font-size: 13px; font-weight: 600; color: var(--ink); margin: 14px 0 6px; }
.trow-in { display: flex; gap: 8px; }
.trow-in .search { flex: 1; }
.trow-in .btn { width: auto; flex: none; padding: 10px 12px; font-size: 13px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: var(--ink); margin-top: 8px; cursor: pointer; }
.agree input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--accent); }
.agree a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.switch { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 99px; background: rgba(var(--c-hi),.18); position: relative; flex: none;
  transition: background var(--d2); cursor: pointer; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform var(--d2) var(--ease); box-shadow: 0 1px 3px rgb(0 0 0 / .2); }
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(20px); }
.switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- списки: миниатюра, название, строка сведений; без рамок, тонкие разделители ---------- */
.list { display: flex; flex-direction: column; }
.row { display: flex; gap: 13px; align-items: center; min-height: 56px; padding: 10px 2px; }
.list > .row + .row, .list > .result + .result { border-top: 1px solid var(--line); }
.row .body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.row .t { font-family: var(--fhead); font-weight: 550; font-size: var(--fs-card); line-height: 1.3; color: var(--ink); overflow-wrap: break-word;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.row .ml { font-size: 12.5px; }
.row-n { font-family: var(--fui); font-weight: 600; font-size: 12.5px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.mk { flex: none; color: var(--faint); display: grid; place-items: center; width: 24px; }
.mk .i { width: 18px; height: 18px; }
.mk.on { color: var(--accent); }
.row.contact .phone { font-family: var(--fui); font-size: 17px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.row.trow { padding: 12px 4px; }
.row.trow .body { padding-left: 2px; }
.row.locked { opacity: .55; }

/* ---------- поверхности: спокойная --surface для карточек и текста, стекло — только у плавающего ---------- */
.desc { background: var(--surface); border-radius: var(--r-m); padding: 14px 16px; box-shadow: var(--shadow); }
.desc p { font-family: var(--fbody); }
.desc.set { margin-top: 10px; }
.desc.form .search, .desc .search { background: var(--field); }
.desc .ao { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.desc .ao:first-of-type { border-top: 0; }
.desc .ao span { flex: 1; }
h2 + .ao, .sub + .ao, .ao + .ao { display: flex; gap: 10px; padding: 8px 0; }
.note-soft { background: var(--accent-soft); border-radius: var(--r-s); padding: 12px 14px; margin-top: 14px; font-size: 14px; line-height: 1.5; }
.note-soft .i { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.gcard { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; padding: 16px; border-radius: var(--r-l); color: var(--ink);
  background: radial-gradient(70% 90% at 100% 0%, var(--glow-a), transparent 70%), var(--surface); box-shadow: var(--shadow); }
.gcard .eb { margin: 0; color: var(--accent); }
.gcard-t { font-family: var(--fhead); font-weight: 650; font-size: var(--fs-card-l); line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; }
.gcard-t em { color: var(--accent); }
.gcard .rail { margin: 4px 0; }
.gcard.marathon { background: radial-gradient(70% 90% at 100% 0%, hsl(var(--h) 60% 62% / .22), transparent 70%), var(--surface); }
/* плитка-ссылка: значок, название, подпись, стрелка; подряд в .glist — одной группой, как в настройках iOS */
.tile-link { position: relative; display: flex; gap: 12px; align-items: center; min-height: 60px; margin-top: 12px; padding: 12px 14px; border-radius: var(--r-m);
  background: var(--surface); box-shadow: var(--shadow); }
.tile-link .tb { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.tile-link b { font-family: var(--fui); font-weight: 600; font-size: 15px; line-height: 1.3; }
.tile-link .sub { font-size: 13px; line-height: 1.4; margin: 0; }
.glist { margin-top: 12px; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.glist > .tile-link { margin: 0; border-radius: 0; background: none; box-shadow: none; }
.glist > .tile-link + .tile-link::before { content: ""; position: absolute; left: 64px; right: 0; top: 0; height: 1px; background: var(--line); }
.ti { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--accent); background: var(--surface-2); }
.ti .i { width: 20px; height: 20px; }
.ctiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ctile { display: flex; flex-direction: column; gap: 3px; min-height: 104px; padding: 14px; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow); min-width: 0; }
.ctile > .i { width: 24px; height: 24px; color: var(--accent); margin-bottom: 8px; }
.ctile b { font-family: var(--fui); font-weight: 600; font-size: 14.5px; line-height: 1.25; }
.ctile .sub { font-size: 12.5px; line-height: 1.35; margin: 0; }
@media (min-width: 720px) { .ctiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.empty-card { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow); font-size: 14px; line-height: 1.5; color: var(--ash); }
.empty-card b { color: var(--ink); }
.empty-card > .i { width: 24px; height: 24px; color: var(--accent); margin-top: 1px; }

/* ---------- пустые, служебные экраны и ошибки: значок в мягком круге, заголовок, одна фраза, кнопки ---------- */
div.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 44px 16px 36px; color: var(--ash); }
.em-ic, .big-e .i.lg, .locked-badge .i.lg { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; color: var(--accent);
  background: radial-gradient(circle at 50% 38%, rgba(var(--c-acc),.18), rgba(var(--c-acc),.05) 72%); box-shadow: inset 0 0 0 1px rgba(var(--c-acc),.2), 0 10px 30px rgba(var(--c-mag),.12); }
.em-ic { margin-bottom: 4px; }
.em-ic .i { width: 28px; height: 28px; stroke-width: 1.5; }
.big-e .i.lg, .locked-badge .i.lg { width: 80px; height: 80px; padding: 22px; stroke-width: 1.5; }
.em-t { font-family: var(--fhead); font-weight: 650; font-size: var(--fs-h2); line-height: 1.25; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
div.empty p { margin: 0; max-width: 34ch; font-family: var(--fbody); font-size: 15px; line-height: 1.55; color: var(--ash); }
.em-act { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.em-act .btn { width: auto; padding: 12px 22px; }
.big-e { display: flex; justify-content: center; margin: 26px 0 12px; }
.locked-badge { display: flex; justify-content: center; margin-bottom: 16px; }
/* загрузка: заглушки размером с содержимое, мягкое мерцание (с космосом — туманность, cosmos.css) */
.skeleton { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.skeleton i { display: block; height: 64px; border-radius: var(--r-m); background: linear-gradient(90deg, var(--surface), var(--surface-2), var(--surface)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton i.s { height: 40px; width: 60%; }
.boot-skel { display: flex; flex-direction: column; gap: 12px; padding-top: 26px; }
.boot-skel i { display: block; border-radius: var(--r-m); background: linear-gradient(90deg, var(--surface), var(--surface-2), var(--surface)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.boot-skel .bs-t { width: 62%; height: 32px; border-radius: 10px; }
.boot-skel .bs-s { height: 48px; border-radius: var(--r-s); }
.boot-skel .bs-f { height: 58px; }
.boot-skel .bs-c { height: 176px; border-radius: var(--r-l); }
.boot-skel .bs-r { height: 156px; width: 48%; }

/* ---------- лист снизу: устойчивая поверхность (в нём пишут), ручка сверху, крестик 44 px ---------- */
#sheet { display: none; }
#sheet.open { display: block; position: fixed; inset: 0; z-index: 50; }
.sheet-bg { position: absolute; inset: 0; background: var(--scrim); animation: fade var(--d2); }
.sheet-box { position: absolute; left: 0; right: 0; bottom: 0; max-width: 640px; max-height: 92vh; margin: 0 auto; overflow: auto; overscroll-behavior: contain;
  padding: 26px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: var(--raised); border: 1px solid var(--edge); border-bottom: 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,.2); }
.sheet-box::before { content: ""; position: absolute; top: 8px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 4px; background: rgba(var(--c-hi),.2); }
.sheet-box:focus { outline: none; }
.sheet-box h3 { margin: 2px 52px 4px 0; font-family: var(--fhead); font-weight: 650; font-size: 20px; line-height: 1.25; letter-spacing: -.01em; }
.sheet-box .search { background: var(--field); }
.sheet-x { position: absolute; right: 10px; top: 12px; width: 44px; height: 44px; border-radius: 99px; display: grid; place-items: center; background: var(--surface-2); color: var(--ash); }
.sheet-x .i { width: 18px; height: 18px; }
.lines { max-height: 220px; overflow: auto; display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.line { text-align: left; background: var(--surface); border-radius: 12px; padding: 9px 11px; font-size: 13.5px; line-height: 1.45; box-shadow: inset 0 0 0 1px var(--line); }
.line.near { box-shadow: inset 0 0 0 1px var(--hair); }
.line.on { box-shadow: inset 0 0 0 2px var(--accent); }
.line .ht { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.card-prev { display: flex; justify-content: center; margin: 12px 0; }
.card-prev img { width: min(62vw, 260px); aspect-ratio: 9 / 16; border-radius: var(--r-m); box-shadow: var(--shadow-card); background: var(--surface-2); }

/* ---------- всплывающее сообщение: стекло над панелью вкладок (и над мини-плеером) ---------- */
#toast { position: fixed; left: 50%; bottom: calc(84px + max(env(safe-area-inset-bottom), var(--tgb))); z-index: 70; transform: translate(-50%, 12px);
  max-width: calc(100% - 32px); padding: 11px 18px; border-radius: 999px; text-align: center; font-family: var(--fui); font-size: 14px; font-weight: 500; line-height: 1.35;
  color: var(--ink); background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid var(--edge); box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity var(--d2) var(--ease), transform var(--d2) var(--ease); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
body.has-mini #toast { bottom: calc(146px + max(env(safe-area-inset-bottom), var(--tgb))); }
body.bare #toast, body.psy-chat #toast { bottom: calc(24px + env(safe-area-inset-bottom)); }

/* ---------- нижняя панель вкладок: плавающее стекло, безопасная зона снизу; выбранная — мягкая подложка под значком ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: space-around;
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-top: 1px solid var(--edge); box-shadow: 0 -8px 28px rgba(0,0,0,.12);
  padding: 5px max(4px, env(safe-area-inset-left)) calc(5px + max(env(safe-area-inset-bottom), var(--tgb))) max(4px, env(safe-area-inset-right)); }
.tabbar a { flex: 1; min-width: 0; min-height: 50px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 2px;
  font-family: var(--fui); font-size: 11px; font-weight: 500; color: var(--faint); transition: color var(--d2) var(--ease); }
.tabbar a.on { color: var(--accent); font-weight: 600; }
.tabbar a > span:last-child { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* крупный текст: подпись в одну строку */
.tabbar .ico { position: relative; width: 52px; height: 28px; border-radius: 999px; display: grid; place-items: center; transition: background-color var(--d2) var(--ease), transform var(--d1) var(--ease); }
.tabbar a.on .ico { background: rgba(var(--c-acc),.14); }
.tabbar a:active .ico { transform: scale(.92); }
.tabbar .ico svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.tabbar a.sos-tab span:last-child { color: var(--sos); }
.tabbar a.sos-tab.on span:last-child { font-weight: 700; }
.tabbar a.sos-tab .ico svg.fill { fill: var(--sos); stroke: var(--sos); }
/* компьютер: панель — плавающая стеклянная полоса шириной с телефон, а не пять значков на 1280 px */
@media (min-width: 720px) {
  .tabbar { left: 50%; right: auto; bottom: 14px; width: min(520px, calc(100% - 32px)); transform: translateX(-50%); border: 1px solid var(--edge); border-radius: 22px;
    padding: 6px 8px; box-shadow: var(--shadow-lg); }
  body { padding-bottom: 96px; }
  #toast { bottom: 96px; }
  body.has-mini { padding-bottom: 160px; }   /* плеер поднят над панелью — запас под ним больше (Codex 22.11) */
  body.has-mini #toast { bottom: 158px; }
}

/* ---------- мини-плеер «Только звук»: стекло над панелью вкладок ---------- */
#mini-pl { position: fixed; left: 8px; right: 8px; bottom: calc(66px + max(env(safe-area-inset-bottom), var(--tgb))); z-index: 20; max-width: 624px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 8px; border-radius: var(--r-m); background: var(--glass);
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 0 0 1px var(--edge), var(--shadow-lg); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
#mini-pl .mp-t { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; font-family: var(--fui); font-weight: 600; font-size: 14px; min-height: 44px; }
#mini-pl .mp-t > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#mini-pl .mp-cv { width: 34px; border-radius: 8px; flex: none; }
#mini-pl button { width: 44px; height: 44px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--btn); color: var(--on-btn); }
#mini-pl button .i { width: 18px; height: 18px; fill: currentColor; stroke-width: 1.3; }
#mini-pl button.mp-x { width: 40px; height: 40px; background: var(--surface-2); color: var(--ash); }
#mini-pl button.mp-x .i { fill: none; stroke-width: 1.8; }
body.has-mini { padding-bottom: calc(136px + max(env(safe-area-inset-bottom), var(--tgb))); }
@media (min-width: 720px) { #mini-pl { bottom: 86px; max-width: 520px; } }

/* ---------- быстрая смена темы: солнце/луна в правом верхнем углу (кнопка #tq, app.js: syncThemeUI) ---------- */
.tq { position: absolute; z-index: 30; top: calc(var(--tgt, 0px) + env(safe-area-inset-top, 0px) + 12px); right: max(12px, calc((100% - var(--view-w)) / 2 + 16px));
  width: 44px; height: 44px; padding: 0; border-radius: 14px; border: 1px solid var(--edge); background: var(--glass); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.tq .i, .chead [data-act="theme-toggle"] .i { width: 19px; height: 19px; }
.tq[hidden], body.psy-chat .tq { display: none; }
#view .tq-pad { padding-right: 52px; }   /* #view — чтобы отступ перебивал собственные padding элемента (баннер 112 в психологе и т. п.) */

/* ---------- обложки: кадр урока в едином тёплом тоне или типографская карточка-замена ---------- */
.cv { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r-s); overflow: hidden; isolation: isolate;
  background: linear-gradient(90deg, rgba(var(--c-hi),.05), rgba(var(--c-hi),.11), rgba(var(--c-hi),.05)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.cv.ok, .cv.nocv, .cv.err { animation: none; }
.cv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: 0; transition: opacity .35s ease; z-index: 1;
  filter: var(--cv-filter); }
.cv.ok img { opacity: 1; }
/* единый тёплый вид кадров: приглушённая насыщенность и чуть тепла (filter), сверху тон soft-light маджента → коралл,
   снизу тень в цвет фона; в «Рассвете» тон слабее, а снизу светлая дымка */
:root { --cv-filter: saturate(.62) sepia(.2) contrast(1.06) brightness(.93); --cv-tone: linear-gradient(160deg, rgba(var(--c-mag),.55), rgba(var(--c-acc),.42));
  --cv-shade: linear-gradient(to top, rgba(var(--c-fade),.55) 0%, rgba(var(--c-fade),0) 55%); }
:root[data-theme="light"] { --cv-filter: saturate(.74) sepia(.12) contrast(1.02) brightness(1.03); --cv-tone: linear-gradient(160deg, rgba(var(--c-mag),.3), rgba(var(--c-acc),.26));
  --cv-shade: linear-gradient(to top, rgba(var(--c-fade),.28) 0%, rgba(var(--c-fade),0) 45%); }
.cv.ok::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: soft-light; background: var(--cv-tone); }
.cv.ok::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: var(--cv-shade); }
/* карточка-замена (нет кадра или не загрузился): «бровь» и название на ауре раздела; в миниатюрах — буквица */
.cv-fb { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 7px; padding: 12px 12px 13px; color: var(--ink);
  container-type: inline-size;
  background: radial-gradient(95% 70% at 88% 6%, hsl(var(--h) 62% 62% / .34), transparent 70%), radial-gradient(85% 70% at 6% 100%, var(--glow-b), transparent 70%), radial-gradient(70% 60% at 100% 100%, var(--glow-a), transparent 70%), var(--surface-2); }
:root[data-theme="light"] .cv-fb { background: radial-gradient(95% 70% at 88% 6%, hsl(var(--h) 85% 86% / .85), transparent 70%), radial-gradient(85% 70% at 6% 100%, var(--glow-b), transparent 70%), radial-gradient(70% 60% at 100% 100%, var(--glow-a), transparent 70%), var(--surface-2); }
.cv:not(.ok):not(.nocv):not(.err) .cv-fb { opacity: 0; }
.cv-k { display: flex; align-items: center; gap: 5px; font-family: var(--fui); font-size: 10.5px; font-weight: 600; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; color: var(--ash); }
.cv-k .i { width: 13px; height: 13px; color: var(--accent); }
.cv-tt { font-family: var(--fhead); font-weight: 650; font-size: 16px; font-size: clamp(13px, 10cqi, 34px); line-height: 1.15; letter-spacing: -.01em; color: var(--ink); text-wrap: balance;
  display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: break-word; }
.cv-t-text .cv-tt { font-family: var(--fdisp); font-style: italic; font-weight: 600; font-size: clamp(15px, 12cqi, 40px); line-height: 1.05; letter-spacing: 0; }   /* текст — редкий акцент антиквой, как цитата */
.cv-m { display: none; font-family: var(--fhead); font-weight: 600; line-height: 1; color: var(--accent); font-size: 26px; font-size: 46cqi; }
:is(.cv.th, .mp-cv, .next-cv) .cv-fb { align-items: center; justify-content: center; padding: 0; }
:is(.cv.th, .mp-cv, .next-cv) :is(.cv-k, .cv-tt) { display: none; }   /* название уже рядом — в обложке-замене только буквица */
:is(.cv.th, .mp-cv, .next-cv) .cv-m { display: block; }
/* просмотрено: тонкая полоса прогресса по низу обложки */
.cv-p { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 3; background: rgba(255,255,255,.22); }
.cv-p::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--rail); }
.cv.th { width: 56px; flex: none; border-radius: var(--r-xs); }
.th.tp, .th.ic { width: 56px; aspect-ratio: 4 / 5; flex: none; border-radius: var(--r-xs); display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--accent); }
.th.ic .i { width: 24px; height: 24px; }
.tp-n { font-family: var(--fui); font-weight: 600; font-size: 22px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.tp-k { font-family: var(--fui); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ash); margin-top: 3px; }
.item-hero .item-cover { display: block; width: min(100%, 300px); height: auto; margin: 0 auto 18px; border-radius: var(--r-l); box-shadow: var(--shadow-card); }

/* ---------- ленты и сетки: каталог, разделы, практики ---------- */
.rb { margin-top: 26px; }
.rb-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rb-h h2 { margin: 0 0 12px; }
.rb-sub { margin: -6px 0 12px; }
.rb-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 2.3); gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding: 0 16px; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
.rb-row::-webkit-scrollbar { display: none; }
.rb-row > * { scroll-snap-align: start; }
.rb-row.wide { grid-auto-columns: 84%; }
.grid4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; margin-top: 16px; }
.grid4.pgrid { gap: 10px; }
@media (min-width: 720px) { :root { --view-w: 980px; } .grid4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rb-row { grid-auto-columns: calc((100% - 48px) / 4.3); } .rb-row.wide { grid-auto-columns: 46%; } }
@media (min-width: 980px) { .grid4 { grid-template-columns: repeat(5, minmax(0, 1fr)); } .grid4.pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* обычная карточка: обложка и название под ней, без рамки */
.c4 { display: flex; flex-direction: column; min-width: 0; position: relative; }
.c4-t { font-family: var(--fhead); font-weight: 550; font-size: var(--fs-card); line-height: 1.3; margin-top: 9px; color: var(--ink); overflow-wrap: break-word;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.c4 .ml { font-size: 12.5px; margin-top: 3px; }
.c4-n { position: absolute; top: 8px; left: 8px; z-index: 4; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center;
  font-family: var(--fui); font-weight: 600; font-size: 12.5px; color: #fff; font-variant-numeric: tabular-nums; background: rgba(20,12,20,.5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
/* «закатная линия» — фирменная деталь: тонкая, показывает настоящее состояние (фундамент, просмотр, глава, практика) */
.sun, .rail { display: block; height: 3px; border-radius: 3px; background: var(--rail-track); overflow: hidden; }
.sun i, .rail i { display: block; height: 100%; min-width: 3px; border-radius: inherit; background: var(--rail); transition: width var(--d3) var(--ease); }
.rail i[style*="width:0%"], .rail i[style*="width: 0%"] { min-width: 0; }
.progress-line { display: flex; align-items: center; gap: 12px; margin: 12px 0 14px; color: var(--ash); font-family: var(--fui); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.progress-line .rail { flex: 1; }
.qbar { margin: 8px 0 22px; }

/* ---------- главная «Тёплый свет»: приветствие, поиск, фундамент, «Продолжить», «В вашем ритме» ---------- */
.home-top { display: flex; flex-direction: column; gap: 12px; container-type: inline-size; }
.ht-l { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.greet { margin: 2px 0 2px; }
.greet .brand { margin: 0 0 6px; font-family: var(--fui); font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--accent); }
.greet h1 { margin: 0; }
.greet h1 em { font-style: normal; color: inherit; }
/* строка фундамента: значок, «Фундамент клуба» с линией, «3 из 20», стрелка — весь маршрут открывается по нажатию */
.fstrip { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 12px 10px 14px; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow); }
.fs-ic { width: 32px; height: 32px; flex: none; display: grid; place-items: center; color: var(--accent); }
.fs-ic .i { width: 22px; height: 22px; }
.fs-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.fs-b b { font-family: var(--fui); font-weight: 600; font-size: 15px; line-height: 1.25; }
.fs-n { flex: none; font-family: var(--fui); font-size: var(--fs-meta); color: var(--ash); font-variant-numeric: tabular-nums; }
.fstrip .arr { margin-left: 0; }
/* «Продолжить»: обложка слева, название, сведения, линия просмотра, кнопка градиентом — главное действие экрана */
.nextc { display: grid; grid-template-columns: minmax(104px, 34%) 1fr; min-height: 176px; border-radius: var(--r-l); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.next-cv { aspect-ratio: auto; height: 100%; min-height: 176px; border-radius: 0; }
.next-cv img { object-position: 50% 20%; }
.next-b { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px 14px 14px 16px; }
.next-b .eb { margin: 0; color: var(--accent); }
.next-t { font-family: var(--fhead); font-weight: 650; font-size: var(--fs-card-l); line-height: 1.25; letter-spacing: -.01em; color: var(--ink); text-wrap: balance;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: break-word; }
.next-sun { margin: 2px 0; }
.next-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: auto; padding: 10px 16px 10px 13px; border-radius: var(--r-s);
  background: var(--btn); color: var(--on-btn); font-family: var(--fui); font-weight: 600; font-size: 14px; line-height: 1.2; font-variant-numeric: tabular-nums; box-shadow: var(--glow);
  transition: transform var(--d1) var(--ease); }
.next-btn .i { width: 16px; height: 16px; fill: currentColor; stroke-width: 1.2; }
:is(.nextc, .fnext):active .next-btn { transform: scale(.96); }
/* узкий телефон или крупный текст: обложка уже, на кнопке только время («Продолжить» уже написано сверху) */
@container (max-width: 340px) {
  .nextc { grid-template-columns: 96px 1fr; }
  .next-b { padding: 12px 12px 12px 14px; }
  .nb-pre { display: none; }
}
/* «В вашем ритме»: плитки 2 в ряд — практика, маршрут, марафон, живой эфир */
.rhythm .rb-h .ml { flex: none; }
.rgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rgrid.one { grid-template-columns: 1fr; }
.rtile { display: flex; flex-direction: column; gap: 6px; min-height: 156px; padding: 14px; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow); min-width: 0; }
.rtile.rt-prac { background: var(--surface-2); }
.rt-ic { color: var(--accent); }
.rt-ic .i { width: 24px; height: 24px; }
.rtile .eb { margin: 4px 0 0; color: var(--accent); letter-spacing: .06em; }
.rt-t { font-family: var(--fhead); font-weight: 600; font-size: var(--fs-card); line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: break-word; }
.rtile .ml { margin-top: auto; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rtile .sun { margin: 2px 0; }
/* темы — плитки 2 в ряд: название и число эфиров */
.tpills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tpill { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; min-height: 76px; padding: 12px 14px; border-radius: var(--r-s); background: var(--surface); box-shadow: var(--shadow);
  font-family: var(--fui); font-size: 15px; font-weight: 550; line-height: 1.3; color: var(--ink); overflow-wrap: break-word; min-width: 0; }
.tpill small { font-size: 12.5px; font-weight: 400; color: var(--ash); font-variant-numeric: tabular-nums; }
@media (min-width: 720px) { .tpills { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* «Эфир недели»: обложка и цитата антиквой (редкий акцент) */
.wk { display: grid; grid-template-columns: 38% 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow); }
.wk-cv { border-radius: var(--r-s); }
@media (min-width: 720px) { .wk { grid-template-columns: 180px 1fr; max-width: 640px; } }
.wk-b { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-right: 4px; }
.wk-b .eb { margin: 0; }
.wk-q { font-family: var(--fdisp); font-style: italic; font-weight: 600; font-size: 21px; line-height: 1.15; color: var(--ink); }
.wk-t { font-family: var(--fhead); font-weight: 600; font-size: 14.5px; line-height: 1.3; color: var(--ink); }
/* «В клубе» и итоги месяца */
.wrapped-banner { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; padding: 14px 16px; border-radius: var(--r-l);
  font-weight: 600; color: var(--on-btn); background: var(--btn); box-shadow: var(--glow); }
.wrapped-banner span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.wrapped-banner .arr { flex: none; font-size: 13px; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.85); color: #6a2244; }
.quote-day { position: relative; overflow: hidden; padding: 18px 18px 14px; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow); }
.quote-day::before { content: ""; position: absolute; inset: auto -40px -60px auto; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--c-rose),.28), transparent 70%); pointer-events: none; }
.quote-day blockquote { margin: 0; font-family: var(--fdisp); font-style: italic; font-weight: 500; font-size: 23px; line-height: 1.22; }
.qd-src { margin-top: 10px; font-size: 13px; color: var(--ash); }
.qd-src a { color: var(--accent); font-weight: 600; }
.qd-act { margin-top: 12px; }
/* компьютер: приветствие, поиск и фундамент слева, «Продолжить» справа; плитки ритма в 4 колонки */
@media (min-width: 900px) {
  .home-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-items: end; }
  .nextc { min-height: 220px; }
  .next-cv { min-height: 220px; }
  .next-t { font-size: 21px; }
  .rgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- курсы: коллаж 2+1 (когда раздел включён) ---------- */
.ccard { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.coll { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; aspect-ratio: 4 / 3; border-radius: var(--r-m); overflow: hidden; box-shadow: var(--shadow-card); }
.coll .cv, .chead-coll .cv { aspect-ratio: auto; border-radius: 0; height: 100%; }
.coll .cl0, .chead-coll .cl0 { grid-row: 1 / 3; }
.ccard-b { display: flex; flex-direction: column; gap: 4px; }
.ccard-b .eb { margin: 0; }
.ccard-t { font-family: var(--fhead); font-weight: 650; font-size: var(--fs-card-l); line-height: 1.25; letter-spacing: -.01em; color: var(--ink); }
.ccard .rail { margin-top: 4px; }
.chead-coll { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; aspect-ratio: 16 / 11; max-width: 560px; border-radius: var(--r-l); overflow: hidden; margin-bottom: 16px; box-shadow: var(--shadow-card); }

/* ---------- практики: плитка без картинки — значок, тип и длительность, название, ясное действие ---------- */
.ptile { display: flex; flex-direction: column; gap: 6px; min-height: 168px; padding: 14px; border-radius: var(--r-m); position: relative; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); }
.ptile-ic { color: var(--accent); }
.ptile-ic .i { width: 24px; height: 24px; }
.ptile .eb { margin: 4px 0 0; color: var(--accent); letter-spacing: .06em; }
.ptile .ml { margin-top: auto; }
.ptile .ml .i { width: 15px; height: 15px; margin-right: 4px; color: var(--green); }
.ptile-t { font-family: var(--fhead); font-weight: 600; font-size: var(--fs-card); line-height: 1.3; overflow-wrap: break-word; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.safety-note b { color: var(--ink); }

/* ---------- нумерованные шаги: практика, курс, маршрут, марафон ---------- */
.nsteps, .nlist, .flist { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; }
.nsteps li { display: grid; grid-template-columns: 40px 1fr; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); font-family: var(--fbody); font-size: 15px; line-height: 1.55; }
.nsteps li:first-child { border-top: 0; }
.nsteps .no, .nlist .no { font-family: var(--fui); font-weight: 600; font-size: 15px; line-height: 1.5; color: var(--accent); font-variant-numeric: tabular-nums; }
.nlist li > a, .nlist li > .nrow { position: relative; display: grid; grid-template-columns: 40px 1fr auto; gap: 8px; align-items: start; padding: 13px 8px 13px 10px; border-radius: 14px; }
.nlist li + li > a, .nlist li + li > .nrow { border-top: 1px solid var(--line); border-radius: 0; }
.nlist .nb, .flist .nb { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.nlist .nt { font-family: var(--fhead); font-weight: 550; font-size: var(--fs-card); line-height: 1.35; color: var(--ink); }
.nlist .why { font-size: 12.5px; color: var(--accent); }
.nlist li.now > a, .flist li.now > a { background: rgba(var(--c-acc),.08); border-radius: 14px; }
.nlist li.now > a::before, .flist li.now > a::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--rail); }
.nlist li.locked { opacity: .5; }
.nlist li.ok .nt, .flist li.ok .nt { color: var(--ash); }
.step-card { margin-top: 12px; padding: 14px 16px; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow); }
.step-card.cur { box-shadow: 0 0 0 1.5px var(--hair), var(--shadow); }
.step-card.wait { opacity: .62; }
.step-card .sc-h { display: flex; align-items: center; gap: 10px; font-family: var(--fui); font-weight: 650; font-size: 16px; margin-bottom: 6px; }
.step-card .sc-h .n { font-family: var(--fui); font-weight: 600; font-size: 16px; color: var(--accent); font-variant-numeric: tabular-nums; }
.step-card.ok .sc-h .n { color: var(--green); }
.step-card .fl { margin: 12px 0 6px; }
.step-card .btn.primary { margin-top: 12px; }
.step-card .row { padding: 8px 0; }
.step-card textarea.search { background: var(--field); }
.pr-t { font-weight: 650; margin-bottom: 2px; }
/* таймер практики кольцом */
.ptimer.ring { position: relative; width: 168px; height: 168px; margin: 18px auto 6px; }
.ring-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(var(--c-hi),.1); stroke-width: 4; }
.ring-fg { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; }
.ptimer.ring:not(.run) .ring-fg { stroke-dashoffset: 0; opacity: .35; }
.ring-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.ring-in .btn { width: auto; min-height: 40px; padding: 7px 14px; font-size: 13px; border-radius: 999px; }
.ring-t { font-family: var(--fui); font-weight: 300; font-size: 34px; letter-spacing: -.01em; font-variant-numeric: lining-nums tabular-nums; }

/* ---------- экран фундамента: путь (cosmos.js) или линия, следующий эфир, список 01–20 ---------- */
.fnext { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 4px; padding: 16px; border-radius: var(--r-l); background: var(--surface);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--edge); }
.fnext .eb { margin: 0; color: var(--accent); }
.fnext-t { font-family: var(--fhead); font-weight: 650; font-size: var(--fs-card-l); line-height: 1.25; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.fnext .next-btn { margin-top: 8px; align-self: stretch; justify-content: center; }
.fnext.done .more-link { margin-top: 4px; }
.flist { margin-top: 18px; }
.flist li > a { position: relative; display: grid; grid-template-columns: 30px 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 6px 10px 8px; border-radius: 14px; }
.flist li + li > a { border-top: 1px solid var(--line); border-radius: 0; }
.flist .no { font-family: var(--fui); font-weight: 600; font-size: 14px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.flist .nt { font-family: var(--fhead); font-weight: 550; font-size: var(--fs-card); line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.flist li.now + li > a { border-top-color: transparent; }
/* компьютер: слева заголовок, путь и следующий эфир (закреплены при прокрутке), справа список */
@media (min-width: 980px) {
  .fpage { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 44px; align-items: start; }
  .fpage .flist { margin-top: 6px; }
}
@media (min-width: 980px) and (min-height: 860px) { .fp-l { position: sticky; top: calc(16px + var(--tgt)); } }   /* закреплять, только если столбец помещается над панелью */

/* ---------- экран эфира: плеер 9:16 со своими элементами; на компьютере видео слева, текст справа ---------- */
.ip-path { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 8px 0 2px; }
.ip-path a { display: flex; flex-direction: column; gap: 6px; min-width: 132px; flex: 1 1 132px; max-width: 260px; padding: 4px 0; font-family: var(--fui); font-size: var(--fs-meta); font-weight: 600; color: var(--accent); }
@media (min-width: 980px) {
  .ip.media { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 36px; align-items: start; }
  .ip.media .ip-media { position: sticky; top: calc(16px + var(--tgt)); }
  .ip.media .vp-frame { width: min(100%, calc((100vh - 140px) * 9 / 16)); }   /* по высоте окна, без обрезки кадра */
  .ip.media .ip-body > .eb:first-child { margin-top: 0; }
}
/* действия эфира — один ряд значков с подписями, каждая зона ≥ 44 px */
.item-acts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin: 16px 0 4px; }
.item-acts .pill { flex-direction: column; justify-content: center; gap: 5px; min-height: 66px; padding: 10px 4px 9px; border-radius: var(--r-s); font-size: 12px; font-weight: 600;
  line-height: 1.2; text-align: center; overflow-wrap: anywhere; hyphens: auto; }
.item-acts .pill .i { width: 21px; height: 21px; color: var(--accent); }
.item-acts .pill.on { background: var(--surface-2); }
/* плеер: в покое не выше ~55 % экрана, на весь экран — кнопкой */
.vp { margin-bottom: 16px; }
.vp-frame { --ar: 9 / 16; position: relative; aspect-ratio: var(--ar); width: min(100%, calc(min(55vh, 560px) * var(--ar))); margin: 0 auto;
  border-radius: var(--r-l); overflow: hidden; background: #000; box-shadow: var(--shadow-card), 0 0 0 1px var(--glass-edge); isolation: isolate; }
.vp-frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.vp-frame .vp-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.vp-wait { background: linear-gradient(90deg, var(--card), color-mix(in srgb, var(--card) 60%, var(--bg2)), var(--card)); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
.vp-big { position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%); width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1px rgba(255,255,255,.38), 0 10px 30px rgba(0,0,0,.25);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); transition: opacity .25s, transform .2s; }
.vp-big .i { width: 28px; height: 28px; fill: currentColor; stroke-width: 1; margin-left: 4px; }
.vp-frame.playing .vp-big { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.9); }
/* панель плеера в две строки: перемотка сверху во всю ширину, кнопки снизу — помещается и в кадр 230 px */
.vp-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; padding: 30px 10px 8px;
  background: linear-gradient(to top, rgba(10,4,8,.72), rgba(10,4,8,.38) 55%, transparent); color: #fff; transition: opacity .3s; }
.vp-frame.playing:not(.ui) .vp-bar { opacity: 0; pointer-events: none; }
.vp-bar input.seek { order: -1; flex: 1 1 100%; min-width: 0; }
.vp-bar #vp-dur { margin-right: auto; }
.vp-bar #vp-cur::after { content: " /"; opacity: .6; }
.vp-t { font-family: var(--fui); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; flex: none; opacity: .92; }
.vp-ib { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.vp-ib .i { width: 19px; height: 19px; }
#vp-pp .i { fill: currentColor; stroke-width: 1.4; }
.vp-sp { flex: none; padding: 5px 10px; border-radius: 999px; font-family: var(--fui); font-size: 12px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums;
  background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
/* тонкая полоса перемотки: 3 px, градиент заполнения, кружок 12 px */
input.seek { -webkit-appearance: none; appearance: none; flex: 1; min-width: 40px; height: 22px; margin: 0; background: transparent; cursor: pointer; --p: 0%; }
input.seek::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg,#b9a3f0,#f08fb4 38%,#ff9d82 70%,#ffc895) 0 / var(--p) 100% no-repeat, rgba(255,255,255,.3); }
input.seek::-moz-range-track { height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); }
input.seek::-moz-range-progress { height: 3px; border-radius: 3px; background: linear-gradient(90deg,#b9a3f0,#f08fb4 38%,#ff9d82 70%,#ffc895); }
input.seek::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4.5px; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.35); }
input.seek::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }
.vp-state { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding: 14px; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow); }
.vp-state[hidden] { display: none; }
.vp-msg { font-size: 14.5px; }
.vp-acts { display: flex; gap: 8px; }
.vp-acts .btn, .vp-state .btn { padding: 11px 8px; font-size: 14px; }
.vp-piece { margin-top: 12px; }
.vp-ctl { margin-top: 6px; }
.vp-fine { margin: 8px 4px 4px; }
/* части эфира — один переключатель (без отдельной кнопки «Часть 2»): подпись и сегменты */
.vp-parts { margin-top: 14px; }
.vp-parts .ml { display: block; margin: 0 2px -2px; }
.vp-parts .seg a { gap: 4px; }
.vp-send { text-align: left; margin: 16px 2px; }
.vp-send button { color: var(--accent); font-weight: 600; font-size: inherit; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
.vp-back { margin-top: 12px; }
/* переход на минуту (без плеера) */
.jump { margin-bottom: 14px; padding: 14px 16px; border-radius: var(--r-m); background: radial-gradient(80% 100% at 100% 0%, rgba(var(--c-acc),.14), transparent 70%), var(--surface); box-shadow: var(--shadow); }
.jump .jl { font-family: var(--fui); font-size: var(--fs-eb); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.jump .jq { font-family: var(--fdisp); font-style: italic; font-size: 20px; line-height: 1.3; margin: 6px 0; }
.jump .jq:empty { display: none; }
.jump .jh { font-size: 13.5px; color: var(--ash); }
.jump .jb { display: flex; gap: 8px; margin-top: 10px; }
.jump .jb .btn { padding: 11px 8px; font-size: 14px; }
/* оглавление: номер, название, время справа; текущая глава — закатная линия слева и линия прохождения снизу (--cp, setPlayhead) */
.toc { margin-top: 26px; }
.toc h2 { margin: 0 0 8px; }
.toc-row { position: relative; display: grid; grid-template-columns: 30px 1fr auto; align-items: baseline; gap: 10px; width: 100%; min-height: 48px; text-align: left; padding: 12px 8px 12px 12px;
  border-radius: 0; font-family: var(--fui); font-size: 15px; line-height: 1.4; color: var(--ink); transition: background-color var(--d2) var(--ease); }
.toc-row + .toc-row { border-top: 1px solid var(--line); }
.toc-row .tno { font-family: var(--fui); font-size: 12.5px; font-weight: 600; line-height: 1; color: var(--faint); font-variant-numeric: tabular-nums; }
.toc-row .tn { min-width: 0; overflow-wrap: break-word; }
.toc-row .tt { color: var(--ash); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.toc-row.now { background: var(--surface); border-radius: var(--r-s); font-weight: 600; box-shadow: var(--shadow); }
.toc-row.now + .toc-row { border-top-color: transparent; }
.toc-row.now::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--rail); }
.toc-row.now::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px; background: var(--rail) 0 0 / var(--cp, 0%) 100% no-repeat, var(--rail-track); }
.toc-row.now .tno, .toc-row.now .tt { color: var(--accent); }
.playhead { margin-top: 12px; font-size: 12.5px; color: var(--ash); }
.playhead input { width: 100%; accent-color: var(--accent); margin-top: 6px; }
/* «В эфире», конспект и вопросы после эфира */
.about h2, .summary h2 { margin-bottom: 8px; }
.summary { margin-top: 26px; }
.summary .lede { margin-top: 0; }
.summary p { margin: 4px 0; font-family: var(--fbody); }
.summary details { margin-top: 6px; }
.summary details summary { color: var(--accent); font-weight: 600; padding: 8px 0; cursor: pointer; }
.pts { margin: 6px 0; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; font-family: var(--fbody); line-height: 1.55; }
.sum-h { font-weight: 650; margin: 12px 0 4px; }
.takeaway { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-s); background: var(--accent-soft); font-family: var(--fdisp); font-style: italic; font-size: 19px; line-height: 1.3; }
.takeaway-box { margin-top: 12px; font-family: var(--fdisp); font-style: italic; font-size: 19px; line-height: 1.35; }
.reflect { margin-top: 14px; }
.reflect .rq { margin-top: 12px; }
.reflect .rq[hidden] { display: none; }
.rq-q { font-family: var(--fhead); font-weight: 600; font-size: var(--fs-card); line-height: 1.4; margin-bottom: 10px; }
.rq-nav { display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "n prev next" "sun prev next"; align-items: center; gap: 4px 8px; margin-top: 12px; }
.rq-nav .ml { grid-area: n; }
.rq-nav .rq-sun { grid-area: sun; }
.rq-nav [data-d="-1"] { grid-area: prev; } .rq-nav [data-d="1"] { grid-area: next; }
.ib-s { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: var(--surface-2); transition: transform var(--d1) var(--ease), opacity var(--d2); }
.ib-s:active { transform: scale(.92); }
.ib-s:disabled { opacity: .35; }
.ib-s .i { width: 18px; height: 18px; }
.reflect .rq textarea { background: var(--field); }
.rq-a { margin-top: 8px; }
.rq-a .btn { padding: 11px; }
.ai-box { margin-top: 10px; padding: 12px 14px; border-radius: var(--r-s); background: var(--surface-2); font-family: var(--fbody); font-size: 14.5px; line-height: 1.55; }
.ai-box .ai-h { display: flex; align-items: center; gap: 6px; font-family: var(--fui); font-weight: 600; font-size: var(--fs-eb); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 4px; }
.ai-box .ai-h .i { width: 15px; height: 15px; }
.ai-box.soon { color: var(--ash); border: 1px dashed rgba(var(--c-hi),.2); background: transparent; }
.mine-box { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; }
.mine-box h2 { margin: 0; }
/* моменты «Это про меня» */
.moment { padding: 12px 14px; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow); margin-bottom: 10px; }
.mine-box .moment { margin: 0; }
.m-head { font-size: 13px; color: var(--accent); }
.m-title { font-weight: 650; margin-top: 2px; }
.moment blockquote { margin: 8px 0 4px; font-family: var(--fdisp); font-style: italic; font-weight: 500; font-size: 19px; line-height: 1.3; }
.m-note { font-family: var(--fbody); font-size: 15px; line-height: 1.55; margin-top: 4px; }
.m-actions { display: flex; gap: 14px; margin-top: 8px; font-size: 13px; flex-wrap: wrap; align-items: center; }
.m-actions button { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; color: var(--accent); font-weight: 600; padding: 2px 0; }
.m-actions .i { width: 16px; height: 16px; }
.m-actions button[data-act="m-del"], .m-actions button[data-act="j-del"] { color: var(--ash); margin-left: auto; }

/* ---------- «Только звук» ---------- */
.listen-hero .listen-cover { display: block; width: 190px; height: auto; margin: 4px auto 16px; border-radius: 20px; box-shadow: var(--shadow-card); }
.player { margin-top: 14px; padding: 16px; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow); }
.player.off { opacity: .6; }
.player input.seek { width: 100%; }
.player input.seek::-webkit-slider-runnable-track { background: var(--rail) 0 / var(--p) 100% no-repeat, rgba(var(--c-hi),.14); }
.pl-times { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ash); font-variant-numeric: tabular-nums; }
.pl-main { display: flex; justify-content: center; align-items: center; gap: 26px; margin: 10px 0 4px; }
.pl-b { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: var(--accent); background: rgba(var(--c-hi),.06); }
.pl-b .i { width: 24px; height: 24px; }
.pl-b small { position: absolute; font-family: var(--fui); font-size: 8.5px; font-weight: 700; top: 50%; left: 50%; transform: translate(-50%, -38%); }
.pl-play { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--btn); color: var(--on-btn); box-shadow: var(--glow); }
.pl-play .i { width: 28px; height: 28px; fill: currentColor; stroke-width: 1.2; }
.pl-play[data-st="play"] .i, .pl-play:not([data-st]) .i { margin-left: 3px; }
.player button:disabled { cursor: default; }
.pl-sleep { min-height: 18px; margin-top: 6px; font-size: 13px; }
.piece-hint { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); font-size: 13.5px; }
.piece-hint b { color: var(--accent); font-variant-numeric: tabular-nums; }

/* ---------- практика дня: состояние в один тап (лица — линией, тревога — янтарные точки) ---------- */
:root { --mood: #D6649A; --anx: var(--amber); }
:root[data-theme="light"] { --mood: #B4467A; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.scale .sc { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 56px; padding: 8px 2px 7px; border-radius: var(--r-s); background: var(--surface-2);
  transition: transform var(--d1), box-shadow var(--d2); }
.scale .sc:active { transform: scale(.95); }
.scale .sc .se { line-height: 1; }
.scale .sc .se .i.face { width: 26px; height: 26px; color: var(--ash); stroke-width: 1.5; }
.scale .sc .sl { font-size: 10.5px; font-weight: 600; color: var(--ash); text-align: center; line-height: 1.15; }
.scale .sc.on { box-shadow: inset 0 0 0 1.5px var(--accent); }
.scale .sc.on .sl, .scale .sc.on .se .i.face { color: var(--accent); }
.scale .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--anx); margin: 3px 0; }
.scale .dot.d1 { width: 10px; height: 10px; margin: 6px 0; opacity: .18; } .scale .dot.d2 { width: 12px; height: 12px; margin: 5px 0; opacity: .35; }
.scale .dot.d3 { width: 14px; height: 14px; margin: 4px 0; opacity: .55; } .scale .dot.d4 { opacity: .78; } .scale .dot.d5 { width: 18px; height: 18px; margin: 2px 0; }

/* ---------- «Как я менялась»: график настроения и тревоги ---------- */
.chart-card { padding: 14px 12px 12px; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow); }
.legend { display: flex; gap: 16px; font-size: 13px; font-weight: 600; margin: 0 4px 6px; }
.legend .sw { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: 4px; margin-right: 6px; }
.legend .sw.mood { background: var(--mood); } .legend .sw.anx { background: var(--anx); }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .g { stroke: rgba(var(--c-hi),.1); stroke-width: 1; }
.chart .yl, .chart .xl { fill: var(--ash); font-size: 10px; text-anchor: middle; font-family: var(--fui); }
.chart .ln { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .ln.mood { stroke: var(--mood); } .chart .ln.anx { stroke: var(--anx); }
.chart .pt { stroke: var(--surface); stroke-width: 2; } .chart .pt.mood { fill: var(--mood); } .chart .pt.anx { fill: var(--anx); }
.chart .hit-col { fill: transparent; cursor: pointer; }
.chart .cross { stroke: var(--ash); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-tip { font-size: 13px; margin: 6px 4px 0; min-height: 36px; }
.axis-note { font-size: 11.5px; color: var(--ash); margin: 4px 4px 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin-top: 12px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: var(--r-s); background: var(--surface); box-shadow: var(--shadow); }
.stat b { font-size: 24px; font-weight: 600; } .stat b.small { font-size: 15px; } .stat span { font-size: 12px; color: var(--ash); line-height: 1.3; }
details.tbl { margin-top: 12px; }
details summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.tbl table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
.tbl th, .tbl td { text-align: left; padding: 6px 4px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl th { color: var(--ash); font-weight: 600; }

/* ---------- марафоны: замер 0–10, было и стало ---------- */
.ck { margin-top: 14px; }
.ck-q { font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.scale10 { display: grid; grid-template-columns: repeat(11, 1fr); gap: 3px; }
.scale10 button { height: 40px; border-radius: 9px; background: var(--surface-2); font-weight: 600; font-size: 13px; color: var(--ash); font-variant-numeric: tabular-nums; }
.ck-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.ck-row b { flex: none; color: var(--accent); font-variant-numeric: tabular-nums; }

/* ---------- итоги месяца — светлые «истории» в любой теме (так задумано), с мягким переходом ---------- */
.wr { position: fixed; inset: 0; z-index: 40; overflow: hidden; color: #2A1726; isolation: isolate; animation: fade var(--d3) var(--ease);
  background: radial-gradient(45% 30% at 15% 10%, rgb(255 186 140 / .75), transparent 70%), radial-gradient(50% 32% at 90% 35%, rgb(244 150 185 / .6), transparent 70%),
    radial-gradient(55% 35% at 15% 85%, rgb(190 170 240 / .65), transparent 70%), #F6F2EE; }
.wr-bars { position: absolute; top: calc(10px + env(safe-area-inset-top)); left: 12px; right: 56px; display: flex; gap: 4px; z-index: 3; }
.wr-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgb(42 23 38 / .18); }
.wr-bars i.on, .wr-bars i.done { background: #7E2B55; }
.wr-x { position: absolute; top: calc(2px + env(safe-area-inset-top)); right: 6px; width: 44px; height: 44px; display: grid; place-items: center; z-index: 4; color: #6E5A68; }
.wr-x .i { width: 22px; height: 22px; }
.ws { position: absolute; inset: 0; padding: 70px 28px 40px; display: flex; flex-direction: column; justify-content: center; gap: 12px;
  opacity: 0; transform: translateY(16px); transition: opacity .35s, transform .35s; pointer-events: none; text-align: center; max-width: 560px; margin: 0 auto; }
.ws.on { opacity: 1; transform: none; pointer-events: auto; }
.ws-k { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7E2B55; }
.ws-big { font-size: 30px; font-weight: 700; line-height: 1.15; }
.ws-big.serif, .serif { font-family: var(--fdisp); font-style: italic; font-weight: 500; font-size: 46px; line-height: 1.05; }
.ws-num { font-size: 96px; font-weight: 700; line-height: 1; background: linear-gradient(135deg, #7E2B55, #B4467A, #ff9e7a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ws-s { font-size: 18px; font-weight: 600; } .ws-s2 { font-size: 14.5px; color: #6E5A68; } .ws-fine { font-size: 12.5px; color: #6E5A68; }
.ws-bars { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; text-align: left; }
.ws-bars div { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; font-weight: 600; }
.ws-bars i { display: block; height: 8px; border-radius: 8px; background: linear-gradient(90deg, #B4467A, #ff9e7a); }
.ws-path { text-align: left; margin: 6px auto; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-weight: 600; max-width: 420px; }
.ws-q { font-family: var(--fdisp); font-style: italic; font-size: 24px; line-height: 1.3; margin: 12px 0 0; }
.ws-ch { display: flex; flex-direction: column; gap: 2px; background: rgb(255 255 255 / .55); border: 1px solid rgb(255 255 255 / .85); border-radius: 18px; padding: 12px; }
.ws-ch span { font-size: 13px; color: #6E5A68; } .ws-ch b { font-size: 26px; }
.wr-prev img { width: min(52vw, 220px); aspect-ratio: 9 / 16; border-radius: 16px; box-shadow: 0 10px 30px rgb(40 20 40 / .25); background: #fff; }
.ws .btn { max-width: 320px; margin: 4px auto 0; position: relative; z-index: 6; }
.wr .btn.primary { background: linear-gradient(110deg,#a33a68 0%,#b4475f 55%,#b4553f 100%); color: #fff; }
.wr-nav { position: absolute; top: 60px; bottom: 0; z-index: 2; }
.wr-nav.prev { left: 0; width: 30%; } .wr-nav.next { right: 0; width: 70%; }
.ws.on .btn, .ws.on .wr-prev { position: relative; z-index: 5; }

/* ---------- этапы пути и сертификаты ---------- */
.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; background: var(--rail); opacity: .55; border-radius: 2px; }
.timeline .tl { position: relative; display: flex; flex-direction: column; gap: 1px; padding: 0 0 16px 10px; }
.timeline .tl::before { content: ""; position: absolute; left: -17px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--bg2), 0 0 10px rgba(var(--c-acc),.5); }
.tl-d { font-size: 12px; color: var(--ash); font-weight: 600; }
.timeline .tl .sub { font-size: 13.5px; margin: 0; }
.timeline .tl a { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-weight: 600; font-size: 13.5px; margin-top: 2px; }
.cert-row { display: flex; gap: 12px; align-items: center; margin-top: 10px; padding: 12px 14px; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow); }
.cert-row .b { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.cert-row .btn { width: auto; padding: 10px 14px; font-size: 14px; }
.cert-prev { display: flex; justify-content: center; margin: 14px 0 4px; }
.cert-prev img { width: 100%; max-width: 520px; aspect-ratio: 1600 / 1130; border-radius: var(--r-s); box-shadow: var(--shadow-card); background: #fff; }

/* ---------- напоминания и настройки ---------- */
.sw-row { display: flex; align-items: center; gap: 12px; justify-content: space-between; min-height: 44px; cursor: pointer; }
.sw-row b { font-weight: 600; }
.sw-row .sub { font-size: 13px; }
.sw-time { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; font-weight: 600; }
.sw-time.dim { opacity: .45; }
.sw-time .search { width: 120px; }

/* ---------- поиск: результат — строка эфира и отрывки с минутой, тонкая линия слева вместо коробок ---------- */
.results { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.result { display: flex; flex-direction: column; gap: 4px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.hit { display: flex; flex-direction: column; gap: 3px; margin: 2px 0 2px 69px; padding: 4px 0 4px 12px; border-left: 2px solid rgba(var(--c-acc),.35); border-radius: 0; min-height: 44px;
  transition: border-color var(--d2); }
.hit:active { border-left-color: var(--accent); }
.hit.plain { display: block; }
.hit .hh { font-family: var(--fui); font-size: 12px; color: var(--ash); font-variant-numeric: tabular-nums; }
.hit .hh b, .hit .ht { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }
.hit .hs { font-family: var(--fbody); font-size: 14.5px; line-height: 1.5; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.results .hit .hs::first-letter { text-transform: uppercase; }   /* отрывок расшифровки: с заглавной, многоточия по краям (в указателе — подписи глав, без них) */
.results .hit .hs::before { content: "…"; color: var(--faint); }
.results .hit .hs::after { content: "…"; color: var(--faint); }
mark { background: rgba(var(--c-acc),.24); color: inherit; border-radius: 4px; padding: 0 2px; }
.more { font-size: 12px; color: var(--ash); margin-left: 83px; }
.card-hit { margin: 8px 0 0; }
/* предметный указатель: буквы строкой (прокрутка), темы списком */
#ix-q { margin: 2px 0 6px; }
.letters { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 6px -16px 4px; padding: 8px 16px; position: sticky; top: 0; z-index: 2;
  background: color-mix(in srgb, var(--bg2) 86%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.letters::-webkit-scrollbar { display: none; }
.letters button { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--edge); font-weight: 600; color: var(--accent); }
h2.letter { font-size: 22px; color: var(--accent); scroll-margin-top: 120px; }
details.rub { margin-top: 10px; padding: 12px 14px; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow); }
details.rub .list { margin-top: 10px; }
details.term { padding: 12px 14px; border-radius: var(--r-s); background: var(--surface); box-shadow: var(--shadow); margin-top: 8px; }
details.term summary b { font-weight: 650; }
.t-def { margin-top: 8px; font-family: var(--fbody); font-size: 14.5px; line-height: 1.55; }
.t-refs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.t-refs a { font-size: 12.5px; color: var(--accent); background: var(--accent-soft); padding: 5px 10px; border-radius: 99px; font-weight: 600; }

/* ---------- «Моё»: кто вы в клубе, сборник, «Мой путь», настройки одной группой ---------- */
.me-card { display: flex; align-items: center; gap: 12px; margin: 6px 0 2px; padding: 12px 14px; border-radius: var(--r-l);
  background: radial-gradient(80% 120% at 100% 0%, var(--glow-a), transparent 70%), var(--surface); box-shadow: var(--shadow); }
.me-ava { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--btn); color: var(--on-btn); font-family: var(--fui); font-weight: 650; font-size: 19px; }
.me-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.me-b b { font-family: var(--fui); font-weight: 650; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }

/* ---------- «Дневник» → «Саморазвитие»: спокойное личное место — устойчивые поверхности, шрифт для чтения ---------- */
.jr-list { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.jr-list, .jr-soon { max-width: 760px; }   /* длинный текст на компьютере — удобная длина строки */
.jr { padding: 16px; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow); }
.jr.editing { box-shadow: 0 0 0 1.5px var(--hair), var(--shadow); }
.jr-src { font-family: var(--fui); font-size: var(--fs-eb); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ash); }
.jr-src a { color: var(--accent); }
.jr-q { margin: 8px 0 6px; font-family: var(--fui); font-weight: 600; font-size: 15px; line-height: 1.4; color: var(--ink); }
.jr-a { font-family: var(--fbody); font-size: var(--fs-read); line-height: 1.65; color: var(--ink); overflow-wrap: break-word; }
.jr-ta { margin-top: 4px; font-size: var(--fs-read); line-height: 1.6; }
.jr-ed { display: flex; gap: 8px; margin-top: 10px; }
.jr-ed .btn { width: auto; flex: 1; }
.jr-foot { display: flex; align-items: center; gap: 16px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.jr-foot .ml { margin-right: auto; }
.jr-foot button { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; font-size: 13.5px; font-weight: 600; color: var(--accent); }
.jr-foot button .i { width: 16px; height: 16px; }
.jr-foot button[data-act="j-del"] { color: var(--ash); }
.jr-soon { margin: 6px 0 12px; }

/* ---------- живые эфиры, вопрос Никите и голосование ---------- */
.live-card { margin-top: 12px; padding: 16px; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow); }
.live-card.now { box-shadow: 0 0 0 1.5px rgba(var(--c-dan),.6), var(--shadow); }
.lc-when { display: flex; align-items: center; font-size: 12.5px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.lc-t { font-family: var(--fhead); font-size: 18px; font-weight: 650; margin: 4px 0; line-height: 1.25; }
.lc-d { font-size: 14px; color: var(--ash); }
.lc-a { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.lc-a .btn { padding: 12px; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--sos); box-shadow: 0 0 0 0 rgba(var(--c-dan),.6); animation: livePulse 1.6s ease-out infinite; vertical-align: 1px; margin-right: 6px; }
.ti .live-dot { margin: 0; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 8px rgba(var(--c-dan),0); } 100% { box-shadow: 0 0 0 0 rgba(var(--c-dan),0); } }
.ask-form { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.q-card { margin-top: 10px; padding: 14px; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow); }
.q-card.answered { opacity: .9; } .q-card.hidden { opacity: .5; }
.q-t { font-family: var(--fbody); font-size: 15px; line-height: 1.55; }
.q-a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 10px; font-size: 13px; }
.q-vote { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 7px 12px; border-radius: 99px; background: var(--surface-2); font-weight: 600; font-size: 13px; }
.q-vote .i { width: 15px; height: 15px; }
.q-vote.on { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.q-vote.on .i { fill: rgba(var(--c-rose),.25); }
.q-mine { color: var(--ash); font-size: 12px; margin-left: auto; }
.q-del { color: var(--ash); font-size: 12.5px; font-weight: 600; min-height: 44px; }
.q-link { color: var(--accent); font-weight: 600; }
.q-adm { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.q-adm .search { width: 96px; padding: 8px 10px; flex: none; }
.poll { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow); }
.poll .desc-h { display: flex; align-items: center; gap: 6px; }
.poll-o { position: relative; overflow: hidden; display: flex; justify-content: space-between; gap: 10px; width: 100%; min-height: 46px; text-align: left; margin-top: 8px;
  padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-weight: 600; }
.poll-o i { position: absolute; inset: 0 auto 0 0; background: var(--accent-soft); z-index: 0; transition: width .4s; }
.poll-o span { position: relative; z-index: 1; }
.po-t { display: inline-flex; align-items: center; gap: 6px; }
.po-n { font-weight: 700; color: var(--accent); }
.poll-o.on { box-shadow: inset 0 0 0 1.5px var(--accent); }
.poll.admin .ao { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.poll.admin .ao span { flex: 1; } .poll.admin .ao button { color: var(--ash); font-size: 13px; }
.poll.admin .trow-in { margin-top: 10px; }

/* ---------- оплата и подарки (pay.js — только вид): тарифы, подписка, сертификат ---------- */
.plans { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
@media (min-width: 900px) { .plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; } .payform { max-width: 640px; } }
.plans .plan { display: block; width: 100%; text-align: left; padding: 16px; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--edge);
  transition: box-shadow var(--d2) var(--ease), transform var(--d1); }
.plans .plan:active { transform: scale(.99); }
.plans .plan.on { background: radial-gradient(90% 120% at 100% 0%, rgba(var(--c-acc),.13), transparent 70%), var(--surface); box-shadow: var(--shadow), inset 0 0 0 1.5px var(--accent); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan-top b { font-family: var(--fhead); font-weight: 650; font-size: 18px; letter-spacing: -.01em; }
.plan-price { display: block; margin: 4px 0 10px; font-family: var(--fui); font-size: 22px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.plan-price small { font-size: 13px; font-weight: 500; color: var(--ash); }
.feat { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; font-size: 14px; line-height: 1.4; }
.feat li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; }   /* висячий отступ: перенос не уезжает под галочку */
.feat li .i { width: 16px; height: 16px; margin-top: 2px; color: var(--accent); }
.paynote { margin: 12px 0; font-size: 14px; line-height: 1.5; }
.paynote.test { background: color-mix(in srgb, #f4c84a 16%, var(--surface)); }
.paynote.wait { box-shadow: inset 0 0 0 1.5px var(--hair), var(--shadow); }
.payform { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.payform .btn { margin-top: 8px; }
.payform .btn[disabled] { opacity: .6; }
.payform select.search { appearance: auto; }
.subcard { margin-top: 14px; }
.subcard .sub-t { font-family: var(--fhead); font-size: 20px; font-weight: 650; margin: 2px 0 4px; }
.subcard .sub-s { margin-bottom: 6px; line-height: 1.5; }
.subcard.past_due { box-shadow: inset 0 0 0 1.5px rgba(var(--c-dan),.55), var(--shadow); }
.subcard .actions { margin: 12px 0 2px; }
.grow { display: flex; gap: 10px; padding: 8px 0; align-items: flex-start; }
.grow + .grow { border-top: 1px solid var(--line); }
.code { font: 600 15px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); border-radius: 12px; padding: 10px 12px; margin: 10px 0 4px; word-break: break-all; user-select: all; }
.code-in { font: 600 18px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; text-align: center; }
.giftrow { padding: 6px 0 10px; }
.giftrow + .giftrow { border-top: 1px solid var(--line); padding-top: 12px; }
.gift-h { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }

/* ---------- замок и вход: приглашение в клуб, а не «доступ запрещён» ---------- */
.locked { max-width: 440px; margin: 0 auto; padding: 40px 4px 20px; text-align: center; }
.locked h1 { margin: 6px 0 12px; }
.locked .sub { margin: 10px 0; }
.locked .actions { margin: 22px 0 8px; }
.locked .sos-tile { margin-top: 22px; text-align: left; }
.lk { text-align: left; padding-top: 48px; }   /* карточка начинается ниже значка темы */
.lk-hero { position: relative; padding: 22px 20px 20px; margin: 0 -4px; border-radius: var(--r-l); text-align: left;
  background: radial-gradient(90% 80% at 100% 0%, var(--glow-a), transparent 70%), radial-gradient(80% 80% at 0% 100%, var(--glow-b), transparent 70%), var(--surface); box-shadow: var(--shadow); }
.wl .lk-hero { margin-bottom: 4px; }
.lk-wm { font-size: 24px; margin-bottom: 14px; }
.lk-hero .eb { margin: 0 0 4px; color: var(--accent); }
.lk-hero h1 { margin: 0 0 6px; font-size: 28px; }
.lk-hero .lede, .lk-hero .sub { margin: 6px 0 0; }
.lk-in { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.lk-in li { display: flex; gap: 12px; align-items: flex-start; }
.lk-in li > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.lk-in b { font-family: var(--fui); font-weight: 600; font-size: 15px; }
.lk-in .sub { margin: 0; font-size: 13.5px; line-height: 1.45; }
.lk .fine { text-align: left; }
.wl { padding-top: 28px; text-align: left; }
.wl-box { text-align: left; margin: 18px 0 8px; }
.wl-box .agree { margin-top: 12px; }
.wl-box .actions { margin: 16px 0 6px; }
.wl-code { font-size: 26px; letter-spacing: .45em; text-align: center; font-variant-numeric: tabular-nums; padding-left: calc(16px + .45em); }
.wl-tile { margin-top: 10px; }
.fine.wl-left { text-align: left; margin: 10px 0 0; }
.wl-back { position: fixed; z-index: 60; top: calc(env(safe-area-inset-top, 0px) + 10px); left: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0;
  font-size: 26px; line-height: 1; padding: 0 2px 3px 0; color: var(--ink); background: var(--glass); box-shadow: 0 0 0 1px var(--edge);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); cursor: pointer; }
.wl-back[hidden] { display: none; }
body.web [data-act="send"] { display: none !important; }   /* «Получить видео в чат»: в браузере чата с ботом нет */
body.web.wl-standalone #view { padding-top: calc(env(safe-area-inset-top, 0px) + 56px); }
body.web.wl-standalone .psyv.chatv { padding-top: calc(8px + env(safe-area-inset-top)); }

/* ---------- первый вход и диагностика ---------- */
.onb { position: relative; isolation: isolate; min-height: calc(100vh - 40px); display: flex; flex-direction: column; }
.onb.aura::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 30% at 15% 12%, rgba(var(--c-rose),.16), transparent 70%), radial-gradient(45% 30% at 90% 35%, rgba(var(--c-rose),.2), transparent 70%),
    radial-gradient(50% 35% at 20% 90%, rgba(var(--c-mag),.3), transparent 70%), var(--bg2); }
.onb-top { display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.skip { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; color: var(--ash); font-weight: 600; font-size: 14px; }
.skip .i { width: 16px; height: 16px; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 99px; background: rgba(var(--c-hi),.22); transition: width var(--d3) var(--ease), background-color var(--d3); }
.dots i.on { width: 22px; background: var(--accent); }
.dots i.done { background: var(--accent); opacity: .5; }
.onb-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 30px 4px; }
.onb.aura .onb-body { text-align: center; align-items: center; }
.onb-wm { font-size: 22px; margin-bottom: 22px; }
/* значок первого входа — мягкое свечение, а не тёмный шар */
.onb-emoji { display: grid; place-items: center; width: 112px; height: 112px; margin-bottom: 18px; border-radius: 50%; color: var(--accent);
  background: radial-gradient(circle at 50% 42%, rgba(var(--c-acc),.22), rgba(var(--c-mag),.08) 62%, transparent 72%); box-shadow: inset 0 0 0 1px rgba(var(--c-acc),.16);
  animation: float 4s ease-in-out infinite; }
.onb-emoji .i { width: 46px; height: 46px; stroke-width: 1.35; }
@keyframes float { 50% { transform: translateY(-8px); } }
.onb-text { font-family: var(--fbody); font-size: 17px; line-height: 1.6; margin: 10px 0 0; max-width: 36ch; }
.onb-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
/* подложка до краёв экрана (на компьютере края тают), сверху тоже тает: список под кнопками не просвечивает */
.onb .onb-actions { position: sticky; z-index: 1; bottom: 0; padding: 12px 0 calc(8px + env(safe-area-inset-bottom)); }
.onb .onb-actions:not(:has(*)) { display: none; }   /* вопрос с одним ответом: кнопок нет — и подложки нет */
.onb .onb-actions::before { content: ""; position: absolute; z-index: -1; top: -36px; bottom: 0; left: -16px; right: -16px;
  pointer-events: none; background: linear-gradient(to top, rgba(var(--c-fade),.94) 62%, rgba(var(--c-fade),0)); }
@media (min-width: 672px) { .onb .onb-actions::before { -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); } }
.onb-links { display: flex; justify-content: center; gap: 22px; }
.onb-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 14.5px; color: var(--accent); }
.qcount { color: var(--ash); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.q-title { font-size: 24px; }
.onb .opts { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.onb .opt { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 14px 16px; border-radius: var(--r-m); text-align: left; background: var(--surface);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--edge); font-weight: 600; transition: transform var(--d1), box-shadow var(--d2); }
.onb .opt:active { transform: scale(.98); }
.onb .opt .ock { margin-left: auto; color: var(--accent); }
.onb .opt .ock .i { width: 18px; height: 18px; }
.onb .opt.on { background: radial-gradient(90% 140% at 100% 0%, rgba(var(--c-acc),.14), transparent 70%), var(--surface); box-shadow: var(--shadow), inset 0 0 0 1.5px var(--accent); }

/* ---------- «Мне сейчас плохо»: спокойно и ясно, без космоса; 112 сверху ---------- */
.sos h1 { margin-top: 10px; }
.sos112 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; margin: 4px 0 14px; border-radius: var(--r-m);
  background: color-mix(in srgb, var(--sos) 12%, var(--surface)); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--sos) 45%, transparent); }
.sos112 span { flex: 1 1 180px; font-weight: 650; }
.sos112 .btn { margin: 0; padding: 8px 16px; }
.sos112-all { flex: 1 0 100%; display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--sos); font-weight: 600; }
.sos.center .sos112 { text-align: left; }
.sos-opt { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; margin-top: 10px; padding: 16px; border-radius: 20px; background: var(--surface);
  box-shadow: var(--shadow); transition: transform var(--d1); }
.sos-opt:active { transform: scale(.98); }
.sos-opt .e { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; color: var(--accent); background: var(--surface-2); }
.sos-opt .e .i { width: 24px; height: 24px; }
.sos-opt .sub { font-size: 13px; margin: 0; }
.sos-opt.main { background: linear-gradient(135deg, rgba(var(--c-mag),.32), rgba(var(--c-rose),.22) 55%, rgba(var(--c-amber),.18)); color: var(--ink); box-shadow: 0 0 0 1px var(--hair); }
.sos-opt.main .sub { color: var(--ash); }
.sos-opt.urgent { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--sos) 55%, transparent), var(--shadow); }
.sos-opt.urgent b { color: var(--sos); }
.sos-opt.urgent .e { color: var(--sos); background: rgba(var(--c-dan),.12); }
.sos-more { margin: 14px 0; }
.sos-more summary { cursor: pointer; font-weight: 600; padding: 10px 0; color: var(--accent); }
.circle-wrap { position: relative; height: 300px; display: grid; place-items: center; margin: 10px 0; }
.circle { width: 260px; height: 260px; border-radius: 50%; transform: scale(.5);
  background: radial-gradient(circle at 35% 30%, #ffd2b8, #f39bb8 45%, #a585e0 100%);
  box-shadow: 0 0 60px rgb(243 155 184 / .55); transition-property: transform; transition-timing-function: ease-in-out; }
.circle.big { transform: scale(1); }
.phase { position: absolute; font-size: 24px; font-weight: 700; color: #fff; text-shadow: 0 1px 10px rgb(80 20 60 / .4); }
.countdown { font-size: 15px; font-weight: 600; color: var(--ash); font-variant-numeric: tabular-nums; }
.ground .dots { display: flex; justify-content: center; margin: 10px 0 20px; }
.g-num { font-size: 120px; font-weight: 700; text-align: center; line-height: 1; margin-top: 20px;
  background: linear-gradient(135deg, var(--wine), var(--berry), #ff9e7a); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.06); } }
.gbar { margin: 18px 40px 0; }
.gbar i { width: 0; min-width: 0; }
.gbar i.run { width: 100%; transition: width 20s linear; }

/* ===== Стили вкладки «Психолог» — из кабинета ИИ-психолога (ai-psychologist/cabinet_server/static/index.html), в пространстве имён .psyv (20.11) ===== */
@keyframes spin{to{transform:rotate(360deg)}}
:is(.psyv,.psyv-layer) .brand{display:flex;align-items:center;gap:11px;padding:2px 4px}
:is(.psyv,.psyv-layer) .ava{width:44px;height:44px;border-radius:50%;flex:0 0 auto;background:var(--btn);display:flex;align-items:center;justify-content:center;
  font-family:var(--fui);font-weight:600;font-size:18px;color:var(--on-btn)}
:is(.psyv,.psyv-layer) .brand b{font-family:var(--fhead);font-weight:650;font-size:18px;line-height:1.2;letter-spacing:-.01em;display:block}
:is(.psyv,.psyv-layer) .brand span{font-size:12.5px;color:var(--ash);font-family:var(--fui)}
:is(.psyv,.psyv-layer) .newbtn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%}
:is(.psyv,.psyv-layer) .grp{display:flex;flex-direction:column;gap:2px}
:is(.psyv,.psyv-layer) .glabel{font-family:var(--fui);font-size:11.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--faint);padding:8px 12px 4px}
:is(.psyv,.psyv-layer) .ni{display:flex;align-items:center;gap:10px;min-height:46px;padding:9px 12px;border-radius:12px;cursor:pointer;color:var(--ink);background:none;border:1px solid transparent;
  font-family:var(--fui);font-size:15px;font-weight:500;text-align:left;width:100%;transition:background var(--d2),color var(--d2)}
:is(.psyv,.psyv-layer) .ni:hover{color:var(--ink);background:rgba(var(--c-hi),.04)}
:is(.psyv,.psyv-layer) .ni.on{color:var(--ink);background:var(--surface-2);border-color:var(--edge)}
:is(.psyv,.psyv-layer) .ni .nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:is(.psyv,.psyv-layer) .ni .num{font-variant-numeric:tabular-nums;font-size:11px;color:var(--faint);width:16px;text-align:right;flex:0 0 auto}
:is(.psyv,.psyv-layer) .ni .cnt{font-variant-numeric:tabular-nums;font-size:11px;color:var(--ash);background:rgba(var(--c-hi),.07);border-radius:999px;padding:1px 7px;flex:0 0 auto}
:is(.psyv,.psyv-layer) .ni svg{width:19px;height:19px;flex:0 0 auto;stroke:var(--accent);stroke-width:1.7;fill:none}
:is(.psyv,.psyv-layer) .ni.add{color:var(--accent)}
:is(.psyv,.psyv-layer) .ni.restore{color:var(--faint);font-size:12.5px}
:is(.psyv,.psyv-layer) .ni .ren{margin-left:auto;opacity:0;color:var(--faint);font-size:13px;padding:2px 6px;border-radius:8px;cursor:pointer;flex:0 0 auto}
:is(.psyv,.psyv-layer) .ni .cnt+.ren, :is(.psyv,.psyv-layer) .ni .dot+.ren{margin-left:6px}
:is(.psyv,.psyv-layer) .ni:hover .ren, :is(.psyv,.psyv-layer) .ni.on .ren, :is(.psyv,.psyv-layer) .ni .ren:focus{opacity:1}
@media (hover:none){
:is(.psyv,.psyv-layer) .ni.on .ren{opacity:1}
}
:is(.psyv,.psyv-layer) .ni .ren:hover{color:var(--ink);background:var(--glass)}
:is(.psyv,.psyv-layer) .ni.renrow{gap:6px;padding-top:4px;padding-bottom:4px}
:is(.psyv,.psyv-layer) .ni.renrow input{flex:1;min-width:0;font:inherit;color:var(--ink);background:var(--glass);border:1px solid var(--edge);border-radius:10px;padding:6px 9px}
:is(.psyv,.psyv-layer) .ni.renrow .ren{opacity:1;color:var(--accent);font-size:15px}
:is(.psyv,.psyv-layer) .lock{font-size:10.5px;color:var(--amber);border:1px solid rgba(var(--c-amber),.35);border-radius:999px;padding:0 7px;flex:0 0 auto}
:is(.psyv,.psyv-layer) .tier{padding:11px 13px;border-radius:14px;background:rgba(var(--c-amber),.08);border:1px solid rgba(var(--c-amber),.26);font-size:11.5px;color:var(--amber);line-height:1.4;font-family:var(--fui)}
:is(.psyv,.psyv-layer) .tier b{display:block;font-size:13px;color:var(--ink);font-weight:600;margin-bottom:2px}
.psyv.chatv{overflow:hidden;padding-block:12px 8px;gap:0}
:is(.psyv,.psyv-layer) .h{font-family:var(--fhead);font-weight:650;font-size:var(--fs-display);line-height:1.18;letter-spacing:-.02em;margin:0;text-wrap:balance}
:is(.psyv,.psyv-layer) .eyebrow{font-family:var(--fui);font-size:var(--fs-eb);font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--faint);margin:0}
:is(.psyv,.psyv-layer) .sub{color:var(--ash);font-size:14px;margin:0;font-family:var(--fui);line-height:1.5;max-width:62ch}
:is(.psyv,.psyv-layer) .hrow{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap}
:is(.psyv,.psyv-layer) .hrow>div{min-width:0;display:flex;flex-direction:column;gap:6px}
:is(.psyv,.psyv-layer) .acts{display:flex;gap:8px;flex-wrap:wrap}
:is(.psyv,.psyv-layer) .card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-m);padding:16px 18px;min-width:0;box-shadow:var(--shadow)}
:is(.psyv,.psyv-layer) .card.soft{background:var(--surface-2);box-shadow:none}
:is(.psyv,.psyv-layer) .k{font-family:var(--fui);font-size:11.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--faint);margin:0 0 7px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
:is(.psyv,.psyv-layer) .card p{margin:0;font-size:15px;line-height:1.5}
:is(.psyv,.psyv-layer) .grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
:is(.psyv,.psyv-layer) .by{display:inline-flex;align-items:center;font-family:var(--fui);font-size:10.5px;color:var(--rose);letter-spacing:0;text-transform:none;
  background:rgba(var(--c-mag),.14);border:1px solid rgba(var(--c-rose),.3);padding:1px 8px;border-radius:999px;font-weight:600}
:is(.psyv,.psyv-layer) .by.me{color:var(--amber);background:rgba(var(--c-amber),.12);border-color:rgba(var(--c-amber),.3)}
:is(.psyv,.psyv-layer) .disc{font-size:11.5px;color:var(--faint);line-height:1.5;font-family:var(--fui);margin:0;max-width:70ch}
:is(.psyv,.psyv-layer) .empty{color:var(--ash);font-size:14px;line-height:1.5;margin:0}
:is(.psyv,.psyv-layer) .btn{font-family:var(--fui);font-weight:600;font-size:14px;color:var(--on-btn);background:var(--btn);border:0;border-radius:var(--r-s);min-height:44px;padding:10px 16px;cursor:pointer;transition:transform var(--d1) var(--ease);white-space:nowrap}
:is(.psyv,.psyv-layer) .btn:active{transform:scale(.96)}
:is(.psyv,.psyv-layer) .btn svg{width:16px;height:16px;stroke:currentColor;stroke-width:2.2;fill:none;flex:0 0 auto}
:is(.psyv,.psyv-layer) .btn:disabled{opacity:.45;cursor:default;transform:none}
:is(.psyv,.psyv-layer) .ghost{background:none;border:1px solid var(--edge);color:var(--ash);font-weight:500}
:is(.psyv,.psyv-layer) .ghost:hover{color:var(--ink);border-color:var(--hair)}
:is(.psyv,.psyv-layer) .danger{background:none;border:1px solid rgba(var(--c-dan),.4);color:var(--danger);font-weight:500}
:is(.psyv,.psyv-layer) .mini{font-family:var(--fui);font-size:12px;color:var(--ash);background:none;border:0;padding:4px 6px;border-radius:8px;cursor:pointer}
:is(.psyv,.psyv-layer) .mini:hover{color:var(--ink);background:rgba(var(--c-hi),.06)}
:is(.psyv,.psyv-layer) .mini.del:hover{color:var(--danger)}
:is(.psyv,.psyv-layer) .steps{display:flex;gap:6px;margin-top:2px}
:is(.psyv,.psyv-layer) .step{flex:1;min-width:0;text-align:center}
:is(.psyv,.psyv-layer) .step .bar{height:3px;border-radius:3px;background:var(--rail-track)}
:is(.psyv,.psyv-layer) .step.done .bar{background:var(--rail)}
:is(.psyv,.psyv-layer) .step.now .bar{background:var(--accent);box-shadow:0 0 10px rgba(var(--c-acc),.45)}
:is(.psyv,.psyv-layer) .step small{display:block;margin-top:7px;font-family:var(--fui);font-size:10.5px;color:var(--faint);line-height:1.2}
:is(.psyv,.psyv-layer) .step.done small{color:var(--ash)}
:is(.psyv,.psyv-layer) .step.now small{color:var(--amber);font-weight:600}
:is(.psyv,.psyv-layer) .path{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px;margin-top:14px}
:is(.psyv,.psyv-layer) .path h4{font-family:var(--fui);font-size:12px;color:var(--ash);font-weight:600;margin:0 0 5px}
:is(.psyv,.psyv-layer) .path p, :is(.psyv,.psyv-layer) .path li{font-size:14px;line-height:1.45;color:var(--ink)}
:is(.psyv,.psyv-layer) .path ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:5px}
:is(.psyv,.psyv-layer) .path li{display:flex;gap:6px;align-items:flex-start}
:is(.psyv,.psyv-layer) .path li span{flex:1;min-width:0}
:is(.psyv,.psyv-layer) .path li .mini{padding:0 4px;line-height:1.3}
:is(.psyv,.psyv-layer) .path .none{color:var(--faint);font-size:13px}
:is(.psyv,.psyv-layer) .clist{display:flex;flex-direction:column;gap:8px}
:is(.psyv,.psyv-layer) .ci{display:flex;flex-direction:column;gap:4px;padding:13px 15px;border-radius:var(--r-s);background:var(--surface-2);border:1px solid var(--line);cursor:pointer;text-align:left;width:100%;transition:border-color var(--d2)}
:is(.psyv,.psyv-layer) .ci:hover{border-color:var(--hair)}
:is(.psyv,.psyv-layer) .ci .top{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
:is(.psyv,.psyv-layer) .ci b{font-family:var(--fhead);font-weight:600;font-size:15px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:is(.psyv,.psyv-layer) .ci small{font-family:var(--fui);font-size:11.5px;color:var(--faint);flex:0 0 auto}
:is(.psyv,.psyv-layer) .ci span{font-size:14px;color:var(--ash);line-height:1.5}
:is(.psyv,.psyv-layer) .ci .tag{align-self:flex-start;font-family:var(--fui);font-size:10.5px;color:var(--amber)}
:is(.psyv,.psyv-layer) .chead{display:flex;align-items:center;gap:8px;padding-bottom:10px;border-bottom:1px solid var(--line);flex-wrap:wrap}
:is(.psyv,.psyv-layer) .chead .ttl{flex:1;min-width:120px;display:flex;flex-direction:column;gap:2px}
:is(.psyv,.psyv-layer) .chead .ttl b{font-family:var(--fhead);font-weight:650;font-size:17px;line-height:1.2;letter-spacing:-.01em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:is(.psyv,.psyv-layer) .chead .ttl small{font-family:var(--fui);font-size:12px;color:var(--ash)}
:is(.psyv,.psyv-layer) .tchip{font-family:var(--fui);font-size:12.5px;color:var(--ink);background:var(--surface-2);border:1px solid var(--edge);border-radius:999px;min-height:36px;padding:6px 12px;cursor:pointer;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:is(.psyv,.psyv-layer) .banner{font-family:var(--fui);font-size:12px;color:var(--ash);text-align:center;padding:10px 6px 2px;line-height:1.4}
/* переписка: устойчивая поверхность, Golos для чтения, ответ психолога — без пузыря на всю ширину, ваш — спокойный пузырь */
:is(.psyv,.psyv-layer) .msgs{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:14px;padding:12px 2px 16px}
:is(.psyv,.psyv-layer) .msg{max-width:min(640px,88%);font-family:var(--fbody);font-size:var(--fs-read);line-height:1.6;white-space:pre-wrap;overflow-wrap:break-word;word-break:normal}
:is(.psyv,.psyv-layer) .msg.a{align-self:flex-start;padding:2px 2px;color:var(--ink)}
:is(.psyv,.psyv-layer) .msg.a b{font-weight:650}
:is(.psyv,.psyv-layer) .msg.u{align-self:flex-end;background:var(--u-bubble);border:1px solid var(--line);border-radius:20px 20px 6px 20px;padding:11px 15px}
:is(.psyv,.psyv-layer) .msg em{font-style:italic;color:var(--accent)}
:is(.psyv,.psyv-layer) .msg .cut{color:var(--faint);font-size:12px}
:is(.psyv,.psyv-layer) .typing{align-self:flex-start;display:flex;gap:5px;padding:8px 4px}
:is(.psyv,.psyv-layer) .typing i{width:7px;height:7px;border-radius:50%;background:var(--ash);opacity:.4;animation:blink 1.2s infinite}
:is(.psyv,.psyv-layer) .typing i:nth-child(2){animation-delay:.2s}
:is(.psyv,.psyv-layer) .typing i:nth-child(3){animation-delay:.4s}
@keyframes blink{50%{opacity:1}}
:is(.psyv,.psyv-layer) .offer{align-self:flex-start;display:flex;flex-direction:column;gap:8px;max-width:min(560px,92%);padding:12px 14px;border-radius:15px;background:rgba(var(--c-amber),.07);border:1px solid rgba(var(--c-amber),.28)}
:is(.psyv,.psyv-layer) .offer p{margin:0;font-family:var(--fui);font-size:13px;color:var(--amber);line-height:1.4}
:is(.psyv,.psyv-layer) .offer .acts{gap:6px}
:is(.psyv,.psyv-layer) .offer .btn{padding:8px 13px;font-size:13px}
:is(.psyv,.psyv-layer) .course{align-self:flex-start;max-width:min(560px,92%);padding:12px 14px;border-radius:15px;background:rgba(var(--c-mag),.1);border:1px solid rgba(var(--c-rose),.3)}
:is(.psyv,.psyv-layer) .course small{font-family:var(--fui);font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--rose)}
:is(.psyv,.psyv-layer) .course b{display:block;font-family:var(--fui);font-size:14px;margin:3px 0 2px}
:is(.psyv,.psyv-layer) .course span{font-size:13px;color:var(--ash);line-height:1.4}
:is(.psyv,.psyv-layer) .errbox{align-self:flex-start;display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-family:var(--fui);font-size:13px;color:var(--danger)}
:is(.psyv,.psyv-layer) .composer{display:flex;gap:8px;align-items:flex-end;padding-top:10px;border-top:1px solid var(--line)}
:is(.psyv,.psyv-layer) .composer textarea{flex:1;min-width:0;resize:none;min-height:48px;max-height:150px;font-size:16px;line-height:1.45;border-radius:22px;padding:12px 16px;background:var(--surface);transition:border-color var(--d2),box-shadow var(--d2)}
:is(.psyv,.psyv-layer) .composer textarea:focus{border-color:var(--hair);box-shadow:0 0 0 3px rgba(var(--c-acc),.12)}
:is(.psyv,.psyv-layer) .send{width:48px;height:48px;border-radius:50%;flex:0 0 auto;border:0;background:var(--btn);color:var(--on-btn);cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:var(--glow);transition:transform var(--d1) var(--ease),opacity var(--d2)}
:is(.psyv,.psyv-layer) .send:active{transform:scale(.92)}
:is(.psyv,.psyv-layer) .send svg{width:19px;height:19px;stroke:currentColor;stroke-width:2.2;fill:none}
:is(.psyv,.psyv-layer) .send.stop{background:var(--raised);color:var(--ink);border:1px solid var(--edge)}
:is(.psyv,.psyv-layer) .send:disabled{opacity:.4;cursor:default;box-shadow:none}
:is(.psyv,.psyv-layer) .cfoot{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-family:var(--fui);font-size:11.5px;line-height:1.45;color:var(--faint);padding:6px 4px 0}
:is(.psyv,.psyv-layer) .cfoot .warn{color:var(--amber)}
:is(.psyv,.psyv-layer) .locked{margin:auto 0;text-align:center;display:flex;flex-direction:column;gap:10px;align-items:center;padding:30px 10px}
:is(.psyv,.psyv-layer) textarea, :is(.psyv,.psyv-layer) input[type=text], :is(.psyv,.psyv-layer) select{width:100%;background:var(--field);border:1px solid var(--edge);border-radius:var(--r-s);
  color:var(--ink);font-family:var(--fbody);font-size:16px;padding:11px 14px;outline:none;line-height:1.5}
:is(.psyv,.psyv-layer) textarea{resize:vertical}
:is(.psyv,.psyv-layer) select{appearance:auto}
:is(.psyv,.psyv-layer) textarea:focus, :is(.psyv,.psyv-layer) input[type=text]:focus, :is(.psyv,.psyv-layer) select:focus{border-color:var(--hair)}
:is(.psyv,.psyv-layer) textarea::placeholder, :is(.psyv,.psyv-layer) input::placeholder{color:var(--faint)}
:is(.psyv,.psyv-layer) .field{display:flex;flex-direction:column;gap:5px}
:is(.psyv,.psyv-layer) .field label{font-family:var(--fui);font-size:12px;color:var(--ash)}
:is(.psyv,.psyv-layer) .row3{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px}
:is(.psyv,.psyv-layer) .facts{display:flex;flex-direction:column}
:is(.psyv,.psyv-layer) .fact{display:flex;gap:10px;align-items:flex-start;padding:10px 0;border-top:1px solid var(--line)}
:is(.psyv,.psyv-layer) .fact:first-child{border-top:0}
:is(.psyv,.psyv-layer) .fact .tx{flex:1;min-width:0;font-size:14.5px;line-height:1.45}
:is(.psyv,.psyv-layer) .fact .meta{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-top:4px;font-family:var(--fui);font-size:11px;color:var(--faint)}
:is(.psyv,.psyv-layer) .fact .acts{flex:0 0 auto;gap:0}
:is(.psyv,.psyv-layer) .kind{font-size:10.5px;padding:0 7px;border-radius:999px;border:1px solid var(--edge);color:var(--ash)}
:is(.psyv,.psyv-layer) .kind.pattern{color:var(--rose);border-color:rgba(var(--c-rose),.35)}
:is(.psyv,.psyv-layer) .kind.resource{color:var(--green);border-color:rgba(var(--c-green),.35)}
:is(.psyv,.psyv-layer) .kind.goal{color:var(--amber);border-color:rgba(var(--c-amber),.35)}
:is(.psyv,.psyv-layer) .tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
:is(.psyv,.psyv-layer) .tabs::-webkit-scrollbar{display:none}
:is(.psyv,.psyv-layer) .tab{flex:0 0 auto;font-family:var(--fui);font-size:13.5px;color:var(--ash);background:var(--surface);border:1px solid var(--edge);border-radius:999px;min-height:40px;padding:8px 14px;cursor:pointer}
:is(.psyv,.psyv-layer) .tab.on{color:var(--ink);background:rgba(var(--c-acc),.16);border-color:var(--hair);font-weight:600}
:is(.psyv,.psyv-layer) .tl{display:flex;flex-direction:column;gap:12px}
:is(.psyv,.psyv-layer) .ev{position:relative;padding-left:20px}
:is(.psyv,.psyv-layer) .ev::before{content:"";position:absolute;left:4px;top:7px;width:8px;height:8px;border-radius:50%;background:var(--rose);box-shadow:0 0 0 3px rgba(var(--c-mag),.2)}
:is(.psyv,.psyv-layer) .ev::after{content:"";position:absolute;left:7.5px;top:17px;bottom:-12px;width:1px;background:var(--line)}
:is(.psyv,.psyv-layer) .ev:last-child::after{display:none}
:is(.psyv,.psyv-layer) .ev .d{font-family:var(--fui);font-size:11px;color:var(--faint);margin-bottom:3px;display:flex;gap:8px;flex-wrap:wrap}
:is(.psyv,.psyv-layer) .ev .t{font-weight:600;font-size:15px;margin-bottom:4px}
:is(.psyv,.psyv-layer) .ev .r{font-size:13.5px;color:var(--ash);line-height:1.45;margin:3px 0}
:is(.psyv,.psyv-layer) .ev .r b{color:var(--ink);font-weight:500}
:is(.psyv,.psyv-layer) .task{display:flex;align-items:flex-start;gap:12px;padding:11px 0;border-top:1px solid var(--line)}
:is(.psyv,.psyv-layer) .task:first-child{border-top:0}
:is(.psyv,.psyv-layer) .box{width:22px;height:22px;flex:0 0 auto;border-radius:7px;border:1.6px solid var(--hair);cursor:pointer;margin-top:1px;display:flex;align-items:center;justify-content:center;background:none;padding:0}
:is(.psyv,.psyv-layer) .box.on{background:var(--rail);border-color:transparent}
:is(.psyv,.psyv-layer) .box svg{width:13px;height:13px;stroke:var(--on-btn);stroke-width:3;fill:none;opacity:0}
:is(.psyv,.psyv-layer) .box.on svg{opacity:1}
:is(.psyv,.psyv-layer) .task .tx{flex:1;min-width:0}
:is(.psyv,.psyv-layer) .task .tx b{font-weight:500;font-size:14.5px}
:is(.psyv,.psyv-layer) .task.on .tx b{color:var(--faint);text-decoration:line-through}
:is(.psyv,.psyv-layer) .task .tx span{display:block;font-size:12.5px;color:var(--ash);margin-top:2px;line-height:1.4}
:is(.psyv,.psyv-layer) .slider{display:grid;grid-template-columns:90px 1fr 26px;align-items:center;gap:11px}
:is(.psyv,.psyv-layer) .slider label{font-family:var(--fui);font-size:13px;color:var(--ash)}
:is(.psyv,.psyv-layer) .slider input{width:100%;accent-color:var(--rose)}
:is(.psyv,.psyv-layer) .slider .v{font-variant-numeric:tabular-nums;font-size:13px;text-align:right;font-family:var(--fui)}
:is(.psyv,.psyv-layer) .track{display:flex;flex-direction:column;gap:12px}
:is(.psyv,.psyv-layer) .week{display:flex;gap:7px;align-items:flex-end;height:80px;margin-top:4px}
:is(.psyv,.psyv-layer) .week .col{flex:1;display:flex;flex-direction:column;align-items:center;gap:5px;justify-content:flex-end;height:100%}
:is(.psyv,.psyv-layer) .week .bk{width:100%;max-width:26px;border-radius:5px 5px 2px 2px;background:var(--rail);opacity:.85;min-height:3px}
:is(.psyv,.psyv-layer) .week .bk.no{background:rgba(var(--c-hi),.08)}
:is(.psyv,.psyv-layer) .week .col small{font-family:var(--fui);font-size:10px;color:var(--faint);font-variant-numeric:tabular-nums}
:is(.psyv,.psyv-layer) .entry{border-top:1px solid var(--line);padding:11px 0;display:flex;gap:8px}
:is(.psyv,.psyv-layer) .entry:first-child{border-top:0}
:is(.psyv,.psyv-layer) .entry>div{flex:1;min-width:0}
:is(.psyv,.psyv-layer) .entry .d{font-family:var(--fui);font-size:11px;color:var(--faint);margin-bottom:4px}
:is(.psyv,.psyv-layer) .entry p{font-size:14px;line-height:1.5;color:var(--ash);white-space:pre-wrap}
:is(.psyv,.psyv-layer) .status{font-family:var(--fui);font-size:11px;color:var(--faint);padding:0 4px;line-height:1.4}
:is(.psyv,.psyv-layer) .status.bad{color:var(--danger)}
:is(.psyv,.psyv-layer) .toast{position:fixed;left:50%;bottom:calc(22px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:30;background:var(--raised);border:1px solid var(--edge);
  color:var(--ink);font-family:var(--fui);font-size:13px;padding:9px 16px;border-radius:999px;box-shadow:var(--shadow-lg);max-width:calc(100% - 32px)}
:is(.psyv,.psyv-layer) .ov{position:fixed;inset:0;z-index:40;background:var(--scrim);display:flex;align-items:center;justify-content:center;
  padding:max(16px,env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) max(16px,env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px))}
:is(.psyv,.psyv-layer) .dlg{width:min(440px,100%);max-height:100%;overflow-y:auto;background:var(--raised);border:1px solid var(--edge);border-radius:var(--r-l);padding:20px;display:flex;flex-direction:column;gap:12px;box-shadow:var(--shadow-lg)}
:is(.psyv,.psyv-layer) .dlg h3{font-family:var(--fhead);font-weight:650;font-size:21px;letter-spacing:-.01em;margin:0;line-height:1.2}
:is(.psyv,.psyv-layer) .dlg p{margin:0;font-size:14px;color:var(--ash);line-height:1.5}
:is(.psyv,.psyv-layer) .dlg .chk{display:flex;gap:9px;align-items:flex-start;font-size:13.5px;color:var(--ink);line-height:1.4;cursor:pointer}
:is(.psyv,.psyv-layer) .dlg .chk input{margin-top:3px;accent-color:var(--rose)}
:is(.psyv,.psyv-layer) .dlg .acts{justify-content:flex-end}
:is(.psyv,.psyv-layer) .opts{display:flex;flex-direction:column;gap:4px;max-height:50vh;overflow-y:auto}
:is(.psyv,.psyv-layer) .opt{text-align:left;padding:10px 12px;border-radius:11px;border:1px solid var(--line);background:rgba(var(--c-hi),.03);cursor:pointer;font-family:var(--fui);font-size:14px}
:is(.psyv,.psyv-layer) .opt:hover, :is(.psyv,.psyv-layer) .opt.on{border-color:var(--hair)}
:is(.psyv,.psyv-layer) .opt.on{background:var(--glass)}
:is(.psyv,.psyv-layer) .langs{display:flex;gap:8px;flex-wrap:wrap}
@media (max-width:820px){
:is(.psyv,.psyv-layer) .ib{width:44px;height:44px;border-radius:12px;border:1px solid var(--edge);background:var(--surface);display:flex;align-items:center;justify-content:center;cursor:pointer;flex:0 0 auto}
:is(.psyv,.psyv-layer) .ib[hidden]{display:none}
:is(.psyv,.psyv-layer) .ib svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.8;fill:none}
.psyv.chatv{padding-block:4px 6px}
:is(.psyv,.psyv-layer) .grid2, :is(.psyv,.psyv-layer) .path, :is(.psyv,.psyv-layer) .row3{grid-template-columns:1fr}
:is(.psyv,.psyv-layer) .h{font-size:26px}
:is(.psyv,.psyv-layer) .step:not(.now) small{visibility:hidden}
:is(.psyv,.psyv-layer) .step.now small{white-space:nowrap}
:is(.psyv,.psyv-layer) .msg{max-width:92%}
}
@media (prefers-reduced-motion:reduce){
:is(.psyv,.psyv-layer) .typing i{animation:none}
}
:is(.psyv,.psyv-layer) .composer{padding-bottom:max(0px,var(--tgb))}
:is(.psyv,.psyv-layer) .cfoot{padding-bottom:calc(4px + env(safe-area-inset-bottom,0px))}
:is(.psyv,.psyv-layer) .cfoot a, :is(.psyv,.psyv-layer) .linkbtn{color:var(--accent);background:none;border:0;padding:0;font:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
:is(.psyv,.psyv-layer) .sosbtn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;font-family:var(--fui);font-weight:600;font-size:13.5px;color:var(--sos-ink);
  background:rgba(var(--c-dan),.1);border:1px solid rgba(var(--c-dan),.38);border-radius:11px;padding:9px 14px;cursor:pointer}
:is(.psyv,.psyv-layer) .sosbtn svg{width:16px;height:16px;stroke:currentColor;stroke-width:2;fill:none}
:is(.psyv,.psyv-layer) .tbsos{font-family:var(--fui);font-size:12px;font-weight:600;color:var(--sos-ink);background:rgba(var(--c-dan),.12);border:1px solid rgba(var(--c-dan),.4);border-radius:999px;padding:7px 11px;cursor:pointer;flex:0 0 auto;white-space:nowrap}
:is(.psyv,.psyv-layer) .help{align-self:stretch;display:flex;flex-direction:column;gap:8px;padding:13px 15px;border-radius:15px;background:rgba(var(--c-dan),.08);border:1px solid rgba(var(--c-dan),.35)}
:is(.psyv,.psyv-layer) .help .k{color:var(--sos-k);margin:0}
:is(.psyv,.psyv-layer) .help .row, :is(.psyv,.psyv-layer) .contact{display:flex;align-items:center;justify-content:space-between;gap:10px}
:is(.psyv,.psyv-layer) .contact{padding:9px 0;border-top:1px solid var(--line)}
:is(.psyv,.psyv-layer) .contact:first-child{border-top:0}
:is(.psyv,.psyv-layer) .contact .tx{min-width:0;flex:1}
:is(.psyv,.psyv-layer) .contact .tx b{display:block;font-family:var(--fui);font-weight:600;font-size:14px}
:is(.psyv,.psyv-layer) .contact .tx span{display:block;font-size:12.5px;color:var(--ash);line-height:1.4}
:is(.psyv,.psyv-layer) .call{flex:0 0 auto;font-family:var(--fui);font-weight:600;font-size:13px;text-decoration:none;color:var(--on-btn);background:var(--btn);border-radius:10px;padding:8px 12px;white-space:nowrap}
:is(.psyv,.psyv-layer) .call.ghostc{background:none;color:var(--accent);border:1px solid var(--edge)}
:is(.psyv,.psyv-layer) .sos112{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-radius:16px;background:rgba(var(--c-dan),.12);border:1px solid rgba(var(--c-dan),.45)}
:is(.psyv,.psyv-layer) .sos112 p{margin:0;font-family:var(--fui);font-weight:600;font-size:15px;line-height:1.35}
:is(.psyv,.psyv-layer) .breath{display:flex;flex-direction:column;align-items:center;gap:12px;padding:8px 0}
:is(.psyv,.psyv-layer) .breath .ball{width:120px;height:120px;border-radius:50%;background:radial-gradient(circle at 40% 35%,rgba(var(--c-acc),.9),rgba(var(--c-mag),.55));transform:scale(.6);transition:transform 4s ease-in-out}
:is(.psyv,.psyv-layer) .breath .ball.in{transform:scale(1)}
:is(.psyv,.psyv-layer) .breath small{font-family:var(--fui);color:var(--ash);font-size:13px}
:is(.psyv,.psyv-layer) .choice{display:flex;flex-direction:column;gap:8px}
:is(.psyv,.psyv-layer) .choice .opt{font-size:14.5px;padding:12px 14px}
:is(.psyv,.psyv-layer) .choice .opt.hard{border-color:rgba(var(--c-dan),.45);color:var(--sos-ink)}
:is(.psyv,.psyv-layer) .consent{max-width:640px;margin:0 auto;width:100%}
:is(.psyv,.psyv-layer) .consent ol{margin:6px 0 0;padding-left:20px;display:flex;flex-direction:column;gap:8px}
:is(.psyv,.psyv-layer) .consent li{font-size:14.5px;line-height:1.5}
:is(.psyv,.psyv-layer) .consent li b{font-weight:600}
:is(.psyv,.psyv-layer) .consent .chk{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.45;cursor:pointer;padding:6px 0}
:is(.psyv,.psyv-layer) .consent .chk input{margin-top:3px;accent-color:var(--rose);width:18px;height:18px;flex:0 0 auto}
:is(.psyv,.psyv-layer) .limitbox{align-self:stretch;display:flex;flex-direction:column;gap:9px;padding:12px 14px;border-radius:15px;background:rgba(var(--c-amber),.07);border:1px solid rgba(var(--c-amber),.3)}
:is(.psyv,.psyv-layer) .limitbox p{margin:0;font-family:var(--fui);font-size:13.5px;line-height:1.45;color:var(--amber)}
:is(.psyv,.psyv-layer) .devbar{font-family:var(--fui);font-size:11px;color:var(--amber);border:1px dashed rgba(var(--c-amber),.4);border-radius:10px;padding:6px 9px;line-height:1.4}
:is(.psyv,.psyv-layer) .dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--accent);box-shadow:0 0 8px rgba(var(--c-acc),.7);flex:0 0 auto}
:is(.psyv,.psyv-layer) .ni .cnt.hot{color:var(--on-btn);background:var(--btn);font-weight:600}
:is(.psyv,.psyv-layer) .ni.newmsg{color:var(--ink);border-color:var(--hair);background:rgba(var(--c-acc),.08)}
:is(.psyv,.psyv-layer) .ci.new{border-color:var(--hair)}
:is(.psyv,.psyv-layer) .ci .top .dot{align-self:center}
:is(.psyv,.psyv-layer) .ci.new .top b{flex:1}
:is(.psyv,.psyv-layer) .ci .tag.new{color:var(--accent)}
:is(.psyv,.psyv-layer) .ib.has{position:relative}
:is(.psyv,.psyv-layer) .ib.has::after{content:"";position:absolute;top:7px;right:7px;width:8px;height:8px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 2px var(--bg2)}
:is(.psyv,.psyv-layer) .pre{align-self:flex-start;display:flex;align-items:center;gap:6px;font-family:var(--fui);font-size:11px;color:var(--rose);margin:6px 0 -5px 2px}
:is(.psyv,.psyv-layer) .pre::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--rose)}
:is(.psyv,.psyv-layer) .course .acts{margin-top:10px;gap:6px}
:is(.psyv,.psyv-layer) .course .btn{padding:8px 13px;font-size:13px}
:is(.psyv,.psyv-layer) .course.efir{background:rgba(var(--c-acc),.08);border-color:rgba(var(--c-acc),.3)}
:is(.psyv,.psyv-layer) .course.efir small{color:var(--accent)}
:is(.psyv,.psyv-layer) .course.consult{background:rgba(var(--c-amber),.07);border-color:rgba(var(--c-amber),.3)}
:is(.psyv,.psyv-layer) .course.consult small{color:var(--amber)}
:is(.psyv,.psyv-layer) .legend{margin-left:auto;font-size:10.5px;letter-spacing:0;text-transform:none;color:var(--faint)}
:is(.psyv,.psyv-layer) .cf{display:flex;gap:10px;align-items:flex-start;padding:12px 0;border-top:1px solid var(--line)}
:is(.psyv,.psyv-layer) .cf:first-child{border-top:0;padding-top:2px}
:is(.psyv,.psyv-layer) .cf .tx{flex:1;min-width:0}
:is(.psyv,.psyv-layer) .cf h4{font-family:var(--fui);font-size:12px;color:var(--ash);font-weight:600;margin:0 0 4px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
:is(.psyv,.psyv-layer) .cf p{font-size:15px;line-height:1.5;margin:0}
:is(.psyv,.psyv-layer) .cf p.none{color:var(--faint);font-size:13px}
:is(.psyv,.psyv-layer) .cf>.acts{flex:0 0 auto;gap:0}
:is(.psyv,.psyv-layer) .cf .linkbtn{font-family:var(--fui);font-size:11.5px;margin-top:4px}
:is(.psyv,.psyv-layer) .tres{font-size:13px;color:var(--ash);line-height:1.4;margin-top:3px}
:is(.psyv,.psyv-layer) .plan{display:flex;flex-direction:column;gap:10px}
:is(.psyv,.psyv-layer) .pw{border:1px solid var(--line);border-radius:15px;padding:12px 14px 4px;background:rgba(var(--c-hi),.025)}
:is(.psyv,.psyv-layer) .pw.now{border-color:rgba(var(--c-amber),.5);background:rgba(var(--c-amber),.07);box-shadow:0 0 18px rgba(var(--c-amber),.08)}
:is(.psyv,.psyv-layer) .pw.past .wh span{color:var(--ash)}
:is(.psyv,.psyv-layer) .pw .wh{display:flex;flex-direction:column;gap:2px;padding-bottom:4px}
:is(.psyv,.psyv-layer) .pw .wh b{font-family:var(--fui);font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--faint);font-weight:600}
:is(.psyv,.psyv-layer) .pw.now .wh b{color:var(--amber)}
:is(.psyv,.psyv-layer) .pw .wh span{font-weight:600;font-size:15px;line-height:1.35}
:is(.psyv,.psyv-layer) .pw .task{padding:9px 0}
:is(.psyv,.psyv-layer) .pw .wh+.task{border-top:0}
:is(.psyv,.psyv-layer) .chart{width:100%;margin-top:4px;min-height:150px}
:is(.psyv,.psyv-layer) .chart svg{display:block;width:100%;height:auto;overflow:visible}
:is(.psyv,.psyv-layer) .chart .gl{stroke:rgba(var(--c-hi),.08);stroke-width:1}
:is(.psyv,.psyv-layer) .chart .ln{fill:none;stroke:var(--accent);stroke-width:2.2;stroke-linejoin:round;stroke-linecap:round}
:is(.psyv,.psyv-layer) .chart .ar{fill:rgba(var(--c-acc),.08);stroke:none}
:is(.psyv,.psyv-layer) .chart .pt{fill:var(--accent);stroke:var(--canvas);stroke-width:2}
:is(.psyv,.psyv-layer) .chart text{font-family:var(--fui);font-size:10.5px;fill:var(--faint)}
:is(.psyv,.psyv-layer) .chart text.v{fill:var(--ink);font-size:11.5px;font-weight:600}
:is(.psyv,.psyv-layer) .res{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;font-family:var(--fui);font-size:13px;color:var(--ash);margin-top:8px;line-height:1.4}
:is(.psyv,.psyv-layer) .res b{font-size:22px;color:var(--ink);font-weight:600;font-variant-numeric:tabular-nums}
:is(.psyv,.psyv-layer) .dlg.wide{width:min(560px,100%)}
:is(.psyv,.psyv-layer) .q{padding:12px 0;border-top:1px solid var(--line)}
:is(.psyv,.psyv-layer) .dlg .q .qt{margin:0 0 9px;color:var(--ink);font-size:15px;line-height:1.45}
:is(.psyv,.psyv-layer) .q .qt span{font-family:var(--fui);font-size:12px;color:var(--faint);margin-right:7px;font-variant-numeric:tabular-nums}
:is(.psyv,.psyv-layer) .qo{display:grid;grid-template-columns:1fr 1fr;gap:6px}
:is(.psyv,.psyv-layer) .qo .opt{font-size:13.5px;padding:10px 11px;text-align:center;line-height:1.25}
:is(.psyv,.psyv-layer) .qo .opt.on{background:rgba(var(--c-acc),.16);border-color:var(--accent);color:var(--ink)}
:is(.psyv,.psyv-layer) .sfoot{position:sticky;bottom:-20px;margin:0 -20px -20px;padding:12px 20px calc(16px + env(safe-area-inset-bottom,0px));background:var(--raised);border-top:1px solid var(--line);display:flex;align-items:center;gap:8px;flex-wrap:wrap;z-index:1}
:is(.psyv,.psyv-layer) .sfoot small{flex:1;min-width:110px;font-family:var(--fui);font-size:12px;color:var(--faint)}
:is(.psyv,.psyv-layer) .flagbox{display:flex;flex-direction:column;gap:8px;padding:13px 15px;border-radius:15px;background:rgba(var(--c-dan),.08);border:1px solid rgba(var(--c-dan),.38)}
:is(.psyv,.psyv-layer) .dlg .flagbox p{color:var(--sos-ink);font-size:14.5px}
:is(.psyv,.psyv-layer) .dlg .acts.start{justify-content:flex-start}
:is(.psyv,.psyv-layer) .rq{display:flex;gap:10px;align-items:flex-start;padding:9px 0;border-top:1px solid var(--line)}
:is(.psyv,.psyv-layer) .rq .tx{flex:1;min-width:0;font-size:13px;line-height:1.45;color:var(--ash);overflow-wrap:anywhere}
:is(.psyv,.psyv-layer) .rq .tx b{display:flex;gap:8px;align-items:center;flex-wrap:wrap;color:var(--ink);font-family:var(--fui);font-weight:600;font-size:12.5px;margin-bottom:2px}
:is(.psyv,.psyv-layer) .st{font-family:var(--fui);font-size:10.5px;font-weight:500;padding:0 7px;border-radius:999px;border:1px solid var(--edge);color:var(--ash)}
:is(.psyv,.psyv-layer) .st.sent{color:var(--green);border-color:rgba(var(--c-green),.35)}
:is(.psyv,.psyv-layer) .st.new{color:var(--amber);border-color:rgba(var(--c-amber),.35)}
:is(.psyv,.psyv-layer) .st.failed{color:var(--danger);border-color:rgba(var(--c-dan),.4)}
:is(.psyv,.psyv-layer) .st.cancelled{color:var(--faint)}
:is(.psyv,.psyv-layer) .setr{display:flex;align-items:flex-start;gap:14px;padding:11px 0;border-top:1px solid var(--line)}
:is(.psyv,.psyv-layer) .setr.first{border-top:0;padding-top:2px}
:is(.psyv,.psyv-layer) .setr .tx{flex:1;min-width:0}
:is(.psyv,.psyv-layer) .setr .tx b{display:block;font-family:var(--fui);font-weight:600;font-size:14px;line-height:1.35}
:is(.psyv,.psyv-layer) .setr .tx span{display:block;font-size:12.5px;color:var(--ash);line-height:1.4;margin-top:3px}
:is(.psyv,.psyv-layer) .sw{position:relative;flex:0 0 auto;width:46px;height:28px;margin-top:1px}
:is(.psyv,.psyv-layer) .sw input{position:absolute;inset:0;width:100%;height:100%;opacity:0;margin:0;cursor:pointer;z-index:1}
:is(.psyv,.psyv-layer) .sw i{position:absolute;inset:0;border-radius:999px;background:rgba(var(--c-hi),.1);border:1px solid var(--edge);transition:background .15s}
:is(.psyv,.psyv-layer) .sw i::after{content:"";position:absolute;top:4px;left:4px;width:18px;height:18px;border-radius:50%;background:var(--ash);transition:transform .15s,background .15s}
:is(.psyv,.psyv-layer) .sw input:checked+i{background:var(--btn);border-color:transparent}
:is(.psyv,.psyv-layer) .sw input:checked+i::after{transform:translateX(18px);background:var(--on-btn)}
:is(.psyv,.psyv-layer) .sw input:focus-visible+i{outline:2px solid var(--accent);outline-offset:2px}
:is(.psyv,.psyv-layer) .sw input:disabled{cursor:default}
:is(.psyv,.psyv-layer) .sw input:disabled+i{opacity:.4}
@media (prefers-reduced-motion:reduce){
:is(.psyv,.psyv-layer) .sw i, :is(.psyv,.psyv-layer) .sw i::after{transition:none}
}

/* ===== Вкладка «Психолог» (psy_app.js): раскладка на телефоне, разговор во весь экран ===== */
.psyv { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; color: var(--ink); font-family: var(--fbody); }
.psyv-layer { position: relative; z-index: 60; color: var(--ink); font-family: var(--fbody); }
.psyv-layer:empty { display: none; }
:is(.psyv,.psyv-layer) .btn { width: auto; display: inline-flex; padding: 10px 16px; font-size: 13.5px; border-radius: 11px; color: var(--on-btn); background: var(--btn); box-shadow: none; }
:is(.psyv,.psyv-layer) .btn.ghost { background: none; color: var(--ash); box-shadow: none; border: 1px solid var(--edge); }
:is(.psyv,.psyv-layer) .btn.danger { background: none; color: var(--danger); border: 1px solid rgba(var(--c-dan),.4); box-shadow: none; }
:is(.psyv,.psyv-layer) .newbtn { display: flex; width: 100%; padding: 12px 16px; font-size: 14.5px; }
:is(.psyv,.psyv-layer) .empty { text-align: left; padding: 0; }
:is(.psyv,.psyv-layer) .sub { margin: 0; }
:is(.psyv,.psyv-layer) a { color: inherit; }
:is(.psyv,.psyv-layer) .ib { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--edge); background: var(--surface); display: flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 auto; color: var(--ink); }
:is(.psyv,.psyv-layer) .ib svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.8; fill: none; }
.psyv .card .grp, .psyv .grp.card { padding: 8px 6px; }
.psyv .glabel { margin: 0; }
.psyv a.ni { text-decoration: none; }
.psyv .sosbtn { text-decoration: none; }
.psyv .tier { margin-top: 2px; }
.psyv .lockcard { border-color: var(--hair); background: radial-gradient(80% 90% at 100% 0%, var(--glow-a), transparent 70%), var(--surface); }
.psyv .lockcard .lead { font-family: var(--fhead); font-weight: 650; font-size: 21px; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 6px; }
.psyv .vlist { list-style: none; margin: 10px 0 4px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.psyv .vlist li { display: flex; flex-direction: column; gap: 2px; padding-left: 18px; position: relative; }
.psyv .vlist li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--rail); }
.psyv .vlist b { font-family: var(--fui); font-weight: 600; font-size: 14.5px; }
.psyv .vlist span { font-size: 13.5px; color: var(--ash); line-height: 1.45; }
.psyv .tiers2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.psyv .tierc { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 12px; border-radius: 15px; border: 1px solid var(--edge); background: rgba(var(--c-hi),.04); cursor: pointer; }
.psyv .tierc.on { border-color: var(--accent); background: rgba(var(--c-acc),.12); }
.psyv .tierc b { font-family: var(--fui); font-weight: 600; font-size: 14px; }
.psyv .tierc .pr { font-family: var(--fui); font-weight: 700; font-size: 18px; color: var(--ink); }
.psyv .tierc .pr small { font-size: 11.5px; font-weight: 500; color: var(--faint); }
.psyv .tierc span { font-size: 12.5px; color: var(--ash); line-height: 1.35; }
.psyv .skel { display: flex; flex-direction: column; gap: 10px; }
.psyv .skel i { display: block; height: 58px; border-radius: var(--r-m); background: linear-gradient(90deg, var(--surface), var(--surface-2), var(--surface)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.psyv .skel i.s { width: 60%; height: 36px; }
.psyv .tabs a.tab { text-decoration: none; }
.psyv .sos { display: flex; flex-direction: column; gap: 12px; }
.psyv .contact .call { text-decoration: none; }
/* разговор во весь экран: без нижней панели, поле ввода у клавиатуры */
body.psy-chat { padding-bottom: 0; overflow: hidden; }
body.psy-chat .tabbar { display: none; }
body.psy-chat #view { padding: 0; max-width: none; }
.psyv.chatv { position: fixed; inset: 0; z-index: 5; max-width: 720px; margin: 0 auto; gap: 0;
  padding: calc(8px + max(env(safe-area-inset-top), var(--tgt))) max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
  height: var(--tg-viewport-stable-height, 100dvh); }
.psyv.chatv .composer { padding-bottom: max(6px, var(--tgb)); }
.psyv.chatv .cfoot { padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); }
.psyv .msgs { -webkit-overflow-scrolling: touch; }
body.web.wl-standalone .psyv.chatv { padding-top: calc(8px + env(safe-area-inset-top)); }
/* шапка разговора (одно место, 22.11): «Назад», название в две строки (без разрыва слова), «⋯» и «Мне плохо» — всегда,
   на любой ширине; тема разговора — строкой под названием; солнце/луна — только где хватает места (тема есть в «Моё») */
.psyv .chead { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto auto; grid-template-areas: "back ttl theme menu sos" ". chip chip chip chip";
  align-items: center; gap: 6px 8px; }
.psyv .chead #cBack { grid-area: back; }
.psyv .chead .ttl { grid-area: ttl; min-width: 0; }
.psyv .chead .ttl b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; overflow: hidden; overflow-wrap: break-word; }
.psyv .chead .ttl small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.psyv .chead .tchip { grid-area: chip; justify-self: start; max-width: 100%; }
.psyv .chead [data-act="theme-toggle"] { grid-area: theme; }
.psyv .chead #cMenu { grid-area: menu; font-size: 20px; }
.psyv .chead .tbsos { grid-area: sos; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; text-decoration: none; }
.psyv .chead .tbsos svg { width: 19px; height: 19px; display: block; fill: var(--sos); stroke: var(--sos); stroke-width: 1.5; }
@media (max-width: 380px) { .psyv .chead [data-act="theme-toggle"] { display: none; } }
@media (min-width: 821px) { .psyv .chead { grid-template-columns: 44px minmax(0, 1fr) auto auto auto auto; grid-template-areas: "back ttl chip theme menu sos"; } .psyv .chead .tchip { max-width: 260px; } }

/* «Тариф и данные»: строки тарифов без переносов цены (e2e №8) */
.psyv .tiersl { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.psyv .tlr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: baseline; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line); background: rgba(var(--c-hi),.03); }
.psyv .tlr.on { border-color: var(--hair); background: var(--glass); }
.psyv .tlr b { font-family: var(--fui); font-weight: 600; font-size: 14px; }
.psyv .tlr .pr { font-family: var(--fui); font-size: 13.5px; white-space: nowrap; }
.psyv .tlr .x { grid-column: 1 / -1; font-size: 12.5px; color: var(--ash); line-height: 1.35; }
.psyv .nw { white-space: nowrap; }

/* ---------- «Рассвет»: цвета, поверхности и свет — из токенов; здесь только то, что в светлой теме устроено иначе ---------- */
:root[data-theme="light"] :is(.chip.on, .seg a.on, .seg button.on, .scale10 button.on) { background: var(--surface); color: var(--accent); box-shadow: inset 0 0 0 1px var(--hair), 0 2px 10px rgba(120,60,90,.08); }
:root[data-theme="light"] .tabbar { box-shadow: 0 -6px 24px rgba(120,60,90,.07); }
:root[data-theme="light"] .sos-opt.main { background: linear-gradient(135deg, rgba(255,214,192,.8), rgba(246,204,218,.65) 55%, rgba(228,216,242,.7)); }
:root[data-theme="light"] .sos-opt.urgent { box-shadow: 0 0 0 1.5px rgba(179,50,79,.45), var(--shadow); }
:root[data-theme="light"] .cv-p { background: rgba(255,255,255,.55); }
:root[data-theme="light"] .tag { background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); }
:root[data-theme="light"] .flist li.now > a, :root[data-theme="light"] .nlist li.now > a { background: rgba(255,255,255,.6); }
:root[data-theme="light"] .tq { background: rgba(255,255,255,.55); border-color: rgba(255,255,255,.75); box-shadow: 0 2px 12px rgba(120,60,90,.07); }
:root[data-theme="light"] .phase { color: #3b1230; text-shadow: 0 1px 8px rgb(255 255 255 / .55); }   /* «Подышать»: тёмная надпись на светлом круге (e2e №25) */
:root[data-theme="light"] .em-ic, :root[data-theme="light"] .onb-emoji { box-shadow: inset 0 0 0 1px rgba(var(--c-acc),.22), 0 10px 30px rgba(120,60,90,.08); }
:root[data-theme="light"] .sheet-box { box-shadow: 0 -10px 40px rgba(120,60,90,.14); }

/* ---------- движение (120–240 мс): появление экрана, отклик на нажатие, линия прогресса ----------
   Появляется только новый экран (#view.enter, app.js: route); перерисовка того же экрана после догрузки данных
   не мигает. prefers-reduced-motion убирает всё. */
@media (prefers-reduced-motion: no-preference) {
  #view.enter > *:not(.psyv):not(.onb):not(.wr) { animation: riseUp var(--d3) var(--ease) both; }
  #view.enter > *:nth-child(2) { animation-delay: 30ms; } #view.enter > *:nth-child(3) { animation-delay: 60ms; } #view.enter > *:nth-child(n+4) { animation-delay: 90ms; }
  :is(.c4, .wk, .nextc, .fnext, .rtile, .ptile, .gcard, .pill, .tpill, .fstrip, .tile-link, .ctile, .me-card, .nlist a, .flist a, .list > .row, .ccard, .plans .plan, .onb .opt):active { transform: scale(.98); }
  :is(.c4, .wk, .nextc, .fnext, .rtile, .ptile, .gcard, .pill, .tpill, .fstrip, .tile-link, .ctile, .me-card, .nlist a, .flist a, .list > .row, .ccard) { transition: transform var(--d1) var(--ease); }
  .sheet-box { animation: sheetUp var(--d3) var(--ease) both; }
  .jr.editing { animation: riseUp var(--d2) var(--ease) both; }
}
@keyframes riseUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes sheetUp { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cv img { opacity: 1; }
}

/* ---------- «Медитации» (26.11): страница meditations.html во встроенном окне на весь экран, под нижней панелью ---------- */
.med-host { position: fixed; inset: 0; z-index: 15; background: #0b0a12; box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px); }   /* окно внутри не знает про вырез и часы iPhone (полный экран со значка «Домой») */
.med-host[hidden] { display: none; }
.med-host iframe { display: block; width: 100%; height: 100%; border: 0; background: transparent; }
body.med-on { overflow: hidden; }
body.med-on #mini-pl { display: none; }          /* мини-плеер эфира не накрывает список медитаций */
body.med-play .tabbar { display: none; }         /* открыт плеер медитации — экран целиком ему */
/* шесть вкладок на узком телефоне: подписи чуть мельче, подложка значка уже */
@media (max-width: 400px) {
  .tabbar a { font-size: 10px; padding-inline: 0; }
  .tabbar .ico { width: 44px; }
}

/* ─────────────────────────────────────────────────────────────────────────
   НАСТРОЕНИЯ РАЗДЕЛОВ (решение Никиты 27.11.2026). Одна система, разный оттенок
   и атмосфера. app.js ставит html[data-sec]=активная вкладка. Меняем ТОЛЬКО
   --accent / --c-acc (эйбрау, активная вкладка, чипы, иконки) и --glow-* (аура).
   Кнопки (--btn), полоски (--rail), карточки, шрифты — общие, не трогаем.
   «Эфиры» (home) — тёплый коралл по умолчанию, отдельного блока не требует.
   ───────────────────────────────────────────────────────────────────────── */
/* Психолог — тихий сиренево-розовый, спокойная аура */
:root[data-sec="psy"] {
  --accent: #c3b0f2; --c-acc: 195,176,242; --accent-soft: rgba(195,176,242,.13);
  --glow-a: rgba(195,176,242,.20); --glow-b: rgba(242,147,179,.15); --glow-c: rgba(170,150,230,.13);
}
:root[data-theme="light"][data-sec="psy"] {
  --accent: #6f58b0; --c-acc: 111,88,176; --accent-soft: rgba(111,88,176,.10);
  --glow-a: rgba(214,206,245,.55); --glow-b: rgba(246,210,224,.55); --glow-c: rgba(206,196,240,.5);
}
/* Медитации — глубокий космический синий */
:root[data-sec="med"] {
  --accent: #9fb4e8; --c-acc: 159,180,232; --accent-soft: rgba(159,180,232,.13);
  --glow-a: rgba(120,140,220,.18); --glow-b: rgba(159,180,232,.14); --glow-c: rgba(90,110,180,.12);
}
:root[data-theme="light"][data-sec="med"] {
  --accent: #46589c; --c-acc: 70,88,156; --accent-soft: rgba(70,88,156,.10);
  --glow-a: rgba(190,200,240,.5); --glow-b: rgba(200,210,245,.5); --glow-c: rgba(175,190,235,.45);
}
/* Мой год — тёплое золото (праздничный акцент) */
:root[data-sec="year"] {
  --accent: #f3b56e; --c-acc: 243,181,110; --accent-soft: rgba(243,181,110,.13);
  --glow-a: rgba(243,181,110,.20); --glow-b: rgba(255,196,154,.14); --glow-c: rgba(210,150,90,.12);
}
:root[data-theme="light"][data-sec="year"] {
  --accent: #8a500d; --c-acc: 138,80,13; --accent-soft: rgba(138,80,13,.10);
  --glow-a: rgba(255,226,178,.55); --glow-b: rgba(255,212,170,.5); --glow-c: rgba(240,196,140,.45);
}
/* Плавная смена оттенка ауры при переходе между разделами */
.auraB .g { transition: background 600ms var(--ease, ease); }
@media (prefers-reduced-motion: reduce) { .auraB .g { transition: none; } }

/* === Бейджи вкладок и золотые кнопки повышения тарифа (решение Никиты 30.11) === */
.tabbar a { position: relative; }
.tb-badge { position: absolute; top: 2px; left: 50%; transform: translateX(-50%); font-family: var(--fui); font-size: 8px; font-weight: 700; letter-spacing: .3px; padding: 2px 6px; border-radius: 999px; white-space: nowrap; pointer-events: none; line-height: 1.25; z-index: 2; }
.tb-badge.soon { background: var(--amber); color: var(--bg); animation: tbglow 2.6s ease-in-out infinite; }
.tb-badge.pro { background: var(--amber); color: var(--bg); animation: tbglow 2.6s ease-in-out infinite; }
@keyframes tbglow { 0%,100% { box-shadow: 0 0 0 0 rgba(var(--c-amber),0); } 50% { box-shadow: 0 0 10px 1px rgba(var(--c-amber),.7); } }
/* «денежная» кнопка повышения — золотая и с лёгким сиянием */
:is(.psyv,.psyv-layer) .up-cta { position: relative; overflow: hidden; background: var(--amber) !important; color: var(--bg) !important; border-color: transparent !important; box-shadow: 0 10px 26px rgba(var(--c-amber),.4); }
:is(.psyv,.psyv-layer) .up-cta::before { content: ""; position: absolute; top: 0; left: -60%; width: 45%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent); transform: skewX(-18deg); animation: upshine 3.4s ease-in-out infinite; }
@keyframes upshine { 0% { left: -60%; } 55% { left: 130%; } 100% { left: 130%; } }
:is(.psyv,.psyv-layer) .tierc { position: relative; }
:is(.psyv,.psyv-layer) .tierc-tag { position: absolute; top: -8px; right: 12px; font-size: 8.5px; font-weight: 700; letter-spacing: .4px; padding: 2px 8px; border-radius: 999px; background: var(--amber) !important; color: var(--bg) !important; }
@media (prefers-reduced-motion: reduce) { .tb-badge.pro, .tb-badge.soon, :is(.psyv,.psyv-layer) .up-cta::before { animation: none; } }
