/* Tema novo do Córtex, direção C "Vitrine" (Bruno, 16/10/2026). Carregado DEPOIS do app.css, só com body.tema-novo.
   Spec: docs/superpowers/specs/2026-10-16-cortex-visual-design.md. Modelo: 2026-10-16-cortex-visual-modelo.html.
   Branco limpo, cantos bem arredondados, cores suaves por bloco, preto só no item ativo e no botão principal.
   Sem nada de fora (CSP 'self'): a Sora fica em fonts/. ⚠️ Mesmo arquivo nos três apps (tests/test_tema_igual.py). */
/* Troca de página sem piscar (Bruno, 22/10/2026: atualizar, escolher skill, enviar formulário "dava uma piscada"). O
   navegador segura a página atual até a nova estar pronta e troca as duas num esmaecer curto, sem a tela branca. Quem
   não suporta (Safari antigo) navega como antes. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 120ms; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
@font-face {
  font-family: "Sora";
  src: url("fonts/Sora-VF.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

body.tema-novo {
  --t-fundo: #ffffff;
  --t-tinta: #111111;
  --t-suave: #6b6b6b;            /* 4,9:1 sobre o cinza dos cartões (revisão: #737373 dava 4,38) */
  --t-linha: #ececec;
  --t-cinza: #f6f6f4;
  --t-raio: 24px;
  --t-raio-p: 16px;
  --t-verde: #dff5c4;
  --t-salmao: #ffe1dc;
  --t-lilas: #e3e6ff;
  --t-amarelo: #fff1cc;
  --t-agua: #d8f1f4;
  --t-rosa: #f1e2fb;
  --t-sombra: 0 18px 40px -18px rgba(0, 0, 0, 0.25);
  --t-mola: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-suave-ida: cubic-bezier(0.2, 0.7, 0.2, 1);
  /* as variáveis do app.css passam a falar a língua do tema */
  --fundo: var(--t-fundo);
  --cartao: #ffffff;
  --borda: var(--t-linha);
  --borda-forte: #d9d9d6;
  --texto: #2a2a2a;
  --tinta: var(--t-tinta);
  --suave: var(--t-suave);
  --rotulo: #3a3a3a;
  --realce: var(--t-cinza);
  --tabela: #fafaf9;
  --acao: var(--t-tinta);
  --acao-hover: #2b2b2b;
  --acao-forte: var(--t-tinta);
  --acao-texto: #ffffff;
  --acao-anel: rgba(17, 17, 17, 0.18);
  --ok: #167a46;
  --ok-fundo: #eef9f1;
  --ok-borda: #bfe6cc;
  --erro: #c0331f;
  --erro-fundo: #fff0ed;
  --erro-borda: #f6c6bd;
  --aviso: #9a5b0a;
  --aviso-fundo: #fff7e6;
  --aviso-borda: #f3dcae;
  --raio: var(--t-raio);
  --raio-p: var(--t-raio-p);
  --sombra: none;
  --sombra-xs: none;
  --sombra-alta: var(--t-sombra);
  --lateral: 252px;
  --fonte: "Sora", "Mona Sans", "Segoe UI", system-ui, sans-serif;
  font-family: var(--fonte);
  background: var(--t-fundo);
  color: var(--texto);
  letter-spacing: -0.005em;
}
body.tema-novo button, body.tema-novo input, body.tema-novo select, body.tema-novo textarea { font-family: inherit; }

/* títulos grandes e redondos */
body.tema-novo h1 { font-size: clamp(2rem, 3.2vw, 2.75rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1.05; }
body.tema-novo h2 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }
body.tema-novo h3 { font-weight: 600; letter-spacing: -0.01em; }
body.tema-novo a { color: var(--t-tinta); }
body.tema-novo a:hover { color: #444; }
body.tema-novo :is(a, button, input, select, summary, textarea):focus-visible {
  outline: 3px solid #111; outline-offset: 3px; box-shadow: none; border-radius: 12px;
}

/* barra de topo: branca, sem linha dura; logo bem maior que no modelo (Bruno: "muito pequenininho") */
body.tema-novo .topo { background: rgba(255, 255, 255, 0.92); border-bottom: 1px solid var(--t-linha); box-shadow: none; }
body.tema-novo .marca-lockup { width: 152px; }   /* viewBox cortado no fim de TERRAJE (17/10) */
body.tema-novo .marca-produto { font-size: 0.68rem; letter-spacing: 0.18em; color: var(--t-suave); }
body.tema-novo .avatar { border: 0; border-radius: 50%; background: var(--t-verde); color: #1b5e34; width: 38px; height: 38px;
  font-weight: 700; }
body.tema-novo .usuario .botao { border-radius: 999px; }

/* menu lateral: branco, itens em pílula com ícone, o ativo preto */
body.tema-novo .lateral { background: #fff; border-right: 1px solid var(--t-linha); padding: 18px 14px 24px; }
body.tema-novo .lateral nav { gap: 3px; }
body.tema-novo .lateral-grupo { margin: 18px 12px 4px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--t-suave); }
body.tema-novo .lateral-item, body.tema-novo .lateral-grupo ~ .lateral-item {
  justify-content: flex-start; gap: 12px; min-height: 42px; padding: 9px 14px; border-radius: 999px; color: #2a2a2a;
  font-size: 0.9rem; font-weight: 500; box-shadow: none;
  transition: background 0.2s, color 0.2s, transform 0.25s var(--t-suave-ida);
}
body.tema-novo .lateral-item .icone { width: 19px; height: 19px; flex: none; opacity: 0.8; }
body.tema-novo .lateral-item:hover { background: var(--t-cinza); color: #111; transform: translateX(3px); }
body.tema-novo .lateral-item.ativo, body.tema-novo .lateral-grupo ~ .lateral-item.ativo {
  background: #111; color: #fff; font-weight: 600; box-shadow: none; transform: none;
}
body.tema-novo .lateral-item.ativo .icone { opacity: 1; }
/* Tera em destaque (Bruno, 20/10/2026): negrito e fundo verde suave, o mesmo do avatar; aberta, fica preta como as outras */
body.tema-novo .lateral-item.lateral-destaque:not(.ativo) { background: var(--t-verde); color: #111; font-weight: 700; }
body.tema-novo .lateral-item.lateral-destaque .icone { opacity: 1; }
/* Mídia paga e Configurações viram um item so, sem cabecalho (21/10/2026): um traco fino separa do grupo de cima */
body.tema-novo .lateral-divisor { display: block; align-self: stretch; height: 1px; margin: 14px 12px 6px; background: var(--t-linha); }
body.tema-novo .lateral-recolher, body.tema-novo .lateral-mostrar { border-radius: 999px; }
body.tema-novo .lateral-recolher:hover, body.tema-novo .lateral-mostrar:hover { background: var(--t-cinza); }

/* computador: recolhido vira uma faixa só com os ícones (antes sumia tudo e ficava só a seta) */
@media (min-width: 901px) {
  body.tema-novo .casca { transition: grid-template-columns 0.35s var(--t-suave-ida); }
  body.tema-novo.lateral-recolhida { --faixa-recolhida: 84px; }
  body.tema-novo.lateral-recolhida .lateral { padding: 16px 12px; align-items: center; }
  body.tema-novo.lateral-recolhida .lateral > nav { display: flex !important; align-items: center; }
  body.tema-novo.lateral-recolhida .lateral-grupo { display: none; }
  /* o texto sai da vista, não da leitura de tela (o ícone é aria-hidden) */
  body.tema-novo.lateral-recolhida .lateral-texto { position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; }
  body.tema-novo.lateral-recolhida .lateral-item { justify-content: center; width: 46px; padding: 11px; }
  body.tema-novo.lateral-recolhida .lateral-item:hover { transform: none; }
  body.tema-novo.lateral-recolhida .lateral-mostrar { order: -1; margin-bottom: 10px; width: 46px; height: 40px;
    background: var(--t-cinza); border: 0; }
}

/* celular: a gaveta que já existe, agora branca, arredondada e deslizando */
@media (max-width: 900px) {
  body.tema-novo .lateral-botao { border-radius: 14px; border: 0; background: var(--t-cinza); box-shadow: none; }
  body.tema-novo .lateral { border-radius: 0 var(--t-raio) var(--t-raio) 0; box-shadow: var(--t-sombra); }
  body.tema-novo .marca-lockup { width: 118px; }
}

/* blocos: cartão branco grande, sem borda dura; a marca de corte do tema antigo sai */
body.tema-novo .cartao { border: 0; border-radius: var(--t-raio); background: var(--t-cinza); box-shadow: none; }
body.tema-novo .cartao-ok { background: var(--ok-fundo); box-shadow: none; }
body.tema-novo .cartao-erro { background: var(--erro-fundo); box-shadow: none; }
body.tema-novo .cartao-confirmar { border: 2px solid #111; }
body.tema-novo .corte { background: var(--t-cinza); border-radius: 32px; padding: 26px; }
body.tema-novo .corte::before, body.tema-novo .corte::after,
body.tema-novo .corte > .canto-b, body.tema-novo .corte > .canto-c { display: none; }

/* cores por bloco (números do Início, dashboards) */
body.tema-novo .bloco-verde { background: var(--t-verde); }
body.tema-novo .bloco-salmao { background: var(--t-salmao); }
body.tema-novo .bloco-lilas { background: var(--t-lilas); }
body.tema-novo .bloco-amarelo { background: var(--t-amarelo); }
body.tema-novo .bloco-agua { background: var(--t-agua); }
body.tema-novo .bloco-rosa { background: var(--t-rosa); }

/* botões em pílula: o principal preto, o neutro cinza-claro */
body.tema-novo .botao {
  border-radius: 999px; border: 0; background: #111; color: #fff; font-weight: 600; padding-left: 20px; padding-right: 20px;
  transition: transform 0.2s var(--t-mola), background 0.2s;
}
body.tema-novo .botao:hover { background: #2b2b2b; color: #fff; transform: translateY(-1px); }
body.tema-novo .botao:active { transform: translateY(0) scale(0.98); }
body.tema-novo .botao-neutro, body.tema-novo .botao.secundario { background: var(--t-cinza); color: #111; border: 0; }
body.tema-novo .botao-neutro:hover, body.tema-novo .botao.secundario:hover { background: #ececea; color: #111; }
body.tema-novo .botao-pequeno { border-radius: 999px; }

/* campos */
body.tema-novo :is(input[type="text"], input[type="password"], input[type="date"], input[type="email"], input[type="number"],
  input[type="month"], input:not([type]), input[inputmode], select, textarea) {
  border-radius: 14px; border: 1.5px solid var(--t-linha); background: #fff; box-shadow: none;
}
body.tema-novo :is(input, select, textarea):hover { border-color: #cfcfcb; }
body.tema-novo :is(input, select, textarea):focus { border-color: #111; box-shadow: 0 0 0 4px var(--acao-anel); }

/* alertas e selos: forma redonda, estado com cor */
body.tema-novo .alerta { border-radius: var(--t-raio-p); border: 0; }
body.tema-novo .selo { border-radius: 999px; padding-left: 10px; padding-right: 10px; }

/* tabelas: limpas, cabeçalho leve, linha clara */
body.tema-novo .tabela-rolagem { border: 0; border-radius: var(--t-raio-p); background: #fff; }
body.tema-novo th { background: transparent; color: var(--t-suave); font-weight: 500; border-bottom: 1px solid var(--t-linha);
  font-size: 0.8rem; }
body.tema-novo td { border-bottom-color: var(--t-linha); }
body.tema-novo tbody tr { transition: background 0.15s; }
body.tema-novo tbody tr:hover td { background: #fafaf8; }

/* números do período (dashboards): blocos coloridos e arredondados */
body.tema-novo .kpis { gap: 14px; background: transparent; border: 0; }
body.tema-novo .kpi, body.tema-novo .kpi:first-child { border: 0; border-radius: var(--t-raio); background: var(--t-cinza);
  padding: 18px 20px; transition: transform 0.25s var(--t-suave-ida), box-shadow 0.25s; }
body.tema-novo .kpi:hover { transform: translateY(-3px); box-shadow: var(--t-sombra); }
body.tema-novo .kpi dd { color: #111; font-weight: 600; letter-spacing: -0.04em; }
body.tema-novo .kpi-destaque { background: var(--t-verde); box-shadow: none; }
body.tema-novo .kpi-alerta { background: var(--t-amarelo); }
body.tema-novo .kpi-erro { background: var(--t-salmao); }

/* abas, atalhos e filtros em pílula; o escolhido preto */
body.tema-novo :is(.chip, .dash-atalho, .filtro a, .utm-tab) { border-radius: 999px; }
body.tema-novo :is(.chip-ativo, .dash-atalho.ativo) { background: #111; color: #fff; box-shadow: none; }
body.tema-novo :is(.dash-aba[aria-selected="true"], .aba-ativa) { box-shadow: inset 0 -2px 0 #111; color: #111; }

@media (prefers-reduced-motion: reduce) {
  body.tema-novo *, body.tema-novo *::before, body.tema-novo *::after {
    animation: none !important; transition: none !important;
  }
}

/* Início: alerta de nota com erro no topo, saudação grande e os quatro números em blocos coloridos */
body.tema-novo .alertas-nf { background: var(--erro); color: #fff; border-radius: var(--t-raio); padding: 20px 24px;
  margin-bottom: 22px; }
body.tema-novo .alertas-nf :is(h2, strong, .apoio, .alerta-nf-motivo) { color: #fff; }
body.tema-novo .alertas-nf .botao { background: #fff; color: var(--erro); }
body.tema-novo .alertas-nf .botao-neutro { background: rgba(255, 255, 255, 0.18); color: #fff; }
body.tema-novo .painel-cabeca h1 { font-size: clamp(2.2rem, 4vw, 3rem); }
body.tema-novo .numeros { display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); gap: 16px; margin: 4px 0 22px; }
body.tema-novo .numero { display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: var(--t-raio);
  color: #111; text-decoration: none; transition: transform 0.3s var(--t-mola), box-shadow 0.3s; }
body.tema-novo .numero:hover { transform: translateY(-4px); box-shadow: var(--t-sombra); color: #111; }
body.tema-novo .numero-rotulo { font-size: 0.82rem; color: #3a3a3a; font-weight: 500; }
body.tema-novo .numero b { font-size: 2.6rem; font-weight: 600; letter-spacing: -0.05em; line-height: 1.1;
  font-variant-numeric: tabular-nums; }
body.tema-novo .numero em { align-self: flex-start; font-style: normal; font-size: 0.78rem; font-weight: 600;
  background: rgba(255, 255, 255, 0.65); padding: 3px 10px; border-radius: 999px; }
@media (max-width: 1000px) { body.tema-novo .numeros { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  body.tema-novo .numeros { grid-template-columns: 1fr 1fr; gap: 10px; }
  body.tema-novo .numero { padding: 14px; border-radius: 20px; }
  body.tema-novo .numero b { font-size: 2rem; }
  body.tema-novo .numero-rotulo { font-size: 0.74rem; }
  body.tema-novo .numero em { font-size: 0.7rem; padding: 2px 8px; }
}

/* Mapa das plantas estrela: Brasil verde-claro com borda branca, a lista "Próximas chegadas" ao lado */
body.tema-novo .mapa-estrelas .mapa-corpo { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
  gap: 22px; align-items: center; }
body.tema-novo .mapa-uf { fill: #e5ead9; stroke: #fff; stroke-width: 0.8; transition: fill 0.25s; }
body.tema-novo .mapa-uf:hover { fill: #d4e8bd; }
body.tema-novo .rota-bolinha { fill: var(--cor); stroke: #fff; stroke-width: 1.5; }
body.tema-novo .mapa-origem { fill: #111; }
body.tema-novo .mapa-origem-onda { fill: none; stroke: #111; transform-box: fill-box; transform-origin: center;
  animation: tema-onda 2s ease-out infinite; }
@keyframes tema-onda { from { transform: scale(1); opacity: 0.5; } to { transform: scale(3.2); opacity: 0; } }
body.tema-novo .chegadas-titulo { margin: 0 4px 8px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--t-suave); }
body.tema-novo [data-chegadas] { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
body.tema-novo [data-chegadas] li { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px;
  padding: 12px 14px; transition: transform 0.25s var(--t-suave-ida), box-shadow 0.25s; }
body.tema-novo [data-chegadas] li:hover { transform: translateX(4px); box-shadow: var(--t-sombra); }
body.tema-novo [data-chegadas] li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none;
  background: var(--cor); }
body.tema-novo [data-chegadas] span { display: flex; flex-direction: column; min-width: 0; color: #111; }
body.tema-novo [data-chegadas] b { font-size: 0.9rem; font-weight: 600; }
body.tema-novo [data-chegadas] small { color: var(--t-suave); font-size: 0.8rem; }
body.tema-novo [data-chegadas] em { margin-left: auto; font-style: normal; font-size: 0.76rem; font-weight: 600;
  background: var(--t-cinza); color: #111; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
body.tema-novo [data-chegadas] li.atrasada em { background: var(--t-salmao); color: #a8321f; }
body.tema-novo [data-chegadas] .estrela-32693 { --cor: var(--estrela-1); }
body.tema-novo [data-chegadas] .estrela-34769 { --cor: var(--estrela-2); }
body.tema-novo [data-chegadas] .estrela-34873 { --cor: var(--estrela-3); }
body.tema-novo .mapa-todos { margin-top: 14px; }
body.tema-novo .mapa-todos summary { cursor: pointer; font-weight: 600; font-size: 0.88rem; padding: 8px 14px;
  border-radius: 999px; background: #fff; display: inline-block; }
@media (max-width: 1000px) { body.tema-novo .mapa-estrelas .mapa-corpo { grid-template-columns: 1fr; } }

/* entrada: um bloco depois do outro, com um leve quique (tema.js põe a classe e tira aos 1,6 s) */
body.tema-novo .entra { animation: tema-entra 0.7s var(--t-mola) both; animation-delay: calc(var(--ordem, 0) * 55ms); }
/* translate (e não transform): soma com o transform do próprio elemento, ex.: o aviso flutuante centralizado do Agente */
@keyframes tema-entra { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: none; } }

/* o tema antigo proíbe caixa alta em tudo (app.css, [class]...!important); o novo usa nos rótulos pequenos */
body.tema-novo .lateral .lateral-grupo.lateral-grupo, body.tema-novo .chegadas .chegadas-titulo.chegadas-titulo {
  text-transform: uppercase !important; }   /* precisa vencer [class]:not(.faixa):not(.marca-produto) */
body.tema-novo .mapa-estrelas .mapa-corpo { max-width: none; margin-top: 16px; }
body.tema-novo .lateral { scrollbar-width: thin; scrollbar-color: #e5e5e2 transparent; }

/* Ferramentas do Início: cartões neutros como o menu (20/10/2026: sem cor por posição); ícone no cinza do hover do menu.
   A linha viva (inicio_resumos.py) fica em vermelho só quando pede ação. */
body.tema-novo .ferramentas { margin-top: 26px; }
body.tema-novo .ferramentas-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px;
  margin-top: 12px; }
body.tema-novo .ferramenta { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 22px;
  background: #fff; border: 1px solid var(--t-linha); color: #111; text-decoration: none; transition: transform 0.3s var(--t-mola), box-shadow 0.3s; }
body.tema-novo .ferramenta:hover { transform: translateY(-4px); box-shadow: var(--t-sombra); color: #111; }
body.tema-novo .ferramenta-icone { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--t-cinza); transition: transform 0.35s var(--t-mola); }
body.tema-novo .ferramenta:hover .ferramenta-icone { transform: rotate(-8deg) scale(1.08); }
body.tema-novo .ferramenta-icone .icone { width: 21px; height: 21px; }
body.tema-novo .ferramenta b { display: block; margin-bottom: 2px; font-weight: 600; }
body.tema-novo .ferramenta em { font-style: normal; font-size: 0.84rem; color: var(--t-suave); line-height: 1.45; }
body.tema-novo .ferramenta em.ferramenta-resumo { color: #111; }
body.tema-novo .ferramenta em.ferramenta-alerta { color: var(--erro); font-weight: 600; }

/* Calendário de Marketing: dias como cartões arredondados, hoje com anel preto */
body.tema-novo .cal-grade { background: var(--t-cinza); border: 0; border-radius: var(--t-raio); padding: 14px; }
body.tema-novo .cal-semana { gap: 8px; margin-bottom: 8px; }
body.tema-novo .cal-dia { border: 0; border-radius: 16px; background: #fff; padding: 8px 9px;
  transition: transform 0.25s var(--t-suave-ida), box-shadow 0.25s; }
body.tema-novo .cal-dia:hover, body.tema-novo .cal-dia:focus-visible { background: #fff; transform: translateY(-2px);
  box-shadow: var(--t-sombra); }
body.tema-novo .cal-dia.fora { background: transparent; border: 1.5px dashed #e3e3df; }
body.tema-novo .cal-dia.hoje { outline: 2px solid #111; outline-offset: -2px; }
body.tema-novo .cal-dia.aberto { background: var(--t-verde); }
body.tema-novo .cal-item { border-top-color: var(--t-linha); }
body.tema-novo .cal-loja { border-radius: 6px; padding: 0 4px; }
body.tema-novo .cal-detalhe { border-radius: 28px; }
body.tema-novo .cal-bloco { border-radius: 18px; }

/* dashboards: números do período em blocos coloridos */
body.tema-novo .dash-kpis { gap: 14px; }
body.tema-novo .dash-kpi { border: 0; border-radius: var(--t-raio); padding: 18px 20px; background: var(--t-verde);
  transition: transform 0.25s var(--t-suave-ida), box-shadow 0.25s; }
body.tema-novo .dash-kpi:hover { transform: translateY(-3px); box-shadow: var(--t-sombra); }
body.tema-novo .dash-kpi:nth-child(5n+2) { background: var(--t-lilas); }
body.tema-novo .dash-kpi:nth-child(5n+3) { background: var(--t-amarelo); }
body.tema-novo .dash-kpi:nth-child(5n+4) { background: var(--t-agua); }
body.tema-novo .dash-kpi:nth-child(5n+5) { background: var(--t-rosa); }
body.tema-novo .dash-kpi-valor { font-weight: 600; letter-spacing: -0.04em; font-size: 1.9rem; }
body.tema-novo .dash-kpi-rotulo { color: #3a3a3a; }

/* Etiquetas: a barra de impressão em pílula preta, flutuando */
body.tema-novo .barra-imprimir { border-radius: 999px; box-shadow: var(--t-sombra); }

/* Ajustes do Bruno na prévia (16/10/2026) ----------------------------------------------------------------------- */
/* "CÓRTEX 1.5.1" embaixo do logo, e não ao lado */
body.tema-novo .marca { flex-direction: column; align-items: flex-end; gap: 3px; }   /* alinhado ao fim de TERRAJE */
body.tema-novo .marca-produto { line-height: 1; padding-right: 2px; }

/* menu recolhido: ao passar o mouse (ou chegar pelo Tab) ele abre por cima da página, com os nomes, e fecha ao sair */
@media (min-width: 901px) {
  body.tema-novo.lateral-recolhida .lateral { width: var(--faixa-recolhida); z-index: 40; overflow-x: hidden;
    transition: width 0.25s var(--t-suave-ida), box-shadow 0.25s; }
  body.tema-novo.lateral-recolhida .lateral:is(:hover, :focus-within) { width: var(--lateral); align-items: stretch;
    box-shadow: var(--t-sombra); }
  body.tema-novo.lateral-recolhida .lateral:is(:hover, :focus-within) > nav { align-items: stretch; }
  body.tema-novo.lateral-recolhida .lateral:is(:hover, :focus-within) .lateral-grupo { display: block; }
  body.tema-novo.lateral-recolhida .lateral:is(:hover, :focus-within) .lateral-item { width: auto; justify-content: flex-start;
    padding: 9px 14px; }
  body.tema-novo.lateral-recolhida .lateral:is(:hover, :focus-within) .lateral-texto { position: static; width: auto;
    height: auto; overflow: visible; clip: auto; }
  body.tema-novo.lateral-recolhida .lateral:is(:hover, :focus-within) .lateral-mostrar { align-self: flex-start; }
}

/* gráficos: paleta categórica validada (daltonismo e distância entre cores), na ordem fixa */
:root:has(> body.tema-novo) {
  --g-1: #2a78d6; --g-2: #eb6834; --g-3: #1baf7a; --g-4: #eda100; --g-5: #e87ba4; --g-6: #008300;
  --g-acao: #2a78d6; --g-aviso: #eb6834; --g-azul: #1baf7a; --g-roxo: #6250d6; --g-erro: #e34948; --g-neutro: #c3c8d2;
}

/* Botões que se veem (Bruno, 16/10: "Gravar", "Tirar acesso" e "Ver todos" quase sumiam): o secundário é branco com
   contorno preto; o de perigo continua vermelho (a regra do botão principal pintava ele de preto). */
body.tema-novo :is(.botao-neutro, .botao.secundario), body.tema-novo .mapa-todos summary {
  background: #fff; color: #111; box-shadow: inset 0 0 0 1.5px #111; }
body.tema-novo :is(.botao-neutro, .botao.secundario):hover, body.tema-novo .mapa-todos summary:hover {
  background: var(--t-cinza); color: #111; }
body.tema-novo .botao-perigo { background: var(--erro); color: #fff; }
body.tema-novo .botao-perigo:hover { background: #a3271a; color: #fff; }

/* Menu recolhido (Bruno, 16/10): ao passar o mouse abre SÓ com ícones e nomes, sem os títulos dos grupos, e cada ícone
   fica exatamente onde estava (mesmo recuo e mesma altura nos dois estados), para o clique não "fugir". */
@media (min-width: 901px) {
  body.tema-novo.lateral-recolhida .lateral,
  body.tema-novo.lateral-recolhida .lateral:is(:hover, :focus-within) { padding: 16px 19px; align-items: flex-start; }
  body.tema-novo.lateral-recolhida .lateral > nav,
  body.tema-novo.lateral-recolhida .lateral:is(:hover, :focus-within) > nav { align-items: stretch; width: 100%; }
  body.tema-novo.lateral-recolhida .lateral-item,
  body.tema-novo.lateral-recolhida .lateral:is(:hover, :focus-within) .lateral-item {
    width: auto; height: 42px; min-height: 42px; padding: 0 13.5px; line-height: 1; justify-content: flex-start;
    white-space: nowrap; }
  body.tema-novo.lateral-recolhida .lateral:is(:hover, :focus-within) .lateral-grupo { display: none; }
  body.tema-novo.lateral-recolhida .lateral-mostrar,
  body.tema-novo.lateral-recolhida .lateral:is(:hover, :focus-within) .lateral-mostrar { align-self: flex-start; width: 46px; }
}

/* celular (17/10/2026): o logo inteiro também, com o CÓRTEX embaixo terminando junto com TERRAJE (antes era só o
   símbolo e o CÓRTEX ficava solto) */
@media (max-width: 720px) {
  body.tema-novo .marca-lockup { display: block; }
  body.tema-novo .marca-simbolo { display: none; }
}

/* Barra do topo que some ao rolar (Bruno, 23/10/2026): tema.js põe body.topo-escondido quando a pessoa rola para baixo
   e tira quando rola para cima. Só no celular (até 900px de largura, ou até 520px de altura, que é o celular deitado);
   a mesma condição está no tema.js. Ela continua sticky no lugar dela: o transform não mexe no fluxo, nada pula. */
@media (max-width: 900px), (max-height: 520px) {
  body.tema-novo .topo { transition: transform 0.22s ease; }
  body.tema-novo.topo-escondido .topo { transform: translateY(calc(-100% - 2px)); }
}
/* celular deitado com mais de 900px: o menu lateral é o do computador, preso embaixo da barra; sobe junto com ela */
@media (min-width: 901px) and (max-height: 520px) {
  body.tema-novo .lateral { transition: top 0.22s ease, height 0.22s ease; }
  body.tema-novo.topo-escondido .lateral { top: 0; height: 100vh; }
}
@media (prefers-reduced-motion: reduce) {
  body.tema-novo .topo, body.tema-novo .lateral { transition: none; }
}

/* ================================================================================================================
   Sistema de design do Córtex (Bruno, 01/11/2026). Tokens e componentes comuns; o manual é docs/cortex-ux-padrao.md.
   Tela nova usa isto em vez de criar estilo próprio. Carregamento e posição: static/ux.js.
   ================================================================================================================ */
body.tema-novo {
  /* espaçamento: só estes valores */
  --esp-1: 4px; --esp-2: 8px; --esp-3: 12px; --esp-4: 16px; --esp-5: 24px; --esp-6: 32px; --esp-7: 48px;
  /* tipo */
  --tipo-p: 0.8125rem; --tipo-m: 0.9375rem; --tipo-g: 1.125rem; --tipo-titulo: clamp(1.5rem, 2.4vw, 2rem);
  /* cor nova: o resto já está no tema */
  --desabilitado-fundo: #e7e7e4; --desabilitado-texto: #5f5f5c;
  --toque: 44px;
}
html { scroll-padding-top: calc(var(--topo, 64px) + 16px); }

/* título de uma tela de item (nome longo não pode ocupar a dobra) */
body.tema-novo .painel-cabeca .titulo-item { font-size: var(--tipo-titulo); letter-spacing: -0.03em; line-height: 1.15; overflow-wrap: anywhere; }

/* campos: todo tipo com a mesma cara; rótulo em cima, 4 px do campo; 16 px entre campos; botão nunca colado */
body.tema-novo :is(input[type="url"], input[type="search"], input[type="tel"], input[type="datetime-local"], input[type="time"]) {
  width: 100%; font: inherit; color: var(--texto); padding: 10px 14px; min-height: var(--toque); border-radius: 14px; border: 1.5px solid var(--t-linha); background: #fff; outline: 0; }
body.tema-novo textarea { width: 100%; font: inherit; padding: 10px 14px; color: var(--texto); }
body.tema-novo input[type="file"] { width: 100%; font-size: var(--tipo-p); color: var(--t-suave); margin-top: var(--esp-1); }
body.tema-novo input[type="file"]::file-selector-button { font: inherit; font-weight: 600; color: #111; background: #fff; border: 0; box-shadow: inset 0 0 0 1.5px #111;
  border-radius: 999px; padding: 8px 14px; margin-right: var(--esp-3); min-height: 36px; cursor: pointer; }
body.tema-novo main label:has(> :is(input:not([type="checkbox"], [type="radio"]), select, textarea)) { display: block; font-size: var(--tipo-p); font-weight: 500; color: var(--rotulo); }
body.tema-novo main label > :is(input:not([type="checkbox"], [type="radio"], [type="file"]), select, textarea) { display: block; width: 100%; margin-top: var(--esp-1); font-size: var(--tipo-m); font-weight: 400; }
body.tema-novo main form > :is(label, fieldset, details, .campo, .apoio) + :is(label, fieldset, details, .campo),
body.tema-novo main fieldset > :is(label, p, .cartao, section) + :is(label, .cartao, section) { margin-top: var(--esp-4); }
body.tema-novo main form > :is(label, fieldset, details, .campo, p, div) + :is(button, .botao, .acoes),
body.tema-novo main .recolhivel > label + .botao, body.tema-novo main .cartao > :is(p, .apoio, h3) + .botao { margin-top: var(--esp-4); }
body.tema-novo main label:has(> :is(input[type="checkbox"], input[type="radio"])):not(.rfm-celula) { display: flex; align-items: flex-start; gap: var(--esp-2); font-size: var(--tipo-m); line-height: 1.35; }
body.tema-novo main label > :is(input[type="checkbox"], input[type="radio"]) { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: #111; }
/* formulário em linha: campo curto e botão lado a lado, no celular empilha */
body.tema-novo .form-linha { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--esp-3); margin: 0; }
body.tema-novo .form-linha > label { flex: 1 1 200px; min-width: 0; margin: 0; }
body.tema-novo .form-linha > :is(.botao, button) { margin: 0; min-height: var(--toque); }
/* linha de ações: botões juntos, com o principal primeiro */
body.tema-novo .acoes { display: flex; flex-wrap: wrap; gap: var(--esp-3); align-items: center; }
body.tema-novo .acoes form { margin: 0; }

/* cartão: ritmo interno */
body.tema-novo main .cartao { padding: var(--esp-5); margin-bottom: var(--esp-4); }
body.tema-novo main .cartao > h2:first-child, body.tema-novo main .cartao > h3:first-child { margin-bottom: var(--esp-3); }
body.tema-novo main .cartao > form + :is(.apoio, form, .acoes), body.tema-novo main .cartao > :is(.acoes, .apoio) + form { margin-top: var(--esp-3); }
body.tema-novo main .cartao .apoio { line-height: 1.5; }
body.tema-novo main .cartao p:last-child { margin-bottom: 0; }

/* botão: desabilitado legível (o motivo vai ao lado em .faltas) */
body.tema-novo .botao[disabled], body.tema-novo .botao[aria-disabled="true"] { background: var(--desabilitado-fundo); color: var(--desabilitado-texto); box-shadow: none; opacity: 1; }
body.tema-novo .botao[disabled]:hover { transform: none; background: var(--desabilitado-fundo); color: var(--desabilitado-texto); }
body.tema-novo .botao-texto { background: none; border: 0; padding: 6px 8px; font: inherit; font-size: var(--tipo-p); font-weight: 600; color: var(--texto); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 32px; }
body.tema-novo .botao-texto:hover { color: #111; }
body.tema-novo .botao-texto.perigo { color: var(--erro); }
/* botão só com ícone e botão-etiqueta (acrescentar bloco) */
body.tema-novo .botao-etiqueta { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; min-width: 36px; padding: 4px 12px; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--borda-forte); color: #111; font: inherit; font-size: var(--tipo-p); font-weight: 500; cursor: pointer; }
body.tema-novo .botao-etiqueta:hover { background: var(--realce); box-shadow: inset 0 0 0 1px #111; }
body.tema-novo form.so-botao { display: inline-block; margin: 0; }

/* abas: uma linha só; no celular rola de lado em vez de empilhar */
body.tema-novo .abas { display: flex; gap: var(--esp-1); margin: 0 0 var(--esp-4); border-bottom: 1px solid var(--t-linha); overflow-x: auto; scrollbar-width: none; }
body.tema-novo .abas::-webkit-scrollbar { display: none; }
body.tema-novo .abas a { flex: none; display: inline-flex; align-items: center; min-height: var(--toque); padding: 0 var(--esp-3); text-decoration: none; color: var(--t-suave); border-bottom: 2px solid transparent; font-size: var(--tipo-m); font-weight: 500; }
body.tema-novo .abas a:hover { color: #111; }
body.tema-novo .abas a[aria-current="page"] { color: #111; border-bottom-color: #111; font-weight: 600; }
body.tema-novo .abas a:focus-visible { outline-offset: -3px; }
/* etapas: segundo nível, em pílula, para não parecer outra fileira de abas */
body.tema-novo .etapas { display: flex; gap: var(--esp-2); margin: 0 0 var(--esp-4); overflow-x: auto; scrollbar-width: none; padding: 2px; }
body.tema-novo .etapas a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--esp-4); border-radius: 999px; background: var(--t-cinza); color: var(--texto); text-decoration: none; font-size: var(--tipo-p); font-weight: 600; }
body.tema-novo .etapas a:hover { background: #ececea; color: #111; }
body.tema-novo .etapas a[aria-current="page"] { background: #111; color: #fff; }

/* recolhível e faixa de alertas */
body.tema-novo .recolhivel { border: 1px solid var(--t-linha); border-radius: var(--t-raio-p); margin-bottom: var(--esp-4); background: #fff; }
body.tema-novo .recolhivel > summary { cursor: pointer; font-weight: 600; font-size: var(--tipo-m); padding: var(--esp-3) var(--esp-4); min-height: var(--toque); }
body.tema-novo .recolhivel > :not(summary) { margin-left: var(--esp-4); margin-right: var(--esp-4); }
body.tema-novo .recolhivel > :last-child:not(summary) { margin-bottom: var(--esp-4); }
body.tema-novo .recolhivel-discreto { display: inline-block; border: 0; margin: 0 0 var(--esp-3); background: none; }
body.tema-novo .recolhivel-discreto[open] { display: block; }
body.tema-novo .recolhivel-discreto > summary { padding: var(--esp-1) 0; min-height: 0; font-size: var(--tipo-p); color: var(--t-suave); }
body.tema-novo .recolhivel-discreto > :not(summary) { margin-left: 0; margin-right: 0; }
body.tema-novo .dica { margin-top: var(--esp-3); font-size: var(--tipo-p); color: var(--t-suave); }
body.tema-novo .dica > summary { cursor: pointer; font-weight: 500; }
body.tema-novo .dica > p { margin: var(--esp-2) 0 0; line-height: 1.5; }
body.tema-novo .alerta { margin-bottom: var(--esp-3); }
body.tema-novo .news-alertas { border: 1px solid var(--t-linha); border-radius: var(--t-raio-p); padding: 0; margin: 0 0 var(--esp-4); }
body.tema-novo .news-alertas > summary { cursor: pointer; font-weight: 600; font-size: var(--tipo-p); padding: var(--esp-3) var(--esp-4); }
body.tema-novo .news-alertas.grave > summary { color: var(--erro); }
body.tema-novo .news-alertas > :not(summary) { margin: 0 var(--esp-3) var(--esp-2); }
body.tema-novo .news-alertas > .apoio { margin-bottom: var(--esp-3); }

/* número em destaque e lista do que falta */
body.tema-novo .numero-grande { font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; margin: var(--esp-1) 0; font-variant-numeric: tabular-nums; }
body.tema-novo .faltas { flex: 1 1 200px; margin: 0; font-size: var(--tipo-p); color: var(--aviso); }
body.tema-novo .faltas ul { margin: var(--esp-1) 0 0; padding-left: var(--esp-4); }

/* tabela: título à esquerda, número alinhado à direita, estado vazio */
body.tema-novo caption { caption-side: top; text-align: left; font-weight: 600; font-size: var(--tipo-g); color: #111; padding: 0 0 var(--esp-3); }
body.tema-novo main .tabela-rolagem, body.tema-novo main .tabela-cartoes { margin-bottom: var(--esp-5); }
body.tema-novo .vazio { text-align: center; color: var(--t-suave); padding: var(--esp-6) var(--esp-4); font-size: var(--tipo-m); }
body.tema-novo td.num, body.tema-novo th.num { text-align: right; }
.visualmente-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.tema-novo .tabela-cartoes table { width: 100%; }
@media (max-width: 720px) { /* tabela vira cartões: cada td declara data-rotulo */
  body.tema-novo .tabela-cartoes :is(table, tbody, tr, td) { display: block; width: auto; }
  body.tema-novo .tabela-cartoes thead { display: none; }
  body.tema-novo .tabela-cartoes caption { display: block; }
  body.tema-novo .tabela-cartoes tr { background: var(--t-cinza); border-radius: var(--t-raio-p); padding: var(--esp-3) var(--esp-4); margin-bottom: var(--esp-3); }
  body.tema-novo .tabela-cartoes tbody tr:hover td { background: none; }
  body.tema-novo .tabela-cartoes td { padding: 3px 0; border: 0; text-align: left; }
  body.tema-novo .tabela-cartoes td[data-rotulo] { display: flex; justify-content: space-between; gap: var(--esp-3); text-align: right; }
  body.tema-novo .tabela-cartoes td[data-rotulo]::before { content: attr(data-rotulo); color: var(--t-suave); text-align: left; }
  body.tema-novo .tabela-cartoes td[data-rotulo]:empty { display: none; }
}

/* menu de ações da linha */
body.tema-novo .menu-acoes { position: relative; display: inline-block; }
body.tema-novo .menu-acoes > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; min-height: 34px; padding: 0 var(--esp-3); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--borda-forte); font-size: var(--tipo-p); font-weight: 500; }
body.tema-novo .menu-acoes > summary::-webkit-details-marker { display: none; }
body.tema-novo .menu-acoes > summary:hover { background: var(--realce); }
body.tema-novo .menu-acoes-lista { position: absolute; right: 0; top: calc(100% + var(--esp-1)); z-index: 20; min-width: 220px; padding: var(--esp-2); background: #fff; border: 1px solid var(--t-linha); border-radius: var(--t-raio-p); box-shadow: var(--t-sombra); }
body.tema-novo .menu-acoes-lista form { margin: 0; }
body.tema-novo .menu-acoes-lista :is(form > button:not(.botao), details > summary) { display: block; width: 100%; min-height: 36px; padding: var(--esp-2) var(--esp-3); border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; font-size: var(--tipo-p); text-align: left; cursor: pointer; }
body.tema-novo .menu-acoes-lista :is(form > button:not(.botao), details > summary):hover { background: var(--realce); }
body.tema-novo .menu-acoes-lista details form { padding: var(--esp-2) var(--esp-3); }
@media (max-width: 720px) {
  body.tema-novo .menu-acoes { display: block; }
  body.tema-novo .menu-acoes > summary { width: 100%; justify-content: center; }
  body.tema-novo .menu-acoes-lista { position: static; margin-top: var(--esp-2); box-shadow: none; }
}

/* barra de ação presa ao pé enquanto o formulário longo está na tela */
body.tema-novo .barra-salvar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: var(--esp-3); align-items: center; margin-top: var(--esp-4); padding: var(--esp-3) var(--esp-4); background: rgba(255,255,255,0.96); border-top: 1px solid var(--t-linha); }

/* --- carregamento ------------------------------------------------------------------------------------------------ */
@keyframes ux-gira { to { transform: rotate(360deg); } }
@keyframes ux-corre { 0% { transform: translateX(-100%); } 100% { transform: translateX(330%); } }
@keyframes ux-some { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }
body.tema-novo .giro { display: inline-block; flex: none; width: 1em; height: 1em; margin-right: 0.45em; vertical-align: -0.12em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ux-gira 0.7s linear infinite; }
body.tema-novo .alerta > .giro { position: absolute; left: 14px; top: 13px; margin: 0; width: 18px; height: 18px; }
body.tema-novo .alerta:has(> .giro)::before { display: none; }
body.tema-novo .sem-quebra { white-space: nowrap; }
/* barra fina no topo; o atraso evita piscar em ação instantânea */
.ux-barra { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 1000; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity 0.1s; }
.ux-barra::after { content: ""; display: block; width: 30%; height: 100%; background: #111; animation: ux-corre 1.1s ease-in-out infinite; }
.ux-barra.ativa { opacity: 1; transition-delay: 150ms; }
/* botão acionado: o texto fica (invisível), então a largura não muda; o giro entra por cima */
body.tema-novo .ux-carregando { position: relative; color: transparent !important; cursor: progress; --giro-cor: #111; }
body.tema-novo .botao.ux-carregando { --giro-cor: #fff; background: #111; box-shadow: none; opacity: 1; }
body.tema-novo :is(.botao-neutro, .botao.secundario).ux-carregando { --giro-cor: #111; background: #fff; box-shadow: inset 0 0 0 1.5px #111; }
body.tema-novo .botao-perigo.ux-carregando { --giro-cor: #fff; background: var(--erro); }
body.tema-novo .ux-carregando > * { visibility: hidden; }
body.tema-novo .ux-carregando::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 2px solid var(--giro-cor); border-right-color: transparent; border-radius: 50%; animation: ux-gira 0.7s linear infinite; }
/* quem desliga animação: a barra fica cheia e parada, o giro vira um anel parado */
@media (prefers-reduced-motion: reduce) {
  .ux-barra::after { width: 100%; animation: none; }
}

/* posição: item criado ou movido se destaca por um instante; avisos ficam à vista */
html.ux-sem-entrada body.tema-novo .entra { animation: none; }
html { scroll-behavior: auto; }
@keyframes ux-pulso { 0% { box-shadow: 0 0 0 4px var(--t-verde), 0 0 0 6px #111; } 100% { box-shadow: 0 0 0 4px transparent, 0 0 0 6px transparent; } }
body.tema-novo .ux-destaque { animation: ux-pulso 1.8s ease-out both; }
@media (prefers-reduced-motion: reduce) { body.tema-novo .ux-destaque { outline: 3px solid #111; outline-offset: 2px; } }
.ux-avisos { position: fixed; right: var(--esp-4, 16px); bottom: var(--esp-4, 16px); z-index: 900; display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100vw - 32px)); }
body.tema-novo .ux-aviso { display: flex; justify-content: space-between; gap: var(--esp-3); align-items: flex-start; margin: 0; box-shadow: var(--t-sombra); font-size: var(--tipo-m); }
.ux-aviso-fechar { flex: none; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; width: 28px; height: 28px; margin: -4px -8px -4px 0; }
@media (max-width: 720px) { .ux-avisos { left: 16px; right: 16px; width: auto; } }

/* alvo de toque no celular */
@media (max-width: 720px) {
  body.tema-novo main :is(.botao, .botao-pequeno, .botao-etiqueta, .botao-texto, .menu-acoes > summary, .menu-acoes-lista form > button, .menu-acoes-lista details > summary, .etapas a, .recolhivel-discreto > summary, .news-alertas > summary, .dica > summary) { min-height: var(--toque); }
  body.tema-novo main :is(summary, .recolhivel-discreto > summary, .dica > summary, .news-alertas > summary) { display: flex; align-items: center; gap: var(--esp-2); }
  body.tema-novo main label:has(> :is(input[type="checkbox"], input[type="radio"])):not(.rfm-celula) { min-height: var(--toque); align-items: center; }
  body.tema-novo main input[type="file"]::file-selector-button { min-height: var(--toque); }
  body.tema-novo main .cartao { padding: var(--esp-4); }
}
/* grupo de campos sem moldura; duas colunas que empilham; botão que abre um formulário */
body.tema-novo main fieldset.grupo-limpo { border: 0; padding: 0; margin: 0; min-width: 0; }
body.tema-novo main fieldset.grupo-limpo > legend { font-size: var(--tipo-g); font-weight: 600; color: #111; padding: 0; margin-bottom: var(--esp-3); }
body.tema-novo .duas-colunas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: var(--esp-4); align-items: start; margin-top: var(--esp-4); }
body.tema-novo .duas-colunas > .cartao { margin: 0; }
body.tema-novo .recolhivel-acao { margin: 0 0 var(--esp-5); }
body.tema-novo .recolhivel-acao > summary { list-style: none; display: inline-flex; }
body.tema-novo .recolhivel-acao > summary::-webkit-details-marker { display: none; }
body.tema-novo .recolhivel-acao > summary::after { content: "+"; margin-left: var(--esp-2); font-weight: 400; }
body.tema-novo .recolhivel-acao[open] > summary::after { content: "\2212"; }
/* passo de uma lista editável: cabeçalho com a ação discreta à direita */
body.tema-novo .passo-cabeca { display: flex; justify-content: space-between; align-items: center; gap: var(--esp-3); margin-bottom: var(--esp-3); }
body.tema-novo .passo-cabeca h3 { margin: 0; font-size: var(--tipo-g); }
body.tema-novo .passo-link { margin: var(--esp-3) 0 0; font-size: var(--tipo-p); }
body.tema-novo .passo > label + label, body.tema-novo .passo > p + label, body.tema-novo .passo > .passo-link + label { margin-top: var(--esp-4); }
body.tema-novo .passo > p { margin-bottom: var(--esp-3); }
body.tema-novo .passo > p.passo-link { margin-bottom: 0; }
body.tema-novo .passo > .apoio:last-child { margin-top: var(--esp-3); }

/* Toda tabela ordena ao clicar no nome da coluna (Bruno, 15/11/2026); o botão é posto pelo ux.js */
table[data-ux-ordenar] th button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer;
  text-align: inherit; font-weight: inherit; min-height: 0; }
table[data-ux-ordenar] th button:hover { color: var(--acao-forte, currentColor); }
table[data-ux-ordenar] th button:focus-visible { outline: 2px solid var(--acao-forte, currentColor); outline-offset: 2px; }
table[data-ux-ordenar] th[aria-sort="ascending"] button::after { content: " \2191"; }
table[data-ux-ordenar] th[aria-sort="descending"] button::after { content: " \2193"; }

/* Microfone das caixas de texto (static/voz.js, 19/11/2026): botão "Falar" logo abaixo da caixa, à direita; vermelho
   enquanto ouve. 40 px de altura para o dedo no celular. */
.voz-linha { display: flex; flex-direction: row-reverse; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 6px 0 2px; }
.voz-botao { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1.5px solid #111;
  border-radius: 999px; background: #fff; color: #111; font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; }
.voz-botao .icone { width: 18px; height: 18px; }
.voz-botao:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.voz-botao.voz-ouvindo { background: var(--t-salmao); border-color: var(--erro); color: var(--erro); }
.voz-situacao { flex: 1 1 200px; font-size: 0.85rem; color: var(--t-suave); text-align: right; }
