.lk-bot-block { margin-top: 0; padding-top: 0; border-top: none; }
.lk-bot-block__head { margin-bottom: 14px; }
.lk-bot-block__head .lk-field__label { margin: 0; }
.lk-bot-radio { display: flex; gap: 24px; margin-bottom: 0; }
.lk-bot-radio__item { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.lk-bot-radio__item input[type=radio] { accent-color: var(--accent); width: 16px; height: 16px; cursor: pointer; }
.lk-bot-radio__label { font-size: 14px; color: var(--text); }
.lk-bot-radio__item--disabled { opacity: 0.45; pointer-events: none; }
.lk-bot-instruction { margin-bottom: 16px; }
.lk-bot-instruction__text { font-size: 13px; color: var(--text2); line-height: 1.55; margin: 0; }
.lk-bot-upsell { background: var(--surface2); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 16px; }
.lk-bot-upsell__text { font-size: 13px; color: var(--text2); line-height: 1.55; margin: 0 0 14px; }
.lk-bot-form { display: flex; flex-direction: column; gap: 10px; }
.lk-bot-form__connected { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lk-bot-form__name { font-size: 14px; font-weight: 500; color: var(--text); }
.lk-bot-form__input-row { display: flex; gap: 8px; align-items: center; }
.lk-bot-form__input-row .lk-field__input { flex: 1; min-width: 0; }
.lk-bot-status__badge { font-size: 12px; padding: 2px 9px; border-radius: 20px; font-weight: 500; white-space: nowrap; }
.lk-bot-status__badge--on { background: rgba(108,111,255,0.15); color: var(--accent-h); }
.lk-bot-expired { font-size: 12px; color: var(--text2); margin-top: 10px; }
.lk-bot-expired a { color: var(--accent); text-decoration: none; }
.lk-bot-expired a:hover { color: var(--accent-h); }

/* Список подключённых ботов */
.lk-bots-list { margin-bottom: 18px; }
.lk-bots-list__items { display: flex; flex-direction: column; gap: 8px; }
.lk-bots-list__items:empty { display: none; }

/* Пустое состояние — компактная строка */
.lk-bots-list__empty { padding: 10px 0 4px; }
.lk-bots-list__empty p { margin: 0; font-size: 13px; color: var(--text2); line-height: 1.4; }

/* Форма добавления бота */
.lk-bot-add { border-top: 1px solid var(--border); padding-top: 18px; }
.lk-bot-add__head { margin-bottom: 12px; }
.lk-bot-add__messenger { display: flex; gap: 24px; margin-bottom: 14px; }
.lk-bot-add__instruction { margin-bottom: 12px; }
.lk-bot-add__row { display: flex; gap: 8px; align-items: center; }
.lk-bot-add__row .lk-field__input { flex: 1; min-width: 0; }

/* Список подключённых ботов */
.lk-bots-list { margin-bottom: 18px; }
.lk-bots-list__items { display: flex; flex-direction: column; gap: 8px; }
.lk-bots-list__items:empty { display: none; }

/* Пустое состояние — компактная строка */
.lk-bots-list__empty { padding: 10px 0 4px; }
.lk-bots-list__empty p { margin: 0; font-size: 13px; color: var(--text2); line-height: 1.4; }

/* Форма добавления бота */
.lk-bot-add { border-top: 1px solid var(--border); padding-top: 18px; }
.lk-bot-add__head { margin-bottom: 12px; }
.lk-bot-add__messenger { display: flex; gap: 24px; margin-bottom: 14px; }
.lk-bot-add__instruction { margin-bottom: 12px; }
.lk-bot-add__row { display: flex; gap: 8px; align-items: center; }
.lk-bot-add__row .lk-field__input { flex: 1; min-width: 0; }

/* Ссылка на @BotFather в подсказке */
.lk-bot-instruction__link { color: var(--accent); text-decoration: none; font-weight: 500; }
.lk-bot-instruction__link:hover { text-decoration: underline; }

/* Ссылка Где взять токен */
.lk-bot-instruction__help { color: var(--accent); text-decoration: none; font-size: 12px; margin-left: 4px; border-bottom: 1px dashed var(--accent); }
.lk-bot-instruction__help:hover { border-bottom-style: solid; }

/* Help-модалка */
.lk-modal--help { max-width: 520px; width: 100%; }
.lk-help-body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 14px; max-height: 70vh; overflow-y: auto; }

/* Шаг инструкции */
.lk-help-step { display: flex; gap: 12px; align-items: flex-start; }
.lk-help-step__num { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.lk-help-step__text { font-size: 13px; color: var(--text1); line-height: 1.6; flex: 1; }

/* Ссылка внутри шага */
.lk-help-link { color: var(--accent); text-decoration: none; font-weight: 500; }
.lk-help-link:hover { text-decoration: underline; }

/* Блок с командой и кнопкой копирования */
.lk-help-code { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 6px 10px; background: var(--bg2); border: 1px solid var(--border); border-radius: 6px; font-family: 'Courier New', monospace; font-size: 13px; }
.lk-help-code--sample { display: flex; word-break: break-all; font-size: 11px; color: var(--text2); }
.lk-help-code code { color: var(--text1); background: none; padding: 0; }

/* Кнопка копирования */
.lk-help-copy { background: none; border: none; cursor: pointer; color: var(--text2); padding: 2px; display: flex; align-items: center; border-radius: 4px; transition: color .15s, background .15s; }
.lk-help-copy:hover { color: var(--accent); background: var(--bg1); }
.lk-help-copy.copied { color: #22c55e; }

/* Список внутри шага */
.lk-help-list { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.lk-help-list li { font-size: 13px; color: var(--text1); line-height: 1.55; }

/* Предупреждение */
.lk-help-note { display: flex; gap: 10px; padding: 12px 14px; background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .3); border-radius: 8px; font-size: 12px; color: var(--text1); line-height: 1.55; }
.lk-help-note--inline { margin-left: 36px; }
.lk-help-note__icon { flex-shrink: 0; font-size: 14px; }

/* Показ help-модалки */
.lk-help-modal.active { display: flex !important; }

/* ═══ Слоты «Мои боты» — два блока (TG / MAX) ═══ */

/* Слот */
.lk-bot-slot { padding: 4px 0; }

/* Разделитель между слотами */
.lk-bot-slot__sep { height: 1px; background: var(--border); }

/* Шапка слота */
.lk-bot-slot__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.lk-bot-slot__icon { display: inline-flex; align-items: center; color: var(--text2); }
.lk-bot-slot__title { font-size: 18px; font-weight: 600; color: var(--text); }
.lk-bot-slot__user { font-size: 13px; color: var(--text2); margin-left: 2px; }

/* Иконки-действия справа в шапке */
.lk-bot-slot__actions { margin-left: auto; display: flex; gap: 4px; }
.lk-bot-slot__act { background: none; border: none; cursor: pointer; padding: 6px; border-radius: 6px; color: var(--text2); display: flex; align-items: center; justify-content: center; transition: color .15s, background .15s; }
.lk-bot-slot__act:hover { color: var(--accent); background: var(--surface2); }
.lk-bot-slot__act--delete:hover { color: #ef4444; }

/* Текст-подсказка */
.lk-bot-slot__text { font-size: 13px; color: var(--text2); line-height: 1.55; margin: 0 0 14px; }

/* Строка ввода токена */
.lk-bot-slot__row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lk-bot-slot__row .lk-field__input { flex: 1; min-width: 220px; }

/* Карточка привязанного бота */
.lk-bot-slot__card { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; }
.lk-bot-slot__name { font-size: 14px; font-weight: 600; color: var(--text); }

/* ═══════════════════════════════════════════════════
   Блок «Свой бот / Наш бот» в модалке связки
   ═══════════════════════════════════════════════════ */

.lk-bot-block__head { margin-bottom: 12px; }

/* Два больших переключателя */
.lk-bot-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.lk-bot-toggle__item {
  position: relative;
  display: block;
  cursor: pointer;
}

.lk-bot-toggle__item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lk-bot-toggle__box {
  display: block;
  padding: 14px 16px;
  border: 2px solid #2a2f3a;
  border-radius: 12px;
  background: #1a1d24;
  transition: border-color .15s, background .15s;
}

.lk-bot-toggle__item:hover .lk-bot-toggle__box {
  border-color: #3a4050;
}

.lk-bot-toggle__item input:checked + .lk-bot-toggle__box {
  border-color: #7a5cff;
  background: rgba(122, 92, 255, .08);
}

.lk-bot-toggle__title {
  display: block;
  font-weight: 600;
  font-size: 15px;
  color: #e6e8ee;
  margin-bottom: 4px;
}

.lk-bot-toggle__desc {
  display: block;
  font-size: 12px;
  color: #8a90a0;
  line-height: 1.35;
}

/* Зона состояния под переключателями */
.lk-bot-state {
  padding: 14px;
  border: 1px solid #2a2f3a;
  border-radius: 12px;
  background: #14171d;
  margin-bottom: 14px;
}

.lk-bot-state__view { display: block; }

.lk-bot-state__text {
  margin: 0 0 12px;
  font-size: 14px;
  color: #c8cdd8;
  line-height: 1.4;
}

.lk-bot-state__warn {
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 170, 60, .1);
  border: 1px solid rgba(255, 170, 60, .3);
  color: #ffcf88;
  font-size: 13px;
  line-height: 1.4;
}

/* Карточка бота */
.lk-bot-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: #1a1d24;
}

.lk-bot-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7a5cff, #4d3ac2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}

.lk-bot-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.lk-bot-card__name {
  font-weight: 600;
  font-size: 15px;
  color: #e6e8ee;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lk-bot-card__user {
  font-size: 13px;
  color: #8a90a0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Плашки «Свой / Наш бот»: раскладка + галочка ─── */

.lk-bot-toggle { align-items: stretch; }
.lk-bot-toggle__item { display: flex; }

.lk-bot-toggle__box {
  width: 100%;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  position: relative;
}

/* Кружок радио слева */
.lk-bot-toggle__check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #3a4050;
  background: transparent;
  position: relative;
  transition: all .15s;
}

/* Галочка внутри при выбранной плашке */
.lk-bot-toggle__item input:checked + .lk-bot-toggle__box .lk-bot-toggle__check {
  border-color: #7a5cff;
  background: #7a5cff;
}
.lk-bot-toggle__item input:checked + .lk-bot-toggle__box .lk-bot-toggle__check::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Аватар */
.lk-bot-toggle__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7a5cff, #4d3ac2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  overflow: hidden;
}
.lk-bot-toggle__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lk-bot-toggle__avatar--ours {
  background: linear-gradient(135deg, #4d8cff, #2f5fd6);
}

/* Инфо-колонка */
.lk-bot-toggle__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.lk-bot-toggle__title {
  font-weight: 600;
  font-size: 15px;
  color: #e6e8ee;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.lk-bot-toggle__user {
  font-size: 13px;
  color: #8a90a0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Строка действия внутри плашки «Свой бот» */
.lk-bot-toggle__action { margin-top: 6px; display: block; }
.lk-bot-toggle__action:empty { display: none; }

.lk-bot-toggle__btn {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #3a4050;
  background: transparent;
  color: #e6e8ee;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}
.lk-bot-toggle__btn:hover { background: #2a2f3a; }

.lk-bot-toggle__btn--accent {
  background: #7a5cff;
  border-color: #7a5cff;
  color: #fff;
}
.lk-bot-toggle__btn--accent:hover { background: #6a4ce8; border-color: #6a4ce8; }

.bot-matrix-hint { color: var(--hint-40); }
#botDefaultTextP { color: var(--hint-40); font-size: 12px; font-style: italic; margin-bottom: 16px; }
.bot-matrix-hint { font-size: 12px; font-style: italic; margin-bottom: 16px; }
.lk-bot-sep { border: none; border-top: 1px solid rgba(255,255,255,.1); margin: 20px 0 0; }

/* Напоминание: строки проверки ботов */
.lk-remind__lead { margin: 0 0 14px; font-size: 15px; line-height: 1.5; }
.lk-remind__list { display: flex; flex-direction: column; gap: 12px; }
.lk-remind__row { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; background: #F5F6F8; }
.lk-remind__mess { font-size: 13px; font-weight: 600; color: #1877F2; }
.lk-remind__body { font-size: 14px; line-height: 1.5; color: #1A1A1A; }
.lk-remind__note { margin-top: 4px; padding: 11px 14px; border-radius: 12px; background: #FFF6E5; font-size: 13px; line-height: 1.5; color: #6B5A2E; }
.lk-remind__ul { margin: 6px 0 0; padding-left: 18px; }
.lk-remind__ul li { margin-bottom: 6px; }
.lk-remind__ul li:last-child { margin-bottom: 0; }
.lk-help-note__body { flex: 1; }


/* Ник копирования */
b.lk-copy { color: #8b9cff; cursor: pointer; font-weight: 600; border-bottom: 1px dashed rgba(139, 156, 255, .5); transition: color .15s, border-color .15s; }
b.lk-copy:hover { color: #aab6ff; border-bottom-color: rgba(170, 182, 255, .8); }
b.lk-copy--done { color: #7ee2a0; border-bottom-color: rgba(126, 226, 160, .8); }

/* Модалка напоминания: скрыть верхнюю иконку */
.lk-help-note--no-icon .lk-help-note__icon { display: none; }
/* Заголовок мессенджера в напоминании */
.lk-remind__mng { font-weight: 700; }
/* Акцент «Важно» в напоминании */
.lk-remind__important { font-weight: 700; }

/* Ссылки-действия в плашках подключения чата (Мои боты, продлите услугу) */
.lk-link { color: #8b9cff; cursor: pointer; font-weight: 600; text-decoration: none; border-bottom: 1px dashed rgba(139, 156, 255, .5); transition: color .15s, border-color .15s; }
.lk-link:hover { color: #aab6ff; border-bottom-color: rgba(170, 182, 255, .8); }
