/* settings-bot-persona.css — F507.W7 «О компании и голос бота».
 * Premium, theme-aware токены (как settings-telegram.css). Без эмодзи — иконки lucide. */

.bp-wrap { max-width: 720px; }

.bp-header { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 16px; }
.bp-header svg { color: var(--brand-primary); flex: 0 0 auto; margin-top: 2px; }
.bp-title { font-size: 18px; font-weight: 600; margin: 0; color: var(--color-text); letter-spacing: -0.01em; }
.bp-subtitle { font-size: 13px; color: var(--color-text-muted); margin: 4px 0 0; line-height: 1.5; }

.bp-card {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .bp-grid { grid-template-columns: 1fr; } }

.bp-field { display: flex; flex-direction: column; gap: 6px; }
.bp-field-label { font-size: 13px; font-weight: 500; color: var(--color-text); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.bp-field-max { font-size: 11px; font-weight: 400; color: var(--color-text-subtle); font-variant-numeric: tabular-nums; }

.bp-field input,
.bp-field textarea,
.bp-field select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg-subtle);
  color: var(--color-text);
  font: inherit;
  font-size: 14px;
  padding: 9px 11px;
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}
.bp-field textarea { resize: vertical; min-height: 64px; line-height: 1.5; }
.bp-field input:focus,
.bp-field textarea:focus,
.bp-field select:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 18%, transparent);
}
.bp-field input::placeholder,
.bp-field textarea::placeholder { color: var(--color-text-subtle); }

.bp-hint { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; color: var(--color-text-muted); margin: -6px 0 0; line-height: 1.5; }
.bp-hint svg { flex: 0 0 auto; margin-top: 2px; color: var(--color-text-subtle); }

.bp-advanced { border-top: 1px solid var(--color-border); padding-top: 12px; }
.bp-advanced summary { cursor: pointer; font-size: 13px; font-weight: 500; color: var(--color-text-muted); user-select: none; }
.bp-advanced summary:hover { color: var(--color-text); }
.bp-advanced[open] summary { margin-bottom: 12px; }

.bp-toggles { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--color-border); padding-top: 14px; }
.bp-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 0; }
.bp-toggle-text { min-width: 0; }
.bp-toggle-head { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; color: var(--color-text); }
.bp-toggle-head svg { color: var(--brand-primary); flex: 0 0 auto; }
.bp-toggle-hint { font-size: 12px; color: var(--color-text-muted); margin: 3px 0 0; line-height: 1.45; }
.bp-toggle {
  flex: 0 0 auto;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  color: var(--color-text-subtle);
  display: inline-flex;
  transition: color 150ms ease-out;
}
.bp-toggle.is-on { color: var(--brand-primary); }

.bp-actions { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--color-border); padding-top: 14px; }
.bp-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: none;
  border-radius: 8px;
  background: var(--brand-primary);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 16px;
  cursor: pointer;
  transition: background 150ms ease-out;
}
.bp-btn-primary:hover { background: var(--brand-primary-hover); }
.bp-btn-primary:disabled { opacity: 0.65; cursor: default; }
.bp-saved { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--color-status-confirmed); }
.bp-saved svg { color: var(--color-status-confirmed); }

.bp-error { font-size: 13px; color: var(--color-status-cancelled); margin: 0; }

.bp-empty { align-items: center; text-align: center; gap: 8px; padding: 32px 20px; }
.bp-empty svg { color: var(--color-text-subtle); }
.bp-empty-title { font-size: 15px; font-weight: 600; color: var(--color-text); margin: 4px 0 0; }
.bp-empty-hint { font-size: 13px; color: var(--color-text-muted); margin: 0; max-width: 380px; line-height: 1.5; }

.bp-loading { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--color-text-muted); padding: 24px 0; }
.bp-loading-error { color: var(--color-status-cancelled); }
.bp-loading svg { animation: bp-spin 1s linear infinite; }
@keyframes bp-spin { to { transform: rotate(360deg); } }

/* ── F509.W7.3 — раздел «AI-команда»: внутренние вкладки ──────────────── */
.bp-inner-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--color-border); margin: 0 0 18px; }
.bp-inner-tab {
  display: inline-flex; align-items: center; gap: 7px;
  border: none; background: none; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 500;
  color: var(--color-text-muted);
  padding: 9px 14px; margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  transition: color 150ms ease-out, border-color 150ms ease-out;
}
.bp-inner-tab svg { flex: 0 0 auto; }
.bp-inner-tab:hover { color: var(--color-text); }
.bp-inner-tab.is-active { color: var(--brand-primary); border-bottom-color: var(--brand-primary); }
.bp-inner-pane { display: none; }
.bp-inner-pane.is-active { display: block; }

/* AI-Помощник: выбор режима действий (radio-карточки) */
.bp-radios { display: flex; flex-direction: column; gap: 8px; }
.bp-radio {
  display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid var(--color-border); border-radius: 8px;
  padding: 11px 13px; cursor: pointer;
  transition: border-color 150ms ease-out, background 150ms ease-out;
}
.bp-radio:hover { border-color: var(--brand-primary); }
.bp-radio.is-on { border-color: var(--brand-primary); background: color-mix(in srgb, var(--brand-primary) 7%, transparent); }
.bp-radio input { margin: 2px 0 0; accent-color: var(--brand-primary); }
.bp-radio-text { min-width: 0; }
.bp-radio-title { font-size: 14px; font-weight: 500; color: var(--color-text); }
.bp-radio-hint { font-size: 12px; color: var(--color-text-muted); margin: 2px 0 0; line-height: 1.45; }

/* AI-Помощник: инфо-блок «права зависят от роли» */
.bp-info-block {
  display: flex; gap: 9px; align-items: flex-start;
  border: 1px solid var(--color-border); border-radius: 8px;
  background: var(--color-bg-subtle);
  padding: 12px 13px; font-size: 13px; color: var(--color-text-muted); line-height: 1.5;
}
.bp-info-block svg { flex: 0 0 auto; margin-top: 1px; color: var(--brand-primary); }
