.stepsPanel {
  margin-top: 20px;
}

.stepsHeader {
  margin-bottom: 20px;
}

.stepsDescription {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-top: -12px;
}

.stepsList {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.stepRow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stepIndex {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(var(--primary-rgb) / 0.1);
  border-radius: 50%;
}

.stepInput {
  flex: 1;
  min-width: 0;
  height: var(--field-height);
  padding: var(--field-padding-y) var(--field-padding-x);
  font-size: var(--field-font-size);
  line-height: 1.4;
  font-family: inherit;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.stepInputFa {
  font-family: var(--font-fa);
}

.stepInput:focus {
  outline: none;
  border-color: rgba(var(--primary-rgb) / 0.5);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb) / 0.12);
}

.stepControls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.emptyText {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  padding: 16px 12px;
}

.addStepBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  background: rgba(var(--primary-rgb) / 0.08);
  border: 1px dashed rgba(var(--primary-rgb) / 0.35);
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.addStepBtn:hover {
  background: rgba(var(--primary-rgb) / 0.14);
}

.stepsActions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.saveBtn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius-sm);
}

.saveBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .stepRow {
    flex-wrap: wrap;
  }

  .stepInput {
    width: 100%;
    flex: 1 1 100%;
  }

  .stepControls {
    margin-left: auto;
  }
}
