:root {
  --bg: #07070b;
  --bg-soft: #0e0e14;
  --panel: #12121a;
  --border: #232332;
  --text: #f2f2f7;
  --text-dim: #8b8ba3;
  --accent: #22d3ee;
  --accent-2: #a78bfa;
  --accent-soft: rgba(34, 211, 238, 0.12);
  --radius: 14px;
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Manrope", system-ui, sans-serif;
  /* Tipografia do deck — só .slide consome; o chrome do app usa --font */
  --slide-font: "Manrope", "Segoe UI", system-ui, sans-serif;
  --slide-font-display: "Space Grotesk", "Manrope", system-ui, sans-serif;
  --slide-w: 960px;
  --slide-h: 540px;
  --card-bg: #101018;
  --card-border: rgba(255, 255, 255, 0.07);
  --card-radius: 12px;
  --card-shadow: 0 24px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
  --decor-opacity: 0.12;
  /* Escala de ícones UI (svg.js → .ui-ico) */
  --icon-xs: 14px;
  --icon-sm: 16px;
  --icon-md: 18px;
  --icon-lg: 22px;
  --icon-xl: 36px;
}

.ui-ico {
  display: block;
  flex-shrink: 0;
  width: var(--icon-sm);
  height: var(--icon-sm);
}
.ui-ico.ico-xs { width: var(--icon-xs); height: var(--icon-xs); }
.ui-ico.ico-sm { width: var(--icon-sm); height: var(--icon-sm); }
.ui-ico.ico-md { width: var(--icon-md); height: var(--icon-md); }
.ui-ico.ico-lg { width: var(--icon-lg); height: var(--icon-lg); }
.ui-ico.ico-xl { width: var(--icon-xl); height: var(--icon-xl); }

/* —— App chrome por modo —— */
[data-mode="dark"] {
  --bg: #07070b;
  --bg-soft: #0e0e14;
  --panel: #12121a;
  --border: #232332;
  --text: #f4f4f8;
  --text-dim: #a8a8bc;
  --stage-bg: #050508;
  --stage-grid: rgba(255, 255, 255, 0.028);
  --topbar-bg: linear-gradient(180deg, var(--bg-soft), color-mix(in srgb, var(--bg-soft) 80%, #000));
  --float-bg: color-mix(in srgb, var(--bg-soft) 92%, #000);
  --float-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  --slide-shadow: 0 28px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
}
[data-mode="light"] {
  --bg: #f0f2f7;
  --bg-soft: #e6eaf2;
  --panel: #ffffff;
  --border: color-mix(in srgb, var(--accent) 12%, #cdd3e0);
  --text: #111118;
  --text-dim: #5c5c6e;
  --stage-bg: color-mix(in srgb, var(--accent) 7%, #e4e8f0);
  --stage-grid: color-mix(in srgb, var(--accent) 8%, rgba(0, 0, 0, 0.04));
  --topbar-bg: linear-gradient(180deg, #ffffff, color-mix(in srgb, var(--accent) 5%, #eef1f7));
  --float-bg: color-mix(in srgb, #ffffff 94%, var(--accent));
  --float-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 12%, rgba(0, 0, 0, 0.08));
  --slide-shadow: 0 22px 50px color-mix(in srgb, var(--accent) 10%, rgba(0, 0, 0, 0.1)), 0 0 0 1px color-mix(in srgb, var(--accent) 14%, rgba(0, 0, 0, 0.06));
}

/* —— 6 looks × modo (cor vem do usuário, não do look) —— */
[data-theme="premium"][data-mode="dark"] {
  --slide-bg: #12121c; --card-bg: #12121c;
  --card-border: rgba(255, 255, 255, 0.1); --card-radius: 16px;
  --slide-radius: 16px; --decor-opacity: 0.1;
}
[data-theme="premium"][data-mode="light"] {
  --slide-bg: linear-gradient(165deg, color-mix(in srgb, var(--accent) 10%, #f4f7fc) 0%, #ffffff 55%, color-mix(in srgb, var(--accent-2) 8%, #f7f5ff) 100%);
  --card-bg: color-mix(in srgb, var(--accent) 4%, #ffffff);
  --card-border: color-mix(in srgb, var(--accent) 22%, #dfe3ee);
  --card-radius: 16px;
  --slide-radius: 16px; --decor-opacity: 0.16;
}
[data-theme="glass"][data-mode="dark"] {
  --slide-bg: linear-gradient(160deg, #12182a 0%, #0a0a12 100%);
  --card-bg: rgba(18, 22, 40, 0.72); --card-border: rgba(255, 255, 255, 0.14);
  --card-radius: 24px; --slide-radius: 24px; --decor-opacity: 0.4;
}
[data-theme="glass"][data-mode="light"] {
  --slide-bg: linear-gradient(155deg, color-mix(in srgb, var(--accent) 16%, #e8f0ff) 0%, #f8fafc 45%, color-mix(in srgb, var(--accent-2) 14%, #eef2ff) 100%);
  --card-bg: color-mix(in srgb, var(--accent) 8%, rgba(255, 255, 255, 0.78));
  --card-border: color-mix(in srgb, var(--accent) 28%, rgba(99, 102, 241, 0.2));
  --card-radius: 24px; --slide-radius: 24px; --decor-opacity: 0.42;
}
[data-theme="bento"][data-mode="dark"] {
  --slide-bg: #0c1018;
  --card-bg: #141925;
  --card-border: rgba(255, 255, 255, 0.08);
  --card-radius: 14px;
  --slide-radius: 14px;
  --decor-opacity: 0.05;
  --bento-gap: 11px;
  --bento-radius: 14px;
  --bento-surface: #141925;
  --bento-surface-raised: #1a2233;
  --bento-surface-accent: color-mix(in srgb, var(--accent) 14%, #141925);
  --bento-border: rgba(255, 255, 255, 0.09);
  --bento-border-accent: color-mix(in srgb, var(--accent) 45%, transparent);
}
[data-theme="bento"][data-mode="light"] {
  --slide-bg: linear-gradient(160deg, color-mix(in srgb, var(--accent) 9%, #eef3f9) 0%, #f7f9fc 100%);
  --card-bg: #ffffff;
  --card-border: color-mix(in srgb, var(--accent) 18%, rgba(15, 23, 42, 0.1));
  --card-radius: 14px;
  --slide-radius: 14px;
  --decor-opacity: 0.08;
  --bento-gap: 11px;
  --bento-radius: 14px;
  --bento-surface: #ffffff;
  --bento-surface-raised: color-mix(in srgb, var(--accent) 5%, #ffffff);
  --bento-surface-accent: color-mix(in srgb, var(--accent) 14%, #ffffff);
  --bento-border: color-mix(in srgb, var(--accent) 16%, rgba(15, 23, 42, 0.1));
  --bento-border-accent: color-mix(in srgb, var(--accent) 45%, transparent);
}
[data-theme="forest"][data-mode="dark"] {
  --slide-bg: #0e1410; --card-bg: #121a14;
  --card-border: rgba(34, 197, 94, 0.18); --card-radius: 14px;
  --slide-radius: 14px; --decor-opacity: 0.16;
}
[data-theme="forest"][data-mode="light"] {
  --slide-bg: linear-gradient(165deg, #e8f5ec 0%, #f3faf5 50%, #eef6e8 100%);
  --card-bg: color-mix(in srgb, var(--accent) 5%, #ffffff);
  --card-border: color-mix(in srgb, var(--accent) 28%, #b7dfc4);
  --card-radius: 14px;
  --slide-radius: 14px; --decor-opacity: 0.2;
}
[data-theme="brutal"][data-mode="dark"] {
  --slide-bg: #111111; --card-bg: #1a1a1a;
  --card-border: #fafafa; --card-radius: 0; --slide-radius: 0;
  --brutal: 4px; --decor-opacity: 0.15;
}
[data-theme="brutal"][data-mode="light"] {
  --slide-bg: #f6e7c8;
  --card-bg: #fff4d6;
  --card-border: #111111; --card-radius: 0; --slide-radius: 0;
  --brutal: 4px; --decor-opacity: 0.16;
}
[data-theme="editorial"][data-mode="dark"] {
  --slide-bg: #1a1814; --card-bg: #211e18;
  --card-border: #3d3830; --card-radius: 6px;
  --slide-radius: 6px; --decor-opacity: 0.18;
}
[data-theme="editorial"][data-mode="light"] {
  --slide-bg: linear-gradient(165deg, #f3ebe0 0%, #faf6ef 55%, #efe6d8 100%);
  --card-bg: #fffbf4;
  --card-border: color-mix(in srgb, var(--accent) 22%, #d2c4b0);
  --card-radius: 6px;
  --slide-radius: 6px; --decor-opacity: 0.24;
}

/* Legado — thumbs / decks antigos (mapeados para looks no JS) */
[data-theme="dark-premium"], [data-theme="aurora"], [data-theme="sunset"],
[data-theme="mono"], [data-theme="rose"], [data-theme="ember"],
[data-theme="paper"], [data-theme="mist"], [data-theme="ocean"] {
  --slide-bg: #12121c; --card-bg: #12121c;
  --card-border: rgba(255, 255, 255, 0.1); --card-radius: 16px;
}
[data-theme="neo-brutal"], [data-theme="memphis"] {
  --slide-bg: #fdf6e3; --card-bg: #fdf6e3;
  --card-border: #111111; --brutal: 4px;
}

/* Texto legível em slides light (inclusive previews/thumbs fora do html) */
.slide[data-mode="light"],
[data-mode="light"] .slide {
  --text: #111118;
  --text-dim: #5c5c6e;
  color: var(--text);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  height: 100%;
}

/* ---------- Perfect scroll (scrollbars estilizadas) ---------- */
* { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: background 0.15s ease;
}
*::-webkit-scrollbar-thumb:hover { background: var(--accent); background-clip: padding-box; }

button {
  font-family: inherit;
  cursor: pointer;
}

/* ---------- App layout ---------- */
.app {
  --filmstrip-w: 240px;
  --panel-w: 320px;
  display: grid;
  grid-template-columns: var(--filmstrip-w) 1fr var(--panel-w);
  grid-template-rows: 56px 1fr;
  grid-template-areas:
    "topbar topbar topbar"
    "filmstrip stage panel";
  height: 100vh;
  position: relative;
}
.app.filmstrip-hidden .filmstrip {
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  padding: 0;
  border-right-width: 0;
}
.app.filmstrip-hidden .col-guide-film {
  display: none;
}

/* Painel recolhido (estilo Gamma — stage protagonista) */
.app.panel-collapsed {
  --panel-w: 0px;
}
.app.panel-collapsed .panel {
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  border: none;
}
.app.panel-collapsed .col-guide-panel {
  display: none;
}

.topbar {
  grid-area: topbar;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  background: var(--topbar-bg);
  backdrop-filter: blur(6px);
}
.tb-brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.tb-back {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.tb-back .ui-ico { width: var(--icon-xs); height: var(--icon-xs); }
.tb-back:hover {
  color: var(--accent);
  border-color: var(--border);
  background: var(--panel);
}
.tb-logo {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px var(--accent-soft);
  color: #041018;
}
.tb-logo svg { width: 18px; height: 18px; }
.topbar .brand {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.6px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tb-title {
  max-width: 280px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 13px; color: var(--text-dim);
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 20px;
}
.topbar .spacer { flex: 1; }

.tb-group { display: flex; gap: 4px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px;
  background: transparent; border: 1px solid transparent;
  color: var(--text-dim); font-size: 17px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.icon-btn .ui-ico { width: var(--icon-md); height: var(--icon-md); }
.icon-btn:hover { background: var(--panel); color: var(--text); border-color: var(--border); }
.icon-btn:disabled { opacity: 0.3; cursor: default; }
.icon-btn:disabled:hover { background: transparent; border-color: transparent; color: var(--text-dim); }

.tb-sep { width: 1px; height: 24px; background: var(--border); }

.tb-theme-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; padding: 6px 12px 6px 8px;
  color: var(--text-dim); font-size: 12px;
  font-family: inherit; cursor: pointer;
  transition: border-color 0.12s ease, color 0.12s ease, background 0.12s ease;
}
.tb-theme-chip:hover { color: var(--text); border-color: var(--accent); background: var(--bg-soft); }
.tb-theme-chip .tb-theme-ico {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent); line-height: 0;
}
.tb-theme-chip .tb-theme-ico .ui-ico { width: var(--icon-sm); height: var(--icon-sm); }
#tbThemeLabel { color: var(--text); font-size: 13px; font-weight: 500; }

.tb-theme {
  display: flex; align-items: center; gap: 6px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; padding: 4px 10px 4px 8px;
  color: var(--text-dim); font-size: 12px;
}
.tb-theme select {
  background: transparent; border: none; color: var(--text);
  font-family: inherit; font-size: 13px; cursor: pointer; outline: none;
  padding-right: 2px;
}
.tb-theme select option { background: var(--panel); color: var(--text); }

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: none; padding: 9px 16px; border-radius: 11px;
  font-weight: 600; font-size: 14px; cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.btn .ico {
  width: var(--icon-sm); height: var(--icon-sm);
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 0;
}
.btn .ico .ui-ico { width: 100%; height: 100%; }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 6px 18px var(--accent-soft);
}
.btn.primary:hover { filter: brightness(1.07); transform: translateY(-1px); box-shadow: 0 10px 24px var(--accent-soft); }
.btn.primary:active { transform: translateY(0); }
.btn.ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.btn.ghost:hover { color: var(--text); border-color: var(--accent); background: var(--panel); }
.btn.ghost:disabled, .btn:disabled { opacity: 0.35; cursor: default; }
.btn.ghost:disabled:hover { color: var(--text-dim); border-color: var(--border); background: transparent; }

/* ---------- Slash menu ---------- */
.slash {
  position: fixed;
  z-index: 200;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  min-width: 200px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  animation: popIn 0.18s cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: top left;
}
.slash-item {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}
.slash-item.sel, .slash-item:hover {
  background: var(--accent-soft);
  color: #fff;
}

/* ---------- Context menu ---------- */
.ctx-menu {
  position: fixed;
  z-index: 260;
  min-width: 220px;
  max-width: min(280px, calc(100vw - 16px));
  padding: 6px;
  border-radius: 12px;
  background: var(--float-bg);
  border: 1px solid var(--border);
  box-shadow: var(--float-shadow, 0 20px 50px rgba(0, 0, 0, 0.45));
  backdrop-filter: blur(12px);
  animation: popIn 0.14s cubic-bezier(0.22, 1, 0.36, 1) both;
  transform-origin: top left;
}
.ctx-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.ctx-item:hover:not(:disabled),
.ctx-item:focus-visible:not(:disabled) {
  background: var(--accent-soft);
  color: var(--text);
  outline: none;
}
.ctx-item:disabled {
  opacity: 0.38;
  cursor: default;
}
.ctx-item.is-danger:hover:not(:disabled),
.ctx-item.is-danger:focus-visible:not(:disabled) {
  background: color-mix(in srgb, #f87171 16%, transparent);
  color: #f87171;
}
.ctx-label { flex: 1; min-width: 0; }
.ctx-kbd {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--text-dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.02em;
}
.ctx-item:disabled .ctx-kbd { opacity: 0.7; }
.ctx-sep {
  height: 1px;
  margin: 5px 6px;
  background: var(--border);
}

/* ---------- Filmstrip ---------- */
.filmstrip {
  --motion-fast: 180ms;
  --motion-med: 280ms;
  --motion-slow: 360ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  grid-area: filmstrip;
  border-right: none;
  background: var(--bg-soft);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px;
  min-width: 0;
  transition: opacity var(--motion-fast) var(--ease-soft);
  display: flex;
  flex-direction: column;
}
.film-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 2px 10px;
}
.filmstrip h4 {
  margin: 0;
  flex: 1;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
}
.film-add {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  display: grid;
  place-items: center;
  transition:
    background var(--motion-fast) var(--ease-out),
    color var(--motion-fast) var(--ease-out),
    border-color var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out);
}
.film-add .ui-ico { width: var(--icon-sm); height: var(--icon-sm); }
.film-add:hover {
  background: var(--accent);
  color: #041018;
  border-color: transparent;
  transform: scale(1.06);
}
.film-add:active { transform: scale(0.96); }
.filmstrip .list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 2px 8px;
}
.filmstrip .list.is-flipping .thumb {
  pointer-events: none;
}
.thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  padding: 0;
  font-size: 9px;
  color: var(--text-dim);
  overflow: visible;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transform-origin: center center;
  transition:
    border-color var(--motion-fast) var(--ease-out),
    box-shadow var(--motion-med) var(--ease-out),
    transform var(--motion-fast) var(--ease-out),
    opacity var(--motion-med) var(--ease-out),
    height var(--motion-slow) var(--ease-out),
    margin-bottom var(--motion-slow) var(--ease-out),
    filter var(--motion-fast) var(--ease-out);
}
.thumb *,
.thumb *::before,
.thumb *::after {
  user-select: none !important;
  -webkit-user-select: none !important;
}
.thumb .thumb-preview,
.thumb .lg-preview,
.thumb .lg-preview-scale,
.thumb .slide {
  pointer-events: none;
}
.thumb.thumb-locked {
  cursor: pointer;
  touch-action: manipulation;
}
.thumb.is-dragging {
  opacity: 0.92;
  cursor: grabbing;
  z-index: 8;
  transform: scale(1.04) rotate(1.2deg);
  border-color: var(--accent);
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--accent) 70%, transparent),
    0 18px 40px rgba(0, 0, 0, 0.45),
    0 8px 18px color-mix(in srgb, var(--accent) 28%, transparent);
  filter: saturate(1.05);
}
.thumb.is-drag-origin::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, var(--border));
  background:
    repeating-linear-gradient(
      -45deg,
      color-mix(in srgb, var(--accent) 8%, transparent),
      color-mix(in srgb, var(--accent) 8%, transparent) 4px,
      transparent 4px,
      transparent 9px
    );
  pointer-events: none;
  z-index: 2;
}
.thumb.is-dragging .thumb-preview,
.thumb.is-dragging .lg-preview {
  opacity: 0.35;
  filter: grayscale(0.15);
}
body.is-reordering-slides {
  cursor: grabbing !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}
body.is-reordering-slides * {
  cursor: grabbing !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}
.filmstrip .list.is-reordering {
  cursor: grabbing;
  user-select: none;
}
.filmstrip .list.is-reordering .thumb:not(.is-dragging) {
  transition:
    border-color var(--motion-fast) var(--ease-out),
    box-shadow var(--motion-med) var(--ease-out),
    transform var(--motion-fast) var(--ease-out);
}
.thumb.drop-before,
.thumb.drop-after {
  box-shadow: none;
}
.thumb.drop-before::before,
.thumb.drop-after::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 55%, transparent);
  pointer-events: none;
  z-index: 6;
}
.thumb.drop-before::before { top: -7px; }
.thumb.drop-after::before { bottom: -7px; }
.thumb:hover:not(.active):not(.thumb-exit):not(.is-dragging) {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 14%, transparent);
}
.thumb:hover:not(.active):not(.thumb-exit):not(.is-dragging) .thumb-preview {
  transform: scale(1.045);
}
.thumb.active {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    0 8px 26px color-mix(in srgb, var(--accent) 18%, transparent);
}
.thumb.active .t-num {
  background: color-mix(in srgb, var(--accent) 88%, #0a0a12);
  border-color: color-mix(in srgb, #fff 18%, transparent);
}
.thumb.thumb-enter-from {
  opacity: 0;
  transform: translateY(10px) scale(0.94);
}
.thumb.thumb-exit {
  pointer-events: none;
  flex-shrink: 0;
}
.thumb.thumb-exit-active {
  opacity: 0;
  height: 0 !important;
  margin-bottom: 0 !important;
  border-width: 0;
  box-shadow: none;
  transform: scale(0.92);
  filter: blur(2px);
}
.thumb.thumb-exit-x {
  transition:
    border-color var(--motion-fast) var(--ease-out),
    box-shadow var(--motion-med) var(--ease-out),
    transform var(--motion-fast) var(--ease-out),
    opacity var(--motion-med) var(--ease-out),
    width var(--motion-slow) var(--ease-out),
    min-width var(--motion-slow) var(--ease-out),
    margin var(--motion-slow) var(--ease-out),
    filter var(--motion-fast) var(--ease-out);
}
.thumb.thumb-exit-x.thumb-exit-active {
  width: 0 !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
.thumb.thumb-select {
  animation: thumbSelect 0.32s var(--ease-out);
}
@keyframes thumbSelect {
  0% { transform: scale(1); }
  45% { transform: scale(0.975); }
  100% { transform: scale(1); }
}
.thumb .t-num {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 3;
  color: #fff;
  font-weight: 700;
  font-size: 10px;
  font-family: var(--font-display);
  background: color-mix(in srgb, #0a0a12 72%, transparent);
  border: 1px solid color-mix(in srgb, #fff 12%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 2px 6px;
  border-radius: 6px;
  line-height: 1.2;
  pointer-events: none;
  transition:
    background var(--motion-fast) var(--ease-out),
    border-color var(--motion-fast) var(--ease-out);
}
.thumb .thumb-preview,
.thumb .lg-preview {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: none;
  border-radius: 9px;
  overflow: hidden;
  /* Usa tokens do próprio preview (inline), não os do chrome do app */
  background: var(--slide-bg, #111);
  color: var(--text, inherit);
  transition: transform var(--motion-fast) var(--ease-soft);
  transform-origin: center center;
  will-change: transform;
  pointer-events: none;
  isolation: isolate;
}
.thumb .t-title,
.thumb .row { display: none; }

/* ---------- Stage ---------- */
.stage {
  grid-area: stage;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 36px 28px 56px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  position: relative;
  background:
    radial-gradient(ellipse 80% 55% at 72% -5%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 58%),
    radial-gradient(ellipse 50% 40% at 8% 100%, color-mix(in srgb, var(--accent-2, var(--accent)) 12%, transparent), transparent 55%),
    var(--stage-bg, var(--bg));
}
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(var(--stage-grid, rgba(255,255,255,0.028)) 1px, transparent 1px),
    linear-gradient(90deg, var(--stage-grid, rgba(255,255,255,0.028)) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 10%, transparent 70%);
}

/* Slide fixo 16:9 (padrão de apresentação) */
.slide {
  /* Tema tipográfico fica isolado no card — não vaza para topbar/painel */
  --font: var(--slide-font);
  --font-display: var(--slide-font-display);
  --pad: 52px;
  --safe-bottom: 52px;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px;
  width: var(--slide-w);
  height: var(--slide-h);
  max-width: 100%;
  background: var(--slide-bg, var(--card-bg));
  border: var(--slide-border, 1px solid var(--card-border, var(--border)));
  border-radius: var(--slide-radius, 16px);
  padding: var(--pad);
  padding-bottom: calc(var(--pad) + 8px);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--slide-shadow, var(--slide-shadow-fallback, 0 22px 50px rgba(0,0,0,0.45)));
  overflow: hidden;
  animation: rise 0.4s ease both;
  font-family: var(--font);
  color: var(--text);
}
/* Editor / miniaturas: sem rise a cada refresh (evita piscar ao digitar) */
.stage .slide,
.thumb .slide,
.lg-preview .slide,
.tp-scale .slide {
  animation: none;
}
.stage .slide.anim-enter {
  animation: animEnter 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.slide-body {
  flex: 1;
  min-height: 0;
  padding-bottom: var(--safe-bottom);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  position: relative;
  z-index: 2;
}
.slide-body.hero {
  justify-content: center;
  align-items: stretch;
  padding-top: var(--s3);
  padding-bottom: calc(var(--safe-bottom) + var(--s2));
}
.slide-body.hero.center { align-items: center; text-align: center; }
.slide-body.top { justify-content: flex-start; }

.slide::before { display: none; }

/* Rodapé: faixa absoluta nos cantos — fora do fluxo do conteúdo */
.slide > .slide-footer {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 36px;
  z-index: 4;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 0;
  pointer-events: none;
  font-size: 11px;
  color: color-mix(in srgb, var(--text) 55%, var(--text-dim));
  font-family: var(--font-display);
  letter-spacing: 1px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1;
}
.slide[data-theme="premium"][data-mode="dark"] > .slide-footer,
.slide[data-theme="dark-premium"] > .slide-footer {
  color: #9a9aab;
}
.slide > .slide-footer .frame-brand {
  position: static;
  letter-spacing: 1.5px;
}
.slide > .slide-footer .frame-num {
  position: static;
  letter-spacing: 0.5px;
  font-weight: 500;
  text-transform: none;
  margin-left: auto;
}
.slide > .frame-brand,
.slide > .frame-num { display: none; }

.slide .bento-head { margin-bottom: 0; }
.slide .bento-head .sub { margin-top: var(--s1); }

/* Title tipografia mais expressiva */
.slide-body.layout-title.hero h1 {
  font-size: clamp(42px, 5.2vw, 64px);
  letter-spacing: -0.05em;
  line-height: 0.98;
  max-width: 12ch;
}
.slide-body.layout-title .lede {
  font-size: 16px;
  max-width: 38ch;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ---------- Stage floats (Gamma-like) ---------- */
.stage-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 1;
}
.stage-frame .slide { margin: 0; }
.float-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--float-bg);
  border: 1px solid var(--border);
  box-shadow: var(--float-shadow);
  backdrop-filter: blur(10px);
}
.float-bar-tl {
  position: absolute;
  top: -6px;
  left: 8px;
  z-index: 6;
  transform: translateY(-100%);
}
.float-bar-tr {
  position: absolute;
  top: -6px;
  right: 8px;
  z-index: 6;
  transform: translateY(-100%);
}
.float-bar-bot {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translate(-50%, 100%);
  z-index: 6;
}
.float-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-dim);
  font-size: 15px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-family: inherit;
  line-height: 1;
}
.float-btn .ui-ico { width: var(--icon-sm); height: var(--icon-sm); }
.float-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.float-btn.is-accent {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
}
.float-btn:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}
.float-btn.float-btn-danger:hover:not(:disabled) {
  color: #f87171;
  background: color-mix(in srgb, #f87171 14%, transparent);
}
.float-btn.is-accent:hover {
  background: var(--accent);
  color: #041018;
}

@media (max-width: 900px) {
  .float-bar-tl,
  .float-bar-tr,
  .float-bar-bot {
    position: static;
    transform: none;
  }
  .stage-frame {
    gap: 10px;
    padding-bottom: 8px;
  }
  .float-bar-tl { order: -1; align-self: flex-start; }
  .float-bar-tr { align-self: flex-end; margin-top: -44px; }
  .float-bar-bot { order: 2; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes animEnter {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes animStagger {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fadeBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes segPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
@keyframes thumbPulse {
  0% { transform: translateY(0); }
  40% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}
@keyframes themePulse {
  0% { filter: brightness(1); }
  40% { filter: brightness(1.08); }
  100% { filter: brightness(1); }
}
@keyframes presSlideIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.slide.anim-enter {
  animation: animEnter 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.slide .anim-stagger {
  opacity: 0;
  animation: animStagger 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--stagger, 0ms);
}
.stage.theme-pulse .slide {
  animation: themePulse 0.45s ease;
}
.thumb.anim-select {
  animation: thumbSelect 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.seg-btn.anim-pop {
  animation: segPop 0.28s ease;
}

@media (prefers-reduced-motion: reduce) {
  .slide, .slide.anim-enter, .slide .anim-stagger,
  .stage.theme-pulse .slide, .thumb.anim-select, .thumb.thumb-select, .seg-btn.anim-pop,
  .slash, .ctx-menu, .layout-modal, .layout-modal-card,
  .pres-classic-stage .slide.pres-enter {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  /* present: --pres-scale precisa do transform */
  .pres-slide .slide,
  .pres-classic-stage .slide {
    transform: scale(var(--pres-scale, 1)) !important;
  }
  .thumb,
  .thumb .thumb-preview,
  .film-add {
    transition: none !important;
  }
  .thumb.thumb-enter-from,
  .thumb.thumb-exit-active {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.slide .eyebrow {
  color: var(--accent); font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: 2px; margin: 0;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
}
.slide .eyebrow::before {
  content: ""; width: 18px; height: 2px; border-radius: 1px; background: var(--accent);
}
.slide-body.center .eyebrow { justify-content: center; }
.slide-body.center .eyebrow::before { display: none; }

.slide h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 48px);
  line-height: var(--title-leading, 1.08);
  margin: 0;
  letter-spacing: var(--title-tracking, -1.4px);
  font-weight: var(--title-weight, 700);
  max-width: min(28ch, 100%);
  color: var(--title-color, var(--text));
}
.slide h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 32px);
  line-height: calc(var(--title-leading, 1.08) + 0.07);
  margin: 0;
  letter-spacing: calc(var(--title-tracking, -0.8px) * 0.6);
  font-weight: var(--title-weight, 700);
  max-width: min(32ch, 100%);
  color: var(--title-color, var(--text));
}
.slide .sub {
  color: var(--body-color, var(--text));
  font-size: 18px;
  line-height: 1.45;
  max-width: 38ch;
  margin: 0;
  font-weight: var(--body-weight, 500);
  opacity: 0.88;
}
.slide .lede {
  font-size: 15px; line-height: 1.5; color: var(--body-color, var(--text-dim));
  max-width: 34ch; margin: 0; font-weight: 500;
}
.slide a,
.slide .link {
  color: var(--link-color, var(--accent));
}
.slide ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--s2); }
.slide li {
  font-size: 17px; line-height: 1.45; margin: 0; position: relative;
  color: var(--body-color, var(--text)); max-width: 42ch; font-weight: 500;
}
.slide li::before { display: none; }
.slide .bullet-list > li,
.slide-body > ul > li { padding-left: 28px; }
.slide .bullet-list > li::before,
.slide-body > ul > li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: none;
}
.slide p { font-size: 16px; line-height: 1.55; color: var(--text-dim); max-width: 42ch; margin: 0; }

/*
  Estica até o limite do slide; scroll só no miolo quando o conteúdo
  passa da altura máxima já esticada (nunca “por precaução”).
*/
.slide .col,
.slide .cmp,
.slide .price,
.slide .stat,
.slide .feat,
.slide .team,
.slide .callout,
.slide .bento-card {
  min-height: 0;
  overflow: hidden;
}
.slide .col ul,
.slide .cmp ul,
.slide .price ul,
.slide .stat-body,
.slide .feat p,
.slide .team p,
.slide .callout .callout-sub,
.slide .bento-card.bento-hero p,
.slide .bento-card:nth-child(1) p,
.slide .icon-list,
.slide .chartbox,
.slide .process {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.slide .col ul::-webkit-scrollbar,
.slide .cmp ul::-webkit-scrollbar,
.slide .price ul::-webkit-scrollbar,
.slide .stat-body::-webkit-scrollbar,
.slide .feat p::-webkit-scrollbar,
.slide .team p::-webkit-scrollbar,
.slide .callout .callout-sub::-webkit-scrollbar,
.slide .bento-card.bento-hero p::-webkit-scrollbar,
.slide .bento-card:nth-child(1) p::-webkit-scrollbar,
.slide .icon-list::-webkit-scrollbar,
.slide .chartbox::-webkit-scrollbar,
.slide .process::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.slide .col ul::-webkit-scrollbar-thumb,
.slide .cmp ul::-webkit-scrollbar-thumb,
.slide .price ul::-webkit-scrollbar-thumb,
.slide .stat-body::-webkit-scrollbar-thumb,
.slide .feat p::-webkit-scrollbar-thumb,
.slide .team p::-webkit-scrollbar-thumb,
.slide .callout .callout-sub::-webkit-scrollbar-thumb,
.slide .bento-card.bento-hero p::-webkit-scrollbar-thumb,
.slide .bento-card:nth-child(1) p::-webkit-scrollbar-thumb,
.slide .icon-list::-webkit-scrollbar-thumb,
.slide .chartbox::-webkit-scrollbar-thumb,
.slide .process::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--text) 28%, transparent);
  border-radius: 6px;
}
.slide .col ul::-webkit-scrollbar-track,
.slide .cmp ul::-webkit-scrollbar-track,
.slide .price ul::-webkit-scrollbar-track,
.slide .stat-body::-webkit-scrollbar-track,
.slide .feat p::-webkit-scrollbar-track,
.slide .team p::-webkit-scrollbar-track,
.slide .callout .callout-sub::-webkit-scrollbar-track,
.slide .bento-card.bento-hero p::-webkit-scrollbar-track,
.slide .bento-card:nth-child(1) p::-webkit-scrollbar-track,
.slide .icon-list::-webkit-scrollbar-track,
.slide .chartbox::-webkit-scrollbar-track,
.slide .process::-webkit-scrollbar-track {
  background: transparent;
}

/* ===== Ritmo por layout (dentro do canvas 16:9 fixo) ===== */
.slide-body.layout-title {
  gap: var(--s3);
  padding-top: var(--s2);
  padding-bottom: calc(var(--safe-bottom) + var(--s2));
}
.slide-body.layout-title h1 {
  font-size: clamp(44px, 6vw, 68px);
  max-width: min(28ch, 100%);
  letter-spacing: -2px;
  font-weight: 700;
  line-height: 1.08;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.slide-body.layout-title .sub {
  font-size: 22px;
  max-width: 28ch;
  margin-top: var(--s2);
  color: var(--text);
  opacity: 0.92;
  line-height: 1.35;
  font-weight: 500;
}
.slide-body.layout-title .lede {
  margin-top: var(--s4);
  font-size: 17px;
  opacity: 0.78;
  max-width: 32ch;
  line-height: 1.5;
}

/* ===== Capas por tema (mesmo layout "title", composição diferente) ===== */

/* Trilho: copy à esquerda + painel âncora à direita */
.cover-rail {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--s4);
  width: 100%;
  height: 100%;
  align-items: stretch;
  min-height: 0;
}
.cover-aside {
  display: flex;
  min-height: 0;
  min-width: 0;
}
.cover-aside-panel {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 260px;
  overflow: hidden;
}
.cover-aside-panel img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.cover-aside-has-img .cover-aside-mark { display: none; }
.cover-aside-has-img .cover-aside-panel {
  display: flex; place-items: unset; min-height: 0;
}
.cover-aside-mark {
  font-family: var(--font-display);
  font-size: clamp(100px, 20vw, 180px);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -6px;
  color: color-mix(in srgb, var(--text) 88%, transparent);
  user-select: none;
}
.cover-aside-soft .cover-aside-panel {
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 50%, transparent), color-mix(in srgb, var(--accent-2, var(--accent)) 28%, transparent)),
    var(--bg-soft, rgba(255,255,255,0.06));
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
}
.cover-aside-empty .cover-aside-panel.img-slot-empty,
.cover-aside-soft.cover-aside-empty .cover-aside-panel {
  border-style: dashed;
  border-width: 2px;
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border, transparent));
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 12%, transparent), color-mix(in srgb, var(--accent-2, var(--accent)) 6%, transparent)),
    var(--bg-soft, rgba(255,255,255,0.04));
  box-shadow: none;
}
.cover-aside-editorial .cover-aside-panel {
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--card-border, #d8d2c4) 90%, transparent);
  background: var(--card-bg);
  color: var(--text);
  box-shadow: 0 18px 44px rgba(0,0,0,0.12);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  place-items: unset;
  padding: var(--s5) var(--s4) var(--s5);
  gap: var(--s3);
}
.cover-aside-editorial .cover-aside-panel::before {
  content: "";
  position: absolute;
  left: 22px; right: 22px; top: 20px;
  height: 2px;
  background: var(--accent);
}
.cover-aside-editorial .cover-aside-mark {
  font-weight: 600;
  font-style: italic;
  opacity: 0.85;
  letter-spacing: -4px;
  color: var(--text);
}
.cover-aside-kicker {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 12px;
}
.cover-aside-pull {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.35;
  letter-spacing: -0.3px;
  color: var(--text);
  max-width: 18ch;
}
.cover-aside-editorial .cover-aside-pull {
  color: var(--text);
}
.cover-aside-pull-empty {
  opacity: 0.45;
}

.slide-body.cover-stack {
  align-items: stretch;
  text-align: left;
  justify-content: stretch;
  padding-top: var(--s2);
  padding-bottom: calc(var(--safe-bottom) + var(--s2));
}
.cover-stack-col {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.cover-stack-copy {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s2);
  width: 100%;
  max-width: 100%;
  border-left: 4px solid var(--accent);
  padding-left: var(--s4);
  min-width: 0;
}
.slide-body.cover-stack h1 {
  font-size: clamp(44px, 6.2vw, 64px);
  margin: 0;
}
/* Largura toda antes de empilhar; precisa vencer o cap de 12ch de .layout-title.hero h1 */
.slide-body.layout-title.cover-stack h1 {
  max-width: 100%;
}
.slide-body.cover-stack .sub {
  margin: 0;
  max-width: min(66ch, 100%);
  font-size: 20px;
}
.slide-body.cover-stack .lede {
  margin: 0;
  max-width: min(78ch, 100%);
}
.cover-stack-media {
  flex: 1 1 auto;
  min-height: 120px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 18%, transparent), color-mix(in srgb, var(--accent-2, var(--accent)) 10%, transparent)),
    var(--bg-soft, rgba(255,255,255,0.05));
  display: grid;
  place-items: center;
}
.cover-stack-media.img-slot-empty {
  border-style: dashed;
  border-width: 2px;
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border, transparent));
  box-shadow: none;
}
.cover-stack-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cover-stack-media.cover-stack-has-img {
  display: flex;
  place-items: unset;
  border-style: solid;
  background: #000;
}

.slide-body.cover-split {
  padding-top: var(--s2);
  padding-bottom: calc(var(--safe-bottom) + var(--s2));
}
.cover-split-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s5);
  width: 100%;
  height: 100%;
  align-items: stretch;
  min-height: 0;
}
.cover-split-copy {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  align-items: flex-start;
  text-align: left;
  justify-content: center;
  min-width: 0;
}
.slide-body.cover-split h1 {
  max-width: min(22ch, 100%);
  font-size: clamp(48px, 6.5vw, 64px);
  text-align: left;
}
.slide-body.cover-split .sub,
.slide-body.cover-split .lede { text-align: left; margin-top: 0; }

.slide-body.cover-editorial {
  align-items: stretch;
  text-align: left;
  justify-content: stretch;
  padding-bottom: calc(var(--safe-bottom) + var(--s3));
}
.cover-editorial {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: var(--s3);
  min-width: 0;
  padding-bottom: var(--s2);
}
.cover-editorial-rule {
  width: 72px;
  height: 3px;
  background: var(--accent);
  margin: var(--s1) 0;
}
.slide-body.cover-editorial h1 {
  max-width: min(18ch, 100%);
  font-size: clamp(52px, 7.5vw, 76px);
  font-weight: 600;
  letter-spacing: -2.8px;
  line-height: 0.98;
}
.slide-body.cover-editorial .sub {
  margin-top: var(--s2);
  font-size: 18px;
  max-width: 28ch;
  opacity: 0.9;
}
.slide-body.cover-editorial .lede {
  margin-top: 0;
  max-width: none;
  font-size: 15px;
}

/* Capa Bento: copy fluida + mosaico decorativo (sem caixas no texto) */
.slide-body.cover-bento {
  align-items: stretch;
  text-align: left;
  justify-content: stretch;
  padding-bottom: calc(var(--safe-bottom) + var(--s2));
}
.cover-rail-bento {
  gap: var(--bento-gap, 8px);
  grid-template-columns: 1.15fr 0.95fr;
}
.cover-bento-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  text-align: left;
  min-width: 0;
  width: 100%;
}
.slide-body.cover-bento .eyebrow {
  margin-bottom: 2px;
}
.slide-body.cover-bento h1 {
  max-width: 10ch;
  font-size: clamp(48px, 6.5vw, 68px);
  margin: 0;
  line-height: 0.96;
  letter-spacing: -0.05em;
  font-weight: 800;
  text-align: left;
}
.slide-body.cover-bento .sub {
  margin: 0;
  font-size: 17px;
  max-width: 28ch;
  line-height: 1.4;
  color: var(--text-dim);
}
.slide-body.cover-bento .lede {
  margin: 0;
  font-size: 14px;
  max-width: 36ch;
  line-height: 1.5;
  color: var(--text-dim);
}
.cover-bento-aside {
  display: flex;
  min-height: 0;
  min-width: 0;
}
.cover-bento-mosaic {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1.1fr 0.75fr;
  gap: var(--bento-gap, 8px);
  min-height: 280px;
  height: 100%;
}
.cover-bento-tile {
  border-radius: var(--bento-radius, 14px);
  border: 1px solid var(--bento-border, var(--card-border, var(--border)));
  background: var(--bento-surface, var(--card-bg, var(--bg-soft)));
  min-height: 0;
  overflow: hidden;
}
.cover-bento-tile-a {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  place-items: center;
  padding: 18px;
  cursor: pointer;
}
.cover-bento-tile-a.img-slot-empty {
  border-style: dashed;
  border-width: 2px;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--bento-border, var(--border)));
  background: color-mix(in srgb, var(--accent) 8%, var(--bento-surface, var(--card-bg, var(--bg-soft))));
}
.cover-bento-tile-a.cover-bento-has-img {
  padding: 0;
  display: flex; align-items: stretch; justify-content: stretch;
  background: #000;
  border-style: solid;
}
.cover-bento-tile-a img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.cover-bento-tile-a.cover-bento-has-img .cover-bento-dot,
.cover-bento-tile-a.cover-bento-has-img .img-slot-ph { display: none; }
.cover-bento-dot {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.cover-bento-dot:nth-child(1) {
  background: var(--accent);
  border-color: var(--accent);
  opacity: 0.9;
}
.cover-bento-tile-b {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 16px;
  background: var(--bento-surface-accent, var(--accent-soft));
  border-color: var(--bento-border-accent, var(--bento-border));
  box-shadow: inset 3px 0 0 var(--accent);
}
.cover-bento-stat {
  font-family: var(--font-display);
  font-size: clamp(52px, 9vw, 72px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--text);
}
.cover-bento-stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-display);
  max-width: 16ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}
.cover-bento-tile-c {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  align-items: center;
  padding: 16px 22px;
  background: var(--bento-surface-raised, var(--bento-surface, var(--card-bg)));
}
.cover-bento-text {
  margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-dim);
  max-width: 100%; text-align: left;
}

.slide-body.cover-glass {
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  pointer-events: none;
}
/* Full-bleed: fora do fluxo; não pode herdar position:relative do stacking rule */
.slide > .cover-glass-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  cursor: pointer;
  pointer-events: auto;
  overflow: hidden;
  background: transparent;
}
.slide > .cover-glass-bg:not(.cover-glass-has-img) {
  background:
    radial-gradient(ellipse at 30% 40%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 50%),
    radial-gradient(ellipse at 70% 60%, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 50%),
    var(--card-bg);
}
.slide > .cover-glass-bg .cover-glass-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
  border: 0;
}
.cover-glass-card {
  /* --glass-w cresce via JS: alarga o cartão antes de deixar o texto empilhar */
  width: min(100%, var(--glass-w, 640px));
  z-index: 1;
  margin: 0 auto;
  padding: var(--s5) var(--s5);
  border-radius: 28px;
  background: color-mix(in srgb, var(--bg-soft) 35%, transparent);
  border: 1px solid color-mix(in srgb, #fff 22%, transparent);
  backdrop-filter: blur(40px) brightness(0.55);
  -webkit-backdrop-filter: blur(40px) brightness(0.55);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
  text-align: center;
  pointer-events: auto;
}
.slide[data-mode="light"] .cover-glass-card,
[data-mode="light"] .slide .cover-glass-card {
  background: color-mix(in srgb, #ffffff 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, rgba(15, 23, 42, 0.12));
  backdrop-filter: blur(28px) brightness(1.08);
  -webkit-backdrop-filter: blur(28px) brightness(1.08);
  box-shadow:
    0 24px 60px color-mix(in srgb, var(--accent) 12%, rgba(15, 23, 42, 0.12)),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.slide[data-mode="light"] > .cover-glass-bg:not(.cover-glass-has-img),
[data-mode="light"] .slide > .cover-glass-bg:not(.cover-glass-has-img) {
  background:
    radial-gradient(ellipse at 28% 35%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 52%),
    radial-gradient(ellipse at 78% 65%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 55%),
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 10%, #f4f8ff), #ffffff);
}
.slide-body.cover-glass h1 {
  max-width: 100%;
  font-size: clamp(40px, 5.4vw, 60px);
  line-height: 1.1;
}
.slide-body.cover-glass .sub {
  margin-top: 0;
  max-width: min(52ch, 100%);
}
.slide-body.cover-glass .lede {
  margin-top: var(--s2);
  max-width: min(64ch, 100%);
}

/* Seção: divisor de capítulo — número + linha + título curto (sem corpo) */
.slide-body.layout-section {
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-bottom: calc(var(--safe-bottom) + var(--s2));
  gap: var(--s2);
  overflow: hidden;
  min-height: 0;
}
.slide-body.layout-section.section-align-left {
  align-items: flex-start;
  text-align: left;
}
.slide-body.layout-section.section-align-right {
  align-items: flex-end;
  text-align: right;
}
.slide-body.layout-section.section-align-center {
  align-items: center;
  text-align: center;
}
.slide-body.layout-section .section-mark {
  font-family: var(--font-display);
  font-size: clamp(72px, 14vw, 120px);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -4px;
  color: var(--accent);
  opacity: 0.95;
  user-select: none;
}
.slide-body.layout-section .section-rule {
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  margin: var(--s2) 0 var(--s1);
  flex-shrink: 0;
}
.slide-body.layout-section.section-align-left .section-rule {
  margin-left: 0;
  margin-right: auto;
}
.slide-body.layout-section.section-align-right .section-rule {
  margin-left: auto;
  margin-right: 0;
}
.slide-body.layout-section .section-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
  max-width: min(42ch, 100%);
  min-width: 0;
  overflow: hidden;
}
.slide-body.layout-section.section-align-left .section-copy {
  align-items: flex-start;
  max-width: min(42ch, 100%);
}
.slide-body.layout-section.section-align-right .section-copy {
  align-items: flex-end;
  max-width: min(42ch, 100%);
}
.slide-body.layout-section .section-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  min-height: 1.2em;
}
.slide-body.layout-section .section-kicker.is-empty-hint:empty::before,
.slide-body.layout-section .section-kicker[data-placeholder]:empty::before {
  content: attr(data-placeholder);
  opacity: 0.35;
}
.slide-body.layout-section h1 {
  font-size: clamp(28px, 4.2vw, 48px);
  max-width: 100%;
  letter-spacing: -1.2px;
  line-height: 1.12;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
}
.slide-body.layout-section .sub {
  font-size: clamp(14px, 1.6vw, 17px);
  opacity: 0.85;
  color: var(--text-dim);
  max-width: 100%;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 1.2em;
}
.slide .sub[data-placeholder]:empty::before {
  content: attr(data-placeholder);
  opacity: 0.4;
  font-style: italic;
}

/* Bullets: split texto | painel — sem faixa lateral vazia */
.slide-body.layout-bullets {
  gap: 0;
  justify-content: stretch;
  padding-bottom: calc(var(--safe-bottom) + var(--s2));
}
.slide-body.layout-bullets .bullets-split {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: var(--s4);
  width: 100%;
  height: 100%;
  min-height: 0;
  align-items: stretch;
}
.slide-body.layout-bullets .bullets-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  gap: var(--s3);
}
.slide-body.layout-bullets .bullets-head {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.slide-body.layout-bullets h2 {
  font-size: clamp(28px, 4vw, 36px);
  max-width: min(28ch, 100%);
}
.slide-body.layout-bullets .bullet-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  margin: 0;
  width: 100%;
  max-width: none;
  list-style: none;
  padding: 0;
}
.slide-body.layout-bullets .bullet-list > li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 18px;
  line-height: 1.35;
  max-width: none;
  padding-left: 0;
  font-weight: 500;
}
.slide-body.layout-bullets .bullet-list > li::before { display: none; }
.slide .bl-num {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent);
  padding-top: 4px;
  min-width: 2ch;
}
.slide-body.layout-bullets .bullets-aside {
  min-height: 0;
  display: flex;
}
.slide-body.layout-bullets .bullets-panel {
  flex: 1;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 28%, transparent), color-mix(in srgb, var(--accent-2, var(--accent)) 12%, transparent)),
    var(--bg-soft, rgba(255,255,255,0.05));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
  padding: var(--s4);
}
.slide-body.layout-bullets .bullets-mark {
  font-family: var(--font-display);
  font-size: clamp(72px, 14vw, 120px);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -4px;
  color: color-mix(in srgb, var(--text) 92%, transparent);
}
.slide-body.layout-bullets .bullets-aside-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-display);
}
.slide-body.layout-bullets .bullets-aside-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 200px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  background: #0a0a12;
}
.slide-body.layout-bullets .bullets-aside-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slide-body.layout-bullets .bullets-aside-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.55) 100%);
}
.slide-body.layout-bullets .bullets-panel-on-image {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--s4);
  pointer-events: none;
}
.slide-body.layout-bullets .bullets-panel-on-image .bullets-mark {
  color: #f8fafc;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.slide-body.layout-bullets .bullets-panel-on-image .bullets-aside-label {
  color: #fff;
  opacity: 0.9;
}
.slide-body.layout-bullets .bullets-aside-image.img-slot-empty {
  border-style: dashed;
}
.slide-body.layout-bullets .bullets-aside-image > .img-slot-chip {
  z-index: 3;
}
.slide .bl-text { flex: 1; min-width: 0; }

/* Seção com imagem (left → foto direita; right → foto esquerda) */
.slide-body.layout-section.section-has-media {
  align-items: stretch;
  text-align: left;
  justify-content: stretch;
}
.slide-body.layout-section .section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
  width: 100%;
  height: 100%;
  min-height: 0;
  align-items: stretch;
}
.slide-body.layout-section .section-copy-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s2);
  min-width: 0;
  min-height: 0;
  padding: var(--s2) 0;
  overflow: hidden;
}
.slide-body.layout-section.section-align-left.section-has-media .section-copy-col {
  align-items: flex-start;
  text-align: left;
}
.slide-body.layout-section.section-align-right.section-has-media .section-copy-col {
  align-items: flex-end;
  text-align: right;
}
.slide-body.layout-section.section-has-media .section-copy {
  max-width: min(40ch, 100%);
}
.slide-body.layout-section.section-has-media .section-mark {
  font-size: clamp(48px, 9vw, 88px);
  letter-spacing: -3px;
}
.slide-body.layout-section.section-align-right.section-has-media .section-rule {
  margin-left: auto;
  margin-right: 0;
}
.slide-body.layout-section.section-align-left.section-has-media .section-rule {
  margin-left: 0;
  margin-right: auto;
}
.slide-body.layout-section .section-media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 220px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 18%, transparent), transparent 50%),
    #101018;
}
.slide-body.layout-section .section-media-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slide-body.layout-section .section-media.img-slot-empty {
  border-style: dashed;
  display: grid;
  place-items: center;
}
.slide-body.layout-section .section-media > .img-slot-chip {
  z-index: 3;
}

.slide-body.layout-stats {
  gap: var(--s3);
  justify-content: flex-start;
  padding-bottom: calc(var(--safe-bottom) + var(--s2));
}
.slide-body.layout-stats .stats-head {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  position: relative;
  z-index: 2;
}
.slide-body.layout-stats h2 {
  max-width: 22ch;
  font-size: clamp(26px, 3.6vw, 34px);
}
.slide-body.layout-stats .stats-head .sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  max-width: 48ch;
  color: var(--text-dim);
}
.slide-body.layout-stats .stats {
  flex: 1 1 auto;
  margin-top: auto;
  width: 100%;
  min-height: 0;
  align-self: stretch;
  align-content: stretch;
  align-items: end;
  overflow: visible;
}

.slide-body.layout-big-number {
  gap: var(--s3);
}
.slide-body.layout-big-number .bigwrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
  text-align: center;
  width: 100%;
  max-width: 36ch;
  margin-inline: auto;
}
.slide-body.layout-big-number .eyebrow {
  margin-bottom: 2px;
}
.slide-body.layout-big-number .big-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
}
.slide-body.layout-big-number .big-line {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.06em;
  line-height: 0.92;
}
.slide-body.layout-big-number .big {
  font-size: clamp(88px, 16vw, 128px);
  letter-spacing: -4px;
  font-variant-numeric: tabular-nums;
}
.slide-body.layout-big-number .big-suf {
  font-family: var(--font-display);
  font-size: clamp(36px, 6.5vw, 52px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1.2px;
  color: var(--accent);
  margin-top: 0.22em;
}
.slide-body.layout-big-number .big-rule {
  width: min(64px, 16vw);
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  margin-top: 2px;
}
.slide-body.layout-big-number .sub {
  font-size: 18px;
  line-height: 1.45;
  max-width: 28ch;
  margin: 0;
  color: var(--text-dim);
  opacity: 1;
}
.slide-body.layout-big-number .big-delta {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin: 0;
}
.slide-body.layout-big-number .big-meta {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--text-dim);
  opacity: 0.8;
  margin: 2px 0 0;
}

.slide-body.layout-closing { gap: var(--s3); }
.slide-body.layout-closing h1 {
  font-size: clamp(36px, 5.5vw, 48px);
  max-width: 16ch;
}
.slide-body.layout-quote { gap: var(--s2); }
.slide-body.layout-quote .quote-mark {
  font-family: var(--font-display);
  font-size: 72px; line-height: 0.6; color: var(--accent);
  opacity: 0.45; font-weight: 700; margin-bottom: var(--s2);
}
.slide-body.layout-bento {
  gap: var(--s2);
  justify-content: flex-start;
  padding-bottom: calc(var(--safe-bottom) + 12px);
}
.slide-body.layout-bento .bento-head {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.slide-body.layout-bento .bento-head h2 {
  font-size: clamp(24px, 3.2vw, 30px);
  max-width: 28ch;
}
.slide-body.layout-bento .bento-head .sub {
  margin: 0;
  font-size: 14px;
  color: var(--text-dim);
}
.slide-body.layout-bento .bento {
  flex: 1 1 auto;
  min-height: 0;
  align-content: stretch;
}
.slide-body.layout-features .features,
.slide-body.layout-comparison .compare {
  flex: 1; min-height: 0;
}

/* Comparison: head + cards — estica o bloco inteiro; scroll só na lista se passar do máximo */
.slide-body.layout-comparison {
  gap: var(--s3);
  justify-content: flex-start;
  padding-bottom: calc(var(--safe-bottom) + var(--s2));
}
.slide-body.layout-comparison .cmp-head {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.slide-body.layout-comparison h2 {
  max-width: 22ch;
}
.slide-body.layout-comparison .compare {
  flex: 1 1 auto;
  min-height: 0;
  align-self: stretch;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: minmax(0, 1fr);
  gap: var(--s3);
  margin-top: 0;
  align-items: stretch;
  width: 100%;
}
.slide-body.layout-comparison .cmp-vs {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 44px;
  z-index: 1;
}
.slide-body.layout-comparison .cmp-vs::before {
  content: "";
  position: absolute;
  top: 8%;
  bottom: 8%;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    to bottom,
    transparent,
    color-mix(in srgb, var(--accent) 35%, var(--border)) 18%,
    color-mix(in srgb, var(--accent) 35%, var(--border)) 82%,
    transparent
  );
  pointer-events: none;
  z-index: 0;
}
.slide-body.layout-comparison .cmp-vs span {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: lowercase;
  color: var(--text);
  background: color-mix(in srgb, var(--slide-bg, var(--bg)) 88%, var(--accent) 12%);
  border: 1.5px solid color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent);
}

/* Features: cabeça + grid que preenche altura */
.slide-body.layout-features {
  gap: var(--s3);
  justify-content: flex-start;
  padding-bottom: calc(var(--safe-bottom) + var(--s2));
}
.slide-body.layout-features .features-head {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.slide-body.layout-features h2 {
  font-size: clamp(28px, 4vw, 36px);
  max-width: 20ch;
}
.slide-body.layout-features .features-head .sub {
  font-size: 17px;
  max-width: 40ch;
}

.slide .columns {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5);
  align-items: stretch; margin-top: var(--s1);
}
.slide-body.layout-two-column {
  gap: var(--s3);
  justify-content: space-between;
  padding-bottom: calc(var(--safe-bottom) + var(--s2));
}
.slide-body.layout-two-column .tc-head {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.slide-body.layout-two-column h2 {
  font-size: clamp(28px, 4vw, 36px);
  max-width: 22ch;
  margin: 0;
}
.slide-body.layout-two-column .tc-head .sub {
  margin: 0;
  max-width: 42ch;
  font-size: 16px;
  color: var(--text-dim);
}
.slide-body.layout-two-column .columns {
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 0;
  align-items: stretch;
  position: relative;
}
.slide-body.layout-two-column .columns::before {
  content: "";
  position: absolute;
  top: 8%;
  bottom: 8%;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: color-mix(in srgb, var(--text) 14%, transparent);
  pointer-events: none;
}
.slide .col {
  background: transparent;
  border: none;
  border-left: 3px solid color-mix(in srgb, var(--text) 22%, transparent);
  border-radius: 0;
  padding: 4px 0 4px var(--s3);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  min-height: 0;
  height: 100%;
  justify-content: center;
}
.slide .col.col-b {
  border-left-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  padding-right: var(--s2);
  margin-right: calc(var(--s2) * -1);
  border-radius: 0 8px 8px 0;
}
.slide .col.col-b h3 { color: var(--accent); }
.slide .col-num {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 2px;
}
.slide .col.col-a .col-num {
  color: color-mix(in srgb, var(--text) 45%, transparent);
}
.slide .col h3 {
  color: var(--text);
  font-size: clamp(17px, 2vw, 20px);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.3px;
  font-family: var(--font-display);
  text-transform: none;
  line-height: 1.2;
}
.slide .col ul {
  gap: 16px;
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.slide .col li {
  font-size: 17px;
  max-width: none;
  padding-left: 20px;
  line-height: 1.45;
  font-weight: 500;
}
.slide .col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 2px;
  border-radius: 1px;
  background: var(--accent);
}

/* Stats — torrezinhas: uma alta (lead) e duas menores, dentro do espaço restante */
.slide .stats {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  grid-template-rows: minmax(0, 1fr);
  gap: var(--s3);
  margin-top: 0;
  align-items: end;
}
.slide .stat {
  position: relative;
  overflow: hidden;
  background: color-mix(in srgb, var(--text) 4%, transparent);
  border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  border-radius: 14px 14px 6px 6px;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0;
  min-height: 0;
  max-height: 100%;
  height: 84%;
  align-self: end;
  box-shadow: none;
  box-sizing: border-box;
}
.slide .stat-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    180deg,
    transparent,
    color-mix(in srgb, var(--accent) 14%, transparent)
  );
  border-radius: 0 0 5px 5px;
}
.slide .stat-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 18px 16px 18px;
  min-height: 0;
  flex: 1 1 auto;
  box-sizing: border-box;
}
.slide .stat.stat-lead {
  height: 100%;
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  background:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--accent) 10%, transparent),
      color-mix(in srgb, var(--text) 3%, transparent) 42%
    );
}
.slide .stat.stat-lead .stat-fill {
  height: 48%;
  background: linear-gradient(
    180deg,
    transparent,
    color-mix(in srgb, var(--accent) 22%, transparent)
  );
}
.slide .stat.stat-mid {
  height: 84%;
}
.slide .stat.stat-sm {
  height: 84%;
}
.slide .stat.stat-mid .stat-fill { height: 32%; }
.slide .stat.stat-sm .stat-fill { height: 32%; }
.slide .stat.stat-lead .v {
  font-size: clamp(32px, 4.2vw, 48px);
  color: var(--text);
}
.slide .stat .v {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.6px;
  line-height: 1.12;
  padding-top: 2px;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: unset;
  font-variant-numeric: tabular-nums;
}
.slide .stat .l {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  color: color-mix(in srgb, var(--text) 88%, var(--text-dim));
  font-size: 13px;
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.02em;
  opacity: 0.95;
}
.slide .stat.stat-lead .l {
  font-size: 14px;
}
.slide .stat .d {
  position: relative;
  z-index: 1;
  flex: 0 1 auto;
  min-height: 0;
  margin: 2px 0 0;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  max-width: none;
  opacity: 0.92;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  padding-bottom: 1px;
}
.slide .stat.stat-lead .d {
  font-size: 12.5px;
  line-height: 1.45;
  -webkit-line-clamp: 4;
}
.slide .stat.stat-mid .d { -webkit-line-clamp: 2; }
.slide .stat.stat-sm .d { -webkit-line-clamp: 2; }
.slide .stat .d.is-empty:empty::before,
.slide .stat .d.is-empty:not(:focus)::before {
  content: attr(data-placeholder);
  color: var(--text-dim);
  opacity: 0.45;
  font-weight: 500;
}
.slide[data-theme="premium"][data-mode="dark"] .stat,
.slide[data-theme="dark-premium"] .stat {
  background: color-mix(in srgb, #fff 4%, transparent);
  border-color: rgba(255, 255, 255, 0.1);
}
.slide[data-theme="premium"][data-mode="dark"] .stat.stat-lead,
.slide[data-theme="dark-premium"] .stat.stat-lead {
  background:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--accent) 14%, transparent),
      color-mix(in srgb, #fff 3%, transparent) 45%
    );
  border-color: color-mix(in srgb, var(--accent) 40%, rgba(255, 255, 255, 0.12));
}
.slide[data-theme="premium"][data-mode="dark"] .stat .l,
.slide[data-theme="dark-premium"] .stat .l {
  color: #d8d8e4;
  opacity: 1;
}
.slide[data-theme="premium"][data-mode="dark"] .stat .d,
.slide[data-theme="dark-premium"] .stat .d {
  color: #a8a8bc;
  opacity: 1;
}

.slide .quote {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 600; line-height: 1.3;
  letter-spacing: -0.4px; max-width: 22ch;
}
.slide .quote.by { margin-top: var(--s3); color: var(--accent); font-size: 15px; font-weight: 600; }

/* Comparison — win vs lose */
.slide .compare {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-top: var(--s1);
}
.slide .cmp {
  background: transparent;
  border: 1px solid var(--card-border, var(--border));
  border-radius: 14px;
  padding: var(--s4) var(--s3);
  overflow: hidden;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  align-self: stretch;
}
.slide .cmp-win {
  border-radius: 18px;
  background:
    radial-gradient(
      ellipse 65% 55% at 100% 0%,
      color-mix(in srgb, var(--accent) 14%, transparent),
      transparent 58%
    ),
    var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: inset 3px 0 0 var(--accent);
  padding: calc(var(--s4) + 2px) calc(var(--s3) + 4px);
}
.slide .cmp-lose {
  opacity: 0.8;
  border-style: dashed;
  border-color: color-mix(in srgb, var(--text-dim) 35%, var(--border));
  background: color-mix(in srgb, var(--bg-soft, rgba(255, 255, 255, 0.04)) 70%, transparent);
  padding: var(--s4) var(--s3);
}
.slide .cmp-label {
  flex: 0 0 auto;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 10px;
  font-family: var(--font-display);
  align-self: flex-start;
}
.slide .cmp-win .cmp-label {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 999px;
  padding: 4px 10px;
  letter-spacing: 1.2px;
  margin-bottom: 12px;
}
.slide .cmp h3 {
  flex: 0 0 auto;
  margin: 0 0 var(--s3); color: var(--text);
  font-weight: 700; font-family: var(--font-display); font-size: 22px;
  letter-spacing: -0.4px;
}
.slide .cmp-win h3 {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}
.slide .cmp ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: clamp(12px, 2.2vh, 20px);
  flex: 1 1 auto;
  min-height: 0;
  justify-content: space-between;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.slide .cmp li {
  font-size: 16px; max-width: none; padding-left: 18px;
  line-height: 1.4; font-weight: 500; position: relative;
}
.slide .cmp-win li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.slide .cmp-lose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 2px;
  border-radius: 1px;
  background: color-mix(in srgb, var(--text-dim) 75%, transparent);
  box-shadow: none;
}
.slide .cmp li::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}

.slide .imgtext {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 0;
  align-items: stretch;
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
}
.slide .imgtext-left {
  grid-template-columns: 0.92fr 1.08fr;
}
.slide .imgtext-right {
  grid-template-columns: 1.08fr 0.92fr;
}
.slide .imgtext-right .imgph { order: 2; }
.slide .imgtext-right .imgtext-copy { order: 1; }
.slide .imgtext-top,
.slide .imgtext-bottom {
  grid-template-columns: 1fr;
  grid-template-rows: 1.05fr 0.95fr;
}
.slide .imgtext-bottom .imgph { order: 2; }
.slide .imgtext-bottom .imgtext-copy { order: 1; }
.slide .imgtext-top .imgph,
.slide .imgtext-bottom .imgph {
  min-height: 180px;
}
.slide .imgtext-center {
  grid-template-columns: 1fr;
  grid-template-rows: auto 1.2fr auto;
  align-items: center;
  justify-items: stretch;
}
.slide .imgtext-center .imgtext-copy {
  grid-row: 1;
  padding-bottom: var(--s2);
  justify-content: flex-end;
  text-align: center;
  align-items: center;
}
.slide .imgtext-center .imgph {
  grid-row: 2;
  min-height: 200px;
  max-height: 280px;
  margin: 0 var(--pad);
  border-radius: 14px;
  overflow: hidden;
}
.slide .imgtext-center .imgtext-copy h2 { max-width: min(28ch, 100%); }
.slide .imgtext-center .imgtext-points::before { display: none; }
.slide .imgtext-center .imgtext-points {
  justify-content: flex-start;
  gap: 4px;
  width: min(42ch, 100%);
}
.slide .imgtext-center .imgtext-point { flex: 0 0 auto; }
.slide .imgtext-center .imgtext-num { margin-inline: auto 0; }
.slide .imgtext-overlay {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  position: relative;
}
.slide .imgtext-overlay .imgph {
  grid-area: 1 / 1;
  min-height: 100%;
}
/* Scrim: garante contraste com foto clara ou escura */
.slide .imgtext-overlay .imgph::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.18) 35%, rgba(0, 0, 0, 0.58) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0%, transparent 55%);
}
.slide .imgtext-overlay .imgtext-copy {
  grid-area: 1 / 1;
  z-index: 2;
  align-self: end;
  justify-self: start;
  max-width: min(480px, 92%);
  margin: var(--pad);
  margin-bottom: calc(var(--pad) + var(--safe-bottom));
  padding: 22px 24px;
  border-radius: 16px;
  /* Texto sempre claro — independente do modo light/dark do deck */
  --title-color: #f8fafc;
  --body-color: rgba(248, 250, 252, 0.88);
  --text: #f8fafc;
  --text-dim: rgba(248, 250, 252, 0.78);
  --link-color: #fff;
  color: #f8fafc;
  background: color-mix(in srgb, #0a0a12 78%, transparent);
  backdrop-filter: blur(14px);
  border: 1px solid color-mix(in srgb, #fff 16%, transparent);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}
.slide .imgtext-overlay .imgtext-copy h2,
.slide .imgtext-overlay .imgtext-copy .sub,
.slide .imgtext-overlay .imgtext-copy p,
.slide .imgtext-overlay .imgtext-copy .eyebrow,
.slide .imgtext-overlay .imgtext-copy .imgtext-point-text {
  color: var(--title-color, #f8fafc);
}
.slide .imgtext-overlay .imgtext-copy .sub,
.slide .imgtext-overlay .imgtext-copy p,
.slide .imgtext-overlay .imgtext-copy .imgtext-point-text {
  color: var(--body-color, rgba(248, 250, 252, 0.88));
  opacity: 1;
}
.slide .imgtext-overlay .imgtext-points::before {
  background: color-mix(in srgb, #fff 35%, transparent);
}
.slide .imgtext-overlay .imgtext-point {
  border-bottom-color: color-mix(in srgb, #fff 22%, transparent);
}
.slide .imgtext-overlay .imgtext-num {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.45);
}
.slide-body.layout-image-text {
  gap: 0;
  padding-bottom: 0;
  margin: calc(var(--pad) * -1);
  margin-bottom: calc((var(--pad) + 8px) * -1);
  height: calc(100% + var(--pad) + var(--pad) + 8px);
  max-height: none;
}
.slide-body.layout-image-text .imgtext { flex: 1; }
.slide-body.layout-image-text.image-var-center,
.slide-body.layout-image-text.image-var-overlay {
  /* keep bleed */
}
.slide .imgtext-bleed .imgtext-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--s3);
  padding: var(--pad) var(--pad) calc(var(--pad) + var(--safe-bottom));
  min-height: 0;
  height: 100%;
}
.slide .imgtext-copy-head {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.slide .imgtext-copy h2 {
  max-width: min(22ch, 100%);
  font-size: clamp(32px, 3.8vw, 48px);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0;
}
.slide .imgtext-copy .sub { font-size: 17px; color: var(--text); opacity: 0.9; max-width: 36ch; }
.slide .imgtext-copy p { font-size: 15px; max-width: 36ch; color: var(--text-dim); line-height: 1.5; }
.slide .imgtext-points {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
  position: relative;
}
.slide .imgtext-points::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: color-mix(in srgb, var(--accent) 40%, transparent);
  pointer-events: none;
}
.slide .imgtext-point {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 65%, transparent);
  flex: 1 1 0;
  position: relative;
  z-index: 1;
  margin: 0;
}
.slide .imgtext-point.has-ico {
  grid-template-columns: 32px auto 1fr;
}
.slide .imgtext-point:last-child { border-bottom: none; }
.slide .imgtext-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 88%, #000);
  color: var(--slide-bg, #0a0a0a);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 0 0 3px var(--slide-bg, #0a0a0a);
}
.slide .imgtext-ico {
  width: 28px;
  height: 28px;
  padding: 4px;
  color: var(--accent);
  flex: none;
}
.slide .imgtext-ico svg { width: 100%; height: 100%; }
.slide .imgtext-point-text {
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  font-weight: 500;
  max-width: 36ch;
}
.slide .imgph {
  position: relative; overflow: hidden;
  min-height: 100%;
  height: 100%;
  border-radius: 0;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 28%, transparent), transparent 48%),
    linear-gradient(320deg, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 42%),
    #101018;
  border: none;
  border-right: 1px solid var(--card-border, var(--border));
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 24px;
  cursor: pointer;
}
.slide .imgph.imgph-has-img {
  padding: 0;
  background: #000;
  align-items: stretch; justify-content: stretch;
}
.slide .imgph img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.slide .imgph.imgph-has-img .imgph-glow { display: none; }
.slide .imgph.imgph-has-img .imgph-label { display: none; }
.slide .imgph-glow {
  position: absolute; inset: -20% -10% auto auto; width: 70%; height: 70%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 40%, transparent), transparent 70%);
  pointer-events: none;
}
.slide .imgph-label {
  position: relative; z-index: 1;
  color: var(--text); font-size: 12px; font-weight: 600;
  letter-spacing: 0.6px; font-family: var(--font-display);
  text-transform: uppercase; opacity: 0.8;
}
.slide .imgph::before { display: none; }

/* ---------- Affordance de imagem (só editor .stage) ---------- */
.img-slot-chip {
  display: none;
}
.img-slot-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  text-align: center;
  pointer-events: none;
  user-select: none;
  max-width: 100%;
}
.img-slot-ph-ico,
.img-slot-ph .ui-ico {
  display: block;
  width: clamp(36px, 8vw, 52px);
  height: clamp(36px, 8vw, 52px);
  color: var(--accent);
  opacity: 0.85;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.img-slot-ph-label {
  display: none;
  font-family: var(--font-display);
  font-size: clamp(13px, 1.6vw, 15px);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  opacity: 0.72;
  transition: opacity 0.15s ease, color 0.15s ease;
}
.stage .img-slot-ph-label {
  display: block;
}
.stage .img-slot:not(.cover-glass-bg) {
  position: relative;
  cursor: pointer;
}
.stage .cover-glass-bg.img-slot {
  position: absolute;
  inset: 0;
  cursor: pointer;
}
.stage .img-slot-empty {
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 28%, transparent);
}
.stage .img-slot-empty:hover {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent);
}
.stage .img-slot-empty:hover .img-slot-ph-ico,
.stage .img-slot-empty:hover .img-slot-ph .ui-ico {
  opacity: 1;
  transform: scale(1.04);
}
.stage .img-slot-empty:hover .img-slot-ph-label {
  opacity: 1;
  color: var(--accent);
}
.stage .cover-glass-bg.img-slot-empty {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 32%, transparent);
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.stage .cover-glass-bg.img-slot-empty .img-slot-ph {
  z-index: 1;
}
.stage .img-slot-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 8;
  pointer-events: auto;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--text);
  background: color-mix(in srgb, var(--panel) 92%, #000);
  border: 1px solid var(--border);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
  user-select: none;
}
/* Empty: o placeholder já é o CTA — esconde chip duplicado */
.stage .img-slot-empty .img-slot-chip.is-empty,
.stage .cover-glass-bg.img-slot-empty ~ .img-slot-chip.is-empty {
  display: none;
}
.stage .img-slot-chip:hover,
.stage .img-slot-chip:focus-visible {
  outline: none;
  background: var(--accent);
  border-color: var(--accent);
  color: #041018;
  transform: translateX(-50%) translateY(-1px);
}
.stage .img-slot-chip.is-empty {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  color: var(--accent);
}
.stage .img-slot-chip.is-empty:hover,
.stage .img-slot-chip.is-empty:focus-visible {
  color: #041018;
}
.stage .img-slot-chip-ico,
.stage .img-slot-chip .ui-ico {
  flex: 0 0 auto;
  display: block;
  width: var(--icon-xs);
  height: var(--icon-xs);
  opacity: 0.9;
}
.stage .img-slot-chip-label {
  display: block;
}
/* Glass: filho direto do slide, acima do body/footer */
.stage .slide > .img-slot-chip-glass {
  left: 50%;
  bottom: 52px;
  z-index: 8;
}
.stage .avatar.img-slot {
  overflow: visible;
}
.stage .avatar .img-slot-chip {
  left: auto;
  right: -4px;
  bottom: -4px;
  transform: none;
  padding: 5px;
  font-size: 10px;
  gap: 0;
  border-radius: 8px;
}
.stage .avatar .img-slot-chip:hover,
.stage .avatar .img-slot-chip:focus-visible {
  transform: translateY(-1px);
}
.stage .avatar .img-slot-chip-label {
  display: none;
}
.stage .avatar .img-slot-chip-ico {
  width: 12px;
  height: 12px;
}
.stage .avatar.img-slot-empty {
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent),
    inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 28%, transparent);
  cursor: pointer;
}
.stage .avatar.img-slot-empty:hover {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  box-shadow:
    0 0 0 2px var(--accent),
    inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 40%, transparent);
}
/* Miniaturas / present: sem chrome de editor */
.lg-preview .img-slot-chip,
.tp-scale .img-slot-chip,
.pres-classic-stage .img-slot-chip,
.pres-slide .img-slot-chip {
  display: none !important;
}
.lg-preview .img-slot-empty,
.tp-scale .img-slot-empty,
.pres-classic-stage .img-slot-empty,
.pres-slide .img-slot-empty {
  box-shadow: none !important;
}

/* Decoração — canto apenas, nunca atrás do texto */
.slide .decor {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: var(--decor-opacity, 0.1); overflow: hidden;
}
.slide .decor svg { width: 100%; height: 100%; display: block; }
.slide .decor .d-tl { top: -80px; left: -80px; width: 220px; height: 220px; }
.slide .decor .d-br { bottom: -90px; right: -90px; width: 260px; height: 260px; }
.slide .decor .d-tr { top: -140px; right: -160px; width: 240px; height: 240px; }
.slide .decor .d-tr.d-editorial {
  top: -40px;
  right: -50px;
  width: 220px;
  height: 220px;
  opacity: 0.85;
}
.slide .decor .d-bl { bottom: -80px; left: -80px; width: 220px; height: 220px; }
.slide > *:not(.decor):not(.slide-footer):not(.cover-glass-bg):not(.closing-curtain-wash):not(.img-slot-chip):not(.freeform) { position: relative; z-index: 1; }
.slide .slide-body { z-index: 2; }
.slide > .slide-footer { z-index: 4; }
.slide > .img-slot-chip { position: absolute; z-index: 8; }
.slide > .freeform { z-index: 6; }

/* ---------- Freeforms (camada livre) ---------- */
.slide .freeform {
  position: absolute;
  box-sizing: border-box;
  margin: 0;
  padding: 6px 8px;
  border-radius: 10px;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: box-shadow 0.15s ease, outline-color 0.15s ease;
}
.slide .freeform.is-dragging {
  cursor: grabbing;
  opacity: 0.95;
  z-index: 9 !important;
}
.slide .freeform.is-selected {
  outline: 2px solid color-mix(in srgb, var(--accent) 85%, transparent);
  outline-offset: 3px;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 12%, transparent);
}
.slide .freeform-del {
  position: absolute;
  top: -11px;
  right: -11px;
  z-index: 2;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--float-bg, var(--panel));
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--float-shadow, 0 8px 20px rgba(0,0,0,0.35));
  transition: opacity 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.slide .freeform-del .ui-ico { width: 12px; height: 12px; }
.slide .freeform.is-selected .freeform-del,
.slide .freeform:hover .freeform-del {
  opacity: 1;
  pointer-events: auto;
}
.slide .freeform-del:hover {
  color: #f87171;
  border-color: color-mix(in srgb, #f87171 40%, var(--border));
}
.slide .freeform-title {
  padding: 4px 6px;
  background: transparent;
}
.slide .freeform-title h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 3.1vw, 34px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--text);
  cursor: text;
  user-select: text;
}
.slide .freeform-text {
  padding: 6px 8px;
  background: color-mix(in srgb, var(--panel) 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
  backdrop-filter: blur(6px);
}
.slide .freeform-text p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--text-dim);
  cursor: text;
  user-select: text;
}
.slide .freeform-image {
  padding: 0;
  width: auto;
  aspect-ratio: 16 / 10;
  height: auto;
  min-height: 0;
  display: block;
  overflow: hidden;
  background: color-mix(in srgb, var(--text) 6%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  border-radius: 12px;
  box-shadow: none;
}
.slide .freeform-image.is-selected {
  outline: none;
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--accent) 80%, transparent),
    0 12px 28px color-mix(in srgb, var(--accent) 12%, transparent);
}
.slide .freeform-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
  border-radius: inherit;
}
.slide .freeform-image .img-slot-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 12px;
  pointer-events: none;
}
.slide .freeform-image .img-slot-ph-ico {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}
.slide .freeform-image .img-slot-ph-label {
  display: block;
  font-size: 12px;
  line-height: 1.2;
  opacity: 0.7;
}
.slide .freeform-image .img-slot-chip {
  position: absolute;
  left: 50%;
  bottom: 10px;
  right: auto;
  top: auto;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  margin: 0;
  transition: opacity 0.12s ease;
}
.slide .freeform-image.is-selected .img-slot-chip,
.slide .freeform-image:hover .img-slot-chip {
  opacity: 1;
}

.slide[data-theme="premium"][data-mode="dark"] .decor,
.slide[data-theme="dark-premium"] .decor { opacity: 0.09; }
.slide[data-theme="brutal"][data-mode="light"] .decor,
.slide[data-theme="editorial"][data-mode="light"] .decor,
.slide[data-theme="memphis"][data-mode="light"] .decor,
.slide[data-theme="neo-brutal"] .decor,
.slide[data-theme="editorial"] .decor,
.slide[data-theme="memphis"] .decor { opacity: 0.18; }

/* ---------- Timeline ---------- */
.slide-body.layout-timeline {
  gap: var(--s5);
  justify-content: center;
  padding-bottom: calc(var(--safe-bottom) + var(--s2));
}
.slide-body.layout-timeline h2 {
  font-size: clamp(28px, 4vw, 36px);
  max-width: 20ch;
  margin: 0;
}
.slide-body.layout-timeline .tl-head {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.slide-body.layout-timeline .tl-head .sub {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-dim);
  max-width: 42ch;
}
.slide-body.layout-timeline .timeline {
  flex: 0 0 auto;
  margin-top: 0;
  width: 100%;
}
.slide .timeline {
  display: flex;
  gap: 0;
  position: relative;
  align-items: flex-start;
  width: 100%;
  padding-top: 10px;
}
.slide .timeline::before {
  content: "";
  position: absolute;
  top: 35px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent 0%,
    color-mix(in srgb, var(--accent) 55%, transparent) 18%,
    color-mix(in srgb, var(--accent) 70%, transparent) 50%,
    color-mix(in srgb, var(--accent) 55%, transparent) 82%,
    transparent 100%
  );
  pointer-events: none;
}
.slide .tl-item {
  flex: 1;
  padding: 0 var(--s2);
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.slide .tl-item::before {
  content: attr(data-i);
  display: block;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  opacity: 0.55;
  margin-bottom: 8px;
  line-height: 1;
}
.slide .tl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 auto 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
  flex-shrink: 0;
}
.slide .tl-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 10px;
  transform: translateX(-50%);
  background: color-mix(in srgb, var(--accent) 40%, transparent);
}
.slide .tl-item:first-child .tl-dot {
  width: 18px;
  height: 18px;
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent),
    0 0 0 9px color-mix(in srgb, var(--accent) 8%, transparent);
}
.slide .tl-item:last-child .tl-dot {
  width: 16px;
  height: 16px;
  background: var(--accent);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent),
    0 0 0 5px var(--accent);
}
.slide .tl-year {
  font-weight: 700;
  color: var(--text);
  font-size: clamp(24px, 3vw, 28px);
  letter-spacing: -0.04em;
  text-align: center;
  font-family: var(--font-display);
  line-height: 1.1;
  margin-top: 14px;
}
.slide .tl-label {
  color: var(--text-dim);
  font-size: 13px;
  margin-top: 10px;
  line-height: 1.4;
  text-align: center;
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg-soft, rgba(255, 255, 255, 0.04)) 80%, transparent);
}

/* ---------- Process ---------- */
.slide .process {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--s2);
  flex: 1;
  min-height: 0;
  justify-content: flex-start;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.slide .proc-head h2 {
  font-size: clamp(28px, 3.2vw, 38px);
  letter-spacing: -0.04em;
  line-height: 1.1;
  max-width: 22ch;
}
.slide .proc-head .sub {
  margin: 8px 0 0;
  color: var(--text-dim);
  font-size: 15px;
  max-width: 42ch;
}
.slide .proc-step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: var(--s3);
  align-items: stretch;
  padding: 14px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}
.slide .proc-step:last-child { border-bottom: none; }
.slide .proc-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.slide .proc-num {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 10px;
  background: var(--accent);
  color: #041018;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.04em;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px var(--accent-soft);
}
.slide .proc-line {
  flex: 1;
  width: 2px;
  min-height: 12px;
  margin-top: 8px;
  background: color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 1px;
}
.slide .proc-body { padding-top: 4px; min-width: 0; }
.slide .proc-step h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}
.slide .proc-step p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.45;
  max-width: 48ch;
}

/* ---------- Bento / Features ---------- */
.slide .bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: var(--bento-gap, 11px);
  margin-top: 0;
  height: 100%;
}
.slide .bento-card {
  position: relative;
  background: var(--bento-surface, transparent);
  border: 1px solid var(--bento-border, var(--card-border, var(--border)));
  border-radius: 12px;
  padding: 16px 18px 14px;
  box-shadow: none;
  overflow: hidden;
  transition: border-color 0.15s ease;
  min-height: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  z-index: 0;
}
.slide .bento-card:hover {
  transform: none;
  border-color: color-mix(in srgb, var(--accent) 40%, var(--bento-border, var(--border)));
}
.slide .bento-card.bento-hero,
.slide .bento-card:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  border-radius: 18px;
  background:
    radial-gradient(
      ellipse 70% 65% at 100% 0%,
      color-mix(in srgb, var(--accent) 14%, transparent),
      transparent 58%
    ),
    var(--bento-surface-accent, var(--accent-soft));
  border-color: var(--bento-border-accent, color-mix(in srgb, var(--accent) 35%, var(--border)));
  box-shadow: inset 3px 0 0 var(--accent);
  padding: 22px 24px 20px;
  justify-content: safe flex-end;
  gap: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.slide .bento-card.bento-hero::before,
.slide .bento-card:nth-child(1)::before {
  content: attr(data-idx);
  position: absolute;
  top: 4px;
  right: 10px;
  font-family: var(--font-display);
  font-size: clamp(64px, 9vw, 92px);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 1;
  color: var(--accent);
  opacity: 0.1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.slide .bento-card:nth-child(2) { grid-column: 3; grid-row: 1; }
.slide .bento-card:nth-child(3) { grid-column: 3; grid-row: 2; }
.slide .bento-card:nth-child(4) {
  grid-column: 1 / -1;
  grid-row: 3;
  flex-direction: row;
  align-items: baseline;
  gap: 16px;
  padding: 14px 18px 14px 20px;
  border-radius: 12px;
  background: var(--bento-surface-raised, var(--bento-surface, transparent));
  box-shadow: inset 3px 0 0 var(--accent);
}
.slide .bento-card:nth-child(4) .bento-idx {
  position: static;
  flex: 0 0 auto;
  opacity: 0.9;
}
.slide .bento-card:nth-child(4) h3 { margin: 0; flex: 0 0 auto; }
.slide .bento-card:nth-child(4) p {
  margin: 0;
  flex: 1 1 auto;
  max-width: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.slide .bento-idx {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  opacity: 0.85;
}
.slide .bento-card.bento-hero .bento-idx,
.slide .bento-card:nth-child(1) .bento-idx {
  font-size: 12px;
  margin-bottom: 8px;
}
.slide .bento-card.bento-hero h3,
.slide .bento-card:nth-child(1) h3 {
  position: relative;
  z-index: 1;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  padding-bottom: 12px;
  color: var(--text);
  font-family: var(--font-display);
  line-height: 1.2;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}
.slide .bento-card.bento-hero p,
.slide .bento-card:nth-child(1) p {
  position: relative;
  z-index: 1;
  font-size: 14px;
  line-height: 1.45;
  max-width: 36ch;
  margin: 0;
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}
.slide .bento-card h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-display);
  line-height: 1.2;
  flex: 0 0 auto;
  letter-spacing: -0.02em;
}
.slide .bento-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.4;
  max-width: none;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slide[data-theme="bento"] .bento-card {
  background: var(--bento-surface);
  border-color: var(--bento-border);
}
.slide[data-theme="bento"] .bento-card.bento-hero,
.slide[data-theme="bento"] .bento-card:nth-child(1) {
  background:
    radial-gradient(
      ellipse 70% 65% at 100% 0%,
      color-mix(in srgb, var(--accent) 14%, transparent),
      transparent 58%
    ),
    var(--bento-surface-accent);
  border-color: var(--bento-border-accent);
}
.slide[data-theme="bento"] .bento-card:nth-child(4) {
  background: var(--bento-surface-raised);
}
.slide[data-theme="bento"] .stat,
.slide[data-theme="bento"] .feature,
.slide[data-theme="bento"] .bl,
.slide[data-theme="bento"] .feat {
  background: var(--bento-surface);
  border-radius: var(--bento-radius, 14px);
  border: 1px solid var(--bento-border);
  padding: 14px 16px;
}

.slide .features {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s4); margin-top: 0;
  align-items: stretch;
  height: 100%;
}
.slide .feat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  background: transparent;
  border: none;
  border-top: 2px solid color-mix(in srgb, var(--accent) 32%, transparent);
  border-radius: 0;
  padding: var(--s4) 0 0;
  box-shadow: none;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  gap: 0;
}
.slide .feat:nth-child(1) { border-top-color: var(--accent); }
.slide .feat:nth-child(2) { border-top-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.slide .feat:nth-child(3) { border-top-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.slide .feat-idx {
  position: absolute;
  top: calc(var(--s4) - 2px);
  right: 0;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  opacity: 0.55;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.slide .feat:nth-child(1) .feat-idx { color: var(--accent); opacity: 0.7; }
.slide .feat-ico {
  width: 72px; height: 72px; margin: 0 auto var(--s3);
  padding: 16px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  align-self: center;
  background: var(--accent-soft); border-radius: 16px;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent),
    0 0 0 6px color-mix(in srgb, var(--accent) 6%, transparent);
  position: relative;
}
.slide .feat-ico::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 12px;
  height: 2px;
  border-radius: 1px;
  background: var(--accent);
  opacity: 0.85;
  pointer-events: none;
}
.slide .feat-ico svg { width: 100%; height: 100%; color: var(--accent); }

/* Ícones de conteúdo — estilo por look (data-icons) */
.slide[data-icons="none"] .feat-ico,
.slide[data-icons="none"] .icl-ico {
  display: none !important;
}
.slide[data-icons="outline"] .feat-ico {
  background: transparent;
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--accent) 45%, transparent);
}
.slide[data-icons="outline"] .feat-ico::after { display: none; }
.slide[data-icons="outline"] .feat-ico svg,
.slide[data-icons="outline"] .icl-ico svg {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.slide[data-icons="outline"] .feat-ico svg [fill]:not([fill="none"]),
.slide[data-icons="outline"] .icl-ico svg [fill]:not([fill="none"]) {
  fill: none;
  stroke: var(--accent);
}
.slide[data-icons="fill"] .feat-ico {
  background: var(--accent);
  box-shadow: none;
  border-radius: 14px;
}
.slide[data-icons="fill"] .feat-ico::after { display: none; }
.slide[data-icons="fill"] .feat-ico svg { color: var(--slide-bg, #fff); }
.slide[data-icons="fill"] .icl-ico {
  background: var(--accent);
  color: var(--slide-bg, #fff);
  border-radius: 10px;
}
.slide[data-icons="fill"] .icl-ico svg { color: var(--slide-bg, #fff); }
.slide[data-icons="duotone"] .feat-ico {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent-2, var(--accent)) 35%, transparent),
    0 8px 24px color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: 20px;
}
.slide[data-icons="duotone"] .feat-ico::after {
  background: var(--accent-2, var(--accent));
}
.slide[data-icons="duotone"] .feat-ico svg {
  color: var(--accent);
  opacity: 0.92;
}
.slide[data-icons="stamp"] .feat-ico {
  background: transparent;
  border-radius: 0;
  box-shadow: 3px 3px 0 var(--accent);
  outline: 2px solid var(--title-color, var(--text));
  outline-offset: 0;
}
.slide[data-icons="stamp"] .feat-ico::after { display: none; }
.slide[data-icons="stamp"] .icl-ico {
  border-radius: 0;
  box-shadow: 2px 2px 0 var(--accent);
  outline: 1.5px solid var(--title-color, var(--text));
}

/* Tipografia por typeScale — reforço além dos tokens */
.slide[data-type="editorial"] h1,
.slide[data-type="editorial"] h2 {
  font-style: italic;
}
.slide[data-type="brutal"] h1,
.slide[data-type="brutal"] h2 {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.slide[data-type="organic"] h1,
.slide[data-type="organic"] h2 {
  letter-spacing: 0.01em;
}
.slide[data-type="soft"] h1 {
  font-weight: var(--title-weight, 600);
}

.slide .feat h3 {
  flex: 0 0 auto;
  margin: 0 0 12px; font-size: 22px; font-weight: 700;
  font-family: var(--font-display); letter-spacing: -0.4px; line-height: 1.15;
  padding-right: 2.5ch;
}
.slide .feat p {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.55;
  max-width: 28ch;
  font-weight: 500;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* ---------- Big number ---------- */
.slide .bigwrap { text-align: center; width: 100%; }
.slide .big {
  font-family: var(--font-display);
  font-size: clamp(72px, 14vw, 110px);
  font-weight: 700; line-height: 0.95;
  color: var(--text);
  letter-spacing: -3px;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}
.slide .bigwrap .sub {
  font-size: 18px;
  margin-top: 0;
  color: var(--text-dim);
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Icon list: checklist densa com rail (preenche altura) ---------- */
.slide-body.layout-icon-list {
  gap: var(--s3);
  justify-content: flex-start;
  padding-bottom: calc(var(--safe-bottom) + var(--s2));
  height: 100%;
}
.slide-body.layout-icon-list .icl-head {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.slide-body.layout-icon-list h2 {
  font-size: clamp(32px, 4.4vw, 44px);
  max-width: 100%;
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.slide-body.layout-icon-list .icon-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: space-between;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  position: relative;
}
/* Rail vertical ligando os badges */
.slide-body.layout-icon-list .icon-list::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 28px;
  bottom: 28px;
  width: 2px;
  background: color-mix(in srgb, var(--accent) 45%, transparent);
  pointer-events: none;
  z-index: 0;
}
.slide-body.layout-icon-list .icon-list li {
  display: grid;
  grid-template-columns: 36px 48px 1fr;
  align-items: center;
  gap: var(--s3);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 500;
  max-width: none;
  margin: 0;
  padding: 14px 0;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  background: transparent;
  min-height: 0;
  flex: 1 1 0;
  position: relative;
  z-index: 1;
}
.slide-body.layout-icon-list .icon-list li:last-child { border-bottom: none; }
.slide-body.layout-icon-list .icon-list li::before { display: none; }
.slide-body.layout-icon-list .icl-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 88%, #000);
  color: var(--slide-bg, #0a0a0a);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 0 0 3px var(--slide-bg, #0a0a0a);
}
.slide-body.layout-icon-list .icl-ico {
  flex: none;
  width: 48px;
  height: 48px;
  padding: 10px;
  background: var(--accent-soft);
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
  color: var(--accent);
}
.slide-body.layout-icon-list .icl-ico svg { width: 100%; height: 100%; }
.slide-body.layout-icon-list .icl-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  width: 100%;
}
.slide-body.layout-icon-list .icl-title {
  font-size: clamp(18px, 2.1vw, 22px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--title-color, var(--text));
  max-width: 100%;
}
/* Largura toda primeiro; empilhar linhas só quando o fit precisar encolher */
.slide-body.layout-icon-list .icl-text {
  font-size: 15px;
  font-weight: 450;
  line-height: 1.45;
  color: var(--text-dim);
  max-width: 100%;
}

/* fallback genérico (outros usos) */
.slide .icon-list { list-style: none; padding: 0; margin-top: 0; display: flex; flex-direction: column; gap: var(--s2); }
.slide .icon-list li { display: flex; align-items: center; gap: var(--s2); font-size: 16px; max-width: none; }
.slide .icon-list li::before { display: none; }
.slide .icl-ico {
  flex: 0 0 36px; height: 36px; padding: 8px;
  background: var(--accent-soft); border-radius: 10px;
  border: 1px solid var(--card-border, var(--border));
}
.slide .icl-ico svg { width: 100%; height: 100%; }

/* ---------- Callout ---------- */
.slide-body.layout-callout {
  justify-content: center; align-items: center;
  padding-top: var(--s3);
  padding-bottom: calc(var(--safe-bottom) + var(--s3));
}
.slide .callout {
  width: min(100%, 720px);
  max-height: 100%;
  background: transparent;
  border: none;
  border-top: 3px solid var(--accent);
  border-radius: 0;
  padding: var(--s4) 0 0;
  box-shadow: none;
  text-align: left;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.slide-body.layout-callout.center .callout { text-align: center; }
.slide .callout .callout-tag {
  font-size: 12px; text-transform: uppercase; letter-spacing: 2px;
  font-weight: 700; color: var(--accent); margin-bottom: var(--s3);
  font-family: var(--font-display);
  display: inline-flex; align-items: center; gap: 10px;
}
.slide .callout .callout-tag::before {
  content: ""; width: 18px; height: 2px; background: var(--accent);
}
.slide-body.layout-callout.center .callout .callout-tag { justify-content: center; }
.slide-body.layout-callout.center .callout .callout-tag::before { display: none; }
.slide .callout .callout-title {
  font-size: clamp(26px, 4vw, 34px); font-weight: 700; line-height: 1.25;
  font-family: var(--font-display); letter-spacing: -0.6px; color: var(--text);
  max-width: 22ch; margin: 0 auto;
}
.slide .callout .callout-sub {
  margin: var(--s3) auto 0; font-size: 17px; line-height: 1.5;
  color: var(--text-dim); max-width: 36ch;
}
.slide .callout.warning { --accent: #f59e0b; border-top-color: #f59e0b; }
.slide .callout.info { --accent: #3b82f6; border-top-color: #3b82f6; }

/* ---------- Pricing ---------- */
.slide-body.layout-pricing .pricing-head {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.slide-body.layout-pricing {
  gap: var(--s3);
  justify-content: space-between;
  padding-bottom: calc(var(--safe-bottom) + var(--s2));
}
.slide-body.layout-pricing h2 {
  font-size: clamp(28px, 4vw, 36px);
  max-width: 22ch;
  margin: 0;
}
.slide-body.layout-pricing .pricing {
  flex: 1 1 auto;
  align-content: stretch;
  min-height: 0;
}
.slide .pricing {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s3); margin-top: 0; align-items: stretch;
}
.slide .price {
  position: relative; background: transparent;
  border: 1px solid color-mix(in srgb, var(--text) 16%, transparent);
  border-radius: 12px; padding: 24px 20px 22px;
  box-shadow: none;
  overflow: hidden;
  min-height: 0;
  display: flex; flex-direction: column; gap: 0;
  justify-content: flex-start;
}
.slide .price ul {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.slide .price.popular {
  border-color: var(--accent);
  border-width: 2px;
  background: var(--accent-soft);
  padding-top: 28px;
  transform: translateY(-6px);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--accent) 18%, transparent);
}
.slide .price-tag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #0a0a0f;
  font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
  letter-spacing: 0.5px; text-transform: uppercase; white-space: nowrap;
  font-family: var(--font-display);
}
.slide .price h3 {
  margin: 0 0 12px; font-size: 13px; font-weight: 600;
  font-family: var(--font-display); color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 1px;
}
.slide .price-val {
  font-size: clamp(32px, 4vw, 44px); font-weight: 700; color: var(--text);
  letter-spacing: -1.2px; font-family: var(--font-display); line-height: 1;
  margin-bottom: var(--s3);
}
.slide .price.popular .price-val { font-size: clamp(36px, 4.4vw, 48px); }
.slide .price ul {
  margin: 0; padding: 0; color: var(--text-dim);
  font-size: 14px; list-style: none; display: flex; flex-direction: column; gap: 10px;
}
.slide .price li {
  padding-left: 18px; font-size: 14px; margin: 0; max-width: none;
  color: color-mix(in srgb, var(--text) 82%, var(--text-dim)); position: relative;
}
.slide .price li::before {
  width: 6px; height: 6px; top: 7px; box-shadow: none; border-radius: 50%;
  background: var(--accent); content: ""; position: absolute; left: 0;
}

/* ---------- Chart ---------- */
.slide-body.layout-chart { gap: var(--s3); justify-content: space-between; }
.slide-body.layout-chart .chartbox { flex: 1; min-height: 0; margin-top: auto; }
.slide .chartbox {
  height: auto; min-height: 220px; margin-top: var(--s3);
  display: flex; align-items: stretch; width: 100%;
}
.slide .chartsvg { width: 100%; height: 100%; min-height: 200px; }
.slide .bars {
  display: flex; gap: var(--s4); align-items: flex-end;
  width: 100%; height: 100%; min-height: 220px;
  border-bottom: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  padding-bottom: 0;
}
.slide .bar-col {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: flex-end; height: 100%; gap: 8px; min-width: 0;
}
.slide .bar-val {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: var(--text); letter-spacing: -0.3px; line-height: 1;
}
.slide .bar {
  width: 100%; max-width: 72px; background: var(--accent);
  border-radius: 4px 4px 0 0; opacity: 0.92; min-height: 8px;
}
.slide .bar-col:last-child .bar { opacity: 1; }
.slide .bar-col .clabel {
  flex: none; width: 100%; text-align: center;
  color: var(--text-dim); font-size: 13px; font-weight: 500;
  padding-top: 10px; margin-top: 0;
  border-top: none;
}
.slide .chartlabels { display: none; }

/* ---------- Team ---------- */
.slide-body.layout-team {
  gap: var(--s3);
  justify-content: space-between;
  padding-bottom: calc(var(--safe-bottom) + var(--s2));
}
.slide-body.layout-team .team-head {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.slide-body.layout-team h2 {
  font-size: clamp(28px, 4vw, 36px);
  max-width: 22ch;
  margin: 0;
}
.slide-body.layout-team .team-head .sub {
  margin: 0;
  max-width: 42ch;
  font-size: 16px;
  color: var(--text-dim);
}
.slide-body.layout-team .teamrow {
  flex: 1 1 auto;
  min-height: 0;
  align-content: center;
  margin-top: 0;
}
.slide .teamrow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
  align-items: start;
}
.slide .team {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
  gap: var(--s2);
  background: transparent;
  border: none;
  border-left: 3px solid color-mix(in srgb, var(--text) 18%, transparent);
  border-radius: 0;
  padding: 2px 0 2px var(--s3);
  box-shadow: none;
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.slide .team.team-lead {
  border-left-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  padding-right: var(--s2);
  border-radius: 0 8px 8px 0;
}
.slide .team-num {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: color-mix(in srgb, var(--text) 45%, transparent);
  line-height: 1;
}
.slide .team.team-lead .team-num { color: var(--accent); }
.slide .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 4px 0 var(--s1);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent);
  font-family: var(--font-display);
  overflow: visible;
  flex-shrink: 0;
}
.slide .avatar .avatar-initial {
  line-height: 1;
  letter-spacing: -0.02em;
}
.slide .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.slide .team h3 {
  margin: 0;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -0.35px;
  line-height: 1.2;
}
.slide .team.team-lead h3 { color: var(--accent); }
.slide .team p {
  margin: 0;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  max-width: none;
  line-height: 1.45;
}

/* ---------- Closing compositions (distintas da capa) ---------- */
.slide-body.layout-closing { gap: var(--s3); }
.slide-body.layout-closing h1 {
  font-size: clamp(32px, 4.8vw, 44px);
  max-width: 16ch;
}
.slide .closing,
.closing-farewell-inner {
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
}
.slide-body.closing-farewell {
  justify-content: center;
  align-items: center;
  text-align: center;
}
.slide-body.closing-farewell h1 {
  font-size: clamp(28px, 4.2vw, 40px);
  max-width: 14ch;
  margin: 0 auto;
}
.slide-body.closing-farewell .sub {
  margin: 0 auto;
  max-width: 32ch;
}
.slide-body.layout-closing .cta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--s2);
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--card-border, var(--border)));
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-display);
}
.slide-body.closing-farewell .cta-chip {
  margin-top: var(--s3);
  padding: 14px 28px;
  background: var(--accent);
  color: #0a0a0a;
  border-color: var(--accent);
  font-size: 15px;
}

/* Curtain — card frosted; wash full-bleed no slide inteiro */
.slide > .closing-curtain-wash {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 72%),
    radial-gradient(ellipse at 90% 100%, color-mix(in srgb, var(--accent-2, var(--accent)) 26%, transparent), transparent 68%),
    radial-gradient(ellipse at 10% 70%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 55%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, transparent) 0%, transparent 40%, color-mix(in srgb, var(--bg-soft, var(--card-bg)) 45%, transparent) 100%);
}
.slide-body.closing-curtain {
  position: relative;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-bottom: calc(var(--safe-bottom) + var(--s3));
  padding-top: var(--s3);
  overflow: visible;
}
.closing-curtain-card {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  margin: 0 auto;
  padding: var(--s5) var(--s5);
  border-radius: 24px;
  background: color-mix(in srgb, var(--bg-soft) 48%, transparent);
  border: 1px solid color-mix(in srgb, #fff 22%, transparent);
  backdrop-filter: blur(28px) brightness(0.65);
  -webkit-backdrop-filter: blur(28px) brightness(0.65);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
  text-align: center;
}
.slide[data-mode="light"] .closing-curtain-card,
[data-mode="light"] .slide .closing-curtain-card {
  background: color-mix(in srgb, #ffffff 82%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, rgba(15, 23, 42, 0.1));
  backdrop-filter: blur(22px) brightness(1.06);
  -webkit-backdrop-filter: blur(22px) brightness(1.06);
  box-shadow: 0 22px 56px color-mix(in srgb, var(--accent) 12%, rgba(15, 23, 42, 0.12));
}
.slide-body.closing-curtain h1 {
  font-size: clamp(28px, 4.2vw, 40px);
  max-width: 14ch;
  margin: 0;
}
.slide-body.closing-curtain .sub {
  margin: 0;
  max-width: 30ch;
}
.slide-body.closing-curtain .cta-chip {
  margin-top: var(--s1);
  padding: 14px 28px;
  background: var(--accent);
  color: #0a0a0a;
  border-color: var(--accent);
  font-size: 15px;
}

/* Recap strip — copy à esquerda, chips em coluna à direita */
.slide-body.closing-recap-strip {
  align-items: stretch;
  text-align: left;
  justify-content: stretch;
  padding-bottom: calc(var(--safe-bottom) + var(--s2));
}
.closing-recap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--s5);
  width: 100%;
  height: 100%;
  min-height: 0;
  align-items: stretch;
}
.closing-recap-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--s3);
  min-width: 0;
  max-width: none;
}
.slide-body.closing-recap-strip h1 {
  text-align: left;
  max-width: 12ch;
  font-size: clamp(32px, 4.6vw, 44px);
  margin: 0;
}
.slide-body.closing-recap-strip .sub {
  margin: 0;
  text-align: left;
  max-width: 28ch;
  color: var(--text-dim);
}
.slide-body.closing-recap-strip .cta-chip {
  align-self: flex-start;
  margin-top: var(--s1);
  padding: 14px 26px;
  background: var(--accent);
  color: #0a0a0a;
  border-color: var(--accent);
  border-radius: 999px;
  font-size: 15px;
}
.closing-recap-strip {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  min-height: 0;
  height: 100%;
  justify-content: center;
}
.closing-recap-chip {
  margin: 0;
  flex: 0 0 auto;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--card-border, var(--border)));
  background: var(--card-bg, var(--bg-soft));
  min-height: 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: inset 3px 0 0 var(--accent);
}
.closing-recap-chip:first-child {
  background: color-mix(in srgb, var(--accent) 10%, var(--card-bg, var(--bg-soft)));
  border-color: color-mix(in srgb, var(--accent) 35%, var(--card-border, var(--border)));
}
.closing-recap-num {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent);
  line-height: 1.4;
  padding-top: 2px;
}
.closing-recap-text {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  font-weight: 600;
}

/* CTA band — copy em split + faixa inferior full-bleed */
.slide-body.closing-cta-band {
  align-items: stretch;
  text-align: left;
  justify-content: stretch;
  padding-bottom: 0;
  margin-left: calc(var(--pad) * -1);
  margin-right: calc(var(--pad) * -1);
  margin-bottom: calc((var(--pad) + 8px) * -1);
  width: calc(100% + var(--pad) * 2);
}
.closing-band {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.closing-band-copy {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--s5);
  align-items: start;
  padding: var(--s5) var(--pad) var(--s4);
  width: 100%;
  max-width: none;
  flex: 0 0 auto;
  min-height: 0;
}
.closing-band-lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s3);
  min-width: 0;
}
.closing-band-aside {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--s2);
  min-width: 0;
  padding-top: 4px;
  border-left: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  padding-left: var(--s4);
}
.slide-body.closing-cta-band h1 {
  text-align: left;
  font-size: clamp(34px, 5vw, 48px);
  max-width: 14ch;
  margin: 0;
  letter-spacing: -1.4px;
}
.slide-body.closing-cta-band .sub {
  margin: 0;
  text-align: left;
  max-width: 34ch;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text-dim);
  font-weight: 500;
}
.closing-band-lede-empty { opacity: 0.45; }
.closing-band-aside-label {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}
.closing-band-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.closing-band-points > li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 0;
  max-width: none;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
  font-weight: 600;
}
.closing-band-point-num {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
  line-height: 1.45;
  padding-top: 1px;
}
.closing-band-point-text {
  flex: 1;
  min-width: 0;
}
.closing-band-bar {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: 22px var(--pad);
  background: var(--accent);
  color: #0a0a0a;
  min-height: 92px;
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 28%, transparent);
}
.closing-band-bar .cta-chip {
  margin: 0;
  background: #0a0a0a;
  border: 2px solid #0a0a0a;
  color: #fff;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 15px;
}
.closing-band-mark {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #0a0a0a;
  opacity: 0.85;
}
.slide[data-theme="forest"] .closing-band-bar {
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent-2, var(--accent)) 70%, var(--accent)));
}

/* Stamp — carimbo tipográfico */
.slide-body.closing-stamp {
  align-items: center;
  text-align: left;
  justify-content: center;
  padding-bottom: calc(var(--safe-bottom) + var(--s3));
  padding-top: var(--s2);
}
.closing-stamp {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: var(--s4);
  width: min(100%, 860px);
  margin: 0 auto;
  height: auto;
  max-height: 100%;
  align-items: center;
  min-height: 0;
}
.closing-stamp-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s3);
  min-width: 0;
}
.slide-body.closing-stamp h1 {
  text-align: left;
  font-size: clamp(32px, 4.8vw, 44px);
  max-width: 12ch;
  margin: 0;
  letter-spacing: -1.2px;
}
.slide-body.closing-stamp .sub {
  margin: 0;
  text-align: left;
  max-width: 30ch;
  color: var(--text-dim);
}
.slide-body.closing-stamp .cta-chip {
  margin-top: var(--s1);
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #0a0a0a;
  font-size: 15px;
  box-shadow: none;
}
.closing-stamp-seal {
  justify-self: center;
  align-self: center;
  width: min(100%, 220px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 3px solid var(--accent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, var(--card-bg, var(--bg-soft)));
  color: var(--text);
  box-shadow:
    0 0 0 8px color-mix(in srgb, var(--card-bg, var(--bg-soft)) 100%, transparent),
    0 0 0 10px color-mix(in srgb, var(--accent) 45%, transparent);
  transform: rotate(-8deg);
}
.closing-stamp-mark {
  font-family: var(--font-display);
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  line-height: 1.2;
  padding: 16px;
  text-transform: uppercase;
  color: var(--accent);
}

/* Signature — créditos em duas colunas */
.slide-body.closing-signature {
  align-items: center;
  text-align: left;
  justify-content: center;
  padding-bottom: calc(var(--safe-bottom) + var(--s4));
  padding-top: var(--s3);
}
.closing-signature {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--s4);
  align-items: center;
  width: min(100%, 820px);
  margin: 0 auto;
  max-width: none;
}
.closing-sig-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s3);
  min-width: 0;
}
.closing-sig-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--s2);
  min-width: 0;
  border-left: 2px solid color-mix(in srgb, var(--accent) 50%, transparent);
  padding-left: var(--s4);
}
.closing-sig-rule {
  width: min(140px, 48%);
  height: 4px;
  background: var(--accent);
  margin: var(--s1) 0 0;
  border-radius: 1px;
}
.slide-body.closing-signature h1 {
  text-align: left;
  font-size: clamp(32px, 4.6vw, 44px);
  max-width: 13ch;
  font-weight: 700;
  letter-spacing: -1.4px;
  margin: 0;
}
.slide-body.closing-signature .sub {
  margin: 0;
  text-align: left;
  font-size: 17px;
  max-width: 26ch;
  opacity: 1;
  color: var(--text-dim);
  line-height: 1.45;
  font-weight: 500;
}
.closing-sig-side-empty { opacity: 0.45; }
.closing-sig-meta {
  margin: 0;
  font-size: 13px;
  color: var(--text);
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.75;
}
.slide-body.closing-signature .cta-chip { display: none; }

/* —— Diferenciação por look (escopo no .slide — não vaza para miniaturas irmãs) —— */
.slide[data-theme="glass"] {
  border-color: color-mix(in srgb, var(--accent) 25%, var(--card-border));
}
.slide[data-theme="forest"] h1,
.slide[data-theme="forest"] h2 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}
.slide[data-theme="brutal"],
.slide[data-theme="neo-brutal"],
.slide[data-theme="memphis"] {
  border: var(--brutal, 4px) solid var(--card-border);
  border-radius: 0;
  /* Sombra offset no canvas vaza amarelo fora do slide; fica só nos elementos internos */
  box-shadow: none;
}

/* Material neo-brutal — tema (não composição): caixas, barras, sombra offset */

/* Empilhado: título + slot de imagem no estilo brutal; resto do layout normal */
.slide[data-theme="brutal"] .slide-body.cover-stack .cover-stack-copy,
.slide[data-theme="neo-brutal"] .slide-body.cover-stack .cover-stack-copy {
  /* reserva mínima para sombra do título */
  padding-right: 8px;
  padding-bottom: 6px;
}
.slide[data-theme="brutal"] .cover-stack-col,
.slide[data-theme="neo-brutal"] .cover-stack-col {
  /* reserva para sombra offset do slot (evita clip no .slide) */
  padding-right: 10px;
  padding-bottom: 10px;
}
.slide[data-theme="brutal"] .slide-body.cover-stack h1,
.slide[data-theme="neo-brutal"] .slide-body.cover-stack h1 {
  display: inline-block;
  border: 4px solid var(--text);
  background: var(--accent);
  color: #0a0a0a;
  padding: var(--s2) var(--s3);
  box-shadow: 5px 5px 0 color-mix(in srgb, var(--accent-2, #ffd93d) 90%, #000);
  max-width: min(22ch, 100%);
  width: auto;
  font-size: clamp(32px, 4.6vw, 48px);
  letter-spacing: -1.5px;
  margin: 0;
  border-radius: 0;
  font-weight: 800;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.slide[data-theme="brutal"] .slide-body.cover-stack .sub,
.slide[data-theme="neo-brutal"] .slide-body.cover-stack .sub {
  display: block;
  border: none;
  background: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  color: var(--text);
  max-width: 42ch;
  font-size: 20px;
  font-weight: 700;
  opacity: 1;
}
.slide[data-theme="brutal"] .cover-stack-media,
.slide[data-theme="neo-brutal"] .cover-stack-media {
  border-radius: 0;
  border: 4px solid var(--text);
  box-shadow: 6px 6px 0 color-mix(in srgb, var(--accent-2, #ffd93d) 90%, #000);
  overflow: hidden;
}
.slide[data-theme="brutal"] .cover-stack-media.img-slot-empty,
.slide[data-theme="neo-brutal"] .cover-stack-media.img-slot-empty {
  background: var(--card-bg);
  border: 4px dashed var(--text);
  box-shadow: 6px 6px 0 color-mix(in srgb, var(--accent-2, #ffd93d) 90%, #000);
}

/* —— Conteúdo (não capa / não encerramento): títulos + painéis/imagens —— */
.slide[data-theme="brutal"] .slide-body:not(.layout-title):not(.layout-closing) h1,
.slide[data-theme="neo-brutal"] .slide-body:not(.layout-title):not(.layout-closing) h1,
.slide[data-theme="brutal"] .slide-body:not(.layout-title):not(.layout-closing) h2,
.slide[data-theme="neo-brutal"] .slide-body:not(.layout-title):not(.layout-closing) h2 {
  display: inline-block;
  width: auto;
  max-width: min(34ch, 100%);
  border: 4px solid var(--text);
  background: var(--accent);
  color: #0a0a0a;
  padding: 10px 16px;
  box-shadow: 5px 5px 0 color-mix(in srgb, var(--accent-2, #ffd93d) 90%, #000);
  border-radius: 0;
  margin: 0 8px 8px 0;
  letter-spacing: -1px;
  font-weight: 800;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  line-height: 1.15;
}
/* Reserva para sombra offset — evita clip no .slide */
.slide[data-theme="brutal"] .slide-body:not(.layout-title):not(.layout-closing),
.slide[data-theme="neo-brutal"] .slide-body:not(.layout-title):not(.layout-closing) {
  padding-right: 10px;
  padding-bottom: 12px;
}
/* Section: carimbo largo o bastante para o título (não empilhar sílabas) */
.slide[data-theme="brutal"] .slide-body.layout-section .section-copy,
.slide[data-theme="neo-brutal"] .slide-body.layout-section .section-copy {
  max-width: min(36ch, 90%);
  width: 100%;
  align-items: center;
  padding-right: 12px;
  padding-bottom: 12px;
  box-sizing: border-box;
}
.slide[data-theme="brutal"] .slide-body.layout-section h1,
.slide[data-theme="neo-brutal"] .slide-body.layout-section h1 {
  max-width: min(28ch, 100%);
  width: auto;
  text-align: center;
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 auto 8px;
}
.slide[data-theme="brutal"] .slide-body:not(.layout-title):not(.layout-closing) .bullets-head,
.slide[data-theme="neo-brutal"] .slide-body:not(.layout-title):not(.layout-closing) .bullets-head,
.slide[data-theme="brutal"] .slide-body:not(.layout-title):not(.layout-closing) .stats-head,
.slide[data-theme="neo-brutal"] .slide-body:not(.layout-title):not(.layout-closing) .stats-head,
.slide[data-theme="brutal"] .slide-body:not(.layout-title):not(.layout-closing) .tc-head,
.slide[data-theme="neo-brutal"] .slide-body:not(.layout-title):not(.layout-closing) .tc-head,
.slide[data-theme="brutal"] .slide-body:not(.layout-title):not(.layout-closing) .cmp-head,
.slide[data-theme="neo-brutal"] .slide-body:not(.layout-title):not(.layout-closing) .cmp-head,
.slide[data-theme="brutal"] .slide-body:not(.layout-title):not(.layout-closing) .features-head,
.slide[data-theme="neo-brutal"] .slide-body:not(.layout-title):not(.layout-closing) .features-head,
.slide[data-theme="brutal"] .slide-body:not(.layout-title):not(.layout-closing) .bento-head,
.slide[data-theme="neo-brutal"] .slide-body:not(.layout-title):not(.layout-closing) .bento-head,
.slide[data-theme="brutal"] .slide-body:not(.layout-title):not(.layout-closing) .tl-head,
.slide[data-theme="neo-brutal"] .slide-body:not(.layout-title):not(.layout-closing) .tl-head,
.slide[data-theme="brutal"] .slide-body:not(.layout-title):not(.layout-closing) .proc-head,
.slide[data-theme="neo-brutal"] .slide-body:not(.layout-title):not(.layout-closing) .proc-head,
.slide[data-theme="brutal"] .slide-body:not(.layout-title):not(.layout-closing) .icl-head,
.slide[data-theme="neo-brutal"] .slide-body:not(.layout-title):not(.layout-closing) .icl-head,
.slide[data-theme="brutal"] .slide-body:not(.layout-title):not(.layout-closing) .pricing-head,
.slide[data-theme="neo-brutal"] .slide-body:not(.layout-title):not(.layout-closing) .pricing-head,
.slide[data-theme="brutal"] .slide-body:not(.layout-title):not(.layout-closing) .team-head,
.slide[data-theme="neo-brutal"] .slide-body:not(.layout-title):not(.layout-closing) .team-head,
.slide[data-theme="brutal"] .slide-body:not(.layout-title):not(.layout-closing) .imgtext-copy,
.slide[data-theme="neo-brutal"] .slide-body:not(.layout-title):not(.layout-closing) .imgtext-copy {
  padding-right: 10px;
  padding-bottom: 8px;
}

/* Painel “04” / cards / campos */
.slide[data-theme="brutal"] .bullets-aside,
.slide[data-theme="neo-brutal"] .bullets-aside {
  padding-right: 8px;
  padding-bottom: 8px;
}
.slide[data-theme="brutal"] .bullets-panel,
.slide[data-theme="neo-brutal"] .bullets-panel {
  border-radius: 0;
  border: 4px solid var(--text);
  background: var(--accent);
  box-shadow: 6px 6px 0 color-mix(in srgb, var(--accent-2, #ffd93d) 90%, #000);
}
.slide[data-theme="brutal"] .bullets-mark,
.slide[data-theme="neo-brutal"] .bullets-mark {
  color: #0a0a0a;
}
.slide[data-theme="brutal"] .bullets-aside-label,
.slide[data-theme="neo-brutal"] .bullets-aside-label {
  color: #0a0a0a;
  opacity: 0.75;
}
.slide[data-theme="brutal"] .bl-num,
.slide[data-theme="neo-brutal"] .bl-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2em;
  padding: 4px 6px;
  border: 2px solid var(--text);
  background: var(--accent-2, #ffd93d);
  color: #111;
  box-shadow: 3px 3px 0 var(--text);
  border-radius: 0;
  font-weight: 800;
}
.slide[data-theme="brutal"] .stats,
.slide[data-theme="neo-brutal"] .stats,
.slide[data-theme="brutal"] .features,
.slide[data-theme="neo-brutal"] .features,
.slide[data-theme="brutal"] .bento,
.slide[data-theme="neo-brutal"] .bento,
.slide[data-theme="brutal"] .columns,
.slide[data-theme="neo-brutal"] .columns,
.slide[data-theme="brutal"] .compare,
.slide[data-theme="neo-brutal"] .compare,
.slide[data-theme="brutal"] .teamrow,
.slide[data-theme="neo-brutal"] .teamrow,
.slide[data-theme="brutal"] .pricing,
.slide[data-theme="neo-brutal"] .pricing {
  padding-right: 8px;
  padding-bottom: 8px;
}
.slide[data-theme="brutal"] .stat,
.slide[data-theme="neo-brutal"] .stat,
.slide[data-theme="brutal"] .feat,
.slide[data-theme="neo-brutal"] .feat,
.slide[data-theme="brutal"] .bento-card,
.slide[data-theme="neo-brutal"] .bento-card,
.slide[data-theme="brutal"] .col,
.slide[data-theme="neo-brutal"] .col,
.slide[data-theme="brutal"] .cmp,
.slide[data-theme="neo-brutal"] .cmp,
.slide[data-theme="brutal"] .callout,
.slide[data-theme="neo-brutal"] .callout,
.slide[data-theme="brutal"] .chartbox,
.slide[data-theme="neo-brutal"] .chartbox,
.slide[data-theme="brutal"] .proc-num,
.slide[data-theme="neo-brutal"] .proc-num,
.slide[data-theme="brutal"] .icl-num,
.slide[data-theme="neo-brutal"] .icl-num,
.slide[data-theme="brutal"] .icl-ico,
.slide[data-theme="neo-brutal"] .icl-ico,
.slide[data-theme="brutal"] .avatar,
.slide[data-theme="neo-brutal"] .avatar,
.slide[data-theme="brutal"] .price,
.slide[data-theme="neo-brutal"] .price,
.slide[data-theme="brutal"] .team,
.slide[data-theme="neo-brutal"] .team {
  border-radius: 0;
  border: 3px solid var(--text);
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--accent-2, #ffd93d) 90%, #000);
}
.slide[data-theme="brutal"] .feat,
.slide[data-theme="neo-brutal"] .feat {
  border-top: 3px solid var(--text);
  background: var(--card-bg);
  padding: var(--s3);
}
.slide[data-theme="brutal"] .stat,
.slide[data-theme="neo-brutal"] .stat {
  background: var(--card-bg);
  overflow: hidden;
}
.slide[data-theme="brutal"] .bento-card,
.slide[data-theme="neo-brutal"] .bento-card,
.slide[data-theme="brutal"] .bento-card.bento-hero,
.slide[data-theme="neo-brutal"] .bento-card.bento-hero,
.slide[data-theme="brutal"] .bento-card:nth-child(1),
.slide[data-theme="neo-brutal"] .bento-card:nth-child(1) {
  border-radius: 0;
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--accent-2, #ffd93d) 90%, #000);
}
.slide[data-theme="brutal"] .proc-num,
.slide[data-theme="neo-brutal"] .proc-num,
.slide[data-theme="brutal"] .icl-num,
.slide[data-theme="neo-brutal"] .icl-num {
  background: var(--accent);
  color: #0a0a0a;
  font-weight: 800;
}
.slide[data-theme="brutal"] .col-num,
.slide[data-theme="neo-brutal"] .col-num {
  display: inline-block;
  padding: 4px 8px;
  border: 2px solid var(--text);
  background: var(--accent-2, #ffd93d);
  color: #111;
  box-shadow: 3px 3px 0 var(--text);
  border-radius: 0;
  font-weight: 800;
}
.slide[data-theme="brutal"] .tl-year,
.slide[data-theme="neo-brutal"] .tl-year {
  display: inline-block;
  padding: 4px 10px;
  border: 2px solid var(--text);
  background: var(--accent);
  color: #0a0a0a;
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--accent-2, #ffd93d) 90%, #000);
  border-radius: 0;
  font-weight: 800;
}
.slide[data-theme="brutal"] .tl-dot,
.slide[data-theme="neo-brutal"] .tl-dot {
  border-radius: 0;
  border: 2px solid var(--text);
  background: var(--accent-2, #ffd93d);
  box-shadow: 2px 2px 0 var(--text);
}
.slide[data-theme="brutal"] .callout-title,
.slide[data-theme="neo-brutal"] .callout-title {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  border: 4px solid var(--text);
  background: var(--accent);
  color: #0a0a0a;
  padding: 10px 14px;
  box-shadow: 5px 5px 0 color-mix(in srgb, var(--accent-2, #ffd93d) 90%, #000);
  border-radius: 0;
  margin: 0 auto;
}
.slide[data-theme="brutal"] .callout,
.slide[data-theme="neo-brutal"] .callout {
  padding: var(--s4);
  background: var(--card-bg);
}
.slide[data-theme="brutal"] .layout-big-number .big,
.slide[data-theme="neo-brutal"] .layout-big-number .big {
  display: inline-block;
  border: 4px solid var(--text);
  background: var(--accent);
  color: #0a0a0a;
  padding: 8px 16px;
  box-shadow: 6px 6px 0 color-mix(in srgb, var(--accent-2, #ffd93d) 90%, #000);
  border-radius: 0;
  line-height: 1;
}
.slide[data-theme="brutal"] .section-mark,
.slide[data-theme="neo-brutal"] .section-mark {
  border: 3px solid var(--text);
  background: var(--accent-2, #ffd93d);
  color: #111;
  box-shadow: 4px 4px 0 var(--text);
  border-radius: 0;
  padding: 6px 14px;
  font-size: clamp(48px, 9vw, 88px);
  line-height: 1;
  margin-bottom: 4px;
}
.slide[data-theme="brutal"] .team-num,
.slide[data-theme="neo-brutal"] .team-num {
  display: inline-block;
  padding: 4px 8px;
  border: 2px solid var(--text);
  background: var(--accent-2, #ffd93d);
  color: #111;
  box-shadow: 3px 3px 0 var(--text);
  border-radius: 0;
  font-weight: 800;
}
/* Imagens de conteúdo (slots / avatar) — sombra só onde há margem */
.slide[data-theme="brutal"] .slide-body:not(.layout-title):not(.layout-closing) .img-slot:not(.imgph),
.slide[data-theme="neo-brutal"] .slide-body:not(.layout-title):not(.layout-closing) .img-slot:not(.imgph),
.slide[data-theme="brutal"] .slide-body:not(.layout-title):not(.layout-closing) .avatar,
.slide[data-theme="neo-brutal"] .slide-body:not(.layout-title):not(.layout-closing) .avatar {
  border-radius: 0;
  border: 3px solid var(--text);
  box-shadow: 5px 5px 0 color-mix(in srgb, var(--accent-2, #ffd93d) 90%, #000);
}
.slide[data-theme="brutal"] .slide-body:not(.layout-title):not(.layout-closing) .img-slot-empty:not(.imgph),
.slide[data-theme="neo-brutal"] .slide-body:not(.layout-title):not(.layout-closing) .img-slot-empty:not(.imgph) {
  border: 3px dashed var(--text);
  background: var(--card-bg);
}
/* image-text é full-bleed: moldura sem sombra offset */
.slide[data-theme="brutal"] .layout-image-text .imgph,
.slide[data-theme="neo-brutal"] .layout-image-text .imgph {
  border: 4px solid var(--text);
  border-right-width: 4px;
  box-shadow: none;
  border-radius: 0;
}
.slide[data-theme="brutal"] .layout-image-text .imgph.img-slot-empty,
.slide[data-theme="neo-brutal"] .layout-image-text .imgph.img-slot-empty {
  border: 4px dashed var(--text);
  box-shadow: none;
}

.slide[data-theme="brutal"] .slide-body.cover-centered h1,
.slide[data-theme="brutal"] .slide-body.cover-split h1,
.slide[data-theme="brutal"] .slide-body.cover-bento h1,
.slide[data-theme="brutal"] .slide-body.cover-glass h1,
.slide[data-theme="neo-brutal"] .slide-body.cover-centered h1,
.slide[data-theme="neo-brutal"] .slide-body.cover-split h1,
.slide[data-theme="neo-brutal"] .slide-body.cover-bento h1,
.slide[data-theme="neo-brutal"] .slide-body.cover-glass h1 {
  display: inline-block;
  border: 4px solid var(--text);
  background: var(--accent);
  color: #0a0a0a;
  padding: var(--s3) var(--s4);
  box-shadow: 8px 8px 0 color-mix(in srgb, var(--accent-2, #ffd93d) 90%, #000);
  max-width: min(32ch, 100%);
  width: auto;
  font-size: clamp(34px, 4.8vw, 52px);
  letter-spacing: -1.5px;
  margin: 0;
  border-radius: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  line-height: 1.12;
}
.slide[data-theme="brutal"] .slide-body.cover-centered .sub,
.slide[data-theme="brutal"] .slide-body.cover-split .sub,
.slide[data-theme="brutal"] .slide-body.cover-bento .sub,
.slide[data-theme="brutal"] .slide-body.cover-glass .sub,
.slide[data-theme="neo-brutal"] .slide-body.cover-centered .sub,
.slide[data-theme="neo-brutal"] .slide-body.cover-split .sub,
.slide[data-theme="neo-brutal"] .slide-body.cover-bento .sub,
.slide[data-theme="neo-brutal"] .slide-body.cover-glass .sub {
  display: inline-block;
  margin: 0;
  background: var(--accent-2, #ffd93d);
  color: #111;
  padding: 10px 16px;
  border: 3px solid var(--text);
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--accent-2, #ffd93d) 90%, #000);
  font-weight: 700;
  font-size: 17px;
  max-width: 32ch;
  opacity: 1;
  border-radius: 0;
}
.slide[data-theme="brutal"] .slide-body.cover-bento h1,
.slide[data-theme="neo-brutal"] .slide-body.cover-bento h1 {
  max-width: min(26ch, 100%);
  font-size: clamp(32px, 4.5vw, 48px);
  padding: var(--s2) var(--s3);
  box-shadow: 5px 5px 0 color-mix(in srgb, var(--accent-2, #ffd93d) 90%, #000);
}
.slide[data-theme="brutal"] .slide-body.cover-centered .lede,
.slide[data-theme="brutal"] .slide-body.cover-split .lede,
.slide[data-theme="brutal"] .slide-body.cover-bento .lede,
.slide[data-theme="brutal"] .slide-body.cover-glass .lede,
.slide[data-theme="neo-brutal"] .slide-body.cover-centered .lede,
.slide[data-theme="neo-brutal"] .slide-body.cover-split .lede,
.slide[data-theme="neo-brutal"] .slide-body.cover-bento .lede,
.slide[data-theme="neo-brutal"] .slide-body.cover-glass .lede {
  font-weight: 600;
  opacity: 0.9;
  color: var(--text-dim);
}

/* Split / soft: painel de imagem (não editorial) */
.slide[data-theme="brutal"] .cover-aside:not(.cover-aside-editorial) .cover-aside-panel,
.slide[data-theme="neo-brutal"] .cover-aside:not(.cover-aside-editorial) .cover-aside-panel {
  border-radius: 0;
  border: 4px solid var(--text);
  background: var(--accent);
  box-shadow: 10px 10px 0 color-mix(in srgb, var(--accent-2, #ffd93d) 90%, #000);
  overflow: visible;
}
.slide[data-theme="brutal"] .cover-aside:not(.cover-aside-editorial),
.slide[data-theme="neo-brutal"] .cover-aside:not(.cover-aside-editorial) {
  padding-right: 12px;
  padding-bottom: 12px;
  overflow: visible;
}
.slide[data-theme="brutal"] .cover-aside:not(.cover-aside-editorial) .cover-aside-panel.img-slot-filled,
.slide[data-theme="neo-brutal"] .cover-aside:not(.cover-aside-editorial) .cover-aside-panel.img-slot-filled {
  overflow: visible;
}
/* Slot vazio: superfície de tinta — accent só em título/CTA */
.slide[data-theme="brutal"] .cover-aside:not(.cover-aside-editorial) .cover-aside-panel.img-slot-empty,
.slide[data-theme="neo-brutal"] .cover-aside:not(.cover-aside-editorial) .cover-aside-panel.img-slot-empty,
.slide[data-theme="brutal"] .cover-aside-empty:not(.cover-aside-editorial) .cover-aside-panel,
.slide[data-theme="neo-brutal"] .cover-aside-empty:not(.cover-aside-editorial) .cover-aside-panel {
  background: var(--card-bg);
  border: 4px dashed var(--text);
  box-shadow: 8px 8px 0 color-mix(in srgb, var(--accent-2, #ffd93d) 90%, #000);
}
.slide[data-theme="brutal"] .cover-aside:not(.cover-aside-editorial) .cover-aside-mark,
.slide[data-theme="neo-brutal"] .cover-aside:not(.cover-aside-editorial) .cover-aside-mark {
  color: #0a0a0a;
  letter-spacing: -4px;
}
.slide[data-theme="brutal"] .cover-aside-empty:not(.cover-aside-editorial) .cover-aside-mark,
.slide[data-theme="neo-brutal"] .cover-aside-empty:not(.cover-aside-editorial) .cover-aside-mark {
  color: var(--text);
}

/* Editorial: manifesto tipográfico — tinta, não carimbo coral */
.slide[data-theme="brutal"] .cover-aside-editorial,
.slide[data-theme="neo-brutal"] .cover-aside-editorial {
  padding-right: 12px;
  padding-bottom: 12px;
  overflow: visible;
}
.slide[data-theme="brutal"] .cover-aside-editorial .cover-aside-panel,
.slide[data-theme="neo-brutal"] .cover-aside-editorial .cover-aside-panel {
  border-radius: 0;
  border: 4px solid var(--text);
  background: var(--card-bg);
  box-shadow: 8px 8px 0 color-mix(in srgb, var(--accent-2, #ffd93d) 90%, #000);
  color: var(--text);
  overflow: visible;
}
.slide[data-theme="brutal"] .cover-aside-editorial .cover-aside-pull,
.slide[data-theme="neo-brutal"] .cover-aside-editorial .cover-aside-pull {
  color: var(--text);
  font-weight: 600;
}
.slide[data-theme="brutal"] .cover-aside-editorial .cover-aside-kicker,
.slide[data-theme="neo-brutal"] .cover-aside-editorial .cover-aside-kicker {
  color: var(--accent);
}
.slide[data-theme="brutal"] .cover-aside-editorial .cover-aside-panel::before,
.slide[data-theme="neo-brutal"] .cover-aside-editorial .cover-aside-panel::before {
  background: var(--accent);
  height: 4px;
  left: 20px;
  right: 20px;
}
.slide[data-theme="brutal"] .slide-body.cover-editorial h1,
.slide[data-theme="neo-brutal"] .slide-body.cover-editorial h1 {
  /* tipografia editorial, sem caixa stamp */
  display: block;
  border: none;
  background: none;
  box-shadow: none;
  color: var(--text);
  padding: 0;
  max-width: 12ch;
  font-size: clamp(48px, 7vw, 72px);
}
.slide[data-theme="brutal"] .slide-body.cover-editorial .sub,
.slide[data-theme="neo-brutal"] .slide-body.cover-editorial .sub {
  display: block;
  border: none;
  background: none;
  box-shadow: none;
  color: var(--text-dim);
  padding: 0;
  font-weight: 600;
}

/* Painéis (bento): mosaico inteiro brutal */
.slide[data-theme="brutal"] .cover-bento-mosaic,
.slide[data-theme="neo-brutal"] .cover-bento-mosaic {
  gap: 12px;
  padding-right: 10px;
  padding-bottom: 10px;
  overflow: visible;
}
.slide[data-theme="brutal"] .cover-bento-aside,
.slide[data-theme="neo-brutal"] .cover-bento-aside {
  overflow: visible;
}
.slide[data-theme="brutal"] .cover-bento-tile,
.slide[data-theme="neo-brutal"] .cover-bento-tile {
  border-radius: 0;
  border: 3px solid var(--text);
  overflow: visible;
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--accent-2, #ffd93d) 90%, #000);
}
.slide[data-theme="brutal"] .cover-bento-tile-a.img-slot-empty,
.slide[data-theme="neo-brutal"] .cover-bento-tile-a.img-slot-empty {
  border: 3px dashed var(--text);
  background: var(--card-bg);
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--accent-2, #ffd93d) 90%, #000);
}
.slide[data-theme="brutal"] .cover-bento-tile-a.cover-bento-has-img,
.slide[data-theme="neo-brutal"] .cover-bento-tile-a.cover-bento-has-img {
  overflow: visible;
  border-style: solid;
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--accent-2, #ffd93d) 90%, #000);
}
.slide[data-theme="brutal"] .cover-bento-tile-b,
.slide[data-theme="neo-brutal"] .cover-bento-tile-b {
  background: var(--accent);
  border-color: var(--text);
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--accent-2, #ffd93d) 90%, #000);
  color: #0a0a0a;
}
.slide[data-theme="brutal"] .cover-bento-tile-b .cover-bento-stat,
.slide[data-theme="neo-brutal"] .cover-bento-tile-b .cover-bento-stat {
  color: #0a0a0a;
}
.slide[data-theme="brutal"] .cover-bento-tile-b .cover-bento-stat-label,
.slide[data-theme="neo-brutal"] .cover-bento-tile-b .cover-bento-stat-label {
  color: #0a0a0a;
  opacity: 0.75;
}
.slide[data-theme="brutal"] .cover-bento-tile-c,
.slide[data-theme="neo-brutal"] .cover-bento-tile-c {
  background: var(--card-bg);
  border-color: var(--text);
}

/* Glass + brutal: ainda é glass (blur/transparência), só mais duro e sem redondo */
.slide[data-theme="brutal"] .cover-glass-card,
.slide[data-theme="neo-brutal"] .cover-glass-card {
  border-radius: 0;
  background: color-mix(in srgb, var(--card-bg) 55%, transparent);
  border: 4px solid var(--text);
  backdrop-filter: blur(28px) brightness(0.62);
  -webkit-backdrop-filter: blur(28px) brightness(0.62);
  box-shadow: 10px 10px 0 color-mix(in srgb, var(--accent-2, #ffd93d) 90%, #000);
  gap: var(--s3);
  padding: var(--s4) var(--s5);
}
.slide[data-theme="brutal"][data-mode="light"] .cover-glass-card,
.slide[data-theme="neo-brutal"][data-mode="light"] .cover-glass-card,
[data-mode="light"] .slide[data-theme="brutal"] .cover-glass-card,
[data-mode="light"] .slide[data-theme="neo-brutal"] .cover-glass-card {
  background: color-mix(in srgb, #ffffff 68%, transparent);
  border: 4px solid var(--text);
  backdrop-filter: blur(24px) brightness(1.06);
  -webkit-backdrop-filter: blur(24px) brightness(1.06);
  box-shadow: 10px 10px 0 color-mix(in srgb, var(--accent-2, #ffd93d) 90%, #000);
}
.slide[data-theme="brutal"] .slide-body.cover-glass h1,
.slide[data-theme="neo-brutal"] .slide-body.cover-glass h1 {
  max-width: min(30ch, 100%);
  font-size: clamp(32px, 4.6vw, 48px);
  padding: var(--s2) var(--s3);
  box-shadow: 5px 5px 0 color-mix(in srgb, var(--accent-2, #ffd93d) 90%, #000);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.slide[data-theme="brutal"] .slide-body.cover-glass .lede,
.slide[data-theme="neo-brutal"] .slide-body.cover-glass .lede {
  color: var(--text-dim);
  max-width: 32ch;
}
.slide[data-theme="brutal"] > .cover-glass-bg:not(.cover-glass-has-img),
.slide[data-theme="neo-brutal"] > .cover-glass-bg:not(.cover-glass-has-img),
.slide[data-theme="brutal"][data-mode="light"] > .cover-glass-bg:not(.cover-glass-has-img),
.slide[data-theme="neo-brutal"][data-mode="light"] > .cover-glass-bg:not(.cover-glass-has-img) {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 22%, transparent) 0 28%, transparent 28%),
    linear-gradient(0deg, color-mix(in srgb, var(--accent-2, #ffd93d) 28%, transparent) 0 22%, transparent 22%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 10px,
      color-mix(in srgb, var(--text) 6%, transparent) 10px,
      color-mix(in srgb, var(--text) 6%, transparent) 11px
    ),
    var(--slide-bg, var(--card-bg));
}
.stage .slide[data-theme="brutal"] .cover-glass-bg.img-slot-empty,
.stage .slide[data-theme="neo-brutal"] .cover-glass-bg.img-slot-empty {
  box-shadow: inset 0 0 0 4px var(--text);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 22%, transparent) 0 28%, transparent 28%),
    linear-gradient(0deg, color-mix(in srgb, var(--accent-2, #ffd93d) 28%, transparent) 0 22%, transparent 22%),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 10px,
      color-mix(in srgb, var(--text) 6%, transparent) 10px,
      color-mix(in srgb, var(--text) 6%, transparent) 11px
    ),
    var(--slide-bg, var(--card-bg));
}
.stage .slide[data-theme="brutal"] .cover-glass-bg.img-slot-empty:hover,
.stage .slide[data-theme="neo-brutal"] .cover-glass-bg.img-slot-empty:hover {
  box-shadow: inset 0 0 0 4px var(--accent);
  transform: none;
}
.stage .slide[data-theme="brutal"] .img-slot-chip-glass,
.stage .slide[data-theme="neo-brutal"] .img-slot-chip-glass {
  border-radius: 0;
  border: 3px solid var(--text);
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--accent-2, #ffd93d) 90%, #000);
  background: var(--accent-2, #ffd93d);
  color: #111;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Placeholder empty: contraste brutal (ícone + label) */
.slide[data-theme="brutal"] .img-slot-empty .img-slot-ph,
.slide[data-theme="neo-brutal"] .img-slot-empty .img-slot-ph {
  gap: 14px;
}
.slide[data-theme="brutal"] .img-slot-empty .img-slot-ph-ico,
.slide[data-theme="neo-brutal"] .img-slot-empty .img-slot-ph-ico {
  color: var(--text);
  opacity: 1;
  width: clamp(40px, 7vw, 56px);
  height: clamp(40px, 7vw, 56px);
}
.slide[data-theme="brutal"] .img-slot-empty .img-slot-ph-label,
.slide[data-theme="neo-brutal"] .img-slot-empty .img-slot-ph-label {
  opacity: 1;
  color: var(--text);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: clamp(11px, 1.4vw, 13px);
}
.slide[data-theme="brutal"] .imgph.img-slot-empty,
.slide[data-theme="neo-brutal"] .imgph.img-slot-empty {
  border-radius: 0;
  border: 4px dashed var(--text);
  background: var(--card-bg);
  box-shadow: 8px 8px 0 color-mix(in srgb, var(--accent-2, #ffd93d) 90%, #000);
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* Editor: hover brutal sem translate (não quebra stack/mosaico) */
.stage .slide[data-theme="brutal"] .img-slot-empty,
.stage .slide[data-theme="neo-brutal"] .img-slot-empty {
  box-shadow: 8px 8px 0 color-mix(in srgb, var(--accent-2, #ffd93d) 90%, #000);
  transition: box-shadow 0.12s ease, border-color 0.12s ease;
}
.stage .slide[data-theme="brutal"] .img-slot-empty:hover,
.stage .slide[data-theme="neo-brutal"] .img-slot-empty:hover {
  box-shadow: 10px 10px 0 color-mix(in srgb, var(--accent-2, #ffd93d) 90%, #000);
  transform: none;
  border-color: var(--accent);
}
/* cover-stack: sombra brutal do slot (padding no col evita clip) */
.stage .slide[data-theme="brutal"] .cover-stack-media.img-slot-empty,
.stage .slide[data-theme="neo-brutal"] .cover-stack-media.img-slot-empty {
  box-shadow: 6px 6px 0 color-mix(in srgb, var(--accent-2, #ffd93d) 90%, #000);
}
.stage .slide[data-theme="brutal"] .cover-stack-media.img-slot-empty:hover,
.stage .slide[data-theme="neo-brutal"] .cover-stack-media.img-slot-empty:hover {
  box-shadow: 8px 8px 0 color-mix(in srgb, var(--accent-2, #ffd93d) 90%, #000);
  border-color: var(--accent);
}
.stage .slide[data-theme="brutal"] .cover-bento-tile-a.img-slot-empty,
.stage .slide[data-theme="neo-brutal"] .cover-bento-tile-a.img-slot-empty {
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--accent-2, #ffd93d) 90%, #000);
}
.stage .slide[data-theme="brutal"] .cover-bento-tile-a.img-slot-empty:hover,
.stage .slide[data-theme="neo-brutal"] .cover-bento-tile-a.img-slot-empty:hover {
  box-shadow: 6px 6px 0 color-mix(in srgb, var(--accent-2, #ffd93d) 90%, #000);
}
.stage .slide[data-theme="brutal"] .img-slot-empty:hover .img-slot-ph-ico,
.stage .slide[data-theme="neo-brutal"] .img-slot-empty:hover .img-slot-ph-ico {
  color: var(--accent);
  transform: none;
}
.stage .slide[data-theme="brutal"] .img-slot-empty:hover .img-slot-ph-label,
.stage .slide[data-theme="neo-brutal"] .img-slot-empty:hover .img-slot-ph-label {
  color: var(--accent);
}
.slide[data-theme="brutal"] .slide-body.closing-stamp .cta-chip,
.slide[data-theme="neo-brutal"] .slide-body.closing-stamp .cta-chip {
  border-radius: 0;
  border: 3px solid var(--text);
  box-shadow: 4px 4px 0 var(--text);
  background: var(--accent-2, #ffd93d);
  color: #111;
}
.slide[data-theme="brutal"] .closing-stamp-seal,
.slide[data-theme="neo-brutal"] .closing-stamp-seal {
  border-radius: 0;
  border: 4px solid var(--text);
  background: var(--accent);
  color: #0a0a0a;
  box-shadow: 8px 8px 0 var(--text);
  transform: rotate(-8deg);
}
.slide[data-theme="brutal"] .closing-stamp-mark,
.slide[data-theme="neo-brutal"] .closing-stamp-mark {
  color: #0a0a0a;
}
.slide[data-theme="editorial"] h1 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.slide[data-theme="editorial"] .eyebrow {
  font-style: italic;
  letter-spacing: 0.08em;
}
/* ---------- Panel ---------- */
.panel {
  grid-area: panel;
  border-left: none;
  background: var(--bg-soft);
  padding: 0;
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.panel h4 { margin: 0 0 12px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); }
.panel label { display: block; font-size: 12px; color: var(--text-dim); margin: 14px 0 6px; }
.panel textarea, .panel input[type="text"], .panel select {
  width: 100%; background: var(--panel); border: 1px solid var(--border);
  color: var(--text); border-radius: 8px; padding: 8px 10px; font-family: inherit; font-size: 13px;
}
.panel textarea { min-height: 70px; resize: vertical; }
.panel .hint { font-size: 11px; color: var(--text-dim); margin-top: 6px; }
.editable { outline: none; }
.editable:focus { box-shadow: inset 0 0 0 2px var(--accent-soft); border-radius: 6px; }

/* Editor: hover só elevação em [data-hot] */
.stage .slide [data-hot] {
  border-radius: 14px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.stage .slide [data-hot]:hover:not(:focus):not(:focus-within) {
  transform: translateY(-3px) scale(1.008);
  box-shadow:
    0 3px 8px rgba(0, 0, 0, 0.12),
    0 14px 32px rgba(0, 0, 0, 0.22);
}

/* ---------- Guias de coluna (largura laterais) ---------- */
.col-guide {
  position: absolute;
  top: 56px;
  bottom: 0;
  width: 10px;
  z-index: 40;
  cursor: col-resize;
  touch-action: none;
  background: transparent;
}
.col-guide::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: color-mix(in srgb, var(--border) 55%, transparent);
  opacity: 0.45;
  transition: opacity 0.15s ease, background 0.15s ease, width 0.15s ease, box-shadow 0.15s ease;
}
.col-guide:hover::after,
.col-guide.is-dragging::after,
body.resizing-cols .col-guide.is-dragging::after {
  opacity: 1;
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 50%, transparent);
}
.col-guide-film { left: var(--filmstrip-w); transform: translateX(-50%); }
.col-guide-panel { right: var(--panel-w); transform: translateX(50%); }
.app.filmstrip-hidden .col-guide-film { display: none; }
body.resizing-cols { cursor: col-resize; user-select: none; }
body.resizing-cols * { cursor: col-resize !important; }

/* ---------- Seções do painel (uma categoria por vez) ---------- */
.panel-tabs {
  display: flex;
  flex: 0 0 auto;
  gap: 2px;
  padding: 10px 10px 0;
  border-bottom: none;
  position: relative;
}
.panel-tab-ink {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 40px;
  border-radius: 2px 2px 0 0;
  background: var(--accent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 45%, transparent);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), width 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 2;
}
.panel-tabs::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 1px;
  background: color-mix(in srgb, var(--border) 55%, transparent);
  opacity: 0.5;
  pointer-events: none;
}
.panel-tab {
  flex: 1;
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 6px 12px;
  cursor: pointer;
  position: relative;
  border-radius: 8px 8px 0 0;
  transition: color 0.15s ease, background 0.15s ease;
}
.panel-tab:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.panel-tab.active {
  color: var(--accent);
}
.panel-tab.active::after { display: none; }
.psec.is-active {
  animation: animStagger 0.28s ease both;
}
.panel-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.psec {
  display: none;
  padding: 16px 18px 20px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  border-bottom: none;
}
.psec.is-active,
.psec:not([hidden]).is-active {
  display: block;
}
.psec.model-panel.is-active,
.psec.model-panel:not([hidden]).is-active {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 12px;
  gap: 0;
}
.model-panel-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 4px;
}
.model-preview-wrap {
  flex-shrink: 0;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.model-panel .lg-item.is-preview:not(.active) {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent);
}
.psec[hidden] { display: none !important; }

.icon-btn.active-tog {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.psec .composition-block {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.psec .composition-block h4 {
  margin-bottom: 4px;
}
.psec .composition-block .hint {
  margin: 0 0 10px;
}
.composition-gallery {
  grid-template-columns: repeat(2, 1fr);
}

.model-gallery-hint {
  margin: 0 0 12px;
}
.model-role-hint {
  margin: 0 0 10px;
}
.model-group {
  margin-bottom: 16px;
}
.model-group:last-child {
  margin-bottom: 4px;
}
.model-group-title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.layout-modal-body {
  padding: 12px 20px 20px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.layout-modal-body .model-group {
  margin-bottom: 18px;
}
.layout-modal-body .layout-gallery {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* ---------- Galeria de modelos do painel ---------- */
.layout-gallery {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
}
.lg-item {
  display: flex; flex-direction: column; align-items: stretch; gap: 6px;
  position: relative;
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px; cursor: pointer; color: var(--text-dim);
  font-size: 11px; text-align: center;
  transition: border-color 0.12s ease, transform 0.12s ease, background 0.12s ease;
}
.lg-item:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--text); }
.lg-item.active { border-color: var(--accent); background: var(--accent-soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }
.lg-item.is-suggested:not(.active) {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
}
.lg-suggest-chip {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  pointer-events: none;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--accent);
  color: #0a0a0f;
  line-height: 1.2;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--accent) 35%, transparent);
}
.lg-item.active .lg-suggest-chip {
  background: color-mix(in srgb, var(--accent) 88%, #fff);
}
.lg-item.has-plus {
  padding-top: 10px;
}
.lg-plus {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  color: var(--text);
  background: color-mix(in srgb, var(--panel) 75%, var(--accent) 25%);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.12s ease, background 0.12s ease, transform 0.12s ease;
}
.lg-plus .ui-ico { width: 12px; height: 12px; }
.lg-item:hover .lg-plus,
.lg-item:focus-visible .lg-plus {
  opacity: 1;
  background: var(--accent);
  color: #0a0a0f;
  border-color: var(--accent);
  transform: scale(1.05);
}
.lg-item.active .lg-plus {
  background: var(--accent);
  color: #0a0a0f;
  border-color: var(--accent);
  opacity: 1;
}

.composition-offer {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 320;
  max-width: min(520px, calc(100vw - 32px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  animation: popIn 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.composition-offer-copy {
  flex: 1 1 200px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
}
.composition-offer-copy em {
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}
.composition-offer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.composition-offer .btn.compact,
.btn.compact {
  padding: 7px 12px;
  font-size: 12px;
}
.lg-item span { line-height: 1.1; font-weight: 600; }
.lg-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: var(--slide-bg, var(--card-bg));
  border: 1px solid var(--card-border, var(--border));
  pointer-events: none;
}
.lg-preview-scale {
  position: absolute;
  top: 0;
  left: 0;
  width: 960px;
  height: 540px;
  transform-origin: top left;
  transform: scale(0.12);
}
.lg-preview .slide {
  width: 960px;
  height: 540px;
  box-shadow: none;
  animation: none;
  border-radius: 0;
}
.lg-preview [contenteditable],
.lg-preview .editable { outline: none !important; box-shadow: none !important; caret-color: transparent; }
.layout-modal-card .layout-gallery { padding: 20px; overflow-y: auto; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.layout-modal-card .lg-item { font-size: 12px; }
.row-actions { display: flex; gap: 8px; margin-top: 8px; }
.row-actions .btn { flex: 1; justify-content: center; }
.btn.danger { background: transparent; border: 1px solid color-mix(in srgb, #ef4444 50%, var(--border)); color: #f87171; }
.btn.danger:hover { background: rgba(239,68,68,0.12); border-color: #ef4444; color: #fca5a5; }
.btn.danger.disabled, .btn.danger:disabled { opacity: 0.35; cursor: default; }
.btn.danger.disabled:hover { background: transparent; border-color: color-mix(in srgb, #ef4444 50%, var(--border)); color: #f87171; }

/* ---------- Confirmação de exclusão ---------- */
.confirm-pop {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}
.confirm-card {
  width: 340px;
  max-width: 100%;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  text-align: center;
  animation: popIn 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.confirm-card p {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  text-align: center;
}
.confirm-card .row-actions {
  justify-content: center;
}

.rewrite-sel-card {
  width: 420px;
  max-width: 100%;
  text-align: left;
}
.rewrite-sel-card:has(.ai-compare-col.is-proposal:not([hidden])) {
  width: min(560px, 96vw);
}
.ai-compare {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
}
.ai-compare:has(.ai-compare-col.is-proposal:not([hidden])) {
  grid-template-columns: 1fr 1fr;
}
.ai-compare-label {
  display: block;
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.ai-compare-col.is-proposal .rewrite-sel-preview.is-new,
.ai-compare-col.is-proposal .suggest-img-frame {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.rewrite-sel-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 650;
  color: var(--text);
  text-align: left;
}
.rewrite-sel-preview {
  margin: 0;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-dim);
  background: color-mix(in srgb, var(--text) 5%, transparent);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: left;
  max-height: 120px;
  overflow: auto;
}
.rewrite-sel-label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--text-dim);
  text-align: left;
}
.rewrite-sel-instr {
  min-height: 64px;
  margin-bottom: 10px;
}
.rewrite-sel-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}
.rewrite-sel-chip {
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
}
.rewrite-sel-chip:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  color: var(--text);
}
.rewrite-sel-status {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--text-dim);
  text-align: left;
}
.rewrite-sel-status.is-error {
  color: #f87171;
}
.rewrite-sel-card .row-actions,
.suggest-img-card .row-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.suggest-img-card {
  width: min(560px, 96vw);
  max-width: 100%;
  text-align: left;
}
.suggest-img-sub {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--text-dim);
  text-align: left;
}
.ai-compare-imgs {
  grid-template-columns: 1fr 1fr;
}
.suggest-img-frame {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: color-mix(in srgb, var(--text) 5%, transparent);
  display: grid;
  place-items: center;
}
.suggest-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.suggest-img-empty {
  font-size: 12px;
  color: var(--text-dim);
  padding: 12px;
  text-align: center;
}
.suggest-img-query {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--text-dim);
  text-align: left;
}

@media (max-width: 560px) {
  .ai-compare:has(.ai-compare-col.is-proposal:not([hidden])),
  .ai-compare-imgs {
    grid-template-columns: 1fr;
  }
}

.share-card {
  width: min(520px, 96vw);
  max-width: 100%;
  text-align: left;
}
.share-sub {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-dim);
  text-align: left;
}
.share-note {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--text-dim);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  border-radius: 8px;
  padding: 8px 10px;
  text-align: left;
}
.share-mode-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 14px;
}
.share-mode-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 88%, transparent);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.share-mode-btn:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  background: color-mix(in srgb, var(--accent) 10%, var(--panel));
}
.share-mode-label {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.share-mode-blurb {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
}
.share-row {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
}
.share-row .img-picker-url {
  flex: 1;
  min-width: 0;
}
.share-card .row-actions {
  justify-content: flex-end;
  gap: 8px;
}

.layout-insert-card {
  width: min(360px, 100%);
  text-align: center;
}
.layout-insert-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--text);
}
.layout-insert-card p {
  margin: 0 0 16px;
  color: var(--text-dim);
}
.layout-insert-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.layout-insert-actions .btn {
  width: 100%;
  justify-content: center;
}
.layout-insert-actions .layout-insert-cancel {
  margin-top: 4px;
  opacity: 0.85;
}

/* ---------- Modal de escolha de modelo ---------- */
.layout-modal {
  position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(3px);
  animation: fadeBackdrop 0.2s ease both;
}
.layout-modal-card {
  width: 720px; max-width: 94vw; max-height: 86vh; overflow: hidden;
  background: var(--panel); border: 1px solid var(--border); border-radius: 16px;
  display: flex; flex-direction: column; box-shadow: 0 40px 100px rgba(0,0,0,0.55);
  animation: popIn 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.lm-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.lm-head h3 { margin: 0; font-size: 17px; }
.layout-modal-card .layout-gallery { padding: 20px; overflow-y: auto; grid-template-columns: repeat(3, 1fr); gap: 12px; }

/* ---------- Segmented control (estilo/fonte) ---------- */
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg-btn {
  flex: 1 1 auto; min-width: 56px;
  background: var(--panel); border: 1px solid var(--border); color: var(--text-dim);
  border-radius: 9px; padding: 7px 10px; font-size: 12px; font-family: inherit; cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.seg-btn:hover { color: var(--text); border-color: var(--accent); }
.seg-btn.active {
  background: var(--accent);
  color: #0a0a0f;
  border-color: var(--accent);
  font-weight: 600;
  box-shadow: none;
}
/* —— Painel de temas (galeria + preview) —— */
.theme-panel {
  display: flex; flex-direction: column; gap: 12px;
  --panel-card: rgba(255,255,255,0.03);
}
/* Barra de navegação estilo — sub-guias + modo */
.theme-panel-header {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 12px; padding: 4px 5px;
}
.theme-subtabs {
  display: flex; gap: 2px;
}
.theme-subtab {
  border: none; background: transparent; color: var(--text-dim);
  font-family: inherit; font-size: 12px; font-weight: 600;
  padding: 6px 14px; border-radius: 8px; cursor: pointer;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.theme-subtab:hover { color: var(--text); background: var(--accent-soft); }
.theme-subtab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; box-shadow: 0 2px 10px var(--accent-soft);
}
/* Separador vertical entre sub-tabs e toggle */
.theme-mode-sep {
  width: 1px; height: 20px; background: var(--border);
}
.theme-mode-toggle {
  display: flex; gap: 2px;
}
.theme-mode-btn {
  border: none; background: transparent; color: var(--text-dim);
  font-family: inherit; font-size: 11px; font-weight: 600;
  padding: 5px 10px; border-radius: 7px; cursor: pointer;
  display: flex; align-items: center; gap: 4px;
  transition: background .15s ease, color .15s ease;
}
.theme-mode-btn::before {
  content: ""; display: inline-block; width: 12px; height: 12px;
  border-radius: 50%;
  opacity: 0.5;
}
.theme-mode-btn[data-mode="dark"]::before { background: #0e0e18; box-shadow: inset 0 0 0 1px #444; }
.theme-mode-btn[data-mode="light"]::before { background: #f0e8d8; box-shadow: inset 0 0 0 1px #aaa; }
.theme-mode-btn.on { background: var(--panel); color: var(--text); }
.theme-mode-btn.on::before { opacity: 1; }

.theme-subpanel { display: flex; flex-direction: column; gap: 12px; flex: 1; min-height: 0; }
.theme-subpanel.hidden { display: none; }

/* Layout galeria + preview */
.theme-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, 160px);
  gap: 10px;
  align-items: start;
}
.theme-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.theme-gallery .lg-item {
  font-family: inherit;
  width: 100%;
  appearance: none;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  cursor: pointer;
  text-align: center;
  transition: border-color .18s ease, box-shadow .18s ease, transform .15s ease, background .15s ease;
}
.theme-gallery .lg-item:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transform: translateY(-1px);
}
.theme-gallery .lg-item.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent), 0 6px 20px var(--accent-soft);
}
.theme-gallery .lg-item.is-preview {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
}
.theme-gallery .lg-item .look-item-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.look-item { text-align: center; gap: 2px; width: 100%; }
.look-item .look-name {
  font-size: 12px; font-weight: 700; display: block;
  margin-top: 2px; letter-spacing: -0.02em;
}

/* Specimen Gamma-style — 6 camadas (página, slide, forma, título, corpo, link) */
.theme-specimen {
  width: 100%;
  height: 100%;
  display: block;
}
.theme-specimen-page {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10%;
  box-sizing: border-box;
  background: var(--stage-bg, #111);
}
.theme-specimen-slide {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6%;
  padding: 14% 12%;
  box-sizing: border-box;
  background: var(--slide-bg, #222);
  border: var(--slide-border, 1px solid transparent);
  border-radius: var(--slide-radius, 12px);
  /* Offset brutal estoura o thumb — no specimen só borda; sem sombra deslocada */
  box-shadow: none;
  overflow: hidden;
  min-width: 0;
}
.theme-specimen-title {
  font-family: var(--slide-font-display, system-ui, sans-serif);
  font-size: clamp(10px, 2.6cqw, 14px);
  font-weight: var(--title-weight, 700);
  letter-spacing: var(--title-tracking, -0.03em);
  line-height: var(--title-leading, 1.2);
  color: var(--title-color, #fff);
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.theme-specimen-body {
  font-family: var(--slide-font, system-ui, sans-serif);
  font-size: clamp(8px, 1.9cqw, 11px);
  line-height: 1.35;
  font-weight: var(--body-weight, 500);
  color: var(--body-color, #aaa);
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
}
.theme-specimen-link {
  font-weight: 600;
}

/* Preview do look — compacto no final */
.theme-preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.theme-preview-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25), inset 0 0 20px rgba(0,0,0,0.2);
}
.theme-preview-stage .tp-scale {
  position: absolute;
  top: 0; left: 0;
  width: 960px; height: 540px;
  transform-origin: top left;
}
.theme-preview-stage .slide {
  width: 960px; height: 540px;
  box-shadow: none; animation: none;
  border: none;
}
.theme-preview-name {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.02em;
}
.theme-preview-tag {
  margin: 0;
  font-size: 11px;
  color: var(--text-dim);
  font-style: italic;
  line-height: 1.3;
  text-align: center;
}

/* Marca — Cor */
.theme-brand-block {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.theme-brand-block label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex; align-items: center; gap: 6px;
}
.theme-brand-block label::after {
  content: ""; flex: 1; height: 1px;
  background: var(--border);
}
.theme-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.theme-swatch {
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.theme-swatch:hover { transform: scale(1.15); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.theme-swatch.on { border-color: var(--text); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px currentColor; }
.theme-accent-row { margin-top: 4px; }
.theme-accent-row input[type="color"] {
  width: 100%; height: 36px;
  border-radius: 10px; border: 1px solid var(--border);
  background: var(--panel); cursor: pointer;
  padding: 2px;
}
/* Tipografia */
.theme-typo-block {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}
.theme-typo-block label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex; align-items: center; gap: 6px; margin-bottom: 10px;
}
.theme-typo-block label::after {
  content: ""; flex: 1; height: 1px;
  background: var(--border);
}
.font-sample {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.3;
  text-align: center;
}
.font-seg { gap: 8px; }
.font-btn {
  flex: 1 1 calc(33.33% - 10px);
  min-width: 72px;
  min-height: 42px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background .15s ease, color .15s ease, transform .12s ease, box-shadow .15s ease;
}
.font-btn:hover { transform: translateY(-1px); }
.font-btn.active { box-shadow: 0 4px 14px var(--accent-soft); transform: scale(1.03); }

/* Botão salvar tema discreto */
.theme-save-btn {
  width: 100%; margin-top: 14px;
  font-size: 12px; font-weight: 500; color: var(--text-dim);
  background: transparent; border: 1px dashed var(--border);
  border-radius: 10px; padding: 10px; cursor: pointer; font-family: inherit;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.theme-save-btn:hover { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }

@media (max-width: 520px) {
  .theme-split { grid-template-columns: 1fr; }
  .theme-preview-wrap { position: static; }
}

/* Contraste tipográfico por preset */
html[data-font="Space Grotesk"] .slide h1,
html[data-font="Space Grotesk"] .slide h2 { letter-spacing: -0.06em; }
html[data-font="Outfit"] .slide h1,
html[data-font="Outfit"] .slide h2 { letter-spacing: -0.04em; font-weight: 600; }
html[data-font="Nunito"] .slide h1,
html[data-font="Nunito"] .slide h2 { letter-spacing: -0.02em; font-weight: 800; }
html[data-font="Literata"] .slide h1,
html[data-font="Literata"] .slide h2 { letter-spacing: -0.015em; font-weight: 600; }
html[data-font="Fraunces"] .slide h1,
html[data-font="Fraunces"] .slide h2 { letter-spacing: -0.02em; font-weight: 600; }
html[data-font="monospace"] .slide h1,
html[data-font="monospace"] .slide h2 { letter-spacing: -0.05em; font-weight: 600; }

/* ---------- FAB e drawer mobile ---------- */
.fab-edit {
  display: none; position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 52px; height: 52px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
  font-size: 22px; box-shadow: 0 10px 28px var(--accent-soft); cursor: pointer;
  align-items: center; justify-content: center;
}
.fab-edit .ui-ico { width: var(--icon-lg); height: var(--icon-lg); }
.scrim { display: none; }

/* ---------- Start / criar (studio) ---------- */
.start {
  position: fixed; inset: 0; z-index: 50;
  overflow: auto;
  color: var(--text);
  font-family: var(--font);
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(34, 211, 238, 0.16), transparent 55%),
    radial-gradient(640px 420px at 88% 88%, rgba(94, 234, 212, 0.08), transparent 55%),
    linear-gradient(165deg, #06060a 0%, #0b0c12 48%, #08080e 100%);
}
.start::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}
.start-shell {
  position: relative; z-index: 1;
  min-height: 100%;
  display: flex; flex-direction: column;
  padding: 20px clamp(20px, 4vw, 48px) 40px;
}
.start-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: clamp(28px, 6vh, 56px);
  animation: startIn .55s ease both;
}
.start-brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit;
}
.start-mark {
  width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--accent), #5eead4);
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.22);
  color: #041018;
}
.start-mark svg { width: 18px; height: 18px; }
.start-name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 22px; letter-spacing: -0.7px;
  color: var(--text);
}
.start-back {
  font-size: 13px; color: var(--text-dim); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s ease, border-color .15s ease;
  display: inline-flex; align-items: center; gap: 4px;
}
.start-back .ui-ico { width: var(--icon-xs); height: var(--icon-xs); }
.start-back:hover { color: var(--text); border-color: var(--text-dim); }

.start-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}
.start-copy {
  max-width: 480px;
  animation: startIn .65s ease .06s both;
}
.start-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5.2vw, 52px);
  line-height: 1.05;
  letter-spacing: -1.4px;
  color: var(--text);
}
.start-lead {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-dim);
  max-width: 38ch;
}
.start-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 8px;
}
.start textarea {
  width: 100%;
  min-height: 110px;
  background: rgba(18, 18, 28, 0.72);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.45;
  resize: vertical;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.start textarea::placeholder { color: color-mix(in srgb, var(--text-dim) 75%, transparent); }
.start .opts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 22px;
}
.start .opts label {
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.start .opts input,
.start .opts select {
  background: rgba(18, 18, 28, 0.72);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
}
.start-cta {
  width: 100%;
  justify-content: center;
  padding: 14px 18px;
  font-size: 15px;
  border-radius: 12px;
}
.start-note {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-dim);
}
.start-note.is-error {
  color: #f87171;
}
.hint-inline {
  font-weight: 400;
  color: var(--text-dim);
  font-size: 11px;
}
.start-notes {
  min-height: 72px;
  margin-bottom: 4px;
}
.notes-file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}
.notes-file-row .btn.compact {
  padding: 7px 12px;
  font-size: 12px;
  border-radius: 9px;
}
.notes-file-status {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.35;
}
.notes-file-status.is-error {
  color: #f87171;
}
.start-input {
  width: 100%;
  background: rgba(18, 18, 28, 0.72);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 14px;
}
.start textarea.start-notes,
.start #pastedNotes {
  width: 100%;
  background: rgba(18, 18, 28, 0.72);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
}
.outline-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: min(52vh, 520px);
  overflow: auto;
  padding-right: 4px;
  margin-bottom: 16px;
}
.outline-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(18, 18, 28, 0.45);
}
.outline-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.outline-num {
  font-size: 11px;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.outline-title {
  flex: 1 1 120px;
  min-width: 0;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 8px;
}
.outline-title:focus {
  border-color: var(--border);
  outline: none;
  background: rgba(0, 0, 0, 0.25);
}
.outline-layout {
  background: rgba(18, 18, 28, 0.72);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
}
.outline-card-btns {
  display: flex;
  gap: 4px;
}
.outline-card-btns button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 8px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.outline-card-btns button .ui-ico { width: var(--icon-xs); height: var(--icon-xs); }
.outline-card-btns button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.outline-bullets {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  resize: vertical;
}
.outline-detail {
  width: 100%;
  margin-top: 8px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px dashed color-mix(in srgb, var(--border) 80%, var(--accent));
  color: var(--text-dim);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 12px;
  line-height: 1.45;
  resize: vertical;
}
.outline-detail:focus {
  color: var(--text);
  border-style: solid;
  outline: none;
}
.outline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.outline-actions .btn.primary {
  margin-left: auto;
}

/* Painel IA */
.ai-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 12px;
}
.ai-head {
  margin-bottom: 14px;
}
.ai-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.ai-slide-name {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ai-chip {
  font-size: 11px;
  line-height: 1;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  color: var(--text-dim);
  background: color-mix(in srgb, var(--text) 4%, transparent);
}
.ai-block {
  margin-bottom: 14px;
}
.ai-block-label {
  display: block;
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.ai-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ai-action {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.ai-action:hover:not(:disabled) {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
}
.ai-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.ai-action.is-loading {
  opacity: 1;
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.ai-action.is-warn .ai-action-label {
  font-weight: 600;
}
.ai-action-ico {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: 12px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  flex-shrink: 0;
  line-height: 0;
}
.ai-action-ico .ui-ico { width: var(--icon-sm); height: var(--icon-sm); }
.ai-action-label {
  flex: 1;
  min-width: 0;
}
.ai-tone {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--text) 3%, transparent);
}
.ai-tone-btn {
  border: 0;
  border-radius: 8px;
  padding: 8px 4px;
  font: inherit;
  font-size: 11px;
  font-weight: 550;
  color: var(--text-dim);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.ai-tone-btn:hover:not(:disabled):not(.is-active) {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 6%, transparent);
}
.ai-tone-btn.is-active {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}
.ai-tone-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.ai-compose {
  margin: 0 0 16px;
  padding: 0 0 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}
.ai-foot {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
}
.ai-foot-left {
  text-align: left;
}
.ai-block-danger {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed color-mix(in srgb, var(--border) 70%, transparent);
}
.ai-instruction {
  width: 100%;
  min-height: 72px;
  margin: 0 0 10px;
  background: color-mix(in srgb, var(--text) 4%, transparent);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  resize: vertical;
}
.ai-instruction:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 55%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.ai-apply {
  width: 100%;
  justify-content: center;
}
.ai-panel-status {
  font-size: 12px;
  color: var(--text-dim);
  margin: 10px 0 0;
  line-height: 1.35;
}
.ai-panel-status.is-error {
  color: #f87171;
}

.start-visual {
  position: relative;
  min-height: 280px;
  animation: startFloat .9s ease .12s both;
}
.start-stage {
  position: relative;
  border-radius: 18px;
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.04), transparent 40%),
    rgba(12, 12, 20, 0.55);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.start-stage::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% 20%;
  height: 60%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 65%);
  pointer-events: none;
}
.start-slide-scale {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  container-type: inline-size;
  overflow: hidden;
}
.start-slide-scale .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--slide-w);
  height: var(--slide-h);
  max-width: none;
  /* 960px no denominador → número unitless (scale exige isso) */
  transform: scale(calc(100cqw / 960px));
  transform-origin: top left;
  pointer-events: none;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  animation: none;
}

@keyframes startIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes startFloat {
  from { opacity: 0; transform: translateY(22px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- AI thinking overlay (create flow) ---------- */
.start-shell.is-thinking {
  overflow: hidden;
}
.ai-think {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(ellipse 55% 45% at 50% 35%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  animation: aiThinkFade .35s ease both;
}
.ai-think-panel {
  width: min(420px, 100%);
  text-align: center;
  animation: startIn .5s ease .05s both;
}
.ai-think-orb {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
}
.ai-think-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  animation: aiThinkPulse 2.4s ease-out infinite;
}
.ai-think-ring--delay {
  animation-delay: 1.1s;
}
.ai-think-spark {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #041018;
  background: linear-gradient(145deg, var(--accent), #5eead4);
  box-shadow:
    0 12px 32px color-mix(in srgb, var(--accent) 35%, transparent),
    0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
  animation: aiThinkGlow 2.8s ease-in-out infinite;
}
.ai-think-spark svg {
  width: 22px;
  height: 22px;
}
.ai-think-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.ai-think-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 4vw, 28px);
  letter-spacing: -0.6px;
  line-height: 1.15;
  color: var(--text);
}
.ai-think-step {
  margin: 0 0 8px;
  min-height: 1.4em;
  font-size: 15px;
  color: color-mix(in srgb, var(--accent) 75%, var(--text));
  opacity: 0;
  transform: translateY(6px);
}
.ai-think-step.is-in {
  animation: aiThinkStepIn .45s ease both;
}
.ai-think-hint {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-dim);
  max-width: 36ch;
  margin-inline: auto;
}
.ai-think-skeleton {
  display: grid;
  gap: 10px;
  margin: 16px 0 22px;
}
.ai-think-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  background: color-mix(in srgb, var(--bg-soft) 70%, transparent);
  text-align: left;
  animation: aiThinkCardIn .55s ease both;
}
.ai-think-card:nth-child(1) { animation-delay: .12s; }
.ai-think-card:nth-child(2) { animation-delay: .22s; }
.ai-think-card:nth-child(3) { animation-delay: .32s; }
.ai-think-card span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--text) 8%, transparent) 0%,
    color-mix(in srgb, var(--accent) 28%, transparent) 45%,
    color-mix(in srgb, var(--text) 8%, transparent) 90%
  );
  background-size: 200% 100%;
  animation: aiThinkShimmer 1.6s ease-in-out infinite;
}
.ai-think-card span:nth-child(1) { width: 42%; height: 10px; }
.ai-think-card span:nth-child(2) { width: 88%; animation-delay: .12s; }
.ai-think-card span:nth-child(3) { width: 64%; animation-delay: .24s; }
.ai-think-bar {
  height: 3px;
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in srgb, var(--text) 8%, transparent);
}
.ai-think-bar span {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--accent), #5eead4, transparent);
  animation: aiThinkBar 1.5s ease-in-out infinite;
}

@keyframes aiThinkFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes aiThinkPulse {
  0% { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(1.55); opacity: 0; }
}
@keyframes aiThinkGlow {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.05); filter: brightness(1.08); }
}
@keyframes aiThinkStepIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes aiThinkCardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes aiThinkShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
@keyframes aiThinkBar {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

@media (max-width: 900px) {
  .start-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .start-copy { max-width: none; }
  .start-stage { padding: 14px; }
  .start .opts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .start-top, .start-copy, .start-visual { animation: none; }
  .ai-think,
  .ai-think-panel,
  .ai-think-ring,
  .ai-think-spark,
  .ai-think-step,
  .ai-think-card,
  .ai-think-card span,
  .ai-think-bar span {
    animation: none !important;
  }
  .ai-think-step { opacity: 1; transform: none; }
  .ai-think-card { opacity: 1; transform: none; }
  .ai-think-bar span {
    width: 55%;
    transform: none;
    background: var(--accent);
  }
}


/* ---------- Empty state ---------- */
.empty-state {
  color: var(--text-dim);
  font-size: 18px;
  background: var(--panel);
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 40px 48px;
  text-align: center;
}

/* ---------- Microinteractions ---------- */
.panel input[type="color"]:focus, .panel input[type="text"]:focus,
.panel select:focus, .panel textarea:focus, .topbar input.theme-pick:focus,
.start textarea:focus, .start .opts input:focus, .start .opts select:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--accent-soft);
  border-color: var(--accent);
}
.btn:focus-visible, .topbar button:focus-visible, .thumb:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .app {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas:
      "topbar"
      "stage"
      "filmstrip";
  }
  .panel {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 70;
    width: min(360px, 88vw);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    border-left: 1px solid var(--border);
    box-shadow: -20px 0 60px rgba(0,0,0,0.5);
  }
  body.panel-open .panel { transform: translateX(0); }
  body.panel-open .scrim {
    display: block; position: fixed; inset: 0; z-index: 65;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(2px);
  }
  .fab-edit { display: flex; align-items: center; justify-content: center; }
  .col-guide { display: none !important; }
  .app.filmstrip-hidden {
    grid-template-areas:
      "topbar"
      "stage";
    grid-template-rows: auto 1fr;
  }
  .app.filmstrip-hidden .filmstrip { display: none; }
  .filmstrip {
    border-right: none;
    border-top: 1px solid var(--border);
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    gap: 10px;
    padding: 10px;
  }
  .filmstrip h4 { display: none; }
  .filmstrip .list { display: flex; gap: 10px; }
  .thumb {
    width: 150px;
    flex: 0 0 auto;
    margin-bottom: 0;
  }
  .thumb.drop-before::before,
  .thumb.drop-after::before {
    top: 12%;
    bottom: 12%;
    height: auto;
    width: 3px;
    left: auto;
    right: auto;
  }
  .thumb.drop-before::before { left: -8px; }
  .thumb.drop-after::before { right: -8px; left: auto; }
  .slide {
    width: min(92vw, 960px);
    height: calc(min(92vw, 960px) * 9 / 16);
    padding: 32px 36px;
  }
  .start-slide-scale .slide {
    width: var(--slide-w);
    height: var(--slide-h);
    max-width: none;
    padding: var(--pad);
    padding-bottom: calc(var(--pad) + 8px);
  }
  .slide h1 { font-size: 32px; }
  .slide h2 { font-size: 24px; }
  .slide .stats { grid-template-columns: 1fr; grid-template-rows: none; }
  .slide .stat.stat-lead,
  .slide .stat.stat-mid,
  .slide .stat.stat-sm { height: auto; min-height: 140px; }
  .slide .stat.stat-lead .v { font-size: 40px; }
  .slide .features { grid-template-columns: 1fr; }
  .slide .columns, .slide .compare, .slide .imgtext { grid-template-columns: 1fr; }
  .slide-body.layout-two-column .columns::before { display: none; }
  .slide .col.col-b {
    margin-right: 0;
    border-radius: 0 0 8px 8px;
  }
  .slide-body.layout-comparison .compare {
    grid-template-columns: 1fr;
    gap: var(--s2);
  }
  .slide-body.layout-comparison .cmp-vs {
    align-self: center;
    width: 100%;
    height: 44px;
  }
  .slide-body.layout-comparison .cmp-vs::before {
    top: 50%;
    bottom: auto;
    left: 8%;
    right: 8%;
    width: auto;
    height: 1px;
    transform: translateY(-50%);
    background: linear-gradient(
      to right,
      transparent,
      color-mix(in srgb, var(--accent) 35%, var(--border)) 18%,
      color-mix(in srgb, var(--accent) 35%, var(--border)) 82%,
      transparent
    );
  }
  .slide .bento { grid-template-columns: 1fr; grid-template-rows: none; }
  .slide .bento-card.bento-hero,
  .slide .bento-card:nth-child(1),
  .slide .bento-card:nth-child(2),
  .slide .bento-card:nth-child(3),
  .slide .bento-card:nth-child(4) {
    grid-column: 1;
    grid-row: auto;
    flex-direction: column;
  }
  .slide .bento-card.bento-hero,
  .slide .bento-card:nth-child(1) {
    justify-content: flex-start;
  }
  .slide .bento-card.bento-hero::before,
  .slide .bento-card:nth-child(1)::before {
    font-size: 56px;
    opacity: 0.08;
  }
  .slide .pricing { grid-template-columns: 1fr; }
  .slide .teamrow { grid-template-columns: 1fr; }
  .topbar { flex-wrap: wrap; height: auto; padding: 10px 14px; }
}

@media (max-width: 560px) {
  .topbar .brand { font-size: 16px; }
  .topbar input.theme-pick { display: none; }
}

/* ---------- Image Picker ---------- */
.img-picker {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(4, 4, 10, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: fadeBackdrop 0.2s ease both;
}
.img-picker:focus { outline: none; }
.img-picker-panel {
  width: min(480px, 100%);
  background:
    radial-gradient(600px 280px at 10% -20%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 55%),
    var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
  animation: popIn 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.img-picker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.img-picker-head h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
}
.img-picker-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.35;
}
.img-picker-close {
  flex: 0 0 auto;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  font-size: 16px;
  cursor: pointer;
  display: grid; place-items: center;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.img-picker-close .ui-ico { width: var(--icon-sm); height: var(--icon-sm); }
.img-picker-close:hover {
  color: var(--text);
  background: var(--bg-soft);
  border-color: var(--border);
}

.img-picker-zone {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 20px;
  border-radius: 14px;
  border: 1.5px dashed color-mix(in srgb, var(--border) 80%, var(--accent));
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
    color-mix(in srgb, var(--bg-soft) 70%, transparent);
  color: var(--text-dim);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  font: inherit;
  text-align: center;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.img-picker-zone:hover {
  border-color: var(--accent);
  color: var(--text);
}
.img-picker-zone.is-dragover {
  border-style: solid;
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, var(--bg-soft));
  transform: scale(1.01);
}
.img-picker-zone.has-img {
  border-style: solid;
  border-color: var(--border);
  padding: 0;
  background: #0a0a10;
}
.img-picker-zone-ico {
  color: var(--accent);
  opacity: 0.9;
  display: grid; place-items: center;
}
.img-picker-zone-ico .ui-ico {
  width: var(--icon-xl);
  height: var(--icon-xl);
}
.img-picker-zone-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.2px;
}
.img-picker-zone-hint {
  font-size: 12px;
  color: var(--text-dim);
  max-width: 28ch;
  line-height: 1.4;
}
.img-picker-preview {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.img-picker-zone-overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.18s ease;
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.img-picker-zone.has-img:hover .img-picker-zone-overlay,
.img-picker-zone.has-img.is-dragover .img-picker-zone-overlay {
  opacity: 1;
}

.img-picker-url-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.img-picker-url-block label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  font-weight: 600;
  margin: 0;
}
.img-picker-row { display: flex; gap: 8px; }
.img-picker-url {
  flex: 1;
  min-width: 0;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
}
.img-picker-url:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.img-picker-remove {
  appearance: none;
  border: none;
  background: transparent;
  color: color-mix(in srgb, #f87171 85%, var(--text-dim));
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 0 0;
  align-self: flex-start;
  transition: color 0.15s;
}
.img-picker-remove:hover { color: #fca5a5; }

/* ---------- Atalhos (ajuda) ---------- */
.shortcuts-help {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(4, 4, 10, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: fadeBackdrop 0.2s ease both;
}
.shortcuts-help-card {
  width: min(420px, 100%);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px 18px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
  animation: popIn 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.shortcuts-help-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.shortcuts-help-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.3px;
}
.shortcuts-help-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.shortcuts-help-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-dim);
}
.shortcuts-help-list li span:last-child {
  margin-left: auto;
  color: var(--text);
  font-weight: 500;
}
.shortcuts-help-list kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}