/**
 * S2 — Empty-state dashboard layout.
 *
 * Two stacked cards inside a simple page container. Uses the shared card,
 * label, input, select, button and help-drawer primitives from
 * public/components/. This stylesheet only defines the two things that are
 * scoped to the empty-state flow: the welcome block and the disabled-step
 * presentation.
 */

.empty-page {
  /* shared body width (52rem) already handles centering; keep a light
     vertical rhythm for the first-run hero. */
  padding-top: var(--space-5);
  padding-bottom: var(--space-9);
}

.empty-welcome {
  margin: 0 0 var(--space-1);
  font-size: var(--font-size-h1);
  font-weight: 500;
  color: var(--text-primary);
}

.empty-subtitle {
  margin: 0 0 var(--space-7);
  font-size: var(--font-size-body);
  color: var(--text-secondary);
  line-height: var(--line-height-body);
}

.empty-step-head {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 0 var(--space-2);
  font-size: var(--font-size-h3);
  font-weight: 500;
  color: var(--text-primary);
}

.empty-step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-pill);
  background: var(--text-primary);
  color: var(--bg-primary);
  font-size: var(--font-size-micro);
  font-weight: 500;
}

.empty-step-n--off {
  background: var(--border-secondary);
  color: var(--text-tertiary);
}

.empty-step-tag {
  margin-left: auto;
  padding: var(--space-xs) var(--space-2);
  font-size: var(--font-size-micro);
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border-radius: var(--radius-pill);
}

.empty-step-help {
  margin: 0 0 var(--space-4);
  font-size: var(--font-size-small);
  color: var(--text-secondary);
  line-height: var(--line-height-body);
}

.empty-step-help code {
  font-family: var(--font-mono);
  font-size: var(--font-size-mono);
  background: var(--bg-secondary);
  padding: 1px var(--space-xs);
  border-radius: var(--radius-sm);
}

.empty-field {
  margin-bottom: var(--space-4);
}

.empty-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .empty-row {
    grid-template-columns: 1fr 1fr;
  }
}

.empty-submit-row {
  margin-top: var(--space-5);
}

.empty-submit-err {
  display: block;
  margin-top: var(--space-2);
  color: var(--danger-text);
  font-size: var(--font-size-small);
}

/* Inline retry layout for network-class save failures: error message
   followed by a Retry button on the same line (wraps on narrow screens). */
.empty-submit-err__text + .empty-submit-err__retry {
  margin-left: var(--space-3);
}

.empty-submit-err__retry {
  vertical-align: middle;
}

/* Step 2 (disabled preview). Mirrors design-spec: ~55% opacity, inert. */
.empty-step2 {
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}
