/* =========================================================
   BEEHUB — estilo (preto, branco e amarelo; claro e escuro)
   ========================================================= */
/* Paleta BeeHub: preto, branco e amarelo (abelha). --roxo* ficaram com o nome antigo, mas agora são o amarelo de destaque. */
:root {
  --roxo: #facc15;
  --roxo-forte: #eab308;
  --roxo-escuro: #a16207;
  --rosa: #fde047;
  --sobre-acento: #0a0a0a;
  --acento-texto: #facc15;
  --brilho: 0 0 0 1px rgba(250, 204, 21, .45), 0 8px 28px -8px rgba(250, 204, 21, .45);
  --raio: 14px;
  --raio-p: 10px;
  --verde: #22c55e;
  --amarelo: #f59e0b;
  --vermelho: #ef4444;
  --azul: #3b82f6;
  --fonte: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
:root, [data-tema="escuro"] {
  --fundo: #0a0a0a;
  --fundo-2: #111111;
  --cartao: #171717;
  --cartao-2: #1f1f1f;
  --linha: rgba(255, 255, 255, .09);
  --linha-forte: rgba(255, 255, 255, .18);
  --texto: #fafafa;
  --texto-2: #a3a3a3;
  --texto-3: #737373;
  --input: #0f0f0f;
  --acento-texto: #facc15;
  --sombra: 0 10px 40px -12px rgba(0, 0, 0, .8);
  --gradiente-fundo: radial-gradient(1100px 520px at 90% -12%, rgba(250, 204, 21, .10), transparent 60%);
}
[data-tema="claro"] {
  --fundo: #fafafa;
  --fundo-2: #f4f4f5;
  --cartao: #ffffff;
  --cartao-2: #f6f6f6;
  --linha: rgba(0, 0, 0, .09);
  --linha-forte: rgba(0, 0, 0, .18);
  --texto: #0a0a0a;
  --texto-2: #525252;
  --texto-3: #8a8a8a;
  --input: #ffffff;
  --acento-texto: #a16207;
  --sombra: 0 10px 30px -14px rgba(0, 0, 0, .25);
  --gradiente-fundo: radial-gradient(1100px 520px at 90% -12%, rgba(250, 204, 21, .14), transparent 60%);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--fonte); background: var(--fundo); background-image: var(--gradiente-fundo);
  background-attachment: fixed; color: var(--texto); font-size: 14.5px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
}
a { color: var(--acento-texto); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 24px; font-weight: 800; }
h2 { font-size: 19px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
small, .mudo { color: var(--texto-2); }
.mudo-3 { color: var(--texto-3); }
hr { border: 0; border-top: 1px solid var(--linha); margin: 18px 0; }
::selection { background: rgba(250, 204, 21, .35); }

/* ---------- carregando ---------- */
.tela-carregando { min-height: 100vh; display: grid; place-items: center; }
.logo-pulso { width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--roxo), var(--roxo-escuro)); box-shadow: var(--brilho); animation: pulso 1.2s ease-in-out infinite; }
@keyframes pulso { 50% { transform: scale(.88); opacity: .7; } }
.girando { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: gira .7s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes gira { to { transform: rotate(360deg); } }

/* ---------- marca ---------- */
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.logo-icone { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #fde047, var(--roxo-escuro)); display: grid; place-items: center; color: var(--sobre-acento); font-weight: 800; font-size: 15px; box-shadow: var(--brilho); flex: none; }
.logo b { background: linear-gradient(90deg, #facc15, #fde047); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-tema="claro"] .logo b { background: linear-gradient(90deg, #ca8a04, #a16207); -webkit-background-clip: text; background-clip: text; }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--raio-p); border: 1px solid var(--linha-forte); background: var(--cartao-2); color: var(--texto); font: 600 14px var(--fonte); cursor: pointer; transition: .15s; white-space: nowrap; text-decoration: none !important; }
.btn:hover { border-color: var(--acento-texto); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-p { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn-primario { background: linear-gradient(135deg, #fde047, var(--roxo-forte)); border-color: transparent; color: var(--sobre-acento); box-shadow: var(--brilho); }
.btn-primario:hover { filter: brightness(1.08); border-color: transparent; }
.btn-perigo { color: #fca5a5; border-color: rgba(239, 68, 68, .4); background: rgba(239, 68, 68, .08); }
[data-tema="claro"] .btn-perigo { color: #b91c1c; }
.btn-perigo:hover { border-color: var(--vermelho); }
.btn-fantasma { background: transparent; border-color: transparent; color: var(--texto-2); }
.btn-fantasma:hover { background: var(--cartao-2); color: var(--texto); border-color: var(--linha); }
.btn-icone { width: 40px; padding: 0; }
.btn-bloco { width: 100%; }
.btn-verde { background: rgba(34, 197, 94, .12); border-color: rgba(34, 197, 94, .45); color: #86efac; }
[data-tema="claro"] .btn-verde { color: #15803d; }

/* ---------- formulários ---------- */
.campo { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.campo label, .rotulo { font-size: 12.5px; font-weight: 600; color: var(--texto-2); }
.campo .dica { font-size: 12px; color: var(--texto-3); }
input, select, textarea { font: 500 14px var(--fonte); color: var(--texto); background: var(--input); border: 1px solid var(--linha-forte); border-radius: var(--raio-p); padding: 10px 12px; outline: none; width: 100%; transition: .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--acento-texto); box-shadow: 0 0 0 3px rgba(250, 204, 21, .2); }
textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--acento-texto); }
input[type=color] { padding: 2px; height: 40px; }
.grade-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grade-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.linha { display: flex; align-items: center; gap: 10px; }
.linha-entre { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quebra { flex-wrap: wrap; }
.cresce { flex: 1; min-width: 0; }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }

/* ---------- autenticação ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-lado { padding: 48px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(160deg, rgba(250, 204, 21, .35), rgba(13, 8, 25, .2) 60%), var(--fundo-2); border-right: 1px solid var(--linha); position: relative; overflow: hidden; }
.auth-lado::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -180px; bottom: -200px; background: radial-gradient(circle, rgba(250, 204, 21, .35), transparent 65%); filter: blur(10px); }
.auth-lado h1 { font-size: 40px; line-height: 1.1; margin: 0 0 14px; max-width: 520px; }
.auth-lado h1 span { background: linear-gradient(90deg, #fde68a, var(--rosa)); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-tema="claro"] .auth-lado h1 span { background: linear-gradient(90deg, var(--roxo-forte), var(--rosa)); -webkit-background-clip: text; background-clip: text; }
.auth-lado .redes-linha { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; position: relative; z-index: 1; }
.auth-form { display: grid; place-items: center; padding: 32px 20px; }
.auth-caixa { width: 100%; max-width: 400px; }
.auth-caixa h2 { font-size: 24px; margin-bottom: 6px; }
.auth-troca { margin-top: 18px; text-align: center; color: var(--texto-2); }
.auth-troca a { font-weight: 700; cursor: pointer; }

.planos-escolha { display: grid; gap: 10px; margin-bottom: 14px; }
.plano-op { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: var(--raio-p); border: 1px solid var(--linha-forte); background: var(--cartao); cursor: pointer; transition: .15s; }
.plano-op:hover { border-color: var(--acento-texto); }
.plano-op.ativo { border-color: var(--acento-texto); box-shadow: var(--brilho); }
.plano-op .preco { margin-left: auto; font-weight: 800; white-space: nowrap; }

/* ---------- estrutura do app ---------- */
.app { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.lateral { position: sticky; top: 0; height: 100vh; padding: 18px 14px; display: flex; flex-direction: column; gap: 6px; background: var(--fundo-2); border-right: 1px solid var(--linha); overflow-y: auto; z-index: 40; }
.lateral .logo { padding: 4px 8px 16px; }
.menu-titulo { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--texto-3); padding: 14px 10px 6px; }
.menu-item { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 10px; color: var(--texto-2); font-weight: 600; cursor: pointer; transition: .12s; text-decoration: none !important; border: 1px solid transparent; }
.menu-item:hover { background: var(--cartao); color: var(--texto); }
.menu-item.ativo { background: linear-gradient(135deg, rgba(250, 204, 21, .22), rgba(250, 204, 21, .08)); color: var(--texto); border-color: rgba(250, 204, 21, .35); box-shadow: 0 0 22px -8px rgba(250, 204, 21, .7); }
.menu-item svg { width: 18px; height: 18px; flex: none; }
.menu-item .selo { margin-left: auto; }
.lateral-pe { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--linha); }
.espaco-caixa { padding: 10px; border-radius: 12px; background: var(--cartao); border: 1px solid var(--linha); }
.espaco-caixa .nome { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.principal { min-width: 0; display: flex; flex-direction: column; }
.topo { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 14px 28px; background: color-mix(in srgb, var(--fundo) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--linha); }
.topo h1 { font-size: 20px; }
.topo .acoes { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.btn-menu { display: none; }
.conteudo { padding: 26px 28px 60px; max-width: 1400px; width: 100%; }
.aviso-faixa { margin: 0 28px; margin-top: 16px; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(245, 158, 11, .45); background: rgba(245, 158, 11, .1); display: flex; gap: 12px; align-items: center; }

/* ---------- cartões ---------- */
.cartao { background: var(--cartao); border: 1px solid var(--linha); border-radius: var(--raio); padding: 18px; box-shadow: var(--sombra); }
.cartao-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.grade-cartoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { background: var(--cartao); border: 1px solid var(--linha); border-radius: var(--raio); padding: 16px 18px; position: relative; overflow: hidden; }
.kpi::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--roxo), var(--rosa)); opacity: .8; }
.kpi .rot { font-size: 12.5px; color: var(--texto-2); font-weight: 600; }
.kpi .val { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.kpi .sub { font-size: 12px; color: var(--texto-3); }
.duas-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.vazio { text-align: center; padding: 34px 16px; color: var(--texto-2); }
.vazio .ic { width: 52px; height: 52px; border-radius: 16px; margin: 0 auto 12px; display: grid; place-items: center; background: rgba(250, 204, 21, .14); color: var(--acento-texto); }
.vazio .ic svg { width: 24px; height: 24px; }
.vazio h3 { color: var(--texto); margin-bottom: 4px; }

/* ---------- selos ---------- */
.selo { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; border: 1px solid transparent; white-space: nowrap; }
.selo::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.selo.sem-ponto::before { display: none; }
.s-cinza { color: var(--texto-2); background: rgba(148, 163, 184, .12); border-color: rgba(148, 163, 184, .25); }
.s-roxo { color: #fde68a; background: rgba(250, 204, 21, .15); border-color: rgba(250, 204, 21, .35); }
.s-verde { color: #86efac; background: rgba(34, 197, 94, .12); border-color: rgba(34, 197, 94, .35); }
.s-amarelo { color: #fcd34d; background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .35); }
.s-vermelho { color: #fca5a5; background: rgba(239, 68, 68, .12); border-color: rgba(239, 68, 68, .35); }
.s-azul { color: #93c5fd; background: rgba(59, 130, 246, .12); border-color: rgba(59, 130, 246, .35); }
[data-tema="claro"] .s-roxo { color: #ca8a04; }
[data-tema="claro"] .s-verde { color: #15803d; }
[data-tema="claro"] .s-amarelo { color: #b45309; }
[data-tema="claro"] .s-vermelho { color: #b91c1c; }
[data-tema="claro"] .s-azul { color: #1d4ed8; }

/* ---------- ícones de rede ---------- */
.rede-ic { width: 22px; height: 22px; border-radius: 7px; display: inline-grid; place-items: center; color: #fff; flex: none; }
.rede-ic svg { width: 13px; height: 13px; }
.rede-ic.g { width: 34px; height: 34px; border-radius: 10px; }
.rede-ic.g svg { width: 18px; height: 18px; }
.r-facebook { background: #1877f2; }
.r-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.r-linkedin { background: #0a66c2; }
.r-google_negocio { background: #fff; color: #4285f4; border: 1px solid #dadce0; }
.r-youtube { background: #ff0000; }
.r-tiktok { background: #000; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.r-pinterest { background: #e60023; }
.r-meta { background: linear-gradient(135deg, #0668e1, #0080fb); }

/* ---------- tabelas ---------- */
.tabela-caixa { overflow-x: auto; border-radius: var(--raio); border: 1px solid var(--linha); background: var(--cartao); }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--texto-3); padding: 12px 14px; border-bottom: 1px solid var(--linha); background: var(--cartao-2); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--linha); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(250, 204, 21, .05); }
.td-acoes { text-align: right; white-space: nowrap; }

/* ---------- abas ---------- */
.abas { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--cartao); border: 1px solid var(--linha); margin-bottom: 20px; overflow-x: auto; }
.aba { padding: 8px 14px; border-radius: 9px; font-weight: 600; color: var(--texto-2); cursor: pointer; white-space: nowrap; border: 0; background: none; font-family: var(--fonte); font-size: 14px; }
.aba:hover { color: var(--texto); }
.aba.ativa { background: linear-gradient(135deg, #fde047, var(--roxo-forte)); color: var(--sobre-acento); box-shadow: var(--brilho); }

/* ---------- marcas ---------- */
.marca-cartao { cursor: pointer; transition: .15s; }
.marca-cartao:hover { border-color: var(--acento-texto); transform: translateY(-2px); }
.avatar { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; overflow: hidden; background-size: cover; background-position: center; }
.avatar.p { width: 30px; height: 30px; border-radius: 9px; font-size: 12px; }
.avatar.g { width: 64px; height: 64px; border-radius: 18px; font-size: 22px; }
.mini-redes { display: flex; gap: 5px; flex-wrap: wrap; }

.redes-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.rede-cartao { background: var(--cartao); border: 1px solid var(--linha); border-radius: var(--raio); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.conta-linha { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--cartao-2); border: 1px solid var(--linha); }
.conta-foto { width: 30px; height: 30px; border-radius: 50%; background: var(--cartao); background-size: cover; background-position: center; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 700; }

/* ---------- calendário ---------- */
.cal-cab { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.cal-cab h2 { min-width: 190px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--linha); border-radius: var(--raio); overflow: hidden; background: var(--cartao); }
.cal-dsem { padding: 10px; font-size: 12px; font-weight: 700; color: var(--texto-3); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--linha); background: var(--cartao-2); }
.cal-dia { min-height: 118px; padding: 8px; border-right: 1px solid var(--linha); border-bottom: 1px solid var(--linha); display: flex; flex-direction: column; gap: 4px; cursor: pointer; transition: background .12s; min-width: 0; }
.cal-dia:nth-child(7n) { border-right: 0; }
.cal-dia:hover { background: rgba(250, 204, 21, .06); }
.cal-dia.fora { opacity: .4; }
.cal-dia .num { font-size: 12.5px; font-weight: 700; color: var(--texto-2); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; }
.cal-dia.hoje .num { background: linear-gradient(135deg, #fde047, var(--roxo-forte)); color: var(--sobre-acento); box-shadow: var(--brilho); }
.cal-post { display: flex; align-items: center; gap: 5px; padding: 3px 6px; border-radius: 7px; font-size: 11.5px; font-weight: 600; background: var(--cartao-2); border-left: 3px solid var(--roxo); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.cal-post:hover { filter: brightness(1.15); }
.cal-post .h { color: var(--texto-3); font-weight: 700; }
.cal-mais { font-size: 11.5px; color: var(--texto-3); font-weight: 600; padding-left: 4px; }

/* ---------- posts ---------- */
.post-linha { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 12px; border: 1px solid var(--linha); background: var(--cartao); cursor: pointer; transition: .12s; }
.post-linha:hover { border-color: var(--acento-texto); }
.post-miniatura { width: 56px; height: 56px; border-radius: 10px; background: var(--cartao-2); background-size: cover; background-position: center; flex: none; display: grid; place-items: center; color: var(--texto-3); overflow: hidden; }
.post-miniatura video { width: 100%; height: 100%; object-fit: cover; }
.post-texto { min-width: 0; flex: 1; }
.post-texto .leg { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.lista { display: flex; flex-direction: column; gap: 10px; }
.filtros { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.filtros select, .filtros input { width: auto; min-width: 170px; height: 40px; padding: 0 12px; }

/* editor */
.editor { display: grid; grid-template-columns: 1fr 360px; gap: 22px; }
.destinos { display: flex; flex-wrap: wrap; gap: 8px; }
.destino-op { display: flex; align-items: center; gap: 8px; padding: 7px 11px 7px 8px; border-radius: 999px; border: 1px solid var(--linha-forte); background: var(--cartao-2); cursor: pointer; font-weight: 600; font-size: 13px; transition: .12s; user-select: none; }
.destino-op.marcado { border-color: var(--acento-texto); background: rgba(250, 204, 21, .16); box-shadow: 0 0 18px -6px rgba(250, 204, 21, .8); }
.destino-op input { display: none; }
.formatos { display: flex; gap: 6px; flex-wrap: wrap; }
.formato-op { padding: 7px 13px; border-radius: 9px; border: 1px solid var(--linha-forte); cursor: pointer; font-weight: 600; font-size: 13px; background: var(--cartao-2); }
.formato-op.marcado { border-color: var(--acento-texto); background: rgba(250, 204, 21, .18); color: var(--texto); }
.soltar { border: 2px dashed var(--linha-forte); border-radius: var(--raio); padding: 22px; text-align: center; cursor: pointer; transition: .15s; background: var(--cartao-2); }
.soltar:hover, .soltar.sobre { border-color: var(--acento-texto); background: rgba(250, 204, 21, .08); }
.midias { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 10px; }
.midia { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--cartao-2); border: 1px solid var(--linha); }
.midia img, .midia video { width: 100%; height: 100%; object-fit: cover; display: block; }
.midia .tirar { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; cursor: pointer; font-size: 14px; line-height: 1; }
.midia .ordem { position: absolute; left: 4px; bottom: 4px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; }
.midia .enviando { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.55); }
.contador { font-size: 12px; color: var(--texto-3); text-align: right; }
.contador.estourou { color: var(--vermelho); font-weight: 700; }

.previa { position: sticky; top: 90px; }
.previa-tel { border-radius: 26px; border: 1px solid var(--linha-forte); background: var(--fundo-2); padding: 14px; box-shadow: var(--sombra); }
.previa-post { background: var(--cartao); border-radius: 16px; overflow: hidden; border: 1px solid var(--linha); }
.previa-cab { display: flex; align-items: center; gap: 9px; padding: 10px 12px; }
.previa-img { aspect-ratio: 1; background: var(--cartao-2); display: grid; place-items: center; color: var(--texto-3); background-size: cover; background-position: center; position: relative; }
.previa-img video { width: 100%; height: 100%; object-fit: cover; }
.previa-img .qtd { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.previa-leg { padding: 10px 12px 14px; font-size: 13px; white-space: pre-wrap; word-break: break-word; max-height: 220px; overflow: auto; }
.destino-status { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: var(--cartao-2); border: 1px solid var(--linha); }

/* ---------- planos (admin e cadastro) ---------- */
.plano-cartao { position: relative; display: flex; flex-direction: column; gap: 10px; }
.plano-cartao.destaque { border-color: var(--acento-texto); box-shadow: var(--brilho); }
.plano-cartao .preco-g { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.plano-cartao ul { margin: 0; padding-left: 18px; color: var(--texto-2); }
.plano-cartao.inativo { opacity: .55; }

/* ---------- espera ---------- */
.espera { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.espera .cartao { max-width: 560px; width: 100%; padding: 30px; }
.pix { font-family: ui-monospace, Menlo, monospace; padding: 12px; border-radius: 10px; background: var(--cartao-2); border: 1px dashed var(--linha-forte); word-break: break-all; }

/* ---------- modal ---------- */
.modal-fundo { position: fixed; inset: 0; z-index: 100; background: rgba(6, 3, 14, .66); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; animation: aparece .15s ease; overflow-y: auto; }
.modal { width: 100%; max-width: 560px; background: var(--cartao); border: 1px solid var(--linha-forte); border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7), var(--brilho); animation: sobe .18s ease; max-height: calc(100vh - 40px); display: flex; flex-direction: column; }
.modal.largo { max-width: 1080px; }
.modal.medio { max-width: 760px; }
.modal-cab { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--linha); gap: 12px; }
.modal-corpo { padding: 20px 22px; overflow-y: auto; }
.modal-pe { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--linha); flex-wrap: wrap; }
@keyframes aparece { from { opacity: 0; } }
@keyframes sobe { from { transform: translateY(12px); opacity: 0; } }

/* ---------- toasts ---------- */
#toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { min-width: 260px; max-width: 380px; padding: 12px 16px; border-radius: 12px; background: var(--cartao); border: 1px solid var(--linha-forte); box-shadow: var(--sombra); font-weight: 600; animation: sobe .2s ease; display: flex; gap: 10px; align-items: flex-start; }
.toast.ok { border-color: rgba(34, 197, 94, .5); }
.toast.erro { border-color: rgba(239, 68, 68, .55); }
.toast .bolinha { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: none; background: var(--roxo); }
.toast.ok .bolinha { background: var(--verde); }
.toast.erro .bolinha { background: var(--vermelho); }

/* ---------- utilidades ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 20px; } .mt-4 { margin-top: 28px; }
.mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 20px; }
.negrito { font-weight: 700; }
.pequeno { font-size: 12.5px; }
.centro { text-align: center; }
.oculto { display: none !important; }
.corta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.caixa-info { padding: 12px 14px; border-radius: 12px; background: rgba(250, 204, 21, .1); border: 1px solid rgba(250, 204, 21, .3); color: var(--texto-2); font-size: 13.5px; }
.caixa-info b { color: var(--texto); }
.codigo { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; padding: 8px 10px; border-radius: 8px; background: var(--cartao-2); border: 1px solid var(--linha); word-break: break-all; }
.passos { margin: 8px 0 0; padding-left: 20px; color: var(--texto-2); font-size: 13.5px; }
.passos li { margin-bottom: 4px; }

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
  .editor { grid-template-columns: 1fr; }
  .previa { position: static; }
  .duas-col { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-lado { display: none; }
  .app { grid-template-columns: 1fr; }
  .lateral { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--sombra); }
  .app.menu-aberto .lateral { transform: none; }
  .app.menu-aberto::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 35; }
  .btn-menu { display: inline-flex; }
  .topo { padding: 12px 16px; }
  .topo .so-largo { display: none; }
  .conteudo { padding: 18px 16px 60px; }
  .aviso-faixa { margin: 12px 16px 0; }
  .cal-dia { min-height: 78px; padding: 4px; }
  .cal-post { font-size: 0; padding: 0; height: 6px; border-left-width: 0; border-radius: 4px; }
  .cal-post * { display: none; }
  .cal-dsem { padding: 6px 4px; font-size: 10.5px; text-align: center; }
  .grade-2, .grade-3 { grid-template-columns: 1fr; }
  .modal-fundo { padding: 0; place-items: end center; }
  .modal { max-height: 94vh; border-radius: 18px 18px 0 0; }
  .filtros select, .filtros input { min-width: 0; flex: 1; }
  #toasts { left: 16px; right: 16px; bottom: 16px; }
  .toast { max-width: none; }
}

/* =========================================================
   BEEHUB — componentes novos
   ========================================================= */
.r-whatsapp { background: #25d366; }
.s-rosa { color: #fde68a; background: rgba(250, 204, 21, .12); border-color: rgba(250, 204, 21, .35); }
[data-tema="claro"] .s-rosa { color: #a16207; }
.faixa-demo { margin: 16px 28px 0; padding: 10px 14px; border-radius: 12px; border: 1px dashed rgba(250, 204, 21, .5); background: rgba(250, 204, 21, .08); font-size: 13px; color: var(--texto-2); display: flex; gap: 10px; align-items: center; }
.faixa-demo b { color: var(--texto); }

/* seletor de cliente no topo */
.seletor-cliente { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border-radius: 12px; border: 1px solid var(--linha-forte); background: var(--cartao); cursor: pointer; min-width: 0; max-width: 320px; }
.seletor-cliente:hover { border-color: var(--acento-texto); }
.seletor-cliente select { border: 0; background: transparent; padding: 0 4px; height: 30px; font-weight: 700; box-shadow: none !important; min-width: 0; }

/* cabeçalho do cliente */
.cliente-cab { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.cliente-cab .info { min-width: 0; flex: 1; }
.cliente-cab h1 { font-size: 24px; }
.conexoes-mini { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.con-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 4px; border-radius: 999px; border: 1px solid var(--linha); background: var(--cartao-2); font-size: 12px; font-weight: 600; color: var(--texto-2); }
.con-chip.on { color: var(--texto); border-color: rgba(34, 197, 94, .4); }
.con-chip.off { opacity: .55; }
.con-chip .rede-ic { width: 18px; height: 18px; border-radius: 6px; }

/* perfis de redes */
.perfil-rede { display: flex; gap: 14px; align-items: center; }
.perfil-foto { width: 56px; height: 56px; border-radius: 50%; background: var(--cartao-2) center/cover; flex: none; border: 2px solid var(--linha-forte); display: grid; place-items: center; font-weight: 800; }
.numeros { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 4px; }
.numeros div b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.numeros div span { font-size: 12px; color: var(--texto-3); font-weight: 600; }

/* grade de posts */
.posts-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.post-card { border-radius: 12px; overflow: hidden; background: var(--cartao); border: 1px solid var(--linha); display: flex; flex-direction: column; transition: .15s; color: var(--texto); text-decoration: none !important; }
.post-card:hover { border-color: var(--acento-texto); transform: translateY(-2px); box-shadow: 0 10px 30px -14px rgba(250, 204, 21, .6); }
.post-img { aspect-ratio: 1; background: var(--cartao-2) center/cover; position: relative; display: grid; place-items: center; color: rgba(255,255,255,.85); }
.post-img .tipo { position: absolute; top: 7px; left: 7px; background: rgba(0,0,0,.6); color: #fff; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.post-img .rank { position: absolute; top: 7px; right: 7px; background: linear-gradient(135deg, #fde047, var(--roxo-forte)); color: var(--sobre-acento); font-size: 11px; font-weight: 800; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--brilho); }
.post-img .rede-ic { position: absolute; bottom: 7px; left: 7px; }
.post-info { padding: 9px 10px 10px; display: flex; flex-direction: column; gap: 6px; }
.post-info .leg { font-size: 12.5px; color: var(--texto-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.metricas { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11.5px; font-weight: 700; color: var(--texto-2); }
.metricas span { display: inline-flex; align-items: center; gap: 3px; }
.metricas svg { width: 13px; height: 13px; }

/* anúncios */
.anuncio-linha { display: flex; gap: 12px; align-items: center; }
.anuncio-img { width: 46px; height: 46px; border-radius: 10px; background: var(--cartao-2) center/cover; flex: none; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.num, th.num { text-align: right; }
.roas-bom { color: #86efac; font-weight: 800; }
.roas-ruim { color: #fca5a5; font-weight: 800; }
[data-tema="claro"] .roas-bom { color: #15803d; }
[data-tema="claro"] .roas-ruim { color: #b91c1c; }
.barra { height: 6px; border-radius: 999px; background: var(--cartao-2); overflow: hidden; min-width: 60px; }
.barra i { display: block; height: 100%; background: linear-gradient(90deg, var(--roxo), var(--rosa)); border-radius: 999px; }

/* kanban */
.kanban-topo { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.kanban-topo input, .kanban-topo select { width: auto; min-width: 160px; height: 40px; padding: 0 12px; }
.kanban { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 14px; align-items: flex-start; min-height: calc(100vh - 230px); scroll-snap-type: x proximity; }
.coluna { flex: 0 0 290px; background: var(--fundo-2); border: 1px solid var(--linha); border-radius: var(--raio); display: flex; flex-direction: column; max-height: calc(100vh - 200px); scroll-snap-align: start; }
.coluna-cab { padding: 12px 14px 10px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--linha); }
.coluna-cab .ponto { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 10px currentColor; }
.coluna-cab h3 { font-size: 14px; flex: 1; min-width: 0; }
.coluna-cab .qtd { font-size: 12px; font-weight: 800; color: var(--texto-3); background: var(--cartao); border: 1px solid var(--linha); padding: 1px 8px; border-radius: 999px; }
.coluna-soma { padding: 6px 14px; font-size: 12px; color: var(--texto-3); font-weight: 600; border-bottom: 1px solid var(--linha); display: flex; justify-content: space-between; gap: 8px; }
.coluna-corpo { padding: 10px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; flex: 1; min-height: 120px; transition: background .12s; border-radius: 0 0 var(--raio) var(--raio); }
.coluna-corpo.sobre { background: rgba(250, 204, 21, .1); box-shadow: inset 0 0 0 2px rgba(250, 204, 21, .45); }
.coluna.ganho .coluna-cab { background: rgba(34, 197, 94, .06); }
.coluna.perdido .coluna-cab { background: rgba(239, 68, 68, .05); }
.card-lead { background: var(--cartao); border: 1px solid var(--linha); border-radius: 12px; padding: 11px 12px; cursor: grab; transition: border-color .12s, transform .12s, box-shadow .12s; position: relative; user-select: none; }
.card-lead:hover { border-color: var(--acento-texto); box-shadow: 0 8px 24px -14px rgba(250, 204, 21, .7); }
.card-lead.arrastando { opacity: .45; transform: rotate(2deg); }
.card-lead.novo-flash { animation: flash 1.4s ease; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 2px var(--rosa), 0 0 26px -4px var(--rosa); } }
.card-lead .nome { font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-lead .tel { font-size: 12px; color: var(--texto-3); font-weight: 600; }
.card-lead .msg { font-size: 12.5px; color: var(--texto-2); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-lead .rodape { display: flex; align-items: center; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.card-lead .rodape .tempo { margin-left: auto; font-size: 11px; color: var(--texto-3); font-weight: 600; }
.card-lead .valor { font-size: 12px; font-weight: 800; color: #86efac; }
[data-tema="claro"] .card-lead .valor { color: #15803d; }
.origem-ad { display: flex; gap: 6px; align-items: center; margin-top: 7px; padding: 5px 7px; border-radius: 8px; background: rgba(250, 204, 21, .1); border: 1px solid rgba(250, 204, 21, .22); font-size: 11.5px; font-weight: 600; color: var(--texto-2); min-width: 0; }
.origem-ad span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.origem-ad .rede-ic { width: 16px; height: 16px; border-radius: 5px; }
.coluna-vazia { text-align: center; font-size: 12.5px; color: var(--texto-3); padding: 18px 6px; border: 1px dashed var(--linha-forte); border-radius: 10px; }

/* lead (modal) */
.lead-grade { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; }
.bloco { background: var(--cartao-2); border: 1px solid var(--linha); border-radius: 12px; padding: 14px; }
.bloco + .bloco { margin-top: 12px; }
.bloco h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--texto-3); margin-bottom: 10px; }
.par { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 13.5px; border-bottom: 1px dashed var(--linha); }
.par:last-child { border-bottom: 0; }
.par span { color: var(--texto-3); font-weight: 600; }
.par b { text-align: right; min-width: 0; word-break: break-word; }
.anuncio-origem { display: flex; gap: 12px; }
.anuncio-origem .img { width: 74px; height: 74px; border-radius: 10px; background: var(--cartao) center/cover; flex: none; border: 1px solid var(--linha); display: grid; place-items: center; color: var(--texto-3); }
.etapas-pilulas { display: flex; flex-wrap: wrap; gap: 6px; }
.etapa-pilula { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--linha-forte); background: var(--cartao); font: 600 12.5px var(--fonte); color: var(--texto-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.etapa-pilula i { width: 8px; height: 8px; border-radius: 50%; }
.etapa-pilula:hover { border-color: var(--acento-texto); color: var(--texto); }
.etapa-pilula.atual { color: #fff; border-color: transparent; box-shadow: var(--brilho); }
.conversa { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow-y: auto; padding: 4px; }
.bolha { max-width: 82%; padding: 7px 10px; border-radius: 12px; font-size: 13px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
.bolha small { display: block; font-size: 10.5px; color: var(--texto-3); margin-top: 2px; text-align: right; }
.bolha.entrada { align-self: flex-start; background: var(--cartao); border: 1px solid var(--linha); border-bottom-left-radius: 4px; }
.bolha.saida { align-self: flex-end; background: rgba(250, 204, 21, .2); border: 1px solid rgba(250, 204, 21, .3); border-bottom-right-radius: 4px; }
.linha-tempo { display: flex; flex-direction: column; gap: 8px; }
.lt-item { display: flex; gap: 10px; font-size: 13px; }
.lt-item .bola { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex: none; background: var(--roxo); box-shadow: 0 0 10px var(--roxo); }
.lt-item small { color: var(--texto-3); display: block; }

/* venda */
.venda-valor input { font-size: 26px; font-weight: 800; height: 58px; letter-spacing: -.02em; }
.meta-aviso { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; font-size: 13px; }
.meta-aviso.ok { background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .35); }
.meta-aviso.alerta { background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .35); }

/* conexão / QR */
.con-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.con-cartao { background: var(--cartao); border: 1px solid var(--linha); border-radius: var(--raio); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.con-cartao.ligado { border-color: rgba(34, 197, 94, .4); }
.con-cartao .cab { display: flex; gap: 12px; align-items: center; }
.con-cartao .btn { white-space: normal; height: auto; min-height: 40px; padding-top: 8px; padding-bottom: 8px; text-align: center; }
.qr-caixa { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.qr { width: 196px; height: 196px; padding: 12px; background: #fff; border-radius: 16px; box-shadow: var(--brilho); display: grid; place-items: center; }
.qr svg, .qr img { width: 172px !important; height: 172px !important; display: block; }
.qr svg path, .qr svg rect[fill='black'] { fill: #0a0a0a; }
.qr-passos { counter-reset: p; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.qr-passos li { counter-increment: p; position: relative; padding-left: 34px; min-height: 24px; font-size: 13.5px; color: var(--texto-2); line-height: 1.55; }
.qr-passos li::before { content: counter(p); position: absolute; left: 0; top: -1px; width: 24px; height: 24px; border-radius: 8px; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 12px; color: var(--sobre-acento); background: linear-gradient(135deg, #fde047, var(--roxo-forte)); }
.ativo-op { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; border: 1px solid var(--linha); background: var(--cartao-2); cursor: pointer; }
.ativo-op:hover { border-color: var(--acento-texto); }
.ativo-op.marcado { border-color: var(--acento-texto); box-shadow: 0 0 18px -6px rgba(250, 204, 21, .8); }

/* mensagens prontas */
.resp-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.resp-cartao { background: var(--cartao); border: 1px solid var(--linha); border-radius: var(--raio); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.resp-cartao .txt { font-size: 13px; color: var(--texto-2); white-space: pre-wrap; max-height: 92px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.resp-cartao audio { width: 100%; height: 36px; }
.atalho { font-family: ui-monospace, Menlo, monospace; font-size: 12px; padding: 1px 7px; border-radius: 6px; background: var(--cartao-2); border: 1px solid var(--linha); color: var(--texto-2); }
.gravador { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--linha-forte); background: var(--cartao-2); }
.gravador .rec { width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; background: linear-gradient(135deg, #f43f5e, #be123c); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 4px rgba(244, 63, 94, .18); flex: none; }
.gravador .rec.gravando { animation: pulsorec 1s infinite; }
@keyframes pulsorec { 50% { box-shadow: 0 0 0 10px rgba(244, 63, 94, .08); } }
.gravador .rec svg { width: 20px; height: 20px; }
.variaveis { display: flex; gap: 6px; flex-wrap: wrap; }
.variaveis button { font: 600 12px var(--fonte); padding: 4px 9px; border-radius: 8px; border: 1px dashed var(--linha-forte); background: transparent; color: var(--texto-2); cursor: pointer; }
.variaveis button:hover { border-color: var(--acento-texto); color: var(--texto); }

/* gráfico de barras simples */
.mini-grafico { display: flex; align-items: flex-end; gap: 4px; height: 220px; padding-top: 6px; }
.mini-grafico .b { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; min-width: 0; }
.mini-grafico .b i { width: 100%; max-width: 26px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--rosa), var(--roxo-forte)); min-height: 3px; box-shadow: 0 0 14px -4px rgba(250, 204, 21, .8); }
.mini-grafico .b i.v { background: linear-gradient(180deg, #4ade80, #15803d); box-shadow: none; }
.mini-grafico .b span { font-size: 10px; color: var(--texto-3); font-weight: 600; }
.legenda { display: flex; gap: 14px; font-size: 12px; color: var(--texto-2); font-weight: 600; }
.legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* página pública de conexão (QR) */
.pub { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.pub .caixa { width: 100%; max-width: 520px; }
.pub .marca { display: flex; gap: 12px; align-items: center; justify-content: center; margin-bottom: 22px; }
.pub .rede-btn { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; border-radius: 14px; border: 1px solid var(--linha-forte); background: var(--cartao); color: var(--texto); cursor: pointer; font: 600 15px var(--fonte); text-align: left; transition: .15s; }
.pub .rede-btn:hover { border-color: var(--acento-texto); box-shadow: var(--brilho); }
.pub .rede-btn.feito { border-color: rgba(34, 197, 94, .5); }
.pub .rede-btn .txt { flex: 1; min-width: 0; }
.pub .rede-btn small { display: block; font-weight: 500; color: var(--texto-3); font-size: 12.5px; }

/* extensão */
.ext-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: center; }
.ext-mock { border-radius: 18px; border: 1px solid var(--linha-forte); background: #0b141a; padding: 0; overflow: hidden; display: grid; grid-template-columns: 1fr 190px; min-height: 280px; box-shadow: var(--sombra), var(--brilho); }
.ext-mock .wa { background: repeating-linear-gradient(45deg, #0b141a, #0b141a 10px, #0d1a21 10px, #0d1a21 20px); padding: 14px; display: flex; flex-direction: column; gap: 6px; justify-content: flex-end; }
.ext-mock .wa .m { max-width: 80%; padding: 6px 9px; border-radius: 8px; font-size: 11.5px; color: #e9edef; background: #202c33; }
.ext-mock .wa .m.s { align-self: flex-end; background: #005c4b; }
.ext-mock .pn { background: var(--fundo-2); border-left: 1px solid var(--linha-forte); padding: 10px; display: flex; flex-direction: column; gap: 7px; font-size: 11px; }
.ext-mock .pn .t { font-weight: 800; font-size: 12px; }

@media (max-width: 1100px) {
  .lead-grade { grid-template-columns: 1fr; }
  .ext-hero { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .faixa-demo { margin: 12px 16px 0; }
  .coluna { flex-basis: 84vw; }
  .kanban-topo input, .kanban-topo select { min-width: 0; flex: 1; }
  .qr-caixa { grid-template-columns: 1fr; justify-items: center; }
  .posts-grade { grid-template-columns: repeat(2, 1fr); }
  .seletor-cliente { max-width: 200px; }
  .ext-mock { grid-template-columns: 1fr 150px; }
}
.duas-col > *, .lead-grade > * { min-width: 0; }
.cartao-cab { flex-wrap: wrap; }
@media (max-width: 900px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 12px 14px; }
  .kpi .val { font-size: 22px; }
  .mini-grafico { gap: 2px; height: 160px; }
  .numeros { gap: 14px; }
  .abas { margin-bottom: 14px; }
  .cliente-cab .btn { margin-left: auto; }
}
.btn-rede { color: #fff !important; border-color: transparent !important; font-weight: 700; }
.btn-rede:hover { filter: brightness(1.1); box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .6); }
.btn-rede.r-tiktok { box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }

/* ---------- produção (kanban de demandas) ---------- */
.btn-aviso { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; border-color: transparent; }
.btn-aviso:hover { filter: brightness(1.08); }
.avatar.mini { width: 20px; height: 20px; border-radius: 6px; font-size: 9px; flex: none; }
.pessoa { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 9.5px; font-weight: 800; color: #fff; border: 2px solid var(--cartao); margin-left: -6px; }
.pessoa:first-child { margin-left: 0; }
.card-dem { padding: 10px 11px; }
.card-dem .nome { font-size: 13.5px; line-height: 1.35; }
.dem-thumb { position: relative; height: 92px; margin: -10px -11px 8px; border-radius: 12px 12px 0 0; overflow: hidden; background: var(--cartao-2); }
.dem-thumb .mini-img, .dem-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.dem-thumb .qtd { position: absolute; right: 6px; top: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 99px; }
.atrasado { color: #fca5a5; font-weight: 800; }
[data-tema="claro"] .atrasado { color: #b91c1c; }
.sua-vez { margin-top: 8px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--sobre-acento); background: linear-gradient(90deg, var(--roxo), var(--rosa)); border-radius: 7px; padding: 3px 8px; display: inline-block; }
.sua-vez.erro { background: #dc2626; color: #fff; }
.passos { display: flex; gap: 6px; flex-wrap: wrap; }
.passo { font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--linha-forte); color: var(--texto-3); }
.passo.feito { color: var(--texto-2); border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.passo.feito::before { content: '✓ '; color: var(--c); }
.passo.atual { color: #fff; background: var(--c); border-color: transparent; box-shadow: 0 0 18px -4px var(--c); }
.dem-hist { max-height: 460px; }
.hist-evento { display: flex; gap: 9px; font-size: 12.5px; color: var(--texto-2); padding: 4px 2px; }
.hist-evento .bola { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); margin-top: 5px; flex: none; }
.hist-evento b { color: var(--texto); }
.hist-evento small { display: block; color: var(--texto-3); font-size: 11px; }
.hist-midias { display: flex; gap: 4px; margin-top: 5px; }
.hist-midias .hm { width: 38px; height: 38px; border-radius: 7px; background: var(--cartao-2); display: grid; place-items: center; font-size: 12px; color: var(--texto-2); border: 1px solid var(--linha); }
.midia .mini-img { width: 100%; height: 100%; }
.cal-etapa { width: 8px; height: 8px; border-radius: 50%; flex: none; margin-left: auto; box-shadow: 0 0 6px currentColor; }
.escolha { display: flex; gap: 14px; align-items: flex-start; text-align: left; width: 100%; padding: 14px; border-radius: 14px; border: 1px solid var(--linha-forte); background: var(--cartao-2); color: var(--texto); cursor: pointer; font: inherit; }
.escolha:hover { border-color: var(--acento-texto); box-shadow: var(--brilho); }
.escolha svg { color: var(--acento-texto); flex: none; margin-top: 2px; }
.escolha b { display: block; font-size: 15px; }
.escolha span { display: block; font-size: 13px; color: var(--texto-2); margin-top: 2px; }
.kanban-topo input[type=checkbox] { min-width: 0; width: 18px; height: 18px; padding: 0; flex: none; }
.kanban-topo .check { white-space: nowrap; }
.col-agenda { border-color: color-mix(in srgb, var(--roxo) 45%, var(--linha)); }
.col-agenda .coluna-cab { background: color-mix(in srgb, var(--roxo) 10%, transparent); border-radius: var(--raio) var(--raio) 0 0; }
.coluna-nova { flex: 0 0 220px; height: 56px; border: 2px dashed var(--linha-forte); border-radius: var(--raio); background: transparent; color: var(--texto-2); font: 700 14px var(--fonte); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.coluna-nova:hover { border-color: var(--acento-texto); color: var(--texto); }
.etapa-chip { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 11px; font-weight: 700; color: var(--texto-2); }
.etapa-chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }

/* leitura no tema claro: amarelo vira tom escuro quando é texto */
[data-tema="claro"] .selo.s-roxo { color: #854d0e; }
[data-tema="claro"] .menu-item.ativo { color: #0a0a0a; }
.btn-primario .girando { border-color: rgba(0,0,0,.25); border-top-color: #0a0a0a; }
/* personalização das colunas e peças */
.coluna { border-top: 3px solid var(--cc, transparent); }
.coluna.alvo-col { box-shadow: inset 3px 0 0 var(--roxo); }
.coluna.arrastando { opacity: .5; }
.coluna-cab[draggable=true] { cursor: grab; }
.ponto-cor { position: relative; display: inline-grid; cursor: pointer; padding: 3px; border-radius: 6px; }
.ponto-cor:hover { background: var(--cartao-2); }
.ponto-cor input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; padding: 0; border: 0; }
.col-nome { cursor: text; border-radius: 6px; padding: 1px 4px; margin-left: -4px; }
.col-nome:hover { background: var(--cartao-2); }
.col-input { height: 28px; padding: 0 8px; font: 700 14px var(--fonte); width: 100%; }
.col-menu-btn { border: 0; background: transparent; color: var(--texto-2); font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.col-menu-btn:hover { background: var(--cartao-2); color: var(--texto); }
.col-menu { position: fixed; z-index: 9000; width: 220px; background: var(--cartao); border: 1px solid var(--linha-forte); border-radius: 12px; box-shadow: var(--sombra); padding: 6px; display: flex; flex-direction: column; }
.col-menu button { text-align: left; border: 0; background: transparent; color: var(--texto); font: 600 13px var(--fonte); padding: 9px 10px; border-radius: 8px; cursor: pointer; display: flex; gap: 8px; align-items: center; }
.col-menu button:hover:not(:disabled) { background: var(--cartao-2); }
.col-menu button:disabled { opacity: .4; cursor: default; }
.col-menu button.perigo { color: var(--vermelho); }
.dica-colunas { flex-basis: 100%; }
.pecas-escolha { display: flex; flex-wrap: wrap; gap: 6px; }
.peca-op { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--linha-forte); background: var(--cartao); font-size: 13px; font-weight: 600; color: var(--texto-2); cursor: pointer; user-select: none; }
.peca-op:hover { border-color: var(--roxo); color: var(--texto); }
.peca-op.marcado { border-color: var(--roxo); background: rgba(250, 204, 21, .12); color: var(--texto); }
.qtd-ctl { display: inline-flex; align-items: center; gap: 4px; }
.qtd-ctl button { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--linha-forte); background: var(--cartao-2); color: var(--texto); font-weight: 800; cursor: pointer; line-height: 1; padding: 0; }
.qtd-ctl b { min-width: 14px; text-align: center; }
.midia-peca { position: absolute; left: 4px; right: 4px; bottom: 4px; height: 24px; padding: 0 4px; font-size: 11px; font-weight: 700; border-radius: 6px; background: rgba(0,0,0,.75); color: #fff; border: 0; }
.midia:has(.midia-peca) .ordem { bottom: 32px; }
.pecas-mini { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.pecas-mini span { font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--cartao-2); border: 1px solid var(--linha); color: var(--texto-2); }

/* ===================================================== TRÁFEGO PAGO */
.tf-barra { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.tf-barra input[type=date] { height: 38px; width: auto; }
.tf-sel { width: auto; height: 36px; padding-right: 28px; font-size: 13.5px; }
.tf-toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--texto-2); cursor: pointer; white-space: nowrap; user-select: none; }
.tf-toggle[hidden] { display: none; }
.tf-kpis { grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); }
.tf-kpi { cursor: pointer; transition: border-color .15s; }
.tf-kpi:hover { border-color: var(--linha-forte); }
.tf-kpi.no-grafico { border-color: var(--roxo); }
.tf-kpi-sel { appearance: none; -webkit-appearance: none; background: none; border: 0; padding: 0; height: auto; width: 100%; font: 600 12.5px var(--fonte); color: var(--texto-2); cursor: pointer; text-overflow: ellipsis; }
.tf-kpi-sel:hover, .tf-kpi-sel:focus { color: var(--acento-texto); outline: none; box-shadow: none; }
.tf-kpi .val { font-size: 25px; }
.tf-delta { font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.tf-delta.bom { color: #22c55e; } .tf-delta.ruim { color: #ef4444; } .tf-delta.neutro { color: var(--texto-3); }
td .tf-delta { font-size: 10.5px; }
.tf-graf-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.tf-graf { position: relative; height: 300px; }
.tf-graf-msg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--texto-3); font-size: 13px; background: color-mix(in srgb, var(--cartao) 70%, transparent); border-radius: 10px; }
.tf-graf-msg[hidden] { display: none; }
.tf-seg { display: inline-flex; border: 1px solid var(--linha-forte); border-radius: 9px; overflow: hidden; }
.tf-seg button { border: 0; background: none; color: var(--texto-2); font: 600 12.5px var(--fonte); padding: 0 11px; height: 34px; cursor: pointer; }
.tf-seg button.ativo { background: var(--roxo); color: var(--sobre-acento); }
.tf-tab-cartao { padding: 0; overflow: hidden; }
.tf-niveis { margin: 14px 14px 10px; }
.tf-cont { font-size: 11px; opacity: .7; margin-left: 2px; }
.tf-cont:empty { display: none; }
.tf-filtros { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 0 14px 12px; }
.tf-filtros-dir { justify-content: flex-end; }
.tf-busca { display: flex; align-items: center; gap: 6px; border: 1px solid var(--linha-forte); border-radius: 9px; padding: 0 10px; height: 36px; background: var(--cartao-2); color: var(--texto-3); }
.tf-busca[hidden] { display: none; }
.tf-busca input { border: 0; background: none; height: 34px; padding: 0; min-width: 150px; box-shadow: none !important; }
.tf-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 280px; padding: 4px 6px 4px 10px; border-radius: 999px; background: rgba(250, 204, 21, .14); border: 1px solid rgba(250, 204, 21, .4); font-size: 12.5px; color: var(--acento-texto); }
.tf-chip b { min-width: 0; }
.tf-chip button { border: 0; background: rgba(0,0,0,.2); color: inherit; width: 20px; height: 20px; border-radius: 50%; cursor: pointer; font-size: 14px; line-height: 1; flex: none; }
.tf-selbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 14px 12px; padding: 8px 12px; border-radius: 10px; background: rgba(250, 204, 21, .1); border: 1px dashed rgba(250, 204, 21, .45); font-size: 13px; }
.tf-selbar[hidden] { display: none; }
.tf-tabela { border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; max-height: 640px; overflow: auto; }
.tf-t { border-collapse: separate; border-spacing: 0; }
.tf-t th { position: sticky; top: 0; z-index: 2; cursor: pointer; user-select: none; }
.tf-t th:hover { color: var(--texto); }
.tf-t td { white-space: nowrap; }
.tf-t td.tf-txt { white-space: normal; min-width: 120px; font-size: 12.5px; color: var(--texto-2); }
.tf-t .tf-ck { width: 36px; padding-right: 0; position: sticky; left: 0; z-index: 1; background: var(--cartao); }
.tf-t th.tf-ck { z-index: 3; background: var(--cartao-2); }
.tf-t .tf-col-nome { position: sticky; left: 36px; z-index: 1; background: var(--cartao); min-width: 260px; max-width: 340px; box-shadow: 1px 0 0 var(--linha); }
.tf-t th.tf-col-nome { z-index: 3; background: var(--cartao-2); }
.tf-t tbody tr:hover td { background: var(--cartao-2); }
.tf-t tr.tf-sel td { background: rgba(250, 204, 21, .07); }
.tf-t tfoot td { position: sticky; bottom: 0; background: var(--cartao-2); border-top: 1px solid var(--linha-forte); z-index: 1; }
.tf-t tfoot td.tf-col-nome { z-index: 2; background: var(--cartao-2); }
.tf-seta { font-style: normal; font-size: 9px; color: var(--acento-texto); }
.tf-cor { display: block; width: 14px; height: 3px; border-radius: 2px; margin-top: 4px; }
.tf-nome { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tf-link { border: 0; background: none; padding: 0; font: 700 13.5px var(--fonte); color: var(--texto); cursor: pointer; text-align: left; max-width: 300px; display: block; }
.tf-link:hover { color: var(--acento-texto); text-decoration: underline; }
.tf-nome-sub { gap: 6px; margin-top: 3px; min-width: 0; }
.tf-nome-sub .selo { font-size: 10.5px; padding: 1px 7px; }
.tf-thumb { width: 42px; height: 42px; border-radius: 8px; flex: none; border: 1px solid var(--linha); background: var(--cartao-2); color: var(--texto-3); cursor: pointer; display: grid; place-items: center; }
.tf-previa { display: grid; grid-template-columns: 220px 1fr; gap: 18px; }
.tf-previa-img { aspect-ratio: 4/5; border-radius: 12px; background: var(--cartao-2); display: grid; place-items: center; color: var(--texto-3); border: 1px solid var(--linha); }
.tf-previa-met { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.tf-previa-met > div { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 9px; background: var(--cartao-2); border: 1px solid var(--linha); }
.tf-ed { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; min-height: 420px; }
.tf-ed-lista { max-height: 52vh; overflow: auto; padding-right: 4px; }
.tf-ed-grupo { margin-bottom: 12px; }
.tf-ed-gt { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--acento-texto); margin-bottom: 4px; }
.tf-ed-op { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 7px; font-size: 13.5px; cursor: pointer; }
.tf-ed-op:hover { background: var(--cartao-2); }
.tf-ed-op .btn-icone { width: 28px; height: 28px; }
.tf-ed-dir { border-left: 1px solid var(--linha); padding-left: 18px; min-width: 0; }
.tf-ed-ordem { display: flex; flex-direction: column; gap: 4px; max-height: 34vh; overflow: auto; }
.tf-ed-item { display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 8px; border-radius: 8px; background: var(--cartao-2); border: 1px solid var(--linha); font-size: 13px; }
.tf-ed-item .btn-icone { width: 26px; height: 26px; font-size: 13px; }
.tf-ed-item.arrastando { opacity: .4; } .tf-ed-item.sobre { border-color: var(--roxo); }
.tf-ed-item + .tf-ed-item { margin-top: 0; }
#ed-modelos .tf-ed-item { margin-bottom: 4px; }
.tf-alca { cursor: grab; color: var(--texto-3); letter-spacing: -2px; }
.tf-ed-form { padding: 12px; border-radius: 10px; border: 1px solid var(--linha-forte); background: var(--cartao-2); margin-top: 6px; }
.tf-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.tf-vars { display: flex; flex-wrap: wrap; gap: 4px; max-height: 110px; overflow: auto; }
.tf-vars button { border: 1px solid var(--linha-forte); background: var(--cartao); color: var(--texto-2); border-radius: 999px; padding: 3px 9px; font: 600 11.5px var(--fonte); cursor: pointer; }
.tf-vars button:hover { border-color: var(--roxo); color: var(--texto); }
@media (max-width: 900px) {
  .tf-barra { flex-direction: column; align-items: stretch; }
  .tf-barra > .linha { flex-wrap: wrap; }
  .tf-kpis { grid-template-columns: 1fr 1fr; }
  .tf-kpi .val { font-size: 20px; }
  .tf-graf { height: 240px; }
  .tf-filtros-dir { justify-content: flex-start; }
  .tf-busca { flex: 1 1 100%; } .tf-busca input { min-width: 0; width: 100%; }
  .tf-t .tf-col-nome { min-width: 190px; max-width: 220px; }
  .tf-link { max-width: 170px; }
  .tf-previa { grid-template-columns: 1fr; } .tf-previa-img { max-width: 220px; }
  .tf-ed { grid-template-columns: 1fr; }
  .tf-ed-dir { border-left: 0; padding-left: 0; border-top: 1px solid var(--linha); padding-top: 14px; }
}
.tf-t-pub .tf-col-nome { left: 0; }

/* ===================================================== CAIXA DE ENTRADA */
.ix { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: calc(100vh - 150px); min-height: 520px; border: 1px solid var(--linha); border-radius: var(--raio); overflow: hidden; background: var(--cartao); }
.ix.com-info.aberta { grid-template-columns: 340px minmax(0, 1fr) 300px; }
.ix-info { display: none; }
.ix.com-info.aberta .ix-info { display: block; }
.ix-lista { display: flex; flex-direction: column; border-right: 1px solid var(--linha); min-height: 0; background: var(--cartao); }
.ix-lista-topo { padding: 12px; border-bottom: 1px solid var(--linha); display: flex; flex-direction: column; gap: 10px; }
.ix-busca { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; background: var(--cartao-2); border: 1px solid var(--linha); color: var(--texto-3); }
.ix-busca input { border: 0; background: none; height: 36px; padding: 0; box-shadow: none !important; }
.ix-busca:focus-within { border-color: var(--roxo); }
.ix-canais { display: flex; gap: 6px; }
.ix-chip { flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 4px; height: 34px; border-radius: 9px; border: 1px solid var(--linha); background: var(--cartao-2); color: var(--texto-2); font: 700 12.5px var(--fonte); cursor: pointer; }
.ix-chip:first-child { flex-grow: 1.4; }
.ix-aviso svg { flex: none; }
.ix-chip .rede-ic { width: 20px; height: 20px; border-radius: 6px; }
.ix-chip b { font-size: 10.5px; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 99px; background: var(--roxo); color: var(--sobre-acento); display: grid; place-items: center; }
.ix-chip.ativo { border-color: var(--roxo); background: rgba(250, 204, 21, .14); color: var(--texto); box-shadow: 0 0 0 1px var(--roxo) inset; }
.ix-filtros select, .ix-bloco select { height: 36px; padding-top: 0; padding-bottom: 0; font-size: 13px; flex: 1; min-width: 0; }
.ix-itens { flex: 1; overflow-y: auto; }
.ix-item { display: flex; gap: 11px; width: 100%; padding: 11px 12px; border: 0; border-bottom: 1px solid var(--linha); background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.ix-item:hover { background: var(--cartao-2); }
.ix-item.ativo { background: rgba(250, 204, 21, .1); box-shadow: inset 3px 0 0 var(--roxo); }
.ix-item-c { flex: 1; min-width: 0; }
.ix-l1, .ix-l2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.ix-l1 b { font-size: 14px; }
.ix-hora { font-size: 11.5px; color: var(--texto-3); flex: none; }
.ix-item.nl .ix-hora { color: var(--acento-texto); font-weight: 700; }
.ix-l2 { margin-top: 2px; font-size: 13px; color: var(--texto-2); }
.ix-item.nl .ix-l2 > span { color: var(--texto); font-weight: 600; }
.ix-voce { color: var(--texto-3); font-weight: 500; }
.ix-nl { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--roxo); color: var(--sobre-acento); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.ix-l3 { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.ix-l3:empty { display: none; }
.ix-tag { font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: color-mix(in srgb, var(--c, #737373) 16%, transparent); color: var(--texto-2); border: 1px solid color-mix(in srgb, var(--c, #737373) 40%, transparent); white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.ix-tag.ad { --c: #facc15; } .ix-tag.ok { --c: #22c55e; }
.ix-av { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; }
.ix-av img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ix-av .ix-canal { position: absolute; right: -3px; bottom: -3px; font-style: normal; }
.ix-av .ix-canal .rede-ic { width: 18px; height: 18px; border-radius: 6px; box-shadow: 0 0 0 2px var(--cartao); }
.ix-av.g { width: 72px; height: 72px; font-size: 22px; }
.ix-av.g .ix-canal .rede-ic { width: 24px; height: 24px; }
.ix-vazio-lista { padding: 30px 20px; text-align: center; color: var(--texto-3); font-size: 13px; }
.ix-conversa { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--fundo); background-image: radial-gradient(600px 300px at 100% 0, rgba(250, 204, 21, .06), transparent 60%); }
.ix-cab { display: flex; align-items: center; gap: 11px; padding: 10px 14px; border-bottom: 1px solid var(--linha); background: var(--cartao); }
.ix-cab .ix-av { width: 40px; height: 40px; }
.ix-cab-c { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ix-cab-c b { font-size: 15px; }
.ix-cab-c .pequeno { display: flex; align-items: center; gap: 5px; }
.ix-cab-c .rede-ic { width: 16px; height: 16px; border-radius: 5px; }
.ix-cab-acoes .btn-icone.ativo { border-color: var(--roxo); color: var(--acento-texto); }
.ix-resolver { color: #22c55e; border-color: rgba(34, 197, 94, .45); }
.ix-voltar { display: none; }
.ix-faixa:empty { display: none; }
.ix-aviso { display: flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 12.5px; color: var(--texto-2); background: rgba(37, 211, 102, .08); border-bottom: 1px solid var(--linha); }
.ix-aviso.alerta { background: rgba(245, 158, 11, .12); color: var(--texto); }
.ix-aviso.discreto { background: transparent; color: var(--texto-3); }
.ix-msgs { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.ix-dia { text-align: center; margin: 12px 0 6px; }
.ix-dia span { font-size: 11.5px; font-weight: 700; color: var(--texto-3); background: var(--cartao); border: 1px solid var(--linha); padding: 3px 12px; border-radius: 99px; text-transform: capitalize; }
.ix-msg { display: flex; }
.ix-msg.saida { justify-content: flex-end; }
.ix-bolha { max-width: min(72%, 560px); padding: 8px 12px 6px; border-radius: 14px; background: var(--cartao); border: 1px solid var(--linha); font-size: 14px; line-height: 1.45; word-wrap: break-word; overflow-wrap: anywhere; }
.ix-msg.entrada .ix-bolha { border-top-left-radius: 4px; }
.ix-msg.saida .ix-bolha { border-top-right-radius: 4px; background: rgba(250, 204, 21, .14); border-color: rgba(250, 204, 21, .35); }
.ix-msg.erro .ix-bolha { border-color: rgba(239, 68, 68, .6); background: rgba(239, 68, 68, .08); }
.ix-bolha a { color: var(--acento-texto); }
.ix-meta { font-size: 10.5px; color: var(--texto-3); text-align: right; margin-top: 3px; }
.ix-msg.erro .ix-meta b { color: #ef4444; }
.ix-midia { display: block; margin: 2px 0 4px; }
.ix-midia img, video.ix-midia { max-width: 260px; max-height: 320px; border-radius: 10px; display: block; }
.ix-bolha audio { max-width: 260px; height: 38px; }
.ix-arquivo { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.ix-story { font-size: 12.5px; color: var(--texto-2); display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.ix-story img { max-width: 120px; border-radius: 8px; }
.ix-compor { position: relative; padding: 10px 12px; border-top: 1px solid var(--linha); background: var(--cartao); }
.ix-compor-l { display: flex; align-items: flex-end; gap: 6px; }
.ix-compor textarea { flex: 1; resize: none; min-height: 42px; max-height: 160px; line-height: 1.4; padding: 10px 12px; }
.ix-compor .btn-primario { height: 42px; }
.ix-compor label.btn { cursor: pointer; }
.ix-sugestoes { position: absolute; left: 12px; right: 12px; bottom: calc(100% - 4px); background: var(--cartao); border: 1px solid var(--linha-forte); border-radius: 12px; box-shadow: var(--sombra); padding: 6px; max-height: 300px; overflow-y: auto; z-index: 5; }
.ix-sugestoes[hidden], .ix-anexo[hidden] { display: none; }
.ix-sug-item { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.ix-sug-item small { color: var(--texto-3); min-width: 0; }
.ix-sug-item.sel, .ix-sug-item:hover { background: rgba(250, 204, 21, .12); }
.ix-at { font: 600 11px ui-monospace, monospace; padding: 1px 6px; border-radius: 5px; background: var(--cartao-2); color: var(--texto-2); }
.ix-anexo { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 6px 8px; border-radius: 10px; background: var(--cartao-2); border: 1px solid var(--linha); font-size: 13px; }
.ix-anexo img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; }
.girando.p { width: 14px; height: 14px; border-width: 2px; }
.ix-info { border-left: 1px solid var(--linha); overflow-y: auto; background: var(--cartao); }
.ix-info-topo { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 16px 16px; border-bottom: 1px solid var(--linha); text-align: center; }
.ix-info-topo b { font-size: 16px; margin-top: 6px; }
.ix-info-topo .ix-tag { margin-top: 6px; }
.ix-bloco { padding: 14px 16px; border-bottom: 1px solid var(--linha); }
.ix-bloco h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--texto-3); margin: 0 0 8px; }
.ix-bloco select { height: 36px; }
.ix-bloco .rede-ic { width: 18px; height: 18px; border-radius: 6px; vertical-align: -4px; }
.ix-etapas { display: flex; flex-wrap: wrap; gap: 5px; }
.ix-etapa { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--linha-forte); background: var(--cartao-2); color: var(--texto-2); font: 600 12px var(--fonte); padding: 5px 10px; border-radius: 99px; cursor: pointer; }
.ix-etapa i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.ix-etapa:hover { border-color: var(--c); color: var(--texto); }
.ix-etapa.atual { background: var(--c); border-color: transparent; color: #fff; }
.ix-etapa.atual i { background: #fff; }
.ix-ad img { width: 100%; max-height: 160px; object-fit: cover; border-radius: 10px; margin-bottom: 8px; }
.ix-boas { margin: auto; width: 100%; max-width: 760px; padding: 30px 24px; text-align: center; overflow-y: auto; }
.ix-boas-ic { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 12px; display: grid; place-items: center; background: linear-gradient(135deg, #fde047, #ca8a04); color: #0a0a0a; box-shadow: var(--brilho); }
.ix-boas h2 { margin-bottom: 4px; }
.ix-canais-cli { margin-top: 20px; text-align: left; }
.ix-canais-cli td { vertical-align: middle; }
.ix-canais-cli th, .ix-canais-cli td { padding: 10px 10px; }
.ix-cn { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; color: var(--texto-3); opacity: .55; }
.ix-cn.ok { color: #22c55e; opacity: 1; }
@media (max-width: 1280px) { .ix.com-info.aberta { grid-template-columns: 300px minmax(0, 1fr) 280px; } }
@media (max-width: 1080px) {
  .ix, .ix.com-info.aberta { grid-template-columns: 300px minmax(0, 1fr); }
  .ix.com-info.aberta .ix-info { position: absolute; right: 0; top: 0; bottom: 0; width: 300px; z-index: 6; box-shadow: var(--sombra); }
  .ix { position: relative; }
}
@media (max-width: 900px) {
  .ix, .ix.com-info.aberta { grid-template-columns: 1fr; height: calc(100vh - 120px); border-radius: 12px; }
  .ix .ix-conversa { display: none; }
  .ix.aberta .ix-lista { display: none; }
  .ix.aberta .ix-conversa { display: flex; }
  .ix-voltar { display: inline-flex; }
  .ix.com-info.aberta .ix-info { width: 100%; }
  .ix-bolha { max-width: 86%; }
  .ix-cab { padding: 8px 10px; gap: 8px; }
  .ix-canais-cli td:last-child .btn-fantasma { display: none; }
  .ix .so-largo { display: none; }
}

/* ===================================================== APROVAÇÃO DO CLIENTE (página pública) */
.ap { align-items: start; }
.ap .caixa { max-width: 470px; }
.ap-status { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; margin-bottom: 14px; font-size: 22px; line-height: 1; border: 1px solid; }
.ap-status div { display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.4; }
.ap-status span { color: var(--texto-2); }
.ap-status.aprovado { background: rgba(34, 197, 94, .1); border-color: rgba(34, 197, 94, .4); }
.ap-status.ajuste { background: rgba(245, 158, 11, .1); border-color: rgba(245, 158, 11, .4); }
.ap-tel { background: var(--cartao); border: 1px solid var(--linha); border-radius: 18px; overflow: hidden; box-shadow: var(--sombra); }
.ap-cab { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 14px; }
.ap-cab span { margin-left: auto; font-size: 11px; color: var(--texto-3); }
.ap-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #0a0a0a; box-shadow: 0 0 0 2px var(--cartao), 0 0 0 4px #e1306c; }
.ap-midias { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: #000; }
.ap-midias::-webkit-scrollbar { display: none; }
.ap-midias img, .ap-midias video { flex: 0 0 100%; width: 100%; aspect-ratio: 4/5; object-fit: cover; scroll-snap-align: center; display: block; }
.ap-pontos { display: flex; justify-content: center; gap: 5px; padding: 8px 0 0; }
.ap-pontos i { width: 6px; height: 6px; border-radius: 50%; background: var(--texto-3); opacity: .5; }
.ap-pontos i.on { background: var(--roxo); opacity: 1; }
.ap-acoes-ig { padding: 8px 12px 0; font-size: 20px; letter-spacing: 2px; }
.ap-leg { padding: 8px 12px 14px; font-size: 14px; line-height: 1.5; word-wrap: break-word; }
.ap-tag { color: #60a5fa; }
.ap-info { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 14px; }
.ap-info > div { display: flex; flex-direction: column; gap: 2px; }
.ap-info .rede-ic { width: 18px; height: 18px; border-radius: 6px; }
.ap-decidir { margin-top: 14px; }
.ap-sim { height: 52px; font-size: 16px; border: 0; background: linear-gradient(135deg, #22c55e, #15803d); color: #fff; box-shadow: 0 12px 30px -12px rgba(34, 197, 94, .8); }
.ap-sim:hover { filter: brightness(1.07); }
.ap-fim { padding: 34px 24px; }
.ap-fim-ic { width: 70px; height: 70px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; font-weight: 800; background: rgba(245, 158, 11, .15); }
.ap-fim-ic.ok { background: linear-gradient(135deg, #22c55e, #15803d); color: #fff; box-shadow: 0 16px 40px -14px rgba(34, 197, 94, .8); }

/* ===================================================== INTEGRAÇÕES + APROVAÇÕES */
.int-fluxo { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.int-fluxo > i { align-self: center; font-style: normal; color: var(--acento-texto); font-weight: 800; }
.int-passo { flex: 1 1 160px; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--cartao-2); border: 1px solid var(--linha); }
.int-passo span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--roxo); color: var(--sobre-acento); font-size: 12px; font-weight: 800; margin-bottom: 4px; }
.int-passo small { color: var(--texto-3); font-size: 12px; }
.int-chave { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--cartao-2); border: 1px solid var(--linha); }
.int-chave.revogada { opacity: .55; }
.int-chave code, .int-doc code { font-family: ui-monospace, monospace; font-size: 12px; }
.int-sub { margin: 18px 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--texto-3); }
.int-doc { margin-top: 8px; border: 1px solid var(--linha); border-radius: 10px; padding: 10px 12px; }
.int-doc summary { cursor: pointer; font-weight: 700; }
.int-doc pre { margin: 10px 0; padding: 12px; border-radius: 10px; background: var(--fundo); border: 1px solid var(--linha); font: 12px/1.5 ui-monospace, monospace; overflow-x: auto; white-space: pre; }
.int-doc p { margin: 6px 0; }
.int-provs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.int-prov { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--linha-forte); background: var(--cartao-2); cursor: pointer; position: relative; }
.int-prov input { position: absolute; opacity: 0; pointer-events: none; }
.int-prov small { color: var(--texto-3); font-size: 11.5px; line-height: 1.35; }
.int-prov:has(input:checked) { border-color: var(--roxo); background: rgba(250, 204, 21, .1); box-shadow: 0 0 0 1px var(--roxo) inset; }
.aprov-caixa { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--linha); background: var(--cartao-2); }
.aprov-caixa.ajuste { border-color: rgba(239, 68, 68, .45); background: rgba(239, 68, 68, .07); }
.aprov-caixa.aprovado { border-color: rgba(34, 197, 94, .45); background: rgba(34, 197, 94, .07); }
.aprov-caixa.pendente { border-color: rgba(245, 158, 11, .45); background: rgba(245, 158, 11, .07); }
.aprov-mini { margin-top: 8px; font-size: 11.5px; font-weight: 700; padding: 4px 8px; border-radius: 8px; background: rgba(245, 158, 11, .14); color: var(--texto); }
.aprov-mini.aprovado { background: rgba(34, 197, 94, .14); }
.aprov-mini.ajuste { background: rgba(239, 68, 68, .14); }
@media (max-width: 900px) { .int-provs { grid-template-columns: 1fr; } .int-fluxo > i { display: none; } }
