/* ═══════════════════════════════════════════════════════════════════
   CB Audit — MODO ESCURO
   Só vale quando o <html> tem data-theme="dark" (botão de lua/sol no topo; a escolha fica no navegador).
   Tudo fica dentro de "@media screen": a impressão continua sempre clara.
   O styles.css NÃO muda: este arquivo só acrescenta regras por cima.

   Parte 1 (feita à mão): as cores-base e ajustes finos.
   Parte 2 (gerada): a versão escura de cada cor fixa do styles.css — ver docs/gerar-modo-escuro.js.
   ═══════════════════════════════════════════════════════════════════ */

@media screen {
  html[data-theme="dark"] {
    color-scheme: dark;   /* campos de data, listas e barras de rolagem do próprio navegador ficam escuros */

    --bg: #111318;
    --surface: #1a1d24;
    --border: #2c313c;
    --border-strong: #3a4150;
    --text: #e7e9ee;
    --text-secondary: #a6adba;
    --text-muted: #7d8595;

    /* --primary etc.: para texto, ícone e contorno (mais claros, para ler no fundo escuro).
       --*-solid: para fundos cheios com texto branco por cima (botões, etiquetas). */
    --primary: #6aa9f7;
    --primary-hover: #8dbdfa;
    --primary-light: #1b2a41;
    --primary-solid: #1d6fd3;
    --success: #5fcf8a;
    --success-light: #16301f;
    --success-solid: #1f8f4d;
    --warning: #f0b35c;
    --warning-light: #3a2a12;
    --warning-solid: #b96a12;
    --danger: #f28b8b;
    --danger-light: #3b1d1f;
    --danger-solid: #c53a3a;

    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, .45);
    --focus-ring: 0 0 0 3px rgba(106, 169, 247, .35);

    --portal-sidebar: #0c0e12;
    --portal-blue: #1d6fd3;
    --portal-nav-active: #1d6fd3;
  }
}

/* ── PARTE GERADA: INÍCIO (não editar à mão: refazer com docs/gerar-modo-escuro.js) ── */
@media screen {
html[data-theme="dark"] .app-header { background-color: var(--primary-solid); }
html[data-theme="dark"] input[type="text"] { background-color: #1a1d24; }
html[data-theme="dark"] input[type="password"] { background-color: #1a1d24; }
html[data-theme="dark"] input[type="date"] { background-color: #1a1d24; }
html[data-theme="dark"] input[type="number"] { background-color: #1a1d24; }
html[data-theme="dark"] select { background-color: #1a1d24; }
html[data-theme="dark"] textarea { background-color: #1a1d24; }
html[data-theme="dark"] .btn-primary { background-color: var(--primary-solid); }
html[data-theme="dark"] .btn-success { background-color: var(--success-solid); }
html[data-theme="dark"] .btn-warning { background-color: var(--warning-solid); }
html[data-theme="dark"] .btn-danger { background-color: var(--danger-solid); }
html[data-theme="dark"] .btn-secondary { background-color: #7f8694; }
html[data-theme="dark"] .status-dot.ok { background-color: var(--success-solid); }
html[data-theme="dark"] .status-dot.warning { background-color: var(--warning-solid); }
html[data-theme="dark"] .status-dot.error { background-color: var(--danger-solid); }
html[data-theme="dark"] tr:hover { background-color: #1f232b; }
html[data-theme="dark"] .progress-bar .fill { background-color: var(--primary-solid); }
html[data-theme="dark"] .alert-warning { color: #f1aa7e; }
html[data-theme="dark"] .toast.success { background-color: var(--success-solid); }
html[data-theme="dark"] .toast.error { background-color: var(--danger-solid); }
html[data-theme="dark"] .toast.info { background-color: var(--primary-solid); }
html[data-theme="dark"] .toast.warning { background-color: var(--warning-solid); }
html[data-theme="dark"] .demo-banner { color: #f1aa7e; }
html[data-theme="dark"] .portal-header { background-color: #1a1d24; }
html[data-theme="dark"] .user-dropdown { background-color: #1a1d24; }
html[data-theme="dark"] .ta-lider-row { background-color: #141d34; }
html[data-theme="dark"] .perm-col-extra { background-color: #142334; }
html[data-theme="dark"] .role-user { color: #c0c0c0; background-color: #252a33; }
html[data-theme="dark"] .perm-slider { background-color: #3a414e; }
html[data-theme="dark"] .perm-slider::before { background-color: #1a1d24; }
html[data-theme="dark"] #prazoTable tbody tr:hover { background-color: #1f232b; }
html[data-theme="dark"] #inovTable tbody tr:hover { background-color: #1f232b; }
html[data-theme="dark"] .inov-detail-tag { background-color: #142234; border-color: #2a496f; }
html[data-theme="dark"] .adiant-rules-box { background-color: #342d14; }
html[data-theme="dark"] .adiant-rules-title { color: #f1aa7e; }
html[data-theme="dark"] .adiant-rules-list { color: #efa880; }
html[data-theme="dark"] #adiantTable tbody tr:hover { background-color: #1f232b; }
html[data-theme="dark"] #retrabTable tbody tr:hover { background-color: #1f232b; }
html[data-theme="dark"] .notif-badge { background-color: #962c2c; }
html[data-theme="dark"] .notif-dropdown { background-color: #1a1d24; }
html[data-theme="dark"] .news-modal { background-color: #1a1d24; }
html[data-theme="dark"] .qr-badge-draft { color: #f1aa7e; background-color: #463e1b; }
html[data-theme="dark"] .qr-badge-submitted { color: #7ef1d1; background-color: #1b4630; }
html[data-theme="dark"] .il-progress-fill { background-color: var(--primary-solid); }
html[data-theme="dark"] .il-etapa-btn.active { background-color: #142234; }
html[data-theme="dark"] .il-etapa-prog-fill { background-color: var(--primary-solid); }
html[data-theme="dark"] .il-readonly { background-color: #142234; border-top-color: #2a496f; border-right-color: #2a496f; border-bottom-color: #2a496f; }
html[data-theme="dark"] .il-campo-secao { background-color: #142234; }
html[data-theme="dark"] .il-campo-subsecao { color: #84ebab; background-color: #14341e; }
html[data-theme="dark"] .il-toggle-sim.il-toggle-sel { color: #84ebab; background-color: #1b462a; }
html[data-theme="dark"] .il-toggle-ok.il-toggle-sel { color: #84ebab; background-color: #1b462a; }
html[data-theme="dark"] .il-toggle-conforme.il-toggle-sel { color: #84ebab; background-color: #1b462a; }
html[data-theme="dark"] .il-toggle-nao.il-toggle-sel { color: #e87272; background-color: #461b1b; }
html[data-theme="dark"] .il-toggle-erro.il-toggle-sel { color: #e87272; background-color: #461b1b; }
html[data-theme="dark"] .il-toggle-nao_conforme.il-toggle-sel { color: #e87272; background-color: #461b1b; }
html[data-theme="dark"] .il-toggle-n_o_conforme.il-toggle-sel { color: #e87272; background-color: #461b1b; }
html[data-theme="dark"] .il-toggle-porta_contas.il-toggle-sel { color: #f1aa7e; background-color: #463e1b; }
html[data-theme="dark"] .il-toggle-salao.il-toggle-sel { color: #f1aa7e; background-color: #463e1b; }
html[data-theme="dark"] .il-toggle-porta_contas_e_salao.il-toggle-sel { color: #84ebab; background-color: #1b462a; }
html[data-theme="dark"] .il-toggle-nao_identificado.il-toggle-sel { color: #e87272; background-color: #461b1b; }
html[data-theme="dark"] .il-toggle-satisfatorio.il-toggle-sel { color: #84ebab; background-color: #1b462a; }
html[data-theme="dark"] .il-toggle-insatisfatorio.il-toggle-sel { color: #e87272; background-color: #461b1b; }
html[data-theme="dark"] .il-toggle-nao_verificado.il-toggle-sel { color: #f1aa7e; background-color: #463e1b; }
html[data-theme="dark"] .il-toggle-nao_analisado.il-toggle-sel { color: #f1aa7e; background-color: #463e1b; }
html[data-theme="dark"] .il-toggle-inconforme.il-toggle-sel { color: #e87272; background-color: #461b1b; }
html[data-theme="dark"] .il-calc-ok { color: #84ebab; background-color: #1b462a; }
html[data-theme="dark"] .il-calc-err { color: #e87272; background-color: #461b1b; }
html[data-theme="dark"] .il-cell-status.il-cell-ok { color: #84ebab; background-color: #1b462a; }
html[data-theme="dark"] .il-cell-status.il-cell-conforme { color: #84ebab; background-color: #1b462a; }
html[data-theme="dark"] .il-cell-status.il-cell-erro { color: #e87272; background-color: #461b1b; }
html[data-theme="dark"] .il-cell-status.il-cell-n_o_conforme { color: #e87272; background-color: #461b1b; }
html[data-theme="dark"] .il-cell-status.il-cell-nao_conforme { color: #e87272; background-color: #461b1b; }
html[data-theme="dark"] .il-ctg-neg { color: #e87272 !important; }
html[data-theme="dark"] .il-ctg-pos { color: #7ef1cd !important; }
html[data-theme="dark"] .il-est-cc { color: #859dea; background-color: #1b2d46; }
html[data-theme="dark"] .il-est-ext { color: #7ef1d1; background-color: #1b4630; }
html[data-theme="dark"] .il-est-data { background-color: #1a1d24; }
html[data-theme="dark"] .il-est-tabela td { border-bottom-color: #2c313c; }
html[data-theme="dark"] .il-est-tabela tbody tr:hover { background-color: #1f232b; }
html[data-theme="dark"] .il-datas-g1 { color: #859dea; background-color: #1b2d46; }
html[data-theme="dark"] .il-datas-g2 { color: #f1aa7e; background-color: #463e1b; }
html[data-theme="dark"] .il-datas-g3 { color: #7ef1d1; background-color: #1b4630; }
html[data-theme="dark"] .il-datas-s1 { color: #859dea; background-color: #142234; }
html[data-theme="dark"] .il-datas-s2 { color: #f1aa7e; background-color: #342d14; }
html[data-theme="dark"] .il-datas-s3 { color: #7ef1d1; background-color: #1b4632; }
html[data-theme="dark"] .il-datas-c1 { background-color: #142034; }
html[data-theme="dark"] .il-datas-c2 { background-color: #342d14; }
html[data-theme="dark"] .il-datas-c3 { background-color: #143420; }
html[data-theme="dark"] .il-datas-grupo-fields { background-color: #1a1d24; }
html[data-theme="dark"] .il-datas-gc1 { background-color: #1b2d46; }
html[data-theme="dark"] .il-datas-gc1 .il-datas-grupo-titulo { color: #859dea; }
html[data-theme="dark"] .il-datas-gc1 .il-datas-grupo-fields { border-right-color: #2a496f; border-bottom-color: #2a496f; border-left-color: #2a496f; }
html[data-theme="dark"] .il-datas-gc2 { background-color: #463e1b; }
html[data-theme="dark"] .il-datas-gc2 .il-datas-grupo-titulo { color: #f1aa7e; }
html[data-theme="dark"] .il-datas-gc2 .il-datas-grupo-fields { border-right-color: #6f612a; border-bottom-color: #6f612a; border-left-color: #6f612a; }
html[data-theme="dark"] .il-datas-gc3 { background-color: #1b4630; }
html[data-theme="dark"] .il-datas-gc3 .il-datas-grupo-titulo { color: #7ef1d1; }
html[data-theme="dark"] .il-datas-gc3 .il-datas-grupo-fields { border-right-color: #2a6f4f; border-bottom-color: #2a6f4f; border-left-color: #2a6f4f; }
html[data-theme="dark"] .il-marcas-card { background-color: #1a1d24; }
html[data-theme="dark"] .il-mc-info-row { border-bottom-color: #2c313c; }
html[data-theme="dark"] .il-mc-chip { color: #6f90ec; background-color: #1b2d46; }
html[data-theme="dark"] .il-mc-reg { color: #b6bdc8; }
html[data-theme="dark"] .il-mc-com { color: #f1b07e; }
html[data-theme="dark"] .il-mc-audit-grid { border-top-color: #2c313c; }
html[data-theme="dark"] .il-mc-del { border-top-color: #2c313c; }
html[data-theme="dark"] .il-resumo-ok { background-color: #14341e; border-color: #2a6f42; }
html[data-theme="dark"] .il-resumo-err { background-color: #341414; border-color: #6f2a2a; }
html[data-theme="dark"] .il-resumo-warn { background-color: #342d14; border-color: #6f612a; }
html[data-theme="dark"] .il-resumo-ok .il-resumo-num { color: #81eea9; }
html[data-theme="dark"] .il-resumo-err .il-resumo-num { color: #e87272; }
html[data-theme="dark"] .il-resumo-warn .il-resumo-num { color: #f1bc7e; }
html[data-theme="dark"] .il-admin-etapa-num { background-color: var(--primary-solid); }
html[data-theme="dark"] .il-grupo-par td { background-color: #1a1d24; }
html[data-theme="dark"] .il-grupo-impar td { background-color: #142334; }
html[data-theme="dark"] .il-mc.il-grupo-impar { background-color: #142134; }
html[data-theme="dark"] .il-mc-biom-dir { color: #f1bc7e; }
html[data-theme="dark"] .il-somatorio-val { background-color: #142234; }
html[data-theme="dark"] .btn-outline:hover:not(:disabled) { background-color: #1f232b; border-color: #3a4150; }
html[data-theme="dark"] .badge-neutral { background-color: #252a33; }
html[data-theme="dark"] .badge-muted { background-color: #252a33; }
html[data-theme="dark"] .admin-table tbody tr:hover { background-color: #1f232b; }
html[data-theme="dark"] .news-card-img { background-color: #252a33; }
html[data-theme="dark"] .form-actions { background-color: #1f232b; }
html[data-theme="dark"] .prazo-checkbox-label:hover { background-color: #1f232b; }
html[data-theme="dark"] .data-table th { background-color: #1f232b; }
html[data-theme="dark"] .data-table tbody tr:hover td { background-color: #1f232b; }
html[data-theme="dark"] .prazo-badge-pendente { border-color: #6f562a; }
html[data-theme="dark"] select.prazo-status-select.prazo-badge-pendente { border-color: #6f562a; }
html[data-theme="dark"] .prazo-badge-analise { border-color: #2a4b6f; }
html[data-theme="dark"] select.prazo-status-select.prazo-badge-analise { border-color: #2a4b6f; }
html[data-theme="dark"] .prazo-badge-aprovado { border-color: #2d6c44; }
html[data-theme="dark"] select.prazo-status-select.prazo-badge-aprovado { border-color: #2d6c44; }
html[data-theme="dark"] .prazo-badge-aprovado-parcial { color: #f1a07e; background-color: #46311b; border-color: #6f4d2a; }
html[data-theme="dark"] select.prazo-status-select.prazo-badge-aprovado-parcial { color: #f1a07e; background-color: #46311b; border-color: #6f4d2a; }
html[data-theme="dark"] .prazo-badge-reprovado { border-color: #6f2a2a; }
html[data-theme="dark"] select.prazo-status-select.prazo-badge-reprovado { border-color: #6f2a2a; }
html[data-theme="dark"] .callout-info { color: #81b3ef; border-color: #2a496f; }
html[data-theme="dark"] .adiant-badge-pendente { border-color: #6f562a; }
html[data-theme="dark"] select.adiant-status-sel.adiant-badge-pendente { border-color: #6f562a; }
html[data-theme="dark"] .adiant-badge-analise { border-color: #2a4b6f; }
html[data-theme="dark"] select.adiant-status-sel.adiant-badge-analise { border-color: #2a4b6f; }
html[data-theme="dark"] .adiant-badge-aprovado { border-color: #2d6c44; }
html[data-theme="dark"] select.adiant-status-sel.adiant-badge-aprovado { border-color: #2d6c44; }
html[data-theme="dark"] .adiant-badge-reprovado { border-color: #6f2a2a; }
html[data-theme="dark"] select.adiant-status-sel.adiant-badge-reprovado { border-color: #6f2a2a; }
html[data-theme="dark"] .retrab-badge-pendente { border-color: #6f562a; }
html[data-theme="dark"] select.retrab-status-sel.retrab-badge-pendente { border-color: #6f562a; }
html[data-theme="dark"] .retrab-badge-analise { border-color: #2a4b6f; }
html[data-theme="dark"] select.retrab-status-sel.retrab-badge-analise { border-color: #2a4b6f; }
html[data-theme="dark"] .retrab-badge-aprovado { border-color: #2d6c44; }
html[data-theme="dark"] select.retrab-status-sel.retrab-badge-aprovado { border-color: #2d6c44; }
html[data-theme="dark"] .retrab-badge-reprovado { border-color: #6f2a2a; }
html[data-theme="dark"] select.retrab-status-sel.retrab-badge-reprovado { border-color: #6f2a2a; }
html[data-theme="dark"] .retrab-tipo-retrab { color: #f1a07e; background-color: #462e1b; }
html[data-theme="dark"] .retrab-tipo-abonado { color: #b6bdc8; background-color: #252a33; }
html[data-theme="dark"] .inov-badge-pendente { border-color: #6f562a; }
html[data-theme="dark"] select.inov-status-sel.inov-badge-pendente { border-color: #6f562a; }
html[data-theme="dark"] .inov-badge-analise { border-color: #2a4b6f; }
html[data-theme="dark"] select.inov-status-sel.inov-badge-analise { border-color: #2a4b6f; }
html[data-theme="dark"] .inov-badge-aprovado { border-color: #2d6c44; }
html[data-theme="dark"] select.inov-status-sel.inov-badge-aprovado { border-color: #2d6c44; }
html[data-theme="dark"] .inov-badge-reprovado { border-color: #6f2a2a; }
html[data-theme="dark"] select.inov-status-sel.inov-badge-reprovado { border-color: #6f2a2a; }
html[data-theme="dark"] .inov-auditor-label.inov-auditor-checked { background-color: var(--primary-solid); }
html[data-theme="dark"] .ranking-title i { color: #f1d17e; }
html[data-theme="dark"] .rank-ouro { color: #f1d07e; background-color: #463c1b; }
html[data-theme="dark"] .rank-prata { color: #9099a6; background-color: #252a33; }
html[data-theme="dark"] .rank-bronze { color: #e0a990; background-color: #462d1b; }
html[data-theme="dark"] .rank-bar { background-color: #252a33; }
html[data-theme="dark"] .rank-bar-fill { background-color: var(--primary-solid); }
html[data-theme="dark"] .rank-prata-bg { background-color: #4e5764; }
html[data-theme="dark"] .acomp-rank { background-color: #252a33; }
html[data-theme="dark"] .acomp-senior { color: #f1d07e; background-color: #463c1b; }
html[data-theme="dark"] .acomp-prazo-bar { background-color: #252a33; }
html[data-theme="dark"] .acomp-prazo-fill { background-color: var(--success-solid); }
html[data-theme="dark"] .acomp-prazo-proximo { background-color: var(--warning-solid); }
html[data-theme="dark"] .acomp-prazo-atrasado { background-color: var(--danger-solid); }
html[data-theme="dark"] .acomp-badge-neutral { background-color: #252a33; }
html[data-theme="dark"] .rev-badge-pend { background-color: #252a33; }
html[data-theme="dark"] .rev-th { background-color: #1f232b; }
html[data-theme="dark"] .rev-items-table tbody tr:hover td { background-color: #1f232b; }
html[data-theme="dark"] .rev-score-input { background-color: #1a1d24; }
html[data-theme="dark"] .rev-item-btn { border-color: #2a496f; }
html[data-theme="dark"] .rev-item-btn-neg { border-color: #6f2a2a; }
html[data-theme="dark"] .rev-loja-row td { background-color: #1f232b; }
html[data-theme="dark"] .rev-media-bar { background-color: #1f232b; }
html[data-theme="dark"] .checagem-row-pend td { background-color: #342914; }
html[data-theme="dark"] .checagem-detail-body { background-color: #1f232b; }
html[data-theme="dark"] .checagem-detalhe { background-color: #1a1d24; }
html[data-theme="dark"] .qr-add { background-color: #1a1d24; }
html[data-theme="dark"] .qr-add { border-color: #2a4b6f; }
html[data-theme="dark"] .qr-group .qr-tag { border-color: #2a496f; }
html[data-theme="dark"] .qr-group .qr-add { border-left-color: #2a496f; }
html[data-theme="dark"] .retrab-tipo-atraso { color: #80efe6; background-color: #1b4646; }
html[data-theme="dark"] .qr-nota-alto { color: #f1a07e; background-color: #462e1b; }
html[data-theme="dark"] .qr-eu-tag { background-color: var(--primary-solid); }
html[data-theme="dark"] .qr-modal-foot { background-color: #1f232b; }
html[data-theme="dark"] .callout-erro { color: #e48b8b; border-color: #6f2a2a; }
html[data-theme="dark"] .callout-aviso { color: #f1c27e; border-color: #6f562a; }
html[data-theme="dark"] .il-status-rascunho { background-color: #252a33; }
html[data-theme="dark"] .il-prog .il-progress-bar { background-color: #252a33; }
html[data-theme="dark"] .il-progress-completo { background-color: var(--success-solid); }
html[data-theme="dark"] .il-marca-chip { background-color: #252a33; }
html[data-theme="dark"] .il-marca-aviso { color: #f1aa7e; }
html[data-theme="dark"] .il-marca-aviso i { color: #f1aa7e; }
html[data-theme="dark"] .il-etapa-btn.active .il-etapa-num { background-color: var(--primary-solid); }
html[data-theme="dark"] .il-etapa-btn.active.il-etapa-ok .il-etapa-num { background-color: var(--success-solid); }
html[data-theme="dark"] .il-etapa-ok .il-etapa-prog-fill { background-color: var(--success-solid); }
html[data-theme="dark"] .il-datas-tabela th.il-datas-g1 { color: #859dea; background-color: #1b2d46; }
html[data-theme="dark"] .il-datas-tabela th.il-datas-g2 { color: #f1aa7e; background-color: #463e1b; }
html[data-theme="dark"] .il-datas-tabela th.il-datas-g3 { color: #7ef1d1; background-color: #1b4630; }
html[data-theme="dark"] .il-datas-tabela th.il-datas-s1 { color: #859dea; background-color: #142234; }
html[data-theme="dark"] .il-datas-tabela th.il-datas-s2 { color: #f1aa7e; background-color: #342d14; }
html[data-theme="dark"] .il-datas-tabela th.il-datas-s3 { color: #7ef1d1; background-color: #1b4632; }
html[data-theme="dark"] .adm-urow:hover { background-color: #1f232b; }
html[data-theme="dark"] .adm-chip { background-color: #252a33; }
html[data-theme="dark"] .adm-chip-extra { border-color: #2a4b6f; }
html[data-theme="dark"] .adm-tag-inativo { background-color: #252a33; }
html[data-theme="dark"] .news-admin-semfoto { background-color: #252a33; }
html[data-theme="dark"] .ta-card-head { background-color: #1f232b; }
html[data-theme="dark"] .ta-pessoa-lider { background-color: #142034; }
html[data-theme="dark"] .ta-avatar-foto { background-color: #252a33; }
html[data-theme="dark"] .home-edit-bar { color: #81b3ef; border-color: #2a496f; }
html[data-theme="dark"] .home-ctl button:hover:not(:disabled) { background-color: #252a33; }
html[data-theme="dark"] .home-add-chip { border-color: #2a4b6f; }
}
@media screen and (max-width: 768px) {
html[data-theme="dark"] .il-tabela tr.il-grupo-impar { background-color: #142134; }
html[data-theme="dark"] .il-etapa-btn.active { background-color: #142234; }
html[data-theme="dark"] #section-auditoria_inloco .il-etapa-btn.active { background-color: #142234 !important; }
html[data-theme="dark"] #section-auditoria_inloco .il-etapa-num { background-color: #252a33; }
html[data-theme="dark"] #section-auditoria_inloco .il-etapa-btn.active .il-etapa-num { background-color: var(--primary-solid); }
html[data-theme="dark"] #section-auditoria_inloco .il-etapa-btn.active.il-etapa-ok .il-etapa-num { background-color: var(--success-solid); }
}
@media screen and (min-width: 769px) {
html[data-theme="dark"] .il-etapas-nav { background-color: #1f232b; }
html[data-theme="dark"] .il-etapa-btn:hover { background-color: #252a33; }
html[data-theme="dark"] .il-etapa-num { background-color: #252a33; }
html[data-theme="dark"] .il-etapa-prog { background-color: #2c323d; }
}
/* ── PARTE GERADA: FIM ── */

/* ── AJUSTES FINOS (feitos à mão; ficam DEPOIS da parte gerada para valerem sobre ela) ── */
@media screen {
  /* Campos um tom abaixo do cartão: dá para ver onde se digita sem depender só da borda.
     Os seletores de status das tabelas (classe "...-status-sel...") ficam de fora: eles têm a cor do status
     (fundo e letra pelas variáveis do tema; borda pela parte gerada). Antes esta regra os deixava todos cinza. */
  html[data-theme="dark"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]), select:not([class*="-status-sel"]), textarea) {
    background-color: #14171d;
    border-color: var(--border-strong);
    color: var(--text);
  }
  html[data-theme="dark"] :is(input, select, textarea):disabled { background-color: #1f232b; color: var(--text-muted); }
  html[data-theme="dark"] ::placeholder { color: #6b7383; opacity: 1; }
  html[data-theme="dark"] option { background-color: #1a1d24; color: var(--text); }
  /* Listas com busca (js/lista-busca.js): o botão é um campo como os outros */
  html[data-theme="dark"] .sb-btn { background-color: #14171d; }
  html[data-theme="dark"] .sb-btn:disabled { background-color: #1f232b; }
  html[data-theme="dark"] .sb-op.sb-ativo { background-color: #262b35; }

  /* Véu atrás das janelas um pouco mais forte, para a janela destacar do fundo já escuro */
  html[data-theme="dark"] :is(.modal-overlay, .news-modal-overlay, .qr-modal) { background-color: rgba(0, 0, 0, .62); }
  html[data-theme="dark"] :is(.modal, .modal-box, .news-modal, .qr-modal-box) { border: 1px solid var(--border); }

  /* Fotos e imagens de notícia não devem "estourar" no escuro */
  html[data-theme="dark"] .news-card-img { background-color: #14171d; }

  /* Botão de lua/sol */
  html[data-theme="dark"] #btnTema { color: #f0b35c; }

  /* Auditoria de UX (01/10/2026): selo com a quantidade de filtros ligados (fundo cheio com número branco) */
  html[data-theme="dark"] .filtro-n { background-color: var(--primary-solid); }
}
