/* Раздел «Чаты» (static/chats.js). Цвета — переменные app.css, поэтому тёмная тема работает сама.
   Весь текст — Inter, без засечек и курсива (Олег 12.11: «шрифты с засечками — не читабельные»).
   Телефон и планшет: список → переписка отдельным экраном. Компьютер от 1024 px: список слева, переписка справа,
   каждая колонка листается сама. Тексты людей переносятся в любом месте (длинные ссылки и слова не распирают экран). */

.chx, .chx h1, .chx h2, .chx h3, .sheet:has(.chx-sheet) .sheet-head h2 { font-family: var(--f-sans); }
.chx { font-feature-settings: "tnum", "lnum"; }
.chx h1 { font: 700 28px/1.15 var(--f-sans); letter-spacing: -.02em; }

/* карточка на главной */
.chx-promo { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 14px 16px; border-radius: 18px;
  background: var(--olive-soft); color: var(--olive); text-decoration: none; border: 1px solid var(--line); }
.sites-promo + .chx-promo, .an-promo + .chx-promo { margin-top: -6px; }
.chx-promo .cp-ic { display: flex; width: 44px; height: 44px; border-radius: 14px; align-items: center; justify-content: center; background: var(--paper); flex: none; }
.chx-promo .cp-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.chx-promo b { font-size: 17px; color: var(--ink); }
.chx-promo small { color: var(--ink-2); font-size: 14px; }
.chx-promo .cp-n { align-self: flex-start; font: 600 12.5px/1 var(--f-sans); padding: 5px 9px; border-radius: 999px; background: var(--terra); color: var(--terra-ink); margin-top: 3px; }

/* ───────────── каркас ───────────── */
.chx-list-pane, .chx-thread-pane { min-width: 0; }
.chx-th-back { display: inline-grid; }
/* на узком телефоне в шапке студии теперь на значок больше: прячем слово «Контент-завод», знак остаётся */
@media (max-width: 359.98px) { .top .brand-name { display: none; } }
@media (max-width: 1023.98px) {
  .chx.has-code .chx-list-pane { display: none; }
  .chx:not(.has-code) .chx-thread-pane { display: none; }
  /* переписка на телефоне — на весь экран под шапкой: сообщения листаются, поле ввода всегда внизу */
  main.m-chats.chx-has-code { padding: 0; max-width: none; }
  .chx.has-code .chx-thread-pane { height: calc(100vh - var(--top-h)); height: calc(100dvh - var(--top-h) - env(safe-area-inset-top)); }
}

/* ───────────── шапка списка ───────────── */
.chx-lhead { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.chx-title { display: flex; align-items: center; gap: 6px; min-width: 0; }
.chx-title h1 { margin-right: 4px; }
.chx-demo-t { min-height: 44px; }
.chx-banner { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px;
  background: var(--ochre-soft); color: var(--ink); border: 1px dashed var(--ochre); font: 600 14px/1.35 var(--f-sans); }
.chx-banner .ic { color: var(--ochre); flex: none; }
.chx-banner .btn { flex: none; }
.chx-search { min-height: 46px; padding: 10px 14px; }
.chx-filters, .chx-tagf { margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 2px; scroll-padding: 0 var(--gutter); }
.chx-filters .chip { gap: 7px; }
.chx-n { font: 600 12px/1 var(--f-sans); min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center;
  background: var(--sunk); color: var(--ink-2); margin-right: -6px; }
.chx-n.hot { background: var(--terra); color: var(--terra-ink); }
.chip[aria-pressed="true"] .chx-n { background: color-mix(in srgb, var(--paper) 18%, transparent); color: inherit; }
.chip[aria-pressed="true"] .chx-n.hot { background: var(--terra); color: var(--terra-ink); }
.chx-tagf { align-items: center; }
.chx-tagf-l { flex: none; font: 600 13px/1 var(--f-sans); color: var(--muted); padding-right: 2px; }

/* ───────────── строки списка ───────────── */
.chx-ul { list-style: none; margin: 0; padding: 0; border-radius: 20px; background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow-paper); overflow: hidden; }
.chx-ul > li + li { border-top: 1px solid var(--line); }
.chx-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; min-height: 72px; color: var(--ink); text-decoration: none;
  position: relative; transition: background-color .12s; }
.chx-row:hover { background: var(--paper-2); }
.chx-row.wait::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--terra); }
.chx-row.on { background: var(--sea-soft); }
.chx-row.on:hover { background: var(--sea-soft); }
@media (min-width: 1024px) {
  .chx-ul > li + li { border-top: 0; }
  .chx-row { border-radius: 16px; }
  .chx-row.wait::before { top: 12px; bottom: 12px; }
}
.chx-av { width: 44px; height: 44px; border-radius: 50%; flex: none; display: inline-grid; place-items: center;
  font: 650 17px/1 var(--f-sans); background: var(--sunk); color: var(--ink-2); }
.chx-av.k-asked { background: var(--terra); color: var(--terra-ink); }
.chx-av.k-waiting { background: var(--terra-soft); color: var(--terra-press); }
.chx-av.k-ai { background: var(--sea-soft); color: var(--sea); }
.chx-av.k-owner { background: var(--olive-soft); color: var(--olive); }
.chx-av.k-minor { background: var(--bougain-soft); color: var(--bougain); }
.chx-av.k-failed { background: var(--err-soft); color: var(--err); }
.chx-rm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.chx-r1 { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.chx-name { font: 650 16px/1.25 var(--f-sans); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chx-name.none, .chx-th-name.none { color: var(--muted); font-weight: 600; }
.chx-code { font: 500 12.5px/1.2 var(--f-sans); color: var(--faint); white-space: nowrap; flex: none; }
.chx-time { margin-left: auto; flex: none; font: 500 12.5px/1.2 var(--f-sans); color: var(--faint); white-space: nowrap; }
.chx-row.wait .chx-time { color: var(--terra-press); font-weight: 600; }
.chx-snip { font: 400 14.5px/1.35 var(--f-sans); color: var(--ink-2); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.chx-snip.ev { color: var(--faint); }
.chx-who { color: var(--muted); font-weight: 600; }
.chx-marks { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 3px; min-width: 0; }
.chx-marks:empty { display: none; }

/* плашки статуса и пометки */
.chx-st { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1.1 var(--f-sans); padding: 5px 9px 5px 8px; border-radius: 999px;
  white-space: nowrap; background: var(--sunk); color: var(--ink-2); max-width: 100%; }
.chx-st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.chx-st.s-asked { background: var(--terra); color: var(--terra-ink); }
.chx-st.s-waiting { background: var(--terra-soft); color: var(--terra-press); }
.chx-st.s-ai { background: var(--sea-soft); color: var(--sea); }
.chx-st.s-owner { background: var(--olive-soft); color: var(--olive); }
.chx-st.s-minor { background: var(--bougain-soft); color: var(--bougain); }
.chx-st.s-failed { background: var(--err-soft); color: var(--err); }
.chx-st.s-archived { background: var(--sunk); color: var(--faint); }
.chx-mk { display: inline-flex; align-items: center; gap: 4px; font: 600 12px/1.1 var(--f-sans); padding: 5px 8px; border-radius: 999px;
  white-space: nowrap; border: 1px solid var(--line); color: var(--ink-2); background: var(--paper); }
.chx-mk .ic { width: 13px; height: 13px; }
.chx-mk.wait { color: var(--terra-press); border-color: color-mix(in srgb, var(--terra) 35%, var(--line)); }
.chx-mk.paid { color: var(--olive); border-color: color-mix(in srgb, var(--olive) 35%, var(--line)); background: var(--olive-soft); }
.chx-mk.order { color: var(--sea); border-color: color-mix(in srgb, var(--sea) 30%, var(--line)); }
.chx-mk.draft { color: var(--faint); border-style: dashed; }
.chx-mk.notes { color: var(--ochre); border-color: color-mix(in srgb, var(--ochre) 40%, var(--line)); }
.chx-tag { display: inline-flex; align-items: center; font: 600 12px/1.1 var(--f-sans); padding: 5px 9px; border-radius: 8px;
  background: var(--ochre-soft); color: var(--ink-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chx-tag.more { background: var(--sunk); color: var(--muted); }
.chx-more { display: flex; margin: 12px auto 0; }
.chx-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 16px; }
.chx-empty .ic { color: var(--faint); }

/* «не подключено» */
.chx-off { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px 18px; }
.chx-off h3 { font: 650 18px/1.3 var(--f-sans); }
.chx-off p { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.chx-off p.muted { color: var(--muted); font-size: 14px; }
.chx-off-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--sunk); color: var(--muted); }

/* заготовки на время загрузки */
.chx-skel, .chx-skel-row .av { display: block; background: var(--sunk); border-radius: 8px; position: relative; overflow: hidden; }
.chx-skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--paper) 55%, transparent), transparent);
  animation: chx-shine 1.4s ease-in-out infinite; }
@keyframes chx-shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .chx-skel::after { animation: none; display: none; } }
.chx-skel-list { display: flex; flex-direction: column; gap: 2px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); padding: 4px 0; }
.chx-skel-row { display: flex; gap: 12px; padding: 12px 14px; }
.chx-skel.av { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.chx-skel-col { flex: 1; display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.chx-skel.l1 { height: 14px; width: 55%; }
.chx-skel.l2 { height: 12px; width: 85%; }
.chx-skel.bub { height: 44px; width: 62%; border-radius: 18px; }
.chx-skel.bub.r { align-self: flex-end; width: 50%; }
.chx-skel-thread .chx-th-head { display: flex; flex-direction: column; gap: 8px; }

/* ───────────── переписка ───────────── */
.chx-thread-pane { display: flex; flex-direction: column; background: var(--bg); }
.chx-thread { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chx-pick { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); padding: 24px; text-align: center; }
.chx-pick .ic { color: var(--faint); }
.chx-gone { padding: 12px 16px; }
.chx-gone .chx-off { margin-top: 6px; }
.chx-back { margin: 0 0 4px -4px; }

.chx-th-head { flex: none; display: flex; flex-direction: column; gap: 8px; padding: 10px 14px 12px; background: var(--paper);
  border-bottom: 1px solid var(--line); }
.chx-th-r1 { display: flex; align-items: center; gap: 10px; min-width: 0; }
.chx-th-back { margin-left: -8px; margin-right: -6px; }
.chx-th-r1 .chx-av { width: 40px; height: 40px; font-size: 16px; }
.chx-th-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.chx-th-name { font: 700 18px/1.25 var(--f-sans); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chx-th-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.chx-tg { display: inline-flex; align-items: center; gap: 4px; font: 600 13.5px/1.2 var(--f-sans); color: var(--sea); text-decoration: none;
  min-height: 28px; max-width: 100%; min-width: 0; }
.chx-tg span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.chx-tg:hover { text-decoration: underline; }
.chx-th-r2 { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chx-topic { font: 400 14px/1.4 var(--f-sans); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chx-topic b { font-weight: 600; color: var(--muted); }
.chx-th-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chx-tag-edit { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 10px; border-radius: 8px; border: 1px dashed var(--line-2);
  background: transparent; color: var(--muted); font: 600 12.5px/1 var(--f-sans); position: relative; }
.chx-tag-edit::after { content: ""; position: absolute; inset: -7px -2px; }    /* палец попадает с запасом до 44 px */
.chx-tag-edit:hover { color: var(--ink); border-color: var(--faint); }
.chx-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.chx-acts .btn { flex: 0 1 auto; }
.btn-paid { background: var(--olive-soft); border-color: transparent; color: var(--olive); }
.btn-paid:hover { background: color-mix(in srgb, var(--olive-soft) 80%, var(--olive) 14%); border-color: transparent; }
.chx-demo-line { display: flex; align-items: center; gap: 6px; font: 600 13.5px/1.3 var(--f-sans); color: var(--ochre); }

/* лента сообщений */
.chx-msgs { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px 14px 14px; display: flex; flex-direction: column;
  -webkit-overflow-scrolling: touch; }
.chx-msgs:focus-visible { outline-offset: -3px; }
.chx-entries, .chx-pend { display: flex; flex-direction: column; gap: 8px; }
.chx-pend:not(:empty) { margin-top: 8px; }
.chx-older { display: flex; justify-content: center; }
.chx-older:not(:empty) { margin-bottom: 6px; }
.chx-day { display: flex; justify-content: center; margin: 10px 0 2px; }
.chx-day span { font: 600 12px/1 var(--f-sans); color: var(--muted); background: var(--paper); border: 1px solid var(--line); padding: 6px 11px; border-radius: 999px; }
.chx-m { display: flex; flex-direction: column; max-width: min(84%, 600px); min-width: 0; }
.chx-m.person { align-self: flex-start; align-items: flex-start; }
.chx-m.bot, .chx-m.owner { align-self: flex-end; align-items: flex-end; }
.chx-b { padding: 9px 13px; border-radius: 18px; font: 400 15.5px/1.45 var(--f-sans); white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word;
  max-width: 100%; }
.chx-b.person { background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 6px; color: var(--ink); }
.chx-b.bot { background: var(--sunk); color: var(--ink-2); border-bottom-right-radius: 6px; }
.chx-b.owner { background: var(--terra); color: var(--terra-ink); border-bottom-right-radius: 6px; }
.chx-mt { font: 500 11.5px/1.3 var(--f-sans); color: var(--faint); margin: 3px 6px 0; }
.chx-m.owner .chx-mt { color: var(--terra-press); }
.chx-ev { align-self: center; max-width: 92%; text-align: center; font: 500 12.5px/1.4 var(--f-sans); color: var(--faint); margin: 2px 0; overflow-wrap: anywhere; }
.chx-ev-t { opacity: .85; }
/* отправка «в пути» */
.chx-m.pending .chx-b { opacity: .78; }
.chx-m.pending.s-ok .chx-b { opacity: 1; }
.chx-m.pending.s-fail .chx-b { background: var(--err-soft); color: var(--ink); opacity: 1; }
.chx-ps { display: flex; align-items: center; gap: 2px 8px; flex-wrap: wrap; justify-content: flex-end; text-align: right; max-width: 100%; }
.chx-ps-t { min-width: 0; }
.chx-ps-t .ic, .chx-ps-t .spin { vertical-align: -2px; margin-right: 5px; }
.chx-ps .spin { width: 12px; height: 12px; border-width: 2px; display: inline-block; }
.chx-m.s-ok .chx-ps { color: var(--olive); }
.chx-m.s-fail .chx-ps { color: var(--err); }
.chx-m.s-unsure .chx-ps { color: var(--ochre); }
.chx-again, .chx-resend, .chx-hide { min-height: 32px; font-size: 12.5px; padding: 0 4px; }
.chx-ps-t b { font-weight: 700; }
/* ответ хозяйки, который человек не получил (заблокировал бота) */
.chx-m.owner.undeliv .chx-b { background: var(--err-soft); color: var(--ink); }
.chx-mt.chx-undeliv { color: var(--err); font-weight: 600; }
.chx-m.owner .chx-mt.chx-undeliv { color: var(--err); }
.chx-undeliv .ic { width: 13px; height: 13px; vertical-align: -2px; margin-right: 4px; }
/* метка исходящего ответа в строке списка */
.chx-mk.out.s-sending { color: var(--terra-press); border-color: color-mix(in srgb, var(--terra) 35%, var(--line)); }
.chx-mk.out.s-sending .spin { width: 11px; height: 11px; border-width: 2px; }
.chx-mk.out.s-fail { color: var(--err); border-color: color-mix(in srgb, var(--err) 45%, var(--line)); background: var(--err-soft); }
.chx-mk.out.s-unsure { color: var(--ochre); border-color: color-mix(in srgb, var(--ochre) 45%, var(--line)); }

/* внутренняя заметка — жёлтая карточка, отдельно от переписки */
.chx-int { align-self: stretch; margin: 4px 0; padding: 8px 6px 10px 12px; border-radius: 14px; background: var(--ochre-soft);
  border: 1px dashed var(--ochre); }
.chx-int-h { display: flex; align-items: center; gap: 6px; color: var(--ochre); }
.chx-int-h b { font: 700 13px/1.25 var(--f-sans); }
.chx-int-del { width: 40px; height: 40px; color: var(--muted); margin: -8px 0 -6px; }
.chx-int-del:hover { color: var(--err); background: color-mix(in srgb, var(--ochre) 14%, transparent); }
.chx-int-t { font: 400 15px/1.45 var(--f-sans); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; margin: 2px 6px 0 0; }
.chx-int-m { font: 500 12px/1.3 var(--f-sans); color: var(--muted); margin-top: 4px; }

/* ───────────── поле ввода ───────────── */
.chx-comp { flex: none; display: flex; flex-direction: column; gap: 6px; padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1px solid var(--line); }
.chx-seg { align-self: stretch; }
.chx-seg > button { font-size: 14px; }
.chx-seg > button[aria-pressed="true"] { color: var(--terra-press); }
.chx-comp.mode-note .chx-seg > button[aria-pressed="true"] { color: var(--ochre); background: var(--ochre-soft); box-shadow: 0 0 0 1px var(--ochre); }
.chx-mode { font: 400 13px/1.3 var(--f-sans); color: var(--muted); padding: 0 4px; }
.chx-mode b { font-weight: 700; color: var(--terra-press); }
.chx-mode .chx-to { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.chx-seg > button:disabled { opacity: .55; cursor: not-allowed; }
.chx-comp.mode-note .chx-mode b { color: var(--ochre); }
.chx-ta { min-height: 48px; max-height: 40vh; resize: none; padding: 11px 14px; font-size: 16px; line-height: 1.4; overflow-wrap: anywhere; }
.chx-comp.mode-note .chx-ta { background: var(--ochre-soft); border: 1.5px dashed var(--ochre); }
.chx-comp.mode-note .chx-ta:focus { border-color: var(--ochre); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ochre) 22%, transparent); }
.chx-send-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.chx-count { font: 600 12.5px/1.2 var(--f-sans); color: var(--muted); }
.chx-count.over { color: var(--err); }
.chx-kbd { font: 500 12px/1 var(--f-sans); color: var(--faint); white-space: nowrap; }
.chx-send { min-height: 46px; padding: 0 18px; max-width: 100%; flex: none; }
.chx-send .ic { width: 18px; height: 18px; }
.btn-note { background: var(--ochre-soft); border: 1.5px solid var(--ochre); color: var(--ink); }
.btn-note .ic { color: var(--ochre); }
.btn-note:hover { background: color-mix(in srgb, var(--ochre-soft) 75%, var(--ochre) 18%); border-color: var(--ochre); }
.chx-comp-demo { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px; background: var(--ochre-soft); border-top: 1px dashed var(--ochre); }
.chx-comp-demo p { flex: 1 1 220px; display: flex; gap: 8px; align-items: flex-start; font: 500 14px/1.4 var(--f-sans); color: var(--ink); }
.chx-comp-demo p .ic { color: var(--ochre); margin-top: 1px; }
@media (max-width: 359.98px) {
  .chx-seg > button { font-size: 12.5px; gap: 4px; padding: 0 4px; }
  .chx-seg > button .ic { display: none; }
  .chx-send { padding: 0 14px; }
}

/* ───────────── окна: пометки, удаление ───────────── */
.chx-tag-chips { gap: 8px; }
.chx-tag-add { display: flex; gap: 8px; align-items: center; }
.chx-tag-add .input { flex: 1; min-width: 0; }
.chx-tag-add .btn { flex: none; }
.chx-err { font: 500 14px/1.35 var(--f-sans); color: var(--err); }
.chx-del-who { font: 500 16px/1.4 var(--f-sans); margin-bottom: 10px; overflow-wrap: anywhere; }
.chx-del .note { font-size: 15px; }
/* подтверждение удаления: красная — выше, внизу (где был палец на «Удалить чат») — «Отмена» */
.chx-del { display: flex; flex-direction: column; gap: 10px; }
.chx-del .chx-del-go { margin-top: 6px; }
.chx-del .chx-del-go:disabled { opacity: .5; }
.chx-del .chx-del-no { margin-top: 18px; }
.chx-blocked .btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
/* на узком экране длинная кнопка переносится, а не обрезается краем */
.chx-blocked .btns .btn { white-space: normal; max-width: 100%; padding: 8px 20px; line-height: 1.25; text-align: center; }

/* ───────────── компьютер от 1024 px: две колонки (в конце файла — перекрывает общие правила выше) ───────────── */
@media (min-width: 1024px) {
  main.m-chats { padding-bottom: 20px; }
  .chx { display: grid; grid-template-columns: 384px minmax(0, 1fr); gap: 20px; align-items: stretch;
    height: calc(100vh - var(--top-h) - 48px); height: calc(100dvh - var(--top-h) - env(safe-area-inset-top) - 48px); min-height: 520px; }
  .chx-list-pane { overflow-y: auto; overscroll-behavior: contain; border-radius: var(--r-card); background: var(--paper);
    border: 1px solid var(--line); box-shadow: var(--shadow-paper); }
  .chx-lhead { position: sticky; top: 0; z-index: 2; background: var(--paper); padding: 14px 14px 8px; border-bottom: 1px solid var(--line); }
  .chx-home { display: none; }
  .chx-thread-pane { border-radius: var(--r-card); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-paper);
    overflow: hidden; display: flex; flex-direction: column; }
  .chx-th-back { display: none; }
  .chx-back { display: none; }
  .chx-ul { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
  .chx-rows { padding: 4px 6px 10px; }
  .chx-filters, .chx-tagf { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
}
