/* 248: site preto/cinza conforme app.zip V201, sem forçar tema no sistema.
   URL própria evita reaproveitar arquivos visuais antigos do navegador/hospedagem. */
html body.site-acesso:not([data-portal-color]){--site-primary:#ffd600;--site-bg:#000;--site-login:#000;--site-login-text:#fff;background:#000!important;color:#fff}
html body.site-acesso:not([data-portal-color]) .site-wrap{background:radial-gradient(ellipse at 90% 5%,#ff790014,transparent 35%);color:#fff}
html body.site-acesso:not([data-portal-color]) .site-nav{background:#000;border-color:#333}
html body.site-acesso:not([data-portal-color]) :is(h1,h2,h3,.site-section-head h2,.site-inner-hero h1,.site-plan h3,.site-brand,.builder-nav strong){color:#fff}
html body.site-acesso:not([data-portal-color]) :is(.site-kicker,.site-trust .ui-icon,.site-feature .feature-icon,.site-phase-title small,.site-module-code){color:#ffd600}
html body.site-acesso:not([data-portal-color]) :is(.site-lead,.site-section-head>p,.site-feature p,.site-roadmap-note,.site-client-section p,.site-trust,.site-plan p,.site-plan li,.site-plan small){color:#c7c7c7}
html body.site-acesso:not([data-portal-color]) :is(.site-links>a:not(.btn),.site-client-section a,.site-mobile-menu summary){color:#f2f2f2}
html body.site-acesso:not([data-portal-color]) :is(.site-mobile-menu>div,.site-feature,.site-plan,.site-client-card,.site-empty-public,.site-floating-note){background:#141414;border-color:#333;color:#fff}
html body.site-acesso:not([data-portal-color]) .site-mobile-menu>div a{color:#fff}
html body.site-acesso:not([data-portal-color]) .site-product{background:linear-gradient(145deg,#1d1a0e,#080808);border-color:#ffd60050;box-shadow:0 16px 70px #ff790015}
html body.site-acesso:not([data-portal-color]) :is(.site-product-top,.site-product-grid>span){border-color:#383323;color:#eee;background:#ffffff04}
html body.site-acesso:not([data-portal-color]) .site-product-main p{color:#c7c7c7}
html body.site-acesso:not([data-portal-color]) :is(.site-product-grid .ui-icon,.site-floating-note>.ui-icon,.site-future-grid .ui-icon){color:#ffd600}
html body.site-acesso:not([data-portal-color]) .site-solar-orbit{background:radial-gradient(circle,#ffd60025,transparent);border-color:#ffd60045;animation:none}
html body.site-acesso:not([data-portal-color]) .site-solar-orbit>.ui-icon{color:#ffd600}
html body.site-acesso:not([data-portal-color]) :is(.site-live-dot,.product-dot){background:#ffd600;box-shadow:0 0 0 5px #ffd60018}
html body.site-acesso:not([data-portal-color]) :is(.site-hero-chips>span,.site-client-monogram){background:#ffd6000d;color:#ffdc5c;border-color:#ffd60035}
html body.site-acesso:not([data-portal-color]) .site-feature .feature-icon{background:#ffd6000b;border-color:#ffd60035}
html body.site-acesso:not([data-portal-color]) :is(.site-roadmap-teaser,.site-bottom){background:linear-gradient(120deg,#211b0a,#111);border:1px solid #ffd60035}
html body.site-acesso:not([data-portal-color]) :is(.site-roadmap-teaser p,.site-floating-note small){color:#c7c7c7}
html body.site-acesso:not([data-portal-color]) :is(.site-roadmap-teaser .site-kicker,.site-plan-price,.site-price){color:#ffd600}
html body.site-acesso:not([data-portal-color]) .site-phase-title>span{background:var(--lume-gradient);color:#111}
html body.site-acesso:not([data-portal-color]) :is(.btn-primary,.btn-primary:hover){background:var(--lume-button,var(--lume-gradient))!important;color:var(--lume-button-text,#111)!important;border-color:#ffb500!important;font-weight:700}
html body.site-acesso:not([data-portal-color]) .btn-light{background:#ffffff08;border-color:#777;color:#fff}
html body.site-acesso:not([data-portal-color]) .site-client-card img{background:#fff;border-radius:8px;padding:8px}
html body.public-page:not([data-portal-color]) :is(.login-story,.recovery-story){background:radial-gradient(ellipse at 15% 95%,#ff790023,transparent 70%),#000!important;color:#fff}
html body.site-acesso:not([data-portal-color]) :is(.site-auth,.login-panel,.login-card,.recovery-panel,.recovery-card,.site-register,.site-signup,.site-auth-card){background:#141414;color:#fff;border-color:#333}
html body.site-acesso:not([data-portal-color]) :is(label,.field>span,.login-panel h1,.recovery-panel h1,.login-panel h2,.recovery-panel h2){color:#eee}
html body.site-acesso:not([data-portal-color]) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:#222;color:#fff;border-color:#666}
html body.site-acesso:not([data-portal-color]) :is(.site-auth a:not(.btn),.login-panel a:not(.btn),.recovery-panel a:not(.btn)){color:#ffd600}
html body.site-acesso:not([data-portal-color]) .site-plan input[type=radio],input[type=checkbox],input[type=radio]{accent-color:#b35b00}
html body.public-page:not([data-portal-color]) .builder-nav{background:#000;color:#fff;border-color:#333}
html body.public-page:not([data-portal-color]) .builder-nav img{width:180px;height:auto;max-width:40vw}
html body.public-page:not([data-portal-color]) .builder-nav strong{display:none}
html body.site-acesso:not([data-portal-color]) .site-access{background:#141414;border-color:#444;color:#fff;box-shadow:0 24px 80px #0005}
html body.site-acesso:not([data-portal-color]) .site-access :is(.muted,.site-note){color:#c4c4c4}
html body.site-acesso:not([data-portal-color]) .site-access a:not(.btn){color:#ffd600}
html body.site-acesso:not([data-portal-color]) .site-riverchat{background:#111;border-color:#3d3420;color:#fff}
html body.site-acesso:not([data-portal-color]) .site-riverchat-copy :is(p,small,li){color:#ccc}
html body.site-acesso:not([data-portal-color]) .site-riverchat-demo{background:#1a1a1a;border-color:#444}
html body.site-acesso:not([data-portal-color]) .site-riverchat-demo header{background:#000;color:#fff}
html body.site-acesso:not([data-portal-color]) .site-riverchat-logo{background:var(--lume-gradient);color:#000}
html body.site-acesso:not([data-portal-color]) .site-riverchat-example article{background:#292929;border-color:#444;color:#fff}
html body.site-acesso:not([data-portal-color]) .site-riverchat-example article:last-child{background:#342c0b;color:#fff}
html body.site-acesso:not([data-portal-color]) .site-riverchat-example article :is(p,strong){color:inherit}
html body.site-acesso:not([data-portal-color]) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){background:#242424!important;color:#fff!important;border-color:#666!important}
html body.site-acesso:not([data-portal-color]) :is(input,textarea)::placeholder{color:#bcbcbc!important}
html body.site-acesso:not([data-portal-color]) :is(input,select,textarea):focus{border-color:#ffd600!important;box-shadow:0 0 0 3px #ffd60025!important}
html body.site-acesso:not([data-portal-color]) .site-access:before{background:var(--lume-gradient)!important}
html body.site-acesso:not([data-portal-color]) .site-riverchat-copy .ui-icon{color:#ffd600}
/* Portal: a preferência Escuro também precisa atingir superfícies locais dos gráficos.
   Claro conserva a identidade configurada e as cores do cliente. */
html[data-theme=escuro] body.app-page[data-operational-portal="1"]{--portal-bg:#101010;--portal-card:#191919;--surface:#191919;--surface-soft:#242424;--ink:#ededed;--text:#ededed;--muted:#bdbdbd;--line:#363636;--border:#363636;color:#ededed;background:#101010}
html[data-theme=escuro] body.app-page[data-operational-portal="1"] :is(.plant-reference,.energy-trend,.plant-chart-modal){--surface:#191919;--surface-soft:#242424;--ink:#ededed;--muted:#bdbdbd;--line:#363636;--border:#363636}
html[data-theme=escuro] body.app-page[data-operational-portal="1"] :is(.plant-summary-card,.plant-chart-card,.plant-grid-gaps,.plant-demand-card,.plant-local-dates,.chart-toolbar,.chart-tooltip){background:#191919;color:#ededed;border-color:#363636}
html[data-theme=escuro] body.app-page[data-operational-portal="1"] :is(.plant-summary-card>small,.plant-summary-card>p,.plant-local-dates small,.plant-chart-card .muted){color:#bdbdbd}
html[data-theme=escuro] body.app-page[data-operational-portal="1"] .plant-chart-card[data-chart-panel^=geracao_] :is(.chart-box,canvas){background:#191919}
html[data-theme=escuro] body.app-page[data-operational-portal="1"] .plant-chart-card[data-chart-panel^=geracao_] :is(h3,.eyebrow){color:#ededed!important}
html[data-theme=escuro] body.app-page[data-operational-portal="1"] :is(input:not([type=checkbox]):not([type=radio]):not([type=color]),select,textarea){background:#242424;color:#ededed;border-color:#555}
