/* Части проекта — Figma «LidFly — Бренд и UI Kit 2026», стр. 06 → «Кабинет · Проекты» (883:4577):
   «Проект / Площадка» .lf-platform-chip, «Проект / Правило» .lf-rule-row, «Проект / Агент» .lf-agent-row.
   Разметку даёт public/js/lidfly-project-parts.js; цвета — токены кита (tokens-kit.css), тон ИИ —
   рубрика sky кабинета (calendar.css), «нужен вход» — палитра Warning (status.css).
   См. docs/DESIGN-SYSTEM.md → «Части проекта». */

.lf-brand-mark { flex: 0 0 auto; display: block; width: 20px; height: 20px; object-fit: contain; }
.lf-brand-mark--s { width: 16px; height: 16px; }

/* --- Проект / Площадка: 36 px, капсула; знак 20, имя Label/M, действие 16. --- */
.lf-platform-chip {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 36px;
  margin: 0;
  padding: 6px 10px 6px 8px;
  border: 1px solid transparent;
  border-radius: var(--lf-radius-full);
  background: var(--lf-bg-brand-soft);
  color: var(--lf-text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  text-align: left;
  text-decoration: none;
}
.lf-platform-chip__name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lf-platform-chip__icon { flex: 0 0 auto; width: 16px; height: 16px; }
.lf-platform-chip__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lf-platform-chip__action {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: 0 -4px 0 0;
  padding: 0;
  border: 0;
  border-radius: var(--lf-radius-full);
  background: transparent;
  color: var(--lf-text-secondary);
  cursor: pointer;
}
/* Зона нажатия крестика — 36 × 36, как у плашки. */
.lf-platform-chip__action::after { content: ""; position: absolute; inset: -6px; }
.lf-platform-chip__action:hover { background: var(--lf-bg-hover); color: var(--lf-text-primary); }
.lf-platform-chip--available { border: 1px dashed var(--lf-border-default); background: transparent; color: var(--lf-text-secondary); }
.lf-platform-chip--available .lf-brand-mark { opacity: 0.5; }
.lf-platform-chip--available .lf-platform-chip__icon { color: var(--lf-text-secondary); }
.lf-platform-chip--login { background: var(--status-warning-bg); }
.lf-platform-chip--login .lf-platform-chip__icon { color: var(--lf-status-warning); }
button.lf-platform-chip { cursor: pointer; }
button.lf-platform-chip--available:hover { border-color: var(--lf-text-tertiary); background: var(--lf-bg-hover); color: var(--lf-text-primary); }
button.lf-platform-chip--login:hover { box-shadow: inset 0 0 0 1px var(--status-warning-border); }
.lf-platform-chip:focus-visible, .lf-platform-chip__action:focus-visible { outline: none; box-shadow: var(--lf-focus-ring); }

/* --- Проект / Правило: флажок 16, текст Body/S, подпись Caption, меню 30; линия снизу. --- */
.lf-rule-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--lf-border-subtle);
  list-style: none;
}
.lf-rule-row__icon { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 3px; color: var(--color-brand-text); }
.lf-rule-row__text { display: flex; flex: 1 1 auto; flex-direction: column; gap: 2px; min-width: 0; }
.lf-rule-row__title { margin: 0; color: var(--lf-text-primary); font-size: 15px; line-height: 22px; overflow-wrap: anywhere; white-space: pre-line; }
.lf-rule-row__meta { margin: 0; color: var(--lf-text-tertiary); font-size: 13px; line-height: 18px; }
.lf-rule-row > .lf-menu { flex: 0 0 auto; margin-top: -4px; }
.lf-rule-row .btn { margin: 0; }

/* --- Проект / Агент: аватар 36, имя Label/M, подпись Caption, знаки каналов 20, статус, «Открыть». --- */
.lf-agent-row { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 40px; }
.lf-agent-row__avatar {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background: var(--color-category-sky-bg);
  color: var(--color-category-sky-text);
}
.lf-agent-row__avatar .lf-icon { width: 18px; height: 18px; }
.lf-agent-row--empty .lf-agent-row__avatar { background: var(--lf-bg-muted); color: var(--lf-text-secondary); }
.lf-agent-row__text { display: flex; flex: 1 1 auto; flex-direction: column; gap: 2px; min-width: 0; }
.lf-agent-row__name, .lf-agent-row__meta { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 18px; }
.lf-agent-row__name { color: var(--lf-text-primary); font-size: 14px; font-weight: 500; }
.lf-agent-row__meta { color: var(--lf-text-secondary); font-size: 13px; }
.lf-agent-row__channels { display: inline-flex; flex: 0 0 auto; gap: 4px; }
.lf-agent-row .btn { flex: 0 0 auto; margin: 0; }
.lf-agent-row .status { flex: 0 0 auto; }

/* --- Список выбора окон (889:1540, 924:1175): рамка 16, строка — знак 24, имя Label/M,
   подпись Caption, поле выбора 250 справа; линия между строками. --- */
.lf-pick-list { border: 1px solid var(--lf-border-subtle); border-radius: var(--lf-radius-lg); }
.lf-pick-list__state { margin: 0; padding: 16px; color: var(--lf-text-secondary); font-size: 14px; line-height: 20px; }
.lf-pick-list > .btn { margin: 0 16px 16px; }
.lf-pick-row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 16px; border-bottom: 1px solid var(--lf-border-subtle); }
.lf-pick-row:last-child { border-bottom: 0; }
.lf-pick-row > .lf-brand-mark { width: 24px; height: 24px; }
.lf-pick-row__text { flex: 1 1 auto; min-width: 0; }
.lf-pick-row__name, .lf-pick-row__meta { margin: 0; overflow-wrap: anywhere; }
.lf-pick-row__name { color: var(--lf-text-primary); font-size: 14px; font-weight: 500; line-height: 18px; }
.lf-pick-row__meta { color: var(--lf-text-tertiary); font-size: 13px; line-height: 18px; }
.lf-pick-row__control { flex: 0 0 250px; min-width: 0; }
.lf-pick-row > .btn, .lf-pick-row__control > .btn { margin: 0; }
.lf-pick-missing { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; color: var(--lf-text-secondary); font-size: 13px; line-height: 18px; }
.lf-pick-missing > .lf-icon { flex: 0 0 auto; width: 16px; height: 16px; }
.lf-pick-missing > span { flex: 1 1 auto; }
.lf-pick-missing > .btn { margin: 0; }
@media (max-width: 640px) {
  .lf-pick-row { flex-wrap: wrap; }
  .lf-pick-row__control { flex: 1 1 100%; }
}
