/*
 * .seq-state — the one mark of a run, job or check state (docs/plans/seq-redesign.md
 * § State has one mark): the state word, sentence cased (Failed, Running, Succeeded), in the
 * gem's .body-sm composite with a coloured dot before it. Never a .label-* composite: those
 * are uppercase, and no label in Seq is (Martin's review of 2026-09-24). Emerald for succeeded, golden for queued and running, cardinal for failed and
 * blocked, grey for pending and cancelled; the roles are --state-* in
 * 01-settings/_color-semantic.css, with a dark and a light value each. The word is always
 * present, so the colour never carries the meaning alone. What a state does not mean
 * ("succeeded: every step ran; it does not say the result was reviewed") is said once, in
 * the mark's title attribute, and nowhere in the page's prose.
 *
 *   <span class="seq-state body-sm" data-state="running" title="…">Running</span>
 *
 * Replaces the lamp of the retired instrument-panel concept, deleted by § 5 of the plan.
 */

.seq-state {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-8);
  color: var(--text-primary);
  white-space: nowrap;
}

.seq-state::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
}

.seq-state[data-state="succeeded"]::before {
  background: var(--state-succeeded);
}
.seq-state[data-state="queued"]::before,
.seq-state[data-state="running"]::before {
  background: var(--state-working);
}
.seq-state[data-state="failed"]::before,
.seq-state[data-state="blocked"]::before {
  background: var(--state-failed);
}
.seq-state[data-state="queued"]::before {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--state-working);   /* queued: the ring of running, not yet filled */
}
.seq-state[data-state="pending"],
.seq-state[data-state="cancelled"] {
  color: var(--text-secondary);
}
.seq-state[data-state="cancelled"]::before {
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--border-strong);
}
