/* Shared web/native palette. Semantic map statuses and signatures keep their meaning. */
.avaga-appearance{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:16px;font:inherit}
.avaga-appearance label{margin:0;font-size:13px;font-weight:650;color:inherit}
.avaga-appearance select{width:auto;max-width:100%;min-height:44px;font:inherit;font-size:14px;padding:8px 10px;border:1px solid #94a3b8;border-radius:9px;background:#fff;color:#0f172a}
.avaga-appearance [role=status]:empty{display:none}.avaga-appearance [role=status]{flex-basis:100%;font-size:12px}
#appearance-login{border-top:1px solid var(--bord,#dbe6e3);padding-top:12px}
#appearance-page{justify-content:flex-end;margin:0 0 18px}#appearance-profile{position:relative}
html[data-theme=dark]{--brand:#2563eb;--bg:#04050a;--card:#111725;--txt:#e9ecf4;--mut:#a8b2ca;--bord:#29354b;color-scheme:dark;background:#04050a;color:#e9ecf4}
html[data-theme=dark] body{background:#04050a;color:#e9ecf4}
html[data-theme=dark] header{background:#080d18;color:#e9ecf4;border-color:#29354b}
html[data-theme=dark] header button{background:#17233a;color:#fff;border-color:#29354b}
html[data-theme=dark] nav{background:#0b1120;border-color:#29354b}
html[data-theme=dark] nav button{color:#a8b2ca}
html[data-theme=dark] nav button.on{color:#38bdf8;border-bottom-color:#38bdf8;background:#13213b}
html[data-theme=dark] nav button:active{background:#17233a}
html[data-theme=dark] .chipgrp{background:#111725}
html[data-theme=dark] .chipgrp button{color:#bdc8dc}
html[data-theme=dark] .chipgrp button.on{background:#2563eb;color:#fff}
html[data-theme=dark] :is(.mapbar select,.mapbar input,#legend,#locbtn,#routebtn,#panel){background:#111725;color:#e9ecf4}
html[data-theme=dark] :is(.card,dialog,.acq-dialog,.acq-top,.acq-body,.acq-panel,.acq-metric,.acq-tabs){background:#111725;color:#e9ecf4;border-color:#29354b}
html[data-theme=dark] :is(.btn.sec,.secondary,.abtn,.stat,.live-tiles .lt,.acq-close,.acq-tabs button){background:#1c2940;color:#e9ecf4;border-color:#34435c}
html[data-theme=dark] :is(.btn:not(.sec):not(.red),.abtn.go,button[type=submit],.acq-tabs button[aria-selected=true]){background:#2563eb;color:#fff}
html[data-theme=dark] .abtn.warn{background:#493513;color:#ffe0a1}
html[data-theme=dark] .abtn.bad{background:#4b1b2b;color:#ffc4cc}
html[data-theme=dark] .abtn.ok{background:#113d32;color:#a3f0d0}
html[data-theme=dark] :is(input,select,textarea){background:#0a1222;color:#e9ecf4;border-color:#425471}
html[data-theme=dark] :is(input,textarea)::placeholder{color:#a8b2ca;opacity:1}
html[data-theme=dark] input[type=checkbox]{accent-color:#2563eb}
html[data-theme=dark] :is(td,th,hr,footer){border-color:#29354b}
html[data-theme=dark] :is(label,.small,.muted,.info,.meta,th,dt){color:#a8b2ca}
html[data-theme=dark] :is(a,.back,.acq-kicker,.svc-badge){color:#38bdf8}
html[data-theme=dark] #login{background:radial-gradient(ellipse at 80% 10%,#16366d 0,transparent 58%),radial-gradient(ellipse at 0% 100%,#0b3346 0,transparent 60%),#04050a}
html[data-theme=dark] #login .box{background:#101827;border:1px solid #2b3c59;box-shadow:0 20px 80px #0006;max-height:96dvh;overflow:auto}
html[data-theme=dark] :is(#notice,.acq-demo-note){background:#152940;color:#c6dcf5}
html[data-theme=dark] :is(.badge,.svc-block){background:#493513;color:#ffe0a1}
html[data-theme=dark] #tab-salg tbody tr{background:#111725!important}
html[data-theme=dark] #tab-salg tbody td::before{color:#a8b2ca}
html[data-theme=dark] :is(p,span,small,div)[style*="color:#64748b"],html[data-theme=dark] :is(p,span,small,div)[style*="color:#94a3b8"]{color:#a8b2ca!important}
html[data-theme=dark] :is(p,span,small,div)[style*="color:var(--red)"],html[data-theme=dark] :is(p,span,small,div)[style*="color:#dc2626"]{color:#fca5a5!important}
html[data-theme=dark] #realDemoBanner{background:#13213b!important;color:#cbe6ff!important}
html[data-theme=dark] #realDemoBanner button{background:#1c2940!important;color:#e9ecf4!important;border-color:#365983!important}
html[data-theme=dark] :is(button,a,input,select,textarea):focus-visible{outline:3px solid #38bdf8;outline-offset:2px}
/* Existing dynamic views contain a few inline neutral surfaces. Override only
   known neutral colors, never canvas/maps or semantic status dots. */
html[data-theme=dark] :is(div,section,article,p,td,th,button)[style*="background:#fff;"],html[data-theme=dark] :is(div,section,article,p,td,th,button)[style*="background: #fff;"],html[data-theme=dark] :is(div,section,article,p,td,th,button)[style*="background:white"]{background:#111725!important;color:#e9ecf4}
html[data-theme=dark] :is(div,section,p,button)[style*="background:#f1f5f9"],html[data-theme=dark] :is(div,section,p,button)[style*="background:#f8fafc"]{background:#1c2940!important;color:#e9ecf4}
html[data-theme=dark] :is(div,p,span,b,strong,h2,h3)[style*="color:#0f172a"],html[data-theme=dark] :is(div,p,span,b,strong,h2,h3)[style*="color:#334155"]{color:#e9ecf4!important}
html[data-theme=dark] .sigwrap,html[data-theme=dark] .sigwrap canvas,html[data-theme=dark] canvas[id*="sig" i]{background:#fff;color:#111}
html[data-theme=dark] .leaflet-container{color:#111}
@media print{html[data-theme=dark],html[data-theme=dark] body,html[data-theme=dark] main,html[data-theme=dark] .card,html[data-theme=dark] dialog{background:#fff!important;color:#000!important;color-scheme:light}html[data-theme=dark] :is(p,label,td,th,span,a){color:#000!important}.avaga-appearance{display:none!important}}
