:root{color-scheme:dark;--bg:#101923;--surface:#1b2836;--surface2:#213142;--line:#364a5c;--text:#f3f7fb;--muted:#9caebe;--blue:#48b9f3;--solar:#ffb34c;--green:#58d4a1;--red:#ff6972;--shadow:#0003}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:16px/1.45 "Segoe UI",Arial,sans-serif;font-variant-numeric:tabular-nums}body.light{color-scheme:light;--bg:#e9eff4;--surface:#fff;--surface2:#f3f7fa;--line:#bbcbd7;--text:#172b3b;--muted:#52697c;--blue:#007bbd;--solar:#a85c00;--green:#167f57;--red:#c2273e}button,input,select{font:inherit}button,a,select,input{touch-action:manipulation}button{color:inherit;cursor:pointer}button,a{ -webkit-tap-highlight-color:transparent}button{background:none;border:0}a{color:var(--blue);text-decoration:none}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid var(--solar);outline-offset:4px}button:hover{filter:brightness(1.12)}[hidden]{display:none!important}.icon{width:25px;height:25px;display:inline-block;vertical-align:middle;flex-shrink:0}h1,h2,p{margin:0}h1{font-size:28px;font-weight:500;letter-spacing:-.6px}h2{font-size:19px;font-weight:500}small,.sub{color:var(--muted);font-size:14px}.topbar{height:72px;padding:0 28px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px;background:var(--surface)}.identity,.toptools,.connection{display:flex;align-items:center;gap:14px}.brandmark{background:var(--blue);color:var(--bg);font-size:15px;font-weight:750;border-radius:9px;display:inline-grid;place-items:center;width:38px;height:38px}.identity select{font-weight:600;max-width:230px;border:0;background:transparent;color:var(--text)}select{padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text)}.dot{width:8px;height:8px;background:var(--muted);border-radius:50%}.dot.online{background:var(--green);box-shadow:0 0 12px #58d4a140}.connection{font-size:13px;color:var(--muted)}.toptools button,.toptools a{padding:8px;display:grid;place-items:center}#clock{font-size:19px;margin-right:10px}.message{padding:12px 24px;background:#6a431d;color:#fff3d4;text-align:center;font-size:14px}main{max-width:1360px;margin:auto;padding:30px 40px 110px}.pagehead{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.eyebrow{font-size:11px;letter-spacing:2px;color:var(--muted);margin-bottom:5px}.update{font-size:12px;color:var(--muted);text-align:right}.flowboard{position:relative;display:grid;grid-template-columns:1fr 1.1fr 1fr;align-items:center;gap:8%;min-height:440px}.flowlines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:-1}.pipe{fill:none;stroke:var(--line);stroke-width:4}.stream{fill:none;stroke-width:3;stroke-dasharray:5 18;opacity:0}.stream.active{opacity:1;animation:flow 1.7s linear infinite}.stream.solar{stroke:var(--solar)}.stream.charger{stroke:var(--blue)}.stream.load{stroke:var(--green)}@keyframes flow{to{stroke-dashoffset:-46}}.sources,.loads{display:flex;flex-direction:column;gap:25px}.tile{border:1px solid var(--blue);border-radius:13px;padding:21px 22px;background:var(--surface);text-align:left;box-shadow:0 8px 30px var(--shadow);display:flex;flex-direction:column;min-width:0;width:100%}.tileheading{display:flex;gap:10px;align-items:center;font-size:17px;font-weight:500}.chevron{margin-left:auto;color:var(--blue);font-size:25px;line-height:1}.tileheading .icon{color:var(--blue)}.solarTile .icon{color:var(--solar)}.big{font-size:44px;font-weight:450;letter-spacing:-1.5px;margin:10px 0 0;line-height:1.3}.solarTile .big{color:var(--solar)}.tilefoot{border-top:1px solid var(--line);margin-top:18px;padding-top:12px;display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:13px}.tilefoot b{color:var(--text);font-weight:500;display:block;font-size:16px}.batteryTile{align-items:center;padding-bottom:24px}.batteryTile>.tileheading{width:100%}.socRing{position:relative;aspect-ratio:1;width:100%;max-width:280px;margin:8px auto}.socRing svg{width:100%;height:100%;transform:rotate(-90deg)}.socRing circle{fill:none;stroke-width:7}.ringTrack{stroke:var(--line)}.ringValue{stroke:var(--blue);stroke-linecap:round;stroke-dasharray:0 100;transition:stroke-dasharray 1s}.socRing>div{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;flex-direction:column;gap:6px}.soc{font-size:51px;font-weight:450;letter-spacing:-2px}.batteryMetrics{display:flex;width:100%;justify-content:space-around;gap:10px;padding-bottom:18px}.batteryMetrics b{font-size:17px;font-weight:500}.gpsstrip{display:flex;align-items:center;gap:12px;text-align:left;padding:18px 2px;color:var(--muted)}.gpsstrip span:nth-child(2){display:flex;flex-direction:column}.gpsstrip strong{margin-left:auto;font-weight:500;color:var(--text)}.loadTile .big{color:var(--green)}.climatebar{display:flex;align-items:center;justify-content:space-between;gap:18px;width:100%;margin-top:32px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:22px 25px;text-align:left}.climatebar span:not(.chevron){display:flex;flex-direction:column;gap:4px}.climatebar b{font-size:22px;font-weight:500}.climatebar .climateLabel{flex-direction:row!important;align-items:center;gap:12px}.climateLabel .icon{color:var(--blue)}.bottomnav{position:fixed;bottom:0;left:0;right:0;background:var(--surface);border-top:1px solid var(--line);display:flex;justify-content:center;gap:16px;padding:8px 12px max(8px,env(safe-area-inset-bottom));z-index:5}.bottomnav button{display:flex;flex-direction:column;align-items:center;gap:5px;color:var(--muted);min-width:118px;padding:7px 18px;border-radius:9px;font-size:13px}.bottomnav button[aria-current="page"]{background:var(--surface2);color:var(--blue)}.briefboard{display:grid;grid-template-columns:1fr 1.3fr 1fr;align-items:center;gap:45px;padding:25px 0}.briefside{display:flex;flex-direction:column;gap:40px}.briefside button{display:flex;flex-direction:column;align-items:center;gap:8px;border:1px solid var(--line);border-radius:100px;padding:23px}.briefside strong{font-size:32px;font-weight:450}.briefside .icon{color:var(--blue)}.briefbattery{text-align:center}.briefbattery .socRing{max-width:390px}.briefbattery .soc{font-size:65px}.climategrid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.climatecard{background:var(--surface);border:1px solid var(--blue);border-radius:12px;padding:25px;text-align:left}.climatecard .icon{color:var(--blue);margin-bottom:15px}.climatecard strong{display:block;font-size:37px;font-weight:450;margin:10px 0}.panel{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:25px}.climateNote{display:flex;gap:20px;margin-top:25px}.climateNote p{color:var(--muted);font-size:14px;margin-top:10px}.deviceList{border:1px solid var(--line);border-radius:12px;overflow:hidden}.deviceRow{display:flex;align-items:center;gap:20px;padding:23px;width:100%;text-align:left;background:var(--surface);border-bottom:1px solid var(--line)}.deviceRow:last-child{border:0}.deviceRow>span:nth-child(2){flex:1;display:flex;flex-direction:column;gap:5px}.deviceRow .icon{color:var(--blue)}.deviceRow b{font-weight:500}.badge{font-size:13px;color:var(--muted)}.badge.good{color:var(--green)}.badge.warning{color:var(--solar)}.historyControls{display:flex;justify-content:space-between;gap:20px;margin-bottom:20px}.segmented{display:flex;gap:4px;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:4px}.segmented button{padding:7px 18px;border-radius:6px}.segmented [aria-pressed="true"]{background:var(--blue);color:var(--bg)}.quiet{border:1px solid var(--line);border-radius:8px;padding:10px 15px;font-size:14px;color:var(--text)}.chartmeta{display:flex;justify-content:space-between;gap:15px}.chartmeta span{font-size:13px;color:var(--muted)}#historyChart{display:block;width:100%;height:auto;min-height:210px;margin-top:24px;touch-action:pan-y}#chartReadout{font-size:14px;color:var(--blue);min-height:22px}#chartCursor{width:100%;accent-color:var(--blue)}#historyStatus{color:var(--muted);font-size:13px;margin-top:10px}.settings{max-width:700px;display:flex;flex-direction:column;gap:25px}.settings label{display:flex;justify-content:space-between;align-items:center;gap:20px}.settings p{font-size:14px;color:var(--muted)}input[type=checkbox]{width:24px;height:24px;accent-color:var(--blue)}dialog{color:var(--text);background:var(--surface);border:1px solid var(--line);border-radius:15px;width:min(570px,94vw);max-height:88vh;padding:25px;box-shadow:0 30px 100px #0008}dialog::backdrop{background:#050a12b8;backdrop-filter:blur(5px)}.dialoghead{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.dialoghead button{font-size:28px;padding:0 10px}.detailrow{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:13px 0;border-top:1px solid var(--line)}.detailrow span{color:var(--muted);font-size:14px}.detailrow strong{font-weight:500;text-align:right;overflow-wrap:anywhere;min-width:0}.primary{background:var(--blue);color:var(--bg);border-radius:8px;padding:12px 20px;font-weight:600;margin-top:20px}.login{min-height:100dvh;display:grid;place-items:center;padding:25px}.login form{width:min(390px,100%);padding:32px;background:var(--surface);border:1px solid var(--line);border-radius:18px;display:flex;flex-direction:column;gap:15px}.login h1{margin-top:10px}.login p{color:var(--muted)}.login label{display:flex;flex-direction:column;gap:6px;font-size:14px}.login input{padding:12px;border:1px solid var(--line);border-radius:7px;background:var(--bg);color:var(--text)}#loginError{color:var(--red)}.no-motion *{animation:none!important;transition:none!important}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}@media(min-width:1450px){main{padding-top:45px}.flowboard{min-height:490px}.climatebar{margin-top:40px}}@media(max-width:950px){main{padding:24px 22px 110px}.flowboard{gap:4%}.tile{padding:18px 15px}.tileheading{font-size:15px}.big{font-size:35px}.soc{font-size:39px}.batteryMetrics{flex-wrap:wrap}.climatebar{gap:15px}.climatebar b{font-size:18px}.climateLabel{font-size:14px}.topbar{padding:0 18px}.briefboard{gap:20px}.briefside strong{font-size:26px}.climategrid{grid-template-columns:repeat(2,1fr)}}@media(max-width:620px){.topbar{height:62px;padding:0 12px;gap:5px}.identity{gap:8px}.identity select{max-width:145px;font-size:14px;padding-left:0}.brandmark{width:31px;height:31px;font-size:13px}.connection{display:none}.toptools{gap:0}#clock{font-size:15px;margin:0}.toptools button,.toptools a{padding:6px}.toptools .icon{width:20px;height:20px}.toptools [data-action=fullscreen]{display:none}main{padding:22px 14px 100px}.pagehead{align-items:flex-start;margin-bottom:22px;gap:12px}h1{font-size:23px}.update{max-width:110px;font-size:11px}.flowboard{grid-template-columns:1fr 1fr;gap:15px;min-height:0}.flowlines{display:none}.sources{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:15px}.sources .tile{height:100%}.tile{padding:15px 12px}.tileheading{font-size:14px;gap:6px}.tileheading .icon{width:20px}.big{font-size:32px}.tilefoot{font-size:12px;flex-wrap:wrap;margin-top:12px}.tilefoot b{font-size:14px}.batteryTile{height:100%}.batteryMetrics{gap:7px;font-size:12px;padding-bottom:10px}.batteryMetrics b{font-size:14px}.batteryTile>.sub{font-size:11px}.socRing{margin:8px 0}.soc{font-size:35px}.socRing .sub{font-size:11px}.loads{gap:8px}.gpsstrip{padding:12px 0;gap:7px}.gpsstrip .icon{width:19px}.gpsstrip strong{font-size:12px}.gpsstrip small{font-size:11px}.climatebar{display:grid;grid-template-columns:1fr 1fr;padding:18px;margin-top:18px}.climatebar .climateLabel{grid-column:1/-1}.climatebar .chevron{display:none}.climatebar small{font-size:12px}.bottomnav{gap:0;justify-content:space-around;padding-left:0;padding-right:0}.bottomnav button{min-width:0;padding:8px 9px;font-size:11px;flex:1}.bottomnav .icon{width:22px;height:22px}.briefboard{grid-template-columns:1fr;gap:24px;padding-top:0}.briefside{flex-direction:row;gap:12px}.briefside button{flex:1;min-width:0;padding:18px 10px}.briefbattery{grid-row:1}.briefbattery .socRing{max-width:275px;margin:auto}.briefside strong{font-size:26px}.climategrid{gap:12px}.climatecard{padding:18px 13px}.climatecard strong{font-size:28px}.climatecard small{font-size:12px}.climateNote{padding:18px}.deviceRow{padding:18px 12px;gap:12px}.deviceRow b{font-size:14px}.deviceRow .badge{font-size:11px}.historyControls{flex-direction:column;gap:12px}.segmented{align-self:flex-start}.chartpanel{padding:16px 10px}.chartmeta{flex-direction:column;gap:6px}.pagehead .quiet{font-size:11px;padding:8px}.detailrow{gap:15px}}

.climatebar>span:not(.chevron){flex:1}.climatebar .chevron{margin-left:0}.flowboard{isolation:isolate}#dailyTable{overflow-x:auto}#dailyTable table{width:100%;border-collapse:collapse;font-size:14px}#dailyTable th,#dailyTable td{padding:16px 10px;text-align:left;border-bottom:1px solid var(--line);min-width:90px}#dailyTable th{font-weight:500;color:var(--muted)}.energyBar{display:block;height:4px;border-radius:4px;margin-top:8px;min-width:0}

.loadEstimate{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:16px}.estimateHead{display:flex;align-items:center;justify-content:space-between;gap:6px}.estimateHead h2{font-size:15px}.estimateHead button{color:var(--blue);padding:4px}.loadEstimate>p{font-size:11px;color:var(--solar);margin-bottom:10px}.loadRow{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:7px 0;border-top:1px solid var(--line);font-size:13px}.loadRow b{white-space:nowrap;font-weight:500}.loadRow.unknown{color:var(--solar)}#loadNote{display:block;font-size:11px;margin-top:8px}.loadSettings h2{margin-bottom:12px}.loadSettings p{margin:12px 0}.profileRow{display:grid;grid-template-columns:minmax(100px,1fr) 70px 70px 55px 30px;gap:10px;align-items:end;padding:12px 0;border-bottom:1px solid var(--line)}.profileRow label{display:flex;flex-direction:column;align-items:stretch;gap:6px;font-size:12px}.profileRow input:not([type=checkbox]){width:100%;background:var(--bg);border:1px solid var(--line);color:var(--text);border-radius:6px;padding:9px}.profileRow button{padding:10px 3px}.loadSettings .primary{margin-left:12px}.loads{gap:16px}@media(max-width:620px){.loadEstimate{padding:12px}.estimateHead h2{font-size:12px}.loadRow{font-size:11px;gap:5px}.profileRow{grid-template-columns:minmax(65px,1fr) 52px 52px 38px 22px;gap:5px}.flowboard{align-items:start}.batteryTile{height:auto}.loadSettings .primary{margin-left:0}}
@media(max-width:620px){.loads{display:contents}.loadEstimate,.gpsstrip{grid-column:1/-1}.loadEstimate{padding:16px}.estimateHead h2{font-size:15px}.loadRow{font-size:13px}.loadTile{align-self:stretch}}

.consumerLink{fill:none;stroke:var(--line);stroke-width:3;stroke-dasharray:5 7}.consumerLink.active{stroke:var(--green);animation:flow 1.7s linear infinite}@media(max-width:620px){.flowlines{display:block}}

.powerRing{stroke-linecap:round;stroke-dasharray:0 100;opacity:0;transition:stroke-dasharray 1s}.solarRing{stroke:var(--solar)}.chargerRing{stroke:#bb9aff}.ringLegend{display:flex;justify-content:center;flex-wrap:wrap;gap:8px 18px;margin-top:18px;font-size:12px}.solarLegend{color:var(--solar)}.chargerLegend{color:#bb9aff}.ringLegend span:before{content:'';display:inline-block;width:7px;height:7px;border:2px solid currentColor;border-radius:50%;margin-right:6px}.briefbattery .multiRing .soc{font-size:48px}.briefbattery .multiRing>div{inset:20%;gap:4px}.briefbattery #briefPowerStatus{display:block;margin-top:8px;font-size:12px}@media(max-width:620px){.briefbattery .multiRing .soc{font-size:40px}.briefbattery .multiRing>div{font-size:12px}.briefbattery .multiRing .sub{font-size:12px}.briefbattery .multiRing{max-width:315px}}

.humidityRing{stroke:var(--green)}.humidityLegend{color:var(--green)}.briefbattery .multiRing .soc{font-size:42px}.briefbattery .multiRing>div{inset:24%;font-size:13px}@media(max-width:620px){.briefbattery .multiRing .soc{font-size:35px}.briefbattery .multiRing>div{font-size:11px}}

.flowlines{display:block;z-index:0;overflow:visible}.flowboard>.sources,.flowboard>.batteryTile,.flowboard>.loads{position:relative;z-index:1}.briefside small{overflow-wrap:anywhere}@media(max-width:620px){.flowboard .loadTile,.flowboard .loadEstimate,.flowboard .gpsstrip{position:relative;z-index:1}}

/* Kõigil GX-i vaadetel kerib sisu; päis püsib kohe ülaservas. */
html,body{height:100%;overflow:hidden}#shell{position:fixed;inset:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:none;-webkit-overflow-scrolling:touch}.topbar{position:sticky;top:0;z-index:10;padding-top:env(safe-area-inset-top,0px);height:calc(72px + env(safe-area-inset-top,0px))}.login{position:fixed;inset:0;overflow-y:auto}

