/* GERADO por ferramentas/gerar-tema-escuro.py — não edite à mão. */
html[data-tema="escuro"] { color-scheme: dark; --tinta: #e6e9ef; --tinta-2: #b4bccb; --tinta-3: #8891a3; --linha: #2c3344; --linha-forte: #3b4458;
  --fundo: #141821; --papel: #1c2130; --acento: #5b8cff; --acento-escuro: #9db8ff; --acento-suave: #1f2c4d; --perigo: #ff6b5a; --perigo-suave: #3a2524;
  --sucesso: #3ccf8e; --sombra-flutuante: 0 12px 32px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.35); }
html[data-tema="escuro"] body { background: var(--fundo); color: var(--tinta); }
html[data-tema="escuro"] input, html[data-tema="escuro"] select, html[data-tema="escuro"] textarea { background: #161a24; color: var(--tinta); border-color: var(--linha-forte); }
html[data-tema="escuro"] dialog { background: var(--papel); color: var(--tinta); }
html[data-tema="escuro"] img:not(.chat-imagem):not([src*="foto.php"]) { filter: brightness(0.92); }
/* Colunas do quadro: a cor vem do status (aplicada pelo JS) — no escuro, todas com o mesmo fundo discreto */
html[data-tema="escuro"] .esp-coluna { background: #1a1f2c !important; }
html[data-tema="escuro"] .esp-chip { filter: brightness(0.9) saturate(0.9); }

html[data-tema="escuro"] .btn:hover { background: #2b2e37; }
html[data-tema="escuro"] .toast { background: #2c3446; color: #eef1f6; }
html[data-tema="escuro"] .selo-modelo { background: #30264a; }
html[data-tema="escuro"] .toast-acao { border: 1px solid rgba(28, 33, 48, 0.35); }
html[data-tema="escuro"] .toast-acao:hover { background: rgba(28, 33, 48, 0.14); }
html[data-tema="escuro"] .pagina-login { background: radial-gradient(circle at 1px 1px, #333740 1px, transparent 1.5px) 0 0 / 22px 22px,
    var(--fundo); }
html[data-tema="escuro"] .lb-contador { color: rgba(28, 33, 48, 0.6); }
html[data-tema="escuro"] .lb-botao:hover { background: rgba(28, 33, 48, 0.12); }
html[data-tema="escuro"] .lb-palco img { background: #1c2130; }
html[data-tema="escuro"] .lb-seta { background: rgba(28, 33, 48, 0.12); }
html[data-tema="escuro"] .lb-seta:hover { background: rgba(28, 33, 48, 0.22); }
html[data-tema="escuro"] .tag-novo { background: #1d3a2b; color: #7fd8a8; }
html[data-tema="escuro"] .tag-correcao { background: #2b2d35; color: #ff9b8a; }
html[data-tema="escuro"] .opcao-modelo:hover { background: #20263a; }
html[data-tema="escuro"] .opcao-mini i { background: color-mix(in srgb, var(--c) 15%, #1c2130); }
html[data-tema="escuro"] .lb-dica { color: rgba(28, 33, 48, 0.55); }
html[data-tema="escuro"] ul.tarefas > li[data-feito]::before { background: #1d8a5b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='#1c2130' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 80% no-repeat; }
html[data-tema="escuro"] .pix-qr { background: #1c2130; }
html[data-tema="escuro"] .arq-info small { color: rgba(28, 33, 48, 0.6); }
html[data-tema="escuro"] .arq-pos { color: rgba(28, 33, 48, 0.7); }
html[data-tema="escuro"] .arq-topo .btn { border-color: rgba(28, 33, 48, 0.22); }
html[data-tema="escuro"] .arq-topo .btn:hover { background: rgba(28, 33, 48, 0.12); }
html[data-tema="escuro"] .arq-pdf { background: #1c2130; }
html[data-tema="escuro"] .arq-corpo.tipo-texto, html[data-tema="escuro"] .arq-corpo.tipo-csv { background: #1c2130; }
html[data-tema="escuro"] .arq-csv th, html[data-tema="escuro"] .arq-csv td { border: 1px solid #2f3647; }
html[data-tema="escuro"] .arq-csv th { background: #141821; }
html[data-tema="escuro"] .arq-aviso { color: rgba(28, 33, 48, 0.7); }
html[data-tema="escuro"] .arq-cartao { background: rgba(28, 33, 48, 0.06); }
html[data-tema="escuro"] .arq-cartao p { color: rgba(28, 33, 48, 0.75); }
html[data-tema="escuro"] .arq-nav { background: rgba(28, 33, 48, 0.14); }
html[data-tema="escuro"] .arq-nav:hover:not(:disabled) { background: rgba(28, 33, 48, 0.26); }
html[data-tema="escuro"] .com-foto img { background: #1c2130; }
html[data-tema="escuro"] .perfil-avatar { box-shadow: 0 0 0 3px #1c2130, 0 0 0 4px var(--linha); }
html[data-tema="escuro"] .perfil-push { background: #20263a; }
html[data-tema="escuro"] .busca-global { background: var(--papel, #1c2130); }
html[data-tema="escuro"] .bg-item mark { background: #3a3933; }
html[data-tema="escuro"] .login-erro.login-ok { border-color: #444e52; background: #292e36; color: #7fd8a8; }
html[data-tema="escuro"] .topo { background: rgba(28, 33, 48, 0.92); }
html[data-tema="escuro"] .miniatura { background: radial-gradient(circle at 1px 1px, #343841 1px, transparent 1.4px) 0 0 / 16px 16px,
    #1a1f2c; }
html[data-tema="escuro"] .miniatura .centro { background: #2c3446; color: #eef1f6; box-shadow: 0 0 0 4px #1c2130; }
html[data-tema="escuro"] .miniatura .chip { background: color-mix(in srgb, var(--cor) 10%, #1c2130); }
html[data-tema="escuro"] .lateral { background: #2b2f37; }
html[data-tema="escuro"] .etiqueta { background: color-mix(in srgb, var(--c) 13%, #1c2130); }
html[data-tema="escuro"] .etiqueta.filtro:hover { background: color-mix(in srgb, var(--c) 22%, #1c2130); }
html[data-tema="escuro"] .amostra-org.ativo { box-shadow: 0 0 0 2px #1c2130, 0 0 0 4px var(--acento); }
html[data-tema="escuro"] .explica-exemplo mark { background: #30264a; }
html[data-tema="escuro"] .cartao-modelo { border-color: #4a4b59; }
html[data-tema="escuro"] .cartao-modelo .miniatura { background-color: #2b2e37; }
html[data-tema="escuro"] .btn-perigo-suave:hover { background: #38373e; }
html[data-tema="escuro"] .cartao.na-lixeira { background: #161a24; }
html[data-tema="escuro"] .mt-filtro { background: #1c2130; }
html[data-tema="escuro"] .mt-item { background: #1c2130; }
html[data-tema="escuro"] .mt-avatar { border: 2px solid #1c2130; }
html[data-tema="escuro"] .painel-filtros select { background: #1c2130; }
html[data-tema="escuro"] .no-redim { background: #1c2130; }
html[data-tema="escuro"] .no.p1 { background: var(--bg-no, color-mix(in srgb, var(--cor) 11%, #1c2130)); }
html[data-tema="escuro"] .no-img { background: #2a3142; }
html[data-tema="escuro"] .no-dobra { background: #1c2130; }
html[data-tema="escuro"] .no-acao { background: #1c2130; }
html[data-tema="escuro"] .no-acao.menos { border-color: #474b55; }
html[data-tema="escuro"] .fantasma { background: #1c2130; }
html[data-tema="escuro"] .no.p2.caixa.forma { background: var(--bg-no, #1c2130); }
html[data-tema="escuro"] .no.busca-ok { box-shadow: 0 0 0 3px #3a3728; }
html[data-tema="escuro"] .no.busca-ok.forma-svg, html[data-tema="escuro"] .no.busca-ok.sublinhado, html[data-tema="escuro"] .no.busca-ok.so-texto { outline: 3px solid #504d3e; }
html[data-tema="escuro"] ::highlight(busca) { background-color: #3a382c; }
html[data-tema="escuro"] .rotulo-ligacao { background: #1c2130; }
html[data-tema="escuro"] .amostra.ativo { box-shadow: 0 0 0 2px #1c2130, 0 0 0 4px var(--acento); }
html[data-tema="escuro"] .anexo-ico { background: color-mix(in srgb, var(--c) 13%, #1c2130); }
html[data-tema="escuro"] .amostra.personalizada::after { background: #1c2130; }
html[data-tema="escuro"] .amostra.nenhum { background: #1c2130 linear-gradient(to top right, transparent calc(50% - 1px), var(--perigo) 50%, transparent calc(50% + 1px)); }
html[data-tema="escuro"] .apres-barra .btn { border-color: rgba(28, 33, 48, 0.25); }
html[data-tema="escuro"] .apres-barra .btn:hover { background: rgba(28, 33, 48, 0.12); }
html[data-tema="escuro"] .apres-info small { color: rgba(28, 33, 48, 0.65); }
html[data-tema="escuro"] .marca.vinc-mapa { background: #30264a; color: #c8a8ff; }
html[data-tema="escuro"] .marca.vinc-item { background: #1d3a2b; color: #7fd8a8; }
html[data-tema="escuro"] .presenca-avatar { border: 2px solid #1c2130; }
html[data-tema="escuro"] .presenca-avatar.editando::after { border: 2px solid #1c2130; }
html[data-tema="escuro"] .presenca-mais { border: 2px solid #1c2130; }
html[data-tema="escuro"] .presenca-no { border: 2px solid #1c2130; }
html[data-tema="escuro"] .recurso { background: #1d3a2b; color: #7fd8a8; }
html[data-tema="escuro"] .tabela th { background: #20263a; }
html[data-tema="escuro"] .tabela tr:hover td { background: #2b2f37; }
html[data-tema="escuro"] .selo.ativa, html[data-tema="escuro"] .selo.ativo, html[data-tema="escuro"] .selo.pago { background: #1d3a2b; color: #7fd8a8; }
html[data-tema="escuro"] .selo.vencendo, html[data-tema="escuro"] .selo.pendente { background: #3a3120; color: #f0c070; }
html[data-tema="escuro"] .selo.vencida, html[data-tema="escuro"] .selo.vencido, html[data-tema="escuro"] .selo.suspensa, html[data-tema="escuro"] .selo.suspenso { color: #ff9b8a; }
html[data-tema="escuro"] .selo-papel.super { background: #30264a; }
html[data-tema="escuro"] .diag-item { background: #1c2130; }
html[data-tema="escuro"] .diag-item.aviso { background: #2e2a1c; }
html[data-tema="escuro"] .diag-item.erro { background: #3a2524; }
html[data-tema="escuro"] .filtros-linha select { background: #1c2130; }
html[data-tema="escuro"] .tabela-auditoria tr.au-falha td { background: #3a2524; }
html[data-tema="escuro"] .rel-barra { background: #2a3142; }
html[data-tema="escuro"] #rel-dias { background: #1c2130; }
html[data-tema="escuro"] .aviso-plano { background: #3a3120; color: #f0c070; }
html[data-tema="escuro"] .espaco { background: #1c2130; }
html[data-tema="escuro"] .esp-topo { background: #1c2130; }
html[data-tema="escuro"] .esp-capa { background: linear-gradient(90deg, var(--cor), color-mix(in srgb, var(--cor) 65%, #1c2130)); }
html[data-tema="escuro"] .esp-nota:focus { background: #20263a; }
html[data-tema="escuro"] .esp-cartao-qtd { background: rgba(28, 33, 48, 0.25); }
html[data-tema="escuro"] .esp-cartao.novo { background: #1c2130; }
html[data-tema="escuro"] .esp-resumo-item { background: #1c2130; }
html[data-tema="escuro"] .esp-filtro { background: #1c2130; }
html[data-tema="escuro"] .esp-avatares .esp-avatar + .esp-avatar { box-shadow: 0 0 0 2px #1c2130; }
html[data-tema="escuro"] .esp-data.hoje { background: #3a3120; color: #f0c070; }
html[data-tema="escuro"] .esp-data.atrasada { color: #ff9b8a; }
html[data-tema="escuro"] .esp-coluna { background: color-mix(in srgb, var(--fundo-col) 55%, #1c2130); }
html[data-tema="escuro"] .esp-item { background: #1c2130; }
html[data-tema="escuro"] .esp-item:hover { background: #20263a; }
html[data-tema="escuro"] .esp-tabela tr:hover td { background: #2b2f37; }
html[data-tema="escuro"] .esp-entrada:focus { background: #1c2130; }
html[data-tema="escuro"] .esp-dia { background: #1c2130; }
html[data-tema="escuro"] .esp-dia.fora { background: #2b2f37; }
html[data-tema="escuro"] .esp-hoje-grupo.atrasada .esp-hoje-titulo { color: #ff9b8a; }
html[data-tema="escuro"] .esp-hoje-grupo.hoje .esp-hoje-titulo { color: #f0c070; }
html[data-tema="escuro"] .esp-hoje-item:hover { background: #20263a; }
html[data-tema="escuro"] .esp-galeria-cartao { background: #1c2130; }
html[data-tema="escuro"] .esp-galeria-previa { background: #2b2e36; }
html[data-tema="escuro"] .esp-cor { border: 2px solid #1c2130; }
html[data-tema="escuro"] .esp-modelo { background: #1c2130; }
html[data-tema="escuro"] .esp-painel { background: #1c2130; }
html[data-tema="escuro"] .esp-subtarefa:hover { background: #20263a; }
html[data-tema="escuro"] .espaco input.esp-entrada:focus { background: #1c2130; }
html[data-tema="escuro"] .esp-mencao-op { background: #1c2130; }
html[data-tema="escuro"] .esp-regra-edit { background: #20263a; }
html[data-tema="escuro"] .esp-regra-campo select { background: #1c2130; }
html[data-tema="escuro"] .esp-lateral { background: #1a1f2c; }
html[data-tema="escuro"] .esp-lat-busca { background: #1c2130; }
html[data-tema="escuro"] .vinc-aba { background: #1c2130; }
html[data-tema="escuro"] .vinc-modal-topo { background: #1c2130; }
html[data-tema="escuro"] .vinc-ficha { background: #1c2130; }
html[data-tema="escuro"] .vinc-nota { background: #1c2130; }
html[data-tema="escuro"] .esp-rec-previa { background: #1f2a44; }
html[data-tema="escuro"] .esp-proc { background: #1c2130; }
html[data-tema="escuro"] .esp-proc-previa { background: #20263a; }
html[data-tema="escuro"] .esp-acomp { color: #7fd8a8; }
html[data-tema="escuro"] .esp-rec-alerta { color: #ff9b8a !important; }
html[data-tema="escuro"] .btn-chat.tem-nao-lidas::after { box-shadow: 0 0 0 2px #1c2130; }
html[data-tema="escuro"] .chat { background: #1c2130; }
html[data-tema="escuro"] .chat-lista { background: #1a1f2c; }
html[data-tema="escuro"] .chat-convite { background: #3a3120; color: #f0c070; }
html[data-tema="escuro"] .chat-mensagens { background: #161a24; }
html[data-tema="escuro"] .chat-dia { background: #2a3142; }
html[data-tema="escuro"] .chat-texto { background: #1c2130; }
html[data-tema="escuro"] .chat-msg.minha .chat-texto { background: #22335c; border-color: #34497a; }
html[data-tema="escuro"] .chat-player { background: #1c2130; }
html[data-tema="escuro"] .chat-msg.minha .chat-player { background: #22335c; border-color: #34497a; }
html[data-tema="escuro"] .chat-arquivo { background: #1c2130; }
html[data-tema="escuro"] .chat-vinculo { background: #1c2130; }
html[data-tema="escuro"] .chat-vinculo:hover { background: #22293b; }
html[data-tema="escuro"] .chat-compor { background: #1c2130; }
html[data-tema="escuro"] .chat-anexo-previa { background: #30264a; color: #c8a8ff; }
html[data-tema="escuro"] .chat-acoes { background: #1c2130; }
html[data-tema="escuro"] .chat-suspenso { background: #3a3120; color: #f0c070; }
html[data-tema="escuro"] .chat-mod-pessoa.removido, html[data-tema="escuro"] .chat-mod-pessoa.suspenso { background: #33291d; }
html[data-tema="escuro"] .chat-mod-sit { background: #1d3a2b; color: #7fd8a8; }
html[data-tema="escuro"] .chat-mod-sit.suspenso { background: #3a3120; color: #f0c070; }
html[data-tema="escuro"] .chat-mod-sit.removido { color: #ff9b8a; }
html[data-tema="escuro"] .chat-apagada { border: 1px dashed #7a3f38; background: #3a2524; color: #ff9b8a; }
html[data-tema="escuro"] .chat-original { border-left: 3px solid #7a3f38; }
html[data-tema="escuro"] .chat-versao { background: #20263a; }
html[data-tema="escuro"] .chat-versao.atual { border-color: #34497a; background: #1f2a44; }
html[data-tema="escuro"] .chat-msg.minha .chat-original { border-right: 3px solid #7a3f38; }
html[data-tema="escuro"] .chat-fixadas { background: #2e2a1c; }
html[data-tema="escuro"] .chat-resultado { background: #1c2130; }
html[data-tema="escuro"] .chat-resultado mark { background: #3a3933; }
html[data-tema="escuro"] .chat-digitando { background: #161a24; }
