/* Variáveis de tema compartilhadas + botão. Claro é o padrão; o escuro vem de data-theme="dark". */
:root{--deep:#12171c;--deep2:#1b242c;--brand:#0b6e5b;--paper-a:rgba(245,241,232,.9);--field:#fff;--bg-ok:#eaf6ef;--bg-bad:#fbeceA;--bg-info:#eaf1f9;color-scheme:light}
:root[data-theme="dark"]{
  --paper:#0e1317;--paper2:#141b21;--card:#182028;--ink:#eef2f5;--ink2:#e1e7ec;--ink3:#c3ccd4;--muted:#93a0ab;--line:rgba(255,255,255,.14);
  --accent:#2fc4a0;--accent2:#2fc4a0;--deep:#070a0d;--deep2:#10161b;--brand:#0b6e5b;--paper-a:rgba(14,19,23,.88);--field:#10161b;
  --bg-ok:#10261c;--bg-bad:#2a1512;--bg-info:#12202f;--ok:#3ac07f;--warn:#e0a82a;--bad:#ef6b59;--info:#6aa6e8;color-scheme:dark}
:root[data-theme="dark"] .frame{box-shadow:0 30px 60px -25px #000,0 0 0 1px rgba(255,255,255,.12)}
:root[data-theme="dark"] .btn-primary:hover,:root[data-theme="dark"] .btn-pri:hover{color:#06231c}
:root[data-theme="dark"] .app-nav a:hover{background:rgba(255,255,255,.08)}
:root[data-theme="dark"] .selo-parcial{color:var(--warn)}
:root[data-theme="dark"] .tool-tab.is-active small{color:#5b656f}
.tema-btn{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:50%;border:1.5px solid var(--line);background:transparent;color:var(--ink);cursor:pointer;padding:0;flex:none;transition:border-color .2s,background .2s}
.tema-btn:hover{border-color:var(--ink)}
.tema-btn svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tema-btn .sol{display:none}
:root[data-theme="dark"] .tema-btn .sol{display:block}
:root[data-theme="dark"] .tema-btn .lua{display:none}
.tema-flutua{position:fixed;top:16px;right:16px;z-index:30;background:var(--card)}
