/* =====================================================================
   Yemail — identidade visual
   Azul royal → azul elétrico → ciano · ondas suaves · brilhos discretos
   ===================================================================== */
:root {
  --royal: #1d3fd1;
  --eletrico: #2f6bff;
  --ciano: #22d3ee;
  --grad: linear-gradient(120deg, #1d3fd1 0%, #2f6bff 52%, #22d3ee 100%);
  --grad-texto: linear-gradient(100deg, #ffffff 0%, #cfe0ff 40%, #7fe6f5 100%);
  --grad-borda: linear-gradient(135deg, rgba(47,107,255,.38), rgba(255,255,255,.07) 40%, rgba(255,255,255,.05));

  --bg: #000000;
  --painel: #0b0b0d;
  --painel-2: #070708;
  --vidro: rgba(12, 12, 14, .82);
  --campo: #141416;
  --campo-h: #1c1c20;
  --borda: #1c1c20;
  --borda-2: #2b2b31;
  --txt: #f4f4f5;
  --txt-2: #c9c9d1;
  --txt-3: #9e9ea8;
  --azul: #2f6bff;
  --azul-2: #2456e0;
  --azul-claro: rgba(47, 107, 255, .16);
  --verde: #19b37e;
  --sombra: 0 18px 50px -12px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .08);
  --brilho: 0 0 0 1px rgba(47, 107, 255, .35), 0 10px 32px -10px rgba(47, 107, 255, .7);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

html, body {
  font-family: 'Plus Jakarta Sans', Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  letter-spacing: 0;
  word-spacing: .04em;
}
h1, .kpi-valor { letter-spacing: -.02em; }
::selection { background: rgba(47, 107, 255, .45); color: #fff; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .26); background-clip: content-box; }
a { color: #6ea8ff; }

/* ---------- Logo ---------- */
.logo-yemail {
  display: block; height: 22px; aspect-ratio: 1876 / 378;
  background: var(--grad-texto); background-size: 200% 100%;
  -webkit-mask: url('/img/yemail-logo.png') center / contain no-repeat;
  mask: url('/img/yemail-logo.png') center / contain no-repeat;
  animation: brilhoLogo 8s ease-in-out infinite;
}
.logo-yemail.grande { align-self: center; height: 46px; background: var(--grad); background-size: 220% 100%; filter: drop-shadow(0 0 22px rgba(47, 107, 255, .55)); }
.logo-yemail.mini { height: 14px; }
@keyframes brilhoLogo { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.home-logo { background: var(--grad); box-shadow: 0 0 18px rgba(47, 107, 255, .45); }

/* ---------- Botões ---------- */
.bt, .bt-ic, .seg-bt, .chip, .pg-item, .inp, .sel, .num, .cor, .card, .kpi, .cartao, .modelo, .rec-item, .rec-bloco, .camada {
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease), opacity .2s;
}
.bt { border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .02); border-radius: 9px; font-weight: 600; }
.bt:hover { background: rgba(47, 107, 255, .10); border-color: rgba(120, 160, 255, .45); }
.bt:active { transform: translateY(1px); }
.bt-pri, .bt.bt-pri {
  position: relative; isolation: isolate; overflow: hidden; border: 0; color: #fff;
  background: var(--grad); background-size: 160% 100%; background-position: 0% 50%;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 8px 22px -8px rgba(47, 107, 255, .75);
  transition: background-position .5s var(--ease), box-shadow .3s var(--ease), transform .25s var(--ease);
}
.bt-pri::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.bt-pri:hover { background: var(--grad); background-size: 160% 100%; background-position: 100% 50%; transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 0 0 1px rgba(34, 211, 238, .35), 0 14px 32px -10px rgba(34, 140, 255, .9); }
.bt-pri:hover::after { transform: translateX(120%); }
.bt-pri:active { transform: translateY(0); box-shadow: none; }
.bt-pri:disabled { filter: saturate(.4) brightness(.8); transform: none; }
.bt-ic:hover { background: rgba(47, 107, 255, .12); color: #fff; }
.bt-ic.ativo { background: var(--grad); color: #fff; box-shadow: none; }
.bt-esc:hover { background: rgba(47, 107, 255, .1); }

/* ---------- Campos ---------- */
.inp, .sel, .num, .cor { background: var(--campo); border-radius: 8px; }
/* sem sombreamento azul ao clicar: campo focado só ganha uma borda cinza */
* { -webkit-tap-highlight-color: transparent; }
:focus { outline: none; }
.inp:focus, .sel:focus, .num:focus-within, .cor:focus-within, .inp-mini:focus, .topo-nome:focus, .cab-nome:focus, .cam-inp, .titulo-inp:focus {
  border-color: rgba(255, 255, 255, .28); box-shadow: none;
}
.rec-busca .inp:focus { border-color: transparent; }
/* teclado (Tab) continua mostrando onde está o foco, em cinza discreto */
button:focus-visible, a:focus-visible, .seg-bt:focus-visible { outline: 1px solid rgba(255, 255, 255, .45); outline-offset: 2px; }
.seg { background: var(--campo); border-radius: 8px; }
.seg-bt { border-radius: 6px; }
.seg-bt.ativo { background: var(--grad); color: #fff; box-shadow: none; }
.chk input:checked + .chk-caixa { background: var(--grad); border-color: transparent; }
.interruptor span { background: #2b2b31; }
.interruptor input:checked + span { background: var(--grad); box-shadow: none; }
option, optgroup, .sel option, .sel optgroup, .sel-var option { background: var(--painel); }

/* ---------- Vidro: menus, janelas, avisos ---------- */
.menu, .barra-texto, .bt-cores, .pop-cor, .graf-dica, .fantasma {
  background: var(--vidro); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .1);
}
.fantasma { background: var(--grad); border: 0; }
.menu-item:hover { background: var(--grad); }
.modal-fundo { background: rgba(0, 0, 0, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal {
  background: linear-gradient(var(--painel), var(--painel)) padding-box, var(--grad-borda) border-box;
  border: 1px solid transparent; border-radius: 16px; animation: entrarJanela .3s var(--ease);
}
@keyframes entrarJanela { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.modal-topo, .modal-rodape { border-color: rgba(255, 255, 255, .08); }
.aviso { background: var(--vidro); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; }
.aviso-erro { background: rgba(70, 18, 20, .85); border-color: rgba(255, 120, 100, .3); }
.aviso-info { border-color: rgba(34, 211, 238, .35); }

/* ---------- Cartões com borda em degradê ---------- */
.cartao, .kpi, .passo, .entrar-caixa {
  background: linear-gradient(180deg, #0e0e11, #08080a) padding-box, var(--grad-borda) border-box;
  border: 1px solid transparent; border-radius: 14px;
}
.kpi { position: relative; overflow: hidden; }
.kpi::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(closest-side, rgba(47, 107, 255, .22), transparent); pointer-events: none; transition: transform .6s var(--ease); }
.kpi:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -18px rgba(47, 107, 255, .6); }
.kpi:hover::before { transform: translate(-14px, 10px) scale(1.15); }
.kpi-rot .ic { color: var(--ciano); }
.card, .modelo { border-color: rgba(255, 255, 255, .09); border-radius: 14px; background: var(--painel); }
.card:hover, .modelo:hover { border-color: rgba(47, 140, 255, .7); transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(47, 107, 255, .7); }
.card-novo { background: transparent; border: 1px dashed rgba(255, 255, 255, .18); }
.card-novo:hover { border-color: rgba(47, 140, 255, .7); }
.card-novo-ic { background: var(--grad); color: #fff; box-shadow: 0 0 26px rgba(47, 107, 255, .55); }

/* ---------- Estrutura (menu lateral + páginas) ---------- */
.pg-nav {
  position: relative; overflow: hidden; border-right: 1px solid rgba(255, 255, 255, .07);
  background: #000;
}
.pg-nav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 220px; pointer-events: none; opacity: .9;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 440 220' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%231d3fd1'/%3E%3Cstop offset='.5' stop-color='%2322d3ee'/%3E%3Cstop offset='1' stop-color='%231d3fd1'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 120 C70 100 150 100 220 120 S370 140 440 120 V220 H0Z' fill='url(%23a)' fill-opacity='.10'/%3E%3Cpath d='M0 160 C80 146 140 146 220 160 S360 174 440 160 V220 H0Z' fill='url(%23a)' fill-opacity='.14'/%3E%3Cpath d='M0 120 C70 100 150 100 220 120 S370 140 440 120' fill='none' stroke='url(%23a)' stroke-opacity='.45' stroke-width='1.2'/%3E%3C/svg%3E") left bottom / 200% 100% repeat-x;
  animation: onda 22s linear infinite;
}
.pg-nav > * { position: relative; z-index: 1; }
.pg-marca { padding: 6px 10px 22px; text-decoration: none; }
.pg-item { border-radius: 9px; position: relative; }
.pg-item:hover { background: rgba(255, 255, 255, .05); }
.pg-item.ativo {
  color: #fff;
  background: linear-gradient(90deg, rgba(47, 107, 255, .22), rgba(34, 211, 238, .04));
  box-shadow: none;
}
.pg-item.ativo::before { content: ""; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); box-shadow: none; }
.pg-item.ativo .ic { color: var(--ciano); }
.pg-rodape { border-top-color: rgba(255, 255, 255, .08); }
@keyframes onda { from { background-position-x: 0; } to { background-position-x: -440px; } }

.pg-main {
  position: relative;
  background: #000;
}
.pg-main::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 170px; pointer-events: none; opacity: .6;
  animation: ondaTopo 30s linear infinite;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 170' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='b' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%231d3fd1' stop-opacity='0'/%3E%3Cstop offset='.5' stop-color='%232f6bff'/%3E%3Cstop offset='1' stop-color='%2322d3ee' stop-opacity='0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 110 C200 80 400 80 600 110 S1000 140 1200 110' fill='none' stroke='url(%23b)' stroke-width='1' stroke-opacity='.5'/%3E%3Cpath d='M0 135 C200 150 400 150 600 135 S1000 120 1200 135' fill='none' stroke='url(%23b)' stroke-width='1' stroke-opacity='.3'/%3E%3C/svg%3E") left top / 1200px 100% repeat-x;
}
@keyframes ondaTopo { from { background-position-x: 0; } to { background-position-x: -1200px; } }
.pg-main > * { position: relative; animation: surgir .55s var(--ease) both; }
.pg-main > *:nth-child(2) { animation-delay: .05s; }
.pg-main > *:nth-child(3) { animation-delay: .1s; }
.pg-main > *:nth-child(4) { animation-delay: .15s; }
.pg-main > *:nth-child(5) { animation-delay: .2s; }
.pg-main > *:nth-child(n+6) { animation-delay: .25s; }
@keyframes surgir { from { opacity: 0; transform: translateY(10px); } }
.pg-cab h1 { font-size: 26px; font-weight: 800; }
.pg-abas { border-bottom-color: rgba(255, 255, 255, .08); }
.pg-abas button.ativo { border-bottom-color: transparent; color: #fff; position: relative; }
.pg-abas button.ativo::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--grad); }
.chip { border-color: rgba(255, 255, 255, .14); }
.chip:hover { border-color: rgba(120, 160, 255, .5); background: rgba(47, 107, 255, .08); }
.chip.ativo { background: var(--grad); border-color: transparent; box-shadow: none; }
.tabela th { color: var(--txt-3); border-bottom-color: rgba(255, 255, 255, .08); }
.tabela td { border-bottom-color: rgba(255, 255, 255, .05); }
.tabela tr.clicavel:hover td { background: rgba(47, 107, 255, .06); }
.faixa-info { background: linear-gradient(90deg, rgba(29, 63, 209, .25), rgba(34, 211, 238, .08)); border: 1px solid rgba(120, 160, 255, .22); color: #dbe7ff; }
.faixa-erro { background: rgba(80, 20, 22, .55); border: 1px solid rgba(255, 120, 100, .25); }
.passo-n { background: var(--grad); box-shadow: 0 0 14px rgba(47, 107, 255, .6); }
.progresso-barra span, .funil-barra span.destaque { background: var(--grad); }
.feed-item, .tl-item { border-bottom-color: rgba(255, 255, 255, .05); }
.feed-ic, .tl-ic { background: rgba(47, 107, 255, .12); color: #9cc3ff; }
.con-logo { box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .6); }
.url-copiar, .dominio, .regra, .amostra-csv, .json { background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07); }
.seg-total { color: var(--ciano); }
.selo { background: rgba(255, 255, 255, .08); }

/* ---------- Login ---------- */
.entrar {
  position: relative; overflow: hidden;
  background: radial-gradient(520px 340px at 50% 46%, rgba(47, 107, 255, .16), transparent 70%), #000;
}
.entrar::before, .entrar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='c' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%231d3fd1'/%3E%3Cstop offset='.5' stop-color='%2322d3ee'/%3E%3Cstop offset='1' stop-color='%231d3fd1'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 190 C240 130 480 130 720 190 S1200 250 1440 190 V320 H0Z' fill='url(%23c)' fill-opacity='.14'/%3E%3Cpath d='M0 190 C240 130 480 130 720 190 S1200 250 1440 190' fill='none' stroke='url(%23c)' stroke-opacity='.6' stroke-width='1.5'/%3E%3C/svg%3E") left bottom / 1440px 100% repeat-x;
  animation: ondaLonga 26s linear infinite;
}
.entrar::after { height: 36%; opacity: .7; animation-duration: 38s; animation-direction: reverse; filter: hue-rotate(-12deg); }
@keyframes ondaLonga { from { background-position-x: 0; } to { background-position-x: -1440px; } }
.entrar-caixa {
  position: relative; z-index: 1; width: 380px; padding: 34px 30px 30px; gap: 12px;
  background: linear-gradient(180deg, rgba(16, 16, 19, .78), rgba(8, 8, 10, .78)) padding-box, var(--grad-borda) border-box;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .95), 0 0 60px -24px rgba(47, 107, 255, .55);
  border-radius: 20px; animation: surgir .7s var(--ease) both;
}
.entrar-caixa .logo-yemail.grande { margin: 2px auto 10px; }
.entrar-caixa h1 { text-align: center; font-size: 20px; font-weight: 800; margin: 0; }
.entrar-caixa > .ajuda { text-align: center; margin: 0 0 6px; }
.entrar-caixa .inp { height: 42px; border-radius: 10px; font-size: 14.5px; }
.entrar-caixa .bt-pri { height: 42px; font-size: 15px; margin-top: 4px; border-radius: 10px; }

/* ---------- Editor ---------- */
.topo { background: #000; border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, rgba(29, 63, 209, .4), rgba(47, 107, 255, .5), rgba(34, 211, 238, .4)) 1; }
.topo-logo { display: inline-flex; align-items: center; padding: 0 8px 0 2px; opacity: .95; }
.topo-logo:hover { opacity: 1; }
.esq, .dir { background: #070708; border-color: rgba(255, 255, 255, .07); }
.abas-esq { border-bottom-color: rgba(255, 255, 255, .07); }
.abas-esq button.ativo { background: rgba(47, 107, 255, .16); color: #fff; }
.secao, .cab { border-bottom-color: rgba(255, 255, 255, .06); }
.cab { background: #070708; }
.canvas { background-color: #000; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 22px 22px; }
.camada.sel { background: rgba(47, 107, 255, .2); }
.rec-item, .rec-bloco-ic { background: rgba(255, 255, 255, .04); }
.rec-item:hover { background: rgba(47, 107, 255, .16); box-shadow: inset 0 0 0 1px rgba(120, 160, 255, .3); }
.rec-busca, .seg, .num, .cor { background: var(--campo); }
.ov-medida { background: var(--grad); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ======================================================
   Sem fundos nem sombras azuis: só preto e cinza neutro.
   O azul fica no preenchimento dos botões, logo, ondas e gráficos.
   ====================================================== */
:root {
  --azul-claro: rgba(255, 255, 255, .08);
  --grad-borda: linear-gradient(rgba(255, 255, 255, .08), rgba(255, 255, 255, .08));
  --brilho: none;
}
.kpi::before { display: none; }
.kpi:hover, .card:hover, .modelo:hover { box-shadow: none; }
.card:hover, .modelo:hover, .card-novo:hover { border-color: rgba(255, 255, 255, .28); }
.bt-pri, .bt.bt-pri, .bt-pri:hover, .bt-pri:active { box-shadow: none; }
.home-logo, .card-novo-ic, .passo-n { box-shadow: none; }
.logo-yemail.grande { filter: none; }
.entrar { background: #000; }
.entrar-caixa { box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .95); }
.bt:hover, .bt-ic:hover, .bt-esc:hover, .pg-item:hover, .chip:hover { background: rgba(255, 255, 255, .06); }
.bt:hover, .chip:hover { border-color: rgba(255, 255, 255, .3); }
.pg-item.ativo { background: rgba(255, 255, 255, .07); }
.menu-item:hover { background: rgba(255, 255, 255, .1); }
.tabela tr.clicavel:hover td, .log-l:hover, a.feed-item:hover { background: rgba(255, 255, 255, .03); }
.faixa-info { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); color: var(--txt); }
.faixa-info .ic { color: var(--ciano); }
.feed-ic, .tl-ic { background: rgba(255, 255, 255, .07); color: var(--txt-2); }
.rec-item:hover { background: rgba(255, 255, 255, .08); box-shadow: none; }
.camada.sel, .abas-esq button.ativo, .pop-estilo.ativo { background: rgba(255, 255, 255, .09); }
.aviso-info { border-color: rgba(255, 255, 255, .12); }
.ov-alvo { background: transparent; }

/* Menu lateral maior e mais legível */
.pg-nav { width: 236px; }
.pg-marca .logo-yemail { height: 26px; }
.pg-menu, .pg-rodape { gap: 4px; }
.pg-item { height: 42px; padding: 0 12px; gap: 12px; font-size: 15px; font-weight: 600; color: #d4d4d8; }
.pg-item .ic svg { width: 19px; height: 19px; }
.pg-item:hover { color: #fff; }
.pg-item.ativo { color: #fff; }
.pg-item.ativo::before { top: 10px; bottom: 10px; }

/* Botões coloridos continuam coloridos ao passar o mouse (sem sombra) */
.bt.bt-pri:hover, .bt-pri:hover {
  background: var(--grad); background-size: 160% 100%; background-position: 100% 50%;
  border-color: transparent; color: #fff; box-shadow: none;
}
.bt.bt-roxo:hover { background: #8636ee; border-color: #8636ee; }
.bt.bt-perigo:hover { background: #d93a17; border-color: #d93a17; }
.bt-ic.ativo:hover { background: var(--grad); color: #fff; }
.seg-bt.ativo:hover { background: var(--grad); }

/* Sem onda no rodapé do menu lateral */
.pg-nav::after { display: none; }


/* Etiquetas de variáveis no editor: dados da loja aparecem preenchidos */
.quadro .ee-var { border-radius: 4px; padding: 0 2px; box-shadow: inset 0 -1px 0 rgba(47, 107, 255, .55); cursor: default; }
.quadro .ee-var:not(.loja) { background: rgba(47, 107, 255, .1); color: #2457d6; font-size: .92em; }
.quadro .ee-var.loja { box-shadow: inset 0 -1px 0 rgba(34, 180, 210, .7); }
.quadro .ee-var.vazia { background: rgba(255, 170, 0, .16); color: #a86400; box-shadow: inset 0 -1px 0 rgba(200, 130, 0, .7); }


/* ---------- Página de Configurações ---------- */
.cfg-grade { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.cfg-form { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cfg-lado { position: sticky; top: 0; display: flex; flex-direction: column; gap: 8px; }
.cfg-previa { width: 100%; height: calc(100vh - 170px); min-height: 460px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; background: #efefef; }
.cfg-sec { gap: 14px; padding: 20px; }
.cfg-sec-topo { display: flex; gap: 12px; align-items: flex-start; }
.cfg-sec-topo .ajuda { margin: 2px 0 0; }
.cfg-sec-ic { width: 32px; height: 32px; border-radius: 9px; background: rgba(255, 255, 255, .06); display: inline-flex; align-items: center; justify-content: center; color: var(--ciano); flex: none; }
.cfg-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cfg-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cfg-cep { display: grid; grid-template-columns: 140px 1fr 100px; gap: 12px; }
.cfg-cep2 { display: grid; grid-template-columns: 1fr 1fr 1fr 70px; gap: 12px; }
.cfg-sec .inp { height: 36px; font-size: 14.5px; }
.cfg-sec .cfg-campo { gap: 6px; }
.linha-rot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.var-tag { font-size: 11.5px; color: var(--txt-3); background: rgba(255, 255, 255, .05); white-space: nowrap; }
.logo-caixas { display: flex; gap: 12px; align-items: stretch; }
.logo-fundo { width: 190px; height: 92px; border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 14px; border: 1px solid rgba(255, 255, 255, .1); }
.logo-fundo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-fundo.claro { background: #fff; }
.logo-fundo.escuro { background: #111; }
.logo-vazio { width: 100%; min-height: 110px; border: 1px dashed rgba(255, 255, 255, .2); border-radius: 12px; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; color: var(--txt-2); padding: 14px; text-align: center; }
.logo-vazio:hover { border-color: rgba(255, 255, 255, .45); color: var(--txt); }
.logo-vazio span { font-size: 12.5px; color: var(--txt-3); max-width: 420px; }
.cfg-grade2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bt-pri.pulsar::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; margin-right: 2px; animation: piscar 1.4s ease-in-out infinite; }
@keyframes piscar { 50% { opacity: .25; } }
@media (max-width: 1250px) { .cfg-grade { grid-template-columns: 1fr; } .cfg-lado { position: static; } .cfg-previa { height: 560px; } }
@media (max-width: 900px) { .cfg-2, .cfg-3, .cfg-cep, .cfg-cep2, .cfg-grade2 { grid-template-columns: 1fr; } }


/* ======================================================
   Legibilidade: controles, títulos e espaços maiores
   ====================================================== */
body { line-height: 1.45; }
.bt { height: 36px; padding: 0 15px; gap: 7px; }
.bt-p { height: 31px; padding: 0 12px; }
.bt-ic { width: 34px; height: 34px; }
.bt-ic.mini { width: 26px; height: 26px; }
.inp, .sel, .num, .cor { height: 34px; }
textarea.inp { height: auto; }
.num-rot { width: 28px; }
.cor-amostra { width: 20px; height: 20px; }
.seg-bt { height: 28px; min-width: 32px; padding: 0 9px; }
.chip { height: 34px; padding: 0 15px; }
.selo { height: 24px; padding: 0 10px; }
.menu { min-width: 250px; padding: 7px 0; }
.menu-item { height: 34px; }
.modal-topo { padding: 14px 14px 14px 22px; }
.modal-corpo { padding: 20px 22px; }
.aviso { padding: 11px 18px; }
.ajuda { line-height: 1.55; }
.rot { color: var(--txt-2); }

/* páginas */
.pg-main { padding: 30px 36px 70px; }
.pg-cab { margin-bottom: 22px; }
.pg-cab h1 { font-size: 30px; }
.pg-cab p { font-size: 15px; color: var(--txt-2); }
.pg-sub { font-size: 18px; }
.pg-abas button { padding: 10px 14px; }
.cartao { padding: 20px 22px; gap: 10px; }
.cartao-tit { font-size: 16px; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.kpi { padding: 18px 20px; }
.kpi-valor { font-size: 30px; margin-top: 8px; }
.kpi.pequeno .kpi-valor { font-size: 18px; }
.tabela th { padding: 12px 16px; }
.tabela td { padding: 14px 16px; }
.cont-nome { font-size: 15px; }
.feed-item { padding: 10px 0; gap: 12px; }
.feed-ic { width: 30px; height: 30px; }
.tl-item { padding: 11px 0; gap: 12px; }
.tl-ic { width: 30px; height: 30px; }
.aut { padding: 16px 20px; gap: 16px; }
.aut-nome { font-size: 15px; }
.aut-evento { font-size: 14px; margin-bottom: 10px; }
.funil-l { grid-template-columns: 170px 1fr auto; }
.funil-barra { height: 16px; }
.graf-eixo { font-size: 12.5px; }
.legenda { gap: 18px; }
.card-nome { font-size: 15px; }
.modelo-nome { font-size: 14.5px; }
.barra-filtros .inp, .barra-filtros .sel { height: 38px; }
.passo { padding: 18px; }
.passo-n { width: 28px; height: 28px; font-size: 14px; }
.con-logo { width: 42px; height: 42px; }
.entrar-caixa { width: 420px; }

/* editor */
.topo { height: 52px; }
.camada { height: 33px; }
.cam-ic svg { width: 15px; height: 15px; }
.cab { padding: 12px 14px; }
.cab-nome { height: 28px; }
.secao { padding: 12px 14px 14px; }
.secao-corpo { gap: 9px; }
.linha > .rot { flex: 0 0 104px; }
.rec-item { height: 76px; }
.rec-bloco { height: 38px; }

.kpis { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.kpi { padding: 16px 18px; }
.vars-lista summary { cursor: pointer; color: var(--txt-2); font-size: 13px; margin-top: 2px; }
.vars-lista summary:hover { color: var(--txt); }
