/* Caixa de entrada na paleta Petróleo. */
.zc-modern {
    --zc-line: #dde7e4;
    --zc-panel: #ffffff;
    --zc-soft: #f3f7f6;
    --zc-chat: #f3f7f6;
    --zc-ink: #193332;
    --zc-muted: #586e6c;
    --zc-primary: #0d6b65;
    --zc-primary-hover: #095750;
    --zc-accent: #d2a567;
    --zc-accent-ink: #785321;
    --zc-success: #1f7a57;
    --zc-bubble-out: #ddf0eb;
}

.dark .zc-modern {
    --zc-line: #2d4e4d;
    --zc-panel: #173235;
    --zc-soft: #1d3b3e;
    --zc-chat: #0e2325;
    --zc-ink: #f3f8f6;
    --zc-muted: #abc4be;
    --zc-primary: #69c2b4;
    --zc-primary-hover: #83d1c4;
    --zc-accent: #d2a567;
    --zc-accent-ink: #f2d9b6;
    --zc-success: #6fcca0;
    --zc-bubble-out: #204843;
}

.zc-modern main { background: var(--zc-chat); }
.dark .zc-modern .text-brand-primary { color: #69c2b4; }
.dark .zc-modern .hover\:text-brand-primary:hover { color: #83d1c4; }

.zc-modern .zc-app-nav {
    width: 242px;
    min-width: 242px;
    background: #123a3d;
    border-right: 1px solid #2d5552;
    box-shadow: 10px 0 28px rgba(12, 39, 38, .12);
    /* âncora da alça de retrair, que fica montada na borda direita */
    position: relative;
    z-index: 20;
}

/* Alça centrada no encontro da divisória inferior do cabeçalho com a borda do menu. */
.zc-modern .zc-app-nav .zc-nav-alca {
    position: absolute;
    top: 84px;
    right: -13px;
    transform: translateY(-50%);
    z-index: 30;
    display: grid;
    place-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid #2d5552;
    border-radius: 50%;
    background: #123a3d;
    color: #b0d4ca;
    box-shadow: 0 2px 8px rgba(12, 39, 38, .35);
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.zc-modern .zc-nav-alca:hover { background: var(--zc-primary); border-color: var(--zc-primary); color: #fff; }
.zc-modern .zc-nav-alca svg { width: 13px; height: 13px; }

.zc-modern .zc-app-nav .zc-nav-topo {
    height: 84px;
    border-color: rgba(208, 228, 222, .16);
}

.zc-modern .zc-app-nav .zc-nav-topo img {
    width: 196px;
    max-width: none;
    height: auto;
}

.zc-modern .zc-app-nav .zc-nav-topo img[src$="logo_petroleo.png"] { display: none !important; }
.zc-modern .zc-app-nav .zc-nav-topo img[src$="logo_branca.png"] { display: block !important; }

.zc-modern .ia-provedor-opcao {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border: 1px solid var(--zc-line);
    border-radius: 11px;
    background: var(--zc-panel);
    color: var(--zc-muted);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.zc-modern .ia-provedor-opcao input { accent-color: var(--zc-primary); }
.zc-modern .ia-provedor-opcao:has(input:checked) {
    border-color: var(--zc-primary);
    background: var(--zc-soft);
    color: var(--zc-primary);
}
.zc-modern .ia-provedor-opcao:focus-within { outline: 2px solid var(--zc-primary); outline-offset: 2px; }

/* RESPOSTA EM ÁUDIO DA IA (voz_ia.js, mudarVozIA no public/app.js) */
.zc-modern .ia-voz-modos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.zc-modern .ia-voz-modos legend { grid-column: 1 / -1; }
.zc-modern .ia-voz-modo { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--zc-line); border-radius: 11px; background: var(--zc-panel); color: var(--zc-ink); cursor: pointer; }
.zc-modern .ia-voz-modo input { margin-top: 3px; accent-color: var(--zc-primary); }
.zc-modern .ia-voz-modo strong { display: block; font-size: 13px; }
.zc-modern .ia-voz-modo small { display: block; margin-top: 2px; color: var(--zc-muted); font-size: 12px; line-height: 1.35; }
.zc-modern .ia-voz-modo:has(input:checked) { border-color: var(--zc-primary); background: var(--zc-soft); }
.zc-modern .ia-voz-modo:has(input:checked) strong { color: var(--zc-primary); }
.zc-modern .ia-voz-modo:focus-within { outline: 2px solid var(--zc-primary); outline-offset: 2px; }
/* "Só texto": apagado pra mostrar que o áudio está desligado, mas clicável (21/11/2026):
   dá pra escolher a voz, clonar e ouvir antes de ligar. Volta ao normal ao mexer. */
.zc-modern .ia-voz-opcoes.ia-voz-desligada { opacity: .6; transition: opacity .15s; }
.zc-modern .ia-voz-opcoes.ia-voz-desligada:hover,
.zc-modern .ia-voz-opcoes.ia-voz-desligada:focus-within { opacity: 1; }
.zc-modern .ia-voz-linha { display: flex; gap: 8px; align-items: stretch; }
.zc-modern .ia-voz-teste { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--zc-line); }
.zc-modern .ia-voz-linha button.ia-voz-botao { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 14px; min-height: 44px; border: 1px solid var(--zc-line); border-radius: 11px; background: var(--zc-panel); color: var(--zc-ink); font-size: 13px; font-weight: 700; white-space: nowrap; }
.zc-modern .ia-voz-linha button.ia-voz-botao:hover { border-color: var(--zc-primary); color: var(--zc-primary); }
.zc-modern .ia-voz-linha button.ia-voz-botao.ia-voz-botao-principal { border-color: var(--zc-primary); background: var(--zc-primary); color: #fff; }
.zc-modern .ia-voz-linha button.ia-voz-botao.ia-voz-botao-principal:hover { filter: brightness(1.08); color: #fff; }
.zc-modern .ia-voz-linha button.ia-voz-botao:disabled { opacity: .6; cursor: wait; }
/* Clonar voz na ElevenLabs (bloco #ia-clone-voz do index.html, app.js "CLONAR VOZ") */
.zc-modern .ia-clone-voz { margin-top: 16px; border: 1px solid var(--zc-line); border-radius: 12px; background: var(--zc-panel); }
.zc-modern .ia-clone-voz > summary { display: flex; align-items: center; gap: 8px; padding: 12px 14px; color: var(--zc-primary); font-size: 13px; font-weight: 700; cursor: pointer; list-style: none; }
.zc-modern .ia-clone-voz > summary::-webkit-details-marker { display: none; }
.zc-modern .ia-clone-voz[open] > summary { border-bottom: 1px dashed var(--zc-line); }
.zc-modern .ia-clone-corpo { display: flex; flex-direction: column; gap: 12px; padding: 14px; }
.zc-modern .ia-clone-dica { margin: 0; color: var(--zc-muted); font-size: 12px; line-height: 1.45; }
.zc-modern .ia-clone-lista { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.zc-modern .ia-clone-lista:empty { display: none; }
.zc-modern .ia-clone-lista li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 9px; background: var(--zc-soft); color: var(--zc-ink); font-size: 12px; }
.zc-modern .ia-clone-lista li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zc-modern .ia-clone-lista li button { flex: none; display: inline-flex; padding: 4px; border-radius: 6px; color: var(--zc-muted); }
.zc-modern .ia-clone-lista li button:hover { color: #dc2626; }
.zc-modern .ia-clone-check { display: flex; align-items: flex-start; gap: 8px; color: var(--zc-ink); font-size: 13px; line-height: 1.4; cursor: pointer; }
.zc-modern .ia-clone-check input { margin-top: 3px; accent-color: var(--zc-primary); }
.zc-modern .ia-voz-linha button.ia-voz-botao.gravando { border-color: #dc2626; background: #fef2f2; color: #dc2626; }
/* Texto de "Ouvir como fica": cresce com o conteúdo (ajustarAlturaTesteVoz) e o botão fica em cima */
.zc-modern .ia-voz-linha.ia-voz-linha-teste { align-items: flex-start; }
.zc-modern .ia-voz-linha-teste textarea { min-height: 44px; max-height: 240px; resize: none; overflow-y: auto; line-height: 1.45; }
/* Ajustes da voz ElevenLabs (bloco .ia-eleven-ajustes do index.html, app.js "AJUSTES DA VOZ ELEVENLABS") */
.zc-modern .ia-eleven-ajustes { margin-top: 16px; padding: 14px; border: 1px solid var(--zc-line); border-radius: 12px; background: var(--zc-panel); }
.zc-modern .ia-eleven-dica { margin: 8px 0 0; color: var(--zc-muted); font-size: 12px; line-height: 1.45; }
.zc-modern .ia-eleven-controles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin-top: 14px; }
.zc-modern .ia-eleven-controle { display: flex; flex-direction: column; gap: 4px; color: var(--zc-ink); font-size: 13px; font-weight: 700; }
.zc-modern .ia-eleven-controle > span { display: flex; justify-content: space-between; gap: 8px; }
.zc-modern .ia-eleven-controle b { color: var(--zc-primary); }
.zc-modern .ia-eleven-controle input[type="range"] { width: 100%; accent-color: var(--zc-primary); cursor: pointer; }
.zc-modern .ia-eleven-controle small { color: var(--zc-muted); font-size: 11px; font-weight: 500; }
.zc-modern .ia-eleven-ajustes .ia-eleven-emocao { margin-top: 14px; font-weight: 500; }
.zc-modern .ia-eleven-ajustes .ia-eleven-emocao.hidden { display: none; }
.zc-modern .ia-eleven-controles .ia-eleven-controle.hidden { display: none; }
.zc-modern .ia-eleven-ajustes button.ia-eleven-padrao { margin-top: 12px; color: var(--zc-primary); font-size: 12px; font-weight: 700; }
.zc-modern .ia-eleven-ajustes button.ia-eleven-padrao:hover { text-decoration: underline; }
/* Aba Horários e feriados (section #horarios do index.html, public/horarios.js).
   Botões "Horário" e "Feriados" no topo, no mesmo visual das abas de Configurações, e só o
   painel escolhido aparece (pedido do usuário: um embaixo do outro ficava feio). */
.zc-modern .zc-horarios { max-width: 960px; }
.zc-modern .zc-horarios-painel.hidden { display: none; }
.zc-modern .zc-horarios-abas .aba-horarios.bg-brand-primary:hover { color: #fff; }
.zc-modern .zc-feriado-mes { margin: 10px 0 2px; color: var(--zc-muted); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.zc-modern .zc-feriado-mes:first-child { margin-top: 0; }
.zc-modern .zc-feriados-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.zc-modern .zc-feriados-ano { flex: none; }
.zc-modern .zc-feriados-lista { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.zc-modern .zc-feriado { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--zc-line); border-radius: 12px; background: var(--zc-panel); }
.zc-modern .zc-feriado.zc-feriado-desligado { background: var(--zc-soft); }
.zc-modern .zc-feriado.zc-feriado-desligado .zc-feriado-info { opacity: .6; }
.zc-modern .zc-feriado-chave { position: relative; flex: none; width: 40px; height: 22px; cursor: pointer; }
.zc-modern .zc-feriado-chave input { position: absolute; opacity: 0; width: 0; height: 0; }
.zc-modern .zc-feriado-chave span { position: absolute; inset: 0; border-radius: 999px; background: #cbd5e1; transition: background .15s; }
.zc-modern .zc-feriado-chave span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.zc-modern .zc-feriado-chave input:checked + span { background: var(--zc-primary); }
.zc-modern .zc-feriado-chave input:checked + span::after { transform: translateX(18px); }
.zc-modern .zc-feriado-chave input:focus-visible + span { outline: 2px solid var(--zc-primary); outline-offset: 2px; }
.zc-modern .zc-feriado-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.zc-modern .zc-feriado-info b { color: var(--zc-ink); font-size: 14px; }
.zc-modern .zc-feriado-info small { color: var(--zc-muted); font-size: 12px; }
.zc-modern .zc-feriado-como { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.zc-modern .zc-feriado-como select, .zc-modern .zc-feriado-como input { padding: 6px 8px; border: 1px solid var(--zc-line); border-radius: 9px; background: var(--zc-soft); color: var(--zc-ink); font-size: 13px; }
.zc-modern .zc-feriado-como select:disabled { opacity: .5; }
.zc-modern .zc-feriado-horas { display: inline-flex; align-items: center; gap: 4px; color: var(--zc-muted); font-size: 12px; }
.zc-modern .zc-feriado-horas.hidden { display: none; }
.zc-modern .zc-feriado button.zc-feriado-remover { flex: none; display: inline-flex; padding: 6px; border-radius: 8px; color: var(--zc-muted); }
.zc-modern .zc-feriado button.zc-feriado-remover:hover { color: #dc2626; }
.zc-modern .zc-feriado-novo { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--zc-line); }
.zc-modern .zc-feriado-novo-titulo { margin: 0 0 8px; color: var(--zc-ink); font-size: 13px; font-weight: 700; }
.zc-modern .zc-feriado-novo-campos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.zc-modern .zc-feriado-novo-campos input[type="text"] { flex: 1; min-width: 200px; }
.zc-modern .zc-feriado-check { display: inline-flex; align-items: center; gap: 6px; color: var(--zc-ink); font-size: 13px; cursor: pointer; }
.zc-modern .zc-feriado-check input { accent-color: var(--zc-primary); }
.zc-modern .zc-feriado-novo-campos button.zc-feriado-adicionar { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1px solid var(--zc-primary); border-radius: 11px; color: var(--zc-primary); font-size: 13px; font-weight: 700; }
.zc-modern .zc-feriado-novo-campos button.zc-feriado-adicionar:hover { background: var(--zc-primary); color: #fff; }
@media (max-width: 720px) {
    .zc-modern .zc-feriado { flex-wrap: wrap; }
    .zc-modern .zc-feriado-como { width: 100%; justify-content: flex-start; padding-left: 52px; }
    .zc-modern .zc-feriados-topo { flex-direction: column; }
}
/* Fragmentar no estilo da equipe (bloco .ia-estilo-* do index.html, app.js "FRAGMENTAR NO ESTILO") */
.zc-modern .ia-estilo-modos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.zc-modern .ia-estilo-modo { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--zc-line); border-radius: 11px; background: var(--zc-panel); color: var(--zc-ink); cursor: pointer; }
.zc-modern .ia-estilo-modo input { margin-top: 3px; accent-color: var(--zc-primary); }
.zc-modern .ia-estilo-modo b { display: block; font-size: 13px; }
.zc-modern .ia-estilo-modo small { display: block; margin-top: 2px; color: var(--zc-muted); font-size: 12px; line-height: 1.35; }
.zc-modern .ia-estilo-modo:has(input:checked) { border-color: var(--zc-primary); background: var(--zc-soft); }
.zc-modern .ia-estilo-modo:has(input:checked) b { color: var(--zc-primary); }
.zc-modern .ia-estilo-box { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; padding: 14px; border: 1px solid var(--zc-line); border-radius: 12px; background: var(--zc-panel); }
.zc-modern .ia-estilo-box.hidden, .zc-modern .ia-estilo-resultado.hidden { display: none; }
.zc-modern .ia-estilo-dica { margin: 0; color: var(--zc-muted); font-size: 12px; line-height: 1.45; }
.zc-modern .ia-estilo-resultado { display: flex; flex-direction: column; gap: 8px; }
.zc-modern .ia-estilo-origem { margin: 0; color: var(--zc-primary); font-size: 13px; font-weight: 700; }
.zc-modern .ia-estilo-medidas { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 4px; padding: 0; list-style: none; }
.zc-modern .ia-estilo-medidas li { padding: 4px 10px; border-radius: 999px; background: var(--zc-soft); color: var(--zc-ink); font-size: 12px; }
.zc-modern .ia-estilo-rotulo { margin: 4px 0 0; color: var(--zc-ink); font-size: 13px; font-weight: 700; }
.zc-modern .ia-estilo-exemplo { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; border-radius: 12px; background: var(--zc-soft); }
.zc-modern .ia-estilo-balao { max-width: 85%; padding: 7px 11px; border-radius: 10px 10px 10px 3px; background: var(--zc-panel); color: var(--zc-ink); font-size: 13px; line-height: 1.4; white-space: pre-wrap; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); }
@media (max-width: 720px) {
    .zc-modern .ia-voz-modos { grid-template-columns: 1fr; }
    .zc-modern .ia-estilo-modos { grid-template-columns: 1fr; }
    .zc-modern .ia-eleven-controles { grid-template-columns: 1fr; }
    .zc-modern .ia-voz-linha.ia-voz-linha-teste { align-items: stretch; }
    .zc-modern .ia-voz-linha { flex-direction: column; }
}

.zc-modern .zc-app-nav nav {
    padding: 16px 12px;
    margin-top: 10px;
}

.zc-modern .zc-app-nav nav .tab-btn {
    min-height: 36px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #c0d6d1;
    padding: 6px 14px;
    line-height: 22px;
    font-weight: 560;
    letter-spacing: -.01em;
}

.zc-modern .zc-app-nav nav .tab-btn:hover {
    color: #ffffff;
    background: rgba(117, 190, 178, .14);
}

.zc-modern .zc-app-nav nav .tab-btn.text-brand-primary {
    color: #ffffff;
    background: #0d6b65;
    border-color: rgba(199, 229, 219, .2);
    box-shadow: inset 3px 0 #d2a567, 0 8px 22px rgba(5, 43, 40, .13);
}

.zc-modern .zc-app-nav nav .tab-btn svg { color: #b0d4ca; }
.zc-modern .zc-app-nav nav .tab-btn.text-brand-primary svg { color: #ffffff; }
.zc-modern .zc-app-nav .zc-nav-rodape { border-color: rgba(208, 228, 222, .16); padding: 10px 12px 12px; }

/* ===== MENU EM GRUPOS (18/11/2026, pedido do usuário) =====
   Os botões ficam em .zc-nav-grupo, cada um com um título pequeno (.zc-nav-titulo):
   Atendimento, Gestão, Automação, Clientes, Administração e Admin do sistema. Grupo sem
   nenhum botão visível some inteiro: o login.js esconde cada botão pondo display none no
   style (permissão), e o :has abaixo olha isso, sem JS. Tutorial e Configurações ficam
   fora da rolagem, no rodapé (nav.zc-nav-fixos), pra aparecer mesmo em tela baixa. */
.zc-modern .zc-app-nav nav.zc-nav-grupos { display: flex; flex-direction: column; gap: 4px; padding: 8px 12px 14px; margin-top: 4px; }
.zc-modern .zc-nav-grupo { display: flex; flex-direction: column; gap: 2px; }
.zc-modern .zc-nav-grupo:not(:has(> .tab-btn:not([style*="display: none"]):not([style*="display:none"]))) { display: none; }
.zc-modern .zc-nav-titulo {
    margin: 0;
    padding: 8px 14px 3px;
    color: #86ada4;
    font-size: 10.5px;
    line-height: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.zc-modern .zc-app-nav nav.zc-nav-fixos { display: flex; flex-direction: column; gap: 2px; padding: 0; margin: 0 0 8px; }
/* Barra de rolagem do menu: fina, sem trilho e na cor do menu. Não depende da regra
   global do index.html (que é cinza-azulada e pensada pro fundo claro): sem isto o
   Windows mostrava a barra branca com setas. Só os ::-webkit-* de propósito: no Chrome
   121+, pôr scrollbar-width/scrollbar-color no elemento faz ele ignorar os ::-webkit-*.
   O Firefox, que não tem ::-webkit-scrollbar, usa as propriedades padrão. */
.zc-modern .zc-app-nav nav.zc-nav-grupos::-webkit-scrollbar { width: 5px; }
.zc-modern .zc-app-nav nav.zc-nav-grupos::-webkit-scrollbar-track { background: transparent; }
.zc-modern .zc-app-nav nav.zc-nav-grupos::-webkit-scrollbar-thumb { background: rgba(176, 212, 202, .22); border: 0; border-radius: 10px; }
.zc-modern .zc-app-nav nav.zc-nav-grupos::-webkit-scrollbar-thumb:hover { background: rgba(176, 212, 202, .42); }
.zc-modern .zc-app-nav nav.zc-nav-grupos::-webkit-scrollbar-button { display: none; height: 0; }
@supports not selector(::-webkit-scrollbar) {
    .zc-modern .zc-app-nav nav.zc-nav-grupos { scrollbar-width: thin; scrollbar-color: rgba(176, 212, 202, .22) transparent; }
}

.zc-modern #user-info-sidebar {
    background: rgba(9, 39, 39, .56);
    border-color: rgba(208, 228, 222, .17);
    box-shadow: none;
}

.zc-modern #user-email-sidebar { color: #f3f8f6; }
.zc-modern #user-role-sidebar { color: #abc4be; }
.zc-modern #user-avatar-sidebar { background: #0d6b65; }

.zc-modern #inbox .inbox-list-pane {
    width: 360px;
    background: var(--zc-panel);
    border-color: var(--zc-line);
    box-shadow: 8px 0 24px rgba(17, 58, 54, .045);
}

.zc-modern #inbox .inbox-toolbar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 18px 16px;
    border-color: var(--zc-line);
    background: var(--zc-panel);
}

.zc-modern #inbox .inbox-toolbar > * { margin-top: 0 !important; }
.zc-modern .inbox-toolbar-heading { order: 0; margin-bottom: 1px; }
.zc-modern .inbox-search { order: 1; }
/* Botão x da pesquisa (pedido do usuário em 18/11/2026): só aparece com texto no campo.
   O :placeholder-shown esconde sozinho também quando o app.js zera o valor (trocar de aba,
   Recepção Urgente, Arquivadas). Um nível a mais que a regra de botão com ícone do icons.css. */
.zc-modern .inbox-search input#input-pesquisa-chat { padding-right: 40px; }
.zc-modern .inbox-search .zc-busca-limpar { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); justify-content: center; width: 26px; height: 26px; padding: 0; border-radius: 50%; color: var(--zc-muted); transition: background .15s ease, color .15s ease; }
.zc-modern .inbox-search .zc-busca-limpar:hover { background: var(--zc-line); color: var(--zc-ink); }
.zc-modern .inbox-search .zc-busca-limpar:focus-visible { outline: 2px solid var(--zc-primary); outline-offset: 1px; }
.zc-modern .inbox-search .zc-busca-limpar svg { width: 14px; height: 14px; }
.zc-modern .inbox-search input:placeholder-shown + .zc-busca-limpar { display: none; }
.zc-modern .inbox-filter-row { order: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.zc-modern .inbox-status-tabs { order: 3; }

.zc-modern .inbox-toolbar-heading h2 {
    color: var(--zc-ink);
    font-size: 21px;
    letter-spacing: -.045em;
}

.zc-modern .inbox-toolbar-heading h2 svg { color: var(--zc-primary); }

.zc-modern .inbox-toolbar-heading button {
    border-radius: 11px;
    border-color: var(--zc-line);
    background: var(--zc-soft);
    color: var(--zc-primary);
    box-shadow: none;
}

.zc-modern .inbox-toolbar-heading button:hover { border-color: var(--zc-primary); }
.zc-modern #input-pesquisa-chat,
.zc-modern #btn-filtro-conexoes,
.zc-modern .inbox-tags-filter > button {
    background: var(--zc-soft);
    color: var(--zc-ink);
    border-color: var(--zc-line);
    box-shadow: none;
}

.zc-modern #input-pesquisa-chat {
    height: 43px;
    border-radius: 12px;
}

.zc-modern #input-pesquisa-chat:focus {
    border-color: var(--zc-primary);
    box-shadow: 0 0 0 3px rgba(13, 107, 101, .13);
}

.zc-modern #btn-filtro-conexoes,
.zc-modern .inbox-tags-filter > button {
    height: 40px;
    min-width: 0;
    padding: 0 10px;
    font-size: 11px;
    border-radius: 11px;
    gap: 5px;
}

.zc-modern #texto-filtro-conexoes,
.zc-modern #texto-filtro-tags {
    min-width: 0;
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: left;
}

.zc-modern #texto-filtro-conexoes svg,
.zc-modern #texto-filtro-tags svg { display: inline; margin-right: 3px; color: var(--zc-accent-ink); }
.zc-modern #dropdown-filtro-conexoes { min-width: 250px; }
.zc-modern #dropdown-filtro-tags { min-width: 250px; left: auto; right: 0; }

.zc-modern .inbox-status-tabs {
    padding: 4px;
    gap: 3px;
    background: var(--zc-soft);
    border-color: var(--zc-line);
    border-radius: 13px;
}

.zc-modern .inbox-status-tabs .filtro-chat-btn {
    min-height: 34px;
    border-radius: 9px;
    font-size: 11px;
    box-shadow: none;
}

.zc-modern .inbox-status-tabs .filtro-chat-btn.text-brand-primary {
    background: #0d6b65;
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 5px 13px rgba(13, 107, 101, .2);
}

.zc-modern .inbox-status-tabs .filtro-chat-btn.text-brand-primary .badge-count {
    color: #ffffff;
    background: rgba(255, 255, 255, .22);
}

/* Aba "Atendimento IA" (filtro 'ia', NA_IA do filtro_lista.js): linha inteira acima de
   Atendimento e Aguardando, só com a IA da empresa ligada. O painel põe data-ia="1" no
   .inbox-status-tabs pelas contas (counts.iaAtiva). Pelo id e pelo atributo, e não por
   classe, porque o mudarFiltroChat reescreve o className dos botões a cada troca de aba. */
#btn-filtro-ia { grid-column: 1 / -1; }
.inbox-status-tabs:not([data-ia="1"]) > #btn-filtro-ia { display: none; }

.zc-modern #lista-inbox { padding: 10px 9px 16px; }
.zc-modern .chat-list-item {
    min-height: 86px;
    border-radius: 15px;
    border-color: transparent;
    padding: 12px;
    margin-bottom: 3px;
}

.zc-modern .chat-list-item:hover { background: var(--zc-soft); border-color: var(--zc-line); }
.zc-modern .chat-list-item.is-active {
    background: #ddf0eb;
    border-color: #c7e4db;
    box-shadow: inset 3px 0 #0d6b65, 0 6px 16px rgba(13, 107, 101, .07);
}

.dark .zc-modern .chat-list-item.is-active {
    background: #204843;
    border-color: #3c7168;
    box-shadow: inset 3px 0 #d2a567, 0 7px 20px rgba(3, 28, 27, .19);
}

.zc-modern .chat-list-item h4 { color: var(--zc-ink); letter-spacing: -.01em; }
.zc-modern .chat-list-item .container-preview { color: var(--zc-muted); }
.zc-modern .chat-list-item time { color: var(--zc-muted); }
.zc-modern .chat-list-item [id^="foto-chat-"] { border: 2px solid var(--zc-panel); box-shadow: 0 3px 11px rgba(18, 58, 61, .14); }

.zc-modern #tela-vazia,
.zc-modern #tela-chat { background: var(--zc-chat); }

.zc-modern .chat-backdrop {
    background: radial-gradient(circle at 76% 13%, rgba(210, 165, 103, .1), transparent 32%),
        radial-gradient(circle at 13% 83%, rgba(13, 107, 101, .07), transparent 35%);
}

.dark .zc-modern .chat-backdrop {
    background: radial-gradient(circle at 76% 13%, rgba(210, 165, 103, .06), transparent 36%),
        radial-gradient(circle at 10% 82%, rgba(49, 135, 118, .11), transparent 40%);
}

.zc-modern .chat-header {
    height: 64px;
    min-height: 64px;
    padding-left: 20px;
    padding-right: 20px;
    background: var(--zc-panel);
    border-color: var(--zc-line);
    box-shadow: 0 5px 20px rgba(13, 55, 52, .045);
}

.zc-modern .chat-header-copy { position: relative; min-height: 44px; }
.zc-modern .chat-header-identity { min-width: 0; }
.zc-modern #chat-ativo-nome { min-width: 0; color: var(--zc-ink); font-size: 15px; letter-spacing: -.02em; }
.zc-modern #chat-ativo-foto { width: 44px; height: 44px; border: 2px solid var(--zc-line); }
.zc-modern #chat-ativo-badge-chip { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zc-modern .chat-header-subline { display: none; position: absolute; top: calc(50% + 7px); left: 0; right: 0; height: 16px; min-width: 0; overflow: hidden; }
.zc-modern .chat-header-copy:has(#chat-ativo-digitando:not(.hidden)) .chat-header-subline,
.zc-modern .chat-header-copy:has(#chat-ativo-tags > *) .chat-header-subline { display: block; }
.zc-modern .chat-header-copy:has(#chat-ativo-digitando:not(.hidden)) .chat-header-identity,
.zc-modern .chat-header-copy:has(#chat-ativo-tags > *) .chat-header-identity { transform: translateY(-7px); }
.zc-modern .chat-header-subline #chat-ativo-digitando { height: 16px; }
.zc-modern .chat-header-subline #chat-ativo-tags { height: 16px; align-items: center; }
.zc-modern .chat-header-subline #chat-ativo-digitando:not(.hidden) + #chat-ativo-tags { display: none; }
.zc-modern #chat-ativo-tags { max-height: 15px; }
/* Seta de voltar. O seletor precisa do .chat-header no meio: o icons.css tem um
   `:where(button,a):has(> svg[data-svg-icon]):not(.hidden)` que pontua mais que
   `.zc-modern .chat-mobile-back` e vencia, deixando a seta sem respiro nenhum
   ao lado da foto. Com o .chat-header a regra daqui volta a mandar. */
.zc-modern .chat-header .chat-mobile-back {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: none;
    margin-right: 12px;
    border-radius: 9px;
    color: var(--zc-muted);
    background: transparent;
    transition: background .15s, color .15s;
}
.zc-modern .chat-header .chat-mobile-back:hover { color: var(--zc-ink); background: var(--zc-soft); }

.zc-modern .chat-header #btn-agendar-chat,
.zc-modern .chat-header #btn-reativar-ia,
.zc-modern .chat-header #btn-resolver-chat,
.zc-modern .chat-header #btn-assumir-humano,
.zc-modern .chat-header #btn-excluir-contato {
    border-radius: 10px;
    box-shadow: none;
    animation: none;
    font-size: 12px;
    min-height: 36px;
}

.zc-modern .chat-header #btn-agendar-chat { background: #f7f0e3; color: #785321; border: 1px solid #dfc89f; }
.dark .zc-modern .chat-header #btn-agendar-chat { background: #614d31; color: #f2d9b6; border-color: #8a704c; }
.zc-modern .chat-header #btn-agendar-chat:hover { filter: brightness(.96); }
.zc-modern .chat-header #btn-assumir-humano,
.zc-modern .chat-header #btn-reativar-ia { background: #0d6b65; color: #fff; }
.zc-modern .chat-header #btn-resolver-chat { background: #1f7a57; color: #fff; }
.zc-modern .chat-header #btn-excluir-contato { background: transparent; color: #cf596a; border: 1px solid rgba(213, 93, 111, .2); }

/* Botões do topo da conversa (Ligar, Agendar, Reativar IA, Resolvido, Assumir, Excluir):
   o texto some e fica só o ícone quando a BARRA DO TOPO fica estreita (10/11/2026). O
   "hidden md:inline" do HTML olha só a janela, e num monitor de 1366px a coluna da
   conversa já fica apertada com o menu e a lista abertos (e mais ainda com o perfil do
   contato aberto). O nome do botão continua no title/aria-label. */
.zc-modern .chat-header { container: chatcab / inline-size; }
@container chatcab (max-width: 760px) {
    .zc-modern .chat-header > div:last-child { gap: 6px; }
    .zc-modern .chat-header > div:last-child > button { width: 36px; min-width: 36px; height: 36px; padding: 0; justify-content: center; }
    .zc-modern .chat-header > div:last-child > button > span { display: none; }
}

.zc-modern #area-mensagens { padding: 24px 26px 28px; gap: 13px; }
.zc-modern .chat-bubble:not(.chat-bubble-sticker) { border-radius: 17px; box-shadow: 0 8px 22px rgba(18, 58, 61, .07); }
.zc-modern .chat-bubble-out:not(.chat-bubble-deleted):not(.chat-bubble-sticker) { background: var(--zc-bubble-out); border-color: #c7e4db; color: #193332; }
.dark .zc-modern .chat-bubble-out:not(.chat-bubble-deleted):not(.chat-bubble-sticker) { border-color: #3b665e; color: #f3f8f6; }
.zc-modern .chat-bubble-in:not(.chat-bubble-deleted):not(.chat-bubble-sticker) { background: #fff; border-color: #dde7e4; color: #193332; }
.dark .zc-modern .chat-bubble-in:not(.chat-bubble-deleted):not(.chat-bubble-sticker) { background: #173235; border-color: #2d4e4d; color: #f3f8f6; }
.zc-modern .chat-bubble[data-reaction-host] [data-tick-id] { letter-spacing: .01em; }
/* Reagir e Responder (gerarHtmlMensagem no app.js): dentro da bolha, presos na borda de
   fora dela, rente ao pé. O respiro de 6px é padding do próprio bloco, não margem, pra o
   mouse passar da bolha pros botões sem sair do hover e eles não piscarem. */
.zc-modern .chat-bubble > .zc-msg-acoes { position: absolute; bottom: 0; z-index: 1; display: flex; align-items: center; gap: 6px; }
.zc-modern .chat-bubble > .zc-msg-acoes-in { left: 100%; padding-left: 6px; }
.zc-modern .chat-bubble > .zc-msg-acoes-out { right: 100%; padding-right: 6px; }
/* Teto da bolha de texto/áudio medido pela ÁREA de mensagens (cqw), não pela linha.
   O max-w-[75%] do Tailwind é porcentagem da linha .zc-msg-linha, que encolhe até o
   tamanho do conteúdo: a bolha ficava limitada a 75% de si mesma, quebrava linha à toa
   e, quando os botões eram irmãos dela na linha, sobrava um vão entre a bolha e eles.
   O segundo termo do min() garante lugar pro avatar + botões (102px na recebida, 74px
   na minha, mais 12px da barra de rolagem, que o cqw conta) em área estreita, senão o
   Responder saía cortado. Foto tem largura própria. */
.zc-modern #area-mensagens { container: msgs / inline-size; }
.zc-modern .zc-msg-linha > .chat-bubble-in.max-w-\[75\%\] { max-width: min(75cqw, 100cqw - 114px); }
.zc-modern .zc-msg-linha > .chat-bubble-out.max-w-\[75\%\] { max-width: min(75cqw, 100cqw - 86px); }
/* Áudio sem transcrição ganha o terceiro botão (Transcrever, 28px + 6px de vão) */
.zc-modern .zc-msg-linha > .chat-bubble-in.max-w-\[75\%\]:has(> .zc-msg-acoes .transcrever-btn) { max-width: min(75cqw, 100cqw - 148px); }
.zc-modern .zc-msg-linha > .chat-bubble-out.max-w-\[75\%\]:has(> .zc-msg-acoes .transcrever-btn) { max-width: min(75cqw, 100cqw - 120px); }
/* Carregando: fica visível mesmo com o mouse fora da bolha */
.zc-modern .chat-bubble .transcrever-btn.transcrevendo { opacity: 1; cursor: progress; }
/* Mensagem comprida: 12 linhas (leading-relaxed = 1.625) e o "Ler mais" logo abaixo,
   igual ao WhatsApp. O _ajustarLerMais (app.js) tira o corte de quem coube inteiro. */
.zc-modern .chat-bubble [data-message-body].zc-texto-longo { max-height: calc(1.625em * 12); overflow: hidden; }
.zc-modern .chat-bubble .zc-ler-mais { display: block; margin-top: 2px; padding: 0; background: none; border: 0; font-size: 14px; font-weight: 600; color: var(--zc-primary); cursor: pointer; }
.zc-modern .chat-bubble .zc-ler-mais:hover { text-decoration: underline; }
#area-mensagens.modo-selecao .zc-ler-mais { pointer-events: none; }

.zc-modern .chat-composer {
    padding: 13px 18px;
    background: var(--zc-panel);
    border-color: var(--zc-line);
    gap: 9px;
    box-shadow: 0 -6px 24px rgba(13, 55, 52, .045);
}

.zc-modern .chat-composer #btn-mais {
    background: var(--zc-soft);
    border-color: var(--zc-line);
    border-radius: 12px;
    box-shadow: none;
}

.zc-modern .chat-composer #container-input-texto {
    background: var(--zc-soft);
    border-color: var(--zc-line);
    border-radius: 13px;
    box-shadow: none;
}

.zc-modern .chat-composer #container-input-texto:focus-within { border-color: var(--zc-primary); box-shadow: 0 0 0 3px rgba(13, 107, 101, .12); }
.zc-modern .chat-composer #input-texto-chat { color: var(--zc-ink); }
.zc-modern .chat-composer #btn-acao-chat { background: #0d6b65; border-radius: 13px; box-shadow: 0 7px 20px rgba(13, 107, 101, .22); }
.zc-modern .melhoria-texto-preview { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); z-index: 35; width: min(720px, calc(100% - 24px)); max-height: min(65vh, 500px); overflow-y: auto; padding: 18px; border: 1px solid var(--zc-line); border-radius: 16px; background: var(--zc-panel); color: var(--zc-ink); box-shadow: 0 16px 42px rgba(13, 55, 52, .22); }
.zc-modern .melhoria-texto-titulo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; font-size: 15px; }
.zc-modern .melhoria-texto-titulo button { width: 28px; height: 28px; border-radius: 8px; background: var(--zc-soft); color: var(--zc-muted); font-size: 22px; line-height: 1; }
.zc-modern .melhoria-texto-comparacao { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.zc-modern .melhoria-texto-versao { min-width: 0; padding: 12px; border: 1px solid var(--zc-line); border-radius: 11px; background: var(--zc-soft); }
.zc-modern .melhoria-texto-versao span { display: block; margin-bottom: 8px; color: var(--zc-muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.zc-modern .melhoria-texto-versao p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.5; }
.zc-modern .melhoria-texto-depois { border-color: var(--zc-primary); }
.zc-modern .melhoria-texto-depois span { color: var(--zc-primary); }
.zc-modern .melhoria-texto-erro { margin-top: 10px; color: #c24150; font-size: 12px; }
.zc-modern .melhoria-texto-acoes { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.zc-modern .melhoria-texto-acoes span { margin-right: auto; color: var(--zc-muted); font-size: 11px; }
.zc-modern .melhoria-texto-acoes button { padding: 8px 12px; border: 1px solid var(--zc-line); border-radius: 9px; color: var(--zc-ink); font-size: 12px; font-weight: 700; }
.zc-modern .melhoria-texto-acoes #btn-salvar-melhoria { border-color: var(--zc-primary); background: var(--zc-primary); color: var(--zc-panel); }
.zc-modern .melhoria-texto-acoes button:disabled { opacity: .5; cursor: wait; }
@media (max-width: 600px) { .zc-modern .melhoria-texto-comparacao { grid-template-columns: 1fr; } }
.zc-modern #message-notification-container { position: fixed; right: 20px; bottom: 20px; z-index: 510; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; width: min(360px, calc(100vw - 24px)); pointer-events: none; }
.zc-modern .zc-message-notification { display: flex; align-items: flex-start; width: 100%; border: 1px solid var(--zc-line); border-left: 4px solid var(--zc-primary); border-radius: 12px; background: var(--zc-panel); color: var(--zc-ink); box-shadow: 0 14px 38px rgba(13, 55, 52, .24); pointer-events: auto; animation: slideInRight .3s ease-out; }
.zc-modern .zc-message-notification-open { position: relative; display: flex; flex: 1; flex-direction: column; align-items: flex-start; min-width: 0; padding: 13px 10px 13px 46px; text-align: left; }
.zc-modern .zc-message-notification-open::before { content: '✉'; position: absolute; top: 16px; left: 15px; color: var(--zc-primary); font-size: 19px; line-height: 1; }
.zc-modern .zc-message-notification-open strong { font-size: 13px; line-height: 1.35; }
.zc-modern .zc-message-notification-open span { display: -webkit-box; overflow: hidden; margin-top: 4px; color: var(--zc-muted); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.zc-modern .zc-message-notification-close { flex: none; width: 31px; height: 31px; margin: 7px 7px 0 0; border-radius: 7px; color: var(--zc-muted); font-size: 19px; line-height: 1; }
.zc-modern .zc-message-notification-close:hover { color: var(--zc-ink); background: var(--zc-soft); }
@media (max-width: 600px) { .zc-modern #message-notification-container { right: 12px; bottom: 12px; } }
.zc-modern .sticker-picker { position: absolute; bottom: calc(100% + 8px); left: 18px; z-index: 30; width: min(330px, calc(100vw - 24px)); padding: 10px; border: 1px solid var(--zc-line); border-radius: 14px; background: var(--zc-panel); color: var(--zc-ink); box-shadow: 0 12px 32px rgba(13, 55, 52, .18); }
.zc-modern .sticker-picker.hidden { display: none; }
.zc-modern .sticker-picker-header { display: flex; align-items: center; justify-content: space-between; padding: 2px 3px 9px; font-size: 12px; }
.zc-modern .sticker-picker-header button { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; border-radius: 7px; color: var(--zc-muted); background: var(--zc-soft); }
.zc-modern .sticker-picker-header svg { width: 14px; height: 14px; }
.zc-modern .sticker-picker-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; max-height: 260px; overflow-y: auto; }
.zc-modern .sticker-picker-grid > p { grid-column: 1 / -1; padding: 20px 8px; text-align: center; font-size: 12px; color: var(--zc-muted); }
.zc-modern .sticker-picker-grid > p.sticker-picker-secao { padding: 6px 3px 2px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--zc-muted); }
.zc-modern .sticker-picker-grid > p.sticker-picker-secao:not(:first-child) { padding-top: 12px; border-top: 1px solid var(--zc-line); margin-top: 6px; }
.zc-modern .sticker-picker-grid > button { display: grid; place-items: center; width: 100%; aspect-ratio: 1; padding: 5px; border-radius: 9px; background: var(--zc-soft); }
.zc-modern .sticker-picker-grid > button:hover { background: var(--zc-line); }
.zc-modern .sticker-picker-grid > button:disabled { opacity: .5; cursor: wait; }
.zc-modern .sticker-picker-grid img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* Carinhas de reagir, iguais às do WhatsApp Web: fileira flutuante acima da mensagem.
   O .hidden do Tailwind pontua (0,1,0) e perderia pro seletor de cima (0,2,0), por isso
   a regra própria logo abaixo - mesmo motivo do .sticker-picker. */
.zc-modern .reaction-picker { position: fixed; z-index: 60; display: flex; align-items: center; gap: 2px; padding: 5px 7px; border: 1px solid var(--zc-line); border-radius: 999px; background: var(--zc-panel); box-shadow: 0 10px 28px rgba(13, 55, 52, .22); }
.zc-modern .reaction-picker.hidden { display: none; }
.zc-modern .reaction-picker button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 50%; font-size: 20px; line-height: 1; background: transparent; transition: transform .12s ease, background .12s ease; }
.zc-modern .reaction-picker button:hover { transform: scale(1.2); background: var(--zc-soft); }
/* A que já é minha fica marcada, pra dar pra ver que clicar de novo tira a reação */
.zc-modern .reaction-picker button[aria-pressed="true"] { background: var(--zc-soft); box-shadow: inset 0 0 0 2px var(--zc-primary); }
/* A carinha na bolha não precisa de regra própria: ela tem as mesmas classes do botão de
   responder, e o display:inline-flex que o icons.css aplica em botão com <svg data-svg-icon>
   já centraliza os dois igual. */

/* Painel de emojis da caixa de mensagem: mesma moldura das figurinhas, mas em grade mais
   apertada, porque cabe muito mais emoji do que figurinha na mesma largura. */
/* O botão fica no canto direito da caixa de texto, então o painel abre por ali e não
   pela esquerda como o das figurinhas (que tem o botão na ponta esquerda da barra). */
.zc-modern .emoji-picker { left: auto; right: 86px; width: min(340px, calc(100vw - 24px)); }
/* Figurinha agora fica ao lado do rosto, dentro da caixa de mensagem: o painel abre do mesmo lado */
.zc-modern #painel-figurinhas { left: auto; right: 86px; }
.zc-modern .emoji-picker-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 2px; max-height: 240px; }
.zc-modern .emoji-picker-grid > button { font-size: 20px; line-height: 1; background: transparent; border-radius: 8px; padding: 2px; }
.zc-modern .emoji-picker-grid > button:hover { background: var(--zc-soft); }

.zc-modern .contact-detail-pane { background: var(--zc-panel); border-color: var(--zc-line); box-shadow: -10px 0 30px rgba(13, 55, 52, .08); }
.zc-modern .contact-detail-pane > div > div { border-color: var(--zc-line); }
.zc-modern .contact-detail-pane #sidebar-foto { border-color: var(--zc-soft); box-shadow: 0 7px 22px rgba(13, 107, 101, .14); }
.zc-modern .contact-detail-pane #sidebar-nome { color: var(--zc-ink); }
.zc-modern .contact-detail-pane #sidebar-numero { color: var(--zc-muted); }
.zc-modern .contact-panel-inner { color: var(--zc-ink); background: var(--zc-panel); }
.zc-modern .contact-panel-profile { display: flex; align-items: center; gap: 11px; min-height: 88px; padding: 17px 15px 12px; }
.zc-modern .contact-panel-profile #sidebar-foto { width: 48px; height: 48px; flex: none; border: 2px solid var(--zc-line); }
.zc-modern .contact-panel-identity { min-width: 0; flex: 1; }
.zc-modern .contact-panel-name-row { display: flex; align-items: center; gap: 5px; min-width: 0; }
.zc-modern .contact-panel-name-row h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 750; line-height: 1.3; }
.zc-modern .contact-panel-name-row button { flex: none; color: var(--zc-muted); padding: 3px; opacity: .7; }
.zc-modern .contact-panel-name-row button:hover { color: var(--zc-primary); opacity: 1; }
.zc-modern .contact-panel-name-row svg, .zc-modern .contact-panel-close svg { width: 15px; height: 15px; }
.zc-modern .contact-panel-identity #sidebar-numero { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; font-size: 11px; }
.zc-modern .contact-panel-identity #input-nome-contato { width: 100%; padding: 5px 7px; border: 1px solid var(--zc-primary); border-radius: 7px; background: var(--zc-soft); color: var(--zc-ink); font-size: 13px; }
.zc-modern .contact-panel-close { display: inline-flex; align-items: center; justify-content: center; padding: 0; width: 29px; height: 29px; flex: none; border-radius: 8px; color: var(--zc-muted); background: var(--zc-soft); }
.zc-modern .contact-panel-close:hover { color: var(--zc-ink); background: var(--zc-line); }
/* Pesquisa rápida nas mensagens da conversa, no topo do perfil */
.zc-modern .contact-panel-search { padding: 0 14px 10px; }
.zc-modern .contact-panel-search-box { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 11px; border: 1px solid var(--zc-line); border-radius: 10px; background: var(--zc-soft); color: var(--zc-muted); cursor: text; }
.zc-modern .contact-panel-search-box:focus-within { border-color: var(--zc-primary); color: var(--zc-primary); }
.zc-modern .contact-panel-search-box svg { width: 15px; height: 15px; flex: none; }
.zc-modern .contact-panel-search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--zc-ink); font-size: 12.5px; }
.zc-modern .contact-panel-search-results { margin-top: 8px; max-height: 320px; overflow-y: auto; border: 1px solid var(--zc-line); border-radius: 10px; background: var(--zc-panel); }
.zc-modern .contact-panel-search-results.hidden { display: none; }
.zc-modern .contact-panel-search-results .contact-panel-search-item { display: block; width: 100%; padding: 9px 11px; border-bottom: 1px solid var(--zc-line); text-align: left; background: transparent; color: var(--zc-ink); cursor: pointer; }
.zc-modern .contact-panel-search-results .contact-panel-search-item:last-child { border-bottom: 0; }
.zc-modern .contact-panel-search-results .contact-panel-search-item:hover { background: var(--zc-soft); }
.zc-modern .contact-panel-search-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--zc-muted); font-size: 10.5px; font-weight: 650; }
.zc-modern .contact-panel-search-texto { margin-top: 3px; font-size: 12px; line-height: 1.4; word-break: break-word; }
.zc-modern .contact-panel-search-texto mark { padding: 0 1px; border-radius: 3px; background: var(--zc-accent); color: var(--zc-accent-ink, #12312f); }
.zc-modern .contact-panel-search-vazio { padding: 10px 11px; color: var(--zc-muted); font-size: 11.5px; }
.zc-modern .contact-panel-tabs { display: flex; border-bottom: 1px solid var(--zc-line); padding: 0 12px; gap: 4px; }
.zc-modern .contact-panel-tab { position: relative; flex: 1; min-width: 0; padding: 11px 3px 13px; font-size: 11px; font-weight: 650; color: var(--zc-muted); white-space: nowrap; }
.zc-modern .contact-panel-tab.is-active { color: var(--zc-primary); }
.zc-modern .contact-panel-tab.is-active::after { content: ''; position: absolute; left: 5px; right: 5px; bottom: 0; height: 2px; border-radius: 2px; background: var(--zc-primary); }
.zc-modern .contact-panel-page { padding: 15px 15px 22px; }
.zc-modern .contact-panel-page.hidden { display: none; }
.zc-modern .contact-channel-card { display: flex; align-items: center; gap: 8px; min-height: 45px; margin-bottom: 18px; padding: 9px 11px; border: 1px solid var(--zc-line); border-radius: 10px; background: var(--zc-soft); font-size: 11px; }
.zc-modern .contact-channel-card #sidebar-canal { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zc-modern .contact-channel-icon { width: 17px; height: 17px; color: #25d366; }
.zc-modern .contact-channel-card[data-platform="facebook"] .contact-channel-icon { color: #1877f2; }
.zc-modern .contact-channel-card[data-platform="instagram"] .contact-channel-icon { color: #c13584; }
.zc-modern .contact-channel-state { margin-left: auto; padding: 4px 7px; border-radius: 6px; color: var(--zc-primary); background: rgba(13, 107, 101, .13); font-size: 10px; font-weight: 700; }
.zc-modern .contact-panel-section { margin-bottom: 21px; }
.zc-modern .contact-panel-section-head { display: flex; align-items: center; justify-content: space-between; min-height: 29px; margin-bottom: 9px; }
.zc-modern .contact-panel-section-head h4, .zc-modern .contact-panel-ai h4, .zc-modern .contact-panel-page-title { font-size: 12px; font-weight: 750; color: var(--zc-ink); }
.zc-modern .contact-panel-section-head button { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid var(--zc-line); border-radius: 7px; background: var(--zc-soft); color: var(--zc-primary); font-size: 18px; line-height: 1; }
.zc-modern .contact-panel-section-head button:hover { border-color: var(--zc-primary); }
.zc-modern .contact-panel-tags { display: flex; flex-wrap: wrap; gap: 6px; max-height: 98px; overflow-y: auto; }
.zc-modern .contact-panel-tags > span { border-radius: 999px; }
.zc-modern .contact-panel-tag-editor { margin-top: 11px; padding: 10px; border: 1px solid var(--zc-line); border-radius: 9px; background: var(--zc-soft); }
.zc-modern .contact-panel-input { display: block; width: 100%; margin-bottom: 9px; padding: 8px 10px; border: 1px solid var(--zc-line); border-radius: 8px; outline: none; background: var(--zc-panel); color: var(--zc-ink); font-size: 11px; }
.zc-modern .contact-panel-input:focus { border-color: var(--zc-primary); }
.zc-modern .contact-panel-tag-editor p { margin-bottom: 6px; color: var(--zc-muted); font-size: 10px; font-weight: 650; }
.zc-modern .contact-observation-card { padding: 11px; border: 1px solid var(--zc-line); border-radius: 10px; background: var(--zc-soft); color: var(--zc-muted); font-size: 11px; line-height: 1.5; }
.zc-modern .contact-observation-card p { color: var(--zc-ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.zc-modern .contact-observation-card small { display: block; margin-top: 8px; color: var(--zc-muted); font-size: 9px; }
.zc-modern .contact-panel-note-editor { margin: 10px 0 2px; padding: 11px; border: 1px solid var(--zc-line); border-radius: 10px; background: var(--zc-soft); }
.zc-modern .contact-panel-note-editor label { display: block; margin-bottom: 7px; color: var(--zc-ink); font-size: 11px; font-weight: 750; }
.zc-modern .contact-panel-note-editor textarea { display: block; width: 100%; min-height: 92px; max-height: 250px; padding: 9px 10px; border: 1px solid var(--zc-line); border-radius: 8px; outline: none; resize: vertical; background: var(--zc-panel); color: var(--zc-ink); font: inherit; font-size: 11px; line-height: 1.5; }
.zc-modern .contact-panel-note-editor textarea:focus { border-color: var(--zc-primary); box-shadow: 0 0 0 3px rgba(13, 107, 101, .12); }
.zc-modern .contact-panel-note-editor > p { margin-top: 7px; color: var(--zc-muted); font-size: 10px; }
.zc-modern .contact-panel-note-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 11px; }
.zc-modern .contact-panel-note-actions button { padding: 7px 10px; border: 1px solid var(--zc-line); border-radius: 7px; color: var(--zc-muted); font-size: 11px; font-weight: 700; }
.zc-modern .contact-panel-note-actions button:last-child { border-color: var(--zc-primary); background: var(--zc-primary); color: var(--zc-panel); }
.zc-modern .contact-panel-note-actions button:disabled { opacity: .55; cursor: wait; }
.zc-modern .contact-panel-ai { padding-bottom: 16px; border-bottom: 1px solid var(--zc-line); }
.zc-modern .contact-panel-ai h4 { margin-bottom: 9px; }
.zc-modern .contact-panel-meta { display: grid; gap: 15px; padding: 2px 5px; }
.zc-modern .contact-panel-meta > div { display: grid; gap: 3px; padding-left: 14px; border-left: 2px solid var(--zc-line); }
.zc-modern .contact-panel-meta span { color: var(--zc-muted); font-size: 10px; }
.zc-modern .contact-panel-meta strong { color: var(--zc-ink); font-size: 11px; font-weight: 650; }
.zc-modern .contact-panel-page-title { margin: 1px 0 18px; }
.zc-modern .contact-panel-hint { margin-top: 23px; color: var(--zc-muted); font-size: 11px; line-height: 1.5; }
.zc-modern .contact-panel-notes { display: grid; gap: 8px; }
.zc-modern .contact-panel-participants { max-height: 250px; overflow-y: auto; }
/* Aba "Mídias" do perfil (bloco ABA "MÍDIAS" em features.js): filtros em pílula, busca +
   quem enviou, e a lista por mês com foto/vídeo em grade e áudio/documento/link em linhas. */
.zc-modern .contact-media-filtros { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.zc-modern .contact-media-chip { padding: 5px 10px; border: 1px solid var(--zc-line); border-radius: 999px; background: var(--zc-soft); color: var(--zc-muted); font-size: 11px; font-weight: 650; line-height: 1.2; }
.zc-modern .contact-media-chip:hover { border-color: var(--zc-primary); color: var(--zc-ink); }
.zc-modern .contact-media-chip.is-active { border-color: var(--zc-primary); background: var(--zc-primary); color: var(--zc-panel); }
.zc-modern .contact-media-barra { display: flex; gap: 6px; margin-bottom: 14px; }
.zc-modern .contact-media-busca { display: flex; flex: 1; min-width: 0; align-items: center; gap: 6px; height: 33px; padding: 0 9px; border: 1px solid var(--zc-line); border-radius: 9px; background: var(--zc-soft); color: var(--zc-muted); cursor: text; }
.zc-modern .contact-media-busca:focus-within { border-color: var(--zc-primary); color: var(--zc-primary); }
.zc-modern .contact-media-busca svg { width: 14px; height: 14px; flex: none; }
.zc-modern .contact-media-busca input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--zc-ink); font-size: 11.5px; }
.zc-modern #midias-origem { flex: none; height: 33px; padding: 0 6px; border: 1px solid var(--zc-line); border-radius: 9px; outline: none; background: var(--zc-soft); color: var(--zc-ink); font-size: 11px; font-weight: 650; }
.zc-modern #midias-origem:focus { border-color: var(--zc-primary); }
.zc-modern .contact-media-vazio { padding: 22px 8px; color: var(--zc-muted); font-size: 11.5px; line-height: 1.5; text-align: center; }
.zc-modern .contact-media-grupo { margin-bottom: 16px; }
.zc-modern .contact-media-grupo h5 { margin-bottom: 7px; color: var(--zc-muted); font-size: 10.5px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.zc-modern .contact-media-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.zc-modern .contact-media-grade + .contact-media-linhas { margin-top: 8px; }
.zc-modern .contact-media-tile { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: var(--zc-soft); }
.zc-modern .contact-media-abrir { display: block; position: relative; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.zc-modern .contact-media-abrir img, .zc-modern .contact-media-abrir video { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform .2s ease; }
.zc-modern .contact-media-abrir:hover img, .zc-modern .contact-media-abrir:hover video { transform: scale(1.04); }
.zc-modern .contact-media-abrir:focus-visible { outline: 2px solid var(--zc-primary); outline-offset: -2px; border-radius: 8px; }
.zc-modern .contact-media-tile.is-pendente img { filter: blur(2px) brightness(.85); }
.zc-modern .contact-media-tile-icone { display: grid; place-items: center; width: 100%; height: 100%; color: var(--zc-muted); font-size: 26px; }
.zc-modern .contact-media-selo { position: absolute; left: 5px; bottom: 5px; display: inline-flex; align-items: center; gap: 3px; padding: 2px 5px; border-radius: 5px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 9.5px; font-weight: 700; }
.zc-modern .contact-media-pendente { position: absolute; inset: auto 0 0; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 4px 3px; background: rgba(9, 35, 35, .72); color: #fff; font-size: 9.5px; font-weight: 700; }
.zc-modern .contact-media-tile.is-pendente .contact-media-selo { bottom: 26px; }
.zc-modern .contact-media-tile button.contact-media-ir { position: absolute; top: 4px; right: 4px; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 13px; opacity: 0; transition: opacity .15s ease; }
.zc-modern .contact-media-tile:hover button.contact-media-ir, .zc-modern .contact-media-tile button.contact-media-ir:focus-visible { opacity: 1; }
@media (hover: none) { .zc-modern .contact-media-tile button.contact-media-ir { opacity: 1; } }
.zc-modern .contact-media-linhas { display: grid; gap: 7px; }
.zc-modern .contact-media-linha { display: flex; gap: 9px; padding: 9px 10px; border: 1px solid var(--zc-line); border-radius: 10px; background: var(--zc-soft); }
.zc-modern .contact-media-linha-icone { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 8px; background: rgba(13, 107, 101, .13); color: var(--zc-primary); font-size: 16px; }
.zc-modern .contact-media-linha-icone.is-doc { background: var(--zc-panel); }
.zc-modern .contact-media-linha-corpo { flex: 1; min-width: 0; }
.zc-modern .contact-media-linha-corpo > strong { display: block; overflow: hidden; color: var(--zc-ink); font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.zc-modern .contact-media-linha-corpo > small { display: block; margin-top: 1px; color: var(--zc-muted); font-size: 10.5px; }
.zc-modern .contact-media-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 3px; color: var(--zc-muted); font-size: 10px; }
.zc-modern .contact-media-meta span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zc-modern .contact-media-meta span:last-child { flex: none; }
.zc-modern .contact-media-linha audio { display: block; width: 100%; height: 32px; margin-top: 7px; }
.zc-modern .contact-media-texto { margin-top: 6px; color: var(--zc-ink); font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.zc-modern .contact-media-url { display: block; margin-top: 5px; overflow: hidden; color: var(--zc-primary); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.zc-modern .contact-media-url:hover { text-decoration: underline; }
.zc-modern .contact-media-acoes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.zc-modern .contact-media-acao { padding: 4px 9px; border: 1px solid var(--zc-line); border-radius: 7px; background: var(--zc-panel); color: var(--zc-muted); font-size: 10.5px; font-weight: 700; text-decoration: none; cursor: pointer; }
.zc-modern .contact-media-acao:hover { border-color: var(--zc-primary); color: var(--zc-ink); }
.zc-modern .contact-media-acao.is-principal { border-color: var(--zc-primary); background: var(--zc-primary); color: var(--zc-panel); }
.zc-modern .contact-media-acao:disabled { opacity: .6; cursor: wait; }
.zc-modern .contact-media-mais { display: block; width: 100%; margin-top: 4px; padding: 8px; border: 1px dashed var(--zc-line); border-radius: 9px; color: var(--zc-primary); font-size: 11.5px; font-weight: 700; }
.zc-modern .contact-media-mais:hover { border-color: var(--zc-primary); }
.zc-modern .contact-media-mais.hidden { display: none; }
.zc-modern .contact-media-mais:disabled { color: var(--zc-muted); cursor: wait; }
/* Ligações do contato (renderizarLigacoesSidebar em features.js): em Dados só a última,
   com o link "Ver todas" pra aba Histórico. O link vence o botão quadrado do cabeçalho. */
.zc-modern .contact-panel-section-head button.contact-panel-link { display: inline; width: auto; height: auto; padding: 0; border: 0; background: none; color: var(--zc-primary); font-size: 11.5px; font-weight: 650; }
.zc-modern .contact-panel-section-head button.contact-panel-link:hover { text-decoration: underline; }
.zc-modern .contact-panel-section-head button.contact-panel-link.hidden { display: none; }
.zc-modern .contact-panel-calls { display: grid; gap: 8px; max-height: 340px; overflow-y: auto; }
.zc-modern .contact-panel-call { padding: 9px 10px; border: 1px solid var(--zc-line); border-radius: 10px; background: var(--zc-soft); }
.zc-modern .contact-panel-call-topo { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--zc-ink); }
.zc-modern .contact-panel-call-topo svg { width: 15px; height: 15px; flex: none; color: var(--zc-primary); }
.zc-modern .contact-panel-call.perdida .contact-panel-call-topo svg { color: #c0392b; }
.zc-modern .contact-panel-call-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; color: var(--zc-muted); font-size: 11px; }
.zc-modern .contact-panel-call-audio { margin-top: 8px; }

/* ===== MENU RETRAÍDO =====
   Antes isto vivia dentro de um @media (max-width:1200px) e não tinha como ligar ou
   desligar na mão. Agora quem põe a classe `menu-retraido` no <html> é o JS: segue a
   largura da janela enquanto a pessoa não escolher, e passa a obedecer a escolha dela
   depois do primeiro clique no botão. As regras são as mesmas de antes. */
html.menu-retraido .zc-modern .zc-app-nav { width: 72px; min-width: 72px; }
html.menu-retraido .zc-modern .zc-app-nav .zc-nav-topo { padding: 0; justify-content: center; }
html.menu-retraido .zc-modern .zc-app-nav .zc-nav-topo img[src$="logo_petroleo.png"],
html.menu-retraido .zc-modern .zc-app-nav .zc-nav-topo img[src$="logo_branca.png"] { display: none !important; }
/* A carinha no lugar do nome inteiro. O width:auto é obrigatório: a regra de cima manda
   196px em TODA img deste cabeçalho, e sem desfazer isso a carinha sairia esticada. */
html.menu-retraido .zc-modern .zc-app-nav .zc-nav-topo img.zc-nav-rosto { display: block; width: auto; height: 42px; }
/* A alça continua no mesmo lugar; só vira a seta. Quem diz o que ela faz é o title,
   que o JS troca entre "Retrair menu" e "Expandir menu". */
html.menu-retraido .zc-modern #btn-retrair-menu [data-icone-retrair] { display: none; }
html.menu-retraido .zc-modern #btn-retrair-menu [data-icone-expandir] { display: block; }
html.menu-retraido .zc-modern .zc-app-nav nav { padding: 10px 7px; }
html.menu-retraido .zc-modern .zc-app-nav nav .tab-btn { justify-content: center; padding: 10px; }
html.menu-retraido .zc-modern .zc-app-nav nav .tab-btn > span:not(#badge-inbox-naolidas) { display: none !important; }
html.menu-retraido .zc-modern .zc-app-nav nav #btn-tab-inbox { position: relative; }
html.menu-retraido .zc-modern .zc-app-nav nav #badge-inbox-naolidas:not(.hidden) { display: flex !important; position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 3px; font-size: 9px; }
html.menu-retraido .zc-modern .zc-app-nav .zc-nav-rodape { padding: 7px; }
html.menu-retraido .zc-modern #user-info-sidebar { padding: 7px; justify-content: center; flex-direction: column; }
html.menu-retraido .zc-modern #user-info-sidebar > div.min-w-0 { display: none; }
html.menu-retraido .zc-modern #btn-voltar-empresa > span { display: none; }
html.menu-retraido .zc-modern #user-info-sidebar > div.flex { flex-direction: column; }
/* Menu em grupos retraído: o título vira uma linha fina entre os grupos (o primeiro não
   precisa de linha) e o rodapé com Tutorial e Configurações perde a margem de lado. */
html.menu-retraido .zc-modern .zc-app-nav nav.zc-nav-grupos { padding: 8px 7px; gap: 0; }
html.menu-retraido .zc-modern .zc-nav-titulo { height: 1px; padding: 0; margin: 8px 10px; font-size: 0; background: rgba(208, 228, 222, .16); }
html.menu-retraido .zc-modern .zc-nav-grupos > .zc-nav-grupo:first-child .zc-nav-titulo { display: none; }
html.menu-retraido .zc-modern .zc-app-nav nav.zc-nav-fixos { padding: 0; margin-bottom: 7px; }

@media (max-width: 1200px) {
    /* Isto é da lista de conversas, não do menu: continua valendo pela largura da tela */
    .zc-modern #inbox .inbox-list-pane { width: 336px; }
}

@media (max-width: 1050px) {
    .zc-modern #sidebar-contato:not(.w-0) { position: absolute; top: 0; right: 0; bottom: 0; width: 340px; max-width: 100%; }
}

@media (max-width: 760px) {
    .zc-modern .zc-app-nav { width: 60px; min-width: 60px; }
    .zc-modern .zc-app-nav nav { padding: 10px 5px; }
    .zc-modern .zc-app-nav nav .tab-btn { min-height: 42px; padding: 8px; }
    .zc-modern .zc-app-nav nav.zc-nav-grupos { padding: 10px 5px; }
    .zc-modern #inbox .inbox-list-pane { width: 100%; border-right: 0; }
    .zc-modern #inbox #tela-vazia { display: none; }
    .zc-modern #inbox.chat-open .inbox-list-pane { display: none; }
    .zc-modern .chat-header .chat-mobile-back { width: 34px; height: 34px; margin-right: 14px; color: var(--zc-ink); background: var(--zc-soft); }
    .zc-modern .chat-header { height: 60px; min-height: 60px; padding-left: 9px; padding-right: 9px; }
    .zc-modern .chat-header-copy:has(#chat-ativo-tags > *):not(:has(#chat-ativo-digitando:not(.hidden))) .chat-header-subline { display: none; }
    .zc-modern .chat-header-copy:has(#chat-ativo-tags > *):not(:has(#chat-ativo-digitando:not(.hidden))) .chat-header-identity { transform: none; }
    .zc-modern .chat-header > div:last-child { gap: 4px; padding-left: 4px; }
    .zc-modern .chat-header > div:last-child button { padding: 8px; min-width: 34px; }
    .zc-modern #chat-ativo-foto { width: 36px; height: 36px; }
    .zc-modern #chat-ativo-nome { font-size: 13px; }
    .zc-modern #chat-ativo-badge-chip { display: none !important; }
    .zc-modern #chat-ativo-tags { display: none; }
    .zc-modern #area-mensagens { padding: 17px 12px 20px; }
    .zc-modern .chat-composer { padding: 10px; gap: 5px; }
    .zc-modern .chat-composer #btn-mais,
    .zc-modern .chat-composer #btn-acao-chat { width: 46px; height: 52px; }
}

/* Campanhas: visão geral, criação e histórico no mesmo fluxo. */
#disparo .zc-campaign-page { width: 100%; max-width: 1280px; }
#disparo .zc-campaign-primary-action,
#disparo .zc-campaign-start-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; background: #0d6b65; color: #fff; border: 0; border-radius: 12px; padding: 13px 20px; font-weight: 700; box-shadow: 0 8px 20px rgba(13,107,101,.17); cursor: pointer; }
#disparo .zc-campaign-primary-action:hover,
#disparo .zc-campaign-start-button:hover { background: #095750; }
#disparo .zc-campaign-start-button:disabled { opacity: .6; cursor: wait; }
#disparo .zc-campaign-primary-action svg,
#disparo .zc-campaign-start-button svg { width: 19px; height: 19px; }
#disparo .zc-campaign-tabs { display: flex; gap: 5px; width: fit-content; max-width: 100%; overflow-x: auto; padding: 5px; border: 1px solid var(--zc-line); border-radius: 15px; background: var(--zc-panel); }
#disparo .zc-campaign-tab { flex: none; padding: 10px 17px; border-radius: 10px; color: var(--zc-muted); font-size: 14px; font-weight: 700; white-space: nowrap; }
#disparo .zc-campaign-tab:hover { color: var(--zc-primary); background: var(--zc-soft); }
#disparo .zc-campaign-tab.is-active { color: var(--zc-primary); background: var(--zc-soft); box-shadow: inset 0 0 0 1px var(--zc-line); }
#disparo .zc-campaign-metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-bottom: 20px; }
#disparo .zc-campaign-metric,
#disparo .zc-campaign-panel,
#disparo .zc-campaign-name-card,
#disparo .zc-campaign-review { background: var(--zc-panel); color: var(--zc-ink); border: 1px solid var(--zc-line); border-radius: 18px; box-shadow: 0 4px 14px rgba(12,39,38,.04); }
#disparo .zc-campaign-metric { display: flex; flex-direction: column; gap: 8px; min-height: 130px; padding: 20px 22px; }
#disparo .zc-campaign-metric span { color: var(--zc-muted); font-size: 13px; font-weight: 700; }
#disparo .zc-campaign-metric strong { color: var(--zc-ink); font-size: 32px; line-height: 1; }
#disparo .zc-campaign-metric small { color: var(--zc-muted); font-size: 12px; }
#disparo .zc-campaign-overview-grid { display: grid; grid-template-columns: minmax(0,1.75fr) minmax(280px,.8fr); gap: 20px; align-items: stretch; }
#disparo .zc-campaign-panel { overflow: hidden; }
#disparo .zc-campaign-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--zc-line); }
#disparo .zc-campaign-panel-heading h2,
#disparo .zc-campaign-overview-aside h2 { margin: 0; font-size: 18px; font-weight: 750; }
#disparo .zc-campaign-panel-heading p { margin: 3px 0 0; color: var(--zc-muted); font-size: 13px; }
#disparo .zc-campaign-panel-heading button,
#disparo .zc-campaign-overview-aside button { color: var(--zc-primary); font-size: 13px; font-weight: 750; cursor: pointer; }
#disparo .zc-campaign-panel-heading button:hover,
#disparo .zc-campaign-overview-aside button:hover { text-decoration: underline; }
#disparo .zc-campaign-recent-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 17px 24px; border-bottom: 1px solid var(--zc-line); }
#disparo .zc-campaign-recent-row:last-child { border-bottom: 0; }
#disparo .zc-campaign-recent-row > div:first-child { min-width: 0; }
#disparo .zc-campaign-recent-row strong,
#disparo .zc-campaign-recent-row span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#disparo .zc-campaign-recent-row strong { font-size: 14px; }
#disparo .zc-campaign-recent-row span { margin-top: 3px; color: var(--zc-muted); font-size: 12px; }
#disparo .zc-campaign-recent-result { width: 100px; flex: none; text-align: right; }
#disparo .zc-campaign-recent-result small { color: var(--zc-muted); font-size: 11px; font-weight: 700; }
#disparo .zc-campaign-mini-progress { height: 5px; margin-top: 7px; overflow: hidden; border-radius: 20px; background: var(--zc-line); }
#disparo .zc-campaign-mini-progress i { display: block; height: 100%; border-radius: inherit; background: var(--zc-primary); }
#disparo .zc-campaign-overview-aside { padding: 25px; display: flex; flex-direction: column; align-items: flex-start; }
#disparo .zc-campaign-aside-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 14px; color: var(--zc-primary); background: var(--zc-soft); }
#disparo .zc-campaign-aside-icon svg { width: 26px; height: 26px; }
#disparo .zc-campaign-overview-aside p { color: var(--zc-muted); font-size: 14px; line-height: 1.55; }
#disparo .zc-campaign-overview-aside button { margin-top: auto; padding-top: 24px; }
#disparo .zc-campaign-empty { padding: 48px 24px; color: var(--zc-muted); text-align: center; font-size: 14px; }
#disparo .zc-campaign-steps { display: flex; align-items: center; gap: 8px; margin-bottom: 19px; color: var(--zc-primary); }
#disparo .zc-campaign-steps span { display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 99px; background: var(--zc-panel); border: 1px solid var(--zc-line); font-size: 12px; font-weight: 800; white-space: nowrap; }
#disparo .zc-campaign-steps b { color: var(--zc-ink); }
#disparo .zc-campaign-create-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 20px; align-items: start; }
#disparo .zc-campaign-form-column { min-width: 0; }
#disparo .zc-campaign-name-card { padding: 20px 24px; margin-bottom: 22px; }
#disparo .zc-campaign-name-card label { display: block; margin-bottom: 9px; font-weight: 750; font-size: 14px; }
#disparo .zc-campaign-name-card input { display: block; width: 100%; padding: 12px 14px; color: var(--zc-ink); background: var(--zc-soft); border: 1px solid var(--zc-line); border-radius: 11px; outline: none; }
#disparo .zc-campaign-name-card input:focus { border-color: var(--zc-primary); }
#disparo .zc-campaign-name-card p { margin: 7px 0 0; color: var(--zc-muted); font-size: 12px; }
#disparo .zc-campaign-review { position: sticky; top: 14px; padding: 21px; }
#disparo .zc-campaign-review-heading { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--zc-line); }
#disparo .zc-campaign-review-heading > svg { width: 28px; height: 28px; color: var(--zc-primary); }
#disparo .zc-campaign-review-heading h2 { margin: 0; font-size: 17px; font-weight: 800; }
#disparo .zc-campaign-review-heading p { margin: 2px 0 0; color: var(--zc-muted); font-size: 12px; }
#disparo .zc-campaign-preview { padding: 17px 0; }
#disparo .zc-campaign-preview > span { display: block; margin-bottom: 11px; color: var(--zc-muted); font-size: 12px; font-weight: 750; }
#disparo .zc-campaign-preview-bubble { max-height: 180px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; padding: 13px 15px; border-radius: 12px 12px 4px 12px; color: #193332; background: #ddf0eb; font-size: 13px; line-height: 1.5; }
#disparo .zc-campaign-review-list { margin: 0 0 18px; border-top: 1px solid var(--zc-line); }
#disparo .zc-campaign-review-list div { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--zc-line); font-size: 12px; }
#disparo .zc-campaign-review-list dt { color: var(--zc-muted); }
#disparo .zc-campaign-review-list dd { max-width: 61%; margin: 0; text-align: right; font-weight: 750; overflow-wrap: anywhere; }
#disparo .zc-campaign-start-button { width: 100%; }
#disparo .zc-campaign-review-note { margin: 12px 0 0; color: var(--zc-muted); font-size: 11px; line-height: 1.5; }
#disparo .zc-campaign-history-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
#disparo .zc-campaign-history-controls { display: flex; gap: 8px; margin-left: auto; }
#disparo .zc-campaign-history-controls input,
#disparo .zc-campaign-history-controls select { min-height: 36px; padding: 7px 10px; border: 1px solid var(--zc-line); border-radius: 9px; background: var(--zc-soft); color: var(--zc-ink); font-size: 12px; }
#disparo .zc-campaign-history-controls input { width: 170px; }
#disparo .zc-campaign-history-row h4 { margin: 4px 0; }
#disparo .zc-campaign-cancel { margin-left: auto; padding: 7px 10px; border: 1px solid #fecaca; border-radius: 8px; color: #c53030; background: #fff; font-size: 12px; font-weight: 750; }
#disparo .zc-campaign-cancel:hover { background: #fff1f2; }
@media (max-width: 1180px) {
    #disparo .zc-campaign-overview-grid,
    #disparo .zc-campaign-create-grid { grid-template-columns: 1fr; }
    #disparo .zc-campaign-review { position: static; }
}
@media (max-width: 680px) {
    #disparo { padding: 18px; }
    #disparo .zc-campaign-metrics { grid-template-columns: 1fr; gap: 10px; }
    #disparo .zc-campaign-metric { min-height: 90px; }
    #disparo .zc-campaign-steps { overflow-x: auto; }
    #disparo .zc-campaign-panel-heading { align-items: flex-start; flex-direction: column; }
    #disparo .zc-campaign-history-controls { width: 100%; margin-left: 0; }
    #disparo .zc-campaign-history-controls input { width: 50%; }
    #disparo .zc-campaign-recent-result { width: 85px; }
}

/* Assistente IA: painel, configuração por etapas, materiais e prompt. */
#automatizacao .zc-ai-container { max-width: 1200px; }
#automatizacao .zc-ai-page-header { margin-bottom: 22px; }
#automatizacao .zc-ai-eyebrow,
#automatizacao .zc-ai-kicker { color: var(--zc-accent-ink); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
#automatizacao .zc-ai-page-header h1 { display: flex; align-items: center; gap: 11px; margin: 4px 0 5px; color: var(--zc-ink); font-size: clamp(27px, 3vw, 34px); font-weight: 800; letter-spacing: -.035em; }
#automatizacao .zc-ai-page-header h1 svg { width: 32px; height: 32px; color: var(--zc-primary); }
#automatizacao .zc-ai-page-header p { margin: 0; color: var(--zc-muted); font-size: 14px; }
#automatizacao .zc-ai-shell { padding: 26px; border: 1px solid var(--zc-line); border-radius: 22px; background: var(--zc-panel); box-shadow: 0 12px 34px rgba(12,39,38,.06); }
#automatizacao .zc-ai-status { display: flex; align-items: center; gap: 16px; min-height: 90px; padding: 18px 20px; border: 1px solid var(--zc-line); border-radius: 16px; background: var(--zc-soft); }
#automatizacao .zc-ai-status.is-active { border-color: color-mix(in srgb, var(--zc-success) 34%, var(--zc-line)); background: color-mix(in srgb, var(--zc-success) 9%, var(--zc-panel)); }
#automatizacao .zc-ai-status-icon { display: grid; flex: none; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--zc-panel); color: var(--zc-primary); }
#automatizacao .zc-ai-status-icon svg { width: 24px; height: 24px; }
#automatizacao .zc-ai-status-copy { flex: 1; min-width: 0; }
#automatizacao .zc-ai-status h2 { margin: 0 0 4px; color: var(--zc-ink); font-size: 17px; font-weight: 800; }
#automatizacao .zc-ai-status p { margin: 0; color: var(--zc-muted); font-size: 12px; line-height: 1.45; }
#automatizacao .zc-ai-status label { flex: none; }
#automatizacao .zc-ai-tabs { display: flex; gap: 6px; margin: 22px 0; padding: 5px; overflow-x: auto; border: 1px solid var(--zc-line); border-radius: 13px; background: var(--zc-soft); scrollbar-width: thin; }
#automatizacao .zc-ai-tab { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 40px; padding: 9px 14px; border-radius: 9px; color: var(--zc-muted); font-size: 12px; font-weight: 750; white-space: nowrap; transition: color .15s, background .15s, box-shadow .15s; }
#automatizacao .zc-ai-tab:hover { color: var(--zc-primary); background: var(--zc-panel); }
#automatizacao .zc-ai-tab.is-active { color: var(--zc-primary); background: var(--zc-panel); box-shadow: 0 2px 8px rgba(12,39,38,.1), inset 0 -2px 0 var(--zc-accent); }
#automatizacao .zc-ai-tab svg { width: 15px; height: 15px; margin: 0; }
#automatizacao .zc-ai-primary-button,
#automatizacao .zc-ai-prompt-preview > button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 41px; padding: 10px 16px; border-radius: 10px; background: #0d6b65; color: #fff; font-size: 12px; font-weight: 800; white-space: nowrap; }
#automatizacao .zc-ai-primary-button:hover,
#automatizacao .zc-ai-prompt-preview > button:hover { background: #095750; }
#automatizacao .zc-ai-overview.hidden,
#automatizacao #painel-ia-config.hidden,
#automatizacao #painel-ia-conhecimento.hidden,
#automatizacao #painel-ia-prompt.hidden,
#automatizacao #painel-ia-teste.hidden { display: none; }
#automatizacao .zc-ai-overview-intro { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px; border: 1px solid var(--zc-line); border-radius: 16px; background: linear-gradient(115deg, var(--zc-soft), var(--zc-panel)); }
#automatizacao .zc-ai-overview-intro h2 { margin: 5px 0; color: var(--zc-ink); font-size: 22px; font-weight: 800; letter-spacing: -.025em; }
#automatizacao .zc-ai-overview-intro p { margin: 0; color: var(--zc-muted); font-size: 13px; }
#automatizacao .zc-ai-metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin: 17px 0; }
#automatizacao .zc-ai-metric { display: flex; flex-direction: column; min-width: 0; min-height: 125px; padding: 18px; border: 1px solid var(--zc-line); border-radius: 14px; background: var(--zc-panel); }
#automatizacao .zc-ai-metric span { color: var(--zc-muted); font-size: 12px; font-weight: 700; }
#automatizacao .zc-ai-metric strong { overflow: hidden; margin: 12px 0 4px; color: var(--zc-ink); font-size: 19px; font-weight: 850; line-height: 1.18; text-overflow: ellipsis; white-space: nowrap; }
#automatizacao .zc-ai-metric small { color: var(--zc-muted); font-size: 11px; }
#automatizacao .zc-ai-overview-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(260px,.8fr); gap: 16px; }
#automatizacao .zc-ai-example,
#automatizacao .zc-ai-shortcuts { min-width: 0; padding: 20px; border: 1px solid var(--zc-line); border-radius: 15px; background: var(--zc-panel); }
#automatizacao .zc-ai-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#automatizacao .zc-ai-card-heading h3,
#automatizacao .zc-ai-shortcuts h3 { margin: 0 0 13px; color: var(--zc-ink); font-size: 15px; font-weight: 800; }
#automatizacao .zc-ai-card-heading span { color: var(--zc-muted); font-size: 10px; white-space: nowrap; }
#automatizacao .zc-ai-example-chat { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; padding: 18px; border-radius: 12px; background: var(--zc-soft); }
#automatizacao .zc-ai-example-chat p { max-width: 85%; margin: 0; padding: 10px 12px; border: 1px solid var(--zc-line); border-radius: 12px; color: var(--zc-ink); font-size: 12px; line-height: 1.5; }
#automatizacao .zc-ai-example-chat .zc-ai-example-customer { background: var(--zc-panel); }
#automatizacao .zc-ai-example-chat .zc-ai-example-assistant { align-self: flex-end; border-color: color-mix(in srgb, var(--zc-primary) 25%, var(--zc-line)); background: var(--zc-bubble-out); }
#automatizacao .zc-ai-note { margin: 11px 0 0; color: var(--zc-muted); font-size: 11px; }
#automatizacao .zc-ai-shortcuts button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 43px; padding: 8px 0; border-top: 1px solid var(--zc-line); color: var(--zc-ink); font-size: 12px; font-weight: 700; text-align: left; }
#automatizacao .zc-ai-shortcuts button:hover { color: var(--zc-primary); }
#automatizacao .zc-ai-shortcuts button span { color: var(--zc-primary); font-size: 18px; }
#automatizacao #painel-ia-config:not(.hidden) { display: flex; flex-direction: column; }
#automatizacao .zc-ai-step-heading { display: flex; align-items: center; gap: 12px; margin: 16px 0 12px; }
#automatizacao .zc-ai-step-heading > span { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--zc-accent); color: #183c39; font-size: 14px; font-weight: 900; }
#automatizacao .zc-ai-step-heading h2 { margin: 0; color: var(--zc-ink); font-size: 17px; font-weight: 800; }
#automatizacao .zc-ai-step-heading p { margin: 1px 0 0; color: var(--zc-muted); font-size: 12px; }
#automatizacao .zc-ai-step-one { order: 1; margin-top: 0; }
#automatizacao .zc-ai-config-provider { order: 2; }
#automatizacao .zc-ai-config-keys { order: 3; }
#automatizacao .zc-ai-config-model { order: 4; }
#automatizacao .zc-ai-step-two { order: 5; }
#automatizacao .zc-ai-config-memory { order: 6; }
#automatizacao .zc-ai-config-fragment { order: 7; }
#automatizacao .zc-ai-config-voz { order: 7; }
#automatizacao .zc-ai-step-three { order: 8; }
#automatizacao .zc-ai-config-scope { order: 9; }
#automatizacao .zc-ai-config-numbers { order: 10; }
#automatizacao .zc-ai-config-provider,
#automatizacao .zc-ai-config-keys,
#automatizacao .zc-ai-config-model,
#automatizacao .zc-ai-config-memory,
#automatizacao .zc-ai-config-fragment,
#automatizacao .zc-ai-config-voz,
#automatizacao .zc-ai-config-scope,
#automatizacao .zc-ai-config-numbers { margin: 0 0 10px !important; padding: 18px !important; border: 1px solid var(--zc-line) !important; border-radius: 13px; background: var(--zc-soft); }
#automatizacao .zc-ai-config-provider > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
#automatizacao .zc-ai-config-provider .ia-provedor-opcao { min-height: 58px; background: var(--zc-panel); }
#automatizacao .zc-ai-config-keys { display: block; }
#automatizacao .zc-ai-config-keys > div:not(.hidden) { max-width: 550px; }
#automatizacao .zc-ai-config-memory h3,
#automatizacao .zc-ai-config-fragment h3 { font-size: 15px; }
#automatizacao .zc-ai-config-scope > div { gap: 9px; }
#automatizacao .zc-ai-config-scope > div > label { flex: 1 1 170px; justify-content: center; background: var(--zc-panel); }
#automatizacao .zc-ai-config-scope > div > label:has(input:checked) { border-color: var(--zc-primary); color: var(--zc-primary); background: var(--zc-panel); }
#automatizacao .zc-ai-config-numbers:not(.hidden) { display: block; }
#automatizacao .zc-ai-knowledge > h3 { margin-bottom: 4px; font-size: 20px; }
#automatizacao .zc-ai-knowledge > p { max-width: 780px; line-height: 1.5; }
#automatizacao .zc-ai-knowledge-layout { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1fr) minmax(210px,.72fr); gap: 14px; align-items: start; }
#automatizacao .zc-ai-knowledge-form,
#automatizacao .zc-ai-knowledge-list,
#automatizacao .zc-ai-knowledge-help { min-width: 0; min-height: 100%; margin: 0; padding: 18px; border: 1px solid var(--zc-line); border-radius: 14px; background: var(--zc-panel); }
#automatizacao .zc-ai-knowledge-layout h4 { margin: 0 0 17px; color: var(--zc-ink); font-size: 15px; font-weight: 800; }
#automatizacao .zc-ai-knowledge-form > div:nth-of-type(2) { flex-direction: column; align-items: stretch; }
#automatizacao .zc-ai-knowledge-form > div:nth-of-type(2) > div { width: 100%; }
#automatizacao .zc-ai-knowledge-form > div:nth-of-type(2) > div > button { flex: 1; justify-content: center; }
#automatizacao .zc-ai-knowledge-form #btn-cadastrar-imagem-ia { width: 100%; }
#automatizacao .zc-ai-knowledge-list #lista-arquivos-ia { grid-template-columns: 1fr; }
#automatizacao .zc-ai-knowledge-help { background: color-mix(in srgb, var(--zc-accent) 9%, var(--zc-panel)); }
#automatizacao .zc-ai-knowledge-help ol { display: grid; gap: 19px; margin: 0; padding-left: 21px; color: var(--zc-accent-ink); }
#automatizacao .zc-ai-knowledge-help li { padding-left: 2px; }
#automatizacao .zc-ai-knowledge-help li strong { display: block; margin-bottom: 3px; color: var(--zc-ink); font-size: 12px; }
#automatizacao .zc-ai-knowledge-help li span { display: block; color: var(--zc-muted); font-size: 11px; line-height: 1.45; }
#automatizacao .zc-ai-prompt-layout { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(265px,.8fr); gap: 16px; align-items: start; }
#automatizacao .zc-ai-prompt-main,
#automatizacao .zc-ai-prompt-preview { min-width: 0; padding: 20px; border: 1px solid var(--zc-line); border-radius: 15px; background: var(--zc-panel); }
#automatizacao .zc-ai-prompt-main > div:first-child { margin-bottom: 0; }
#automatizacao .zc-ai-prompt-main > div:first-child > div:first-child { align-items: flex-start; }
#automatizacao .zc-ai-prompt-main > div:first-child label { color: var(--zc-ink); font-size: 17px; }
#automatizacao .zc-ai-prompt-preview { position: sticky; top: 12px; background: var(--zc-soft); }
#automatizacao .zc-ai-prompt-preview h3 { margin: 5px 0 6px; color: var(--zc-ink); font-size: 17px; font-weight: 800; }
#automatizacao .zc-ai-prompt-preview > p { margin: 0 0 15px; color: var(--zc-muted); font-size: 12px; line-height: 1.5; }
#automatizacao .zc-ai-prompt-preview > button { width: 100%; margin-top: 14px; }
#automatizacao .zc-ai-prompt-preview > button span { margin-left: auto; font-size: 16px; }
#automatizacao #painel-ia-teste { padding: 20px; border: 1px solid var(--zc-line); border-radius: 15px; background: var(--zc-panel); }
#automatizacao #painel-ia-teste h3 { color: var(--zc-ink); }
#automatizacao #footer-salvar-ia { margin-top: 16px; padding-top: 17px; border-top: 1px solid var(--zc-line); }
#automatizacao #footer-salvar-ia.hidden { display: none; }
@media (max-width: 1050px) { #automatizacao .zc-ai-knowledge-layout { grid-template-columns: repeat(2,minmax(0,1fr)); } #automatizacao .zc-ai-knowledge-help { grid-column: 1 / -1; min-height: 0; } #automatizacao .zc-ai-knowledge-help ol { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 760px) { #automatizacao { padding: 18px; } #automatizacao .zc-ai-shell { padding: 15px; } #automatizacao .zc-ai-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } #automatizacao .zc-ai-overview-grid, #automatizacao .zc-ai-prompt-layout, #automatizacao .zc-ai-knowledge-layout { grid-template-columns: 1fr; } #automatizacao .zc-ai-knowledge-help { grid-column: auto; } #automatizacao .zc-ai-knowledge-help ol { grid-template-columns: 1fr; } #automatizacao .zc-ai-prompt-preview { position: static; } }
@media (max-width: 540px) { #automatizacao .zc-ai-overview-intro { flex-direction: column; align-items: flex-start; } #automatizacao .zc-ai-status { gap: 10px; padding: 14px; } #automatizacao .zc-ai-status-icon { width: 38px; height: 38px; } #automatizacao .zc-ai-config-provider > div { grid-template-columns: 1fr; } #automatizacao .zc-ai-overview-intro .zc-ai-primary-button { width: 100%; } }

/* Respostas rápidas: configuração em duas funções e seletor de /atalhos no chat. */
#respostas .zc-replies-page { max-width: 1120px; }
#respostas .zc-replies-tabs { display: flex; gap: 5px; width: fit-content; max-width: 100%; overflow-x: auto; margin-bottom: 22px; padding: 5px; border: 1px solid var(--zc-line); border-radius: 14px; background: var(--zc-panel); }
#respostas .zc-replies-tabs button { flex: none; padding: 10px 16px; border-radius: 9px; color: var(--zc-muted); font-size: 13px; font-weight: 750; white-space: nowrap; }
#respostas .zc-replies-tabs button.is-active { color: var(--zc-primary); background: var(--zc-soft); box-shadow: inset 0 0 0 1px var(--zc-line); }
#respostas .zc-replies-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.85fr); gap: 20px; align-items: start; }
#respostas .zc-replies-grid.hidden { display: none; }
#respostas .zc-replies-card { min-width: 0; padding: 24px; border: 1px solid var(--zc-line); border-radius: 17px; background: var(--zc-panel); color: var(--zc-ink); box-shadow: 0 4px 15px rgba(12,39,38,.04); }
#respostas .zc-replies-card h2 { margin: 0 0 7px; font-size: 18px; font-weight: 800; }
#respostas .zc-replies-card > p { margin: 0 0 20px; color: var(--zc-muted); font-size: 13px; line-height: 1.55; }
#respostas .zc-replies-card > label:not(.zc-replies-toggle) { display: block; margin: 17px 0 8px; font-size: 12px; font-weight: 750; }
#respostas .zc-replies-card textarea,
#respostas .zc-replies-card input:not([type="checkbox"]):not([type="file"]),
#respostas .zc-replies-prefix { width: 100%; border: 1px solid var(--zc-line); border-radius: 10px; background: var(--zc-soft); color: var(--zc-ink); }
#respostas .zc-replies-card textarea { display: block; padding: 12px; resize: vertical; min-height: 145px; outline: none; }
#respostas .zc-replies-card input:not([type="checkbox"]):not([type="file"]) { padding: 10px 12px; outline: none; }
#respostas .zc-replies-prefix { display: flex; align-items: center; overflow: hidden; padding-left: 12px; color: var(--zc-primary); font-weight: 800; }
#respostas .zc-replies-prefix input { border: 0 !important; background: transparent !important; }
#respostas .zc-replies-card textarea:focus,
#respostas .zc-replies-card input:focus { border-color: var(--zc-primary); }
#respostas .zc-replies-actions { display: flex; align-items: center; gap: 9px; margin-top: 18px; }
#respostas .zc-replies-actions button:first-child { padding: 11px 16px; border-radius: 10px; background: #0d6b65; color: white; font-size: 13px; font-weight: 750; }
#respostas .zc-replies-actions button:last-child:not(:first-child) { color: var(--zc-muted); font-size: 13px; font-weight: 700; }
#respostas .zc-replies-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 0; border-top: 1px solid var(--zc-line); font-size: 13px; }
#respostas .zc-replies-row:first-child { border-top: 0; }
/* Contatos da equipe na lista de excluídos da resposta automática (respostas-rapidas.js) */
#respostas .zc-replies-equipe { margin-bottom: 6px; padding: 12px 14px; border: 1px solid var(--zc-line); border-radius: 12px; background: var(--zc-soft); font-size: 13px; }
#respostas .zc-replies-equipe-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#respostas .zc-replies-equipe-topo strong { color: var(--zc-primary); }
#respostas .zc-replies-equipe-topo button { flex: none; color: var(--zc-primary); font-size: 12px; font-weight: 700; text-decoration: underline; }
#respostas .zc-replies-equipe p { margin: 6px 0 0; color: var(--zc-muted); line-height: 1.4; }
#respostas .zc-replies-equipe + .zc-replies-row { border-top: 0; }
#respostas .zc-replies-row > div:first-child { min-width: 0; }
#respostas .zc-replies-row strong { color: var(--zc-primary); }
#respostas .zc-replies-row p { overflow: hidden; margin: 3px 0 0; color: var(--zc-muted); text-overflow: ellipsis; white-space: nowrap; max-width: 360px; }
#respostas .zc-replies-row button { flex: none; color: var(--zc-primary); font-size: 12px; font-weight: 750; }
#respostas .zc-replies-row-actions { display: flex; gap: 10px; }
#respostas .zc-replies-row-actions button:last-child { color: #c53030; }
#respostas .zc-replies-toggle { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; background: var(--zc-soft); font-size: 13px; font-weight: 750; }
#respostas .zc-replies-toggle input { accent-color: var(--zc-primary); }
#respostas .zc-replies-upload { display: flex; align-items: center; gap: 12px; min-height: 52px; min-width: 0; padding: 7px; border: 1px solid var(--zc-line); border-radius: 11px; background: var(--zc-soft); }
#respostas .zc-replies-upload-button { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: 8px; background: var(--zc-primary); color: #fff; font-size: 12px; font-weight: 750; cursor: pointer; transition: background .15s ease; }
#respostas .zc-replies-upload-button:hover { background: var(--zc-primary-hover, #095650); }
#respostas .zc-replies-upload-button svg { width: 17px; height: 17px; }
#respostas .zc-replies-upload input:focus-visible + .zc-replies-upload-button { outline: 2px solid var(--zc-primary); outline-offset: 3px; }
#respostas .zc-replies-upload-name { min-width: 0; overflow: hidden; color: var(--zc-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
#respostas .zc-replies-interval { display: flex; align-items: center; gap: 9px; max-width: 190px; }
#respostas .zc-replies-interval input { width: 105px !important; }
#respostas .zc-replies-interval span { color: var(--zc-muted); font-size: 12px; }
/* Várias imagens (25/11/2026): uma miniatura por imagem, numerada na ordem de envio */
#respostas .zc-replies-image-preview { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin-top: 12px; }
#respostas .zc-replies-image-preview.hidden { display: none; }
#respostas .zc-replies-image-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; }
#respostas .zc-replies-image-item img { width: 96px; height: 76px; object-fit: cover; border-radius: 9px; }
#respostas .zc-replies-image-ordem { position: absolute; top: 5px; left: 5px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: rgba(0,0,0,.62); color: #fff; font-size: 11px; font-weight: 800; }
#respostas .zc-replies-image-item button { color: #c53030; font-size: 12px; font-weight: 700; }
#respostas .zc-replies-upload-button.is-disabled { opacity: .45; cursor: not-allowed; }
#respostas .zc-replies-search { display: flex; gap: 8px; }
#respostas .zc-replies-search input { min-width: 0; flex: 1; }
#respostas .zc-replies-search button { flex: none; padding: 8px 11px; border-radius: 9px; background: #0d6b65; color: #fff; font-size: 12px; font-weight: 750; }
#respostas .zc-replies-search button:disabled { opacity: .45; cursor: not-allowed; }
#respostas .zc-replies-suggestions { max-height: 260px; overflow-y: auto; margin-top: 8px; padding: 5px; border: 1px solid var(--zc-line); border-radius: 10px; background: var(--zc-panel); }
#respostas .zc-replies-suggestions.hidden { display: none; }
#respostas .zc-replies-suggestions button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 8px; text-align: left; }
#respostas .zc-replies-suggestions button:hover { background: var(--zc-soft); }
#respostas .zc-replies-contact-avatar { position: relative; display: grid; flex: none; place-items: center; width: 40px; height: 40px; overflow: hidden; border: 1px solid var(--zc-line); border-radius: 50%; background: var(--zc-soft); color: var(--zc-primary); font-size: 14px; font-weight: 800; }
#respostas .zc-replies-contact-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#respostas .zc-replies-contact-info { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
#respostas .zc-replies-contact-info > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#respostas .zc-replies-suggestions strong { color: var(--zc-ink); font-size: 13px; }
#respostas .zc-replies-suggestions span { color: var(--zc-muted); font-size: 11px; }
#respostas .zc-replies-subtitle { margin: 22px 0 8px; padding-top: 18px; border-top: 1px solid var(--zc-line); font-size: 14px; font-weight: 800; }
.zc-modern .zc-quick-picker { position: absolute; left: 80px; bottom: calc(100% + 7px); z-index: 55; width: min(410px, calc(100% - 92px)); max-height: 270px; overflow-y: auto; padding: 6px; border: 1px solid var(--zc-line); border-radius: 12px; background: var(--zc-panel); box-shadow: 0 12px 28px rgba(13,55,52,.2); }
.zc-modern .zc-quick-picker.hidden { display: none; }
.zc-modern .zc-quick-picker button { display: flex; flex-direction: column; width: 100%; gap: 3px; padding: 9px 11px; border-radius: 8px; text-align: left; }
.zc-modern .zc-quick-picker button:hover,
.zc-modern .zc-quick-picker button[aria-selected="true"] { background: var(--zc-soft); }
.zc-modern .zc-quick-picker strong { color: var(--zc-primary); font-size: 13px; }
.zc-modern .zc-quick-picker span { overflow: hidden; max-width: 100%; color: var(--zc-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
/* Marcar integrante com @ nos grupos (public/mencoes.js). A lista reaproveita o
   .zc-quick-picker das respostas rápidas, com a linha em avatar + nome. */
.zc-modern .zc-mention-picker button { flex-direction: row; align-items: center; gap: 10px; padding: 7px 10px; }
.zc-modern .zc-mention-picker .zc-mention-info { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.zc-modern .zc-mention-picker .zc-mention-info strong { overflow: hidden; color: var(--zc-ink); font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.zc-modern .zc-mention-picker .zc-mention-info small { overflow: hidden; color: var(--zc-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.zc-modern .zc-mention-picker .zc-mention-vazio { margin: 0; padding: 9px 11px; color: var(--zc-muted); font-size: 12px; }
/* Menção na bolha: igual o WhatsApp, o @nome na cor de destaque */
.zc-modern .zc-mencao { color: var(--zc-primary); font-weight: 600; }
/* Na caixa de mensagem: camada atrás do textarea com o mesmo texto transparente e o
   @nome marcado. O textarea já é bg-transparent e sobe por cima dela. */
.zc-mencao-host { position: relative; }
.zc-mencao-fundo { position: absolute; z-index: 0; box-sizing: border-box; overflow: hidden; margin: 0; border: 0; color: transparent; white-space: pre-wrap; overflow-wrap: break-word; word-break: break-word; pointer-events: none; }
.zc-mencao-fundo mark { border-radius: 4px; background: rgba(13, 107, 101, .16); color: transparent; }
.dark .zc-mencao-fundo mark { background: rgba(105, 194, 180, .24); }
#input-texto-chat.zc-mencao-por-cima { position: relative; z-index: 1; }
@media (max-width: 900px) { #respostas .zc-replies-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) { #respostas { padding: 18px; } #respostas .zc-replies-upload { flex-wrap: wrap; } .zc-modern .zc-quick-picker { left: 10px; width: calc(100% - 20px); } }

/* ===== ZOOM DA IMAGEM ABERTA (enviada, recebida e foto de perfil) ===== */
/* A area pega a tela inteira e corta o que passar dela; touch-action: none entrega a
   pinca pros nossos handlers em vez de virar zoom da pagina no celular. */
#modal-midia .zc-zoom-area { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; overflow: hidden; touch-action: none; }
#modal-midia .zc-zoom-img { max-width: 90vw; max-height: 90vh; padding: 4px; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; background: rgba(0,0,0,.5); box-shadow: 0 25px 50px -12px rgba(0,0,0,.6); object-fit: contain; cursor: zoom-in; transform-origin: center center; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
#modal-midia .zc-zoom-img.ampliada { cursor: grab; }
#modal-midia .zc-zoom-img.ampliada:active { cursor: grabbing; }
/* Barra flutuante embaixo. O :not(.hidden) deixa o display:none do Tailwind mandar
   quando a midia aberta e video, que nao tem zoom. */
#modal-midia .zc-zoom-barra:not(.hidden) { position: absolute; bottom: 24px; left: 50%; z-index: 50; display: flex; align-items: center; gap: 4px; padding: 6px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); transform: translateX(-50%); }
/* O id na frente vence a regra de botao-com-icone do icons.css, que pontua (0,2,1). */
#modal-midia .zc-zoom-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: rgba(255,255,255,.75); transition: background .15s, color .15s; }
#modal-midia .zc-zoom-btn:hover { background: rgba(255,255,255,.14); color: #fff; }
#modal-midia .zc-zoom-nivel { min-width: 52px; color: rgba(255,255,255,.85); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; }
@media (max-width: 680px) { #modal-midia .zc-zoom-barra:not(.hidden) { bottom: 16px; } #modal-midia .zc-zoom-btn { width: 44px; height: 44px; } }
/* Setas pras outras fotos da conversa (passarFotoMidia no app.js). O #modal-midia na frente
   vence a regra de botão com ícone do icons.css, que esconderia o .hidden de outro jeito. */
#modal-midia .zc-galeria-seta { position: absolute; top: 50%; z-index: 50; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.55); color: rgba(255,255,255,.8); transform: translateY(-50%); transition: background .15s, color .15s; }
#modal-midia .zc-galeria-seta:hover { background: rgba(0,0,0,.85); color: #fff; }
#modal-midia .zc-galeria-seta.hidden { display: none; }
#modal-midia .zc-galeria-anterior { left: 24px; }
#modal-midia .zc-galeria-proxima { right: 24px; }
#modal-midia .zc-galeria-contador { position: absolute; top: 30px; left: 50%; z-index: 50; padding: 6px 14px; border-radius: 999px; background: rgba(0,0,0,.55); color: rgba(255,255,255,.85); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; transform: translateX(-50%); }
#modal-midia .zc-galeria-contador.hidden { display: none; }
@media (max-width: 680px) { #modal-midia .zc-galeria-anterior { left: 8px; } #modal-midia .zc-galeria-proxima { right: 8px; } #modal-midia .zc-galeria-seta { width: 44px; height: 44px; } }

/* ===== MENU DO BOTAO DIREITO NA MENSAGEM ===== */
/* Fixed e no nivel da pagina: dentro da area que rola ele seria cortado. O id na
   frente vence a regra de botao-com-icone do icons.css, que pontua (0,2,1). */
/* O menu da lista de conversas (#menu-conversa) usa o mesmo visual. */
:is(#menu-mensagem, #menu-conversa).zc-msg-menu { position: fixed; z-index: 240; min-width: 196px; padding: 6px; border: 1px solid var(--zc-line); border-radius: 12px; background: var(--zc-panel); box-shadow: 0 16px 36px rgba(13,55,52,.24); }
:is(#menu-mensagem, #menu-conversa).zc-msg-menu.hidden { display: none; }
:is(#menu-mensagem, #menu-conversa).zc-msg-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 8px; color: var(--zc-ink); font-size: 13.5px; font-weight: 600; text-align: left; }
:is(#menu-mensagem, #menu-conversa).zc-msg-menu button:hover,
:is(#menu-mensagem, #menu-conversa).zc-msg-menu button:focus-visible { background: var(--zc-soft); outline: none; }
:is(#menu-mensagem, #menu-conversa).zc-msg-menu button svg { color: var(--zc-muted); font-size: 17px; }
#menu-conversa.zc-msg-menu { min-width: 220px; }
:is(#menu-mensagem, #menu-conversa).zc-msg-menu button.perigo,
:is(#menu-mensagem, #menu-conversa).zc-msg-menu button.perigo svg { color: #dc2626; }
:is(#menu-mensagem, #menu-conversa).zc-msg-menu button.perigo:hover { background: rgba(220,38,38,.1); }

/* ===== MODO DE SELECAO DE MENSAGENS ===== */
/* A bolinha entra como primeiro filho da linha da mensagem, entao aparece a esquerda
   tanto na minha bolha (justify-end) quanto na recebida, igual o WhatsApp. */
.zc-sel-check { display: grid; flex: none; align-self: center; place-items: center; width: 22px; height: 22px; margin-right: 2px; border: 2px solid var(--zc-muted); border-radius: 50%; color: transparent; font-size: 12px; transition: background .12s, border-color .12s, color .12s; }
.msg-selecionada .zc-sel-check { border-color: var(--zc-primary); background: var(--zc-primary); color: #fff; }
#area-mensagens.modo-selecao .zc-msg-linha { cursor: pointer; border-radius: 12px; padding: 2px 4px; }
#area-mensagens.modo-selecao .zc-msg-linha:hover { background: rgba(13,107,101,.07); }
#area-mensagens.modo-selecao .msg-selecionada { background: rgba(13,107,101,.13); }
/* Em selecao o clique marca a mensagem, entao os botoes de hover saem da frente */
#area-mensagens.modo-selecao .reply-btn,
#area-mensagens.modo-selecao .react-btn,
#area-mensagens.modo-selecao .transcrever-btn,
#area-mensagens.modo-selecao [data-btn-apagar] { display: none; }

/* Barra do modo de selecao, flutuando sobre a conversa */
#barra-selecao.zc-sel-barra { position: fixed; bottom: 26px; left: 50%; z-index: 210; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 24px); box-sizing: border-box; padding: 9px 12px 9px 9px; border: 1px solid var(--zc-line); border-radius: 999px; background: var(--zc-panel); box-shadow: 0 14px 34px rgba(13,55,52,.26); transform: translateX(-50%); }
#barra-selecao.zc-sel-barra.hidden { display: none; }
#barra-selecao .zc-sel-sair { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: var(--zc-muted); }
#barra-selecao .zc-sel-sair:hover { background: var(--zc-soft); color: var(--zc-ink); }
#barra-selecao .zc-sel-contador { color: var(--zc-ink); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
#barra-selecao .zc-sel-encaminhar { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; background: var(--zc-primary); color: #fff; font-size: 13.5px; font-weight: 700; }
#barra-selecao .zc-sel-encaminhar:hover { background: var(--zc-primary-hover); }
#barra-selecao .zc-sel-encaminhar:disabled { opacity: .45; cursor: not-allowed; }

/* ===== JANELA DE ENCAMINHAR ===== */
/* O Tailwind gerado nao contem z-[260]; sem esta regra o modal fica atras
   do cabecalho, da navegacao e da barra de selecao. */
#modal-encaminhar { z-index: 260; }
#modal-encaminhar .zc-fwd-box { display: flex; flex-direction: column; width: min(460px, calc(100vw - 32px)); max-height: min(660px, calc(100vh - 64px)); overflow: hidden; border: 1px solid var(--zc-line); border-radius: 16px; background: var(--zc-panel); box-shadow: 0 24px 60px rgba(13,55,52,.3); }
#modal-encaminhar .zc-fwd-topo { display: flex; align-items: center; gap: 14px; padding: 16px 18px 12px; }
#modal-encaminhar .zc-fwd-topo button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; color: var(--zc-muted); }
#modal-encaminhar .zc-fwd-topo button:hover { background: var(--zc-soft); color: var(--zc-ink); }
#modal-encaminhar .zc-fwd-topo h3 { color: var(--zc-ink); font-size: 16px; font-weight: 800; }
#modal-encaminhar .zc-fwd-busca { position: relative; display: flex; align-items: center; margin: 0 18px 10px; }
#modal-encaminhar .zc-fwd-busca svg { position: absolute; left: 13px; color: var(--zc-muted); font-size: 16px; pointer-events: none; }
#modal-encaminhar .zc-fwd-busca input { width: 100%; padding: 11px 14px 11px 38px; border: 1px solid var(--zc-line); border-radius: 10px; background: var(--zc-soft); color: var(--zc-ink); font-size: 13.5px; }
#modal-encaminhar .zc-fwd-busca input:focus { outline: none; border-color: var(--zc-primary); }
#modal-encaminhar .zc-fwd-secao { padding: 4px 18px 6px; color: var(--zc-muted); font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
#modal-encaminhar .zc-fwd-lista { flex: 1; min-height: 120px; overflow-y: auto; padding: 0 10px 8px; }
#modal-encaminhar .zc-fwd-vazio { padding: 26px 12px; color: var(--zc-muted); font-size: 13px; text-align: center; }
#modal-encaminhar .zc-fwd-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 10px; border-radius: 10px; text-align: left; }
#modal-encaminhar .zc-fwd-item:hover { background: var(--zc-soft); }
#modal-encaminhar .zc-fwd-item.escolhido { background: rgba(13,107,101,.12); }
#modal-encaminhar .zc-fwd-check { display: grid; flex: none; place-items: center; width: 21px; height: 21px; border: 2px solid var(--zc-muted); border-radius: 50%; color: transparent; font-size: 11px; }
#modal-encaminhar .zc-fwd-item.escolhido .zc-fwd-check { border-color: var(--zc-primary); background: var(--zc-primary); color: #fff; }
#modal-encaminhar .zc-fwd-foto { display: grid; flex: none; place-items: center; width: 40px; height: 40px; overflow: hidden; border: 1px solid var(--zc-line); border-radius: 50%; background: var(--zc-soft); object-fit: cover; }
#modal-encaminhar .zc-fwd-inicial { color: var(--zc-primary); font-size: 15px; font-weight: 800; }
#modal-encaminhar .zc-fwd-info { display: flex; flex: 1; flex-direction: column; min-width: 0; gap: 2px; }
#modal-encaminhar .zc-fwd-info > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#modal-encaminhar .zc-fwd-info strong { color: var(--zc-ink); font-size: 13.5px; }
#modal-encaminhar .zc-fwd-info span { color: var(--zc-muted); font-size: 11.5px; }
#modal-encaminhar .zc-fwd-chip { flex: none; padding: 2px 7px; border: 1px solid; border-radius: 5px; font-size: 9.5px; font-weight: 800; text-transform: uppercase; }
#modal-encaminhar .zc-fwd-rodape { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--zc-line); background: var(--zc-soft); }
#modal-encaminhar .zc-fwd-escolhidos { overflow: hidden; color: var(--zc-muted); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
#modal-encaminhar .zc-fwd-rodape button { display: inline-flex; flex: none; align-items: center; gap: 7px; padding: 10px 18px; border-radius: 999px; background: var(--zc-primary); color: #fff; font-size: 13.5px; font-weight: 700; }
#modal-encaminhar .zc-fwd-rodape button:hover:not(:disabled) { background: var(--zc-primary-hover); }
#modal-encaminhar .zc-fwd-rodape button:disabled { opacity: .45; cursor: not-allowed; }

/* Etiqueta de mensagem encaminhada, em cima do conteudo da bolha */
.zc-msg-encaminhada { display: flex; align-items: center; gap: 5px; margin-bottom: 4px; opacity: .75; font-size: 11.5px; font-style: italic; font-weight: 600; }
/* Topo da conversa: "Início da Conversa" e o botão que pede ao celular as mensagens
   anteriores aos 90 dias que o pareamento traz (buscarHistoricoNoCelular no app.js). */
.zc-inicio-conversa { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 16px auto; text-align: center; }
.zc-inicio-conversa-rotulo { display: inline-block; padding: 4px 16px; border-radius: 999px; background: var(--zc-soft); border: 1px solid var(--zc-line); color: var(--zc-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.zc-inicio-conversa-aviso { color: var(--zc-muted); font-size: 12px; }
.zc-modern .zc-inicio-conversa .zc-btn-historico-celular { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--zc-primary); background: var(--zc-panel); color: var(--zc-primary); font-size: 12.5px; font-weight: 600; cursor: pointer; }
.zc-modern .zc-inicio-conversa .zc-btn-historico-celular:hover:not(:disabled) { background: var(--zc-primary); color: var(--zc-panel); }
.zc-modern .zc-inicio-conversa .zc-btn-historico-celular:disabled { opacity: .6; cursor: wait; }
/* Bolha que é só um telefone: botão que abre a conversa com o número (telefoneDoTexto no app.js). */
.zc-modern .chat-bubble .zc-btn-conversar-numero { display: flex; align-items: center; justify-content: center; gap: 6px; width: max-content; min-width: 100%; margin-top: 8px; padding: 7px 14px; border-radius: 10px; border: 1px solid var(--zc-primary); background: transparent; color: var(--zc-primary); font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
/* O max-w-[75%] da bolha é medido sobre a própria largura dela e cortaria o botão, que não quebra linha. */
.zc-modern .chat-bubble:has(> .zc-btn-conversar-numero) { min-width: min-content; }
.zc-modern .chat-bubble .zc-btn-conversar-numero:hover { background: var(--zc-primary); color: var(--zc-panel); }
.zc-modern .chat-bubble .zc-btn-conversar-numero svg { width: 15px; height: 15px; flex-shrink: 0; }

@media (max-width: 680px) {
    #barra-selecao.zc-sel-barra { bottom: max(16px, env(safe-area-inset-bottom)); width: calc(100vw - 24px); justify-content: space-between; }
    #modal-encaminhar .zc-fwd-box { max-height: calc(100vh - 32px); }
}
@media (max-width: 380px) {
    #barra-selecao.zc-sel-barra { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 6px 10px; border-radius: 18px; }
    #barra-selecao .zc-sel-encaminhar { grid-column: 1 / -1; justify-content: center; width: 100%; }
}

/* ===== Arquivar, fixar, silenciar e não lida (botão direito na lista, app.js) ===== */
.zc-modern .zc-estado-conversa { display: inline-flex; color: var(--zc-muted); font-size: 14px; }
.zc-modern .zc-ponto-nao-lida { width: 12px; height: 12px; border-radius: 999px; background: var(--zc-primary); }
/* Silenciada: o número fica cinza, igual o WhatsApp (vale também pro que o tempo real cria) */
.zc-modern .chat-list-item[data-silenciada="1"] [id^="badge-area-"] .bg-brand-primary,
.zc-modern .chat-list-item[data-silenciada="1"] .zc-ponto-nao-lida { background: #8a9e9b; }
.zc-modern .zc-selo-arquivada { display: inline-block; padding: 2px 6px; border: 1px solid var(--zc-line); border-radius: 4px; background: var(--zc-soft); color: var(--zc-muted); font-size: 9px; font-weight: 700; text-transform: uppercase; }
/* Pesquisa e filtro de tag trazem conversas de todas as abas: o selo diz em qual ela está */
.zc-modern .zc-selo-status { display: inline-block; padding: 2px 6px; border: 1px solid var(--zc-line); border-radius: 4px; background: var(--zc-soft); color: var(--zc-primary); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.zc-modern .zc-selo-status[data-status="aguardando"] { color: var(--zc-accent-ink); }
.zc-modern .zc-selo-status[data-status="resolvidas"] { color: var(--zc-muted); }
.zc-modern .zc-selo-status[data-status="ia"] { color: var(--zc-accent-ink); border-color: var(--zc-accent); }

/* Linha "Arquivadas" no topo da lista. O .hidden precisa do nível a mais: a regra de
   display daqui pontua mais que o .hidden do Tailwind. */
.zc-modern .zc-arquivadas { display: flex; flex-shrink: 0; align-items: center; gap: 12px; margin: 8px 9px 0; padding: 10px 12px; border: 1px solid transparent; border-radius: 13px; color: var(--zc-ink); font-size: 13.5px; font-weight: 700; text-align: left; transition: background-color .15s; }
.zc-modern .zc-arquivadas.hidden { display: none; }
.zc-modern .zc-arquivadas:hover,
.zc-modern .zc-arquivadas:focus-visible { background: var(--zc-soft); outline: none; }
.zc-modern .zc-arquivadas.aberta { border-color: var(--zc-line); background: var(--zc-soft); }
.zc-modern .zc-arquivadas-icone { display: flex; justify-content: center; width: 48px; color: var(--zc-primary); font-size: 20px; }
.zc-modern .zc-arquivadas-titulo { flex: 1; min-width: 0; }
.zc-modern .zc-arquivadas-qtd { color: var(--zc-muted); font-size: 11px; font-weight: 700; }
.zc-modern .zc-arquivadas-qtd.tem-nova { padding: 2px 8px; border-radius: 999px; background: var(--zc-primary); color: var(--zc-panel); }

/* Fotos dos números conectados no avatar do perfil, revezando (montarFotosChipsPerfil) */
.zc-modern #user-avatar-sidebar { position: relative; overflow: hidden; }
.zc-modern #user-avatar-sidebar .zc-foto-chip-perfil { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.zc-modern #user-avatar-sidebar .zc-foto-chip-perfil.ativa { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .zc-modern #user-avatar-sidebar .zc-foto-chip-perfil { transition: none; }
}

/* ============================================================
   DASHBOARD (public/dashboard.js)
   Tudo escrito à mão aqui, sem classe nova do Tailwind. Os seletores levam
   .zc-modern .zc-dash .alguma-coisa (3 classes) de propósito: a regra de botão com
   ícone do icons.css pontua (0,2,1) e venceria um .zc-modern .alguma-coisa (0,2,0).

   Cores dos gráficos: dois tons conferidos no validador do guia de visualização, um
   por série. Os tons puros da paleta reprovam (croma baixo no claro, claros demais no
   escuro), então o painel tem os seus. Texto nunca sai na cor da série.
   ============================================================ */
.zc-modern .zc-dash {
    --zc-dash-s1: #0a8d83;
    --zc-dash-s2: #986a28;
    --zc-dash-grade: #e3ebe8;
    --zc-dash-fundo: #ffffff;
    --zc-dash-altura: 190px;
    max-width: 1400px;
    margin: 0 auto;
    color: var(--zc-ink);
    transition: opacity .18s ease;
}
.dark .zc-modern .zc-dash {
    --zc-dash-s1: #289a8c;
    --zc-dash-s2: #b38644;
    --zc-dash-grade: #2d4e4d;
    --zc-dash-fundo: #173235;
}
/* Recarregando: o painel anterior continua lá, só mais apagado (nada de esqueleto piscando) */
.zc-modern .zc-dash.recarregando { opacity: .55; pointer-events: none; }

/* ---------- barra de filtros ---------- */
.zc-modern .zc-dash .zc-dash-topo { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.zc-modern .zc-dash .zc-dash-titulo h1 { display: flex; align-items: center; gap: 12px; font-size: 28px; font-weight: 800; }
.zc-modern .zc-dash .zc-dash-titulo h1 svg { color: var(--zc-primary); }
.zc-modern .zc-dash .zc-dash-titulo p { margin-top: 4px; color: var(--zc-muted); font-size: 13.5px; }
.zc-modern .zc-dash .zc-dash-controles { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.zc-modern .zc-dash .zc-dash-periodos { display: inline-flex; padding: 3px; border: 1px solid var(--zc-line); border-radius: 12px; background: var(--zc-panel); }
.zc-modern .zc-dash .zc-dash-pilula { padding: 7px 14px; border-radius: 9px; color: var(--zc-muted); font-size: 13px; font-weight: 700; transition: background-color .15s, color .15s; }
.zc-modern .zc-dash .zc-dash-pilula:hover { color: var(--zc-ink); }
.zc-modern .zc-dash .zc-dash-pilula.ativa { background: var(--zc-primary); color: #fff; }
.dark .zc-modern .zc-dash .zc-dash-pilula.ativa { color: #0e2325; }
.zc-modern .zc-dash .zc-dash-botao { gap: 8px; padding: 8px 14px; border: 1px solid var(--zc-line); border-radius: 12px; background: var(--zc-panel); color: var(--zc-ink); font-size: 13px; font-weight: 700; transition: border-color .15s, background-color .15s; }
.zc-modern .zc-dash .zc-dash-botao:hover { border-color: var(--zc-primary); background: var(--zc-soft); }
.zc-modern .zc-dash .zc-dash-seta { font-size: 11px; color: var(--zc-muted); }
.zc-modern .zc-dash .zc-dash-conexoes { position: relative; }
.zc-modern .zc-dash .zc-dash-painel-conexoes { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; display: flex; flex-direction: column; gap: 2px; width: min(250px, calc(100vw - 32px)); max-height: 320px; overflow-y: auto; padding: 8px; border: 1px solid var(--zc-line); border-radius: 14px; background: var(--zc-panel); box-shadow: 0 12px 32px rgba(10, 40, 38, .18); }
.zc-modern .zc-dash .zc-dash-painel-conexoes.hidden { display: none; }
.zc-modern .zc-dash .zc-dash-opcao { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 9px; font-size: 13px; cursor: pointer; }
.zc-modern .zc-dash .zc-dash-opcao:hover { background: var(--zc-soft); }
.zc-modern .zc-dash .zc-dash-opcao input { accent-color: var(--zc-primary); }
.zc-modern .zc-dash .zc-dash-opcao span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zc-modern .zc-dash .zc-dash-ponto { width: 8px; height: 8px; border-radius: 999px; background: #9aaaa7; flex-shrink: 0; }
.zc-modern .zc-dash .zc-dash-ponto.online { background: #1f9d55; }
.zc-modern .zc-dash .zc-dash-plat.whatsapp { color: #25d366; }
.zc-modern .zc-dash .zc-dash-plat.facebook { color: #1877f2; }
.zc-modern .zc-dash .zc-dash-plat.instagram { color: #d62976; }
.zc-modern .zc-dash .zc-dash-relogio { color: var(--zc-muted); font-size: 12px; }
.zc-modern .zc-dash .zc-dash-link { color: var(--zc-primary); font-size: 12.5px; font-weight: 700; text-align: left; }
.zc-modern .zc-dash .zc-dash-link:hover { text-decoration: underline; }

/* ---------- seções, cartões e painéis ---------- */
.zc-modern .zc-dash .zc-dash-secao { margin-bottom: 28px; }
.zc-modern .zc-dash .zc-dash-secao-tit { margin-bottom: 12px; color: var(--zc-muted); font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
/* O min() nos minmax é o que deixa a grade encolher em tela estreita: com um valor fixo
   a faixa vira o piso e o painel inteiro fica mais largo que a janela. */
.zc-modern .zc-dash .zc-dash-cartoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 12px; margin-bottom: 16px; }
.zc-modern .zc-dash .zc-dash-cartoes.compacto { grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); margin-bottom: 14px; }
.zc-modern .zc-dash .zc-dash-cartao { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--zc-line); border-radius: 16px; background: var(--zc-panel); }
.zc-modern .zc-dash .zc-dash-cartao-rot { display: flex; align-items: center; gap: 7px; color: var(--zc-muted); font-size: 12.5px; font-weight: 700; }
.zc-modern .zc-dash .zc-dash-cartao-rot svg { color: var(--zc-primary); font-size: 15px; }
.zc-modern .zc-dash .zc-dash-cartao-val { font-size: 26px; font-weight: 800; line-height: 1.1; }
.zc-modern .zc-dash .zc-dash-cartao-det { color: var(--zc-muted); font-size: 11.5px; }
.zc-modern .zc-dash .zc-dash-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 16px; margin-bottom: 28px; align-items: start; }
/* min-width 0: sem isso a tabela larga de dentro empurra a coluna da grade */
.zc-modern .zc-dash .zc-dash-painel { min-width: 0; padding: 18px 20px; border: 1px solid var(--zc-line); border-radius: 18px; background: var(--zc-panel); }
.zc-modern .zc-dash .zc-dash-painel.largo { grid-column: 1 / -1; }
.zc-modern .zc-dash .zc-dash-painel-topo { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.zc-modern .zc-dash .zc-dash-painel-topo h3 { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 800; }
.zc-modern .zc-dash .zc-dash-painel-topo h3 svg { color: var(--zc-primary); }
.zc-modern .zc-dash .zc-dash-nota { margin-top: 8px; color: var(--zc-muted); font-size: 11.5px; }
.zc-modern .zc-dash .zc-dash-painel-topo .zc-dash-nota { margin-top: 0; }
.zc-modern .zc-dash .zc-dash-aviso { display: flex; gap: 9px; align-items: flex-start; padding: 11px 14px; border: 1px solid var(--zc-line); border-radius: 13px; background: var(--zc-soft); color: var(--zc-muted); font-size: 12px; line-height: 1.5; }
.zc-modern .zc-dash .zc-dash-aviso svg { margin-top: 2px; color: var(--zc-accent-ink); font-size: 14px; }
.dark .zc-modern .zc-dash .zc-dash-aviso svg { color: var(--zc-accent); }
.zc-modern .zc-dash .zc-dash-vazio { padding: 18px 0; color: var(--zc-muted); font-size: 13px; text-align: center; }

/* ---------- gráfico de barras em pé ---------- */
/* O padding de cima é a folga pro número da barra mais alta; o de baixo, a dos rótulos */
.zc-modern .zc-dash .zc-dash-grafico { position: relative; height: var(--zc-dash-altura); margin-top: 6px; padding-top: 16px; }
/* Grade contínua, fininha, a cada 25% da altura, só na área das barras */
.zc-modern .zc-dash .zc-dash-grafico::before { content: ''; position: absolute; left: 0; right: 0; top: 16px; bottom: 18px; pointer-events: none; background-image: repeating-linear-gradient(to top, var(--zc-dash-grade) 0 1px, transparent 1px 25%); }
.zc-modern .zc-dash .zc-dash-colunas { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 100%; padding-bottom: 18px; }
.zc-modern .zc-dash .zc-dash-col { position: relative; display: flex; flex: 1 1 0; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 0; }
.zc-modern .zc-dash .zc-dash-col:focus-visible { outline: 2px solid var(--zc-primary); outline-offset: 1px; border-radius: 4px; }
.zc-modern .zc-dash .zc-dash-col-barras { display: flex; gap: 2px; align-items: flex-end; justify-content: center; width: 100%; max-width: 24px; height: 100%; }
.zc-modern .zc-dash .zc-dash-barra { flex: 1 1 0; min-height: 1px; border-radius: 4px 4px 0 0; background: var(--zc-dash-s1); }
.zc-modern .zc-dash .zc-dash-barra.s2 { background: var(--zc-dash-s2); }
/* Rótulo abaixo da linha de base, senão a grade passa por dentro do texto */
.zc-modern .zc-dash .zc-dash-col-rot { position: absolute; top: 100%; margin-top: 4px; color: var(--zc-muted); font-size: 10px; white-space: nowrap; }
.zc-modern .zc-dash .zc-dash-col-valor { position: absolute; bottom: 100%; margin-bottom: 3px; color: var(--zc-ink); font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.zc-modern .zc-dash .zc-dash-legenda { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 10px; color: var(--zc-muted); font-size: 11.5px; font-weight: 700; }
.zc-modern .zc-dash .zc-dash-legenda span { display: inline-flex; align-items: center; gap: 6px; }
.zc-modern .zc-dash .zc-dash-chave { width: 10px; height: 10px; border-radius: 3px; background: var(--zc-dash-s1); }
.zc-modern .zc-dash .zc-dash-chave.s2 { background: var(--zc-dash-s2); }

/* ---------- barras deitadas (faixas e origem) ---------- */
.zc-modern .zc-dash .zc-dash-hbarras { display: flex; flex-direction: column; gap: 7px; }
.zc-modern .zc-dash .zc-dash-hbarras li { display: grid; grid-template-columns: 110px 1fr 54px; gap: 10px; align-items: center; }
.zc-modern .zc-dash .zc-dash-hbarras .rot { color: var(--zc-muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zc-modern .zc-dash .zc-dash-hbarras .trilho { height: 14px; border-radius: 4px; background: var(--zc-soft); overflow: hidden; }
.zc-modern .zc-dash .zc-dash-hbarras .preenche { display: block; height: 100%; min-width: 2px; border-radius: 0 4px 4px 0; background: var(--zc-dash-s1); }
.zc-modern .zc-dash .zc-dash-hbarras .val { font-size: 12px; font-weight: 700; text-align: right; }
/* Equipe x IA numa barra só */
.zc-modern .zc-dash .zc-dash-divisao { display: flex; height: 18px; margin-bottom: 10px; border-radius: 5px; overflow: hidden; background: var(--zc-soft); }
.zc-modern .zc-dash .zc-dash-divisao .s1 { background: var(--zc-dash-s1); }
.zc-modern .zc-dash .zc-dash-divisao .s2 { background: var(--zc-dash-s2); }

/* ---------- mapa de calor (dia da semana x hora) ---------- */
.zc-modern .zc-dash .zc-dash-mapa { display: flex; flex-direction: column; gap: 3px; }
.zc-modern .zc-dash .zc-dash-mapa-linha { display: grid; grid-template-columns: 34px repeat(24, 1fr); gap: 3px; align-items: center; }
.zc-modern .zc-dash .zc-dash-mapa-dia { color: var(--zc-muted); font-size: 10.5px; font-weight: 700; }
.zc-modern .zc-dash .zc-dash-celula { height: 16px; border-radius: 3px; border: 1px solid var(--zc-dash-grade); }
.zc-modern .zc-dash .zc-dash-celula:focus-visible { outline: 2px solid var(--zc-primary); outline-offset: 1px; }
.zc-modern .zc-dash .zc-dash-mapa-hora { color: var(--zc-muted); font-size: 9.5px; text-align: center; }
.zc-modern .zc-dash .zc-dash-escala { display: flex; gap: 4px; align-items: center; justify-content: flex-end; margin-top: 10px; color: var(--zc-muted); font-size: 10.5px; }
.zc-modern .zc-dash .zc-dash-escala i { width: 16px; height: 10px; border-radius: 2px; border: 1px solid var(--zc-dash-grade); }

/* ---------- listas (espera, grupos, agenda) ---------- */
.zc-modern .zc-dash .zc-dash-lista { display: flex; flex-direction: column; }
.zc-modern .zc-dash .zc-dash-lista > li { border-top: 1px solid var(--zc-line); }
.zc-modern .zc-dash .zc-dash-lista > li:first-child { border-top: none; }
.zc-modern .zc-dash .zc-dash-lista.simples > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 2px; }
.zc-modern .zc-dash .zc-dash-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; width: 100%; padding: 10px 8px; border-radius: 11px; text-align: left; transition: background-color .15s; }
.zc-modern .zc-dash .zc-dash-item:hover { background: var(--zc-soft); }
.zc-modern .zc-dash .zc-dash-item-nome { font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zc-modern .zc-dash .zc-dash-item-meta { grid-column: 1; display: flex; align-items: center; gap: 7px; color: var(--zc-muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zc-modern .zc-dash .zc-dash-item-tempo { grid-area: 1 / 2; color: var(--zc-muted); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.zc-modern .zc-dash .zc-dash-item-selos { grid-area: 2 / 2; display: flex; gap: 6px; justify-content: flex-end; }
.zc-modern .zc-dash .zc-dash-sep { width: 3px; height: 3px; border-radius: 999px; background: currentColor; opacity: .6; }
.zc-modern .zc-dash .zc-dash-selo { padding: 2px 7px; border-radius: 999px; background: var(--zc-soft); color: var(--zc-muted); font-size: 10px; font-weight: 700; font-style: normal; white-space: nowrap; }
.zc-modern .zc-dash .zc-dash-selo.urgente { background: #fde8e8; color: #a12020; }
.dark .zc-modern .zc-dash .zc-dash-selo.urgente { background: rgba(220, 60, 60, .22); color: #f2b3b3; }
.zc-modern .zc-dash .zc-dash-lista > li.destaque .zc-dash-item { border-left: 3px solid var(--zc-primary); background: var(--zc-soft); border-radius: 0 11px 11px 0; }

/* ---------- tabelas ---------- */
.zc-modern .zc-dash .zc-dash-tabela-rolagem { overflow-x: auto; }
.zc-modern .zc-dash .zc-dash-grid { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.zc-modern .zc-dash .zc-dash-grid th { padding: 7px 10px; border-bottom: 1px solid var(--zc-line); color: var(--zc-muted); font-size: 11px; font-weight: 800; text-align: left; white-space: nowrap; }
.zc-modern .zc-dash .zc-dash-grid td { padding: 9px 10px; border-bottom: 1px solid var(--zc-line); }
.zc-modern .zc-dash .zc-dash-grid tr:last-child td { border-bottom: none; }
.zc-modern .zc-dash .zc-dash-grid th.n, .zc-modern .zc-dash .zc-dash-grid td.n { text-align: right; white-space: nowrap; }
.zc-modern .zc-dash .zc-dash-grid td svg { margin-right: 5px; }
.zc-modern .zc-dash .zc-dash-tipo { display: inline-block; margin-left: 7px; color: var(--zc-muted); font-size: 10.5px; font-style: normal; font-weight: 700; }
.zc-modern .zc-dash .zc-dash-estado { padding: 2px 8px; border-radius: 999px; background: var(--zc-soft); color: var(--zc-muted); font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.zc-modern .zc-dash .zc-dash-estado.online { background: rgba(31, 157, 85, .14); color: #146c3d; }
.dark .zc-modern .zc-dash .zc-dash-estado.online { background: rgba(111, 204, 160, .18); color: #8fdcb4; }
/* Tabela com os números do gráfico, fechada por padrão */
.zc-modern .zc-dash .zc-dash-tabela { margin-top: 14px; border-top: 1px solid var(--zc-line); }
.zc-modern .zc-dash .zc-dash-tabela > summary { padding: 9px 0 6px; color: var(--zc-primary); font-size: 11.5px; font-weight: 700; cursor: pointer; }
.zc-modern .zc-dash .zc-dash-tabela table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.zc-modern .zc-dash .zc-dash-tabela th { padding: 5px 8px; border-bottom: 1px solid var(--zc-line); color: var(--zc-muted); font-weight: 800; text-align: left; white-space: nowrap; }
.zc-modern .zc-dash .zc-dash-tabela td { padding: 5px 8px; border-bottom: 1px solid var(--zc-line); }
.zc-modern .zc-dash .zc-dash-tabela td.n { text-align: right; white-space: nowrap; }

/* Tela estreita: os painéis viram uma coluna e as barras deitadas perdem o rótulo fixo */
@media (max-width: 760px) {
    .zc-modern .zc-dash .zc-dash-grade { grid-template-columns: minmax(0, 1fr); }
    .zc-modern .zc-dash .zc-dash-cartoes { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
    .zc-modern .zc-dash .zc-dash-hbarras li { grid-template-columns: 92px 1fr 46px; }
    .zc-modern .zc-dash .zc-dash-titulo h1 { font-size: 23px; }
    .zc-modern .zc-dash .zc-dash-mapa-linha { grid-template-columns: 28px repeat(24, 1fr); gap: 2px; }
}

/* Proposta visual do Dashboard: cinco blocos da mesma pagina, sem mudar as consultas. */
.zc-modern #dashboard { padding: clamp(16px, 2.5vw, 36px); }
.zc-modern .zc-dash { max-width: 1500px; --zc-dash-sombra: 0 12px 36px rgba(9, 47, 45, .055); }
.dark .zc-modern .zc-dash { --zc-dash-sombra: 0 12px 36px rgba(0, 0, 0, .13); }
.zc-modern .zc-dash .zc-dash-topo {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
    margin-bottom: 0; padding: 22px 26px;
    border: 1px solid var(--zc-line); border-radius: 20px;
    background: var(--zc-panel); color: var(--zc-ink); box-shadow: var(--zc-dash-sombra);
}
.zc-modern .zc-dash .zc-dash-sobretitulo { display: block; margin-bottom: 4px; color: var(--zc-primary); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.zc-modern .zc-dash .zc-dash-titulo h1 { color: var(--zc-ink); font-size: clamp(25px, 2.5vw, 34px); letter-spacing: -.03em; }
.zc-modern .zc-dash .zc-dash-titulo h1 svg { color: var(--zc-primary); }
.zc-modern .zc-dash .zc-dash-titulo p { margin-top: 4px; color: var(--zc-muted); font-size: 13px; line-height: 1.5; }
.zc-modern .zc-dash .zc-dash-titulo p span { margin-left: 5px; color: var(--zc-primary); font-weight: 700; }
.zc-modern .zc-dash .zc-dash-controles { gap: 10px; align-items: center; justify-content: flex-end; }
/* Botões em cima e o "Atualizado há X min" embaixo, alinhado à direita */
.zc-modern .zc-dash .zc-dash-lado { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.zc-modern .zc-dash .zc-dash-lado .zc-dash-relogio { font-size: 11.5px; }
.zc-modern .zc-dash .zc-dash-lado .zc-dash-relogio:empty { display: none; }
.zc-modern .zc-dash .zc-dash-periodos { border-color: var(--zc-line); background: var(--zc-soft); }
.zc-modern .zc-dash .zc-dash-pilula { color: var(--zc-muted); }
.zc-modern .zc-dash .zc-dash-pilula:hover { color: var(--zc-ink); background: var(--zc-panel); }
.zc-modern .zc-dash .zc-dash-pilula.ativa { color: #fff; background: #0d6b65; box-shadow: 0 2px 7px rgba(0,0,0,.1); }
.dark .zc-modern .zc-dash .zc-dash-pilula.ativa { color: #fff; }
.zc-modern .zc-dash .zc-dash-botao { border-color: var(--zc-line); background: var(--zc-panel); color: var(--zc-ink); }
.zc-modern .zc-dash .zc-dash-botao:hover { border-color: var(--zc-primary); background: var(--zc-soft); }
.zc-modern .zc-dash .zc-dash-seta, .zc-modern .zc-dash .zc-dash-relogio { color: var(--zc-muted); }
.zc-modern .zc-dash .zc-dash-painel-conexoes { color: var(--zc-ink); }
.zc-modern .zc-dash .zc-dash-atalhos {
    position: sticky; top: 0; z-index: 20; display: flex; gap: 5px; overflow-x: auto;
    margin: 12px 0 28px; padding: 6px; border: 1px solid var(--zc-line); border-radius: 14px;
    background: var(--zc-panel); box-shadow: var(--zc-dash-sombra); scrollbar-width: thin;
}
.zc-modern .zc-dash .zc-dash-atalhos button { flex: none; padding: 9px 14px; border-radius: 10px; color: var(--zc-muted); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.zc-modern .zc-dash .zc-dash-atalhos button:hover, .zc-modern .zc-dash .zc-dash-atalhos button:focus-visible { background: var(--zc-soft); color: var(--zc-primary); }
.zc-modern .zc-dash .zc-dash-secao { margin-bottom: 34px; scroll-margin-top: 82px; }
.zc-modern .zc-dash .zc-dash-secao-cabecalho { display: flex; gap: 14px; align-items: center; margin: 0 0 16px; }
.zc-modern .zc-dash .zc-dash-secao-numero { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border: 1px solid var(--zc-line); border-radius: 11px; background: var(--zc-panel); color: var(--zc-primary); font-size: 11px; font-weight: 800; }
.zc-modern .zc-dash .zc-dash-secao-cabecalho h2 { color: var(--zc-ink); font-size: clamp(18px, 1.6vw, 23px); font-weight: 800; letter-spacing: -.025em; }
.zc-modern .zc-dash .zc-dash-secao-cabecalho p { margin-top: 2px; color: var(--zc-muted); font-size: 12.5px; line-height: 1.4; }
.zc-modern .zc-dash .zc-dash-secao-cabecalho h2:focus { outline: none; }
.zc-modern .zc-dash .zc-dash-cartoes { gap: 13px; margin-bottom: 16px; }
.zc-modern .zc-dash .zc-dash-cartoes-agora, .zc-modern .zc-dash .zc-dash-cartoes-periodo { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.zc-modern .zc-dash .zc-dash-cartoes-agora > .zc-dash-cartao { grid-column: span 3; }
.zc-modern .zc-dash .zc-dash-cartoes-agora > .zc-dash-cartao:nth-child(n+5) { grid-column: span 4; }
.zc-modern .zc-dash .zc-dash-cartoes-agora > .zc-dash-cartao:nth-child(n+8) { grid-column: span 6; }
.zc-modern .zc-dash .zc-dash-cartoes-periodo > .zc-dash-cartao:nth-child(-n+4) { grid-column: span 3; }
.zc-modern .zc-dash .zc-dash-cartoes-periodo > .zc-dash-cartao:nth-child(n+5) { grid-column: span 3; }
.zc-modern .zc-dash .zc-dash-cartao { position: relative; min-width: 0; min-height: 132px; gap: 7px; padding: 17px 19px; border-radius: 17px; box-shadow: var(--zc-dash-sombra); text-align: left; }
.zc-modern .zc-dash .zc-dash-cartao-acao { width: 100%; cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; }
.zc-modern .zc-dash .zc-dash-cartao-acao:hover, .zc-modern .zc-dash .zc-dash-cartao-acao:focus-visible { border-color: var(--zc-primary); transform: translateY(-2px); box-shadow: 0 13px 30px rgba(9, 47, 45, .12); }
.zc-modern .zc-dash .zc-dash-cartao-icone { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; background: #dff3ed; color: #0d6b65; }
.dark .zc-modern .zc-dash .zc-dash-cartao-icone { background: #25564f; color: #a9e5d9; }
.zc-modern .zc-dash .zc-dash-cartao-icone svg { width: 18px; height: 18px; }
.zc-modern .zc-dash .zc-dash-cartao-tom-ambar .zc-dash-cartao-icone { background: #fff0d6; color: #986a28; }
.zc-modern .zc-dash .zc-dash-cartao-tom-alerta .zc-dash-cartao-icone { background: #fce7e7; color: #b23a3a; }
.zc-modern .zc-dash .zc-dash-cartao-tom-ok .zc-dash-cartao-icone { background: #ddf2e6; color: #187345; }
.zc-modern .zc-dash .zc-dash-cartoes-agora > :nth-child(2) .zc-dash-cartao-icone,
.zc-modern .zc-dash .zc-dash-cartoes-periodo > :nth-child(2) .zc-dash-cartao-icone { background: #fff0d6; color: #986a28; }
.zc-modern .zc-dash .zc-dash-cartoes-agora > :nth-child(4) .zc-dash-cartao-icone { background: #fce7e7; color: #b23a3a; }
.zc-modern .zc-dash .zc-dash-cartao-rot { display: block; color: var(--zc-muted); font-size: 12px; font-weight: 700; }
.zc-modern .zc-dash .zc-dash-cartao-val { color: var(--zc-ink); font-size: clamp(26px, 2.4vw, 34px); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.zc-modern .zc-dash .zc-dash-cartao-det { margin-top: auto; line-height: 1.4; }
.zc-modern .zc-dash .zc-dash-cartao-seta { position: absolute; right: 17px; bottom: 18px; width: 15px; height: 15px; color: var(--zc-primary); }
.zc-modern .zc-dash .zc-dash-destaques { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.zc-modern .zc-dash .zc-dash-destaques .zc-dash-painel.largo { grid-column: auto; }
.zc-modern .zc-dash .zc-dash-grade { gap: 16px; margin-bottom: 16px; }
.zc-modern .zc-dash .zc-dash-grade-operacao { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.zc-modern .zc-dash .zc-dash-grade-operacao .zc-dash-cartoes.compacto { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.zc-modern .zc-dash .zc-dash-painel { padding: 20px 22px; border-radius: 18px; box-shadow: var(--zc-dash-sombra); }
.zc-modern .zc-dash .zc-dash-painel-topo { align-items: center; margin-bottom: 16px; }
.zc-modern .zc-dash .zc-dash-painel-topo h3 { color: var(--zc-ink); font-size: 15px; letter-spacing: -.01em; }
.zc-modern .zc-dash .zc-dash-painel-topo h3 svg { box-sizing: content-box; width: 17px; height: 17px; padding: 7px; border-radius: 10px; background: var(--zc-soft); }
.zc-modern .zc-dash .zc-dash-grafico { --zc-dash-altura: 220px; }
.zc-modern .zc-dash .zc-dash-col-barras { max-width: 34px; gap: 3px; }
.zc-modern .zc-dash .zc-dash-col-valor { font-size: 10px; }
.zc-modern .zc-dash .zc-dash-hbarras { gap: 10px; }
.zc-modern .zc-dash .zc-dash-hbarras li { grid-template-columns: minmax(105px, 125px) minmax(0, 1fr) 42px; }
.zc-modern .zc-dash .zc-dash-hbarras .trilho { height: 11px; border-radius: 999px; }
.zc-modern .zc-dash .zc-dash-hbarras .preenche { border-radius: 999px; }
.zc-modern .zc-dash .zc-dash-comparacao { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.zc-modern .zc-dash .zc-dash-comparacao div { display: flex; flex-direction: column; gap: 2px; }
.zc-modern .zc-dash .zc-dash-comparacao div:last-child { text-align: right; }
.zc-modern .zc-dash .zc-dash-comparacao strong { color: var(--zc-ink); font-size: 27px; line-height: 1; font-variant-numeric: tabular-nums; }
.zc-modern .zc-dash .zc-dash-comparacao span { color: var(--zc-muted); font-size: 12px; font-weight: 700; }
.zc-modern .zc-dash .zc-dash-divisao { height: 16px; border-radius: 999px; }
.zc-modern .zc-dash .zc-dash-lista > li { border-color: var(--zc-line); }
.zc-modern .zc-dash .zc-dash-item { padding: 12px 9px; }
.zc-modern .zc-dash .zc-dash-item-nome { color: var(--zc-ink); }
.zc-modern .zc-dash .zc-dash-item-tempo { color: var(--zc-primary); font-variant-numeric: tabular-nums; }
.zc-modern .zc-dash .zc-dash-grid { font-size: 12px; }
.zc-modern .zc-dash .zc-dash-grid th { padding: 10px; background: var(--zc-soft); }
.zc-modern .zc-dash .zc-dash-grid th:first-child { border-radius: 9px 0 0 9px; }
.zc-modern .zc-dash .zc-dash-grid th:last-child { border-radius: 0 9px 9px 0; }
.zc-modern .zc-dash .zc-dash-grid td { padding: 11px 10px; }
.zc-modern .zc-dash .zc-dash-grid tbody tr:hover { background: var(--zc-soft); }
.zc-modern .zc-dash .zc-dash-tipo { padding: 2px 6px; border-radius: 6px; background: var(--zc-soft); }
.zc-modern .zc-dash .zc-dash-aviso { margin-top: 4px; }
.zc-modern .zc-dash .zc-dash-estado-vazio { margin: 18px 0; }
.zc-modern .zc-dash .zc-dash-painel-acao { display: inline-flex; align-items: center; gap: 5px; color: var(--zc-primary); font-size: 12px; font-weight: 800; white-space: nowrap; }
.zc-modern .zc-dash .zc-dash-painel-acao svg { width: 12px; height: 12px; }
.zc-modern .zc-dash .zc-dash-painel-acao:hover { text-decoration: underline; }
.zc-modern .zc-dash .zc-dash-grid-espera { min-width: 760px; }
/* Lista inteira de quem espera: rola dentro do painel, cabeçalho fixo */
/* 9 linhas à vista (cabeçalho ~38px + 9 x ~55px); o resto na rolagem */
.zc-modern .zc-dash .zc-dash-ordem-espera { margin-bottom: 10px; }
.zc-modern .zc-dash .zc-dash-grid-grupos { min-width: 780px; }
.zc-modern .zc-dash .zc-dash-grid-grupos td:nth-child(5) { white-space: nowrap; }
.zc-modern .zc-dash .zc-dash-respondido { color: var(--zc-muted); font-size: 12px; font-weight: 600; }
.zc-modern .zc-dash .zc-dash-grid-espera td:first-child { min-width: 150px; }
.zc-modern .zc-dash .zc-dash-grid-grupos td:first-child { min-width: 120px; }
.zc-modern .zc-dash .zc-dash-grid-espera td:nth-child(3),
.zc-modern .zc-dash .zc-dash-grid-grupos td:nth-child(3) { white-space: nowrap; }
.zc-modern .zc-dash .zc-dash-grid-espera td svg,
.zc-modern .zc-dash .zc-dash-grid-grupos td svg { width: 17px; height: 17px; vertical-align: middle; }
.zc-modern .zc-dash .zc-dash-previa { max-width: 320px; color: var(--zc-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zc-modern .zc-dash .zc-dash-tempo { color: var(--zc-primary); font-weight: 800; }
.zc-modern .zc-dash .zc-dash-status { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.zc-modern .zc-dash .zc-dash-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--zc-accent); }
.zc-modern .zc-dash .zc-dash-abrir { padding: 7px 12px; border: 1px solid var(--zc-primary); border-radius: 8px; background: var(--zc-primary); color: #fff; font-size: 11px; font-weight: 800; white-space: nowrap; }
.zc-modern .zc-dash .zc-dash-abrir:hover, .zc-modern .zc-dash .zc-dash-abrir:focus-visible { background: var(--zc-primary-hover); }
.zc-modern .zc-dash .zc-dash-linha-destaque { background: var(--zc-soft); }
.zc-modern .zc-dash .zc-dash-grid-espera .zc-dash-selo { display: inline-flex; margin-left: 5px; }
.zc-modern .zc-dash .zc-dash-barra { position: relative; }
.zc-modern .zc-dash .zc-dash-barra-valor { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 3px; color: var(--zc-ink); font-size: 10px; font-weight: 800; white-space: nowrap; }
.zc-modern .zc-dash .zc-dash-grade-volume .zc-dash-grafico { --zc-dash-altura: 240px; }
.zc-modern .zc-dash .zc-dash-grade-volume .zc-dash-painel:nth-child(2) .zc-dash-grafico { --zc-dash-altura: 165px; }
.zc-modern .zc-dash .zc-dash-grade-operacao .zc-dash-cartao { display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: auto auto 1fr; gap: 2px 8px; min-height: 103px; padding: 12px 14px; }
.zc-modern .zc-dash .zc-dash-grade-operacao .zc-dash-cartao-icone { grid-column: 2; grid-row: 1 / 3; width: 30px; height: 30px; align-self: center; border-radius: 9px; }
.zc-modern .zc-dash .zc-dash-grade-operacao .zc-dash-cartao-icone svg { width: 16px; height: 16px; }
.zc-modern .zc-dash .zc-dash-grade-operacao .zc-dash-cartao-rot { grid-column: 1; grid-row: 1; }
.zc-modern .zc-dash .zc-dash-grade-operacao .zc-dash-cartao-val { grid-column: 1; grid-row: 2; font-size: 25px; }
.zc-modern .zc-dash .zc-dash-grade-operacao .zc-dash-cartao-det { grid-column: 1 / -1; grid-row: 3; font-size: 10.5px; }
.zc-modern .zc-dash .zc-dash-escopo { margin: -5px 0 14px; color: var(--zc-muted); font-size: 11.5px; line-height: 1.45; }
.zc-modern .zc-dash .zc-dash-grid-agenda { min-width: 400px; }
.zc-modern .zc-dash .zc-dash-grid-agenda .zc-dash-item-meta { display: block; margin-top: 3px; max-width: 220px; }
.zc-modern .zc-dash .zc-dash-nota-tempos { margin-top: 5px; padding: 0 4px; }
.zc-modern .zc-dash .zc-dash-estado:not(.online) { background: #fde8e8; color: #a52626; }
.dark .zc-modern .zc-dash .zc-dash-estado:not(.online) { background: rgba(212, 75, 75, .2); color: #f3b7b7; }
@media (max-width: 1100px) {
    .zc-modern .zc-dash .zc-dash-destaques { grid-template-columns: minmax(0, 1fr); }
    .zc-modern .zc-dash .zc-dash-cartoes-agora > .zc-dash-cartao,
    .zc-modern .zc-dash .zc-dash-cartoes-periodo > .zc-dash-cartao:nth-child(-n+4) { grid-column: span 6; }
    .zc-modern .zc-dash .zc-dash-cartoes-periodo > .zc-dash-cartao:nth-child(n+5) { grid-column: span 6; }
}
@media (max-width: 760px) {
    .zc-modern .zc-dash .zc-dash-grade-operacao { grid-template-columns: minmax(0, 1fr); }
    .zc-modern .zc-dash .zc-dash-cartoes-periodo > .zc-dash-cartao:nth-child(n+5) { grid-column: span 6; }
    .zc-modern .zc-dash .zc-dash-topo { border-radius: 18px; }
    .zc-modern .zc-dash .zc-dash-controles { align-items: stretch; }
    .zc-modern .zc-dash .zc-dash-lado { align-items: stretch; width: 100%; }
    .zc-modern .zc-dash .zc-dash-painel { padding: 16px; }
}
@media (max-width: 520px) {
    .zc-modern .zc-dash .zc-dash-cartoes-agora > .zc-dash-cartao:nth-child(n),
    .zc-modern .zc-dash .zc-dash-cartoes-periodo > .zc-dash-cartao:nth-child(n) { grid-column: span 6; }
    .zc-modern .zc-dash .zc-dash-cartao { min-height: 110px; padding: 14px; }
    .zc-modern .zc-dash .zc-dash-cartao-rot { flex-wrap: wrap; }
    .zc-modern .zc-dash .zc-dash-cartao-val { font-size: 25px; }
    .zc-modern .zc-dash .zc-dash-hbarras li { grid-template-columns: 86px minmax(0,1fr) 36px; gap: 6px; }
    .zc-modern .zc-dash .zc-dash-mapa { overflow-x: auto; }
    .zc-modern .zc-dash .zc-dash-mapa-linha { min-width: 500px; }
}
@media (max-width: 400px) {
    .zc-modern .zc-dash .zc-dash-cartoes-agora > .zc-dash-cartao:nth-child(n),
    .zc-modern .zc-dash .zc-dash-cartoes-periodo > .zc-dash-cartao:nth-child(n) { grid-column: span 12; }
    .zc-modern .zc-dash .zc-dash-grade-operacao .zc-dash-cartoes.compacto { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   LIGAÇÃO DE VOZ (public/ligacoes.js)
   O cartão de "ligação chegando" e a barra da ligação em andamento moram no nível da
   página, no topo e no centro, pra continuarem na tela em qualquer aba - e não só na
   Caixa de Entrada. Ficam acima dos modais (z 250/350) e abaixo do toast (z 500), que
   é quem avisa erro da própria ligação.
   As regras com .hidden são obrigatórias: o .hidden do Tailwind pontua (0,1,0) e
   perderia pro seletor de cima, mesmo motivo do .sticker-picker lá em cima.
   ============================================================ */
/* Ligação chegando: popup no alto da tela, no jeito da chamada do WhatsApp (foto grande
   no centro com anel pulsando, nome, e Recusar/Atender lado a lado). Pedido do usuário em 28/10/2026. */
.zc-modern .zc-call-card { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 470; width: min(340px, calc(100vw - 24px)); padding: 22px 20px 18px; border: 1px solid var(--zc-line); border-radius: 22px; background: var(--zc-panel); color: var(--zc-ink); box-shadow: 0 24px 60px rgba(13, 55, 52, .34); animation: zcCallEntra .25s ease-out; }
.zc-modern .zc-call-card.hidden { display: none; }
@keyframes zcCallEntra { from { opacity: 0; transform: translate(-50%, -16px) scale(.97); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
.zc-modern .zc-call-card-topo { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; cursor: pointer; }
.zc-modern .zc-call-foto, .zc-modern .zc-call-inicial { width: 76px; height: 76px; flex: none; border-radius: 50%; animation: zcCallAnel 1.6s ease-out infinite; }
.zc-modern .zc-call-foto { object-fit: cover; border: 2px solid var(--zc-panel); }
.zc-modern .zc-call-inicial { display: grid; place-items: center; background: var(--zc-soft); color: var(--zc-primary); font-size: 30px; font-weight: 700; }
@keyframes zcCallAnel { 0% { box-shadow: 0 0 0 0 rgba(31, 122, 87, .45); } 100% { box-shadow: 0 0 0 16px rgba(31, 122, 87, 0); } }
.zc-modern .zc-call-inicial.hidden, .zc-modern .zc-call-foto.hidden { display: none; }
.zc-modern .zc-call-card-topo > .min-w-0 { width: 100%; }
.zc-modern .zc-call-rotulo { display: flex; align-items: center; justify-content: center; gap: 5px; color: var(--zc-primary); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.zc-modern .zc-call-rotulo svg { width: 13px; height: 13px; animation: zcCallPulsa 1.1s ease-in-out infinite; }
@keyframes zcCallPulsa { 50% { opacity: .35; } }
.zc-modern .zc-call-nome { margin-top: 3px; font-size: 19px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zc-modern .zc-call-sub { margin-top: 1px; color: var(--zc-muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zc-modern .zc-call-aviso { margin-top: 12px; padding: 7px 9px; border-radius: 9px; background: var(--zc-soft); color: var(--zc-muted); font-size: 11.5px; line-height: 1.35; text-align: center; }
.zc-modern .zc-call-aviso.hidden { display: none; }
/* "1/3 recusaram": quem recusou para de ouvir o toque, mas o popup segue até alguém atender */
.zc-modern .zc-call-recusas { margin-top: 12px; padding: 7px 9px; border-radius: 9px; background: var(--zc-soft); color: var(--zc-ink); font-size: 12px; font-weight: 600; text-align: center; line-height: 1.35; }
.zc-modern .zc-call-recusas.hidden { display: none; }
.zc-modern .zc-call-card .zc-call-btn.hidden { display: none; }
/* Popup arrastável (ligarArraste em ligacoes.js): solto do centro, fica onde a pessoa largou */
.zc-modern .zc-call-card { cursor: grab; touch-action: none; user-select: none; }
.zc-modern .zc-call-card.zc-call-card-movido { transform: none; animation: none; }
.zc-modern .zc-call-card.zc-call-card-arrastando { cursor: grabbing; }
.zc-modern .zc-call-card .zc-call-fechar { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border-radius: 50%; color: var(--zc-muted); background: transparent; cursor: pointer; }
.zc-modern .zc-call-card .zc-call-fechar:hover { color: var(--zc-ink); background: var(--zc-soft); }
.zc-modern .zc-call-card .zc-call-fechar svg { width: 16px; height: 16px; }
.zc-modern .zc-call-acoes { display: flex; flex-direction: row-reverse; gap: 12px; margin-top: 18px; }
.zc-modern .zc-call-card .zc-call-btn { display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 7px; padding: 12px 14px; border-radius: 999px; color: #fff; font-size: 14px; font-weight: 700; }
.zc-modern .zc-call-card .zc-call-btn svg { width: 18px; height: 18px; }
.zc-modern .zc-call-card .zc-call-atender { background: var(--zc-success); animation: zcCallChama 1.2s ease-in-out infinite; }
.zc-modern .zc-call-card .zc-call-recusar { background: #c0392b; }
@keyframes zcCallChama { 50% { box-shadow: 0 0 0 7px rgba(31, 122, 87, .22); } }

.zc-modern .zc-call-bar { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 460; display: flex; align-items: center; gap: 10px; width: min(400px, calc(100vw - 24px)); padding: 9px 11px; border: 1px solid var(--zc-line); border-radius: 999px; background: var(--zc-panel); color: var(--zc-ink); box-shadow: 0 14px 38px rgba(13, 55, 52, .24); }
.zc-modern .zc-call-bar.hidden { display: none; }
/* Dentro da conversa, logo abaixo das mensagens (posicionarBarra em ligacoes.js): ocupa
   espaço próprio na coluna, então as mensagens rolam acima dela e nada fica coberto. */
.zc-modern .zc-call-bar.zc-call-bar-na-conversa { position: static; transform: none; flex: none; width: auto; margin: 0 12px 8px; border-radius: 14px; box-shadow: 0 4px 14px rgba(13, 55, 52, .12); }
.zc-modern .zc-call-bar.zc-call-bar-na-conversa.hidden { display: none; }
.zc-modern .zc-call-bar-ponto { width: 9px; height: 9px; flex: none; margin-left: 4px; border-radius: 50%; background: var(--zc-success); }
.zc-modern .zc-call-bar-chamando .zc-call-bar-ponto { background: var(--zc-accent); animation: zcCallPulsa 1s ease-in-out infinite; }
.zc-modern .zc-call-bar-nome { font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zc-modern .zc-call-bar-sub { color: var(--zc-muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zc-modern .zc-call-bar-sub:empty { display: none; }
.zc-modern .zc-call-bar-tempo { flex: none; font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.zc-modern .zc-call-bar .zc-call-bar-btn { display: grid; place-items: center; width: 34px; height: 34px; flex: none; padding: 0; border-radius: 50%; color: var(--zc-ink); background: var(--zc-soft); }
.zc-modern .zc-call-bar .zc-call-bar-btn.hidden { display: none; }
.zc-modern .zc-call-bar .zc-call-bar-btn svg { width: 17px; height: 17px; }
.zc-modern .zc-call-bar .zc-call-bar-btn:hover { background: var(--zc-line); }
.zc-modern .zc-call-bar .zc-call-bar-ativo { color: #fff; background: var(--zc-accent-ink); }
/* Ligado (mudo, ouvir) continua aparecendo ligado com o mouse em cima: o :hover acima pesa mais que a regra de cima */
.zc-modern .zc-call-bar .zc-call-bar-btn.zc-call-bar-ativo { color: #fff; background: var(--zc-accent-ink); }
.zc-modern .zc-call-bar .zc-call-bar-desligar { color: #fff; background: #c0392b; }
.zc-modern .zc-call-bar .zc-call-bar-desligar:hover { background: #a93226; }

/* Pedaço das ligações dentro do card de Canais */
.zc-modern .zc-call-chip { width: 100%; margin-top: 8px; }
.zc-modern .zc-call-chip .zc-call-chip-btn { display: inline-flex; width: 100%; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; padding: 9px 12px; border-radius: 11px; font-size: 13px; font-weight: 600; }
.zc-modern .zc-call-chip .zc-call-chip-btn svg { width: 16px; height: 16px; }
.zc-modern .zc-call-chip .zc-call-chip-ativar { color: var(--zc-primary); border: 1px solid var(--zc-primary); background: transparent; }
.zc-modern .zc-call-chip .zc-call-chip-ativar:hover { color: #fff; background: var(--zc-primary); }
.zc-modern .zc-call-chip .zc-call-chip-neutro { color: var(--zc-muted); border: 1px solid var(--zc-line); background: transparent; }
.zc-modern .zc-call-chip .zc-call-chip-neutro:hover { color: var(--zc-ink); background: var(--zc-soft); }
.zc-modern .zc-call-chip .zc-call-chip-desativar { color: var(--zc-primary); border: 1px solid var(--zc-primary); background: var(--zc-soft); }
.zc-modern .zc-call-chip .zc-call-chip-desativar:hover { color: #fff; background: var(--zc-primary); }
.zc-modern .zc-call-chip-dica-alerta { color: var(--zc-accent-ink); }
.zc-modern .zc-call-chip-ok, .zc-modern .zc-call-chip-alerta { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 10px; border-radius: 10px; font-size: 12.5px; font-weight: 700; }
.zc-modern .zc-call-chip-ok svg, .zc-modern .zc-call-chip-alerta svg { width: 15px; height: 15px; }
.zc-modern .zc-call-chip-ok { color: var(--zc-primary); border: 1px solid var(--zc-primary); background: var(--zc-soft); }
.zc-modern .zc-call-chip-alerta { color: var(--zc-accent-ink); border: 1px solid var(--zc-accent); background: var(--zc-soft); }
.zc-modern .zc-call-chip-dica { margin-top: 4px; color: var(--zc-muted); font-size: 11.5px; line-height: 1.4; text-align: center; }

@media (max-width: 600px) {
    .zc-modern .zc-call-card { top: 10px; width: calc(100vw - 16px); }
    .zc-modern .zc-call-bar { bottom: 10px; width: calc(100vw - 16px); }
    .zc-modern .zc-call-bar { border-radius: 16px; }
}

/* ===== ABA LIGAÇÕES (public/ligacoes-aba.js) =====
   Histórico de todas as ligações. Seletores com 3 classes por causa da regra de botão
   com ícone do icons.css, que pontua (0,2,1). */
.zc-modern .zc-lig { max-width: 1180px; margin: 0 auto; --zc-lig-sombra: 0 12px 36px rgba(9, 47, 45, .06); }
.dark .zc-modern .zc-lig { --zc-lig-sombra: 0 12px 36px rgba(0, 0, 0, .16); }
.zc-modern .zc-lig.carregando .zc-lig-lista { opacity: .55; transition: opacity .15s; }
.zc-modern .zc-lig .zc-lig-topo { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.zc-modern .zc-lig .zc-lig-topo h2 { display: flex; align-items: center; gap: 10px; color: var(--zc-ink); font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.zc-modern .zc-lig .zc-lig-topo h2 svg { width: 26px; height: 26px; color: var(--zc-primary); }
.zc-modern .zc-lig .zc-lig-topo p { margin-top: 4px; color: var(--zc-muted); font-size: 13px; }
.zc-modern .zc-lig .zc-lig-total { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--zc-soft); color: var(--zc-primary); font-size: 12px; font-weight: 750; }
.zc-modern .zc-lig .zc-lig-total:empty { display: none; }
.zc-modern .zc-lig .zc-lig-ferramentas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; padding: 14px; border: 1px solid var(--zc-line); border-radius: 16px; background: var(--zc-panel); box-shadow: var(--zc-lig-sombra); }
.zc-modern .zc-lig .zc-lig-busca { display: flex; flex: 1 1 320px; align-items: center; gap: 9px; height: 42px; padding: 0 14px; border: 1px solid var(--zc-line); border-radius: 12px; background: var(--zc-soft); color: var(--zc-muted); cursor: text; }
.zc-modern .zc-lig .zc-lig-busca:focus-within { border-color: var(--zc-primary); color: var(--zc-primary); }
.zc-modern .zc-lig .zc-lig-busca svg { width: 17px; height: 17px; flex: none; }
.zc-modern .zc-lig .zc-lig-busca input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--zc-ink); font-size: 13.5px; }
.zc-modern .zc-lig .zc-lig-filtros { display: flex; flex-wrap: wrap; gap: 6px; }
.zc-modern .zc-lig .zc-lig-filtros .zc-lig-filtro { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid var(--zc-line); border-radius: 999px; background: transparent; color: var(--zc-muted); font-size: 12.5px; font-weight: 650; }
.zc-modern .zc-lig .zc-lig-filtros .zc-lig-filtro span { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--zc-soft); color: var(--zc-ink); font-size: 11px; text-align: center; }
.zc-modern .zc-lig .zc-lig-filtros .zc-lig-filtro:hover { border-color: var(--zc-primary); color: var(--zc-primary); }
.zc-modern .zc-lig .zc-lig-filtros .zc-lig-filtro.ativo { border-color: var(--zc-primary); background: var(--zc-primary); color: #fff; }
.zc-modern .zc-lig .zc-lig-filtros .zc-lig-filtro.ativo span { background: rgba(255, 255, 255, .22); color: #fff; }
.zc-modern .zc-lig .zc-lig-dia { margin: 22px 4px 9px; color: var(--zc-muted); font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.zc-modern .zc-lig .zc-lig-dia:first-child { margin-top: 0; }
.zc-modern .zc-lig .zc-lig-grupo { overflow: hidden; border: 1px solid var(--zc-line); border-radius: 16px; background: var(--zc-panel); box-shadow: var(--zc-lig-sombra); }
.zc-modern .zc-lig .zc-lig-item + .zc-lig-item { border-top: 1px solid var(--zc-line); }
.zc-modern .zc-lig .zc-lig-linha { display: grid; grid-template-columns: 46px minmax(0, 1.4fr) minmax(0, 1.5fr) 82px var(--zc-lig-acoes, 124px); align-items: center; gap: 16px; padding: 13px 16px; transition: background .12s; }
.zc-modern .zc-lig .zc-lig-item:hover .zc-lig-linha { background: var(--zc-soft); }
.zc-modern .zc-lig .zc-lig-avatar { position: relative; width: 44px; height: 44px; }
.zc-modern .zc-lig .zc-lig-avatar img, .zc-modern .zc-lig .zc-lig-inicial { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.zc-modern .zc-lig .zc-lig-inicial { display: grid; place-items: center; background: var(--zc-soft); color: var(--zc-primary); font-size: 17px; font-weight: 800; }
.zc-modern .zc-lig .zc-lig-direcao { position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center; width: 21px; height: 21px; border: 2px solid var(--zc-panel); border-radius: 50%; color: #fff; }
.zc-modern .zc-lig .zc-lig-direcao svg { width: 11px; height: 11px; }
.zc-modern .zc-lig .zc-lig-direcao.entrada { background: var(--zc-success); }
.zc-modern .zc-lig .zc-lig-direcao.saida { background: var(--zc-primary); }
.zc-modern .zc-lig .zc-lig-direcao.perdida { background: #c0392b; }
.zc-modern .zc-lig .zc-lig-quemliga { display: flex; flex-direction: column; min-width: 0; }
.zc-modern .zc-lig .zc-lig-quemliga strong { overflow: hidden; color: var(--zc-ink); font-size: 14px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.zc-modern .zc-lig .zc-lig-quemliga span { overflow: hidden; margin-top: 2px; color: var(--zc-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.zc-modern .zc-lig .zc-lig-situacao { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.zc-modern .zc-lig .zc-lig-pill { padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 750; white-space: nowrap; }
.zc-modern .zc-lig .zc-lig-pill.ok { background: rgba(31, 122, 87, .12); color: var(--zc-success); }
.zc-modern .zc-lig .zc-lig-pill.perdida { background: rgba(192, 57, 43, .12); color: #c0392b; }
.dark .zc-modern .zc-lig .zc-lig-pill.perdida { color: #f08a7e; }
.zc-modern .zc-lig .zc-lig-pill.alerta { background: rgba(210, 165, 103, .18); color: var(--zc-accent-ink); }
.zc-modern .zc-lig .zc-lig-quem { overflow: hidden; max-width: 100%; color: var(--zc-muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.zc-modern .zc-lig .zc-lig-quem strong { color: var(--zc-ink); font-weight: 700; }
.zc-modern .zc-lig .zc-lig-tempo { display: flex; flex-direction: column; align-items: flex-end; }
.zc-modern .zc-lig .zc-lig-tempo strong { color: var(--zc-ink); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.zc-modern .zc-lig .zc-lig-tempo span { color: var(--zc-muted); font-size: 11.5px; }
.zc-modern .zc-lig .zc-lig-acoes { display: flex; justify-content: flex-end; gap: 6px; }
.zc-modern .zc-lig .zc-lig-acoes .zc-lig-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 1px solid var(--zc-line); border-radius: 10px; background: var(--zc-panel); color: var(--zc-ink); font-size: 12px; font-weight: 650; }
.zc-modern .zc-lig .zc-lig-acoes .zc-lig-btn svg { width: 15px; height: 15px; color: var(--zc-primary); }
.zc-modern .zc-lig .zc-lig-acoes .zc-lig-btn:hover { border-color: var(--zc-primary); color: var(--zc-primary); }
.zc-modern .zc-lig .zc-lig-acoes .zc-lig-btn[aria-expanded="true"] { border-color: var(--zc-primary); background: var(--zc-soft); }
.zc-modern .zc-lig .zc-lig-player { padding: 0 16px 13px 78px; }
.zc-modern .zc-lig .zc-lig-player.hidden { display: none; }
.zc-modern .zc-lig .zc-lig-vazio { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 54px 20px; border: 1px dashed var(--zc-line); border-radius: 16px; color: var(--zc-muted); font-size: 13px; text-align: center; }
.zc-modern .zc-lig .zc-lig-vazio svg { width: 34px; height: 34px; margin-bottom: 4px; color: var(--zc-primary); opacity: .55; }
.zc-modern .zc-lig .zc-lig-vazio strong { color: var(--zc-ink); font-size: 15px; }
.zc-modern .zc-lig .zc-lig-rodape { display: flex; justify-content: center; margin: 18px 0 8px; }
.zc-modern .zc-lig .zc-lig-rodape .zc-lig-mais { padding: 10px 18px; border: 1px solid var(--zc-line); border-radius: 12px; background: var(--zc-panel); color: var(--zc-primary); font-size: 13px; font-weight: 700; }
.zc-modern .zc-lig .zc-lig-rodape .zc-lig-mais:hover { border-color: var(--zc-primary); }
.zc-modern .zc-lig .zc-lig-rodape .zc-lig-mais.hidden { display: none; }
@media (max-width: 900px) {
    .zc-modern .zc-lig .zc-lig-linha { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 10px 12px; }
    .zc-modern .zc-lig .zc-lig-situacao { grid-column: 2 / 4; grid-row: 2; }
    .zc-modern .zc-lig .zc-lig-acoes { grid-column: 2 / 4; grid-row: 3; justify-content: flex-start; }
    .zc-modern .zc-lig .zc-lig-player { padding-left: 16px; }
}

/* Aba Ligações: coluna de botões larga pra quem tem Gravação e Resumir com IA */
.zc-modern .zc-lig.com-gravacao { --zc-lig-acoes: 392px; }
/* Mini dashboard do topo (desenharNumeros em ligacoes-aba.js) */
.zc-modern .zc-lig .zc-lig-painel { margin-bottom: 16px; padding: 16px; border: 1px solid var(--zc-line); border-radius: 16px; background: var(--zc-panel); box-shadow: var(--zc-lig-sombra); }
.zc-modern .zc-lig .zc-lig-painel-topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.zc-modern .zc-lig .zc-lig-painel-topo h3 { color: var(--zc-ink); font-size: 15px; font-weight: 800; }
.zc-modern .zc-lig .zc-lig-periodos { display: inline-flex; padding: 3px; border: 1px solid var(--zc-line); border-radius: 999px; background: var(--zc-soft); }
.zc-modern .zc-lig .zc-lig-periodos .zc-lig-periodo { padding: 6px 13px; border-radius: 999px; background: transparent; color: var(--zc-muted); font-size: 12px; font-weight: 700; }
.zc-modern .zc-lig .zc-lig-periodos .zc-lig-periodo:hover { color: var(--zc-primary); }
.zc-modern .zc-lig .zc-lig-periodos .zc-lig-periodo.ativo { background: var(--zc-primary); color: #fff; }
.zc-modern .zc-lig .zc-lig-numeros { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(165px, 100%), 1fr)); gap: 10px; }
.zc-modern .zc-lig .zc-lig-num { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 13px 14px; border: 1px solid var(--zc-line); border-radius: 13px; background: var(--zc-soft); }
.zc-modern .zc-lig .zc-lig-num-rot { display: flex; align-items: center; gap: 6px; color: var(--zc-muted); font-size: 11.5px; font-weight: 700; }
.zc-modern .zc-lig .zc-lig-num-rot svg { width: 15px; height: 15px; color: var(--zc-primary); }
.zc-modern .zc-lig .zc-lig-num strong { color: var(--zc-ink); font-size: 26px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.zc-modern .zc-lig .zc-lig-num-det { color: var(--zc-muted); font-size: 11.5px; line-height: 1.35; }
.zc-modern .zc-lig .zc-lig-num.ok .zc-lig-num-rot svg, .zc-modern .zc-lig .zc-lig-num.ok strong { color: var(--zc-success); }
.zc-modern .zc-lig .zc-lig-num.perdida .zc-lig-num-rot svg, .zc-modern .zc-lig .zc-lig-num.perdida strong { color: #c0392b; }
.dark .zc-modern .zc-lig .zc-lig-num.perdida .zc-lig-num-rot svg, .dark .zc-modern .zc-lig .zc-lig-num.perdida strong { color: #f08a7e; }
.zc-modern .zc-lig .zc-lig-num.alerta .zc-lig-num-rot svg { color: var(--zc-accent); }
.zc-modern .zc-lig .zc-lig-barra { display: block; height: 6px; margin: 2px 0 5px; overflow: hidden; border-radius: 999px; background: rgba(192, 57, 43, .22); }
.zc-modern .zc-lig .zc-lig-barra i { display: block; height: 100%; border-radius: 999px; background: var(--zc-success); }
/* Botão "Resumir com IA" e o painel do resumo embaixo da linha */
.zc-modern .zc-lig .zc-lig-acoes .zc-lig-btn-ia svg { color: var(--zc-accent); }
.zc-modern .zc-lig .zc-lig-resumo { margin: 0 16px 14px 78px; padding: 14px 16px; border: 1px solid var(--zc-line); border-left: 3px solid var(--zc-accent); border-radius: 12px; background: var(--zc-soft); color: var(--zc-ink); }
.zc-modern .zc-lig .zc-lig-resumo.hidden { display: none; }
.zc-modern .zc-lig .zc-lig-resumo-topo { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; font-size: 13px; }
.zc-modern .zc-lig .zc-lig-resumo-topo svg { width: 16px; height: 16px; color: var(--zc-accent); }
.zc-modern .zc-lig .zc-lig-resumo-topo .zc-lig-resumo-refazer { margin-left: auto; padding: 4px 10px; border: 1px solid var(--zc-line); border-radius: 8px; background: var(--zc-panel); color: var(--zc-muted); font-size: 11.5px; font-weight: 650; }
.zc-modern .zc-lig .zc-lig-resumo-topo .zc-lig-resumo-refazer:hover { border-color: var(--zc-primary); color: var(--zc-primary); }
.zc-modern .zc-lig .zc-lig-resumo-texto { font-size: 13px; line-height: 1.55; }
.zc-modern .zc-lig .zc-lig-resumo-texto h4 { margin: 12px 0 3px; color: var(--zc-primary); font-size: 12px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.zc-modern .zc-lig .zc-lig-resumo-texto h4:first-child { margin-top: 0; }
.zc-modern .zc-lig .zc-lig-resumo-texto ul { margin: 2px 0; padding-left: 18px; list-style: disc; }
.zc-modern .zc-lig .zc-lig-resumo-texto li { margin: 2px 0; }
.zc-modern .zc-lig .zc-lig-transcricao { margin-top: 12px; border-top: 1px dashed var(--zc-line); padding-top: 9px; }
.zc-modern .zc-lig .zc-lig-transcricao summary { color: var(--zc-primary); font-size: 12px; font-weight: 700; cursor: pointer; }
.zc-modern .zc-lig .zc-lig-transcricao p { margin-top: 7px; max-height: 260px; overflow-y: auto; color: var(--zc-muted); font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; }
.zc-modern .zc-lig .zc-lig-resumo-carregando, .zc-modern .zc-lig .zc-lig-resumo-erro { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.zc-modern .zc-lig .zc-lig-resumo-carregando { color: var(--zc-muted); }
.zc-modern .zc-lig .zc-lig-resumo-carregando svg { width: 16px; height: 16px; color: var(--zc-accent); animation: zcCallPulsa 1.1s ease-in-out infinite; }
.zc-modern .zc-lig .zc-lig-resumo-erro { color: #c0392b; }
@media (max-width: 900px) {
    .zc-modern .zc-lig.com-gravacao { --zc-lig-acoes: auto; }
    .zc-modern .zc-lig .zc-lig-resumo { margin-left: 16px; }
}
/* Mini dashboard: quem atendeu, ligou e recusou no período (desenharPessoas em ligacoes-aba.js) */
.zc-modern .zc-lig .zc-lig-pessoas { margin-top: 14px; }
.zc-modern .zc-lig .zc-lig-pessoas h4 { margin-bottom: 8px; color: var(--zc-ink); font-size: 13px; font-weight: 800; }
.zc-modern .zc-lig .zc-lig-pessoas-rolagem { overflow-x: auto; border: 1px solid var(--zc-line); border-radius: 12px; }
.zc-modern .zc-lig .zc-lig-pessoas table { width: 100%; border-collapse: collapse; font-size: 13px; }
.zc-modern .zc-lig .zc-lig-pessoas th { padding: 9px 14px; background: var(--zc-soft); color: var(--zc-muted); font-size: 11.5px; font-weight: 750; text-align: left; white-space: nowrap; }
.zc-modern .zc-lig .zc-lig-pessoas td { padding: 9px 14px; border-top: 1px solid var(--zc-line); color: var(--zc-ink); white-space: nowrap; }
.zc-modern .zc-lig .zc-lig-pessoas .n { text-align: right; font-variant-numeric: tabular-nums; }
.zc-modern .zc-lig .zc-lig-pessoas td.recusou { color: var(--zc-accent-ink); font-weight: 700; }
.zc-modern .zc-lig .zc-lig-pessoas .zc-lig-pessoa { padding: 0; border: 0; background: none; color: var(--zc-primary); font-size: 13px; font-weight: 700; cursor: pointer; }
.zc-modern .zc-lig .zc-lig-pessoas .zc-lig-pessoa:hover { text-decoration: underline; }
.zc-modern .zc-lig .zc-lig-etiqueta { margin-left: 7px; padding: 2px 7px; border-radius: 6px; background: var(--zc-soft); color: var(--zc-muted); font-size: 10.5px; font-style: normal; font-weight: 700; }
.zc-modern .zc-lig .zc-lig-pessoas-vazio { padding: 12px 14px; border: 1px dashed var(--zc-line); border-radius: 12px; color: var(--zc-muted); font-size: 12.5px; }

/* ===== CALENDÁRIO DO PERÍODO PERSONALIZADO (public/periodo-personalizado.js) =====
   Fica no body (position: fixed) pra não ser cortado pelo painel que rola. */
.zc-modern .zc-cal { position: fixed; z-index: 465; width: 300px; padding: 14px; border: 1px solid var(--zc-line); border-radius: 16px; background: var(--zc-panel); color: var(--zc-ink); box-shadow: 0 18px 44px rgba(13, 55, 52, .24); }
.zc-modern .zc-cal .zc-cal-topo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.zc-modern .zc-cal .zc-cal-topo strong { font-size: 13.5px; }
.zc-modern .zc-cal .zc-cal-topo .zc-cal-nav { width: 30px; height: 30px; padding: 0; border-radius: 9px; background: var(--zc-soft); color: var(--zc-ink); font-size: 18px; line-height: 1; }
.zc-modern .zc-cal .zc-cal-topo .zc-cal-nav:disabled { opacity: .3; cursor: default; }
.zc-modern .zc-cal .zc-cal-grade { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.zc-modern .zc-cal .zc-cal-semana { padding: 3px 0 5px; color: var(--zc-muted); font-size: 10.5px; font-weight: 800; text-align: center; }
.zc-modern .zc-cal .zc-cal-grade .zc-cal-dia { display: grid; place-items: center; height: 34px; padding: 0; border-radius: 9px; background: transparent; color: var(--zc-ink); font-size: 12.5px; font-weight: 700; }
.zc-modern .zc-cal .zc-cal-grade button.zc-cal-dia:not(.inicio):not(.fim):hover { background: var(--zc-soft); color: var(--zc-primary); }
.zc-modern .zc-cal .zc-cal-grade .zc-cal-dia.sem-dados { color: var(--zc-muted); font-weight: 500; opacity: .35; cursor: not-allowed; }
.zc-modern .zc-cal .zc-cal-grade .zc-cal-dia.hoje { box-shadow: inset 0 0 0 1px var(--zc-primary); }
.zc-modern .zc-cal .zc-cal-grade .zc-cal-dia.meio { border-radius: 4px; background: var(--zc-soft); color: var(--zc-primary); }
.zc-modern .zc-cal .zc-cal-grade .zc-cal-dia.inicio, .zc-modern .zc-cal .zc-cal-grade .zc-cal-dia.fim { background: var(--zc-primary); color: #fff; }
.zc-modern .zc-cal .zc-cal-escolhido { margin-top: 10px; font-size: 12px; line-height: 1.4; }
.zc-modern .zc-cal .zc-cal-escolhido strong { color: var(--zc-primary); }
.zc-modern .zc-cal .zc-cal-dica { margin-top: 3px; color: var(--zc-muted); font-size: 11px; }
.zc-modern .zc-cal .zc-cal-acoes { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.zc-modern .zc-cal .zc-cal-acoes button { padding: 7px 14px; border-radius: 10px; font-size: 12.5px; font-weight: 700; }
.zc-modern .zc-cal .zc-cal-acoes .zc-cal-cancelar { border: 1px solid var(--zc-line); background: transparent; color: var(--zc-muted); }
.zc-modern .zc-cal .zc-cal-acoes .zc-cal-aplicar { background: var(--zc-primary); color: #fff; }
.zc-modern .zc-cal .zc-cal-acoes .zc-cal-aplicar:disabled { opacity: .45; cursor: default; }

/* ===== PLAYER DAS GRAVAÇÕES (public/player-gravacao.js) =====
   No lugar do <audio controls> do navegador, na aba Ligações e no perfil do contato.
   Seletores com 3 classes por causa da regra de botão com ícone do icons.css (0,2,1). */
.zc-modern .zc-player { display: flex; align-items: center; gap: 12px; max-width: 560px; padding: 8px 10px 8px 8px; border: 1px solid var(--zc-line); border-radius: 14px; background: var(--zc-panel); }
.zc-modern .zc-player .zc-player-play { display: grid; flex: none; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 50%; background: var(--zc-primary); color: #fff; box-shadow: 0 4px 12px rgba(13, 107, 101, .25); transition: transform .12s, background .12s; }
.zc-modern .zc-player .zc-player-play:hover { background: var(--zc-primary-hover); transform: scale(1.05); }
.zc-modern .zc-player .zc-player-play svg { width: 17px; height: 17px; }
.zc-modern .zc-player .zc-player-meio { display: flex; flex: 1; flex-direction: column; gap: 5px; min-width: 0; }
.zc-modern .zc-player .zc-player-barra { position: relative; height: 6px; border-radius: 999px; background: var(--zc-line); cursor: pointer; touch-action: none; }
.zc-modern .zc-player .zc-player-barra:focus-visible { outline: 2px solid var(--zc-primary); outline-offset: 3px; }
.zc-modern .zc-player .zc-player-cheio { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: 999px; background: var(--zc-primary); }
.zc-modern .zc-player .zc-player-bolinha { position: absolute; top: 50%; left: 0; width: 14px; height: 14px; border: 2px solid var(--zc-panel); border-radius: 50%; background: var(--zc-primary); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); opacity: 0; transform: translate(-50%, -50%); transition: opacity .12s; }
.zc-modern .zc-player:hover .zc-player-bolinha, .zc-modern .zc-player.tocando .zc-player-bolinha, .zc-modern .zc-player.arrastando .zc-player-bolinha { opacity: 1; }
.zc-modern .zc-player .zc-player-tempos { display: flex; justify-content: space-between; color: var(--zc-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.zc-modern .zc-player.com-erro .zc-player-tempos span:last-child { color: #c0392b; }
.zc-modern .zc-player .zc-player-vel { flex: none; min-width: 48px; padding: 6px 8px; border: 1px solid var(--zc-line); border-radius: 9px; background: var(--zc-soft); color: var(--zc-primary); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.zc-modern .zc-player .zc-player-vel:hover { border-color: var(--zc-primary); }
.zc-modern .zc-player .zc-player-baixar { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--zc-muted); }
.zc-modern .zc-player .zc-player-baixar:hover { background: var(--zc-soft); color: var(--zc-primary); }
.zc-modern .zc-player .zc-player-baixar svg { width: 17px; height: 17px; }
/* No perfil do contato o painel é estreito: player mais compacto */
.zc-modern .contact-panel-call-audio .zc-player { gap: 8px; padding: 6px 6px 6px 6px; }
.zc-modern .contact-panel-call-audio .zc-player .zc-player-play { width: 32px; height: 32px; }
.zc-modern .contact-panel-call-audio .zc-player .zc-player-vel { min-width: 42px; padding: 5px 6px; font-size: 11px; }
.zc-modern .contact-panel-call-audio .zc-player .zc-player-baixar { width: 28px; height: 28px; }
/* Dashboard: mensagens apagadas para todos (blocoApagadas em public/dashboard.js) */
.zc-modern .zc-dash #dash-apagadas { margin-top: 16px; }
.zc-modern .zc-dash .zc-dash-apagou { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 750; white-space: nowrap; }
.zc-modern .zc-dash .zc-dash-apagou.cliente { background: rgba(192, 57, 43, .12); color: #b23a3a; }
.dark .zc-modern .zc-dash .zc-dash-apagou.cliente { color: #f08a7e; }
.zc-modern .zc-dash .zc-dash-apagou.equipe { background: var(--zc-soft); color: var(--zc-muted); }
.zc-modern .zc-dash .zc-dash-grid-apagadas .zc-dash-apagada { max-width: 460px; min-width: 220px; color: var(--zc-ink); font-size: 12.5px; line-height: 1.4; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; border-left: 3px solid rgba(192, 57, 43, .35); padding-left: 9px; }

/* ===== BOTÃO "+" DA CAIXA DE MENSAGEM (alternarMenuMais em public/app.js) =====
   Clipe e nota interna num menu que sobe, igual ao do WhatsApp. */
.zc-modern .zc-mais { position: relative; flex: none; }
.zc-modern .zc-mais.hidden { display: none; }
.zc-modern .chat-composer .zc-mais #btn-mais svg { transition: transform .18s ease; }
.zc-modern .chat-composer .zc-mais #btn-mais.aberto { border-color: var(--zc-primary); color: var(--zc-primary); }
.zc-modern .chat-composer .zc-mais #btn-mais.aberto svg { transform: rotate(45deg); }
.zc-modern .zc-mais .zc-mais-menu { position: absolute; bottom: calc(100% + 10px); left: 0; z-index: 40; min-width: 240px; padding: 6px; border: 1px solid var(--zc-line); border-radius: 14px; background: var(--zc-panel); box-shadow: 0 16px 36px rgba(13, 55, 52, .22); animation: zcMaisSobe .16s ease-out; }
.zc-modern .zc-mais .zc-mais-menu.hidden { display: none; }
@keyframes zcMaisSobe { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.zc-modern .zc-mais .zc-mais-menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border-radius: 10px; background: transparent; color: var(--zc-ink); text-align: left; }
.zc-modern .zc-mais .zc-mais-menu button:hover, .zc-modern .zc-mais .zc-mais-menu button:focus-visible { background: var(--zc-soft); outline: none; }
.zc-modern .zc-mais .zc-mais-menu button strong { display: block; font-size: 13.5px; font-weight: 700; }
.zc-modern .zc-mais .zc-mais-menu button small { display: block; margin-top: 1px; color: var(--zc-muted); font-size: 11.5px; }
.zc-modern .zc-mais .zc-mais-ic { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 50%; }
.zc-modern .zc-mais .zc-mais-ic svg { width: 19px; height: 19px; }
.zc-modern .zc-mais .zc-mais-ic.anexo { background: var(--zc-soft); color: var(--zc-primary); }
.zc-modern .zc-mais .zc-mais-ic.nota { background: rgba(210, 165, 103, .18); color: #b07a2a; }
.dark .zc-modern .zc-mais .zc-mais-ic.nota { color: var(--zc-accent); }
/* ---------- Agenda: calendário e visões ---------- */
.zc-modern #agendamento .zc-agenda-kicker{display:block;color:var(--brand-primary,#17665f);font-size:10px;font-weight:800;letter-spacing:.14em;margin-bottom:5px}
.zc-modern #agendamento .zc-agenda-primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:12px;padding:12px 17px;background:var(--brand-primary,#17665f);color:#fff;font-size:13px;font-weight:750;box-shadow:0 7px 16px color-mix(in srgb,var(--brand-primary,#17665f) 20%,transparent);transition:transform .18s,filter .18s}
.zc-modern #agendamento .zc-agenda-primary:hover{filter:brightness(1.06);transform:translateY(-1px)}
.zc-modern #agendamento .zc-agenda-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:0 0 15px;padding:13px 15px;background:#fff;border:1px solid #e2e9e6;border-radius:16px}
.zc-modern #agendamento .zc-agenda-date-nav{display:flex;align-items:center;gap:8px;min-width:0}
.zc-modern #agendamento .zc-agenda-date-nav button{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:34px;padding:0 10px;border:1px solid #dfe8e4;border-radius:9px;background:#f8faf9;color:#31534d;font-size:13px;font-weight:700}
.zc-modern #agendamento .zc-agenda-date-nav button:hover{border-color:var(--brand-primary,#17665f);color:var(--brand-primary,#17665f)}
.zc-modern #agendamento .zc-agenda-date-nav button[aria-label]{font-size:22px;line-height:1}
.zc-modern #agendamento #agenda-periodo-titulo{margin-left:5px;color:#254541;font-size:14px;text-transform:capitalize}
.zc-modern #agendamento .zc-agenda-view-switch,.zc-modern #agendamento .zc-agenda-filters{display:flex;align-items:center;gap:3px;padding:3px;border-radius:10px;background:#eff4f1}
.zc-modern #agendamento .zc-agenda-view-switch button,.zc-modern #agendamento .zc-agenda-filters button{border:0;border-radius:8px;padding:7px 11px;background:transparent;color:#667873;font-size:11px;font-weight:700;white-space:nowrap}
.zc-modern #agendamento .zc-agenda-view-switch button.active,.zc-modern #agendamento .zc-agenda-filters button.active{background:#fff;color:var(--brand-primary,#17665f);box-shadow:0 1px 4px #173b3817}
.zc-modern #agendamento .zc-agenda-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 15px}
.zc-modern #agendamento .zc-agenda-stat{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:61px;padding:12px 16px;background:#fff;border:1px solid #e3eae7;border-radius:14px}
.zc-modern #agendamento .zc-agenda-stat span{color:#72827e;font-size:11px;font-weight:600}.zc-modern #agendamento .zc-agenda-stat strong{color:#204943;font-size:22px;line-height:1}
.zc-modern #agendamento .zc-agenda-stat.has-error strong{color:#b8493e}
.zc-modern #agendamento #agendamento-list-container{width:100%;min-width:0;flex:1 1 auto}
/* Formulário da Agenda (16/11/2026): com 1/3 da tela os campos cortavam o texto; no desktop ele não fica abaixo de 24rem e Nome/Telefone vêm um embaixo do outro no index.html */
@media (min-width:1024px){.zc-modern #agendamento #agendamento-form-container{flex:0 0 auto;min-width:24rem}}
.zc-modern #agendamento .zc-agenda-calendar{width:100%;max-width:100%;min-width:0;box-sizing:border-box;background:#fff;border:1px solid #e1e9e5;border-radius:16px;overflow:auto}
.zc-modern #agendamento .zc-agenda-calendar.hidden,.zc-modern #agendamento #lista-agendamentos-salvos.hidden{display:none!important}
.zc-modern #agendamento .zc-agenda-calendar-week{display:grid;grid-template-columns:repeat(7,minmax(145px,1fr));min-height:390px}
.zc-modern #agendamento .zc-agenda-day{min-width:0;padding:11px 9px;border-right:1px solid #e8eeeb}.zc-modern #agendamento .zc-agenda-day:last-child{border-right:0}
.zc-modern #agendamento .zc-agenda-day-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;padding:2px 4px 9px;border-bottom:1px solid #edf1ef}
.zc-modern #agendamento .zc-agenda-day-head span{color:#788983;font-size:10px;font-weight:800;text-transform:uppercase}.zc-modern #agendamento .zc-agenda-day-head strong{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;color:#375650;font-size:12px}
.zc-modern #agendamento .zc-agenda-day.is-today .zc-agenda-day-head strong{background:var(--brand-primary,#17665f);color:#fff}
.zc-modern #agendamento .zc-agenda-empty-day{display:block;padding:8px 3px;color:#a0ada8;font-size:10px;text-align:center}
.zc-modern #agendamento .zc-agenda-event{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:3px;margin:0 0 7px;padding:8px;border:0;border-left:3px solid var(--brand-primary,#17665f);border-radius:8px;background:#eaf4f0;color:#274d46;text-align:left;overflow:hidden}
.zc-modern #agendamento .zc-agenda-event:hover{filter:brightness(.97)}.zc-modern #agendamento .zc-agenda-event strong{font-size:10px;color:#17665f}.zc-modern #agendamento .zc-agenda-event span{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:750}.zc-modern #agendamento .zc-agenda-event small{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#71837d;font-size:9px}
.zc-modern #agendamento .zc-agenda-event.is-error{border-left-color:#c65449;background:#fff0ee}.zc-modern #agendamento .zc-agenda-event.is-error strong{color:#b8493e}.zc-modern #agendamento .zc-agenda-event.is-sent{border-left-color:#55a77d;background:#edf7f0}
.zc-modern #agendamento #agenda-mes.zc-agenda-calendar-month{display:grid;width:100%!important;max-width:100%;min-width:0;grid-template-columns:repeat(7,minmax(0,1fr))!important}
.zc-modern #agendamento .zc-agenda-weekday{min-width:0;padding:11px 8px;color:#71817c;text-align:center;font-size:10px;font-weight:800;text-transform:uppercase;border-bottom:1px solid #e6ece9}
.zc-modern #agendamento .zc-agenda-month-day{min-width:0;min-height:104px;padding:7px;overflow:hidden;border-right:1px solid #edf1ef;border-bottom:1px solid #edf1ef}.zc-modern #agendamento .zc-agenda-month-day.is-outside{background:#fafcfb}.zc-modern #agendamento .zc-agenda-month-day.is-outside .zc-agenda-month-number{color:#b5bfba}.zc-modern #agendamento .zc-agenda-month-number{display:grid;place-items:center;width:24px;height:24px;margin-bottom:5px;border-radius:50%;color:#405b55;font-size:10px;font-weight:700}.zc-modern #agendamento .zc-agenda-month-day.is-today .zc-agenda-month-number{background:var(--brand-primary,#17665f);color:#fff}
.zc-modern #agendamento .zc-agenda-month-day .zc-agenda-event{padding:4px 6px;margin-bottom:4px;gap:1px}.zc-modern #agendamento .zc-agenda-month-day .zc-agenda-event strong{font-size:8px}.zc-modern #agendamento .zc-agenda-month-day .zc-agenda-event span{font-size:8px}.zc-modern #agendamento .zc-agenda-month-day .zc-agenda-event small{display:none}.zc-modern #agendamento .zc-agenda-more{color:#667873;font-size:9px}
.zc-modern #agendamento .zc-agenda-empty{grid-column:1/-1;padding:50px 18px;color:#758580;text-align:center;font-size:13px}
.zc-modern #agendamento .zc-agenda-mode-switch{display:flex;gap:4px;margin:0 0 18px;padding:4px;border-radius:11px;background:#eff4f1}
.zc-modern #agendamento .zc-agenda-mode-switch button{flex:1;border:0;border-radius:8px;padding:9px 10px;background:transparent;color:#637770;font-size:12px;font-weight:750}
.zc-modern #agendamento .zc-agenda-mode-switch button.active{background:#fff;color:var(--brand-primary,#17665f);box-shadow:0 1px 4px #173b3817}
.zc-modern #agendamento .zc-agenda-form-mode.hidden{display:none!important}
.zc-modern #agendamento .zc-agenda-appointment-card{display:flex;justify-content:space-between;gap:14px;padding:17px;border:1px solid #dfe9e4;border-left:4px solid #b98946;border-radius:14px;background:#fff}
.zc-modern #agendamento .zc-agenda-appointment-content{min-width:0}.zc-modern #agendamento .zc-agenda-appointment-badge{display:inline-flex;padding:4px 8px;border-radius:20px;background:#f8efdd;color:#8a6328;font-size:9px;font-weight:800;letter-spacing:.06em}.zc-modern #agendamento .zc-agenda-appointment-content h4{margin:9px 0 2px;color:#24443f;font-size:15px;font-weight:750}.zc-modern #agendamento .zc-agenda-appointment-phone,.zc-modern #agendamento .zc-agenda-appointment-note{margin:3px 0;color:#71817c;font-size:11px}.zc-modern #agendamento .zc-agenda-appointment-when{margin:8px 0;color:#315d53;font-size:12px;font-weight:700}.zc-modern #agendamento .zc-agenda-appointment-actions{display:flex;flex-direction:column;gap:7px}.zc-modern #agendamento .zc-agenda-icon-action{padding:7px 10px;border:1px solid #dfe8e4;border-radius:8px;background:#f8faf9;color:#31534d;font-size:10px;font-weight:700}.zc-modern #agendamento .zc-agenda-icon-action.is-delete{color:#ad4f43}
.dark .zc-modern #agendamento .zc-agenda-toolbar,.dark .zc-modern #agendamento .zc-agenda-stat,.dark .zc-modern #agendamento .zc-agenda-calendar{background:#172523;border-color:#2b3a37}
.dark .zc-modern #agendamento .zc-agenda-date-nav button{background:#202f2c;border-color:#354541;color:#d5e4df}.dark .zc-modern #agendamento #agenda-periodo-titulo,.dark .zc-modern #agendamento .zc-agenda-stat strong{color:#e4efeb}
.dark .zc-modern #agendamento .zc-agenda-view-switch,.dark .zc-modern #agendamento .zc-agenda-filters{background:#202f2c}.dark .zc-modern #agendamento .zc-agenda-view-switch button.active,.dark .zc-modern #agendamento .zc-agenda-filters button.active{background:#31443f;color:#bce0d5}
.dark .zc-modern #agendamento .zc-agenda-mode-switch{background:#202f2c}.dark .zc-modern #agendamento .zc-agenda-mode-switch button.active{background:#31443f;color:#bce0d5}.dark .zc-modern #agendamento .zc-agenda-appointment-card{background:#172523;border-color:#354541;border-left-color:#c89a56}.dark .zc-modern #agendamento .zc-agenda-appointment-content h4{color:#e4efeb}.dark .zc-modern #agendamento .zc-agenda-appointment-badge{background:#473b29;color:#e5c78e}.dark .zc-modern #agendamento .zc-agenda-icon-action{background:#202f2c;border-color:#354541;color:#d5e4df}
.dark .zc-modern #agendamento .zc-agenda-day-head,.dark .zc-modern #agendamento .zc-agenda-weekday,.dark .zc-modern #agendamento .zc-agenda-month-day{border-color:#2b3a37}.dark .zc-modern #agendamento .zc-agenda-day-head strong,.dark .zc-modern #agendamento .zc-agenda-month-number{color:#d5e4df}.dark .zc-modern #agendamento .zc-agenda-event{background:#213a34;color:#dcebe6}.dark .zc-modern #agendamento .zc-agenda-event small{color:#adc1b9}
.dark .zc-modern #agendamento .zc-agenda-month-day.is-outside{background:#14201e}.dark .zc-modern #agendamento .zc-agenda-month-day.is-outside .zc-agenda-month-number{color:#71827d}
@media(max-width:760px){.zc-modern #agendamento{padding:18px!important}.zc-modern #agendamento .zc-agenda-toolbar{align-items:flex-start}.zc-modern #agendamento .zc-agenda-date-nav{width:100%;flex-wrap:wrap}.zc-modern #agendamento #agenda-periodo-titulo{flex:1}.zc-modern #agendamento .zc-agenda-view-switch{width:100%;justify-content:space-around}.zc-modern #agendamento .zc-agenda-filters{width:100%;overflow:auto}.zc-modern #agendamento .zc-agenda-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.zc-modern #agendamento .zc-agenda-stat{align-items:flex-start;flex-direction:column;padding:10px;min-height:65px}.zc-modern #agendamento .zc-agenda-stat span{font-size:9px}.zc-modern #agendamento .zc-agenda-stat strong{font-size:18px}.zc-modern #agendamento .zc-agenda-calendar-week{grid-template-columns:repeat(7,minmax(155px,1fr))}.zc-modern #agendamento .zc-agenda-month-day{min-height:82px;padding:4px}.zc-modern #agendamento .zc-agenda-weekday{padding:8px 2px;font-size:8px}.zc-modern #agendamento .zc-agenda-appointment-card{padding:13px}.zc-modern #agendamento .zc-agenda-send-options button{font-size:10px;padding:8px 5px}}

/* ============================================================
   CONVERSA COM DONO (dono_conversa.js / app.js "CONVERSA COM DONO")
   Selo na lista, selo no cabeçalho, faixa acima da caixa de mensagem, linha
   "Responsável" do perfil e a janela "Passar conversa" (#modal-passar-conversa).
   ============================================================ */
.zc-modern .zc-selo-dono { display: inline-flex; align-items: center; gap: 3px; max-width: 96px; padding: 2px 6px; border: 1px solid rgba(13, 107, 101, .28); border-radius: 4px; background: rgba(13, 107, 101, .1); color: var(--zc-primary); font-size: 9px; font-weight: 700; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zc-modern .zc-selo-dono svg { width: 9px; height: 9px; flex: none; }
.zc-modern .zc-selo-dono.is-fila { border-color: rgba(210, 165, 103, .45); background: rgba(210, 165, 103, .14); color: var(--zc-accent-ink); }
.zc-modern .zc-selo-dono.is-ultimo { border-color: var(--zc-line); background: var(--zc-soft); color: var(--zc-muted); text-transform: none; }
/* Contato da equipe (contatos_equipe.js): conversa de todos */
.zc-modern .zc-selo-dono.is-equipe { border-color: rgba(210, 165, 103, .55); background: var(--zc-accent); color: #3d2a10; }

.zc-modern .zc-dono-cabecalho { display: inline-flex; align-items: center; gap: 4px; max-width: 130px; padding: 2px 8px; border-radius: 999px; background: rgba(13, 107, 101, .12); color: var(--zc-primary); font-size: 11px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.zc-modern .zc-dono-cabecalho span { overflow: hidden; text-overflow: ellipsis; }
.zc-modern .zc-dono-cabecalho svg { width: 11px; height: 11px; flex: none; }
.zc-modern .zc-dono-cabecalho.hidden { display: none; }

.zc-modern .zc-barra-dono { position: relative; z-index: 10; display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-top: 1px solid var(--zc-line); background: rgba(210, 165, 103, .14); color: var(--zc-accent-ink); font-size: 12.5px; font-weight: 600; flex-shrink: 0; }
.zc-modern .zc-barra-dono[data-modo="outro"] { background: rgba(13, 107, 101, .1); color: var(--zc-primary); }
.zc-modern .zc-barra-dono.hidden { display: none; }
.zc-modern .zc-barra-dono > svg { width: 15px; height: 15px; flex: none; }
.zc-modern .zc-barra-dono #barra-dono-texto { flex: 1; min-width: 0; }
.zc-modern .zc-barra-dono .zc-barra-dono-botao { flex: none; padding: 5px 12px; border-radius: 8px; background: var(--zc-primary); color: #fff; font-size: 12px; font-weight: 700; transition: background-color .15s; }
.zc-modern .zc-barra-dono .zc-barra-dono-botao:hover { background: var(--zc-primary-hover); }
.dark .zc-modern .zc-barra-dono .zc-barra-dono-botao { color: #0e2325; }

.zc-modern .contact-owner-card { display: flex; align-items: center; gap: 10px; margin: -8px 0 18px; padding: 9px 11px; border: 1px solid var(--zc-line); border-radius: 10px; background: var(--zc-panel); }
.zc-modern .contact-owner-card.hidden { display: none; }
.zc-modern .contact-owner-avatar { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: none; border-radius: 999px; background: rgba(210, 165, 103, .2); color: var(--zc-accent-ink); font-size: 13px; font-weight: 800; }
.zc-modern .contact-owner-card[data-estado="meu"] .contact-owner-avatar,
.zc-modern .contact-owner-card[data-estado="outro"] .contact-owner-avatar { background: rgba(13, 107, 101, .14); color: var(--zc-primary); }
.zc-modern .contact-owner-avatar:empty::before { content: ''; width: 10px; height: 10px; border: 2px solid currentColor; border-radius: 3px; }
.zc-modern .contact-owner-copy { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.zc-modern .contact-owner-label { color: var(--zc-muted); font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.zc-modern .contact-owner-copy strong { overflow: hidden; color: var(--zc-ink); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.zc-modern .contact-owner-copy span:last-child { overflow: hidden; color: var(--zc-muted); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.zc-modern .contact-owner-action { flex: none; padding: 5px 10px; border: 1px solid var(--zc-line); border-radius: 8px; background: var(--zc-soft); color: var(--zc-primary); font-size: 11px; font-weight: 700; transition: border-color .15s; }
.zc-modern .contact-owner-action:hover { border-color: var(--zc-primary); }
.zc-modern .contact-owner-action.hidden { display: none; }
/* Linha "Contato da equipe" do perfil (pintarEquipeConversa no app.js) */
.zc-modern .contact-team-row { display: flex; align-items: center; gap: 10px; margin: -8px 0 18px; padding: 8px 11px; border: 1px dashed var(--zc-line); border-radius: 10px; color: var(--zc-muted); font-size: 11.5px; }
.zc-modern .contact-team-row.hidden { display: none; }
.zc-modern .contact-team-row > span { flex: 1; min-width: 0; }
.zc-modern .contact-team-row[data-interno="1"] { border-style: solid; border-color: rgba(210, 165, 103, .55); background: rgba(210, 165, 103, .12); color: var(--zc-accent-ink); font-weight: 700; }

/* Configurações > Contatos da equipe */
/* Configurações mais larga (era max-w-4xl, 896 px): com 6 abas os nomes quebravam em duas
   linhas e sobrava espaço dos lados. As abas não quebram: em tela estreita elas rolam. */
.zc-modern #ajustes .zc-ajustes { max-width: 1240px; }
.zc-modern .zc-ajustes .zc-ajustes-abas { overflow-x: auto; scrollbar-width: none; }
.zc-modern .zc-ajustes .zc-ajustes-abas::-webkit-scrollbar { display: none; }
.zc-modern .zc-ajustes-abas .aba-ajuste.aba-ajuste { flex: 1 0 auto; white-space: nowrap; }
/* Aba ativa (16/11/2026): o botão guarda o hover:text-gray-700 de quando está inativo, e com o
   mouse em cima o nome sumia no fundo petróleo. */
.zc-modern .zc-ajustes-abas .aba-ajuste.bg-brand-primary:hover { color: #fff; }

.zc-modern .zc-equipe-busca { position: relative; }
.zc-modern .zc-equipe-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; }
/* Autocompletar do cadastro (_pintarSugestoesEquipe no app.js) */
.zc-modern .zc-equipe-busca .zc-equipe-sugestoes { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; display: flex; flex-direction: column; gap: 2px; max-height: 320px; overflow-y: auto; padding: 6px; border: 1px solid var(--zc-line); border-radius: 14px; background: var(--zc-panel); box-shadow: 0 12px 32px rgba(10, 40, 38, .18); }
.zc-modern .zc-equipe-busca .zc-equipe-sugestoes.hidden { display: none; }
.zc-modern .zc-equipe-sugestoes .zc-equipe-sugestao { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 10px; color: var(--zc-ink); text-align: left; }
.zc-modern .zc-equipe-sugestoes .zc-equipe-sugestao:hover:not(:disabled),
.zc-modern .zc-equipe-sugestoes .zc-equipe-sugestao.ativa { background: var(--zc-soft); }
.zc-modern .zc-equipe-sugestoes .zc-equipe-sugestao:disabled { opacity: .55; cursor: default; }
.zc-modern .zc-equipe-sugestao img { width: 34px; height: 34px; flex: none; border-radius: 999px; object-fit: cover; }
.zc-modern .zc-equipe-sugestao em { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--zc-accent); color: #3d2a10; font-size: 10.5px; font-style: normal; font-weight: 700; }
.zc-modern .zc-equipe-form input:focus { border-color: var(--zc-primary); }
.zc-modern .zc-equipe-form button:disabled { opacity: .5; cursor: not-allowed; }
.zc-modern .zc-equipe-lista { display: flex; flex-direction: column; gap: 8px; }
.zc-modern .zc-equipe-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--zc-line); border-radius: 12px; background: var(--zc-panel); }
.zc-modern .zc-equipe-avatar { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: none; border-radius: 999px; background: rgba(210, 165, 103, .2); color: var(--zc-accent-ink); font-weight: 800; }
.zc-modern .zc-equipe-avatar.hidden { display: none; }
.zc-modern .zc-equipe-item .zc-equipe-foto { width: 34px; height: 34px; flex: none; border-radius: 999px; object-fit: cover; }
.zc-modern .zc-equipe-dados { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.zc-modern .zc-equipe-dados strong { overflow: hidden; color: var(--zc-ink); font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.zc-modern .zc-equipe-dados span { color: var(--zc-muted); font-size: 12px; }
.zc-modern .zc-equipe-item .zc-equipe-remover { flex: none; padding: 6px 12px; border: 1px solid var(--zc-line); border-radius: 9px; color: #b42318; font-size: 12px; font-weight: 700; transition: border-color .15s, background-color .15s; }
.zc-modern .zc-equipe-item .zc-equipe-remover:hover { border-color: #b42318; background: rgba(180, 35, 24, .08); }
.zc-modern .zc-equipe-item .zc-equipe-remover:disabled { opacity: .5; }
.dark .zc-modern .zc-equipe-item .zc-equipe-remover { color: #f97066; }
@media (max-width: 767px) {
    .zc-modern .zc-equipe-form { grid-template-columns: 1fr; }
}

/* Janela "Passar conversa": z-index, altura, foco e botão desligado ficam aqui porque
   z-[260], max-h-[90vh], focus:border-* e disabled:* não saem no CSS gerado do Tailwind */
#modal-passar-conversa { z-index: 260; }
.zc-modern .zc-passar { max-height: 90vh; }
.zc-modern .zc-passar #passar-recado:focus { border-color: var(--zc-primary); }
.zc-modern .zc-passar #passar-confirmar:disabled { opacity: .5; cursor: not-allowed; }
.dark .zc-modern .zc-passar .bg-brand-light { background: rgba(105, 194, 180, .16); }
.zc-modern .zc-passar-lista { display: flex; flex-direction: column; gap: 6px; }
.zc-modern .zc-passar-vazio { padding: 14px; color: var(--zc-muted); font-size: 12.5px; text-align: center; }
.zc-modern .zc-passar-lista .zc-passar-pessoa { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border: 1px solid var(--zc-line); border-radius: 12px; background: var(--zc-panel); color: var(--zc-ink); text-align: left; transition: border-color .15s, background-color .15s; }
.zc-modern .zc-passar-lista .zc-passar-pessoa:hover:not(:disabled) { border-color: var(--zc-primary); background: var(--zc-soft); }
.zc-modern .zc-passar-lista .zc-passar-pessoa[aria-checked="true"] { border-color: var(--zc-primary); background: rgba(13, 107, 101, .1); box-shadow: inset 0 0 0 1px var(--zc-primary); }
.zc-modern .zc-passar-lista .zc-passar-pessoa:disabled { opacity: .55; cursor: default; }
.zc-modern .zc-passar-avatar { position: relative; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none; border-radius: 999px; background: var(--zc-soft); color: var(--zc-primary); font-size: 13px; font-weight: 800; }
.zc-modern .zc-passar-avatar svg { width: 16px; height: 16px; }
.zc-modern .zc-passar-avatar.online::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border: 2px solid var(--zc-panel); border-radius: 999px; background: #1f9d55; }
.zc-modern .zc-passar-nome { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.zc-modern .zc-passar-nome strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.zc-modern .zc-passar-nome small { color: var(--zc-muted); font-size: 11px; }
/* "Distribuir entre os funcionários" (#passar-divisao): quanto vai pra cada um */
.zc-modern .zc-passar-divisao { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid var(--zc-line); border-radius: 12px; background: var(--zc-soft); }
.zc-modern .zc-passar-divisao.hidden { display: none; }
.zc-modern .zc-passar-divisao-titulo { margin-bottom: 2px; color: var(--zc-muted); font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.zc-modern .zc-passar-cota { display: flex; align-items: center; gap: 10px; padding: 5px 2px; color: var(--zc-ink); font-size: 13px; cursor: pointer; }
.zc-modern .zc-passar-cota input { width: 16px; height: 16px; flex: none; accent-color: var(--zc-primary); cursor: pointer; }
.zc-modern .zc-passar-cota-nome { flex: 1; min-width: 0; overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.zc-modern .zc-passar-cota-num { display: flex; align-items: baseline; gap: 6px; flex: none; }
.zc-modern .zc-passar-cota-num strong { color: var(--zc-primary); font-size: 13.5px; }
.zc-modern .zc-passar-cota-num small { color: var(--zc-muted); font-size: 11px; }
.zc-modern .zc-passar-cota.fora .zc-passar-cota-nome { color: var(--zc-muted); font-weight: 500; }

@media (max-width: 767px) {
    .zc-modern .zc-barra-dono { padding: 7px 10px; font-size: 11.5px; }
}

/* ============================================================
   MONITORAMENTO (public/monitoramento.js)
   Mesma regra do Dashboard: seletores com 3 classes (.zc-modern .zc-mon .x) porque a
   regra de botão com ícone do icons.css pontua (0,2,1). Verde, âmbar e vermelho dos
   anéis são as cores de alerta do cronômetro da lista (10 e 20 min).
   ============================================================ */
.zc-modern .zc-mon { --zc-mon-ok: #1f9d55; --zc-mon-atencao: #d97706; --zc-mon-atrasado: #dc2626; --zc-mon-calmo: #9aaaa7; max-width: 1600px; margin: 0 auto; color: var(--zc-ink); transition: opacity .18s ease; }
.zc-modern .zc-mon.recarregando { opacity: .7; }
.zc-modern #monitoramento { padding: 24px 28px; }
.zc-modern .zc-mon .zc-mon-topo { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 6px; }
.zc-modern .zc-mon .zc-mon-titulo h1 { display: flex; align-items: center; gap: 12px; font-size: 28px; font-weight: 800; }
.zc-modern .zc-mon .zc-mon-titulo h1 svg { color: var(--zc-primary); }
.zc-modern .zc-mon .zc-mon-titulo p { margin-top: 4px; color: var(--zc-muted); font-size: 13.5px; }
.zc-modern .zc-mon .zc-mon-controles { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.zc-modern .zc-mon .zc-mon-select { min-height: 38px; max-width: 240px; padding: 7px 12px; border: 1px solid var(--zc-line); border-radius: 12px; background: var(--zc-panel); color: var(--zc-ink); font-size: 13px; font-weight: 600; }
.zc-modern .zc-mon .zc-mon-select:focus { outline: none; border-color: var(--zc-primary); }
.zc-modern .zc-mon .zc-mon-botao { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 14px; border: 1px solid var(--zc-line); border-radius: 12px; background: var(--zc-panel); color: var(--zc-ink); font-size: 13px; font-weight: 700; transition: border-color .15s, background-color .15s; }
.zc-modern .zc-mon .zc-mon-botao:hover { border-color: var(--zc-primary); background: var(--zc-soft); }
.zc-modern .zc-mon .zc-mon-relogio { min-height: 18px; margin-bottom: 16px; color: var(--zc-muted); font-size: 12px; text-align: right; }
.zc-modern .zc-mon .zc-mon-aviso { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; padding: 12px 14px; border: 1px solid rgba(210, 165, 103, .45); border-radius: 14px; background: rgba(210, 165, 103, .12); color: var(--zc-accent-ink); font-size: 12.5px; line-height: 1.5; }
.zc-modern .zc-mon .zc-mon-aviso > span { flex: 1; min-width: 220px; }
.zc-modern .zc-mon .zc-mon-carregando { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 60px 0; color: var(--zc-muted); font-size: 14px; }

.zc-modern .zc-mon .zc-mon-numeros { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 10px; margin-bottom: 20px; }
.zc-modern .zc-mon .zc-mon-numero { display: flex; flex-direction: column; gap: 3px; padding: 13px 15px; border: 1px solid var(--zc-line); border-radius: 14px; background: var(--zc-panel); }
.zc-modern .zc-mon .zc-mon-numero-rot { display: flex; align-items: center; gap: 6px; color: var(--zc-muted); font-size: 12px; font-weight: 700; }
.zc-modern .zc-mon .zc-mon-numero-rot svg { color: var(--zc-primary); font-size: 14px; }
.zc-modern .zc-mon .zc-mon-numero strong { font-size: 24px; font-weight: 800; line-height: 1.1; }
.zc-modern .zc-mon .zc-mon-numero small { color: var(--zc-muted); font-size: 11px; }

/* Quadro: colunas lado a lado com rolagem horizontal; cada lista rola por dentro */
.zc-modern .zc-mon .zc-mon-quadro { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; align-items: flex-start; }
/* Largura fixa (09/11/2026): sem o min-width: 0 a prévia em uma linha só (nowrap) virava a
   largura mínima da coluna e ela esticava até caber a mensagem inteira. A mensagem completa
   aparece ao abrir a conversa. */
.zc-modern .zc-mon .zc-mon-coluna { display: flex; flex-direction: column; flex: 0 0 260px; width: 260px; min-width: 0; max-width: 260px; max-height: calc(100vh - 260px); min-height: 220px; border: 1px solid var(--zc-line); border-radius: 16px; background: var(--zc-soft); scroll-snap-align: start; transition: border-color .15s, box-shadow .15s; }
.zc-modern .zc-mon .zc-mon-coluna.fila { background: rgba(210, 165, 103, .1); border-color: rgba(210, 165, 103, .4); }
.zc-modern .zc-mon .zc-mon-coluna.alvo { border-color: var(--zc-primary); box-shadow: 0 0 0 2px rgba(13, 107, 101, .25); }
.zc-modern .zc-mon .zc-mon-coluna-topo { display: flex; align-items: center; gap: 9px; padding: 12px 12px 10px; border-bottom: 1px solid var(--zc-line); }
.zc-modern .zc-mon .zc-mon-avatar { position: relative; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: none; border: 1px solid var(--zc-line); border-radius: 999px; background: var(--zc-panel); color: var(--zc-primary); font-size: 14px; font-weight: 800; }
.zc-modern .zc-mon .zc-mon-avatar svg { width: 16px; height: 16px; color: var(--zc-accent-ink); }
.zc-modern .zc-mon .zc-mon-avatar.online::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border: 2px solid var(--zc-soft); border-radius: 999px; background: var(--zc-mon-ok); }
.zc-modern .zc-mon .zc-mon-coluna-nome { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.zc-modern .zc-mon .zc-mon-coluna-nome strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.zc-modern .zc-mon .zc-mon-coluna-nome small { overflow: hidden; color: var(--zc-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.zc-modern .zc-mon .zc-mon-qtd { min-width: 24px; padding: 2px 8px; border-radius: 999px; background: var(--zc-primary); color: #fff; font-size: 12px; font-weight: 800; text-align: center; }
.dark .zc-modern .zc-mon .zc-mon-qtd { color: #0e2325; }
.zc-modern .zc-mon .zc-mon-coluna.fila .zc-mon-qtd { background: var(--zc-accent); color: #3d2a10; }
.zc-modern .zc-mon .zc-mon-coluna-acao { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: none; border: 1px solid var(--zc-line); border-radius: 9px; background: var(--zc-panel); color: var(--zc-muted); transition: color .15s, border-color .15s; }
.zc-modern .zc-mon .zc-mon-coluna-acao:hover { border-color: var(--zc-primary); color: var(--zc-primary); }
.zc-modern .zc-mon .zc-mon-lista { display: flex; flex-direction: column; gap: 8px; padding: 10px; overflow-y: auto; overflow-x: hidden; min-width: 0; }
.zc-modern .zc-mon .zc-mon-vazio { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 28px 12px; color: var(--zc-muted); font-size: 12px; text-align: center; }
.zc-modern .zc-mon .zc-mon-vazio svg { width: 26px; height: 26px; margin-bottom: 4px; color: var(--zc-primary); }
.zc-modern .zc-mon .zc-mon-vazio strong { color: var(--zc-ink); font-size: 13.5px; }

/* flex-shrink: 0: numa coluna cheia (com rolagem) a lista espremia os cartões pra caber tudo e
   cortava nome e etiqueta (09/11/2026). Sem overflow: hidden aqui, que zerava a altura mínima
   do cartão; o texto já corta no corpo (min-width: 0) e no parágrafo. */
.zc-modern .zc-mon .zc-mon-card { position: relative; display: flex; flex-shrink: 0; align-items: center; gap: 10px; min-width: 0; padding: 10px; border: 1px solid var(--zc-line); border-radius: 12px; background: var(--zc-panel); cursor: pointer; transition: border-color .15s, box-shadow .15s, opacity .15s; }
.zc-modern .zc-mon .zc-mon-card:hover { border-color: var(--zc-primary); box-shadow: 0 4px 14px rgba(10, 40, 38, .08); }
.zc-modern .zc-mon .zc-mon-card.arrastando { opacity: .45; }
.zc-modern .zc-mon .zc-mon-anel { --zc-mon-cor-anel: var(--zc-mon-calmo); position: relative; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; flex: none; border-radius: 999px; background: conic-gradient(var(--zc-mon-cor-anel) calc(var(--zc-mon-p, 0) * 1%), var(--zc-line) 0); }
.zc-modern .zc-mon .zc-mon-anel::before { content: ''; position: absolute; inset: 4px; border-radius: 999px; background: var(--zc-panel); }
.zc-modern .zc-mon .zc-mon-anel span { position: relative; color: var(--zc-ink); font-size: 12px; font-weight: 800; }
.zc-modern .zc-mon .zc-mon-anel.ok { --zc-mon-cor-anel: var(--zc-mon-ok); }
.zc-modern .zc-mon .zc-mon-anel.atencao { --zc-mon-cor-anel: var(--zc-mon-atencao); }
.zc-modern .zc-mon .zc-mon-anel.atrasado { --zc-mon-cor-anel: var(--zc-mon-atrasado); }
.zc-modern .zc-mon .zc-mon-anel.atrasado span { color: var(--zc-mon-atrasado); }
.zc-modern .zc-mon .zc-mon-card-corpo { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.zc-modern .zc-mon .zc-mon-card-linha { display: flex; align-items: center; gap: 6px; min-width: 0; }
.zc-modern .zc-mon .zc-mon-card-linha strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.zc-modern .zc-mon .zc-mon-card-corpo p { overflow: hidden; color: var(--zc-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.zc-modern .zc-mon .zc-mon-card-rodape { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.zc-modern .zc-mon .zc-mon-conexao { max-width: 140px; overflow: hidden; padding: 1px 7px; border: 1px solid color-mix(in srgb, var(--zc-mon-cor) 45%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--zc-mon-cor) 12%, transparent); color: var(--zc-ink); font-size: 10.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.zc-modern .zc-mon .zc-mon-ultimo { padding: 1px 7px; border-radius: 999px; background: var(--zc-soft); color: var(--zc-muted); font-size: 10.5px; }
.zc-modern .zc-mon .zc-mon-naolidas { min-width: 18px; margin-left: auto; padding: 1px 6px; border-radius: 999px; background: var(--zc-mon-atrasado); color: #fff; font-size: 10.5px; font-weight: 800; text-align: center; }
.zc-modern .zc-mon .zc-mon-urgente { display: inline-flex; color: var(--zc-mon-atrasado); }
.zc-modern .zc-mon .zc-mon-card-passar { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: none; border: 1px solid transparent; border-radius: 9px; color: var(--zc-muted); transition: color .15s, border-color .15s, background-color .15s; }
.zc-modern .zc-mon .zc-mon-card-passar:hover { border-color: var(--zc-line); background: var(--zc-soft); color: var(--zc-primary); }
.zc-modern .zc-mon .zc-mon-nota { margin-top: 10px; color: var(--zc-muted); font-size: 11.5px; }

@media (max-width: 767px) {
    .zc-modern #monitoramento { padding: 16px; }
    .zc-modern .zc-mon .zc-mon-titulo h1 { font-size: 22px; }
    .zc-modern .zc-mon .zc-mon-controles { width: 100%; }
    .zc-modern .zc-mon .zc-mon-select { flex: 1; max-width: none; }
    .zc-modern .zc-mon .zc-mon-relogio { text-align: left; }
    .zc-modern .zc-mon .zc-mon-coluna { flex-basis: min(86vw, 280px); width: min(86vw, 280px); max-width: min(86vw, 280px); max-height: none; }
    .zc-modern .zc-mon .zc-mon-numeros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Monitoramento: botão "Só funcionários" ligado */
.zc-modern .zc-mon .zc-mon-botao.ativo { border-color: var(--zc-primary); background: var(--zc-soft); color: var(--zc-primary); }

/* Monitoramento: conversa aberta por cima do quadro (monitoramento.js, abrirPorCima). O
   #tela-chat da aba Conversas entra no corpo desta janela e volta pro lugar ao fechar.
   Camada 90: acima da tela, abaixo do visualizador de fotos (100) e das confirmações (250+);
   as janelas antigas na camada 50 sobem enquanto ela está aberta. */
.zc-modern .zc-mon-espiar { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 24px; }
.zc-modern .zc-mon-espiar.hidden { display: none; }
.zc-modern .zc-mon-espiar-fundo { position: absolute; inset: 0; background: rgba(10, 32, 30, .55); backdrop-filter: blur(3px); }
.zc-modern .zc-mon-espiar-caixa { position: relative; display: flex; flex-direction: column; width: min(1180px, 100%); height: min(860px, 100%); overflow: hidden; border: 1px solid var(--zc-line); border-radius: 18px; background: var(--zc-panel); box-shadow: 0 28px 70px rgba(13, 55, 52, .35); }
.zc-modern .zc-mon-espiar-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-bottom: 1px solid var(--zc-line); background: var(--zc-panel); }
.zc-modern .zc-mon-espiar .zc-mon-espiar-voltar { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px; color: var(--zc-primary); font-size: 13px; font-weight: 700; }
.zc-modern .zc-mon-espiar .zc-mon-espiar-x { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; color: var(--zc-muted); font-size: 18px; }
.zc-modern .zc-mon-espiar .zc-mon-espiar-voltar:hover,
.zc-modern .zc-mon-espiar .zc-mon-espiar-x:hover { background: var(--zc-soft); }
.zc-modern .zc-mon-espiar-corpo { display: flex; flex: 1; min-height: 0; }
.zc-modern .zc-mon-espiar-corpo > #tela-chat { flex: 1; height: 100%; min-width: 0; }
html.zc-espiando :is(#modal-apagar-msgs, #modal-transferir-contatos, #modal-transferir-conversas) { z-index: 96; }
@media (max-width: 700px) {
    .zc-modern .zc-mon-espiar { padding: 0; }
    .zc-modern .zc-mon-espiar-caixa { border-radius: 0; height: 100%; }
}

/* ===================== CORREÇÃO AUTOMÁTICA (public/correcao-texto.js) =====================
   Faixa da sugestão da IA logo acima da caixa de mensagem. Seletores com 3 classes por
   causa da regra de botão com ícone do icons.css, que pontua (0,2,1). */
.zc-modern .chat-composer .zc-sugestao-correcao { position: absolute; left: 80px; right: 92px; bottom: calc(100% + 8px); z-index: 34; display: flex; align-items: stretch; gap: 4px; padding: 4px; border: 1px solid var(--zc-line); border-left: 3px solid var(--zc-accent); border-radius: 12px; background: var(--zc-panel); color: var(--zc-ink); box-shadow: 0 10px 26px rgba(13, 55, 52, .18); animation: zcMaisSobe .14s ease-out; }
.zc-modern .chat-composer .zc-sugestao-correcao.hidden { display: none; }
.zc-modern .zc-sugestao-correcao .zc-sug-usar { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; padding: 7px 10px; border-radius: 9px; background: transparent; color: var(--zc-ink); text-align: left; cursor: pointer; }
.zc-modern .zc-sugestao-correcao .zc-sug-usar:hover, .zc-modern .zc-sugestao-correcao .zc-sug-usar:focus-visible { background: var(--zc-soft); outline: none; }
.zc-modern .zc-sugestao-correcao .zc-sug-usar > svg { flex: none; width: 17px; height: 17px; color: var(--zc-accent-ink); }
.zc-modern .zc-sugestao-correcao .zc-sug-rotulo { flex: none; color: var(--zc-muted); font-size: 12px; font-weight: 700; }
.zc-modern .zc-sugestao-correcao .zc-sug-texto { flex: 1; min-width: 0; overflow: hidden; font-size: 13.5px; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; }
.zc-modern .zc-sugestao-correcao .zc-sug-texto mark { padding: 0 2px; border-radius: 4px; background: rgba(210, 165, 103, .28); color: inherit; font-weight: 700; }
.zc-modern .zc-sugestao-correcao kbd { flex: none; padding: 1px 6px; border: 1px solid var(--zc-line); border-radius: 5px; background: var(--zc-soft); color: var(--zc-muted); font-size: 10.5px; font-weight: 700; line-height: 1.4; font-family: inherit; }
.zc-modern .zc-sugestao-correcao .zc-sug-fechar { display: grid; flex: none; place-items: center; width: 34px; border-radius: 9px; background: transparent; color: var(--zc-muted); cursor: pointer; }
.zc-modern .zc-sugestao-correcao .zc-sug-fechar:hover { background: var(--zc-soft); color: var(--zc-ink); }
.zc-modern .zc-sugestao-correcao .zc-sug-fechar svg { width: 15px; height: 15px; }
.zc-modern .zc-mais .zc-mais-ic.correcao { background: rgba(210, 165, 103, .18); color: var(--zc-accent-ink); }
@media (max-width: 680px) {
    .zc-modern .chat-composer .zc-sugestao-correcao { left: 10px; right: 10px; }
    .zc-modern .zc-sugestao-correcao kbd { display: none; }
}

/* ================= ABA TUTORIAL (public/tutorial.js, 16/11/2026) =================
   Lista das telas à esquerda e o vídeo com o passo a passo à direita; no celular o vídeo vem
   primeiro e a lista embaixo. */
.zc-modern .zc-tut { max-width: 1240px; margin: 0 auto; color: var(--zc-ink); }
.zc-modern .zc-tut-topo { margin-bottom: 24px; }
.zc-modern .zc-tut-topo h1 { display: flex; align-items: center; gap: 10px; }
.zc-modern .zc-tut-corpo { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 24px; align-items: start; }
.zc-modern .zc-tut-lista { position: sticky; top: 0; display: grid; gap: 6px; padding: 10px; background: var(--zc-panel); border: 1px solid var(--zc-line); border-radius: 18px; }
.zc-modern .zc-tut-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 12px; text-align: left; color: var(--zc-ink); background: transparent; transition: background .15s ease; }
.zc-modern .zc-tut-item:hover { background: var(--zc-soft); }
.zc-modern .zc-tut-item.ativo { background: var(--zc-bubble-out); }
.zc-modern .zc-tut-item-txt { display: grid; min-width: 0; }
.zc-modern .zc-tut-item-txt strong { font-size: 14px; font-weight: 700; }
.zc-modern .zc-tut-item-txt small { font-size: 12px; color: var(--zc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zc-modern .zc-tut-num { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--zc-primary); background: var(--zc-soft); border: 1px solid var(--zc-line); }
.zc-modern .zc-tut-item.ativo .zc-tut-num { color: #fff; background: var(--zc-primary); border-color: var(--zc-primary); }
.dark .zc-modern .zc-tut-item.ativo .zc-tut-num { color: #0e2325; }
.zc-modern .zc-tut-num.grande { width: 40px; height: 40px; font-size: 16px; color: #fff; background: var(--zc-primary); border-color: var(--zc-primary); }
.dark .zc-modern .zc-tut-num.grande { color: #0e2325; }
.zc-modern .zc-tut-detalhe { padding: 24px; background: var(--zc-panel); border: 1px solid var(--zc-line); border-radius: 18px; }
.zc-modern .zc-tut-cab { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.zc-modern .zc-tut-cab > div { flex: 1 1 280px; min-width: 0; }
.zc-modern .zc-tut-cab h2 { font-size: 22px; font-weight: 700; line-height: 1.2; }
.zc-modern .zc-tut-cab p { margin-top: 4px; color: var(--zc-muted); font-size: 14px; }
.zc-modern .zc-tut-selo { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--zc-accent-ink); background: color-mix(in srgb, var(--zc-accent) 22%, transparent); }
.zc-modern .zc-tut-video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; background: #0e2325; border: 1px solid var(--zc-line); }
.zc-modern .zc-tut-passos { margin: 20px 0 0; padding-left: 22px; display: grid; gap: 8px; list-style: decimal; font-size: 14px; line-height: 1.55; }
.zc-modern .zc-tut-passos li::marker { color: var(--zc-primary); font-weight: 700; }
.zc-modern .zc-tut-passos b { font-weight: 700; }
.zc-modern .zc-tut-passos kbd { padding: 1px 6px; border-radius: 6px; border: 1px solid var(--zc-line); background: var(--zc-soft); font-family: ui-monospace, monospace; font-size: 13px; }
.zc-modern .zc-tut-cuidado { margin-top: 16px; padding: 10px 14px; border-left: 3px solid #d97706; border-radius: 0 10px 10px 0; background: var(--zc-soft); font-size: 14px; }
.zc-modern .zc-tut-cuidado strong { color: #b45309; }
.dark .zc-modern .zc-tut-cuidado strong { color: #fbbf24; }
.zc-modern .zc-tut-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--zc-line); }
.zc-modern .zc-tut-espaco { flex: 1; }
.zc-modern .zc-tut-btn { padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 700; color: var(--zc-primary); background: var(--zc-soft); border: 1px solid var(--zc-line); transition: background .15s ease; }
.zc-modern .zc-tut-btn:hover { background: var(--zc-bubble-out); }
.zc-modern .zc-tut-btn.principal { color: #fff; background: var(--zc-primary); border-color: var(--zc-primary); }
.zc-modern .zc-tut-btn.principal:hover { background: var(--zc-primary-hover); }
.dark .zc-modern .zc-tut-btn.principal { color: #0e2325; }
.zc-modern .zc-tut-vazio { color: var(--zc-muted); }
@media (max-width: 900px) {
    .zc-modern .zc-tut-corpo { grid-template-columns: minmax(0, 1fr); }
    .zc-modern .zc-tut-lista { position: static; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .zc-modern .zc-tut-detalhe { order: -1; padding: 16px; }
}

/* ================= ABA FATURA (public/faturas.js, 17/11/2026) =================
   A empresa vê a fatura em destaque (Pagar fatura e Já paguei levam à Stripe), a assinatura
   e o histórico. A tela do admin é o Painel do admin (bloco PAINEL DO ADMIN, no fim), que usa
   os botões, selos, avisos e as janelas daqui. No celular as tabelas viram cartões (cada
   célula traz o rótulo no data-rot). As janelas de gerar o link de pagamento, editar a
   cobrança, marcar como pago, estender o teste e o histórico são criadas pelo faturas.js no
   body (#fat-janela). */
.zc-modern { --zc-fat-perigo: #b23a3a; --zc-fat-perigo-fundo: #fce7e7; --zc-fat-aviso-fundo: #f7f0e3; }
.dark .zc-modern { --zc-fat-perigo: #f19999; --zc-fat-perigo-fundo: #3a2124; --zc-fat-aviso-fundo: #2f2a20; }
.zc-modern .zc-fat { max-width: 1100px; margin: 0 auto; color: var(--zc-ink); }
.zc-modern .zc-fat-topo { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.zc-modern .zc-fat-topo h1 { display: flex; align-items: center; gap: 10px; }
.zc-modern .zc-fat-topo h1 svg { color: var(--zc-primary); }
.zc-modern .zc-fat-sub { margin-top: 4px; color: var(--zc-muted); }
.zc-modern .zc-fat-nada { color: var(--zc-muted); padding: 12px 0; }
.zc-modern .zc-fat-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--zc-line); background: var(--zc-panel); color: var(--zc-primary); font-size: 14px; font-weight: 700; text-decoration: none; transition: background .15s ease, border-color .15s ease; white-space: nowrap; }
.zc-modern .zc-fat-btn:hover { background: var(--zc-soft); }
.zc-modern .zc-fat-btn:disabled { opacity: .6; cursor: wait; }
.zc-modern .zc-fat-btn.principal { background: var(--zc-primary); border-color: var(--zc-primary); color: #fff; }
.zc-modern .zc-fat-btn.principal:hover { background: var(--zc-primary-hover); }
.dark .zc-modern .zc-fat-btn.principal { color: #0e2325; }
.zc-modern .zc-fat-btn.perigo { color: var(--zc-fat-perigo); }
.zc-modern .zc-fat-btn.pequeno { padding: 7px 11px; border-radius: 10px; font-size: 13px; }
.zc-modern .zc-fat-selo { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--zc-soft); color: var(--zc-muted); }
.zc-modern .zc-fat-selo.paga { background: var(--zc-bubble-out); color: var(--zc-success); }
.zc-modern .zc-fat-selo.aberta { background: var(--zc-fat-aviso-fundo); color: var(--zc-accent-ink); }
.zc-modern .zc-fat-selo.vencida { background: var(--zc-fat-perigo-fundo); color: var(--zc-fat-perigo); }
.zc-modern .zc-fat-aviso { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--zc-line); background: var(--zc-fat-aviso-fundo); color: var(--zc-accent-ink); font-size: 14px; font-weight: 600; }
.zc-modern .zc-fat-aviso.perigo { background: var(--zc-fat-perigo-fundo); color: var(--zc-fat-perigo); }
.zc-modern .zc-fat-aviso svg { flex-shrink: 0; margin-top: 2px; font-size: 18px; }
.zc-modern .zc-fat-vazio { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 48px 24px; border: 1px dashed var(--zc-line); border-radius: 18px; background: var(--zc-panel); text-align: center; color: var(--zc-muted); }
.zc-modern .zc-fat-vazio svg { font-size: 40px; color: var(--zc-primary); }
.zc-modern .zc-fat-vazio strong { color: var(--zc-ink); font-size: 17px; }
.zc-modern .zc-fat-destaque { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; margin-bottom: 18px; padding: 24px; border: 1px solid var(--zc-line); border-left: 5px solid var(--zc-accent); border-radius: 18px; background: var(--zc-panel); }
.zc-modern .zc-fat-destaque.paga { border-left-color: var(--zc-success); }
.zc-modern .zc-fat-destaque.vencida { border-left-color: var(--zc-fat-perigo); }
.zc-modern .zc-fat-destaque-info { display: grid; gap: 6px; }
.zc-modern .zc-fat-rot { color: var(--zc-muted); font-size: 13px; font-weight: 700; }
.zc-modern .zc-fat-valor { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.zc-modern .zc-fat-linha { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--zc-muted); font-size: 14px; }
.zc-modern .zc-fat-acoes { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.zc-modern .zc-fat-cartao { margin-bottom: 18px; padding: 22px 24px; border: 1px solid var(--zc-line); border-radius: 18px; background: var(--zc-panel); }
.zc-modern .zc-fat-cartao h2 { margin-bottom: 14px; font-size: 17px; font-weight: 800; }
.zc-modern .zc-fat-dados { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px 24px; margin: 0; }
.zc-modern .zc-fat-dados dt { color: var(--zc-muted); font-size: 13px; font-weight: 700; }
.zc-modern .zc-fat-dados dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.zc-modern .zc-fat-numeros { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.zc-modern .zc-fat-numeros > div { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--zc-line); border-radius: 16px; background: var(--zc-panel); }
.zc-modern .zc-fat-numeros span { color: var(--zc-muted); font-size: 13px; font-weight: 700; }
.zc-modern .zc-fat-numeros strong { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.zc-modern .zc-fat-numeros small { color: var(--zc-muted); font-size: 12.5px; }
.zc-modern .zc-fat-numeros .vencido strong { color: var(--zc-fat-perigo); }
.zc-modern .zc-fat-tabela-caixa { overflow-x: auto; }
.zc-modern .zc-fat-tabela { width: 100%; border-collapse: collapse; font-size: 14px; }
.zc-modern .zc-fat-tabela th { padding: 10px 12px; text-align: left; color: var(--zc-muted); font-size: 12.5px; font-weight: 700; border-bottom: 1px solid var(--zc-line); white-space: nowrap; }
.zc-modern .zc-fat-tabela td { padding: 12px; border-bottom: 1px solid var(--zc-line); vertical-align: middle; }
.zc-modern .zc-fat-tabela tr:last-child td { border-bottom: 0; }
.zc-modern .zc-fat-tabela td small { display: block; color: var(--zc-muted); font-size: 12.5px; }
.zc-modern .zc-fat-tabela td a { color: var(--zc-primary); font-weight: 700; }
.zc-modern .zc-fat-tabela tr.inativa td { opacity: .6; }
.zc-modern .zc-fat-tabela-acao { text-align: right; }
.zc-fat-janela { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px); }
.zc-modern .zc-fat-janela-caixa { width: 100%; max-width: 720px; max-height: 90vh; overflow-y: auto; border-radius: 18px; border: 1px solid var(--zc-line); background: var(--zc-panel); color: var(--zc-ink); box-shadow: 0 30px 70px rgba(0, 0, 0, .3); }
.zc-modern .zc-fat-janela-topo { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--zc-line); background: var(--zc-panel); }
.zc-modern .zc-fat-janela-topo h3 { font-size: 18px; font-weight: 800; }
.zc-modern .zc-fat-fechar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--zc-muted); }
.zc-modern .zc-fat-fechar:hover { background: var(--zc-soft); color: var(--zc-ink); }
.zc-modern .zc-fat-janela-corpo { padding: 20px 22px 22px; }
.zc-modern .zc-fat-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
/* Campo de formulário em linha que quebra: o título e o "(opcional)" ficam na mesma linha; a caixa
   e o texto de ajuda depois dela ocupam a linha inteira. align-content: start: campo ao lado de
   outro mais alto (com texto de ajuda) não estica a caixa. Vale também pro .zc-adm-form. */
.zc-modern .zc-fat-form label { display: flex; flex-wrap: wrap; align-items: baseline; align-content: flex-start; gap: 6px 4px; font-size: 13.5px; font-weight: 700; color: var(--zc-ink); }
.zc-modern .zc-fat-form label > :is(input, select, textarea),
.zc-modern .zc-fat-form label > :is(input, select, textarea) ~ small { flex-basis: 100%; }
.zc-modern .zc-fat-form label small { color: var(--zc-muted); font-weight: 500; }
.zc-modern .zc-fat-form input, .zc-modern .zc-fat-form select { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--zc-line); background: var(--zc-soft); color: var(--zc-ink); font-size: 14.5px; font-weight: 500; }
.zc-modern .zc-fat-form input:focus, .zc-modern .zc-fat-form select:focus { outline: none; border-color: var(--zc-primary); }
.zc-modern .zc-fat-form .largo { grid-column: 1 / -1; }
.zc-modern .zc-fat-nota { color: var(--zc-muted); font-size: 13.5px; }
.zc-modern .zc-fat-erro { padding: 10px 12px; border-radius: 10px; background: var(--zc-fat-perigo-fundo); color: var(--zc-fat-perigo); font-size: 14px; font-weight: 600; }
.zc-modern .zc-fat-erro[hidden] { display: none; }
.zc-modern .zc-fat-form-acoes { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
@media (max-width: 900px) {
    .zc-modern .zc-fat-numeros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .zc-modern .zc-fat-destaque { grid-template-columns: minmax(0, 1fr); }
    .zc-modern .zc-fat-acoes { justify-content: flex-start; }
}
@media (max-width: 640px) {
    .zc-modern .zc-fat-form { grid-template-columns: minmax(0, 1fr); }
    .zc-modern .zc-fat-tabela thead { display: none; }
    .zc-modern .zc-fat-tabela, .zc-modern .zc-fat-tabela tbody, .zc-modern .zc-fat-tabela tr, .zc-modern .zc-fat-tabela td { display: block; width: 100%; }
    .zc-modern .zc-fat-tabela tr { padding: 10px 0; border-bottom: 1px solid var(--zc-line); }
    .zc-modern .zc-fat-tabela td { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border: 0; text-align: right; }
    .zc-modern .zc-fat-tabela td[data-rot]::before { content: attr(data-rot); color: var(--zc-muted); font-size: 12.5px; font-weight: 700; text-align: left; }
    .zc-modern .zc-fat-tabela-acao { justify-content: flex-start; text-align: left; }
}

/* ================= FAIXA DO TOPO: TESTE GRÁTIS E PRAZO DE ACESSO (public/faturas.js) =================
   Fica fixa em cima de tudo (menu e conteúdo) e empurra o body pra baixo com a própria
   altura (--zc-faixa-altura, medida no JS). normal = teste com folga, urgente = 2 dias ou
   menos, fim = travada. */
html.tem-faixa-acesso body { padding-top: var(--zc-faixa-altura, 46px); }
.zc-faixa-acesso { position: fixed; top: 0; left: 0; right: 0; z-index: 150; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; min-height: 46px; padding: 8px 16px; background: #f7f0e3; border-bottom: 1px solid #ecd9b8; color: #785321; font-size: 14.5px; font-weight: 600; text-align: center; }
.zc-faixa-acesso[hidden] { display: none; }
.zc-faixa-acesso svg { width: 18px; height: 18px; flex-shrink: 0; }
.zc-faixa-acesso button { padding: 6px 14px; border-radius: 999px; background: #0d6b65; color: #fff; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.zc-faixa-acesso button:hover { background: #095750; }
.zc-faixa-acesso.urgente { background: #d2a567; border-bottom-color: #bc8b4e; color: #193332; }
.zc-faixa-acesso.fim { background: #b23a3a; border-bottom-color: #8f2e2e; color: #fff; }
.zc-faixa-acesso.fim button { background: #fff; color: #b23a3a; }
.zc-faixa-acesso.fim button:hover { background: #fce7e7; }
.dark .zc-faixa-acesso { background: #2f2a20; border-bottom-color: #4a3f2c; color: #f2d9b6; }
.dark .zc-faixa-acesso.urgente { background: #d2a567; color: #193332; }
.dark .zc-faixa-acesso.fim { background: #8f2e2e; color: #fff; }
@media (max-width: 640px) {
    .zc-faixa-acesso { flex-wrap: nowrap; justify-content: space-between; gap: 10px; padding: 7px 12px; font-size: 12.5px; line-height: 1.35; text-align: left; }
    .zc-faixa-acesso svg { display: none; }
    .zc-faixa-acesso span { flex: 1; min-width: 0; }
    .zc-faixa-acesso button { flex-shrink: 0; padding: 6px 11px; font-size: 12.5px; }
}

/* ================= PLANOS NA ABA PLANO E FATURA (public/faturas.js) ================= */
.zc-modern .zc-fat-plano-topo { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; }
.zc-modern .zc-fat-plano-topo > div:first-child { display: grid; gap: 4px; }
.zc-modern .zc-fat-plano-nome { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.zc-modern .zc-fat-destaques { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 20px; margin: 16px 0 0; padding: 0; list-style: none; }
.zc-modern .zc-fat-destaques li, .zc-modern .zc-fat-oferta li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; }
.zc-modern .zc-fat-destaques svg, .zc-modern .zc-fat-oferta li svg { flex-shrink: 0; margin-top: 3px; color: var(--zc-primary); }
.zc-modern .zc-fat-plano .zc-fat-dados { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--zc-line); }
.zc-modern .zc-fat-escolha-topo { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.zc-modern .zc-fat-escolha-topo h2 { margin-bottom: 2px; }
.zc-modern .zc-fat-ciclo { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--zc-line); border-radius: 12px; background: var(--zc-soft); }
.zc-modern .zc-fat-ciclo button { padding: 8px 14px; border-radius: 9px; color: var(--zc-muted); font-size: 13.5px; font-weight: 700; }
.zc-modern .zc-fat-ciclo button[aria-pressed="true"] { background: var(--zc-primary); color: #fff; }
.dark .zc-modern .zc-fat-ciclo button[aria-pressed="true"] { color: #0e2325; }
.zc-modern .zc-fat-ciclo button span { margin-left: 6px; padding: 2px 7px; border-radius: 6px; background: var(--zc-fat-aviso-fundo); color: var(--zc-accent-ink); font-size: 11.5px; }
.zc-modern .zc-fat-ofertas { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.zc-modern .zc-fat-oferta { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--zc-line); border-radius: 16px; background: var(--zc-panel); }
.zc-modern .zc-fat-oferta.destaque { border-color: var(--zc-accent); }
.zc-modern .zc-fat-oferta.marcado { border: 2px solid var(--zc-primary); box-shadow: 0 14px 30px rgba(13, 107, 101, .12); }
.zc-modern .zc-fat-oferta h3 { font-size: 18px; font-weight: 800; }
.zc-modern .zc-fat-oferta-preco { display: flex; align-items: baseline; gap: 4px; }
.zc-modern .zc-fat-oferta-preco strong { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.zc-modern .zc-fat-oferta-preco small, .zc-modern .zc-fat-oferta-nota { color: var(--zc-muted); font-size: 13px; }
.zc-modern .zc-fat-oferta ul { display: grid; align-content: start; gap: 7px; margin: 0; padding: 0; list-style: none; flex: 1; }
.zc-modern .zc-fat-oferta .zc-fat-btn { width: 100%; }
.zc-modern .zc-fat-checkout { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--zc-line); }
/* Assinar com adicionais (18/11/2026): fita do plano mais escolhido, chips extras e Ligações
   ao lado do resumo com o total. Uma tela só, sem passos. */
.zc-modern .zc-fat-oferta { position: relative; }
.zc-modern .zc-fat-fita { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); padding: 3px 12px; border-radius: 999px; background: var(--zc-accent); color: #2a1d08; font-size: 12px; font-weight: 800; white-space: nowrap; }
.zc-modern .zc-fat-ofertas { padding-top: 6px; }
.zc-modern .zc-fat-economia { color: var(--zc-success); font-weight: 700; }
.zc-modern form.zc-fat-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.zc-modern .zc-fat-adicionais h3 { margin: 0 0 6px; font-size: 17px; font-weight: 800; }
.zc-modern .zc-fat-adicionais h3 small { margin-left: 6px; color: var(--zc-muted); font-size: 13px; font-weight: 600; }
.zc-modern .zc-fat-adic { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--zc-line); }
.zc-modern .zc-fat-adicionais h3 + .zc-fat-adic { border-top: 0; }
.zc-modern .zc-fat-adic-ico { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--zc-bubble-out); color: var(--zc-primary); }
.zc-modern .zc-fat-adic-ico svg { width: 24px; height: 24px; }
.zc-modern .zc-fat-adic-txt { display: grid; gap: 2px; flex: 1; min-width: 0; }
.zc-modern .zc-fat-adic-txt small { color: var(--zc-muted); font-size: 13px; }
.zc-modern .zc-fat-adic-preco { font-size: 14px; font-weight: 700; white-space: nowrap; }
.zc-modern .zc-fat-passo { display: inline-flex; align-items: center; flex-shrink: 0; border: 1px solid var(--zc-line); border-radius: 10px; overflow: hidden; }
.zc-modern .zc-fat-passo button { width: 36px; height: 36px; background: var(--zc-soft); color: var(--zc-ink); font-size: 18px; font-weight: 800; }
.zc-modern .zc-fat-passo button:disabled { color: var(--zc-line); cursor: not-allowed; }
.zc-modern .zc-fat-passo span { min-width: 38px; text-align: center; font-weight: 800; }
.zc-modern .zc-fat-chave { position: relative; width: 46px; height: 26px; flex-shrink: 0; border-radius: 999px; background: var(--zc-line); transition: background .15s; }
.zc-modern .zc-fat-chave::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: left .15s; }
.zc-modern .zc-fat-chave[aria-checked="true"] { background: var(--zc-primary); }
.zc-modern .zc-fat-chave[aria-checked="true"]::after { left: 23px; }
.zc-modern .zc-fat-total { display: grid; gap: 8px; padding: 18px; border: 1px solid var(--zc-line); border-radius: 16px; background: var(--zc-soft); }
.zc-modern .zc-fat-total-linhas { display: grid; gap: 6px; font-size: 14px; }
.zc-modern .zc-fat-total-linhas div { display: flex; justify-content: space-between; gap: 10px; }
.zc-modern .zc-fat-total-linhas div span:first-child { color: var(--zc-muted); }
.zc-modern .zc-fat-total-linhas .zc-fat-economia span { color: var(--zc-success); }
.zc-modern .zc-fat-total-valor { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-top: 10px; border-top: 1px dashed var(--zc-line); font-weight: 800; }
.zc-modern .zc-fat-total-valor strong { font-size: 26px; letter-spacing: -.02em; }
.zc-modern .zc-fat-total > small, .zc-modern .zc-fat-seguro { color: var(--zc-muted); font-size: 12.5px; }
.zc-modern .zc-fat-dica-anual { display: grid; justify-items: start; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--zc-fat-aviso-fundo); color: var(--zc-accent-ink); font-size: 13.5px; font-weight: 600; }
.zc-modern .zc-fat-total .zc-fat-dica-anual .zc-fat-btn { flex-shrink: 0; padding: 6px 12px; font-size: 13px; }
.zc-modern .zc-fat-total .zc-fat-btn.zc-fat-pagar { width: 100%; justify-content: center; margin-top: 4px; }
@media (max-width: 900px) {
    .zc-modern form.zc-fat-checkout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .zc-modern .zc-fat-adic { flex-wrap: wrap; }
    .zc-modern .zc-fat-adic-txt { flex-basis: calc(100% - 58px); }
    .zc-modern .zc-fat-adic-preco, .zc-modern .zc-fat-adic .zc-fat-selo { margin-left: 58px; flex: 1; }
    .zc-modern .zc-fat-adic-preco + .zc-fat-passo { margin-left: 58px; }
}
.zc-modern .zc-fat-resumo { font-size: 15px; }
.zc-modern .zc-fat-travada { color: var(--zc-fat-perigo); font-weight: 700; }
.zc-modern .zc-fat-aviso > .zc-fat-btn { margin-left: auto; flex-shrink: 0; }
.zc-modern .zc-fat-link { display: grid; gap: 12px; }
.zc-modern .zc-fat-link p { color: var(--zc-muted); font-size: 14px; }
.zc-modern .zc-fat-link input { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--zc-line); background: var(--zc-soft); color: var(--zc-ink); font-family: ui-monospace, monospace; font-size: 12.5px; }
@media (max-width: 640px) {
    .zc-modern .zc-fat-plano-topo .zc-fat-acoes { width: 100%; justify-content: flex-start; }
}

/* ================= FASE 4 NA ABA PLANO E FATURA (public/faturas.js, 18/11/2026) =================
   Empresa: descer de plano (o que deixa de ter), passar pro anual, aviso com dois botões.
   Admin: funil do mês, busca e filtros (usados pelo Painel do admin). */
.zc-modern .zc-fat-aviso > .zc-fat-btn + .zc-fat-btn { margin-left: 0; }
.zc-modern .zc-fat-btn small { font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--zc-fat-aviso-fundo); color: var(--zc-accent-ink); }
.zc-modern .zc-fat-perde-titulo { margin: 0; color: var(--zc-muted); font-size: 13px; font-weight: 700; }
.zc-modern .zc-fat-oferta ul.zc-fat-perde li svg { color: var(--zc-fat-perigo); }
.zc-modern .zc-fat-busca { display: flex; align-items: center; gap: 8px; flex: 1 1 260px; max-width: 420px; padding: 0 12px; border: 1px solid var(--zc-line); border-radius: 12px; background: var(--zc-panel); color: var(--zc-muted); }
.zc-modern .zc-fat-busca:focus-within { border-color: var(--zc-primary); }
.zc-modern .zc-fat-busca input { flex: 1; min-width: 0; padding: 10px 0; border: 0; background: transparent; color: var(--zc-ink); font-size: 14.5px; outline: none; }
.zc-modern .zc-fat-filtro-grupo { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--zc-line); border-radius: 12px; background: var(--zc-soft); }
.zc-modern .zc-fat-filtro-grupo button { padding: 7px 12px; border-radius: 9px; color: var(--zc-muted); font-size: 13px; font-weight: 700; }
.zc-modern .zc-fat-filtro-grupo button span { margin-left: 4px; opacity: .75; }
.zc-modern .zc-fat-filtro-grupo button[aria-pressed="true"] { background: var(--zc-primary); color: #fff; }
.dark .zc-modern .zc-fat-filtro-grupo button[aria-pressed="true"] { color: #0e2325; }
.zc-modern .zc-fat-contagem { color: var(--zc-muted); font-size: 13px; font-weight: 600; }
.zc-modern .zc-fat-tabela tr[hidden] { display: none; }
.zc-modern .zc-fat-nada[hidden] { display: none; }
.zc-modern .zc-fat-zap { display: inline-flex; align-items: center; gap: 4px; color: var(--zc-primary); font-weight: 600; white-space: nowrap; }
.zc-modern .zc-fat-zap svg { color: #25d366; }
.zc-modern .zc-fat-funil-mes { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: var(--zc-muted); }
.zc-modern .zc-fat-funil-mes select { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--zc-line); background: var(--zc-soft); color: var(--zc-ink); font-size: 14px; font-weight: 600; }
.zc-modern .zc-fat-funil-numeros { margin-bottom: 0; }
@media (max-width: 640px) {
    .zc-modern .zc-fat-busca { max-width: none; }
}

/* ================= PRIMEIROS PASSOS DO TESTE GRÁTIS (public/primeiros-passos.js) =================
   Botão na faixa do topo e o painel que abre logo abaixo dela, no canto direito. */
.zc-faixa-acesso button.zc-passos-botao { background: transparent; border: 1.5px solid currentColor; color: inherit; }
.zc-faixa-acesso button.zc-passos-botao:hover { background: rgba(13, 107, 101, .1); }
.zc-passos { position: fixed; top: calc(var(--zc-faixa-altura, 46px) + 10px); right: 16px; z-index: 160; width: min(360px, calc(100vw - 32px)); max-height: calc(100vh - var(--zc-faixa-altura, 46px) - 30px); overflow-y: auto; padding: 16px 18px 18px; border: 1px solid var(--zc-line); border-radius: 18px; background: var(--zc-panel); color: var(--zc-ink); box-shadow: 0 24px 60px rgba(0, 0, 0, .22); }
.zc-passos-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.zc-passos-topo > div { display: grid; gap: 2px; }
.zc-passos-topo strong { font-size: 16px; font-weight: 800; }
.zc-passos-topo span { color: var(--zc-muted); font-size: 13px; font-weight: 600; }
.zc-passos-fechar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: var(--zc-muted); }
.zc-passos-fechar:hover { background: var(--zc-soft); color: var(--zc-ink); }
.zc-passos-barra { height: 6px; margin: 12px 0 14px; border-radius: 999px; background: var(--zc-soft); overflow: hidden; }
.zc-passos-barra span { display: block; height: 100%; border-radius: 999px; background: var(--zc-primary); }
.zc-passos-lista { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.zc-passos-lista li { display: flex; align-items: flex-start; gap: 10px; }
.zc-passos-lista li > svg { flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; color: var(--zc-muted); }
.zc-passos-lista li.feito > svg { color: var(--zc-success); }
.zc-passos-lista li > div { display: grid; gap: 4px; justify-items: start; }
.zc-passos-lista li strong { font-size: 14.5px; font-weight: 700; }
.zc-passos-lista li.feito strong { color: var(--zc-muted); text-decoration: line-through; }
.zc-passos-lista li small { color: var(--zc-muted); font-size: 13px; line-height: 1.4; }
.zc-passos-lista .zc-fat-btn { margin-top: 2px; }

/* ================= PAINEL DO ADMIN (public/painel-admin.js, 18/11/2026) =================
   Tela única do admin master na aba #usuarios: abas internas (Visão geral, Empresas,
   Vencimentos e Acessos), a ficha da empresa (painel lateral #adm-ficha, criado no body) e as
   janelas do painel (#adm-janela, que reusa o .zc-fat-janela). Botões, selos, avisos, busca e
   filtros vêm do bloco da ABA FATURA (.zc-fat-*). Camadas: ficha 180, janelas 200 (as do
   faturas.js abrem por cima da ficha), customConfirm 250 e toast 500. No celular as tabelas
   viram cartões (cada célula traz o rótulo no data-rot) e a ficha ocupa a tela inteira. */
.zc-modern .zc-adm { max-width: 1180px; margin: 0 auto; color: var(--zc-ink); }
.zc-modern .zc-adm [hidden] { display: none !important; }
.zc-modern .zc-adm-topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.zc-modern .zc-adm-titulo { display: flex; align-items: center; gap: 14px; min-width: 0; }
.zc-modern .zc-adm-titulo-icone { display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; background: var(--zc-primary); color: #fff; box-shadow: 0 10px 24px rgba(13, 107, 101, .22); }
.dark .zc-modern .zc-adm-titulo-icone { color: #0e2325; box-shadow: none; }
.zc-modern .zc-adm-titulo-icone svg { width: 26px; height: 26px; }
.zc-modern .zc-adm-titulo h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.zc-modern .zc-adm-titulo p { margin-top: 2px; color: var(--zc-muted); font-size: 14px; }
.zc-modern .zc-adm-topo-acoes { display: flex; flex-wrap: wrap; gap: 10px; }

/* Abas internas */
.zc-modern .zc-adm-abas { display: flex; gap: 4px; margin: 4px 0 20px; border-bottom: 1px solid var(--zc-line); overflow-x: auto; scrollbar-width: none; }
.zc-modern .zc-adm-abas::-webkit-scrollbar { display: none; }
.zc-modern .zc-adm-abas button { display: inline-flex; align-items: center; gap: 8px; margin-bottom: -1px; padding: 11px 14px; border-bottom: 2px solid transparent; color: var(--zc-muted); font-size: 14px; font-weight: 700; white-space: nowrap; transition: color .15s ease, border-color .15s ease; }
.zc-modern .zc-adm-abas button:hover { color: var(--zc-ink); }
.zc-modern .zc-adm-abas button[aria-selected="true"] { color: var(--zc-primary); border-bottom-color: var(--zc-primary); }
.zc-modern .zc-adm-abas button svg { width: 18px; height: 18px; }
.zc-modern .zc-adm-aba-num { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; padding: 2px 7px; border-radius: 999px; background: var(--zc-soft); color: var(--zc-muted); font-size: 11.5px; font-weight: 800; }
.zc-modern .zc-adm-aba-num.alerta { background: var(--zc-fat-perigo-fundo); color: var(--zc-fat-perigo); }
.zc-modern .zc-adm-aba-num.online { background: var(--zc-bubble-out); color: var(--zc-success); }

/* Números (Visão geral e Acessos) */
.zc-modern .zc-adm-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.zc-modern .zc-adm-kpis.compactos { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.zc-modern .zc-adm-kpi { display: grid; align-content: start; gap: 4px; padding: 16px 18px; border: 1px solid var(--zc-line); border-radius: 16px; background: var(--zc-panel); color: var(--zc-ink); text-align: left; }
.zc-modern button.zc-adm-kpi { cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.zc-modern button.zc-adm-kpi:hover { border-color: var(--zc-primary); box-shadow: 0 8px 20px rgba(13, 107, 101, .08); }
.zc-modern .zc-adm-kpi span { color: var(--zc-muted); font-size: 13px; font-weight: 700; }
.zc-modern .zc-adm-kpi strong { font-size: 24px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; overflow-wrap: anywhere; }
.zc-modern .zc-adm-kpi small { color: var(--zc-muted); font-size: 12.5px; }
.zc-modern .zc-adm-kpi.alerta { border-left: 4px solid var(--zc-fat-perigo); }
.zc-modern .zc-adm-kpi.alerta strong { color: var(--zc-fat-perigo); }
.zc-modern .zc-adm-kpi.atencao { border-left: 4px solid var(--zc-accent); }
.zc-modern .zc-adm-kpi.atencao strong { color: var(--zc-accent-ink); }
.zc-modern .zc-adm-kpi.online strong { color: var(--zc-success); }

/* Cartões */
.zc-modern .zc-adm-cartao { margin-bottom: 18px; padding: 20px 22px; border: 1px solid var(--zc-line); border-radius: 18px; background: var(--zc-panel); }
.zc-modern .zc-adm-cartao.sem-espaco { padding: 0; overflow: hidden; }
.zc-modern .zc-adm-cartao-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.zc-modern .zc-adm-cartao-topo h2 { font-size: 17px; font-weight: 800; }
.zc-modern .zc-adm-cartao-topo p { margin-top: 2px; color: var(--zc-muted); font-size: 13.5px; }
.zc-modern .zc-adm-contador { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 30px; height: 30px; padding: 0 9px; border-radius: 999px; background: var(--zc-soft); color: var(--zc-ink); font-size: 13px; font-weight: 800; }
.zc-modern .zc-adm-funil .zc-fat-numeros > div { background: var(--zc-soft); border-color: transparent; }
.zc-modern .zc-adm-funil .zc-fat-escolha-topo h2 { font-size: 17px; font-weight: 800; }

/* Precisa de atenção e vencimentos */
.zc-modern .zc-adm-alertas, .zc-modern .zc-adm-venc-lista, .zc-modern .zc-adm-pessoas, .zc-modern .zc-adm-nova-equipe { margin: 0; padding: 0; list-style: none; }
.zc-modern .zc-adm-alerta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--zc-line); }
.zc-modern .zc-adm-alerta:first-child, .zc-modern .zc-adm-venc:first-child, .zc-modern .zc-adm-pessoa:first-child { border-top: 0; }
.zc-modern .zc-adm-alerta-icone { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--zc-fat-aviso-fundo); color: var(--zc-accent-ink); }
.zc-modern .zc-adm-alerta-icone svg { width: 18px; height: 18px; }
.zc-modern .zc-adm-alerta.urgente .zc-adm-alerta-icone, .zc-modern .zc-adm-alerta.atraso .zc-adm-alerta-icone { background: var(--zc-fat-perigo-fundo); color: var(--zc-fat-perigo); }
.zc-modern .zc-adm-alerta.link .zc-adm-alerta-icone { background: var(--zc-soft); color: var(--zc-primary); }
.zc-modern .zc-adm-alerta-texto, .zc-modern .zc-adm-venc-texto, .zc-modern .zc-adm-pessoa-texto { display: grid; gap: 2px; min-width: 0; }
.zc-modern .zc-adm-alerta-texto small, .zc-modern .zc-adm-venc-texto small, .zc-modern .zc-adm-pessoa-texto small { color: var(--zc-muted); font-size: 13px; overflow-wrap: anywhere; }
.zc-modern .zc-adm-alerta-acoes { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.zc-modern .zc-fat-btn.icone { padding: 7px; }
.zc-modern .zc-fat-btn.icone svg { width: 17px; height: 17px; }
.zc-modern .zc-fat-btn[href*="wa.me"] svg { color: #25d366; }
.zc-modern .zc-adm-link { padding: 0; color: var(--zc-ink); font-size: 14.5px; font-weight: 700; text-align: left; overflow-wrap: anywhere; }
.zc-modern .zc-adm-link:hover { color: var(--zc-primary); text-decoration: underline; }
.zc-modern .zc-adm-tudo-certo { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--zc-bubble-out); color: var(--zc-success); }
.zc-modern .zc-adm-tudo-certo svg { width: 26px; height: 26px; flex-shrink: 0; }
.zc-modern .zc-adm-tudo-certo div { display: grid; gap: 2px; }
.zc-modern .zc-adm-tudo-certo strong { font-size: 15px; font-weight: 800; }
.zc-modern .zc-adm-tudo-certo span { color: var(--zc-ink); font-size: 13.5px; }
.zc-modern .zc-adm-venc-grupo.vencidas { border-left: 4px solid var(--zc-fat-perigo); }
.zc-modern .zc-adm-venc-grupo.hoje { border-left: 4px solid var(--zc-accent); }
.zc-modern .zc-adm-venc-grupo.automatica { border-left: 4px solid var(--zc-success); }
.zc-modern .zc-adm-venc { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--zc-line); }
.zc-modern .zc-adm-venc-data { display: grid; place-items: center; align-content: center; width: 54px; height: 54px; border-radius: 14px; background: var(--zc-soft); color: var(--zc-ink); }
.zc-modern .zc-adm-venc-data strong { font-size: 19px; font-weight: 800; line-height: 1; }
.zc-modern .zc-adm-venc-data small { margin-top: 2px; color: var(--zc-muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.zc-modern .zc-adm-venc-data.vencidas { background: var(--zc-fat-perigo-fundo); color: var(--zc-fat-perigo); }
.zc-modern .zc-adm-venc-data.hoje, .zc-modern .zc-adm-venc-data.semana { background: var(--zc-fat-aviso-fundo); color: var(--zc-accent-ink); }
.zc-modern .zc-adm-venc-data.automatica { background: var(--zc-bubble-out); color: var(--zc-success); }
.zc-modern .zc-adm-venc-dias { color: var(--zc-muted); font-size: 13px; font-weight: 700; white-space: nowrap; }
.zc-modern .zc-adm-venc-dias.vencidas { color: var(--zc-fat-perigo); }
.zc-modern .zc-adm-venc-dias.hoje, .zc-modern .zc-adm-venc-dias.semana { color: var(--zc-accent-ink); }
.zc-modern .zc-adm-rodape-nota { margin: 4px 0 18px; color: var(--zc-muted); font-size: 13px; text-align: center; }

/* Barra de busca e tabelas (Empresas e Acessos) */
.zc-modern .zc-adm-barra { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.zc-modern .zc-adm-select { padding: 9px 12px; border: 1px solid var(--zc-line); border-radius: 12px; background: var(--zc-panel); color: var(--zc-ink); font-size: 14px; font-weight: 600; }
.zc-modern .zc-adm-select:focus { outline: none; border-color: var(--zc-primary); }
.zc-modern .zc-adm-tabela-caixa { overflow-x: auto; }
.zc-modern .zc-adm-tabela { width: 100%; border-collapse: collapse; font-size: 14px; }
.zc-modern .zc-adm-tabela th { padding: 11px 14px; background: var(--zc-soft); color: var(--zc-muted); font-size: 12.5px; font-weight: 700; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--zc-line); }
.zc-modern .zc-adm-tabela td { padding: 12px 14px; border-bottom: 1px solid var(--zc-line); vertical-align: middle; }
.zc-modern .zc-adm-tabela tbody tr:last-child td { border-bottom: 0; }
.zc-modern .zc-adm-tabela td small { display: block; margin-top: 1px; color: var(--zc-muted); font-size: 12.5px; }
.zc-modern .zc-adm-tabela td small.zc-adm-vermelho { color: var(--zc-fat-perigo); font-weight: 700; }
.zc-modern .zc-adm-tabela td small.zc-adm-ambar { color: var(--zc-accent-ink); font-weight: 700; }
.zc-modern .zc-adm-tabela tbody tr[data-adm="ficha"] { cursor: pointer; transition: background .12s ease; }
.zc-modern .zc-adm-tabela tbody tr[data-adm="ficha"]:hover { background: var(--zc-soft); }
.zc-modern .zc-adm-tabela tbody tr[data-adm="ficha"]:focus-visible { outline: 2px solid var(--zc-primary); outline-offset: -2px; }
.zc-modern .zc-adm-tabela tr.inativa td { opacity: .6; }
.zc-modern .zc-adm-tabela tr[hidden] { display: none; }
.zc-modern .zc-adm-empresas td[data-rot="Empresa"] { min-width: 220px; }
.zc-modern .zc-adm-empresas td[data-rot="Plano"] { min-width: 150px; }
.zc-modern .zc-adm-acessos td[data-rot="Pessoa"] { min-width: 200px; }
.zc-modern .zc-adm-acessos td[data-rot="Empresa"] { min-width: 160px; }
.zc-modern .zc-adm-tabela td:is([data-rot="Último acesso"], [data-rot="Criado em"], [data-rot="Online"], [data-rot="Tipo"]) { white-space: nowrap; }
.zc-modern .zc-adm-empresa { display: flex; align-items: center; gap: 10px; min-width: 0; }
.zc-modern .zc-adm-empresa > div { display: grid; min-width: 0; }
.zc-modern .zc-adm-empresa strong { font-size: 14.5px; font-weight: 700; overflow-wrap: anywhere; }
.zc-modern .zc-adm-empresa small { margin: 0; }
.zc-modern .zc-adm-avatar { position: relative; display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--zc-bubble-out); color: var(--zc-primary); font-size: 15px; font-weight: 800; }
.zc-modern .zc-adm-avatar.grande { width: 52px; height: 52px; font-size: 21px; }
.zc-modern .zc-adm-avatar.online::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--zc-panel); background: var(--zc-success); }
.zc-modern .zc-adm-plano { font-weight: 700; }
.zc-modern .zc-adm-sugerido, .zc-modern .zc-adm-discreto { color: var(--zc-muted); font-size: 13.5px; }
.zc-modern .zc-adm-seta { width: 1%; color: var(--zc-muted); text-align: right; }
.zc-modern .zc-adm-seta svg { width: 16px; height: 16px; }
.zc-modern .zc-adm-acoes-linha { text-align: right; white-space: nowrap; }
.zc-modern .zc-adm-acoes-linha .zc-fat-btn + .zc-fat-btn { margin-left: 6px; }
.zc-modern .zc-adm-online { display: inline-flex; align-items: center; gap: 6px; color: var(--zc-success); font-size: 13px; font-weight: 700; white-space: nowrap; }
.zc-modern .zc-adm-online::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--zc-success); box-shadow: 0 0 0 3px var(--zc-bubble-out); }
.zc-modern .zc-adm-sem-resultado { padding: 16px; text-align: center; }
.zc-modern .zc-adm-vazio { padding: 32px 0; color: var(--zc-muted); text-align: center; }
.zc-modern .zc-adm-vazio-grande { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 48px 24px; border: 1px dashed var(--zc-line); border-radius: 18px; background: var(--zc-panel); color: var(--zc-muted); text-align: center; }
.zc-modern .zc-adm-vazio-grande > svg { width: 40px; height: 40px; color: var(--zc-primary); }
.zc-modern .zc-adm-vazio-grande strong { color: var(--zc-ink); font-size: 17px; }
.zc-modern .zc-adm-vazio-grande .zc-fat-btn { margin-top: 6px; }

/* Ficha da empresa (painel lateral) */
.zc-adm-ficha { position: fixed; inset: 0; z-index: 180; display: flex; justify-content: flex-end; }
.zc-modern .zc-adm-ficha-fundo { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); backdrop-filter: blur(2px); }
.zc-modern .zc-adm-ficha-painel { position: relative; display: flex; flex-direction: column; width: min(640px, 100%); height: 100%; border-left: 1px solid var(--zc-line); background: var(--zc-panel); color: var(--zc-ink); box-shadow: -24px 0 60px rgba(0, 0, 0, .22); outline: none; }
/* Só na abertura: trocar de seção redesenha o painel e não pode piscar */
.zc-modern .zc-adm-ficha-painel.entrando { animation: zc-adm-entra .2s ease-out; }
@keyframes zc-adm-entra { from { transform: translateX(32px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .zc-modern .zc-adm-ficha-painel.entrando { animation: none; } }
.zc-modern .zc-adm-ficha-topo { display: flex; align-items: center; gap: 14px; padding: 18px 20px 16px 22px; border-bottom: 1px solid var(--zc-line); }
.zc-modern .zc-adm-ficha-nome { flex: 1; min-width: 0; }
.zc-modern .zc-adm-ficha-nome h2 { font-size: 19px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.zc-modern .zc-adm-ficha-nome small { display: block; margin-top: 2px; color: var(--zc-muted); font-size: 13px; }
.zc-modern .zc-adm-ficha-nome > div { margin-top: 6px; }
.zc-modern .zc-adm-ficha-abas { display: flex; gap: 2px; padding: 0 12px; border-bottom: 1px solid var(--zc-line); overflow-x: auto; scrollbar-width: none; }
.zc-modern .zc-adm-ficha-abas::-webkit-scrollbar { display: none; }
.zc-modern .zc-adm-ficha-abas button { margin-bottom: -1px; padding: 11px 12px; border-bottom: 2px solid transparent; color: var(--zc-muted); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.zc-modern .zc-adm-ficha-abas button:hover { color: var(--zc-ink); }
.zc-modern .zc-adm-ficha-abas button[aria-selected="true"] { color: var(--zc-primary); border-bottom-color: var(--zc-primary); }
.zc-modern .zc-adm-ficha-corpo { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 22px 28px; }
.zc-modern .zc-adm-fatos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.zc-modern .zc-adm-fato { display: grid; align-content: start; gap: 3px; padding: 12px 14px; border-radius: 12px; background: var(--zc-soft); min-width: 0; }
.zc-modern .zc-adm-fato.largo { grid-column: 1 / -1; }
.zc-modern .zc-adm-fato > span { color: var(--zc-muted); font-size: 12.5px; font-weight: 700; }
.zc-modern .zc-adm-fato > strong { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.zc-modern .zc-adm-fato > strong small { margin-left: 4px; color: var(--zc-muted); font-size: 12.5px; font-weight: 600; }
.zc-modern .zc-adm-fato > small { color: var(--zc-muted); font-size: 12.5px; overflow-wrap: anywhere; }
.zc-modern .zc-adm-fato a { color: var(--zc-primary); font-weight: 600; overflow-wrap: anywhere; }
.zc-modern .zc-adm-subtitulo { margin: 18px 0 10px; font-size: 14.5px; font-weight: 800; }
.zc-modern .zc-adm-ficha-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.zc-modern .zc-adm-nota { margin: 10px 0; color: var(--zc-muted); font-size: 13px; line-height: 1.5; }
.zc-modern .zc-adm-info { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: var(--zc-fat-aviso-fundo); color: var(--zc-accent-ink); font-size: 14px; font-weight: 600; line-height: 1.45; }
.zc-modern .zc-adm-info.ok { background: var(--zc-bubble-out); color: var(--zc-success); }
.zc-modern .zc-adm-info.perigo { background: var(--zc-fat-perigo-fundo); color: var(--zc-fat-perigo); }
.zc-modern .zc-adm-info svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; }
.zc-modern .zc-adm-link-caixa { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 14px; }
.zc-modern .zc-adm-link-caixa label { display: grid; flex: 1; gap: 6px; min-width: 0; font-size: 13px; font-weight: 700; }
.zc-modern .zc-adm-link-caixa input { width: 100%; padding: 9px 12px; border: 1px solid var(--zc-line); border-radius: 12px; background: var(--zc-soft); color: var(--zc-ink); font-family: ui-monospace, monospace; font-size: 12.5px; }
.zc-modern .zc-adm-pessoa { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px 10px; padding: 12px 0; border-top: 1px solid var(--zc-line); }
.zc-modern .zc-adm-pessoa .zc-adm-alerta-acoes { grid-column: 2 / -1; justify-content: flex-start; }
.zc-modern .zc-adm-pessoa-texto strong { font-size: 14.5px; font-weight: 700; }
.zc-modern .zc-adm-pessoa-texto .zc-adm-online { font-size: 12.5px; }
.zc-modern .zc-adm-pessoa-texto .zc-adm-online::before { display: none; }
.zc-modern .zc-adm-novo-login { margin-top: 18px; padding-top: 4px; border-top: 1px solid var(--zc-line); }
.zc-modern .zc-adm-zona { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; padding: 14px 16px; border: 1px solid var(--zc-line); border-radius: 14px; }
.zc-modern .zc-adm-zona > div { display: grid; gap: 3px; }
.zc-modern .zc-adm-zona small { color: var(--zc-muted); font-size: 13px; line-height: 1.45; }
.zc-modern .zc-adm-zona.perigo { border-color: var(--zc-fat-perigo); background: var(--zc-fat-perigo-fundo); }
.zc-modern .zc-adm-zona.perigo strong { color: var(--zc-fat-perigo); }
.zc-modern .zc-adm-zona .zc-fat-btn { flex-shrink: 0; }

/* Formulários (ficha, cadastro em etapas e cancelar plano) */
.zc-modern .zc-adm-form { display: grid; gap: 14px; }
.zc-modern .zc-adm-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.zc-modern .zc-adm-form legend { margin-bottom: 10px; padding: 0; font-size: 14.5px; font-weight: 800; }
.zc-modern .zc-adm-form label { display: flex; flex-wrap: wrap; align-items: baseline; align-content: flex-start; gap: 6px 4px; color: var(--zc-ink); font-size: 13.5px; font-weight: 700; }
.zc-modern .zc-adm-form label > :is(input:not([type="radio"]):not([type="checkbox"]), select, textarea, .zc-adm-senha),
.zc-modern .zc-adm-form label > :is(input:not([type="radio"]):not([type="checkbox"]), select, textarea, .zc-adm-senha) ~ small { flex-basis: 100%; }
.zc-modern .zc-adm-form label small { color: var(--zc-muted); font-size: 12.5px; font-weight: 500; }
.zc-modern .zc-adm-form input:not([type="radio"]):not([type="checkbox"]), .zc-modern .zc-adm-form select { width: 100%; padding: 10px 12px; border: 1px solid var(--zc-line); border-radius: 12px; background: var(--zc-soft); color: var(--zc-ink); font-size: 14.5px; font-weight: 500; }
.zc-modern .zc-adm-form input:not([type="radio"]):not([type="checkbox"]):focus, .zc-modern .zc-adm-form select:focus { outline: none; border-color: var(--zc-primary); background: var(--zc-panel); }
.zc-modern .zc-adm-form input[type="radio"], .zc-modern .zc-adm-form input[type="checkbox"] { accent-color: var(--zc-primary); }
.zc-modern .zc-adm-linha2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.zc-modern .zc-adm-linha2 .largo { grid-column: 1 / -1; }
.zc-modern .zc-adm-senha { display: flex; gap: 8px; }
.zc-modern .zc-adm-senha input { flex: 1; min-width: 0; font-family: ui-monospace, monospace; }
.zc-modern .zc-adm-form-acoes { display: flex; justify-content: flex-end; gap: 10px; }
.zc-modern .zc-adm-planos { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.zc-modern .zc-adm-form label.zc-adm-plano-cartao { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border: 1.5px solid var(--zc-line); border-radius: 14px; background: var(--zc-panel); font-weight: 500; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.zc-modern .zc-adm-plano-cartao:hover { border-color: var(--zc-primary); }
.zc-modern .zc-adm-plano-cartao:has(input:checked) { border-color: var(--zc-primary); background: var(--zc-soft); box-shadow: 0 10px 24px rgba(13, 107, 101, .1); }
.zc-modern .zc-adm-plano-cartao:has(input:focus-visible) { outline: 2px solid var(--zc-primary); outline-offset: 2px; }
.zc-modern .zc-adm-plano-cartao input { position: absolute; top: 14px; right: 14px; width: 17px; height: 17px; margin: 0; }
.zc-modern .zc-adm-plano-nome { padding-right: 24px; font-size: 16px; font-weight: 800; }
.zc-modern .zc-adm-plano-preco { color: var(--zc-primary); font-size: 15px; font-weight: 800; }
.zc-modern .zc-adm-plano-preco small { color: var(--zc-muted); font-size: 12px; font-weight: 600; }
.zc-modern .zc-adm-plano-limites { color: var(--zc-muted); font-size: 12.5px; }
.zc-modern .zc-adm-plano-cartao ul { display: grid; gap: 5px; margin: 8px 0 0; padding: 0; list-style: none; }
.zc-modern .zc-adm-plano-cartao li { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; line-height: 1.35; }
.zc-modern .zc-adm-plano-cartao li svg { flex-shrink: 0; width: 13px; height: 13px; margin-top: 3px; color: var(--zc-primary); }
.zc-modern .zc-adm-recursos { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin-bottom: 12px; }
.zc-modern .zc-adm-form label.zc-adm-recurso { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--zc-line); border-radius: 12px; font-weight: 500; cursor: pointer; }
.zc-modern .zc-adm-recurso:has(input:checked) { border-color: var(--zc-primary); background: var(--zc-soft); }
.zc-modern .zc-adm-recurso input { flex-shrink: 0; width: 17px; height: 17px; margin: 2px 0 0; }
.zc-modern .zc-adm-recurso > span { display: grid; gap: 1px; }
.zc-modern .zc-adm-recurso strong { font-size: 14px; font-weight: 700; }
.zc-modern .zc-adm-recurso em { margin-left: 4px; padding: 1px 6px; border-radius: 6px; background: var(--zc-fat-aviso-fundo); color: var(--zc-accent-ink); font-size: 11px; font-style: normal; font-weight: 700; }
/* Adicionais (Ligações e chips a mais): cartões à vista com o preço e o valor sugerido */
.zc-modern .zc-adm-adicionais { display: grid; gap: 8px; }
.zc-modern .zc-adm-adicional, .zc-modern .zc-adm-form label.zc-adm-adicional { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--zc-line); border-radius: 14px; background: var(--zc-panel); font-weight: 500; }
.zc-modern .zc-adm-form label.zc-adm-adicional { cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.zc-modern .zc-adm-form label.zc-adm-adicional:hover { border-color: var(--zc-primary); }
.zc-modern .zc-adm-form label.zc-adm-adicional:has(input:checked) { border-color: var(--zc-primary); background: var(--zc-soft); }
.zc-modern .zc-adm-adicional > input[type="checkbox"] { flex-shrink: 0; width: 18px; height: 18px; margin: 0; }
.zc-modern .zc-adm-adicional-icone { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px; background: var(--zc-bubble-out); color: var(--zc-primary); }
.zc-modern .zc-adm-adicional-icone svg { width: 19px; height: 19px; }
.zc-modern .zc-adm-adicional-texto { display: grid; flex: 1; gap: 2px; min-width: 0; }
.zc-modern .zc-adm-adicional-texto strong { font-size: 14.5px; font-weight: 700; }
.zc-modern .zc-adm-form .zc-adm-adicional-texto small, .zc-modern .zc-adm-adicional-texto small { color: var(--zc-muted); font-size: 12.5px; line-height: 1.4; }
.zc-modern .zc-adm-adicional-preco { flex-shrink: 0; padding: 4px 10px; border-radius: 999px; background: var(--zc-fat-aviso-fundo); color: var(--zc-accent-ink); font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.zc-modern .zc-adm-adicional-preco.incluso { background: var(--zc-bubble-out); color: var(--zc-success); }
.zc-modern .zc-adm-form label.zc-adm-adicional-qtd { display: block; flex-shrink: 0; width: 84px; }
.zc-modern .zc-adm-total { margin: 2px 2px 0; color: var(--zc-ink); font-size: 14px; }
.zc-modern .zc-adm-total strong { color: var(--zc-primary); font-weight: 800; }
.zc-modern .zc-adm-total small { color: var(--zc-muted); font-size: 12.5px; }
.zc-modern .zc-adm-detalhes { border: 1px solid var(--zc-line); border-radius: 14px; }
.zc-modern .zc-adm-detalhes > summary { padding: 12px 14px; color: var(--zc-primary); font-size: 14px; font-weight: 700; cursor: pointer; }
.zc-modern .zc-adm-detalhes[open] > summary { border-bottom: 1px solid var(--zc-line); }
.zc-modern .zc-adm-detalhes > fieldset { padding: 14px; }
.zc-modern .zc-adm-opcoes { display: grid; gap: 8px; }
.zc-modern .zc-adm-form label.zc-adm-opcao { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--zc-line); border-radius: 12px; font-weight: 500; cursor: pointer; }
.zc-modern .zc-adm-opcao:has(input:checked) { border-color: var(--zc-primary); background: var(--zc-soft); }
.zc-modern .zc-adm-opcao input { flex-shrink: 0; width: 17px; height: 17px; margin: 2px 0 0; }
.zc-modern .zc-adm-opcao > span { display: grid; gap: 2px; }
.zc-modern .zc-adm-opcao strong { font-size: 14.5px; font-weight: 700; }
.zc-modern .zc-adm-opcao small { color: var(--zc-muted); font-size: 13px; }
.zc-modern .zc-adm-form label.zc-adm-opcao.desligada { opacity: .55; cursor: not-allowed; }
.zc-modern .zc-adm-passos { display: flex; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.zc-modern .zc-adm-passos li { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; color: var(--zc-muted); font-size: 13px; font-weight: 700; white-space: nowrap; }
.zc-modern .zc-adm-passos li:last-child { flex: 0 0 auto; }
.zc-modern .zc-adm-passos li:not(:last-child)::after { content: ""; flex: 1; min-width: 10px; height: 2px; border-radius: 2px; background: var(--zc-line); }
.zc-modern .zc-adm-passos li > span { display: grid; place-items: center; flex-shrink: 0; width: 26px; height: 26px; border: 1.5px solid var(--zc-line); border-radius: 50%; font-size: 12.5px; }
.zc-modern .zc-adm-passos li > span svg { width: 13px; height: 13px; }
.zc-modern .zc-adm-passos li.atual { color: var(--zc-primary); }
.zc-modern .zc-adm-passos li.atual > span { border-color: var(--zc-primary); background: var(--zc-primary); color: #fff; }
.dark .zc-modern .zc-adm-passos li.atual > span { color: #0e2325; }
.zc-modern .zc-adm-passos li.feito { color: var(--zc-ink); }
.zc-modern .zc-adm-passos li.feito > span { border-color: transparent; background: var(--zc-bubble-out); color: var(--zc-success); }
.zc-modern .zc-adm-passos li.feito::after { background: var(--zc-success); }
.zc-modern .zc-adm-nova-equipe { display: grid; gap: 10px; margin-bottom: 12px; }
.zc-modern .zc-adm-nova-pessoa { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; align-items: end; gap: 10px; padding: 12px; border: 1px solid var(--zc-line); border-radius: 12px; background: var(--zc-soft); }
.zc-modern .zc-adm-nova-pessoa input:not([type="radio"]):not([type="checkbox"]) { background: var(--zc-panel); }
.zc-modern .zc-adm-nova-pessoa > .zc-fat-btn { margin-bottom: 4px; }
.zc-modern .zc-adm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.zc-modern .zc-adm-chips span { padding: 3px 10px; border: 1px solid var(--zc-line); border-radius: 999px; background: var(--zc-panel); font-size: 12.5px; font-weight: 600; }
.zc-modern .zc-adm-resultado { display: grid; gap: 12px; }
.zc-modern .zc-adm-resultado .zc-adm-info { margin: 0; }
.zc-modern .zc-adm-credenciais { border: 1px solid var(--zc-line); border-radius: 12px; overflow: hidden; border-collapse: separate; border-spacing: 0; }
.zc-modern .zc-adm-credenciais code { padding: 2px 7px; border-radius: 6px; background: var(--zc-soft); font-family: ui-monospace, monospace; font-size: 13px; user-select: all; overflow-wrap: anywhere; }
.zc-modern .zc-fat-janela-caixa.larga { max-width: 880px; }
.zc-modern .zc-adm-janela .zc-fat-form-acoes { margin-top: 4px; }
.zc-modern .zc-adm-janela label[hidden] { display: none; }

@media (max-width: 1100px) {
    .zc-modern .zc-adm-kpis.compactos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .zc-modern .zc-adm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .zc-modern .zc-adm-venc { grid-template-columns: 54px minmax(0, 1fr) auto; }
    .zc-modern .zc-adm-venc .zc-adm-alerta-acoes { grid-column: 2 / -1; justify-content: flex-start; }
}
@media (max-width: 640px) {
    .zc-modern #usuarios { padding: 16px; }
    .zc-modern .zc-adm-titulo h1 { font-size: 22px; }
    .zc-modern .zc-adm-titulo-icone { width: 42px; height: 42px; }
    .zc-modern .zc-adm-topo-acoes { width: 100%; }
    .zc-modern .zc-adm-topo-acoes .zc-fat-btn { flex: 1; }
    .zc-modern .zc-adm-kpis.compactos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .zc-modern .zc-adm-kpi { padding: 14px; }
    .zc-modern .zc-adm-kpi strong { font-size: 20px; }
    .zc-modern .zc-adm-cartao { padding: 16px; }
    .zc-modern .zc-adm-alerta { grid-template-columns: auto minmax(0, 1fr); }
    .zc-modern .zc-adm-alerta .zc-adm-alerta-acoes { grid-column: 2 / -1; justify-content: flex-start; }
    .zc-modern .zc-adm-venc { grid-template-columns: 48px minmax(0, 1fr); gap: 10px 12px; }
    .zc-modern .zc-adm-venc-data { width: 48px; height: 48px; }
    .zc-modern .zc-adm-venc-dias { grid-column: 2; }
    .zc-modern .zc-adm-barra .zc-fat-filtro-grupo { width: 100%; }
    .zc-modern .zc-adm-select { flex: 1; }
    /* Tabelas viram cartões: cada célula é uma linha com o rótulo (data-rot) do lado */
    .zc-modern .zc-adm-tabela thead { display: none; }
    .zc-modern .zc-adm-tabela, .zc-modern .zc-adm-tabela tbody, .zc-modern .zc-adm-tabela tr, .zc-modern .zc-adm-tabela td { display: block; width: 100%; }
    .zc-modern .zc-adm-tabela tbody tr { position: relative; padding: 12px 16px; border-bottom: 1px solid var(--zc-line); }
    .zc-modern .zc-adm-tabela tbody tr:last-child { border-bottom: 0; }
    .zc-modern .zc-adm-tabela td { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; text-align: right; min-width: 0 !important; }
    .zc-modern .zc-adm-tabela td[data-rot]::before { content: attr(data-rot); flex-shrink: 0; color: var(--zc-muted); font-size: 12.5px; font-weight: 700; text-align: left; }
    .zc-modern .zc-adm-tabela td[data-rot="Empresa"], .zc-modern .zc-adm-tabela td[data-rot="Pessoa"] { padding-bottom: 8px; text-align: left; }
    .zc-modern .zc-adm-tabela td[data-rot="Empresa"]::before, .zc-modern .zc-adm-tabela td[data-rot="Pessoa"]::before { display: none; }
    .zc-modern .zc-adm-tabela td small { display: inline; margin-left: 6px; }
    .zc-modern .zc-adm-tabela td[data-rot="Plano"], .zc-modern .zc-adm-tabela td[data-rot="Vencimento"], .zc-modern .zc-adm-tabela td[data-rot="Valor"] { flex-wrap: wrap; justify-content: flex-end; }
    .zc-modern .zc-adm-tabela td[data-rot="Plano"]::before, .zc-modern .zc-adm-tabela td[data-rot="Vencimento"]::before, .zc-modern .zc-adm-tabela td[data-rot="Valor"]::before { margin-right: auto; }
    .zc-modern .zc-adm-empresa small { display: block; margin-left: 0; }
    .zc-modern .zc-adm-seta { position: absolute; top: 18px; right: 14px; width: auto; padding: 0 !important; }
    .zc-modern .zc-adm-acoes-linha { justify-content: flex-start !important; flex-wrap: wrap; padding-top: 8px !important; white-space: normal; }
    .zc-modern .zc-adm-acoes-linha .zc-fat-btn + .zc-fat-btn { margin-left: 0; }
    .zc-modern .zc-adm-sem-resultado { display: block; }
    /* Ficha e janelas ocupam a tela */
    .zc-modern .zc-adm-ficha-painel { width: 100%; border-left: 0; }
    .zc-modern .zc-adm-ficha-topo { padding: 14px 12px 12px 16px; }
    .zc-modern .zc-adm-ficha-corpo { padding: 16px 16px 24px; }
    .zc-modern .zc-adm-fatos, .zc-modern .zc-adm-linha2 { grid-template-columns: minmax(0, 1fr); }
    .zc-modern .zc-adm-zona { flex-direction: column; align-items: stretch; }
    .zc-modern .zc-adm-link-caixa { flex-direction: column; align-items: stretch; }
    .zc-modern .zc-adm-passos li { flex: 0 0 auto; font-size: 0; gap: 0; }
    .zc-modern .zc-adm-passos li > span { font-size: 12.5px; }
    .zc-modern .zc-adm-passos li.atual { flex: 1; font-size: 13px; gap: 8px; }
    .zc-modern .zc-adm-passos li::after { display: none; }
    .zc-modern .zc-adm-adicional, .zc-modern .zc-adm-form label.zc-adm-adicional { flex-wrap: wrap; }
    .zc-modern .zc-adm-adicional-texto { flex: 1 1 170px; }
    .zc-modern .zc-adm-adicional-preco, .zc-modern .zc-adm-form label.zc-adm-adicional-qtd { margin-left: auto; }
    .zc-modern .zc-adm-nova-pessoa { grid-template-columns: minmax(0, 1fr) auto; }
    .zc-modern .zc-adm-nova-pessoa label:first-child { grid-column: 1 / -1; }
    .zc-modern .zc-adm-credenciais thead { display: none; }
    .zc-modern .zc-adm-credenciais tr { padding: 10px 12px; }
    .zc-modern .zc-adm-credenciais td { justify-content: flex-start; text-align: left; }
}

/* Tags dinâmicas do prompt (#lista-tags-prompt no index.html): cada uma mostra um exemplo do
   que vira na mensagem (21/11/2026, pedido do usuário). Cartões numa grade em vez de pílulas. */
.zc-modern #lista-tags-prompt { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.zc-modern #lista-tags-prompt > button { flex-wrap: wrap; align-items: center; align-content: flex-start; justify-content: flex-start; row-gap: 4px; text-align: left; }
.zc-modern #lista-tags-prompt > button > code { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.zc-modern #lista-tags-prompt .zc-tag-exemplo { order: 3; flex-basis: 100%; color: var(--zc-muted); font-size: 11.5px; font-weight: 500; line-height: 1.35; }
