[data-fui-comp="ui-progress-steps"] {
  display: block;
}
[data-fui-comp="ui-progress-steps"] .ui-progress-steps__list {
  display: flex;
  gap: var(--spacing-sm, 8px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: progress-steps;
}
[data-fui-comp="ui-progress-steps"] .ui-progress-steps__item {
  flex: 1 1 0;
  position: relative;
  min-width: 0;
}
/* Connector line between steps. Drawn from the right edge of every
   item except the last, behind the marker so the marker punches
   through. Tinted by the NEXT step's status — green if both complete,
   border-color otherwise. */
[data-fui-comp="ui-progress-steps"] .ui-progress-steps__item + .ui-progress-steps__item::before {
  content: "";
  position: absolute;
  left: 0;
  right: 50%;
  top: 14px;
  height: 2px;
  background: var(--color-border, #E4E4E7);
  z-index: 0;
}
.ui-progress-steps__item--current + .ui-progress-steps__item::before,
.ui-progress-steps__item--complete + .ui-progress-steps__item--complete::before,
.ui-progress-steps__item--complete + .ui-progress-steps__item::before {
  background: var(--color-primary, #4F46E5);
}
[data-fui-comp="ui-progress-steps"] .ui-progress-steps__row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto auto;
  justify-items: center;
  gap: var(--spacing-xs, 4px);
  color: var(--color-text-muted, #52525B);
  text-decoration: none;
}
[data-fui-comp="ui-progress-steps"] .ui-progress-steps__text {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 0;
}
[data-fui-comp="ui-progress-steps"] a.ui-progress-steps__row:hover {
  text-decoration: underline;
}
[data-fui-comp="ui-progress-steps"] .ui-progress-steps__marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--color-surface, #FFFFFF);
  border: 2px solid var(--color-border, #E4E4E7);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted, #52525B);
}
[data-fui-comp="ui-progress-steps"] .ui-progress-steps__label {
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}
[data-fui-comp="ui-progress-steps"] .ui-progress-steps__hint {
  font-size: 0.75rem;
  color: var(--color-text-muted, #52525B);
  text-align: center;
}

/* Status states. */
.ui-progress-steps__item--current .ui-progress-steps__marker {
  background: var(--color-primary, #4F46E5);
  border-color: var(--color-primary, #4F46E5);
  color: var(--color-primary-fg, #FFFFFF);
}
.ui-progress-steps__item--current .ui-progress-steps__label {
  color: var(--color-text, #18181B);
}
.ui-progress-steps__item--complete .ui-progress-steps__marker {
  background: var(--color-primary, #4F46E5);
  border-color: var(--color-primary, #4F46E5);
  color: var(--color-primary-fg, #FFFFFF);
}
.ui-progress-steps__item--complete .ui-progress-steps__label {
  color: var(--color-text, #18181B);
}

/* Vertical orientation. */
.ui-progress-steps--vertical .ui-progress-steps__list {
  flex-direction: column;
  gap: var(--spacing-md, 12px);
}
.ui-progress-steps--vertical .ui-progress-steps__item {
  flex: 0 0 auto;
}
.ui-progress-steps--vertical .ui-progress-steps__row {
  grid-template-rows: auto;
  grid-template-columns: auto 1fr;
  justify-items: start;
  align-items: center;
  gap: var(--spacing-md, 12px);
}
.ui-progress-steps--vertical .ui-progress-steps__text {
  justify-items: start;
}
.ui-progress-steps--vertical .ui-progress-steps__label,
.ui-progress-steps--vertical .ui-progress-steps__hint {
  text-align: start;
}
.ui-progress-steps--vertical .ui-progress-steps__item + .ui-progress-steps__item::before {
  left: 13px;
  right: auto;
  top: -12px;
  bottom: auto;
  width: 2px;
  height: 12px;
}