﻿@import url('vendor/fonts.css');
:root{--bg:var(--field);--panel:var(--panel);--text:var(--text);--muted:var(--muted);--line:var(--field);--accent:var(--accent);--sun:var(--sun);--load:var(--muted);--battery:var(--muted);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px 'DM Sans',sans-serif;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button{cursor:pointer}button,a,input,select,summary{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--muted);outline-offset:4px}[hidden]{display:none!important}.icon-definitions{position:absolute;width:0;height:0;overflow:hidden}.icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.brand{display:flex;gap:10px;align-items:center;text-decoration:none;white-space:nowrap}.brand-mark{width:36px;height:36px;background:var(--line);border-radius:11px;display:grid;place-items:center;color:var(--text);flex-shrink:0}.brand-mark .icon{width:25px;height:25px}.brand strong{font:700 18px 'Manrope',sans-serif;letter-spacing:-.7px}.brand-period{color:var(--muted)}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.9px;margin:0 0 12px;color:var(--accent);display:flex;gap:9px;align-items:center}.tiny-dot{display:inline-block;flex-shrink:0;width:6px;height:6px;border-radius:50%;background:currentColor}.btn{border:1px solid transparent;border-radius:9px;padding:11px 17px;min-height:42px;font-size:12px;font-weight:600;display:inline-flex;gap:9px;align-items:center;justify-content:center;transition:background .18s,box-shadow .18s,transform .18s}.btn .icon{width:17px;height:17px}.btn:hover{transform:translateY(-1px)}.btn:active{transform:translateY(0)}.primary{background:var(--accent);color:var(--panel);box-shadow:0 3px 5px #00000010}.primary:hover{background:var(--text);box-shadow:0 5px 14px #00000010}.secondary{background:white;color:var(--text);border-color:var(--line)}.secondary:hover{background:var(--field)}.ghost{background:transparent;color:var(--text)}.ghost:hover{background:var(--field)}.full{width:100%}.text-button{border:0;background:transparent;color:var(--muted);display:flex;gap:10px;align-items:center;font-size:12px;padding:12px}.text-button .icon{width:17px}.text-button:hover{color:var(--accent)}
/* Introdução */
.intro-screen{min-height:100svh;background:var(--field);display:flex;flex-direction:column;overflow:hidden}.intro-header,.intro-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:30px clamp(24px,5vw,88px)}.intro-brand .brand-mark{background:var(--text);color:var(--line)}.intro-brand .brand-period{color:var(--accent)}.intro-layout{flex:1;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:20px;width:100%;max-width:1520px;margin:auto;padding:55px clamp(24px,5vw,88px) 70px}.intro-copy{position:relative;z-index:2;animation:reveal .6s ease both}.intro-copy h1{font:500 clamp(44px,5.1vw,76px)/1.12 'Manrope';letter-spacing:-3.7px;margin:24px 0}.intro-copy em{font-style:normal;color:var(--accent)}.intro-description{font-size:16px;line-height:1.9;max-width:425px;color:var(--muted);margin:0 0 32px}.intro-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.intro-primary{padding:15px 23px;font-size:13px}.intro-primary .icon{margin-left:16px}.intro-preference{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px;margin-top:20px;cursor:pointer}.intro-preference input{accent-color:var(--accent);width:14px;height:14px}.intro-features{display:flex;flex-wrap:wrap;gap:16px;margin-top:48px;color:var(--muted);font-size:10px}.intro-features span{display:flex;align-items:center;gap:5px}.intro-features .icon{width:13px;height:13px;stroke-width:2}.intro-footer{padding-top:20px;padding-bottom:25px;border-top:1px solid var(--line);color:var(--muted);font-size:10px}.footer-dot{padding:0 8px;opacity:.6}.intro-art{position:relative;height:530px;border:1px solid var(--line);background:radial-gradient(ellipse at 50% 40%,var(--line),var(--field) 48%,var(--field) 90%);border-radius:32px;isolation:isolate;margin-left:18px;overflow:hidden}.art-grid{position:absolute;inset:0;border-radius:inherit;z-index:-1;background-image:linear-gradient(#00000010 1px,transparent 1px),linear-gradient(90deg,#00000010 1px,transparent 1px);background-size:38px 38px;mask-image:radial-gradient(ellipse,var(--text),transparent 85%)}.art-orbit{position:absolute;border:1px solid #00000010;border-radius:50%;left:50%;top:45%;transform:translate(-50%,-50%)}.orbit-one{width:300px;height:300px}.orbit-two{width:440px;height:440px}.orbit-one:after{content:'';position:absolute;width:9px;height:9px;border-radius:50%;background:var(--muted);top:45px;right:35px;box-shadow:0 0 0 6px #00000010}.solar-core{position:absolute;left:50%;top:44%;transform:translate(-50%,-50%);width:150px;height:150px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:20px;color:var(--text);background:var(--line);border:1px solid var(--muted);border-radius:50%;box-shadow:0 0 0 20px #00000010,0 0 0 40px #00000010}.solar-core .icon{width:60px;height:60px;stroke-width:1}.solar-core span{font-size:6px;letter-spacing:1.5px}.energy-node{display:flex;align-items:center;gap:12px;position:absolute;border:1px solid var(--line);border-radius:14px;padding:18px 20px;background:#00000010;box-shadow:0 12px 30px #00000010;animation:reveal .7s ease both}.node-icon{width:42px;height:42px;border-radius:11px;background:var(--field);color:var(--muted);display:grid;place-items:center;flex-shrink:0}.energy-node small{font-size:7px;letter-spacing:1.3px;color:var(--muted)}.energy-node strong{display:block;font:600 15px 'Manrope';margin:4px 0}.energy-node div>span{font-size:9px;color:var(--muted)}.node-panel{top:48px;left:25px;animation-delay:.08s}.node-panel .node-icon{color:var(--sun);background:var(--field)}.node-battery{right:18px;top:240px;animation-delay:.18s}.node-load{left:30px;bottom:55px;animation-delay:.28s}.node-dot{width:5px;height:5px;border-radius:50%;background:var(--muted);margin-left:8px}.art-caption{position:absolute;bottom:20px;left:0;width:100%;display:flex;gap:7px;align-items:center;justify-content:center;font-size:9px;color:var(--muted)}.art-caption .tiny-dot{width:4px;height:4px}@keyframes reveal{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
/* Área de trabalho */
.app-shell{display:flex;min-height:100svh}.sidebar{width:234px;flex-shrink:0;background:var(--text);color:var(--field);padding:34px 20px 18px;display:flex;flex-direction:column;position:sticky;top:0;height:100svh}.sidebar .brand{padding:0 4px}.nav-label{font-size:8px;letter-spacing:1.6px;color:var(--muted);margin:48px 12px 14px}nav{display:grid;gap:6px}nav a{display:flex;align-items:center;gap:11px;text-decoration:none;padding:13px 12px;border-radius:9px;font-size:12px;color:var(--muted);transition:background .18s,color .18s}nav .icon{width:18px;height:18px}nav a:hover{background:#00000010;color:white}nav a.active{background:var(--text);color:var(--line)}.nav-indicator{margin-left:auto;width:5px;height:5px;background:var(--muted);border-radius:50%}nav a:not(.active) .nav-indicator{opacity:0}.sidebar-note{margin:auto 5px 30px;padding-top:50px;max-width:165px;color:var(--muted)}.sidebar-note-icon{display:grid;place-items:center;width:35px;height:35px;border:1px solid var(--muted);border-radius:11px;color:var(--muted);margin-bottom:15px}.sidebar-note strong{font:500 17px 'Manrope';letter-spacing:-.5px;color:var(--line)}.sidebar-note p{font-size:11px;line-height:1.8;margin:8px 0 0;color:var(--muted)}.side-bottom{border-top:1px solid var(--text);padding:19px 7px 15px;display:flex;gap:10px;align-items:center}.pulse-dot,.status-dot{width:6px;height:6px;border-radius:50%;background:var(--muted);flex-shrink:0}.side-bottom strong{display:block;font-weight:500;font-size:10px;color:var(--line)}.side-bottom small{display:block;font-size:8px;margin-top:4px;color:var(--muted)}.about-button{background:none;border:0;color:var(--muted);display:flex;gap:8px;align-items:center;font-size:9px;padding:10px 7px;text-align:left}.about-button .icon{width:14px;height:14px}.about-button span{margin-left:auto}.about-button:hover{color:var(--line)}.main{flex:1;min-width:0;padding:0 clamp(22px,3.3vw,58px);max-width:1760px;margin:0 auto}.topbar{height:78px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);gap:15px}.breadcrumb{font-size:11px;color:var(--muted);display:flex;gap:13px;align-items:center}.breadcrumb span{color:var(--muted)}.breadcrumb strong{font-weight:500;color:var(--muted)}.header-status{display:flex;gap:7px;align-items:center;padding:6px 10px;border:1px solid var(--line);background:var(--panel);border-radius:6px;white-space:nowrap}.header-status strong{font-size:9px;font-weight:500;color:var(--muted)}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:35px 0 26px}.page-heading .eyebrow{font-size:8px;letter-spacing:1.8px;margin-bottom:9px;color:var(--muted)}.page-heading h1{font:600 34px/1.2 'Manrope';letter-spacing:-1.3px;margin:0}.heading-period{color:var(--muted)}.sub{font-size:12px;color:var(--muted);line-height:1.7;margin:10px 0 0}.heading-actions{display:flex;gap:9px;flex-shrink:0}.session-strip{display:flex;justify-content:space-between;align-items:center;gap:16px;font-size:9px;color:var(--muted);padding-bottom:20px}.session-strip p{margin:0;color:var(--muted)}.session-strip>div{display:flex;gap:6px;align-items:center}.strip-dot{width:4px;height:4px;border-radius:50%;background:var(--muted);flex-shrink:0}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;scroll-margin-top:20px}.metric{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:20px 22px;min-width:0}.metric-featured{background:var(--field);border-color:var(--line)}.metric-head{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted);font-size:11px}.metric-head .icon{width:19px;height:19px;color:var(--muted)}.metric-value{font:500 34px/1.3 'Manrope';letter-spacing:-1.1px;margin:16px 0 9px;color:var(--text);white-space:nowrap}.metric-value small{font:400 13px 'DM Sans';color:var(--muted);margin-left:7px;letter-spacing:0}.metric-foot{font-size:9px;color:var(--muted);line-height:1.5;min-height:14px}.metric-featured .metric-foot{display:flex;align-items:center;gap:6px;color:var(--muted)}.metric-featured .tiny-dot{width:4px;height:4px}.energy-grid{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(260px,1fr);gap:18px;margin-top:21px;scroll-margin-top:25px}.panel{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:24px;min-width:0}.panel-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.panel-title h2{font:600 13px/1.6 'Manrope';margin:0;color:var(--text);letter-spacing:-.15px}.panel-title p{font-size:10px;line-height:1.6;color:var(--muted);margin:3px 0 0}.panel-icon{width:18px;height:18px;color:var(--muted)}.live-tag{display:inline-flex;align-items:center;gap:5px;color:var(--muted);background:var(--field);border:1px solid var(--field);border-radius:5px;padding:5px 6px;font-size:7px;font-weight:600;letter-spacing:.4px;max-width:130px;text-align:center;line-height:1.5}.live-tag:before{content:'';width:4px;height:4px;flex-shrink:0;border-radius:50%;background:currentColor}.live-tag.inactive{color:var(--muted);background:var(--field);border-color:var(--field)}.live-tag.simulated{color:var(--sun);background:var(--field);border-color:var(--line)}.live-tag.stale{color:var(--sun);background:var(--field);border-color:var(--line)}.chart-legend{display:flex;gap:18px;flex-wrap:wrap;margin-top:24px;font-size:9px;color:var(--muted)}.chart-legend span,.distribution-legend span{display:flex;align-items:center;gap:6px}.chart-legend i,.distribution-legend i{width:6px;height:6px;border-radius:50%;display:inline-block}.legend-sun{background:var(--sun)}.legend-load{background:var(--load)}.legend-battery{background:var(--battery)}.chart-wrap{height:226px;position:relative;margin-top:17px}.chart-foot{display:flex;justify-content:space-between;border-top:1px solid var(--field);padding-top:14px;margin-top:15px;gap:8px;color:var(--muted);font-size:8px}.doughnut-wrap{height:196px;position:relative;margin-top:25px}.doughnut-label{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:7px;pointer-events:none;color:var(--muted)}.doughnut-label .icon{width:24px;height:24px;color:var(--muted);stroke-width:1.2}.doughnut-label span{text-align:center;font-size:7px;letter-spacing:1.2px;line-height:1.5}.distribution-legend{display:flex;justify-content:center;gap:22px;margin-top:21px;color:var(--muted);font-size:10px}.panel-caption{font-size:9px;line-height:1.7;text-align:center;max-width:240px;color:var(--muted);margin:15px auto 0}.detail-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:18px;margin-top:21px}.detail-grid .panel{padding:22px}.load-stats{display:grid;grid-template-columns:1fr 1fr;gap:0;margin-top:17px}.load-stats div{padding:15px 0}.load-stats div:nth-child(-n+2){border-bottom:1px solid var(--field)}.load-stats div:nth-child(2n){padding-left:22px;border-left:1px solid var(--field)}.load-stats span{display:block;color:var(--muted);font-size:9px;margin-bottom:8px}.load-stats strong{font:500 21px 'Manrope';letter-spacing:-.6px}.load-stats b{font-weight:500}.load-stats small{font:400 10px 'DM Sans';margin-left:5px;color:var(--muted)}.system-list{margin-top:21px}.system-list>div{display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:9px;color:var(--muted);margin-bottom:13px}.system-list>div strong{font-size:11px;color:var(--muted);font-weight:500}.system-list>p{margin:0 0 18px;font-size:9px;color:var(--muted);line-height:1.6;overflow-wrap:anywhere}.badge{padding:3px 6px;border-radius:4px;font-size:7px;font-weight:600;letter-spacing:.5px}.badge.neutral{color:var(--muted);background:var(--field)}.badge.ok{color:var(--muted);background:var(--field)}.badge.warn{color:var(--sun);background:var(--field)}.system-list .system-update{align-items:flex-start}.system-update strong{text-align:right;max-width:55%;font-size:9px!important;line-height:1.5}.topic-pill{border-top:1px solid var(--field);font-size:8px;color:var(--muted);padding-top:12px;display:flex;flex-direction:column;gap:7px}.topic-pill code{color:var(--muted);font:9px 'DM Sans';overflow-wrap:anywhere}.export-label{display:block;font-size:9px;color:var(--muted);margin-top:20px;margin-bottom:8px}select{background:var(--panel);color:var(--muted);border:1px solid var(--line);border-radius:7px;min-height:38px;width:100%;padding:8px 10px;font-size:10px;cursor:pointer}.csv-count{font-size:9px;color:var(--muted);margin:12px 0 18px;line-height:1.6}.hint{font-size:10px;color:var(--muted);line-height:1.8}.export-hint{font-size:8px;line-height:1.7;margin:11px 0 0}.export-panel .btn{font-size:10px;min-height:37px}.export-panel .btn .icon{width:14px;height:14px}.app-footer{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:24px 0;margin-top:4px;font-size:8px;color:var(--muted)}.app-footer>span:first-child{display:flex;align-items:center;gap:5px}.app-footer .tiny-dot{width:4px;height:4px;background:var(--muted)}.app-footer .footer-dot{padding:0 6px}.notice{background:var(--field);color:var(--sun);border:1px solid var(--line);padding:13px 16px;border-radius:9px;font-size:11px;line-height:1.7;margin:0 0 19px}
/* Conexão */
.settings-view{max-width:1000px;margin:0 auto}.settings-intro{display:flex;gap:15px;align-items:center;margin:7px 0 23px}.settings-icon{width:44px;height:44px;display:grid;place-items:center;border:1px solid var(--line);background:var(--field);border-radius:12px;flex-shrink:0;color:var(--muted)}.settings-intro h2{font:600 17px 'Manrope';letter-spacing:-.4px;margin:0}.settings-intro p{font-size:11px;line-height:1.7;color:var(--muted);margin:6px 0 0}.settings-protocol{margin-left:auto;border:1px solid var(--line);border-radius:6px;white-space:nowrap;font-size:8px;padding:8px 10px;color:var(--muted)}.settings-panel{padding:29px 32px}.settings-section-heading{display:flex;gap:12px;align-items:center}.step-number{font-size:9px;color:var(--muted);border:1px solid var(--line);display:grid;place-items:center;width:31px;height:31px;border-radius:8px;flex-shrink:0}.settings-section-heading h3{font:600 12px 'Manrope';margin:0}.settings-section-heading p{font-size:10px;color:var(--muted);margin:5px 0 0;line-height:1.6}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:23px 27px;margin-top:25px}.settings-grid label{font-size:11px;color:var(--muted);display:block;position:relative}.settings-grid input{display:block;width:100%;margin-top:9px;border:1px solid var(--line);background:var(--panel);padding:12px 13px;min-height:43px;border-radius:8px;color:var(--text);font-size:12px;transition:border .2s,box-shadow .2s}.settings-grid input::placeholder{color:var(--muted)}.settings-grid input:focus{outline:none;border-color:var(--muted);box-shadow:0 0 0 3px var(--field)}.settings-grid small{display:block;color:var(--muted);font-size:9px;line-height:1.7;margin-top:7px}.optional{float:right;font-size:8px;color:var(--muted)}.settings-divider{height:1px;background:var(--field);margin:30px 0}.preference-row{display:flex;gap:24px;align-items:center;justify-content:space-between;border-bottom:1px solid var(--field);padding:20px 0}.preference-row label{font-size:11px;color:var(--muted)}.preference-row p{font-size:9px;line-height:1.6;color:var(--muted);margin:5px 0 0}.number-field{display:flex;align-items:center;border:1px solid var(--line);border-radius:7px;background:var(--panel);flex-shrink:0}.number-field input{width:64px;padding:10px;border:0;color:var(--muted);background:none;font-size:12px}.number-field span{padding:0 10px 0 3px;font-size:9px;color:var(--muted)}.switch{appearance:none;width:33px;height:20px;background:var(--line);border-radius:20px;position:relative;flex-shrink:0;border:0;cursor:pointer;transition:background .2s}.switch:before{content:'';width:14px;height:14px;left:3px;top:3px;background:var(--panel);border-radius:50%;position:absolute;box-shadow:0 1px 3px #00000010;transition:transform .2s}.switch:checked{background:var(--accent)}.switch:checked:before{transform:translateX(13px)}.settings-actions{display:flex;gap:20px;justify-content:space-between;align-items:center;margin-top:26px}.settings-actions p{font-size:9px;color:var(--muted);display:flex;align-items:center;gap:7px;line-height:1.6}.settings-actions .icon{width:14px;height:14px}.settings-actions .btn{flex-shrink:0}.payload-help{margin-top:20px;padding:0}.payload-help summary{list-style:none;padding:20px 24px;display:flex;align-items:center;justify-content:space-between;gap:15px;cursor:pointer;color:var(--muted);font-size:11px}.payload-help summary::-webkit-details-marker{display:none}.payload-help summary>span:first-child{display:flex;gap:9px;align-items:center}.payload-help .icon{width:17px;height:17px}.summary-plus{font-size:20px;color:var(--muted);font-weight:300}.payload-help[open] .summary-plus{transform:rotate(45deg)}.payload-body{padding:0 25px 20px;font-size:11px;line-height:1.8;color:var(--muted)}.payload-body pre{font:10px/1.8 monospace;color:var(--muted);border:1px solid var(--line);background:var(--field);padding:18px;border-radius:9px;white-space:pre-wrap;overflow-wrap:anywhere}.payload-body .hint{font-size:9px}#toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,12px);max-width:min(460px,calc(100vw - 32px));width:max-content;padding:13px 18px;background:var(--text);color:var(--field);border:1px solid var(--muted);border-radius:10px;box-shadow:0 8px 24px #00000010;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:10;font-size:11px;line-height:1.6}#toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:1600px){.main{padding-inline:55px}.page-heading{padding-top:42px}.chart-wrap{height:265px}.doughnut-wrap{height:230px}.metric{padding:23px 26px}.metric-value{font-size:38px}}
@media(max-width:1200px){.sidebar{width:208px;padding-inline:15px}.sidebar .brand{gap:8px;padding:0}.sidebar .brand strong{font-size:16px}.main{padding:0 24px}.heading-actions{flex-direction:column}.page-heading h1{font-size:31px}.metrics{gap:12px}.metric{padding:17px}.metric-value{font-size:29px}.detail-grid{grid-template-columns:1fr 1fr}.export-panel{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;column-gap:30px;align-items:start}.export-panel .panel-title{grid-row:span 2}.export-panel .export-label{margin-top:0}.export-panel .csv-count{grid-column:2;margin:10px 0}.export-panel .btn,.export-panel .export-hint{grid-column:2}.energy-grid{grid-template-columns:minmax(0,1.5fr) minmax(235px,1fr)}.panel{padding:20px}.intro-layout{gap:5px}.intro-copy h1{letter-spacing:-2.5px;font-size:56px}.intro-art{height:490px;margin-left:5px}.energy-node{padding:15px;gap:9px}.energy-node strong{font-size:13px}.node-panel{left:12px}.node-battery{right:12px}.node-load{left:18px}.intro-features{gap:10px}.intro-actions .ghost{padding-inline:0}.intro-art .orbit-two{width:360px;height:360px}}
@media(max-width:980px){.energy-grid{grid-template-columns:1fr}.distribution-panel{display:grid;grid-template-columns:1fr 180px;column-gap:20px;align-items:center}.distribution-panel .doughnut-wrap{grid-column:2;grid-row:1/4;height:150px;margin:0}.distribution-legend{justify-content:flex-start;margin-top:17px;gap:15px}.distribution-panel .panel-caption{text-align:left;margin:15px 0 0}.distribution-panel .panel-icon{display:none}.metrics{grid-template-columns:1fr 1fr}.metric-value{font-size:34px}.heading-actions{gap:7px}.heading-actions .btn{padding:9px 12px;font-size:10px;min-height:37px}.intro-layout{grid-template-columns:1fr;max-width:720px;padding-top:30px;gap:40px}.intro-art{height:350px;margin:0}.intro-copy h1{font-size:64px}.intro-features{margin-top:30px}.intro-description{max-width:470px}.intro-art .solar-core{width:120px;height:120px}.intro-art .solar-core .icon{width:40px;height:40px}.solar-core span{font-size:5px}.node-panel{top:30px;left:20px}.node-battery{top:105px;right:20px}.node-load{left:35px;bottom:45px}.orbit-two{width:320px!important;height:320px!important}.orbit-one{width:240px;height:240px}.intro-footer{flex-wrap:wrap;gap:10px}}
@media(max-width:720px){.app-shell{display:block}.sidebar{width:100%;height:auto;position:relative;padding:18px 20px 0}.sidebar .brand{margin-bottom:19px}.sidebar .brand strong{font-size:18px}.sidebar .brand-mark{width:32px;height:32px;border-radius:9px}.nav-label,.sidebar-note,.side-bottom,.about-button{display:none}nav{display:flex;gap:8px;overflow-x:auto;scrollbar-width:thin;padding-bottom:12px}nav a{flex-shrink:0;font-size:11px;padding:10px 12px;gap:7px}nav .icon{width:16px;height:16px}.nav-indicator{display:none}.main{padding:0 20px}.topbar{height:58px}.breadcrumb{font-size:10px;gap:9px}.page-heading{padding:27px 0 20px;align-items:flex-start;flex-direction:column;gap:19px}.page-heading h1{font-size:31px}.sub{font-size:11px;max-width:310px}.heading-actions{flex-direction:row;width:100%}.heading-actions .btn{font-size:11px;min-height:40px;flex:1}.session-strip{font-size:8px;align-items:flex-start;flex-direction:column;gap:8px;padding-bottom:17px}.metrics{gap:10px}.metric{padding:18px}.metric-head{font-size:10px}.metric-value{font-size:31px}.metric-foot{font-size:8px}.energy-grid{margin-top:16px;gap:16px}.detail-grid{grid-template-columns:1fr;gap:16px;margin-top:16px}.panel{padding:20px}.panel-title h2{font-size:12px}.panel-title p{font-size:9px}.chart-wrap{height:220px}.chart-legend{gap:15px;font-size:8px}.chart-foot{font-size:7px}.live-tag{font-size:6px;padding:4px 5px;max-width:110px}.export-panel{grid-column:auto;display:block}.export-panel .export-label{margin-top:20px}.export-panel .csv-count{margin:12px 0 17px}.load-stats strong{font-size:24px}.load-stats div:nth-child(2n){padding-left:30px}.load-stats span{font-size:10px}.system-list>div{font-size:10px}.system-list>div strong{font-size:12px}.system-update strong{font-size:10px!important}.export-panel .btn{font-size:11px;min-height:41px}.export-label,select{font-size:11px}.csv-count{font-size:10px}.export-hint{font-size:9px}.app-footer{font-size:8px;flex-wrap:wrap;gap:9px;padding:20px 0}.app-footer>span:last-child{display:none}.settings-intro{align-items:flex-start;gap:12px}.settings-intro h2{font-size:16px}.settings-intro p{font-size:10px}.settings-protocol{display:none}.settings-panel{padding:22px}.settings-grid{grid-template-columns:1fr;gap:22px}.settings-actions{flex-direction:column;align-items:stretch;gap:10px}.settings-actions p{margin:0 0 7px}.settings-actions .btn{width:100%}.preference-row{gap:12px}.number-field input{width:49px;padding:9px 6px}.number-field span{padding-right:7px;font-size:8px}.preference-row p{font-size:8px}.settings-section-heading p{font-size:9px}.payload-help summary{font-size:10px;padding:18px}.payload-body{padding:0 18px 18px}.payload-body pre{font-size:9px;padding:12px}.intro-header{padding:24px}.intro-header .text-button{font-size:10px;padding:7px;gap:5px}.intro-header .text-button .icon{width:14px}.intro-brand strong{font-size:16px}.intro-brand .brand-mark{width:32px;height:32px}.intro-brand{gap:8px}.intro-layout{padding:30px 24px 40px;gap:35px}.intro-copy h1{font-size:52px;letter-spacing:-2.7px;margin:20px 0}.intro-copy .eyebrow{font-size:7px;letter-spacing:1.3px}.intro-description{font-size:14px;line-height:1.8;margin-bottom:26px}.intro-actions{flex-direction:column;align-items:stretch;gap:6px}.intro-primary{min-height:49px}.intro-actions .ghost{font-size:11px;min-height:42px}.intro-preference{font-size:10px;margin-top:12px;line-height:1.6}.intro-features{margin-top:27px;gap:12px;font-size:8px}.intro-art{height:345px;border-radius:22px}.intro-footer{padding:20px 24px;font-size:8px}.energy-node{padding:12px;gap:9px}.node-icon{width:33px;height:33px;border-radius:9px}.node-icon .icon{width:20px;height:20px}.energy-node strong{font-size:12px}.energy-node small{font-size:6px;letter-spacing:.7px}.energy-node div>span{font-size:7px}.node-panel{left:12px;top:25px}.node-battery{right:12px;top:135px}.node-load{left:16px;bottom:40px}.intro-art .solar-core{top:46%;left:43%;width:92px;height:92px;gap:9px}.intro-art .solar-core .icon{width:34px;height:34px}.solar-core span{font-size:4px;letter-spacing:.6px}.orbit-two{width:280px!important;height:280px!important}.orbit-one{width:205px;height:205px}.art-caption{font-size:7px;bottom:16px;gap:5px}}
@media(max-width:380px){.main{padding:0 14px}.sidebar{padding-inline:14px}.metric{padding:15px}.metric-value{font-size:27px}.metric-head{font-size:9px}.metric-head .icon{width:16px}.panel{padding:17px}.chart-wrap{height:210px}.distribution-panel{display:block}.distribution-panel .doughnut-wrap{height:170px;margin-top:20px}.distribution-legend{justify-content:center}.distribution-panel .panel-caption{text-align:center;margin:15px auto 0}.chart-foot>span:last-child{max-width:105px;text-align:right}.intro-header{padding:20px 17px}.intro-header .text-button{font-size:9px}.intro-brand strong{font-size:15px}.intro-brand .brand-mark{width:28px;height:28px}.intro-layout{padding-inline:20px}.intro-copy h1{font-size:44px;letter-spacing:-2.2px}.intro-features{gap:9px;font-size:7px}.intro-art{height:330px}.energy-node{padding:10px}.node-battery{right:8px}.node-panel{left:8px}.intro-art .solar-core{left:38%}.intro-footer{padding-inline:20px}.settings-panel{padding:18px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Legibilidade e acabamento */
a{color:inherit}.breadcrumb{font-size:12px}.header-status strong{font-size:10px}.page-heading .eyebrow{font-size:9px}.sub{font-size:13px}.session-strip{font-size:10px}.metric-head{font-size:12px;color:var(--muted)}.metric-foot{font-size:10px;color:var(--muted)}.panel-title h2{font-size:14px}.panel-title p{font-size:11px;color:var(--muted)}.chart-legend{font-size:10px;color:var(--muted)}.chart-foot{font-size:9px;color:var(--muted)}.live-tag{font-size:8px}.distribution-legend{font-size:11px}.panel-caption{font-size:10px;color:var(--muted)}.load-stats span{font-size:11px;color:var(--muted)}.load-stats small{font-size:11px}.system-list>div{font-size:11px;color:var(--muted)}.system-list>p{font-size:10px;color:var(--muted)}.system-update strong{font-size:10px!important}.topic-pill{font-size:10px;color:var(--muted)}.topic-pill code{font-size:10px}.export-label{font-size:11px;color:var(--muted)}select{font-size:12px}.csv-count{font-size:11px;color:var(--muted)}.export-hint{font-size:10px;color:var(--muted)}.app-footer{font-size:9px;color:var(--muted)}.settings-section-heading p,.settings-grid small,.preference-row p,.settings-actions p{color:var(--muted)}.settings-grid label,.preference-row label{font-size:12px}.settings-section-heading h3{font-size:13px}.preference-row p{font-size:10px}.settings-actions p{font-size:10px}.optional{color:var(--muted)}.doughnut-wrap.is-empty:before{content:'';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:170px;height:170px;border:15px solid var(--field);border-radius:50%;max-width:90%;max-height:90%}.doughnut-wrap.is-empty canvas{opacity:0}
@media(max-width:720px){.breadcrumb{font-size:10px}.sub{font-size:12px}.metric-head{font-size:11px}.metric-foot{font-size:9px}.panel-title h2{font-size:13px}.panel-title p{font-size:10px}.live-tag{font-size:7px}.chart-foot{font-size:8px}.distribution-panel{display:block}.distribution-panel .doughnut-wrap{height:180px;margin-top:22px}.distribution-legend{justify-content:center}.distribution-panel .panel-caption{text-align:center;max-width:280px;margin:15px auto 0}.intro-copy h1{font-size:42px}.about-button{display:flex;position:absolute;right:22px;top:25px;font-size:0;padding:0}.about-button .icon{width:18px;height:18px}.about-button span{display:none}.session-strip{font-size:9px}.settings-section-heading p,.settings-grid small{font-size:10px}.payload-body pre{font-size:10px}}
@media(max-width:380px){.intro-copy h1{font-size:36px}.metric-head{font-size:10px}.metric-value{font-size:28px}.metric-foot{font-size:9px}.session-strip{font-size:9px}.about-button{right:18px}.panel-title h2{font-size:12px}.panel-title p{font-size:9px}.live-tag{font-size:6px}.system-list>div{font-size:10px}}

/* Tokens e acabamento do supervisório. Incorporado em styles.css. */
:root{color-scheme:light;--bg:#f3f5f8;--panel:#ffffff;--field:#f8fafc;--text:#172033;--muted:#58677d;--line:#dce2eb;--accent:#2563eb;--sun:#c28124;--load:#4385ec;--battery:#a381d4}
:root[data-theme=dark]{color-scheme:dark;--bg:#0d1119;--panel:#151c28;--field:#101722;--text:#e7edf6;--muted:#a0aec2;--line:#2c384b;--sun:#edb150;--load:#66a3ff;--battery:#bd9aee}
.sidebar{background:#111827;color:#dce4f1;width:225px}.sidebar .brand-mark{background:#243047;color:#8bb5ff}.brand-period,.heading-period{display:none}.sidebar .nav-label,.sidebar-note p,.side-bottom small,.about-button{color:#9fadc2}.sidebar-note strong,.side-bottom strong{color:#dce4f1}.sidebar-note-icon{display:none}.sidebar-note strong{font:500 13px 'DM Sans'}.sidebar-note p{font-size:10px}.side-bottom{border-color:#2b3649}nav a{color:#b4c0d2;border-radius:5px}nav a.active{background:color-mix(in srgb,var(--accent) 26%,#111827);color:#fff;box-shadow:inset 2px 0 var(--accent)}nav a:hover{color:white;background:#243047}.nav-indicator{display:none}.brand-mark{border-radius:6px}.btn,.panel,.metric{border-radius:7px}.primary{color:#fff}.primary:hover{background:var(--accent);filter:brightness(1.1)}.secondary{background:var(--panel);color:var(--text)}.secondary:hover{background:var(--field)}.metric-featured{background:var(--panel);border:1px solid var(--line);border-top:2px solid var(--accent);padding-top:19px}.metric-value{color:var(--text);font-variant-numeric:tabular-nums}.metric-foot,.metric-featured .metric-foot{color:var(--muted)}.metric-featured .tiny-dot{background:var(--accent)}.page-heading h1{font-size:28px;letter-spacing:-.7px}.topbar{justify-content:flex-start;gap:12px}.breadcrumb{margin-right:auto}.appearance-shortcut{font-size:11px;min-height:32px;padding:6px 10px}.settings-view{max-width:1000px}.appearance-panel{margin-bottom:28px;scroll-margin-top:20px}.appearance-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:23px}.appearance-grid label{font-size:12px}.appearance-grid select{display:block;margin-top:9px;font-size:12px;min-height:40px}.appearance-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:20px}.appearance-footer span{font-size:11px;color:var(--muted)}.switch:before{background:white}.live-tag,.badge{background:var(--field);border-color:var(--line)}.live-tag.simulated,.live-tag.stale,.badge.warn{color:var(--sun)}.badge.ok{color:var(--load)}.legend-sun{background:var(--sun)}.legend-load{background:var(--load)}.legend-battery{background:var(--battery)}#toast{background:var(--text);color:var(--panel);border-color:var(--line)}
/* Abertura curta com traçado de sinal; não bloqueia o acesso ao painel. */
.intro-screen{min-height:100svh;display:grid;place-items:center;padding:24px;background:#0d1119;color:#e7edf6}.boot-card{width:min(440px,100%)}.boot-label{font:10px monospace;letter-spacing:1.4px;color:#94a3b8}.boot-card h1{font:600 clamp(32px,8vw,45px) 'Manrope';letter-spacing:-1.5px;margin:22px 0}.boot-card h1 span{color:#68a2ff}.boot-card p{font-size:13px;color:#a0aec2}.boot-signal{width:100%;height:60px;fill:none;stroke:#68a2ff;stroke-width:1.5}.boot-signal path{stroke-dasharray:500;stroke-dashoffset:500;animation:signal .8s ease-out forwards}.boot-progress{height:2px;background:#263244;margin:26px 0}.boot-progress:after{content:'';display:block;height:100%;background:#68a2ff;transform-origin:left;animation:boot 1.1s linear both}.boot-actions{display:flex;align-items:center;gap:8px}.boot-actions .secondary{background:transparent;color:#cad5e5;border-color:#42516a}.boot-actions .text-button{color:#a0aec2}.intro-preference{display:flex;align-items:center;gap:7px;font-size:11px;color:#a0aec2;margin-top:18px}.intro-preference input{accent-color:#4385ec}@keyframes signal{to{stroke-dashoffset:0}}@keyframes boot{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@media(max-width:960px){.appearance-grid{grid-template-columns:1fr}.appearance-footer{align-items:flex-start;flex-direction:column}}
@media(max-width:720px){.sidebar{width:100%}.topbar{gap:8px;flex-wrap:wrap;height:auto;min-height:62px;padding:10px 0}.breadcrumb{gap:6px}.breadcrumb>strong{display:none}.appearance-shortcut{font-size:10px;padding:5px 8px;min-height:30px}.header-status{padding:5px 7px}.page-heading h1{font-size:26px}.boot-actions{flex-wrap:wrap}.boot-label{font-size:9px}.appearance-footer .btn{width:100%}.intro-preference{margin-top:18px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
/* Traçado da abertura: desenho, pulso e breve permanência antes do painel. */
.boot-card{width:min(520px,100%)}.boot-card h1{margin-bottom:28px}.signal-frame{border:1px solid #263244;border-radius:6px;background:#101722;padding:14px 16px 12px;overflow:hidden}.signal-caption,.signal-channels{display:flex;align-items:center;justify-content:space-between;gap:8px;font:9px monospace;letter-spacing:1px;color:#8b9db6}.signal-indicator{width:5px;height:5px;background:#68a2ff;border-radius:50%;animation:signal-ready 3.8s ease both}.boot-signal{height:auto;display:block;overflow:visible;margin:15px 0 12px;stroke-width:1.7}.boot-signal .signal-grid{stroke:#243047;stroke-width:.6;stroke-dasharray:none;animation:none}.boot-signal .signal-guide{stroke:#32435e;stroke-width:1;stroke-dasharray:none;animation:none}.boot-signal .signal-trace{stroke:#68a2ff;stroke-dasharray:100;stroke-dashoffset:100;animation:signal-draw 2.6s cubic-bezier(.3,.1,.3,1) .15s forwards}.boot-signal .signal-pulse{stroke:#d9eaff;stroke-width:2.6;stroke-dasharray:3 97;stroke-dashoffset:100;opacity:0;animation:signal-travel 1.35s linear 2.1s both}.signal-channels{font-size:8px;letter-spacing:.6px}.boot-progress:after{animation-duration:3.8s}.boot-progress{margin:22px 0}.boot-card h1 span{display:inline-block;animation:signal-ready 3.8s ease both}@keyframes signal-draw{to{stroke-dashoffset:0}}@keyframes signal-travel{0%{stroke-dashoffset:100;opacity:0}8%,88%{opacity:1}100%{stroke-dashoffset:0;opacity:0}}@keyframes signal-ready{0%,18%{opacity:.3}35%,55%{opacity:.65}75%,100%{opacity:1}}
@media(max-width:380px){.signal-frame{padding:12px}.signal-caption{font-size:8px}.signal-channels{font-size:7px;letter-spacing:0}}
@media(prefers-reduced-motion:reduce){.boot-signal .signal-trace{stroke-dashoffset:0}.boot-signal .signal-pulse{display:none}}
/* O título recebe foco na navegação, sem desenhar a borda padrão do navegador. */
#pageTitle:focus{outline:none}
.analysis-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:18px}.analysis-metrics .metric-value{font-size:28px;margin-top:14px}.analysis-metrics .metric-head{font-size:11px}.analysis-metrics .metric-foot{margin-bottom:0;line-height:1.7}.analysis-origin{color:var(--muted);font-size:10px;line-height:1.8;margin:12px 0 0}.trial-panel{margin-top:20px}.trial-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px 18px;padding:24px 0;border-bottom:1px solid var(--line);margin-bottom:20px}.trial-facts span{display:block;font-size:10px;line-height:1.6;color:var(--muted);margin-bottom:8px}.trial-facts strong{font:500 18px 'Manrope';font-variant-numeric:tabular-nums}.summary-toolbar{display:flex;align-items:center;gap:20px;margin-bottom:20px}.summary-toolbar label{font-size:11px;min-width:210px}.summary-toolbar select{display:block;margin-top:8px}.summary-toolbar .hint{max-width:500px}.stats-scroll{overflow-x:auto}.stats-table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap}.stats-table th,.stats-table td{padding:13px 12px;border-bottom:1px solid var(--line);text-align:right;font-variant-numeric:tabular-nums}.stats-table th:first-child{text-align:left}.stats-table thead th{font-size:10px;color:var(--muted);font-weight:500;background:var(--field)}.stats-table tbody th{font-weight:500}.stats-table small{color:var(--muted);font-weight:400;margin-left:5px}.monitoring-settings{margin-top:25px}.measurement-alert{margin-top:16px;border-color:var(--sun);color:var(--text);background:var(--field)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1100px){.analysis-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.trial-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.analysis-metrics{gap:10px}.analysis-metrics .metric-value{font-size:25px}.analysis-metrics .metric-head{font-size:10px}.analysis-metrics .metric-foot{font-size:9px}.trial-panel>.panel-title{flex-direction:column}.trial-panel>.panel-title .btn{width:100%}.trial-facts{gap:20px 12px}.trial-facts strong{font-size:15px}.summary-toolbar{align-items:stretch;flex-direction:column;gap:6px}.stats-table{font-size:11px}.stats-table th,.stats-table td{padding:11px 9px}.analysis-origin{font-size:9px}}
/* Abertura clara e ampla, independente do tema escolhido para o painel. */
.intro-screen{color-scheme:light;background:#f7f9fc;color:#172033;padding:clamp(24px,5vw,76px);background-image:linear-gradient(#dce2eb45 1px,transparent 1px),linear-gradient(90deg,#dce2eb45 1px,transparent 1px);background-size:96px 96px}.boot-card{width:min(1280px,100%);display:grid;grid-template-columns:1fr auto;column-gap:24px}.boot-label{grid-column:1/-1;color:#53647c;font-size:11px;letter-spacing:2px}.boot-card h1{grid-column:1/-1;font-size:clamp(42px,6vw,82px);line-height:1.15;letter-spacing:-2.7px;margin:20px 0 12px}.boot-card h1 span{color:#2563eb}.boot-card>p{grid-column:1/-1;grid-row:3;color:#53647c;font-size:14px;margin:0 0 30px}.signal-frame{grid-column:1/-1;background:#fff;border-color:#d5deeb;border-radius:8px;padding:20px 24px 18px}.signal-caption,.signal-channels{color:#53647c;font-size:10px}.signal-indicator{background:#2563eb}.boot-signal{height:clamp(180px,29svh,320px);margin:20px 0 14px}.boot-signal .signal-grid{stroke:#e3e9f2}.boot-signal .signal-guide{stroke:#c6d3e5}.boot-signal .signal-trace{stroke:#2563eb;stroke-width:2}.boot-signal .signal-pulse{stroke:#0e3b97;stroke-width:3}.boot-progress{grid-column:1/-1;background:#dce4f0;margin:24px 0}.boot-progress:after{background:#2563eb}.boot-actions{grid-column:1;align-self:center}.boot-actions .primary{background:#2563eb;border-color:#2563eb;color:white}.boot-actions .secondary{background:white;color:#334155;border-color:#c5d0df}.boot-actions .text-button{color:#53647c}.intro-preference{grid-column:2;align-self:center;color:#53647c;margin:0;font-size:11px}.intro-preference input{accent-color:#2563eb}
@media(max-width:720px){.intro-screen{padding:28px 20px}.boot-card{grid-template-columns:1fr;column-gap:0}.boot-label{font-size:9px;letter-spacing:1px}.boot-card h1{font-size:clamp(38px,9vw,58px);letter-spacing:-1.5px}.boot-card>p{font-size:12px;margin-bottom:24px}.signal-frame{padding:15px 12px}.boot-signal{height:180px;margin:14px 0}.signal-caption,.signal-channels{font-size:8px;letter-spacing:.5px}.boot-actions{grid-column:1;flex-wrap:wrap;gap:6px}.intro-preference{grid-column:1;margin-top:20px;font-size:11px}.boot-progress{margin:20px 0}}
