/* ============================================================
   Wizard shell
   The frame that never changes: top bar, progress line, the
   scrolling middle, and the footer with next/back.
   ============================================================ */

.app {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ---------- Top bar ---------- */

.topbar {
  flex-shrink: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-12);
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: var(--space-7);
  min-width: 0;
}

.topbar__title {
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-tight);
  white-space: nowrap;
}

/* ---------- Draft indicator ---------- */

.draft-pill {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0;
  border: none;
  border-radius: 0;
  color: var(--text-3);
  font-size: var(--fs-sm);
  font-feature-settings: 'tnum';
  margin-left: var(--space-1);
}

.dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: none;
}

/* ---------- Progress ---------- */

.progress {
  flex-shrink: 0;
  height: 3px;
  background: var(--surface-2);
}

.progress__bar {
  height: 100%;
  background: var(--text);
  transition: width .4s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Layout ---------- */

.wizard {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.wizard__scroll {
  flex: 1;
  overflow-y: auto;
}

/* Rail on the left, step content (and sometimes a preview) on the right */
.layout {
  max-width: 1160px;
  margin: 0 auto;
  padding: var(--space-20) var(--space-20) var(--space-24);
  display: flex;
  gap: var(--space-24);
  align-items: flex-start;
}

/* ---------- Footer ---------- */

.footer {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  padding: var(--space-7) var(--space-20);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__right {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
