/* Encarte em Vídeo — identidade do Motion Market: azul-noite, limão (ação), amarelo (preço), Anton + Baloo 2.
   Um só elemento ousado: a linha do tempo do vídeo no palco do editor. O resto fica quieto. */
/* WOFF2 só com os caracteres do português (2026-11-19: 854 KB de TTF viraram 54 KB); o TTF fica de reserva */
@font-face { font-family: "Anton"; src: url("../fonts/Anton.woff2") format("woff2"), url("../fonts/Anton.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Baloo 2"; src: url("../fonts/Baloo2.woff2") format("woff2"), url("../fonts/Baloo2.ttf") format("truetype"); font-weight: 400 800; font-display: swap; }

:root {
  color-scheme: dark;
  --noite: #071B3A; --noite-2: #0c2a57; --noite-3: #123a73; --fundo-trilho: #05142d;
  /* giz-3 a 56%: com 50% o texto de apoio ficava em 4,4:1 sobre o painel (detector, 2026-11-19); 56% dá ~5:1 */
  --giz: #F7F8FA; --giz-2: rgba(247,248,250,.74); --giz-3: rgba(247,248,250,.56);
  --linha: rgba(247,248,250,.11); --linha-forte: rgba(247,248,250,.22);
  /* véus: branco por cima da noite, do quase invisível ao realce (superfície, não texto) */
  --veu-1: rgba(255,255,255,.04); --veu-2: rgba(255,255,255,.06); --veu-3: rgba(255,255,255,.08);
  --veu-4: rgba(255,255,255,.10); --veu-5: rgba(255,255,255,.13); --veu-cheio: rgba(255,255,255,.92);
  --limao: #D7FF00; --limao-sombra: #8fae00; --sol: #FFC928; --sol-sombra: #c99400; --sol-claro: #ffe08a;
  --cabecalho: #0a2149; --moldura: #030b18;
  --sombra: rgba(0,0,0,.35); --sombra-forte: rgba(0,0,0,.5);
  --erro: #ff7b7b; --erro-fundo: rgba(255,123,123,.12); --alerta-fundo: rgba(255,201,40,.12); --ok-fundo: rgba(215,255,0,.10);
  --r-painel: 20px; --r-cartaz: 18px; --r-opcao: 16px; --r-cartao: 14px; --r-campo: 12px;
  --r-icone: 10px; --r-mini: 8px; --r-check: 5px; --r-barra: 3px; --r-celular: 40px; --r-tela: 30px;
  --corpo: "Baloo 2", system-ui, sans-serif; --titulo: Anton, Impact, sans-serif;
  /* editor no celular: barra de etapas (embaixo) + barra de ação logo acima dela */
  --nav-h: calc(64px + env(safe-area-inset-bottom)); --acao-h: 62px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* .btn, .opcao etc. têm display próprio, que anulava o atributo */
html, body { margin: 0; overflow-x: clip; }   /* clip, não hidden: hidden quebra o position: sticky */
body {
  min-height: 100vh; color: var(--giz); font: 16px/1.45 var(--corpo); -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 700px at -10% -10%, rgba(215,255,0,.08), transparent 60%),
    radial-gradient(900px 700px at 110% 100%, rgba(255,201,40,.08), transparent 60%),
    var(--noite);
  background-attachment: fixed;
}
a { color: var(--limao); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--limao); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Anton tem um peso só: nunca pedir negrito (o navegador faria negrito sintético e borraria a letra) */
.anton, h1, h2, .preco-grande { font-family: var(--titulo); font-weight: 400; letter-spacing: .2px; line-height: 1.05; }
h1 { font-size: 34px; margin: 4px 0 8px; }
h2 { font-size: 20px; margin: 26px 0 12px; }
h3 { font-size: 16px; font-weight: 800; margin: 0 0 4px; }
h1, h2, h3 { text-wrap: balance; }
p, .sub, .dica, .pequeno { text-wrap: pretty; }
.sub { color: var(--giz-2); margin: 0 0 18px; max-width: 62ch; }
.pequeno { font-size: 13px; color: var(--giz-3); }
.centro { text-align: center; }

/* ---------------------------------------------------------------- moldura das páginas (fora do editor) */
.topo { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 64px; padding: 0 20px; background: rgba(7,27,58,.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linha); }
.marca { display: inline-flex; align-items: center; gap: 10px; color: var(--giz); text-decoration: none; }
.marca img { width: 40px; height: 25px; }
.marca span { font-family: var(--titulo); font-size: 20px; letter-spacing: .4px; white-space: nowrap; }
.marca span b { font-weight: 400; color: var(--limao); }
#menu { display: flex; gap: 2px; align-items: center; }
#menu a, #menu button { color: var(--giz-2); text-decoration: none; background: transparent; border: 0; padding: 8px 12px; border-radius: 999px;
  font-weight: 700; font-size: 15px; cursor: pointer; }
#menu a:hover, #menu button:hover { color: var(--giz); background: var(--veu-2); }
#menu a.ativo { color: var(--noite); background: var(--limao); }
main { max-width: 980px; margin: 0 auto; padding: 28px 20px 120px; }
.carregando { padding: 80px 0; text-align: center; color: var(--giz-3); }
body.modo-editor .topo { display: none; }
body.modo-editor main { max-width: none; padding: 0; }

/* ---------------------------------------------------------------- blocos */
.painel { background: rgba(12,42,87,.72); border: 1px solid var(--linha); border-radius: var(--r-painel); padding: 18px; }
.pilha > * + * { margin-top: 12px; }
.linha { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.entre { justify-content: space-between; }
.cresce { flex: 1 1 auto; min-width: 0; }
.grade { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

/* ---------------------------------------------------------------- campos */
label.campo { display: block; }
label.campo > span { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--giz-2); }
/* input:not([type]) = campos sem atributo type (produtos do editor); sem ele o navegador
   aplica o fundo cinza padrão do modo escuro (#3b3b3b) em vez do véu da marca */
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 13px; border-radius: var(--r-campo); background: var(--veu-2);
  border: 1px solid var(--linha-forte); color: var(--giz); }
textarea { resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--giz-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--limao); box-shadow: 0 0 0 3px rgba(215,255,0,.18); }
input[readonly] { opacity: .65; }
select option { background: var(--noite-2); }
input[type=color] { width: 100%; height: 46px; border-radius: var(--r-campo); padding: 4px; }
.dica { font-size: 13px; color: var(--giz-3); margin-top: 5px; }
/* código de 6 dígitos (confirmação de e-mail, senha nova): grande e espaçado, para ler no celular */
input.codigo { font-family: var(--titulo); font-weight: 400; font-size: 30px; letter-spacing: 10px; text-align: center;
  padding-left: 18px; }
input.codigo::placeholder { letter-spacing: normal; font-family: var(--corpo); font-size: 15px; }
.aceite { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; line-height: 1.45; color: var(--giz-3);
  cursor: pointer; }
.aceite input { appearance: none; -webkit-appearance: none; display: grid; place-content: center; width: 18px;
  height: 18px; flex: none; margin: 1px 0 0; border: 1.5px solid var(--giz-3); border-radius: var(--r-check);
  background: var(--veu-2); cursor: pointer; }
.aceite input:checked { border-color: var(--limao);
  background: var(--limao) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%23071B3A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat; }
.aceite input:focus-visible { outline: 2px solid var(--limao); outline-offset: 2px; }
.aceite a { color: var(--giz-2); }

/* ---------------------------------------------------------------- botões (o limão "de apertar" do Motion Market) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 18px;
  border-radius: 999px; border: 1px solid var(--linha-forte); background: var(--veu-2); color: var(--giz);
  font-weight: 800; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--veu-4); }
.btn.prim, .btn.sol { font-family: var(--titulo); font-weight: 400; font-size: 17px; letter-spacing: .3px; border: 0; color: var(--noite);
  padding: 11px 22px 8px; transition: transform .12s ease, box-shadow .12s ease; }
.btn.prim { background: var(--limao); box-shadow: 0 5px 0 var(--limao-sombra); }
.btn.sol { background: var(--sol); box-shadow: 0 5px 0 var(--sol-sombra); }
.btn.prim:active, .btn.sol:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--limao-sombra); }
.btn.cheio { width: 100%; }
.btn.peq { min-height: 34px; padding: 5px 13px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: progress; }
/* Continuar com Google: pílula branca, do jeito que a pessoa reconhece. Um tom abaixo do botão aceso da tela. */
.btn.google { background: #fff; border-color: #fff; color: var(--noite); font-weight: 700; }
.btn.google:hover { background: #f1f3f4; border-color: #f1f3f4; }
.separador { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; color: var(--giz-3); }
.separador::before, .separador::after { content: ""; flex: 1; height: 1px; background: var(--linha); }
.separador-aceite { margin: 0; }
/* Compartilhar: um botão por rede, ícone na cor da marca em cima do nome (WhatsApp, Instagram, Facebook) */
.redes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.btn.rede { flex-direction: column; gap: 5px; min-height: 76px; padding: 11px 6px 9px; font-size: 13px; font-weight: 700; }
.btn.rede svg { width: 26px; height: 26px; }
.btn.rede#shr-wa svg { color: #25d366; }
.btn.rede#shr-ig svg { color: #e8629a; }
.btn.rede#shr-fb svg { color: #63a1ff; }
.btn.rede:hover { border-color: var(--linha-forte); background: var(--veu-4); }
.icone-btn { width: 34px; height: 34px; border-radius: var(--r-icone); border: 1px solid var(--linha); background: var(--veu-1);
  color: var(--giz-2); cursor: pointer; display: inline-grid; place-items: center; flex: none; }
.icone-btn:hover { color: var(--giz); border-color: var(--linha-forte); }

/* ---------------------------------------------------------------- escolhas */
.opcao { position: relative; display: block; width: 100%; text-align: left; padding: 14px 16px; border-radius: var(--r-opcao); cursor: pointer;
  background: var(--veu-1); border: 1px solid var(--linha); color: var(--giz); }
.opcao:hover { border-color: var(--linha-forte); background: var(--veu-2); }
.opcao.sel { border-color: var(--limao); background: rgba(215,255,0,.07); box-shadow: inset 0 0 0 1px var(--limao); }
/* h2 quando a opção vem logo abaixo do h1 da tela (onboarding), h3 dentro de painel: mesma cara nos dois */
.opcao :is(h2, h3) { margin: 0 0 3px; padding-right: 26px; font: 800 16px/1.3 var(--corpo); letter-spacing: normal; }
.opcao p { margin: 0; font-size: 14px; color: var(--giz-2); }
.opcao .marcado { position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--linha-forte); }
.opcao.sel .marcado { border-color: var(--limao); background: var(--limao) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%23071B3A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
/* conta grátis: a opção aparece (dá para ouvir a amostra), mas escolher é da assinatura */
.opcao.bloqueado { border-style: dashed; }
.opcao.bloqueado :is(h2, h3) { color: var(--giz-2); }
.opcao .cadeado { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 12px; color: var(--giz-3); }
/* sela neutra sólida: a da galeria pousa sobre o quadro do vídeo, onde um véu branco sumiria */
.selo { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; background: var(--cabecalho); color: var(--giz); }
.selo.ok { background: var(--limao); color: var(--noite); }
.selo.alerta { background: var(--sol); color: var(--noite); }

/* ---------------------------------------------------------------- boas-vindas (uma pergunta por vez) */
.onboard { max-width: 560px; margin: 18px auto 0; }
.onboard .pergunta { font-family: var(--titulo); font-weight: 400; font-size: 30px; line-height: 1.12; letter-spacing: .2px; margin: 12px 0 22px; }
.onboard .opcao { padding: 16px 18px; }
.onboard .opcao :is(h2, h3) { font-size: 17px; }
.onboard .rodape { display: flex; gap: 12px; align-items: center; margin-top: 20px; }
.onboard .pular { color: var(--giz-3); background: none; border: 0; padding: 8px 6px; cursor: pointer; font-size: 14px; text-decoration: underline; white-space: nowrap; }
.onboard .pular:hover { color: var(--giz-2); }
@media (max-width: 640px) { .onboard .pergunta { font-size: 26px; } }
.selo.erro { background: var(--erro); color: var(--noite); }

/* ---------------------------------------------------------------- avisos */
.aviso { padding: 11px 14px; border-radius: var(--r-campo); font-size: 14px; background: var(--alerta-fundo); color: var(--sol-claro); border: 1px solid rgba(255,201,40,.3); }
.aviso.ok { background: var(--ok-fundo); color: var(--limao); border-color: rgba(215,255,0,.3); }
.aviso.erro { background: var(--erro-fundo); color: var(--erro); border-color: rgba(255,123,123,.35); }

/* ---------------------------------------------------------------- diálogo (confirmação antes de gastar a locução) */
dialog.dialogo { width: min(440px, calc(100vw - 32px)); padding: 22px 22px 18px; border-radius: var(--r-cartaz);
  border: 1px solid var(--linha-forte); background: var(--noite-2); color: var(--giz);
  box-shadow: 0 30px 80px var(--sombra-forte); }
dialog.dialogo::backdrop { background: rgba(3, 10, 25, .72); }
dialog.dialogo h2 { font-family: var(--titulo); font-weight: 400; font-size: 26px; margin: 0 0 8px; }
dialog.dialogo p { margin: 0 0 6px; color: var(--giz-2); font-size: 17px; line-height: 1.45; }
dialog.dialogo .pequeno { color: var(--giz-3); font-size: 14px; margin-top: 8px; }
/* gerando a locução: aviso por cima do vídeo da prévia (a narração leva alguns segundos) */
.gerando-voz { position: absolute; inset: 11px; z-index: 5; border-radius: var(--r-tela); display: grid; place-content: center;
  justify-items: center; gap: 10px; padding: 20px; text-align: center; background: rgba(7,27,58,.86); color: var(--giz); }
.gerando-voz[hidden] { display: none; }
.gerando-voz b { font-size: 17px; font-weight: 800; }
.gerando-voz small { font-size: 14px; color: var(--giz-2); }
.gerando-voz .giro { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--veu-4); border-top-color: var(--limao);
  animation: girar .9s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gerando-voz .giro { animation: none !important; border-color: var(--limao); } }
dialog.dialogo .linha { justify-content: flex-end; margin-top: 18px; }
dialog.dialogo-foto { width: min(720px, calc(100vw - 24px)); }
dialog.dialogo-foto img { display: block; width: 100%; max-height: 66vh; object-fit: contain; margin: 10px 0 4px;
  border-radius: var(--r-campo); background: var(--veu-cheio); }

/* ---------------------------------------------------------------- entrada (login e cadastro) */
.entrada { display: grid; gap: 34px; align-items: center; max-width: 980px; margin: 10px auto 0; }
.entrada h1 { font-size: 56px; margin-bottom: 14px; }
.entrada .sub { font-size: 17px; }
.entrada form { max-width: 420px; }
.celular { position: relative; width: min(100%, 300px); aspect-ratio: 9 / 16; margin: 0 auto; border-radius: var(--r-celular); padding: 11px; background: var(--moldura);
  box-shadow: 0 34px 70px var(--sombra-forte), inset 0 0 0 2px var(--noite-3); }
.celular > .tela { position: relative; width: 100%; height: 100%; border-radius: var(--r-tela); overflow: hidden;
  background: radial-gradient(120% 70% at 50% 30%, var(--noite-3), var(--noite) 70%); }
.celular video, .celular iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
@media (min-width: 860px) { .entrada { grid-template-columns: 1.1fr .9fr; } }
@media (max-width: 859px) { .entrada h1 { font-size: 34px; } }

/* ---------------------------------------------------------------- galeria de vídeos */
.galeria { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: 18px; }
.cartaz { position: relative; display: flex; flex-direction: column; gap: 8px; color: var(--giz); text-decoration: none; }
.cartaz .capa { position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-cartaz); overflow: hidden; border: 1px solid var(--linha); text-decoration: none;
  background: linear-gradient(160deg, var(--noite-3), var(--noite-2)); display: grid; place-items: center; text-align: center; padding: 14px; }
.cartaz .capa img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cartaz .capa .rotulo { font-family: var(--titulo); font-size: 20px; line-height: 1.05; color: var(--giz); }
.cartaz .capa .selo { position: absolute; left: 10px; top: 10px; }
.cartaz:hover .capa { border-color: var(--limao); }
.cartaz b { font-size: 15px; line-height: 1.2; }
.cartaz small { color: var(--giz-3); font-size: 13px; }

/* opções do cartaz: um botão só, com Editar/Duplicar/Excluir no menu */
.opcoes { position: absolute; top: 8px; right: 8px; z-index: 3; }
.opcoes-btn { background: var(--cabecalho); border-color: var(--linha-forte); color: var(--giz); box-shadow: 0 2px 10px var(--sombra); }
.opcoes-btn:hover { background: var(--limao); border-color: var(--limao); color: var(--noite); }
.menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 168px; padding: 6px; border-radius: var(--r-campo);
  background: var(--noite-2); border: 1px solid var(--linha-forte); box-shadow: 0 18px 40px var(--sombra-forte); z-index: 40; }
.menu[hidden], .menu .itens[hidden], .menu .confirma[hidden] { display: none; }
.menu .itens { display: grid; gap: 2px; }
.menu a, .menu button { display: flex; width: 100%; align-items: center; text-align: left; padding: 9px 11px;
  border-radius: var(--r-mini); border: 0; background: none; color: var(--giz); font: inherit; font-size: 14px;
  text-decoration: none; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--veu-3); }
.menu .perigo { color: var(--erro); }
.menu .perigo:hover { background: var(--erro-fundo); }
.menu .confirma { padding: 6px; }
.menu .confirma p { margin: 0 4px 10px; font-size: 14px; color: var(--giz-2); }
.menu .confirma .linha { display: flex; gap: 6px; }
.menu .confirma button { justify-content: center; border: 1px solid var(--linha-forte); }
.menu .confirma .sim { background: var(--erro-fundo); color: var(--erro); border-color: rgba(255,123,123,.35); }
.menu .confirma .sim:hover { background: rgba(255,123,123,.2); }
.novo-cartaz .capa { border: 2px dashed var(--linha-forte); background: transparent; color: var(--limao); font-family: var(--titulo); font-size: 20px; }
.novo-cartaz .capa span { font-size: 56px; line-height: 1; display: block; }
/* celular: o botão "Novo vídeo" do cabeçalho já está à vista; o cartaz tracejado repetido tomava meia fileira.
   Sem vídeo nenhum ele continua, como o espaço vazio da galeria. */
@media (max-width: 640px) { .galeria:has(.cartaz:not(.novo-cartaz)) .novo-cartaz { display: none; } }

/* ---------------------------------------------------------------- campanhas (tela "novo vídeo") */
.campanhas { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
/* cartão = o cenário do modelo da campanha (web/campanhas/<chave>.webp, sem produto, texto nem efeitos; feito por
   scripts/gerar_fundos_campanhas.py) sob um degradê no tom escuro da própria cor da campanha, cheio do lado do
   texto e quase sumindo do outro: o título lê bem até sobre o Tabloide amarelo, e os modelos de fundo azul liso
   (açougue, padaria, limpeza) continuam diferentes pela cor (2026-11-19, pedido do Lucas) */
.campanha { --tinta: color-mix(in srgb, var(--cor, var(--limao)) 26%, var(--fundo-trilho));
  position: relative; overflow: hidden; text-align: left; padding: 18px 18px 16px; min-height: 120px; border-radius: var(--r-cartaz); cursor: pointer;
  border: 1px solid var(--linha); color: var(--giz);
  background:
    linear-gradient(90deg, var(--tinta) 0%, color-mix(in srgb, var(--tinta) 70%, transparent) 42%, color-mix(in srgb, var(--tinta) 6%, transparent) 88%),
    var(--fundo, none) center var(--fundo-y, 50%) / cover no-repeat,
    var(--tinta); }
.campanha :is(h2, h3) { position: relative; font-family: var(--titulo); font-weight: 400; font-size: 24px; margin: 0 0 6px;
  text-shadow: 0 2px 12px var(--sombra-forte); }
.campanha p { position: relative; margin: 0; max-width: 24em; color: color-mix(in srgb, var(--cor, var(--limao)) 24%, var(--giz)); font-size: 14px;
  text-shadow: 0 1px 8px var(--sombra-forte); }
.campanha:hover { --tinta: color-mix(in srgb, var(--cor, var(--limao)) 30%, var(--fundo-trilho));
  border-color: color-mix(in srgb, var(--cor, var(--limao)) 60%, transparent); }
.campanha.sel { --tinta: color-mix(in srgb, var(--cor, var(--limao)) 34%, var(--fundo-trilho)); border-color: var(--cor, var(--limao)); }
/* a parte de cada cenário que identifica o modelo: pisca-pisca e toldo em cima, fita do Black embaixo */
.campanha[data-c=natal], .campanha[data-c=feira] { --fundo-y: 0%; }
.campanha[data-c=black_friday] { --fundo-y: 97%; }
.campanha[data-c=padaria] { --fundo-y: 30%; }
.campanha[data-c=queima] { --fundo-y: 35%; }
/* celular: 9 campanhas em cartões de 120 px viravam quase três telas de rolagem; a cor ainda identifica cada uma */
@media (max-width: 640px) {
  .campanhas { gap: 8px; }
  .campanha { min-height: 0; padding: 13px 16px 12px; border-radius: var(--r-cartao); }
  .campanha :is(h2, h3) { font-size: 20px; margin-bottom: 2px; }
  .campanha p { font-size: 14px; line-height: 1.35; }
}

/* ================================================================ EDITOR */
.ed { display: grid; grid-template-columns: 84px 400px minmax(0, 1fr); grid-template-rows: 60px minmax(0, 1fr); height: 100vh; }
.ed-topo { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 0 16px 0 14px; border-bottom: 1px solid var(--linha);
  background: rgba(5,20,45,.92); }
.ed-topo .marca img { width: 44px; height: 28px; }
.ed-titulo { flex: 0 1 340px; min-width: 120px; background: transparent !important; border-color: transparent !important; font-weight: 800;
  font-size: 17px; min-height: 40px !important; }
.ed-titulo:hover { border-color: var(--linha) !important; }
.ed-titulo:focus { border-color: var(--limao) !important; }
/* conta grátis: o título é o da campanha (trava junto com a etapa Texto) */
.ed-titulo:disabled { cursor: default; opacity: .75; }
.ed-salvo { font-size: 13px; color: var(--giz-3); white-space: nowrap; }
.ed-demo { font-size: 13px; color: var(--limao); white-space: nowrap; }
.ed-acoes { margin-left: auto; display: flex; gap: 10px; align-items: center; }
/* menu do editor (Minha conta, Minha loja, Meus vídeos, Minha assinatura): o cabeçalho do site some no editor,
   então este botão é a âncora de volta para o resto do app */
.ed-menu { position: relative; flex: none; }

.ed-trilho { background: var(--fundo-trilho); border-right: 1px solid var(--linha); display: flex; flex-direction: column; padding: 8px 0; gap: 2px; }
.ed-trilho button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 11px 4px; border: 0; background: transparent;
  color: var(--giz-3); font-size: 12px; font-weight: 700; cursor: pointer; border-left: 3px solid transparent; }
.ed-trilho button svg { width: 24px; height: 24px; }
.ed-trilho button:hover { color: var(--giz); }
.ed-trilho button.atual { color: var(--limao); border-left-color: var(--limao); background: rgba(215,255,0,.06); }
.ed-trilho .feito::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--limao); margin-top: -2px; }

.ed-painel { border-right: 1px solid var(--linha); overflow-y: auto; background: rgba(7,27,58,.6); }
.ed-painel > header { position: sticky; top: 0; z-index: 5; padding: 18px 20px 12px; background: var(--cabecalho); border-bottom: 1px solid var(--linha);
  box-shadow: 0 8px 16px -10px rgba(0,0,0,.5); display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.ed-painel > header .sec-cab { min-width: 0; }
.ed-painel > header h2 { margin: 0; font-size: 24px; }
.ed-painel > header p { margin: 4px 0 0; font-size: 14px; color: var(--giz-3); }
/* "Continuar" da etapa no cabeçalho: a finalização fica sempre à vista, sem rolar até o fim da lista */
.ed-painel > header .btn { flex: none; margin-top: 2px; }
.ed-painel .conteudo { padding: 16px 20px 40px; }
.ed-painel .grade { grid-template-columns: 1fr; }

.ed-palco { position: relative; overflow-y: auto; display: flex; flex-direction: column; align-items: center; padding: 26px 24px 30px; gap: 18px; }
.ed-palco .celular { width: min(330px, 48vh * .75); }
.ed-palco .celular .vazio { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 26px; color: var(--giz-3); font-size: 15px; }
.ed-palco .avisos { width: min(560px, 100%); display: grid; gap: 8px; }

/* a linha do tempo do vídeo: abertura | produtos no ritmo | encerramento */
.tempo { width: min(760px, 100%); }
.tempo .faixa { position: relative; display: flex; gap: 3px; height: 64px; }
.tempo .cena { position: relative; min-width: 0; flex: 1 1 0; border: 0; border-radius: var(--r-icone); cursor: pointer; padding: 6px 6px 5px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; text-align: left; color: var(--giz);
  background: var(--veu-3); }
.tempo .cena:hover { background: var(--veu-5); }
.tempo .cena.abre { background: var(--sol); color: var(--noite); }
.tempo .cena.fecha { background: var(--limao); color: var(--noite); }
.tempo .cena img { position: absolute; right: 2px; bottom: 2px; width: 34px; height: 34px; object-fit: contain; opacity: .95; }
.tempo .cena b { font-size: 12px; line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; position: relative; }
.tempo .cena small { font-size: 12px; opacity: .8; font-variant-numeric: tabular-nums; position: relative; }
.tempo .cena { container-type: inline-size; }
@container (max-width: 52px) {                 /* muitos produtos: cena estreita mostra só a foto */
  .cena b, .cena small { display: none; }
  .cena img { left: 50%; top: 50%; right: auto; bottom: auto; transform: translate(-50%, -50%); width: 30px; height: 30px; }
}
.tempo .cursor { position: absolute; top: -6px; bottom: -6px; width: 3px; border-radius: var(--r-barra); background: var(--giz); box-shadow: 0 0 0 2px var(--noite);
  left: 0; pointer-events: none; transition: left .09s linear; }
.tempo .regua { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--giz-3); font-variant-numeric: tabular-nums; }

/* modelos: grade de amostras em vídeo */
.modelos { display: grid; gap: 14px 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.modelo { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: none; color: var(--giz); text-align: left; cursor: pointer; }
.modelo .amostra { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: var(--r-cartao); overflow: hidden; background: var(--noite-2);
  border: 2px solid var(--linha); transition: border-color .15s ease; }
.modelo .amostra video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modelo:hover .amostra { border-color: var(--linha-forte); }
.modelo.sel .amostra { border-color: var(--limao); box-shadow: 0 0 0 3px rgba(215,255,0,.25); }
.modelo b { font-size: 15px; line-height: 1.2; }
.modelo.sel b { color: var(--limao); }
.modelo small { font-size: 13px; line-height: 1.3; color: var(--giz-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.amostra-legenda { position: absolute; left: 10px; right: 10px; bottom: 12px; padding: 8px 10px; border-radius: var(--r-campo); text-align: center;
  background: rgba(7,27,58,.88); font-size: 13px; line-height: 1.3; color: var(--giz); }

/* checklist do 1º vídeo: fica no painel (antes vivia no palco e só aparecia às vezes) */
.primeiro { margin: 12px 20px 0; padding: 14px 16px; border-radius: var(--r-opcao); background: var(--noite-2);
  border: 1px solid var(--linha-forte); box-shadow: 0 10px 24px -14px rgba(0,0,0,.6); }
.primeiro[hidden] { display: none; }
.primeiro-cab { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.primeiro-cab h3 { margin: 0; }
.primeiro-cab .icone-btn { width: 32px; height: 32px; }
/* "Próximo: …" e "2 de 4" são a versão de uma linha do celular; no computador a lista inteira já diz isso */
.primeiro-prox, .primeiro-conta { display: none; }
.primeiro ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 7px; font-size: 14px; }
.primeiro li { display: flex; gap: 9px; align-items: center; color: var(--giz-2); }
.primeiro li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--linha-forte); flex: none; }
.primeiro li.ok { color: var(--giz-3); text-decoration: line-through; }
.primeiro li.ok::before { border-color: var(--limao); background: var(--limao); }
.primeiro .barra { height: 5px; border-radius: var(--r-barra); background: var(--veu-4); margin-top: 8px; overflow: hidden; }
.primeiro .barra div { height: 100%; background: var(--limao); }

/* produtos no painel */
.abas { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--veu-2); margin-bottom: 12px; }
.abas button { flex: 1; border: 0; background: transparent; color: var(--giz-2); font-weight: 800; padding: 8px 6px; border-radius: 999px; cursor: pointer; font-size: 14px; }
.abas button.atual { background: var(--giz); color: var(--noite); }
.contagem { display: flex; justify-content: space-between; align-items: baseline; margin: 2px 0 10px; }
.contagem b { font-family: var(--titulo); font-weight: 400; font-size: 26px; }
.contagem b.cheio { color: var(--sol); }
.prod { display: grid; grid-template-columns: 46px minmax(0, 1fr) 34px; gap: 6px 10px; padding: 10px; border-radius: var(--r-cartao);
  background: var(--veu-1); border: 1px solid var(--linha); }
.prod + .prod { margin-top: 8px; }
.prod > img { width: 46px; height: 46px; object-fit: contain; border-radius: var(--r-icone); background: var(--veu-cheio); grid-row: span 2; cursor: zoom-in; }
.prod .nome { min-height: 36px !important; padding: 6px 10px !important; font-weight: 700; }
.prod .linha-2 { grid-column: 2 / 4; display: grid; grid-template-columns: minmax(0, 1fr) 86px 78px; gap: 6px; }
.prod .linha-2.com-de { grid-template-columns: minmax(0, 1fr) 76px 76px 70px; }
.prod .linha-2 > * { min-width: 0; min-height: 36px !important; padding: 6px 8px !important; font-size: 14px; }
.prod .preco { font-weight: 800; color: var(--sol); }
.prod .preco:placeholder-shown { border-color: var(--sol); }
.prod .mover { display: flex; flex-direction: column; gap: 4px; grid-row: 1; grid-column: 3; }
.prod .mover .icone-btn { width: 34px; height: 36px; }
.res-busca { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); margin-top: 10px; }
.av-cands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.av-cand { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: var(--r-campo);
  border: 1px solid var(--linha); background: var(--veu-1); }
.av-cand img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: var(--r-icone); background: var(--veu-cheio); }
.av-cand small { color: var(--giz-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-cand .btn { width: 100%; }
.res { display: flex; flex-direction: column; gap: 4px; padding: 7px; border-radius: var(--r-campo); cursor: pointer; text-align: left;
  border: 1px solid var(--linha); background: var(--veu-1); color: var(--giz); }
.res:hover { border-color: var(--limao); }
.res img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: var(--r-mini); background: var(--veu-cheio); }
.res b { font-size: 13px; line-height: 1.2; font-weight: 700; }
.res small { color: var(--giz-3); font-size: 12px; }
.res .preco-ant { color: var(--sol); font-weight: 800; font-size: 13px; }
.lida { display: grid; grid-template-columns: 22px 46px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--r-campo);
  background: var(--veu-1); border: 1px solid var(--linha); }
.lida + .lida { margin-top: 6px; }
.lida img { width: 46px; height: 46px; object-fit: contain; border-radius: var(--r-mini); background: var(--veu-cheio); }
.lida .sem-foto { width: 46px; height: 46px; border-radius: var(--r-mini); border: 1px dashed var(--linha-forte); display: grid; place-items: center; font-size: 12px; color: var(--giz-3); text-align: center; }
.lida select { min-height: 32px; padding: 4px 8px; font-size: 13px; margin-top: 4px; }
.lida input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--limao); }

/* logo */
/* xadrez de transparência atrás da logo: mostra ao lojista se o arquivo dele tem fundo transparente
   (o detector marca repeating-gradient como "listra decorativa"; aqui é ferramenta, isento em .impeccable/config.json) */
.logo-previa { width: 116px; height: 116px; object-fit: contain; border-radius: var(--r-opcao); background: repeating-conic-gradient(var(--noite-3) 0 25%, var(--noite-2) 0 50%) 0 0 / 18px 18px; }

/* plano e pagamento */
.plano { text-align: center; }
.preco-grande { font-size: 56px; color: var(--sol); margin: 6px 0; }
.preco-grande small { font-family: var(--corpo); font-size: 17px; font-weight: 700; color: var(--giz-2); }
.plano ul { list-style: none; padding: 0; margin: 14px auto; max-width: 380px; text-align: left; display: grid; gap: 8px; }
/* marcador solto à esquerda, texto corrido à direita: com flex, cada trecho da frase (texto + <b>)
   virava um item separado e a linha abria vãos de 10px no meio da frase */
.plano li { position: relative; padding-left: 28px; }
.plano li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--limao) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%23071B3A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.pix-qr { width: 230px; height: 230px; margin: 0 auto; display: block; padding: 10px; background: #fff; border-radius: var(--r-opcao); image-rendering: pixelated; }
.copia { font-family: ui-monospace, Consolas, monospace; font-size: 12px; word-break: break-all; padding: 10px; border-radius: var(--r-icone); background: var(--veu-2); border: 1px dashed var(--linha-forte); color: var(--giz-2); }
.progresso { height: 12px; border-radius: 999px; background: var(--veu-3); overflow: hidden; }
.progresso > div { height: 100%; background: var(--limao); transition: width .6s ease; }
.colunas { display: grid; gap: 26px; align-items: start; }
@media (min-width: 860px) { .colunas { grid-template-columns: minmax(0, 1fr) 320px; } .loja-previa { position: sticky; top: 84px; } }
/* Minha loja numa coluna só: "Assim fica no vídeo" ia parar depois do Salvar, longe da escolha da logo.
   O formulário vira "contents" (segue sendo o form do botão) e a prévia entra logo depois do painel da logo. */
@media (max-width: 859px) {
  .loja-colunas { gap: 12px; }
  .loja-colunas > form { display: contents; }
  .loja-colunas > form > * { margin-top: 0; }
  .loja-colunas > .loja-previa { order: 1; }
  .loja-colunas .ordem-fim { order: 2; }
}

/* toasts */
#toasts { position: fixed; left: 50%; bottom: 94px; transform: translateX(-50%); z-index: 80; display: grid; gap: 8px; width: min(92vw, 420px); }
.toast { padding: 12px 16px; border-radius: var(--r-cartao); background: var(--giz); color: var(--noite); font-weight: 700; font-size: 14px; box-shadow: 0 10px 30px var(--sombra); }
.toast.erro { background: var(--erro); }

/* chat */
.chat-botao { position: fixed; right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 60; width: 54px; height: 54px; border-radius: 50%;
  border: 0; background: var(--sol); color: var(--noite); cursor: pointer; box-shadow: 0 5px 0 var(--sol-sombra), 0 12px 24px var(--sombra); display: grid; place-items: center; }
.chat-botao svg { width: 26px; height: 26px; }
body.modo-editor .chat-botao { right: 22px; bottom: 22px; }
.chat-painel { position: fixed; right: 18px; bottom: 86px; z-index: 70; width: min(92vw, 380px); height: min(72vh, 540px); display: flex; flex-direction: column;
  background: var(--noite-2); border-radius: var(--r-painel); border: 1px solid var(--linha-forte); box-shadow: 0 20px 50px var(--sombra); overflow: hidden; }
.chat-painel header { padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--linha); }
.chat-painel header b { font-family: var(--titulo); font-weight: 400; font-size: 20px; }
.chat-painel header button { background: transparent; border: 0; color: var(--giz-2); font-size: 20px; cursor: pointer; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px; display: grid; gap: 8px; align-content: start; }
.msg { max-width: 86%; padding: 9px 13px; border-radius: var(--r-opcao); font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.user { justify-self: end; background: var(--limao); color: var(--noite); border-bottom-right-radius: 4px; font-weight: 600; }
.msg.assistant { justify-self: start; background: var(--veu-3); border-bottom-left-radius: 4px; }
.chat-painel form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--linha); }
.chat-painel form input { min-height: 42px; }

/* ================================================================ celular */
@media (max-width: 1023px) {
  .ed { display: block; height: auto; min-height: 100vh; padding-bottom: calc(var(--nav-h) + var(--acao-h) + 24px); }
  /* z 36: acima do palco (35). Com a prévia aberta no celular o menu de três pontos continua por cima dela — é a
     âncora de volta ao app, tem que abrir nos dois estados. */
  .ed-topo { position: sticky; top: 0; z-index: 36; height: 58px; gap: 8px; padding: 0 10px; }
  /* .so-pc = só no computador. Precisa valer para o cabeçalho inteiro: o selo do teste grátis fica fora de
     .ed-acoes e, sem isso, empurrava o botão "Gerar vídeo" para fora da tela no celular (2026-11-18). */
  .ed-topo .marca span, .ed-salvo, .ed-topo .so-pc { display: none; }
  .ed-titulo { font-size: 15px; }
  /* A Regra do Um Aceso no celular: o botão limão é sempre o próximo passo. Editando, o próximo passo é o
     "Continuar" da barra de ação; "Gerar vídeo" fica em contorno e só acende com a prévia aberta. */
  .ed-acoes .btn.prim, .ed-acoes .btn.sol { font-size: 15px; padding: 9px 14px 6px; }
  .ed:not(.mostra-palco) .ed-acoes #gerar,
  .ed.etapa-feita .ed-painel .conteudo .btn.prim { background: var(--veu-2); color: var(--giz); border: 1px solid var(--linha-forte);
    box-shadow: none; font-family: var(--corpo); font-weight: 800; font-size: 15px; letter-spacing: 0; padding: 9px 14px; }
  .ed:not(.mostra-palco) .ed-acoes #gerar:active,
  .ed.etapa-feita .ed-painel .conteudo .btn.prim:active { transform: none; box-shadow: none; background: var(--veu-4); }
  .ed-trilho { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: var(--nav-h); flex-direction: row;
    justify-content: space-around; padding: 0 4px env(safe-area-inset-bottom); border-right: 0; border-top: 1px solid var(--linha); }
  .ed-trilho button { flex: 1; justify-content: center; gap: 3px; padding: 4px 2px 3px; border-left: 0; border-top: 3px solid transparent;
    font-size: 12px; line-height: 1.2; }
  .ed-trilho button svg { width: 22px; height: 22px; }
  .ed-trilho button.atual { border-left: 0; border-top-color: var(--limao); }
  .ed-painel { border-right: 0; background: transparent; overflow: visible; }
  /* cabeçalho da etapa solto (rola com a página): o "Continuar" mora na barra de ação, então prender o
     cabeçalho só tirava ~110 px da lista */
  .ed-painel > header { position: static; padding: 16px 16px 2px; background: transparent; border-bottom: 0; box-shadow: none; }
  .ed-painel > header h2 { font-size: 24px; }
  .ed-painel > header p { font-size: 14px; }
  .ed-painel > header .btn, .ed-painel .so-pc { display: none !important; }
  .ed-painel .conteudo { padding: 12px 16px 20px; }
  /* checklist do 1º vídeo em uma linha: o próximo passo, a contagem e a barra */
  .primeiro { margin: 12px 16px 0; padding: 10px 10px 10px 14px; box-shadow: none; }
  .primeiro-cab h3, .primeiro ol { display: none; }
  .primeiro-prox { display: block; flex: 1; min-width: 0; margin: 0; font-size: 14px; font-weight: 700; color: var(--giz); }
  .primeiro-conta { display: inline; font-size: 13px; color: var(--giz-3); white-space: nowrap; }
  .primeiro .barra { margin: 8px 4px 0 0; }
  .ed-palco { display: none; }
  .ed.mostra-palco .ed-palco { display: flex; position: fixed; top: 58px; left: 0; right: 0; bottom: var(--nav-h); z-index: 35;
    background: var(--noite); padding: 14px 14px 20px; }
  .ed-palco .celular { width: min(78vw, 46vh * .75); }
  /* barra de ação: fica logo acima das etapas, no alcance do polegar — "Ver prévia" em contorno + o passo seguinte */
  .ed-acao { position: fixed; left: 0; right: 0; bottom: var(--nav-h); z-index: 38; height: var(--acao-h); display: flex;
    gap: 10px; align-items: center; padding: 0 16px; background: rgba(5,20,45,.96); border-top: 1px solid var(--linha); }
  .ed-acao .btn { flex: 1 1 0; }
  .ed-acao .btn.prim { flex-grow: 1.4; }
  .ed.mostra-palco ~ .ed-acao { display: none; }
  body.modo-editor .chat-botao { bottom: calc(var(--nav-h) + var(--acao-h) + 12px); left: 16px; right: auto; width: 46px; height: 46px; }
  body.modo-editor .chat-painel { bottom: calc(var(--nav-h) + var(--acao-h) + 70px); left: 16px; right: auto; }
  body.palco-aberto .chat-botao { display: none; }
  /* um aviso por vez, perto do polegar mas sem cobrir as barras do editor */
  #toasts { bottom: max(16px, env(safe-area-inset-bottom)); }
  body.modo-editor #toasts { bottom: calc(var(--nav-h) + var(--acao-h) + 10px); }
  body.palco-aberto #toasts { bottom: calc(var(--nav-h) + 10px); }
  h1 { font-size: 30px; }
}
@media (min-width: 1024px) { .ed-acao, .so-celular, .fechar-palco { display: none !important; } }
@media (max-width: 1023px) {
  .fechar-palco { display: none; }
  .ed.mostra-palco .fechar-palco { display: inline-flex; align-self: flex-start; }
}
#menu a, #menu button { white-space: nowrap; }
@media (max-width: 480px) {
  .topo { padding: 0 10px; gap: 6px; }
  .marca { gap: 7px; }
  .marca img { width: 32px; height: 20px; }
  .marca span { font-size: 15px; }
  /* 44 px de alvo de toque (antes ~31 px): o topo tem 64 px, cabe sem apertar */
  #menu a, #menu button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 9px; font-size: 14px; }
  /* página atual: pílula clara de 34 px desenhada por dentro do alvo de 44 px (como a aba ativa). O limão fica
     para o botão de ação da tela — com o menu também limão, a galeria tinha dois acesos. */
  #menu a.ativo { position: relative; z-index: 0; background: transparent; color: var(--noite); }
  #menu a.ativo::before { content: ""; position: absolute; inset: 5px 0; z-index: -1; border-radius: 999px; background: var(--giz); }
  /* logado com 4 itens no menu ("Vídeos, Minha loja, Assinar, Sair") não cabe a assinatura da marca:
     fica só o símbolo, que já identifica o app */
  body.logado .marca span { display: none; }
}

/* ---------- tema (emblema): filtro por dia + cartões */
.dias { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 10px; scrollbar-width: thin; }
.dias button { flex: none; border: 1px solid var(--linha-forte); background: transparent; color: var(--giz-2); font-weight: 800;
  padding: 7px 13px; border-radius: 999px; cursor: pointer; font-size: 14px; }
.dias button.atual { background: var(--giz); color: var(--noite); border-color: var(--giz); }
.dias.titulo-dias { margin: 10px 0 4px; }
.dias.titulo-dias button { padding: 5px 11px; font-size: 13px; }
.temas { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tema { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 8px 10px; border: 2px solid var(--linha);
  border-radius: var(--r-opcao); background: var(--veu-1); color: var(--giz); cursor: pointer; text-align: center; }
.tema img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; }
.tema b { font-size: 14px; line-height: 1.2; }
.tema small { font-size: 13px; line-height: 1.3; color: var(--giz-3); }
.tema:hover { border-color: var(--linha-forte); }
.tema.sel { border-color: var(--limao); box-shadow: 0 0 0 3px rgba(215,255,0,.25); }
.tema.sel b { color: var(--limao); }
.tema.sem { justify-content: center; min-height: 150px; }

/* ---------- assinatura: aviso de vencimento (carência 0) e histórico de pagamentos */
#aviso-plano:empty { display: none; }
#aviso-plano { max-width: 980px; margin: 14px auto 0; padding: 0 20px; }
#aviso-plano .aviso { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
#aviso-plano .aviso a { font-weight: 800; white-space: nowrap; }
.pagamentos { width: 100%; border-collapse: collapse; font-size: 14px; }
.pagamentos th { text-align: left; font-size: 13px; color: var(--giz-3); font-weight: 700; padding: 8px 10px;
  border-bottom: 1px solid var(--linha); }
.pagamentos td { padding: 10px; border-bottom: 1px solid var(--linha); color: var(--giz-2); }
.pagamentos tr:last-child td { border-bottom: 0; }
.pagamentos td.st-pago { color: var(--limao); font-weight: 800; }
.pagamentos td.st-pendente { color: var(--sol-claro); }
.pagamentos td.st-cancelado, .pagamentos td.st-vencido, .pagamentos td.st-estornado { color: var(--giz-3); }
@media (max-width: 480px) {
  #aviso-plano { padding: 0 10px; }
  .pagamentos th, .pagamentos td { padding: 8px 6px; font-size: 13px; }
}
