/* Экран «Рассылки» (префикс bc-). Только токены; тёмная тема работает сама. */

/* ── раскладка: одна колонка; статусы — строкой чипов над таблицей ──────────────── */
.bc-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.bc-main .ph { margin-bottom: 4px; }
.bc-main > div, .bc-main > nav { min-width: 0; }
.bc-stl { margin-top: -4px; }
.bc-stl .chips { flex-wrap: wrap; }

/* ── сводка одной тихой строкой под шапкой (вместо трёх плиток): без рамки, 13 px, каждая часть — ссылка ── */
#bc-strip:empty { display: none; }
.bc-main > #bc-strip { margin-top: -14px; }
.bc-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 8px; margin: 0; font-size: 13px; line-height: 20px; color: var(--mut); }
.bc-strip b { font-weight: 640; color: var(--ink); }
.bc-strip-p { display: inline; }
.bc-strip-a { display: inline-flex; align-items: center; gap: 2px; min-width: 0; max-width: 100%; padding: 2px 4px; margin: 0 -2px; border: 0; border-radius: 7px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.bc-strip-a > span { min-width: 0; }
.bc-strip-a > svg { flex: 0 0 auto; color: var(--mut2); }
.bc-strip-a:hover { background: var(--l3); color: var(--ink); }
.bc-strip-a .sig { font-size: 13px; }
.bc-strip-sep { font-style: normal; color: var(--ink-off); }

/* ── полоса поиска ─────────────────────────────────────────────────────────────── */
.bc-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bc-tools .search { flex: 1 1 280px; max-width: 440px; }
.bc-tools #bc-chf, .bc-tools #bc-reset { display: inline-flex; }
.bc-vw { display: inline-flex; align-items: center; gap: 8px; }

/* ── таблица: одна строка на рассылку (48–52 px), как у respond.io ─────────────────── */
.bc-tbl { table-layout: fixed; min-width: 700px; }
/* r4-fix (K4-25/K5-С5): колонке «Рассылка» — всё, что осталось; числовым и «Когда» — по содержимому */
.bc-tbl .bc-c-st { width: 128px; }
.bc-tbl .bc-c-aud { width: 168px; }
.bc-tbl .bc-c-n { width: 76px; }
.bc-tbl .bc-c-rep { width: 100px; }
.bc-tbl .bc-c-when { width: 136px; }
.bc-tbl col.bc-c-rd { width: 90px; }
.bc-tbl .bc-c-x { width: 36px; }
.bc-tbl thead th { height: 36px; padding: 0 10px; white-space: nowrap; }
.bc-tbl thead th:first-child, .bc-tbl tbody td:first-child { padding-left: 18px; }
.bc-tbl td { height: 50px; padding: 0 10px; vertical-align: middle; }
.bc-tbl td.r, .bc-tbl th.r { text-align: right; }
.bc-row:focus-visible { outline-offset: -2px; border-radius: 0; }
.bc-th-q { display: inline-flex; align-items: center; gap: 4px; cursor: help; }
.bc-th-q > svg { color: var(--mut2); }
.bc-nm { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bc-nmw { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bc-nmw > .ch { flex: 0 0 auto; }
/* название не режем посреди слова: длинное переносится на вторую строку (по словам), дальше — многоточие */
.bc-nm1 { flex: 1 1 auto; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; overflow-wrap: normal; word-break: normal; font-size: 13.5px; font-weight: 600; line-height: 18px; }
.bc-nm b { font-size: 13.5px; font-weight: 600; line-height: 19px; }
.bc-nm em { font-style: normal; font-size: 12px; line-height: 17px; color: var(--mut2); }
.bc-cl2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.bc-stc .sig { max-width: 100%; white-space: nowrap; }
.bc-tbl td.bc-stc .sig > span { overflow-wrap: normal; word-break: normal; white-space: nowrap; }
/* r4-fix (K3-10): значок вместо глифа (повторяется, идёт отправка, на паузе) занимает столько же, сколько глиф 7px —
   слова статусов начинаются с одной линии */
.bc-stc .sig > svg { width: 13px; height: 13px; margin: 0 -3px; }
.bc-aud { display: flex; align-items: baseline; gap: 6px; min-width: 0; font-size: 13px; color: var(--ink); }
/* «Кому» тоже не режем посреди слова: до двух строк по словам */
.bc-aud { align-items: center; }
.bc-aud-t { min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; font-size: 12.5px; line-height: 16px; }
.bc-aud em { flex: 0 0 auto; font-style: normal; font-size: 12px; font-weight: 600; color: var(--mut); }
.bc-m { line-height: 1.25; white-space: nowrap; }
.bc-m b { font-size: 13.5px; font-weight: 620; color: var(--ink); }
.bc-num { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.bc-num .prog { width: 44px; }
.bc-rp-n { flex-direction: row; align-items: center; gap: 8px; }
.bc-rp-n .sig { font-size: 12px; }
.bc-when-c { white-space: nowrap; font-size: 12.5px; color: var(--mut); }
.bc-when-c { overflow: hidden; text-overflow: ellipsis; }
.bc-when-c > svg { width: 13px; height: 13px; margin-right: 5px; vertical-align: -2px; color: var(--acc); }
.bc-dash { color: var(--ink-off); }
.bc-tbl td.c { text-align: center; }
.bc-tbl td.c .av, .bc-tbl td.c .ib { margin: 0 auto; }
.bc-hint { display: flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 12px; color: var(--mut2); }
.bc-empty { padding: 8px 0; }
/* узкое место: прячем «Кому» (в подсказке названия и в отчёте); «Прочитали» с r32 нет совсем.
   r16: слева теперь колонка агентов — считаем по ширине самой страницы (контейнер bcm), а не окна: названию — от 220 px */
.bc-main { container: bcm / inline-size; }
@container bcm (max-width: 960px) {
  .bc-tbl .bc-c-aud { display: none; }
  .bc-tbl .bc-c-st { width: 124px; }
  .bc-tbl .bc-c-n { width: 72px; }
  .bc-tbl .bc-c-rep { width: 90px; }
  .bc-tbl .bc-c-when { width: 130px; }
  .bc-tbl thead th { padding: 0 8px; }
  .bc-tbl td { padding: 0 8px; }
}

/* ── r16: рассылки по ИИ-агентам — колонка слева (вид «Воронки»: .pv, .pv-rail, .pv-r… из deals.css) ── */
.bc-rail-all { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 11px; background: var(--l2); box-shadow: inset 0 0 0 1px var(--line); color: var(--acc); }
.pv-r.is-on .bc-rail-all { background: var(--acc-soft); box-shadow: inset 0 0 0 1px var(--acc-soft-brd); }
[data-theme="light"] .bc-rail-all { background: #fff; box-shadow: inset 0 0 0 1px #ebe4fb, 0 4px 10px -8px rgba(91, 47, 191, .45); }
.bc-rft { justify-content: flex-end; }
.pv[data-vc="1"] .bc-rft .grow { display: none; }
/* заголовок у выбранного агента: лицо и «Рассылки · имя» */
.bc-hd-t { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.bc-hd-f { display: inline-flex; flex: 0 0 auto; }
/* «Все»: лицо агента перед каналом в строке */
.bc-ag { display: inline-flex; flex: 0 0 auto; }
.bc-tbl.is-all .bc-nmw { gap: 8px; }
.bc-tbl.is-all .bc-nmw > .ch { margin-right: 2px; }
/* мастер: «От агента» справа от шагов */
.bc-wz-steps { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.bc-wz-steps > .bc-steps { flex: 1 1 auto; min-width: 0; }
.bc-wz-ag { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; min-width: 0; }
.bc-wz-agl { font-size: 12px; font-weight: 600; color: var(--mut2); white-space: nowrap; }
.bc-wz-agb { max-width: 240px; gap: 8px; }
.bc-wz-agb > .ell { min-width: 0; }
.bc-kv-ag { display: inline-flex; align-items: center; gap: 8px; }
/* канал не подключён к агенту — «ждём»-янтарь в глифе (красного нет), текст обычный */
.bc-reply.is-warn > svg:first-child { color: var(--sig-wait); }
/* выбор людей (Люди · Исключить): ФИО первой строкой, компания и каналы — второй, ничего не обрезаем */
.choose.bc-ppick .mi { display: grid; grid-template-columns: 22px minmax(0, 1fr) 16px; grid-template-rows: auto auto; column-gap: 10px; row-gap: 1px; align-items: center; padding-top: 6px; padding-bottom: 6px; }
.choose.bc-ppick .mi > .av { grid-column: 1; grid-row: 1 / span 2; }
.choose.bc-ppick .mi-l { grid-column: 2; grid-row: 1; white-space: normal; overflow: visible; overflow-wrap: break-word; line-height: 18px; }
.choose.bc-ppick .mi-h { grid-column: 2; grid-row: 2; max-width: none; white-space: normal; overflow: visible; line-height: 16px; }
.choose.bc-ppick .mi-c { grid-column: 3; grid-row: 1 / span 2; }

/* ── календарь ─────────────────────────────────────────────────────────────────── */
.bc-cal-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.bc-cal-h .row { gap: 6px; }
.bc-cal-h .ib:disabled { opacity: .35; pointer-events: none; }
.bc-cal-t { min-width: 150px; text-align: center; font-size: 17px; font-weight: 650; letter-spacing: -.012em; }
.bc-nodate { display: inline-flex; align-items: center; gap: 7px; height: 30px; margin: -4px 0 12px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--acc); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.bc-nodate:hover { background: var(--acc-soft); }
.bc-nodate > svg:first-child { color: var(--mut2); }
.bc-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--line); }
.bc-wd { padding: 8px 10px; background: var(--l2); font-size: 11px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--mut2); }
.bc-day { display: flex; flex-direction: column; gap: 4px; min-width: 0; min-height: 118px; padding: 6px 6px 8px; background: var(--l1); }
.bc-day[data-act] { cursor: pointer; }
.bc-day[data-act]:hover { background: var(--acc-row); }
.bc-day.is-out { background: var(--l3); }
.bc-day.is-out .bc-day-n { color: var(--ink-off); }
.bc-day-n { align-self: flex-start; display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--mut); }
.bc-day.is-past .bc-day-n { color: var(--mut2); }
.bc-day.is-today .bc-day-n { background: var(--acc); color: var(--l1); }
/* чип отправки: белый, статус — глифом перед временем (вариант A), без цветных заливок */
.bc-chip { display: flex; align-items: flex-start; gap: 6px; width: 100%; min-width: 0; padding: 5px 6px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--l1); color: var(--ink); text-align: left; cursor: pointer; transition: border-color .14s; }
.bc-chip:hover { border-color: var(--line-3); }
.bc-chip .ch { flex: 0 0 auto; margin-top: 1px; }
.bc-chip-b { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.bc-chip-b b { font-size: 11.5px; font-weight: 580; line-height: 15px; }
.bc-chip-t { display: flex; min-width: 0; }
.bc-chip-t .sig { font-size: 10.5px; line-height: 14px; gap: 5px; font-weight: 650; color: var(--sig-ink); }
.bc-chip-t .sig > svg { width: 11px; height: 11px; }
.bc-leg { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.bc-more { align-self: flex-start; height: 22px; padding: 0 8px; border: 0; border-radius: 6px; background: none; color: var(--acc); font-size: 11.5px; font-weight: 600; cursor: pointer; }
.bc-more:hover { background: var(--acc-soft); }


/* ═══ мастер ═════════════════════════════════════════════════════════════════════ */
.bc-wz { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.sb:has(> .bc-wz) { overflow: hidden; }
.bc-wz-steps { flex: 0 0 auto; padding: 16px 24px 14px; border-bottom: 1px solid var(--line); background: var(--l1); }
.bc-wz-body { flex: 1 1 auto; min-height: 0; overflow: auto; scrollbar-gutter: stable; padding: 22px 24px 18px; }
.bc-steps .step:not(:disabled) { cursor: pointer; }
.bc-steps .step:disabled { cursor: default; }
.bc-wz-cols { display: grid; grid-template-columns: minmax(0, 1fr) 332px; gap: 24px; align-items: start; }
.bc-wz-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.bc-wz-aside { position: sticky; top: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bc-sec { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bc-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; min-height: 30px; }
.bc-fh { min-width: 0; margin: 0 0 0 4px; font-size: 12.5px; }
.bc-fh.is-bad { color: var(--zav); font-weight: 560; }
@media (max-width: 960px) {
  .bc-wz-cols { grid-template-columns: minmax(0, 1fr); }
  .bc-wz-aside { position: static; }
}

/* сегменты-карточки */
.bc-segs { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 10px; }
.bc-sg { position: relative; display: flex; align-items: flex-start; gap: 11px; min-width: 0; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--l1); text-align: left; cursor: pointer; transition: border-color .14s, background .14s; }
.bc-sg:hover { border-color: var(--line-3); }
.bc-sg.is-on { border-color: var(--acc-soft-brd); background: var(--acc-row); box-shadow: inset 0 0 0 1px var(--acc-soft-brd); }
.bc-sg.is-zero { opacity: .62; }
.bc-sg.is-off { opacity: .62; cursor: default; background: var(--l2); }
.bc-sg.is-off:hover { border-color: var(--line); }
.bc-sg-ic { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; background: var(--icon-bg); border: 1px solid var(--icon-border); color: var(--icon); }
.bc-sg.is-on .bc-sg-ic { background: var(--acc-soft); border-color: var(--acc-soft-brd); color: var(--acc); }
.bc-sg-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.bc-sg-t b { font-size: 13.5px; font-weight: 600; line-height: 18px; overflow-wrap: anywhere; }
.bc-sg-t > i { font-style: normal; font-size: 12px; line-height: 16px; color: var(--mut2); }
.bc-sg-t .pill { align-self: flex-start; margin-top: 5px; }
.bc-sg-n { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-width: 28px; height: 22px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--l2); font-size: 12px; font-weight: 650; color: var(--mut); }
.bc-sg.is-on .bc-sg-n { background: var(--l1); border-color: var(--acc-soft-brd); color: var(--acc); }

/* конструктор условий */
.bc-conds { display: flex; flex-direction: column; gap: 10px; }
.bc-cond { display: grid; grid-template-columns: 210px minmax(0, 1fr) 28px; gap: 8px; align-items: center; }
.bc-cond .bc-cond-v { width: 100%; justify-content: flex-start; }
.bc-cond .bc-cond-v > .ell { flex: 1 1 auto; text-align: left; }
.bc-cond .bc-cond-v > svg:last-child { margin-left: auto; }
.bc-cond-days { display: flex; align-items: center; gap: 8px; }
.bc-cond-days .in { width: 110px; }
.bc-cond-days em { font-style: normal; font-size: 12.5px; color: var(--mut2); }
.bc-conds-f { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
@media (max-width: 700px) { .bc-cond { grid-template-columns: minmax(0, 1fr) 28px; } .bc-cond .sel { grid-column: 1 / -1; } }

/* карточка «Кто получит» и «Как пойдёт отправка» */
.bc-count .card-b { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.bc-count-n { display: flex; align-items: baseline; gap: 10px; }
.bc-count-n span { font-size: 15px; font-weight: 560; color: var(--mut); }
.bc-count-n b { font-size: 38px; line-height: 1; font-weight: 650; letter-spacing: -.03em; color: var(--acc); }
.bc-count-n.is-zero b { color: var(--zav); }
.bc-count-0 { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 11px; border: 1px dashed var(--line-3); background: var(--l2); font-size: 12.5px; line-height: 18px; color: var(--mut); }
.bc-count-0 > svg { flex: 0 0 auto; margin-top: 1px; color: var(--acc); }
.bc-ex-h { display: block; font-size: 11px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--mut2); }
.bc-ex ul { display: flex; flex-direction: column; margin-top: 4px; }
.bc-ex li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--mut); }
.bc-ex li:last-child { border-bottom: 0; }
.bc-ex li span { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.bc-ex li span > svg { flex: 0 0 auto; color: var(--mut2); }   /* причины — контурные приглушённые, не красные */
.bc-ex li b { font-weight: 650; color: var(--ink); }
.bc-count-n em { margin-left: auto; font-style: normal; font-size: 12.5px; font-weight: 560; color: var(--mut2); }
.bc-count .btn { align-self: flex-start; }
.bc-count-n2 { display: flex; gap: 7px; font-size: 12px; line-height: 17px; }
.bc-count-n2 > svg { flex: 0 0 auto; margin-top: 2px; color: var(--mut2); }
/* «Дойдёт по каналам»: факты; выбрать канал — ссылкой */
.bc-reach ul { display: flex; flex-direction: column; margin-top: 4px; }
.bc-reach li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--mut); }
.bc-reach li:last-child { border-bottom: 0; }
.bc-reach li b { font-weight: 650; color: var(--ink); text-align: right; min-width: 22px; }
.bc-reach li.is-on span { color: var(--ink); font-weight: 600; }
.bc-reach li em { font-style: normal; font-size: 11.5px; color: var(--mut2); text-align: right; }
.bc-reach li .link { justify-self: end; height: auto; padding: 0; font-size: 12px; white-space: nowrap; }
/* шаг 2 и 3: справочные строки со ссылкой «Изменить» */
.bc-reply, .bc-quiet { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; margin: 2px 0 0; font-size: 12.5px; line-height: 18px; color: var(--mut); }
.bc-reply > svg, .bc-quiet > svg { flex: 0 0 auto; margin-top: 2px; color: var(--mut2); }
.bc-reply > span, .bc-quiet > span { flex: 1 1 260px; min-width: 0; }
.bc-reply .link, .bc-quiet .link { height: auto; padding: 0; font-size: 12.5px; white-space: nowrap; }
.bc-tzl { display: flex; flex-direction: column; margin-top: 4px; }
.bc-tzl li.is-held b { color: var(--ink); }
.bc-tzl li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--mut); }
.bc-tzl li:last-child { border-bottom: 0; }
.bc-tzl li b { font-weight: 650; color: var(--ink); }
.bc-tzl li em { font-style: normal; font-size: 11.5px; color: var(--mut2); }
.bc-wz .kv > b small, .bc-rp .kv > b small { display: block; margin-top: 1px; font-size: 11.5px; font-weight: 450; color: var(--mut2); }
.bc-wz .kv > b, .bc-rp .kv > b { font-size: 12.5px; }

/* шаг 2: канал, шаблоны, текст */
.bc-chs { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 10px; }
.bc-chc { align-items: center; gap: 10px; padding: 10px 12px; }
.bc-chc .check-b { margin-top: 0; }
.bc-chc-ic { display: inline-flex; flex: 0 0 auto; }
.bc-chc .check-t { min-width: 0; flex: 1 1 auto; }
.bc-chc .check-t b { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bc-chc .check-t i { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-chc.is-off { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--line-2); background: var(--l2); }
.bc-chc.is-off .check-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; opacity: .85; }
.bc-chc.is-off .check-t b { font-size: 13px; font-weight: 600; }
.bc-chc.is-off .check-t i { font-style: normal; font-size: 12px; color: var(--mut2); }
.bc-tpls { display: flex; flex-direction: column; gap: 8px; }
.bc-tpl .check-t { min-width: 0; flex: 1 1 auto; }
.bc-tpl .check-t b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bc-tpl-x { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bc-tpl-why { color: var(--mut); }
.bc-tpl.is-off { opacity: .72; cursor: not-allowed; }
.bc-ta { min-height: 170px; font-size: 13.5px; line-height: 21px; }
.bc-cnt { font-size: 12px; color: var(--mut2); }
.bc-cnt .is-bad { color: var(--ink); font-weight: 600; }
.bc-vars { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bc-vars .hint { margin-right: 4px; }
.bc-files { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bc-file { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; height: 32px; padding: 0 4px 0 10px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--l1); font-size: 12.5px; }
.bc-file > svg { color: var(--icon); flex: 0 0 auto; }
.bc-file .ell { max-width: 220px; }
.bc-file em { font-style: normal; font-size: 11.5px; color: var(--mut2); }

/* предпросмотр: телефон и письмо */
.bc-prev-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bc-prev-h .dd { max-width: 210px; }
.bc-prev-h .dd .ell { max-width: 130px; }
.bc-prev-n { text-align: center; }
.bc-prev-w { margin-top: 12px; }
.bc-phone { position: relative; display: flex; flex-direction: column; width: min(296px, 100%); min-height: 330px; max-height: min(560px, calc(100vh - 340px)); margin: 0 auto; overflow: hidden;
  border-radius: 32px; border: 8px solid var(--line-2); background: var(--l1); box-shadow: 0 0 0 1px var(--line-3), var(--sh-pop); }
.bc-ph-bar { display: flex; align-items: center; justify-content: center; height: 18px; flex: 0 0 auto; background: var(--l2); }
.bc-ph-bar i { width: 64px; height: 5px; border-radius: 999px; background: var(--line-3); }
.bc-ph-head, .bc-mail-h { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; padding: 9px 14px; background: var(--l2); border-bottom: 1px solid var(--line); }
.bc-ph-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.bc-ph-t b { font-size: 13px; font-weight: 620; }
.bc-ph-t em { font-style: normal; font-size: 11.5px; color: var(--mut2); }
.bc-ph-av { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--acc-soft-brd); background: var(--acc-soft); color: var(--acc); font-size: 11px; font-weight: 650; }
.bc-ph-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 8px; overflow: auto; padding: 12px; background: var(--l0); }
.bc-ph-day { align-self: center; padding: 2px 9px; border-radius: 999px; background: var(--l2); font-size: 10.5px; color: var(--mut2); }
.bc-bub { position: relative; align-self: flex-start; max-width: 94%; padding: 8px 10px 19px; border-radius: 4px 14px 14px 14px; border: 1px solid var(--line); background: var(--bubble-in); font-size: 13px; line-height: 19px; color: var(--ink); overflow-wrap: anywhere; }
.bc-bub time { position: absolute; right: 9px; bottom: 4px; font-size: 10px; color: var(--mut2); }
.bc-bub-tpl { display: block; margin-bottom: 4px; font-size: 10.5px; font-weight: 650; letter-spacing: .04em; color: var(--vyg); }
.bc-ph-foot { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; padding: 9px 14px; border-top: 1px solid var(--line); background: var(--l1); font-size: 12.5px; color: var(--ink-off); }
.bc-ph-empty { color: var(--ink-off); }
.bc-sub { padding: 0 3px; border-radius: 4px; background: var(--acc-soft); color: var(--acc); font-weight: 560; }
.bc-var-x { padding: 0 3px; border-radius: 4px; background: var(--zav-soft); color: var(--zav); }
.bc-ph-files { display: flex; flex-direction: column; gap: 5px; margin-top: 7px; }
.bc-ph-file { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--l2); font-size: 12px; }
.bc-ph-file > svg { flex: 0 0 auto; color: var(--icon); }
.bc-ph-file .ell { flex: 1 1 auto; }
.bc-ph-file em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--mut2); }
.bc-mail .bc-ph-t em { max-width: 170px; }
.bc-mail-s { flex: 0 0 auto; padding: 12px 14px 4px; font-size: 14.5px; font-weight: 650; line-height: 20px; }
.bc-mail-b { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 8px 14px 12px; font-size: 13px; line-height: 20px; }
.bc-mail-sig { margin-top: 12px; font-size: 12.5px; line-height: 18px; color: var(--mut); }
.bc-mail-f { flex: 0 0 auto; padding: 9px 14px; border-top: 1px solid var(--line); background: var(--l2); font-size: 11px; line-height: 15px; color: var(--mut2); }
.bc-mail-f u { color: var(--acc); }
.bc-stop { display: block; margin-top: 8px; font-size: 12px; line-height: 17px; color: var(--mut2); }
/* в отчёте и карточке телефон не прокручивается сам — прокручивается окно */
.bc-prev-w .bc-phone { max-height: none; }

/* шаг 3: время */
.bc-when { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bc-wc .check-t b { display: flex; align-items: center; gap: 7px; }
.bc-wc .check-t b > svg { color: var(--acc); }
@media (max-width: 700px) { .bc-when { grid-template-columns: minmax(0, 1fr); } }

/* шаг 4: проверка */
.bc-allok { display: flex; align-items: center; gap: 9px; font-size: 13px; line-height: 19px; color: var(--mut); }
.bc-allok > svg { flex: 0 0 auto; width: 22px; height: 22px; padding: 4px; border-radius: 999px; border: 1px solid var(--vyg-brd); background: var(--vyg-soft); color: var(--vyg); }
.bc-checks { display: flex; flex-direction: column; gap: 8px; }
.bc-checks li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--l1); }
.bc-chk-ic { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px; border-radius: 999px; border: 1px solid var(--vyg-brd); background: var(--vyg-soft); color: var(--vyg); }
.bc-checks li[data-s="warn"] .bc-chk-ic { border-color: var(--ryn-brd); background: var(--ryn-soft); color: var(--ryn); }
.bc-checks li[data-s="bad"] .bc-chk-ic { border-color: var(--zav-brd); background: var(--zav-soft); color: var(--zav); }
.bc-checks li b { display: block; font-size: 13px; font-weight: 600; line-height: 18px; }
.bc-checks li i { display: block; font-style: normal; font-size: 12px; line-height: 17px; color: var(--mut2); }
.bc-test { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ═══ отчёт и карточка рассылки — r8 (22.10, BRIEF-r8 §2.5): тело — тёмное ядро (css/core.css), как ядро «Баланса» ═══
   Герой (.core.is-hero.bc-hero) — путь сообщения узлами на луче (App.coreKit.path) или ход отправки; ниже — панели
   (.core.is-panel.bc-pnl): лента «Расписание и отправки», ответы, сделки, «не дошло». Справа — светлый телефон на тёмной
   подложке (это письмо клиенту). Ядро одинаковое в светлой и тёмной теме; фокус — только с клавиатуры, лиловой кромкой. */
.bc-rp { display: grid; grid-template-columns: minmax(0, 1fr) 316px; gap: 16px; align-items: start; }
.bc-rp-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bc-rp-side { position: sticky; top: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bc-rp .core + .core { margin-top: 0; }   /* зазор даёт колонка */
.bc-live { display: flex; flex-direction: column; }

/* обычные части программы внутри ядра отчёта (аватары, глифы сигналов, строки сделок, «ключ — значение», ссылки) —
   своими токенами, тёмными, без красного: просрочка и «не дошло» — янтарём. Тот же набор — у страницы «Рассылки»
   в «Отчётах» (.rp-bc). Телефон с data-theme="light" возвращает себе светлые токены сам */
:is(.bc-rp, .rp-bc) .core {
  --ink: #f6f3ff; --ink-off: rgba(var(--k-mu), .42); --mut: rgba(var(--k-mu), .78); --mut2: rgba(var(--k-mu), .58);
  --line: rgba(var(--k-on), .11); --line-2: rgba(var(--k-on), .15); --line-3: rgba(var(--k-on), .26);
  --l0: rgba(var(--k-on), .02); --l1: rgba(var(--k-on), .045); --l2: rgba(var(--k-on), .07); --l3: rgba(var(--k-on), .09);
  --acc: #c4b5fd; --acc-hover: #fff; --acc-soft: rgba(167, 139, 250, .16); --acc-soft-brd: rgba(var(--k-li), .4); --acc-brd: rgba(var(--k-li), .4);
  --acc-row: rgba(167, 139, 250, .1); --acc-fill: rgba(167, 139, 250, .16);
  --ai: #f0abfc; --ai-soft: rgba(240, 171, 252, .14); --ai-brd: rgba(240, 171, 252, .32);
  --vyg: #5eead4; --vyg-soft: rgba(94, 234, 212, .12); --vyg-brd: rgba(94, 234, 212, .34); --vyg-row: rgba(94, 234, 212, .07);
  --ryn: #fbbf24; --ryn-soft: rgba(251, 191, 36, .12); --ryn-brd: rgba(251, 191, 36, .34); --ryn-row: rgba(251, 191, 36, .07);
  --zav: #fbbf24; --zav-soft: rgba(251, 191, 36, .12); --zav-brd: rgba(251, 191, 36, .34); --zav-row: rgba(251, 191, 36, .07);
  --nei: rgba(var(--k-mu), .7); --nei-soft: rgba(var(--k-on), .07); --nei-brd: rgba(var(--k-on), .15);
  --icon: rgba(var(--k-mu), .72); --icon-bg: rgba(var(--k-on), .06); --icon-border: rgba(var(--k-on), .13);
  --bubble-in: rgba(var(--k-on), .055); --focus: #c4b5fd;
  --sig-late: #fbbf24; --sig-late-halo: rgba(251, 191, 36, .22); --sig-wait: #fbbf24; --sig-you: #a78bfa; --sig-you-halo: rgba(167, 139, 250, .26);
  --sig-ok: #5eead4; --sig-idle: rgba(var(--k-mu), .42); --sig-lost: rgba(var(--k-mu), .5); --sig-ink: #f6f3ff; --sig-bar-track: rgba(var(--k-on), .1);
  color-scheme: dark;
}
/* текст сигналов — чернилами (цвет только в глифе); общий .core [data-sig] красит текст янтарём — здесь не нужно */
:is(.bc-rp, .rp-bc) .core :is(.sig, .sig-line)[data-sig] { color: var(--sig-ink); }
:is(.bc-rp, .rp-bc) .core .sig:is([data-sig="ok"], [data-sig="idle"], [data-sig="lost"]) { color: var(--mut); }
/* фокус — только с клавиатуры и лиловой кромкой (k4: чёрная рамка у строки «Отправок» после щелчка — системная рамка
   раскрывающейся строки) */
:is(.bc-rp, .rp-bc) .core summary { outline: none; }
:is(.bc-rp, .rp-bc) .core summary:focus-visible { box-shadow: inset 0 0 0 1px rgba(var(--k-li), .6), 0 0 0 3px rgba(167, 139, 250, .2); border-radius: 10px; }
:is(.bc-rp, .rp-bc) .core :is(button, a, [tabindex]):focus:not(:focus-visible) { outline: none; }
.core-kick > .core-dot { margin-right: 9px; vertical-align: 1px; }

/* герой: путь сообщения или ход отправки */
.bc-hero { padding: 20px 22px 18px; }
.bc-hero-h { margin-bottom: 14px; }
.bc-hero-h .core-kick { display: inline-flex; align-items: center; gap: 6px; }
.bc-hero-h .core-kick > svg { color: var(--k-mut2); }
.bc-hero-n { font-size: 12px; line-height: 16px; color: var(--k-mut2); }
.bc-hero .bc-fn-f { margin-top: 8px; padding-top: 0; border-top: 0; }   /* разделитель — сам луч, вторая черта под ним не нужна */
/* идёт отправка: луч хода над путём */
.bc-go { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--k-line); }
.bc-go-h { margin-bottom: 12px; }
.bc-go-h .core-kick { display: inline-flex; align-items: center; gap: 7px; color: var(--k-lilac); }
.bc-go-p { font-size: 13px; line-height: 18px; color: var(--k-mut); font-variant-numeric: tabular-nums; }
.bc-go-p b { font-size: 15px; font-weight: 650; color: var(--k-hi); }
.bc-go-n { margin: 0; font-size: 13px; line-height: 19px; color: var(--k-mut); }
/* не ушла: кромка и пятно янтарём, ключ причины крупно */
.bc-hero.is-fail { border-color: rgba(251, 191, 36, .32); }
.bc-hero.is-fail .core-fx i:nth-child(2) { background: #f59e0b; opacity: .16; }
.bc-fail-r { display: flex; flex-direction: column; gap: 4px; margin: 0; }
.bc-fail-r b { font-size: 22px; line-height: 28px; font-weight: 650; letter-spacing: -.02em; color: var(--k-hi); }
.bc-fail-r span { font-size: 13.5px; line-height: 19px; color: var(--k-mut); }
.bc-fail-n { margin: 10px 0 0; font-size: 13px; line-height: 19px; color: var(--k-mut2); }
.bc-hero .core-div { margin: 16px 0 12px; }
/* запланированная: когда уйдёт — крупно, остальное строками */
.bc-plan-s { margin: 6px 0 0; }
.bc-plan .kvs { margin-top: -4px; }

/* панели */
.bc-pnl { padding: 16px 20px 18px; border-radius: 18px; }
.bc-pnl .core-h { margin-bottom: 12px; }
.bc-pnl .core-kick { display: inline-flex; align-items: center; flex-wrap: wrap; row-gap: 4px; }
/* ответы клиентов: ждущие ответа — сверху, лиловой кромкой (сигнал «ждёт вас»); главная кнопка — светлая */
.bc-wn { display: inline-flex; align-items: center; margin-left: 14px; color: var(--k-ink); }
.bc-wn::before { content: ''; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--k-violet); box-shadow: 0 0 0 3px rgba(167, 139, 250, .24), 0 0 10px rgba(167, 139, 250, .8); }
.bc-ans-btns { gap: 6px; }
.bc-ans-l { list-style: none; display: flex; flex-direction: column; margin: 0; padding: 0; }
.bc-ans { position: relative; display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--k-line); }
.bc-ans:first-child { border-top: 0; padding-top: 2px; }
.bc-ans.is-wait::before { content: ''; position: absolute; left: -20px; top: 8px; bottom: 8px; width: 2px; border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, #c4b5fd, rgba(167, 139, 250, .25)); box-shadow: 0 0 12px rgba(167, 139, 250, .7); }
.bc-ans:first-child.is-wait::before { top: 0; }
.bc-ans > .av { margin-top: 1px; }
.bc-ans-b { flex: 1 1 auto; min-width: 0; }
.bc-ans-h { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.bc-ans-h b { flex: 0 1 auto; max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 620; color: var(--k-hi); }
.bc-ans-h em { min-width: 0; font-style: normal; font-size: 12px; color: var(--k-mut2); }
.bc-ans-t { max-width: 64ch; margin-top: 6px; padding: 9px 12px; border-radius: 4px 12px 12px 12px; border: 1px solid var(--k-line);
  background: linear-gradient(160deg, rgba(var(--k-on), .075), rgba(var(--k-on), .03)); font-size: 13px; line-height: 19px; color: var(--k-ink); overflow-wrap: anywhere; }
.bc-ans-a { display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; margin-top: 6px; }
.bc-ans-a .link { padding-left: 0; padding-right: 0; font-size: 12.5px; }
.bc-ans-a .dot-t { font-size: 12px; font-weight: 560; }
.bc-ans-a .dot-t[data-tone="nei"] { color: var(--k-mut); }
.bc-ans-more { margin: 10px 0 0; font-size: 12px; line-height: 17px; color: var(--k-mut2); }
/* путь сообщения: строка об отписках под лучом */
.bc-fn-f { display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 18px; color: var(--mut); }
.bc-fn-f > span { flex: 1 1 240px; min-width: 0; }
.bc-fn-f > .btn { flex: 0 0 auto; margin-right: -6px; }
.bc-fn-t .bcc-sep { margin: 0 8px; }   /* r32: «Не дошло: 4 · Отписались: 2» */
/* сделки рассылки */
.bc-dls-n { font-size: 12.5px; color: var(--k-mut); }
.bc-dls { display: flex; flex-direction: column; margin-top: 2px; }
.bc-dls li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); }
.bc-dls li:last-child { border-bottom: 0; padding-bottom: 0; }
.bc-dl-n { display: flex; align-items: baseline; gap: 8px; min-width: 0; color: var(--ink); text-decoration: none; font-size: 13px; }
.bc-dl-n:hover b { color: var(--acc); }
.bc-dl-n b { flex: 0 0 auto; font-weight: 620; }
.bc-dl-t { min-width: 0; color: var(--mut); overflow-wrap: anywhere; }
.bc-dl-s { font-size: 13px; font-weight: 620; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bc-dls .dstate { grid-column: 1 / -1; }
/* не дошло: число причины — янтарём */
.bc-why { display: flex; flex-direction: column; margin-top: 4px; }
.bc-why > li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.bc-why > li:first-child { padding-top: 0; }
.bc-why > li:last-child { border-bottom: 0; padding-bottom: 0; }
.bc-fg-h > b { font-size: 18px; font-weight: 650; line-height: 20px; color: var(--k-amber-ink, var(--ink)); text-align: right; font-variant-numeric: tabular-nums; }
.bc-fg-h > span { font-size: 13px; line-height: 19px; }
.bc-fg-h > span i { display: block; font-style: normal; font-size: 12px; line-height: 17px; color: var(--mut2); }
/* телефон: светлый, на тёмной подложке со свечением */
.bc-ph-p { padding: 16px 10px 18px; }   /* телефон — во всю свою ширину (296 px): имя файла во вложении не режется */
.bc-ph-p .core-h { margin-bottom: 0; padding: 0 8px; }
.bc-ph-p .bc-prev-w { position: relative; margin-top: 14px; color: var(--ink); }
.bc-ph-p .bc-prev-w::before { content: ''; position: absolute; inset: 10% 8% 6%; border-radius: 40px; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 40%, rgba(167, 139, 250, .55), transparent 72%); filter: blur(26px); }
.bc-ph-p .bc-phone { box-shadow: 0 0 0 1px rgba(var(--k-on), .4), 0 26px 50px -22px rgba(0, 0, 0, .8), 0 0 46px -12px rgba(167, 139, 250, .6); }
/* не дошло: группа по причине, люди — под раскрытием */
.bc-fg-h { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.bc-fg-h .btn { align-self: center; }
.bc-fg-d { margin: 4px 0 0 46px; }
.bc-fg-d summary { width: max-content; max-width: 100%; font-size: 12.5px; font-weight: 600; color: var(--acc); cursor: pointer; }
.bc-fp { display: flex; flex-direction: column; margin-top: 6px; }
.bc-fp li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.bc-fp-n { min-width: 0; }
.bc-fp-n b { font-weight: 600; }
.bc-fp-n i { margin-left: 6px; font-style: normal; color: var(--mut2); }
.bc-fp-to { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mut); }
.bc-fp .link { height: auto; padding: 0; font-size: 12px; }
.bc-early { display: flex; align-items: center; gap: 7px; }
.bc-fp-x { font-style: normal; font-size: 12px; color: var(--mut2); white-space: nowrap; }
/* переотправленная рассылка: одна строка со ссылкой */
.bc-resent { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.bc-resent > span { flex: 1 1 auto; min-width: 0; }
.bc-resent b { display: block; font-size: 13px; font-weight: 600; line-height: 18px; }
.bc-resent i { display: block; font-style: normal; font-size: 12px; line-height: 17px; color: var(--mut2); }
.bc-resent .btn { flex: 0 0 auto; }
/* придержанные тихими часами — строкой под полосой отправки */
.bc-run-h { display: flex; align-items: flex-start; gap: 7px; margin: 10px 0 0; font-size: 12.5px; line-height: 18px; color: var(--mut); }
.bc-run-h > svg { flex: 0 0 auto; margin-top: 2px; color: var(--ryn); }
.bc-basis { display: block; margin-top: 3px; font-style: normal; font-size: 11.5px; line-height: 15px; color: var(--mut2); }
@media (max-width: 900px) {
  .bc-rp { grid-template-columns: minmax(0, 1fr); }
  .bc-rp-side { position: static; }
}

/* окна рассылок: без рамки фокуса вокруг всего окна */
.bc-sheet:focus-visible { outline: none; }
.bc-rest { padding: 10px 14px; font-size: 12.5px; color: var(--mut2); }
.bc-adv-t { margin: 8px 0 4px; font-size: 13px; line-height: 19px; color: var(--mut); }
.bc-adv { display: flex; flex-direction: column; margin-top: 4px; }
.bc-adv li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bc-adv li:last-child { border-bottom: 0; padding-bottom: 0; }
.bc-adv li > span:nth-child(2) { flex: 1 1 auto; min-width: 0; }
.bc-adv li b { display: block; font-size: 13px; font-weight: 600; line-height: 18px; }
.bc-adv li i { display: block; font-style: normal; font-size: 12px; line-height: 17px; color: var(--mut2); }
.bc-adv li .btn { flex: 0 0 auto; }
.bc-adv-ic { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--icon-border); background: var(--icon-bg); color: var(--icon); }

/* низкое окно: шапка мастера и отчёта ниже, чтобы осталось место под содержимое */
@media (max-height: 680px) {
  .bc-sheet .sh { padding: 12px 18px 10px 24px; }
  .bc-sheet .sh::before { top: 14px; height: 24px; }
  .bc-sheet .sh-sub { display: none; }
  .bc-wz-steps { padding: 10px 24px 8px; }
  .bc-wz-aside { position: static; }    /* карточка выше окна — пусть прокручивается вместе с шагом, а не залипает */
  .bc-wz-body { padding: 16px 24px 20px; }
  .bc-sheet .sf { padding-top: 10px; padding-bottom: 12px; }
  /* r8: тело отчёта ближе к шапке, герой плотнее — путь целиком в первом экране 1100×560 */
  .bc-sheet .sb:has(> .bc-rp) { padding-top: 14px; }
  .bc-hero { padding: 16px 20px 14px; }
  .bc-hero-h { margin-bottom: 10px; }
}

.bc-th-ic { display: inline-flex; vertical-align: -3px; color: var(--mut2); }

/* телефон: окно мастера — «шторка» без заданной высоты, поэтому прокручивается всё тело целиком */
@media (max-width: 720px) {
  .sb:has(> .bc-wz) { overflow: auto; }
  .bc-wz { height: auto; }
  .bc-wz-body { overflow: visible; padding: 16px 16px 24px; }
  .bc-wz-steps { padding: 12px 16px 10px; }
  .bc-main > div { min-width: 0; }
  .bc-phone { max-height: none; }
}

/* ═══ r4 · 16.10: «Кому писать» — вкладки, люди, новые, исключить; повтор; отчёт повтора ═══ */
/* вкладки-плашка как в «Организации»: контурный значок + слово + счётчик, у основы — галочка */
.bc-aud-tabs { flex-wrap: wrap; max-width: 100%; }
.bc-aud-tabs .tab { white-space: nowrap; }
.bc-at-ok { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 999px; background: var(--acc-soft); color: var(--acc); }
.bc-aud-b { min-width: 0; }
.bc-sec-h + .bc-aud-tabs { margin-top: -4px; }
/* люди и исключения: поиск-кнопка, чипы */
.bc-pps { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.bc-pp-sec { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bc-pp-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bc-pp-h .link { display: inline-flex; align-items: center; gap: 2px; height: auto; padding: 0; font-size: 12.5px; }
.bc-pp-find { width: 100%; max-width: 520px; justify-content: flex-start; gap: 8px; color: var(--mut2); }
.bc-pp-find > .ell { flex: 1 1 auto; text-align: left; }
.bc-pp-find > svg:last-child { margin-left: auto; color: var(--acc); }
.bc-pp { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.bc-pp:empty { display: none; }
.bc-pc { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; height: 30px; padding: 0 4px 0 5px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--l1); font-size: 12.5px; }
.bc-pc > b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bc-pc > em { font-style: normal; color: var(--mut2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; max-width: 160px; }
.bc-pc-n { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; font-style: normal; font-size: 11.5px; color: var(--mut); white-space: nowrap; }
.bc-pc-n::before { content: ""; width: 5.5px; height: 5.5px; border-radius: 1.5px; transform: rotate(45deg); background: var(--sig-wait); }
.bc-pc.is-ex { background: var(--l2); }
.bc-pc.is-ex > b { text-decoration: line-through; text-decoration-color: var(--mut2); color: var(--mut); }
.bc-pc.is-ex .bc-pc-n::before { background: var(--sig-idle); }
.bc-pc-ic { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 20px; height: 20px; border-radius: 999px; background: var(--l2); color: var(--mut); }
.bc-pc-x { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 22px; height: 22px; border: 0; border-radius: 999px; background: none; color: var(--mut2); cursor: pointer; }
.bc-pc-x:hover { background: var(--l3); color: var(--ink); }
.bc-pc .av { flex: 0 0 auto; }
/* новый получатель — одно поле с распознаванием */
.bc-new { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; max-width: 640px; }
.bc-new-h { margin: -2px 0 0; color: var(--mut); }
.bc-new-opts { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 4px; }
.bc-new-b { display: inline-flex; align-items: center; gap: 8px; }
.bc-new-w { display: flex; gap: 7px; margin: 2px 0 0; }
.bc-new-w > svg { flex: 0 0 auto; margin-top: 2px; color: var(--mut2); }
.bc-ck { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); cursor: pointer; }
.bc-ck > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bc-ck .check-b { position: static; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin: 0; border-radius: 5px; border: 1.5px solid var(--line-3); background: var(--l1); color: transparent; }
.bc-ck > input:checked + .check-b { border-color: var(--acc); background: var(--acc); color: var(--l1); }
.bc-ck > input:focus-visible + .check-b { outline: 2px solid var(--focus); outline-offset: 2px; }
.bc-ex-seg { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bc-ex-seg .sel { min-width: 240px; }
.bc-pps > .hint { display: flex; align-items: center; gap: 6px; }
@media (max-width: 760px) { .bc-new { grid-template-columns: minmax(0, 1fr); } }
/* «Кто получит»: состав формулой */
.bc-comp { display: flex; flex-direction: column; margin: -2px 0 0; }
.bc-comp > li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--mut); }
.bc-comp > li:last-child { border-bottom: 0; }
.bc-comp > li > span { min-width: 0; }
.bc-comp > li > b, .bc-comp summary > b { font-weight: 650; color: var(--ink); }
.bc-comp > li.bc-comp-a { display: block; }
.bc-comp-a details { width: 100%; }
.bc-comp summary { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none; }
.bc-comp summary::-webkit-details-marker { display: none; }
.bc-comp summary > span { display: inline-flex; align-items: center; gap: 4px; }
.bc-comp summary > span > svg { color: var(--mut2); transition: transform .14s; }
.bc-comp details[open] summary > span > svg { transform: rotate(180deg); }
.bc-comp .bc-ex { margin: 4px 0 0 10px; }
/* «Список получателей» */
.bc-rl { margin-top: 12px; }
.bc-from { font-size: 12px; color: var(--mut); white-space: nowrap; }
.bc-kv-l { height: auto; padding: 0; font-size: 11.5px; }
/* «Вставить списком» */
.bc-paste { display: flex; flex-direction: column; gap: 10px; }
.bc-paste .ta { min-height: 180px; font-size: 13px; line-height: 20px; }
.bc-paste-s { margin: 0; font-size: 13px; font-weight: 560; color: var(--ink); }

/* шаг 3: три карточки «Когда отправить» и расписание повтора */
.bc-when3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { .bc-when3 { grid-template-columns: minmax(0, 1fr); } }
.bc-rep { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; padding: 14px 0 2px; border-top: 1px solid var(--line); }
.bc-rep-r { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: start; }
.bc-rep-l, .bc-rep-l2 { padding-top: 7px; font-size: 11px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--mut2); white-space: nowrap; }
.bc-rep-l2 { padding-top: 0; }
.bc-rep-v { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bc-rep-v .seg { flex-wrap: wrap; max-width: 100%; height: auto; }
.bc-rep-dt { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.bc-rep-dt .in { width: 150px; }
.bc-rep-x { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.bc-rep-x > .sel { width: 220px; flex: 0 0 auto; }
.bc-num-in { width: 72px; }
.bc-wdays { display: flex; flex-wrap: wrap; gap: 6px; }
.bc-wd-b { width: 36px; height: 32px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--l1); font-size: 12.5px; font-weight: 600; color: var(--mut); cursor: pointer; }
.bc-wd-b:hover { border-color: var(--line-3); color: var(--ink); }
.bc-wd-b[aria-pressed="true"] { border-color: var(--acc-soft-brd); background: var(--acc-soft); color: var(--acc); }
.bc-rep-end { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
.bc-rd { position: relative; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink); cursor: pointer; }
.bc-rd > input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bc-rd-b { flex: 0 0 auto; width: 16px; height: 16px; border-radius: 999px; border: 1.5px solid var(--line-3); background: var(--l1); box-sizing: border-box; }
.bc-rd > input[type="radio"]:checked + .bc-rd-b { border: 5px solid var(--acc); }
.bc-rd > input[type="radio"]:focus-visible + .bc-rd-b { outline: 2px solid var(--focus); outline-offset: 2px; }
.bc-rd .in { width: 150px; }
.bc-rd .bc-num-in { width: 64px; }
.bc-rd > span:last-child { color: var(--mut); }
@media (max-width: 760px) { .bc-rep-r { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
/* «Ближайшие отправки» */
.bc-next { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.bc-next li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.bc-next li:last-child { border-bottom: 0; }
.bc-next li b { font-weight: 600; color: var(--ink); white-space: nowrap; }
.bc-next li span { color: var(--mut); white-space: nowrap; }
.bc-next-t { margin: -4px 0 0; }
.bc-held { display: flex; gap: 7px; margin: 0; font-size: 12.5px; line-height: 18px; color: var(--mut); }
.bc-held > svg { flex: 0 0 auto; margin-top: 2px; color: var(--sig-wait); }
.bc-fixn { padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--l2); font-size: 13px; line-height: 19px; }
.bc-checks li[data-s="info"] .bc-chk-ic { border-color: var(--line-2); background: var(--l2); color: var(--mut); }

/* отчёт повтора — лента «Расписание и отправки» (r8): впереди — пунктиром мятным (как «с пополнением» на луче «Баланса»),
   ушедшие отправки — светящейся линией, узел на каждую; узел ярче у отправки, где отвечали чаще (--f). Строка отправки —
   мини-путь словами и полоска того же разложения (ответили · дошло · не дошло — тоны пути и «Отчётов») */
.bc-tl-hint { font-size: 12px; line-height: 16px; color: var(--k-mut2); }
.bc-sch-t { margin: -4px 0 12px; font-size: 13px; line-height: 19px; color: var(--k-mut); }
.bc-sch-t b { font-weight: 620; color: var(--k-hi); }
.bc-sch-l { margin: 0; font-size: 13px; line-height: 19px; color: var(--k-mut); }
.bc-sch-n b { font-weight: 650; color: var(--k-hi); }
.bc-sch-later { margin-top: 2px; font-size: 12.5px; line-height: 18px; color: var(--k-mut2); }
.bc-tl { position: relative; list-style: none; margin: 0; padding: 0; }
.bc-tl-i { position: relative; padding-left: 28px; }
.bc-tl-i::before { content: ''; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; border-radius: 2px; }
.bc-tl-x::before { background: repeating-linear-gradient(180deg, rgba(94, 234, 212, .75) 0 4px, transparent 4px 8px); }
.bc-tl-i.is-run::before { background: linear-gradient(180deg, rgba(var(--k-li), .7), rgba(167, 139, 250, .3)); box-shadow: 0 0 10px rgba(167, 139, 250, .35); }
.bc-tl-i:first-child::before { top: 16px; }
.bc-tl-i:last-child::before { bottom: auto; height: 16px; }
.bc-tl-i:only-child::before { display: none; }
.bc-tl-n { position: absolute; left: 0; top: 9px; z-index: 1; box-sizing: border-box; width: 14px; height: 14px; border-radius: 50%; }
.bc-tl-i.is-run .bc-tl-n { background: #fff; box-shadow: 0 0 0 3px rgba(167, 139, 250, .26), 0 0 calc(4px + 16px * var(--f, 0)) calc(1px * var(--f, 0)) rgba(94, 234, 212, calc(.2 + .65 * var(--f, 0))); }
.bc-tl-x .bc-tl-n { background: #160d35; border: 2px solid rgba(var(--k-mu), .5); }
.bc-tl-x.is-next .bc-tl-n { border-color: var(--k-mint); box-shadow: 0 0 0 3px rgba(94, 234, 212, .16), 0 0 14px rgba(94, 234, 212, .7); }
.bc-tl-x.is-skip .bc-tl-n { left: 2px; top: 11px; width: 10px; height: 10px; border-radius: 2px; transform: rotate(45deg); }
.bc-tl-b { min-width: 0; padding: 6px 0 12px; }
.bc-run-s { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 32px; padding: 6px 10px 6px 0; font-size: 13px; line-height: 19px; list-style: none; }
.bc-run-s::-webkit-details-marker { display: none; }
summary.bc-run-s { margin-left: -10px; padding-left: 10px; border-radius: 10px; cursor: pointer; transition: background .15s; }
summary.bc-run-s:hover { background: rgba(var(--k-on), .05); }
summary.bc-run-s > svg { flex: 0 0 auto; color: var(--k-mut2); transition: transform .14s; }
details[open] > summary.bc-run-s > svg { transform: rotate(180deg); }
div.bc-run-s::after { content: ''; flex: 0 0 13px; }   /* место стрелки: полоски строк — в одну линию */
.bc-run-d { flex: 0 0 96px; font-weight: 620; color: var(--k-hi); white-space: nowrap; }
.bc-run-n { flex: 1 1 auto; min-width: 0; color: var(--k-mut); }
.bc-run-n b { font-weight: 650; color: var(--k-hi); font-variant-numeric: tabular-nums; }
.bc-mb { display: flex; flex: 0 0 84px; gap: 2px; height: 6px; }
.bc-mb i { min-width: 3px; border-radius: 3px; }
.bc-mb .is-rep { background: #5eead4; box-shadow: 0 0 8px rgba(94, 234, 212, .55); }
.bc-mb .is-dlv { background: #7c3aed; }
.bc-mb .is-fail { background: #fbbf24; }
.bc-run-r { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 4px 0 12px 98px; padding: 0; }
.bc-run-r li { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; line-height: 18px; color: var(--k-mut); }
.bc-run-r li > span:not(.av) { flex: 1 1 auto; min-width: 0; }   /* аватар — не тянется (k4: «КП» сжатым овалом) */
.bc-run-r li b { color: var(--k-hi); font-weight: 600; }
.bc-run-r .link { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 3px; height: auto; padding: 0; font-size: 12px; }
.bc-tl-none { display: flex; align-items: center; gap: 7px; margin: 8px 0 0; font-size: 12.5px; color: var(--k-mut2); }
@media (max-width: 760px) { .bc-run-s { flex-wrap: wrap; gap: 2px 12px; } .bc-run-d { flex-basis: auto; } .bc-run-r { margin-left: 0; } .bc-mb { flex-basis: 100%; } }
@media (prefers-reduced-motion: reduce) { summary.bc-run-s, summary.bc-run-s > svg { transition: none; } }

/* ═══ «Отчёты → Рассылки» (страница — pgBroadcasts в screens/reports.js; герой и панели — общие детали отчётов, R1) ═══
   r8 (22.10, B): тот же путь сообщения, что в окне рассылки; столбцы «по дням» — в тонах этапов пути. Обёртка .rp-bc не
   влияет на раскладку (display: contents) — только даёт панелям страницы тёмные токены (выше, вместе с .bc-rp). */
.rp-bc { display: contents; }
.rp-bc-hint { font-size: 12px; line-height: 16px; color: var(--k-mut2); }
.rp-hero-bc .core-path { margin-top: 8px; }
.rp-hero-bc .rp-bc-days .rp-chart { --rp-h: 176px; }
@media (max-height: 700px) { .rp-hero-bc .rp-bc-days .rp-chart { --rp-h: 132px; } }

/* ══ r31 (16.11): карточки рассылок — «как увидит клиент» и одна строка о судьбе (screens/broadcasts.js cardsHtml) ══
   Кирилл: «превью самого сообщения и информация… отправили столько, тому-то дошло, тому-то нет, или пока запланировано…
   без лишней информации, без громоздкости». Группы: «Сейчас и впереди» · «Черновики» · «Отправлены». */
.bcc-wrap { display: flex; flex-direction: column; gap: 26px; }
.bcc-gh { display: flex; align-items: baseline; gap: 8px; margin: 0 0 12px 2px; font-size: 12px; line-height: 16px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }
.bcc-gh > span { font-weight: 600; letter-spacing: 0; color: var(--mut2); }
.bcc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 14px; }
.bcc { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 14px 16px 14px; border-radius: 16px; background: var(--l1); border: 1px solid var(--line);
  cursor: pointer; transition: border-color .16s, box-shadow .2s, transform .2s cubic-bezier(.2, .8, .2, 1); }
.bcc:hover { border-color: var(--acc-soft-brd); box-shadow: 0 10px 26px -18px rgba(58, 40, 140, .35); transform: translateY(-1px); }
.bcc:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.bcc:active { transform: none; }
/* шапка: агент · канал · название · статус · ⋯ */
.bcc-h { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.bcc-h > * { margin-top: 0; }
.bcc-ag, .bcc-h > .ch, .bcc-st, .bcc-x { align-self: flex-start; }
.bcc-st { line-height: 20px; }
.bcc-ag { display: inline-flex; flex: 0 0 auto; }
.bcc-h > .ch, .bcc-h > img, .bcc-h > svg { flex: 0 0 auto; }
.bcc-n { flex: 1 1 auto; min-width: 0; font-size: 14.5px; line-height: 20px; font-weight: 640; letter-spacing: -.008em; color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.bcc-st { flex: 0 0 auto; display: inline-flex; font-size: 12.5px; }
.bcc-x { flex: 0 0 auto; margin: -4px -6px -4px -2px; opacity: .6; transition: opacity .15s; }
.bcc:hover .bcc-x, .bcc-x:focus-visible { opacity: 1; }
/* кому и сколько */
.bcc-to { display: flex; align-items: baseline; gap: 10px; min-width: 0; margin: 5px 0 0; font-size: 12.5px; line-height: 18px; color: var(--mut); }
.bcc-to > .ell { flex: 1 1 auto; min-width: 0; }
.bcc-to-n { flex: 0 0 auto; color: var(--mut2); }
/* сообщение — на мягкой подложке, как в ленте клиента */
.bcc-m { margin-top: 11px; padding: 11px 12px; border-radius: 12px; background: var(--l2); min-height: 82px; box-sizing: border-box; }
.bcc .bcm { font-size: 13px; line-height: 19px; }
/* судьба: строка итога, полоска разложения */
.bcc-f { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); font-size: 13px; line-height: 19px; color: var(--mut); }
.bcc-f-r { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bcc-f-r.is-run { font-size: 12.5px; }
.bcc-f-t { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0 5px; flex: 1 1 auto; min-width: 0; }
.bcc-f-t b { font-weight: 640; color: var(--ink); }
.bcc-f-x { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; color: var(--mut2); font-size: 12.5px; }
.bcc-f-x b { color: var(--ink); font-weight: 640; }
.bcc-ic { display: inline-flex; margin-right: 3px; color: var(--mut2); }
.bcc-sep { color: var(--ink-off); }
.bcc-fail { display: inline-flex; align-items: center; gap: 5px; }
.bcc-fail > i { width: 6px; height: 6px; border-radius: 50%; background: #f5b544; flex: 0 0 auto; }
.bcc-go { font-weight: 600; color: var(--acc); }
.bcc-f-n { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; color: var(--mut2); }
.bcc-f-w { display: flex; }
.bcc .bc-mb { flex: none; width: 100%; height: 5px; margin-top: 2px; }
.bcc-prog { height: 5px; margin-top: 2px; }
.bcc.is-draft .bcc-m { opacity: .85; }
@media (prefers-reduced-motion: reduce) { .bcc { transition: none; } .bcc:hover { transform: none; } }

/* ══ r31: сообщение без телефона — карточки и чат «Новая рассылка» (msgHtml) ══ */
.bcm { min-width: 0; color: var(--ink); overflow-wrap: anywhere; }
.bcm-subj { display: block; margin-bottom: 3px; font-weight: 640; letter-spacing: -.004em; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bcm-t { margin: 0; color: var(--ink-2, var(--ink)); }
.bcm.is-clamp .bcm-t { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--bcm-l, 3); overflow: hidden; }
.bcm.is-mail .bcm-t { color: var(--mut); }
.bcm-empty { color: var(--mut2); font-style: italic; }
.bcm-stop { display: block; margin-top: 6px; font-size: .92em; color: var(--mut2); }
.bcm-tpl { display: block; margin-bottom: 4px; font-size: 10.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--vyg); }
.bcm-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bcm-file { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 26px; padding: 0 9px; border-radius: 8px; background: var(--l1); border: 1px solid var(--line); font-size: 12px; color: var(--mut); }
.bcm-file > svg { flex: 0 0 auto; color: var(--mut2); }
.bcm.is-msg { display: flex; }
.bcm-bub { position: relative; max-width: 100%; padding: 7px 11px 17px; border-radius: 4px 14px 14px 14px; background: var(--bubble-in); border: 1px solid var(--line); }
.bcm-bub time { position: absolute; right: 9px; bottom: 3px; font-size: 10px; line-height: 14px; color: var(--mut2); }
.bcm .bc-sub { padding: 0 3px; border-radius: 4px; background: var(--acc-soft); color: var(--acc); font-weight: 560; }

/* ══ r31 (круг 3): окно запланированной — «Изменить: время · кому · канал · текст» и «Изменить текст» у телефона ══ */
.bc-plan-ed { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--k-line); font-size: 13px; color: var(--k-mut2); }
.bc-plan-ed .link { font-size: 13px; font-weight: 550; color: var(--k-lilac, var(--acc)); text-decoration: underline; text-decoration-color: rgba(var(--k-li), .35); text-underline-offset: 4px; }
.bc-plan-ed .link:hover { text-decoration-color: currentColor; }
.bc-ph-ed { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 550; }
