/* Каталог (TASK-236): раздел «Шаблоны проектов» — карточки и карточка шаблона справа, по прототипу. */
.toolbar .tlead { margin: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpage { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.cpage .tabs .tab[disabled] { cursor: default; opacity: .55; }
.cpage .tabs .tab[disabled]:hover { background: transparent; }
.cpage .tabs .soon {
  font-size: 11px; font-weight: 500; padding: 1px 6px; border-radius: 8px;
  background: var(--mat-sys-surface-container-high); color: var(--mat-sys-on-surface-variant);
}
.cpage .tabs .cnt { font-weight: 400; color: var(--mat-sys-on-surface-variant); }
.tlayout { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.tcards { flex: 999 1 540px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.tcard {
  display: flex; flex-direction: column; gap: 10px; padding: 16px; text-align: left; cursor: pointer; color: inherit;
  border-radius: var(--am-corner-m); background: var(--mat-sys-surface-container-lowest);
  border: 1px solid var(--mat-sys-outline-variant);
}
.tcard:hover { background: var(--mat-sys-surface-container-low); }
.tcard.on { border: 2px solid var(--mat-sys-primary); padding: 15px; }
.tcard p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--mat-sys-on-surface-variant); }
.thead { display: flex; align-items: center; gap: 10px; }
.tname { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tname b { font-size: 15px; font-weight: 500; }
.tname > span { font-size: 12px; }
.tname h2 { font-size: 18px; }
.tico {
  width: 40px; height: 40px; border-radius: var(--am-corner-s); flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  background: var(--mat-sys-secondary-container); color: var(--mat-sys-on-secondary-container);
}
.tico svg { width: 22px; height: 22px; }
.tico.big { width: 48px; height: 48px; }
.tchips { display: flex; flex-wrap: wrap; gap: 6px; }
.tchip {
  display: inline-flex; align-items: center; min-height: 24px; padding: 2px 8px; border-radius: var(--am-corner-s);
  border: 1px solid var(--mat-sys-outline-variant); font-size: 12px; font-weight: 500; line-height: 1.35;
}
.tdetail {
  flex: 1 1 320px; max-width: 400px; padding: 20px; display: flex; flex-direction: column; gap: 16px;
  border-radius: var(--am-corner-m); border: 1px solid var(--mat-sys-outline-variant);
  background: var(--mat-sys-surface-container-lowest); --field-bg: var(--mat-sys-surface-container-lowest);
}
.tdetail .tlong { margin: 0; font-size: 14px; line-height: 1.55; }
.tdetail .tsum, .tdetail .tfoot { margin: 0; font-size: 12px; line-height: 1.5; }
.tparts { display: flex; flex-direction: column; gap: 8px; }
.tlabel { font-size: 12px; font-weight: 500; color: var(--mat-sys-on-surface-variant); }
.tpart { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.tpart svg { width: 18px; height: 18px; color: var(--mat-sys-primary); }
