/* Раздел «Бот и уведомления». Компоненты — из hub.css/crm.css. */
.bot-metric-bad b { color: #c23434; }
.bot-hint { margin: 0 0 14px; padding: 12px 16px; border: 1px solid #f0c9a0; background: #fff7ec; border-radius: 12px; font-size: 14px; }
.bot-hint code { display: block; margin-top: 6px; font-size: 13px; user-select: all; word-break: break-all; }
#botSettingsForm header { padding: 16px 18px 6px; }
#botSettingsForm header:not(:first-child) { border-top: 1px solid var(--line); margin-top: 6px; }
.bot-toggles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; padding: 8px 18px 14px; }
.bot-toggle { display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; min-height: 44px; cursor: pointer; }
.bot-toggle input { width: 18px; height: 18px; grid-row: span 2; }
.bot-toggle span { font-size: 14px; }
.bot-toggle small { color: var(--muted); font-size: 11px; }
.bot-toggle:has(input:disabled) { cursor: default; opacity: .75; }
.bot-secrets { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 18px 14px; }
.bot-secret { padding: 4px 10px; border-radius: 999px; font-size: 12px; background: #f1f2f6; color: var(--muted); }
.bot-secret.ok { background: #e8f6ec; color: #1c8a43; }
.bot-secret.no { background: #fbe9e9; color: #c23434; }
