/* Auto-generated by the styles.css split-and-dedupe cleanup. */

.flow-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-width: 520px;
  margin: 0 auto var(--space-8);
  padding: 0;
  list-style: none;
}

/* На странице задачи степпер лежит прямо в <main> — даём ему тот же
   верхний отступ, что даёт .tool-page на странице загрузки. */
main > .flow-steps {
  margin-top: var(--space-10);
}

.flow-step {
  position: relative;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 15px;
  left: calc(50% + 24px);
  right: calc(-50% + 24px);
  height: 2px;
  background: var(--border);
}

.flow-step.is-complete:not(:last-child)::after {
  background: var(--success);
}

.flow-step-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.flow-step-check {
  display: none;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-step.is-current .flow-step-dot {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.flow-step.is-complete .flow-step-dot {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}

.flow-step.is-complete .flow-step-check {
  display: block;
}

.flow-step.is-complete .flow-step-num {
  display: none;
}

.flow-step.is-failed .flow-step-dot {
  border-color: var(--danger);
  background: var(--danger-soft);
  color: var(--danger);
}

.flow-step-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.flow-step.is-current .flow-step-label,
.flow-step.is-complete .flow-step-label {
  color: var(--text);
}

.flow-step.is-failed .flow-step-label {
  color: var(--danger);
}
