/* motion.css — стили тихих микро-анимаций и светлая тема.
   Подключается ПОСЛЕ основного <style> страницы:
     <link rel="stylesheet" href="motion.css">
   Инициализация — motion.js (подключать после posts.js).
   Источник компонентов: каталог DesignBookmark Motion, перекрашено под сайт. */

/* ============ Шрифт Onest — свой файл (P3-2, 19.11.2026) ============ */
/* Вариативный Onest 100..900, подмножество «латиница + кириллица + типографика»,
   WOFF2 38 КБ вместо загрузки с fonts.googleapis.com. Лицензия SIL OFL 1.1.
   Файл — onest.woff2 в корне сайта (в белом списке publish.ps1). */
@font-face {
  font-family: 'Onest';
  src: url('onest.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ============ 0. Светлая тема (html.theme-light) ============ */
/* значения по умолчанию (тёмная) для дополнительных переменных */
:root {
  --card: #2e261f;   /* поверхность плашек/вкладок/полей */
  --panel: #201a14;  /* большие тёмные панели (формы, FAQ, контакты) */
  --strong: #fff6e2; /* усиленный текст: жирный, заголовки разделов */
  --ph: #7d7161;     /* приглушённые иконки и плейсхолдеры */
  --alert: #d97b6c;  /* ошибки, мягкий красный */
}
/* 14.11 (владелец: «внизу остаётся тёмный кусок» на телефоне): канвас
   за html рисуется цветом системы — при динамической панели адреса Chrome
   на Android показывает выступающую снизу зону (чёрной). Фон на html
   заливает канвас цветом страницы в обеих темах. */
html { background: var(--bg); }
/* Переключается шнуром-лампочкой (#cord) или localStorage rk_theme.
   Живут только переменные: страницы с var() перекрашиваются сами. */
html.theme-light {
  --bg: #f3e9d7;
  --bg-soft: #eaddc6;
  --ink: #3a2f22;
  --muted: #8a765c;
  --accent: #b9822f;
  --accent-dim: #a4721f;
  --line: #dccbaa;
  --card: #fbf6ec;        /* плашки на светлом фоне */
  --panel: #fbf6ec;       /* формы/FAQ/контакты — крем, как на главной */
  --strong: #4a3a24;      /* усиленный текст — тёмный на светлом */
  --ph: #c9b795;          /* приглушённые иконки/плейсхолдеры */
  --alert: #b0563f;       /* ошибки, мягкий красный */
}
/* отдельные затемнённые места на светлом фоне */
html.theme-light body {
  background:
    radial-gradient(farthest-corner at 50% 50%,
      rgba(185,130,47,.10) 0%,
      rgba(185,130,47,.062) 30%,
      rgba(185,130,47,.036) 55%,
      rgba(185,130,47,.014) 75%,
      rgba(185,130,47,0) 92%),
    var(--bg);
}
html.theme-light .post-body b { color: #4a3a24; }
html.theme-light input:-webkit-autofill,
html.theme-light input:-webkit-autofill:hover,
html.theme-light input:-webkit-autofill:focus,
html.theme-light textarea:-webkit-autofill,
html.theme-light textarea:-webkit-autofill:hover,
html.theme-light textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--card) inset;
  caret-color: var(--ink);
}
/* ============ 10. Эффект камина: живой тёплый свет из-под нижнего края ============ */
/* только тёмная тема (в светлой — день); анимируется только opacity слоя (GPU).
   14.11 (владелец: при скролле на телефоне «чёрный блок, потом исчезает»):
   камин — ОГРОМНЫЙ фиксированный слой с бесконечной анимацией прозрачности,
   на телефоне Chrome не успевает растеризовать его при скролле — в зоне слоя
   остаётся непрокрашенный (чёрный) кусок, исчезает на следующем кадре.
   На телефоне (≤560px) слой убираем целиком — мерцание-камин остаётся на ПК.
   15.11 (владелец: «мерцание в виде радуги»): тёмные радиальные градиенты
   с альфами .04–.13 квантуются на 8-битном экране в ступени — цветные
   («радужные») кольца; качание opacity их гоняло по кадру. Лечено дважды:
   (1) дизеринг — статичный тайл моно-шума на body::before разбивает ступени;
   (2) качание тише (размах .45 → .15) и медленнее (5.5s → 7s). */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E") repeat;
  opacity: .05;
}
html.theme-light body::before { content: none; }
@media (max-width: 560px) { body::before { content: none; } }
body::after {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(760px 460px at 50% 112%, rgba(255,150,60,.13), transparent 72%),
    radial-gradient(560px 380px at 8% 100%, rgba(230,140,60,.09), transparent 72%),
    radial-gradient(620px 420px at 94% 103%, rgba(230,140,60,.08), transparent 72%);
  opacity: .85; will-change: opacity;
  animation: fire-glow 7s ease-in-out infinite alternate;
}
html.theme-light body::after { content: none; }
@media (max-width: 560px) { body::after { content: none; } }

/* 14.11 (владелец: плееры «не адаптированы для светлой темы»): тёмная панель
   остаётся тёмной на постах в тёмной теме, в светлой перекрашивается.
   Видео-кадр оставлен чёрным (как на YouTube в светлой теме). */
html.theme-light .glassplayer {
  background: var(--card);
  border-color: var(--line);
  box-shadow: 0 8px 24px rgba(58,47,34,.16);
}
html.theme-light .glassplayer .gbar {
  background: linear-gradient(120deg, rgba(58,47,34,.06), rgba(58,47,34,.03));
  border-top-color: var(--line);
}
html.theme-light .glassplayer.gpvideo .gbar {
  background: linear-gradient(transparent, rgba(251,246,236,.95) 62%);
}
html.theme-light .gtrack { background: rgba(58,47,34,.18); }
html.theme-light .gknob { background: var(--ink); box-shadow: 0 0 5px rgba(0,0,0,.25); }
html.theme-light .gtime { color: var(--muted); }
html.theme-light .gvol-slider { background: rgba(58,47,34,.2); }
html.theme-light .gvol-slider::-webkit-slider-thumb { background: var(--ink); }
html.theme-light .grate { background: rgba(58,47,34,.08); }
html.theme-light .grate:hover { background: rgba(58,47,34,.16); }
html.theme-light .gmenu {
  background: #fdfaf3; border-color: var(--line);
  box-shadow: 0 10px 30px rgba(58,47,34,.22);
}
html.theme-light .glassplayer:focus-visible { border-color: var(--accent-dim); }

/* 14.11 (владелец: «на телефоне плеер обрезанный — скорости/весь экран
   не видно»): убираем ползунок громкости (громкость остаётся иконкой и
   клавишами ↑/↓) и сжимаем панель — все кнопки влезают в 346px */
@media (max-width: 560px) {
  .glassplayer:not(.gpvideo) .gbar,
  .glassplayer.gpvideo .gbar { gap: 8px; padding-left: 10px; padding-right: 10px; }
  .glassplayer:not(.gpvideo) .gbar { padding-top: 8px; padding-bottom: 8px; }
  .glassplayer.gpvideo .gbar { padding-top: 12px; padding-bottom: 6px; }
  .glassplayer .gvol-slider { display: none; }
  .glassplayer .gtime { font-size: 11.5px; }
} /* /@media 560px (скобка потерялась правкой v=59, найдено 14.11 — съедала
     весь стиль ниже: шнур, камин, шторку; на десктопе стиль не применялся) */
@keyframes fire-glow {
  0% { opacity: .85; }
  18% { opacity: 1; }
  41% { opacity: .92; }
  63% { opacity: 1; }
  82% { opacity: .88; }
  100% { opacity: .97; }
}
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; opacity: .85; }
}

/* мягкий переход темы (не затрагиваю transform пружин) */
body, header, .post-body .box, .comment.author, .cform, .votes button,
.chips a.chip, .tabs-pill, footer, .rvw blockquote, .faq details {
  transition: background-color .25s ease, color .2s ease, border-color .2s ease;
}

/* ============ Перекаты навигации (.roll) и весовая волна (.wave-*) удалены
   14.11 по решению владельца — JS-код вычищен, это правило тоже ============ */

/* ============ 2. Кнопка «Отправить → Отправлено» ============ */
button.fxbusy { position: relative; overflow: hidden; border-radius: 999px; color: transparent !important; }
button.fxbusy .fxspin { opacity: 1; }
.fxspin {
  position: absolute; left: 50%; top: 50%; width: 20px; height: 20px;
  margin: -10px 0 0 -10px; border-radius: 50%; opacity: 0;
  background: conic-gradient(from 0deg, rgba(0,0,0,0) 0 10%, #2b231b 85%, rgba(0,0,0,0) 85%);
  -webkit-mask: radial-gradient(circle closest-side, transparent 62%, #000 66%);
  mask: radial-gradient(circle closest-side, transparent 62%, #000 66%);
  pointer-events: none;
}
button.fxdone { position: relative; overflow: hidden; }
button.fxdone::before {
  content: ''; position: absolute; left: 10px; top: 50%; width: 16px; height: 16px;
  margin-top: -8px;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5l4.5 4.5L20 7.5' fill='none' stroke='%232b231b' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  opacity: 0; transition: opacity .25s ease .1s, transform .25s ease .1s;
  transform: translateY(6px);
}
button.fxtick::before { opacity: 1; transform: translateY(0); }
button.fxdone { padding-left: 34px !important; padding-right: 18px !important; }

/* ============ 3. Сердечко-лайк (пост/комментарии) ============ */
.votes button { position: relative; }
.votes .ico-heart {
  display: inline-flex; width: 16px; height: 16px; will-change: transform;
}
.votes .ico-heart svg { width: 16px; height: 16px; display: block; }
.votes .ico-heart path { fill: currentColor; stroke: none; }
.votes button.my .ico-heart { color: #d97b6b; }
.votes .ico-heart.pop { animation: heart-pop .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes heart-pop {
  0% { transform: scale(1) rotate(0deg); }
  30% { transform: scale(1.5) rotate(-7deg); }
  55% { transform: scale(.9) rotate(3deg); }
  100% { transform: scale(1) rotate(0deg); }
}
.votes .cnt.bump { animation: cnt-bump .3s ease; }
@keyframes cnt-bump { 0% { transform: scale(1); } 45% { transform: scale(1.4); } 100% { transform: scale(1); } }
.votes .spark {
  position: absolute; left: 8px; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px;
  border-radius: 50%; background: var(--accent); pointer-events: none;
  transition: transform .55s cubic-bezier(.17, .84, .44, 1), opacity .5s ease;
  opacity: 1;
}
.votes .spark.go { opacity: 0; }

/* ============ 4. Единый плеер (аудио+видео), тёмный как на YouTube ============ */
.glassplayer {
  position: relative;
  display: block; margin: 8px 0; overflow: hidden;
  border-radius: 18px;
  background: #17120d;
  border: 1px solid rgba(255,246,226,.18);
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
  outline: none;
}
.glassplayer:focus-visible { border-color: rgba(255,246,226,.32); }
.glassplayer .gpmedia { display: block; width: 100%; background: #000; }
.gbar {
  display: flex; align-items: center; gap: 12px;
  padding: 0 16px; height: 52px;
  background: linear-gradient(120deg, rgba(255,246,226,.10), rgba(255,246,226,.05));
  border-top: 1px solid rgba(255,246,226,.12);
}
/* аудио-вариант: панель по всей высоте, как прежний стеклянный плеер */
.glassplayer:not(.gpvideo) { display: flex; align-items: center; }
.glassplayer:not(.gpvideo) .gbar { flex: 1; padding: 10px 16px; border-top: 0; height: auto; }
/* панель у видео как на YouTube: прячется в покое, выезжает при движении */
.glassplayer.gpvideo .gbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  background: linear-gradient(transparent, rgba(10,8,5,.88) 60%); border-top: 0; padding: 18px 16px 10px;
  transform: translateY(8px); opacity: 0; transition: opacity .25s ease, transform .25s ease; }
.glassplayer.gpvideo.showbar .gbar { transform: translateY(0); opacity: 1; }
.glassplayer.gpvideo .gtrack { height: 5px; }
.glassplayer .gplay {
  flex: none; width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: #2b231b; display: grid; place-items: center;
}
.glassplayer .gplay svg { width: 17px; height: 17px; display: block; }
.glassplayer .gplay .ipa { display: none !important; }
.glassplayer .gplay .ipa.ipa-on { display: block !important; }
.gtrack { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,246,226,.16); cursor: pointer; position: relative; min-width: 60px; }
.gfill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 3px; background: var(--accent); }
.gknob { position: absolute; top: 50%; left: 0; width: 12px; height: 12px; border-radius: 50%;
  background: #fff6e2; transform: translate(-50%, -50%); box-shadow: 0 0 6px rgba(0,0,0,.4); }
.gtime { flex: none; font-size: 12.5px; color: rgba(232,222,208,.8); font-variant-numeric: tabular-nums; white-space: nowrap; }
.grate {
  flex: none; border: 0; background: rgba(255,246,226,.1); color: var(--ink);
  box-shadow: none; font-family: inherit; font-size: 12.5px; font-weight: 600; border-radius: 999px;
  height: auto; width: auto;
  padding: 4px 10px; cursor: pointer;
}
.grate:hover { background: rgba(255,246,226,.2); }
.grate.flash { background: var(--accent) !important; color: #2b231b !important; }
.gfs {
  flex: none; width: 30px; height: 30px; border: 0; border-radius: 8px; cursor: pointer;
  background: none; color: var(--ink); display: grid; place-items: center;
}
.gfs:hover { background: rgba(255,246,226,.12); }
.gfs svg { width: 16px; height: 16px; display: block; }
/* тёмное меню скорости (как на YouTube) */
.gmenu {
  position: absolute; right: 8px; bottom: 50px; z-index: 3;
  min-width: 180px; padding: 8px 6px; border-radius: 12px;
  background: #17120d; border: 1px solid rgba(255,246,226,.2);
  box-shadow: 0 10px 36px rgba(0,0,0,.5);
}
.gmenu .gm-h { padding: 2px 10px 8px; font-size: 12px; color: rgba(232,222,208,.6); }
.gmenu button {
  display: block; width: 100%; text-align: left; border: 0; background: none;
  color: var(--ink); font-family: inherit; font-size: 13.5px;
  padding: 7px 10px; border-radius: 8px; cursor: pointer;
}
.gmenu button:hover { background: rgba(255,246,226,.12); }
.gmenu button.on { color: var(--accent); font-weight: 600; }/* ============ 5. Микрофон голосового ввода ============ */
/* !important — страницы стилизуют .bform button ПОСЛЕ motion.css и перебивали
   круг: жёлтый фон и паддинги давали «неровную» кнопку (баг владельца 13.11) */
button.micbtn {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  width: 34px !important; height: 34px !important;
  border-radius: 50% !important; padding: 0 !important;
  border: 1px solid var(--line) !important; background: var(--card) !important;
  color: var(--muted) !important;
  box-shadow: none !important; font: inherit;
  cursor: pointer; display: grid; place-items: center;
}
button.micbtn svg { width: 17px; height: 17px; display: block; margin: 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
button.micbtn:hover { color: var(--accent) !important; border-color: var(--accent-dim) !important; }
button.micbtn.on {
  color: var(--accent) !important; border-color: var(--accent) !important;
  background: color-mix(in srgb, var(--accent) 12%, var(--card)) !important;
}
button.micbtn.on > svg { display: none; }
.micbars { display: none; align-items: center; gap: 2px; height: 16px; }
button.micbtn.on .micbars { display: inline-flex; }
/* 14.11: волны двигаются ОТ ГОЛОСА (анализатор AudioContext в motion.js);
   высоту полосок задаёт JS — анимация идёт ПО ВЫСОТЕ, без scaleY-трансформ:
   трансформ-слои в некоторых браузерах оставляют «застывший» бледный след
   полоски во весь рост (та самая «линия» владельца). Пока JS не начал
   считать, полоски спокойные — по 12px */
.micbars i { width: 2.5px; border-radius: 2px; background: var(--accent); height: 12px; }
/* 14.11 («вертикальная линия перед первой волной»): страховки — внутри
   значка нечему больше рисоваться: псевдоэлементы и рамки выключены
   наглухо, а во время записи кнопка отсекает всё за своим краем */
button.micbtn::before, button.micbtn::after, button.micbtn .micbars::before,
button.micbtn .micbars::after { display: none !important; }
button.micbtn { border-radius: 50%; }
button.micbtn.on { overflow: hidden; }
button.micbtn .micbars { border: 0; box-shadow: none; background: none; }
/* контейнер для позиционирования микрофона; textarea — блочный, иначе под ним
   остаётся базовая линия 4-5px и кнопка съезжает за границу поля */
.has-mic { position: relative; display: block; }
.has-mic textarea { display: block; width: 100%; padding-right: 52px; resize: none; }

/* ============ 7б. Мобильное меню-«шторка» (навигация сверху) ============ */
header .wrap { position: relative; }
.navburger {
  display: none; position: absolute; left: 14px; top: 4px; z-index: 60;
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card, #2e261f); color: var(--ink); cursor: pointer;
  padding: 0;
}
.navburger svg { width: 20px; height: 20px; display: block; margin: 0 auto; }
@media (max-width: 560px) {
  .navburger { display: block; }
  header nav { display: none; }
}
/* очень узкие экраны (320–360px): заголовок не должен задевать бургер слева */
@media (max-width: 360px) {
  body header h1 { font-size: 24px; }
}
.rk-drawer {
  position: fixed; left: 0; right: 0; top: 0; z-index: 100;
  background: var(--bg-soft); border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  padding: 18px 22px 0; transform: translateY(-105%); will-change: transform;
  transition: transform .4s cubic-bezier(.32, 1.2, .45, 1);
}
.rk-drawer.open { transform: translateY(0); }
.rk-drawer nav { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.rk-drawer nav a {
  display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 10px;
  font-size: 17px; color: var(--ink); text-decoration: none;
  border-radius: 12px; border-bottom: none;
}
.rk-drawer nav a.current { color: var(--accent); }
.rk-drawer nav a.nav-cta { justify-content: center; margin-top: 8px; font-weight: bold; }
.rk-drawer nav .nico { width: 20px; height: 20px; flex: none; color: var(--muted); }
.rk-drawer nav a.current .nico { color: var(--accent); }
.rk-drawer nav .nico svg { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rk-drawer .drawtop { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.rk-drawer .drawtop .db { font-size: 15px; color: var(--muted); }
/* 14.11 (владелец: «нет кнопки закрыть меню») */
.rk-drawer .drawtop .dx {
  width: 34px; height: 34px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--card); color: var(--ink); font-size: 16px; line-height: 1;
  display: grid; place-items: center;
}
.rk-drawer .drawtop .dx:hover { color: var(--accent); }
.rk-dtheme { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 18px 10px; border-top: 1px solid var(--line); cursor: pointer; color: var(--muted); font-size: 15px; background: none; border-left: 0; border-right: 0; border-bottom: 0; width: 100%; }
.rk-dtheme:hover { color: var(--accent); }
.rk-dtheme svg { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.rk-dtheme svg.moon { display: none; }
html.theme-light .rk-dtheme svg.sun { display: none; }
html.theme-light .rk-dtheme svg.moon { display: block; }

/* ============ 6. Шнур-переключатель темы (#cord) ============ */
/* размер увеличен по попросу владельца 13.11 («сделай лампу и шнур побольше») */
#cord { position: absolute; top: 0; right: 2.5%; width: 160px; height: 100%; min-height: 500px; z-index: 40; }
.cord-rope { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.cord-rope path { fill: none; stroke: var(--muted); stroke-width: 2.5; stroke-linecap: round; }
.cord-rope .cord-cord { stroke: var(--ink); }
/* лампа: точка крепления — стык провода и абажура; крутится вокруг него */
.cord-lamp { position: absolute; left: 0; top: 0; will-change: transform; transform-origin: 0 0; }
.cord-shade {
  position: absolute; left: -48px; top: -3px; width: 96px; height: 54px;
  border-radius: 48px 48px 12px 12px / 42px 42px 12px 12px;
  background: #3a3129; border: 1px solid var(--line);
  transition: background-color .25s ease;
}
html.theme-light .cord-shade { background: #cbb896; border-color: #b39c72; }
.cord-bulb {
  position: absolute; left: -17px; top: 46px; width: 34px; height: 34px; border-radius: 50%;
  background: #4a4036; transition: background-color .25s ease, box-shadow .25s ease;
}
.cord-bulb.lit { background: #f7d9a0; box-shadow: 0 0 30px 8px rgba(217,160,91,.55); }
html.theme-light .cord-bulb.lit { background: var(--accent); box-shadow: none; }
.cord-bead {
  position: absolute; left: -8px; top: -3px; width: 16px; height: 28px;
  border-radius: 8px; background: var(--ink); transform-origin: 8px 3px; will-change: transform;
}
.cord-grab {
  position: absolute; left: -20px; top: -10px; width: 40px; height: 48px;
  border: 0; background: transparent; cursor: grab; touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.cord-grab.is-held { cursor: grabbing; }
.cord-grab:focus-visible { outline: 2px solid var(--muted); outline-offset: 0; }
@media (max-width: 560px) {
  /* на телефоне шнур прячем: тему переключает шторка-меню (кнопка «Тема») */
  #cord { display: none; }
}

/* ============ 7. Витрина-обёртки для page-виджетов (лента/расширение/пилюля) ============ */
/* Пилюля вкладок (фильтры «Статьи») */
/* воздух между подзаголовком и пилюлей (просьба 13.11); .wrap перебивал padding —
   потому селектор с двумя классами и !important */
.div.tabs-wrap { padding-top: 0 !important; }
.tabs-wrap.wrap { padding-top: 16px !important; }
#series { padding-bottom: 8px; }
#feed-sec { padding-top: 2px; }
.tabs-pill { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--card, #2e261f); border: 1px solid var(--line); }
.tabs-pill button {
  position: relative; z-index: 1; padding: 7px 15px; border: 0; background: none; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 500; color: var(--muted);
  white-space: nowrap; transition: color .25s; border-radius: 999px;
}
.tabs-pill button[aria-selected="true"] { color: #2b231b; }
.tabs-pill .tpill {
  position: absolute; left: 0; top: 4px; bottom: 4px; border-radius: 999px;
  background: var(--accent); will-change: transform, width; pointer-events: none;
}
@media (max-width: 520px) {
  /* 14.11 (владелец: «Ответы на вопросы обрезается»): пилюля переносится
     на две строки, анимированная подложка скрыта — выбранный таб красится сам;
     пузырь-подложка убран, иначе справа остаётся пустой плашкой в две строки */
  .tabs-pill { max-width: 100%; overflow-x: visible; flex-wrap: wrap;
    background: none; border: 0; padding: 0; }
  .tabs-pill button { padding: 7px 12px; font-size: 13.5px; }
  .tabs-pill .tpill { display: none; }
  .tabs-pill button[aria-selected="true"] { background: var(--accent); }
}

/* Карточки «Статей»; 14.11 — раскрытие убрано владельцем: строка целиком
   статистична, название и картинка — прямые ссылки, описание под мета.
   (Правила .ex-body/.ex-wrap/.ex-full/.ex-goread/.ex-chev/.open снесены.) */
#posts .ex-post.out { display: none; }   /* спрятана фильтром (без пересборки DOM) */
.ex-thumb-a { display: block; flex: none; line-height: 0; }
#posts .ex-post { padding: 10px 0; }
#posts .ex-post:first-child { padding-top: 16px; }
/* 14.11: мета-строка начинается там, где начинается картинка (верх) */
/* 14.11: заголовок — блочный, иначе вертикальный отступ у inline-ссылки
   не работал вовсе (владелец: «Ctrl+F5 — ничего не изменилось») */
.ex-row .ex-t { display: block; margin-bottom: 22px; }
.ex-row .ex-m { margin-bottom: 3px; }   /* 14.11: заголовок ближе к мете (просьба «чуть-чуть») */
.ex-row { display: flex; align-items: flex-start; gap: 12px; }
.ex-row .ex-thumb {
  /* 14.11: строки ОДИНАКОВЫЕ по высоте (владелец), и картинка ЦЕЛИКОМ
     (владелец: «фото до/после, диплом обрезались»): вписываем в блок
     320×190 без обрезки, пустые поля — цветом плашки */
  flex: none; width: 320px; height: 190px; object-fit: contain;
  border-radius: 12px; border: 1px solid var(--line); background: var(--card);
}
@media (max-width: 640px) {
  /* на узких экранах миниатюра сверху, на всю ширину, ЦЕЛИКОМ, как на
     десктопе высотой 190px (владелец 14.11: «фото огромные» — без
     height:auto вертикальные снимки съедали пол-экрана); пустые поля —
     цветом плашки. Якорю тоже 100%: он flex-элемент «по содержимому»,
     иначе 100% картинки считалось от самого якоря (круговая ссылка) —
     картинка оставалась в натуральной ширине (до 1600px) и раздувала
     страницу (найдено на проверке разрешений 14.11) */
  .ex-row { flex-wrap: wrap; }
  .ex-row .ex-thumb-a { width: 100%; }
  .ex-row .ex-thumb { width: 100%; height: 190px; object-fit: contain; }
}
.ex-row .ex-thumb.ex-none { display: inline-block; }
.ex-row .ex-t { font-weight: 700; font-size: 16px; color: var(--ink); line-height: 1.35; text-decoration: none; }
.ex-row .ex-t:hover { color: var(--accent); }
/* 14.11 (владелец: после «Назад» телефоном заголовок остаётся жёлтым):
   Chrome на тач-экране держит :hover на последнем нажатом элементе —
   эффекты наведения включаем только там, где есть курсор */
@media (hover: none) {
  .ex-row .ex-t:hover,
  .car-card .cc-t:hover { color: var(--ink); }
}
.ex-row .ex-t:hover { color: var(--accent); }
.ex-row .ex-m { font-size: 13px; color: var(--muted); }
.ex-row .ex-sub { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin: 2px 0 0; }

/* Лента с точками на главной */
.carousel { position: relative; margin: 6px 22px 0; }
.car-ov { overflow: hidden; border-radius: 14px; }
.car-strip { display: flex; touch-action: pan-y; will-change: transform; }
.car-card {
  flex: none; width: 272px; box-sizing: border-box; padding: 0 8px;
}
.car-card .cc-img { display: block; width: 100%; height: 190px; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); background: var(--card); }
.car-card video.cc-img { width: 100%; height: 190px; }
.car-card .cc-t { display: block; margin: 10px 2px 0; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--ink); text-decoration: none; }
.car-card .cc-t:hover { color: var(--accent); }
.car-card .cc-m { display: block; margin: 3px 2px 0; font-size: 12.5px; color: var(--muted); }
.car-dots { position: relative; display: flex; justify-content: center; gap: 12px; margin-top: 16px; height: 18px; align-items: center; }
.car-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--line); cursor: pointer; }
.car-dots .cd-act { position: absolute; left: 0; top: 5px; height: 8px; border-radius: 4px; background: var(--accent); will-change: transform, width; pointer-events: none; }

/* Read along (Обо мне) удалён 14.11 по решению владельца («убери авточтение») */
@media (prefers-reduced-motion: reduce) {
  .glassplayer::before { animation: none; }
  .micbars i { transition: none; }
}

/* ползунок громкости плеера, тёмный */
.gvol-slider {
  flex: none; width: 64px; height: 4px; appearance: none; -webkit-appearance: none;
  background: rgba(255,246,226,.22); border-radius: 2px; outline: none; cursor: pointer;
}
.gvol-slider::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none; width: 11px; height: 11px; border-radius: 50%;
  background: #fff6e2; border: 0; box-shadow: 0 0 6px rgba(0,0,0,.4); cursor: pointer;
}
/* обводка фокуса плеера заметна, но не «золотая» на весь кадр *//* картинки ленты не драгаются штатным браузерным драгом (мешает нашему) */
.car-card .cc-img { -webkit-user-drag: none; user-select: none; }
/* 14.11 (владелец: тап в ленте «выделяет текст»): лента — драгуемая,
   выделение текста в ней только мешает */
.car-strip { cursor: grab; user-select: none; -webkit-user-select: none; }
.car-strip:active { cursor: grabbing; }
/* иконки звука: как и у плеера — единственная видная через класс ipa-on */
.glassplayer .gvol .ipa { display: none !important; }
.glassplayer .gvol .ipa.ipa-on { display: block !important; }/* кнопка звука в плеере */
.gvol {
  flex: none; width: 32px; height: 32px; border: 0; border-radius: 8px; cursor: pointer;
  background: none; color: var(--ink); display: grid; place-items: center;
}
.gvol:hover { background: rgba(255,246,226,.12); }
.gvol svg { width: 17px; height: 17px; display: block; }
/* ============ 11. Запись истории голосом («Анонимный разбор») ============ */
.recpanel {
  background: var(--card); border-radius: 14px; padding: 18px 20px;
  border: 1px solid var(--line);
}
.recbtn {
  font-family: inherit; font-size: 15.5px; font-weight: 600;
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--accent-dim);
  background: color-mix(in srgb, var(--accent) 14%, var(--card)); color: var(--ink);
  cursor: pointer;
}
.recbtn:hover { background: color-mix(in srgb, var(--accent) 26%, var(--card)); }
.recstate { display: flex; align-items: center; gap: 12px; }
.recdot {
  width: 12px; height: 12px; border-radius: 50%; background: #d97b6b;
  animation: rec-pulse 1.1s ease-in-out infinite alternate; flex: none;
}
@keyframes rec-pulse { from { opacity: .5; } to { opacity: 1; } }
.rectime { font-size: 19px; font-variant-numeric: tabular-nums; color: var(--ink); }
.recstop {
  margin-left: auto; font-family: inherit; font-size: 14px; font-weight: 600;
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--accent-dim);
  background: var(--accent); color: #2b231b; cursor: pointer;
}
.recdone .recplay { width: 100%; }
.recrow { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.recdo {
  font-family: inherit; font-size: 14px; padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer;
}
.recdo:hover { color: var(--accent); border-color: var(--accent-dim); }
.recok { font-size: 14px; color: var(--accent); font-weight: 600; }
.recnote { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.recnote:empty { display: none; }
@media (prefers-reduced-motion: reduce) {
  .recdot { animation: none; }
}
/* ловушка hidden поверх display:flex/block: прятать обязательно */
.recpanel .rec-idle[hidden], .recpanel .recstate[hidden], .recpanel .recdone[hidden],
.has-mic[hidden], .recpanel [hidden] { display: none !important; }
/* голосовые запросы (владелец) */
.voicerow { background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; margin: 10px 0; position: relative; }
.voice-lbl { font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.voice-audio { width: 100%; height: 34px; }
.voice-txt { font-size: 14.5px; color: var(--ink); white-space: pre-wrap; }
.voice-del { position: absolute; top: 8px; right: 8px; border: 0; background: none;
  color: var(--muted); cursor: pointer; font-size: 13px; }
.voice-del:hover { color: var(--alert); }
#voicemod h3 { font-size: 18px; font-weight: normal; margin-bottom: 6px; }