/* .cab- · B9 · класи .cab-proj… · мої проєкти (N12-B): картки без постера. Розміри — Референс #N11 «Картки»,
 * «Вміст картки», «Розбивка», «Порожньо».
 */

.cab-proj {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
  padding-bottom: 48px;
}

.cab-proj__title {
  margin: 0;
}

.cab-proj__empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.cab-proj__empty-title {
  font: 500 16px / 1.35 var(--f-ui);
}

.cab-proj__empty-text {
  color: var(--muted);
  font: 400 13.5px / 1.5 var(--f-ui);
}

/* ───── Сітка ───── */

.cab-proj__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

@media (max-width: 1199px) {
  .cab-proj__grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

.cab-proj__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-14);
  background: var(--card);
  transition: border-color var(--t-hover);
}

.cab-proj__card:hover,
.cab-proj__card.is-open {
  border-color: var(--edge-strong);
}

.cab-proj__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 18px;
}

.cab-proj__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

/* Статус за C2: точка 7px + підпис. */
.cab-proj__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font: 400 13px / 1.3 var(--f-ui);
}

.cab-proj__dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--progress);
}

.cab-proj__status--busy .cab-proj__dot {
  background: var(--accent);
  animation: adc-pulse 1.1s ease-in-out infinite;
}

.cab-proj__status--awaiting .cab-proj__dot {
  background: var(--accent);
}

.cab-proj__status--intake .cab-proj__dot {
  background: var(--muted);
}

.cab-proj__status--failed {
  color: var(--danger);
  font-weight: 500;
}

.cab-proj__status--failed .cab-proj__dot {
  background: var(--danger);
}

.cab-proj__date {
  color: var(--muted);
  font: 400 11.5px / 1 var(--f-mono);
}

.cab-proj__open {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  text-align: left;
  transition: color var(--t-hover);
}

.cab-proj__open:hover {
  color: var(--accent);
}

.cab-proj__host {
  font: 500 16px / 1.3 var(--f-ui);
  overflow-wrap: anywhere;
}

.cab-proj__desc {
  color: var(--muted);
  font: 400 13px / 1.3 var(--f-ui);
}

/* ───── Низ картки: формати і «витрачено» ───── */

.cab-proj__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.cab-proj__formats {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 20px;
}

.cab-proj__glyph {
  flex: none;
  border: 1.5px solid var(--ink);
  border-radius: 2px;
}

.cab-proj__fmt {
  margin-left: 4px;
  color: var(--ink-2);
  font: 400 11px / 1 var(--f-mono);
  white-space: nowrap;
}

.cab-proj__spent {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font: 400 12px / 1.3 var(--f-mono);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  white-space: nowrap;
  transition:
    color var(--t-hover),
    text-decoration-color var(--t-hover);
}

.cab-proj__spent:hover,
.cab-proj__spent[aria-expanded="true"] {
  text-decoration-color: var(--ink);
}

.cab-proj__spent:hover {
  color: var(--ink);
}

.cab-proj__spent b {
  color: var(--ink);
  font-weight: 500;
}

/* ───── Розбивка ───── */

.cab-proj__parts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--ink-2);
  font: 400 12px / 1.4 var(--f-mono);
  animation: adc-fade 0.35s var(--ease) both;
}

.cab-proj__part {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.cab-proj__part b {
  color: var(--ink);
  font-weight: 500;
}

.cab-proj__part--total {
  padding-top: 6px;
  border-top: 1px solid var(--edge-strong);
  color: var(--ink);
  font-weight: 500;
}
