/* ============================================================
   GradSpark — Page layer (Stage 5)
   Page-specific compositions on top of organisms.
   Minimal CSS — most pages reuse existing patterns.
   ============================================================ */

/* ============================================================
   Landing
   ============================================================ */
.lp-hero {
  padding: var(--space-24) 0 var(--space-16);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-6);
}
.lp-hero__title { max-width: 880px; }
.lp-hero__sub { max-width: 640px; color: var(--text-secondary); }
.lp-hero__visual {
  margin-top: var(--space-10);
  width: 100%;
  max-width: 1080px;
  height: 480px;
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, var(--color-blue-100), var(--color-blue-300));
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blue-700);
  position: relative;
  overflow: hidden;
}
.lp-hero__visual::before {
  content: "";
  position: absolute;
  inset: 32px;
  border-radius: var(--radius-xl);
  background: var(--bg-surface);
  box-shadow: var(--shadow-2);
}
.lp-hero__visual svg { position: relative; }

.lp-trust {
  padding: var(--space-12) 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}
@media (max-width: 767px) { .lp-trust { grid-template-columns: repeat(2, 1fr); } }

.lp-cta {
  background: linear-gradient(135deg, var(--color-green-500), var(--color-green-700));
  color: #fff;
  padding: var(--space-16) var(--space-8);
  border-radius: var(--radius-2xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}
.lp-cta h2 { color: #fff; }
.lp-cta p { color: rgba(255,255,255,0.85); max-width: 560px; }

/* Alternating section backgrounds */
.container > .section {
  padding-inline: var(--space-10);
}
.container > .section:nth-child(odd) {
  background: var(--bg-default);
}
.container > .section:nth-child(even) {
  background: var(--bg-muted);
}

/* Responsive card grid — override inline span values */
@media (max-width: 1023px) {
  .section .grid-12 > * { grid-column: span 4 !important; }
}
@media (max-width: 767px) {
  .section .grid-12 > * { grid-column: span 4 !important; }
}

/* ============================================================
   Auth
   ============================================================ */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-canvas);
}
@media (max-width: 1023px) { .auth-shell { grid-template-columns: 1fr; } }

.auth-shell__brand {
  background: linear-gradient(135deg, var(--color-blue-600), var(--color-blue-900));
  color: #fff;
  padding: var(--space-12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
@media (max-width: 1023px) { .auth-shell__brand { display: none; } }

.auth-shell__brand-quote {
  position: relative;
  font-size: 24px;
  line-height: 1.4;
  font-weight: var(--fw-medium);
  max-width: 480px;
}
.auth-shell__form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-tertiary);
  font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-default);
}

/* ── OAuth / social-login buttons ─────────────────────────── */
.oauth-buttons { width: 100%; }

.oauth-btn {
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: #1f2937;
  border: 1px solid #d1d5db;
  font-weight: 600;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.oauth-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.oauth-btn:focus-visible {
  outline: 2px solid var(--brand-primary, #2563eb);
  outline-offset: 2px;
}
.oauth-btn__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

[data-theme="dark"] .oauth-btn {
  background: var(--surface-elevated, #1f2937);
  color: var(--text-primary, #f3f4f6);
  border-color: var(--border-default, #374151);
}
[data-theme="dark"] .oauth-btn:hover {
  background: var(--surface-hover, #283142);
  border-color: var(--border-strong, #4b5563);
}

.oauth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-tertiary);
  font-size: 12px;
  margin: 4px 0;
}
.oauth-divider span { white-space: nowrap; }
.oauth-divider::before, .oauth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-default);
}

/* ============================================================
   Candidate Dashboard
   ============================================================ */
.dash-greeting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.dash-progress-card {
  background: linear-gradient(135deg, var(--color-blue-600), var(--color-blue-800));
  color: #fff;
  border: 0;
}
.dash-progress-card .gs-card__title,
.dash-progress-card .gs-card__sub { color: #fff; }
.dash-progress-card .gs-card__sub { color: rgba(255,255,255,0.8); }

/* ── Dashboard mobile overrides ── */
@media (max-width: 1023px) {
  /* Stat cards: 2 per row on tablet (8-col grid, span 4 = 50%) */
  .gs-card--stat { grid-column: span 4 !important; }

  /* Profile + quick-actions: full width stacked */
  .dash-progress-card        { grid-column: span 8 !important; }
}

@media (max-width: 767px) {
  /* Stat cards: 2 per row on mobile (4-col grid, span 2 = 50%) */
  .gs-card--stat { grid-column: span 2 !important; }

  /* Greeting: stack title above button */
  .dash-greeting { flex-direction: column; align-items: stretch; }
  .dash-greeting .row.gap-2 { width: 100%; }
  .dash-greeting .gs-btn { width: 100%; justify-content: center; }

  /* Profile completion banner: stack vertically */
  .gs-card[style*="border-left"] {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .gs-card[style*="border-left"] a.gs-btn { align-self: stretch; text-align: center; justify-content: center; }

  /* Recent activity table: horizontal scroll */
  .gs-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .gs-table { min-width: 520px; }

  /* Recommended cards: single column */
  .gs-card--interactive,
  .gs-card--course { grid-column: span 4 !important; }
}

/* ============================================================
   Exam interface — focus mode
   ============================================================ */
.exam-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;        /* fallback for browsers without dvh */
  height: 100dvh;       /* dynamic viewport — excludes mobile browser chrome so the action bar stays on-screen */
  width: 100%;          /* not 100vw — avoids the desktop scrollbar-gutter horizontal overflow */
  background: var(--bg-canvas);
  overflow: hidden;
}
.exam-topbar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  height: 64px;
  padding: 0 var(--space-6);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-default);
  flex: 0 0 auto;
}
.exam-topbar__title {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.exam-topbar__name { font-weight: var(--fw-semibold); font-size: 14px; }
.exam-topbar__section { font-size: 12px; color: var(--text-tertiary); }
.exam-topbar__progress {
  flex: 1;
  max-width: 320px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0 auto;
}
.exam-topbar__progress .gs-progress { flex: 1; height: 6px; }

.exam-timer {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--bg-muted);
  border-radius: var(--radius-pill);
  font-variant-numeric: tabular-nums;
  font-weight: var(--fw-semibold);
  font-size: 14px;
}
.exam-timer--warning { background: var(--status-warning-bg); color: var(--status-warning-fg); }
.exam-timer--critical {
  background: var(--status-danger-bg);
  color: var(--status-danger-fg);
  animation: gs-pulse 1.2s ease-in-out infinite;
}
@keyframes gs-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
  50%      { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}

.exam-body {
  display: flex;
  flex: 1;
  min-height: 0;
}
.exam-question {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-8) var(--space-10);
  display: flex;
  flex-direction: column;
  align-items: center;     /* center the capped reading column on wide/ultra-wide screens */
  gap: var(--space-6);
}
/* Cap line length for readability — on a 2560–3440px monitor an uncapped
   question line runs well past the ~75ch comfortable measure. */
.exam-question > * { width: 100%; max-width: 860px; }
.exam-question__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--text-tertiary);
  font-size: 13px;
}
.exam-question__text {
  font-size: 18px;
  line-height: 28px;
  color: var(--text-primary);
}
/* Injected question/option HTML is untrusted markup — keep long tokens, wide
   tables and full-size images from overflowing the (overflow:hidden) shell. */
.exam-question__text,
.exam-option__text { overflow-wrap: anywhere; word-break: break-word; }
.exam-question__text img,
.exam-question__text table { max-width: 100%; height: auto; }
.exam-question__text pre { overflow-x: auto; max-width: 100%; }
.exam-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.exam-option {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--duration-2) var(--ease-out), background-color var(--duration-2) var(--ease-out);
}
.exam-option:hover { border-color: var(--border-strong); }
.exam-option:has(input:checked) {
  border-color: var(--action-primary-default);
  background: var(--color-blue-50);
}
[data-theme="dark"] .exam-option:has(input:checked) { background: rgba(37,99,235,0.10); }
.exam-option__letter {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-muted);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-semibold);
  font-size: 13px;
  flex: 0 0 auto;
  margin-top: -2px;
}
.exam-option:has(input:checked) .exam-option__letter {
  background: var(--action-primary-default);
  color: #fff;
}
.exam-option__text { flex: 1; font-size: 15px; line-height: 22px; }

/* Palette pane (right) */
.exam-palette {
  width: 320px;
  flex: 0 0 320px;
  border-left: 1px solid var(--border-default);
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.exam-palette__head {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-default);
}
.exam-palette__legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-default);
  font-size: 12px;
}
.exam-palette__legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-secondary);
}
.exam-palette__grid {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4) var(--space-5);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-2);
  align-content: start;
}
.palette-cell {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-surface);
  font-size: 12px;
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform var(--duration-1) var(--ease-out);
}
.palette-cell:hover { transform: translateY(-1px); }
.palette-cell[data-state="answered"] {
  background: var(--color-green-500);
  border-color: var(--color-green-500);
  color: #fff;
}
.palette-cell[data-state="marked"] {
  background: var(--color-amber-500);
  border-color: var(--color-amber-500);
  color: #fff;
}
.palette-cell[data-state="marked-answered"] {
  background: var(--color-blue-500);
  border-color: var(--color-blue-500);
  color: #fff;
}
.palette-cell[data-state="marked-answered"]::after {
  content: "";
  position: absolute;
  top: 2px; right: 2px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-green-300);
}
.palette-cell[data-state="not-visited"] {
  background: var(--bg-muted);
  border-style: dashed;
}
.palette-cell--current {
  outline: 2px solid var(--action-primary-default);
  outline-offset: 2px;
}

.legend-swatch {
  width: 14px; height: 14px;
  border-radius: 3px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-surface);
  flex: 0 0 auto;
}
.legend-swatch[data-state="answered"]        { background: var(--color-green-500); border-color: var(--color-green-500); }
.legend-swatch[data-state="marked"]          { background: var(--color-amber-500); border-color: var(--color-amber-500); }
.legend-swatch[data-state="marked-answered"] { background: var(--color-blue-500);  border-color: var(--color-blue-500); }
.legend-swatch[data-state="not-visited"]     { background: var(--bg-muted); border-style: dashed; }

.exam-palette__summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border-default);
  font-size: 12px;
}
.exam-palette__stat { display: flex; align-items: center; gap: var(--space-2); color: var(--text-secondary); }
.exam-palette__stat strong { color: var(--text-primary); }

/* Action bar */
.exam-actionbar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-6);
  background: var(--bg-surface);
  border-top: 1px solid var(--border-default);
  flex: 0 0 auto;
  box-shadow: var(--shadow-2);
}

/* Mobile palette toggle — hidden on desktop */
.exam-mobile-palette-toggle { display: none; }

/* ── Tablet (768–1023): keep the two-pane layout but narrow the palette ──
   Below this the palette becomes a bottom sheet (see the 767px block). */
@media (min-width: 768px) and (max-width: 1023px) {
  .exam-palette { width: 248px; flex: 0 0 248px; }
  /* 4 cols on the narrow rail → ~48px cells, above the touch minimum (tablets
     are touch devices). 5 cols gave ~35px which is too small to tap reliably. */
  .exam-palette__grid { grid-template-columns: repeat(4, 1fr); }
  .exam-question { padding: var(--space-6) var(--space-7); }
}

@media (max-width: 767px) {
  /* Topbar shrinks */
  .exam-topbar { height: 56px; padding: 0 var(--space-4); gap: var(--space-2); }
  .exam-topbar__title { display: none; }
  .exam-topbar__progress { max-width: 160px; }
  .exam-topbar__progress .t-caption { display: none; }

  /* Touch targets — bring controls up to the 44px minimum */
  .theme-btn, #closePalette { width: 44px !important; height: 44px !important; }
  .exam-mobile-palette-toggle { min-height: 44px; }
  .palette-cell { min-height: 42px; }

  /* Question pane gets full width + reduced padding */
  .exam-question { padding: var(--space-5); }

  /* Palette becomes a bottom sheet, controlled by data-mobile-open */
  .exam-palette {
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    max-width: none;
    height: 75vh;
    flex: 0 0 auto;
    z-index: 40;
    border-left: 0;
    border-top: 1px solid var(--border-default);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: var(--shadow-4);
    transform: translateY(100%);
    transition: transform var(--duration-3) var(--ease-out);
  }
  .exam-palette[data-mobile-open="true"] { transform: translateY(0); }
  .exam-palette__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
  }
  .exam-palette__handle {
    width: 40px; height: 4px;
    border-radius: 2px;
    background: var(--border-strong);
    margin: var(--space-2) auto;
    display: block;
  }

  /* Backdrop for the bottom sheet */
  .exam-palette-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17,24,39,0.4);
    z-index: 39;
    display: none;
  }
  .exam-palette-backdrop[data-open="true"] { display: block; }

  /* Show the floating mobile trigger */
  .exam-mobile-palette-toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--action-primary-default);
    color: #fff;
    border-radius: var(--radius-pill);
    padding: var(--space-2) var(--space-4);
    font-weight: var(--fw-semibold);
    font-size: 13px;
    border: 0;
    box-shadow: var(--shadow-3);
  }

  /* Action bar wraps on small screens */
  .exam-actionbar {
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    /* Clear the iOS home indicator so the Submit row isn't hidden behind it */
    padding-bottom: calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
  }
  /* Prev+Clear on row 1, Mark+Save&Next on row 2, Submit full-width on row 3 —
     keeps the bar to 3 compact rows so Submit is always reachable on small screens. */
  .exam-actionbar .gs-btn { flex: 1 1 calc(50% - 4px); }
  .exam-actionbar .gs-btn--danger { flex: 1 1 100%; }
  .exam-actionbar .fill { display: none; }
}

@media (max-width: 480px) {
  .exam-question__text { font-size: 16px; line-height: 24px; }
  .exam-options { gap: var(--space-2); }
  .exam-option { padding: var(--space-3) var(--space-4); }
}

/* Landscape phones are very short — the 3-row wrapped action bar would eat
   most of the viewport. Collapse to one compact row (it scrolls horizontally
   only if the labels genuinely don't fit) and trim the topbar height. */
@media (max-width: 920px) and (max-height: 480px) and (orientation: landscape) {
  .exam-topbar { height: 48px; }
  .exam-actionbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(var(--space-2) + env(safe-area-inset-bottom, 0px));
  }
  .exam-actionbar .gs-btn { flex: 0 0 auto; height: 38px; }
  .exam-actionbar .gs-btn--danger { flex: 0 0 auto; }
  .exam-actionbar .fill { display: block; }
}

.exam-palette__handle { display: none; }

@media (max-width: 767px) {
  .exam-palette [data-mobile-palette-close] { display: inline-flex !important; }
  .exam-palette__handle { display: block; }
}

/* ============================================================
   Result page
   ============================================================ */
.result-hero {
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: var(--space-8);
  align-items: center;
  padding: var(--space-8);
  background: linear-gradient(135deg, var(--color-blue-50), var(--color-neutral-0));
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
}
[data-theme="dark"] .result-hero {
  background: linear-gradient(135deg, var(--color-neutral-800), var(--color-neutral-900));
}
@media (max-width: 1023px) {
  .result-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
.result-hero__score {
  --size: 200px;
  --thickness: 18px;
  --value: 78;
  --fill: var(--color-blue-500);
  margin: 0 auto;
}
.result-hero__score .gs-progress-circle__label {
  font-size: 40px;
  letter-spacing: -1px;
}
.result-hero__meta { display: flex; flex-direction: column; gap: var(--space-2); }
.result-hero__actions { display: flex; flex-direction: column; gap: var(--space-2); min-width: 200px; }
@media (max-width: 1023px) { .result-hero__actions { width: 100%; max-width: 320px; } }

.result-bar {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.result-bar__row {
  display: grid;
  grid-template-columns: 160px 1fr 60px;
  gap: var(--space-3);
  align-items: center;
}
.result-bar__label { font-size: 13px; font-weight: var(--fw-medium); }
.result-bar__value { font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; color: var(--text-secondary); }

/* ============================================================
   Payment
   ============================================================ */
.pay-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-6);
}
@media (max-width: 1023px) { .pay-grid { grid-template-columns: 1fr; } }

.pay-method {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--bg-surface);
  transition: border-color var(--duration-2) var(--ease-out);
}
.pay-method:hover { border-color: var(--border-strong); }
.pay-method:has(input:checked) {
  border-color: var(--action-primary-default);
  background: var(--color-blue-50);
}
[data-theme="dark"] .pay-method:has(input:checked) { background: rgba(37,99,235,0.10); }
.pay-method__icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.pay-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}
.pay-summary-row--total {
  font-size: 18px;
  font-weight: var(--fw-bold);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-default);
  color: var(--text-primary);
}

/* ============================================================
   Admin
   ============================================================ */
.admin-chart {
  width: 100%;
  height: 240px;
  display: block;
}
.admin-chart__grid line { stroke: var(--border-default); stroke-dasharray: 2 4; stroke-width: 1; }
.admin-chart__axis text { fill: var(--text-tertiary); font-size: 11px; font-family: var(--font-sans); }
.admin-chart__line {
  fill: none;
  stroke: var(--action-primary-default);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.admin-chart__area { fill: var(--color-blue-100); opacity: 0.6; }
[data-theme="dark"] .admin-chart__area { fill: rgba(37,99,235,0.18); opacity: 1; }
.admin-chart__dot { fill: var(--action-primary-default); }

.admin-bars {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  height: 160px;
  padding: var(--space-2) 0;
}
.admin-bar {
  flex: 1;
  background: var(--color-blue-500);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: background-color var(--duration-2) var(--ease-out);
  min-height: 4px;
  position: relative;
}
.admin-bar:hover { background: var(--color-blue-600); }
.admin-bar--muted { background: var(--color-neutral-300); }

/* ============================================================
   Wizard layout
   ============================================================ */
.wizard {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-8);
  align-items: start;
}
@media (max-width: 1023px) { .wizard { grid-template-columns: 1fr; gap: var(--space-4); } }

.wizard__rail {
  position: sticky;
  top: calc(72px + var(--space-6));
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.wizard__panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  min-height: 480px;
}
.wizard__panel-head {
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border-default);
}
.wizard__bar {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  margin-top: var(--space-6);
}
