/* ==========================================================================
   WORK TILL DIE: JPM-GRADE TWO-ACT EDITORIAL DESIGN SYSTEM
   Act I:  Punch Clock Editorial (#efeae0 bone plaster + v1-timeclock.jpg)
           x Model WTD-01 Tactile Hardware (#2b2b29 3D keys + vivid Signal
           Orange #ff4d00 rotary dial & live thermal receipt tape)
   Act II: 16:9 Institutional Private-Wealth Dossier (#fdfbf5 bone paper +
           #141412 obsidian memos + #0d6860 solvency + archival engravings)
   ========================================================================== */

:root {
  --plaster: #efeae0;
  --paper: #fdfbf5;
  --paper-sunken: #f3eee2;
  --ink: #161614;
  --obsidian: #141412;
  --muted: #524f46;
  --line: #d8d2c3;
  --line-strong: #c2bba9;
  /* Vivid Signal Orange #d63d00 with #ffffff crisp white text (4.64:1 AA, hover 5.52:1)
     plus #ff4d00 rotary hardware dial & warm burnt-orange text tokens (>=4.65:1 AA) */
  --signal: #d63d00;
  --signal-hover: #c23500;
  --signal-dark: #9c2a00;
  --signal-dial: #ff4d00;
  --signal-on-dark: #ff6a2b;
  --signal-ink: #bd3a00;
  --vermilion: #c23b00;
  --solvency: #0d6860;
  --solvency-on-dark: #34d399;
  --brass: #8a5d1c;
  --brass-soft: #e2b25c;
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, .bp-title, .wtd-pad-q { text-wrap: balance; }
p, li, .bp-lead, .hero-sub { text-wrap: pretty; }
img { max-inline-size: 100%; block-size: auto; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:where(a:any-link, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2.5px solid var(--signal);
  outline-offset: 2px;
}

/* ACCESSIBLE VISUALLY-HIDDEN LIVE ANNOUNCER */
.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

/* TABULAR MONO UTILITY (STRICTLY NUMBERS, RECEIPTS, SLIDE CODES) */
.mono-num,
.num-col,
.slide-code {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.num-col { text-align: right; white-space: nowrap; }

/* TOPBAR (OPAQUE SOLID BONE PLASTER, ZERO GLASS BLUR) */
.topbar {
  height: 60px;
  padding: 0 4.5%;
  background: var(--plaster);
  border-bottom: 1.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
}
.brand-name {
  font: 800 16px/1 var(--font-sans);
  letter-spacing: 0.04em;
}
.brand-name i { font-style: normal; color: var(--signal-ink); }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-sound {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  color: var(--ink);
  transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.topbar-sound:hover { background: var(--ink); color: var(--paper); }
.topbar-sound.is-muted { color: var(--muted); border-color: var(--line-strong); background: var(--paper-sunken); }
.topbar-sound.is-muted:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.topbar-progress {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  background: transparent;
  pointer-events: none;
  overflow: hidden;
}
body[data-view="quiz"] .topbar-progress { display: block; }
.topbar-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--signal-dial);
  transition: width 0.24s var(--ease-quart);
}
.topbar-cta {
  min-height: 44px;
  padding: 0 18px;
  background: var(--signal);
  color: #ffffff;
  border: 0;
  border-radius: 6px;
  font: 700 13px/1 var(--font-sans);
  box-shadow: 0 3px 0 var(--signal-dark);
}
.topbar-cta:hover { background: var(--signal-hover); }
.topbar-cta:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--signal-dark); }

body:not([data-view="landing"]) #nav-start-btn,
body[data-view="landing"]:not(.is-scrolled-past-hero) #nav-start-btn {
  display: none !important;
}

/* SHARED BUTTONS & KICKERS (IBM PLEX SANS ON UI CONTROLS, >=12px LABELS) */
.kicker {
  display: inline-block;
  font: 700 12px/1.25 var(--font-sans);
  letter-spacing: 0.09em;
  color: var(--signal-ink);
  text-transform: uppercase;
}
.kicker-on-dark { color: var(--signal-on-dark); }

.btn-signal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  background: var(--signal);
  color: #ffffff;
  border: 0;
  border-radius: 8px;
  font: 700 14px/1.1 var(--font-sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--signal-dark);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.12s ease;
}
.btn-signal:hover { background: var(--signal-hover); }
.btn-signal:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--signal-dark); }
.btn-lg { min-height: 48px; padding: 12px 24px; font-size: 15px; }
.btn-sm { min-height: 44px; padding: 0 14px; font-size: 12.5px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  font: 600 13.5px/1.1 var(--font-sans);
  text-decoration: none;
}
.btn-ghost.btn-sm { min-height: 44px; padding: 0 13px; font-size: 12.5px; }
.btn-ghost.btn-icon-compact {
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  flex: none;
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-ghost:disabled { opacity: 0.42; cursor: not-allowed; }
.btn-ghost:disabled:hover { background: var(--paper); color: var(--ink); }

.btn-text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 9px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  font: 600 12.5px/1 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.12s ease, background-color 0.12s ease;
}
.btn-text-link:hover { color: var(--ink); background: var(--paper-sunken); }

.field-error {
  margin-top: 8px;
  font: 600 13px/1.4 var(--font-sans);
  color: var(--vermilion);
}
.coupon-ok {
  display: block;
  margin-top: 8px;
  font: 700 13px/1.4 var(--font-sans);
  color: var(--solvency);
}
input[aria-invalid="true"] {
  border-color: var(--vermilion) !important;
  background: #fff6f4 !important;
}

/* ==========================================================================
   ACT I HERO: TIGHTENED ABOVE-THE-FOLD FRAMING SO WTD-01 IS PLAYABLE <=900px
   ========================================================================== */
.hero-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-bottom: 1.5px solid var(--ink);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('/assets/v1-timeclock.jpg') right center / cover no-repeat;
  opacity: 0.86;
  pointer-events: none;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #efeae0 0%, #efeae0 45%, rgba(239, 234, 224, 0.84) 68%, rgba(239, 234, 224, 0.25) 100%);
}
.hero-grain {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(22, 22, 20, 0.045) 1px, transparent 1px);
  background-size: 6px 6px;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  margin: 0 auto;
  padding: 26px 4.5% 42px;
}
.hero-copy { max-width: 720px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 12px/1.2 var(--font-sans);
  letter-spacing: 0.09em;
  color: var(--signal);
}
.hero-copy h1 {
  font-family: var(--font-serif);
  font-size: clamp(40px, 4.7vw, 66px);
  line-height: 0.96;
  font-weight: 400;
  letter-spacing: -0.024em;
  margin-top: 10px;
}
.hero-copy h1 .headline-accent { color: var(--vermilion); }
.hero-sub {
  font-size: 15px;
  line-height: 1.58;
  color: #3f3d36;
  margin-top: 12px;
  max-width: 530px;
}
.hero-actions-row { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; margin-top: 16px; }
.hero-micro {
  font: 500 12.5px/1.45 var(--font-sans);
  color: var(--muted);
  margin-top: 10px;
}

/* MODEL WTD-01 HARDWARE DESK (HERO & CHECKUP) */
.hero-wtd-desk,
.quiz-desk {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  max-width: 1020px;
}

.wtd-receipt-col { position: relative; }
.wtd-slot-lip {
  height: 14px;
  background: var(--ink);
  border-radius: 4px;
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.85);
}
.wtd-receipt {
  margin: -4px 10px 0;
  background: #ffffff;
  padding: 16px 14px 18px;
  font-family: var(--font-mono);
  box-shadow: 0 18px 40px rgba(22, 22, 20, 0.13);
  border-left: 1px solid #d4d2cb;
  border-right: 1px solid #d4d2cb;
  border-bottom: 3px dashed #b9b6ad;
  transition: transform 0.14s var(--ease-quart);
}
.wtd-receipt.is-stamped { transform: translateY(5px); }
.wtd-rc-head {
  text-align: center;
  padding-bottom: 9px;
  border-bottom: 1px dashed #c8c5bc;
}
.wtd-rc-head strong { display: block; font-size: 12px; letter-spacing: 0.06em; }
.wtd-rc-head span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }

.wtd-rc-lines {
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-bottom: 1px dashed #c8c5bc;
  max-height: 220px;
  overflow-y: auto;
}
.wtd-rc-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  line-height: 1.3;
}
@media (prefers-reduced-motion: no-preference) {
  .wtd-rc-row { animation: rcFeed 0.22s var(--ease-quart); }
}
@keyframes rcFeed { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.wtd-rc-row span { color: #3f3d36; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wtd-rc-row b { color: var(--signal-ink); flex: none; font-variant-numeric: tabular-nums; }
.wtd-rc-row b.good { color: var(--solvency); }

.wtd-rc-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0 8px;
  gap: 8px;
}
.wtd-rc-total span { font-size: 12px; font-weight: 700; color: var(--muted); }
.wtd-rc-total strong { font-size: 32px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.wtd-rc-total strong.danger { color: var(--signal-ink); }
.wtd-rc-barcode {
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  line-height: 0;
}

/* TACTILE HARDWARE PAD */
.wtd-pad {
  background: #f7f5ef;
  border: 2px solid #c9c5b8;
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 12px 0 #c9c5b8, 0 22px 46px rgba(22, 22, 20, 0.13);
}
.wtd-pad-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font: 700 12px/1.2 var(--font-sans);
  color: var(--signal-ink);
  letter-spacing: 0.06em;
}
.wtd-knob {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--signal-dial);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25), 0 4px 10px rgba(255, 77, 0, 0.28);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5px;
  flex: none;
  transition: transform 0.25s var(--ease-quart);
}
.wtd-knob span { width: 3px; height: 9px; background: #ffffff; border-radius: 2px; }
.wtd-pad-q {
  font-family: var(--font-sans);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.32;
  font-weight: 700;
  color: var(--ink);
  margin: 14px 0 8px;
}
.wtd-pad-sub {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 16px;
}
.wtd-keys {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.wtd-keys.single-col { grid-template-columns: 1fr; }
.wtd-key {
  text-align: left;
  padding: 13px 15px;
  min-height: 60px;
  background: #2b2b29;
  color: #f7f5ef;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 5px 0 #111110;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.12s ease;
}
.wtd-key:hover { background: #3b3b38; }
.wtd-key:active { transform: translateY(4px); box-shadow: 0 1px 0 #111110; }
.wtd-key.selected { background: var(--signal); color: #ffffff; box-shadow: 0 5px 0 var(--signal-dark); }
.wtd-key.selected code { color: #ffffff; opacity: 0.88; }
.wtd-key code {
  display: block;
  font: 700 12px/1 var(--font-mono);
  color: var(--signal-on-dark);
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}
.wtd-key span { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.38; }

.wtd-pad-foot {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font: 600 12px/1.3 var(--font-sans);
  color: var(--muted);
}
.pad-skip-link {
  min-height: 44px;
  padding: 0 4px;
  background: transparent;
  border: 0;
  font: 700 12.5px/1 var(--font-sans);
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pad-skip-link:hover { color: var(--signal-ink); }

/* DARK OBSIDIAN MANIFESTO BAND + DOSSIER SPECIMEN (NO EYEBROW OR 1-2-3 TEMPLATE) */
.manifesto-band {
  background: var(--obsidian);
  color: var(--paper);
  border-bottom: 1.5px solid var(--ink);
  padding: 68px 4.5%;
}
.manifesto-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 44px;
  align-items: start;
}
.manifesto-thesis h2 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.2vw, 54px);
  line-height: 1.0;
  font-weight: 400;
  color: var(--paper);
}
.manifesto-thesis h2 .headline-accent-on-dark { color: var(--signal-on-dark); }
.manifesto-thesis p {
  font-size: 15.5px;
  line-height: 1.65;
  color: #d1cfc7;
  margin-top: 16px;
  max-width: 56ch;
}
.manifesto-hardware-plate {
  margin-top: 24px;
  border: 1px solid rgba(253, 251, 245, 0.18);
  border-radius: 8px;
  overflow: hidden;
  background: #1d1c19;
}
.manifesto-hardware-plate img {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  object-position: center;
}
.manifesto-hardware-plate figcaption {
  padding: 10px 14px;
  font: 600 12px/1.3 var(--font-mono);
  color: #c7c4ba;
  border-top: 1px solid rgba(253, 251, 245, 0.14);
}
.manifesto-specimen {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.specimen-ledger {
  background: #1a1917;
  border: 1px solid rgba(253, 251, 245, 0.22);
  border-radius: 8px;
  padding: 18px 20px;
}
.specimen-head {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(253, 251, 245, 0.16);
  font: 700 12px/1.2 var(--font-mono);
  color: #c7c4ba;
}
.specimen-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(253, 251, 245, 0.12);
  font-size: 14px;
  color: #e2e0d8;
}
.specimen-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.specimen-row b { font-family: var(--font-mono); font-size: 14px; color: var(--paper); white-space: nowrap; }
.specimen-row b.is-warn { color: var(--signal-on-dark); }
.specimen-row b.is-owner { color: var(--solvency-on-dark); }
.manifesto-points {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(253, 251, 245, 0.18);
}
.manifesto-points li {
  padding: 16px 2px;
  border-bottom: 1px solid rgba(253, 251, 245, 0.18);
}
.manifesto-points strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--paper);
}
.manifesto-points p {
  font-size: 14px;
  line-height: 1.58;
  color: #d1cfc7;
  margin-top: 5px;
}

/* PRICING BAND (NO HARD ORANGE OFFSET SHADOW) */
.pricing-band {
  background: var(--paper-sunken);
  border-bottom: 1.5px solid var(--ink);
  padding: 64px 4.5%;
}
.pricing-head { max-width: 1120px; margin: 0 auto 28px; }
.pricing-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 400;
  margin-top: 10px;
}
.compare-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.cmp-card {
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cmp-card-featured {
  background: var(--obsidian);
  color: var(--paper);
  border: 2px solid var(--obsidian);
  box-shadow: 0 18px 40px rgba(20, 20, 18, 0.18);
}
.cmp-tag {
  font: 700 12px/1.2 var(--font-sans);
  letter-spacing: 0.08em;
  color: var(--muted);
}
.cmp-card-featured .cmp-tag { color: var(--signal-on-dark); }
.cmp-card strong {
  font: 700 28px/1.1 var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.cmp-card strong span { font: 500 13.5px/1 var(--font-sans); color: var(--muted); }
.cmp-card-featured strong { color: var(--paper); }
.cmp-card-featured strong span { color: #d1cfc7; }
.cmp-card ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14px;
  line-height: 1.52;
  color: var(--muted);
}
.cmp-card-featured ul { color: #e2e0d8; }
.cmp-card-featured li strong { font-family: var(--font-sans); font-size: 14px; color: #ffffff; }
.cmp-card .btn-signal { margin-top: auto; width: 100%; }

.pricing-faq {
  max-width: 1120px;
  margin: 26px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.pricing-faq-item {
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  padding: 0 16px;
}
.pricing-faq-item summary {
  min-height: 48px;
  padding: 12px 0;
  font: 700 13.5px/1.35 var(--font-sans);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pricing-faq-item summary::-webkit-details-marker { display: none; }
.pricing-faq-item summary::after {
  content: "+";
  font: 700 16px/1 var(--font-mono);
  color: var(--signal);
  flex: none;
}
.pricing-faq-item[open] summary::after { content: "-"; }
.pricing-faq-item p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  padding: 0 0 14px;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}

.landing-footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 4.5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13.5px;
  color: var(--muted);
}
.footer-brand-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-note {
  font-size: 12px;
  color: var(--muted);
}
.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.landing-footer a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.landing-footer a:hover { color: var(--signal); }

/* EMPTY STATE FOR DIRECT /deck/* VISITS */
.view-empty {
  min-height: calc(100svh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 16px;
}
.empty-state-card {
  max-width: 540px;
  width: 100%;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 32px 28px;
  box-shadow: 0 18px 40px rgba(20, 20, 18, 0.1);
}
.empty-state-card h1 {
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1.08;
  font-weight: 400;
  margin-top: 8px;
}
.empty-state-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 12px;
}
.empty-state-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.empty-state-actions > button { min-height: 44px; }

/* CHECKOUT POLICY CONSENT */
.checkout-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
  background: var(--paper-sunken);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font: 500 12.5px/1.45 var(--font-sans);
  color: var(--ink);
  cursor: pointer;
}
.checkout-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--signal);
  flex: none;
}
.checkout-consent a {
  color: var(--signal);
  font-weight: 600;
}

/* UNIFIED THERMAL TOAST */
.wtd-toast-region {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 9999;
  pointer-events: none;
  max-width: min(360px, calc(100vw - 24px));
}
.wtd-toast {
  pointer-events: auto;
  background: var(--obsidian);
  color: var(--paper);
  border: 1.5px solid rgba(253, 251, 245, 0.25);
  border-left: 4px solid var(--signal-on-dark);
  border-radius: 8px;
  padding: 12px 15px;
  font: 600 13px/1.35 var(--font-mono);
  box-shadow: 0 14px 32px rgba(20, 20, 18, 0.28);
  animation: wtdToastIn 180ms ease-out;
}
.wtd-toast.is-success { border-left-color: #34d399; }
.wtd-toast.is-error { border-left-color: #f87171; }
@keyframes wtdToastIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-story-hint { display: none; }

/* ==========================================================================
   CHECKUP VIEW (WTD-01 KEYPAD + COLLAPSIBLE MOBILE 48PX TAPE)
   ========================================================================== */
.view-quiz {
  min-height: calc(100svh - 60px);
  padding: 20px 4.5% 76px;
  background: var(--plaster);
}
.quiz-shell { max-width: 1060px; margin: 0 auto; }
.quiz-pad-controls {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.quiz-pad-controls.is-dark {
  border-top-color: rgba(253, 251, 245, 0.16);
}
.quiz-ctrl-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.quiz-ctrl-btn {
  min-height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  font: 600 13px/1 var(--font-sans);
  transition: color 0.12s ease, background-color 0.12s ease;
}
.quiz-ctrl-btn:hover { color: var(--signal-ink); background: var(--paper-sunken); }
.quiz-pad-controls.is-dark .quiz-ctrl-btn { color: var(--paper); }
.quiz-pad-controls.is-dark .quiz-ctrl-btn:hover { color: var(--signal-on-dark); background: rgba(255, 255, 255, 0.08); }
.qp-saved-inline { font: 500 12px/1.2 var(--font-sans); color: var(--solvency); }
.quiz-pad-controls.is-dark .qp-saved-inline { color: var(--solvency-on-dark); }

.mobile-tape-toggle {
  display: none;
  width: 100%;
  min-height: 48px;
  padding: 8px 14px;
  margin-bottom: 12px;
  background: #ffffff;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink);
  text-align: left;
}
.mtt-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font: 600 12px/1.2 var(--font-mono);
}
.mtt-left strong {
  background: var(--ink);
  color: var(--paper);
  padding: 3px 6px;
  border-radius: 3px;
  flex: none;
}
.mtt-left span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.mtt-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  font: 700 12px/1 var(--font-sans);
}
.mtt-right b { font-family: var(--font-mono); color: var(--ink); }
.mtt-right b.danger { color: var(--vermilion); }

.q-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 15px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #ffffff;
  font: 600 16px/1.4 var(--font-sans);
  color: var(--ink);
}

.q-slider-wrap { margin-top: 6px; }
.q-slider-val { font: 700 44px/1 var(--font-mono); color: var(--ink); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.q-slider-val span { font: 500 15px/1 var(--font-sans); color: var(--muted); margin-left: 6px; }
.q-range { width: 100%; accent-color: var(--signal); height: 8px; min-height: 32px; }
.q-hint-box {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--paper-sunken);
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}
.q-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.q-chip {
  min-height: 44px;
  padding: 8px 13px;
  background: #ffffff;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.q-chip:hover { border-color: var(--ink); }
.q-continue-row { margin-top: 18px; display: flex; justify-content: flex-end; }

.burn-exact-box {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
}
.burn-exact-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font: 600 12px/1.3 var(--font-sans);
  color: var(--muted);
  margin-bottom: 8px;
}
.burn-exact-label b { font-family: var(--font-mono); color: var(--ink); }
.burn-exact-row { display: flex; gap: 8px; align-items: center; }
.burn-exact-row input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 10px 13px;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  background: #ffffff;
  font: 600 15px/1.2 var(--font-mono);
  color: var(--ink);
}
.burn-exact-row input:focus { border-color: var(--ink); }

/* CHECKPOINT & CONSISTENCY OBSIDIAN CARD + EDITORIAL PLATE */
.sanity-card {
  background: var(--obsidian);
  color: var(--paper);
  border-radius: 12px;
  padding: 26px 26px 28px;
  box-shadow: 0 18px 44px rgba(20, 20, 18, 0.24);
}
.cp-plate-frame {
  margin: -6px 0 18px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(253, 251, 245, 0.16);
  background: #141412;
}
.cp-plate-frame img {
  display: block;
  width: 100%;
  height: 185px;
  object-fit: cover;
}
.sanity-card h3 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.1;
  font-weight: 400;
  margin-top: 10px;
}
.sanity-card p { font-size: 15px; line-height: 1.62; color: #d1cfc7; margin-top: 12px; }
.sanity-card .wtd-key { background: rgba(255, 255, 255, 0.08); box-shadow: 0 4px 0 rgba(0, 0, 0, 0.5); }
.sanity-card .wtd-key:hover { background: var(--signal); color: #ffffff; }
.sanity-card .wtd-key:hover code { color: #ffffff; opacity: 0.88; }
.cp-calibrating {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 0 6px;
}
.cp-cal-bar {
  height: 12px;
  border-radius: 4px;
  background: rgba(253, 251, 245, 0.14);
  animation: cpPulse 1.1s ease-in-out infinite;
}
.cp-cal-bar.is-short { width: 58%; height: 22px; }
.cp-cal-bar.is-med { width: 84%; }
@keyframes cpPulse {
  0%, 100% { opacity: 0.42; }
  50% { opacity: 0.85; }
}

/* SYNTHESIS THEATER + JACQUARD LOOM PLATE */
.view-synthesis {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px;
}
.synth-card {
  background: var(--obsidian);
  color: var(--paper);
  border-radius: 12px;
  padding: 28px 30px 32px;
  box-shadow: 0 24px 60px rgba(20, 20, 18, 0.25);
}
.synth-plate {
  margin-bottom: 18px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(253, 251, 245, 0.16);
  background: #141412;
}
.synth-plate img { display: block; width: 100%; max-height: 210px; object-fit: cover; }
.synth-card h2 { font-family: var(--font-serif); font-size: 34px; font-weight: 400; margin-top: 10px; }
.synth-bar-track { height: 7px; background: rgba(255, 255, 255, 0.14); border-radius: 99px; overflow: hidden; margin: 20px 0; }
.synth-bar-fill { height: 100%; width: 0%; background: var(--signal-on-dark); transition: width 0.45s ease; }
.synth-steps { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.synth-steps li { font: 500 13px/1.45 var(--font-mono); color: #9c9a92; }
.synth-steps li.is-active { color: var(--signal-on-dark); }
.synth-steps li.is-done { color: var(--paper); }

/* ==========================================================================
   ACT II: COMPACT SINGLE-BAR DECK HEADER + 16:9 INSTITUTIONAL SLIDE STAGE
   ========================================================================== */
.view-book {
  min-height: calc(100svh - 60px);
  background: var(--plaster);
  padding: 14px 24px 44px;
}
.deck-shell {
  max-width: 1260px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-app-chrome { display: none; }
.deck-mobile-bar { display: none; }
.deck-story-bars { display: none; }
.deck-mobile-rail { display: none; }
.mobile-deeper-btn { display: none; }

/* SINGLE COMPACT STICKY DECK HEADER ON DESKTOP */
.deck-header {
  position: sticky;
  top: 60px;
  z-index: 40;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  padding: 6px 10px;
  box-shadow: 0 6px 18px rgba(22, 22, 20, 0.06);
}
.deck-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.deck-tb-left, .deck-tb-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.deck-owner-pill {
  background: var(--obsidian);
  color: var(--paper);
  min-height: 40px;
  padding: 6px 11px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  font: 700 12px/1 var(--font-sans);
  white-space: nowrap;
}
.deck-owner-pill span {
  font-weight: 500;
  color: #c7c4ba;
  font-size: 12px;
}
.deck-view-tabs {
  display: inline-flex;
  background: var(--paper-sunken);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 4px;
  gap: 3px;
}
.deck-tab {
  min-height: 38px;
  border: 0;
  background: transparent;
  padding: 0 11px;
  border-radius: 4px;
  font: 700 12px/1 var(--font-sans);
  color: var(--muted);
  white-space: nowrap;
}
.deck-tab:hover { color: var(--ink); }
.deck-tab.is-active { background: var(--ink); color: var(--paper); }

/* INLINE 3-PHASE PILLS INSIDE THE SINGLE DECK HEADER */
.deck-journey-bar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--paper-sunken);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 2px;
}
.journey-step {
  min-height: 38px;
  background: transparent;
  border: 0;
  border-radius: 4px;
  padding: 0 11px;
  color: var(--muted);
  font: 700 12px/1 var(--font-sans);
  white-space: nowrap;
  transition: background-color 0.14s ease, color 0.14s ease;
}
.journey-step:hover { color: var(--ink); }
.journey-step.is-active[data-phase="realist"] { background: var(--ink); color: var(--paper); }
.journey-step.is-active[data-phase="pivot"] { background: var(--signal); color: #ffffff; font-weight: 700; }
.journey-step.is-active[data-phase="owner"] { background: var(--solvency); color: #ffffff; }

.deck-stage-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.deck-stage-layout {
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.deck-stage-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

/* FLOATING BLURRED LEFT SLIDE SIDEBAR (PRIMARY SLIDE VIEW ON DESKTOP) */
.deck-floating-sidebar {
  position: sticky;
  top: 132px;
  max-height: calc(100svh - 150px);
  display: flex;
  flex-direction: column;
  background: rgba(253, 251, 245, 0.56);
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  border: 1px solid rgba(22, 22, 20, 0.14);
  border-radius: 10px;
  padding: 10px 8px;
  box-shadow: 0 8px 24px rgba(22, 22, 20, 0.06);
  overflow: hidden;
}
.dfs-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 6px 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(22, 22, 20, 0.12);
  font: 700 11px/1 var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--muted);
}
.dfs-head strong { color: var(--ink); }
.dfs-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  padding-right: 2px;
}
.dfs-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 6px;
  width: 100%;
  min-height: 36px;
  padding: 7px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  text-align: left;
  color: var(--muted);
  transition: background-color 0.12s ease, color 0.12s ease;
}
.dfs-item:hover {
  background: rgba(22, 22, 20, 0.06);
  color: var(--ink);
}
.dfs-item.is-active {
  background: var(--obsidian);
  color: var(--paper);
}
.dfs-item.is-locked { opacity: 0.72; }
.dfs-num {
  font: 700 11px/1.2 var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--signal-ink);
}
.dfs-item.is-active .dfs-num { color: var(--signal-on-dark); }
.dfs-title {
  font: 500 12px/1.3 var(--font-sans);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dfs-item.is-active .dfs-title { font-weight: 600; color: var(--paper); }
.dfs-lock {
  font: 700 14px/1 var(--font-mono);
  color: var(--line-strong);
}

.deck-stage-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font: 700 12.5px/1 var(--font-mono);
  color: var(--muted);
}

/* 16:9 INSTITUTIONAL BOARDROOM SLIDE CANVAS (EDITORIAL HAIRLINES, ZERO NESTED BOXES) */
.slide-canvas {
  width: 100%;
  min-height: 560px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 20px 28px 16px;
  box-shadow: 0 16px 40px rgba(22, 22, 20, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
@media (prefers-reduced-motion: no-preference) {
  .slide-canvas.is-entering { animation: slideReveal 0.24s var(--ease-quart) both; }
  .slide-canvas.is-slide-next { animation: wtdSlideNext 0.24s var(--ease-quart) both; }
  .slide-canvas.is-slide-prev { animation: wtdSlidePrev 0.24s var(--ease-quart) both; }
}
@keyframes slideReveal {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes wtdSlideNext {
  from { opacity: 0; transform: translateX(22px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes wtdSlidePrev {
  from { opacity: 0; transform: translateX(-22px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes vtSlideOutLeft {
  to { opacity: 0; transform: translateX(-28%); }
}
@keyframes vtSlideInRight {
  from { opacity: 0; transform: translateX(28%); }
}
@keyframes vtSlideOutRight {
  to { opacity: 0; transform: translateX(28%); }
}
@keyframes vtSlideInLeft {
  from { opacity: 0; transform: translateX(-28%); }
}
::view-transition-group(wtd-slide-canvas) {
  animation-duration: 0.28s;
  animation-timing-function: var(--ease-quart);
  animation-fill-mode: both;
}
html:active-view-transition-type(forward)::view-transition-old(wtd-slide-canvas) {
  animation: vtSlideOutLeft 0.26s var(--ease-quart) both;
}
html:active-view-transition-type(forward)::view-transition-new(wtd-slide-canvas) {
  animation: vtSlideInRight 0.28s var(--ease-quart) both;
}
html:active-view-transition-type(backward)::view-transition-old(wtd-slide-canvas) {
  animation: vtSlideOutRight 0.26s var(--ease-quart) both;
}
html:active-view-transition-type(backward)::view-transition-new(wtd-slide-canvas) {
  animation: vtSlideInLeft 0.28s var(--ease-quart) both;
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(wtd-slide-canvas),
  ::view-transition-old(wtd-slide-canvas),
  ::view-transition-new(wtd-slide-canvas) {
    animation: none !important;
  }
}

/* FULL-WIDTH TOP RUNNING FOLIO (NO DECORATIVE PHASE PILL CHIPS) */
.slide-folio {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.slide-folio.is-dark { border-bottom-color: rgba(253, 251, 245, 0.16); }
.folio-tag {
  font: 700 11.5px/1.2 var(--font-mono);
  letter-spacing: 0.07em;
  color: var(--signal-ink);
  text-transform: uppercase;
}
.slide-folio.is-dark .folio-tag { color: var(--signal-on-dark); }
.folio-phase {
  font: 600 12px/1.2 var(--font-sans);
  color: var(--muted);
  white-space: nowrap;
}
.folio-phase.is-owner { color: var(--solvency); }
.folio-phase.is-pivot { color: var(--signal-ink); }
.slide-folio.is-dark .folio-phase { color: var(--brass-soft); }

/* DARK OBSIDIAN PIVOT SLIDE (TIGHTENED TO <=680px 16:9 PROPORTIONS) */
.slide-canvas.is-dark-pivot {
  background: var(--obsidian);
  color: var(--paper);
  border: 2px solid var(--obsidian);
  padding: 22px 28px 16px;
  gap: 12px;
  box-shadow: 0 22px 54px rgba(20, 20, 18, 0.26);
}
.slide-canvas.is-dark-pivot .bp-title { color: var(--paper); font-size: clamp(26px, 2.5vw, 33px); margin-top: 4px; }
.slide-canvas.is-dark-pivot .bp-lead { color: #d1cfc7; font-size: 13.5px; line-height: 1.52; }
.slide-canvas.is-dark-pivot .bp-metric-box {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--paper);
}
.slide-canvas.is-dark-pivot .bp-metric-box span { color: #c7c4ba; }
.slide-canvas.is-dark-pivot .bp-metric-box strong { color: var(--solvency-on-dark); font-size: 15px; }
.slide-canvas.is-dark-pivot .bp-bullets li {
  border-top-color: rgba(255, 255, 255, 0.16);
  color: var(--paper);
  padding: 8px 0;
  font-size: 12.5px;
  line-height: 1.45;
}
.slide-canvas.is-dark-pivot .bp-row-num { color: var(--brass-soft); }
.slide-canvas.is-dark-pivot .bp-callout {
  background: rgba(13, 104, 96, 0.24);
  border-color: var(--solvency-on-dark);
  color: #ecfdf5;
  padding: 10px 14px;
  font-size: 13px;
}
.slide-canvas.is-dark-pivot .slide-foot {
  border-top-color: rgba(255, 255, 255, 0.16);
  color: #c7c4ba;
}
.slide-canvas.is-dark-pivot .slide-art-frame {
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--obsidian);
}
.exhibit-card.is-dark-exhibit h4 { color: var(--brass-soft); margin-bottom: 6px; }
.slide-art-frame.is-pivot-art img {
  max-height: 132px;
  width: 100%;
  object-fit: cover;
  object-position: center;
}
.turnaround-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.turnaround-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 7px 9px;
}
.turnaround-chip span {
  display: block;
  font: 700 12px/1.15 var(--font-sans);
  color: var(--brass-soft);
}
.turnaround-chip strong {
  display: block;
  font: 500 12px/1.3 var(--font-sans);
  color: var(--paper);
  margin-top: 2px;
}

.slide-split {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 24px;
  align-items: start;
  flex: 1;
}
.slide-split.is-pivot-split { gap: 20px; }
.slide-col-left, .slide-col-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.slide-two-exhibits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* IB ASSUMPTION FOOTNOTE IN SLIDE FOOTER */
.slide-foot {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
}
.slide-foot-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.slide-foot .slide-code { font-size: 12px; font-weight: 700; color: var(--ink); }
.slide-canvas.is-dark-pivot .slide-foot .slide-code { color: var(--paper); }
.slide-ib-note { font: 500 12px/1.35 var(--font-sans); color: var(--muted); }
.slide-canvas.is-dark-pivot .slide-ib-note { color: #c7c4ba; }
.slide-foot-nav { font: 600 12px/1 var(--font-sans); white-space: nowrap; }
.foot-nav-mobile { display: none; }

/* BESPOKE ARTWORK PLATES */
.slide-art-frame {
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
}
.slide-art-frame img { width: 100%; height: auto; display: block; }
.slide-art-frame.is-plate-banner img { max-height: 136px; object-fit: contain; background: var(--paper); }
.slide-art-frame.is-scorecard-art img { max-height: 200px; object-fit: cover; object-position: center; }

.bp-title {
  font-family: var(--font-serif);
  font-size: clamp(27px, 2.8vw, 36px);
  line-height: 1.08;
  font-weight: 400;
  margin-top: 4px;
}
.bp-lead { font-size: 14.5px; line-height: 1.62; color: var(--muted); }

/* DE-BOXED HAIRLINE-SEPARATED NUMBERED BULLET ROWS (01 / 02 / 03) */
.bp-bullets {
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
}
.slide-canvas.is-dark-pivot .bp-bullets { border-bottom-color: rgba(255, 255, 255, 0.16); }
.bp-bullets li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
}
.bp-row-num {
  font: 700 12px/1 var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--signal-ink);
}
.bp-callout {
  padding: 13px 16px;
  background: var(--paper-sunken);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.55;
}
.bp-memo {
  padding: 13px 16px;
  background: var(--obsidian);
  color: var(--paper);
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.58;
}
.bp-memo-kicker {
  display: block;
  font: 700 12px/1.2 var(--font-sans);
  letter-spacing: 0.09em;
  color: var(--signal-on-dark);
  margin-bottom: 5px;
}
.bp-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.bp-metric-box {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 2px 10px 2px 0;
}
.bp-metric-box:last-child { border-right: 0; padding-right: 0; }
.slide-canvas.is-dark-pivot .bp-metrics-grid { border-top-color: rgba(255, 255, 255, 0.16); }
.slide-canvas.is-dark-pivot .bp-metric-box {
  background: transparent;
  border-right-color: rgba(255, 255, 255, 0.16);
  padding: 2px 10px 2px 0;
}
.bp-metric-box span {
  display: block;
  font: 600 12px/1.2 var(--font-sans);
  color: var(--muted);
}
.bp-metric-box strong {
  display: block;
  font: 700 15px/1.25 var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  margin-top: 4px;
}

/* VERDICT HERO & OWNERSHIP CALENDAR */
.verdict-hero-box {
  background: var(--obsidian);
  color: var(--paper);
  border-radius: 10px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.vh-age small {
  display: block;
  font: 700 12px/1.2 var(--font-sans);
  letter-spacing: 0.08em;
  color: var(--signal-on-dark);
}
.vh-age strong {
  display: block;
  font: 700 36px/1.04 var(--font-mono);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.vh-age strong.is-long-verdict {
  font-size: clamp(22px, 2.05vw, 27px);
  line-height: 1.08;
}
.vh-age p { font-size: 13.5px; color: #d1cfc7; margin-top: 5px; line-height: 1.45; }
.vh-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vh-metrics > div {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 9px 11px;
}
.vh-metrics span { display: block; font-size: 12px; color: #c7c4ba; }
.vh-metrics b {
  display: block;
  font: 700 15px/1.2 var(--font-mono);
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}
.accent-text { color: var(--solvency-on-dark); }

/* 1-ROW 4-COLUMN ASSUMPTION LEDGER STRIP (NO NESTED BOXES) */
.model-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.model-strip > div {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 2px 10px;
}
.model-strip > div:first-child { padding-left: 0; }
.model-strip > div:last-child { border-right: 0; padding-right: 0; }
.model-strip span {
  display: block;
  font: 700 11px/1.2 var(--font-sans);
  letter-spacing: 0.04em;
  color: var(--muted);
}
.model-strip b {
  display: block;
  font: 700 13.5px/1.25 var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  margin-top: 3px;
}

.comeback-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 0 0;
}
.comeback-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding-top: 7px;
  border-top: 1px solid var(--line);
}
.comeback-row:nth-child(-n+2) { padding-top: 0; border-top: 0; }
.comeback-row span {
  font: 700 11.5px/1.3 var(--font-mono);
  letter-spacing: 0.05em;
  color: var(--signal-ink);
  text-transform: uppercase;
}
.comeback-row p {
  font: 500 12.5px/1.42 var(--font-sans);
  color: var(--ink);
  margin: 0;
}
.comeback-row.is-comeback span { color: var(--solvency); }
.comeback-row.is-core-shift span { color: var(--ink); }

.days-grid-box {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 0 0;
}
.days-grid-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.days-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin-top: 8px; }
.day-cell {
  height: 24px;
  border-radius: 3px;
  background: var(--paper-sunken);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 11.5px/1 var(--font-mono);
  color: var(--muted);
}
.day-cell.owned { background: var(--solvency); border-color: var(--solvency); color: #ffffff; }

/* EDITORIAL HAIRLINE EXHIBITS (STRIPPED NESTED CARD-IN-CARD BORDERS) */
.exhibit-card {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 10px 0 2px;
}
.exhibit-card.is-dark-exhibit {
  background: transparent;
  border-top: 1px solid rgba(253, 251, 245, 0.18);
  color: var(--paper);
  padding: 10px 0 2px;
}
.exhibit-card h4 {
  font: 700 11.5px/1.25 var(--font-sans);
  letter-spacing: 0.06em;
  color: var(--vermilion);
  margin-bottom: 8px;
}
.exhibit-card svg { width: 100%; height: auto; display: block; }
.radar-svg-wrap {
  max-width: 245px;
  margin: 0 auto;
}
.radar-svg-wrap svg {
  max-height: 245px;
}
.exhibit-label { display: block; font: 600 12px/1.35 var(--font-sans); color: var(--muted); margin-bottom: 8px; }

.svg-legend {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  font: 600 12px/1.2 var(--font-sans);
  color: var(--muted);
}
.svg-legend.is-dark { color: #d1cfc7; }
.svg-legend span { display: inline-flex; align-items: center; gap: 6px; }
.svg-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }

.wf-rows { display: flex; flex-direction: column; gap: 9px; margin-top: 6px; }
.wf-row { display: grid; grid-template-columns: 112px 1fr 62px; align-items: center; gap: 8px; font-size: 12.5px; }
.wf-bar-bg { height: 12px; background: var(--paper-sunken); border-radius: 3px; overflow: hidden; }
.wf-bar-fill { height: 100%; background: var(--ink); }
.wf-bar-fill.accent { background: var(--solvency); }

.ledger-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.ledger-table th {
  text-align: left;
  padding: 8px 8px 7px;
  border-bottom: 2px solid var(--ink);
  font: 700 12px/1.2 var(--font-sans);
  color: var(--muted);
  white-space: nowrap;
}
.ledger-table th small { font-weight: 500; font-family: var(--font-mono); color: var(--muted); }
.ledger-table td {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  vertical-align: top;
  font-variant-numeric: tabular-nums;
}
.ledger-table.is-compact th, .ledger-table.is-compact td { padding: 6px 7px; font-size: 12px; }
.ledger-table tr.is-highlight td { background: #fff5f0; font-weight: 600; }
.ledger-foot { margin-top: 10px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }

/* BALANCE SHEET & 2D SENSITIVITY MATRIX HIGHLIGHTS */
.bs-total-row td { border-top: 1.5px solid var(--ink); background: var(--paper-sunken); }
.bs-networth-row td { background: var(--obsidian); color: var(--paper); border-bottom: 0; }
.bs-networth-row .is-neg { color: var(--signal-on-dark); }
.bs-networth-row .is-pos { color: var(--solvency-on-dark); }

.sens-table td:not(:first-child) {
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 600;
}
.sens-table th:not(:first-child) { text-align: center; }
.sens-base { background: #fee2e2; color: #8c1a1a !important; }
.sens-good { background: #ecfdf5; color: #065f46 !important; }
.sens-target { background: var(--solvency); color: #ffffff !important; font-weight: 700 !important; }

/* INTERACTIVE REAL HOURLY WAGE AUDIT */
.rhw-controls { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.rhw-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rhw-field { display: flex; flex-direction: column; gap: 5px; }
.rhw-field span { font: 600 12px/1.25 var(--font-sans); color: var(--muted); }
.rhw-field input {
  width: 100%;
  min-height: 44px;
  padding: 8px 11px;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  background: var(--paper);
  font: 700 14px/1.2 var(--font-mono);
  color: var(--ink);
}
.rhw-field input:focus { border-color: var(--ink); background: #ffffff; }
.rhw-print-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.rhw-print-summary > div {
  background: var(--paper-sunken);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 8px 10px;
}
.rhw-print-summary span { display: block; font: 700 12px/1.2 var(--font-sans); color: var(--muted); }
.rhw-print-summary b { display: block; font: 700 14px/1.2 var(--font-mono); margin-top: 3px; }
.rhw-readout {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  padding: 14px;
}
.rhw-rates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-strong);
}
.rhw-rates span { display: block; font: 700 12px/1.2 var(--font-sans); color: var(--muted); }
.rhw-rates b, .rhw-rates strong {
  display: block;
  font: 700 16px/1.2 var(--font-mono);
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
  color: var(--ink);
}
.rhw-rates strong { font-size: 18px; color: var(--solvency); }
.rhw-life-grid { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.rhw-life-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); }
.rhw-life-row b { font: 700 12.5px/1.3 var(--font-mono); color: var(--ink); white-space: nowrap; }

/* SIMULATOR, 4-QUARTER ROADMAP, FIRST-10 CALC, GATES, BUCKETS */
.sim-box { background: #ffffff; border: 2px solid var(--ink); border-radius: 10px; padding: 18px; }
.sim-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sim-meta-line { display: block; margin-top: 5px; font: 500 12px/1.4 var(--font-mono); color: var(--muted); }
.sim-exit-kicker { display: block; font: 700 12px/1 var(--font-sans); color: var(--muted); }
.sim-age-readout { font: 700 26px/1.1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--solvency); white-space: nowrap; }
.sim-toggles { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.sim-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 9px 12px;
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
}
.sim-toggle input { width: 18px; height: 18px; accent-color: var(--signal); flex: none; }
.sim-toggle b { font: 700 12.5px/1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--solvency); white-space: nowrap; }
.owner-lever-tag { font-style: normal; color: var(--solvency); font-weight: 700; margin-left: 4px; }
.sim-ceiling-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--paper-sunken);
  border: 1px solid var(--line-strong);
  font: 600 12.5px/1.45 var(--font-sans);
  color: var(--ink);
}

.q-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.q-quarter { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 10px 0 4px; }
.q-quarter span { font: 700 12px/1.2 var(--font-sans); color: var(--vermilion); }
.q-quarter strong { display: block; font-size: 14.5px; margin-top: 5px; }
.q-quarter p { font-size: 13px; color: var(--muted); margin-top: 5px; line-height: 1.5; }

.own-calc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.own-calc-head strong { font: 700 22px/1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--solvency); }
.own-calc-head span { font: 700 12px/1 var(--font-sans); color: var(--ink); }
.own-calc-meter { margin-top: 10px; display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 2px; }
.own-meter-cell { height: 12px; border-radius: 2px; background: var(--paper-sunken); border: 1px solid var(--line); }
.own-meter-cell.filled { background: var(--solvency); border-color: var(--solvency); }
.own-calc-kpis { margin-top: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.own-calc-kpis > div { background: var(--paper); border: 1px solid var(--line-strong); border-radius: 6px; padding: 8px 10px; }
.own-calc-kpis span { display: block; font: 700 12px/1.2 var(--font-sans); color: var(--muted); }
.own-calc-kpis b { display: block; font: 700 14px/1.2 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--ink); margin-top: 3px; }

.gates-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gate-cell { background: var(--obsidian); color: var(--paper); border-radius: 6px; padding: 10px 12px; }
.gate-cell span { display: block; font: 700 12px/1.2 var(--font-sans); color: var(--signal-on-dark); }
.gate-cell strong { display: block; font: 600 13px/1.35 var(--font-sans); margin-top: 4px; color: var(--paper); }
.gate-pass-bar {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--solvency);
  color: #ffffff;
  text-align: center;
  font: 700 12.5px/1.2 var(--font-sans);
  letter-spacing: 0.05em;
}

.bucket-pipes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bucket-pipes.is-stacked { grid-template-columns: 1fr; }
.bucket-pipe {
  background: #ffffff;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.bucket-pipe.is-solvency { background: var(--obsidian); color: var(--paper); }
.bp-pipe-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font: 700 12px/1.2 var(--font-sans);
  color: var(--vermilion);
}
.bp-pipe-head b { font-family: var(--font-mono); }
.bucket-pipe.is-solvency .bp-pipe-head { color: var(--signal-on-dark); }
.bucket-pipe strong { font-size: 14px; line-height: 1.35; }
.bucket-pipe p { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.bucket-pipe.is-solvency p { color: #d1cfc7; }

.owner-pledge-box {
  padding: 14px 16px;
  background: var(--obsidian);
  color: var(--paper);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.owner-pledge-box > div > span {
  display: block;
  font: 700 12px/1.2 var(--font-sans);
  letter-spacing: 0.06em;
  color: var(--signal-on-dark);
}
.owner-pledge-box strong { display: block; font: 600 13.5px/1.4 var(--font-sans); color: var(--paper); margin-top: 4px; }
.owner-pledge-badge {
  padding: 7px 11px;
  border-radius: 4px;
  background: var(--solvency);
  color: #ffffff;
  font: 700 12px/1 var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* NEXT-TIER $39 CFP PRECISION BLUEPRINT EARLY-ACCESS CARD */
.precision-waitlist-card {
  margin-top: 4px;
  padding: 12px 14px;
  background: var(--paper-sunken);
  border-top: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pw-tag {
  display: block;
  font: 700 11.5px/1.2 var(--font-mono);
  letter-spacing: 0.05em;
  color: var(--signal-ink);
}
.pw-copy {
  font: 400 12.5px/1.45 var(--font-sans);
  color: var(--muted);
  margin: 4px 0 0;
}
.pw-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.pw-form input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 8px 11px;
  background: #ffffff;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  font: 500 13.5px/1.2 var(--font-sans);
  color: var(--ink);
}
.pw-form input:focus { border-color: var(--ink); }
.pw-form input:disabled { opacity: 0.72; }
.pw-msg {
  font: 600 12px/1.3 var(--font-sans);
  color: var(--solvency);
  min-height: 15px;
  margin: 0;
}
.grid-thumb-scaler .precision-waitlist-card { display: none; }

.stress-badge {
  display: inline-block;
  font: 700 12px/1 var(--font-sans);
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.stress-badge.pass { background: #dcfce7; color: #14532d; }
.stress-badge.risk { background: #fef3c7; color: #78350f; }
.stress-badge.exposed { background: #fee2e2; color: #8c1a1a; }

/* INLINE PROGRESSIVE UNLOCK PANEL (INSIDE .locked-overlay) */
.locked-stage { position: relative; margin-top: 18px; }
.redacted-preview {
  background: #ffffff;
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  padding: 18px 20px 100px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  user-select: none;
  pointer-events: none;
}
.redacted-stamp { font: 700 12px/1.2 var(--font-mono); color: var(--vermilion); }
.redacted-bars { display: flex; flex-direction: column; gap: 9px; }
.redacted-bar { height: 11px; border-radius: 3px; background: var(--ink); opacity: 0.13; }

.locked-overlay {
  position: relative;
  margin-top: -92px;
  z-index: 5;
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 24px 26px;
  box-shadow: 0 16px 36px rgba(20, 20, 18, 0.14);
}
.locked-overlay h3 { font-family: var(--font-serif); font-size: 28px; font-weight: 400; margin-top: 6px; }
.locked-overlay > p { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin-top: 8px; max-width: 68ch; }
.inline-unlock-primary { margin-top: 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.inline-unlock-tabs { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.unlock-drawer {
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  overflow: hidden;
}
.unlock-drawer summary {
  min-height: 46px;
  padding: 11px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 700 13.5px/1.2 var(--font-sans);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.unlock-drawer summary::-webkit-details-marker { display: none; }
.unlock-drawer summary::after { content: '▾'; font-size: 14px; color: var(--muted); }
.unlock-drawer[open] summary { border-bottom: 1px solid var(--line); background: var(--paper-sunken); }
.unlock-drawer[open] summary::after { content: '▴'; }
.unlock-drawer-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.unlock-drawer-body strong { font-size: 14.5px; }
.unlock-drawer-body p { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.drawer-label { font: 600 12.5px/1.3 var(--font-sans); color: var(--ink); }

.checkout-note { font: 600 12.5px/1.45 var(--font-sans); color: var(--muted); }
.btn-signal.is-disabled {
  background: #5c5951;
  color: #fdfbf5;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}
.coupon-row { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.coupon-row input {
  flex: 1;
  min-width: 180px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  font-size: 14px;
  background: #ffffff;
}
.coupon-msg { font: 600 12.5px/1.4 var(--font-sans); color: var(--vermilion); min-height: 16px; }
.ref-link-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper-sunken);
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.ref-link-box code { flex: 1; font: 600 12px/1.3 var(--font-mono); overflow-wrap: anywhere; }
.ref-otp-verify-box {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* FILMSTRIP (SHOWN ON <1080px WHEN FLOATING SIDEBAR COLLAPSES), VISUAL GRID & COMPACT LIST */
.deck-filmstrip {
  display: none;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  -webkit-overflow-scrolling: touch;
}
.film-card {
  flex: 0 0 184px;
  min-height: 92px;
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  padding: 9px 11px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 5px;
  color: var(--ink);
}
.film-card:hover { border-color: var(--ink); }
.film-card.active {
  border: 2px solid var(--signal);
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(190, 50, 0, 0.14);
}
.film-card.locked { opacity: 0.78; }
.film-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.film-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.film-type { font: 600 11.5px/1 var(--font-sans); color: var(--muted); }
.film-card.is-pivot-card { background: var(--obsidian); color: var(--paper); border-color: var(--obsidian); }
.film-card.is-pivot-card .film-type,
.film-card.is-pivot-card .toc-num { color: var(--brass-soft); }

/* VISUAL REAL-THUMBNAIL GRID VIEW */
.deck-sorter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
}
.grid-thumb-card {
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.grid-thumb-card:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  box-shadow: 0 10px 22px rgba(20, 20, 18, 0.11);
}
.grid-thumb-card.active { border: 2px solid var(--signal); }
.grid-thumb-card.is-pivot-card .grid-thumb-viewport { background: var(--obsidian); }

.grid-thumb-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  pointer-events: none;
}
.grid-thumb-scaler {
  position: absolute;
  top: 0;
  left: 0;
  width: 1080px;
  min-height: 675px;
  transform-origin: top left;
  transform: scale(var(--thumb-scale, 0.25));
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  pointer-events: none;
  user-select: none;
}
.grid-thumb-viewport.is-locked-thumb {
  background: var(--paper-sunken);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.grid-thumb-locked-preview {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}
.gtl-kicker {
  font: 700 9.5px/1.2 var(--font-mono);
  color: var(--signal-ink);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gtl-title {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.15;
  font-weight: 400;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gtl-bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.gtl-bars span {
  display: block;
  height: 6px;
  border-radius: 2px;
  background: rgba(22, 22, 20, 0.14);
}
.gtl-lock-tag {
  font: 700 10.5px/1 var(--font-mono);
  color: var(--muted);
  text-transform: uppercase;
}
.grid-thumb-caption {
  padding: 9px 11px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.grid-thumb-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}
.grid-thumb-caption h4 {
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ULTRA-COMPACT EXECUTIVE LIST VIEW */
.deck-list-view {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  overflow: hidden;
}
.list-row {
  min-height: 44px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 9px 14px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 168px 56px;
  align-items: center;
  gap: 10px;
  text-align: left;
  color: var(--ink);
  transition: background-color 0.1s ease;
}
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: var(--paper-sunken); }
.list-row.active {
  background: #fff5f0;
  box-shadow: inset 3px 0 0 var(--signal);
}
.list-row.is-locked { opacity: 0.78; }
.list-row-title {
  font: 600 13.5px/1.3 var(--font-sans);
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.list-row-type {
  font: 500 11.5px/1 var(--font-mono);
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toc-num { font: 700 12px/1 var(--font-mono); color: var(--vermilion); font-variant-numeric: tabular-nums; }

/* PLAIN TYPOGRAPHIC STATUS LABELS (NO GREY CAPSULE BADGES) */
.status-label {
  font: 700 11.5px/1 var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: right;
  white-space: nowrap;
  flex: none;
}
.status-label.is-free { color: var(--solvency); }
.status-label.is-open { color: var(--muted); }
.status-label.is-locked { color: var(--muted); opacity: 0.8; }
.status-label.is-paid { color: var(--signal-ink); }

/* NATIVE <dialog> MODALS (MODERN WEB GUIDANCE: NO UNCONDITIONAL display, OVERSCROLL CONTAINMENT) */
dialog.wtd-dialog {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: min(500px, calc(100vw - 32px));
  width: 100%;
  overflow: visible;
}
dialog.wtd-dialog:modal {
  overscroll-behavior: contain;
}
dialog.wtd-dialog::backdrop {
  background: rgba(20, 20, 18, 0.68);
  overflow: hidden;
  overscroll-behavior: contain;
}
.modal-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 26px 26px 24px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 60px rgba(20, 20, 18, 0.34);
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  font-size: 24px;
  color: var(--muted);
}
.modal-close:hover { color: var(--ink); }
.dialog-title { font-family: var(--font-serif); font-size: 30px; font-weight: 400; margin-top: 8px; }
.modal-card p { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin-top: 10px; }
.retake-paid-note {
  padding: 10px 12px;
  background: #ecfdf5;
  border: 1px solid var(--solvency);
  border-radius: 6px;
  color: #064e3b !important;
  font-weight: 600;
}
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.finish-actions { flex-direction: column; }
.finish-actions > button { width: 100%; }

/* SHARE STUDIO <dialog> */
dialog.wtd-dialog.is-share-dialog {
  max-width: min(940px, calc(100vw - 32px));
}
.share-modal-card {
  padding: 24px 26px;
  max-height: calc(100svh - 32px);
  overflow-y: auto;
}
.share-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px;
  align-items: center;
}
.share-preview-stage {
  background: var(--paper-sunken);
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 360px;
}
.share-preview-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  transition: width 180ms ease, height 180ms ease;
}
.share-preview-frame.is-post {
  width: 100%;
  max-width: 496px;
  aspect-ratio: 16 / 9;
}
.share-preview-frame.is-story {
  width: auto;
  height: min(56svh, 460px);
  max-width: 100%;
  aspect-ratio: 9 / 16;
}
.share-preview-frame canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(20, 20, 18, 0.16);
}
.share-preview-caption {
  font: 600 11.5px/1.3 var(--font-mono);
  color: var(--muted) !important;
  margin-top: 2px !important;
  letter-spacing: 0.03em;
}
.share-controls-pane {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.share-controls-pane .dialog-title {
  margin-top: 2px;
  font-size: 28px;
  line-height: 1.08;
}
.share-modal-sub {
  font-size: 13.5px !important;
  line-height: 1.5 !important;
  margin-top: 0 !important;
}
.share-control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.share-control-label {
  font: 700 11px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.share-seg-rail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  background: var(--paper-sunken);
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
}
.share-seg-btn {
  min-height: 44px;
  padding: 8px 10px;
  border: 1.5px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: 700 12.5px/1.15 var(--font-sans);
  cursor: pointer;
}
.share-seg-btn:hover {
  background: rgba(20, 20, 18, 0.05);
}
.share-seg-btn.is-active {
  background: var(--obsidian);
  color: var(--paper);
  border-color: var(--ink);
}
.share-privacy-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 10px;
  background: var(--paper-sunken);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font: 600 13px/1.3 var(--font-sans);
  color: var(--ink);
  cursor: pointer;
}
.share-privacy-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--signal);
  flex: none;
}
.share-primary-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.share-primary-actions > button {
  flex: 1 1 130px;
  min-height: 44px;
}
.share-social-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.share-social-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 10px;
  border: 1.5px solid var(--line-strong);
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font: 700 12px/1.2 var(--font-mono);
  text-align: center;
  cursor: pointer;
}
.share-social-pill:hover {
  border-color: var(--ink);
  background: var(--paper-sunken);
}
.share-status-msg {
  min-height: 18px;
  margin-top: 0 !important;
  font: 600 12px/1.3 var(--font-mono) !important;
  color: var(--solvency) !important;
}

/* BALANCE SHEET PROVENANCE & INLINE EDIT NUMBERS MODAL */
.bs-provenance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line-strong);
  font: 500 11.5px/1.35 var(--font-sans);
  color: var(--muted);
}
.btn-inline-edit {
  flex: none;
  min-height: 32px;
  padding: 4px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: 700 11.5px/1 var(--font-mono);
  cursor: pointer;
}
.btn-inline-edit:hover {
  background: var(--obsidian);
  color: var(--paper);
}
.edit-numbers-form {
  margin-top: 16px;
}
.edit-numbers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.edit-num-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.edit-num-field span {
  font: 700 11px/1.2 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.edit-num-field input {
  min-height: 44px;
  padding: 8px 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: 7px;
  background: var(--paper-sunken);
  color: var(--ink);
  font: 600 14px/1.2 var(--font-mono);
}
.edit-num-field input:focus {
  outline: 2px solid var(--signal);
  outline-offset: 1px;
  border-color: var(--ink);
}
@media (max-width: 560px) {
  .edit-numbers-grid { grid-template-columns: 1fr; }
  .bs-provenance-row { flex-direction: column; align-items: flex-start; }
  .btn-inline-edit { min-height: 44px; width: 100%; }
}

/* NATIVE BOTTOM SHEET <dialog> FOR MOBILE ONE-TAP-DEEPER EXHIBITS (TOP-LAYER SPRING TRANSITIONS) */
dialog.wtd-dialog.is-bottom-sheet {
  margin: auto 0 0 0;
  max-width: 100vw;
  width: 100%;
  max-height: 90svh;
  opacity: 0;
  transition-property: opacity, transform, display, overlay;
  transition-duration: 0.28s;
  transition-timing-function: var(--ease-quart);
  transition-behavior: allow-discrete;
}
@media (prefers-reduced-motion: no-preference) {
  dialog.wtd-dialog.is-bottom-sheet {
    transform: translateY(100%);
  }
}
dialog.wtd-dialog.is-bottom-sheet::backdrop {
  background-color: rgba(16, 16, 14, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  overflow: hidden;
  overscroll-behavior: contain;
  transition-property: background-color, backdrop-filter, display, overlay;
  transition-duration: 0.26s;
  transition-timing-function: ease-out;
  transition-behavior: allow-discrete;
}
dialog.wtd-dialog.is-bottom-sheet[open]:where(:not([data-closing])) {
  opacity: 1;
}
@media (prefers-reduced-motion: no-preference) {
  dialog.wtd-dialog.is-bottom-sheet[open]:where(:not([data-closing])) {
    transform: translateY(0);
  }
}
@starting-style {
  dialog.wtd-dialog.is-bottom-sheet[open]:where(:not([data-closing])) {
    opacity: 0;
  }
  @media (prefers-reduced-motion: no-preference) {
    dialog.wtd-dialog.is-bottom-sheet[open]:where(:not([data-closing])) {
      transform: translateY(100%);
    }
  }
}
dialog.wtd-dialog.is-bottom-sheet[open]:where(:not([data-closing]))::backdrop {
  background-color: rgba(16, 16, 14, 0.56);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
@starting-style {
  dialog.wtd-dialog.is-bottom-sheet[open]:where(:not([data-closing]))::backdrop {
    background-color: rgba(16, 16, 14, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
  }
}
@media (prefers-reduced-motion: reduce) {
  dialog.wtd-dialog.is-bottom-sheet,
  dialog.wtd-dialog.is-bottom-sheet::backdrop {
    transition-duration: 0.1s;
  }
}
dialog.wtd-dialog.is-bottom-sheet .sheet-card {
  background: var(--paper);
  border-top: 0;
  border-radius: 22px 22px 0 0;
  max-height: 90svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -22px 60px rgba(16, 16, 14, 0.34);
}
.sheet-grabber {
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: rgba(22, 22, 20, 0.22);
  margin: 10px auto 2px;
  flex: none;
}
.sheet-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px 12px;
  background: var(--paper);
  border-bottom: 1px solid rgba(22, 22, 20, 0.1);
}
.sheet-head strong {
  font: 700 15px/1.25 var(--font-sans);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.sheet-close-btn {
  min-height: 40px;
  min-width: 64px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--obsidian);
  color: var(--paper);
  font: 700 13px/1 var(--font-sans);
  flex: none;
  transition: transform 0.12s var(--ease-quart);
}
.sheet-close-btn:active { transform: scale(0.95); }
.sheet-body {
  padding: 16px 18px max(28px, env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 16px;
  -webkit-overflow-scrolling: touch;
}
.sheet-body .slide-col-right,
.sheet-body .comeback-strip {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (COMPACT DESKTOP <= 1240px, TABLET <= 1080px, MOBILE <= 860px)
   ========================================================================== */
@media (max-width: 1240px) {
  .deck-header { padding: 5px 8px; }
  .deck-header-row { gap: 6px; }
  .deck-owner-pill { padding: 5px 8px; gap: 6px; font-size: 11.5px; }
  .deck-tab, .journey-step { padding: 0 8px; font-size: 11.5px; }
  .btn-text-link { padding: 0 6px; font-size: 12px; }
}

@media (max-width: 1080px) {
  .deck-header-row { gap: 8px; }
  .slide-two-exhibits { grid-template-columns: 1fr; }
  .deck-stage-layout { grid-template-columns: minmax(0, 1fr); }
  .deck-floating-sidebar { display: none; }
  .deck-filmstrip { display: flex; }
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: 104px;
    scroll-padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
  .topbar { height: 48px; padding: 0 14px; }
  .brand-name { font-size: 14.5px; }
  .topbar-sound { width: 40px; min-width: 40px; height: 40px; padding: 0; }
  .topbar-cta { min-height: 40px; padding: 0 11px; font-size: 12px; }

  .hero-inner { padding: 20px 16px 34px; }
  .hero-actions-row .btn-signal { flex: 1 1 auto; }
  .hero-wtd-desk,
  .quiz-desk,
  .manifesto-inner,
  .compare-grid,
  .turnaround-strip,
  .own-calc-kpis,
  .slide-split,
  .bp-metrics-grid,
  .q-grid,
  .wtd-keys,
  .rhw-two-col,
  .rhw-rates,
  .gates-grid,
  .bucket-pipes {
    grid-template-columns: minmax(0, 1fr);
  }
  .model-strip {
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
  }
  .model-strip > div { border-right: 0; padding: 2px 0; }
  .bp-metric-box { border-right: 0; padding: 6px 0; border-bottom: 1px solid var(--line); }
  .bp-metric-box:last-child { border-bottom: 0; }

  /* 2-COLUMN REAL VISUAL THUMBNAIL GRID ON MOBILE */
  .deck-sorter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .grid-thumb-caption { padding: 7px 8px 8px; }
  .grid-thumb-caption h4 { font-size: 12px; }

  /* ULTRA-COMPACT LIST VIEW ON MOBILE */
  .list-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    padding: 9px 11px;
    gap: 8px;
  }
  .list-row-type { display: none; }
  .list-row-title { font-size: 13px; }

  .manifesto-band { padding: 48px 16px; }
  .pricing-band { padding: 48px 16px; }

  /* COLLAPSE 335PX MOBILE CHECKUP RECEIPT INTO 48PX EXPANDABLE STRIP */
  .view-quiz { padding: 10px 14px 44px; }
  .qp-saved-inline { display: none; }
  .mobile-tape-toggle { display: flex; min-height: 44px; margin-bottom: 10px; }
  .quiz-receipt-col { display: none; margin-bottom: 12px; }
  .quiz-receipt-col.is-expanded { display: block; }
  .quiz-desk { margin-top: 0; gap: 10px; }
  .wtd-pad { padding: 14px 14px; }
  .wtd-keys { gap: 7px; }
  .wtd-key {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 9px 12px;
    text-align: left;
  }
  .wtd-key code {
    flex: none;
    min-width: 24px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin: 0;
  }
  .wtd-key span {
    font-size: 13.5px;
    line-height: 1.25;
  }
  .comeback-strip { grid-template-columns: 1fr; gap: 7px; }
  .comeback-row { grid-template-columns: 1fr; gap: 2px; }
  .comeback-row:nth-child(2) { padding-top: 7px; border-top: 1px solid var(--line); }
  .kbd-hint-only { display: none; }

  /* NATIVE FULL-BLEED APP SHELL FOR SLIDE DECK (ZERO DOUBLE HEADERS, ZERO BOXED GUTTERS) */
  body[data-view="book"] {
    background: var(--paper);
  }
  body[data-view="book"].is-pivot-slide {
    background: var(--obsidian);
  }
  body[data-view="book"] .topbar {
    display: none !important;
  }

  .view-book {
    background: var(--paper);
    min-height: 100svh;
    padding: 0 0 calc(108px + env(safe-area-inset-bottom, 0px));
  }
  body.is-pivot-slide .view-book {
    background: var(--obsidian);
  }
  .deck-shell {
    gap: 0;
  }

  .mobile-app-chrome {
    display: block;
    position: sticky;
    top: 0;
    z-index: 44;
    padding-top: max(6px, env(safe-area-inset-top, 0px));
    background: rgba(253, 251, 245, 0.9);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid rgba(22, 22, 20, 0.08);
    view-transition-name: wtd-mobile-chrome;
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }
  body.is-pivot-slide .mobile-app-chrome {
    background: rgba(20, 20, 18, 0.9);
    border-bottom-color: rgba(253, 251, 245, 0.12);
  }

  .deck-story-bars {
    display: flex;
    gap: 3px;
    padding: 4px 14px 2px;
    background: transparent;
  }
  .story-seg {
    flex: 1;
    height: 2.5px;
    border-radius: 999px;
    background: rgba(22, 22, 20, 0.14);
    transition: background-color 0.18s ease;
  }
  body.is-pivot-slide .story-seg {
    background: rgba(253, 251, 245, 0.22);
  }
  .story-seg.is-done { background: var(--signal); }
  .story-seg.is-active { background: var(--ink); }
  body.is-pivot-slide .story-seg.is-done { background: var(--signal-on-dark); }
  body.is-pivot-slide .story-seg.is-active { background: var(--paper); }

  .deck-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    min-height: 46px;
    padding: 0 6px 2px;
    background: transparent;
    color: var(--ink);
  }
  body.is-pivot-slide .deck-mobile-bar {
    color: var(--paper);
  }
  .dmb-icon-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    transition: background-color 0.14s ease, transform 0.12s var(--ease-quart);
  }
  .dmb-icon-btn:active {
    background: rgba(22, 22, 20, 0.08);
    transform: scale(0.92);
  }
  body.is-pivot-slide .dmb-icon-btn:active {
    background: rgba(253, 251, 245, 0.14);
  }
  .dmb-menu-btn .dmb-icon-close { display: none; }
  .dmb-menu-btn.is-open .dmb-icon-dots { display: none; }
  .dmb-menu-btn.is-open .dmb-icon-close { display: block; }
  .dmb-menu-btn.is-open {
    background: rgba(22, 22, 20, 0.08);
  }
  body.is-pivot-slide .dmb-menu-btn.is-open {
    background: rgba(253, 251, 245, 0.14);
  }
  .dmb-identity {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 0 2px;
  }
  .dmb-identity strong {
    font: 700 14px/1.1 var(--font-sans);
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .dmb-identity span {
    font: 600 12px/1 var(--font-mono);
    font-variant-numeric: tabular-nums;
    color: var(--muted);
    white-space: nowrap;
    flex: none;
  }
  body.is-pivot-slide .dmb-identity span {
    color: #c7c4ba;
  }
  .dmb-actions {
    display: flex;
    align-items: center;
    gap: 0;
    flex: none;
  }

  /* FLOATING OVERFLOW POPOVER MENU (OPENED VIA ... BUTTON) */
  .deck-header {
    display: none;
    position: fixed;
    top: calc(62px + env(safe-area-inset-top, 0px));
    left: 12px;
    right: 12px;
    z-index: 46;
    border-radius: 16px;
    border: 1px solid rgba(22, 22, 20, 0.14);
    background: rgba(253, 251, 245, 0.97);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    box-shadow: 0 24px 56px rgba(16, 16, 14, 0.24);
    padding: 14px;
  }
  .deck-header.is-open { display: block; }
  .deck-header-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .deck-owner-pill { display: none; }
  .deck-tb-left, .deck-tb-right { width: 100%; justify-content: space-between; }
  .deck-view-tabs, .deck-journey-bar { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
  .deck-tb-right > button { flex: 1 1 auto; }

  .deck-stage-nav { display: none; }
  #bs-toc { display: none; }
  .slide-foot-nav { display: none; }

  /* CLEAN BREATHING ROOM FOR MOBILE GRID & LIST MODES */
  .deck-sorter-grid {
    padding: 14px 14px 18px;
  }
  .deck-list-view {
    margin: 12px 14px;
    border-radius: 12px;
  }

  /* FLOATING NATIVE OBSIDIAN GLASS PILL DOCK */
  .deck-mobile-rail {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 6px;
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom, 0px));
    max-width: 440px;
    margin: 0 auto;
    z-index: 45;
    padding: 6px;
    border-radius: 999px;
    background: rgba(20, 20, 18, 0.94);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(253, 251, 245, 0.14);
    box-shadow: 0 14px 36px rgba(14, 14, 12, 0.34);
    view-transition-name: wtd-mobile-dock;
  }
  body.is-pivot-slide .deck-mobile-rail {
    background: rgba(38, 38, 35, 0.94);
    border-color: rgba(253, 251, 245, 0.22);
  }
  .dock-nav-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(253, 251, 245, 0.11);
    color: var(--paper);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.12s var(--ease-quart), background-color 0.14s ease, opacity 0.14s ease;
  }
  .dock-nav-btn:active:not(:disabled) { transform: scale(0.92); }
  .dock-nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
  }
  .dock-nav-btn.is-primary {
    background: var(--signal);
    color: #ffffff;
  }
  .dock-nav-btn.is-primary.is-finish {
    background: var(--solvency);
  }
  .dock-nav-btn .dock-icon-done { display: none; }
  .dock-nav-btn.is-finish .dock-icon-next { display: none; }
  .dock-nav-btn.is-finish .dock-icon-done { display: block; }

  .dock-deeper-btn {
    min-height: 44px;
    min-width: 0;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: rgba(253, 251, 245, 0.09);
    color: var(--paper);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font: 600 13px/1.15 var(--font-sans);
    transition: transform 0.12s var(--ease-quart), background-color 0.14s ease;
  }
  .dock-deeper-btn:active {
    transform: scale(0.97);
    background: rgba(253, 251, 245, 0.16);
  }
  .dock-deeper-btn.is-unlock {
    background: rgba(214, 61, 0, 0.24);
    color: #ffe2d6;
  }
  .dock-deeper-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .dock-deeper-arrow {
    color: var(--signal-on-dark);
    font: 700 13px/1 var(--font-mono);
    flex: none;
  }

  /* FULL-BLEED EDITORIAL NATIVE SLIDE STAGE (#book-page SCOPED SO GRID THUMBNAILS STAY 16:10) */
  .slide-canvas { min-height: auto; padding: 14px 14px 10px; }
  #book-page {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--paper);
    padding: 14px 20px 36px;
    min-height: calc(100svh - 152px);
    justify-content: flex-start;
    gap: 14px;
    view-transition-name: wtd-slide-canvas;
  }
  #book-page.is-dark-pivot {
    background: var(--obsidian);
    border: 0;
    box-shadow: none;
    padding: 14px 20px 36px;
  }
  #book-page > .slide-folio {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(22, 22, 20, 0.08);
  }
  #book-page.is-dark-pivot > .slide-folio {
    border-bottom-color: rgba(253, 251, 245, 0.14);
  }
  #book-page .bp-title {
    font-size: clamp(29px, 7.6vw, 35px);
    line-height: 1.07;
    letter-spacing: -0.015em;
    margin-top: 2px;
  }
  #book-page .bp-lead {
    font-size: 15px;
    line-height: 1.56;
  }
  #book-page .verdict-hero-box {
    border-radius: 16px;
    padding: 18px;
    gap: 14px;
    box-shadow: 0 12px 30px rgba(20, 20, 18, 0.14);
  }
  #book-page .vh-age strong {
    font-size: 38px;
    line-height: 1.02;
  }
  #book-page .vh-age strong.is-long-verdict {
    font-size: clamp(24px, 6.4vw, 29px);
  }
  #book-page .vh-metrics {
    gap: 9px;
  }
  #book-page .vh-metrics > div {
    border-radius: 10px;
    padding: 10px 12px;
  }
  #book-page .model-strip {
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    padding: 12px 0;
    border-color: rgba(22, 22, 20, 0.1);
  }
  #book-page .bp-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
    padding-top: 12px;
  }
  #book-page .bp-metric-box {
    border-right: 0;
    border-bottom: 0;
    padding: 2px 0;
  }
  #book-page .bp-bullets li {
    padding: 11px 0;
    font-size: 14.5px;
    line-height: 1.52;
  }
  #book-page .bp-callout,
  #book-page .bp-memo {
    border-radius: 14px;
    padding: 14px 16px;
  }
  #book-page > .slide-split > .slide-col-right,
  #book-page > .comeback-strip,
  #book-page > .slide-foot,
  #book-page .mobile-deeper-btn {
    display: none;
  }

  .pricing-faq { grid-template-columns: 1fr; gap: 10px; }
  .mobile-story-hint {
    display: inline-flex;
    align-items: center;
    align-self: center;
    margin-top: auto;
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(22, 22, 20, 0.06);
    border: 1px solid rgba(22, 22, 20, 0.1);
    color: var(--muted);
    font: 600 11.5px/1.2 var(--font-mono);
    letter-spacing: 0.02em;
  }
  .wtd-toast-region {
    right: 14px;
    left: 14px;
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    max-width: none;
  }
  .pw-form { flex-direction: column; align-items: stretch; }
  .pw-form button { width: 100%; }
  .locked-overlay { margin-top: -72px; padding: 18px 16px; }
  .wf-row { grid-template-columns: 96px 1fr 52px; }

  dialog.wtd-dialog.is-share-dialog {
    margin: auto;
    max-width: calc(100vw - 16px);
    max-height: 92svh;
  }
  .share-modal-card {
    padding: 18px 14px 16px;
    max-height: 92svh;
  }
  .share-modal-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .share-preview-stage {
    padding: 12px;
    min-height: 0;
  }
  .share-preview-frame.is-story {
    height: min(38svh, 310px);
    width: auto;
    max-width: 100%;
  }
  .share-preview-frame.is-post {
    width: 100%;
    max-width: 100%;
  }
  .share-controls-pane .dialog-title { font-size: 24px; }

  /* RESTORE TRUE 16:10 DESKTOP LAYOUT INSIDE SCALED MOBILE GRID THUMBNAILS */
  .slide-canvas.grid-thumb-scaler { min-height: 675px; padding: 20px 28px 16px; }
  .slide-canvas.grid-thumb-scaler .slide-split { grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr); }
  .slide-canvas.grid-thumb-scaler .model-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .slide-canvas.grid-thumb-scaler .model-strip > div { border-right: 1px solid var(--line); padding: 2px 10px; }
  .slide-canvas.grid-thumb-scaler .model-strip > div:first-child { padding-left: 0; }
  .slide-canvas.grid-thumb-scaler .model-strip > div:last-child { border-right: 0; padding-right: 0; }
  .slide-canvas.grid-thumb-scaler .bp-metrics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .slide-canvas.grid-thumb-scaler .bp-metric-box { border-right: 1px solid var(--line); border-bottom: 0; padding: 2px 10px 2px 0; }
  .slide-canvas.grid-thumb-scaler .bp-metric-box:last-child { border-right: 0; padding-right: 0; }
  .slide-canvas.grid-thumb-scaler .comeback-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
  .slide-canvas.grid-thumb-scaler .comeback-row { grid-template-columns: 118px minmax(0, 1fr); gap: 10px; }
  .slide-canvas.grid-thumb-scaler .comeback-row:nth-child(-n+2) { padding-top: 0; border-top: 0; }
  .slide-canvas.grid-thumb-scaler .q-grid,
  .slide-canvas.grid-thumb-scaler .gates-grid,
  .slide-canvas.grid-thumb-scaler .turnaround-strip,
  .slide-canvas.grid-thumb-scaler .rhw-two-col { grid-template-columns: 1fr 1fr; }
  .slide-canvas.grid-thumb-scaler .rhw-rates,
  .slide-canvas.grid-thumb-scaler .own-calc-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .slide-canvas.grid-thumb-scaler .wf-row { grid-template-columns: 112px 1fr 62px; }
  .slide-canvas.grid-thumb-scaler .foot-nav-desktop { display: inline; }
  .slide-canvas.grid-thumb-scaler .foot-nav-mobile { display: none; }
}

/* ==========================================================================
   BOUND PRINT & PDF ENGINE (@page RUNNING NUMBERS + COVER + LIGHT SLIDE 10)
   ========================================================================== */
@page {
  size: A4 landscape;
  margin: 14mm 14mm 16mm;
  @bottom-left {
    content: "WORK TILL DIE // PRIVATE FINANCIAL SOLVENCY DOSSIER";
    font-family: 'JetBrains Mono', monospace;
    font-size: 8.5pt;
    color: #524f46;
  }
  @bottom-right {
    content: "Page " counter(page) " of " counter(pages);
    font-family: 'JetBrains Mono', monospace;
    font-size: 8.5pt;
    color: #524f46;
  }
}

@media print {
  body { background: #ffffff !important; color: #161614 !important; }
  .topbar,
  .mobile-app-chrome,
  .deck-header,
  .deck-mobile-bar,
  .deck-mobile-rail,
  .deck-floating-sidebar,
  .deck-journey-bar,
  .deck-stage-nav,
  .deck-filmstrip,
  .deck-sorter-grid,
  .deck-list-view,
  .precision-waitlist-card,
  .mobile-deeper-btn,
  .deck-story-bars,
  dialog,
  #book-page {
    display: none !important;
  }
  .view-book { display: block !important; background: #ffffff !important; padding: 0 !important; }
  #full-print-book { display: block !important; }

  .print-cover {
    break-after: page;
    page-break-after: always;
    padding: 10px 4px;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .print-cover-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 2px solid #161614;
  }
  .print-cover-crest img { max-height: 150px; width: 100%; object-fit: contain; }
  .print-cover-title { font-family: var(--font-serif); font-size: 32pt; line-height: 1.05; font-weight: 400; }
  .print-cover-sub { font-size: 10.5pt; color: #524f46; line-height: 1.5; }
  .print-cover-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  .print-cover-metrics > div {
    border: 1.5px solid #161614;
    border-radius: 6px;
    padding: 8px 10px;
  }
  .print-cover-metrics span { display: block; font-size: 8pt; font-weight: 700; color: #524f46; }
  .print-cover-metrics strong { display: block; font-family: var(--font-mono); font-size: 13pt; margin-top: 3px; }

  .print-toc h3 { font-size: 9pt; letter-spacing: 0.08em; color: #524f46; margin-bottom: 8px; }
  .print-toc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 18px;
  }
  .print-toc-row {
    display: grid;
    grid-template-columns: 26px 1fr auto;
    gap: 8px;
    font-size: 8.5pt;
    padding: 3px 0;
    border-bottom: 0.5pt solid #d8d2c3;
  }
  .print-toc-num { font-family: var(--font-mono); font-weight: 700; color: #be3200; }
  .print-toc-phase { font-size: 7.5pt; color: #524f46; font-weight: 700; }

  .print-chapter {
    break-after: page;
    page-break-after: always;
    break-inside: avoid;
    background: #ffffff !important;
    color: #161614 !important;
    padding: 8px 0;
  }
  .print-chapter .verdict-hero-box,
  .print-chapter .bp-memo,
  .print-chapter .owner-pledge-box,
  .print-chapter .bucket-pipe.is-solvency,
  .print-chapter .gate-cell,
  .print-chapter .bs-networth-row td {
    background: #f3eee2 !important;
    color: #161614 !important;
    border: 1px solid #161614 !important;
  }
  .print-chapter .vh-metrics > div { background: #ffffff !important; border-color: #c2bba9 !important; }
  .print-chapter .vh-age small,
  .print-chapter .bp-memo-kicker,
  .print-chapter .gate-cell span { color: #be3200 !important; }
  .print-chapter .vh-age p,
  .print-chapter .vh-metrics span,
  .print-chapter .bucket-pipe.is-solvency p,
  .print-chapter .owner-pledge-box strong,
  .print-chapter .gate-cell strong { color: #161614 !important; }
  .print-chapter .turnaround-chip {
    background: #f3eee2 !important;
    border-color: #c2bba9 !important;
  }
  .print-chapter .turnaround-chip span { color: #8a5d1c !important; }
  .print-chapter .turnaround-chip strong { color: #161614 !important; }
}
