/* Оформление «Журнал» (вариант A из прототипа). Цвета и шрифты — отправная точка. */

:root {
  --bg: #faf7f2;
  --ink: #1d1b18;
  --mut: #6f6a62;
  --line: #e4ddd2;
  --acc: #b3261e;
  /* Сколько сверху занимает прилипшая шапка: по ней отступают якоря и всё, что прилипает ниже неё. На телефоне
     прилипает только первая строка, на планшете и ПК — обе (ниже, у шапки). */
  --stick: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 "Segoe UI", system-ui, sans-serif;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
main.wrap { flex: 1; padding-top: 28px; }

/* Шапка — две строки (#57). Первая (`header.top`): логотип, справа лупа, ссылки Роли и аватар. Вторая (`.rubs`, сразу
   под шапкой): Рубрики пилюлями во всю ширину. На планшете и ПК прилипают обе строки, на телефоне — только первая,
   пилюли уезжают вместе со страницей (ниже). */
.top { position: sticky; top: 0; z-index: 6; background: var(--bg); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; flex: none; align-items: center; gap: 10px; min-width: 0; font: 700 26px/1 Georgia, serif; letter-spacing: -.5px; text-decoration: none; white-space: nowrap; }
.logo .lt { min-width: 0; }
.logo .lt > span { color: var(--acc); }
/* Слева в логотипе — значок «Морда в норе» (#62, до него «Лиса в норе», #61), тот же рисунок, что на вкладке,
   на белой подложке (`_fox.html`, пишет tools/icons.py): 46 px, на телефоне 34 px (ниже). */
.fox { display: block; flex: none; width: 46px; height: 46px; }
/* Название блога задаёт Администратор: длинное (больше 18 знаков) — мельче. Название с пробелом — в две строки по высоте
   значка, акцент второй строкой; из одного слова — одной строкой. */
.logo.long { font-size: 21px; }
.logo.two .lt { font-size: 22px; line-height: 1.05; }
.logo.two .lt > span { display: block; }
/* Логотип и описание блога стоят в строке шапки сами (`.brand` их только собирает), поэтому ширина логотипа на ПК
   считается от шапки. Описание — справа от логотипа через черту, мелко, до двух строк: длинное обрезается многоточием,
   целиком — во всплывающей подсказке. Где тесно, оно уступает место первым; уже 768 px его нет (ниже). Дальше — пусто
   до лупы. */
.brand { display: contents; }
.tagline { display: -webkit-box; flex: 0 1 26ch; min-width: 0; max-width: 26ch; padding-left: 16px; overflow: hidden; border-left: 1px solid var(--line); color: var(--mut); font-size: 12px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.top .wrap > .sfind { margin-left: auto; }
/* Вторая строка — Рубрики пилюлями. Текущая (и «Все» на главной) залита цветом текста, у остальных рамка. Названия
   целиком, без многоточий: что не влезло, на ПК и планшете скрипт шапки прячет с конца (static/js/header.js, `.fit`
   и `gone`) — в «Ещё ▾» оно и так есть; без скрипта пилюли переносятся. На телефоне строка листается вбок (ниже).
   Высота строки постоянная (31 + 10 + 1 px): на её высоту прилипшее ниже отступает от шапки (`--stick`). */
.rubs { position: sticky; top: 64px; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.rubs .wrap { padding-bottom: 10px; }
.rub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; line-height: 1.5; }
.rub > a, .more > summary { display: block; padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.rub > a:hover, .more > summary:hover, .more[open] > summary { border-color: #cbbfae; background: #f3eee6; }
.rub > a:focus-visible, .more > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.rub > a.on, .more > summary:has(.cur) { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.rub.fit { flex-wrap: nowrap; }
.rub.fit > a, .rub > .more { flex: none; }
.rub.fit > a.gone { display: none; }
.more { position: relative; }
.more > summary { list-style: none; color: var(--mut); cursor: pointer; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: " ▾"; font-size: 11px; }
/* Текущая Рубрика ушла из строки — скрипт ставит её название на «Ещё» вместо слова, пилюля залита. */
.more > summary b { font-weight: 400; }
.more > summary:has(.cur) .lbl { display: none; }
.drop { position: absolute; top: calc(100% + 1px); left: -12px; z-index: 6; display: grid; min-width: 220px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 12px 30px rgba(0, 0, 0, .08); }
/* «Ещё ▾» — все Рубрики меню с числами ровным столбиком под пилюлей; длинное название переносится, плашка остаётся
   справа. Где справа не хватает окна, скрипт раскрывает список влево (`end`). */
.rub .drop { top: calc(100% + 6px); left: 0; width: max-content; min-width: 240px; max-width: 340px; white-space: normal; }
.more.end .drop { left: auto; right: 0; }
.rub .drop a { padding: 8px 12px; border: 0; border-radius: 6px; color: var(--ink); text-decoration: none; }
.rub .drop a:hover { background: var(--bg); }
.drop a.on { color: var(--acc); font-weight: 600; }
/* Число Постов плашкой в списках Рубрик (#40): бежевый кружок у правого края строки, у текущей Рубрики — красноватый. */
.drop a:has(> .plate) { display: flex; align-items: baseline; gap: 12px; }
.drop a > .t { min-width: 0; overflow-wrap: anywhere; }
.plate { flex: none; min-width: 22px; margin-left: auto; padding: 0 7px; border-radius: 999px; background: #efe9df; color: var(--mut); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 20px; text-align: center; }
a.on > .plate { background: #fbe3e1; color: #8f1d16; }
/* Под списком Рубрик — «Все Рубрики» и «Все Теги»: в «Ещё ▾» мелко в строку, в меню ☰ и в «Ещё ▾» телефона —
   на всю ширину. */
.drop .alls { display: flex; gap: 4px; margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.rub .drop .alls a { padding: 6px 12px; color: var(--mut); font-size: 13px; }
.rub .drop .alls a:hover { color: var(--ink); }
.sheet .alls { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin: 0; padding: 0; border: 0; }
.sheet .alls a { display: block; color: var(--mut); font-size: 14px; }
.sheet .alls a::after { content: " →"; }
@media (min-width: 601px) {
  :root { --stick: 106px; }
  .sheet .alls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 601px) and (max-width: 1000px) {
  /* Длинное название блога на планшете — в две строки, не шире трети шапки (и значок): справа ему нужны лупа, аватар
     и ☰. Название с пробелом (#61) и так в две строки, его логотип не уже значка со второй строкой. */
  .logo { flex: 0 1 auto; max-width: calc(30% + 56px); white-space: normal; }
  .logo.two { max-width: none; }
  .logo.long { font-size: 18px; }
  .logo.long .lt { line-height: 1.05; }
}
/* Уже 768 px описанию блога рядом с логотипом места нет. Шире — где тесно, место отдаёт описание, а не Название. */
@media (max-width: 767px) {
  .tagline { display: none; }
}
@media (min-width: 768px) {
  .top .wrap > .brand > .logo:has(+ .tagline) { flex-shrink: 0; }
}

.btn {
  display: inline-block;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 7px 16px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  line-height: normal;
  white-space: nowrap;
  text-decoration: none;
}
.btn.ghost { background: transparent; color: var(--ink); }
button.btn { font-family: inherit; }

/* Вошедший в шапке: аватар и имя (без имени — почта), ведут на страницу «Настройки». */
.who { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 32ch; font-size: 14px; color: var(--mut); text-decoration: none; }
.who .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who .ava { --s: 28px; }
a.who:hover, a.who[aria-current] { color: var(--ink); }
a.who:hover .nm, a.who[aria-current] .nm { text-decoration: underline; }
.out { margin: 0; }
/* Меню у аватара: на ПК там, где в шапке тесно (ниже), — вместо Имени и «Выйти». Раскрывается под кнопкой по правому краю. */
.mme { display: none; position: relative; flex: none; }
.mme > summary { list-style: none; display: flex; align-items: center; gap: 4px; padding: 3px 8px 3px 3px; border-radius: 999px; color: var(--mut); cursor: pointer; }
.mme > summary::-webkit-details-marker { display: none; }
.mme > summary::after { content: "▾"; font-size: 11px; }
.mme > summary:hover, .mme[open] > summary { background: #efe9df; color: var(--ink); }
.mme > summary .ava { --s: 28px; }
.mme .drop { left: auto; right: 0; min-width: 250px; }
.mme .drop .mh2 { display: grid; margin: 0 0 4px; padding: 8px 12px 10px; border-bottom: 1px solid var(--line); line-height: 1.3; }
.mme .drop .mh2 b { overflow-wrap: anywhere; }
.mme .drop .mh2 small { color: var(--mut); font-size: 13px; overflow-wrap: anywhere; }
.mme .drop a, .mme .drop button { display: block; width: 100%; padding: 8px 12px; border: 0; border-radius: 6px; background: none; color: var(--ink); font: inherit; font-size: 14px; text-align: left; text-decoration: none; cursor: pointer; }
.mme .drop a:hover, .mme .drop button:hover { background: var(--bg); }
.mme .drop a[aria-current] { font-weight: 600; }
.mme .drop form { margin: 0; }
.mme .drop button { color: var(--mut); }
.mine { font-size: 14px; white-space: nowrap; text-decoration: none; color: var(--acc); }
.mine:hover { text-decoration: underline; }
/* «Мой профиль» на своей Странице (#63) — текущий: подчёркнут жирнее и ниже, чем при наведении. */
.mine[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
/* «Новый пост» (#63) — у Автора и Администратора первым после лупы: красная кнопка «+ Новый пост». На телефоне
   и планшете от неё остаётся круглая «+», подпись — для экранного диктора (ниже). */
.newp { display: inline-flex; flex: none; align-items: center; gap: 4px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--acc); color: #fff; font-size: 14px; font-weight: 600; line-height: 20px; white-space: nowrap; text-decoration: none; }
.newp .ico { width: 18px; height: 18px; }
.newp:hover { background: #8f1d16; }
.newp:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* Ссылки Роли: «Модерация», «Статистика», «Админка»; перед ними — «Мой профиль» */
.work { display: flex; gap: 20px; }
/* Число Комментариев в Очереди проверки */
.qn { display: inline-block; min-width: 20px; margin-left: 2px; padding: 0 6px; border-radius: 999px; background: var(--acc); color: #fff; font-size: 12px; font-weight: 600; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.qn.zero { background: #efe9df; color: var(--mut); }
/* Значок у «Модерации» — только в шапке с меню (ниже): там от ссылки остаются значок и число. */
.ql-ico { display: none; }
/* Меню шапки вошедшего (☰): на телефоне и планшете (ниже), на ПК его нет. Раскрывается во всю ширину под шапкой. */
.hmenu { display: none; }
.hmenu > summary { list-style: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--ink); cursor: pointer; }
.hmenu > summary::-webkit-details-marker { display: none; }
.hmenu > summary:hover, .hmenu[open] > summary { background: #efe9df; }
.hmenu .sheet { left: 0; right: 0; top: 100%; display: block; min-width: 0; max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; padding: 4px 24px 12px; border-width: 0 0 1px; border-radius: 0; }
.sheet .mh { margin: 12px 0 2px; color: var(--mut); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; overflow-wrap: anywhere; }
.sheet .rgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
.sheet a, .sheet button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font-size: 15px; text-align: left; text-decoration: none; overflow-wrap: anywhere; }
.sheet a:hover, .sheet button:hover { text-decoration: underline; }
.sheet a.on { color: var(--acc); font-weight: 600; }
.sheet .acc { color: var(--acc); }
.sheet .acc .qn { margin-left: auto; }
.sheet form { margin: 0; }
.sheet button { color: var(--mut); }
.sheet form:last-child button { border-bottom: 0; }
/* Поиск в шапке: лупа раскрывает строку поиска во всю ширину под шапкой (details, без скриптов). */
.ico { display: block; width: 20px; height: 20px; }
.sfind > summary { list-style: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--mut); cursor: pointer; }
.sfind > summary::-webkit-details-marker { display: none; }
.sfind > summary:hover, .sfind[open] > summary { color: var(--ink); background: #efe9df; }
.sbar { position: absolute; left: 0; right: 0; top: 100%; z-index: 6; padding: 14px 0; border-bottom: 1px solid var(--line); background: var(--bg); box-shadow: 0 12px 24px rgba(0, 0, 0, .06); }
.sbar .in { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
/* Поле поиска: в строке под шапкой и на странице поиска. */
.sfield { display: flex; gap: 10px; min-width: 0; }
.sfield input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; background: #fff; }
.sfield input:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.sfield .btn { padding: 9px 22px; }

/* Шапка на ПК (от 1001 px). Название блога — не шире 35% шапки (рядом ещё значок): с #61 вторая строка — весь акцент,
   она длиннее. Не длиннее двух строк, длинное (больше 18 знаков) из одного слова — мельче; что не влезло, обрезается
   многоточием, целиком оно в aria-label. */
@media (min-width: 1001px) {
  .logo { max-width: calc(35% + 56px); }
  .logo .lt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; line-height: 1.1; white-space: normal; overflow-wrap: anywhere; }
  .logo.long { font-size: 20px; }
  .logo.long .lt { line-height: 1.05; }
  /* Где тесно (`.top.tight` ставит сервер: у Автора и Администратора, с длинным Названием или длинным Именем), Имя,
     «Настройки» и «Выйти» — в меню у аватара; «Новый пост», «Мой профиль» и ссылки Роли остаются в строке словами. */
  .top.tight .who, .top.tight .out { display: none; }
  .top.tight .mme { display: block; }
}
/* Первая строка шапки вошедшего на телефоне и планшете (до 1000 px): логотип, лупа, круглая «+» «Новый пост»,
   значок «Модерации» с числом, аватар и меню ☰. «Мой профиль», «Мои посты и черновики», остальные ссылки Роли,
   Рубрики, «Настройки» и «Выйти» — в меню; вторая строка, пилюли Рубрик, — как на ПК. Название блога у всех
   не длиннее двух строк, длинное (мельче) — трёх; что не влезло, обрезается многоточием, целиком оно в aria-label. */
@media (max-width: 1000px) {
  .logo .lt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; line-height: 1.1; white-space: normal; overflow-wrap: anywhere; }
  .logo.long .lt { -webkit-line-clamp: 3; }
  .logo.two .lt { -webkit-line-clamp: 2; }
  .top .wrap:has(.hmenu) { flex-wrap: nowrap; gap: 0 12px; }
  .top .wrap:has(.hmenu) .logo { flex: 0 1 auto; max-width: none; }
  .top .wrap:has(.hmenu) .out { display: none; }
  .hmenu { display: block; flex: none; }
  .work { flex: none; gap: 0; }
  .work:not(:has(#queue-link)), .work > :not(#queue-link) { display: none; }
  #queue-link { display: inline-flex; align-items: center; gap: 3px; padding: 4px 6px; border-radius: 999px; }
  #queue-link:hover { background: #efe9df; text-decoration: none; }
  #queue-link .ql { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  #queue-link .ql-ico { display: block; width: 18px; height: 18px; }
  #queue-link .qn { margin: 0; }
  /* «Новый пост» — круглая «+», подпись только для экранного диктора; «Мой профиль» — в ☰ (#63). */
  .newp { width: 32px; height: 32px; padding: 0; justify-content: center; }
  .newp .nl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .top .wrap > .prof { display: none; }
  /* В строке только аватар: имя остаётся для экранного диктора, но не видно. */
  .who { flex: none; max-width: none; }
  .who .nm { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Сообщения после действия: «Пост опубликован» и подобные */
.msgs p { margin: 0 0 16px; padding: 10px 14px; border: 1px solid var(--line); border-left: 3px solid var(--acc); border-radius: 8px; background: #fff; }

/* Формы: вход, регистрация, сброс пароля */
.panel { max-width: 440px; margin: 12px auto 48px; }
.panel h1 { font: 700 32px/1.15 Georgia, serif; margin: 0 0 12px; }
.panel .lead { color: #3d3a35; margin: 0 0 20px; }
.panel .aside { color: var(--mut); font-size: 14px; margin: 14px 0 0; }
.panel form { display: grid; gap: 16px; margin-top: 20px; }
.panel form .btn { justify-self: start; padding: 9px 22px; }
/* Регистрация закрыта: объяснение абзацами (текст Администратора) и кнопки «Войти», «Читать блог» в ряд */
.panel .regoff { margin: 0 0 20px; color: #3d3a35; overflow-wrap: anywhere; }
.panel .regoff p { margin: 0 0 10px; }
.panel .row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #fff; }
.field textarea { display: block; resize: vertical; }
.field textarea.text { min-height: 360px; font: 15px/1.6 Consolas, "Cascadia Mono", ui-monospace, monospace; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.field small { color: var(--mut); font-size: 13px; }
.field.bad input { border-color: var(--acc); }
.error { margin: 0; color: var(--acc); font-size: 14px; }
.errors { border: 1px solid var(--acc); border-radius: 8px; padding: 10px 14px; color: var(--acc); background: #fff; }
.errors p { margin: 0; }
/* Поле-ловушка для ботов: людям не видно и не достаётся клавишей Tab. */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Лента */
.sect { display: flex; justify-content: space-between; align-items: baseline; border-top: 3px solid var(--ink); padding-top: 10px; margin-top: 8px; }
.sect h2 { font: 700 22px/1.2 Georgia, serif; margin: 0; }
.empty { margin: 0; padding: 22px 0 40px; color: var(--mut); }
/* Закреплённый пост над Лентой главной: Обложка слева, текст справа. На узком окне Обложка сверху (ниже). */
.pinned { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 36px; align-items: center; padding: 8px 0 40px; scroll-margin-top: calc(var(--stick) + 20px); }
.pinned .big { margin: 10px 0 14px; font: 700 40px/1.12 Georgia, serif; letter-spacing: -.5px; overflow-wrap: anywhere; }
.pinned .big a { text-decoration: none; }
.pinned .big a:hover { text-decoration: underline; }
.pinned .lead { margin: 0 0 14px; color: #3d3a35; font-size: 18px; overflow-wrap: anywhere; }
.pinned .rtop { margin: 0 0 14px; }
/* Лента — одной колонкой строк, между строками тонкая линия. Сверху вниз: Автор и дата, заголовок, Рубрика,
   Анонс в две строки, «Читать дальше →», Рейтинг с кнопками, Прочтения и Комментарии. Значки — SVG в цвет текста. */
.rows { padding: 4px 0 20px; }
.prow { padding: 24px 0; border-top: 1px solid var(--line); scroll-margin-top: var(--stick); }
.rows > .prow:first-child { border-top: 0; }
.prow .ico, .pinned .ico { display: inline-block; flex: none; width: 16px; height: 16px; }
.rtop { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; color: var(--mut); font-size: 13px; line-height: 1.4; }
.rtop .rd { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.rtop .ava { --s: 22px; }
.rtop a.by { color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.rtop a.by:hover { text-decoration: underline; }
.rt { margin: 10px 0 6px; font: 700 26px/1.2 Georgia, serif; letter-spacing: -.2px; overflow-wrap: anywhere; }
.rt a { text-decoration: none; }
.rt a:hover { text-decoration: underline; }
.rrub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 10px; }
.rrub > a { display: inline-flex; align-items: center; gap: 6px; color: var(--acc); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.rrub > a:hover { text-decoration: underline; }
/* Видимость Поста (#44). Плашка словами рядом с Рубрикой — обводкой, чтобы не путать с заливными плашками
   состояний в «Моих постах»; у Поста «Всем» её нет. Цвет у каждого уровня свой: .lv-<значение posts.visibility>. */
.lv-everyone { color: #1e6b34; }
.lv-signed_in { color: #285e8e; }
.lv-subscribers { color: #8a4b00; }
.lv-link { color: #5f5a52; }
.vico { display: inline-block; flex: none; width: 15px; height: 15px; vertical-align: -2px; }
.vis { display: inline-flex; align-items: center; gap: 4px; padding: 0 9px 0 7px; border: 1px solid currentColor; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: normal; line-height: 1.7; text-transform: none; white-space: nowrap; vertical-align: 1px; }
.vis .vico { width: 13px; height: 13px; }
.kicker .vis { margin-left: 8px; }
.tile .kicker .vis { margin-left: 6px; font-size: 11px; }
/* Строка Автора и Администратора под подписью Поста: «Видят только вошедшие», «Видят все, у кого есть ссылка». */
.vseen { display: inline-flex; align-items: center; gap: 5px; }
.vseen span { color: var(--mut); }
a.copy.copied { color: #1e6b34; text-decoration: none; }
.mylist .copy { color: var(--acc); font-size: 14px; }
/* «Кто увидит» в редакторе: карточки над кнопками; на телефоне — столбиком. */
.vis-set { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.vis-set legend { margin: 0 0 6px; padding: 0; font-size: 14px; font-weight: 600; }
.vis-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vis-opt { display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: start; gap: 2px 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.vis-opt input { grid-row: span 2; margin: 4px 0 0; accent-color: var(--ink); }
.vis-opt b { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.vis-opt b span { color: var(--ink); }
.vis-opt small { color: var(--mut); font-size: 13px; line-height: 1.4; }
.vis-opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.vis-opt:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.vis-note { margin: 0; padding: 10px 14px; border: 1px dashed #cfc6b8; border-radius: 8px; background: #fffdf9; color: #3d3a35; font-size: 14px; overflow-wrap: anywhere; }
.vis-note code { font: 13px/1.4 Consolas, "Cascadia Mono", ui-monospace, monospace; }
.vis-note .copy { color: var(--acc); }
/* Подсказка о секретной ссылке — только пока выбрано «По ссылке». */
.vis-set:not(:has(input[value="link"]:checked)) .vis-note { display: none; }
@media (max-width: 600px) {
  .vis-opts { grid-template-columns: 1fr; }
}
/* Пометка 18+ (#55), вариант A «Плашка заливкой»: красная «18+» рядом с Рубрикой, перед плашкой Видимости.
   Заливкой — чтобы не путать с плашками Видимости (они обводкой). Там же — колонка «Последние комментарии»,
   соседние Посты и «Мои посты». */
.a18 { display: inline-flex; align-items: center; flex: none; padding: 0 8px; border-radius: 999px; background: var(--acc); color: #fff; font: 700 12px/1.7 "Segoe UI", system-ui, sans-serif; letter-spacing: normal; text-transform: none; white-space: nowrap; vertical-align: 1px; }
.kicker .a18 { margin-left: 8px; }
.kicker .a18 + .vis { margin-left: 6px; }
.tile .kicker .a18 { margin-left: 6px; font-size: 11px; }
.lc .lp .a18, .pn-top .a18, .pn-bottom .a18, .last .a18 { padding: 0 6px; font-size: 10px; line-height: 1.6; vertical-align: 1px; }
.mylist .a18 { align-self: center; }
.a18seen .a18 { padding: 0 6px; font-size: 10px; }
/* Модератору и Администратору под подписью: «Пометить 18+…» / «Снять пометку 18+…» раскрываются вопросом. */
.t18 > summary { display: inline; color: var(--acc); text-decoration: underline; cursor: pointer; list-style: none; }
.t18 > summary::-webkit-details-marker { display: none; }
.t18[open] { flex-basis: 100%; }
.t18 .q { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; margin: 8px 0 0; color: #3d3a35; }
/* Подтверждение возраста вместо Поста 18+. */
.agegate { max-width: 560px; margin: 0 auto 56px; padding: 24px 22px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: center; }
.agegate .ah { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 0 0 8px; font: 700 21px/1.3 Georgia, serif; }
.agegate .ah .a18 { padding: 2px 10px; font-size: 14px; }
.agegate p { margin: 0 0 14px; color: #3d3a35; }
.agegate .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 14px; }
.agegate .row .btn { padding: 9px 22px; }
.agegate small { display: block; color: var(--mut); font-size: 13px; }
.agegate small a { color: var(--acc); }
/* Вход Гостя к Посту 18+ (вариант X): строка над формой вместо «Войдите, чтобы открыть эту страницу.». */
.a18note { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 4px; padding: 12px 14px; border: 1px solid #e8c4c0; border-radius: 8px; background: #fdf3f2; color: #3d3a35; }
.a18note .a18 { margin-top: 1px; }
/* Обложка Поста 18+ до Подтверждения возраста: размытая копия и круг «18+» поверх. */
.cover.veiled { position: relative; }
.cover.veiled .veil { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 10px; background: rgba(29, 27, 24, .28); color: #fff; text-align: center; text-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
.cover.veiled .veil b { display: grid; place-items: center; width: 54px; height: 54px; border: 2px solid #fff; border-radius: 50%; font: 700 18px/1 "Segoe UI", system-ui, sans-serif; }
.cover.veiled .veil small { font-size: 13px; }
.tile .cover.veiled .veil b { width: 34px; height: 34px; font-size: 12px; }
.tile .cover.veiled .veil small { display: none; }
/* Пометка 18+ в редакторе (вариант 1): карточка-галочка под «Кто увидит». Строка о том, как пометка складывается
   с Видимостью, — только при включённой галочке и только для выбранной Видимости. */
.a18-set { display: grid; gap: 8px; min-width: 0; }
.a18opt { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: start; gap: 2px 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.a18opt input { width: 17px; height: 17px; margin: 3px 0 0; accent-color: var(--acc); }
.a18opt .a18 { margin-top: 1px; }
.a18opt b { display: block; font-size: 15px; }
.a18opt small { color: var(--mut); font-size: 13px; line-height: 1.4; }
.a18opt:has(input:checked) { border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); }
.a18opt:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.a18opt:has(input:disabled) { cursor: not-allowed; }
.a18lock, .a18warn { margin: 0; padding: 10px 14px; border-radius: 8px; font-size: 14px; overflow-wrap: anywhere; }
.a18lock { border: 1px dashed #cfc6b8; background: #fffdf9; color: #3d3a35; }
.a18warn { display: none; border: 1px dashed #e0b4af; background: #fdf6f5; color: #6b2a24; }
form:has(.a18opt input:checked):has(.vis-set input[value="everyone"]:checked) .a18warn[data-vis="everyone"],
form:has(.a18opt input:checked):has(.vis-set input[value="signed_in"]:checked) .a18warn[data-vis="signed_in"],
form:has(.a18opt input:checked):has(.vis-set input[value="subscribers"]:checked) .a18warn[data-vis="subscribers"],
form:has(.a18opt input:checked):has(.vis-set input[value="link"]:checked) .a18warn[data-vis="link"] { display: block; }
/* «Скрывать Посты 18+» в Настройках: под объяснением — сведения о Подтверждении возраста. */
.tg .tx small.age { display: block; margin-top: 2px; }
/* Анонс — не больше двух строк, дальше многоточие; в разметке он целиком. */
.rlead { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; margin: 0 0 14px; color: #3d3a35; font-size: 15px; overflow-wrap: anywhere; }
.rgo { margin: 0 0 16px; }
.rgo .btn { padding: 6px 14px; font-size: 14px; }
.rgo .btn:hover { background: var(--ink); color: #fff; }
.rbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; color: var(--mut); font-size: 14px; font-variant-numeric: tabular-nums; }
.rbar > span, .rbar > a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.rbar > a { text-decoration: none; }
.rbar > a:hover { color: var(--ink); }
/* Рейтинг и кнопки Отметок. Своя Отметка подсвечена: «нравится» зелёным, «не нравится» красным. */
.rate { display: inline-flex; align-items: center; gap: 4px; }
.rate form { display: contents; }
.rate .sc { margin-right: 4px; color: var(--ink); font-weight: 700; }
.rate .sc.neg { color: var(--acc); }
.th { display: inline-grid; place-items: center; width: 34px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--mut); }
a.th:hover, button.th:not([aria-disabled], .on):hover { border-color: var(--ink); color: var(--ink); }
.th[aria-disabled] { opacity: .45; cursor: default; }
.th.up.on { border-color: #1e6b34; background: #e3f1e6; color: #1e6b34; }
.th.dn.on { border-color: var(--acc); background: #fbe3e1; color: var(--acc); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: var(--mut); font-size: 14px; }
/* Рубрика — красной строчкой над заголовком: у крупного Поста и на странице Поста. */
.kicker { margin: 0; color: var(--acc); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.kicker a { text-decoration: none; }
.kicker a:hover { text-decoration: underline; }
/* Шапка страницы Рубрики и Тега */
.lhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 6px 0 14px; border-bottom: 3px solid var(--ink); }
.lhead .kicker { flex-basis: 100%; }
.lhead h1 { margin: 0; font: 700 40px/1.1 Georgia, serif; letter-spacing: -.5px; overflow-wrap: anywhere; }
.lhead .count, .sect .where { color: var(--mut); font-size: 14px; }
/* Страница Автора: последний Пост крупно под шапкой, как Закреплённый на главной. */
/* Листалка с номерами — над списком (.above) и под ним (.below), см. feed/pages.py. Номера «w» видны только на ПК
   и планшете, «p» — только на телефоне (ниже). Недоступные «Назад» и «Вперёд» — серые. */
.pages { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 14px; }
.pages a { text-decoration: none; }
.pages .pv, .pages .nx { padding: 4px 6px; white-space: nowrap; }
.pages a.pv:hover, .pages a.nx:hover { text-decoration: underline; }
.pages .edge { color: #bdb6aa; }
.pages .nums { display: flex; flex-wrap: wrap; gap: 2px; }
.pages .nums a, .pages .nums span { min-width: 32px; padding: 4px 8px; border-radius: 999px; color: var(--mut); text-align: center; font-variant-numeric: tabular-nums; }
.pages .nums a:hover { background: #f3eee6; color: var(--ink); }
.pages .nums .on { background: #efe9df; color: var(--ink); font-weight: 600; }
.pages .nums .gap { min-width: 0; padding: 4px 2px; }
.pages .nums .p { display: none; }
.pages a:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.pages.above { margin: 14px 0 0 -6px; }
.lhead + .pages.above, .shead + .pages.above { margin-top: 18px; }
.pages.below { justify-content: center; margin: 0 0 44px; padding-top: 16px; border-top: 1px solid var(--line); }
/* «Последние комментарии» справа от Ленты главной (feed/_last_comments.html) — только на ПК, от 1001 px: колонка 300 px,
   Лента — на остальную ширину. Уже колонки нет, Лента во всю ширину. Строка — ссылка: Аватар, Имя (длинное —
   с многоточием) и время, справа число Комментариев под Постом (место и под «5 / 8» #43), ниже заголовок Поста
   до двух строк. Над ней в той же колонке `.lside` — облако Тегов `.tc` (#59). */
.lside { display: none; }
@media (min-width: 1001px) {
  .homecols.withlc { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0 44px; align-items: start; }
  .lside { display: block; }
}
.lc .sect h2, .tc .sect h2 { font-size: 19px; }
.lc ol { margin: 0; padding: 4px 0 40px; list-style: none; }
.lc li + li { border-top: 1px solid var(--line); }
.lc a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 12px 0; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.lc a:hover .lp { text-decoration: underline; }
.lc a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.lc .lw { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--mut); font-size: 13px; line-height: 1.3; }
.lc .lw .ava { --s: 20px; }
.lc .lw b { overflow: hidden; color: var(--ink); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.lc .lw time { flex: none; }
.lc .ln { display: inline-flex; align-items: center; gap: 4px; color: var(--mut); font-size: 13px; line-height: 1.3; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lc .ln .ico { display: inline-block; flex: none; width: 14px; height: 14px; }
.lc .lp { grid-column: 1 / -1; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font: 600 15px/1.3 Georgia, serif; }
/* Облако Тегов (#59) над «Последними комментариями»: плашки одного размера, как Теги под Постом (`.ptags`), — «#тег»
   и число мелко; длинный Тег переносится внутри плашки. Внизу «Все Теги →». */
.tc { padding-bottom: 30px; }
.tc ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 14px 0 0; list-style: none; }
.tc li { max-width: 100%; }
.tc li a { display: inline-block; max-width: 100%; padding: 3px 11px; border-radius: 999px; background: #efe9df; font-size: 14px; line-height: 1.45; text-decoration: none; overflow-wrap: anywhere; }
.tc li a:hover { background: #e4dccf; }
.tc li a:focus-visible, .tc .tall:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.tc .tn { margin-left: 2px; color: var(--mut); font-size: 12px; font-variant-numeric: tabular-nums; }
.tc .tall { display: inline-block; margin-top: 14px; color: var(--mut); font-size: 14px; text-decoration: none; }
.tc .tall:hover { color: var(--ink); text-decoration: underline; }

/* Поиск: поле крупно, под ним число найденного и Рубрики с Тегами, чьё название совпало с запросом. */
.shead { padding: 6px 0 18px; border-bottom: 3px solid var(--ink); }
.shead h1 { margin: 0 0 14px; font: 700 40px/1.1 Georgia, serif; letter-spacing: -.5px; }
.shead .sfield { max-width: 720px; }
.shead .sfield input { padding: 11px 18px; font-size: 17px; }
.shead .count { margin: 12px 0 0; color: var(--mut); font-size: 14px; }
.shead .hint { max-width: 720px; margin: 12px 0 0; color: var(--mut); font-size: 14px; }
.also-pages { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 10px; margin: 16px 0 0; font-size: 14px; }
.also-pages .k { color: var(--mut); }
.also-pages a { padding: 4px 12px; border-radius: 999px; background: #efe9df; text-decoration: none; overflow-wrap: anywhere; }
.also-pages a:hover { background: #e4dccf; }
.also-pages a small { color: var(--mut); font-size: 13px; }
.also-pages a.rb { background: #fbe3e1; color: #8f1d16; }
.also-pages a.rb:hover { background: #f6d2ce; }
/* Найденные слова и отрывок текста, где они нашлись */
mark { padding: 0 2px; border-radius: 3px; background: #f6e2a6; color: inherit; }
.prow .frag { margin: -8px 0 14px; color: var(--mut); font-size: 14px; overflow-wrap: anywhere; }
.frag mark { color: var(--ink); }
/* Ничего не нашлось, одни служебные слова, слишком часто */
.snone { max-width: 720px; padding: 26px 0 48px; }
.snone p { margin: 0 0 10px; }
.snone ul { margin: 0; padding-left: 20px; color: #3d3a35; }
.snone .k { color: var(--mut); font-size: 14px; }

/* Ссылка на RSS: в подвале — общий, на странице Рубрики — её свой. */
.rss { display: inline-flex; align-items: center; gap: 6px; color: var(--mut); text-decoration: none; white-space: nowrap; }
.rss .ico { width: 15px; height: 15px; color: #c8641e; }
.rss:hover { color: var(--ink); }
.rss:hover span { text-decoration: underline; }
.lhead .rss { font-size: 14px; }

/* ── #40: «Все Рубрики» и «Все Теги» ── */
/* Ссылка на страницу-список в шапке страницы Рубрики и Тега: справа, на телефоне — своей строкой. */
.lhead .tolist { margin-left: auto; color: var(--mut); font-size: 14px; text-decoration: none; white-space: nowrap; }
.lhead .tolist:hover { color: var(--ink); text-decoration: underline; }
/* «Все Рубрики»: строки — название крупно и число справа, ниже последний Пост. */
.rlist { max-width: 780px; margin: 0; padding: 6px 0 44px; list-style: none; }
.rlist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rlist .nm { font: 700 23px/1.2 Georgia, serif; text-decoration: none; overflow-wrap: anywhere; }
.rlist .nm:hover { text-decoration: underline; }
.rlist .rcount { font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rlist .last { grid-column: 1 / -1; color: var(--mut); font-size: 14px; overflow-wrap: anywhere; }
.rlist .last a { color: var(--ink); text-decoration: none; }
.rlist .last a:hover { text-decoration: underline; }
.rlist .last time { white-space: nowrap; }
/* «Все Теги»: строки «#тег … число» в столбцах, частые выше; столбцы читаются сверху вниз. */
.tcols { margin: 0; padding: 18px 0 48px; list-style: none; columns: 4 200px; column-gap: 36px; }
.tcols li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); break-inside: avoid; font-size: 15px; }
.tcols a { min-width: 0; text-decoration: none; overflow-wrap: anywhere; }
.tcols a:hover { text-decoration: underline; }
.tcols .tn { flex: none; color: var(--mut); font-size: 13px; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .lhead .tolist { margin-left: 0; flex-basis: 100%; }
  .rlist .nm { font-size: 20px; }
  .tcols { columns: 2; column-gap: 20px; }
}

/* Страница Поста: узкая колонка крупного текста */
.phead { max-width: 820px; margin: 0 auto; text-align: center; padding: 36px 0 28px; }
.phead h1 { font: 700 44px/1.1 Georgia, serif; letter-spacing: -.6px; margin: 0 0 18px; overflow-wrap: anywhere; }
.phead .meta { justify-content: center; }
.phead .kicker { margin-bottom: 12px; }
/* Теги под текстом Поста — плашками. */
.ptags { max-width: 700px; margin: -28px auto 40px; display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; }
.ptags a, .ptags span { padding: 4px 12px; border-radius: 999px; background: #efe9df; text-decoration: none; overflow-wrap: anywhere; }
.ptags a:hover { background: #e4dccf; }
.phead .tools { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 16px; margin: 14px 0 0; font-size: 14px; }
.phead .tools a { color: var(--acc); }
/* «Закрепить на главной» у Администратора — строкой рядом с «Править»: кнопка формы выглядит ссылкой. */
.tools .pin { display: contents; }
.tools .state { color: var(--mut); }
.linkbtn { padding: 0; border: 0; background: none; color: var(--acc); font: inherit; text-decoration: underline; }
.body { max-width: 700px; margin: 0 auto 56px; font: 19px/1.7 Georgia, serif; overflow-wrap: break-word; }
.body p { margin: 0 0 1.1em; }
.body a { color: var(--acc); }
/* Разметка текста Поста. «#» в тексте — раздел (h2), «##» — подраздел (h3), глубже — h4. */
.body h2 { font: 700 28px/1.2 Georgia, serif; margin: 44px 0 12px; }
.body h3 { font: 700 22px/1.25 Georgia, serif; margin: 34px 0 10px; }
.body h4 { font: 700 18px/1.3 "Segoe UI", system-ui, sans-serif; margin: 28px 0 8px; }
.body :is(h2, h3, h4) { position: relative; scroll-margin-top: calc(var(--stick) + 20px); }
.body > :first-child { margin-top: 0; }
/* Якорь раздела: «#» слева от заголовка появляется при наведении, ссылку можно скопировать. */
.body .anchor { position: absolute; left: -1.1em; width: 1em; color: var(--mut); font-weight: 400; text-decoration: none; opacity: 0; }
.body :is(h2, h3, h4):hover .anchor, .body .anchor:focus-visible { opacity: 1; }
.body .anchor:hover { color: var(--acc); }
.body ul, .body ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.body li { margin: 0 0 .3em; }
.body li > p { margin-bottom: .4em; }
.body blockquote { margin: 28px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--acc); font-style: italic; color: #3d3a35; }
.body blockquote > :last-child { margin-bottom: 0; }
.body hr { width: 120px; margin: 40px auto; border: 0; border-top: 1px solid #cfc6b8; }
.body s { color: var(--mut); }
.body code { font: .82em/1.5 Consolas, "Cascadia Mono", ui-monospace, monospace; }
.body :not(pre) > code { padding: 1px 6px; border-radius: 5px; background: #efe9df; }
/* Код «Бумага»: тёплый светлый лист. Длинные строки прокручиваются внутри блока, а не со страницей. */
.body pre { margin: 0 0 1.3em; padding: 16px 18px; overflow-x: auto; border-radius: 10px; background: #f1ebe1; color: var(--ink); }
.body pre code { font-size: 14.5px; line-height: 1.6; overflow-wrap: normal; }
/* Подсветка: короткие классы Pygments по группам — слова языка, строки, комментарии, числа, имена. */
.code [class^="k"], .code .ow, .code .nt { color: #b3261e; font-weight: 600; }
.code [class^="s"], .code .dl { color: #2f6b3a; }
.code .si, .code .se { color: #8a4b00; }
.code [class^="c"] { color: #8a8276; font-style: italic; }
.code .cp, .code .cpf { color: #6b3fa0; font-style: normal; }
.code [class^="m"], .code .il, .code .na { color: #8a4b00; }
.code .nf, .code .fm, .code .nc, .code .ne { color: #1f4f8a; }
.code .nb, .code .bp, .code .nd { color: #6b3fa0; }
.code .o, .code .p { color: #6f6a62; }
.code .gd { color: #b3261e; }
.code .gi { color: #2f6b3a; }
.code .gh, .code .gu, .code .gs { font-weight: 600; }
.code .ge { font-style: italic; }
/* Таблица «Линейки»: линии под строками, жирная черта под шапкой. Широкая прокручивается в своей обёртке. */
.body .table { margin: 18px 0 1.3em; overflow-x: auto; }
.body table { width: 100%; border-collapse: collapse; font: 15px/1.45 "Segoe UI", system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.body th, .body td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.body th { border-bottom: 2px solid var(--ink); font-weight: 600; white-space: nowrap; }
.body th:first-child, .body td:first-child { padding-left: 0; }
.body th:last-child, .body td:last-child { padding-right: 0; }
.body td { min-width: 6em; }
/* Отметки под Постом */
.marks { max-width: 700px; margin: -24px auto 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.marks form { display: contents; }
.mark { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 14px; line-height: normal; white-space: nowrap; }
.mark b { font-weight: 600; font-variant-numeric: tabular-nums; }
button.mark:hover { border-color: var(--ink); }
button.mark.on { border-color: var(--ink); background: var(--ink); color: #fff; }
span.mark { color: var(--mut); }
.marks .hint { color: var(--mut); font-size: 14px; }
.marks .hint a { color: var(--acc); }
/* ── #39: дата правки, соседние Посты Автора, «Поделиться» ── */
/* Дата правки «✎ вчера, 18:05» — в подписи Поста и в верхней строке строки Ленты, не переносится. */
.edm { white-space: nowrap; }
/* Соседние Посты Автора над Рубрикой (ПК и планшет): мелко, предыдущий слева, следующий справа,
   длинный заголовок — в одну строку с многоточием, полный — в подсказке. */
.pn-top { display: flex; justify-content: space-between; gap: 6px 24px; margin: 0 0 20px; font-size: 13px; text-align: left; }
.pn-top a { display: inline-flex; gap: 6px; min-width: 0; max-width: calc(50% - 12px); color: var(--mut); text-decoration: none; }
.pn-top .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-top a:hover { color: var(--ink); }
.pn-top a:hover .t { text-decoration: underline; }
.pn-top .next { margin-left: auto; }
/* На телефоне соседи — под «Поделиться», над Карточкой Автора: две строки между тонкими линиями, подписи словами. */
.pn-bottom { display: none; max-width: 700px; margin: -24px auto 28px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); flex-direction: column; gap: 8px; font-size: 14px; }
.pn-bottom a { display: grid; min-width: 0; color: var(--ink); text-decoration: none; }
.pn-bottom small { color: var(--mut); font-size: 12px; }
.pn-bottom .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-bottom .next { text-align: right; }
/* «Поделиться» под Отметками — строка кнопок со значками. */
.share { position: relative; max-width: 700px; margin: -36px auto 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 14px; }
.share .k { color: var(--mut); }
.sbtn { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; line-height: normal; text-decoration: none; white-space: nowrap; cursor: pointer; }
.sbtn:hover { border-color: #cfc6b8; }
.sbtn .ico { display: inline-block; flex: none; width: 16px; height: 16px; }
.sh-tg .ico { color: #229ed9; }
.sh-vk .ico { color: #0077ff; }
.sbtn.done { border-color: #2f6b3a; color: #2f6b3a; }
/* «Меню телефона» — только на сенсорном экране. */
.share .sh-os { display: none; }
@media (pointer: coarse) { .share .sh-os { display: inline-flex; } }
/* «Скопировать ссылку» раскрывает поле с адресом строкой под кнопками: кнопки остаются на местах. */
.sh-copy > summary { list-style: none; }
.sh-copy > summary::-webkit-details-marker { display: none; }
.share:has(.sh-copy[open]) { padding-bottom: 48px; }
.copyfield { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; color: var(--mut); font-size: 13px; white-space: nowrap; }
.copyfield input { flex: 1; min-width: 0; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 14px; }
@media (max-width: 600px) {
  .pn-top { display: none; }
  .pn-bottom { display: flex; }
  /* «Поделиться:» отдельной строкой; кнопки переносятся по ширине — на телефоне 360–430 px выходит по две в ряд. */
  .share .k { flex-basis: 100%; }
}
/* Имя Автора в подписи опубликованного Поста — ссылка на страницу Автора. */
.meta a.by { text-decoration: none; }
.meta a.by:hover { color: var(--ink); text-decoration: underline; }
/* Аватар: картинка в круге или кружок с первой буквой имени в цвет Учётной записи (--h), без имени — серый «?».
   Размер задаёт место: --s. */
.ava { display: inline-grid; place-items: center; flex: none; width: var(--s, 32px); height: var(--s, 32px); border-radius: 50%; object-fit: cover; background: hsl(var(--h, 30) 38% 46%); color: #fff; font-size: calc(var(--s, 32px) * .45); font-weight: 600; line-height: 1; vertical-align: middle; user-select: none; }
img.ava { background: #efe9df; }
.ava.none { background: #ddd5c9; color: var(--mut); }
/* Подпись Поста: аватар вплотную к имени Автора. */
.who-p { display: inline-flex; align-items: center; gap: 7px; }
.meta .ava { --s: 24px; }
/* Карточка Автора под текстом Поста: аватар, имя, сводка, ссылка на его страницу. */
.abox { max-width: 700px; margin: 0 auto 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.abox .ava { --s: 56px; font-size: 24px; }
.abox .ab { flex: 1; min-width: 200px; }
.abox .nm { font: 700 20px/1.25 Georgia, serif; text-decoration: none; overflow-wrap: anywhere; }
.abox .nm:hover { text-decoration: underline; }
.abox p { margin: 3px 0 0; color: var(--mut); font-size: 14px; overflow-wrap: anywhere; }
.abox p a { color: inherit; }
.abox p a:hover { color: var(--ink); }
/* «Читайте также» — плитки в колонке текста над Комментариями: Обложка, Рубрика, заголовок. */
.also { max-width: 700px; margin: 0 auto 56px; }
.also h2 { margin: 0 0 14px; padding-top: 10px; border-top: 3px solid var(--ink); font: 700 22px/1.2 Georgia, serif; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tile .kicker { margin: 0 0 4px; font-size: 11px; }
.tile h3 { margin: 0; font: 700 16px/1.3 Georgia, serif; overflow-wrap: anywhere; }
.tile h3 a { text-decoration: none; }
.tile h3 a:hover { text-decoration: underline; }
/* Комментарии под Постом */
.cm { max-width: 700px; margin: 0 auto 56px; }
.cmh { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; }
.cm h2 { font: 700 26px/1.2 Georgia, serif; margin: 0; }
.cm h2 span { color: var(--mut); font-weight: 400; }
/* Порядок Веток */
.csort { display: flex; flex-wrap: wrap; gap: 2px; font-size: 14px; }
.csort a, .csort span { padding: 4px 12px; border-radius: 999px; color: var(--mut); text-decoration: none; white-space: nowrap; }
.csort a:hover { color: var(--ink); }
.csort .on { background: #efe9df; color: var(--ink); }
.cform { display: grid; gap: 12px; margin: 18px 0 8px; }
.cform textarea { min-height: 96px; }
.cfb { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; color: var(--mut); font-size: 13px; }
.cfb .btn { padding: 8px 20px; }
.cfb .btn[disabled] { opacity: .6; cursor: progress; }
.guestbox { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0 8px; padding: 16px; border: 1px dashed #cfc6b8; border-radius: 10px; }
.guestbox p { flex: 1; min-width: 220px; margin: 0; color: #3d3a35; }
.cnone { margin: 22px 0 0; color: var(--mut); }
/* Страницы Комментариев: та же листалка, что в Ленте, над Ветками и под ними. Переход по странице прокручивает
   к началу блока: заголовок не прячется под шапкой. */
.cm { scroll-margin-top: calc(var(--stick) + 20px); }
.cm .pages.below { margin: 28px 0 0; }
/* «Ещё N Ответов» в конце длинной Ветки (comments/_more.html). Ответы после третьего (.later) спрятаны, пока кнопка
   не раскрыта; адрес #comment-N, который ведёт в Ветку, раскрывает её. */
.c:has(> .replies > .cmore:not([open])):not(:has(:target)) .later { display: none; }
.c:has(:target) > .replies > .cmore { display: none; }
.cmore { margin: 12px 0 2px; font-size: 13px; }
.cmore > summary { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; padding: 4px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); list-style: none; cursor: pointer; }
.cmore > summary::-webkit-details-marker { display: none; }
.cmore > summary:hover { border-color: var(--ink); }
.cmore > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.cmore small { color: var(--mut); font-size: 12px; }
.cmore:not([open]) .open, .cmore[open] .shut { display: none; }
/* Отступ сверху при переходе к Комментарию: его не закрывает шапка. */
.c { margin-top: 14px; scroll-margin-top: calc(var(--stick) + 20px); }
/* Сам Комментарий, без Ответов под ним: его подсвечивают. */
.co { margin: 0 -12px; padding: 8px 12px; border-radius: 10px; }
/* Аватар слева у текста: у Веток 36, у Ответов 28. */
.co:not(.gone) { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 0 12px; align-items: start; }
.co > .ava { --s: 36px; margin-top: 2px; }
.replies .co:not(.gone) { grid-template-columns: 28px minmax(0, 1fr); gap: 0 10px; }
.replies .co > .ava { --s: 28px; }
.ch time { margin-left: 10px; color: var(--mut); font-size: 13px; white-space: nowrap; }
.ch .to { margin-left: 10px; color: var(--mut); font-size: 13px; text-decoration: none; white-space: nowrap; }
.ch .to:hover { color: var(--ink); }
.badge { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 1.7; vertical-align: 1px; }
.badge.author { background: #fde7c8; color: #8a4b00; }
.badge.moderator { background: #d9e8ff; color: #0b4aa8; }

/* ── #43: Новые Комментарии ── */
/* «▢ 5 / 8»: значок-облачко, Новых цветом блога, через дробь — всего; без Новых — «▢ 8». */
.frac { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.frac .ico { width: 16px; height: 16px; flex: none; }
.frac b { color: var(--acc); font-weight: 600; }
a.frac { color: inherit; text-decoration: none; }
a.frac:hover { color: var(--ink); }
.lc .ln.frac { gap: 4px; }
.lc .ln.frac .ico { width: 14px; height: 14px; }
/* Пометка у Нового Комментария — той же формы, что «Автор» и «Модератор», зелёная. */
.badge.new { background: #e1f1e4; color: #2f6b3a; }
.cm h2 .frac { font: 400 26px/1.2 Georgia, serif; color: var(--mut); }
.cm h2 .frac b { font-weight: 700; }
/* Под заголовком блока: «5 новых из 8 — с вашего прошлого открытия» и «Отметить прочитанными». */
.cnews { display: flex; flex-basis: 100%; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; color: var(--mut); font-size: 14px; }
.cnews form, .readall { display: inline; margin: 0; }
.cnews .linkbtn, .readall .linkbtn { color: var(--mut); font-size: 14px; text-underline-offset: 3px; white-space: nowrap; cursor: pointer; }
.cnews .linkbtn:hover, .readall .linkbtn:hover { color: var(--ink); }
/* «Ещё 7 Ответов · 2 новых» — «2 новых» зелёным. */
.cmore small.mnew { color: #2f6b3a; font-weight: 600; }
/* Точка у номера страницы Комментариев, где есть Новые. */
.ndot { display: inline-block; width: 6px; height: 6px; margin-left: 3px; border-radius: 50%; background: #2f8a45; vertical-align: 6px; }

/* Ответы: отступ с линией слева. */
.replies { padding-left: 16px; border-left: 2px solid var(--line); }
.cb { overflow-wrap: anywhere; }
.cb p { margin: 4px 0 6px; }
.cb a { color: var(--acc); }
.cb blockquote { margin: 6px 0; padding: 2px 0 2px 14px; border-left: 3px solid var(--line); color: #3d3a35; }
.cb ul, .cb ol { margin: 4px 0 6px; padding-left: 24px; }
.cb code { padding: 1px 5px; border-radius: 4px; background: #efe9df; font: 14px/1.5 Consolas, "Cascadia Mono", ui-monospace, monospace; }
.cb pre { margin: 6px 0; padding: 10px 12px; overflow-x: auto; border-radius: 8px; background: #efe9df; }
.cb pre code { padding: 0; background: none; overflow-wrap: normal; }
/* Под Комментарием: Отметки, «Ответить», постоянная ссылка, «Изменить» и «Удалить».
   Формы Ответа, правки и удаления свёрнуты до нажатия и раскрываются без скриптов. */
.ca { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; font-size: 13px; }
.ca > a, .ca > details > summary { color: var(--mut); text-decoration: none; cursor: pointer; }
.ca > a:hover, .ca > details > summary:hover { color: var(--ink); }
.ca > details > summary { list-style: none; }
.ca > details > summary::-webkit-details-marker { display: none; }
.ca > details:not([open]) .open, .ca > details[open] .shut { display: none; }
/* Раскрытая форма занимает всю строку; пока она раскрыта, остальные действия спрятаны. */
.ca > details[open] { flex-basis: 100%; }
.ca > details[open] ~ .perma { display: none; }
.ca:has(> details[open]) > :not(details[open]) { display: none; }
.ca .cform { margin: 8px 0 6px; font-size: 16px; }
.ca .cform textarea { min-height: 72px; }
.cdel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 8px 0 6px; font-size: 14px; }
.cdel .btn { padding: 6px 16px; border-color: var(--acc); background: var(--acc); }
/* Отметки Комментария: как под Постом, только мельче. Своя Отметка выделена. */
.cmarks { display: inline-flex; flex-wrap: wrap; gap: 2px 4px; margin: 0 -6px; }
.cmark { padding: 1px 6px; border: 0; border-radius: 999px; background: none; color: var(--mut); font: inherit; line-height: inherit; white-space: nowrap; }
.cmark b { font-weight: 600; font-variant-numeric: tabular-nums; }
button.cmark { cursor: pointer; }
button.cmark:hover { color: var(--ink); }
button.cmark.on { background: #efe9df; color: var(--ink); }
.ch .edited { margin-left: 8px; color: var(--mut); font-size: 13px; font-style: italic; }
/* Заглушка удалённого Комментария, под которым остались Ответы. */
.cgone { margin: 0; color: var(--mut); font-size: 14px; font-style: italic; }
/* Комментарий на Проверке: жёлтый, с пунктиром. Автору — пометка, Модератору — причины и решение. */
.c.pend > .co { background: #fff7d6; outline: 1px dashed #d6a800; }
.pendnote { margin: 2px 0 0; color: #8a6a00; font-size: 13px; }
.why { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; margin: 4px 0 2px; color: #8a6a00; font-size: 13px; }
.chip { display: inline-block; padding: 0 8px; border-radius: 999px; background: #fff1b8; color: #6b5300; font-size: 12px; font-weight: 600; line-height: 1.8; white-space: nowrap; }
.decide { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 8px 0 4px; font-size: 14px; }
.decide form { margin: 0; }
.decide .btn { padding: 5px 16px; }
.decide summary { list-style: none; display: inline-block; padding: 5px 16px; border: 1px solid var(--ink); border-radius: 999px; cursor: pointer; white-space: nowrap; }
.decide summary::-webkit-details-marker { display: none; }
.decide details:not([open]) .open, .decide details[open] .shut { display: none; }
/* Раскрытое «Отклонить» занимает строку, «Одобрить» на это время прячется. */
.decide details[open] { flex-basis: 100%; }
.decide details[open] summary { padding: 0; border: 0; color: var(--mut); font-size: 13px; }
.decide:has(> details[open]) > form { display: none; }
.decide .sure { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 6px; }
.decide .sure .btn { border-color: var(--acc); background: var(--acc); }
/* Скрытый Комментарий: серый, с пунктиром. Автору — пометка, Модератору — кто скрыл и «Вернуть». */
.c.hid > .co { background: #f1ede6; outline: 1px dashed #b9b0a3; }
.c.hid > .co .cb { color: #5f5a52; }
.hidnote { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 2px 0 0; color: var(--mut); font-size: 13px; }
.hidnote .btn { padding: 3px 14px; font-size: 13px; }
/* Комментарий с неразобранными Жалобами глазами Модератора: красноватый, с Жалобами и решением. */
.c.flag > .co { background: #fdf0ee; outline: 1px dashed #d9776f; }
.why.red { color: #8f1d16; }
.chip.red { background: #fbd9d5; color: #8f1d16; }
.cmpl { list-style: none; margin: 2px 0 6px; padding: 0; color: #6b2a24; font-size: 13px; overflow-wrap: anywhere; }
.cmpl li { margin: 2px 0; }
.cmpl q { color: var(--ink); }
/* Вместо «Пожаловаться» — что Жалоба уже подана. */
.ca > .sent { color: var(--mut); font-style: italic; }
/* Блокировка: пометка у имени видна всем. Модератору имя Пользователя или Автора раскрывает панель
   под строкой имени: форма с причиной или кто, когда и почему заблокировал и «Снять Блокировку». */
.badge.blocked { background: #e9e3da; color: #5f5a52; }
/* Сброс аватара и имени в той же панели, ниже Блокировки. */
.reset { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.reset .rr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.reset .rr > span { flex: 1 1 200px; display: inline-flex; align-items: center; gap: 8px; color: #3d3a35; }
.reset .ava { --s: 24px; }
.reset details > summary { list-style: none; cursor: pointer; }
.reset details > summary::-webkit-details-marker { display: none; }
.reset details[open] { flex-basis: 100%; }
.reset details[open] > summary { display: none; }
.reset .cdel { margin: 0; }
.who-c { display: inline-block; }
.who-c > summary { display: inline; list-style: none; cursor: pointer; border-bottom: 1px dotted var(--mut); }
.who-c > summary::-webkit-details-marker { display: none; }
.who-c > summary:hover { border-bottom-color: var(--ink); }
.acct { display: none; margin: 6px 0 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 14px; }
:has(> .ch .who-c[open]) > .acct { display: block; }
.bform { display: grid; gap: 8px; margin: 0; }
.bform p { margin: 0; color: #3d3a35; overflow-wrap: anywhere; }
.bform q { color: var(--ink); }
.bform .field textarea { min-height: 64px; padding: 8px 10px; font-size: 15px; }
.bform .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.bform .row small { flex: 1 1 260px; color: var(--mut); font-size: 13px; }
.bform .btn { padding: 6px 16px; border-color: var(--acc); background: var(--acc); }
.bform .btn.ghost { border-color: var(--ink); background: transparent; color: var(--ink); }
/* Заблокированному вместо формы Комментария. */
.blockbox { margin: 18px 0 8px; padding: 14px 16px; border: 1px solid #d9c9b4; border-left: 3px solid #8a7a66; border-radius: 10px; background: #f4efe7; color: #3d3a35; overflow-wrap: anywhere; }
.blockbox p { margin: 0; }
.blockbox p + p { margin-top: 6px; }
.blockbox q { color: var(--ink); }
.blockbox small { color: var(--mut); font-size: 13px; }
/* Комментарий не принят по пределам частоты: подсказка у кнопки, когда повторить. */
.cfb .limit { flex: 1 1 260px; padding: 6px 12px; border-radius: 8px; background: #fff7d6; color: #6b5300; }
/* Пауза входа после неудачных попыток: такая же подсказка у кнопки «Войти». */
.lfb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.lfb .limit { flex: 1 1 200px; padding: 6px 12px; border-radius: 8px; background: #fff7d6; color: #6b5300; font-size: 14px; }
/* Только что написанный Комментарий ненадолго подсвечен, Комментарий по постоянной ссылке — пока на нём адрес. */
.c.fresh > .co { animation: fresh 2.5s ease-out; }
@keyframes fresh { from { background: #fff1b8; } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .c.fresh > .co { animation: none; } }
.c:target > .co { background: #fff4cc; }
/* Подпись только для чтения с экрана. */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.note { max-width: 700px; margin: 8px auto 0; padding: 10px 14px; border: 1px dashed #d6a800; border-radius: 8px; background: #fff7d6; color: #6b5300; font-size: 14px; }

/* Настройки: письма о Комментариях переключателями, каждый сохраняется сразу */
.prefs { max-width: 640px; margin: 12px auto 48px; }
.prefs h1 { font: 700 32px/1.15 Georgia, serif; margin: 0 0 6px; }
.prefs .lead { margin: 0 0 22px; color: #3d3a35; overflow-wrap: anywhere; }
.prefs .sect h2 { font-size: 20px; }
.prefs .later { margin: 10px 0 0; color: var(--mut); font-size: 14px; }
/* Раздел «Профиль»: аватар с кнопками, ниже имя. Файл аватара — за подписью-кнопкой. */
.pf { display: grid; gap: 22px; margin: 16px 0 34px; }
.pf form { margin: 0; }
.avrow { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.avrow > .ava { --s: 96px; font-size: 42px; }
.avrow .acts { flex: 1 1 240px; min-width: 0; display: grid; gap: 8px; }
.avrow .btns { display: flex; flex-wrap: wrap; gap: 8px; }
.avrow label.btn { cursor: pointer; }
.avrow input[type=file]:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }
.avrow small { color: var(--mut); font-size: 13px; }
.avrow .btn[disabled], .namerow .btn[disabled] { opacity: .6; cursor: progress; }
.namerow { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 12px; }
.namerow .field { flex: 1 1 260px; }
.namerow .btn { margin-top: 27px; padding: 10px 20px; }
.pf .saved { margin: -10px 0 0; }
.tg { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.tg li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tg .tx { flex: 1; min-width: 0; }
.tg .tx b { display: block; font-weight: 600; }
.tg .tx small { color: var(--mut); font-size: 14px; }
.tg form { margin: 0; }
.sw { position: relative; display: block; flex: none; width: 44px; height: 26px; padding: 0; border: 0; border-radius: 999px; background: #d8d0c4; transition: background .15s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: left .15s; }
.sw[aria-checked="true"] { background: var(--ink); }
.sw[aria-checked="true"]::after { left: 21px; }
.sw:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
form.htmx-request .sw { opacity: .6; cursor: progress; }
@media (prefers-reduced-motion: reduce) { .sw, .sw::after { transition: none; } }
.saved { color: #1e6b34; font-size: 13px; white-space: nowrap; }
/* Ссылка отписки из письма */
.off { max-width: 520px; margin: 32px auto 56px; text-align: center; }
.off h1 { font: 700 30px/1.2 Georgia, serif; margin: 0 0 10px; }
.off p { margin: 0 0 14px; color: #3d3a35; }
.off .addr { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.off form { margin: 0 0 18px; }
.off .btn { padding: 9px 22px; }
.off .aside { color: var(--mut); font-size: 14px; }
.off .aside a { color: var(--acc); }

/* Рабочее место Автора: список своих Постов и редактор */
.desk { max-width: 760px; margin: 12px auto 48px; }
.desk h1 { font: 700 32px/1.15 Georgia, serif; margin: 0; }
.deskhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.desk .aside { color: var(--mut); font-size: 14px; margin: 0 0 10px; }
.desk form { display: grid; gap: 16px; margin-top: 20px; }
/* Рубрика — выпадающий список. */
.field select { width: 100%; max-width: 360px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #fff; }
.field select:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.field.bad select { border-color: var(--acc); }
.field .req { color: var(--mut); font-weight: 400; }
/* Теги «Плашки с подсказкой»: выбранные — плашками, «×» снимает флажок, и плашка пропадает. */
.tagbox { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.tagbox:focus-within { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.field.bad .tagbox { border-color: var(--acc); }
.pill { display: inline-flex; align-items: center; gap: 2px; min-width: 0; padding: 3px 4px 3px 12px; border-radius: 999px; background: #efe9df; font-size: 14px; overflow-wrap: anywhere; }
.pill:has(input:not(:checked)) { display: none; }
.field .pill .x { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 22px; height: 22px; border-radius: 50%; color: var(--mut); font-weight: 400; cursor: pointer; }
.pill .x:hover { background: #e4dccf; color: var(--ink); }
.field .pill input { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; }
.pill .x:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 1px; }
.field .tagbox input[type="text"] { flex: 1 1 160px; width: auto; min-width: 0; padding: 4px; border: 0; background: transparent; }
.field .tagbox input[type="text"]:focus { outline: 0; }
.hints { display: grid; max-width: 360px; margin: 0; padding: 4px; list-style: none; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .07); }
.hints button { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 6px 10px; border: 0; border-radius: 6px; background: none; text-align: left; font-size: 14px; overflow-wrap: anywhere; }
.hints button:hover, .hints button:focus-visible { background: var(--bg); }
.hints small { flex: none; color: var(--mut); font-size: 12px; }
/* Подсказки Тегов (#58) видны, пока фокус в поле или на самих подсказках: уход из поля их прячет. Пустое место
   под подсказки остаётся, чтобы поле не прыгало. У пустого поля — группы плашек «Ваши частые» и «Популярные в блоге»;
   плашки подсказок с рамкой, выбранные Теги — заливкой. */
.tags:not(:focus-within) #tag-hints > * { display: none; }
.tsug { display: grid; gap: 6px; max-width: 560px; padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .07); }
.tsug .tsl { margin: 0; color: var(--mut); font-size: 12px; }
.tsug .tsl ~ .tsl { margin-top: 4px; }
.tpills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tpills li { min-width: 0; max-width: 100%; }
.tpills button { display: inline-flex; align-items: baseline; gap: 6px; max-width: 100%; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; text-align: left; overflow-wrap: anywhere; }
.tpills button:hover { background: var(--bg); border-color: var(--mut); }
.tpills button:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; background: var(--bg); }
.tpills small { flex: none; color: var(--mut); font-size: 12px; }
.desk .state { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 10px 0 0; color: var(--mut); font-size: 14px; }
/* Редактор: над полем текста вкладки «Текст» и «Предпросмотр». Вкладка — выбор скрытой кнопки-переключателя,
   поэтому переключение работает и без скриптов. Предпросмотр той же ширины, что колонка текста у читателя. */
.write .tabs { display: flex; align-items: flex-end; gap: 4px; border-bottom: 1px solid var(--line); }
.write .tabs label { margin-bottom: -1px; padding: 6px 14px; border: 1px solid transparent; border-bottom: 0; border-radius: 8px 8px 0 0; color: var(--mut); font-weight: 400; cursor: pointer; }
.write .tabs label:hover { color: var(--ink); }
#view-text:checked ~ .tabs [for="view-text"], #view-preview:checked ~ .tabs [for="view-preview"] { border-color: var(--line); background: var(--bg); color: var(--ink); font-weight: 600; }
#view-text:focus-visible ~ .tabs [for="view-text"], #view-preview:focus-visible ~ .tabs [for="view-preview"] { outline: 2px solid var(--ink); outline-offset: -2px; }
.tabnote { margin-left: auto; align-self: center; color: var(--mut); font-size: 13px; text-align: right; }
.tabnote > span { display: none; }
#view-text:checked ~ .tabs .md, #view-preview:checked ~ .tabs .seen { display: inline; }
/* Пока сервер пересчитывает предпросмотр, вместо «так увидит читатель» — «обновляется…». */
.write:has(#preview.htmx-request) #view-preview:checked ~ .tabs .seen { display: none; }
.write:has(#preview.htmx-request) #view-preview:checked ~ .tabs .busy { display: inline; color: #8a6a00; }
.write, .write .pane { min-width: 0; }
/* Скрытые переключатели вкладок: правило полей формы растянуло бы их на всю ширину. */
.write > input.vh { width: 1px; padding: 0; border: 0; }
.write .pane.text { display: grid; gap: 6px; }
#view-preview:checked ~ .pane.text, #view-text:checked ~ .pvbox { display: none; }
.pvbox { min-height: 360px; padding: 4px 24px 8px; border: 1px solid var(--line); border-radius: 10px; background: #fffdf9; }
.pvbox .phead { padding: 22px 0 14px; }
.pvbox .phead h1 { font-size: 32px; margin-bottom: 4px; }
.pvbox .body { margin-bottom: 16px; }
.pvbox .ptags { margin: 0 auto 16px; }
.pvbox .nothing { color: var(--mut); font-style: italic; font-weight: 400; }
.pvbox p.nothing { text-align: center; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions .btn { padding: 9px 22px; }
.mylist { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--line); }
.mylist li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mylist .t { flex: 1 1 260px; font: 700 18px/1.3 Georgia, serif; text-decoration: none; overflow-wrap: anywhere; }
.mylist .t:hover { text-decoration: underline; }
.mylist .when { color: var(--mut); font-size: 14px; }
/* Статистика Автора: сводка текстом под заголовком и строка под каждым опубликованным Постом */
.desk .summary { margin: 14px 0 0; color: #3d3a35; font: 20px/1.55 Georgia, serif; }
.desk .summary b, .mylist .st b { color: var(--ink); font-family: "Segoe UI", system-ui, sans-serif; font-weight: 600; }
.mylist .st { flex-basis: 100%; color: var(--mut); font-size: 14px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #efe9df; color: var(--ink); font-size: 12px; white-space: nowrap; }
.badge.published { background: #e3f1e6; color: #1e6b34; }
/* Отложенная публикация и снятие: состояния Поста плашками, время выхода в редакторе, отбор в «Моих постах». */
.badge.scheduled { background: #e2ecfb; color: #0b4aa8; }
.badge.withdrawn { background: #fbe3e1; color: #9b1c14; }
.mylist .soon, .desk .state .soon { color: #0b4aa8; font-size: 14px; }
.mylist .offwhy { flex-basis: 100%; margin: 2px 0 0; color: #3d3a35; font-size: 14px; overflow-wrap: anywhere; }
.mylist .offwhy q { color: var(--ink); }
.filter { display: flex; flex-wrap: wrap; gap: 4px; margin: 18px 0 0; }
.filter a { padding: 4px 12px; border-radius: 999px; color: var(--mut); font-size: 14px; text-decoration: none; white-space: nowrap; }
.filter a:hover { color: var(--ink); }
.filter a.on { background: #efe9df; color: var(--ink); }
.filter a b { font-weight: 600; }
.filter + .mylist, .filter + .empty { margin-top: 10px; }
/* «Запланировать…» и «Изменить время…» — кнопки в ряду действий, под ними раскрываются дата и время. */
.actions details { display: contents; }
.actions details > summary { list-style: none; }
.actions details > summary::-webkit-details-marker { display: none; }
.actions details > summary::after { content: " ▾"; font-size: 11px; }
.actions details[open] > summary::after { content: " ▴"; }
.actions details > .plan { flex-basis: 100%; }
.plan { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.plan .row { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 14px; }
.plan label.f { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.plan input { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fff; }
.plan input:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.plan.bad input { border-color: var(--acc); }
.plan small, .plan .tz { color: var(--mut); font-size: 13px; }
.plan .row small { flex: 1 1 260px; }
.actions .plan .btn { padding: 8px 20px; }
.btn.danger { border-color: var(--acc); background: var(--acc); color: #fff; }
.btn.ghost.danger { background: transparent; color: var(--acc); }
.was { margin: 0; padding: 10px 14px; border-radius: 8px; background: #efe9df; color: #3d3a35; font-size: 14px; }
/* Снять с публикации: строкой рядом с «Править», форма с причиной раскрывается под шапкой. */
.tools details.wd { display: contents; }
.tools details.wd > summary { list-style: none; color: var(--acc); text-decoration: underline; cursor: pointer; }
.tools details.wd > summary::-webkit-details-marker { display: none; }
.tools details.wd[open] > summary { color: var(--mut); text-decoration: none; }
.tools details.wd > .offform { flex-basis: 100%; }
.offform { max-width: 640px; margin: 10px auto 0; padding: 14px 16px; border: 1px solid #e8b4ae; border-left: 3px solid var(--acc); border-radius: 10px; background: #fff; text-align: left; }
.offform p { margin: 0 0 8px; color: #3d3a35; }
.offform label { display: block; margin: 0 0 4px; font-weight: 600; }
.offform textarea { display: block; width: 100%; min-height: 72px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 15px; resize: vertical; }
.offform textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.offform .error { margin-top: 6px; }
.offform .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.offform .btn { padding: 6px 16px; }
.offform .row small { flex: 1 1 220px; color: var(--mut); font-size: 13px; }
/* Снятый Пост: плашка с причиной над Постом и в редакторе Администратора. */
.offnote { max-width: 700px; margin: 8px auto 0; padding: 12px 16px; border: 1px solid #e8b4ae; border-left: 3px solid var(--acc); border-radius: 10px; background: #fdf0ee; color: #5c1610; font-size: 14px; overflow-wrap: anywhere; }
.offnote p { margin: 0; }
.offnote p + p { margin-top: 6px; }
.offnote b { color: #9b1c14; }
.offnote q { color: var(--ink); }
.offnote form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 10px 0 0; }
.offnote .btn { padding: 6px 16px; }
.offnote small { color: #7d4a44; font-size: 13px; }
.desk .offnote { max-width: none; margin: 14px 0 0; }

/* Модерация: Очередь проверки карточками подряд, старые сверху */
.mod { max-width: 760px; margin: 12px auto 48px; }
.mod h1 { font: 700 32px/1.15 Georgia, serif; margin: 0 0 6px; }
.mod .lead { margin: 0 0 18px; color: #3d3a35; font: 19px/1.55 Georgia, serif; }
.mod .lead b { color: var(--ink); font-family: "Segoe UI", system-ui, sans-serif; font-weight: 600; }
.qa { list-style: none; margin: 8px 0 0; padding: 0; }
.qa > li { padding: 16px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--stick) + 20px); }
.qa .to-post { display: block; margin-bottom: 4px; color: var(--mut); font-size: 13px; text-decoration: none; overflow-wrap: anywhere; }
.qa .to-post b { color: var(--ink); font: 700 15px/1.3 Georgia, serif; }
.qa .to-post:hover b { text-decoration: underline; }
.qa .ctx { margin: 6px 0 4px; padding: 2px 0 2px 12px; border-left: 3px solid var(--line); color: var(--mut); font-size: 14px; overflow-wrap: anywhere; }
.qa .done { margin: 0; color: var(--mut); font-size: 14px; }
.qa .done b { color: var(--ink); font-weight: 600; }
.qa .done a { color: var(--acc); }
.mod .sect { margin-top: 26px; }
.mod .sect h2 small { margin-left: 8px; color: var(--mut); font: 400 14px "Segoe UI", system-ui, sans-serif; }
.mod .cnone { margin: 12px 0 0; }
.qa .blkline { margin: 4px 0 2px; color: #3d3a35; font-size: 14px; overflow-wrap: anywhere; }
.qa .blkline q { color: var(--ink); }
.decide .btn.ghost { background: transparent; color: var(--ink); }

/* Уборка (вариант B «Страница Учётной записи»): кто это, период «С … по …», Комментарии с галочками,
   Отметки и Жалобы одной галочкой на вид, итог с подтверждением; ниже — журнал уборки «С раскрытием» */
.crumb { margin: 0 0 6px; font-size: 14px; }
.crumb a { color: var(--mut); text-decoration: none; }
.crumb a:hover { color: var(--ink); }
.ahead { display: flex; align-items: center; gap: 14px; margin: 4px 0 10px; }
.ahead .ava { --s: 56px; flex: none; font-size: 24px; }
.ahead h1 { margin: 0; overflow-wrap: anywhere; }
.ahead .m { margin: 2px 0 0; color: var(--mut); font-size: 14px; }
.acc .acct { display: block; }
.acc .sub { margin: 8px 0 0; color: #3d3a35; font-size: 14px; }
.acct .go { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.acct > .go:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.acct .go a { color: var(--acc); font-weight: 600; }
.acct .go small { display: block; color: var(--mut); font-size: 13px; }
.period { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; margin: 10px 0 0; }
.period .field { flex: 0 1 230px; margin: 0; }
.period .field label { font-size: 13px; }
.period .field input { padding: 7px 10px; }
.period .btn { padding: 7px 16px; }
.period .error { flex-basis: 100%; }
.cleanf .lh { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin: 12px 0 0; font-size: 14px; }
.cleanf .lh label { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; }
.cleanf .lh input { width: 18px; height: 18px; accent-color: var(--acc); }
.cleanf .lh #ctr { color: var(--mut); }
.cleanf .pick { list-style: none; margin: 6px 0 0; padding: 0; }
.cleanf .pick > li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 0 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cleanf .pick > li:last-child { border-bottom: 0; }
.cleanf .pick > li > input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--acc); }
.cleanf .pick > li:has(> input:not(:checked)) .cb { color: var(--mut); text-decoration: line-through; text-decoration-color: #cfc6b8; }
.cleanf .pick .to-post { display: block; color: var(--mut); font-size: 13px; text-decoration: none; overflow-wrap: anywhere; }
.cleanf .pick .to-post b { color: var(--ink); font: 700 15px/1.3 Georgia, serif; }
.cleanf .pick .ch { font-size: 13px; color: var(--mut); }
.cleanf .pick .ch label { cursor: pointer; }
.cleanf .pick .ch .chip { margin-left: 6px; }
.cleanf .pick .cb { overflow-wrap: anywhere; }
.cleanf .pick .cb p { margin: 2px 0 0; }
.chip.gr { background: #efe9df; color: #5f5a52; }
.outside { margin: 6px 0 0; color: var(--mut); font-size: 13px; }
.grp { margin: 12px 0 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 14px; }
.grp > label { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; color: #3d3a35; }
.grp > label input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--acc); }
.grp > label b { color: var(--ink); }
.grp details { margin: 4px 0 0 30px; }
.grp summary { color: var(--mut); font-size: 13px; cursor: pointer; }
.mini { margin: 4px 0 0; padding-left: 18px; color: #3d3a35; font-size: 13px; overflow-wrap: anywhere; }
.mini li { margin: 2px 0; }
.sweep { margin: 16px 0 6px; padding: 12px 14px; border: 1px solid #d9c9b4; border-left: 3px solid var(--acc); border-radius: 10px; background: #fff; font-size: 14px; }
.sweep .tot { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.sweep .tot b { font-variant-numeric: tabular-nums; }
.sweep .tot .outside { margin: 0; }
.sweep .error { margin: 0 0 8px; }
.sweep .hack { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; margin: 10px 0 0; color: #3d3a35; }
.sweep .hack input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--acc); }
.sweep .hack b { color: var(--ink); }
.sweep .decide { margin: 10px 0 0; }
.sweep .decide > details > summary { border-color: var(--acc); background: var(--acc); color: #fff; }
.sweep .decide > details[open] > summary { background: none; color: var(--mut); }
.sweep .decide .btn[disabled] { opacity: .45; cursor: not-allowed; }
.sweep .decide .sure > span { flex: 1 1 260px; }
.log .whom { color: inherit; text-decoration: none; }
.log .whom:hover b { text-decoration: underline; }
.log .log-what { margin: 4px 0 2px; color: #3d3a35; font-size: 14px; overflow-wrap: anywhere; }
.log .log-what b { font-variant-numeric: tabular-nums; }
.log .log-note { margin: 4px 0 0; color: var(--mut); font-size: 13px; }
.log details.what { margin: 6px 0 0; font-size: 14px; }
.log details.what > summary { color: var(--acc); cursor: pointer; }
.log .decide .sure > span { flex: 1 1 260px; }
.log .gone-row .log-what { color: var(--mut); }
.hidnote a { color: var(--acc); }
/* Блокировка с уборкой: галочки «Заодно убрать за всё время» в форме Блокировки и плашка над Уборкой */
.bform fieldset.also { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 6px 10px 8px; border: 1px dashed #cfc6b8; border-radius: 8px; }
.bform .also legend { padding: 0 4px; font-size: 13px; font-weight: 600; }
.bform .also label { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.bform .also input { accent-color: var(--acc); }
.bform .also label:has(input:disabled) { color: var(--mut); }
.bform .also small { color: var(--mut); }
.bform .btn .next, .bform:has(.also input:checked) .btn .plain { display: none; }
.bform:has(.also input:checked) .btn .next { display: inline; }
.blkfrom { margin: 8px 0 0; padding: 8px 12px; border-radius: 8px; background: #f4efe7; color: #3d3a35; font-size: 14px; overflow-wrap: anywhere; }
.blkfrom q { color: var(--ink); }
.blkfrom a { color: var(--acc); white-space: nowrap; }

/* Посты, требующие внимания (вариант B «Сводка текстом»): фраза, ниже Посты строками — причины акцентным цветом,
   под ними Автор, сколько ждёт и «Разобрать →» */
.mod .att { margin: 0; }
.att li { display: block; }
.att .t { display: block; }
.att .need { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; margin: 6px 0 0; color: var(--acc); font-size: 14px; }
.att .need .chip { margin-left: 4px; }
.att .act { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 4px 0 0; color: var(--mut); font-size: 14px; }
.att .act a { color: var(--acc); }
/* Отбор «Модерации» по Посту: плашка под заголовком с кнопкой «Показать всё» */
.scope { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 10px 0 6px; padding: 12px 16px; border: 1px solid var(--line); border-left: 4px solid var(--acc); border-radius: 8px; background: #fff; }
.scope p { flex: 1 1 320px; margin: 0; color: #3d3a35; font-size: 15px; overflow-wrap: anywhere; }
.scope p a { color: var(--ink); text-decoration: none; }
.scope p a b { font: 700 17px/1.3 Georgia, serif; }
.scope p a:hover b { text-decoration: underline; }
.scope .m { display: block; margin-top: 2px; color: var(--mut); font-size: 14px; }

/* Жалобы на Пост: «Пожаловаться» в подписи Поста, строка в «Модерации», плашка над Постом */
.meta .pcomplain > summary { list-style: none; color: var(--mut); cursor: pointer; }
.meta .pcomplain > summary::-webkit-details-marker { display: none; }
.meta .pcomplain > summary:hover { color: var(--ink); }
.pcomplain:not([open]) .open, .pcomplain[open] .shut { display: none; }
.meta .pcomplain[open] { flex-basis: 100%; }
.meta .pcform, .meta .pcomplain .cform { max-width: 560px; margin: 10px auto 0; color: var(--ink); font-size: 16px; text-align: left; }
.meta .pcomplain .cform textarea { min-height: 72px; }
.meta .pcomplain .cfb .btn { border-color: var(--acc); background: var(--acc); }
.meta .sent { color: var(--mut); font-style: italic; }
.qa .pmeta { margin: 2px 0 4px; color: var(--mut); font-size: 13px; overflow-wrap: anywhere; }
.qa .plead { margin: 4px 0 6px; color: #3d3a35; font: 16px/1.5 Georgia, serif; overflow-wrap: anywhere; }
.chip.handed { background: #8f1d16; color: #fff; }
.chip.new { margin-left: 6px; background: #efe9df; color: var(--mut); }
.passed { margin: 4px 0; color: #6b2a24; font-size: 13px; overflow-wrap: anywhere; }
.cnote { max-width: 700px; margin: 8px auto 0; padding: 12px 16px; border-radius: 10px; background: #fdf0ee; outline: 1px dashed #d9776f; font-size: 14px; overflow-wrap: anywhere; }
.cnote .why { margin-top: 0; }
.cnote .done { margin: 0; color: #5c1610; }
.decide .wdq { display: grid; gap: 6px; }
.decide .wdq label { font-size: 14px; font-weight: 600; }
.decide .wdq textarea { width: 100%; min-height: 64px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 15px; resize: vertical; }
.decide .wdq .btn { justify-self: start; }

/* Статистика сайта для Администратора: сводка текстом, график по дням, два списка */
.report { max-width: 900px; margin: 12px auto 48px; }
.report .hero { padding: 10px 0 4px; text-align: center; }
.report .hero h1 { margin: 0; color: var(--mut); font-size: 14px; font-weight: 400; }
.report .big { margin: 0; font: 600 64px/1.05 "Segoe UI", system-ui, sans-serif; letter-spacing: -1px; }
.report .sum { max-width: 640px; margin: 12px auto 20px; color: #3d3a35; font: 19px/1.6 Georgia, serif; }
.report .sum b, .chart figcaption b { color: var(--ink); font-family: "Segoe UI", system-ui, sans-serif; font-weight: 600; }
.chart { margin: 0; }
.chart svg { display: block; width: 100%; height: 130px; }
.chart .hit { fill: transparent; }
.chart .bar { fill: #2a78d6; }
.chart .day:hover .bar { fill: #1c5cab; }
.chart .base { stroke: #c3bcb0; stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .ticks { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); margin-top: 6px; color: var(--mut); font-size: 11px; }
.chart .ticks span { display: flex; justify-content: center; white-space: nowrap; }
.chart .ticks span:last-child { justify-content: flex-end; }
.chart figcaption { margin-top: 10px; color: var(--mut); font-size: 14px; text-align: center; }
.tv { margin-top: 10px; }
.tv summary { cursor: pointer; color: var(--mut); font-size: 13px; }
.tv table { margin-top: 8px; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.tv th, .tv td { padding: 3px 14px 3px 0; text-align: right; }
.tv th:first-child, .tv td:first-child { text-align: left; }
.tv th { color: var(--mut); font-weight: 600; }
.report .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 30px; }
.report .sub { margin: 6px 0 0; color: var(--mut); font-size: 13px; }
.report .empty { padding: 12px 0; }
.rank { margin: 6px 0 0; padding: 0; list-style: none; counter-reset: n; }
.rank li { display: flex; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); counter-increment: n; }
.rank li::before { content: counter(n); width: 22px; flex: none; color: var(--acc); font: 700 17px Georgia, serif; }
.rank li.direct { counter-increment: none; }
.rank li.direct::before { content: "–"; color: var(--mut); }
.rank .nm { flex: 1; min-width: 0; font: 17px/1.35 Georgia, serif; overflow-wrap: anywhere; }
.rank a.nm { text-decoration: none; }
.rank a.nm:hover { text-decoration: underline; }
.rank .v { color: var(--mut); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Ряд над Лентой (feed/_tabs.html): вкладки «Свежее · Лучшие» (#37), у вошедшего на главной — и «Подписки» (#42),
   справа «Отметить всё прочитанным» (#43). Не помещается в строку — «Отметить…» уходит вниз направо. */
.frow > .sect { flex-wrap: wrap; gap: 6px 16px; }
.frow .readall { margin-left: auto; }
/* У Гостя кнопка спрятана, пока его скрипт не узнает о Новых: `display` у `.readall` иначе перебил бы `hidden`. */
.readall[hidden] { display: none; }
/* На Рубрике, Теге и Странице Автора черта — у шапки над рядом. */
.frow.flat > .sect { margin-top: 18px; padding-top: 0; border-top: 0; }
.ftabs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 22px; }
.ftabs a, .ftabs span { padding-bottom: 4px; border-bottom: 3px solid transparent; color: var(--mut); font: 700 22px/1.2 Georgia, serif; text-decoration: none; white-space: nowrap; }
.ftabs a:hover { color: var(--ink); }
.ftabs .on { border-color: var(--acc); color: var(--ink); }
/* «Лучшие» (#37): второй строкой пилюли периода и пояснение; не помещается — пояснение под пилюлями. */
.fbest { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; }
.fbest > .csort { margin-left: -12px; }
.bhint { margin: 0; color: var(--mut); font-size: 14px; }
.ftabs a:focus-visible, .fbest .csort a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* Кнопка «Подписаться / Вы подписаны»: обёртка не мешает раскладке — кнопка и строка встают прямо в ряд. */
.follow { display: contents; }
.follow > form { margin: 0; }
.fol .alt { display: none; }
.fol .tick { color: #1e6b34; }
@media (hover: hover) {
  .btn.fol.on:hover .now { display: none; }
  .btn.fol.on:hover .alt { display: inline; }
  .btn.fol.on:hover { border-color: var(--acc); color: var(--acc); }
}
.fnote { flex-basis: 100%; margin: 6px 0 0; color: #1e6b34; font-size: 14px; overflow-wrap: anywhere; }
.fnote.off { color: var(--mut); }
/* Карточка Автора: «Подписаться» рядом с «Все Посты Автора» (на Странице Автора кнопка — в `.ap-acts`, #36). */
.abtns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.abox .fnote { margin: 0; }
/* Авторы подписок строкой над Лентой «Подписки». */
.fauth { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 16px 0 0; font-size: 14px; }
.fauth .mut { color: var(--mut); }
.fchip { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; padding: 3px 12px 3px 3px; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; overflow-wrap: anywhere; }
.fchip .ava { --s: 24px; flex: none; font-size: 11px; }
.fchip:hover { border-color: #c9c0b2; }
.fauth .edit { color: var(--mut); }
.fauth .edit:hover { color: var(--ink); }
/* Раздел «Подписки» в Настройках. */
.flist li { flex-wrap: wrap; gap: 10px 14px; }
.flist li > .ava { --s: 40px; flex: none; font-size: 17px; }
.flist .tx a { text-decoration: none; }
.flist .tx a:hover { text-decoration: underline; }
.flist .acts { margin-left: auto; }
.flist .acts .btn { padding: 5px 14px; font-size: 13px; }
.prefs .golink { margin: 12px 0 0; font-size: 14px; }
.prefs .golink a { color: var(--acc); }
/* Подписчики Автора: две колонки на ПК, одна на телефоне. */
.fans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; padding: 14px 0 0; list-style: none; }
.fans li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fans .ava { --s: 32px; flex: none; font-size: 14px; }
.fans .nm { min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.fans a.nm { text-decoration: none; }
.fans a.nm:hover { text-decoration: underline; }
.fans small { margin-left: auto; padding-left: 8px; color: var(--mut); font-size: 13px; white-space: nowrap; }
.who-sees { flex-basis: 100%; margin: 0; color: var(--mut); font-size: 14px; }
.fans + .pages.below { margin-top: 14px; }
@media (max-width: 600px) {
  /* Телефон: кнопка во всю ширину. */
  .abtns .fol { width: 100%; text-align: center; }
  .abtns, .abtns > .follow > form { flex-basis: 100%; }
  .ftabs { gap: 4px 18px; }
  .ftabs a, .ftabs span { font-size: 20px; }
  .fans { grid-template-columns: 1fr; }
  .flist .acts { flex-basis: 100%; display: flex; justify-content: flex-end; }
}

/* ── #53: Видимость «Подписчикам» ──
   Заглушка не подписчику: на странице Поста — блок под Анонсом с «Подписаться на Автора», в Ленте и у крупного Поста —
   строка «Читают подписчики Автора» вместо Рейтинга, Прочтений и Комментариев. «Автор закрыл вам подписку» —
   убранному на месте кнопки. В списке подписчиков — «Убрать» с вопросом и раздел «Убранные» с «Вернуть». */
.stub .leadonly { margin: 0; color: #3d3a35; }
.stub .body { margin-bottom: 24px; }
.lockbox { max-width: 700px; margin: 0 auto 48px; padding: 22px 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: center; }
.lockbox .lh { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 0 0 6px; color: var(--ink); font: 700 20px/1.3 Georgia, serif; overflow-wrap: anywhere; }
.lockbox .lh .vico { width: 20px; height: 20px; color: #8a4b00; }
.lockbox p { margin: 0 0 14px; color: #3d3a35; }
.lockbox form { margin: 0; }
.lockbox .btn { padding: 9px 22px; white-space: normal; }
.lockbox .fclosed { margin: 0; }
.fclosed { margin: 0; color: #8a4b00; font-size: 14px; font-weight: 600; }
.rlock { display: flex; align-items: center; gap: 6px; margin: 0; color: #8a4b00; font-size: 14px; }
.rlock .vico { width: 16px; height: 16px; }
.fans li { flex-wrap: wrap; }
.fans .nm { flex: 1 1 0; }
.fdrop, .fback { flex: none; margin: 0; font-size: 13px; }
.fdrop > summary { color: var(--mut); cursor: pointer; list-style: none; }
.fdrop > summary:hover { color: var(--acc); }
.fdrop > summary::-webkit-details-marker { display: none; }
.fdrop:not([open]) .open, .fdrop[open] .shut { display: none; }
.fdrop[open] { flex-basis: 100%; text-align: right; }
.fdrop .cdel { justify-content: flex-end; margin: 6px 0 2px; text-align: left; overflow-wrap: anywhere; }
.fback .btn { padding: 4px 12px; font-size: 13px; }
.removed { margin-top: 36px; }
.removed .who-sees { margin: 8px 0 0; }
@media (max-width: 600px) {
  .lockbox { padding: 18px 14px; }
  .lockbox .lh { font-size: 18px; }
  /* Строка подписчика на телефоне: Имя и дата столбиком, «Убрать» / «Вернуть» справа; раскрытый вопрос — во всю ширину. */
  .fans li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0 10px; }
  .fans li > .ava { grid-row: span 2; }
  .fans .nm, .fans small { grid-column: 2; }
  .fans small { margin: 0; padding: 0; }
  .fdrop, .fback { grid-column: 3; grid-row: 1 / span 2; }
  .fdrop[open] { grid-column: 1 / -1; grid-row: auto; margin-top: 6px; }
}

/* Страница Автора как личный блог (#36): вариант A «Колонка слева», шапка A «Кнопка справа».
   Обложка Страницы полосой 4:1 (на телефоне 2:1, от края до края), Аватар заходит на её нижний край; справа от Имени —
   кнопка, под ней «RSS Автора». Вкладки «Посты / Комментарии» во всю ширину. На «Постах» слева колонка Рубрик и Тегов
   Автора (едет за страницей), до 900 px — «Рубрики и Теги ▾» над поиском. Без Обложки — узор в цвет кружка Автора. */
.ap-cover { position: relative; overflow: hidden; aspect-ratio: 4 / 1; border-radius: 10px; background: #efe9df; }
.ap-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ap-cover.none { background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .1) 0 16px, transparent 16px 32px), linear-gradient(135deg, hsl(var(--h, 30) 45% 70%), hsl(calc(var(--h, 30) + 40) 40% 42%)); }
.ap-id { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ava name acts" "ava about acts" "ava nums acts"; gap: 0 22px; align-items: start; padding-left: 24px; }
.ap-id > .ava { grid-area: ava; position: relative; z-index: 1; --s: 116px; margin-top: -58px; border: 4px solid var(--bg); font-size: 50px; }
.ap-id > h1 { grid-area: name; margin: 0; padding-top: 14px; font: 700 40px/1.1 Georgia, serif; letter-spacing: -.5px; overflow-wrap: anywhere; }
.ap-about { grid-area: about; max-width: 64ch; margin: 8px 0 0; color: #3d3a35; font-size: 17px; white-space: pre-line; overflow-wrap: anywhere; }
.ap-about.empty { color: var(--mut); font-size: 15px; font-style: italic; }
.ap-about.empty a { color: var(--acc); }
.ap-nums { grid-area: nums; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 10px 0 0; padding: 0; list-style: none; color: var(--mut); font-size: 14px; }
.ap-nums b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.ap-nums b.neg { color: var(--acc); }
.ap-nums a { color: inherit; }
.ap-nums a:hover { color: var(--ink); }
.ap-acts { grid-area: acts; display: flex; flex-direction: column; align-items: flex-end; gap: 10px 16px; padding-top: 20px; }
.ap-acts .btn { padding: 8px 20px; }
.ap-acts .rss { font-size: 14px; }
.ap-acts .fnote { flex-basis: auto; max-width: 250px; margin: 0; font-size: 13px; text-align: right; }
.ap-acts .fclosed { max-width: 250px; text-align: right; }
.msgs + .ap-head > .ap-cover { margin-top: 0; }
/* «Модерация ▾» — Модератору и Администратору: сброс неприличного, каждый с подтверждением. */
.ap-mod { position: relative; }
.ap-mod > summary { list-style: none; cursor: pointer; }
.ap-mod > summary::-webkit-details-marker { display: none; }
.ap-mod > summary::after { content: " ▾"; font-size: 11px; }
.ap-mod .drop { left: auto; right: 0; gap: 2px; width: max-content; min-width: 250px; max-width: min(340px, calc(100vw - 32px)); }
.ap-mod .mh { margin: 4px 12px 6px; color: var(--mut); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; overflow-wrap: anywhere; }
.ap-mod .rs > summary { padding: 8px 12px; border-radius: 6px; color: var(--acc); font-size: 14px; list-style: none; cursor: pointer; }
.ap-mod .rs > summary::-webkit-details-marker { display: none; }
.ap-mod .rs > summary:hover { background: var(--bg); }
.ap-mod .rs[open] > summary { font-weight: 600; }
.ap-mod .rs form { display: grid; gap: 8px; margin: 0 0 6px; padding: 0 12px 8px; color: #3d3a35; font-size: 14px; overflow-wrap: anywhere; }
.ap-mod .rs form .btn { justify-self: start; padding: 6px 14px; }
.ap-mod .drop > a { padding: 8px 12px; border-radius: 6px; color: var(--ink); font-size: 14px; text-decoration: none; }
.ap-mod .drop > a:hover { background: var(--bg); }
/* Вкладки «Посты N / Комментарии N»: текущая подчёркнута красным. */
.ap-tabs { display: flex; flex-wrap: wrap; gap: 0 26px; margin: 26px 0 0; border-bottom: 3px solid var(--ink); font-size: 15px; }
.ap-tabs a, .ap-tabs span { margin-bottom: -3px; padding: 10px 0 9px; border-bottom: 3px solid transparent; color: var(--mut); text-decoration: none; white-space: nowrap; }
.ap-tabs a:hover { color: var(--ink); }
.ap-tabs a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ap-tabs .on { border-color: var(--acc); color: var(--ink); font-weight: 600; }
.ap-tabs small { margin-left: 5px; color: var(--mut); font-size: 13px; font-weight: 400; font-variant-numeric: tabular-nums; }
/* Вкладка «Посты»: колонка слева и Лента справа. */
.ap-cols { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0 40px; align-items: start; padding-top: 22px; }
.ap-side { position: sticky; top: calc(var(--stick) + 20px); max-height: calc(100vh - var(--stick) - 36px); overflow-y: auto; }
.ap-main { min-width: 0; }
.ap-h { margin: 0 0 6px; color: var(--mut); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.ap-rubs { margin: 0 0 24px; padding: 0; list-style: none; }
.ap-rubs a { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 15px; text-decoration: none; }
.ap-rubs a > .t { min-width: 0; overflow-wrap: anywhere; }
.ap-rubs a:hover > .t { text-decoration: underline; }
.ap-rubs a.on { color: var(--acc); font-weight: 600; }
.ap-cloud { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; line-height: 1.4; }
.ap-cloud a { color: var(--mut); text-decoration: none; overflow-wrap: anywhere; }
.ap-cloud a:hover { color: var(--ink); text-decoration: underline; }
.ap-cloud a.on { color: var(--acc); font-weight: 600; }
.ap-cloud .t1 { font-size: 13px; }
.ap-cloud .t2 { font-size: 15px; }
.ap-cloud .t3 { color: #4f4a43; font-size: 18px; }
.ap-sided { display: none; margin: 0 0 14px; border-bottom: 1px solid var(--line); }
.ap-sided > summary { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; font-size: 15px; list-style: none; cursor: pointer; }
.ap-sided > summary::-webkit-details-marker { display: none; }
.ap-sided > summary b { font-weight: 600; white-space: nowrap; }
.ap-sided > summary span { min-width: 0; color: var(--mut); text-align: right; overflow-wrap: anywhere; }
.ap-sided > summary span::after { content: " ▾"; font-size: 11px; }
.ap-sided[open] > summary span::after { content: " ▴"; }
.ap-sided .in { padding: 0 0 16px; }
.ap-find { max-width: 520px; margin: 0; }
.ap-find input { padding: 8px 16px; }
.ap-find .btn { padding: 8px 18px; }
.ap-fhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 18px 0 0; }
.ap-fhead b { font: 700 24px/1.2 Georgia, serif; overflow-wrap: anywhere; }
.ap-fhead .n { color: var(--mut); font-size: 14px; }
.ap-fhead a { color: var(--acc); font-size: 14px; }
.ap-main .pinned { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; padding: 22px 0 26px; }
.ap-main .pinned .big { font-size: 28px; }
.ap-main .pinned .lead { font-size: 16px; }
.ap-main .snone { padding-top: 18px; }
/* «Закрепить» / «Открепить» справа в нижней строке — самому Автору и Администратору. */
.rpin { margin: 0 0 0 auto; }
.rpin .linkbtn { display: inline-flex; align-items: center; gap: 5px; color: var(--mut); font-size: 13px; text-decoration: none; cursor: pointer; }
.rpin .linkbtn:hover { color: var(--ink); text-decoration: underline; }
.rpin .ico { width: 15px; height: 15px; }
/* Вкладка «Комментарии»: строки как у колонки «Последние комментарии» (#38), с началом текста. */
.ap-wide { max-width: 760px; padding-top: 4px; }
.ap-wide .pages.above { margin-top: 16px; }
.ap-wide .empty { padding-top: 22px; }
.ap-cl { margin: 0; padding: 6px 0 0; list-style: none; }
.ap-cl li { padding: 16px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--stick) + 20px); }
.ap-cl .to { margin: 0 0 6px; color: var(--mut); font-size: 14px; overflow-wrap: anywhere; }
.ap-cl .to a { color: var(--ink); font-weight: 600; text-decoration: none; }
.ap-cl .to a:hover { text-decoration: underline; }
.ap-cl .tx { margin: 0 0 8px; font-size: 16px; overflow-wrap: anywhere; }
.ap-cl .re { color: var(--mut); }
.ap-cl .mt { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; color: var(--mut); font-size: 13px; }
.ap-cl .mt a { color: var(--acc); }
/* Настройки → «Профиль»: Обложка Страницы Автора двумя рамками и «О себе» со счётчиком. */
.ap-set { display: grid; gap: 8px; }
.ap-set .lbl { font-size: 14px; font-weight: 600; }
.pframes { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; align-items: end; }
.pframes figure { margin: 0; }
.pframes figcaption { margin-top: 6px; color: var(--mut); font-size: 12px; }
.pframes .ap-cover { border-radius: 6px; }
.pframes .phone .ap-cover { aspect-ratio: 2 / 1; }
.ap-set .btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-set label.btn { cursor: pointer; }
.ap-set input[type=file]:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }
.ap-set small, .aboutf small { color: var(--mut); font-size: 13px; }
.ap-set .btn[disabled], .aboutf .btn[disabled] { opacity: .6; cursor: progress; }
.aboutf { display: grid; gap: 6px; }
.aboutf textarea { min-height: 84px; }
.aboutf .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; }
.aboutf .btn { padding: 9px 20px; }
.pf .tg.seen { margin: 0; }
.pf .golink { margin: -8px 0 0; }
@media (max-width: 900px) {
  .ap-id { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ava name" "ava about" "ava nums" ". acts"; padding-left: 16px; }
  .ap-acts { flex-direction: row; flex-wrap: wrap; align-items: center; padding-top: 14px; }
  .ap-acts .fnote, .ap-acts .fclosed { flex-basis: 100%; max-width: none; text-align: left; }
  .ap-cols { grid-template-columns: minmax(0, 1fr); padding-top: 4px; }
  .ap-side { display: none; }
  .ap-sided { display: block; }
  .ap-main .pinned { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 600px) {
  /* Телефон: Обложка 2:1 от края до края, Аватар над Именем, кнопка во всю ширину сразу под Именем. */
  .ap-head > .ap-cover { margin: -28px -24px 0; border-radius: 0; aspect-ratio: 2 / 1; }
  .msgs + .ap-head > .ap-cover { margin-top: 0; }
  .ap-id { grid-template-columns: minmax(0, 1fr); grid-template-areas: "ava" "name" "acts" "about" "nums"; padding: 0; }
  .ap-id > .ava { --s: 88px; margin-top: -44px; font-size: 38px; }
  .ap-id > h1 { padding-top: 8px; font-size: 30px; }
  .ap-about { font-size: 16px; }
  .ap-acts { padding-top: 12px; }
  .ap-acts > .follow > form, .ap-acts > .follow > a.fol, .ap-acts > a.btn, .ap-mod { flex: 1 1 100%; }
  .ap-acts .fol, .ap-acts > a.btn, .ap-mod > summary { display: block; width: 100%; text-align: center; }
  .ap-tabs { gap: 0 20px; margin-top: 18px; }
  .ap-find { max-width: none; }
  .pframes { grid-template-columns: minmax(0, 1fr); }
  .pframes .phone { max-width: 60%; }
}

/* Страница Пользователя (#60): та же шапка, что у Страницы Автора. Под числами — Блокировка (самой Учётной записи
   и Модератору) и строка Модератору «N на Проверке · N скрытых». Плашка «Блокировка» — у Имени. */
.ap-under { grid-area: nums; min-width: 0; }
.ap-id > h1 .badge { margin-left: 12px; font: 600 13px/1.7 "Segoe UI", system-ui, sans-serif; letter-spacing: 0; vertical-align: middle; }
.ap-block, .ap-wait { max-width: 64ch; margin: 10px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.ap-block { padding: 8px 12px; border-left: 3px solid #b9b0a3; border-radius: 0 8px 8px 0; background: #f1ece4; color: #3d3a35; }
.ap-block a, .ap-wait a { color: var(--acc); }
.ap-wait { color: var(--mut); }
.ap-wait b { font-weight: 600; }
/* Под Постом: Имя и Аватар автора Комментария — ссылки на его Страницу, если она открывается зрителю. */
.ch a.who-n { color: inherit; text-decoration: none; }
.ch a.who-n:hover b { text-decoration: underline; }
.co > a.who-a { display: block; margin-top: 2px; border-radius: 50%; }
.co > a.who-a > .ava { --s: 36px; }
.replies .co > a.who-a > .ava { --s: 28px; }
.co > a.who-a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.acct .topage { margin: 0 0 8px; font-size: 14px; }
.acct .topage a { color: var(--acc); font-weight: 600; }
@media (max-width: 600px) {
  .ap-id > h1 .badge { display: table; margin: 6px 0 0; }
}

/* Оглавление Поста (#46). Разделы — ссылками с чертой слева, подразделы — ступенькой ниже, мельче.
   Уже 1180 px и в Предпросмотре — свёрнутое «Оглавление ▾» над текстом. На странице Поста от 1180 px — справа от текста,
   на свободном поле: едет за текстом, пока он на экране, длинный список прокручивается внутри себя. */
.toc { font: 14px/1.4 "Segoe UI", system-ui, sans-serif; }
.toc-h { margin: 0 0 8px; color: var(--mut); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc ol ol { padding-left: 14px; }
.toc a { display: block; padding: 4px 0 4px 12px; border-left: 2px solid var(--line); color: #3d3a35; text-decoration: none; overflow-wrap: anywhere; }
.toc ol ol a { color: var(--mut); font-size: 13px; }
.toc a:hover { border-color: var(--ink); color: var(--ink); }
/* Подсветка (скрипт в hx-on обёртки): раздел, который читают, — красная черта и жирный; его раздел, если читают подраздел, — тёмный. */
.toc a.on { border-color: var(--acc); color: var(--ink); font-weight: 600; }
.toc a.in { color: var(--ink); }
.toc .toc-cm { margin-top: 8px; border-left-color: transparent; color: var(--acc); }
.toc .toc-cm:hover, .toc .toc-cm.on { border-left-color: var(--acc); color: var(--acc); }
.toc-side { display: none; }
.toc-fold { max-width: 700px; margin: 0 auto 28px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.toc-fold > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; color: var(--ink); font: 600 14px/1.3 "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.toc-fold > summary::-webkit-details-marker { display: none; }
.toc-fold > summary small { color: var(--mut); font-weight: 400; }
.toc-fold > summary::after { content: "▾"; color: var(--mut); font-size: 11px; }
.toc-fold[open] > summary::after { content: "▴"; }
.toc-fold > .toc { padding: 0 14px 12px; }
.pvbox .toc-fold { margin-bottom: 20px; }
/* «Комментарии ↓» и число под заголовком ведут к блоку: его заголовок не прячется под шапкой. */
.cm { scroll-margin-top: calc(var(--stick) + 20px); }
@media (min-width: 1180px) {
  /* Колонка текста остаётся на месте; Оглавление — в правом поле: 170 px на 1180, 220 px от 1280. */
  .withtoc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 700px) minmax(0, 1fr); }
  .withtoc > .body { grid-column: 2; grid-row: 1; margin-left: 0; margin-right: 0; }
  .withtoc > .toc-fold { display: none; }
  .withtoc > .toc-side { display: block; grid-column: 3; grid-row: 1; align-self: start; position: sticky; top: calc(var(--stick) + 33px); width: min(220px, calc(50vw - 420px)); max-height: calc(100vh - var(--stick) - 56px); margin-left: 40px; overflow-y: auto; scrollbar-width: thin; }
}

/* Обложка и картинки в тексте.
   Обложка обрезается по центру: у крупного Поста над Лентой и в «Читайте также» 16:10, на странице Поста 21:9
   во всю ширину страницы. Без Обложки там узор «P»: полосатый градиент в оттенке Рубрики. */
.pinned .cover, .tile .cover { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 6px; background: #efe9df; }
.tile .cover { margin-bottom: 8px; }
.pinned .cover img, .tile .cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pinned .cover.none, .tile .cover.none, .cover .f1 .none { background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .1) 0 16px, transparent 16px 32px), linear-gradient(135deg, hsl(var(--h, 30) 45% 70%), hsl(calc(var(--h, 30) + 40) 40% 42%)); }
.pcover { max-width: 1072px; margin: 0 auto 36px; aspect-ratio: 21 / 9; overflow: hidden; border-radius: 8px; background: #efe9df; }
.pcover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pvbox .pcover { margin-bottom: 20px; }
/* Картинка в тексте Поста — по ширине колонки, не шире своего размера; одна в абзаце — с воздухом. */
.body img { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 6px; }
.body p:has(> img:only-child) { margin: 28px 0; }

/* Видео в тексте Поста (#52): до нажатия ▶ — тёмная заглушка 16:9, к сайту сервиса страница не обращается;
   по нажатию на её месте плеер той же величины. Под ними — ссылка на видео на сайте сервиса. */
.body .video { margin: 28px 0; }
.body .video > .vstub, .body .video > iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 10px; background: #141414; }
.body .video > .vstub, .wys .vedit { display: grid; place-content: center; justify-items: center; gap: 4px; padding: 12px; color: #ddd; font: 15px/1.4 "Segoe UI", system-ui, sans-serif; text-align: center; text-decoration: none; }
.body .video > .vstub:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
.vplay { display: grid; place-items: center; width: 64px; height: 44px; margin-bottom: 6px; border-radius: 12px; background: #c4302b; color: #fff; font-size: 20px; line-height: 1; }
.vstub:hover .vplay, .vstub:focus-visible .vplay { background: #e0443c; }
.vstub small, .vedit small { color: #9a9a9a; font-size: 13px; overflow-wrap: anywhere; }
.body .video figcaption { margin-top: 6px; font: 13px/1.4 "Segoe UI", system-ui, sans-serif; }
.body .video figcaption a { color: var(--mut); }
/* В редакторе — та же заглушка с адресом видео; выделяется и удаляется целиком, как Картинка. */
.wys .vedit { aspect-ratio: 16 / 9; margin: 28px 0; border-radius: 10px; background: #141414; white-space: normal; user-select: none; cursor: default; }
.wys .vedit.ProseMirror-selectednode { outline: 3px solid var(--acc); outline-offset: 2px; }

/* Обложка в редакторе «Две рамки»: как её обрежут в ленте и на странице Поста. Пустая рамка — пунктир. */
.cover > .label { font-size: 14px; font-weight: 600; }
.cover > input.vh { width: 1px; padding: 0; border: 0; }
.cover .frames { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); gap: 16px; align-items: end; }
.cover figure { margin: 0; }
.cover figcaption { margin-top: 6px; color: var(--mut); font-size: 12px; }
.cover .frame { position: relative; overflow: hidden; border-radius: 6px; background: #fffdf9; outline: 2px dashed #cfc6b8; outline-offset: -2px; }
.cover .f1 .frame { aspect-ratio: 16 / 10; }
.cover .f2 .frame { aspect-ratio: 21 / 9; }
.cover .frame img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.cover .frame > .none { position: absolute; inset: 0; display: grid; place-items: center; padding: 8px; color: var(--mut); font-size: 13px; text-align: center; }
.cover .f1 .none { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.cover.has .frame { outline: 0; }
.cover.has .frame > .none, .cover .frame > .busy { display: none; }
.cover.loading .frame > .busy { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255, 253, 249, .85); color: #8a6a00; font-size: 13px; }
.cover .frame.over { outline: 3px dashed var(--acc); outline-offset: -3px; }
.pictures-ready.dragging .cover .frame:not(.over) { outline: 2px dashed #d9776f; outline-offset: -2px; }
/* «Убрать» — флажок: рамки снова пустые, а Обложку уберут при сохранении. Работает и без скриптов. */
.cover:has(#id_cover_clear:checked) .frame img { display: none; }
.cover:has(#id_cover_clear:checked) .frame { outline: 2px dashed #cfc6b8; }
.cover:has(#id_cover_clear:checked) .frame > .none { display: grid; }
.cbtns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.field .minibtn { display: inline-flex; align-items: center; padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 400; line-height: normal; white-space: nowrap; cursor: pointer; }
.field .minibtn:hover { border-color: var(--ink); }
.cover:has(#id_cover_file:focus-visible) .minibtn.js, #id_cover_clear:focus-visible ~ .cbtns .del, .pics:has(#id_picture_file:focus-visible) .pick { outline: 2px solid var(--ink); outline-offset: 1px; }
.field .minibtn.del { color: var(--acc); }
.cover:not(.has) .minibtn.del, .cover .if-has, .cover.has .if-none, .minibtn .undo-yes { display: none; }
.cover.has .if-has { display: inline; }
.cover:has(#id_cover_clear:checked) .minibtn .undo-no { display: none; }
.cover:has(#id_cover_clear:checked) .minibtn .undo-yes { display: inline; }
.cvhint { color: var(--mut); font-size: 13px; }
.cover .cleared { display: none; color: var(--acc); font-size: 13px; }
.cover:has(#id_cover_clear:checked) .cleared { display: inline; }
.cover .nojs label { font-weight: 400; }
.cover .alt { display: grid; gap: 6px; }
.cover:not(.has) .alt, .cover:has(#id_cover_clear:checked) .alt { display: none; }
/* Что видно без скрипта картинок и что со скриптом: поле файла или кнопка и перетаскивание. */
form:not(.pictures-ready) .js { display: none !important; }
/* Поле файла со скриптом не видно, но остаётся в порядке Tab: кнопка рядом подсвечивается, когда оно в фокусе. */
.pictures-ready .nojs { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Картинки в тексте «Весь текст»: пока над страницей тащат файл, поле текста подсвечено и подписано. */
.dropwrap { position: relative; }
.pictures-ready.dragging .dropwrap textarea { outline: 2px dashed var(--acc); outline-offset: 2px; }
.pictures-ready.dragging .dropwrap::after { content: "Отпустите — картинка встанет туда, где курсор"; position: absolute; left: 50%; top: 18px; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: var(--acc); color: #fff; font-size: 13px; white-space: nowrap; pointer-events: none; }
.dropwrap.over textarea { background: #fdf0ee; }
.field .pics label { font-size: inherit; font-weight: 400; }
.pics .pick { color: var(--acc); text-decoration: underline; cursor: pointer; }
/* Ошибки загрузки «Под полем»: красная плашка, висит, пока не скрыть. */
.uerr { display: grid; gap: 4px; margin: 0; padding: 8px 10px 8px 12px; border-left: 3px solid var(--acc); border-radius: 0 8px 8px 0; background: #fdf0ee; color: #8f1d16; font-size: 14px; }
.uerr[hidden] { display: none; }
.uerr p { margin: 0; overflow-wrap: anywhere; }
.uerr .x { justify-self: start; padding: 0; border: 0; background: none; color: var(--mut); font-size: 13px; text-decoration: underline; }

/* Визуальный редактор Текста (#50): полоса 1 «Над полем», на телефоне Y «Короткая + ⋯».
   Что видно с редактором (.ed) и без него (.noed): без скриптов поле Текста — HTML-код. */
form:not(.editor-ready) .ed { display: none !important; }
.editor-ready .noed { display: none !important; }
.editor-ready .dropwrap > textarea { display: none; }
/* Счётчики «у подписи»: от 90% предела жёлтые, на пределе красные. */
.lrow { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cnt { color: var(--mut); font-size: 13px; font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cnt.near { color: #8a6a00; }
.cnt.full { color: var(--acc); font-weight: 600; }
.write .tabs .tcnt { align-self: center; margin-left: 14px; }
.write .bcnt { display: none; }
#view-preview:checked ~ .tabs .tcnt { display: none; }
/* Поле вместе с полосой — одна рамка; фокус обводит обе. */
.ebox { position: relative; display: grid; border-radius: 8px; }
.ebox.withtb:focus-within { outline: 2px solid var(--ink); outline-offset: 1px; }
.tb { position: sticky; top: var(--tb-top, var(--stick)); z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 4px 6px; border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; background: #f6f1e9; }
.tb button, .tpop .it { cursor: pointer; }
.tb button { display: inline-flex; align-items: center; justify-content: center; gap: 1px; min-width: 32px; height: 32px; padding: 0 6px; border: 0; border-radius: 6px; background: none; color: #3d3a35; font: 15px/1 "Segoe UI", system-ui, sans-serif; }
.tb button:hover { background: #e9e1d4; color: var(--ink); }
.tb button.on, .tb button[aria-expanded="true"] { background: #e2d8c8; color: var(--ink); }
.tb button:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.tb svg { width: 18px; height: 18px; flex: none; }
.tb .sep { flex: none; width: 1px; height: 20px; margin: 0 4px; background: #d9d0c2; }
.tb .end { display: inline-flex; gap: 2px; margin-left: auto; }
.tb .dots { display: none; }
.tb [data-a="full"] .i-off, .tb [data-a="full"][aria-pressed="true"] .i-on { display: none; }
.tb [data-a="full"][aria-pressed="true"] .i-off { display: block; }
.g { font: 700 16px/1 Georgia, serif; }
.g.g-it { font-style: italic; font-weight: 400; }
.g.g-st { font-weight: 400; text-decoration: line-through; }
.g.g-h { font-family: "Segoe UI", system-ui, sans-serif; }
.g.g-q { font: 700 15px/1 "Segoe UI", system-ui, sans-serif; }
.g.g-x { font: 600 11px/1 Consolas, "Cascadia Mono", monospace; letter-spacing: .02em; }
.tb .car { margin-left: 1px; color: var(--mut); font-size: 10px; }
/* Само поле: те же стили .body, что у читателя, и растёт вместе с текстом — полоса едет следом под шапкой. */
.wys.body { min-height: 360px; max-width: none; margin: 0; padding: 14px 22px; border: 1px solid var(--line); border-radius: 0 0 8px 8px; background: #fff; font-size: 18px; outline: 0; white-space: pre-wrap; }
.wys.body > :last-child { margin-bottom: 0; }
.wys p.is-editor-empty:first-child::before { content: attr(data-placeholder); float: left; height: 0; color: var(--mut); font-style: italic; pointer-events: none; }
.wys a { cursor: text; }
.wys img.ProseMirror-selectednode { outline: 3px solid var(--acc); outline-offset: 2px; }
.wys .selectedCell { background: #fbe3e1; }
.wys table { margin: 18px 0 1.3em; }
.wys .tableWrapper { overflow-x: auto; }
.wys.body pre { margin-left: 0; margin-right: 0; border-radius: 10px; }
.wys .upmark { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #fff1b8; color: #6b5300; font: 13px/1.6 "Segoe UI", system-ui, sans-serif; white-space: nowrap; }
.body td > p, .body th > p { margin: 0; }
.body td > p + p, .body th > p + p { margin-top: .4em; }
.editor-ready.dragging .wys { outline: 2px dashed var(--acc); outline-offset: 2px; }
.editor-ready.dragging .dropwrap::after { content: "Отпустите — картинка встанет туда, куда бросите"; }
.dropwrap.over .wys { background: #fdf0ee; }
/* Окна под кнопками: список, выбор, поля. */
.tpop { position: absolute; z-index: 20; width: max-content; min-width: 220px; max-width: min(360px, calc(100vw - 24px)); padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .09); color: var(--ink); font: 14px/1.4 "Segoe UI", system-ui, sans-serif; text-align: left; }
.tpop[hidden] { display: none; }
.tpop .it { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border: 0; border-radius: 6px; background: none; color: var(--ink); font: inherit; text-align: left; }
.tpop .it:hover, .tpop .it:focus-visible { background: var(--bg); }
.tpop .it.danger { color: var(--acc); }
.tpop .it small { margin-left: auto; padding-left: 16px; color: var(--mut); font: 12px/1.3 Consolas, "Cascadia Mono", monospace; white-space: pre; }
.tpop .h2s { font: 700 21px/1.2 Georgia, serif; }
.tpop .h3s { font: 700 17px/1.2 Georgia, serif; }
.tpop .h4s { font: 700 14px/1.2 "Segoe UI", system-ui, sans-serif; }
.tpop .ph { margin: 6px 10px 4px; color: var(--mut); font-size: 12px; }
.tpop .langs { display: flex; flex-wrap: wrap; gap: 4px; max-width: 300px; padding: 0 6px 4px; }
.tpop .lang { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: 13px/1.3 "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.tpop .lang:hover { border-color: var(--ink); }
.tpop .lang.on { border-color: var(--ink); background: #efe9df; }
.tpop .pform { display: grid; gap: 10px; width: min(320px, calc(100vw - 48px)); padding: 6px; }
.tpop .pform label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.tpop .pform input { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: 14px/1.3 "Segoe UI", system-ui, sans-serif; }
.tpop .pform input:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.tpop .pb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tpop .pb .btn { padding: 6px 16px; }
.tpop .pb .linkbtn { margin-left: auto; font-size: 13px; }
.tpop .pn { margin: 0; color: var(--mut); font-size: 12px; font-weight: 400; }
.tpop .perr { margin: 0; color: var(--acc); font-size: 13px; font-weight: 600; }
.tpop .tgrid { display: grid; grid-template-columns: repeat(6, 24px); gap: 3px; padding: 6px; }
.tpop .gc2 { width: 24px; height: 24px; padding: 0; border: 1px solid var(--line); border-radius: 3px; background: #fff; cursor: pointer; }
.tpop .gc2.on, .tpop .gc2:focus-visible { border-color: var(--acc); background: #fbe3e1; }
.tpop .glab { margin: 2px 6px 4px; color: var(--mut); font-size: 12px; }
.tpop .picb { display: grid; gap: 8px; width: min(300px, calc(100vw - 48px)); padding: 6px; }
.tpop .picb .btn { justify-self: start; padding: 6px 16px; font-size: 14px; font-weight: 400; cursor: pointer; }
/* Код HTML — только посмотреть. */
.srcbox { display: grid; gap: 6px; }
.srcbox[hidden] { display: none; }
.srcbox p { margin: 0; color: var(--mut); font-size: 13px; }
.field .srcbox textarea { min-height: 220px; background: #f6f1e9; font: 13px/1.5 Consolas, "Cascadia Mono", monospace; }
/* «Во весь экран»: поле на всё окно, колонка до 860 px, полоса сверху. Esc — обратно. */
html.noscroll, html.noscroll body { overflow: hidden; }
.write.full { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-rows: auto minmax(0, 1fr); align-content: stretch; gap: 0; padding: 10px max(16px, calc(50vw - 430px)) 14px; background: var(--bg); }
.write.full > .pane.text { display: flex; flex-direction: column; gap: 6px; min-height: 0; padding-top: 8px; }
.write.full > .pane.text > :not(.ebox):not(.srcbox):not(.uerr) { display: none; }
.write.full .ebox { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.write.full .tb { position: static; }
.write.full .dropwrap { flex: 1; display: flex; min-height: 0; }
.write.full .dropwrap > div { flex: 1; display: flex; min-height: 0; }
.write.full .wys.body { flex: 1; min-height: 0; overflow-y: auto; }
.write.full > .pvbox { min-height: 0; margin-top: 8px; overflow-y: auto; }
.write.full .srcbox textarea { min-height: 120px; max-height: 30vh; }
/* Редактор Комментария (#51): та же полоса, шесть кнопок в одну строку. Полоса не липнет — поле короткое. */
.cbox .tb { position: static; }
.wys.cb { min-height: 96px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 0 0 8px 8px; background: #fff; font-size: 16px; line-height: 1.5; outline: 0; white-space: pre-wrap; }
.ca .wys.cb { min-height: 72px; }
.wys.cb > :first-child { margin-top: 0; }
.wys.cb > :last-child { margin-bottom: 0; }
.cform.editor-ready textarea[data-html] { display: none; }
.cnopic { margin: 6px 0 0; color: var(--acc); font-size: 13px; font-weight: 600; }
.cnopic[hidden] { display: none; }
.cb li > p { margin: 0; }
@media (max-width: 600px) {
  /* Телефон, Y «Короткая + ⋯»: Ж, К, Заголовок, Ссылка, Картинка и «⋯»; «⋯» раскрывает остальное второй строкой. */
  .tb button { min-width: 40px; height: 40px; }
  .tb .dots { display: inline-flex; order: 1; margin-left: auto; }
  .tb::after { content: ""; flex-basis: 100%; order: 2; }
  .tb > :not(.s):not(.dots) { order: 3; }
  .tb:not(.all) > :not(.s):not(.dots) { display: none; }
  .tb.all > :not(.s):not(.dots) { margin-top: 4px; }
  .tb .end { margin-left: 0; }
  .wys.body { padding: 12px 14px; font-size: 17px; }
  /* У Комментария «⋯» нет: все шесть кнопок — одной строкой, и в форме Ответа на третьем уровне (≈ 250 точек). */
  .cbox .tb::after { content: none; }
  .cbox .tb { gap: 1px; padding: 4px; }
  .cbox .tb button { min-width: 34px; padding: 0 4px; }
  .cbox .tb .sep { margin: 0 3px; }
  .write .tabs .tcnt { display: none; }
  .write .bcnt { display: block; }
  .write.full { padding: 6px 8px 10px; }
}

/* Подвал */
.foot { width: 100%; max-width: 1120px; margin: 0 auto; padding: 22px 24px; border-top: 1px solid var(--line); color: var(--mut); font-size: 14px; display: flex; gap: 18px; flex-wrap: wrap; }
/* «© Название · сделано [лапка] VibePaws» (#56, #61), RSS — справа. Лапка — цвета текста подвала, размером со значок RSS. */
.foot .rss { margin-left: auto; }
.foot .made { white-space: nowrap; }
.foot .paw { display: inline-block; width: 15px; height: 15px; vertical-align: -2px; }

@media (max-width: 900px) {
  .pinned { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .pinned .big { font-size: 32px; }
  .phead h1 { font-size: 34px; }
}

@media (max-width: 600px) {
  /* Строка Ленты на телефоне: заголовок мельче, верхняя и нижняя строки переносятся. */
  .prow { padding: 20px 0; }
  .rt { font-size: 22px; }
  .rbar { gap: 8px 14px; }
  /* Листалка на телефоне: стрелки без подписей (подписи остаются для экранного диктора), около текущей — по номеру. */
  .pages { gap: 4px; }
  .pages .lbl { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .pages .pv, .pages .nx { padding: 4px 10px; }
  .pages .nums a, .pages .nums span { min-width: 30px; padding: 4px 6px; }
  .pages .nums .w { display: none; }
  .pages .nums .p { display: inline-block; }
  .pinned { padding-bottom: 32px; }
  .pinned .big { font-size: 28px; }
  .pinned .lead { font-size: 17px; }
  .phead { padding-top: 20px; }
  .phead h1 { font-size: 30px; }
  .body { font-size: 18px; }
  .body h2 { font-size: 24px; margin-top: 36px; }
  .body h3 { font-size: 20px; }
  .body .anchor { display: none; }
  /* Код на телефоне — во всю ширину экрана, без скруглений; таблица чуть мельче. */
  .body pre { margin-left: -24px; margin-right: -24px; padding: 14px 24px; border-radius: 0; }
  .body pre code { font-size: 13px; }
  .body table { font-size: 14px; }
  .pvbox { padding: 2px 14px 6px; }
  .pvbox .phead h1 { font-size: 26px; }
  .pvbox .body pre { margin-left: -14px; margin-right: -14px; padding: 14px; }
  /* Обложка на телефоне — от края до края экрана. */
  .pcover { margin-left: -24px; margin-right: -24px; border-radius: 0; }
  .pvbox .pcover { margin-left: -14px; margin-right: -14px; }
  .cover .frames { grid-template-columns: 1fr; }
  .cover .f1 { max-width: 240px; }
  .pictures-ready.dragging .dropwrap::after { width: 80%; border-radius: 12px; text-align: center; white-space: normal; }
  .cm h2 { font-size: 22px; }
  /* Карточка Автора: кнопка во всю ширину под именем. «Читайте также» — строками, картинка слева. */
  .abox { padding: 14px; }
  .abox .btn { flex-basis: 100%; text-align: center; }
  .tiles { grid-template-columns: 1fr; gap: 12px; }
  /* Картинка выше двух строк текста: лишняя высота уходит под заголовок, Рубрика и заголовок стоят вплотную. */
  .tile { display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 0 12px; }
  .tile .cover { grid-row: span 2; margin: 0; }
  .replies { padding-left: 10px; }
  .co:not(.gone) { grid-template-columns: 30px minmax(0, 1fr); gap: 0 10px; }
  .co > .ava { --s: 30px; }
  .replies .co:not(.gone) { grid-template-columns: 24px minmax(0, 1fr); gap: 0 8px; }
  .replies .co > .ava { --s: 24px; }
  /* Три пункта порядка Веток помещаются в строку и на узком экране. */
  .csort { margin: 0 -10px; }
  .csort a, .csort span { padding: 4px 10px; }
  .fbest > .csort { margin-left: -10px; }
  .desk .summary { font-size: 18px; }
  /* Кнопки редактора и формы снятия на телефоне — во всю ширину, дата и время выхода — рядом. */
  .actions .btn, .actions details > summary.btn { flex: 1 1 100%; text-align: center; }
  .plan .row > label.f { flex: 1 1 130px; }
  .plan input { width: 100%; }
  .offform .row .btn, .offnote .btn { flex: 1 1 100%; text-align: center; }
  .decide .wdq .btn { justify-self: stretch; text-align: center; }
  .report .big { font-size: 48px; }
  .report .sum { font-size: 17px; }
  .report .cols { grid-template-columns: 1fr; gap: 24px; }
  /* Первая строка шапки на телефоне: логотип, лупа и «Войти» или значок «Модерации», аватар (у Автора и Администратора
     вместо него — круглая «+») и ☰. Чтобы всё встало
     в строку и на телефоне шириной 360, здесь плотнее, а длинное Название блога — мельче. Прилипает только она:
     под ней черта, а строка пилюль уезжает вместе со страницей. */
  .top { border-bottom: 1px solid var(--line); }
  .top .wrap { gap: 0 8px; flex-wrap: nowrap; height: auto; min-height: 58px; padding: 8px 16px; }
  .top .wrap:has(.hmenu) { column-gap: 8px; }
  .logo { flex: 0 1 auto; gap: 8px; font-size: 24px; }
  .logo.long { font-size: 14px; }
  /* Значок 34 px, Название в две строки — по его высоте. Рисунок полный: глаза-щёлочки и нос видны и так. */
  .fox { width: 34px; height: 34px; }
  .logo.two .lt { font-size: 16px; }
  .logo.two.long .lt { -webkit-line-clamp: 3; }
  /* У Модератора и Администратора в строке ещё флажок «Модерации» с числом. Им плотнее: поля и промежутки меньше,
     Название 15 px — чтобы и на 360 оно встало в две строки (при двузначном числе — в три). */
  .top .wrap:has(#queue-link) { column-gap: 6px; padding-right: 12px; padding-left: 12px; }
  .top .wrap:has(#queue-link) .logo { gap: 6px; }
  .top .wrap:has(#queue-link) .logo.two .lt { font-size: 15px; }
  .top .wrap:has(#queue-link) #queue-link { padding: 4px 2px; }
  /* У Автора и Администратора в строке ещё круглая «+» «Новый пост» (#63). Им аватара в строке нет — Имя и «Настройки»
     и так в ☰, — а «+» чуть меньше: так Название и на 360 стоит в две строки (решение владельца, вариант Б). */
  .top .wrap:has(.newp) #me { display: none; }
  .newp { width: 30px; height: 30px; }
  /* Строка пилюль листается пальцем вбок от края до края, без переноса и без полосы прокрутки; текущую пилюлю скрипт
     прокручивает в видимую часть. «Ещё ▾» раскрывает список во всю ширину под строкой: его место считается от `.rubs`,
     поэтому прокрутка строки его не обрезает. */
  .rubs { position: relative; top: auto; border-bottom: 0; }
  .rubs .wrap { padding: 10px 0; }
  .rub { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; padding: 0 16px; scrollbar-width: none; }
  .rub::-webkit-scrollbar { display: none; }
  .rub > a { flex: none; }
  .rub > .more { position: static; }
  .rub .drop { top: 100%; left: 0; right: 0; grid-template-columns: 1fr 1fr; gap: 0 12px; width: auto; min-width: 0; max-width: none; padding: 4px 16px 12px; border-width: 0 0 1px; border-radius: 0; }
  .rub .drop a { padding: 10px 0; border-bottom: 1px solid var(--line); border-radius: 0; overflow-wrap: anywhere; }
  .rub .drop a:hover { background: none; text-decoration: underline; }
  .rub .drop .alls { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin: 0; padding: 0; border: 0; }
  .rub .drop .alls a { display: block; padding: 10px 0; border-bottom: 0; color: var(--mut); font-size: 14px; }
  .rub .drop .alls a::after { content: " →"; }
  .hmenu .sheet { padding-left: 16px; padding-right: 16px; }
  .sheet .rgrid { grid-template-columns: 1fr 1fr; }
  .sfind { flex: none; }
  .sfind > summary { width: 32px; height: 32px; }
  .top .wrap > .btn.ghost { flex: none; padding: 6px 13px; }
  .sbar { padding: 10px 0; }
  .sbar .in { padding: 0 16px; }
  .sfield .btn { padding: 9px 16px; }
  .lhead h1, .shead h1 { font-size: 30px; }
}
