/* ==========================================================================
   Data Import Wizard — styles
   Built on the shared design tokens in shared/css/main.css
   (--app-bg, --app-card-bg, --app-text, --app-muted, --app-border,
    --app-accent, --app-accent-dark, --app-success, --app-danger, --app-warning)
   ========================================================================== */

.wiz .card { margin-bottom: 1.25rem; }
.wiz-muted { color: var(--app-muted); font-size: 0.95rem; }

/* The [hidden] attribute must win over any display rule below (e.g. flex).
   Author styles otherwise override the UA `[hidden]{display:none}` rule. */
[hidden] { display: none !important; }

/* ── Login gate (logged-out enticement card) ──────────────────────────── */
.wiz-gate { max-width: 640px; margin: 0 auto 1.25rem; text-align: center; }
.wiz-gate__icon { font-size: 3rem; line-height: 1; margin-bottom: 0.25rem; }
.wiz-gate h2 { margin: 0.25rem 0 0.5rem; }
.wiz-gate__lede { color: var(--app-muted); line-height: 1.55; margin: 0 auto 1rem; max-width: 52ch; }
.wiz-gate__perks {
  list-style: none; padding: 0; margin: 0 auto 1.25rem; max-width: 40ch;
  text-align: left; display: grid; gap: 0.5rem;
}
.wiz-gate__perks li { color: var(--app-text); font-size: 0.95rem; }
.wiz-gate__actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.wiz-gate__actions .wiz-btn { min-width: 150px; text-align: center; }
.wiz-gate__note { margin: 1rem 0 0; color: var(--app-muted); font-size: 0.85rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ── Step indicator ───────────────────────────────────────────────────── */
.wiz-steps-wrap { margin: 0.5rem 0 1.25rem; }
.wiz-steps {
  list-style: none; display: flex; gap: 0.5rem; padding: 0; margin: 0;
  flex-wrap: wrap;
}
.wiz-step {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.9rem; border-radius: 999px;
  background: var(--app-card-bg); border: 1px solid var(--app-border);
  color: var(--app-muted); font-size: 0.9rem; font-weight: 600;
}
.wiz-step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: var(--app-border); color: #fff; font-size: 0.8rem;
}
.wiz-step.is-current { border-color: var(--app-accent); color: var(--app-accent-dark); }
.wiz-step.is-current .wiz-step__num { background: var(--app-accent); }
.wiz-step.is-done { color: var(--app-success); border-color: var(--app-success); }
.wiz-step.is-done .wiz-step__num { background: var(--app-success); }

/* ── Tool banner ──────────────────────────────────────────────────────── */
.wiz-tool-banner__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap;
}
.wiz-tool-banner__eyebrow {
  display: block; text-transform: uppercase; letter-spacing: 0.06em;
  font-size: 0.72rem; color: var(--app-muted);
}
.wiz-tool-banner__name { font-size: 1.25rem; margin-right: 0.5rem; }
.wiz-tool-banner__desc { margin: 0.75rem 0 0; color: var(--app-muted); }

/* ── Fields ───────────────────────────────────────────────────────────── */
.wiz-field { display: block; margin-top: 0.75rem; }
.wiz-field > span { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.wiz-select {
  width: 100%; max-width: 480px; padding: 0.6rem 0.75rem;
  border: 1px solid var(--app-border); border-radius: 8px;
  background: #fff; color: var(--app-text); font-size: 1rem;
}

/* ── Dropzone tweaks ──────────────────────────────────────────────────── */
.wiz-dropzone { padding: 2rem 1rem; cursor: pointer; }
.wiz-status { min-height: 1.25rem; color: var(--app-danger); font-weight: 600; }

/* ── Badges / summary ─────────────────────────────────────────────────── */
.wiz-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.wiz-badge {
  display: inline-block; padding: 0.3rem 0.7rem; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; line-height: 1;
}
.wiz-badge--fatal { background: #fdecec; color: var(--app-danger); }
.wiz-badge--warning { background: #fef5e2; color: #a86a05; }
.wiz-badge--info { background: #e8f0fb; color: var(--app-accent-dark); }
.wiz-badge--ok { background: #e6f6ec; color: var(--app-success); }

/* ── Review head ──────────────────────────────────────────────────────── */
.wiz-review__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 0.75rem;
}
.wiz-preview-heading { margin: 1.25rem 0 0.5rem; font-size: 1.05rem; }

/* ── Simple/Pro mode toggle (SP3) ─────────────────────────────────────── */
.wiz-mode {
  display: inline-flex; border: 1px solid var(--app-border); border-radius: 999px;
  overflow: hidden; margin-bottom: 0.6rem; background: #fff;
}
.wiz-mode__btn {
  border: none; background: transparent; cursor: pointer; padding: 0.4rem 0.9rem;
  font-size: 0.85rem; font-weight: 600; color: var(--app-muted);
}
.wiz-mode__btn.is-active { background: var(--app-accent); color: #fff; }
.wiz-spotlight-head { margin: 0 0 0.6rem; color: var(--app-text); font-size: 0.95rem; }

/* ── Micro-decisions / learn-by-doing (SP4) ───────────────────────────── */
.wiz-micro__q { margin: 0.75rem 0 0.4rem; }
.wiz-micro__opts { display: flex; flex-direction: column; gap: 0.4rem; }
.wiz-micro__opt {
  text-align: left; padding: 0.6rem 0.8rem; border: 1px solid var(--app-border);
  border-radius: 8px; background: #fff; cursor: pointer; font-size: 0.92rem; color: var(--app-text);
}
.wiz-micro__opt:hover { border-color: var(--app-accent); background: #f6faff; }
.wiz-micro__opt.is-wrong { border-color: var(--app-danger); background: #fdf0f0; color: #8a2a2a; }
.wiz-micro__feedback {
  margin: 0.6rem 0 0; padding: 0.5rem 0.7rem; border-radius: 8px;
  background: #fdf0f0; color: #8a2a2a; font-size: 0.9rem; line-height: 1.45;
}

/* ── Issue cards ──────────────────────────────────────────────────────── */
.wiz-issues { display: flex; flex-direction: column; gap: 0.75rem; }.wiz-issue {
  border: 1px solid var(--app-border); border-left-width: 5px;
  border-radius: 10px; padding: 0.9rem 1rem; background: var(--app-card-bg);
}
.wiz-issue--fatal { border-left-color: var(--app-danger); background: #fffafa; }
.wiz-issue--warning { border-left-color: var(--app-warning); background: #fffdf6; }
.wiz-issue--info { border-left-color: var(--app-accent); background: #fafcff; }
.wiz-issue--ok { border-left-color: var(--app-success); background: #f7fdf9; }
.wiz-issue__head { display: flex; align-items: center; gap: 0.5rem; }
.wiz-issue__title { margin: 0; font-size: 1rem; }
.wiz-issue__why { margin: 0.5rem 0 0; color: var(--app-text); line-height: 1.5; }
.wiz-issue__samples {
  margin: 0.5rem 0 0; padding-left: 1.1rem; color: var(--app-muted); font-size: 0.9rem;
}
.wiz-issue__samples code {
  background: #f1f4f9; padding: 0.05rem 0.35rem; border-radius: 4px;
}
.wiz-issue__actions {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.75rem;
}
.wiz-issue__choose {
  font-size: 0.85rem; font-weight: 600; color: var(--app-muted, #5b6b7f);
  flex-basis: 100%; margin-bottom: -0.35rem;
}

/* Export step: the file will not load in the target tool at all. */
.wiz-blockers {
  border: 2px solid #dc2626; border-radius: 10px; padding: 0.9rem 1rem;
  background: #fef2f2; margin: 0 0 1rem;
}
.wiz-blockers__head { color: #991b1b; font-size: 1rem; margin-bottom: 0.5rem; }
.wiz-blocker { padding: 0.6rem 0; border-top: 1px solid #fecaca; }
.wiz-blocker:first-of-type { border-top: none; }
.wiz-blocker--caution { color: #7c2d12; }
.wiz-blocker__title { margin: 0 0 0.25rem; font-size: 0.95rem; color: #991b1b; }
.wiz-blocker__why { margin: 0 0 0.5rem; font-size: 0.9rem; line-height: 1.5; color: #5b1d1d; }
@media (prefers-color-scheme: dark) {
  .wiz-blockers { background: #2a1414; border-color: #b91c1c; }
  .wiz-blockers__head, .wiz-blocker__title { color: #fca5a5; }
  .wiz-blocker__why { color: #e7c9c9; }
}

/* Teaching: "why it matters" consequence (what it breaks in the tool) */
.wiz-issue__consequence {
  margin: 0.5rem 0 0; padding: 0.5rem 0.7rem; border-radius: 8px;
  background: #fff5f0; color: #8a3d1a; font-size: 0.9rem; line-height: 1.45;
}
.wiz-issue__consequence strong { color: #7a2f0f; }

/* Teaching: "prevent this next time" tip */
.wiz-issue__prevent {
  margin: 0.6rem 0 0; padding: 0.5rem 0.7rem; border-radius: 8px;
  background: #eef6ff; color: #274b73; font-size: 0.9rem; line-height: 1.45;
}
.wiz-issue__prevent strong { color: #1a3a5c; }

/* Glossary terms + reference (SP2) */
.wiz-term {
  border-bottom: 1px dotted var(--app-accent); cursor: help; color: inherit;
}
.wiz-term:focus-visible { outline: 2px solid var(--app-accent); outline-offset: 1px; }
.wiz-glossary { margin-top: 0.75rem; border: 1px solid var(--app-border); border-radius: 10px; background: #fafcff; }
.wiz-glossary > summary {
  cursor: pointer; padding: 0.6rem 0.9rem; font-weight: 700; color: var(--app-accent-dark);
  list-style: none;
}
.wiz-glossary > summary::-webkit-details-marker { display: none; }
.wiz-glossary > summary::before { content: '\25B8'; margin-right: 0.5rem; }
.wiz-glossary[open] > summary::before { content: '\25BE'; }
.wiz-glossary__list { margin: 0; padding: 0 0.9rem 0.8rem; }
.wiz-glossary__list dt { font-weight: 700; text-transform: capitalize; margin-top: 0.5rem; color: var(--app-text); }
.wiz-glossary__list dd { margin: 0.15rem 0 0; color: var(--app-muted); font-size: 0.9rem; line-height: 1.45; }

/* Before → after diff in the fix log */
.wiz-diff { margin: 0.3rem 0 0.2rem; display: flex; flex-direction: column; gap: 0.2rem; }
.wiz-diff__row { font-size: 0.85rem; }
.wiz-diff__before { background: #fdecec; color: #a12a2a; padding: 0.05rem 0.35rem; border-radius: 4px; text-decoration: line-through; }
.wiz-diff__after { background: #e6f6ec; color: #1e7a43; padding: 0.05rem 0.35rem; border-radius: 4px; }
.wiz-diff__arrow { color: var(--app-muted); }

/* Data Hygiene Score report card */
.wiz-hygiene {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem;
  padding: 0.4rem 0.8rem; border-radius: 12px; border: 1px solid var(--app-border);
}
.wiz-hygiene__score { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.wiz-hygiene__label { font-size: 0.72rem; color: var(--app-muted); line-height: 1.2; }
.wiz-hygiene__label strong { font-size: 0.9rem; color: var(--app-text); }
.wiz-hygiene--ok { background: #f0fbf4; }
.wiz-hygiene--ok .wiz-hygiene__score { color: var(--app-success); }
.wiz-hygiene--warning { background: #fffaf0; }
.wiz-hygiene--warning .wiz-hygiene__score { color: #b6790a; }
.wiz-hygiene--fatal { background: #fef4f4; }
.wiz-hygiene--fatal .wiz-hygiene__score { color: var(--app-danger); }

/* ── Tool-readiness checklist (replaces the score) ────────────────────── */
.wiz-ready {
  border: 1px solid var(--app-border); border-radius: 12px; padding: 0.85rem 1rem;
  background: #fbfdff; margin-bottom: 0.6rem;
}
.wiz-ready--ok { background: #f2fbf5; border-color: #b7e4c6; }
.wiz-ready__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.wiz-ready__head strong { font-size: 1.02rem; }
.wiz-ready__count { color: var(--app-muted); font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.wiz-ready__list { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.35rem; }
.wiz-ready__list li { display: flex; align-items: baseline; gap: 0.5rem; font-size: 0.92rem; }
.wiz-ready__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.15rem; flex-shrink: 0; font-weight: 800;
}
.wiz-ready__list li.is-ok .wiz-ready__mark { color: var(--app-success); }
.wiz-ready__list li.is-todo .wiz-ready__mark { color: #b6790a; }
.wiz-ready__list li.is-todo .wiz-ready__label { color: var(--app-text); }
.wiz-ready__list li.is-ok .wiz-ready__label { color: var(--app-muted); }
.wiz-ready__detail { color: var(--app-muted); font-size: 0.82rem; margin-left: auto; white-space: nowrap; }

/* ── Annotated data grid ──────────────────────────────────────────────── */
.wiz-grid-wrap { margin-top: 0.25rem; }
.wiz-legend { display: flex; gap: 1rem; flex-wrap: wrap; margin: 0 0 0.4rem; font-size: 0.8rem; color: var(--app-muted); }
.wiz-legend__item { display: inline-flex; align-items: center; gap: 0.35rem; }
.wiz-swatch { width: 0.85rem; height: 0.85rem; border-radius: 3px; display: inline-block; border: 1px solid rgba(0,0,0,0.08); }
.wiz-swatch--warn { background: #fdf0d5; }
.wiz-swatch--error { background: #fbdcdc; }
.wiz-swatch--missing { background: #eef1f5; }

.wiz-grid { overflow: auto; max-height: 460px; border: 1px solid var(--app-border); border-radius: 10px; }
.wiz-grid__table { border-collapse: collapse; width: 100%; font-size: 0.85rem; }
.wiz-grid__table th, .wiz-grid__table td {
  border-bottom: 1px solid var(--app-border); border-right: 1px solid #eef1f6;
  padding: 0.35rem 0.55rem; text-align: left; white-space: nowrap; max-width: 260px;
  overflow: hidden; text-overflow: ellipsis;
}
.wiz-grid__table thead th { position: sticky; top: 0; background: #f3f6fb; z-index: 1; }
.wiz-grid__rownum { color: var(--app-muted); background: #f8fafc; text-align: right; font-variant-numeric: tabular-nums; }
.wiz-grid__h { font-weight: 700; }
.wiz-col-badge {
  display: inline-block; background: var(--app-warning); color: #4a3403; font-weight: 700;
  font-size: 0.68rem; border-radius: 999px; padding: 0.02rem 0.4rem; margin-left: 0.25rem;
}
.wiz-cell--warn { background: #fdf0d5; }
.wiz-cell--error { background: #fbdcdc; color: #8a1f1f; font-weight: 600; }
.wiz-cell--missing { background: #eef1f5; }
.wiz-cell__blank { color: #b4becb; }
.wiz-grid__more { margin: 0.4rem 0.2rem 0; color: var(--app-muted); font-size: 0.82rem; }

/* ── SP7: clickable columns + selected-column highlight ───────────────── */
.wiz-legend__hint { margin-left: auto; color: var(--app-accent-dark); font-weight: 600; font-size: 0.82rem; }
.wiz-grid__th--click { cursor: pointer; }
.wiz-grid__th--click:hover { background: #e7eefb; }
.wiz-grid__th--click:focus-visible { outline: 2px solid var(--app-accent); outline-offset: -2px; }
.wiz-grid__th--click.is-selected { background: var(--app-accent); color: #fff; }
.wiz-grid__th--click.is-selected .wiz-type-tag { color: #eaf1ff; }
.wiz-cell--incol { box-shadow: inset 2px 0 0 var(--app-accent), inset -2px 0 0 var(--app-accent); }

/* ── SP7b: Header-row picker ──────────────────────────────────────────── */
.wiz-btn--sm { padding: 0.2rem 0.55rem; font-size: 0.8rem; }
.wiz-headerbar {
  margin: 0.6rem 0 0.9rem; border: 1px solid var(--app-border); border-radius: 10px;
  background: #fafcff; padding: 0.6rem 0.8rem;
}
.wiz-headerbar--alert { border-color: #f0c98a; background: #fff7ea; }
.wiz-headerbar__msg { font-size: 0.9rem; color: var(--app-text); display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.wiz-headerbar__picker { margin-top: 0.5rem; }
.wiz-headerbar__picker > summary { cursor: pointer; font-weight: 600; color: var(--app-accent-dark); font-size: 0.88rem; }
.wiz-hpick { border-collapse: collapse; width: 100%; margin-top: 0.5rem; font-size: 0.82rem; }
.wiz-hpick td { border: 1px solid #eef1f6; padding: 0.3rem 0.5rem; white-space: nowrap; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.wiz-hpick .wiz-hpick__pick { white-space: nowrap; background: #f8fafc; }
.wiz-hpick tr.is-header { background: #eaf4ff; }
.wiz-hpick tr.is-header .wiz-hpick__pick { background: #d8ebff; }
.wiz-hpick tr.is-skip { color: var(--app-muted); font-style: italic; }
.wiz-hpick__cur { color: var(--app-accent-dark); font-weight: 700; font-size: 0.78rem; }

/* ── SP7: Column inspector ────────────────────────────────────────────── */
.wiz-inspector {
  margin-top: 1rem; border: 1px solid var(--app-border); border-radius: 12px;
  background: var(--app-card-bg); overflow: hidden;
}
.wiz-insp-nav {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 0.8rem; background: #f3f6fb; border-bottom: 1px solid var(--app-border);
}
.wiz-insp-nav__btn {
  flex: 0 0 auto; width: 2rem; height: 2rem; border-radius: 8px;
  border: 1px solid var(--app-border); background: #fff; color: var(--app-accent-dark);
  cursor: pointer; font-size: 0.9rem; line-height: 1;
}
.wiz-insp-nav__btn:hover:not(:disabled) { border-color: var(--app-accent); background: #eef4ff; }
.wiz-insp-nav__btn:disabled { opacity: 0.4; cursor: default; }
.wiz-insp-nav__center { flex: 1 1 auto; min-width: 0; text-align: center; }
.wiz-insp-nav__title { font-weight: 700; color: var(--app-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wiz-insp-nav__pos { color: var(--app-muted); font-weight: 500; font-size: 0.85rem; }
.wiz-insp-nav__dots { display: flex; flex-wrap: wrap; gap: 0.3rem; justify-content: center; margin-top: 0.4rem; }
.wiz-dot {
  min-width: 1.5rem; height: 1.5rem; padding: 0 0.35rem; border-radius: 999px;
  border: 1px solid var(--app-border); background: #fff; cursor: pointer;
  font-size: 0.72rem; font-weight: 700; line-height: 1; color: var(--app-muted);
}
.wiz-dot.has-issues { background: #fdecec; border-color: #f0c2c2; color: #a12b2b; }
.wiz-dot.is-clean { color: var(--app-success); }
.wiz-dot.is-active { outline: 2px solid var(--app-accent); outline-offset: 1px; color: var(--app-accent-dark); }
.wiz-insp-body { padding: 0.9rem 1rem; }

/* Health summary */
.wiz-health { margin-bottom: 0.8rem; }
.wiz-health__chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.5rem; }
.wiz-hchip {
  background: #eef2f8; color: var(--app-text); border-radius: 999px;
  padding: 0.15rem 0.6rem; font-size: 0.8rem; font-weight: 600;
}
.wiz-hchip--warn { background: #fdf0d5; color: #6b4a06; }
.wiz-health__samples { font-size: 0.85rem; margin-bottom: 0.4rem; }
.wiz-hsample { background: #f5f7fa; border: 1px solid var(--app-border); border-radius: 5px; padding: 0.03rem 0.3rem; margin-right: 0.15rem; }
.wiz-health__good { list-style: none; margin: 0; padding: 0; }
.wiz-health__good li { color: var(--app-success); font-size: 0.88rem; padding: 0.05rem 0; }

/* "Fixes made here" + all-clear */
.wiz-colfix { margin-top: 0.8rem; border-top: 1px dashed var(--app-border); padding-top: 0.6rem; }
.wiz-colfix__h { margin: 0 0 0.35rem; font-size: 0.92rem; color: var(--app-success); }
.wiz-colfix ul { margin: 0; padding-left: 1.1rem; color: var(--app-text); font-size: 0.88rem; }
.wiz-insp-clear {
  color: var(--app-success); font-weight: 600; background: #f0faf4;
  border: 1px solid #cdebd8; border-radius: 8px; padding: 0.55rem 0.75rem; margin: 0.4rem 0;
}

/* ── Advanced settings panel ──────────────────────────────────────────── */
.wiz-adv { margin-top: 1rem; border: 1px solid var(--app-border); border-radius: 10px; background: #fafcff; }
.wiz-adv > summary {
  cursor: pointer; padding: 0.7rem 0.9rem; font-weight: 700; color: var(--app-accent-dark);
  list-style: none; -webkit-user-select: none; user-select: none;
}
.wiz-adv > summary::-webkit-details-marker { display: none; }
.wiz-adv > summary::before { content: '\25B8'; margin-right: 0.5rem; }
.wiz-adv[open] > summary::before { content: '\25BE'; }
.wiz-adv__hint { margin: 0 0.9rem 0.5rem; color: var(--app-muted); font-size: 0.85rem; }
.wiz-adv-col {
  border-top: 1px solid var(--app-border); padding: 0.75rem 0.9rem;
  display: grid; gap: 0.5rem;
}
.wiz-adv-col__name { font-weight: 700; }
.wiz-adv-field { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; flex-wrap: wrap; }
.wiz-adv-field > span { min-width: 140px; color: var(--app-muted); }
.wiz-adv-field--check { gap: 0.4rem; }
.wiz-adv-field select {
  padding: 0.35rem 0.5rem; border: 1px solid var(--app-border); border-radius: 6px;
  background: #fff; color: var(--app-text); font-size: 0.88rem;
}
.wiz-adv-merge {
  margin-left: 150px; font-size: 0.85rem; color: var(--app-text);
  display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap;
}
.wiz-adv-merge select { padding: 0.25rem 0.4rem; border: 1px solid var(--app-border); border-radius: 6px; }

/* ── pandas recipe panel ──────────────────────────────────────────────── */
.wiz-recipe { margin-top: 1rem; border: 1px solid var(--app-border); border-radius: 10px; overflow: hidden; }
.wiz-recipe__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.6rem 0.9rem; background: #0f172a; color: #e2e8f0; flex-wrap: wrap;
}
.wiz-recipe__actions { display: flex; gap: 0.5rem; }
.wiz-recipe .wiz-muted { margin: 0.5rem 0.9rem 0; }
.wiz-recipe__code {
  margin: 0.5rem 0 0; padding: 0.9rem; background: #0b1020; color: #d6e2ff;
  font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 0.82rem; line-height: 1.5; overflow: auto; max-height: 380px; white-space: pre;
}

/* ── Buttons / links ──────────────────────────────────────────────────── */
.wiz-btn {
  display: inline-block; padding: 0.55rem 1rem; border-radius: 8px;
  font-weight: 600; font-size: 0.92rem; cursor: pointer; border: 1px solid transparent;
  text-decoration: none; line-height: 1.2;
}
.wiz-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.wiz-btn--primary { background: var(--app-accent); color: #fff; }
.wiz-btn--primary:hover:not(:disabled) { background: var(--app-accent-dark); }
.wiz-btn--fix { background: var(--app-success); color: #fff; }
.wiz-btn--fix:hover { filter: brightness(0.95); }
.wiz-btn--ghost {
  background: #fff; color: var(--app-accent-dark); border-color: var(--app-border);
}
.wiz-btn--ghost:hover { border-color: var(--app-accent); }
/* Deletes rows: never the quiet default. */
.wiz-btn--destructive {
  background: #fff; color: #8a3d1a; border-color: #e2a68a;
}
.wiz-btn--destructive:hover { border-color: #c2410c; background: #fff5f0; }
.wiz-link {
  background: none; border: none; color: var(--app-accent-dark);
  text-decoration: underline; cursor: pointer; font-size: 0.92rem; padding: 0;
}

/* ── Data preview ─────────────────────────────────────────────────────── */
.wiz-preview { overflow: auto; max-height: 340px; border: 1px solid var(--app-border); border-radius: 10px; }
.wiz-preview__table { border-collapse: collapse; width: 100%; font-size: 0.88rem; }
.wiz-preview__table th, .wiz-preview__table td {
  border-bottom: 1px solid var(--app-border); padding: 0.4rem 0.6rem; text-align: left;
  white-space: nowrap;
}
.wiz-preview__table thead th {
  position: sticky; top: 0; background: #f3f6fb; z-index: 1;
}
.wiz-type-tag {
  font-size: 0.68rem; font-weight: 600; color: var(--app-muted);
  background: #eef2f8; border-radius: 4px; padding: 0.05rem 0.35rem; margin-left: 0.25rem;
}
.wiz-cell--blank { color: #c3ccd8; text-align: center; }
.wiz-preview__more { margin: 0.4rem 0.6rem; color: var(--app-muted); font-size: 0.82rem; }

/* ── Fix log ──────────────────────────────────────────────────────────── */
.wiz-fixlog { margin-top: 1rem; }
.wiz-fixlog h4 { margin: 0 0 0.4rem; font-size: 0.95rem; }
.wiz-fixlog ul { margin: 0; padding-left: 1.1rem; color: var(--app-success); font-size: 0.9rem; }

/* ── Navigation ───────────────────────────────────────────────────────── */
.wiz-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-top: 0.5rem;
}
.wiz-nav__right { display: flex; gap: 0.6rem; }
.wiz-export__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.75rem; }

/* ── Spinner ──────────────────────────────────────────────────────────── */
.wiz-spinner-overlay {
  position: fixed; inset: 0; background: rgba(255, 255, 255, 0.72);
  display: flex; align-items: center; justify-content: center; z-index: 50;
}
.wiz-spinner { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.wiz-spinner__ring {
  width: 42px; height: 42px; border-radius: 50%;
  border: 4px solid var(--app-border); border-top-color: var(--app-accent);
  animation: wiz-spin 0.8s linear infinite;
}
.wiz-spinner__msg { color: var(--app-text); font-weight: 600; }
@keyframes wiz-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .wiz-spinner__ring { animation-duration: 2s; }
}

@media (max-width: 640px) {
  .wiz-review__head { flex-direction: column; align-items: flex-start; }
  .wiz-nav { flex-direction: column-reverse; align-items: stretch; }
  .wiz-nav__right { justify-content: space-between; }
}
