/* ==========================================================================
   AXIOVOZ STUDIO PRO — CSS DE INTERFACE & TIPOGRAFIA (EXTRAIDO DE INDEX.HTML)
   ========================================================================== */
/* KREAITORS STUDIO PRO — CSS ESTÁTICO DE ALTA PERFORMANCE (ZERO JIT) */

html, body { height: 100vh !important; max-height: 100vh !important; width: 100vw !important; max-width: 100vw !important; margin: 0px !important; padding: 0px !important; background-color: rgb(9, 9, 11) !important; overflow: hidden !important; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); }
.marker-highlight { display: inline-block; line-height: 1.06; vertical-align: baseline; padding: 0.02em 0.28em; margin: 0px 0.04em; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; background: linear-gradient(120deg, rgba(250, 204, 21, 0.45) 0%, rgba(250, 204, 21, 0.7) 100%); }
[contenteditable="true"]:hover { outline: rgba(255, 255, 255, 0.3) dashed 1px; outline-offset: 2px; cursor: text; }
[contenteditable="true"]:focus { outline: rgb(6, 182, 212) solid 2px; outline-offset: 3px; background: rgba(0, 0, 0, 0.4); border-radius: 4px; }
.safe-zone-overlay { position: absolute; inset: 24px; border: 1px dashed rgba(6, 182, 212, 0.4); pointer-events: none; z-index: 40; }
.effect-sticker-white { filter: drop-shadow(rgb(255, 255, 255) 2px 0px 0px) drop-shadow(rgb(255, 255, 255) -2px 0px 0px) drop-shadow(rgb(255, 255, 255) 0px 2px 0px) drop-shadow(rgb(255, 255, 255) 0px -2px 0px) drop-shadow(rgba(255, 255, 255, 0.85) 0px 0px 10px); }
.effect-sticker-cyan { filter: drop-shadow(rgb(6, 182, 212) 2px 0px 0px) drop-shadow(rgb(6, 182, 212) -2px 0px 0px) drop-shadow(rgb(6, 182, 212) 0px 2px 0px) drop-shadow(rgb(6, 182, 212) 0px -2px 0px) drop-shadow(rgba(6, 182, 212, 0.9) 0px 0px 12px); }
.effect-sticker-gold { filter: drop-shadow(rgb(245, 158, 11) 2px 0px 0px) drop-shadow(rgb(245, 158, 11) -2px 0px 0px) drop-shadow(rgb(245, 158, 11) 0px 2px 0px) drop-shadow(rgb(245, 158, 11) 0px -2px 0px) drop-shadow(rgba(245, 158, 11, 0.9) 0px 0px 12px); }
.effect-3d-shadow { filter: drop-shadow(rgba(0, 0, 0, 0.9) 0px 25px 25px) drop-shadow(rgba(0, 0, 0, 0.75) 0px 10px 12px); }
.effect-bottom-fade { mask-image: linear-gradient(black 65%, transparent 100%); }
.canvas-transformer { position: absolute; border: 2px solid rgb(6, 182, 212); pointer-events: none; z-index: 60; box-shadow: rgba(0, 0, 0, 0.6) 0px 0px 0px 1px, rgba(0, 0, 0, 0.5) 0px 8px 24px; }
.transformer-handle { position: absolute; width: 10px; height: 10px; background: rgb(255, 255, 255); border: 2px solid rgb(6, 182, 212); border-radius: 2px; pointer-events: auto; box-shadow: rgba(0, 0, 0, 0.5) 0px 1px 3px; }
.transformer-handle.nw { top: -6px; left: -6px; cursor: nwse-resize; }
.transformer-handle.n { top: -6px; left: calc(50% - 5px); cursor: ns-resize; }
.transformer-handle.ne { top: -6px; right: -6px; cursor: nesw-resize; }
.transformer-handle.e { top: calc(50% - 5px); right: -6px; cursor: ew-resize; }
.transformer-handle.se { bottom: -6px; right: -6px; cursor: nwse-resize; }
.transformer-handle.s { bottom: -6px; left: calc(50% - 5px); cursor: ns-resize; }
.transformer-handle.sw { bottom: -6px; left: -6px; cursor: nesw-resize; }
.transformer-handle.w { top: calc(50% - 5px); left: -6px; cursor: ew-resize; }
.floating-toolbar { position: absolute; z-index: 70; animation: 0.15s cubic-bezier(0.16, 1, 0.3, 1) 0s 1 normal none running floatIn; }
@keyframes floatIn { 
  0% { opacity: 0; }
  100% { opacity: 1; }
}
body.mode-express .studio-only { display: none !important; }
body.mode-express .express-only { display: flex !important; }
body.mode-studio .studio-only { display: flex !important; }
body.mode-studio .express-only { display: none !important; }
#subHeaderToolbar, #expressFloatingDock { display: none !important; }
@media (max-width: 768px) {
  .floating-toolbar { overflow-x: auto !important; max-width: calc(-16px + 100vw) !important; touch-action: pan-x !important; scrollbar-width: none !important; }
  .floating-toolbar::-webkit-scrollbar { display: none !important; }
  .mobile-touch-scroll { overflow-x: auto !important; touch-action: pan-x !important; scrollbar-width: none !important; }
  .mobile-touch-scroll::-webkit-scrollbar { display: none !important; }
  .mobile-touch-scroll-y { touch-action: pan-y !important; }
  #formatDropdownMenu, #exportDropdownMenu, #dropdownQuickLayouts { max-width: calc(-16px + 100vw) !important; }
  #formatDropdownMenu, #exportDropdownMenu { box-shadow: rgba(0, 0, 0, 0.95) 0px 20px 50px, rgba(255, 255, 255, 0.15) 0px 0px 0px 1px !important; }
}

/* --- Bloco Principal de UI, Responsividade & Temas do Studio --- */
    /* ==========================================================================
       TIPOGRAFIA GLOBAL DE GRIFE — PADRÃO GAMMA APP, LINEAR & FIGMA
       Transformação da UI: substituição da tipografia teletipo (Café com Jornal)
       por Plus Jakarta Sans + Inter em toda a interface (Header, Rodapés, Modais)
       ========================================================================== */
    html, body {
      font-family: 'Plus Jakarta Sans', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
      letter-spacing: -0.011em;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    #masterHeader, #masterHeader *,
    #cardFooterBox, #cardFooterBox *,
    #cardSlideIndicator, #cardFooterCta,
    #modalNewCarouselStart, #modalNewCarouselStart *,
    button, select, input, textarea, label {
      font-family: 'Plus Jakarta Sans', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }

    /* Redireciona a classe .font-mono da UI para a tipografia moderna */
    .font-mono {
      font-family: 'Plus Jakarta Sans', Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
      letter-spacing: -0.008em !important;
    }

    /* Preservação exclusiva de código */
    .font-mono-code, pre, code, kbd, samp {
      font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace !important;
      letter-spacing: 0 !important;
    }

    /* Rodapé dos slides do carrossel com refinamento tipográfico */
    #cardSlideIndicator {
      font-family: 'Plus Jakarta Sans', Inter, sans-serif !important;
      font-weight: 700 !important;
      letter-spacing: 0.04em !important;
    }

    #cardFooterCta {
      font-family: 'Plus Jakarta Sans', Inter, sans-serif !important;
      font-weight: 700 !important;
      letter-spacing: 0.03em !important;
    }

    .tpl-chip {
      font-family: 'Plus Jakarta Sans', Inter, sans-serif !important;
      font-weight: 600 !important;
      letter-spacing: -0.005em !important;
    }
    /* ==========================================================================
       SUPORTE INTEGRAL A SLIDES E MODELOS BESPOKE DA VITRINE (SEM DISTORÇÕES)
       ========================================================================== */
    #creativeCard.is-bespoke, #showcaseCardInner.is-bespoke {
      padding: 0 !important;
    }
    :is(#creativeCard, #showcaseCardInner).is-bespoke #cardDynamicBody {
      width: 100% !important;
      height: 100% !important;
      max-height: 100% !important;
      padding: 0 !important;
      margin: 0 !important;
      overflow: hidden !important;
      display: flex !important;
      flex-direction: column !important;
      pointer-events: auto !important;
    }
    :is(#creativeCard, #showcaseCardInner).is-bespoke #cardDynamicBody > div {
      width: 100% !important;
      height: 100% !important;
      box-sizing: border-box !important;
    }
    :is(#creativeCard, #showcaseCardInner).is-bespoke .my-auto {
      margin-top: auto !important;
      margin-bottom: auto !important;
      max-height: 100% !important;
    }
    #cardDynamicBody {
      pointer-events: auto !important;
    }
    #cardDynamicBody [contenteditable="true"],
    #cardDynamicBody [data-editable="true"],
    #cardDynamicBody .editable-text-node,
    #cardDynamicBody .cursor-text,
    #cardDynamicBody h1, #cardDynamicBody h2, #cardDynamicBody h3, #cardDynamicBody h4,
    #cardDynamicBody p, #cardDynamicBody span, #cardDynamicBody li {
      pointer-events: auto !important;
      user-select: text !important;
      -webkit-user-select: text !important;
    }
    :is(#creativeCard, #showcaseCardInner).is-bespoke:not(.bespoke-brand-active) #cardAuthorBox,
    :is(#creativeCard, #showcaseCardInner).is-bespoke:not(.bespoke-brand-active) #cardAuthorAvatar,
    :is(#creativeCard, #showcaseCardInner).is-bespoke:not(.bespoke-brand-active) #cardAuthorHandle,
    :is(#creativeCard, #showcaseCardInner).is-bespoke:not(.bespoke-brand-active) #cardBrandLogo,
    :is(#creativeCard, #showcaseCardInner).is-bespoke #cardTopHeaderContainer,
    :is(#creativeCard, #showcaseCardInner).is-bespoke #cardFooterBox,
    :is(#creativeCard, #showcaseCardInner).is-bespoke #cardBadge {
      display: none !important;
      visibility: hidden !important;
      opacity: 0 !important;
      pointer-events: none !important;
    }
    :is(#creativeCard, #showcaseCardInner).is-bespoke.bespoke-brand-active #cardAuthorBox,
    :is(#creativeCard, #showcaseCardInner).is-bespoke.bespoke-brand-active #cardAuthorHandle,
    :is(#creativeCard, #showcaseCardInner).is-bespoke.bespoke-brand-active #cardAuthorAvatar,
    :is(#creativeCard, #showcaseCardInner).is-bespoke.bespoke-brand-active #cardBrandLogo {
      z-index: 50 !important;
      pointer-events: auto !important;
      visibility: visible !important;
    }
    :is(#creativeCard, #showcaseCardInner).is-bespoke.bespoke-brand-active #cardDynamicBody > div {
      padding-top: 56px !important;
      padding-bottom: 50px !important;
      box-sizing: border-box !important;
    }
    :is(#creativeCard, #showcaseCardInner).is-bespoke.bespoke-brand-active .bespoke-internal-header,
    :is(#creativeCard, #showcaseCardInner).is-bespoke.bespoke-brand-active .bespoke-internal-footer,
    :is(#creativeCard, #showcaseCardInner).is-bespoke.bespoke-brand-active [data-bespoke-header="true"],
    :is(#creativeCard, #showcaseCardInner).is-bespoke.bespoke-brand-active [data-bespoke-footer="true"] {
      display: none !important;
      visibility: hidden !important;
      height: 0 !important;
      padding: 0 !important;
      margin: 0 !important;
      overflow: hidden !important;
    }

    /* ==========================================================================
       SUPORTE A SLIDES COM FUNDO CLARO/OFF-WHITE ESTILO CANVA (ALTO CONTRASTE)
       ========================================================================== */
    :is(#creativeCard, #showcaseCardInner).is-light-slide #cardAuthorName,
    :is(#creativeCard, #showcaseCardInner).is-light-slide #cardAuthorHandle,
    :is(#creativeCard, #showcaseCardInner).is-light-slide #cardSlideIndicator,
    :is(#creativeCard, #showcaseCardInner).is-light-slide #cardFooterCta,
    :is(#creativeCard, #showcaseCardInner).is-light-slide h1,
    :is(#creativeCard, #showcaseCardInner).is-light-slide h2,
    :is(#creativeCard, #showcaseCardInner).is-light-slide h3 {
      color: #111827 !important;
      text-shadow: none !important;
    }
    :is(#creativeCard, #showcaseCardInner).is-light-slide p {
      color: #374151 !important;
      text-shadow: none !important;
    }
    :is(#creativeCard, #showcaseCardInner).is-light-slide .layout-interactive-box {
      background-color: rgba(0, 0, 0, 0.04) !important;
      border-color: rgba(0, 0, 0, 0.12) !important;
      color: #1f2937 !important;
    }
    :is(#creativeCard, #showcaseCardInner).is-light-slide #cardDarkOverlay,
    :is(#creativeCard, #showcaseCardInner).is-light-slide #cardGradientOverlay {
      display: none !important;
      opacity: 0 !important;
    }

    /* 1. MODELOS BESPOKE NO FORMATO 1:1 (QUADRADO 420x420) */
    :is(#creativeCard, #showcaseCardInner).format-1-1.is-bespoke:not(.bespoke-brand-active) #cardDynamicBody > div:first-child.flex-col.justify-between,
    :is(#creativeCard, #showcaseCardInner).format-1-1.is-bespoke:not(.bespoke-brand-active) #cardDynamicBody > div:first-child.p-5,
    :is(#creativeCard, #showcaseCardInner).format-1-1.is-bespoke:not(.bespoke-brand-active) #cardDynamicBody > div:first-child.p-6,
    :is(#creativeCard, #showcaseCardInner).format-1-1.is-bespoke:not(.bespoke-brand-active) #cardDynamicBody > div:first-child.p-7,
    :is(#creativeCard, #showcaseCardInner).format-1-1.is-bespoke:not(.bespoke-brand-active) #cardDynamicBody > div:first-child.p-8,
    :is(#creativeCard, #showcaseCardInner).format-1-1.is-bespoke:not(.bespoke-brand-active) #cardDynamicBody > div:first-child {
      padding: 14px 18px !important;
    }
    :is(#creativeCard, #showcaseCardInner).format-1-1.is-bespoke #cardDynamicBody h1:not([style*="font-size"]),
    :is(#creativeCard, #showcaseCardInner).format-1-1.is-bespoke #cardDynamicBody h2:not([style*="font-size"]) {
      font-size: 16px !important;
      line-height: 1.25 !important;
    }
    :is(#creativeCard, #showcaseCardInner).format-1-1.is-bespoke #cardDynamicBody h3:not([style*="font-size"]) {
      font-size: 13.5px !important;
      line-height: 1.25 !important;
    }
    :is(#creativeCard, #showcaseCardInner).format-1-1.is-bespoke #cardDynamicBody p:not([style*="font-size"]),
    :is(#creativeCard, #showcaseCardInner).format-1-1.is-bespoke #cardDynamicBody li:not([style*="font-size"]) {
      font-size: 11px !important;
      line-height: 1.35 !important;
    }
    :is(#creativeCard, #showcaseCardInner).format-1-1.is-bespoke #cardDynamicBody .space-y-3,
    :is(#creativeCard, #showcaseCardInner).format-1-1.is-bespoke #cardDynamicBody .space-y-3\.5 {
      gap: 6px !important;
    }
    :is(#creativeCard, #showcaseCardInner).format-1-1.is-bespoke #cardDynamicBody .p-3,
    :is(#creativeCard, #showcaseCardInner).format-1-1.is-bespoke #cardDynamicBody .p-3\.5,
    :is(#creativeCard, #showcaseCardInner).format-1-1.is-bespoke #cardDynamicBody .p-4 {
      padding: 7px 10px !important;
    }
    :is(#creativeCard, #showcaseCardInner).format-1-1.is-bespoke #cardDynamicBody .gap-2,
    :is(#creativeCard, #showcaseCardInner).format-1-1.is-bespoke #cardDynamicBody .gap-2\.5,
    :is(#creativeCard, #showcaseCardInner).format-1-1.is-bespoke #cardDynamicBody .gap-3 {
      gap: 5px !important;
    }
    :is(#creativeCard, #showcaseCardInner).format-1-1.is-bespoke .w-\\[54\\%\\] {
      padding: 10px 14px !important;
    }
    :is(#creativeCard, #showcaseCardInner).format-1-1.is-bespoke .relative.w-full[class*="h-32"],
    :is(#creativeCard, #showcaseCardInner).format-1-1.is-bespoke .relative.w-full[class*="h-36"],
    :is(#creativeCard, #showcaseCardInner).format-1-1.is-bespoke .relative.w-full[class*="h-40"] {
      height: 75px !important;
      min-height: 75px !important;
      margin-top: 3px !important;
      margin-bottom: 3px !important;
    }
    :is(#creativeCard, #showcaseCardInner).format-1-1.is-bespoke .grid-cols-2 > div,
    :is(#creativeCard, #showcaseCardInner).format-1-1.is-bespoke [class*="sm:grid-cols-2"] > div {
      padding: 5px 8px !important;
    }

    /* 2. MODELOS BESPOKE NO FORMATO 16:9 (PAISAGEM 560x315) */
    :is(#creativeCard, #showcaseCardInner).format-16-9.is-bespoke:not(.bespoke-brand-active) #cardDynamicBody > div:first-child.flex-col.justify-between,
    :is(#creativeCard, #showcaseCardInner).format-16-9.is-bespoke:not(.bespoke-brand-active) #cardDynamicBody > div:first-child.p-5,
    :is(#creativeCard, #showcaseCardInner).format-16-9.is-bespoke:not(.bespoke-brand-active) #cardDynamicBody > div:first-child.p-6,
    :is(#creativeCard, #showcaseCardInner).format-16-9.is-bespoke:not(.bespoke-brand-active) #cardDynamicBody > div:first-child.p-7,
    :is(#creativeCard, #showcaseCardInner).format-16-9.is-bespoke:not(.bespoke-brand-active) #cardDynamicBody > div:first-child.p-8,
    :is(#creativeCard, #showcaseCardInner).format-16-9.is-bespoke:not(.bespoke-brand-active) #cardDynamicBody > div:first-child {
      padding: 10px 22px !important;
    }
    :is(#creativeCard, #showcaseCardInner).format-16-9.is-bespoke #cardDynamicBody h1:not([style*="font-size"]),
    :is(#creativeCard, #showcaseCardInner).format-16-9.is-bespoke #cardDynamicBody h2:not([style*="font-size"]) {
      font-size: 14.5px !important;
      line-height: 1.2 !important;
    }
    :is(#creativeCard, #showcaseCardInner).format-16-9.is-bespoke #cardDynamicBody h3:not([style*="font-size"]) {
      font-size: 12.5px !important;
      line-height: 1.2 !important;
    }
    :is(#creativeCard, #showcaseCardInner).format-16-9.is-bespoke #cardDynamicBody p:not([style*="font-size"]),
    :is(#creativeCard, #showcaseCardInner).format-16-9.is-bespoke #cardDynamicBody li:not([style*="font-size"]) {
      font-size: 10px !important;
      line-height: 1.3 !important;
    }
    :is(#creativeCard, #showcaseCardInner).format-16-9.is-bespoke #cardDynamicBody .space-y-3,
    :is(#creativeCard, #showcaseCardInner).format-16-9.is-bespoke #cardDynamicBody .space-y-3\.5 {
      gap: 4px !important;
    }
    :is(#creativeCard, #showcaseCardInner).format-16-9.is-bespoke #cardDynamicBody .p-3,
    :is(#creativeCard, #showcaseCardInner).format-16-9.is-bespoke #cardDynamicBody .p-3\.5,
    :is(#creativeCard, #showcaseCardInner).format-16-9.is-bespoke #cardDynamicBody .p-4 {
      padding: 5px 8px !important;
    }
    :is(#creativeCard, #showcaseCardInner).format-16-9.is-bespoke #cardDynamicBody .gap-2,
    :is(#creativeCard, #showcaseCardInner).format-16-9.is-bespoke #cardDynamicBody .gap-2\.5,
    :is(#creativeCard, #showcaseCardInner).format-16-9.is-bespoke #cardDynamicBody .gap-3 {
      gap: 4px !important;
    }
    :is(#creativeCard, #showcaseCardInner).format-16-9.is-bespoke .w-\\[54\\%\\] {
      padding: 8px 16px !important;
    }
    :is(#creativeCard, #showcaseCardInner).format-16-9.is-bespoke .relative.w-full[class*="h-32"],
    :is(#creativeCard, #showcaseCardInner).format-16-9.is-bespoke .relative.w-full[class*="h-36"],
    :is(#creativeCard, #showcaseCardInner).format-16-9.is-bespoke .relative.w-full[class*="h-40"] {
      height: 55px !important;
      min-height: 55px !important;
      margin-top: 2px !important;
      margin-bottom: 2px !important;
    }
    :is(#creativeCard, #showcaseCardInner).format-16-9.is-bespoke .grid-cols-2 > div,
    :is(#creativeCard, #showcaseCardInner).format-16-9.is-bespoke [class*="sm:grid-cols-2"] > div {
      padding: 4px 6px !important;
    }

    /* 3. MODELOS BESPOKE NO FORMATO 4:5 (RETRATO FEED 380x475) */
    :is(#creativeCard, #showcaseCardInner).format-4-5.is-bespoke:not(.bespoke-brand-active) #cardDynamicBody > div:first-child.flex-col.justify-between,
    :is(#creativeCard, #showcaseCardInner).format-4-5.is-bespoke:not(.bespoke-brand-active) #cardDynamicBody > div:first-child.p-5,
    :is(#creativeCard, #showcaseCardInner).format-4-5.is-bespoke:not(.bespoke-brand-active) #cardDynamicBody > div:first-child.p-6,
    :is(#creativeCard, #showcaseCardInner).format-4-5.is-bespoke:not(.bespoke-brand-active) #cardDynamicBody > div:first-child.p-7,
    :is(#creativeCard, #showcaseCardInner).format-4-5.is-bespoke:not(.bespoke-brand-active) #cardDynamicBody > div:first-child.p-8,
    :is(#creativeCard, #showcaseCardInner).format-4-5.is-bespoke:not(.bespoke-brand-active) #cardDynamicBody > div:first-child {
      padding: 18px 20px !important;
    }
    :is(#creativeCard, #showcaseCardInner).format-4-5.is-bespoke #cardDynamicBody h1:not([style*="font-size"]),
    :is(#creativeCard, #showcaseCardInner).format-4-5.is-bespoke #cardDynamicBody h2:not([style*="font-size"]) {
      font-size: 18px !important;
      line-height: 1.25 !important;
    }
    :is(#creativeCard, #showcaseCardInner).format-4-5.is-bespoke #cardDynamicBody h3:not([style*="font-size"]) {
      font-size: 15px !important;
      line-height: 1.25 !important;
    }
    :is(#creativeCard, #showcaseCardInner).format-4-5.is-bespoke #cardDynamicBody p:not([style*="font-size"]),
    :is(#creativeCard, #showcaseCardInner).format-4-5.is-bespoke #cardDynamicBody li:not([style*="font-size"]) {
      font-size: 11.5px !important;
      line-height: 1.4 !important;
    }
    :is(#creativeCard, #showcaseCardInner).format-4-5.is-bespoke #cardDynamicBody .p-3,
    :is(#creativeCard, #showcaseCardInner).format-4-5.is-bespoke #cardDynamicBody .p-3\.5,
    :is(#creativeCard, #showcaseCardInner).format-4-5.is-bespoke #cardDynamicBody .p-4 {
      padding: 8px 12px !important;
    }
    :is(#creativeCard, #showcaseCardInner).format-4-5.is-bespoke .relative.w-full[class*="h-32"],
    :is(#creativeCard, #showcaseCardInner).format-4-5.is-bespoke .relative.w-full[class*="h-36"],
    :is(#creativeCard, #showcaseCardInner).format-4-5.is-bespoke .relative.w-full[class*="h-40"] {
      height: 95px !important;
      min-height: 95px !important;
      margin-top: 4px !important;
      margin-bottom: 4px !important;
    }

    /* 4. MODELOS BESPOKE NO FORMATO 9:16 (STORY / REELS 290x515) */
    :is(#creativeCard, #showcaseCardInner).format-9-16.is-bespoke:not(.bespoke-brand-active) #cardDynamicBody > div:first-child.flex-col.justify-between,
    :is(#creativeCard, #showcaseCardInner).format-9-16.is-bespoke:not(.bespoke-brand-active) #cardDynamicBody > div:first-child.p-5,
    :is(#creativeCard, #showcaseCardInner).format-9-16.is-bespoke:not(.bespoke-brand-active) #cardDynamicBody > div:first-child.p-6,
    :is(#creativeCard, #showcaseCardInner).format-9-16.is-bespoke:not(.bespoke-brand-active) #cardDynamicBody > div:first-child.p-7,
    :is(#creativeCard, #showcaseCardInner).format-9-16.is-bespoke:not(.bespoke-brand-active) #cardDynamicBody > div:first-child.p-8,
    :is(#creativeCard, #showcaseCardInner).format-9-16.is-bespoke:not(.bespoke-brand-active) #cardDynamicBody > div:first-child {
      padding-top: 36px !important;
      padding-bottom: 42px !important;
      padding-left: 14px !important;
      padding-right: 14px !important;
    }
    :is(#creativeCard, #showcaseCardInner).format-9-16.is-bespoke #cardDynamicBody h1:not([style*="font-size"]),
    :is(#creativeCard, #showcaseCardInner).format-9-16.is-bespoke #cardDynamicBody h2:not([style*="font-size"]) {
      font-size: 16px !important;
      line-height: 1.25 !important;
    }
    :is(#creativeCard, #showcaseCardInner).format-9-16.is-bespoke #cardDynamicBody h3:not([style*="font-size"]) {
      font-size: 13.5px !important;
      line-height: 1.25 !important;
    }
    :is(#creativeCard, #showcaseCardInner).format-9-16.is-bespoke #cardDynamicBody p:not([style*="font-size"]),
    :is(#creativeCard, #showcaseCardInner).format-9-16.is-bespoke #cardDynamicBody li:not([style*="font-size"]) {
      font-size: 10.5px !important;
      line-height: 1.35 !important;
    }
    :is(#creativeCard, #showcaseCardInner).format-9-16.is-bespoke #cardDynamicBody .p-3,
    :is(#creativeCard, #showcaseCardInner).format-9-16.is-bespoke #cardDynamicBody .p-3\.5,
    :is(#creativeCard, #showcaseCardInner).format-9-16.is-bespoke #cardDynamicBody .p-4 {
      padding: 7px 10px !important;
    }
    :is(#creativeCard, #showcaseCardInner).format-9-16.is-bespoke #cardDynamicBody > div:first-child > .absolute[class*="top-"] {
      top: 36px !important;
    }
    :is(#creativeCard, #showcaseCardInner).format-9-16.is-bespoke #cardDynamicBody > div:first-child > .absolute[class*="bottom-"] {
      bottom: 42px !important;
    }
    :is(#creativeCard, #showcaseCardInner).format-9-16.is-bespoke #cardDynamicBody > div:first-child > .absolute[class*="left-"] {
      left: 14px !important;
    }
    :is(#creativeCard, #showcaseCardInner).format-9-16.is-bespoke #cardDynamicBody > div:first-child > .absolute[class*="right-"] {
      right: 14px !important;
    }
    :is(#creativeCard, #showcaseCardInner).format-9-16.is-bespoke .w-\\[54\\%\\] {
      padding-right: 14px !important;
      padding-left: 8px !important;
    }
    :is(#creativeCard, #showcaseCardInner).format-9-16.is-bespoke .relative.w-full[class*="h-32"],
    :is(#creativeCard, #showcaseCardInner).format-9-16.is-bespoke .relative.w-full[class*="h-36"],
    :is(#creativeCard, #showcaseCardInner).format-9-16.is-bespoke .relative.w-full[class*="h-40"] {
      height: 80px !important;
      min-height: 80px !important;
      margin-top: 4px !important;
      margin-bottom: 4px !important;
    }
    :is(#creativeCard, #showcaseCardInner).format-9-16 .grid-cols-2,
    :is(#creativeCard, #showcaseCardInner).format-9-16 [class*="sm:grid-cols-2"],
    :is(#creativeCard, #showcaseCardInner).format-9-16.is-bespoke .grid-cols-2,
    :is(#creativeCard, #showcaseCardInner).format-9-16.is-bespoke [class*="sm:grid-cols-2"] {
      grid-template-columns: 1fr !important;
      gap: 6px !important;
    }
    :is(#creativeCard, #showcaseCardInner).format-9-16 .grid-cols-2 > div,
    :is(#creativeCard, #showcaseCardInner).format-9-16 [class*="sm:grid-cols-2"] > div,
    :is(#creativeCard, #showcaseCardInner).format-9-16.is-bespoke .grid-cols-2 > div,
    :is(#creativeCard, #showcaseCardInner).format-9-16.is-bespoke [class*="sm:grid-cols-2"] > div {
      padding: 6px !important;
    }

    /* ==========================================================================
       MARCA BRAND DNA ATIVA EM MODELOS BESPOKE: Espaçamento de segurança perfeito
       Garante que o conteúdo interno do slide nunca colida com Avatar/Nome no topo
       nem com @/Logo no rodapé em todos os 4 formatos de tela.
       ========================================================================== */
    :is(#creativeCard, #showcaseCardInner).is-bespoke.bespoke-brand-active #cardDynamicBody > div:first-child,
    :is(#creativeCard, #showcaseCardInner).is-bespoke.bespoke-brand-active #cardDynamicBody > div {
      padding-top: 56px !important;
      padding-bottom: 50px !important;
      padding-left: 20px !important;
      padding-right: 20px !important;
      box-sizing: border-box !important;
    }
    :is(#creativeCard, #showcaseCardInner).format-1-1.is-bespoke.bespoke-brand-active #cardDynamicBody > div:first-child,
    :is(#creativeCard, #showcaseCardInner).format-1-1.is-bespoke.bespoke-brand-active #cardDynamicBody > div {
      padding-top: 52px !important;
      padding-bottom: 46px !important;
      padding-left: 18px !important;
      padding-right: 18px !important;
      box-sizing: border-box !important;
    }
    :is(#creativeCard, #showcaseCardInner).format-16-9.is-bespoke.bespoke-brand-active #cardDynamicBody > div:first-child,
    :is(#creativeCard, #showcaseCardInner).format-16-9.is-bespoke.bespoke-brand-active #cardDynamicBody > div {
      padding-top: 44px !important;
      padding-bottom: 42px !important;
      padding-left: 22px !important;
      padding-right: 22px !important;
      box-sizing: border-box !important;
    }
    :is(#creativeCard, #showcaseCardInner).format-4-5.is-bespoke.bespoke-brand-active #cardDynamicBody > div:first-child,
    :is(#creativeCard, #showcaseCardInner).format-4-5.is-bespoke.bespoke-brand-active #cardDynamicBody > div {
      padding-top: 58px !important;
      padding-bottom: 50px !important;
      padding-left: 20px !important;
      padding-right: 20px !important;
      box-sizing: border-box !important;
    }
    :is(#creativeCard, #showcaseCardInner).format-9-16.is-bespoke.bespoke-brand-active #cardDynamicBody > div:first-child,
    :is(#creativeCard, #showcaseCardInner).format-9-16.is-bespoke.bespoke-brand-active #cardDynamicBody > div {
      padding-top: 74px !important;
      padding-bottom: 72px !important;
      padding-left: 16px !important;
      padding-right: 16px !important;
      box-sizing: border-box !important;
    }

    /* Dimensões Cirúrgicas para Layouts Divididos (Vertical Split) */
    .w-\[46\%\] { width: 46% !important; }
    .w-\[54\%\] { width: 54% !important; }
    .w-\[40\%\] { width: 40% !important; }
    .w-\[60\%\] { width: 60% !important; }
    .w-\[50\%\] { width: 50% !important; }
    .bg-\[\#140e0c\] { background-color: #140e0c !important; }
    .bg-\[\#080c14\] { background-color: #080c14 !important; }
    .text-\[\#dfc385\] { color: #dfc385 !important; }
    .text-\[\#faf7f2\] { color: #faf7f2 !important; }
    .text-\[\#c5a059\] { color: #c5a059 !important; }
    .border-\[\#c5a059\]\/30 { border-color: rgba(197, 160, 89, 0.3) !important; }
    .border-\[\#c5a059\]\/40 { border-color: rgba(197, 160, 89, 0.4) !important; }
    .border-\[\#c5a059\]\/20 { border-color: rgba(197, 160, 89, 0.2) !important; }
    :root {
      color-scheme: dark;
      --app-height: 100dvh;
    }
    html {
      height: 100% !important;
      height: 100dvh !important;
      max-height: 100dvh !important;
      width: 100% !important;
      margin: 0 !important;
      padding: 0 !important;
      background-color: #09090b !important;
      overflow: hidden !important;
    }
    body {
      height: 100% !important;
      height: var(--app-height, 100dvh) !important;
      max-height: var(--app-height, 100dvh) !important;
      width: 100% !important;
      width: 100vw !important;
      margin: 0 !important;
      padding: 0 !important;
      background-color: #09090b !important;
      overflow: hidden !important;
      position: fixed !important;
      top: 0 !important;
      left: 0 !important;
      right: 0 !important;
      bottom: 0 !important;
    }
    /* Modo Fullscreen Mobile Imersivo (Sem banner do Android e sem botões bloqueados) */
    body.app-fullscreen-active #masterHeaderAiRow {
      display: none !important;
    }
    ::-webkit-scrollbar { width: 5px; height: 5px; }
    ::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); }
    ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 9999px; }
    ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); }

    /* Linhas de Alinhamento Magnético Ultra-Finas estilo Canva/Figma (1px Nítido) */
    #snapGuidesSvg line {
      vector-effect: non-scaling-stroke !important;
      shape-rendering: crispEdges !important;
      stroke-width: 1px !important;
      pointer-events: none !important;
    }

    /* ==========================================================================
       PREMIUM TEMPLATE LIBRARY ARCHITECTURE (100% STATIC CSS GUARANTEED)
       ========================================================================== */
    #modalTemplateLibrary {
      z-index: 99990 !important;
    }
    #modalTemplateFullPreview {
      z-index: 99999 !important;
    }
    #templateCardsGrid {
      display: grid !important;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
      gap: 1.5rem !important;
      width: 100% !important;
      padding-bottom: 2rem !important;
      box-sizing: border-box !important;
    }
    @media (min-width: 1024px) {
      #templateCardsGrid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
      }
    }
    @media (min-width: 1600px) {
      #templateCardsGrid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
      }
    }

    .tpl-premium-card {
      display: flex !important;
      flex-direction: column !important;
      justify-content: space-between !important;
      background: #0d0d12 !important;
      border: 1px solid rgba(255, 255, 255, 0.1) !important;
      border-radius: 1.5rem !important;
      padding: 1.15rem !important;
      gap: 1rem !important;
      box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8) !important;
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
      position: relative !important;
      box-sizing: border-box !important;
    }
    .tpl-premium-card:hover {
      border-color: rgba(255, 255, 255, 0.25) !important;
      transform: translateY(-3px) !important;
      box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.95), 0 0 25px rgba(6, 182, 212, 0.12) !important;
    }

    .tpl-chip {
      padding: 0.35rem 0.85rem !important;
      border-radius: 9999px !important;
      font-size: 0.72rem !important;
      font-family: 'Plus Jakarta Sans', Inter, -apple-system, BlinkMacSystemFont, sans-serif !important;
      font-weight: 700 !important;
      display: inline-flex !important;
      align-items: center !important;
      gap: 0.4rem !important;
      white-space: nowrap !important;
      cursor: pointer !important;
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
      border: 1px solid rgba(255, 255, 255, 0.1) !important;
      background: rgba(255, 255, 255, 0.04) !important;
      color: #a1a1aa !important;
      user-select: none !important;
    }
    .tpl-chip:hover {
      background: rgba(255, 255, 255, 0.12) !important;
      color: #ffffff !important;
      border-color: rgba(255, 255, 255, 0.25) !important;
    }
    .tpl-chip.active {
      background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(59, 130, 246, 0.25)) !important;
      border-color: #22d3ee !important;
      color: #ffffff !important;
      box-shadow: 0 0 15px rgba(34, 211, 238, 0.25) !important;
    }

    .tpl-slide-stage-4-5 {
      aspect-ratio: 4 / 5 !important;
      width: 100% !important;
      min-height: 380px !important;
      max-height: 440px !important;
      position: relative !important;
      overflow: hidden !important;
      border-radius: 1.25rem !important;
      background: #09090c !important;
      border: 1px solid rgba(255, 255, 255, 0.12) !important;
      display: flex !important;
      flex-direction: column !important;
      justify-content: space-between !important;
      padding: 1.25rem !important;
      box-sizing: border-box !important;
      box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6) !important;
    }

    .tpl-nav-btn {
      opacity: 0;
      transition: opacity 0.2s ease, transform 0.15s ease;
    }
    .tpl-premium-card:hover .tpl-nav-btn {
      opacity: 0.95;
    }
    .tpl-nav-btn:hover {
      opacity: 1 !important;
      transform: translateY(-50%) scale(1.1) !important;
    }

    .tpl-lightbox-stage-4-5 {
      aspect-ratio: 4 / 5 !important;
      width: 290px !important;
      min-width: 290px !important;
      max-width: 320px !important;
      min-height: 362px !important;
      position: relative !important;
      overflow: hidden !important;
      border-radius: 1.25rem !important;
      background: #09090c !important;
      border: 1px solid rgba(255, 255, 255, 0.14) !important;
      display: flex !important;
      flex-direction: column !important;
      justify-content: space-between !important;
      padding: 1.25rem !important;
      box-sizing: border-box !important;
      flex-shrink: 0 !important;
      box-shadow: 0 15px 35px rgba(0,0,0,0.7) !important;
    }

    /* Bespoke Typography & Cutout Layer Architecture */
    .font-cormorant { font-family: 'Cormorant Garamond', serif !important; }
    .font-cinzel { font-family: 'Cinzel', serif !important; }
    .font-bebas { font-family: 'Bebas Neue', cursive !important; }
    .font-playfair { font-family: 'Playfair Display', serif !important; }
    .font-mono-code { font-family: 'JetBrains Mono', monospace !important; }
    .font-grotesk { font-family: 'Space Grotesk', sans-serif !important; }
    .font-jakarta { font-family: 'Plus Jakarta Sans', sans-serif !important; }
    .font-oswald { font-family: 'Oswald', sans-serif !important; }
    .font-handwriting { font-family: 'Caveat', cursive !important; }
    .scanlines {
      background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.3) 50%) !important;
      background-size: 100% 4px !important;
    }
    .dot-grid {
      background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px) !important;
      background-size: 14px 14px !important;
    }

    /* Efeitos de Colagem, Papel Kraft e Washi Tape */
    .paper-card {
      box-shadow: 4px 5px 0px rgba(0, 0, 0, 0.25) !important;
    }
    .washi-tape {
      background: rgba(255, 255, 255, 0.85) !important;
      box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
    }
    .washi-tape-dark {
      background: rgba(30, 30, 30, 0.85) !important;
      box-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
    }
    
    .cutout-person {
      position: absolute;
      pointer-events: none;
      user-select: none;
      filter: drop-shadow(0 15px 25px rgba(0,0,0,0.85)) drop-shadow(0 5px 10px rgba(0,0,0,0.9));
      transition: transform 0.4s ease;
      z-index: 5;
    }
    .tpl-premium-card:hover .cutout-person {
      transform: scale(1.03) translateY(-2px);
    }
    .text-content-layer {
      position: relative;
      z-index: 10;
    }
    .text-shadow-dark {
      text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 0 20px rgba(0, 0, 0, 0.8);
    }

    /* Discreet Timeline Thumbnails (Elimina borda branca grossa) */
    .timeline-slide-thumb {
      border-radius: 8px !important;
      border: 1px solid rgba(255, 255, 255, 0.12) !important;
      background-color: #121215 !important;
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
    .timeline-slide-thumb:hover {
      border-color: rgba(255, 255, 255, 0.28) !important;
    }
    .timeline-slide-thumb.active {
      border: 1.5px solid #e2b170 !important;
      box-shadow: 0 0 16px rgba(226, 177, 112, 0.35) !important;
      transform: scale(1.05) !important;
    }

    /* ======================================================== */
    /* TITANIUM LUXURY DESIGN SYSTEM (World-Class SaaS UI)     */
    /* Tom Secundário: Cinza Chumbo & Prata Escovado Ultra-Leve */
    /* ======================================================== */
    /* GHOST & SLEEK MINIMALIST DESIGN SYSTEM (Top-Tier SaaS)   */
    /* Botões Leves, Fluídos e Transparentes: Fundo só no Hover */
    /* ======================================================== */
    .btn-titanium, .btn-ghost-sleek {
      background: transparent !important;
      border: 1px solid transparent !important;
      box-shadow: none !important;
      color: #d4d4d8 !important;
      border-radius: 6px !important;
      transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease !important;
      min-height: 28px !important;
      padding: 0.2rem 0.55rem !important;
      font-size: 0.75rem !important;
      line-height: 1.15rem !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 0.35rem !important;
    }
    .btn-titanium:hover, .btn-ghost-sleek:hover {
      background: rgba(255, 255, 255, 0.08) !important;
      border-color: rgba(255, 255, 255, 0.12) !important;
      color: #ffffff !important;
      box-shadow: none !important;
    }
    .btn-titanium:active, .btn-ghost-sleek:active {
      background: rgba(255, 255, 255, 0.14) !important;
      transform: scale(0.98) !important;
      box-shadow: none !important;
    }
    .btn-titanium.hidden, .btn-ghost-sleek.hidden,
    [class*="btn-titanium"].hidden, [class*="btn-ghost-sleek"].hidden {
      display: none !important;
    }

    /* Cantos limpos e modernos (6px) em substituição a cápsulas pesadas em botões */
    button.rounded-xl, button.rounded-2xl, div.btn-titanium.rounded-xl {
      border-radius: 6px !important;
    }

    /* Regra Global: Dropdowns e Selects 100% Escuros (Windows / Chrome / Edge) */
    select, select option {
      color-scheme: dark !important;
      background-color: #1a1c22 !important;
      color: #f4f4f5 !important;
    }

    /* Ocultação limpa de barra de rolagem (Desktop e Mobile) */
    .scrollbar-none, .no-scrollbar {
      scrollbar-width: none !important;
      -ms-overflow-style: none !important;
    }
    .scrollbar-none::-webkit-scrollbar, .no-scrollbar::-webkit-scrollbar {
      display: none !important;
      width: 0 !important;
      height: 0 !important;
    }

    /* Barra de rolagem visível e estilizada para a timeline de miniaturas (15 slides) */
    .slides-timeline-scroll {
      overflow-x: auto !important;
      scrollbar-width: thin !important;
      scrollbar-color: rgba(226, 177, 112, 0.6) rgba(255, 255, 255, 0.06) !important;
      padding-bottom: 5px !important;
    }
    .slides-timeline-scroll::-webkit-scrollbar {
      height: 6px !important;
      display: block !important;
    }
    .slides-timeline-scroll::-webkit-scrollbar-track {
      background: rgba(255, 255, 255, 0.05) !important;
      border-radius: 9999px !important;
    }
    .slides-timeline-scroll::-webkit-scrollbar-thumb {
      background: linear-gradient(90deg, #f59e0b, #e2b170) !important;
      border-radius: 9999px !important;
    }
    .slides-timeline-scroll::-webkit-scrollbar-thumb:hover {
      background: #fbbf24 !important;
    }

    /* Oculta botão de zoom da barra inferior no Desktop / PC (pois o zoom já existe flutuante no canvas) */
    @media (min-width: 640px) {
      #mobileZoomContainer {
        display: none !important;
      }
    }

    /* Oculta botão Espiar da barra lateral no Desktop / PC (mantém visível exclusivamente no Modo Mobile) */
    @media (min-width: 768px) {
      #btnMobilePeekSlide {
        display: none !important;
      }
    }
    @media (max-width: 767px) {
      #btnMobilePeekSlide {
        display: inline-flex !important;
      }
    }

    .btn-gold-luxury {
      background: rgba(226, 177, 112, 0.08) !important;
      color: #f4d3a0 !important;
      font-weight: 600 !important;
      border: 1px solid rgba(226, 177, 112, 0.28) !important;
      border-radius: 6px !important;
      box-shadow: none !important;
      transition: all 0.15s ease !important;
      min-height: 28px !important;
      padding: 0.2rem 0.65rem !important;
      font-size: 0.75rem !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      gap: 0.35rem !important;
    }
    .btn-gold-luxury:hover {
      background: rgba(226, 177, 112, 0.20) !important;
      border-color: rgba(226, 177, 112, 0.6) !important;
      color: #ffffff !important;
      box-shadow: 0 0 14px rgba(226, 177, 112, 0.18) !important;
    }
    .btn-gold-luxury:active {
      background: rgba(226, 177, 112, 0.28) !important;
      transform: scale(0.98) !important;
    }

    /* Overlay Position Buttons (Minimalista Ghost) */
    .overlay-pos-btn {
      background: transparent !important;
      border: 1px solid rgba(255, 255, 255, 0.08) !important;
      border-radius: 6px !important;
      color: #a1a1aa !important;
      transition: all 0.15s ease !important;
      box-shadow: none !important;
    }
    .overlay-pos-btn:hover {
      background: rgba(255, 255, 255, 0.07) !important;
      border-color: rgba(255, 255, 255, 0.16) !important;
      color: #ffffff !important;
    }
    .overlay-pos-btn.active, .overlay-pos-btn[data-active="true"] {
      background: rgba(6, 182, 212, 0.12) !important;
      border-color: rgba(6, 182, 212, 0.45) !important;
      color: #22d3ee !important;
      font-weight: 700 !important;
    }

    /* Abas Laterais (Sidebar Tabs Minimalistas) */
    .sidebar-tab {
      background: transparent !important;
      border: 1px solid transparent !important;
      border-radius: 6px !important;
      color: #a1a1aa !important;
      transition: all 0.15s ease !important;
      box-shadow: none !important;
    }
    .sidebar-tab:hover {
      background: rgba(255, 255, 255, 0.05) !important;
      color: #ffffff !important;
    }
    .sidebar-tab.active {
      background: rgba(255, 255, 255, 0.09) !important;
      border-color: rgba(255, 255, 255, 0.14) !important;
      color: #ffffff !important;
    }

    .hud-chip {
      background: rgba(18, 20, 26, 0.90) !important;
      backdrop-filter: blur(16px) !important;
      -webkit-backdrop-filter: blur(16px) !important;
      border-top: 1px solid rgba(255, 255, 255, 0.22) !important;
      border-left: 1px solid rgba(255, 255, 255, 0.12) !important;
      border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
      border-bottom: 1px solid rgba(0, 0, 0, 0.5) !important;
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.3) !important;
      transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
      min-height: 28px !important;
      padding: 0.25rem 0.65rem !important;
      font-size: 0.75rem !important;
    }
    .hud-chip:hover {
      border-top-color: rgba(226, 177, 112, 0.6) !important;
      border-bottom-color: rgba(226, 177, 112, 0.3) !important;
      transform: translateY(-1px) scale(1.02) !important;
      box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 16px rgba(226, 177, 112, 0.15) !important;
    }

    .omnibar-glow {
      box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09), 0 4px 20px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
      transition: all 0.2s ease;
    }
    .omnibar-glow:focus-within {
      box-shadow: 0 0 0 1px rgba(226, 177, 112, 0.65), 0 0 25px rgba(226, 177, 112, 0.18), 0 6px 24px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }

    /* AI Background Removal Modal - Compact Floating HUD / Non-intrusive Window */
    #modalAiBgProgress {
      position: fixed !important;
      inset: 0 !important;
      background: rgba(0, 0, 0, 0.22) !important;
      backdrop-filter: blur(1.5px) !important;
      -webkit-backdrop-filter: blur(1.5px) !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      padding: 1rem !important;
      z-index: 1000 !important;
    }
    #modalAiBgProgress.hidden {
      display: none !important;
    }
    .ai-bg-modal-card {
      width: 350px !important;
      max-width: calc(100vw - 2rem) !important;
      background: #0d0d12 !important;
      border: 1px solid rgba(226, 177, 112, 0.35) !important;
      border-radius: 1.25rem !important;
      padding: 1.15rem 1.25rem !important;
      box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.85), 0 0 25px rgba(226, 177, 112, 0.12) !important;
      position: relative !important;
      box-sizing: border-box !important;
      animation: aiBgCardPop 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
    @keyframes aiBgCardPop {
      from {
        opacity: 0;
        transform: scale(0.95) translateY(6px);
      }
      to {
        opacity: 1;
        transform: scale(1) translateY(0);
      }
    }

    .marker-highlight {
      display: inline-block;
      line-height: 1.06;
      vertical-align: baseline;
      padding: 0.02em 0.28em;
      margin: 0 0.04em;
      border-radius: 4px;
      box-decoration-break: clone;
      -webkit-box-decoration-break: clone;
      background: linear-gradient(120deg, rgba(250, 204, 21, 0.45) 0%, rgba(250, 204, 21, 0.7) 100%);
    }

    #modalBrandDNA {
      z-index: 999999 !important;
    }

    /* Modo Digitação Ativo (Cursor & Seleção de Caracteres) */
    [contenteditable="true"], 
    [contenteditable="true"] *,
    .is-text-editing,
    .is-text-editing * {
      pointer-events: auto !important;
      cursor: text !important;
      -webkit-user-select: text !important;
      user-select: text !important;
      -webkit-touch-callout: default !important;
      touch-action: auto !important;
    }

    /* Modo Caixa Canva / Figma (1º Clique: Selecionar, Arrastar, Redimensionar, Deletar) */
    .editable-text-node:not([contenteditable="true"]),
    [data-editable="true"]:not([contenteditable="true"]),
    .editable-tag:not([contenteditable="true"]),
    .layout-interactive-box:not([contenteditable="true"]),
    #editableTitle:not([contenteditable="true"]),
    #editableBody:not([contenteditable="true"]),
    #editableLead:not([contenteditable="true"]),
    [id^="textbox_"]:not([contenteditable="true"]) {
      pointer-events: auto !important;
      cursor: move;
      -webkit-user-select: none;
      user-select: none;
      touch-action: none;
    }
    .editable-text-node:not([contenteditable="true"]):hover,
    [data-editable="true"]:not([contenteditable="true"]):hover,
    #editableTitle:not([contenteditable="true"]):hover,
    #editableBody:not([contenteditable="true"]):hover,
    #editableLead:not([contenteditable="true"]):hover,
    [id^="textbox_"]:not([contenteditable="true"]):hover {
      outline: 1px solid rgba(0, 196, 204, 0.55);
      outline-offset: 2px;
    }

    /* Camadas de Fundo, Imagens de Fundo, Overlays e Elementos Decorativos NUNCA devem interceptar cliques ou eventos de ponteiro */
    .bespoke-injected-bg,
    .bespoke-injected-bg *,
    [data-bespoke-bg-img="true"],
    [data-bespoke-bg-img="true"] *,
    .bespoke-bg-active,
    #cardBgImage,
    .card-bg-layer,
    .card-bg-layer * {
      pointer-events: none !important;
      cursor: default !important;
      user-select: none !important;
      -webkit-user-select: none !important;
    }

    .pointer-events-none {
      pointer-events: none !important;
    }

    /* Elementos interativos, camadas de sobreposição, formas, stickers, rodapé e textos DEVEM ser clicáveis */
    .pointer-events-auto,
    .pointer-events-auto *,
    .overlay-layer,
    .overlay-layer *,
    [data-layer-id],
    [data-layer-id] *,
    .shape-wrap,
    .shape-wrap *,
    #cardOverlayLayers > div,
    #cardOverlayLayers > div *,
    #cardProgressIndicatorBox,
    #cardProgressIndicatorBox *,
    #cardSlideIndicator,
    #cardFooterCtaBox,
    #cardFooterCtaBox *,
    #cardFooterCta,
    #cardAuthorBox,
    #cardAuthorBox *,
    #cardAuthorAvatar,
    #cardBrandLogo,
    #cardBrandLogo *,
    [contenteditable="true"],
    [contenteditable="true"] *,
    .editable-text-node,
    .editable-text-node * {
      pointer-events: auto !important;
    }

    [contenteditable="true"]:hover, .editable-text-node:hover {
      outline: 1px dashed rgba(255, 255, 255, 0.35);
      outline-offset: 2px;
      cursor: text;
    }
    [contenteditable="true"]:focus, .editable-text-node:focus {
      outline: 2px solid #06b6d4;
      outline-offset: 3px;
      background: rgba(0,0,0,0.4);
      border-radius: 4px;
    }

    /* Safe Zone lines */
    .safe-zone-overlay {
      position: absolute;
      inset: 24px;
      border: 1px dashed rgba(6, 182, 212, 0.4);
      pointer-events: none !important;
      z-index: 10;
    }

    /* Studio Effects: Sticker Glow, 3D Shadow, Bottom Fade */
    .effect-sticker-white {
      filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(0 0 10px rgba(255,255,255,0.85));
    }
    .effect-sticker-cyan {
      filter: drop-shadow(2px 0 0 #06b6d4) drop-shadow(-2px 0 0 #06b6d4) drop-shadow(0 2px 0 #06b6d4) drop-shadow(0 -2px 0 #06b6d4) drop-shadow(0 0 12px rgba(6,182,212,0.9));
    }
    .effect-sticker-gold {
      filter: drop-shadow(2px 0 0 #f59e0b) drop-shadow(-2px 0 0 #f59e0b) drop-shadow(0 2px 0 #f59e0b) drop-shadow(0 -2px 0 #f59e0b) drop-shadow(0 0 12px rgba(245,158,11,0.9));
    }
    .effect-3d-shadow {
      filter: drop-shadow(0 25px 25px rgba(0, 0, 0, 0.9)) drop-shadow(0 10px 12px rgba(0, 0, 0, 0.75));
    }
    .effect-bottom-fade {
      -webkit-mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
      mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
    }

    /* Interactive On-Canvas Bounding Box Transformer (Estilo Canva / Figma Pro: Fino e Elegante) */
    
    #editableTitle, #editableBody, #editableLead {
      display: inline-block;
      width: fit-content;
      max-width: 100%;
      box-sizing: border-box;
    }
    #editableTitle[data-hidden="true"],
    #editableBody[data-hidden="true"],
    #editableLead[data-hidden="true"],
    .slide-element-hidden {
      display: none !important;
    }

    #creativeCard img {
      -webkit-user-drag: none;
      -khtml-user-drag: none;
      -moz-user-drag: none;
      -o-user-drag: none;
      user-drag: none;
      -webkit-user-select: none;
      user-select: none;
    }

    .canvas-transformer {
      position: absolute;
      border: 1.5px solid #00c4cc; /* Traço nítido e elegante estilo Canva/Figma */
      pointer-events: none; /* Permite clique e interação direta no elemento interno */
      z-index: 60;
      box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.45);
      border-radius: 2px;
      transform-origin: center center;
      transition: border-color 0.15s ease;
      touch-action: none;
    }
    /* Permite arrastar tocando diretamente no contorno do transformer no mobile ou desktop quando em Box Mode */
    .canvas-transformer:not(.editing-text) {
      pointer-events: auto;
      cursor: move;
      touch-action: none;
    }
    .canvas-transformer.editing-text {
      border: 1.5px dashed #38bdf8;
      box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25);
      pointer-events: none !important;
    }
    /* Liberdade total de movimentação: elementos arrastados não ficam presos/cortados em caixas cinzas ou contêineres */
    #creativeCard [data-editable-box="true"],
    #creativeCard .layout-interactive-box,
    #creativeCard .editable-box-container {
      overflow: visible !important;
    }
    #creativeCard.is-dragging-element,
    #creativeCard.is-dragging-element #cardDynamicBody,
    #creativeCard.is-dragging-element .layout-interactive-box,
    #creativeCard.is-dragging-element [data-editable-box="true"],
    #creativeCard.is-dragging-element .overflow-hidden {
      overflow: visible !important;
    }
    #creativeCard {
      overflow: hidden !important;
    }
    .canvas-transformer.dragging-active {
      border: 1px dashed rgba(0, 196, 204, 0.8) !important;
      box-shadow: none !important;
      background: transparent !important;
    }
    .canvas-transformer.dragging-active .transformer-handle {
      display: none !important;
      opacity: 0 !important;
      pointer-events: none !important;
    }
    .canvas-transformer.dragging-active #transformerTether {
      display: none !important;
      opacity: 0 !important;
      pointer-events: none !important;
    }
    .canvas-transformer.dragging-active #transformerReticle,
    #transformerReticle {
      display: none !important;
    }
    #canvasDragHud {
      pointer-events: none;
      z-index: 250;
      transition: opacity 0.1s ease;
    }

    #transformerRotateBar {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      z-index: 90;
      pointer-events: auto;
      user-select: none;
      touch-action: none;
      bottom: -46px;
    }
    #transformerRotateBar .transformer-stem-line {
      order: 1;
      width: 1.5px;
      height: 18px;
      background: #38bdf8;
    }
    #transformerRotateBar #transformerRotateHandle {
      order: 2;
      width: 32px !important;
      height: 32px !important;
      border-radius: 50% !important;
      background: #09090b !important;
      color: #38bdf8 !important;
      border: 1.5px solid #38bdf8 !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      cursor: grab !important;
      box-shadow: 0 4px 14px rgba(0,0,0,0.85) !important;
      pointer-events: auto !important;
      touch-action: none !important;
      transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease !important;
      box-sizing: border-box !important;
      z-index: 95 !important;
    }
    #transformerRotateBar #transformerRotateHandle:hover {
      background: #18181b !important;
      color: #ffffff !important;
      border-color: #a855f7 !important;
      transform: scale(1.1) !important;
    }
    #transformerRotateBar #transformerRotateHandle:active {
      cursor: grabbing !important;
      background: #38bdf8 !important;
      color: #000000 !important;
      transform: scale(0.92) !important;
    }

    .canvas-transformer.dragging-active #transformerRotateBar {
      display: none !important;
    }

    /* Modo Foco / Zen Mode (Ocultação de Menus e Comandos) */
    #masterHeader, #masterBottomBar {
      transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease !important;
    }
    body.zen-focus-active #masterHeader {
      transform: translateY(-100%) !important;
      pointer-events: none !important;
      opacity: 0 !important;
    }
    body.zen-focus-active #masterBottomBar {
      transform: translateY(100%) !important;
      pointer-events: none !important;
      opacity: 0 !important;
    }
    body.zen-focus-active #btnExitZenFocusFloat {
      display: flex !important;
    }
    #masterBottomBar {
      transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, padding-bottom 0.25s ease !important;
      padding-bottom: max(10px, env(safe-area-inset-bottom, 10px)) !important;
      flex-shrink: 0 !important;
    }
    body.mobile-fs-elevated #masterBottomBar {
      padding-bottom: calc(max(10px, env(safe-area-inset-bottom, 10px)) + 68px) !important;
    }
    /* Alças de Redimensionamento Profissionais (Padrão Canva / Figma) */
    .transformer-handle {
      position: absolute;
      width: 10px;
      height: 10px;
      background: #ffffff;
      border: 1.5px solid #00c4cc;
      border-radius: 9999px;
      pointer-events: auto;
      touch-action: none;
      -webkit-user-select: none;
      user-select: none;
      box-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
      z-index: 65;
      transition: transform 0.1s ease, background-color 0.12s ease;
    }
    .transformer-handle:hover {
      background: #00c4cc;
      transform: scale(1.2);
    }
    /* Área de toque ampla e precisa para cantos e laterais */
    .transformer-handle::after {
      content: '';
      position: absolute;
      inset: -10px;
      pointer-events: auto;
    }
    .transformer-handle.nw { top: -5px; left: -5px; cursor: nwse-resize; }
    .transformer-handle.n  { top: -4.5px; left: calc(50% - 12px); cursor: ns-resize; width: 24px; height: 7px; border-radius: 9999px; }
    .transformer-handle.ne { top: -5px; right: -5px; cursor: nesw-resize; }
    .transformer-handle.e  { top: calc(50% - 12px); right: -4.5px; cursor: ew-resize; width: 7px; height: 24px; border-radius: 9999px; }
    .transformer-handle.se { bottom: -5px; right: -5px; cursor: nwse-resize; }
    .transformer-handle.s  { bottom: -4.5px; left: calc(50% - 12px); cursor: ns-resize; width: 24px; height: 7px; border-radius: 9999px; }
    .transformer-handle.sw { bottom: -5px; left: -5px; cursor: nesw-resize; }
    .transformer-handle.w  { top: calc(50% - 12px); left: -4.5px; cursor: ew-resize; width: 7px; height: 24px; border-radius: 9999px; }

    /* Alças verticais (n, s) sempre visíveis para redimensionar altura e criar caixas quadradas ou retangulares */
    .canvas-transformer .transformer-handle.n,
    .canvas-transformer .transformer-handle.s {
      display: block !important;
    }

    /* Floating Toolbar Container */
    .floating-toolbar {
      position: absolute;
      z-index: 70;
      animation: floatIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    }
    @keyframes floatIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    /* Mode switching styles (Studio Pro Unified) */
    body.mode-express .studio-only { display: none !important; }
    body.mode-express .express-only { display: flex !important; }

    body.mode-studio .studio-only { display: flex !important; }
    body.mode-studio .express-only { display: none !important; }

    /* Single Header Architecture: Eliminate double headers to maximize canvas space */
    #subHeaderToolbar, #expressFloatingDock { display: none !important; }

    #floatingZoomWidget { display: flex !important; }
    /* Refinamento e Usabilidade Exclusiva Mobile (<= 768px) - 100% Isolado do PC */
    @media (max-width: 768px) {
      /* Oculta o widget de zoom flutuante no mobile (o mobile já possui o botão de zoom dedicado no rodapé) */
      #floatingZoomWidget {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
        opacity: 0 !important;
      }
      /* Oculta botão de exclusão imediata nos thumbnails de slide no mobile para evitar apagamento acidental por toque */
      .btn-del-slide {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
        opacity: 0 !important;
      }
      /* Oculta botão Tela Cheia estritamente no mobile */
      #btnHeaderFullscreen {
        display: none !important;
      }
      /* 1. Mobile Bottom Sheet / Drawer para Visualização em Tempo Real do Slide */
      #sidebarDrawer {
        position: fixed !important;
        inset: auto 0 0 0 !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: 54vh !important;
        max-height: 82vh !important;
        border-top-left-radius: 24px !important;
        border-top-right-radius: 24px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-right: none !important;
        border-left: none !important;
        border-bottom: none !important;
        box-shadow: 0 -12px 50px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
        z-index: 220 !important;
        transition: height 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
      }

      /* Modo Espiar Slide (Recolhido em 52px para visualização total do card) */
      #sidebarDrawer.mobile-drawer-peek {
        height: 52px !important;
        overflow: hidden !important;
      }

      /* Modo Expandido / Quase Tela Cheia */
      #sidebarDrawer.mobile-drawer-expanded {
        height: 82vh !important;
      }

      /* Backdrop transparente no mobile para manter o slide 100% nítido sem escurecer nem borrar */
      #sidebarBackdrop {
        background: rgba(0, 0, 0, 0.01) !important;
        backdrop-filter: none !important;
        z-index: 215 !important;
      }

      /* Palco adapta o espaço inferior e alinha ao topo para o slide ficar 100% visível na janela superior */
      body.mobile-sheet-open #stageContainer {
        padding-bottom: 54vh !important;
        transition: padding 0.28s ease !important;
      }
      body.mobile-sheet-open #stageScrollArea {
        align-items: flex-start !important;
        padding-top: 10px !important;
      }
      body.mobile-sheet-open.sheet-peek #stageContainer {
        padding-bottom: 56px !important;
      }
      body.mobile-sheet-open.sheet-peek #stageScrollArea {
        align-items: center !important;
        padding-top: 18px !important;
      }

      /* 2. Header Mobile Fluido e Touch-Friendly em UMA LINHA SÓ com Scroll Horizontal Suave */
      #masterHeader {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 6px 8px !important;
        height: 46px !important;
        min-height: 46px !important;
        max-height: 46px !important;
        gap: 6px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        background-color: #0c0c0e !important;
      }
      #masterHeader::-webkit-scrollbar {
        display: none !important;
      }

      #headerZoneLeft, #headerZoneCenter, #headerZoneRight {
        display: contents !important;
      }

      .mobile-header-break {
        display: none !important;
      }

      /* 1. LOGO KREAITORS NO CANTO ESQUERDO (SEM O TEXTO KREAITORS) */
      #topbarUnifiedBrandWrapper {
        order: 1 !important;
        flex-shrink: 0 !important;
      }
      #topbarBrandDnaLogoText {
        display: none !important;
      }
      #topbarBrandDnaAvatarBox {
        display: none !important;
      }
      #topbarMobileKreaitorsLogo {
        display: block !important;
      }
      #btnOpenBrandDNA {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        border-radius: 9px !important;
      }

      /* 2. BOTÃO MUDAR PROPORÇÃO */
      #formatDropdownWrapper {
        order: 2 !important;
        flex-shrink: 0 !important;
        margin-right: 0 !important;
        position: static !important;
      }
      #btnFormatDropdown {
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 8px !important;
        font-size: 11px !important;
        gap: 4px !important;
        border-radius: 9px !important;
        flex-shrink: 0 !important;
      }

      /* 3. BOTÃO ESTILOS */
      #btnToggleSidebar {
        order: 3 !important;
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 9px !important;
        font-size: 11px !important;
        gap: 4px !important;
        border-radius: 9px !important;
        flex-shrink: 0 !important;
        flex: none !important;
        min-width: max-content !important;
      }
      #btnToggleSidebar .header-btn-text-responsive {
        display: inline !important;
      }

      /* 4. BOTÃO CRIAR CARROSSEL (TROCADO COM MODELOS NO MOBILE) */
      #aiCreationDropdownWrapper {
        order: 4 !important;
        flex-shrink: 0 !important;
        flex: none !important;
        min-width: max-content !important;
        position: static !important;
      }
      #aiCreationDropdownWrapper > button, #btnUnifiedAiCreate {
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 10px !important;
        font-size: 11px !important;
        gap: 4px !important;
        border-radius: 9px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        width: auto !important;
      }
      #btnUnifiedAiCreate .header-btn-text-responsive {
        display: inline !important;
      }

      /* 5. BOTÃO MODELOS (TROCADO COM CRIAR CARROSSEL NO MOBILE) */
      #btnOpenTemplateLibrary {
        order: 5 !important;
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 9px !important;
        font-size: 11px !important;
        gap: 4px !important;
        border-radius: 9px !important;
        flex-shrink: 0 !important;
        flex: none !important;
        min-width: max-content !important;
      }
      #btnOpenTemplateLibrary .header-btn-text-responsive {
        display: inline !important;
      }

      /* 6. BOTÃO VER (APRESENTAÇÃO) */
      #btnOpenShowcasePresentation {
        order: 6 !important;
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 9px !important;
        font-size: 11px !important;
        gap: 4px !important;
        border-radius: 9px !important;
        flex-shrink: 0 !important;
        flex: none !important;
        min-width: max-content !important;
      }
      #btnOpenShowcasePresentation .header-btn-text-responsive {
        display: inline !important;
      }

      /* 7. BOTÃO SALVAR */
      #btnSaveProject {
        order: 7 !important;
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 9px !important;
        font-size: 11px !important;
        gap: 4px !important;
        border-radius: 9px !important;
        flex-shrink: 0 !important;
      }
      #btnSaveProject #saveBtnText {
        display: inline !important;
      }

      /* 8. BOTÃO SALVOS */
      #autosaveDropdownContainer {
        order: 8 !important;
        flex-shrink: 0 !important;
      }
      #autosaveBadge {
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 8px !important;
        font-size: 11px !important;
        gap: 4px !important;
        border-radius: 9px !important;
        flex-shrink: 0 !important;
      }
      #autosaveBadge .header-btn-text-responsive {
        display: inline !important;
      }

      /* 9. BOTÃO FERRAMENTAS VIP */
      #unifiedToolsDropdownWrapper {
        order: 9 !important;
        flex-shrink: 0 !important;
        position: static !important;
      }
      #btnUnifiedToolsMenu {
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 9px !important;
        font-size: 11px !important;
        gap: 4px !important;
        border-radius: 9px !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
      }
      #btnUnifiedToolsMenu span {
        font-size: 11px !important;
        white-space: nowrap !important;
      }

      /* 10. BOTÃO BAIXAR */
      #exportDropdownContainer {
        order: 10 !important;
        flex-shrink: 0 !important;
        position: static !important;
      }
      #btnOpenExportMenu {
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 10px !important;
        font-size: 11px !important;
        gap: 4px !important;
        border-radius: 9px !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
      }
      #btnOpenExportMenu .header-btn-text-responsive {
        display: inline !important;
      }

      /* Previne auto-zoom no iOS Safari */
      #masterHeader #expressTopicInput,
      #masterHeader textarea#expressTopicInput,
      #masterHeader input#expressTopicInput {
        font-size: 15px !important;
      }

      /* 3. Floating Toolbars no Mobile: Touch Scroll Fluido */
      .floating-toolbar {
        overflow-x: auto !important;
        max-width: calc(100vw - 16px) !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-x !important;
        scrollbar-width: none !important;
      }
      .floating-toolbar::-webkit-scrollbar {
        display: none !important;
      }
      .mobile-touch-scroll {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-x !important;
        scrollbar-width: none !important;
      }
      .mobile-touch-scroll::-webkit-scrollbar {
        display: none !important;
      }
      .mobile-touch-scroll-y {
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-y !important;
      }

      /* 4. Menus e Dropdowns no Mobile: Flutuantes Desacoplados com Ancoragem Perfeita */
      #clientSwitcherDropdown {
        position: fixed !important;
        top: 48px !important;
        left: 8px !important;
        z-index: 99999 !important;
        max-width: calc(100vw - 16px) !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
        background-color: #0c0c0e !important;
      }
      #formatDropdownMenu, #exportDropdownMenu, #aiCreationDropdownMenu, #unifiedToolsDropdownMenu {
        max-width: calc(100vw - 16px) !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.15) !important;
        background-color: #121319 !important;
        opacity: 1 !important;
      }
      #formatDropdownMenu {
        position: fixed !important;
        top: 48px !important;
        left: 44px !important;
        margin-top: 0 !important;
        z-index: 99999 !important;
      }
      #aiCreationDropdownMenu:not(.hidden) {
        display: flex !important;
        position: fixed !important;
        top: 48px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin-top: 0 !important;
        z-index: 99999 !important;
        width: 275px !important;
      }
      #aiCreationDropdownMenu.hidden {
        display: none !important;
      }
      #unifiedToolsDropdownMenu {
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.15) !important;
        background-color: #121319 !important;
        opacity: 1 !important;
        max-width: calc(100vw - 16px) !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-y !important;
      }
      #unifiedToolsDropdownMenu:not(.hidden) {
        display: flex !important;
        position: fixed !important;
        top: 50px;
        right: 8px;
        left: auto !important;
        margin-top: 0 !important;
        z-index: 99999 !important;
        width: min(290px, calc(100vw - 16px));
        max-height: calc(100vh - 60px);
        overflow-y: auto !important;
      }
      #unifiedToolsDropdownMenu.hidden {
        display: none !important;
      }
      #exportDropdownMenu:not(.hidden), #exportDropdownMenu {
        display: flex !important;
        position: fixed !important;
        top: 48px !important;
        right: 8px !important;
        left: auto !important;
        margin-top: 0 !important;
        z-index: 99999 !important;
        width: 260px !important;
      }
      #exportDropdownMenu.hidden {
        display: none !important;
      }
      #exportDropdownContainer {
        z-index: 110 !important;
        pointer-events: auto !important;
      }
      #btnOpenExportMenu {
        pointer-events: auto !important;
        touch-action: manipulation !important;
        cursor: pointer !important;
      }

      /* BOTÕES DE AÇÃO FLUTUANTE DISCRETOS E COMPACTOS NO MOBILE */
      #slideActionButtonsContainer {
        top: -36px !important;
      }
      #btnRemixLayoutFloat,
      #btnToggleBespokeBrandDna {
        width: 28px !important;
        height: 28px !important;
        min-height: 28px !important;
        min-width: 28px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 9999px !important;
        opacity: 0.95 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
      }

      #dropdownQuickLayouts {
        position: fixed !important;
        top: auto !important;
        bottom: 80px !important;
        left: 8px !important;
        right: 8px !important;
        width: auto !important;
        max-width: calc(100vw - 16px) !important;
        max-height: 55vh !important;
        z-index: 9999 !important;
        border-radius: 20px !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.98), 0 0 0 1px rgba(255, 255, 255, 0.18) !important;
      }

      /* Modal Brand DNA no Mobile: Sobreposição Total */
      #modalBrandDNA {
        z-index: 999999 !important;
      }
      #modalBrandDNA .unified-tab-btn {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        padding: 5px 8px !important;
      }

      /* 5. ENGENHARIA ULTRA-PRO MOBILE: FERRAMENTAS E POPOVERS DOCKADOS EM BOTTOM SHEET (CANVA / FIGMA PRO) */
      /* Garante que o slide ocupe todo o espaço livre no topo com visibilidade total e sem folgas */
      body.mobile-tool-sheet-open #stageContainer {
        padding-bottom: 42vh !important;
        transition: padding 0.2s ease-out !important;
      }
      body.mobile-tool-sheet-open #stageScrollArea {
        align-items: flex-start !important;
        justify-content: center !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
      }

      /* Quando a barra flutuante de edição está ativa no mobile, concede respiro inferior para rolagem */
      body.mobile-toolbar-active #stageContainer {
        padding-bottom: 160px !important;
      }

      /* Quando o usuário está digitando ativamente no texto (teclado aberto), recolhe a bottom bar para dar espaço total */
      body.mobile-text-editing #masterBottomBar {
        display: none !important;
      }
      body.mobile-text-editing #stageContainer {
        padding-bottom: 360px !important;
      }
      body.mobile-text-editing #stageScrollArea {
        align-items: flex-start !important;
        padding-top: 10px !important;
      }

      #ftEffectsPopover,
      #ftSpacingPopover,
      #fbgOverlayPopover,
      #fbgTexturePopover,
      #fbgGradientPopover,
      #floatingAdjustPopover,
      #fiStickerPopover,
      #fiShadowPopover,
      #fsShadowPopover,
      #fsNeonPopover,
      #fsFrameAdjustPopover,
      #ftHighlightColorPalette,
      .fi-image-subpopover,
      .fs-shape-subpopover {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100vw !important;
        max-width: 100vw !important;
        max-height: 40vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-y !important;
        overscroll-behavior: contain !important;
        transform: none !important;
        z-index: 260 !important;
        border-radius: 24px 24px 0 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
        background: #0d0f17 !important;
        box-shadow: 0 -12px 45px rgba(0, 0, 0, 0.95), 0 -1px 0 rgba(255, 255, 255, 0.1) inset !important;
        padding: 8px 14px 22px 14px !important;
        margin: 0 !important;
      }

      #fbgGradAngleSlider,
      #sliderOverlay,
      #ftInputLetterSpacing,
      #ftInputLineHeight,
      #adjustBrightness,
      #adjustContrast,
      #adjustSaturation,
      #adjustHue,
      #adjustBlur {
        touch-action: none !important;
      }

      #ftEffectsPopover.hidden,
      #ftSpacingPopover.hidden,
      #fbgOverlayPopover.hidden,
      #fbgTexturePopover.hidden,
      #fbgGradientPopover.hidden,
      #floatingAdjustPopover.hidden,
      #fiStickerPopover.hidden,
      #fiShadowPopover.hidden,
      #fsShadowPopover.hidden,
      #fsNeonPopover.hidden,
      #fsFrameAdjustPopover.hidden,
      #ftHighlightColorPalette.hidden {
        display: none !important;
      }

      /* Compactação de cartões internos dos popovers no mobile */
      #ftEffectsPopover .p-2\\.5,
      #ftSpacingPopover .p-2\\.5,
      #floatingAdjustPopover .p-2\\.5 {
        padding: 8px 10px !important;
      }



      /* Quando a folha está minimizada (modo espiar), o backdrop fica oculto */
      body.sheet-peek #sidebarBackdrop {
        display: none !important;
      }
    }

    /* Exibir nomes dos botões do header tanto no mobile quanto no PC */
    @media (max-width: 520px) {
      .header-btn-text-responsive {
        display: inline !important;
        font-size: 11px !important;
      }
      #quickLayoutLabel {
        max-width: 90px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
      }
    }
    @media (min-width: 521px) {
      .header-btn-text-responsive {
        display: inline !important;
      }
    }
    /* Popovers de Imagem em Desktop: posicionados via JS como fixed, fora da barra flutuante */
    @media (min-width: 769px) {
      .fi-image-subpopover {
        position: fixed !important;
      }
    }

    /* ======================================================== */
    /* DESKTOP HEADER (PC MODE): PADRÃO SAAS ELEGANTE E CONFORTÁVEL */
    /* Restaura a altura da barra e botões para o padrão espaçoso original no PC */
    /* ======================================================== */
    @media (min-width: 1024px) {
      #masterHeader {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        min-height: 52px !important;
        max-height: 52px !important;
        height: 52px !important;
        padding: 6px 14px !important;
        align-items: center !important;
        overflow: visible !important;
      }
      #headerZoneLeft {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
      }
      #headerZoneCenter {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        flex: 1 1 auto !important;
      }
      #headerZoneRight {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
      }

      #masterHeader .btn-titanium, 
      #masterHeader .btn-ghost-sleek,
      #masterHeader #btnToggleSidebar,
      #masterHeader #btnFormatDropdown,
      #masterHeader #btnOpenGenerateCoverAI,
      #masterHeader #btnGenerateAllSlidesAI,
      #masterHeader #btnOpenTemplateLibrary,
      #masterHeader #btnUnifiedAiCreate,
      #masterHeader #btnSaveProject,
      #masterHeader #btnHeaderResetZero,
      #masterHeader #btnOpenShowcasePresentation,
      #masterHeader #autosaveBadge,
      #masterHeader #btnOpenExportMenu {
        height: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;
        padding: 0 9px !important;
        font-size: 12px !important;
        gap: 6px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
        border-radius: 10px !important;
      }
      #masterHeader #btnOpenExportMenu {
        padding: 0 12px !important;
        gap: 6px !important;
      }
      #masterHeader #autosaveBadge {
        padding: 0 8px !important;
        gap: 5px !important;
      }
      #masterHeader svg {
        width: 14px !important;
        height: 14px !important;
        flex-shrink: 0 !important;
      }
      #masterHeader svg.w-3, #masterHeader svg.w-2\.5 {
        width: 11px !important;
        height: 11px !important;
      }
      #masterHeader .header-btn-text-responsive {
        font-size: 12px !important;
        font-weight: 600 !important;
      }
      #masterHeader #expressTopicInput {
        height: 26px !important;
        min-height: 26px !important;
        line-height: 26px !important;
        padding: 0 8px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        box-sizing: border-box !important;
      }
      #masterHeader #expressTopicInput:focus,
      #masterHeader #expressTopicInput.is-expanded {
        height: auto !important;
        min-height: 80px !important;
        max-height: 220px !important;
        line-height: 1.45 !important;
        padding: 4px 8px !important;
        white-space: pre-wrap !important;
        overflow-y: auto !important;
      }
      #masterHeader #omnibarActionsGroup {
        height: 26px !important;
      }
      #masterHeader #btnGenerateExpress {
        height: 26px !important;
        min-height: 26px !important;
        max-height: 26px !important;
        padding: 0 10px !important;
        font-size: 11px !important;
      }
      #masterHeader #btnHeaderVoiceRecord {
        height: 26px !important;
        min-height: 26px !important;
        max-height: 26px !important;
        padding: 0 7px !important;
        font-size: 10.5px !important;
      }
    }
    @media (max-width: 768px) {
      #masterHeader #expressTopicInput {
        font-size: 14px !important;
        min-height: 34px;
        height: 34px;
        padding: 6px 8px !important;
      }
      #masterHeader #expressTopicInput:focus,
      #masterHeader #expressTopicInput.is-expanded {
        min-height: 130px;
        max-height: 38vh;
        overflow-y: auto;
      }
      #topbarBrandDnaAvatarBox {
        width: 34px !important;
        height: 34px !important;
      }
      #topbarBrandDnaLogoText span:first-child {
        font-size: 13px !important;
      }
    }

    /* Responsividade Cirúrgica Mobile (Zero Encavalamento / Zero Rótulos Duplicados) */
    @media (max-width: 639px) {
      .btn-label-desktop { display: none !important; }
      .btn-label-mobile { display: inline !important; }
      .hide-mobile { display: none !important; }
    }
    @media (min-width: 640px) {
      .btn-label-desktop { display: inline !important; }
      .btn-label-mobile { display: none !important; }
      .hide-mobile { display: inline !important; }
    }
  
    /* ACTION BUTTONS FLOATING ANCHOR (Sempre acima do card, escalando junto) */
    #slideActionButtonsContainer {
      position: absolute !important;
      top: auto !important;
      bottom: calc(100% + 10px) !important;
      left: 0 !important;
      transform-origin: bottom left !important;
      white-space: nowrap !important;
      flex-wrap: nowrap !important;
      display: flex !important;
      align-items: center !important;
      gap: 8px !important;
      pointer-events: auto !important;
      z-index: 50 !important;
    }
    #slideLayoutRemixContainer,
    #slideBespokeBrandToggleContainer {
      position: relative !important;
      top: auto !important;
      bottom: auto !important;
      left: auto !important;
      transform: none !important;
      display: inline-flex !important;
      align-items: center !important;
      margin: 0 !important;
      padding: 0 !important;
      pointer-events: auto !important;
    }

/* --- Arsenal de Tipografia & Ajustes Mobile de Modais --- */
    /* Arsenal Completo de Tipografia Creator High-Ticket */
    .font-bebas { font-family: 'Bebas Neue', sans-serif !important; }
    .font-playfair { font-family: 'Playfair Display', serif !important; }
    .font-cormorant { font-family: 'Cormorant Garamond', serif !important; }
    .font-cinzel { font-family: 'Cinzel', serif !important; }
    .font-fraunces { font-family: 'Fraunces', serif !important; }
    .font-dmserif { font-family: 'DM Serif Display', serif !important; }
    .font-bodoni { font-family: 'Bodoni Moda', serif !important; }
    .font-lora { font-family: 'Lora', serif !important; }
    .font-prata { font-family: 'Prata', serif !important; }
    .font-archivo { font-family: 'Archivo Black', sans-serif !important; }
    .font-oswald { font-family: 'Oswald', sans-serif !important; }
    .font-anton { font-family: 'Anton', sans-serif !important; }
    .font-unbounded { font-family: 'Unbounded', sans-serif !important; }
    .font-righteous { font-family: 'Righteous', sans-serif !important; }
    .font-syne { font-family: 'Syne', sans-serif !important; }
    .font-space { font-family: 'Space Grotesk', sans-serif !important; }
    .font-outfit { font-family: 'Outfit', sans-serif !important; }
    .font-jakarta { font-family: 'Plus Jakarta Sans', sans-serif !important; }
    .font-inter { font-family: 'Inter', sans-serif !important; }
    .font-manrope { font-family: 'Manrope', sans-serif !important; }
    .font-sora { font-family: 'Sora', sans-serif !important; }
    .font-urbanist { font-family: 'Urbanist', sans-serif !important; }
    .font-lexend { font-family: 'Lexend', sans-serif !important; }
    .font-montserrat { font-family: 'Montserrat', sans-serif !important; }
    .font-jetbrains { font-family: 'JetBrains Mono', monospace !important; }
    .font-spacemono { font-family: 'Space Mono', monospace !important; }
    .font-firacode { font-family: 'Fira Code', monospace !important; }
    .font-ibmplex { font-family: 'IBM Plex Mono', monospace !important; }
    .font-bricolage { font-family: 'Bricolage Grotesque', sans-serif !important; }
    .font-caveat { font-family: 'Caveat', cursive !important; }

    /* ======================================================== */
    /* ARSENAL DE PARES TIPOGRÁFICOS DE ALTO IMPACTO (KREAITORS) */
    /* ======================================================== */
    #creativeCard.duet-applied h1,
    #creativeCard.duet-applied h2,
    #creativeCard.duet-applied h3,
    #creativeCard.duet-applied .duet-title,
    #creativeCard.duet-applied #editableTitle,
    #showcaseCardInner.duet-applied h1,
    #showcaseCardInner.duet-applied h2,
    #showcaseCardInner.duet-applied h3,
    #showcaseCardInner.duet-applied .duet-title,
    #showcaseCardInner.duet-applied #editableTitle {
      font-family: var(--duet-headline-font, inherit) !important;
      letter-spacing: var(--duet-headline-spacing, normal) !important;
      text-transform: var(--duet-headline-transform, none) !important;
    }

    #creativeCard.duet-applied p,
    #creativeCard.duet-applied li,
    #creativeCard.duet-applied .duet-body,
    #creativeCard.duet-applied #editableBody,
    #showcaseCardInner.duet-applied p,
    #showcaseCardInner.duet-applied li,
    #showcaseCardInner.duet-applied .duet-body,
    #showcaseCardInner.duet-applied #editableBody {
      font-family: var(--duet-body-font, inherit) !important;
    }

    /* ========================================================================= */
  /* 📱 MOBILE VIEWPORT POLISH & HARMONIZATION (@media max-width: 640px)      */
  /* Mantém 100% intacto o modo Desktop/PC e aperfeiçoa a UX mobile            */
  /* ========================================================================= */
  @media (max-width: 640px) {
    /* 1. Vídeo de Abertura Cinematográfico (Sem corte horizontal em 9:16) */
    #appIntroVideo {
      object-fit: contain !important;
      object-position: center center !important;
      width: 100% !important;
      height: 100% !important;
      background-color: #000000 !important;
    }

    /* 2. Menu Ferramentas: Selo Keynote Pro 100% Retangular sem Quebra */
    #btnOpenPresentation16x9Direct span.font-mono {
      white-space: nowrap !important;
      flex-shrink: 0 !important;
      display: inline-block !important;
      padding: 1.5px 5px !important;
      line-height: 1.2 !important;
    }

    /* 3. Modal Publicar & Agendar no Instagram (#modalScheduleInstagram) */
    #modalScheduleInstagram {
      padding: 6px !important;
    }
    #modalScheduleInstagram > div {
      max-height: 96vh !important;
      border-radius: 14px !important;
      width: calc(100vw - 12px) !important;
      max-width: calc(100vw - 12px) !important;
    }
    #modalScheduleInstagram > div > div:first-child {
      padding: 10px 12px !important;
    }
    #modalScheduleInstagram h3 {
      font-size: 11.5px !important;
      line-height: 1.25 !important;
    }
    #scheduleStatusBadge {
      display: none !important;
    }
    #scheduleStatusBadgeText {
      font-size: 8.5px !important;
    }
    #btnCloseScheduleModal {
      font-size: 11px !important;
      padding: 3px 6px !important;
    }
    #modalScheduleInstagram .bg-\[\#0e0f14\],
    #modalScheduleInstagram .overflow-x-auto {
      padding: 6px 10px !important;
      gap: 6px !important;
      flex-wrap: nowrap !important;
      overflow-x: auto !important;
      -webkit-overflow-scrolling: touch !important;
    }
    #tabScheduleFormBtn,
    #tabScheduleReportBtn,
    #tabScheduleQueueBtn,
    #tabScheduleSettingsBtn {
      padding: 5px 8px !important;
      font-size: 10.5px !important;
      border-radius: 6px !important;
      white-space: nowrap !important;
      flex-shrink: 0 !important;
      gap: 4px !important;
    }
    #scheduleLeadsCountBadge {
      font-size: 8px !important;
      padding: 1px 4.5px !important;
    }
    #scheduleQueueCountBadge {
      font-size: 8px !important;
      padding: 1px 4px !important;
    }
    #modalScheduleInstagram > div > div:last-child {
      padding: 10px 12px !important;
    }
    #modalScheduleInstagram > div > div:last-child > div:last-child {
      width: 100% !important;
    }
    #btnConfirmSchedulePost {
      width: 100% !important;
      justify-content: center !important;
      padding: 9px 12px !important;
      font-size: 11.5px !important;
    }

    /* 4. Modal Isca Digital & Dossiê Executivo (#modalLeadMagnet) */
    #modalLeadMagnet {
      padding: 6px !important;
    }
    #modalLeadMagnet > div {
      max-height: 96vh !important;
      border-radius: 14px !important;
      width: calc(100vw - 12px) !important;
      max-width: calc(100vw - 12px) !important;
    }
    #modalLeadMagnet > div > div:first-child {
      padding: 8px 10px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      gap: 6px !important;
      width: 100% !important;
      min-width: 0 !important;
    }
    #modalLeadMagnet > div > div:first-child > div:first-child {
      flex: 1 1 auto !important;
      min-width: 0 !important;
      overflow: hidden !important;
      gap: 6px !important;
    }
    #modalLeadMagnet > div > div:first-child h3 {
      font-size: 11px !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }
    #modalLeadMagnet > div > div:first-child h3 span.text-amber-400 {
      font-size: 8px !important;
      padding: 1px 4.5px !important;
      border-radius: 3px !important;
      background: rgba(245, 158, 11, 0.1) !important;
      border: 1px solid rgba(245, 158, 11, 0.25) !important;
      display: inline-block !important;
      line-height: 1.2 !important;
      flex-shrink: 0 !important;
    }
    #modalLeadMagnet > div > div:first-child p {
      font-size: 8.5px !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }
    #modalLeadMagnet > div > div:first-child > div:last-child {
      display: flex !important;
      align-items: center !important;
      gap: 4px !important;
      flex-shrink: 0 !important;
      margin-left: auto !important;
    }
    #btnRegenerateLeadMagnet {
      padding: 3px 6px !important;
      font-size: 10px !important;
      gap: 3px !important;
      white-space: nowrap !important;
      flex-shrink: 0 !important;
      border-radius: 6px !important;
    }
    #btnHelpLeadMagnet {
      padding: 3px 5px !important;
      font-size: 10px !important;
      flex-shrink: 0 !important;
    }
    #modalLeadMagnet button[onclick*="closeLeadMagnetModal"] {
      flex-shrink: 0 !important;
      width: 28px !important;
      height: 28px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      padding: 0 !important;
    }
    #leadMagnetIntroPanel {
      width: 100% !important;
      max-width: 100% !important;
      margin: 0 auto !important;
      padding: 14px 10px !important;
      box-sizing: border-box !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      justify-content: center !important;
      text-align: center !important;
    }
    #leadMagnetIntroPanel > * {
      width: 100% !important;
      max-width: 100% !important;
      box-sizing: border-box !important;
    }
    #leadMagnetIntroPanel h3 {
      font-size: 16px !important;
      white-space: normal !important;
      overflow: visible !important;
      text-overflow: clip !important;
      text-align: center !important;
    }
    #leadMagnetIntroPanel p {
      font-size: 11px !important;
      white-space: normal !important;
      overflow: visible !important;
      text-overflow: clip !important;
      text-align: center !important;
    }
    #leadMagnetIntroPanel .grid {
      width: 100% !important;
      margin: 0 auto !important;
    }
    #leadMagnetIntroPanel .grid > div {
      width: 100% !important;
      box-sizing: border-box !important;
    }
    #leadMagnetIntroPanel .grid p {
      white-space: normal !important;
      overflow: visible !important;
      text-overflow: clip !important;
      text-align: left !important;
    }
    #leadMagnetIntroPanel .relative {
      display: flex !important;
      justify-content: center !important;
      align-items: center !important;
      margin: 0 auto !important;
    }

    /* 5. Modal Legenda Inteligente com IA (#modalCaptionGenerator) */
    #modalCaptionGenerator {
      padding: 6px !important;
    }
    #modalCaptionGenerator > div {
      max-height: 96vh !important;
      border-radius: 14px !important;
      width: calc(100vw - 12px) !important;
      max-width: calc(100vw - 12px) !important;
    }
    #modalCaptionGenerator > div > div:first-child {
      padding: 8px 10px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      gap: 6px !important;
      width: 100% !important;
      min-width: 0 !important;
    }
    #modalCaptionGenerator > div > div:first-child > div:first-child {
      flex: 1 1 auto !important;
      min-width: 0 !important;
      overflow: hidden !important;
      gap: 6px !important;
    }
    #modalCaptionGenerator > div > div:first-child h3 {
      font-size: 11px !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }
    #modalCaptionGenerator span.text-emerald-400 {
      font-size: 8px !important;
      padding: 1px 4px !important;
      white-space: nowrap !important;
      border-radius: 3px !important;
      flex-shrink: 0 !important;
    }
    #modalCaptionGenerator > div > div:first-child p {
      font-size: 8.5px !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }
    #modalCaptionGenerator > div > div:first-child > div:last-child {
      display: flex !important;
      align-items: center !important;
      gap: 4px !important;
      flex-shrink: 0 !important;
      margin-left: auto !important;
    }
    #btnRegenerateCaption {
      padding: 3px 6px !important;
      font-size: 10px !important;
      gap: 3px !important;
      white-space: nowrap !important;
      flex-shrink: 0 !important;
      border-radius: 6px !important;
    }
    #btnRegenerateCaption svg {
      width: 12px !important;
      height: 12px !important;
      flex-shrink: 0 !important;
    }
    #btnHelpCaption {
      padding: 3px 5px !important;
      flex-shrink: 0 !important;
    }
    #btnCloseCaptionModal {
      padding: 0 !important;
      width: 28px !important;
      height: 28px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      flex-shrink: 0 !important;
    }

    /* 6. Modal Hook Retention Score (#modalHookScore) */
    #modalHookScore {
      padding: 4px !important;
    }
    #modalHookScore > div {
      max-height: 98vh !important;
      border-radius: 14px !important;
      width: calc(100vw - 8px) !important;
      max-width: calc(100vw - 8px) !important;
      margin: auto !important;
    }
    #modalHookScore > div > div:first-child {
      padding: 8px 10px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: space-between !important;
      gap: 6px !important;
      width: 100% !important;
      min-width: 0 !important;
    }
    #modalHookScore > div > div:first-child > div:first-child {
      flex: 1 1 auto !important;
      min-width: 0 !important;
      overflow: hidden !important;
      gap: 6px !important;
    }
    #modalHookScore > div > div:first-child h3 {
      font-size: 11px !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }
    #modalHookScore > div > div:first-child p {
      font-size: 8.5px !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }
    #modalHookScore > div > div:first-child > div:last-child {
      display: flex !important;
      align-items: center !important;
      gap: 4px !important;
      flex-shrink: 0 !important;
      margin-left: auto !important;
    }
    #btnHelpHookScore {
      padding: 3px 5px !important;
      font-size: 10px !important;
      flex-shrink: 0 !important;
    }
    #modalHookScore button[onclick*="closeHookScoreModal"] {
      flex-shrink: 0 !important;
      width: 28px !important;
      height: 28px !important;
      display: flex !important;
      align-items: center !important;
      justify-content: center !important;
      padding: 0 !important;
    }
    #modalHookScore .overflow-y-auto {
      max-height: 88vh !important;
      padding: 12px 10px !important;
    }
    #modalHookScore > div > div:last-child {
      display: none !important;
    }
    #hookScoreIntroPanel {
      width: 100% !important;
      max-width: 100% !important;
      margin: 0 auto !important;
      padding: 12px 6px !important;
      box-sizing: border-box !important;
      display: flex !important;
      flex-direction: column !important;
      align-items: center !important;
      justify-content: center !important;
      text-align: center !important;
    }
    #hookScoreIntroPanel h3 {
      font-size: 16px !important;
      white-space: normal !important;
      overflow: visible !important;
      text-overflow: clip !important;
      text-align: center !important;
    }
    #hookScoreIntroPanel p {
      font-size: 11px !important;
      white-space: normal !important;
      overflow: visible !important;
      text-overflow: clip !important;
      text-align: center !important;
    }
    #hookScoreIntroPanel .grid {
      width: 100% !important;
      margin: 0 auto !important;
    }
    #hookScoreIntroPanel .grid p {
      white-space: normal !important;
      overflow: visible !important;
      text-overflow: clip !important;
      text-align: left !important;
    }
    #hookScoreIntroPanel .relative {
      display: flex !important;
      justify-content: center !important;
      align-items: center !important;
      margin: 0 auto !important;
    }

    /* 7. Modal Capa Magnética com IA (#modalGenerateCoverAI) */
    #modalGenerateCoverAI {
      padding: 6px !important;
    }
    #modalGenerateCoverAI > div {
      padding: 12px !important;
      max-height: 96vh !important;
      border-radius: 14px !important;
    }
    #modalGenerateCoverAI h3 {
      font-size: 12.5px !important;
    }
    #modalGenerateCoverAI p.text-\[11px\] {
      font-size: 9.5px !important;
    }
    #modalGenerateCoverAI .pt-3.border-t {
      padding-top: 10px !important;
      gap: 6px !important;
      flex-wrap: wrap !important;
    }
    #modalGenerateCoverAI .pt-3.border-t > div:first-child {
      flex: 0 0 auto !important;
    }
    #modalGenerateCoverAI .pt-3.border-t > div:last-child {
      flex: 1 1 auto !important;
      justify-content: flex-end !important;
      gap: 6px !important;
    }
    #btnSubmitGenerateCover {
      padding: 6px 10px !important;
      font-size: 10.5px !important;
      border-radius: 8px !important;
      max-width: 100% !important;
      flex-shrink: 0 !important;
    }
    #btnSubmitGenerateCover span {
      white-space: nowrap !important;
      font-size: 10.5px !important;
    }
    #btnSubmitCoverFree {
      padding: 6px 8px !important;
      font-size: 10.5px !important;
      border-radius: 8px !important;
      white-space: nowrap !important;
    }
    #btnCancelGenerateCoverAI {
      padding: 6px 8px !important;
      font-size: 10.5px !important;
      border-radius: 8px !important;
    }

    /* 8. Modal Apresentação Palestra 16:9 (#modalPresentation16x9) */
    #modalPresentation16x9 {
      padding: 6px !important;
    }
    #modalPresentation16x9 > div {
      padding: 12px !important;
      max-height: 96vh !important;
      border-radius: 14px !important;
    }
    #modalPresentation16x9 h3 {
      font-size: 12px !important;
    }
    #modalPresentation16x9 .text-cyan-300.bg-cyan-500\/15.rounded-full {
      font-size: 8px !important;
      padding: 1px 5px !important;
      letter-spacing: 0.5px !important;
      white-space: nowrap !important;
    }
    #modalPresentation16x9 .bg-cyan-950\/20 {
      padding: 8px 10px !important;
    }
    #modalPresentation16x9 .bg-cyan-950\/20 span.text-xs {
      font-size: 11px !important;
      flex-direction: column !important;
      align-items: flex-start !important;
      gap: 2px !important;
    }
    #modalPresentation16x9 .bg-cyan-950\/20 span.text-\[9px\] {
      font-size: 8px !important;
      padding: 1px 4.5px !important;
      border-radius: 3px !important;
      display: inline-block !important;
    }
    #modalPresentation16x9 .bg-cyan-950\/20 p.text-\[10px\] {
      font-size: 9px !important;
      line-height: 1.25 !important;
    }
    #presentationStyleBadge {
      font-size: 8px !important;
      padding: 1px 5px !important;
      white-space: nowrap !important;
    }
    #modalPresentation16x9 label.text-xs.font-mono {
      font-size: 11px !important;
    }
    #modalPresentation16x9 .pt-3.border-t,
    #modalPresentation16x9 > div > div:last-child {
      flex-direction: column-reverse !important;
      gap: 8px !important;
    }
    #modalPresentation16x9 .pt-3.border-t > button,
    #modalPresentation16x9 > div > div:last-child > button {
      width: 100% !important;
      justify-content: center !important;
      text-align: center !important;
    }
    #btnGeneratePresentation16x9 {
      width: 100% !important;
      justify-content: center !important;
      padding: 9px 12px !important;
      font-size: 11.5px !important;
    }
  }

/* ==========================================================================
   BLINDAGEM GPU/RAM (MOBILE & FILMSTRIP): Evita alocação excessiva de FBOs
   ========================================================================== */
.timeline-slide-thumb,
.timeline-slide-thumb * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

@media (max-width: 768px) {
  [class*="backdrop-blur"] {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}
