/* =========================================================================
   Twitch-бот · графит (25.09.2026)
   Последний слой раздела поверх bot-center.css (HX-скин), theme-ember.css и
   panel.css. Язык кабинета: нейтральные поверхности, без свечений, градиентов,
   сканирующих линий и входных анимаций; оранжевый — только действие и
   выбранный пункт; подписи обычным шрифтом, без капса и моноширинного.
   Разметка и data-хуки bot-center.js не зависят от этого файла.
   ========================================================================= */

.dashboard-shell :is(.bot-center-layout, .em-bot-head) {
  --bg-card: #1c1f24;
  --bg-card-2: #22262c;
  --bg-sunken: #17191d;
  --bd: #30343b;
  --bd-soft: #292d33;
  --bd-strong: #454b55;
  --tx: #edf0f5;
  --tx-2: #b4bcc8;
  --tx-3: #8f98a6;
  --ok: #7fc59f;
  --ok-bg: #7fc59f17;
  --warn: #e3b25e;
  --warn-bg: #e3b25e17;
  --bad: #ef8f86;
  --bad-bg: #ef8f8617;
  --accent: #ff6a2b;
  --accent-tx: #ffb18f;
  --accent-bg: #ff6a2b17;
  --r-card: 12px;
  --r-ctl: 8px;
}

/* ---- 1. Общие сбросы: движение, свечение, декоративные фоны ---- */
.dashboard-shell .bot-center-layout,
.dashboard-shell .bot-center-layout *:not(.spinner):not(.spinner *) { animation: none !important; }
.dashboard-shell .bot-center-layout * { text-shadow: none !important; filter: none !important; }
.dashboard-shell .bot-center-layout :is(.card, section, article, header, footer, div, li, ol, ul, details, summary, label, button, a, span, dl, dd, dt, fieldset, form, p) {
  background-image: none !important;
  box-shadow: none !important;
}
.dashboard-shell .bot-center-layout :is(button, a, .card, li, label, article):hover { transform: none !important; }
.dashboard-shell .bot-center-layout :is(.hx-bot-hero-bg, .hx-bot-beacon, .hx-bot-scan, .hx-bot-grid, .hx-bot-blob) { display: none !important; }
.dashboard-shell .bot-center-layout :is(h1, h2, h3, h4, h5, strong, b, p, small, label, legend, dt, dd, th, td, li, button, summary, span, time, .eyebrow-mini, .field-label, .status-chip, .bot-state, .bot-overall-state) {
  font-family: var(--font-body);
  letter-spacing: 0;
  text-transform: none;
}
.dashboard-shell .bot-center-layout code,
.dashboard-shell .bot-center-layout .bot-command-mono { font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); }
/* Надписи-«надзаголовки» в карточках — шум: заголовок и так говорит, что это. */
.dashboard-shell .bot-center-layout .eyebrow-mini { display: none; }

/* ---- 2. Шапка раздела: плитка бота, заголовок, живой статус, подключение ---- */
.dashboard-shell .bot-shell { display: block; }
.dashboard-shell .bot-shell-head { display: flex; align-items: center; gap: 16px; margin: 0 0 10px; }
.dashboard-shell .bot-shell-mark {
  display: grid; place-items: center; width: 48px; height: 48px; flex: none;
  border: 1px solid #ff6a2b40; border-radius: 14px; background: #241a14; color: #ff8a55;
}
.dashboard-shell .bot-shell-mark svg { width: 26px; height: 26px; }
.dashboard-shell .bot-shell-title { flex: 1 1 auto; min-width: 0; }
.dashboard-shell .bot-shell-title h1 { margin: 0 0 4px; color: var(--tx); font: 650 24px/1.25 var(--font-body); letter-spacing: 0; text-transform: none; }
.dashboard-shell .bot-shell-status { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 8px; min-width: 0; margin: 0; color: var(--tx-3); font: 400 13px/1.45 var(--font-body); }
.dashboard-shell .bot-shell-status:empty { display: none; }
.dashboard-shell .bot-shell-status i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--tx-3); }
.dashboard-shell .bot-shell-status i.is-ok { background: var(--ok); }
.dashboard-shell .bot-shell-status i.is-warn { background: var(--warn); }
.dashboard-shell .bot-shell-status i.is-wait { background: #6c7480; }
.dashboard-shell .bot-shell-status b { color: var(--tx); font-weight: 500; }
.dashboard-shell .bot-shell-status span { min-width: 0; overflow-wrap: anywhere; }
.dashboard-shell .bot-shell-connect { flex: none; }
.dashboard-shell .bot-shell-connect.is-active { border-color: #ff6a2b80; background: #ff6a2b14; color: var(--accent-tx); }

/* ---- 3. Вкладки разделов ---- */
.dashboard-shell .bot-tabs {
  display: flex; gap: 28px; margin: 0 0 24px; padding: 0; border-bottom: 1px solid var(--bd-soft);
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
}
.dashboard-shell .bot-tabs::-webkit-scrollbar { display: none; }
.dashboard-shell .bot-tab {
  position: relative; display: inline-flex; align-items: center; gap: 8px; flex: none; height: 46px; margin: 0; padding: 0 2px;
  border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none;
  color: var(--tx-2); font: 500 14px/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: color .12s, border-color .12s;
}
.dashboard-shell .bot-tab:hover:not(:disabled) { color: var(--tx); }
.dashboard-shell .bot-tab.is-active { border-bottom-color: var(--accent); color: var(--tx); }
.dashboard-shell .bot-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 6px; }
.dashboard-shell .bot-tab:disabled { opacity: .45; cursor: not-allowed; }
.dashboard-shell .bot-tab-count { color: var(--tx-3); font: 500 12px/1 var(--font-body); }
.dashboard-shell .bot-center-page { min-width: 0; }
.dashboard-shell .bot-back-link { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; color: var(--tx-2); font: 500 13px/1.3 var(--font-body); text-decoration: none; }
.dashboard-shell .bot-back-link::before { content: ''; width: 7px; height: 7px; border-left: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); }
.dashboard-shell .bot-back-link:hover { color: var(--tx); }
/* Старое боковое меню больше не рисуется; если где-то осталось — прячем. */
.dashboard-shell .bot-shell > .bot-rail { display: none; }

/* ---- 3a. Панель справа для подробных настроек ---- */
.dashboard-shell .bot-drawer { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: flex-end; pointer-events: none; }
.dashboard-shell .bot-drawer-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: #0b0c0ecc; cursor: default; pointer-events: auto; }
.dashboard-shell .bot-drawer-panel {
  position: relative; display: flex; flex-direction: column; width: min(560px, 100vw); height: 100%;
  border-left: 1px solid var(--bd); background: #17191d; box-shadow: -24px 0 60px #0008; pointer-events: auto;
}
.dashboard-shell .bot-drawer.is-wide .bot-drawer-panel { width: min(760px, 100vw); }
.dashboard-shell .bot-drawer-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px 16px; border-bottom: 1px solid var(--bd-soft); background: #1a1d21; }
.dashboard-shell .bot-drawer-head > div { flex: 1 1 auto; min-width: 0; }
.dashboard-shell .bot-drawer-head h2 { margin: 2px 0 4px; color: var(--tx); font: 650 18px/1.3 var(--font-body); letter-spacing: 0; }
.dashboard-shell .bot-drawer-head p { margin: 0; color: var(--tx-3); font: 400 12.5px/1.5 var(--font-body); }
.dashboard-shell :is(.bot-drawer-back, .bot-drawer-close) {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none; padding: 0;
  border: 1px solid var(--bd); border-radius: var(--r-ctl); background: transparent; color: var(--tx-2); cursor: pointer;
}
.dashboard-shell :is(.bot-drawer-back, .bot-drawer-close):hover { border-color: var(--bd-strong); background: #ffffff0a; color: var(--tx); }
.dashboard-shell :is(.bot-drawer-back, .bot-drawer-close) svg { width: 16px; height: 16px; }
.dashboard-shell .bot-drawer-back svg { transform: rotate(180deg); }
.dashboard-shell .bot-drawer-back { display: none; }
.dashboard-shell .bot-drawer-body { flex: 1 1 auto; min-height: 0; padding: 20px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #3a3f47 transparent; }
.dashboard-shell .bot-drawer-body > * + * { margin-top: 16px; }
.dashboard-shell .bot-drawer-body .card { background-color: var(--bg-card); }
@media (max-width: 720px) {
  .dashboard-shell .bot-drawer-panel,
  .dashboard-shell .bot-drawer.is-wide .bot-drawer-panel { width: 100vw; border-left: 0; }
  .dashboard-shell .bot-drawer-back { display: grid; }
  .dashboard-shell .bot-drawer-close { display: none; }
  .dashboard-shell .bot-drawer-head { padding: 12px 14px; }
  .dashboard-shell .bot-drawer-body { padding: 14px; }
}
body:has(.dashboard-shell .bot-shell.has-drawer) { overflow: hidden; }

/* ---- 4. Шапка страницы ---- */
.dashboard-shell .bot-center-layout .bot-command-page-head {
  position: static; display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px;
  min-height: 0; margin: 0 0 20px; padding: 0; border: 0; border-radius: 0; background: none; overflow: visible;
}
.dashboard-shell .bot-center-layout .bot-command-page-head::before,
.dashboard-shell .bot-center-layout .bot-command-page-head::after { display: none !important; content: none !important; }
.dashboard-shell .bot-center-layout .bot-command-page-head > div { position: static; }
.dashboard-shell .bot-center-layout .bot-command-page-head > div:first-child { display: block; flex: 1 1 320px; min-width: 0; max-width: none; padding: 0; }
.dashboard-shell .bot-center-layout .bot-command-page-head h2 {
  margin: 0 0 6px; color: var(--tx); font: 650 20px/1.3 var(--font-body); letter-spacing: 0;
  background: none; -webkit-text-fill-color: currentColor;
}
.dashboard-shell .bot-center-layout .bot-command-page-head p { margin: 0; max-width: 68ch; color: var(--tx-2); font: 400 13px/1.55 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-command-page-head > div:last-child:not(:first-child) { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; }
.dashboard-shell .bot-center-layout .bot-command-page-head > button:last-child { flex: none; }

/* ---- 5. Поверхности ---- */
.dashboard-shell .bot-center-layout .card {
  border: 1px solid var(--bd); border-radius: var(--r-card); background-color: var(--bg-card);
}
.dashboard-shell .bot-center-layout .card .card { border-radius: 10px; background-color: var(--bg-sunken); }
.dashboard-shell .bot-center-layout .bot-center-page > .bot-page > * + * { margin-top: 16px; }
.dashboard-shell .bot-center-layout .bot-center-page > .bot-page > .bot-command-page-head + * { margin-top: 0; }

/* Заголовки карточек */
.dashboard-shell .bot-center-layout :is(.bot-automod-card-head, .bot-command-card-head, .bot-automod-overview-head, .bot-section-head, .bot-overview-head) {
  display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px;
  padding: 18px 20px 14px; border: 0; border-bottom: 1px solid var(--bd-soft); border-radius: 0; background: none;
}
.dashboard-shell .bot-center-layout :is(.bot-automod-card-head, .bot-command-card-head, .bot-automod-overview-head, .bot-section-head, .bot-overview-head) > div:first-child { flex: 1 1 260px; min-width: 0; }
.dashboard-shell .bot-center-layout :is(.bot-automod-card-head, .bot-command-card-head, .bot-automod-overview-head, .bot-section-head, .bot-overview-head) :is(h2, h3) {
  margin: 0 0 4px; color: var(--tx); font: 600 15px/1.35 var(--font-body);
}
.dashboard-shell .bot-center-layout :is(.bot-automod-card-head, .bot-command-card-head, .bot-automod-overview-head, .bot-section-head, .bot-overview-head) p {
  margin: 0; color: var(--tx-3); font: 400 12px/1.55 var(--font-body);
}
.dashboard-shell .bot-center-layout :is(.bot-automod-heading-icon, .bot-automod-rule-symbol, .bot-automod-activity-icon) { background: none; border: 0; }

/* ---- 6. Статусы-чипы: спокойные, обычным шрифтом ---- */
.dashboard-shell .bot-center-layout .status-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 9px;
  border: 1px solid var(--bd); border-radius: 999px; background: #ffffff06;
  color: var(--tx-2); font: 500 12px/1 var(--font-body); white-space: nowrap;
}
.dashboard-shell .bot-center-layout .status-chip i { display: block; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--tx-3); box-shadow: none; }
.dashboard-shell .bot-center-layout .status-chip.is-ok { border-color: #7fc59f38; background: var(--ok-bg); color: #b6e2c9; }
.dashboard-shell .bot-center-layout .status-chip.is-ok i { background: var(--ok); }
.dashboard-shell .bot-center-layout .status-chip:is(.is-warn, .is-info) { border-color: #e3b25e38; background: var(--warn-bg); color: #f0d39e; }
.dashboard-shell .bot-center-layout .status-chip:is(.is-warn, .is-info) i { background: var(--warn); }
.dashboard-shell .bot-center-layout .status-chip.is-danger { border-color: #ef8f8638; background: var(--bad-bg); color: #f6c0ba; }
.dashboard-shell .bot-center-layout .status-chip.is-danger i { background: var(--bad); }
.dashboard-shell #bot-panel-automod .status-chip.is-ok { border-color: #7fc59f38; background: var(--ok-bg); color: #b6e2c9; }
.dashboard-shell #bot-panel-automod .status-chip.is-ok i { background: var(--ok); }

/* ---- 7. Кнопки ---- */
.dashboard-shell .bot-center-layout .button { border-radius: var(--r-ctl); font: 600 13px/1.2 var(--font-body); letter-spacing: 0; text-transform: none; }
.dashboard-shell .bot-center-layout .button:not(.secondary):not(.ghost-button):not(.danger) { border: 1px solid var(--accent); background-color: var(--accent); color: #1a0e07; }
.dashboard-shell .bot-center-layout .button:not(.secondary):not(.ghost-button):not(.danger):hover:not(:disabled) { background-color: #ff7d45; border-color: #ff7d45; }
.dashboard-shell .bot-center-layout .button.secondary { border: 1px solid var(--bd-strong); background-color: #272c33; color: var(--tx); }
.dashboard-shell .bot-center-layout .button.secondary:hover:not(:disabled) { border-color: #5a616c; background-color: #2d3239; }
.dashboard-shell .bot-center-layout .button.ghost-button { border: 1px solid transparent; background-color: transparent; color: var(--tx-2); }
.dashboard-shell .bot-center-layout .button.ghost-button:hover:not(:disabled) { background-color: #ffffff0a; color: var(--tx); }
.dashboard-shell .bot-center-layout .button.sm { min-height: 34px; padding: 7px 12px; font-size: 12.5px; }
.dashboard-shell .bot-center-layout .button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dashboard-shell .bot-center-layout .button :is(.bot-center-icon, .line-icon) { width: 15px; height: 15px; }
.dashboard-shell .bot-center-layout :is(.bot-refresh-button, .bot-command-icon-button) {
  display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; padding: 0;
  border: 1px solid var(--bd); border-radius: var(--r-ctl); background: transparent; color: var(--tx-2); cursor: pointer;
}
.dashboard-shell .bot-center-layout :is(.bot-refresh-button, .bot-command-icon-button):hover:not(:disabled) { border-color: var(--bd-strong); background: #ffffff0a; color: var(--tx); }
.dashboard-shell .bot-center-layout :is(.bot-refresh-button, .bot-command-icon-button) svg { width: 16px; height: 16px; }

/* ---- 8. Поля и переключатели ---- */
.dashboard-shell .bot-center-layout .field-label { display: block; margin: 0 0 6px; color: var(--tx-2); font: 500 12px/1.4 var(--font-body); }
.dashboard-shell .bot-center-layout :is(.input, .select, .textarea) {
  border: 1px solid var(--bd-strong); border-radius: var(--r-ctl); background-color: var(--bg-sunken);
  color: var(--tx); font: 400 13px/1.45 var(--font-body);
}
.dashboard-shell .bot-center-layout :is(.input, .select):not(textarea) { min-height: 38px; }
.dashboard-shell .bot-center-layout :is(.input, .select, .textarea):focus { border-color: #c77a55; outline: 2px solid #ff6a2b33; outline-offset: 0; }
.dashboard-shell .bot-center-layout .field-hint { color: var(--tx-3); font: 400 12px/1.5 var(--font-body); }
.dashboard-shell .bot-center-layout :is(.switch-row.bot-feature-switch, .bot-feature-switch) {
  padding: 12px 14px; border: 1px solid var(--bd-soft); border-radius: 10px; background-color: var(--bg-sunken);
}
.dashboard-shell .bot-center-layout .bot-feature-switch:has(input:checked) { border-color: var(--bd); background-color: var(--bg-sunken); }
.dashboard-shell .bot-center-layout .bot-feature-switch strong { color: var(--tx); font: 600 13px/1.4 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-feature-switch small { color: var(--tx-3); font: 400 12px/1.5 var(--font-body); }
.dashboard-shell .bot-center-layout :is(.bot-role-grid label, .bot-role-fieldset label) { border-radius: var(--r-ctl); }
.dashboard-shell .bot-center-layout fieldset { border-radius: 10px; }

/* Раскрывающиеся «Расширенные настройки» */
.dashboard-shell .bot-center-layout .bot-feature-advanced { border: 1px solid var(--bd-soft); border-radius: 10px; background: none; }
.dashboard-shell .bot-center-layout .bot-feature-advanced > summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 14px; color: var(--tx); font: 500 13px/1.4 var(--font-body); cursor: pointer; list-style: none; }
.dashboard-shell .bot-center-layout .bot-feature-advanced > summary::-webkit-details-marker { display: none; }
.dashboard-shell .bot-center-layout .bot-feature-advanced > summary > span { flex: 1; }
.dashboard-shell .bot-center-layout .bot-feature-advanced > summary svg:last-child { width: 14px; height: 14px; color: var(--tx-3); transition: transform .15s; }
.dashboard-shell .bot-center-layout .bot-feature-advanced[open] > summary svg:last-child { transform: rotate(90deg); }
.dashboard-shell .bot-center-layout .bot-feature-advanced-body { padding: 4px 14px 14px; border-top: 1px solid var(--bd-soft); }

/* Полоса сохранения */
.dashboard-shell .bot-center-layout :is(.bot-feature-save-bar, .bot-automod-card-actions) {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px;
  padding: 14px 20px; border: 0; border-top: 1px solid var(--bd-soft); border-radius: 0 0 var(--r-card) var(--r-card); background: #181b1f;
}
.dashboard-shell .bot-center-layout .bot-feature-save-hint { color: var(--tx-3); font: 400 12px/1.5 var(--font-body); }

/* ---- 9. Списки, журналы, пустые состояния ---- */
.dashboard-shell .bot-center-layout :is(.bot-feature-history-list, .bot-automod-violation-list, .bot-automod-strike-list, .bot-automod-entry-list) { margin: 0; padding: 0 20px; list-style: none; }
.dashboard-shell .bot-center-layout :is(.bot-feature-history-row, .bot-automod-violation-list li, .bot-automod-strike-list li, .bot-automod-entry-row) {
  padding: 12px 0; border: 0; border-bottom: 1px solid var(--bd-soft); border-radius: 0; background: none;
}
.dashboard-shell .bot-center-layout :is(.bot-feature-history-row, .bot-automod-violation-list li, .bot-automod-strike-list li):last-child { border-bottom: 0; }
.dashboard-shell .bot-center-layout .bot-feature-history-row strong { color: var(--tx); font: 500 13px/1.45 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-feature-history-row p { margin: 3px 0 0; color: var(--tx-3); font: 400 12px/1.5 var(--font-body); }
.dashboard-shell .bot-center-layout :is(.empty-state, .error-state) { padding: 28px 20px; color: var(--tx-2); }
.dashboard-shell .bot-center-layout :is(.empty-state, .error-state) > svg { width: 22px; height: 22px; color: var(--tx-3); }
.dashboard-shell .bot-center-layout :is(.empty-state, .error-state) strong { color: var(--tx); font: 600 14px/1.4 var(--font-body); }
.dashboard-shell .bot-center-layout :is(.empty-state, .error-state) p { color: var(--tx-3); font: 400 12.5px/1.55 var(--font-body); }
.dashboard-shell .bot-center-layout :is(.bot-command-inline-error, .bot-command-editor-error, .bot-inline-error) {
  border: 1px solid #ef8f8640; border-radius: 10px; background: var(--bad-bg); color: #f6c0ba;
}
.dashboard-shell .bot-center-layout .banner { border-radius: 10px; }

/* ---- 10. Превью «Как это видит чат» ---- */
.dashboard-shell .bot-center-layout .bot-chat-preview { padding: 14px; border: 1px solid var(--bd-soft); border-radius: 10px; background: var(--bg-sunken); }
.dashboard-shell .bot-center-layout :is(.bot-chat-preview-msg, .bot-chat-preview-viewer, .bot-chat-preview-event) { border-radius: 8px; background-color: #1f2328; border: 1px solid var(--bd-soft); }
.dashboard-shell .bot-center-layout .bot-chat-preview-head span { font: 500 10.5px/1 var(--font-body); letter-spacing: .02em; }

/* ---- 11. Обзор ---- */
.dashboard-shell .bot-overview-panel .bot-overview-hero {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin: 0 0 16px; padding: 18px 20px;
  border: 1px solid var(--bd); border-radius: var(--r-card); background-color: var(--bg-card); overflow: visible; min-height: 0;
}
.dashboard-shell .bot-overview-panel .bot-overview-hero.is-warn { border-color: #e3b25e55; background-color: #231f18; }
.dashboard-shell .bot-overview-hero-mark { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: #ffffff0a; color: var(--tx-2); }
.dashboard-shell .bot-overview-hero.is-warn .bot-overview-hero-mark { background: var(--warn-bg); color: var(--warn); }
.dashboard-shell .bot-overview-hero-mark svg { width: 18px; height: 18px; }
.dashboard-shell .bot-overview-hero-copy { flex: 1 1 320px; min-width: 0; }
.dashboard-shell .bot-overview-hero-copy h2 { margin: 0 0 4px; color: var(--tx); font: 650 16px/1.35 var(--font-body); }
.dashboard-shell .bot-overview-hero-copy p { margin: 0; color: var(--tx-2); font: 400 13px/1.55 var(--font-body); }
.dashboard-shell .bot-overview-hero > .button { flex: none; }

.dashboard-shell .bot-center-layout .bot-hub { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.dashboard-shell .bot-center-layout .bot-hub-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.dashboard-shell .bot-center-layout .bot-hub-side { position: sticky; top: calc(var(--header-h, 56px) + 16px); display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.dashboard-shell .bot-center-layout .bot-hub-status {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; overflow: hidden;
}
.dashboard-shell .bot-center-layout .bot-hub-status-row { display: flex; flex-direction: column; justify-content: flex-start; gap: 6px; min-width: 0; padding: 14px 18px; font-size: 12px; }
.dashboard-shell .bot-center-layout .bot-hub-status-row + .bot-hub-status-row { border-left: 1px solid var(--bd-soft); }
.dashboard-shell .bot-center-layout .bot-hub-status-row span { color: var(--tx-3); font: 400 12px/1.4 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-hub-status-row b { color: var(--tx); font: 600 14px/1.35 var(--font-body); overflow-wrap: anywhere; }
.dashboard-shell .bot-center-layout .bot-hub-status-row b.is-ok { color: #b6e2c9; }
.dashboard-shell .bot-center-layout .bot-hub-status-row b.is-warn { color: #f0d39e; }

.dashboard-shell .bot-center-layout .bot-hub-block { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.dashboard-shell .bot-center-layout .bot-hub-block-head { display: flex; align-items: baseline; gap: 10px; margin: 0; padding: 0; border: 0; }
.dashboard-shell .bot-center-layout .bot-hub-block-head h3 { margin: 0; color: var(--tx); font: 600 15px/1.35 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-hub-block-head > span { color: var(--tx-3); font: 500 13px/1 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-hub-group-title { margin: 8px 0 -2px; padding: 0; border: 0; color: var(--tx-3); font: 500 12px/1.4 var(--font-body); letter-spacing: .02em; text-transform: none; }
.dashboard-shell .bot-center-layout .bot-hub-list { display: flex; flex-direction: column; border: 1px solid var(--bd); border-radius: var(--r-card); background: var(--bg-card); overflow: hidden; }

.dashboard-shell .bot-center-layout .bot-overview-card {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 4px 14px;
  min-height: 64px; margin: 0; padding: 12px 16px; border: 0; border-radius: 0; background: none; opacity: 1;
}
.dashboard-shell .bot-center-layout .bot-overview-card + .bot-overview-card { border-top: 1px solid var(--bd-soft); }
.dashboard-shell .bot-center-layout .bot-overview-card:hover { background: #ffffff05; border-color: var(--bd-soft); }
.dashboard-shell .bot-center-layout .bot-overview-card-icon { display: block; width: 18px; height: 18px; margin: 0; padding: 0; border: 0; background: none; color: var(--tx-3); }
.dashboard-shell .bot-center-layout .bot-overview-card.is-on .bot-overview-card-icon { color: var(--accent-tx); }
.dashboard-shell .bot-center-layout .bot-overview-card-icon svg { display: block; width: 18px; height: 18px; }
.dashboard-shell .bot-center-layout .bot-overview-card-copy { min-width: 0; }
.dashboard-shell .bot-center-layout .bot-overview-card-copy h4 { margin: 0 0 2px; color: var(--tx); font: 600 13.5px/1.35 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-overview-card-stat { display: block; margin: 0; color: var(--tx-3); font: 400 12.5px/1.45 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-overview-card.is-on .bot-overview-card-stat { color: var(--tx-2); }
.dashboard-shell .bot-center-layout .bot-overview-card-actions { display: flex; align-items: center; gap: 12px; }
.dashboard-shell .bot-center-layout .bot-overview-card-open {
  display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 6px 10px; margin: 0;
  border: 1px solid var(--bd); border-radius: var(--r-ctl); background: transparent; color: var(--tx-2);
  font: 500 12.5px/1 var(--font-body); white-space: nowrap; cursor: pointer;
}
.dashboard-shell .bot-center-layout .bot-overview-card-open:hover:not(:disabled) { border-color: var(--bd-strong); background: #ffffff0a; color: var(--tx); }
.dashboard-shell .bot-center-layout .bot-overview-card-open:disabled { opacity: .45; cursor: not-allowed; }
.dashboard-shell .bot-center-layout .bot-overview-card-open svg { width: 13px; height: 13px; }
.dashboard-shell .bot-center-layout .bot-overview-switch { position: static; margin: 0; padding: 0; border: 0; background: none; }

.dashboard-shell .bot-center-layout .bot-overview-activity { padding: 16px 18px; }
.dashboard-shell .bot-center-layout .bot-overview-activity h3 { margin: 0 0 12px; color: var(--tx); font: 600 14px/1.35 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-overview-activity-empty { margin: 0; color: var(--tx-3); font: 400 12.5px/1.55 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-overview-activity-list { margin: 0; padding: 0; list-style: none; }
.dashboard-shell .bot-center-layout .bot-overview-activity-list li {
  position: relative; display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: start; gap: 10px;
  padding: 9px 0; border: 0; border-top: 1px solid var(--bd-soft); background: none;
}
.dashboard-shell .bot-center-layout .bot-overview-activity-list li:first-child { border-top: 0; padding-top: 0; }
.dashboard-shell .bot-center-layout .bot-overview-activity-list li::before,
.dashboard-shell .bot-center-layout .bot-overview-activity-list li::after,
.dashboard-shell .bot-center-layout .bot-overview-activity-list::before { display: none !important; }
.dashboard-shell .bot-center-layout .bot-overview-activity-dot { position: static; width: 7px; height: 7px; margin-top: 6px; border: 0; border-radius: 50%; background: var(--ok); }
.dashboard-shell .bot-center-layout .bot-overview-activity-list li.is-failed .bot-overview-activity-dot { background: var(--bad); }
.dashboard-shell .bot-center-layout .bot-overview-activity-list strong { display: block; color: var(--tx); font: 500 12.5px/1.4 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-overview-activity-list small { display: block; margin-top: 1px; color: var(--tx-3); font: 400 12px/1.45 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-overview-activity-list li.is-failed small { color: #f6c0ba; }
.dashboard-shell .bot-center-layout .bot-overview-activity-list time { color: var(--tx-3); font: 400 11.5px/1.4 var(--font-body); white-space: nowrap; }

/* ---- 12. Подключение ---- */
.dashboard-shell .bot-center-layout .bot-connection-layout { display: flex; flex-direction: column; align-items: stretch; gap: 16px; max-width: 880px; }
.dashboard-shell .bot-center-layout .bot-connection-layout > .bot-account-panel { margin: 0; }
.dashboard-shell .bot-center-layout .bot-overview-head { align-items: center; }
.dashboard-shell .bot-center-layout .bot-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dashboard-shell .bot-center-layout .bot-identity h2 { margin: 0 0 3px; color: var(--tx); font: 650 17px/1.3 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-identity p { margin: 0; color: var(--tx-3); font: 400 12.5px/1.5 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-identity strong { color: var(--tx-2); font-weight: 500; }
.dashboard-shell .bot-center-layout .bot-overall-state {
  display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 0 11px;
  border: 1px solid var(--bd); border-radius: 999px; background: #ffffff06; color: var(--tx-2); font: 500 12.5px/1 var(--font-body);
}
.dashboard-shell .bot-center-layout .bot-overall-state svg { width: 14px; height: 14px; }
.dashboard-shell .bot-center-layout .bot-overall-state.is-ok { border-color: #7fc59f38; background: var(--ok-bg); color: #b6e2c9; }
.dashboard-shell .bot-center-layout .bot-overall-state.is-warn { border-color: #e3b25e38; background: var(--warn-bg); color: #f0d39e; }
.dashboard-shell .bot-center-layout .bot-overall-state.is-err { border-color: #ef8f8638; background: var(--bad-bg); color: #f6c0ba; }
.dashboard-shell .bot-center-layout .bot-overview-body { display: block; padding: 18px 20px 20px; }
.dashboard-shell .bot-center-layout .bot-overview-copy h3 { margin: 0 0 6px; color: var(--tx); font: 600 15px/1.35 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-overview-copy > p { margin: 0 0 14px; color: var(--tx-2); font: 400 13px/1.55 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-primary-action { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: 0; padding: 0; border: 0; background: none; }
.dashboard-shell .bot-center-layout .bot-primary-action p { margin: 0; flex: 1 1 260px; color: var(--tx-3); font: 400 12.5px/1.55 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-primary-action.is-ready { gap: 12px; }
.dashboard-shell .bot-center-layout .bot-ready-seal { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border: 0; border-radius: 50%; background: var(--ok-bg); color: var(--ok); }
.dashboard-shell .bot-center-layout .bot-ready-seal svg { width: 16px; height: 16px; }
.dashboard-shell .bot-center-layout .bot-primary-action strong { color: var(--tx); font: 600 13.5px/1.4 var(--font-body); }
.dashboard-shell .bot-center-layout :is(.bot-manual, .bot-missing-scopes, .bot-technical-error, .bot-inline-error) { margin: 0 20px 20px; }
.dashboard-shell .bot-center-layout .bot-manual { padding: 16px; border: 1px solid #e3b25e40; border-radius: 10px; background: #221e17; }
.dashboard-shell .bot-center-layout .bot-missing-scopes { border: 1px solid var(--bd); border-radius: 10px; }

.dashboard-shell .bot-center-layout details.bot-readiness { padding: 0; overflow: hidden; }
.dashboard-shell .bot-center-layout .bot-readiness-summary { display: flex; align-items: center; gap: 16px; padding: 16px 20px; cursor: pointer; list-style: none; }
.dashboard-shell .bot-center-layout .bot-readiness-summary::-webkit-details-marker { display: none; }
.dashboard-shell .bot-center-layout .bot-readiness-summary-copy { flex: 1; min-width: 0; }
.dashboard-shell .bot-center-layout .bot-readiness-summary h2 { margin: 0 0 2px; color: var(--tx); font: 600 15px/1.35 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-readiness-summary small { color: var(--tx-3); font: 400 12px/1.4 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-readiness-meter { position: relative; width: 120px; height: 6px; flex: none; border-radius: 999px; background: #ffffff10; overflow: hidden; }
.dashboard-shell .bot-center-layout .bot-readiness-meter i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--ok); }
.dashboard-shell .bot-center-layout .bot-readiness-summary > svg { width: 14px; height: 14px; flex: none; color: var(--tx-3); transition: transform .15s; }
.dashboard-shell .bot-center-layout details.bot-readiness[open] .bot-readiness-summary > svg { transform: rotate(90deg); }
.dashboard-shell .bot-center-layout .bot-readiness-lead { margin: 0; padding: 0 20px 6px; color: var(--tx-3); font: 400 12.5px/1.55 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-readiness-list { margin: 0; padding: 0 20px; list-style: none; counter-reset: none; }
.dashboard-shell .bot-center-layout .bot-readiness-row {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 12px 0; border: 0; border-top: 1px solid var(--bd-soft); border-radius: 0; background: none;
}
.dashboard-shell .bot-center-layout .bot-readiness-row::before,
.dashboard-shell .bot-center-layout .bot-readiness-row::after { display: none !important; }
.dashboard-shell .bot-center-layout .bot-readiness-index {
  display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--bd-strong); border-radius: 50%;
  background: none; color: var(--tx-3); font: 600 11px/1 var(--font-body);
}
.dashboard-shell .bot-center-layout .bot-readiness-row.is-done .bot-readiness-index { border-color: transparent; background: var(--ok-bg); color: var(--ok); }
.dashboard-shell .bot-center-layout .bot-readiness-index svg { width: 12px; height: 12px; }
.dashboard-shell .bot-center-layout .bot-readiness-icon { display: none; }
.dashboard-shell .bot-center-layout .bot-readiness-copy strong { display: block; color: var(--tx); font: 500 13px/1.4 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-readiness-copy small { display: block; margin-top: 2px; color: var(--tx-3); font: 400 12px/1.5 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-state { display: inline-flex; align-items: center; gap: 6px; color: var(--tx-3); font: 500 12px/1 var(--font-body); white-space: nowrap; }
.dashboard-shell .bot-center-layout .bot-state svg { width: 13px; height: 13px; }
.dashboard-shell .bot-center-layout .bot-state.is-ok { color: #b6e2c9; }
.dashboard-shell .bot-center-layout .bot-state.is-warn { color: #f0d39e; }
.dashboard-shell .bot-center-layout .bot-state.is-err { color: #f6c0ba; }
.dashboard-shell .bot-center-layout .bot-readiness-foot {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: 0; padding: 14px 20px;
  border-top: 1px solid var(--bd-soft); color: var(--tx-3); font: 400 12px/1.4 var(--font-body);
}
.dashboard-shell .bot-center-layout .bot-readiness-foot > span { flex: 1 1 auto; }
.dashboard-shell .bot-center-layout .bot-deactivate { padding: 7px 10px; border: 1px solid transparent; border-radius: var(--r-ctl); background: none; color: #f0a79f; font: 500 12.5px/1 var(--font-body); cursor: pointer; }
.dashboard-shell .bot-center-layout .bot-deactivate:hover:not(:disabled) { border-color: #ef8f8640; background: var(--bad-bg); }

/* Аккаунт бота (общий FoxChats или личный) */
.dashboard-shell .bot-center-layout .bot-account-panel { gap: 14px; margin: 0 0 16px; padding: 20px; }
.dashboard-shell .bot-center-layout .bot-account-panel h2 { margin: 0; color: var(--tx); font: 600 15px/1.35 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-account-panel > p,
.dashboard-shell .bot-center-layout .bot-account-panel .bot-account-hint { color: var(--tx-3); font: 400 12.5px/1.55 var(--font-body); }
.dashboard-shell .bot-center-layout :is(.bot-account-badge, .bot-account-choice) { border-color: var(--bd); color: var(--tx-2); font: 500 12px/1 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-account-option { border-color: var(--bd); border-radius: 10px; background: var(--bg-sunken); }
.dashboard-shell .bot-center-layout .bot-account-option.is-selected { border-color: #ff6a2b80; background: #ff6a2b0d; }
.dashboard-shell .bot-center-layout .bot-account-option.is-selected .bot-account-choice { border-color: #ff6a2b66; color: var(--accent-tx); }
.dashboard-shell .bot-center-layout .bot-account-symbol { border-radius: 10px; background: #2a2e35; color: var(--tx-2); }
.dashboard-shell .bot-center-layout .bot-account-copy strong { font: 600 14px/1.35 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-account-copy > span { color: var(--tx-3); font-size: 12.5px; }

/* ---- 13. Раздел «С возвращением» внутри меню бота ---- */
.dashboard-shell .bot-center-layout.is-static .bot-welcome-page .vt-layout { margin-top: 0; }
.dashboard-shell .bot-center-layout.is-static .bot-welcome-page .tg-step-num { display: none; }
.dashboard-shell .bot-center-layout.is-static .bot-welcome-page .tg-step-head h2 { font: 600 15px/1.35 var(--font-body); letter-spacing: 0; text-transform: none; }

/* ---- 15. Выключатели: один вид во всём разделе, включено — оранжевым ---- */
.dashboard-shell .bot-center-layout .bot-command-enable { width: auto; min-width: 44px; min-height: 40px; margin: 0; }
.dashboard-shell .bot-center-layout .bot-command-enable i { width: 36px; height: 20px; border: 1px solid var(--bd-strong); border-radius: 999px; background: #2a2e35; }
.dashboard-shell .bot-center-layout .bot-command-enable i::after { top: 3px; left: 3px; width: 12px; height: 12px; background: #9aa3b0; }
.dashboard-shell .bot-center-layout .bot-command-enable input:checked + i { border-color: var(--accent); background: var(--accent); }
.dashboard-shell .bot-center-layout .bot-command-enable input:checked + i::after { background: #fff; transform: translateX(16px); }
.dashboard-shell .bot-center-layout .bot-command-enable input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- 16. Команды и игры: строки вместо таблицы ---- */
.dashboard-shell .bot-center-layout .bot-command-card { overflow: hidden; }
.dashboard-shell .bot-center-layout .bot-command-card-head { align-items: center; padding: 16px 20px; }
.dashboard-shell .bot-center-layout .bot-command-card-head h2 { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.dashboard-shell .bot-center-layout .bot-command-count { color: var(--tx-3); font: 500 13px/1 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-command-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; padding: 14px 20px;
  border: 0; border-bottom: 1px solid var(--bd-soft); border-radius: 0; background: none;
}
.dashboard-shell .bot-center-layout .bot-command-toolbar > label { margin: 0; }
.dashboard-shell .bot-center-layout .bot-command-search { position: relative; display: flex; align-items: center; flex: 1 1 220px; width: auto; min-width: 0; }
.dashboard-shell .bot-center-layout .bot-command-search > svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; margin: 0; transform: translateY(-50%); color: var(--tx-3); pointer-events: none; z-index: 1; }
.dashboard-shell .bot-center-layout .bot-command-search .input { width: 100%; padding-left: 38px; }
.dashboard-shell .bot-center-layout .bot-command-sort { flex: 0 0 190px; width: 190px; min-width: 0; }
.dashboard-shell .bot-center-layout .bot-command-sort .select { width: 100%; min-width: 0; }
.dashboard-shell .bot-center-layout .bot-command-filters-toggle b { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 2px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #1a0e07; font: 700 11px/1 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-command-toolbar-extra { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 12px 20px; border: 0; border-bottom: 1px solid var(--bd-soft); background: var(--bg-sunken); }

.dashboard-shell .bot-center-layout .bot-seg { display: inline-flex; flex: none; gap: 2px; padding: 3px; border: 1px solid var(--bd); border-radius: 10px; background: var(--bg-sunken); }
.dashboard-shell .bot-center-layout .bot-seg-item { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
.dashboard-shell .bot-center-layout .bot-seg-item input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.dashboard-shell .bot-center-layout .bot-seg-item span { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 0 12px; border-radius: 7px; color: var(--tx-2); font: 500 12.5px/1 var(--font-body); white-space: nowrap; }
.dashboard-shell .bot-center-layout .bot-seg-item:hover span { color: var(--tx); }
.dashboard-shell .bot-center-layout .bot-seg-item input:checked + span { background: #2d323a; color: var(--tx); }
.dashboard-shell .bot-center-layout .bot-seg-item input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }

.dashboard-shell .bot-center-layout .bot-command-bulk {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin: 0; padding: 10px 20px; border: 0; border-bottom: 1px solid var(--bd-soft); border-radius: 0; background: var(--accent-bg);
}
.dashboard-shell .bot-center-layout .bot-command-bulk strong { color: var(--tx); font: 600 13px/1.3 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-command-bulk > div { display: flex; flex-wrap: wrap; gap: 8px; }

.dashboard-shell .bot-center-layout .bot-command-list-head { display: none !important; }
.dashboard-shell .bot-center-layout .bot-command-list { display: flex; flex-direction: column; margin: 0; padding: 0; border: 0; }
.dashboard-shell .bot-center-layout .bot-command-row-item {
  display: grid; grid-template-columns: 20px minmax(0, 1fr) auto auto; grid-template-areas: none; align-items: center; gap: 0 14px;
  min-height: 0; margin: 0; padding: 0 12px 0 20px; border: 0; border-top: 1px solid var(--bd-soft); border-radius: 0; background: none; opacity: 1;
}
.dashboard-shell .bot-center-layout .bot-command-list > .bot-command-row-item:first-child { border-top: 0; }
.dashboard-shell .bot-center-layout .bot-command-row-item:is(:hover, :focus-within) { background: #ffffff05; }
.dashboard-shell .bot-center-layout .bot-command-row-item.is-selected { background: var(--accent-bg); }
.dashboard-shell .bot-center-layout .bot-command-row-item > * { grid-area: auto; }
.dashboard-shell .bot-center-layout .bot-command-select { position: relative; display: grid; place-items: center; width: 20px; height: 20px; margin: 0; }
.dashboard-shell .bot-center-layout .bot-command-select input { inset: 0; width: 100%; height: 100%; margin: 0; }
.dashboard-shell .bot-center-layout .bot-command-select span { width: 16px; height: 16px; border: 1px solid var(--bd-strong); border-radius: 4px; background: transparent; }
.dashboard-shell .bot-center-layout .bot-command-select input:checked + span { border-color: var(--accent); background: var(--accent); }
.dashboard-shell .bot-center-layout .bot-command-select input:checked + span::after { border-color: #1a0e07; }
.dashboard-shell .bot-center-layout .bot-command-select input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.dashboard-shell .bot-center-layout .bot-command-open {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; min-width: 0; margin: 0; padding: 14px 0;
  border: 0; border-radius: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.dashboard-shell .bot-center-layout .bot-command-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.dashboard-shell .bot-center-layout .bot-command-title { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; min-width: 0; max-width: 100%; margin: 0; }
.dashboard-shell .bot-center-layout .bot-command-title code {
  padding: 2px 7px; border: 0; border-radius: 6px; background: #ff6a2b14; color: var(--accent-tx);
  font: 600 12.5px/1.45 var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); overflow-wrap: anywhere;
}
.dashboard-shell .bot-center-layout .bot-command-title strong { color: var(--tx); font: 600 14px/1.35 var(--font-body); overflow-wrap: anywhere; }
.dashboard-shell .bot-center-layout .bot-command-title .status-chip { min-height: 22px; padding: 0 8px; font-size: 11.5px; }
.dashboard-shell .bot-center-layout .bot-command-reply { display: flex; align-items: baseline; gap: 8px; max-width: 100%; min-width: 0; color: var(--tx-2); font: 400 13px/1.5 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-command-reply-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-shell .bot-center-layout .bot-command-reply.is-description { color: var(--tx-3); }
.dashboard-shell .bot-center-layout .bot-command-reply-more { flex: none; padding: 1px 7px; border: 1px solid var(--bd); border-radius: 999px; color: var(--tx-3); font: 500 11px/1.4 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-command-meta { display: flex; flex-wrap: wrap; color: var(--tx-3); font: 400 12px/1.45 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-command-meta span + span::before { content: '·'; margin: 0 7px; color: #5b626d; }
.dashboard-shell .bot-center-layout .bot-command-row-item.is-off :is(.bot-command-title strong, .bot-command-reply) { color: var(--tx-3); }
.dashboard-shell .bot-center-layout .bot-command-row-item.is-off .bot-command-title code { background: #ffffff0a; color: var(--tx-2); }
.dashboard-shell .bot-center-layout .bot-command-actions { display: flex; align-items: center; gap: 2px; }
.dashboard-shell .bot-center-layout .bot-command-actions .bot-command-icon-button { width: 32px; height: 32px; border-color: transparent; color: var(--tx-3); }
.dashboard-shell .bot-center-layout .bot-command-actions .bot-command-icon-button:hover:not(:disabled) { border-color: var(--bd); color: var(--tx); }
.dashboard-shell .bot-center-layout .bot-command-more { margin: 0; padding: 14px 20px; border-top: 1px solid var(--bd-soft); text-align: center; }
.dashboard-shell .bot-center-layout .bot-command-empty { text-align: center; }
.dashboard-shell .bot-center-layout .bot-command-page-head .button:not(.secondary):not(.ghost-button) { min-height: 38px; padding: 9px 16px; }

/* ---- 17. Таймеры: строка «что пишет · когда», форма создания — узкой колонкой ---- */
/* Контейнер — на самих разделах, не на обёртке: иначе обёртка стала бы опорой для
   фиксированной панели справа (layout containment), и панель уехала бы внутрь страницы. */
.dashboard-shell .bot-center-layout :is(.bot-page, .bot-page-behind) { container: botpage / inline-size; }
.dashboard-shell .bot-center-layout .bot-timers-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.dashboard-shell .bot-center-layout .bot-timers-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dashboard-shell .bot-center-layout .bot-timer-quick { position: sticky; top: calc(var(--header-h, 56px) + 16px); overflow: hidden; }
.dashboard-shell .bot-center-layout .bot-timer-quick-head { padding: 16px 18px 0; border: 0; background: none; }
.dashboard-shell .bot-center-layout .bot-timer-quick-head span { color: var(--tx); font: 600 15px/1.35 var(--font-body); letter-spacing: 0; text-transform: none; }
.dashboard-shell .bot-center-layout .bot-timer-quick form { gap: 12px; padding: 12px 18px 18px; }
.dashboard-shell .bot-center-layout .bot-timer-quick form > .button { align-self: flex-start; }
@container botpage (max-width: 760px) {
  .dashboard-shell .bot-center-layout .bot-timers-layout { grid-template-columns: minmax(0, 1fr); }
  .dashboard-shell .bot-center-layout .bot-timer-quick { position: static; }
}
.dashboard-shell .bot-center-layout .bot-announcement-list { display: flex; flex-direction: column; margin: 0; padding: 0; }
.dashboard-shell .bot-center-layout .bot-announcement-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: none; align-items: center; gap: 0 12px;
  min-height: 0; margin: 0; padding: 0 12px 0 16px; border: 0; border-top: 1px solid var(--bd-soft); border-radius: 0; background: none; opacity: 1;
}
.dashboard-shell .bot-center-layout .bot-announcement-row:first-child { border-top: 0; }
.dashboard-shell .bot-center-layout .bot-announcement-row > * { grid-area: auto !important; }
.dashboard-shell .bot-center-layout .bot-announcement-row:is(:hover, :focus-within) { background: #ffffff05; }
.dashboard-shell .bot-center-layout .bot-announcement-row-main {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; min-width: 0; margin: 0; padding: 14px 0;
  border: 0; border-radius: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.dashboard-shell .bot-center-layout .bot-announcement-row-main:hover { background: none; }
.dashboard-shell .bot-center-layout .bot-announcement-row-main:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.dashboard-shell .bot-center-layout .bot-announcement-row-title { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.dashboard-shell .bot-center-layout .bot-announcement-row-title strong { color: var(--tx); font: 600 14px/1.35 var(--font-body); overflow-wrap: anywhere; }
.dashboard-shell .bot-center-layout .bot-announcement-row-text { max-width: 100%; overflow: hidden; color: var(--tx-2); font: 400 13px/1.5 var(--font-body); text-overflow: ellipsis; white-space: nowrap; }
.dashboard-shell .bot-center-layout .bot-announcement-row-text.is-empty { color: var(--tx-3); font-style: italic; }
.dashboard-shell .bot-center-layout .bot-announcement-row.is-off :is(.bot-announcement-row-title strong, .bot-announcement-row-text) { color: var(--tx-3); }
.dashboard-shell .bot-center-layout .bot-announcement-type-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 22px; padding: 0 8px; border: 1px solid var(--bd); border-radius: 999px;
  background: none; color: var(--tx-2); font: 500 11.5px/1 var(--font-body); letter-spacing: 0; text-transform: none;
}
.dashboard-shell .bot-center-layout .bot-announcement-type-chip i { display: none; }
.dashboard-shell .bot-center-layout .bot-announcement-row-actions { display: flex; gap: 2px; }
.dashboard-shell .bot-center-layout .bot-announcement-row-actions .bot-command-icon-button { width: 32px; height: 32px; border-color: transparent; color: var(--tx-3); }
.dashboard-shell .bot-center-layout .bot-announcement-row-actions .bot-command-icon-button.is-danger:hover:not(:disabled) { border-color: #ef8f8640; background: var(--bad-bg); color: #f6c0ba; }
@media (max-width: 640px) {
  .dashboard-shell .bot-center-layout .bot-announcement-row { padding: 0 6px 0 12px; gap: 0 8px; }
  .dashboard-shell .bot-center-layout .bot-announcement-row-text { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

/* ---- 18. Сообщения о событиях: список событий слева, сообщение справа ---- */
.dashboard-shell .bot-center-layout .bot-notification-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 16px; align-items: start; }
@container botpage (max-width: 700px) {
  .dashboard-shell .bot-center-layout .bot-notification-layout { grid-template-columns: minmax(0, 1fr); }
  .dashboard-shell .bot-center-layout .bot-notification-nav-list { display: flex; flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; padding: 8px; gap: 6px; }
  .dashboard-shell .bot-center-layout .bot-notification-nav-item { flex: none; width: auto; border: 1px solid var(--bd-soft); border-radius: var(--r-ctl); }
}
.dashboard-shell .bot-center-layout .bot-notification-nav { padding: 0; overflow: hidden; }
.dashboard-shell .bot-center-layout .bot-notification-nav > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--bd-soft); background: none; }
.dashboard-shell .bot-center-layout .bot-notification-nav > header h3 { margin: 0; color: var(--tx); font: 600 14px/1.35 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-notification-nav > header .bot-announcement-count { color: var(--tx-3); font: 500 12.5px/1 var(--font-body); border: 0; background: none; padding: 0; }
.dashboard-shell .bot-center-layout .bot-notification-nav-list { display: flex; flex-direction: column; gap: 1px; max-height: min(640px, calc(100vh - 220px)); margin: 0; padding: 6px; overflow-y: auto; scrollbar-width: thin; }
.dashboard-shell .bot-center-layout .bot-notification-nav-item {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; margin: 0; padding: 8px 10px;
  border: 0; border-radius: 7px; background: none; color: var(--tx-2); text-align: left; cursor: pointer;
}
.dashboard-shell .bot-center-layout .bot-notification-nav-item:hover { background: #ffffff08; }
.dashboard-shell .bot-center-layout .bot-notification-nav-item.is-selected { background: var(--accent-bg); }
.dashboard-shell .bot-center-layout .bot-notification-nav-item > span { display: flex; flex-direction: column; min-width: 0; }
.dashboard-shell .bot-center-layout .bot-notification-nav-item strong { color: var(--tx); font: 500 13px/1.35 var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dashboard-shell .bot-center-layout .bot-notification-nav-item.is-selected strong { color: var(--accent-tx); }
.dashboard-shell .bot-center-layout .bot-notification-nav-item small { color: var(--tx-3); font: 400 11.5px/1.35 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-notification-nav-item .status-chip { display: none; }
.dashboard-shell .bot-center-layout .bot-notification-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: #4a515b; }
.dashboard-shell .bot-center-layout .bot-notification-dot.is-on { background: var(--ok); }
.dashboard-shell .bot-center-layout .bot-notification-dot.is-warn { background: var(--warn); }
.dashboard-shell .bot-center-layout :is(.bot-notification-editor, .bot-notification-history) { min-width: 0; }
.dashboard-shell .bot-center-layout .bot-command-variable-chip,
.dashboard-shell .bot-center-layout :is(.bot-variable-list, .bot-notification-variables) button {
  border: 1px solid var(--bd); border-radius: 6px; background: #ffffff05; color: var(--tx-2);
}
.dashboard-shell .bot-center-layout .bot-command-variable-chip:hover,
.dashboard-shell .bot-center-layout :is(.bot-variable-list, .bot-notification-variables) button:hover { border-color: var(--bd-strong); background: #ffffff0a; color: var(--tx); }

/* ---- 14. Узкие экраны ---- */
@media (max-width: 1080px) {
  .dashboard-shell .bot-center-layout .bot-hub { grid-template-columns: minmax(0, 1fr); }
  .dashboard-shell .bot-center-layout .bot-hub-side { position: static; }
}
@media (max-width: 640px) {
  .dashboard-shell .bot-shell-head { gap: 12px; }
  .dashboard-shell .bot-shell-mark { width: 44px; height: 44px; border-radius: 12px; }
  .dashboard-shell .bot-shell-mark svg { width: 24px; height: 24px; }
  .dashboard-shell .bot-shell-title h1 { font-size: 21px; }
  .dashboard-shell .bot-shell-status span { display: none; }
  .dashboard-shell .bot-shell-connect { width: 40px; min-width: 40px; height: 40px; padding: 0; justify-content: center; }
  .dashboard-shell .bot-shell-connect span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .dashboard-shell .bot-tabs { gap: 22px; margin: 0 -16px 18px; padding: 0 16px; }
  .dashboard-shell .bot-center-layout .bot-hub-status { grid-template-columns: minmax(0, 1fr); }
  .dashboard-shell .bot-center-layout .bot-hub-status-row { flex-direction: row; align-items: baseline; justify-content: space-between; padding: 11px 16px; }
  .dashboard-shell .bot-center-layout .bot-hub-status-row + .bot-hub-status-row { border-left: 0; border-top: 1px solid var(--bd-soft); }
  .dashboard-shell .bot-center-layout .bot-overview-card { grid-template-columns: 18px minmax(0, 1fr); padding: 12px 14px; }
  .dashboard-shell .bot-center-layout .bot-overview-card-actions { grid-column: 2; justify-content: space-between; }
  .dashboard-shell .bot-center-layout .bot-readiness-meter { width: 64px; }
  .dashboard-shell .bot-center-layout :is(.bot-automod-card-head, .bot-command-card-head, .bot-automod-overview-head, .bot-section-head, .bot-overview-head) { padding: 16px 16px 12px; }
  .dashboard-shell .bot-center-layout .bot-overview-body { padding: 16px; }
  .dashboard-shell .bot-center-layout :is(.bot-feature-save-bar, .bot-automod-card-actions, .bot-readiness-foot) { padding: 12px 16px; }
  .dashboard-shell .bot-center-layout :is(.bot-feature-history-list, .bot-readiness-list) { padding: 0 16px; }
}

/* Команды на телефоне: действия — под строкой, фильтры — во всю ширину. */
@media (max-width: 640px) {
  .dashboard-shell .bot-center-layout .bot-command-toolbar { padding: 12px 14px; }
  .dashboard-shell .bot-center-layout .bot-seg { display: flex; width: 100%; }
  .dashboard-shell .bot-center-layout .bot-seg-item { flex: 1 1 0; }
  .dashboard-shell .bot-center-layout .bot-seg-item span { width: 100%; padding: 0 6px; }
  .dashboard-shell .bot-center-layout :is(.bot-command-sort, .bot-command-filters-toggle) { flex: 1 1 140px; width: auto; }
  .dashboard-shell .bot-center-layout .bot-command-sort .select { width: 100%; min-width: 0; }
  .dashboard-shell .bot-center-layout .bot-command-row-item { grid-template-columns: 20px minmax(0, 1fr) auto; padding: 0 8px 0 14px; column-gap: 10px; }
  .dashboard-shell .bot-center-layout .bot-command-actions { grid-column: 2 / -1; justify-content: flex-start; margin: -8px 0 8px -6px; }
  .dashboard-shell .bot-center-layout .bot-command-reply-text { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .dashboard-shell .bot-center-layout .bot-command-card-head { padding: 14px; }
}

/* =========================================================================
   25.09.2026 · Разделы Twitch-бота по макету «пять вкладок».
   ========================================================================= */

/* ---- 19. Общее для разделов ---- */
.dashboard-shell .bot-center-layout :is(.bot-hub-page, .bot-page-behind) { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.dashboard-shell .bot-center-layout .bot-hub-lead { margin: -8px 0 0; color: var(--tx-2); font: 400 13px/1.55 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-hub-section { display: flex; flex-direction: column; gap: 12px; min-width: 0; margin: 0; }
.dashboard-shell .bot-center-layout .bot-hub-section-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin: 0; padding: 0; border: 0; }
.dashboard-shell .bot-center-layout .bot-hub-section-head h2 { margin: 0; color: var(--tx); font: 600 16px/1.35 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-hub-section-meta { color: var(--tx-3); font: 500 12.5px/1.3 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-hub-section-action { margin-left: auto; }
.dashboard-shell .bot-center-layout .bot-hub-loading { display: grid; gap: 8px; }
.dashboard-shell .bot-center-layout .bot-hub-loading .bot-skeleton-row { display: block; height: 64px; border-radius: var(--r-card); background: #1f2227; }
.dashboard-shell .bot-center-layout .bot-inline-link { display: inline; margin: 0; padding: 0; border: 0; background: none; color: var(--accent-tx); font: inherit; text-decoration: underline; text-decoration-color: #ffb18f66; text-underline-offset: 3px; cursor: pointer; }
.dashboard-shell .bot-center-layout .bot-drawer-note { margin: 0; padding: 12px 14px; border: 1px solid var(--bd-soft); border-radius: 10px; background: #1c1f24; color: var(--tx-2); font: 400 12.5px/1.55 var(--font-body); }

/* Строка «как это видит чат» — одна и та же во всех разделах */
.dashboard-shell .bot-center-layout .bot-chat-line { display: flex; gap: 10px; min-width: 0; padding: 11px 12px; border: 1px solid var(--bd-soft); border-radius: 10px; background: var(--bg-sunken); }
.dashboard-shell .bot-center-layout .bot-chat-ava { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border: 1px solid #ff6a2b55; border-radius: 50%; background: #241a14; color: #ff8a55; }
.dashboard-shell .bot-center-layout .bot-chat-ava svg { width: 15px; height: 15px; }
.dashboard-shell .bot-center-layout .bot-chat-body { min-width: 0; flex: 1 1 auto; }
.dashboard-shell .bot-center-layout .bot-chat-who { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 3px; }
.dashboard-shell .bot-center-layout .bot-chat-who b { color: #ff9a5e; font: 600 12px/1.3 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-chat-tag { display: inline-flex; align-items: center; gap: 5px; height: 18px; padding: 0 7px; border-radius: 999px; background: #a78bfa1f; color: #cdb9ff; font: 500 11px/1 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-chat-tag i { width: 5px; height: 5px; border-radius: 50%; background: #a78bfa; }
.dashboard-shell .bot-center-layout .bot-chat-body p { margin: 0; color: #e4e8ee; font: 400 13px/1.5 var(--font-body); overflow-wrap: anywhere; }
.dashboard-shell .bot-center-layout .bot-chat-line.is-announcement { border-color: #3a3150; background: #1d1a24; }
.dashboard-shell .bot-center-layout .bot-chat-line.is-off { opacity: .6; }
.dashboard-shell .bot-center-layout .bot-chat-line.is-off .bot-chat-ava { border-color: var(--bd-strong); background: #1f2328; color: var(--tx-3); }
.dashboard-shell .bot-center-layout .bot-chat-line.is-off .bot-chat-who b { color: var(--tx-3); }

.dashboard-shell .bot-center-layout .bot-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.dashboard-shell .bot-center-layout .bot-pill { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border: 1px solid var(--bd); border-radius: 999px; background: #ffffff08; color: #d8dde5; font: 500 12px/1.2 var(--font-body); }

.dashboard-shell .bot-center-layout .bot-add-card-plus { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--accent-bg); color: var(--accent-tx); }
.dashboard-shell .bot-center-layout .bot-add-card-plus svg { width: 18px; height: 18px; }

/* ---- 20. «Сообщения»: карточки таймеров ---- */
.dashboard-shell .bot-center-layout .bot-timer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: stretch; }
.dashboard-shell .bot-center-layout .bot-timer-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 18px; border: 1px solid var(--bd); border-radius: var(--r-card); background: var(--bg-card); }
.dashboard-shell .bot-center-layout .bot-timer-card-top { display: flex; align-items: center; gap: 12px; }
.dashboard-shell .bot-center-layout .bot-timer-card-ico { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--accent-bg); color: var(--accent-tx); }
.dashboard-shell .bot-center-layout .bot-timer-card.is-off .bot-timer-card-ico { background: #ffffff0a; color: var(--tx-3); }
.dashboard-shell .bot-center-layout .bot-timer-card-ico svg { width: 18px; height: 18px; }
.dashboard-shell .bot-center-layout .bot-timer-card-name { flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; border: 0; background: none; color: var(--tx); font: 600 15px/1.35 var(--font-body); text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.dashboard-shell .bot-center-layout .bot-timer-card-name:hover { color: var(--accent-tx); }
.dashboard-shell .bot-center-layout .bot-timer-card.is-off .bot-timer-card-name { color: var(--tx-2); }
.dashboard-shell .bot-center-layout .bot-timer-card .bot-chat-line { flex: 1 1 auto; }
.dashboard-shell .bot-center-layout .bot-timer-card-empty { flex: 1 1 auto; margin: 0; color: var(--tx-3); font: italic 400 12.5px/1.5 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-timer-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--bd-soft); color: var(--tx-3); font: 400 12px/1.4 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-add-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 220px; margin: 0; padding: 18px;
  border: 1px dashed #3a3f47; border-radius: var(--r-card); background: transparent; color: var(--tx-2); text-align: center; cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.dashboard-shell .bot-center-layout .bot-add-card:hover:not(:disabled) { border-color: #ff6a2b80; background: #ff6a2b08; }
.dashboard-shell .bot-center-layout .bot-add-card b { color: var(--tx); font: 600 14px/1.3 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-add-card small { max-width: 200px; color: var(--tx-3); font: 400 12px/1.5 var(--font-body); }
.dashboard-shell .bot-center-layout #bot-hub-timers > details { margin-top: 2px; }

/* ---- 21. «Сообщения»: реакции на события ---- */
.dashboard-shell .bot-center-layout .bot-event-card { padding: 0; overflow: hidden; }
.dashboard-shell .bot-center-layout .bot-event-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 0 18px 0 0; border-top: 1px solid var(--bd-soft); }
.dashboard-shell .bot-center-layout .bot-event-row:first-child { border-top: 0; }
.dashboard-shell .bot-center-layout .bot-event-row-main {
  display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); align-items: center; gap: 20px; min-width: 0; margin: 0; padding: 14px 0 14px 18px;
  border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.dashboard-shell .bot-center-layout .bot-event-row-main:hover .bot-event-row-copy b { color: var(--accent-tx); }
.dashboard-shell .bot-center-layout .bot-event-row-main:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 8px; }
.dashboard-shell .bot-center-layout .bot-event-row-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dashboard-shell .bot-center-layout .bot-event-row-copy b { color: var(--tx); font: 600 14px/1.35 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-event-row-copy small { color: var(--tx-3); font: 400 12px/1.45 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-event-row .bot-chat-line { padding: 9px 12px; }
.dashboard-shell .bot-center-layout .bot-event-row .bot-chat-body { display: flex; align-items: baseline; gap: 8px; }
.dashboard-shell .bot-center-layout .bot-event-row .bot-chat-who { flex: none; margin: 0; }
.dashboard-shell .bot-center-layout .bot-event-row .bot-chat-body p { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-shell .bot-center-layout .bot-event-row .bot-chat-ava { display: none; }
.dashboard-shell .bot-center-layout .bot-event-row.is-off .bot-event-row-copy b { color: var(--tx-2); }
.dashboard-shell .bot-center-layout .bot-event-empty { margin: 0; padding: 18px; color: var(--tx-3); font: 400 13px/1.55 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-event-add { padding: 18px; border-top: 1px solid var(--bd-soft); background: #181b1f; }
.dashboard-shell .bot-center-layout .bot-event-add-head { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.dashboard-shell .bot-center-layout .bot-event-add-head b { display: block; color: var(--tx); font: 600 14px/1.35 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-event-add-head small { display: block; color: var(--tx-3); font: 400 12px/1.45 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-event-group { display: flex; align-items: flex-start; gap: 12px; }
.dashboard-shell .bot-center-layout .bot-event-group + .bot-event-group { margin-top: 10px; }
.dashboard-shell .bot-center-layout .bot-event-group-title { width: 92px; flex: none; padding-top: 8px; color: var(--tx-3); font: 500 12px/1.3 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-event-group-chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.dashboard-shell .bot-center-layout .bot-event-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; margin: 0; padding: 0 12px;
  border: 1px solid #3a3f47; border-radius: 8px; background: #1f2328; color: #d8dde5; font: 500 12.5px/1 var(--font-body); cursor: pointer;
}
.dashboard-shell .bot-center-layout .bot-event-chip svg { width: 13px; height: 13px; color: var(--accent-tx); }
.dashboard-shell .bot-center-layout .bot-event-chip:hover { border-color: #ff6a2b88; color: var(--tx); }
.dashboard-shell .bot-center-layout .bot-event-chip small { color: var(--tx-3); font: 400 11px/1 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-event-chip.is-locked { color: var(--tx-3); }
.dashboard-shell .bot-center-layout .bot-event-chip.is-locked svg { color: var(--warn); }

/* ---- 22. Карточки простых функций («Старт эфира», «Клипы»…) ---- */
.dashboard-shell .bot-center-layout .bot-feature-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; align-items: stretch; }
.dashboard-shell .bot-center-layout .bot-feature-tile { display: flex; flex-direction: column; gap: 12px; min-width: 0; margin: 0; padding: 18px; }
.dashboard-shell .bot-center-layout .bot-feature-tile-top { display: flex; align-items: center; gap: 12px; }
.dashboard-shell .bot-center-layout .bot-feature-card-open { flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; border: 0; background: none; color: var(--tx); font: 600 15px/1.35 var(--font-body); text-align: left; cursor: pointer; }
.dashboard-shell .bot-center-layout .bot-feature-card-open::after { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 0 2px 8px; border-right: 1.6px solid var(--tx-3); border-top: 1.6px solid var(--tx-3); transform: rotate(45deg); }
.dashboard-shell .bot-center-layout .bot-feature-card-open:hover { color: var(--accent-tx); }
.dashboard-shell .bot-center-layout .bot-feature-card-state { color: var(--tx-3); font: 500 12px/1 var(--font-body); white-space: nowrap; }
.dashboard-shell .bot-center-layout .bot-feature-card-state.is-on { color: #b6e2c9; }
.dashboard-shell .bot-center-layout .bot-feature-tile-when { margin: 0; color: var(--tx-3); font: 400 12.5px/1.5 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-feature-tile-note { margin: 0; color: var(--tx-3); font: 400 12px/1.5 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-feature-tile.is-off .bot-feature-card-open { color: var(--tx-2); }
.dashboard-shell .bot-center-layout .bot-code-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.dashboard-shell .bot-center-layout .bot-code-row code { padding: 2px 7px; border-radius: 6px; background: #ff6a2b14; color: var(--accent-tx); font: 600 12.5px/1.45 var(--font-mono, ui-monospace, Menlo, monospace); }
.dashboard-shell .bot-center-layout .bot-code-row span { color: var(--tx-3); font: 400 12px/1.4 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-tool-tile .bot-chat-line { margin-top: auto; }
.dashboard-shell .bot-center-layout .bot-tool-tile-action { align-self: flex-start; }

/* ---- 23. Обзор: быстрые действия, карточки разделов, журнал ---- */
.dashboard-shell .bot-center-layout .bot-hub { grid-template-columns: minmax(0, 1fr) 340px; }
.dashboard-shell .bot-center-layout .bot-hub-main { gap: 16px; }
.dashboard-shell .bot-center-layout .bot-quick-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dashboard-shell .bot-center-layout .bot-quick {
  display: flex; align-items: center; gap: 12px; min-width: 0; margin: 0; padding: 16px;
  border: 1px solid var(--bd); border-radius: var(--r-card); background: var(--bg-card); color: var(--tx); text-align: left; cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.dashboard-shell .bot-center-layout .bot-quick:hover { border-color: #ff6a2b66; background: #202328; }
.dashboard-shell .bot-center-layout .bot-quick-plus { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--accent-bg); color: var(--accent-tx); }
.dashboard-shell .bot-center-layout .bot-quick.is-neutral .bot-quick-plus { background: #ffffff0a; color: var(--tx-2); }
.dashboard-shell .bot-center-layout .bot-quick-plus svg { width: 17px; height: 17px; }
.dashboard-shell .bot-center-layout .bot-quick b { display: block; font: 600 14px/1.3 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-quick small { display: block; margin-top: 2px; color: var(--tx-3); font: 400 12px/1.4 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-area-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.dashboard-shell .bot-center-layout .bot-area-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.dashboard-shell .bot-center-layout .bot-area-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--bd-soft); }
.dashboard-shell .bot-center-layout .bot-area-head h3 { margin: 0; color: var(--tx); font: 600 15px/1.3 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-area-meta { color: var(--tx-3); font: 500 12px/1.3 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-area-all { display: inline-flex; align-items: center; gap: 2px; margin: 0 0 0 auto; padding: 4px 2px; border: 0; background: none; color: var(--accent-tx); font: 500 13px/1 var(--font-body); cursor: pointer; }
.dashboard-shell .bot-center-layout .bot-area-all svg { width: 13px; height: 13px; }
.dashboard-shell .bot-center-layout .bot-area-all:disabled { color: var(--tx-3); cursor: not-allowed; }
.dashboard-shell .bot-center-layout .bot-overview-top { margin: 0; padding: 4px 0; list-style: none; border-bottom: 1px solid var(--bd-soft); }
.dashboard-shell .bot-center-layout .bot-overview-top button { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; padding: 8px 18px; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.dashboard-shell .bot-center-layout .bot-overview-top button:hover { background: #ffffff05; }
.dashboard-shell .bot-center-layout .bot-overview-top code { flex: none; padding: 2px 7px; border-radius: 6px; background: #ff6a2b14; color: var(--accent-tx); font: 600 12.5px/1.45 var(--font-mono, ui-monospace, Menlo, monospace); }
.dashboard-shell .bot-center-layout .bot-overview-top span { flex: 1 1 auto; min-width: 0; overflow: hidden; color: var(--tx-2); font: 400 13px/1.4 var(--font-body); text-overflow: ellipsis; white-space: nowrap; }
.dashboard-shell .bot-center-layout .bot-overview-top small { color: var(--tx-3); font: 500 12px/1 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-area-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--bd-soft); }
.dashboard-shell .bot-center-layout .bot-area-stats b { display: block; color: var(--tx); font: 650 22px/1.1 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-area-stats span { color: var(--tx-3); font: 400 12px/1.4 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-area-rows { display: flex; flex-direction: column; }
.dashboard-shell .bot-center-layout .bot-area-rows .bot-overview-card {
  display: flex; align-items: center; gap: 12px; min-height: 0; margin: 0; padding: 4px 18px 4px 0; border: 0; border-top: 1px solid var(--bd-soft); border-radius: 0; background: none;
}
.dashboard-shell .bot-center-layout .bot-area-rows .bot-overview-card:first-child { border-top: 0; }
.dashboard-shell .bot-center-layout .bot-area-rows .bot-overview-card-open {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; flex: 1 1 auto; min-width: 0; min-height: 52px; justify-content: center;
  margin: 0; padding: 8px 0 8px 18px; border: 0; border-radius: 0; background: none; color: inherit; text-align: left; cursor: pointer;
}
.dashboard-shell .bot-center-layout .bot-area-rows .bot-overview-card-open:hover b { color: var(--accent-tx); }
.dashboard-shell .bot-center-layout .bot-area-rows .bot-overview-card-open:disabled { cursor: default; }
.dashboard-shell .bot-center-layout .bot-area-rows .bot-overview-card-open:disabled:hover b { color: var(--tx); }
.dashboard-shell .bot-center-layout .bot-area-rows .bot-overview-card-open b { color: var(--tx); font: 600 13.5px/1.35 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-area-rows .bot-overview-card-stat { color: var(--tx-3); font: 400 12px/1.45 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-area-rows .bot-overview-card.is-on .bot-overview-card-stat { color: var(--tx-2); }
.dashboard-shell .bot-center-layout .bot-overview-card-go { display: grid; place-items: center; width: 20px; color: var(--tx-3); }
.dashboard-shell .bot-center-layout .bot-overview-card-go svg { width: 13px; height: 13px; }
.dashboard-shell .bot-center-layout .bot-overview-activity .bot-hub-status { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0 0 12px; padding: 0; border: 1px solid var(--bd-soft); border-radius: 10px; background: var(--bg-sunken); overflow: hidden; }
.dashboard-shell .bot-center-layout .bot-overview-activity .bot-hub-status-row { flex-direction: row; align-items: baseline; justify-content: space-between; padding: 9px 12px; }
.dashboard-shell .bot-center-layout .bot-overview-activity .bot-hub-status-row + .bot-hub-status-row { border-left: 0; border-top: 1px solid var(--bd-soft); }
.dashboard-shell .bot-center-layout .bot-overview-activity .bot-hub-status-row b { font-size: 13px; }

/* ---- 24. «Защита» ---- */
.dashboard-shell .bot-center-layout .bot-protect-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.dashboard-shell .bot-center-layout .bot-protect-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dashboard-shell .bot-center-layout .bot-protect-side { position: sticky; top: calc(var(--header-h, 56px) + 16px); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dashboard-shell .bot-center-layout .bot-protect-card-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 16px 18px; border-bottom: 1px solid var(--bd-soft); }
.dashboard-shell .bot-center-layout .bot-protect-card-head > div { flex: 1 1 200px; min-width: 0; }
.dashboard-shell .bot-center-layout .bot-protect-card-head h2 { display: flex; align-items: baseline; gap: 8px; margin: 0; color: var(--tx); font: 600 15px/1.35 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-protect-card-head p { margin: 3px 0 0; color: var(--tx-3); font: 400 12px/1.45 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-protect-card-head > .button,
.dashboard-shell .bot-center-layout .bot-protect-card-head > .bot-refresh-button { margin-left: auto; }
.dashboard-shell .bot-center-layout .bot-protect-mode .bot-protect-card-head { border-bottom: 0; padding-bottom: 12px; }
.dashboard-shell .bot-center-layout .bot-protect-mode .bot-protect-card-head h2 { flex: 1 1 auto; }
.dashboard-shell .bot-center-layout .bot-protect-saving { display: inline-flex; align-items: center; gap: 6px; color: var(--tx-3); font: 400 12px/1 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-mode-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0 18px 16px; border: 0; }
.dashboard-shell .bot-center-layout .bot-mode-card { position: relative; display: flex; flex-direction: column; gap: 3px; min-width: 0; margin: 0; padding: 14px 16px; border: 1px solid var(--bd); border-radius: 10px; background: var(--bg-sunken); cursor: pointer; transition: border-color .15s, background-color .15s; }
.dashboard-shell .bot-center-layout .bot-mode-card input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.dashboard-shell .bot-center-layout .bot-mode-card b { color: var(--tx); font: 600 14px/1.3 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-mode-card small { color: var(--tx-3); font: 400 12px/1.45 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-mode-card:hover { border-color: var(--bd-strong); }
.dashboard-shell .bot-center-layout .bot-mode-card:has(input:checked) { border-color: #ff6a2b99; background: #ff6a2b10; }
.dashboard-shell .bot-center-layout .bot-mode-card:has(input:checked) b { color: var(--accent-tx); }
.dashboard-shell .bot-center-layout .bot-mode-card:has(input:checked) small { color: var(--tx-2); }
.dashboard-shell .bot-center-layout .bot-mode-card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.dashboard-shell .bot-center-layout .bot-mode-card:has(input:disabled) { cursor: progress; opacity: .8; }
.dashboard-shell .bot-center-layout .bot-mode-note { margin: -4px 18px 14px; color: var(--tx-3); font: 400 12.5px/1.5 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-protect-warning { margin: 0 18px 18px; }
.dashboard-shell .bot-center-layout .bot-protect-warning-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.dashboard-shell .bot-center-layout .bot-protect-mode > .bot-command-editor-error { margin: 0 18px 16px; }
.dashboard-shell .bot-center-layout .bot-automod-rule-list { display: flex; flex-direction: column; }
.dashboard-shell .bot-center-layout .bot-automod-rules .bot-automod-rule-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; min-height: 0; margin: 0; padding: 0 16px 0 0;
  border: 0; border-top: 1px solid var(--bd-soft); border-radius: 0; background: none;
}
.dashboard-shell .bot-center-layout .bot-automod-rules .bot-automod-rule-row:first-child { border-top: 0; }
.dashboard-shell .bot-center-layout .bot-automod-rule-open { display: flex; flex-direction: column; gap: 3px; min-width: 0; margin: 0; padding: 13px 0 13px 18px; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.dashboard-shell .bot-center-layout .bot-automod-rule-open b { color: var(--tx); font: 600 14px/1.35 var(--font-body); overflow-wrap: anywhere; }
.dashboard-shell .bot-center-layout .bot-automod-rule-open small { overflow: hidden; color: var(--tx-3); font: 400 12px/1.45 var(--font-body); text-overflow: ellipsis; white-space: nowrap; }
.dashboard-shell .bot-center-layout .bot-automod-rule-open:hover b { color: var(--accent-tx); }
.dashboard-shell .bot-center-layout .bot-automod-rule-row.is-off .bot-automod-rule-open b { color: var(--tx-3); }
.dashboard-shell .bot-center-layout .bot-act-chip { display: inline-flex; align-items: center; flex: none; height: 26px; padding: 0 10px; border: 1px solid var(--bd); border-radius: 999px; color: var(--tx-2); font: 500 12px/1 var(--font-body); white-space: nowrap; }
.dashboard-shell .bot-center-layout .bot-act-chip.is-hard { border-color: #ef8f8644; background: var(--bad-bg); color: #f6c0ba; }
.dashboard-shell .bot-center-layout .bot-act-chip.is-muted { opacity: .55; }
.dashboard-shell .bot-center-layout .bot-automod-rules .empty-state { padding: 24px 18px; }
.dashboard-shell .bot-center-layout .bot-automod-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.dashboard-shell .bot-center-layout .bot-ladder-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; padding: 16px 18px 18px; }
.dashboard-shell .bot-center-layout .bot-ladder-step {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; margin: 0; padding: 12px 14px;
  border: 1px solid var(--bd); border-radius: 10px; background: var(--bg-sunken); color: inherit; text-align: left; cursor: pointer;
}
.dashboard-shell .bot-center-layout .bot-ladder-step:hover { border-color: var(--bd-strong); }
.dashboard-shell .bot-center-layout .bot-ladder-step small { color: var(--tx-3); font: 400 11.5px/1.3 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-ladder-step b { color: var(--tx); font: 600 13px/1.3 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-ladder-step span { color: var(--tx-3); font: 400 11.5px/1.3 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-ladder-step.is-ban { border-color: #ef8f8644; }
.dashboard-shell .bot-center-layout .bot-ladder-step.is-ban b { color: #f6c0ba; }
.dashboard-shell .bot-center-layout .bot-protect-slow { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.dashboard-shell .bot-center-layout .bot-protect-slow-copy { flex: 1 1 auto; min-width: 0; }
.dashboard-shell .bot-center-layout .bot-protect-slow-copy h2 { margin: 0 0 3px; color: var(--tx); font: 600 14px/1.35 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-protect-slow-copy p { margin: 0; color: var(--tx-3); font: 400 12px/1.45 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-protect-slow-error { display: block; margin-top: 4px; color: #f6c0ba; font: 400 12px/1.4 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-protect-side .bot-automod-violation-list,
.dashboard-shell .bot-center-layout .bot-protect-side .bot-automod-strike-list { margin: 0; padding: 4px 18px 10px; list-style: none; }
.dashboard-shell .bot-center-layout .bot-protect-side li { display: flex; flex-direction: column; gap: 3px; padding: 10px 0; border: 0; border-top: 1px solid var(--bd-soft); background: none; }
.dashboard-shell .bot-center-layout .bot-protect-side li:first-child { border-top: 0; }
.dashboard-shell .bot-center-layout .bot-protect-side li > b { color: var(--tx); font: 500 12.5px/1.4 var(--font-body); overflow-wrap: anywhere; }
.dashboard-shell .bot-center-layout .bot-protect-side li > span { color: var(--tx-3); font: 400 12px/1.45 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-protect-side .bot-automod-match-hint { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--tx-3); font: 400 11.5px/1.4 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-protect-side .bot-automod-match-hint code { padding: 1px 6px; border-radius: 5px; background: #ffffff0a; color: var(--tx-2); font: 500 11.5px/1.4 var(--font-mono, ui-monospace, Menlo, monospace); overflow-wrap: anywhere; }
.dashboard-shell .bot-center-layout .bot-protect-side .bot-automod-message-excerpt { color: var(--tx-3); font: italic 400 11.5px/1.45 var(--font-body); overflow-wrap: anywhere; }
.dashboard-shell .bot-center-layout .bot-protect-side .bot-automod-strike-list li { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
.dashboard-shell .bot-center-layout .bot-automod-strike-user { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dashboard-shell .bot-center-layout .bot-automod-strike-user b { color: var(--tx); font: 500 12.5px/1.4 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-automod-strike-count { display: flex; gap: 6px; color: var(--tx-3); font: 400 12px/1.4 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-automod-strike-count strong { color: var(--tx-2); font-weight: 500; }
.dashboard-shell .bot-center-layout .bot-automod-strike-expiry { color: var(--tx-3); font: 400 11.5px/1.4 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-protect-empty { margin: 0; padding: 14px 18px 18px; color: var(--tx-3); font: 400 12.5px/1.5 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-protect-side .bot-command-inline-error { margin: 12px 18px 16px; }

/* ---- 25. «Команды»: переключатель вида, строки, редактор справа ---- */
.dashboard-shell .bot-center-layout .bot-kind-switch { display: inline-flex; flex: none; gap: 2px; padding: 3px; border: 1px solid var(--bd); border-radius: 10px; background: var(--bg-sunken); }
.dashboard-shell .bot-center-layout .bot-kind { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; margin: 0; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: var(--tx-2); font: 500 12.5px/1 var(--font-body); white-space: nowrap; cursor: pointer; }
.dashboard-shell .bot-center-layout .bot-kind span { color: var(--tx-3); font-size: 12px; }
.dashboard-shell .bot-center-layout .bot-kind:hover { color: var(--tx); }
.dashboard-shell .bot-center-layout .bot-kind.is-active { background: #2d323a; color: var(--tx); }
.dashboard-shell .bot-center-layout .bot-kind:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.dashboard-shell .bot-center-layout .bot-command-toolbar .bot-command-create { flex: none; }
.dashboard-shell .bot-center-layout .bot-command-toolbar-extra { align-items: center; }
.dashboard-shell .bot-center-layout .bot-command-toolbar-extra .bot-command-sort { flex: 0 0 190px; width: 190px; }
.dashboard-shell .bot-center-layout .bot-command-card { margin: 0; }
.dashboard-shell .bot-center-layout .bot-command-card + .bot-command-tools { margin-top: 12px; }
.dashboard-shell .bot-center-layout .bot-command-list:not(.is-selecting) .bot-command-select { display: none; }
.dashboard-shell .bot-center-layout .bot-command-list:not(.is-selecting) .bot-command-row-item { grid-template-columns: minmax(0, 1fr) auto auto; padding-left: 18px; }
.dashboard-shell .bot-center-layout .bot-command-row-item.is-current { background: #ff6a2b10; box-shadow: inset 3px 0 0 var(--accent) !important; }
@media (hover: hover) {
  .dashboard-shell .bot-center-layout .bot-command-row-item:not(:hover):not(:focus-within) .bot-command-actions { opacity: 0; }
}
.dashboard-shell .bot-center-layout .bot-command-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 480px); gap: 20px; align-items: start; }
.dashboard-shell .bot-center-layout .bot-command-split-list { min-width: 0; }
.dashboard-shell .bot-center-layout .bot-command-split-editor {
  position: sticky; top: calc(var(--header-h, 56px) + 16px); min-width: 0;
  max-height: calc(100vh - var(--header-h, 56px) - 32px); display: flex; flex-direction: column;
  border: 1px solid var(--bd); border-radius: var(--r-card); background: var(--bg-card); overflow: hidden;
  container: boteditor / inline-size;
}
.dashboard-shell .bot-center-layout .bot-command-split-editor > * { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.dashboard-shell .bot-center-layout .bot-command-split-editor form { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.dashboard-shell .bot-center-layout .bot-command-split-editor .bot-game-editor-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #3a3f47 transparent; }
@container botpage (max-width: 980px) {
  .dashboard-shell .bot-center-layout .bot-command-split { grid-template-columns: minmax(0, 1fr); }
  .dashboard-shell .bot-center-layout .bot-command-split-list { display: none; }
  .dashboard-shell .bot-center-layout .bot-command-split-editor { position: static; max-height: none; }
  .dashboard-shell .bot-center-layout .bot-command-split-editor .bot-game-editor-body { overflow: visible; }
}

/* ---- 26. Редакторы (команда, игра, таймер, правило, лестница) — одним видом ---- */
.dashboard-shell .bot-center-layout :is(.bot-command-split-editor, .bot-drawer.is-editor) .bot-game-page { display: flex; flex-direction: column; gap: 0; margin: 0; }
.dashboard-shell .bot-center-layout :is(.bot-command-split-editor, .bot-drawer.is-editor) .bot-game-editor-sticky {
  position: sticky; top: 0; z-index: 3; display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 10px 14px;
  margin: 0; padding: 14px 18px; border: 0; border-bottom: 1px solid var(--bd-soft); border-radius: 0; background: #1a1d21; backdrop-filter: none;
}
.dashboard-shell .bot-center-layout .bot-game-editor-sticky-main { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 220px; }
.dashboard-shell .bot-center-layout .bot-game-editor-sticky-main h2 { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--tx); font: 650 16px/1.3 var(--font-body); letter-spacing: 0; white-space: normal; }
.dashboard-shell .bot-center-layout .bot-game-editor-sticky-main h2 code { padding: 2px 7px; border-radius: 6px; background: #ff6a2b14; color: var(--accent-tx); font: 600 13px/1.45 var(--font-mono, ui-monospace, Menlo, monospace); }
.dashboard-shell .bot-center-layout .bot-game-editor-sticky-main p { margin: 2px 0 0; color: var(--tx-3); font: 400 12px/1.4 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-game-editor-sticky-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dashboard-shell .bot-center-layout .bot-game-editor-sticky-actions .bot-editor-close { order: 9; }
.dashboard-shell .bot-center-layout .em-bot-crumb { display: none; }
.dashboard-shell .bot-center-layout .bot-game-back { min-height: 34px; padding: 6px 10px; border: 1px solid var(--bd); border-radius: var(--r-ctl); background: transparent; color: var(--tx-2); }
.dashboard-shell .bot-center-layout .bot-game-back svg { transform: rotate(180deg); }
.dashboard-shell .bot-center-layout :is(.bot-command-split-editor, .bot-drawer.is-editor) .bot-game-editor-body { display: flex; flex-direction: column; gap: 0; padding: 4px 18px 8px; }
.dashboard-shell .bot-center-layout :is(.bot-command-split-editor, .bot-drawer.is-editor) :is(.bot-game-section-card, .bot-command-editor-section) {
  display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 18px 0; border: 0; border-top: 1px solid var(--bd-soft); border-radius: 0; background: none;
}
.dashboard-shell .bot-center-layout :is(.bot-command-split-editor, .bot-drawer.is-editor) :is(.bot-game-section-card, .bot-command-editor-section):first-child { border-top: 0; }
.dashboard-shell .bot-center-layout .bot-command-editor-section-head { display: flex; align-items: flex-start; gap: 10px; padding: 0; border: 0; }
.dashboard-shell .bot-center-layout .bot-command-editor-section-head > span:first-child {
  display: grid; place-items: center; width: 22px; height: 22px; flex: none; margin-top: 1px;
  border: 1px solid var(--bd-strong); border-radius: 50%; background: none; color: var(--tx-2); font: 600 11px/1 var(--font-body);
}
.dashboard-shell .bot-center-layout .bot-command-editor-section-head h4 { margin: 0 0 2px; color: var(--tx); font: 600 14px/1.35 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-command-editor-section-head p { margin: 0; color: var(--tx-3); font: 400 12px/1.5 var(--font-body); }
.dashboard-shell .bot-center-layout :is(.bot-command-split-editor, .bot-drawer.is-editor) .bot-game-editor-footer {
  position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 12px 18px;
  border-top: 1px solid var(--bd-soft); background: #181b1f;
}
.dashboard-shell .bot-center-layout .bot-command-split-editor .bot-command-editor-page .bot-game-editor-body { display: flex; }
.dashboard-shell .bot-center-layout .bot-command-split-editor .bot-command-editor-page .bot-game-editor-body > [aria-labelledby="command-preview-title"] { position: static; grid-column: auto; grid-row: auto; }
@container boteditor (max-width: 560px) {
  .dashboard-shell .bot-center-layout .bot-command-fields:is(.is-two, .is-three) { grid-template-columns: minmax(0, 1fr); }
  .dashboard-shell .bot-center-layout .bot-role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.dashboard-shell .bot-center-layout .bot-command-fields.is-one { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
/* Роли — чипы-переключатели */
.dashboard-shell .bot-center-layout .bot-role-grid { gap: 6px; }
.dashboard-shell .bot-center-layout .bot-role-grid span { min-height: 34px; padding: 6px 11px; border: 1px solid var(--bd); border-radius: var(--r-ctl); background: transparent; color: var(--tx-2); font: 500 12.5px/1.3 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-role-grid span::before { width: 13px; height: 13px; margin-right: 7px; border-width: 1.5px; }
.dashboard-shell .bot-center-layout .bot-role-grid input:checked + span { border-color: #ff6a2b88; background: #ff6a2b12; color: var(--accent-tx); }
.dashboard-shell .bot-center-layout .bot-role-grid input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Панель-редактор: прокручивается сама панель, шапка и подвал липкие */
.dashboard-shell .bot-drawer.is-editor .bot-drawer-panel { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #3a3f47 transparent; }
.dashboard-shell .bot-drawer.is-editor .bot-drawer-panel > * { min-height: 100%; }
.dashboard-shell .bot-drawer.is-editor .bot-game-page > form { display: flex; flex-direction: column; min-height: 100%; }
.dashboard-shell .bot-drawer.is-editor .bot-game-editor-body { flex: 1 1 auto; }

/* Панель с обычной страницей внутри: карточки формы без двойных рамок */
.dashboard-shell .bot-drawer-body { container: botdrawer / inline-size; }
.dashboard-shell .bot-drawer-body .bot-feature-page.is-in-drawer { display: flex; flex-direction: column; gap: 16px; }
.dashboard-shell .bot-drawer-body .bot-feature-card { margin: 0; }
@container botdrawer (max-width: 680px) {
  .dashboard-shell .bot-center-layout .bot-notification-layout { grid-template-columns: minmax(0, 1fr); }
  .dashboard-shell .bot-center-layout .bot-notification-nav-list { display: flex; flex-direction: row; max-height: none; overflow-x: auto; padding: 8px; gap: 6px; }
  .dashboard-shell .bot-center-layout .bot-notification-nav-item { flex: none; width: auto; border: 1px solid var(--bd-soft); }
}

/* ---- 27. Узкие страницы и телефоны ---- */
@container botpage (max-width: 1080px) {
  .dashboard-shell .bot-center-layout .bot-protect-layout { grid-template-columns: minmax(0, 1fr); }
  .dashboard-shell .bot-center-layout .bot-protect-side { position: static; }
  .dashboard-shell .bot-center-layout .bot-hub { grid-template-columns: minmax(0, 1fr); }
  .dashboard-shell .bot-center-layout .bot-hub-side { position: static; }
}
@container botpage (max-width: 860px) {
  .dashboard-shell .bot-center-layout .bot-area-grid { grid-template-columns: minmax(0, 1fr); }
  .dashboard-shell .bot-center-layout .bot-quick-actions { grid-template-columns: minmax(0, 1fr); }
  .dashboard-shell .bot-center-layout .bot-event-row-main { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}
@container botpage (max-width: 620px) {
  .dashboard-shell .bot-center-layout .bot-mode-cards { grid-template-columns: minmax(0, 1fr); padding: 0 14px 14px; }
  .dashboard-shell .bot-center-layout .bot-event-group { flex-direction: column; gap: 6px; }
  .dashboard-shell .bot-center-layout .bot-event-group-title { width: auto; padding: 0; }
  .dashboard-shell .bot-center-layout .bot-automod-rules .bot-automod-rule-row { grid-template-columns: minmax(0, 1fr) auto; }
  .dashboard-shell .bot-center-layout .bot-automod-rules .bot-act-chip { grid-column: 1; grid-row: 2; justify-self: start; margin: -6px 0 12px 18px; }
  .dashboard-shell .bot-center-layout .bot-automod-rules .bot-command-enable { grid-row: 1 / span 2; grid-column: 2; }
  .dashboard-shell .bot-center-layout .bot-protect-slow { flex-wrap: wrap; }
  .dashboard-shell .bot-center-layout .bot-command-toolbar { gap: 8px; }
  .dashboard-shell .bot-center-layout .bot-kind-switch { order: 0; flex: 1 1 100%; }
  .dashboard-shell .bot-center-layout .bot-kind { flex: 1 1 0; justify-content: center; }
  .dashboard-shell .bot-center-layout .bot-command-search { order: 1; flex: 1 1 100%; }
  .dashboard-shell .bot-center-layout .bot-command-filters-toggle { order: 2; flex: 1 1 auto; }
  .dashboard-shell .bot-center-layout .bot-command-create { order: 3; flex: 1 1 auto; }
  .dashboard-shell .bot-center-layout .bot-timer-grid,
  .dashboard-shell .bot-center-layout .bot-feature-tiles { grid-template-columns: minmax(0, 1fr); }
  .dashboard-shell .bot-center-layout .bot-add-card { min-height: 120px; }
}

/* ---- 28. Фокус с клавиатуры виден везде (общий сброс теней выше гасил кольцо) ---- */
.dashboard-shell .bot-center-layout :is(button, a, summary, [tabindex="0"]):focus-visible,
.dashboard-shell .bot-drawer :is(button, a, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dashboard-shell .bot-center-layout :is(.bot-event-row-main, .bot-automod-rule-open, .bot-overview-card-open):focus-visible { outline-offset: -2px; border-radius: 8px; }
.dashboard-shell .bot-drawer-panel:focus { outline: none; }

/* ---- 29. Старые декоративные псевдоэлементы (свечения, сканлайны) у карточек и строк ---- */
.dashboard-shell .bot-center-layout :is(.card, article, section, header, li, form, details)::before,
.dashboard-shell .bot-center-layout :is(.card, article, section, header, li, form, details)::after { content: none !important; }
.dashboard-shell .bot-center-layout .bot-area-rows .bot-overview-card { flex-direction: row; flex-wrap: nowrap; }
.dashboard-shell .bot-center-layout .bot-area-rows .bot-overview-card > .bot-command-enable { flex: none; }
.dashboard-shell .bot-center-layout :is(.bot-area-rows .bot-overview-card-open, .bot-event-row-main, .bot-automod-rule-open, .bot-command-open, .bot-announcement-row-main, .bot-timer-card-name, .bot-feature-card-open, .bot-quick) { white-space: normal; }
.dashboard-shell .bot-center-layout .bot-area-rows .bot-overview-card-open > * { max-width: 100%; overflow-wrap: anywhere; }

/* ---- 30. Уточнения «Команд»: узкий список рядом с редактором, блок «Описание и вызовы» ---- */
.dashboard-shell .bot-center-layout .bot-command-card { container: cmdlist / inline-size; }
@container cmdlist (max-width: 660px) {
  .dashboard-shell .bot-center-layout .bot-command-toolbar .bot-command-search { order: 5; flex: 1 1 100%; }
  .dashboard-shell .bot-center-layout .bot-command-toolbar .bot-command-filters-toggle { margin-left: auto; }
}
.dashboard-shell .bot-center-layout .bot-command-more { display: block; grid-column: 1 / -1; margin: 0; }
.dashboard-shell .bot-center-layout .bot-command-more > summary { display: flex; flex-direction: row; align-items: center; gap: 10px; text-align: left; }
.dashboard-shell .bot-center-layout .bot-command-more > .bot-feature-advanced-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; justify-items: stretch; text-align: left; }
.dashboard-shell .bot-center-layout .bot-command-more > .bot-feature-advanced-body > label { display: grid; gap: 6px; width: auto; text-align: left; }
.dashboard-shell .bot-center-layout .bot-protect-side li { align-items: flex-start; text-align: left; }
.dashboard-shell .bot-center-layout .bot-protect-side .bot-automod-strike-list li { align-items: center; }
.dashboard-shell .bot-center-layout .bot-protect-ladder .bot-protect-card-head { padding: 16px 18px 0; border-bottom: 0; }

/* ---- 31. Форма функции внутри панели: без второй рамки и заголовка, сохранение внизу ---- */
.dashboard-shell .bot-drawer-body .bot-feature-card { padding: 0; border: 0; border-radius: 0; background: none; overflow: visible; }
.dashboard-shell .bot-drawer-body .bot-feature-card > .bot-automod-card-head { display: none; }
.dashboard-shell .bot-drawer-body .bot-feature-card .bot-automod-settings-body { display: flex; flex-direction: column; gap: 14px; padding: 0; }
.dashboard-shell .bot-drawer-body .bot-feature-card > .bot-feature-save-bar {
  position: sticky; bottom: -20px; z-index: 2; margin: 18px -20px -20px; padding: 14px 20px; border-top: 1px solid var(--bd-soft); border-radius: 0; background: #181b1f;
}
.dashboard-shell .bot-drawer-body .bot-feature-save-hint { display: none; }
.dashboard-shell .bot-drawer-body .bot-feature-save-bar { justify-content: flex-end; }
.dashboard-shell .bot-drawer-body .bot-automod-activity { margin-top: 8px; }
@media (max-width: 720px) {
  .dashboard-shell .bot-drawer-body .bot-feature-card > .bot-feature-save-bar { bottom: -14px; margin: 16px -14px -14px; padding: 12px 14px; }
}
/* Переменные — компактные чипы «{код} подпись» в строку */
.dashboard-shell .bot-center-layout .bot-variable-list { display: flex; flex-wrap: wrap; gap: 6px; }
.dashboard-shell .bot-center-layout .bot-variable-list button {
  display: inline-flex; align-items: baseline; gap: 6px; min-height: 30px; margin: 0; padding: 5px 9px;
  border: 1px solid var(--bd); border-radius: 7px; background: #ffffff05; color: var(--tx-3); font: 400 11.5px/1.3 var(--font-body); text-align: left; cursor: pointer;
}
.dashboard-shell .bot-center-layout .bot-variable-list button code { color: var(--accent-tx); font: 600 11.5px/1.3 var(--font-mono, ui-monospace, Menlo, monospace); }
.dashboard-shell .bot-center-layout .bot-variable-list button:hover { border-color: var(--bd-strong); color: var(--tx-2); }
/* Реакция в панели: без второй рамки и заголовка карточки */
.dashboard-shell .bot-drawer-body :is(.bot-notification-editor, .bot-notification-history) { padding: 0; border: 0; border-radius: 0; background: none; }
.dashboard-shell .bot-drawer-body .bot-notification-editor > :is(header, .bot-automod-card-head):first-child { display: none; }
.dashboard-shell .bot-drawer-body .bot-notification-workspace.is-in-drawer { display: flex; flex-direction: column; gap: 18px; }
/* Карточки со своими внутренними отступами — без общего отступа .card */
.dashboard-shell .bot-center-layout :is(.bot-area-card, .bot-protect-ladder, .bot-automod-rules, .bot-automod-activity, .bot-protect-mode) { padding: 0; }

/* ---- 32. Телефон: вкладки без выхода за край, строки команд с действиями под текстом ---- */
@media (max-width: 640px) {
  .dashboard-shell .bot-tabs { margin: 0 0 18px; padding: 0; }
  .dashboard-shell .bot-center-layout .bot-command-list:not(.is-selecting) .bot-command-row-item { grid-template-columns: minmax(0, 1fr) auto; padding: 0 8px 0 14px; }
  .dashboard-shell .bot-center-layout .bot-command-list:not(.is-selecting) .bot-command-actions { grid-column: 1 / -1; grid-row: 2; margin: -8px 0 8px -6px; }
  .dashboard-shell .bot-center-layout .bot-command-list.is-selecting .bot-command-actions { grid-column: 2 / -1; grid-row: 2; }
  .dashboard-shell .bot-center-layout .bot-command-row-item > .bot-command-enable { grid-row: 1; }
}

/* ---- 33. Журналы в узкой ширине: строка в столбик на всю ширину, текст переносится ---- */
@container botdrawer (max-width: 480px) {
  .dashboard-shell .bot-center-layout .bot-feature-history-row { flex-direction: column; align-items: stretch; gap: 6px; }
  .dashboard-shell .bot-center-layout .bot-feature-history-row strong { white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
  .dashboard-shell .bot-center-layout .bot-feature-history-side { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .dashboard-shell .bot-center-layout .bot-feature-history-row { flex-direction: column; align-items: stretch; gap: 6px; }
  .dashboard-shell .bot-center-layout .bot-feature-history-row strong { white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
}

/* ---- 34. Кнопка «назад» в шапке редактора-панели: квадратная, без подписи (подпись остаётся для скринридера) ---- */
.dashboard-shell .bot-center-layout :is(.bot-command-split-editor, .bot-drawer.is-editor) .bot-game-back {
  display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; min-height: 36px; padding: 0;
  font-size: 0; line-height: 0; white-space: nowrap; overflow: hidden;
}
.dashboard-shell .bot-center-layout :is(.bot-command-split-editor, .bot-drawer.is-editor) .bot-game-back svg { width: 16px; height: 16px; margin: 0; }
.dashboard-shell .bot-center-layout :is(.bot-command-split-editor, .bot-drawer.is-editor) .bot-game-back:hover { border-color: var(--bd-strong); color: var(--tx); }

/* ---- 35. Обычные выключатели (switch-row) в разделе: выключенный виден, включённый — оранжевый, без свечения ---- */
.dashboard-shell .bot-center-layout .switch-row input + i { border: 1px solid var(--bd-strong); background: #2a2e35; box-shadow: none !important; }
.dashboard-shell .bot-center-layout .switch-row input + i::after { background: #9aa3b0; box-shadow: none; }
.dashboard-shell .bot-center-layout .switch-row input:checked + i { border-color: var(--accent); background: var(--accent); }
.dashboard-shell .bot-center-layout .switch-row input:checked + i::after { background: #fff; }
.dashboard-shell .bot-center-layout .switch-row input:disabled + i { opacity: .45; }
.dashboard-shell .bot-center-layout .switch-row input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- 36. Плитки инструментов: шапка одной высоты, превью сразу под командами, подпись и кнопка — внизу ---- */
.dashboard-shell .bot-center-layout .bot-feature-tile-top { min-height: 40px; }
.dashboard-shell .bot-center-layout .bot-feature-tile > .bot-chat-line { margin-top: 0; }
.dashboard-shell .bot-center-layout .bot-feature-tile > .bot-feature-tile-when { margin-top: auto; }

/* ---- 37. Реакция в панели: первая секция без верхней линии — шапку панели уже отделяет граница ---- */
.dashboard-shell .bot-drawer-body .bot-notification-editor > .bot-command-editor-error + .bot-notification-section { border-top: 0; padding-top: 0; }

/* ---- 38. Переменные: подпись к каждой, те, что уже в тексте, — подсвечены ---- */
.dashboard-shell .bot-center-layout .bot-var-block { display: flex; flex-direction: column; gap: 8px; }
.dashboard-shell .bot-center-layout .bot-var-legend { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--tx-3); font: 400 12px/1.4 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-var-legend small { display: inline-flex; align-items: center; gap: 6px; color: var(--tx-3); font: inherit; white-space: nowrap; }
.dashboard-shell .bot-center-layout .bot-var-legend small i { width: 10px; height: 10px; border: 1px solid #ff6a2b99; border-radius: 3px; background: #ff6a2b26; }
.dashboard-shell .bot-center-layout .bot-var-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dashboard-shell .bot-center-layout .bot-var-chips .bot-var-chip {
  display: inline-flex; align-items: baseline; gap: 6px; min-height: 30px; margin: 0; padding: 5px 9px;
  border: 1px solid var(--bd); border-radius: 7px; background: #ffffff05; color: var(--tx-3); font: 400 11.5px/1.3 var(--font-body); text-align: left; cursor: pointer;
}
.dashboard-shell .bot-center-layout .bot-var-chips .bot-var-chip code { color: var(--accent-tx); font: 600 11.5px/1.3 var(--font-mono, ui-monospace, Menlo, monospace); }
.dashboard-shell .bot-center-layout .bot-var-chips .bot-var-chip:hover { border-color: var(--bd-strong); background: #ffffff0a; color: var(--tx-2); }
.dashboard-shell .bot-center-layout .bot-var-chips .bot-var-chip.is-tech { opacity: .62; }
.dashboard-shell .bot-center-layout :is(.bot-var-chips .bot-var-chip, .bot-variable-list button, .bot-command-variable-chip).is-used { border-color: #ff6a2b99; background: #ff6a2b1f; color: var(--tx-2); opacity: 1; }
.dashboard-shell .bot-center-layout :is(.bot-var-chips .bot-var-chip, .bot-variable-list button, .bot-command-variable-chip).is-used code { color: #ffc3a8; }
.dashboard-shell .bot-center-layout :is(.bot-var-chips .bot-var-chip, .bot-variable-list button, .bot-command-variable-chip):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---- 39. «Частота и объединение»: что сейчас — в заголовке, режимы карточками, пресеты рядом с полем ---- */
.dashboard-shell .bot-center-layout .bot-notification-pace > summary > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dashboard-shell .bot-center-layout .bot-notification-pace > summary b { color: var(--tx); font: 500 13px/1.4 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-notification-pace > summary small { color: var(--tx-3); font: 400 12px/1.45 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-notification-pace .bot-feature-advanced-body { display: flex; flex-direction: column; gap: 0; padding-top: 14px; }
.dashboard-shell .bot-center-layout .bot-pace-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.dashboard-shell .bot-center-layout .bot-pace-group + .bot-pace-group { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--bd-soft); }
.dashboard-shell .bot-center-layout .bot-pace-group > legend { float: left; width: 100%; margin: 0 0 10px; padding: 0; color: var(--tx); font: 600 13px/1.4 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-pace-group > legend + * { clear: both; }
.dashboard-shell .bot-center-layout .bot-pace-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.dashboard-shell .bot-center-layout .bot-pace-mode { position: relative; display: block; margin: 0; cursor: pointer; }
.dashboard-shell .bot-center-layout .bot-pace-mode input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.dashboard-shell .bot-center-layout .bot-pace-mode > span { display: flex; flex-direction: column; gap: 3px; height: 100%; padding: 10px 12px; border: 1px solid var(--bd); border-radius: 10px; background: #ffffff04; }
.dashboard-shell .bot-center-layout .bot-pace-mode strong { color: var(--tx); font: 600 13px/1.35 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-pace-mode small { color: var(--tx-3); font: 400 12px/1.45 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-pace-mode:hover > span { border-color: var(--bd-strong); }
.dashboard-shell .bot-center-layout .bot-pace-mode input:checked + span { border-color: #ff6a2b99; background: #ff6a2b12; }
.dashboard-shell .bot-center-layout .bot-pace-mode input:checked + span strong { color: var(--accent-tx); }
.dashboard-shell .bot-center-layout .bot-pace-mode input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.dashboard-shell .bot-center-layout .bot-pace-row { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 8px 10px; }
.dashboard-shell .bot-center-layout .bot-pace-row > label { flex: 0 0 150px; margin: 0; }
.dashboard-shell .bot-center-layout .bot-pace-row.is-muted > label { opacity: .5; }
.dashboard-shell .bot-center-layout .bot-pace-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.dashboard-shell .bot-center-layout .bot-pace-preset { min-height: 41px; padding: 0 12px; border: 1px solid var(--bd); border-radius: var(--r-ctl); background: transparent; color: var(--tx-2); font: 500 12.5px/1 var(--font-body); cursor: pointer; }
.dashboard-shell .bot-center-layout .bot-pace-preset:hover:not(:disabled) { border-color: var(--bd-strong); color: var(--tx); }
.dashboard-shell .bot-center-layout .bot-pace-preset.is-active { border-color: #ff6a2b99; background: #ff6a2b14; color: var(--accent-tx); }
.dashboard-shell .bot-center-layout .bot-pace-preset:disabled { opacity: .4; cursor: default; }
.dashboard-shell .bot-center-layout .bot-pace-preset:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dashboard-shell .bot-center-layout .bot-notification-pace .field-hint { margin: 8px 0 0; }
.dashboard-shell .bot-center-layout .bot-notification-pace .switch-row { margin-top: 16px; }
@container botdrawer (max-width: 480px) {
  .dashboard-shell .bot-center-layout .bot-pace-modes { grid-template-columns: minmax(0, 1fr); }
  .dashboard-shell .bot-center-layout .bot-pace-row > label { flex: 1 1 100%; }
}

/* ---- 40. Широкий список команд: кому доступна и сколько запусков — отдельными колонками справа,
   выключатель у правого края, действия появляются слева от него при наведении ---- */
@container cmdlist (min-width: 860px) {
  .dashboard-shell .bot-center-layout .bot-command-open { display: grid; grid-template-columns: minmax(0, 1fr) 200px 110px; grid-template-rows: auto auto; column-gap: 24px; row-gap: 4px; align-items: center; }
  .dashboard-shell .bot-center-layout .bot-command-open > .bot-command-title { grid-column: 1; grid-row: 1; }
  .dashboard-shell .bot-center-layout .bot-command-open > .bot-command-reply { grid-column: 1; grid-row: 2; }
  .dashboard-shell .bot-center-layout .bot-command-open > .bot-command-meta { display: contents; }
  .dashboard-shell .bot-center-layout .bot-command-meta span + span::before { content: none; }
  .dashboard-shell .bot-center-layout .bot-command-meta > span:nth-child(1) { grid-column: 2; grid-row: 1 / span 2; align-self: center; overflow: hidden; color: var(--tx-3); text-overflow: ellipsis; white-space: nowrap; }
  .dashboard-shell .bot-center-layout .bot-command-meta > span:nth-child(2) { grid-column: 3; grid-row: 1 / span 2; align-self: center; color: var(--tx-2); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
  .dashboard-shell .bot-center-layout .bot-command-meta > span:nth-child(3) { grid-column: 2; grid-row: 2; align-self: start; color: var(--tx-3); }
  .dashboard-shell .bot-center-layout .bot-command-meta > span:nth-child(1):has(+ span + span) { grid-row: 1; align-self: end; }
  .dashboard-shell .bot-center-layout .bot-command-row-item > .bot-command-actions { order: 1; }
  .dashboard-shell .bot-center-layout .bot-command-row-item > .bot-command-enable { order: 2; }
  .dashboard-shell .bot-center-layout .bot-command-list:not(.is-selecting) .bot-command-row-item { padding-right: 16px; }
}

/* ---- 41. Ответ команды в списке — выделенным сообщением бота: плашка, переменные и ссылки подсвечены ---- */
.dashboard-shell .bot-center-layout .bot-command-reply:not(.is-description) {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; margin-top: 2px; padding: 5px 10px;
  border: 1px solid var(--bd-soft); border-radius: 4px 10px 10px 10px; background: #ffffff06; color: #d9dee6;
}
.dashboard-shell .bot-center-layout .bot-command-row-item:is(:hover, .is-current) .bot-command-reply:not(.is-description) { border-color: var(--bd); background: #ffffff0a; }
.dashboard-shell .bot-center-layout .bot-command-reply-text { color: inherit; }
.dashboard-shell .bot-center-layout .bot-tpl-var { padding: 0 3px; border-radius: 4px; background: #ff6a2b1a; color: var(--accent-tx); font: 600 12px/1.4 var(--font-mono, ui-monospace, Menlo, monospace); }
.dashboard-shell .bot-center-layout .bot-tpl-link { color: #9cc2ff; }
.dashboard-shell .bot-center-layout .bot-command-row-item.is-off .bot-command-reply:not(.is-description) { background: none; color: var(--tx-3); }
.dashboard-shell .bot-center-layout .bot-command-row-item.is-off :is(.bot-tpl-var, .bot-tpl-link) { background: none; color: inherit; }

/* ---- 42. Строка команды на планшете и шире: действия и выключатель — в одну линию справа, по центру строки ---- */
@media (min-width: 641px) {
  .dashboard-shell .bot-center-layout .bot-command-list:not(.is-selecting) .bot-command-row-item { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-rows: auto; }
  .dashboard-shell .bot-center-layout .bot-command-list.is-selecting .bot-command-row-item { grid-template-columns: 20px minmax(0, 1fr) auto auto; grid-template-rows: auto; }
  .dashboard-shell .bot-center-layout .bot-command-row-item > .bot-command-select { grid-column: 1; grid-row: 1; }
  .dashboard-shell .bot-center-layout .bot-command-list:not(.is-selecting) .bot-command-row-item > .bot-command-open { grid-column: 1; grid-row: 1; }
  .dashboard-shell .bot-center-layout .bot-command-list:not(.is-selecting) .bot-command-row-item > .bot-command-actions { grid-column: 2; grid-row: 1; align-self: center; margin: 0; }
  .dashboard-shell .bot-center-layout .bot-command-list:not(.is-selecting) .bot-command-row-item > .bot-command-enable { grid-column: 3; grid-row: 1; align-self: center; }
  /* старое правило bot-center.css (≤860px) делало выключатель position:absolute — на планшете он уезжал вверх */
  .dashboard-shell .bot-center-layout .bot-command-row-item > .bot-command-enable { position: static; top: auto; right: auto; }
  .dashboard-shell .bot-center-layout .bot-command-list.is-selecting .bot-command-row-item > .bot-command-open { grid-column: 2; grid-row: 1; }
  .dashboard-shell .bot-center-layout .bot-command-list.is-selecting .bot-command-row-item > .bot-command-actions { grid-column: 3; grid-row: 1; align-self: center; margin: 0; }
  .dashboard-shell .bot-center-layout .bot-command-list.is-selecting .bot-command-row-item > .bot-command-enable { grid-column: 4; grid-row: 1; align-self: center; }
}
/* На сенсорных экранах :hover залипает после касания — не подсвечиваем иконку после нажатия */
@media (hover: none) {
  .dashboard-shell .bot-center-layout .bot-command-actions .bot-command-icon-button:hover:not(:disabled) { border-color: transparent; background: transparent; color: var(--tx-3); }
}

/* ---- 43. Обзор: две независимые колонки карточек; строка подсвечивается целиком, стрелка — внутри кнопки ---- */
.dashboard-shell .bot-center-layout .bot-area-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.dashboard-shell .bot-center-layout .bot-area-rows .bot-overview-card { position: relative; transition: background-color .12s ease; }
.dashboard-shell .bot-center-layout .bot-area-rows .bot-overview-card-open:hover:not(:disabled) { border-color: transparent; background: none; }
.dashboard-shell .bot-center-layout .bot-area-rows .bot-overview-card:has(> .bot-overview-card-open:hover:not(:disabled)),
.dashboard-shell .bot-center-layout .bot-area-rows .bot-overview-card:has(> .bot-overview-card-open:focus-visible) { background: #ffffff07; }
.dashboard-shell .bot-center-layout .bot-area-rows .bot-overview-card:has(> .bot-overview-card-go) { padding-right: 0; }
.dashboard-shell .bot-center-layout .bot-area-rows .bot-overview-card:has(> .bot-overview-card-go) > .bot-overview-card-open { padding-right: 46px; }
.dashboard-shell .bot-center-layout .bot-area-rows .bot-overview-card > .bot-overview-card-go { position: absolute; top: 50%; right: 16px; transform: translateY(-50%); pointer-events: none; transition: color .12s ease, transform .12s ease; }
.dashboard-shell .bot-center-layout .bot-area-rows .bot-overview-card:has(> .bot-overview-card-open:hover:not(:disabled)) > .bot-overview-card-go { color: var(--accent-tx); transform: translate(2px, -50%); }
.dashboard-shell .bot-center-layout .bot-area-rows .bot-overview-card:last-child { border-radius: 0 0 var(--r-card) var(--r-card); }

/* ---- 44. Подсказка при наведении: все ответы команды целиком. Карточка списка больше не режет всплывающее ---- */
.dashboard-shell .bot-center-layout .bot-command-card { overflow: visible; }
.dashboard-shell .bot-center-layout .bot-command-list > .bot-command-row-item:last-child { border-radius: 0 0 var(--r-card) var(--r-card); }
.dashboard-shell .bot-center-layout .bot-command-reply { position: relative; }
.dashboard-shell .bot-center-layout .bot-command-peek {
  position: absolute; top: calc(100% + 6px); left: -1px; z-index: 30; display: flex; flex-direction: column; gap: 2px;
  width: max-content; min-width: 260px; max-width: min(540px, calc(100cqi - 60px)); padding: 6px;
  border: 1px solid var(--bd-strong); border-radius: 12px; background: #22262d; color: var(--tx);
  font: 400 13px/1.5 var(--font-body); white-space: normal; text-align: left; cursor: default;
  visibility: hidden; opacity: 0; transform: translateY(-4px); pointer-events: none;
  transition: opacity .14s ease, transform .14s ease, visibility 0s linear .14s;
}
.dashboard-shell .bot-center-layout .bot-command-peek::before { content: ""; position: absolute; top: -6px; left: 0; right: 0; height: 6px; }
.dashboard-shell .bot-center-layout .bot-command-peek-head { padding: 4px 8px 6px; color: var(--tx-3); font: 600 11px/1.3 var(--font-body); letter-spacing: .02em; text-transform: uppercase; }
.dashboard-shell .bot-center-layout .bot-command-peek-item { display: flex; align-items: baseline; gap: 10px; padding: 7px 8px; border-radius: 8px; overflow-wrap: anywhere; }
.dashboard-shell .bot-center-layout .bot-command-peek-item + .bot-command-peek-item { border-top: 1px solid var(--bd-soft); border-radius: 0; }
.dashboard-shell .bot-center-layout .bot-command-peek-item > i { display: inline-grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: #ff6a2b1f; color: var(--accent-tx); font: 700 10.5px/1 var(--font-body); font-style: normal; }
.dashboard-shell .bot-center-layout .bot-command-peek-item > span { min-width: 0; color: #dfe3ea; }
.dashboard-shell .bot-center-layout .bot-command-peek-more { padding: 6px 8px 4px; color: var(--tx-3); font: 400 12px/1.4 var(--font-body); }
@media (hover: hover) {
  .dashboard-shell .bot-center-layout .bot-command-reply:hover > .bot-command-peek,
  .dashboard-shell .bot-center-layout .bot-command-open:focus-visible .bot-command-peek {
    visibility: visible; opacity: 1; transform: none; pointer-events: auto;
    transition: opacity .16s ease .28s, transform .16s ease .28s, visibility 0s linear .28s;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard-shell .bot-center-layout .bot-command-peek { transform: none; transition: visibility 0s linear, opacity 0s; }
}

/* ---- 45. Панель команды: вопрос о несохранённых правках при переходе к другой команде,
   подсказки в пустых полях; «Описание и другие вызовы» без второго отступа ---- */
.dashboard-shell .bot-center-layout .bot-editor-switch-guard {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 2px 12px; flex: none;
  margin: 0; padding: 14px 18px; border-bottom: 1px solid #e3b25e33; background: #221f19;
}
.dashboard-shell .bot-center-layout .bot-editor-switch-guard-icon {
  display: grid; place-items: center; grid-row: 1 / span 2; width: 28px; height: 28px; border-radius: 50%;
  background: var(--warn-bg); color: var(--warn);
}
.dashboard-shell .bot-center-layout .bot-editor-switch-guard-icon svg { width: 16px; height: 16px; }
.dashboard-shell .bot-center-layout .bot-editor-switch-guard-copy { min-width: 0; }
.dashboard-shell .bot-center-layout .bot-editor-switch-guard-copy strong { display: block; color: var(--tx); font: 600 13.5px/1.4 var(--font-body); overflow-wrap: anywhere; }
.dashboard-shell .bot-center-layout .bot-editor-switch-guard-copy p { margin: 2px 0 0; color: var(--tx-2); font: 400 12.5px/1.5 var(--font-body); overflow-wrap: anywhere; }
.dashboard-shell .bot-center-layout .bot-editor-switch-guard-actions { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dashboard-shell .bot-center-layout details.bot-command-more { padding: 0; text-align: left; }
.dashboard-shell .bot-center-layout .bot-command-more > summary .bot-command-more-empty { flex: none; color: var(--tx-3); font: 400 12px/1.4 var(--font-body); }
.dashboard-shell .bot-center-layout [data-command-editor-form] :is(.input, .textarea)::placeholder { color: #6f7885; opacity: 1; }

/* ---- 46. «Название и категория из чата»: карточки !title и !game одной высоты — пример,
   выключатель и кнопка на одной линии; выключатель — строкой во всю ширину; роли ровной сеткой ---- */
.dashboard-shell .bot-center-layout .bot-stream-command-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 12px; }
.dashboard-shell .bot-center-layout .bot-stream-command {
  display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px;
  border: 1px solid var(--bd); border-radius: var(--r-card); background: var(--bg-sunken);
}
.dashboard-shell .bot-center-layout .bot-stream-command-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.dashboard-shell .bot-center-layout .bot-stream-command-head > code {
  padding: 3px 8px; border: 0; border-radius: 6px; background: #ff6a2b14; color: var(--accent-tx);
  font: 600 13px/1.45 var(--font-mono, ui-monospace, Menlo, monospace);
}
.dashboard-shell .bot-center-layout .bot-stream-command-copy { flex: 1 1 auto; min-width: 0; }
.dashboard-shell .bot-center-layout .bot-stream-command-copy h4 { margin: 0 0 4px; color: var(--tx); font: 600 14px/1.35 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-stream-command-copy p { margin: 0; color: var(--tx-3); font: 400 12.5px/1.5 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-stream-example {
  display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 40px; margin: 0; padding: 8px 12px;
  border: 1px solid var(--bd-soft); border-radius: var(--r-ctl); background: #131518;
}
.dashboard-shell .bot-center-layout .bot-stream-example span { flex: none; color: var(--tx-3); font: 500 12px/1.4 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-stream-example code {
  flex: 1 1 auto; min-width: 0; overflow: hidden; color: var(--tx-2); font-size: 12.5px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap;
}
.dashboard-shell .bot-center-layout .bot-stream-command-switch {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px;
  min-height: 0; margin: 0; padding: 12px 0 0; border: 0; border-top: 1px solid var(--bd-soft); border-radius: 0; background: none;
}
.dashboard-shell .bot-center-layout .bot-stream-command-switch:hover { border-color: var(--bd-soft); background: none; }
.dashboard-shell .bot-center-layout .bot-stream-command-switch > span { display: grid; gap: 2px; min-width: 0; }
.dashboard-shell .bot-center-layout .bot-stream-command-switch strong { color: var(--tx); font: 600 13px/1.4 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-stream-command-switch small { color: var(--tx-3); font: 400 12px/1.45 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-stream-command-switch > i { justify-self: end; }
.dashboard-shell .bot-center-layout .bot-stream-command-switch:has(input:disabled) { cursor: not-allowed; }
.dashboard-shell .bot-center-layout .bot-stream-command-actions { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; margin: 0; }
.dashboard-shell .bot-center-layout .bot-stream-command-actions .button { flex: none; width: auto; }
.dashboard-shell .bot-center-layout .bot-stream-role-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 10px; }
.dashboard-shell .bot-center-layout .bot-stream-role {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) 18px; grid-template-rows: auto 1fr; align-items: center; align-content: start; gap: 8px 10px;
  min-width: 0; min-height: 0; padding: 14px; border: 1px solid var(--bd); border-radius: var(--r-card); background: var(--bg-sunken);
}
.dashboard-shell .bot-center-layout .bot-stream-role:hover { border-color: var(--bd-strong); }
.dashboard-shell .bot-center-layout .bot-stream-role:has(input:checked) { border-color: #ff6a2b80; background-color: #ff6a2b0d; }
.dashboard-shell .bot-center-layout .bot-stream-role:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.dashboard-shell .bot-center-layout .bot-stream-role-icon { grid-column: 1; grid-row: 1; width: 28px; height: 28px; border-radius: 8px; background: #ff6a2b14; color: var(--accent-tx); }
.dashboard-shell .bot-center-layout .bot-stream-role-icon .bot-center-icon { width: 16px; height: 16px; }
.dashboard-shell .bot-center-layout .bot-stream-role > span:nth-of-type(2) { display: contents; }
.dashboard-shell .bot-center-layout .bot-stream-role strong { grid-column: 2; grid-row: 1; min-width: 0; color: var(--tx); font: 600 13px/1.35 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-stream-role small { grid-column: 1 / -1; grid-row: 2; align-self: start; color: var(--tx-3); font: 400 12px/1.5 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-stream-role > i { grid-column: 3; grid-row: 1; border-color: var(--bd-strong); background: none; color: #fff; font: 700 11px/1 var(--font-body); }
.dashboard-shell .bot-center-layout .bot-stream-role:has(input:checked) > i { border-color: var(--accent); background: var(--accent); }
/* Узкая панель или телефон: карточки и роли — в одну колонку, роль строкой: значок, текст, отметка */
@container botpage (max-width: 640px) {
  .dashboard-shell .bot-center-layout :is(.bot-stream-command-grid, .bot-stream-role-grid) { grid-template-columns: minmax(0, 1fr); }
  .dashboard-shell .bot-center-layout .bot-stream-role { grid-template-rows: auto auto; row-gap: 2px; }
  .dashboard-shell .bot-center-layout .bot-stream-role-icon { grid-row: 1 / span 2; align-self: start; }
  .dashboard-shell .bot-center-layout .bot-stream-role small { grid-column: 2; }
  .dashboard-shell .bot-center-layout .bot-stream-role > i { grid-row: 1 / span 2; }
}

/* ---- 47. Карточка таймера: когда напишет (26.09.2026). «ждёт эфира · первый через 10 мин после старта»
   и «следующий ~в 21:40» длиннее старого «был 45 мин назад» — подвал переносится, прогноз прижат вправо.
   Над карточками — заметка, если таймеров больше, чем канал успевает при паузе 90 сек между ними ---- */
.dashboard-shell .bot-center-layout .bot-timer-card-foot { flex-wrap: wrap; row-gap: 4px; }
.dashboard-shell .bot-center-layout .bot-timer-card-when { min-width: 0; margin-left: auto; text-align: right; overflow-wrap: anywhere; }
.dashboard-shell .bot-center-layout .bot-timer-card-when.is-waiting { color: var(--tx-2); }
.dashboard-shell .bot-center-layout .bot-timer-card-when.is-next { color: var(--accent-tx); font-weight: 500; }
.dashboard-shell .bot-center-layout .bot-timer-card-when[title] { cursor: help; }
.dashboard-shell .bot-center-layout .bot-timer-note {
  display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 12px;
  border: 1px solid #ff6a2b33; border-radius: 10px; background: var(--accent-bg); color: var(--tx-2); font: 400 12.5px/1.5 var(--font-body);
}
.dashboard-shell .bot-center-layout .bot-timer-note .bot-center-icon { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--accent-tx); }

/* 48. Пустые состояния: иконка в мягкой акцентной плашке вместо пустого пунктирного квадрата (28.09) */
.dashboard-shell .bot-center-layout .empty-state > .bot-center-icon {
  display: block;
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--accent, #ff6a2b) 35%, transparent);
  border-radius: 12px;
  background: var(--accent-bg, #ff6a2b17);
  color: var(--accent-tx, #ffb18f);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dashboard-shell .bot-center-layout .empty-state > .bot-center-icon * { fill: none; stroke: currentColor; }
