/* ─── cards (HUD record list) ──────────────────────────────────────── */

.card-list { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }

.card {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: opacity 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
/* card corner ticks — smaller than panel ticks */
.card::before, .card::after,
.card > .tick-tr, .card > .tick-bl {
  content: ""; position: absolute; width: 8px; height: 8px; pointer-events: none;
}
.card::before { top: -1px; left: -1px;  border-top: 1px solid var(--metal-3); border-left: 1px solid var(--metal-3); }
.card::after  { bottom: -1px; right: -1px; border-bottom: 1px solid var(--metal-3); border-right: 1px solid var(--metal-3); }
.card > .tick-tr { top: -1px; right: -1px; border-top: 1px solid var(--metal-3); border-right: 1px solid var(--metal-3); }
.card > .tick-bl { bottom: -1px; left: -1px; border-bottom: 1px solid var(--metal-3); border-left: 1px solid var(--metal-3); }

.card:hover { border-color: var(--cyan-dim); }
.card-info { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.card-name {
  font-weight: 500; font-size: 0.95rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.card-desc { font-size: 0.82rem; color: var(--muted); }
.card-actions { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.card > turbo-frame { display: contents; }
.card[hidden] { display: none; }

.card.card-attention {
  border-left: 3px solid var(--red);
  border-radius: 4px 4px 4px 0;
}
.card.card-muted .card-name { color: var(--muted); }

/* Compact card variant — tighter single-row padding (e.g. product candidates). */
.card.card-compact {
  padding: 0.45rem 0.9rem;
}

/* Icon buttons (Ui::ButtonComponent icon:) inside compact cards — text label
   on desktop, icon on mobile. */
.card.card-compact .btn-icon { display: none; }
.card.card-compact .btn-icon svg { width: 14px; height: 14px; stroke-width: 2; vertical-align: middle; }

@media (max-width: 768px) {
  .card.card-compact .btn-label { display: none; }
  .card.card-compact .btn-icon { display: inline-flex; align-items: center; }
}
