/* Modo escuro: tokens + ajustes manuais (as regras com cores fixas estão em dark.css, gerado por scripts/gen-dark.js) */
html[data-theme="dark"]{
  color-scheme:dark;
  --aura-blue-100:#16284A;--aura-blue-050:#0F1A30;--aura-canvas:#0A101C;--aura-page-bg:#0A101C;--aura-surface:#131B2A;--aura-surface-muted:#101827;--aura-border:#233049;
  --aura-text-900:#EEF3FB;--aura-text-700:#C5D2E6;--aura-text-500:#8FA2BF;--aura-text-primary:#EEF3FB;--aura-text-secondary:#C5D2E6;--aura-text-muted:#8FA2BF;
  --aura-success:#3DD6AE;--aura-success-bg:#0F2F29;--aura-warning:#F2B84B;--aura-warning-bg:#33270E;--aura-danger:#FF8DA0;--aura-danger-bg:#3A1621;
  --aura-primary-subtle:#16284A;--aura-info-bg:#16284A;
  --aura-blue-600:#3B82F6;--aura-blue-700:#2F6FE0;--aura-shadow-card:0 4px 18px rgb(0 0 0 / 35%);
}
html[data-theme="dark"] body[data-brand="aura"]{--soft-2:#1E3560;--line-2:#2E3F5E;--err-line:#7A2C3D;--card:#131B2A;--on-soft:#8DB8FF;--p-text:#7DB0FF}
html[data-theme="dark"] body{background:#0A101C;color:#C5D2E6}
html[data-theme="dark"] a:not(.btn){color:#7DB0FF}
html[data-theme="dark"] .sb{background:#08101E}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#0F1726;color:#EEF3FB;border-color:#2B3B58}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#6E819E}
html[data-theme="dark"] dialog{background:#131B2A;color:#C5D2E6}
html[data-theme="dark"] dialog::backdrop{background:rgba(2,6,14,.7)}
html[data-theme="dark"] .mbar{background:#1B2740}
html[data-theme="dark"] .ph34 img,html[data-theme="dark"] .ccard .ph img{filter:none}
html[data-theme="dark"] .chart text,html[data-theme="dark"] .chart .lbl{fill:#8FA2BF}
html[data-theme="dark"] .chart line,html[data-theme="dark"] .chart .grid{stroke:#243350}
/* landing */
html[data-theme="dark"] .lp-bar{background:#101827;border-color:#233049}
html[data-theme="dark"] .lp-feat,html[data-theme="dark"] .lp-box{background:#131B2A;border-color:#233049}
html[data-theme="dark"] .lp-box.lp-dark{background:linear-gradient(135deg,#0D2342,#0B1930)}
html[data-theme="dark"] .lp-phone{background:#fff;color:#101D35}
html[data-theme="dark"] .lp-chip{background:#fff;color:#101D35}
/* alternador de tema */
.theme-btn{width:40px;height:40px;border-radius:50%;border:1px solid var(--aura-border,#DBE5F2);background:transparent;color:inherit;display:inline-grid;place-items:center;cursor:pointer;flex:none}
.theme-btn:hover{background:rgba(127,127,127,.15)}
body:has(.lp) .top .theme-btn{color:#fff;border-color:rgba(255,255,255,.3)}
.theme-btn .i-sun{display:none}
html[data-theme="dark"] .theme-btn .i-sun{display:block}
html[data-theme="dark"] .theme-btn .i-moon{display:none}
.top .theme-btn{order:99}
.top #thm-top{display:inline-flex}
@media (max-width:560px){.top .theme-btn{width:36px;height:36px}}
.hdr-right .theme-btn{margin-right:.4rem}
body[data-shell=panel] #thm-top,body[data-shell=auth] #thm-top{display:none}
html[data-theme="dark"] .kpi-ico{background:var(--blue-100);color:#7DB0FF;box-shadow:none}
html[data-theme="dark"] .avatar{color:#A9C8FF!important}
html[data-theme="dark"] .hero2{background:#16284A;border:1px solid #233049;color:#EEF3FB}
html[data-theme="dark"] .hero2 p{color:#C5D2E6}
html[data-theme="dark"] .photo,html[data-theme="dark"] .hero{background:linear-gradient(135deg,#16284A,#1E3560)}
html[data-theme="dark"] .auth-icon{background:radial-gradient(circle,#16284A 0%,rgba(22,40,74,0) 70%)}
html[data-theme="dark"] .btn:disabled{background:#1D2B47;color:#6E819E}
html[data-theme="dark"] .spin{border-color:#1E3560;border-top-color:#3B82F6}
html[data-theme="dark"] .chart .avg{stroke:#7DB0FF}
html[data-theme="dark"] .note,html[data-theme="dark"] [data-brand="aura"] .note{background:#33270E;border-color:#7a5f1f;color:#F2B84B}
html[data-theme="dark"] .pill.amber{background:#33270E;color:#F2B84B;border-color:#7a5f1f}
html[data-theme="dark"] .lp-foot .wm,html[data-theme="dark"] .lp-foot .wm i{color:#fff}
html[data-theme="dark"] .lp-foot .wm i{color:#7DB0FF}
html[data-theme="dark"] .lp-feat span,html[data-theme="dark"] .lp-ph-h span{background:#16284A;color:#7DB0FF}
html[data-theme="dark"] .lp-phone .lp-ph-h span{background:#EAF2FF;color:#1263F1}
html[data-theme="dark"] .lp-bar b{color:#7DB0FF}
html[data-theme="dark"] .lp-final{background:linear-gradient(135deg,#1A4FBF,#0D2342)}
html[data-theme="dark"] .lp-phone{--aura-blue-100:#EAF2FF;--aura-text-900:#101D35;--aura-text-500:#667892;--aura-success:#00856A;--aura-blue-600:#1263F1}
html[data-theme="dark"] .lp-row{background:#F6FAFF}
html[data-theme="dark"] .lp-row.now{background:#EAF2FF}
html[data-theme="dark"] .lp-phone strong,html[data-theme="dark"] .lp-phone b{color:#101D35}
html[data-theme="dark"] .lp-row.ok b{color:#00856A}
html[data-theme="dark"] .lp-row small{color:#667892}
html[data-theme="dark"] body:has(.lp) .top #nav a[href="#/assinar"]{background:#fff!important;color:#0759DB!important}
html[data-theme="dark"] .lp a.lp-btn.lp-solid{background:#fff;color:#0759DB}
html[data-theme="dark"] .lp a.lp-btn.lp-ghost{color:#fff}
html[data-theme="dark"] .lp a.lp-btn.lp-line{color:#7DB0FF;border-color:#3B82F6}
html[data-theme="dark"] .auth .wm{color:#fff}
html[data-theme="dark"] .auth .wm i{color:#7DB0FF}
/* var(--ink) vira texto claro no escuro: fundos que usavam --ink precisam de cor própria */
html[data-theme="dark"] .toast{background:#24365A;color:#fff;border:1px solid #35507F;box-shadow:0 8px 28px rgba(0,0,0,.55)}
html[data-theme="dark"] .toast.err{background:#8F1F3A;border-color:#B42343}
html[data-theme="dark"] .btn.dark{background:#24365A;color:#fff}
/* cabeçalho público fora da landing: logo e links legíveis no escuro */
html[data-theme="dark"] .wm{color:#EEF3FB}
html[data-theme="dark"] .wm i{color:#7DB0FF}
html[data-theme="dark"] .top #nav a:not([href="#/assinar"]){color:#C5D2E6}
html[data-theme="dark"] .top #nav a.on:not([href="#/assinar"]){background:#1B2A47;color:#fff}
html[data-theme="dark"] .top #nav a:not([href="#/assinar"]):hover{background:#16233C;color:#fff}
@media (max-width:1023px){html[data-theme="dark"] body[data-brand="aura"] .scroll,html[data-theme="dark"] body[data-brand="aura"] .ag{background-color:#131B2A;background-image:linear-gradient(90deg,#131B2A 30%,transparent),linear-gradient(270deg,#131B2A 30%,transparent),radial-gradient(farthest-side at 0 50%,rgba(0,0,0,.5),transparent),radial-gradient(farthest-side at 100% 50%,rgba(0,0,0,.5),transparent)}}
html[data-theme="dark"] body[data-brand="aura"] table.dt tbody tr:hover{background:#1A2640}
html[data-theme="dark"] .sb-head{border-bottom-color:#233049}
html[data-theme="dark"] tr:has([data-open],[data-row-menu]):hover td{background:#1A2640}
html[data-theme="dark"] a.st-row{color:#EEF3FB}
#pf-top:empty{display:none}.top #pf-top{display:inline-flex}.pf-btn{display:inline-grid;border-radius:50%;overflow:hidden;line-height:0}body[data-shell=panel] #pf-top,body[data-shell=auth] #pf-top{display:none}
/* Anexos de avaliação: contraste dos botões secundários no modo escuro. */
html[data-theme="dark"] [data-brand="aura"] .review-form .btn.sec{background:var(--soft-2);color:var(--on-soft);border-color:var(--line-2)}
#mn-top{display:none;position:relative}.mn-pop{position:absolute;right:0;top:calc(100% + .5rem);min-width:230px;padding:.4rem;border-radius:14px;background:var(--aura-surface,#fff);border:1px solid var(--aura-border,#DBE5F2);box-shadow:0 14px 40px rgba(0,0,0,.35);z-index:30;display:grid;gap:.1rem}
.mn-pop[hidden]{display:none}.mn-pop a{display:block;padding:.75rem .9rem;border-radius:10px;color:var(--aura-text-900,inherit);text-decoration:none;font-weight:600}.mn-pop a:hover{background:rgba(127,127,127,.15)}
@media (max-width:560px){.top #mn-top{display:inline-flex}}
body[data-shell=panel] #mn-top,body[data-shell=auth] #mn-top{display:none!important}
.top .mn-pop a,.top .mn-pop a:hover{color:var(--aura-text-900,#0B1930)!important}
.top #mn-top,.top #pf-top{margin-left:-.95rem}
