/* Setup wizard — minimal black theme */

.setup-hero {
  grid-template-columns: 1fr auto;
}

.setup-hero .portal-hero-note {
  min-width: 200px;
}

/* Notice cards use light backgrounds; set text colors explicitly. */
.setup-notice {
  margin-bottom: 16px;
  border-width: 2px;
  box-shadow: none;
  color: #1f2937;
}

.setup-notice-warning {
  border-color: #f97316;
  background: #fff7ed;
}

.setup-notice-info {
  border-color: #0ea5e9;
  background: #f0f9ff;
}

.setup-notice h2 {
  margin-top: 0;
  color: #111827;
}

.setup-notice-warning h2 { color: #9a3412; }
.setup-notice-info h2 { color: #075985; }

.setup-notice p,
.setup-notice li,
.setup-notice span {
  color: #1f2937;
}

.setup-notice strong {
  color: #111827;
}

.setup-notice code {
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  border: 1px solid rgba(31, 41, 55, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: #111827;
}

.setup-notice ul {
  margin: 0;
  padding-left: 1.4rem;
}

.setup-notice li + li {
  margin-top: 0.45rem;
}

.setup-ack-field {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.setup-ack-field input {
  width: 1.1rem;
  min-height: 1.1rem;
}

.setup-ack-field span {
  font-weight: 700;
}

/* Progress bar */
.progress-bar {
  position: relative;
  height: 2.2rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  overflow: hidden;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), #b8d9ff);
  transition: width 0.3s ease;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 12px rgba(122, 184, 255, 0.4);
}

.progress-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 3;
  color: var(--ink);
  mix-blend-mode: difference;
}

/* Step gating */
.portal-step[data-step] {
  transition: opacity 0.2s ease;
}

.portal-step.step-locked {
  opacity: 0.45;
  pointer-events: none;
}

.portal-step.step-done .portal-step-head h2::after {
  content: '\2713';
  margin-left: 0.5rem;
  color: var(--success);
}

/* Flash log */
.flash-log {
  margin: 0;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.7;
  max-height: 12rem;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

@media (max-width: 860px) {
  .setup-hero {
    grid-template-columns: 1fr;
  }
}
