/* Taskson — каталог «Возможности»: детали страницы (префикс lp-vozmozhnosti-), поверх lp.css и словаря ui.css / ui-extra.css. */

/* ---------- узкий телефон (до 359): мини-интерфейсы карточек каталога без обрезки ---------- */
@media (max-width: 359px) {
  /* доска: одна колонка во всю ширину */
  .lp-cat-art.art-board { grid-template-columns: minmax(0, 1fr); }
  .lp-cat-art.art-board > .ui-col:nth-child(n+2) { display: none; }
  /* чат: Тасик меньше и целиком */
  .lp-cat-art.art-chat .ui-sticker { width: 52px; margin-top: -10px; }
  /* команда, клиенты, интеграции: метка под именем, имя в полную ширину */
  .lp-cat-art.art-rows { height: auto; }
  .lp-cat-art.art-rows .ui-key { grid-template-columns: 28px minmax(0, 1fr); row-gap: 6px; }
  .lp-cat-art.art-rows .ui-key > :first-child { grid-row: span 2; }
  .lp-cat-art.art-rows .ui-key > :nth-child(3) { grid-column: 2; justify-self: start; }
  .lp-cat-art.art-rows .ui-key b, .lp-cat-art.art-rows .ui-key small { white-space: normal; }
  /* роли: Владелец против Сотрудника, без «Админ. системы» (Расчёт зарплаты скрыт правилом до 400) */
  .lp-cat-art .ui-matrix { grid-template-columns: minmax(0, 1fr) repeat(2, 54px); }
  .lp-cat-art .ui-matrix > span:nth-child(5n+3) { display: none; }
}

/* карточка «Автоматизация» (art/cat-avtomatizaciya): блоки сценария на светлой подложке, как колонки доски */
.lp-cat-art.lp-vozmozhnosti-rule { align-content: start; }
.lp-cat-art.lp-vozmozhnosti-rule .ui-rule-b { background: var(--ui-panel); }

/* «Безопасность» в сетке по три (с карточкой «Автоматизация» карточек стало 12, широкого ряда нет):
   матрица ролей без «Расчёта зарплаты», чтобы подписи прав не наезжали на галки */
@media (min-width: 360px) {
  .lp-cat-grid .lp-cat-art .ui-matrix { grid-template-columns: minmax(0, 1fr) repeat(3, 58px); }
  .lp-cat-grid .lp-cat-art .ui-matrix > span:nth-child(5n) { display: none; }
}

/* ==== mockup2blade: атрибуты style макета — раздел пишет tools/mockup2blade.py, руками не править ==== */
.lp-vozmozhnosti-s01671d { left: 16% !important; width: 30% !important; }
.lp-vozmozhnosti-s16078c { left: 58% !important; }
.lp-vozmozhnosti-s36e516 { height: 78% !important; }
.lp-vozmozhnosti-s3c73ea { height: 64% !important; }
.lp-vozmozhnosti-s69d01d { left: 6% !important; width: 42% !important; }
.lp-vozmozhnosti-s7548c8 { height: 86% !important; }
.lp-vozmozhnosti-s7b4f59 { left: 30% !important; width: 40% !important; }
.lp-vozmozhnosti-s7de609 { left: 16% !important; width: 44% !important; }
.lp-vozmozhnosti-s8ed5dc { left: 6% !important; width: 38% !important; }
.lp-vozmozhnosti-s8f453e { left: 30% !important; width: 26% !important; }
.lp-vozmozhnosti-s99fa4f { height: 50% !important; }
.lp-vozmozhnosti-sa2b817 { height: 92% !important; }
.lp-vozmozhnosti-sf0978d { left: 62% !important; width: 30% !important; }
/* ==== /mockup2blade ==== */
