.brief-wizard {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.wizard-progress-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.25);
  overflow: hidden;
}

.wizard-progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-blue), #5b7cff);
  transition: width 0.3s ease;
}

.wizard-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wizard-stepper-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-align: center;
  color: var(--text-muted);
}

.wizard-stepper-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 2px solid rgba(148, 163, 184, 0.35);
  font-size: 0.85rem;
  font-weight: 700;
  background: #fff;
  transition: var(--transition-fast);
}

.wizard-stepper-label {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
}

.wizard-stepper-item.is-active .wizard-stepper-number,
.wizard-stepper-item.is-complete .wizard-stepper-number {
  border-color: var(--accent-blue);
  background: rgba(48, 81, 255, 0.1);
  color: var(--accent-blue);
}

.wizard-stepper-item.is-active {
  color: var(--text-primary);
}

.wizard-stepper-item.is-complete .wizard-stepper-label {
  color: var(--text-secondary);
}

.wizard-panel-header {
  margin-bottom: 1.25rem;
}

.wizard-panel-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-blue);
  margin-bottom: 0.35rem;
}

.wizard-panel-title {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.wizard-panel-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.wizard-actions .btn-primary,
.wizard-actions .btn-ghost {
  min-width: 7.5rem;
}

.wizard-actions .btn-primary {
  margin-left: auto;
}

.brief-wizard [data-wizard-submit][hidden] {
  display: none !important;
}

.wizard-review {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(48, 81, 255, 0.04);
  border: 1px solid rgba(48, 81, 255, 0.12);
}

.wizard-review-title {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.wizard-review-list {
  display: grid;
  gap: 0.85rem;
}

.wizard-review-list dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.wizard-review-list dd {
  margin: 0.2rem 0 0;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 768px) {
  .wizard-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wizard-actions {
    flex-direction: column-reverse;
  }

  .wizard-actions .btn-primary,
  .wizard-actions .btn-ghost {
    width: 100%;
    margin-left: 0;
  }
}
