/* ── Category badges ─────────────────────────────────────────────────────── */
.category-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}

/* ── Form labels ─────────────────────────────────────────────────────────── */
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.375rem;
}

/* ── Pipeline step dots ──────────────────────────────────────────────────── */
.step-dot {
  display: inline-block;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
  flex-shrink: 0;
}

.step-dot-idle    { background-color: #e5e7eb; }
.step-dot-done    { background-color: #22c55e; }
.step-dot-error   { background-color: #ef4444; }
.step-dot-skipped { background-color: #d1d5db; }

/* Running dot: spinning border animation */
.step-dot-running {
  background-color: transparent;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
  border: 2px solid #c7d2fe;
  border-top-color: #6366f1;
  animation: dot-spin 0.7s linear infinite;
}

@keyframes dot-spin {
  to { transform: rotate(360deg); }
}

/* ── Status pills ────────────────────────────────────────────────────────── */
.status-pill {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.6;
  white-space: nowrap;
  text-transform: uppercase;
}

.status-pass    { background-color: #dcfce7; color: #15803d; }
.status-fail    { background-color: #fee2e2; color: #b91c1c; }
.status-running { background-color: #e0e7ff; color: #4338ca; }
.status-pending { background-color: #f3f4f6; color: #9ca3af; }

/* ── Test result cards ───────────────────────────────────────────────────── */
.result-card {
  transition: box-shadow 0.15s ease;
}

.result-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ── Always-visible meta rows ────────────────────────────────────────────── */
.meta-row {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}

.meta-label {
  flex-shrink: 0;
  width: 6rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.meta-value {
  font-size: 0.75rem;
  color: #4b5563;
  line-height: 1.5;
}

/* ── Expanded detail sections ────────────────────────────────────────────── */
.detail-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.375rem;
}

.detail-block {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
}

/* ── Prose overrides ─────────────────────────────────────────────────────── */
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
