/* Manulife Investment Snapshot — Wrapper revamp
   Matches the CKG suite aesthetic: warm near-black, brass accent,
   Geist + Geist Mono + Newsreader. Snapshot itself is unchanged.
   ────────────────────────────────────────────────────────────── */

:root {
  /* Surfaces — warm near-black, neutral 80 hue */
  --bg:        oklch(0.155 0.006 80);
  --bg-deep:   oklch(0.115 0.005 80);
  --bg-card:   oklch(0.180 0.006 80);
  --bg-card-2: oklch(0.205 0.007 80);
  --bg-frost:  oklch(0.20 0.006 80 / 0.62);
  --bg-frost-2:oklch(0.18 0.006 80 / 0.78);
  --bg-inset:  oklch(0.13 0.005 80 / 0.55);

  /* Lines */
  --hairline:  oklch(1 0 0 / 0.06);
  --hairline-2:oklch(1 0 0 / 0.10);
  --hairline-d:oklch(0 0 0 / 0.45);
  --line:      oklch(0.32 0.008 80 / 0.45);
  --line-soft: oklch(0.32 0.008 80 / 0.20);

  /* Ink (text) — warm whites */
  --ink:   oklch(0.93 0.010 80);
  --ink-2: oklch(0.78 0.010 80);
  --ink-3: oklch(0.58 0.010 80);
  --ink-4: oklch(0.42 0.010 80);
  --ink-5: oklch(0.30 0.010 80);

  /* Accent — brass */
  --accent:    oklch(0.82 0.095 70);
  --accent-2:  oklch(0.72 0.085 65);
  --accent-3:  oklch(0.92 0.060 75);
  --accent-dim:oklch(0.82 0.095 70 / 0.14);
  --accent-line: oklch(0.82 0.095 70 / 0.32);

  /* Status */
  --green:     oklch(0.78 0.13 145);
  --green-dim: oklch(0.78 0.13 145 / 0.14);
  --amber:     oklch(0.80 0.13 75);
  --amber-dim: oklch(0.80 0.13 75 / 0.16);
  --red:       oklch(0.68 0.18 25);
  --red-dim:   oklch(0.68 0.18 25 / 0.14);

  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans:  'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono:  'Geist Mono', ui-monospace, 'SF Mono', monospace;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;

  --easeOut:  cubic-bezier(0.22, 1, 0.36, 1);
  --easePeel: cubic-bezier(0.65, 0, 0.18, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg-deep); }

body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(80% 60% at 18% 8%, oklch(0.27 0.05 60 / 0.30), transparent 60%),
    radial-gradient(70% 60% at 82% 88%, oklch(0.25 0.06 290 / 0.18), transparent 65%),
    var(--bg-deep);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01','cv11';
  overflow-x: hidden;
  letter-spacing: -0.005em;
}

/* Ink grain overlay — quiet texture so flats don't look plastic */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  mix-blend-mode: overlay;
  z-index: 1;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  background: radial-gradient(140% 100% at 50% -20%, transparent 50%, oklch(0.10 0.005 80 / 0.55) 100%);
  z-index: 1;
}

/* ── CKG suite strip — kept identical to the live shell ─────────── */
.ckg-suite-strip {
  position: fixed; top: 0; left: 0; right: 0;
  height: 36px;
  background: #0a0a0a;
  border-bottom: 1px solid rgba(214, 168, 122, 0.18);
  display: flex; align-items: center;
  padding: 0 14px;
  font-family: var(--sans);
  z-index: 50;
  box-sizing: border-box;
}
.ckg-suite-strip-back {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid rgba(214, 168, 122, 0.32);
  border-radius: 999px;
  color: #d6a87a;
  text-decoration: none;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
  transition: all 150ms var(--easeOut);
}
.ckg-suite-strip-back:hover {
  background: rgba(214, 168, 122, 0.10);
  border-color: rgba(214, 168, 122, 0.6);
  color: #f4f1e8;
}
.ckg-suite-strip-back svg { width: 11px; height: 11px; }
.ckg-suite-strip-crumb {
  margin-left: 16px;
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 241, 232, 0.58);
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ckg-suite-strip-crumb .muted { color: rgba(244, 241, 232, 0.36); }
.ckg-suite-strip-crumb .sep { margin: 0 8px; opacity: 0.5; }

/* ── Page shell ────────────────────────────────────────────────── */
.shell {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 32px 80px;
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero { margin-bottom: 40px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.kicker .midot { color: var(--accent); font-size: 4px; transform: translateY(-3px); }

.hero h1 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  color: var(--ink);
  max-width: 720px;
  text-wrap: pretty;
}
.hero h1 .em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 360;
  font-variation-settings: 'opsz' 36;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.hero .lede {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 560px;
  margin: 0 0 22px;
}

.privacy-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--hairline-2);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-2);
}
.privacy-badge svg { width: 14px; height: 14px; color: var(--green); flex: 0 0 auto; }
.privacy-badge strong { color: var(--ink); font-weight: 500; }
.privacy-badge .dot {
  width: 5px; height: 5px; border-radius: 999px; background: var(--green);
  box-shadow: 0 0 0 4px oklch(0.78 0.13 145 / 0.18);
  display: inline-block;
}

/* ── Card primitive ────────────────────────────────────────────── */
.card {
  background: var(--bg-frost);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow:
    0 0 0 1px var(--hairline-d),
    0 1px 0 var(--hairline-2) inset,
    0 30px 80px -20px oklch(0 0 0 / 0.55);
}

/* ── Drop zone — twin layout: drop on left, sample peek on right ── */
.dropzone-wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  margin-bottom: 32px;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.dropzone-wrap.solo { grid-template-columns: 1fr; }

.dropzone {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start;
  justify-content: space-between;
  padding: 36px 32px 28px;
  min-height: 320px;
  background: var(--bg-frost);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  border: 1px solid var(--hairline);
  border-right: 0;
  cursor: pointer;
  transition: background 220ms var(--easeOut), border-color 220ms var(--easeOut);
}
.dropzone-wrap.solo .dropzone { border-right: 1px solid var(--hairline); }
.dropzone:hover {
  background: oklch(0.21 0.007 80 / 0.7);
  border-color: var(--accent-line);
}
.dropzone.dragging {
  background: var(--accent-dim);
  border-color: var(--accent);
}

.dropzone .dz-kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
  display: inline-flex; align-items: center; gap: 8px;
}
.dropzone .dz-kicker .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0;
}

.dropzone .dz-title {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 8px;
  max-width: 360px;
  text-wrap: pretty;
}
.dropzone .dz-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 360;
  font-variation-settings: 'opsz' 22;
  color: var(--accent);
}
.dropzone .dz-hint {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
  margin: 0 0 20px;
  max-width: 380px;
}

.dropzone .dz-cta-row {
  display: flex; align-items: center; gap: 12px;
  margin-top: auto;
}

.dropzone .dz-spec {
  margin-top: 22px;
  display: flex; flex-wrap: wrap;
  gap: 6px 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--ink-4);
}
.dropzone .dz-spec b {
  color: var(--ink-2); font-weight: 500;
}

/* Sample peek — silhouette of the snapshot, faint */
.sample-peek {
  position: relative;
  background:
    linear-gradient(180deg, oklch(0.22 0.008 80 / 0.55), oklch(0.16 0.005 80 / 0.55)),
    var(--bg-card);
  border: 1px solid var(--hairline);
  display: flex; flex-direction: column;
  padding: 28px 28px 0;
  overflow: hidden;
}
.sample-peek .peek-kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.sample-peek .peek-title {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0 0 16px;
  font-weight: 400;
}
.sample-peek .peek-title em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--accent);
}
.sample-peek .peek-canvas {
  position: relative;
  flex: 1;
  margin: 0 -28px;
  display: flex; justify-content: center; align-items: flex-start;
  padding-top: 8px;
}
.sample-peek .peek-canvas::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, var(--bg-deep) 100%);
  pointer-events: none;
}

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid var(--hairline-2);
  background: var(--bg-card);
  color: var(--ink);
  font: 500 13px var(--sans);
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background 160ms var(--easeOut), border-color 160ms var(--easeOut), transform 160ms var(--easeOut);
}
.btn:hover { background: var(--bg-card-2); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 14px; height: 14px; }

.btn-primary {
  background: var(--accent);
  border-color: oklch(0.86 0.085 70);
  color: oklch(0.18 0.04 60);
  font-weight: 600;
  box-shadow:
    0 1px 0 oklch(0.95 0.06 75) inset,
    0 8px 24px -8px oklch(0.78 0.10 70 / 0.55);
}
.btn-primary:hover { background: var(--accent-3); }

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink-2);
}
.btn-ghost:hover { color: var(--ink); background: oklch(1 0 0 / 0.04); }

/* ── File list ─────────────────────────────────────────────────── */
.file-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 20px;
}
.file-row {
  display: grid;
  grid-template-columns: 16px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-inset);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  font-size: 13px;
  color: var(--ink-2);
}
.file-row .icn { color: var(--ink-3); width: 14px; height: 14px; }
.file-row .name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--ink);
  font-weight: 500;
}
.file-row .size {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.02em;
}
.file-row .badge {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--hairline-2);
  background: var(--bg-card);
  color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 6px;
}
.file-row .badge.queued { color: var(--ink-3); }
.file-row .badge.parsing,
.file-row .badge.rendering {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-dim);
}
.file-row .badge.done {
  color: var(--green);
  border-color: oklch(0.78 0.13 145 / 0.32);
  background: var(--green-dim);
}
.file-row .badge.failed {
  color: var(--red);
  border-color: oklch(0.68 0.18 25 / 0.32);
  background: var(--red-dim);
}
.file-row .badge .dot {
  width: 5px; height: 5px; border-radius: 999px; background: currentColor;
}
.file-row .badge.parsing .dot,
.file-row .badge.rendering .dot { animation: pulse 1.4s var(--easeOut) infinite; }
@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* ── Bonus panel — detected vs. overrides hierarchy ────────────── */
.bonus-panel {
  margin-bottom: 32px;
  padding: 0;
  overflow: hidden;
}

.bonus-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--hairline);
}
.bonus-head h3 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0;
}
.bonus-head h3 .em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 360;
  color: var(--accent);
}
.bonus-head .helper {
  font-size: 12px;
  color: var(--ink-3);
}

.bonus-detected {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg-inset);
  border-bottom: 1px solid var(--hairline);
}
.bonus-detected .col {
  padding: 18px 24px;
}
.bonus-detected .col + .col { border-left: 1px solid var(--hairline); }
.bonus-detected .lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px;
}
.bonus-detected .lbl .auto {
  font-family: var(--mono);
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  letter-spacing: 0.1em;
}
.bonus-detected .val {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.bonus-detected .sub {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
}

.bonus-rows {
  padding: 8px 0;
}
.bonus-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 14px 24px;
  transition: background 160ms var(--easeOut);
}
.bonus-row:hover { background: oklch(1 0 0 / 0.02); }
.bonus-row + .bonus-row { border-top: 1px solid var(--hairline); }

/* Custom check — feels intentional */
.bonus-check {
  position: relative;
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.bonus-check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; z-index: 1; }
.bonus-check .box {
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1px solid var(--hairline-2);
  background: var(--bg-inset);
  display: grid; place-items: center;
  transition: all 160ms var(--easeOut);
  pointer-events: none; /* decorative — let clicks reach the underlying input */
}
.bonus-check input:checked + .box {
  background: var(--accent);
  border-color: var(--accent);
}
.bonus-check .box svg {
  width: 10px; height: 10px;
  color: oklch(0.18 0.04 60);
  opacity: 0;
  transform: scale(0.6);
  transition: all 160ms var(--easeOut);
}
.bonus-check input:checked + .box svg { opacity: 1; transform: scale(1); }

.bonus-row .meta {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.bonus-row .meta .ttl {
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.bonus-row .meta .desc {
  font-size: 12px;
  color: var(--ink-3);
}

.rate-input {
  display: inline-flex; align-items: center;
  background: var(--bg-inset);
  border: 1px solid var(--hairline-2);
  border-radius: 8px;
  padding: 0 10px 0 12px;
  height: 32px;
  transition: border-color 160ms var(--easeOut);
}
.rate-input:focus-within {
  border-color: var(--accent-line);
  background: oklch(0.13 0.005 80 / 0.7);
}
.rate-input input {
  width: 56px;
  background: transparent; border: 0; outline: 0;
  color: var(--ink);
  font: 500 13px var(--mono);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.rate-input .suffix {
  font: 12px var(--mono);
  color: var(--ink-3);
  margin-left: 4px;
}

.bonus-amount {
  font-family: var(--mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  min-width: 100px;
  text-align: right;
  letter-spacing: 0.01em;
}

.bonus-foot {
  padding: 12px 24px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-4);
  background: oklch(0.13 0.005 80 / 0.35);
}

/* ── Result ────────────────────────────────────────────────────── */
.result-section { margin-bottom: 32px; }
.result-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 16px;
}
.result-head h3 {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}
.result-head h3 .em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 360;
  color: var(--accent);
}
.result-head .meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-4);
  letter-spacing: 0.04em;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.preview-card {
  padding: 24px;
  display: flex; flex-direction: column;
  gap: 16px;
}
.preview-frame {
  position: relative;
  flex: 1;
  background: var(--bg-deep);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 18px;
  overflow: hidden;
}
.preview-frame::after {
  content: 'PNG · 1440 × 2560';
  position: absolute;
  bottom: 10px; right: 12px;
  font: 10px var(--mono);
  letter-spacing: 0.1em;
  color: var(--ink-5);
}
.preview-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.preview-foot .name {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-2);
  letter-spacing: 0.02em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 240px;
}

/* Delta callout — appears when bonus toggles */
.delta-card {
  padding: 24px;
  display: flex; flex-direction: column;
  gap: 18px;
}
.delta-card .delta-kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  display: flex; align-items: center; gap: 8px;
}
.delta-card .delta-kicker .pill {
  display: inline-flex;
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--amber-dim);
  border: 1px solid oklch(0.8 0.13 75 / 0.32);
  letter-spacing: 0.1em;
}
.delta-card h4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
  line-height: 1.3;
}
.delta-card h4 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 360;
  color: var(--accent);
}

.delta-rows { display: flex; flex-direction: column; gap: 10px; }
.delta-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-inset);
  border: 1px solid var(--hairline);
  border-radius: 10px;
}
.delta-row .lbl {
  font-size: 12px;
  color: var(--ink-3);
}
.delta-row .nums {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  letter-spacing: 0.01em;
}
.delta-row .from { color: var(--ink-4); text-decoration: line-through; }
.delta-row .arrow { color: var(--ink-4); font-size: 11px; }
.delta-row .to { color: var(--ink); font-weight: 500; }
.delta-row.dim .to { color: var(--amber); }

.delta-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
}

/* ── Section heading ───────────────────────────────────────────── */
.section-h {
  display: flex; align-items: baseline; justify-content: space-between;
  margin: 40px 0 14px;
}
.section-h .label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.section-h .num {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-5);
  letter-spacing: 0.04em;
}

/* ── Footer ────────────────────────────────────────────────────── */
.foot {
  margin-top: 80px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--ink-4);
}
.foot a { color: var(--ink-3); text-decoration: none; transition: color 160ms; }
.foot a:hover { color: var(--accent); }
.foot .disclaimer {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 360;
  font-size: 12.5px;
  color: var(--ink-3);
}

/* ── State containers (hidden/shown via JS) ────────────────────── */
[data-state-show]:not(.is-active) { display: none !important; }

/* Off-screen render stage: snapshot.js builds the 720px DOM here so
   html2canvas can capture it without affecting page layout. */
#render-stage {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 720px;
  pointer-events: none;
  opacity: 0;
  z-index: -1;
}

/* File list visibility: the section heading lives elsewhere, so collapse
   the bare list to zero margin when nothing has been added. */
.file-list:empty { display: none; }
.file-list { margin-bottom: 32px; }

/* ── LIGHT VARIANT (Tweak) ─────────────────────────────────────── */
body.is-light {
  --bg:        oklch(0.985 0.003 85);
  --bg-deep:   oklch(0.97 0.003 85);
  --bg-card:   #ffffff;
  --bg-card-2: oklch(0.985 0.003 85);
  --bg-frost:  oklch(1 0 0 / 0.7);
  --bg-frost-2:oklch(1 0 0 / 0.85);
  --bg-inset:  oklch(0.965 0.004 85 / 0.7);

  --hairline:  oklch(0 0 0 / 0.06);
  --hairline-2:oklch(0 0 0 / 0.12);
  --hairline-d:oklch(0 0 0 / 0.05);

  --ink:   oklch(0.18 0.01 80);
  --ink-2: oklch(0.32 0.01 80);
  --ink-3: oklch(0.50 0.01 80);
  --ink-4: oklch(0.65 0.01 80);
  --ink-5: oklch(0.80 0.005 80);

  --accent:    oklch(0.55 0.10 60);
  --accent-2:  oklch(0.48 0.09 58);
  --accent-3:  oklch(0.62 0.10 62);
  --accent-dim:oklch(0.55 0.10 60 / 0.10);
  --accent-line: oklch(0.55 0.10 60 / 0.30);

  background: var(--bg);
}
body.is-light::before { opacity: 0.25; }
body.is-light::after  { display: none; }
body.is-light .ckg-suite-strip {
  background: oklch(0.18 0.01 80);
  border-bottom-color: oklch(0.55 0.10 60 / 0.18);
}
body.is-light .btn-primary {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 1px 0 oklch(0.7 0.08 65) inset, 0 8px 22px -10px oklch(0.55 0.10 60 / 0.5);
}
body.is-light .btn-primary:hover { background: var(--accent-2); }
body.is-light .preview-frame { background: oklch(0.965 0.004 85); }

/* ── ACCENT INTENSITY (Tweak) ──────────────────────────────────── */
body.accent-soft {
  --accent:    oklch(0.78 0.06 70);
  --accent-2:  oklch(0.70 0.055 65);
  --accent-3:  oklch(0.86 0.045 75);
  --accent-dim:oklch(0.78 0.06 70 / 0.12);
  --accent-line: oklch(0.78 0.06 70 / 0.28);
}
body.accent-bold {
  --accent:    oklch(0.78 0.14 65);
  --accent-2:  oklch(0.68 0.13 60);
  --accent-3:  oklch(0.86 0.10 70);
  --accent-dim:oklch(0.78 0.14 65 / 0.18);
  --accent-line: oklch(0.78 0.14 65 / 0.40);
}


/* ── Phase 9F — Result actions row (Download / Save Drive / Load Drive) ── */
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.result-actions .btn {
  flex: 0 0 auto;
}
.result-actions .btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
