/* SPDX-License-Identifier: MIT */
/* Stepper · Navigation. Shows progress through a short flow. Done steps get a tick, the current step is marked for screen readers, the rest wait. Tokens only. */
.st { --st-dot: var(--size-control-xs); display: flex; margin: 0; padding: 0; list-style: none; font-family: var(--font-sans); }
.st__step { position: relative; display: flex; flex: 1; flex-direction: column; gap: var(--space-2-5); min-width: 0; padding-right: var(--space-4); }
.st__step:not(:last-child)::after { content: ""; position: absolute; top: calc(var(--st-dot) / 2); left: calc(var(--st-dot) + var(--space-2)); right: var(--space-2); height: var(--border-width-strong); border-radius: var(--radius-full); background: var(--color-border); }
.st__step[data-state="done"]::after { background: var(--color-accent); }
.st__dot { display: inline-grid; place-items: center; width: var(--st-dot); height: var(--st-dot); border: var(--border-width-strong) solid var(--color-border-strong); border-radius: var(--radius-full); background: var(--color-surface); color: var(--color-text-muted); font: var(--weight-semibold) var(--text-xs)/var(--leading-none) var(--font-sans); font-variant-numeric: tabular-nums; }
.st__dot .icon { width: var(--size-icon-xs); height: var(--size-icon-xs); }
.st__step[data-state="done"] .st__dot { border-color: var(--color-accent); background: var(--color-accent); color: var(--color-text-on-accent); }
.st__step[data-state="current"] .st__dot { border-color: var(--color-accent); color: var(--color-accent-text); box-shadow: 0 0 0 var(--ring-width) var(--color-accent-muted); }
.st__text { display: grid; gap: var(--space-hair); }
.st__label { color: var(--color-text); font: var(--weight-semibold) var(--text-sm)/var(--leading-snug) var(--font-sans); }
.st__step[data-state="todo"] .st__label { color: var(--color-text-muted); font-weight: var(--weight-medium); }
.st__desc { color: var(--color-text-muted); font: var(--weight-regular) var(--text-xs)/var(--leading-snug) var(--font-sans); }
.st[data-fr-orientation="vertical"] { flex-direction: column; gap: var(--space-5); }
.st[data-fr-orientation="vertical"] .st__step { flex-direction: row; gap: var(--space-3); padding: 0; }
.st[data-fr-orientation="vertical"] .st__step:not(:last-child)::after { top: calc(var(--st-dot) + var(--space-1-5)); bottom: calc(var(--space-5) * -1 + var(--space-1-5)); left: calc(var(--st-dot) / 2 - var(--border-width)); right: auto; width: var(--border-width-strong); height: auto; }
.st[data-fr-orientation="vertical"] .st__text { padding-top: var(--space-hair); }
