/* ============================================================
   Compliance Platform — Sales Deck v5
   CSS derived literally from Design/DESIGN.md tokens
   ============================================================ */

@font-face {
  font-family: 'Geist';
  src: url('fonts/Geist-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('fonts/Geist-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('fonts/Geist-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('fonts/GeistMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens (literal from DESIGN.md) ---------- */
:root {
  --background: #fbfdfe;
  --foreground: #10141a;
  --card: #fefeff;
  --primary: #233242;
  --primary-foreground: #fafbfc;
  --secondary: #f4f7fa;
  --muted: #f4f7fa;
  --muted-foreground: #677078;
  --accent: #f1f7fb;
  --destructive: #e40014;
  --border: #dce2e8;
  --ring: #7896af;

  /* Atmospheric layer */
  --surface-hero-glow-a: #3b82f624;
  --surface-hero-glow-b: #0ea5e91a;
  --auth-backdrop-glow-a: #3b82f61f;
  --auth-backdrop-glow-b: #0ea5e91a;
  --auth-backdrop-from: #fffffffa;
  --auth-backdrop-via: #f8fafcf5;
  --auth-backdrop-to: #f1f5f9eb;
  --surface-card-from: #fffffff5;
  --surface-card-to: #f3f7fcd6;
  --surface-panel-from: #fffffff6;
  --surface-panel-to: #f6f9fce0;

  /* Signal chip */
  --signal-chip-bg: #2563eb14;
  --signal-chip-border: #3b82f633;
  --signal-chip-foreground: #1e40af;

  /* Status accents */
  --teal-500: #00baa7;
  --teal-600: #009588;
  --teal-700: #00776e;
  --emerald-500: #00bb7f;
  --amber-500: #f99c00;
  --rose-500: #ff2357;

  /* Shadows */
  --shadow-card: 0 12px 32px rgba(15, 23, 42, 0.05);
  --shadow-elevated: 0 18px 45px rgba(15, 23, 42, 0.06);
  --shadow-hero: 0 24px 70px rgba(15, 23, 42, 0.12);

  --radius: 0.625rem;
}

/* ---------- Page sizing ---------- */
@page {
  size: 13.333in 7.5in;
  margin: 0;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  color: var(--foreground);
  font-feature-settings: "ss01";
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Slide canvas ---------- */
.slide {
  page-break-after: always;
  width: 13.333in;
  height: 7.5in;
  position: relative;
  overflow: hidden;
  padding: 0.6in 0.75in 0.5in 0.75in;
  background-color: var(--background);
  background-image:
    radial-gradient(circle at top left, var(--auth-backdrop-glow-a), transparent 24%),
    radial-gradient(circle at 82% 14%, var(--auth-backdrop-glow-b), transparent 20%),
    linear-gradient(180deg, var(--auth-backdrop-from), var(--auth-backdrop-via), var(--auth-backdrop-to));
}
.slide:last-child { page-break-after: auto; }

/* Page footer (chrome) */
.chrome {
  position: absolute;
  left: 0.75in;
  right: 0.75in;
  bottom: 0.3in;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9pt;
  color: var(--muted-foreground);
  letter-spacing: 0.05em;
}
.chrome .left { display: flex; align-items: center; gap: 8px; white-space: nowrap; flex-shrink: 0; }
.chrome .left .markdot {
  width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.chrome .left .markdot svg { width: 16px; height: 16px; }
.chrome .pageno { font-variant-numeric: tabular-nums; }

/* ---------- Typography ---------- */
.eyebrow {
  font-size: 9pt;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-500);
  display: inline-block;
}

h1.headline {
  font-size: 28pt;
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.10;
  color: var(--foreground);
  margin: 0 0 6px 0;
  max-width: 13in;
  text-wrap: balance;
}
h1.headline em { font-style: italic; color: var(--teal-700); font-weight: 500; }

.subhead {
  font-size: 11.5pt;
  font-weight: 400;
  color: var(--muted-foreground);
  line-height: 1.45;
  margin: 0 0 22px 0;
  max-width: 6.3in;
}

/* ---------- Two-column layout ---------- */
.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 0.5in;
  align-items: start;
}
.cols.lopsided-l { grid-template-columns: 5.7fr 6.3fr; }
.cols.lopsided-r { grid-template-columns: 6.3fr 5.7fr; }

/* ---------- Bullet list ---------- */
ul.bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
ul.bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 10.5pt;
  line-height: 1.45;
  color: var(--foreground);
}
ul.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  background: var(--teal-500);
  border-radius: 2px;
}
ul.bullets li strong {
  font-weight: 600;
  color: var(--foreground);
}

/* ---------- Cards ---------- */
.card {
  background-color: var(--card);
  background-image:
    radial-gradient(circle at top left, var(--surface-hero-glow-a), transparent 28%),
    linear-gradient(135deg, var(--surface-card-from), var(--surface-card-to));
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 18px 20px;
}
.card.dark {
  background: var(--primary);
  background-image: none;
  color: var(--primary-foreground);
  border-color: transparent;
}
.card.dark .card-eyebrow,
.card.dark .card-label { color: var(--teal-500); }

.card-eyebrow {
  font-size: 8.5pt;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 10px;
}
.card-title {
  font-size: 13pt;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px 0;
}
.card-body {
  font-size: 10pt;
  line-height: 1.5;
  color: var(--muted-foreground);
}
.card.dark .card-body { color: #cbd5e1; }

/* ---------- Image frame ---------- */
.frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-elevated);
  background: var(--card);
}
.frame.tall { aspect-ratio: 4 / 3; }
.frame.wide { aspect-ratio: 16 / 9; }
.frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
/* Crop variants to hide the older cabinet left-nav */
.frame.crop-left-nav img {
  object-position: 17% top;
  width: 120%;
  margin-left: -10%;
}
.frame.contain img {
  object-fit: contain;
  background: var(--card);
}

/* ---------- Pills / chips ---------- */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 9pt;
  font-weight: 500;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--foreground);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.pill.signal {
  background: var(--signal-chip-bg);
  border-color: var(--signal-chip-border);
  color: var(--signal-chip-foreground);
}
.pill.teal {
  background: #f0fdfa;
  border-color: rgba(0, 186, 167, 0.3);
  color: var(--teal-700);
}
.pill.dark {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

/* ---------- Table ---------- */
table.lists {
  width: 100%;
  border-collapse: collapse;
  font-size: 10pt;
}
table.lists th, table.lists td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
table.lists thead th {
  font-weight: 500;
  font-size: 8.5pt;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
}
table.lists tbody td:first-child { font-weight: 500; color: var(--foreground); }
table.lists tbody td:last-child { color: var(--muted-foreground); }
table.lists tbody tr:last-child td { border-bottom: none; }

/* ============================================================
   Slide-specific
   ============================================================ */

/* Slide 1: Cover */
.slide.cover {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0.75in 0.9in;
}
.slide.cover .mark {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--primary);
}
.slide.cover .mark svg { width: 26px; height: 26px; }
.slide.cover .mark .wordmark {
  font-size: 12pt;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--foreground);
  white-space: nowrap;
}
.slide.cover .stage-eyebrow {
  font-size: 9pt;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 26px;
  display: flex; align-items: center; gap: 8px;
}
.slide.cover .stage-eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal-500);
}
.slide.cover h1 {
  font-size: 64pt;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.98;
  color: var(--foreground);
  margin: 0 0 22px 0;
  max-width: 11in;
  text-wrap: balance;
}
.slide.cover .tagline {
  font-size: 18pt;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--muted-foreground);
  margin: 0 0 40px 0;
  max-width: 9in;
}
.slide.cover .pills { margin-bottom: 50px; }
.slide.cover .disclaimer {
  position: absolute;
  bottom: 0.45in;
  left: 0.9in;
  right: 0.9in;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 9pt;
  color: var(--muted-foreground);
}
.slide.cover .watermark {
  position: absolute;
  right: -1in;
  bottom: -1.3in;
  font-size: 230pt;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--foreground);
  opacity: 0.04;
  user-select: none;
  pointer-events: none;
}

/* Slide 2: audit-defense diagram */
.audit-flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.audit-flow .step {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--shadow-card);
}
.audit-flow .step.terminal {
  background: var(--primary);
  border-color: transparent;
  color: var(--primary-foreground);
}
.audit-flow .step .num {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: var(--accent);
  font-size: 10pt; font-weight: 600;
  color: var(--primary);
  flex-shrink: 0;
}
.audit-flow .step.terminal .num {
  background: rgba(255, 255, 255, 0.12);
  color: var(--teal-500);
}
.audit-flow .step .label { font-size: 11pt; font-weight: 600; margin-bottom: 2px; }
.audit-flow .step .desc { font-size: 9pt; color: var(--muted-foreground); line-height: 1.4; }
.audit-flow .step.terminal .desc { color: #cbd5e1; }
.audit-flow .connector {
  width: 2px; height: 14px; background: var(--teal-500);
  margin-left: 32px;
  opacity: 0.5;
}
.audit-flow .caption {
  margin-top: 14px;
  font-size: 9pt;
  color: var(--muted-foreground);
  line-height: 1.45;
  font-style: italic;
}

/* Slide 3: long-tail hierarchy */
.long-tail {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.long-tail .core {
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 14px;
  padding: 14px 24px;
  font-size: 12pt;
  font-weight: 600;
  box-shadow: var(--shadow-card);
  position: relative;
}
.long-tail .branch-line {
  width: 2px; height: 18px;
  background: var(--teal-500);
  opacity: 0.6;
}
.long-tail .branches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}
.long-tail .branch {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 10pt;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.03);
}
.long-tail .branch.featured {
  border-color: rgba(0, 186, 167, 0.35);
  background: #f0fdfa;
  color: var(--teal-700);
}
.long-tail .caption {
  margin-top: 8px;
  font-size: 9pt;
  color: var(--muted-foreground);
  line-height: 1.4;
  text-align: center;
  font-style: italic;
  max-width: 5in;
}

/* Slide 5 / 9: convergence diagrams */
.convergence {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}
.convergence .col-left, .convergence .col-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.convergence .node {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow-card);
}
.convergence .node .node-title {
  font-size: 11pt; font-weight: 600; margin-bottom: 2px;
}
.convergence .node .node-sub {
  font-size: 8.5pt; color: var(--muted-foreground);
  letter-spacing: 0.04em;
}
.convergence .hub {
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
  font-size: 11pt;
  font-weight: 600;
  box-shadow: var(--shadow-card);
}
.convergence .hub .hub-sub {
  font-size: 8.5pt; font-weight: 400; color: var(--teal-500);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-top: 4px;
}
.convergence .lines {
  position: absolute; inset: 0; pointer-events: none;
}
.convergence-wrap { position: relative; }
.convergence-caption {
  margin-top: 16px;
  font-size: 9pt; color: var(--muted-foreground);
  line-height: 1.4; font-style: italic;
}

/* Slide 8 ISO callout */
.iso-callout {
  margin-top: 14px;
  background: var(--card);
  background-image: linear-gradient(135deg, var(--surface-panel-from), var(--surface-panel-to));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}
.iso-callout .iso-tag {
  display: inline-flex;
  align-items: center;
  font-size: 8.5pt;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-700);
  background: #f0fdfa;
  border: 1px solid rgba(0, 186, 167, 0.3);
  border-radius: 6px;
  padding: 6px 10px;
  white-space: nowrap;
}
.iso-callout .iso-body {
  font-size: 9pt;
  line-height: 1.4;
  color: var(--foreground);
}
.iso-callout .iso-body strong { font-weight: 600; }

/* Slide 8 needs slightly denser bullets to fit ISO callout */
.slide.dense ul.bullets li { font-size: 9.5pt; line-height: 1.38; }
.slide.dense ul.bullets { gap: 9px; }
.slide.dense h1.headline { font-size: 24pt; }
.slide.dense .subhead { margin-bottom: 14px; font-size: 10.5pt; }

/* DE, FR, NL, UK, ET, LT all expand text vs English (~5-15%). Apply a gentle density
   bump across these slides so bullets and diagram steps fit cleanly. */
html[lang="de"] .slide ul.bullets li,
html[lang="fr"] .slide ul.bullets li,
html[lang="nl"] .slide ul.bullets li,
html[lang="uk"] .slide ul.bullets li,
html[lang="et"] .slide ul.bullets li,
html[lang="lt"] .slide ul.bullets li,
html[lang="ru"] .slide ul.bullets li,
html[lang="pl"] .slide ul.bullets li,
html[lang="es"] .slide ul.bullets li { font-size: 10pt; line-height: 1.40; }
html[lang="de"] .slide ul.bullets,
html[lang="fr"] .slide ul.bullets,
html[lang="nl"] .slide ul.bullets,
html[lang="uk"] .slide ul.bullets,
html[lang="et"] .slide ul.bullets,
html[lang="lt"] .slide ul.bullets,
html[lang="ru"] .slide ul.bullets,
html[lang="pl"] .slide ul.bullets,
html[lang="es"] .slide ul.bullets { gap: 10px; }
html[lang="de"] .audit-flow .step,
html[lang="fr"] .audit-flow .step,
html[lang="nl"] .audit-flow .step,
html[lang="uk"] .audit-flow .step,
html[lang="et"] .audit-flow .step,
html[lang="lt"] .audit-flow .step,
html[lang="ru"] .audit-flow .step,
html[lang="pl"] .audit-flow .step,
html[lang="es"] .audit-flow .step { padding: 12px 16px; }
html[lang="de"] .audit-flow .step .desc,
html[lang="fr"] .audit-flow .step .desc,
html[lang="nl"] .audit-flow .step .desc,
html[lang="uk"] .audit-flow .step .desc,
html[lang="et"] .audit-flow .step .desc,
html[lang="lt"] .audit-flow .step .desc,
html[lang="ru"] .audit-flow .step .desc,
html[lang="pl"] .audit-flow .step .desc,
html[lang="es"] .audit-flow .step .desc { font-size: 8.5pt; line-height: 1.35; }
html[lang="de"] .audit-flow .connector,
html[lang="fr"] .audit-flow .connector,
html[lang="nl"] .audit-flow .connector,
html[lang="uk"] .audit-flow .connector,
html[lang="et"] .audit-flow .connector,
html[lang="lt"] .audit-flow .connector,
html[lang="ru"] .audit-flow .connector,
html[lang="pl"] .audit-flow .connector,
html[lang="es"] .audit-flow .connector { height: 10px; }
html[lang="de"] .long-tail .branch,
html[lang="fr"] .long-tail .branch,
html[lang="nl"] .long-tail .branch,
html[lang="uk"] .long-tail .branch,
html[lang="et"] .long-tail .branch,
html[lang="lt"] .long-tail .branch,
html[lang="ru"] .long-tail .branch,
html[lang="pl"] .long-tail .branch,
html[lang="es"] .long-tail .branch { font-size: 9.5pt; padding: 8px 14px; }

/* Compact pill row */
.pillrow {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* CTA card on slide 10 */
.cta-card {
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 18px;
  padding: 28px 32px;
  box-shadow: var(--shadow-hero);
}
.cta-card .cta-eyebrow {
  font-size: 8.5pt;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-500);
  margin-bottom: 14px;
}
.cta-card .cta-email {
  font-family: 'Geist Mono', monospace;
  font-size: 18pt;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.cta-card .cta-note {
  font-size: 9pt;
  color: #cbd5e1;
  margin-top: 14px;
  line-height: 1.5;
}

/* Differentiator emphasis box on slide 8 */
.differentiator-line {
  margin-top: 12px;
  padding: 10px 14px;
  background: #fff1f2;
  border: 1px solid rgba(255, 35, 87, 0.25);
  border-radius: 10px;
  color: #9f1239;
  font-size: 9.5pt;
  font-weight: 500;
  text-align: center;
  font-style: italic;
}

/* Generic feature-card row (slide 4 alternative if needed) */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
.feature-row .feature {
  background: var(--card);
  background-image: linear-gradient(135deg, var(--surface-card-from), var(--surface-card-to));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
}
.feature .icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  display: inline-flex;
  align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.feature .icon svg { width: 18px; height: 18px; }
.feature .feature-title { font-size: 11pt; font-weight: 600; margin-bottom: 4px; }
.feature .feature-body { font-size: 9pt; color: var(--muted-foreground); line-height: 1.4; }

/* ============================================================
   SCREEN MODE — single-slide presentation on Vercel
   Single-slide behaviour is scoped to body.deck-mode, a class
   added by script.js on init. Without the controller (e.g.
   opening deck.html directly in a browser) the slides simply
   render as a scrollable page — no blank screen. The PDF build
   ignores @media screen entirely, so print output is unchanged.
   ============================================================ */
@media screen {
  /* ----- Plain preview (no controller): scrollable page ----- */
  body:not(.deck-mode) .slide {
    margin: 0 auto 24px auto;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  }

  /* ----- Controller present: single-slide presentation ----- */
  html:has(body.deck-mode), body.deck-mode {
    height: 100%;
    overflow: hidden;
    margin: 0;
    background: var(--background);
    background-image:
      radial-gradient(circle at top left, var(--auth-backdrop-glow-a), transparent 24%),
      radial-gradient(circle at 82% 14%, var(--auth-backdrop-glow-b), transparent 20%),
      linear-gradient(180deg, var(--auth-backdrop-from), var(--auth-backdrop-via), var(--auth-backdrop-to));
    background-attachment: fixed;
  }
  body.deck-mode { position: relative; }

  body.deck-mode .slide {
    position: absolute;
    top: 50%; left: 50%;
    width: 1280px; height: 720px;
    margin: 0;
    transform: translate(-50%, -50%) scale(var(--slide-scale, 1));
    transform-origin: center center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease;
    page-break-after: auto;
    padding: 58px 72px 48px 72px;
    box-shadow: none;
  }
  body.deck-mode .slide.cover { padding: 72px 86px; }
  body.deck-mode .slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* ---------- Nav chrome ---------- */
  .deck-chrome {
    position: fixed;
    z-index: 100;
    font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  }
  .deck-nav {
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 8px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.10);
  }
  .deck-nav button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--foreground);
    font-family: inherit;
    font-size: 10pt;
    font-weight: 500;
    letter-spacing: -0.005em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.12s ease, color 0.12s ease;
  }
  .deck-nav button:hover { background: var(--accent); }
  .deck-nav button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: transparent;
  }
  .deck-nav button svg { width: 14px; height: 14px; }

  .deck-counter {
    font-variant-numeric: tabular-nums;
    font-size: 10pt;
    font-weight: 500;
    color: var(--muted-foreground);
    padding: 0 12px;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    margin: 0 2px;
  }

  .deck-top {
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
    align-items: center;
  }
  .deck-top a, .deck-top button {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 9pt;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted-foreground);
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.12s ease, background 0.12s ease;
  }
  .deck-top a:hover, .deck-top button:hover {
    color: var(--foreground);
    background: rgba(255, 255, 255, 1);
  }
  .deck-top svg { width: 12px; height: 12px; }
  .deck-top select.deck-lang {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 9pt;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted-foreground);
    cursor: pointer;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
  }
  .deck-top select.deck-lang:hover {
    color: var(--foreground);
    background: rgba(255, 255, 255, 1);
  }

  .deck-help {
    bottom: 18px;
    right: 16px;
    font-size: 9pt;
    color: var(--muted-foreground);
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 12px;
    font-variant-numeric: tabular-nums;
    pointer-events: none;
  }
  @media (max-width: 720px) {
    .deck-help { display: none; }
    .deck-top a, .deck-top button { padding: 6px 10px; }
    .deck-nav button { padding: 7px 9px; }
    .deck-counter { padding: 0 8px; }
  }

  :fullscreen .deck-chrome { opacity: 0; pointer-events: none; }
  :fullscreen .deck-chrome:hover,
  :fullscreen .deck-chrome.show { opacity: 1; pointer-events: auto; }
  :fullscreen .deck-nav,
  :fullscreen .deck-top,
  :fullscreen .deck-help { transition: opacity 0.2s ease; }
}

@media print {
  .deck-chrome, .deck-nav, .deck-top, .deck-help, .deck-noprint { display: none !important; }
}
