/* ── Status badges ──────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: color-mix(in oklab, var(--badge-tone) 16%, var(--bg-card));
  color: color-mix(in oklab, var(--badge-tone) 78%, var(--text));
  --badge-tone: var(--text-muted);
}
.badge--created     { --badge-tone: var(--blue); }
.badge--pending     { --badge-tone: var(--yellow); }
.badge--queued      { --badge-tone: var(--cyan); }
.badge--in-progress { --badge-tone: var(--violet); }
.badge--completed   { --badge-tone: var(--green); }
.badge--failed      { --badge-tone: var(--red); }
.badge--neutral     { background: var(--bg-hl); color: var(--text-muted); }
.badge--ok          { --badge-tone: var(--green); }

/* Worker lease — orthogonal to the job state, so it sits next to the status
   badge rather than replacing it. Green means a worker is demonstrably alive
   on the job; red means its heartbeat expired. */
.badge--hot         { --badge-tone: var(--green); }
.badge--stale       { --badge-tone: var(--red); }

/* Feature maturity, orthogonal to any state: the control works but what it
   does is not to be relied on. */
.badge--experimental {
  --badge-tone: var(--yellow);
  border: 1px dashed color-mix(in oklab, var(--yellow) 55%, transparent);
}

/* A provider whose API key no deployment guarantees: picking one of its
   models is allowed, but the analysis may fail instead of running. */
.badge--warning { --badge-tone: var(--orange); }

/* A form stored through a parser that dropped part of it. */
.badge--obsolete { --badge-tone: var(--red); }
