/* ─── rows (dense list-app records) ────────────────────────────────────
   Ui::RowComponent. Rows sit flush inside a panel, divided by dashed
   hairlines — the signal-log / HUD-table vocabulary rather than a stack of
   individually ticked cards. Sized for thumbs: every row is ≥ 48px. */

.row-list { list-style: none; display: flex; flex-direction: column; }

.row {
  display: flex; align-items: center;
  gap: 0.25rem;
  min-height: 48px;
  padding: 0 0.75rem 0 0.25rem;
  border-bottom: 1px dashed var(--border);
  transition: opacity 0.15s, background-color 0.15s;
}
.row:last-child { border-bottom: none; }
.row:not(:has(.row-leading)) { padding-left: 0.95rem; }

.row-leading { flex: none; display: flex; align-items: center; }

.row-body {
  flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column; justify-content: center;
  gap: 0.05rem;
  padding: 0.55rem 0.35rem;
  color: var(--text);
}
a.row-body:hover { text-decoration: none; }
a.row-body:hover .row-title { color: var(--accent); }
a.row-body:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; border-radius: var(--radius); }

.row-title {
  font-size: 0.98rem; font-weight: 450; line-height: 1.3;
  overflow-wrap: anywhere;
}
.row-metas { display: flex; flex-wrap: wrap; gap: 0 0.75rem; }
.row-meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}

.row-trailing {
  flex: none;
  display: flex; align-items: center; gap: 0.6rem;
}

.row-count {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  color: var(--ink-2);
  min-width: 1.5em; text-align: right;
}
.row-chevron { display: inline-flex; color: var(--metal-3); }
.row-chevron svg { width: 16px; height: 16px; }
.row-nav:hover .row-chevron { color: var(--cyan); }
.row-nav .row-body { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.row-nav .row-title { font-weight: 500; }

/* state modifiers (no green — done reads via strike + opacity) */
.row-done .row-title { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--metal-3); }
.row-done { opacity: 0.7; }
.row-attention { box-shadow: inset 2px 0 0 var(--red); }

/* Optimistic: while the check's form is in flight, show the outcome now. */
.row:has(.check-form[aria-busy="true"] .check:not(.check-on)) .row-title {
  color: var(--muted); text-decoration: line-through;
}
