/* Modo escuro do Protocollo Nautilus: Sálvia noturna (23/11/2026). Só age com <html data-nau-tema="escuro">. */
#nau-tema-botao { position: fixed; top: 10px; right: 10px; z-index: 9999; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 13px; border-radius: 99px; border: 1px solid #9AA596; background: #fff; color: #3E4A3C; font: 700 14px system-ui, -apple-system, 'Segoe UI', sans-serif; cursor: pointer; box-shadow: 0 3px 12px rgba(62,74,60,.18); margin: 0; }
#nau-tema-botao:focus-visible { outline: 2px solid #C1977F; outline-offset: 2px; }
#nau-tema-botao { position: absolute; }
#nau-tema-botao.abaixo-do-topo { top: 104px; }
body:has(#nau-tema-botao.abaixo-do-topo) main h1 { padding-right: 100px; }
@media (min-width: 701px) { body:has(.topo nav .bandeira) #nau-tema-botao:not(.abaixo-do-topo) { top: 92px; } }
@media (max-width: 700px) { body.nautilus:not(:has(.bandeira)) { padding-top: 52px; } }
html[data-nau-tema=escuro] #np .pix-btn { background: #3B463A !important; color: #E8EBE0 !important; border-color: #566354 !important; }
@media print { #nau-tema-botao { display: none; } }
html[data-nau-tema=escuro] #nau-tema-botao { background: #2B332B; color: #E8EBE0; border-color: #566354; box-shadow: none; }

html[data-nau-tema=escuro] {
  color-scheme: dark;
  --nau-salvia-clara: #3B463A; --nau-branco: #222922; --nau-salvia: #A9B7A4; --nau-salvia-escura: #C6D1C1;
  --nau-argila-texto: #E0B9A2; --nau-papel: #171C17; --nau-tinta: #E8EBE0; --nau-fraco: #B4BFAE; --nau-erro: #FFB4A6;
  --fundo: #171C17; --painel: #222922; --painel2: #2B332B; --borda: #3B463A; --texto: #E8EBE0; --fraco: #B4BFAE; --apagado: #A7B2A2; --luz: #C6D1C1; --papel: #222922; --tinta: #E8EBE0;
  --branco: #222922; --clara: #3B463A; --salvia: #C6D1C1; --argila: #C1977F;
  background: #171C17;
}
html[data-nau-tema=escuro] body.nautilus, html[data-nau-tema=escuro] .nau {
  --fundo: #171C17; --painel: #222922; --painel-2: #2B332B; --preto: #E8EBE0; --borda: #3B463A; --borda-2: #3B463A; --linha: #3B463A;
  --texto: #E8EBE0; --texto-2: #CDD5C8; --fraco: #B4BFAE; --apagado: #A7B2A2; --luz: #C6D1C1; --luz-escura: #171C17; --tecla: #3B463A;
  --papel: #222922; --papel-2: #2B332B; --tinta: #E8EBE0;
}
html[data-nau-tema=escuro] body.nautilus, html[data-nau-tema=escuro] body:has(.tela), html[data-nau-tema=escuro] body:has(.caixa) { background: #171C17 !important; color: #E8EBE0 !important; }
html[data-nau-tema=escuro] .nau.nau-cartao, html[data-nau-tema=escuro] .nau-partes div, html[data-nau-tema=escuro] .cartao, html[data-nau-tema=escuro] .grande, html[data-nau-tema=escuro] .canais, html[data-nau-tema=escuro] .aceite, html[data-nau-tema=escuro] .selo, html[data-nau-tema=escuro] .quem, html[data-nau-tema=escuro] .premiotxt, html[data-nau-tema=escuro] .posicao, html[data-nau-tema=escuro] .caixa, html[data-nau-tema=escuro] #np .plano, html[data-nau-tema=escuro] #np .aviso-ok, html[data-nau-tema=escuro] body.nautilus .aviso, html[data-nau-tema=escuro] body.nautilus .secao, html[data-nau-tema=escuro] body.nautilus .pn { background: #222922 !important; color: #E8EBE0 !important; border-color: #3B463A; box-shadow: none !important; }
html[data-nau-tema=escuro] #np .plano.sel { border-color: #C6D1C1 !important; box-shadow: 0 0 0 3px #3B463A !important; }
html[data-nau-tema=escuro] :is(body.nautilus, .tela, .caixa, .nau) :is(input:not([type=checkbox]):not([type=radio]), select, textarea) { background: #2B332B !important; color: #E8EBE0 !important; border-color: #566354 !important; }
html[data-nau-tema=escuro] ::placeholder { color: #A7B2A2; }
html[data-nau-tema=escuro] :is(body.nautilus, body:has(.tela), body:has(.caixa)) :is(h1, h2, h3, summary, .cartao b, .posicao b, .premiotxt b, .grande .num) { color: #C6D1C1 !important; }
html[data-nau-tema=escuro] .tela[data-t="0"] h1 { color: #E8EBE0 !important; }
html[data-nau-tema=escuro] :is(.kicker, .versao, .rot) { color: #E0B9A2 !important; }
html[data-nau-tema=escuro] :is(body.nautilus, body:has(.tela), body:has(.caixa), .nau) a { color: #E0B9A2; }
html[data-nau-tema=escuro] :is(body.nautilus, body:has(.tela), body:has(.caixa)) :is(.fraco, .voltar) { color: #B4BFAE !important; }
html[data-nau-tema=escuro] :is(body.nautilus, body:has(.tela)) .erro { color: #FFB4A6 !important; }
html[data-nau-tema=escuro] :is(.botao, .tarja, #np .tag, body.nautilus .btnB) { color: #fff !important; }
html[data-nau-tema=escuro] .botao, html[data-nau-tema=escuro] .botao.zap { background: #5E6D5A !important; }
html[data-nau-tema=escuro] body.nautilus .key { background: #3B463A; color: #E8EBE0; }
html[data-nau-tema=escuro] :is(.cartao .n, #np .selo) { background: #C1977F !important; color: #1B1F1A !important; }
html[data-nau-tema=escuro] .faixa { background: #3B463A; color: #E8EBE0; }
/* cores escritas direto nos elementos das telas do Nautilus */
html[data-nau-tema=escuro] :is(body.nautilus, body:has(.tela), body:has(.caixa), .nau) [style*="color:#3E4A3C" i] { color: #E8EBE0 !important; }
html[data-nau-tema=escuro] :is(body.nautilus, body:has(.tela), body:has(.caixa), .nau) :is([style*="color:#5A6857" i], [style*="color:#5E6D5A" i], [style*="color:#4E5B4B" i], [style*="color:#72816E" i]) { color: #C6D1C1 !important; }
html[data-nau-tema=escuro] :is(body.nautilus, body:has(.tela), body:has(.caixa), .nau) [style*="color:#5F6B5C" i] { color: #B4BFAE !important; }
html[data-nau-tema=escuro] :is(body.nautilus, body:has(.tela), body:has(.caixa), .nau) :is([style*="color:#9C6B55" i], [style*="color:#8E6450" i]) { color: #E0B9A2 !important; }
html[data-nau-tema=escuro] body.nautilus [style*="color:#b3261e" i] { color: #FFB4A6 !important; }
html[data-nau-tema=escuro] :is(body.nautilus, body:has(.tela), body:has(.caixa), .nau) :is([style*="background:#fff" i], [style*="background: #fff" i], [style*="background:#F3F3EE" i], [style*="background:#F2F0E3" i]) { background: #222922 !important; color: #E8EBE0 !important; }
/* o logo claro aprovado para fundo escuro */
html[data-nau-tema=escuro] .nau-logo { background-image: url(nautilus/nautilus-logo-clara.png) !important; background-size: contain !important; background-position: center !important; background-repeat: no-repeat !important; }
html[data-nau-tema=escuro] img[src*="nautilus-logo"] { content: url(nautilus/nautilus-logo-clara.png); }
html[data-nau-tema=escuro] img[src*="nautilus-concha"], html[data-nau-tema=escuro] .final .concha { filter: brightness(1.55) saturate(.8); }

/* 24/11 (Yvone): na tela final do convite a faixa começa abaixo do botão */
body:has(.tela.final.ativa) .tela.final{padding-top:46px}
