/* Klickfy - base visual. Três temas: claro, noturno e Klickfy (botão no topo e em Configurações > Aparência). */
:root {
  --fundo: #f4f6f3; --lado: #ffffff; --cartao: #ffffff; --cartao2: #f0f2ee;
  --texto: #1b1f1d; --texto2: #5f6662; --texto3: #8a918c; --borda: #e1e5e0; --borda2: #cfd5cf;
  --dest: #0f6e56; --dest-forte: #0b5846; --dest-fundo: #e1f5ee; --dest-texto: #085041; --sobre-dest: #ffffff;
  --aviso-fundo: #faeeda; --aviso-texto: #633806;
  --perigo: #a32d2d; --perigo-fundo: #fcebeb; --perigo-texto: #791f1f;
  --neutro-fundo: #eceeea; --neutro-texto: #444441;
  --chat-fundo: #efeae2; --balao: #ffffff; --balao-meu: #d9fdd3; --balao-texto: #111b21;
  --sombra: 0 8px 28px rgba(0, 0, 0, .14);
  --raio: 8px; --raio-g: 12px;
  color-scheme: light;
}
[data-tema="noturno"] {
  --fundo: #101312; --lado: #161a18; --cartao: #1a1f1d; --cartao2: #222826;
  --texto: #eceeec; --texto2: #a3aba6; --texto3: #7d8580; --borda: #2a312e; --borda2: #3a423e;
  --dest: #5dcaa5; --dest-forte: #7fd8b8; --dest-fundo: #0b3d31; --dest-texto: #9fe1cb; --sobre-dest: #04231c;
  --aviso-fundo: #3d2603; --aviso-texto: #fac775;
  --perigo: #f09595; --perigo-fundo: #451414; --perigo-texto: #f7c1c1;
  --neutro-fundo: #262c2a; --neutro-texto: #c9cfca;
  --chat-fundo: #0b1310; --balao: #1f2927; --balao-meu: #0b4a3a; --balao-texto: #e9edef;
  --sombra: 0 8px 28px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
/* Tema oficial Klickfy: preto, azul neon, prata, vermelho metálico e branco */
[data-tema="klickfy"] {
  --neon: #00e5ff; --neon2: #2f7bff; --metal: #ff1f3d; --metal2: #b3001b; --prata: #c4ccd6;
  --fundo: #05070b; --lado: #0a0d13; --cartao: #0e121a; --cartao2: #161c27;
  --texto: #ffffff; --texto2: #b8c1cc; --texto3: #7f8a97; --borda: #1f2836; --borda2: #344155;
  --dest: #00e5ff; --dest-forte: #6ff2ff; --dest-fundo: rgba(0, 229, 255, .12); --dest-texto: #7ff3ff; --sobre-dest: #001218;
  --aviso-fundo: rgba(196, 204, 214, .14); --aviso-texto: #e3e8ee;
  --perigo: #ff3b55; --perigo-fundo: rgba(255, 31, 61, .16); --perigo-texto: #ff8a9b;
  --neutro-fundo: #1a2130; --neutro-texto: #c4ccd6;
  --chat-fundo: #070a10; --balao: #141a25; --balao-meu: #062a33; --balao-texto: #f2f6fa;
  --sombra: 0 8px 28px rgba(0, 0, 0, .7), 0 0 24px rgba(0, 229, 255, .08);
  color-scheme: dark;
}
[data-tema="klickfy"] body { background: radial-gradient(1200px 600px at 100% -10%, rgba(47, 123, 255, .14), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(255, 31, 61, .10), transparent 60%), var(--fundo); background-attachment: fixed; }
[data-tema="klickfy"] .marca span { background: linear-gradient(90deg, #fff 0%, var(--neon) 45%, var(--metal) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: .02em; }
[data-tema="klickfy"] .marca .ti { color: var(--neon); filter: drop-shadow(0 0 6px rgba(0, 229, 255, .8)); }
[data-tema="klickfy"] .menu a.ativo { background: linear-gradient(90deg, rgba(0, 229, 255, .18), rgba(0, 229, 255, .02)); color: #fff; box-shadow: inset 3px 0 0 var(--neon), 0 0 14px rgba(0, 229, 255, .15); }
[data-tema="klickfy"] .menu a.ativo .ti { color: var(--neon); filter: drop-shadow(0 0 4px rgba(0, 229, 255, .9)); }
[data-tema="klickfy"] .menu-titulo { background: linear-gradient(90deg, var(--prata), #6b7684); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-tema="klickfy"] .cartao { background: linear-gradient(180deg, #111723, #0c1018); border-color: #222c3b; box-shadow: inset 0 1px 0 rgba(196, 204, 214, .06); }
[data-tema="klickfy"] .botao.pri { background: linear-gradient(180deg, #5ff0ff, var(--neon) 55%, #00b8d4); border-color: var(--neon); box-shadow: 0 0 14px rgba(0, 229, 255, .45); }
[data-tema="klickfy"] .botao.pri:hover { box-shadow: 0 0 22px rgba(0, 229, 255, .7); }
[data-tema="klickfy"] .botao.perigo { color: #fff; border-color: transparent; background: linear-gradient(180deg, #ff6077, var(--metal) 50%, var(--metal2)); box-shadow: 0 0 12px rgba(255, 31, 61, .35); }
[data-tema="klickfy"] .botao:not(.pri):not(.perigo):not(.icone) { background: linear-gradient(180deg, #1b2230, #121823); border-color: #3a4659; }
[data-tema="klickfy"] .indicador .num { color: #fff; text-shadow: 0 0 12px rgba(0, 229, 255, .35); }
[data-tema="klickfy"] .pilula.perigo, [data-tema="klickfy"] .menu .conta { background: linear-gradient(180deg, #ff4a63, var(--metal2)); color: #fff; }
[data-tema="klickfy"] .chave input:checked + i { box-shadow: 0 0 10px rgba(0, 229, 255, .6); }
[data-tema="klickfy"] .faixa-demo { background: linear-gradient(90deg, rgba(255, 31, 61, .18), rgba(47, 123, 255, .14)); color: #fff; }
[data-tema="klickfy"] .topo { background: rgba(10, 13, 19, .85); backdrop-filter: blur(8px); border-bottom-color: #1c2533; }
[data-tema="klickfy"] .topo { border-bottom: 2px solid transparent; border-image: linear-gradient(90deg, var(--neon), var(--neon2) 45%, var(--metal)) 1; box-shadow: 0 4px 24px rgba(0, 229, 255, .12); }
[data-tema="klickfy"] .lado { border-right: 2px solid transparent; border-image: linear-gradient(180deg, var(--neon), var(--neon2) 50%, var(--metal)) 1; box-shadow: 4px 0 30px rgba(0, 229, 255, .06); }
[data-tema="klickfy"] .marca { font-size: 19px; }
[data-tema="klickfy"] .marca span { filter: drop-shadow(0 0 8px rgba(0, 229, 255, .45)); }
[data-tema="klickfy"] h1 { background: linear-gradient(90deg, #fff, var(--prata)); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-tema="klickfy"] .cartao { transition: border-color .2s, box-shadow .2s; }
[data-tema="klickfy"] .cartao:hover { border-color: rgba(0, 229, 255, .35); box-shadow: 0 0 18px rgba(0, 229, 255, .10), inset 0 1px 0 rgba(196, 204, 214, .08); }
[data-tema="klickfy"] .indicador { position: relative; overflow: hidden; }
[data-tema="klickfy"] .indicador::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--neon), var(--metal)); }
[data-tema="klickfy"] .indicador .num { background: linear-gradient(90deg, #fff 30%, var(--neon)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 8px rgba(0, 229, 255, .35)); }
[data-tema="klickfy"] .pilula.ok { background: rgba(0, 229, 255, .12); color: var(--neon); box-shadow: 0 0 8px rgba(0, 229, 255, .25); }
[data-tema="klickfy"] .pilula.aviso { background: linear-gradient(180deg, #e6ebf1, #9aa4b1); color: #0b0f16; font-weight: 600; }
[data-tema="klickfy"] .filtro.ativo, [data-tema="klickfy"] .segmentado button.ativo { background: rgba(0, 229, 255, .14); color: var(--neon); box-shadow: inset 0 0 0 1px rgba(0, 229, 255, .6), 0 0 10px rgba(0, 229, 255, .2); }
[data-tema="klickfy"] a { color: var(--neon); }
[data-tema="klickfy"] .menu a { color: var(--texto2); }
[data-tema="klickfy"] .menu a:hover { color: #fff; background: rgba(0, 229, 255, .06); }
[data-tema="klickfy"] .menu a.ativo { color: #fff; }
[data-tema="klickfy"] .dono-sel button.ativo.lua { background: linear-gradient(180deg, #ff6077, var(--metal) 55%, var(--metal2)); box-shadow: 0 0 10px rgba(255, 31, 61, .4); }
[data-tema="klickfy"] .dono-sel button.ativo.giu { background: linear-gradient(180deg, #5ff0ff, var(--neon) 55%, #00b8d4); color: #001218; box-shadow: 0 0 10px rgba(0, 229, 255, .45); }
[data-tema="klickfy"] input, [data-tema="klickfy"] select, [data-tema="klickfy"] textarea { background: #0a0e15; border-color: #2c3747; }
[data-tema="klickfy"] input:focus, [data-tema="klickfy"] select:focus, [data-tema="klickfy"] textarea:focus { border-color: var(--neon); box-shadow: 0 0 0 3px rgba(0, 229, 255, .18); outline: none; }

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--fundo); color: var(--texto); font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 20px; font-weight: 600; }
h2 { font-size: 15px; font-weight: 600; }
h3 { font-size: 14px; font-weight: 600; }
a { color: var(--dest); }
button, input, select, textarea { font: inherit; color: inherit; }
.ti { font-size: 18px; vertical-align: -3px; }
.mudo { color: var(--texto2); }
.pequeno { font-size: 12px; }
.direita { text-align: right; }
.cresce { flex: 1; min-width: 0; }
.linha { display: flex; align-items: center; gap: 8px; }
.entre { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.quebra { flex-wrap: wrap; }
.corta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oculto { display: none !important; }
.pilha > * + * { margin-top: 12px; }

/* ---------- estrutura ---------- */
.app { display: grid; grid-template-columns: 216px minmax(0, 1fr); height: 100dvh; }
.lado { background: var(--lado); border-right: 1px solid var(--borda); display: flex; flex-direction: column; padding: 14px 10px; overflow-y: auto; }
.marca { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; color: var(--dest); padding: 4px 10px 14px; }
.marca .ti { font-size: 22px; }
.menu { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--raio); color: var(--texto2); text-decoration: none; position: relative; }
.menu a:hover { background: var(--cartao2); color: var(--texto); }
.menu a.ativo { background: var(--dest-fundo); color: var(--dest-texto); font-weight: 600; }
@media (min-width: 861px) { .menu a.sub { padding-left: 30px; font-size: 13px; } }
.menu-titulo { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--texto2); padding: 12px 10px 4px; border-top: 1px solid var(--borda); margin-top: 6px; }
.menu-sep { border-top: 1px solid var(--borda); margin: 6px 0; }
.tabela.resultado td { vertical-align: top; padding-top: 10px; padding-bottom: 10px; }
.tabela.resultado td .pilula { margin-top: 4px; }
.resultado-cel { display: none; }
.resultado-cel .rc { border-top: 1px solid var(--borda); padding: 10px 0; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 640px) { .tabela.resultado { display: none; } .resultado-cel { display: block; } }
/* etiqueta de dono do produto (prestação de contas) */
.dono-sel { display: flex; border: 1px solid var(--borda); border-radius: 999px; overflow: hidden; margin: 0 0 8px; }
.dono-sel button { flex: 1; border: 0; background: transparent; color: var(--texto2); font: inherit; font-size: 12px; font-weight: 600; padding: 5px 0; cursor: pointer; }
.dono-sel button + button { border-left: 1px solid var(--borda); }
.dono-sel button.ativo.lua { background: #d4537e; color: #fff; }
.dono-sel button.ativo.giu { background: #378add; color: #fff; }
.dono-sel button:not(.ativo):hover { background: var(--cartao2); color: var(--texto); }
@media (max-width: 860px) { .menu-titulo { font-size: 0; padding: 6px 0 0; } }
@media (max-width: 640px) { .menu-titulo, .menu-sep { display: none; } }
.crt-midia { aspect-ratio: 1 / 1; background: var(--cartao2) center / cover no-repeat; border-radius: var(--raio); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.crt-midia video, .crt-midia img { width: 100%; height: 100%; object-fit: cover; }
.crt-sel { outline: 3px solid var(--dest); }
.solta { display: block; border: 2px dashed var(--borda2); border-radius: var(--raio); padding: 22px; text-align: center; color: var(--texto2); cursor: pointer; }
.solta.sobre { border-color: var(--dest); background: var(--dest-fundo); }
.menu .conta { margin-left: auto; background: var(--perigo); color: #fff; font-size: 11px; font-weight: 600; min-width: 18px; height: 18px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
[data-tema="noturno"] .menu .conta { color: #2a0b0b; }
.rodape-lado { border-top: 1px solid var(--borda); padding-top: 10px; margin-top: 10px; font-size: 12px; color: var(--texto2); }
.centro { display: flex; flex-direction: column; min-width: 0; height: 100dvh; }
.topo { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--borda); background: var(--lado); }
.conteudo { flex: 1; overflow: auto; padding: 20px; }
.conteudo.cheio { padding: 0; overflow: hidden; }

/* ---------- componentes ---------- */
.cartao { background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--raio-g); padding: 14px 16px; }
.cartao > h2 { margin-bottom: 10px; }
.grade { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.auto { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.indicador .rot { color: var(--texto2); font-size: 12px; }
.indicador .num { font-size: 24px; font-weight: 600; margin-top: 2px; }

.botao { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--borda2); background: var(--cartao); border-radius: var(--raio); padding: 7px 12px; cursor: pointer; white-space: nowrap; text-decoration: none; color: var(--texto); }
.botao:hover { background: var(--cartao2); }
.botao.pri { background: var(--dest); border-color: var(--dest); color: var(--sobre-dest); font-weight: 600; }
.botao.pri:hover { background: var(--dest-forte); border-color: var(--dest-forte); }
.botao.perigo { color: var(--perigo); border-color: var(--perigo); }
.botao.mini { padding: 3px 9px; font-size: 12px; }
.botao.icone { padding: 7px; border-color: transparent; background: transparent; }
.botao.icone:hover { background: var(--cartao2); }
.botao.pri.icone { background: var(--dest); border-color: var(--dest); color: var(--sobre-dest); border-radius: 50%; }
.botao.pri.icone:hover { background: var(--dest-forte); }
.botao:disabled { opacity: .5; cursor: not-allowed; }
.botao.largo { width: 100%; }

.pilula { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; padding: 2px 9px; border-radius: 20px; background: var(--neutro-fundo); color: var(--neutro-texto); white-space: nowrap; }
.pilula.ok { background: var(--dest-fundo); color: var(--dest-texto); }
.pilula.aviso { background: var(--aviso-fundo); color: var(--aviso-texto); }
.pilula.erro { background: var(--perigo-fundo); color: var(--perigo-texto); }
.pilula.perigo { background: var(--perigo-fundo); color: var(--perigo-texto); }
.filtros { display: flex; gap: 6px; flex-wrap: wrap; }
.filtro { font-size: 12.5px; padding: 4px 12px; border-radius: 20px; border: 1px solid var(--borda2); background: var(--cartao); color: var(--texto2); cursor: pointer; }
.filtro.ativo { background: var(--dest-fundo); color: var(--dest-texto); border-color: transparent; font-weight: 600; }

.campo { display: block; }
.campo > span { display: block; font-size: 12px; color: var(--texto2); margin-bottom: 4px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"], select, textarea {
  width: 100%; background: var(--cartao); border: 1px solid var(--borda2); border-radius: var(--raio); padding: 8px 10px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--dest); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dest) 22%, transparent); }
textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.busca { position: relative; }
.busca .ti { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--texto3); }
.busca input { padding-left: 34px; }

.chave { position: relative; width: 38px; height: 22px; flex: none; }
.chave input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; width: 100%; height: 100%; z-index: 1; }
.chave i { position: absolute; inset: 0; background: var(--borda2); border-radius: 11px; transition: background .15s; }
.chave i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.chave input:checked + i { background: var(--dest); }
.chave input:checked + i::after { transform: translateX(16px); }
.chave input:focus-visible + i { box-shadow: 0 0 0 3px color-mix(in srgb, var(--dest) 30%, transparent); }

.segmentado { display: flex; border: 1px solid var(--borda2); border-radius: var(--raio); overflow: hidden; }
.segmentado button { flex: 1; border: 0; background: var(--cartao); padding: 7px 8px; cursor: pointer; color: var(--texto2); }
.segmentado button + button { border-left: 1px solid var(--borda2); }
.segmentado button.ativo { background: var(--dest-fundo); color: var(--dest-texto); font-weight: 600; }

.regra { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--borda); }
.regra:first-of-type { border-top: 0; }
.regra input[type="number"], .regra input[type="text"] { width: 110px; text-align: right; padding: 5px 8px; }

table.tabela { width: 100%; border-collapse: collapse; }
.tabela th { text-align: left; font-weight: 500; font-size: 12px; color: var(--texto2); padding: 6px 8px; }
.tabela td { padding: 9px 8px; border-top: 1px solid var(--borda); }
.tabela tr.clicavel { cursor: pointer; }
.tabela tr.clicavel:hover td, .tabela tr.sel td { background: var(--cartao2); }
.tabela .num { text-align: right; }

.abas { display: flex; gap: 20px; border-bottom: 1px solid var(--borda); margin-bottom: 14px; overflow-x: auto; }
.abas button { border: 0; background: none; padding: 0 0 9px; cursor: pointer; color: var(--texto2); border-bottom: 2px solid transparent; white-space: nowrap; }
.abas button.ativo { color: var(--dest); font-weight: 600; border-bottom-color: var(--dest); }

.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--neutro-fundo); color: var(--neutro-texto); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; flex: none; }
.vazio { text-align: center; color: var(--texto2); padding: 36px 16px; }
.vazio .ti { font-size: 34px; display: block; margin-bottom: 8px; color: var(--texto3); }
.faixa-demo { background: var(--aviso-fundo); color: var(--aviso-texto); font-size: 12.5px; padding: 6px 20px; display: flex; gap: 8px; align-items: center; }
.nota { background: var(--cartao2); border-radius: var(--raio); padding: 10px 12px; font-size: 13px; color: var(--texto2); }

/* ---------- avisos e janelas ---------- */
#avisos { position: fixed; right: 16px; top: 92px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.recado { background: var(--texto); color: var(--fundo); padding: 10px 14px; border-radius: var(--raio); box-shadow: var(--sombra); max-width: 340px; cursor: pointer; }
.recado.erro { background: #a32d2d; color: #fff; }
.veu { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; z-index: 50; overflow: auto; }
.janela { background: var(--cartao); border-radius: var(--raio-g); box-shadow: var(--sombra); width: 100%; max-width: 560px; }
.janela.larga { max-width: 860px; }
.janela > header { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--borda); }
.janela > .corpo { padding: 16px 18px; }
.janela > footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--borda); }

/* ---------- entrada ---------- */
.entrada { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.entrada .cartao { width: 100%; max-width: 380px; padding: 26px; }
.entrada .marca { padding: 0 0 6px; font-size: 20px; }

/* ---------- conversas (estilo WhatsApp Web) ---------- */
.zap { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: 100%; }
.zap.com-painel { grid-template-columns: 340px minmax(0, 1fr) 300px; }
.zap-lista { border-right: 1px solid var(--borda); background: var(--lado); display: flex; flex-direction: column; min-height: 0; }
.zap-lista > .cab { padding: 14px 14px 10px; }
.zap-itens { overflow-y: auto; flex: 1; padding: 0 6px 8px; }
.zap-item { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: var(--raio); cursor: pointer; }
.zap-item:hover { background: var(--cartao2); }
.zap-item.ativo { background: var(--cartao2); }
.zap-item .previa { color: var(--texto2); font-size: 13px; }
.zap-item .hora { font-size: 11px; color: var(--texto3); }
.zap-item .bolinha { background: var(--dest); color: var(--sobre-dest); font-size: 11px; font-weight: 600; min-width: 18px; height: 18px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; }
.zap-chat { display: flex; flex-direction: column; min-height: 0; background: var(--chat-fundo); }
.zap-cab { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--lado); border-bottom: 1px solid var(--borda); }
.zap-cab .quem { cursor: pointer; }
.zap-msgs { flex: 1; overflow-y: auto; padding: 16px 6%; display: flex; flex-direction: column; gap: 4px; }
.balao { max-width: 72%; background: var(--balao); color: var(--balao-texto); padding: 6px 10px 5px; border-radius: 8px; align-self: flex-start; white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.balao.meu { background: var(--balao-meu); align-self: flex-end; }
.balao .quem-fala { font-size: 11.5px; font-weight: 600; color: var(--dest); display: block; }
.balao .h { font-size: 10.5px; opacity: .6; float: right; margin: 6px 0 0 10px; }
.balao.digitando { display: flex; align-items: center; gap: 10px; padding: 8px 12px; }
.balao.digitando .quem-fala { font-weight: 500; }
.pontos { display: inline-flex; gap: 4px; }
.pontos i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .35; animation: pontinho 1.2s infinite ease-in-out; }
.pontos i:nth-child(2) { animation-delay: .18s; }
.pontos i:nth-child(3) { animation-delay: .36s; }
@keyframes pontinho { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .pontos i { animation: none; opacity: .7; } }
.botao-vitrine { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; padding: 8px 10px; border-top: 1px solid color-mix(in srgb, var(--balao-texto) 15%, transparent); color: var(--dest); font-weight: 600; text-decoration: none; }
.botao-vitrine:hover { text-decoration: underline; }
.card-pedido { margin-top: 8px; background: color-mix(in srgb, var(--balao-texto) 5%, transparent); border-radius: 8px; padding: 8px 10px; min-width: 230px; }
.card-pedido .cp-tit { font-weight: 700; margin-bottom: 4px; }
.card-pedido .cp-l { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 2px 0; }
.card-pedido .cp-t { font-weight: 700; font-size: 14px; border-top: 1px solid color-mix(in srgb, var(--balao-texto) 15%, transparent); margin-top: 4px; padding-top: 5px; }
.card-pedido .cp-b { display: block; text-align: center; margin-top: 8px; padding: 9px; border-radius: 8px; background: #0f6e56; color: #fff; font-weight: 700; text-decoration: none; }
.balao-sis { align-self: center; background: var(--aviso-fundo); color: var(--aviso-texto); font-size: 12px; padding: 3px 12px; border-radius: 8px; margin: 6px 0; text-align: center; }
.mini-produtos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.mini-produto { width: 104px; background: color-mix(in srgb, var(--balao-texto) 6%, transparent); border-radius: 6px; padding: 5px; font-size: 11.5px; }
.mini-produto .mf { height: 62px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-weight: 600; background-size: cover; background-position: center; margin-bottom: 3px; }
.zap-escreve { display: flex; gap: 8px; align-items: center; padding: 10px 16px; background: var(--lado); border-top: 1px solid var(--borda); }
.zap-escreve input { border-radius: 20px; }
.zap-demo { display: flex; gap: 8px; align-items: center; padding: 8px 16px; background: var(--aviso-fundo); color: var(--aviso-texto); font-size: 12.5px; }
.zap-demo input { background: var(--cartao); color: var(--texto); border-radius: 20px; padding: 6px 12px; }
.zap-painel { border-left: 1px solid var(--borda); background: var(--lado); padding: 16px; overflow-y: auto; }
.dado { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--borda); font-size: 13px; }
.dado > span:first-child { color: var(--texto2); }
.dado > span:last-child { text-align: right; }

/* ---------- produtos ---------- */
.prod { padding: 0; overflow: hidden; cursor: pointer; }
.prod:hover { border-color: var(--borda2); }
.prod .foto, .foto-g { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700; background-size: cover; background-position: center; }
.prod .info { padding: 10px 12px 12px; }
.prod .preco { display: flex; justify-content: space-between; font-size: 13px; color: var(--texto2); }
.prod .preco b { color: var(--texto); font-weight: 600; }
.fotos { display: flex; gap: 8px; flex-wrap: wrap; }
.fotos .f { width: 72px; height: 72px; border-radius: var(--raio); background-size: cover; background-position: center; position: relative; border: 1px solid var(--borda); }
.fotos .f button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--perigo); color: #fff; cursor: pointer; line-height: 1; padding: 0; }
.fotos label { width: 72px; height: 72px; border-radius: var(--raio); border: 1px dashed var(--borda2); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--texto2); }
.estoque input { width: 58px; padding: 4px 6px; text-align: center; }
.estoque input.zero { color: var(--perigo); border-color: var(--perigo); }

/* ---------- pedidos ---------- */
.quadro { display: grid; grid-template-columns: repeat(4, minmax(210px, 1fr)); gap: 12px; overflow-x: auto; }
.coluna { background: var(--cartao2); border-radius: var(--raio-g); padding: 10px; min-height: 120px; }
.coluna > header { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--texto2); margin-bottom: 8px; padding: 0 2px; }
.coluna .cartao { padding: 10px 12px; cursor: pointer; }
.coluna .cartao + .cartao { margin-top: 8px; }
.coluna .cartao.sel { border-color: var(--dest); box-shadow: 0 0 0 1px var(--dest); }

/* ---------- funil ---------- */
.funil { display: grid; grid-template-columns: 96px 1fr 52px; gap: 8px; align-items: center; margin: 6px 0; font-size: 13px; }
.funil .barra { height: 16px; border-radius: 4px; background: var(--dest); min-width: 3px; }
.previa-zap { background: var(--chat-fundo); border-radius: var(--raio); padding: 12px; }
.previa-zap .balao { max-width: 100%; }
.previa-zap .bz { background: var(--balao); color: var(--dest); border-radius: 8px; text-align: center; padding: 6px; margin-top: 4px; font-size: 13px; }

/* ---------- celular e telas estreitas ---------- */
@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zap.com-painel { grid-template-columns: 300px minmax(0, 1fr); }
  .zap.com-painel .zap-painel { position: fixed; right: 0; top: 0; bottom: 0; width: 300px; z-index: 30; box-shadow: var(--sombra); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 60px minmax(0, 1fr); }
  .lado { padding: 10px 6px; }
  .marca span, .menu a span.txt, .rodape-lado { display: none; }
  .marca { justify-content: center; padding: 4px 0 12px; }
  .menu a { justify-content: center; padding: 10px 0; }
  .menu .conta { position: absolute; top: 2px; right: 4px; }
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); }
  .conteudo { padding: 14px; }
  .topo { padding: 10px 14px; }
}
@media (max-width: 640px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .lado { order: 2; flex-direction: row; border-right: 0; border-top: 1px solid var(--borda); padding: 4px; overflow-x: auto; padding-bottom: max(4px, env(safe-area-inset-bottom)); }
  .marca { display: none; }
  .menu { flex-direction: row; }
  .menu a { padding: 10px 13px; }
  .centro { height: auto; min-height: 0; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zap, .zap.com-painel { grid-template-columns: minmax(0, 1fr); }
  .zap.aberta .zap-lista { display: none; }
  .zap:not(.aberta) .zap-chat { display: none; }
  .zap-msgs { padding: 12px; }
  .balao { max-width: 88%; }
  .so-largo { display: none !important; }
}
@media (min-width: 641px) { .so-celular { display: none !important; } }
