:root{--bg:#f2f7fc;--surface:#fff;--ink:#122039;--muted:#738198;--line:#e5edf5;--blue:#0785f9;--soft:#e9f4ff;--orange:#f58a23;--green:#0caa7a;--shadow:0 6px 28px #264c7910}*{box-sizing:border-box}body{margin:0;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--ink);font-size:16px;line-height:1.5}body.dark{--bg:#131b27;--surface:#1c2737;--ink:#eaf1fa;--muted:#9aaac0;--line:#2d3a4d;--soft:#183654;--shadow:0 6px 28px #0002}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer;border:0;color:inherit;background:none}a{color:var(--blue);text-decoration:none}svg.icon{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.logo{font-size:39px;font-weight:850;letter-spacing:-2.5px;color:var(--blue);line-height:1}.logo span{color:#707b8b}#sidebar{position:fixed;width:230px;inset:0 auto 0 0;background:var(--surface);border-right:1px solid var(--line);padding:36px 22px;display:flex;flex-direction:column;z-index:4}.side-caption{font-size:11px;letter-spacing:1.5px;color:var(--muted);margin:48px 12px 18px}nav button{display:flex;align-items:center;gap:13px;border-radius:12px;color:var(--muted);padding:13px 16px;width:100%;text-align:left;margin:3px 0;font-weight:550}nav button.active{background:var(--blue);color:white;box-shadow:0 6px 18px #0785f929}nav button:hover:not(.active){background:var(--soft);color:var(--blue)}.side-bottom{margin-top:auto;padding:25px 10px 0}.side-bottom small{color:var(--muted);font-size:12px}.shell{margin-left:230px}header{height:83px;border-bottom:1px solid var(--line);padding:0 36px;display:flex;align-items:center;justify-content:space-between;background:var(--surface)}.breadcrumbs{font-size:14px;color:var(--muted)}.breadcrumbs span{margin:0 15px;color:#bbc5d0}.breadcrumbs b{color:var(--ink)}.header-actions{display:flex;align-items:center;gap:14px}.demo-pill,.badge{background:var(--soft);color:var(--blue);padding:5px 12px;border-radius:8px;font-size:12px;white-space:nowrap}.icon-button{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--bg);font-size:28px}.mobile-logo{display:none}main{max-width:1600px;margin:auto;padding:28px 36px}.client{display:flex;align-items:center;gap:18px;margin-bottom:26px}.client-icon,.tile-icon{color:var(--blue);background:var(--soft);display:grid;place-items:center;width:55px;height:55px;border-radius:15px}.client-icon .icon{width:32px;height:32px}.client h2{margin:0;font-size:20px}.client p{margin:2px 0;color:var(--muted);font-size:14px}.client p span{margin:0 8px;color:#bac5d2}.client>.status{margin-left:auto}.status{font-size:13px;color:var(--green);background:#10b98112;padding:6px 12px;border-radius:20px;white-space:nowrap}.status:before{content:"";display:inline-block;width:7px;height:7px;background:currentColor;border-radius:50%;margin-right:7px}#mobile-nav{display:none}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0}.page-heading h1{font-size:27px;margin:0;letter-spacing:-.7px}.page-heading p{color:var(--muted);font-size:14px;margin:4px 0}.card{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:24px;box-shadow:var(--shadow)}.grid{display:grid;gap:18px}.g2{grid-template-columns:repeat(2,minmax(0,1fr))}.g3{grid-template-columns:repeat(3,minmax(0,1fr))}.g4{grid-template-columns:repeat(4,minmax(0,1fr))}.kpi{display:flex;flex-direction:column;gap:11px}.kpi-top{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:14px;gap:10px}.kpi-top .icon{color:var(--blue)}.value{font-size:28px;letter-spacing:-.7px;font-weight:700;line-height:1.3}.unit{font-size:15px;font-weight:500;letter-spacing:0;color:var(--muted)}.kpi small{color:var(--muted);font-size:12px}.section-gap{margin-top:22px}.card h2{font-size:18px;margin:0 0 18px}.card p{color:var(--muted)}.btn{background:var(--blue);color:#fff;padding:11px 18px;border-radius:10px;font-weight:600;font-size:14px;display:inline-flex;align-items:center;justify-content:center;gap:9px}.btn.secondary{background:var(--soft);color:var(--blue)}.btn.ghost{background:var(--bg);color:var(--muted);border:1px solid var(--line)}.btn.full{width:100%}.chart-header{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:18px}.chart-header h2{margin:0}.segmented{display:flex;border-radius:9px;background:var(--bg);padding:4px}.segmented button{padding:5px 12px;font-size:13px;border-radius:7px;color:var(--muted)}.segmented button.active{color:white;background:var(--blue)}.chart-svg{width:100%;height:220px;overflow:visible}.chart-svg text{fill:var(--muted);font-size:12px}.chart-grid{stroke:var(--line);stroke-dasharray:4 5}.legend{display:flex;gap:20px;align-items:center;justify-content:center;font-size:12px;color:var(--muted);flex-wrap:wrap}.dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px}.chart-note{text-align:right;font-size:12px;color:var(--muted);margin-top:10px}.live-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:22px}.flow-card{position:relative;min-height:450px;overflow:hidden;background:radial-gradient(ellipse at center,var(--soft),var(--surface) 67%)}.flow-top{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:var(--muted)}.flow{position:relative;height:365px;margin-top:14px}.flow-lines{position:absolute;inset:0;width:100%;height:100%}.flow-lines path{stroke:#54acfa;stroke-width:1.5;fill:none;stroke-dasharray:6 6;animation:flow 20s linear infinite}.flow-lines circle{fill:var(--green)}@keyframes flow{to{stroke-dashoffset:-250}}.node{position:absolute;transform:translate(-50%,-50%);text-align:center;width:110px;cursor:pointer}.node-icon{margin:auto auto 5px;background:var(--surface);color:var(--blue);border:1px solid var(--line);box-shadow:0 5px 20px #0785f918;display:grid;place-items:center;border-radius:19px;width:58px;height:58px}.node-icon .icon{width:32px;height:32px}.node strong{display:block;font-size:17px}.node small{font-size:12px;color:var(--muted)}.node.center{width:130px;background:var(--blue);border-radius:50%;height:130px;display:flex;align-items:center;justify-content:center;flex-direction:column;box-shadow:0 0 0 10px #0785f911,0 8px 34px #0785f933;color:#fff}.node.center .logo{font-size:31px;color:white;margin-bottom:7px}.node.center .logo span{color:#d9eeff}.node.center small{color:#d9eeff}.flow-status{position:absolute;bottom:0;left:0;font-size:12px;color:var(--muted)}.live-side{display:grid;gap:18px}.live-side .chart-svg{height:170px}.mini-link{font-size:13px;color:var(--blue)}.balance{background:var(--soft);border:0;display:flex;align-items:center;justify-content:space-between;gap:15px}.hero-metric{display:flex;align-items:center;gap:30px;padding:32px}.hero-symbol{background:linear-gradient(145deg,#edf8ff,#b9dfff);color:#1685e7;border:1px solid #c6e6ff;border-radius:28px;display:grid;place-items:center;width:140px;height:140px;flex-shrink:0;box-shadow:inset 0 2px 4px #fff9,0 10px 20px #0785f916}.hero-symbol .icon{height:78px;width:78px;stroke-width:1.4}.hero-metric .value{font-size:45px}.hero-metric p{margin:0 0 10px}.energy-column h2{color:var(--blue);font-size:18px}.energy-column.orange h2{color:var(--orange)}.energy-column .card{margin-top:12px}.progress{background:var(--line);height:10px;border-radius:9px;width:100%;margin:12px 0}.progress>i{display:block;height:100%;width:26%;background:var(--blue);border-radius:9px}.empty-offer{display:grid;grid-template-columns:1fr 1.2fr;align-items:center;gap:30px;padding:42px}.empty-illustration{display:grid;place-items:center;min-height:220px;background:radial-gradient(ellipse,var(--soft),transparent 70%);color:#829db6}.empty-illustration .icon{height:130px;width:130px;stroke-width:1.2;filter:drop-shadow(8px 13px 2px #6b96b025)}.empty-offer h2{font-size:28px;line-height:1.2;margin:16px 0}.empty-offer .badge{background:var(--bg);color:var(--muted)}.disabled{opacity:.52}.money{font-variant-numeric:tabular-nums}.tariff-row{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:12px;align-items:end;margin-bottom:14px}label{display:block;font-size:13px;color:var(--muted)}input,select,textarea{width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:9px;background:var(--bg);color:var(--ink);margin-top:6px;min-width:0}textarea{min-height:110px;resize:vertical}.form-stack{display:grid;gap:15px}.form-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}.hint{font-size:12px!important;color:var(--muted);margin-bottom:0}.green .kpi-top,.green .value{color:var(--green)}.green{background:linear-gradient(130deg,var(--surface),#0caa7a08)}.service-tile{text-align:left;transition:transform .15s}.service-tile:hover{transform:translateY(-3px)}.service-tile strong{display:block;margin-top:18px}.service-tile p{font-size:13px;margin-bottom:0}.countdown{font-size:30px;font-weight:700;color:var(--blue)}.warranty{display:flex;align-items:center;gap:14px;padding:18px 0;border-bottom:1px solid var(--line)}.warranty:last-child{border:0}.warranty .tile-icon{width:42px;height:42px}.warranty p{margin:2px 0;font-size:12px}.warranty strong{font-size:14px}.warranty-right{margin-left:auto;text-align:right}.ticket{padding:15px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:10px}.ticket p{margin:4px 0;font-size:13px}.ticket span{font-size:12px}.code{font-size:38px;letter-spacing:9px;color:var(--blue);font-weight:700;text-align:center;margin:24px 0}.settings-row{display:flex;justify-content:space-between;align-items:center;padding:15px 0;border-bottom:1px solid var(--line);gap:15px}.settings-row input[type=checkbox]{width:21px;height:21px;margin:0;accent-color:var(--blue)}dialog{border:1px solid var(--line);border-radius:22px;background:var(--surface);color:var(--ink);width:min(550px,calc(100% - 28px));padding:25px;max-height:90vh;overflow:auto;box-shadow:0 30px 100px #0004}dialog::backdrop{background:#0b193b66;backdrop-filter:blur(5px)}.modal-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px}.modal-head h2{font-size:21px;margin:0}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);background:var(--ink);color:var(--surface);padding:13px 22px;border-radius:12px;opacity:0;pointer-events:none;transition:.2s;z-index:20;max-width:90%;font-size:14px}#toast.show{opacity:1;transform:translate(-50%,0)}footer{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin:30px 0 5px}.tv .shell{margin-left:0}.tv #sidebar,.tv header,.tv .client,.tv #mobile-nav,.tv footer{display:none}.tv main{max-width:none;padding:35px}.tv .flow-card{min-height:560px}.tv .flow{height:470px}.tv .live-grid{grid-template-columns:1.4fr 1fr}.tv-exit{position:fixed;top:15px;right:15px;z-index:5}.safety-note{background:var(--soft);padding:12px 16px;border-radius:10px;font-size:13px;color:var(--muted)}@media(min-width:1600px){.flow-card{min-height:510px}.flow{height:420px}}@media(max-width:1150px){#sidebar{width:190px;padding:30px 13px}.shell{margin-left:190px}main{padding:22px}.g4{grid-template-columns:repeat(2,minmax(0,1fr))}.live-grid{grid-template-columns:1fr}.live-side{grid-template-columns:1fr 1fr}.tariff-row{grid-template-columns:1fr 1fr}.page-heading h1{font-size:24px}}@media(max-width:760px){#sidebar{display:none}.shell{margin:0}header{height:80px;padding:0 20px;background:transparent;border:0}.mobile-logo{display:block;font-size:36px}.breadcrumbs{display:none}.header-actions{gap:8px}.demo-pill{font-size:11px;padding:4px 7px}.icon-button{width:35px;height:35px}.client{background:var(--surface);border:1px solid var(--line);padding:16px;border-radius:20px;margin:0 0 18px;gap:12px}.client h2{font-size:18px}.client-icon{width:43px;height:47px}.client .status{font-size:11px;padding:5px 8px}.client p{font-size:12px}main{padding:0 16px 20px}#mobile-nav{display:flex;overflow:auto;gap:7px;scrollbar-width:none;margin:0 -16px;padding:0 16px 12px;position:sticky;top:0;z-index:3;background:var(--bg)}#mobile-nav button{white-space:nowrap;flex-shrink:0;width:auto;padding:11px 20px;background:var(--surface);font-size:14px;border:1px solid var(--line)}#mobile-nav button.active{background:var(--blue)}#mobile-nav .icon{display:none}.page-heading{margin:14px 0 18px;align-items:flex-start}.page-heading h1{font-size:23px;line-height:1.25}.page-heading p{font-size:12px}.page-heading>.btn{font-size:12px;padding:8px 10px}.grid{gap:12px}.card{padding:18px;border-radius:18px}.value{font-size:24px}.unit{font-size:13px}.kpi-top{font-size:12px;align-items:flex-start}.kpi-top .icon{width:19px}.g3{grid-template-columns:repeat(2,minmax(0,1fr))}.live-side{grid-template-columns:1fr}.flow-card{padding:15px;min-height:425px}.flow{height:350px}.node{width:93px}.node strong{font-size:15px}.node.center{width:104px;height:104px}.node.center .logo{font-size:26px}.node-icon{width:49px;height:49px;border-radius:15px}.node-icon .icon{width:29px;height:29px}.hero-metric{gap:19px;padding:22px}.hero-symbol{width:94px;height:110px;border-radius:20px}.hero-symbol .icon{width:60px;height:60px}.hero-metric .value{font-size:32px}.hero-metric p{font-size:13px}.energy-column h2{font-size:16px}.empty-offer{grid-template-columns:1fr;gap:0;text-align:center;padding:25px}.empty-illustration{min-height:180px}.empty-offer h2{font-size:25px}.empty-offer .btn{width:100%}.chart-svg{height:190px}.chart-header h2{font-size:16px}.segmented button{padding:5px 9px;font-size:12px}.g2.stack-mobile{grid-template-columns:1fr}.tariff-row{gap:8px}.tariff-row label{font-size:12px}.tariff-row input{font-size:13px;padding:9px}.service-tile{padding:18px}.service-tile strong{font-size:14px}.service-tile p{font-size:12px}.card h2{font-size:17px}.countdown{font-size:25px}footer{display:block;font-size:10px;text-align:center}footer span{display:block;margin-top:6px}.tv .live-grid{grid-template-columns:1fr}.tv main{padding:16px}.tv .flow-card{min-height:425px}.tv .flow{height:350px}.form-row .btn{flex:1}.money{font-size:22px}.balance{padding:18px}.balance .value{font-size:25px}.chart-note{font-size:10px}}
/* Original 3D artwork from the supplied visual references. */
.artwork{position:relative;display:block;width:100%;overflow:hidden;isolation:isolate;flex-shrink:0;border-radius:10px}.artwork img{position:absolute;max-width:none;height:auto;user-select:none;pointer-events:none}.node-icon{width:102px;height:94px;background:transparent;box-shadow:none;border:0;border-radius:0}.node-icon .artwork{width:102px}.node{width:128px}.flow{height:420px}.flow-card{min-height:485px}.hero-symbol{width:220px;height:180px;border:0;background:none;box-shadow:none;border-radius:16px}.hero-symbol .artwork{width:220px}.empty-illustration{background:none;min-height:240px}.empty-illustration .artwork{width:100%;max-width:460px}.service-tile .service-art{width:100%;height:140px;background:none;display:flex;justify-content:center}.service-art .artwork{width:155px}.service-tile strong{margin-top:15px}.warranty .artwork{width:42px}/* Blend the light reference artwork into dark surfaces without white tiles.
   Apply the tonal adjustment to the image so absent-equipment grayscale on
   its parent remains independent. Light mode keeps the original artwork. */
.dark .hero-symbol,.dark .empty-illustration,.dark .artwork{background:transparent}
.dark .artwork{mix-blend-mode:screen;isolation:auto}
.dark .artwork img{filter:brightness(1.08) invert(1) hue-rotate(180deg) saturate(1.15)}.flow-lines{opacity:.8}.hero-metric{background:linear-gradient(120deg,var(--surface) 65%,var(--soft))}.node.center{background:linear-gradient(140deg,#02baff,#087ef4);border:4px solid #99dfff;box-shadow:0 0 0 6px #0785f911,0 10px 30px #0785f929}.service-tile:hover .artwork{transform:translateY(-3px);transition:transform .2s}.tv .node-icon,.tv .node-icon .artwork{width:125px}.tv .node-icon{height:120px}@media(max-width:760px){.flow-card{min-height:535px}.flow{height:465px}.node-icon{width:82px;height:78px}.node-icon .artwork{width:82px}.node{width:98px}.node.center{width:112px;height:112px}.hero-symbol{width:140px;height:140px;flex-shrink:0}.hero-symbol .artwork{width:140px}.hero-metric{padding:18px;gap:16px}.hero-metric .value{font-size:30px}.service-tile .service-art{height:135px}.service-art .artwork{width:140px}.service-tile strong{margin-top:8px}.empty-illustration{min-height:220px}.empty-illustration .artwork{max-width:380px}.tv .node-icon,.tv .node-icon .artwork{width:85px}.tv .node-icon{height:80px}}@media(max-width:390px){.hero-symbol{width:115px;height:125px}.hero-symbol .artwork{width:115px}.hero-metric .value{font-size:27px}.service-art .artwork{width:120px}.service-tile .service-art{height:117px}}
.analysis-date{display:flex;align-items:center;justify-content:center;gap:10px;margin:20px auto;max-width:340px}.analysis-date input{margin:0;text-align:center;flex:1}.analysis-date .icon-button{flex-shrink:0}.analysis-chart{width:100%;height:auto;min-height:240px;display:block;touch-action:pan-y}.analysis-chart text{fill:var(--muted);font-size:12px}.analysis-legend{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:12px 0}.analysis-legend button{padding:10px;border-radius:9px;background:var(--bg);font-size:13px;text-align:left}.analysis-legend button.off{opacity:.4;text-decoration:line-through}.analysis-slider{margin:18px 0}.analysis-slider input{padding:0;accent-color:var(--blue)}.analysis-detail{background:var(--bg);border:1px solid var(--line);padding:20px;border-radius:14px;margin-top:20px}.analysis-detail-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.analysis-reading span{font-size:13px;color:var(--muted);display:block;margin-bottom:5px}.analysis-reading strong{font-size:21px}.analysis-reading small{font-size:12px;color:var(--muted);font-weight:400}@media(max-width:760px){.analysis-legend{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.analysis-legend button{font-size:12px;padding:9px 7px}.analytics-card{padding:15px}.analysis-chart{min-height:200px}.analysis-detail{padding:14px}.analysis-reading span{font-size:11px}.analysis-reading strong{font-size:18px}.analysis-detail .g3{gap:18px 10px}.analysis-chart text{font-size:15px}}
.equipment-absent .artwork{filter:grayscale(1);opacity:.6}.equipment-absent strong,.equipment-absent small{color:var(--muted)}.flow{height:480px}.flow-card{min-height:545px}.tv{background:#020b17!important}.tv main{padding:0;max-width:none;min-height:100vh;display:flex;align-items:center;justify-content:center}.tv #content{width:100%}.tv-dashboard{position:relative;width:100%;aspect-ratio:1536/809;max-height:100vh;max-width:calc(100vh * 1536 / 809);margin:auto;overflow:hidden;background:#031222;color:#e7f2ff;container-type:inline-size}.tv-scene{position:absolute;inset:0;width:100%;height:100%;object-fit:fill}.tv-heading{position:absolute;inset:0 37% auto 0;height:10.5%;background:linear-gradient(180deg,#020d1d 70%,#020d1de8);padding:1.2cqw 1.7cqw;display:flex;align-items:center;gap:1.4cqw}.tv-heading .logo{font-size:2.9cqw;color:#e5f4ff}.tv-heading .logo span{color:#0ab3ff}.tv-heading h1{font-size:1.6cqw;line-height:1.1;margin:0;white-space:nowrap}.tv-heading p{font-size:.8cqw;color:#afcbe8;margin:.5cqw 0 0}.tv-heading p span{color:#43dfff;margin-left:1cqw}.tv-actions{display:flex;gap:.3cqw;position:absolute;right:1%;top:72%}.tv-actions button{font-size:1.7cqw;background:#0a2844;color:#c4e9ff;border:1px solid #146289;border-radius:.3cqw;display:grid;place-items:center;width:2.3cqw;height:2cqw}.tv-actions .icon{width:1.3cqw;height:1.3cqw}.tv-top-cards{position:absolute;right:1.4%;top:1.6%;height:7.6%;width:37.4%;display:grid;grid-template-columns:1fr 1fr 1.55fr;gap:.7cqw}.tv-top-cards>div,.tv-top-cards>button{border:1px solid #123856;border-radius:.5cqw;background:linear-gradient(120deg,#0b2037,#061526);display:flex;align-items:center;padding:.7cqw;gap:.7cqw;text-align:left}.tv-top-cards .icon{color:#9dd7ff;width:1.8cqw;height:1.8cqw}.tv-top-cards strong{font-size:1.2cqw;line-height:1.2}.tv-top-cards small{font-size:.7cqw;display:block;font-weight:400;margin-top:.3cqw}.tv-top-cards button strong{font-size:.85cqw}.tv-top-cards button small{background:#0674e5;color:white;padding:.3cqw .8cqw;border-radius:.3cqw;font-weight:600}.tv-contract{position:absolute;left:1.6%;top:10.7%;width:28.5%;height:7.8%;background:linear-gradient(120deg,#092342,#051b31);border:1px solid #123a58;border-radius:.5cqw;display:flex;align-items:center;text-align:left;padding:.7cqw;gap:.7cqw}.tv-contract .icon{color:#63caff;width:2.2cqw;height:2.2cqw}.tv-contract strong{font-size:.85cqw;display:block}.tv-contract small{font-size:.7cqw;display:block;color:#afd4f7}.tv-contract b{background:#0668dc;border:1px solid #1785f4;border-radius:.3cqw;padding:.35cqw .6cqw;margin-left:auto;font-size:.7cqw}.tv-hotspot{position:absolute;border-radius:1cqw}.tv-hotspot:hover{background:#00bfff18;outline:1px solid #29c5ff}.tv-solar{left:6%;top:21%;width:14%;height:15%}.tv-grid{left:47%;top:17%;width:14%;height:15%}.tv-battery{left:6%;top:70%;width:14%;height:14%}.tv-load{left:46%;top:71%;width:15%;height:14%}.tv-right{position:absolute;left:63.4%;top:11.1%;right:1.4%;height:76.8%;display:grid;grid-template-rows:1.05fr 1fr .78fr;gap:.45cqw}.tv-panel{background:linear-gradient(120deg,#05192cf5,#030d18f5);border:1px solid #0b3a58;border-radius:.5cqw;text-align:left;overflow:hidden;min-height:0;padding:0}.tv-panel h2{margin:0;padding:.35cqw 1cqw;font-size:.9cqw;border-bottom:1px solid #098dc2;line-height:1.4;background:linear-gradient(100deg,#06456f70,transparent);position:relative}.tv-panel h2:before{content:'';position:absolute;left:.2cqw;top:0;bottom:0;width:.2cqw;background:#18d3ff;transform:skew(-20deg)}.tv-panel h2 small{float:right;font-size:.6cqw;color:#8db6d5;font-weight:400}.tv-chart-panel{display:flex;flex-direction:column}.tv-chart-panel svg{width:100%;min-height:0;flex:1;padding:.2cqw .4cqw}.tv-chart-legend{display:flex;justify-content:center;gap:.6cqw;font-size:.54cqw;padding:.5cqw .2cqw .1cqw}.tv-chart-legend i{display:inline-block;width:.65cqw;height:.4cqw;border-radius:.15cqw;margin-right:.2cqw}.tv-profit-columns{display:grid;grid-template-columns:1fr 1fr;gap:.6cqw;padding:.55cqw}.tv-profit-columns button{padding:.4cqw .6cqw;background:#03243a55;border:1px solid #104256;border-radius:.4cqw;text-align:left}.tv-profit h3{font-size:.78cqw;margin:0 0 .5cqw;padding-bottom:.4cqw;border-bottom:1px solid #183e52}.tv-profit p{display:flex;justify-content:space-between;font-size:.7cqw;margin:.3cqw 0}.tv-profit b{color:#27caff}.tv-profit-columns button+button b{color:#74e497}.tv-bottom{position:absolute;bottom:1.5%;left:1.4%;right:1.4%;height:9.4%;display:grid;grid-template-columns:1fr 1.08fr 1.08fr 1.16fr 1.08fr 1.14fr 1.08fr;gap:.55cqw}.tv-stat{background:linear-gradient(120deg,#081e31,#07121f);border:1px solid #14384f;border-left:2px solid #20c7ff;border-radius:.5cqw;display:flex;gap:.7cqw;align-items:center;text-align:left;padding:.7cqw}.tv-stat>.icon{width:1.8cqw;height:2.5cqw;color:#26c6ff;flex-shrink:0}.tv-stat strong{font-size:1.1cqw;display:block;white-space:nowrap;line-height:1.2}.tv-stat small{font-size:.6cqw}.tv-stat em{font-size:.58cqw;line-height:1.3;display:block;font-style:normal;margin-top:.5cqw}.tv-stat:nth-child(3)>.icon{color:#ffcb43}.tv-stat:nth-child(5)>.icon{color:#e351f4}.tv-ev strong{font-size:.68cqw}.tv-ev em{font-size:.59cqw;color:#c4dbef;margin-top:.2cqw}.tv-ev b{display:block;background:#0869db;border-radius:.25cqw;padding:.2cqw .4cqw;margin-top:.35cqw;text-align:center;font-size:.66cqw}.tv-ev.ev-off>.icon{color:#8193ab}.tv-orientation{display:none}.tv .shell{margin-left:0}.tv .tv-exit{display:none}@media(max-width:760px){.flow{height:550px}.flow-card{min-height:615px}.tv main{padding:0}.tv-dashboard{min-width:700px;max-width:none;max-height:none}.tv #content{overflow:auto}.tv main{display:block;padding-top:12px}.tv-orientation{display:block;color:#9db3ca;font-size:13px;text-align:center;padding:15px}.tv-heading .logo{font-size:2.9cqw}}@media(max-width:950px) and (orientation:landscape){.tv-dashboard{min-width:0;max-width:calc(100vh * 1536 / 809);max-height:100vh}.tv main{padding:0;display:flex}.tv-orientation{display:none}}
.generator-absent .artwork{filter:grayscale(1);opacity:.6}.generator-absent .value{color:var(--muted)}
.plant-picker{display:flex;align-items:center;gap:16px;margin:0 0 20px}.plant-picker label{font-size:14px;white-space:nowrap}.plant-picker select{margin:0;max-width:520px;background:var(--surface);font-weight:600;color:var(--ink);padding:13px 16px}.tv .plant-picker{display:none}.feed-note{padding:10px 12px;background:var(--soft);border-radius:9px;line-height:1.5}.breadcrumbs #plant-name{margin:0;color:var(--muted)}@media(max-width:760px){.plant-picker{display:block;margin-bottom:15px}.plant-picker label{font-size:12px;margin-bottom:5px}.plant-picker select{font-size:13px;width:100%;padding:12px}.client .status{margin-left:auto}.client h2{font-size:17px}.client p{font-size:11px}}

/* Keep the supplied banknote intact; crop only the exterior white margin. */
.banknote-icon{display:block;position:relative;width:72px;height:34px;overflow:hidden;border-radius:4px;flex-shrink:0;box-shadow:0 2px 7px #0002}
.banknote-icon img{position:absolute;width:100%;max-width:none;height:auto;left:0;top:-10px}
.construction-art{display:block;width:58px;height:58px;object-fit:contain;flex-shrink:0}
.warranty .tile-icon{flex:0 0 42px;overflow:hidden}
.warranty .construction-art{width:42px;height:42px;object-fit:contain;border-radius:10px}
.has-equipment-detail{position:relative;cursor:pointer;border-radius:12px;outline-offset:3px}
.has-equipment-detail:hover,.has-equipment-detail:focus-visible,.has-equipment-detail.detail-open{background:var(--soft)}
.equipment-detail{display:none;position:absolute;bottom:calc(100% - 5px);left:12px;max-width:calc(100% - 24px);z-index:5;padding:12px 16px;border-radius:10px;background:var(--ink);color:var(--surface);font-size:14px;font-weight:600;box-shadow:var(--shadow);pointer-events:none}
.has-equipment-detail:hover .equipment-detail,.has-equipment-detail:focus-visible .equipment-detail,.has-equipment-detail.detail-open .equipment-detail{display:block}

.eco-heading{display:flex;align-items:center;gap:14px}.eco-illustration{width:64px;height:64px;object-fit:contain;flex-shrink:0}@media(max-width:480px){.eco-heading{gap:10px}.eco-illustration{width:50px;height:50px}}

.currency-picker{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--muted);min-width:145px}.currency-picker select{margin:0;color:var(--ink);background:var(--surface);font-weight:600}.fx-note{margin:0 0 20px}.kpi .value{overflow-wrap:anywhere}.tv-profit b{font-size:.65cqw}

/* Paths and particles share SVG coordinates, so they remain aligned at any size. */
.flow-lines.energy-streams{opacity:1;overflow:visible;pointer-events:none}
.energy-streams .energy-route path{fill:none;stroke-dasharray:none;animation:none;vector-effect:non-scaling-stroke;stroke-linecap:round}
.energy-streams .energy-route .stream-halo{stroke:#16b8ef;stroke-width:10;opacity:.12;filter:blur(3px)}
.energy-streams .energy-route .stream-track{stroke:url(#energy-gradient);stroke-width:2;opacity:.4}
.energy-streams .energy-route .stream-dashes{stroke:url(#energy-gradient);stroke-width:2.8;stroke-dasharray:7 9;animation:energy-swim 3s linear infinite;filter:drop-shadow(0 0 3px #1ebaea70)}
.energy-streams .stream-particle{fill:#2cdfa3;stroke:#cefff0;stroke-width:.8;filter:drop-shadow(0 0 4px #2cdfa3);transform:none;animation:none}
.energy-streams .route-off .stream-track{stroke:var(--muted);opacity:.25}
.energy-streams .route-off .stream-halo,.energy-streams .route-off .stream-dashes{display:none}
.dark .energy-streams .stream-halo{opacity:.22}
.dark .energy-streams .stream-track{opacity:.55}
@keyframes energy-swim{from{stroke-dashoffset:0}to{stroke-dashoffset:-32}}
@media(prefers-reduced-motion:reduce){.energy-streams .energy-route .stream-dashes{animation:none}.energy-streams .stream-particle{display:none}}

.energy-streams .route-idle .stream-halo,.energy-streams .route-idle .stream-dashes{display:none}
.energy-streams .route-idle .stream-track{opacity:.3}
.energy-streams .route-active .stream-halo{animation:energy-pulse 2.4s ease-in-out infinite;animation-delay:var(--pulse-delay)}
.energy-streams .route-active .stream-track{animation:energy-shimmer 2.4s ease-in-out infinite;animation-delay:var(--pulse-delay)}
@keyframes energy-pulse{0%,100%{opacity:.08;stroke-width:7}50%{opacity:.32;stroke-width:15}}
@keyframes energy-shimmer{0%,100%{opacity:.35}50%{opacity:.85}}
@media(prefers-reduced-motion:reduce){.energy-streams .route-active .stream-halo,.energy-streams .route-active .stream-track{animation:none}}

/* Transparent equipment and contextual readings */
.artwork.transparent-art,.dark .artwork.transparent-art{background:transparent;mix-blend-mode:normal;isolation:isolate}
.artwork.transparent-art img,.dark .artwork.transparent-art img{filter:none;max-width:none}
.node-icon{background:transparent!important;border:0!important;box-shadow:none!important}
.node{z-index:2}.node:hover,.node:focus-visible{z-index:8}
.flow-tooltip{display:none;position:absolute;bottom:100%;left:50%;transform:translateX(-50%);width:210px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);box-shadow:0 8px 28px #0003;font-size:12px;line-height:1.6;text-align:left;pointer-events:none}
.node:hover .flow-tooltip,.node:focus-visible .flow-tooltip{display:block}
.flow-card{overflow:visible}.battery-capacity{font-size:14px;margin-top:12px!important}.battery-capacity small{font-size:11px}
.tv-scene{object-fit:cover;filter:brightness(.65)}
.tv-flow{position:absolute;left:1.4%;top:20%;width:60%;height:64%;isolation:isolate}
.tv-flow .node{width:9cqw;color:#eff8ff;text-shadow:0 2px 4px #001326}
.tv-flow .node-icon{width:7cqw;height:7cqw;margin-bottom:0;filter:drop-shadow(0 0 10px #09aafa66)}
.tv-flow .node strong{font-size:1.25cqw;color:#38d8ff;line-height:1.2}
.tv-flow .node small,.tv-flow .node .unit{font-size:.8cqw;color:#e7f5ff}
.tv-flow .node.center{width:9cqw;height:9cqw;background:radial-gradient(circle at 30% 20%,#0aa9e9,#013d6b);border:1px solid #35d6ff;box-shadow:0 0 0 .5cqw #08a3e51a,0 0 3cqw #00aaff66}
.tv-flow .node.center .logo{font-size:2.2cqw;margin-bottom:.4cqw}
.tv-flow .flow-tooltip{font-size:.9cqw;width:18cqw;background:#071d32;color:#e7f5ff;border-color:#247299;text-shadow:none;padding:.8cqw}
.tv-flow .equipment-absent .node-icon{filter:grayscale(1);opacity:.6}
.tv-flow .energy-streams .stream-track{opacity:.7}.tv-flow .energy-streams .route-off .stream-track{stroke:#8993a1;opacity:.6}
.tv-heading{position:static!important}.tv-heading>.logo{position:absolute;left:1.6%;top:2.8%}.tv-heading>div:not(.tv-actions){position:absolute;left:14%;top:2.1%;width:45%}
.tv-heading h1{font-size:1.5cqw!important}.tv-heading p{font-size:.8cqw!important}
.tv-heading .tv-actions{position:absolute;top:12%;right:39%;display:flex;gap:.5cqw;z-index:20}
.tv-actions button{display:grid;place-items:center;width:2.8cqw;height:2.8cqw;min-width:26px;min-height:26px;border:1px solid #2b6483;border-radius:.5cqw;background:#071f35;color:white;font-size:2cqw}
.tv-battery-off{grid-column:span 2}.tv-battery-off strong{font-size:.9cqw}.tv-battery-off span{flex:1}
.node:not(.center){transform:translateX(-50%);margin-top:-51px}.node-icon{width:102px;height:102px}.node-icon .transparent-art{width:100%;height:100%;transform:none!important}.node.center{margin-top:0}
@media(max-width:760px){.node:not(.center){margin-top:-41px}.node-icon{width:82px;height:82px}}
.tv-flow .node:not(.center){margin-top:-3.5cqw}.tv-flow .node-icon{width:7cqw;height:7cqw}.tv-flow .node.center{transform:translate(-50%,-50%);margin-top:0}
/* Consistent icon anchors, with reserved room for each reading and label. */
.flow-card .flow{height:520px;margin-top:16px;margin-bottom:18px}
.flow-card .node:not(.center){width:100px;margin-top:-36px;padding:0;line-height:1.3}
.flow-card .node-icon{width:72px;height:72px;margin-bottom:5px}
.flow-card .node strong{font-size:16px;line-height:1.4;white-space:nowrap}
.flow-card .node small{display:block;font-size:12px;line-height:1.35;margin-top:2px;overflow-wrap:normal}
.flow-card .node.center{width:106px;height:106px;margin-top:0}
.flow-card .node.center .logo{font-size:27px}
.flow-card .flow-status{position:static;display:block;font-size:11px;margin-top:0}
.flow-top{gap:12px;flex-wrap:wrap}
.flow-card .node-icon .transparent-art,.tv .tv-flow .node-icon .transparent-art{width:100%;height:100%;aspect-ratio:1;max-width:none;border-radius:0}
.tv .tv-flow .node:not(.center){width:9cqw;padding:0;margin-top:-2.5cqw;line-height:1.2}
.tv .tv-flow .node-icon{width:5cqw;height:5cqw;margin-bottom:.3cqw}
.tv .tv-flow .node strong{font-size:1.15cqw;line-height:1.3;white-space:nowrap}
.tv .tv-flow .node small{display:block;font-size:.75cqw;line-height:1.3;margin-top:.15cqw}
.tv .tv-flow .node.center{width:8cqw;height:8cqw;margin-top:0}
.tv .tv-flow .node.center .logo{font-size:2cqw}
.tv-flow .flow-tooltip{bottom:105%}
@media(max-width:760px){.flow-card .flow{height:500px}.flow-card .node:not(.center){width:88px;margin-top:-32px}.flow-card .node-icon{width:64px;height:64px}.flow-card .node strong{font-size:14px}.flow-card .node small{font-size:11px}.flow-card .node.center{width:92px;height:92px}.flow-card .node.center .logo{font-size:24px}.flow-card .node.center strong{font-size:13px}.flow-card .node.center small{font-size:10px}}

.brand-caption{display:block;font-size:12px;font-weight:500;letter-spacing:0;color:var(--muted);margin-top:8px;white-space:nowrap}.mobile-brand{display:none}#sidebar .side-caption{margin-top:30px}@media(max-width:760px){.mobile-brand{display:flex;flex-direction:column;align-items:flex-start;gap:0}.mobile-brand .brand-caption{font-size:10px;margin-top:5px}.mobile-brand .mobile-logo{font-size:34px}header{min-height:86px}}

.tv-brand-caption{display:block;color:#bdd6ea;font-size:.63cqw;font-weight:500;letter-spacing:0;line-height:1.4;margin-top:.4cqw;white-space:nowrap}

.chart-time-label rect{fill:var(--surface);stroke:var(--blue);stroke-width:1}.chart-time-label text{fill:var(--ink)!important;font-size:13px!important;font-weight:650}.chart-time-label{pointer-events:none}.analysis-chart,.chart-svg{touch-action:pan-y}

/* Chart emphasis only while a legend item is hovered or keyboard-focused. */
.chart-series{transition:opacity .16s;animation:none}.chart-series.series-muted{opacity:0!important;pointer-events:none}.chart-series.series-focused{animation:chart-series-pulse 1.1s ease-in-out infinite;stroke-width:3.5;filter:drop-shadow(0 0 3px currentColor)}
@keyframes chart-series-pulse{0%,100%{opacity:1}50%{opacity:.4}}
.legend button{font-size:inherit;color:inherit;padding:3px 5px;border-radius:5px}.legend button:focus-visible{outline:2px solid var(--blue)}
.card,.tv-chart-panel{position:relative}.chart-value-tooltip{position:absolute;z-index:12;pointer-events:none;width:max-content;max-width:calc(100% - 16px);padding:10px 12px;border:1px solid var(--blue);border-radius:10px;background:var(--surface);color:var(--ink);box-shadow:0 5px 22px #0002;font-size:12px;line-height:1.5;text-align:left}.chart-value-tooltip>strong{display:block;margin-bottom:5px}.chart-value-tooltip>div{display:flex;gap:14px;justify-content:space-between}.chart-value-tooltip b{white-space:nowrap}.tv .chart-value-tooltip{background:#082038;color:#e9f6ff;font-size:max(9px,.65cqw)}
@media(prefers-reduced-motion:reduce){.chart-series.series-focused{animation:none;stroke-width:4}}

/* Zero solar output: stationary gray blink, never a false moving energy flow. */
.energy-streams .energy-route.route-idle[data-route="solar"] .stream-track{stroke:#8b95a4;stroke-width:2.4;animation:solar-idle-blink 1.8s ease-in-out infinite;opacity:.55}
@keyframes solar-idle-blink{0%,100%{opacity:.25}50%{opacity:.85}}
@media(prefers-reduced-motion:reduce){.energy-streams .energy-route.route-idle[data-route="solar"] .stream-track{animation:none;opacity:.55}}

/* Demo sign-in */
#login-screen{display:none}.login-locked #sidebar,.login-locked .shell{display:none!important}.login-locked #login-screen{display:flex;min-height:100dvh;align-items:center;justify-content:center;padding:32px 20px;background:radial-gradient(ellipse at top,#0785f918,transparent 65%),var(--bg)}
.login-card{width:100%;max-width:440px;padding:36px;background:var(--surface);border:1px solid var(--line);border-radius:26px;box-shadow:var(--shadow)}.login-card>.logo{font-size:48px;text-align:center}.login-brand{text-align:center;color:var(--muted);font-size:14px;margin:12px 0 28px}.login-card h1{font-size:26px;margin:0 0 8px}.login-intro{color:var(--muted);font-size:15px;margin:0 0 24px}.login-card label{display:block;font-size:14px;font-weight:600;margin:16px 0 7px}.login-card input,.login-card select{width:100%;min-height:48px}.login-submit{width:100%;margin-top:24px;justify-content:center}.login-divider{display:flex;align-items:center;gap:15px;color:var(--muted);font-size:14px;margin:22px 0}.login-divider:before,.login-divider:after{content:'';flex:1;height:1px;background:var(--line)}.login-social{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;padding:13px 10px;border:1px solid var(--line);border-radius:12px;margin:10px 0;background:var(--bg);font-size:14px}.google-mark{color:var(--blue);font-size:21px}.login-demo{font-size:12px;color:var(--muted);line-height:1.6;margin:20px 0 0}.login-card [hidden]{display:none!important}@media(max-width:480px){.login-card{padding:26px 22px}.login-locked #login-screen{padding:20px 14px}}
/* Shared language selector and TV-inspired entry screen */
.language-picker{display:flex;align-items:center;gap:7px;margin:0;font-size:13px;min-width:0}.language-picker select{width:auto;max-width:135px;min-height:36px;margin:0;padding:7px 26px 7px 10px;border-radius:10px}.login-language{position:absolute;top:24px;right:28px;color:#d8e9fb}.login-locked #login-screen{position:relative;background:linear-gradient(110deg,rgba(2,12,27,.85),rgba(4,22,45,.66)),url('assets/tv-background.png') center/cover fixed;--ink:#eef7ff;--muted:#a8bbd0;--line:#284763;--surface:#0b2035;--bg:#081b2d;--soft:#123d59;color:var(--ink);padding-top:92px;padding-bottom:40px}.login-card{background:linear-gradient(150deg,rgba(12,36,58,.97),rgba(5,19,36,.97));border-color:#2cb8dc66;box-shadow:0 22px 70px #0008,0 0 35px #00b7ef15;backdrop-filter:blur(14px)}.login-card .logo{color:#1bc5f4;text-shadow:0 0 24px #00b7ff44}.login-card .logo span{color:#dae5f2}.login-card input,.login-card select,.login-language select{background:#0a2034;color:#eef7ff;border-color:#31516a}.login-card input::placeholder{color:#839ab1}.login-card input:focus,.login-card select:focus{outline:2px solid #21c9ef;outline-offset:2px}.login-card .btn{background:linear-gradient(100deg,#0878e8,#08afd0);box-shadow:0 5px 22px #008dff30}.login-card .login-social{background:#112c44;border-color:#2c4b66;color:#eef7ff}.password-field{position:relative}.password-field input{padding-right:52px}.password-eye{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:38px;height:38px;display:grid;place-items:center;color:#93b5cf;border-radius:9px}.password-eye:hover,.password-visible{color:#30d5f6;background:#1e577342}.empty-offer .btn{animation:offer-invite 2.8s ease-in-out infinite}.tv-bottom .tv-upgrade button,.tv-bottom .tv-upgrade .btn{animation:offer-invite 2.8s ease-in-out infinite}@keyframes offer-invite{0%,100%{box-shadow:0 0 0 0 #0785f92b;filter:brightness(1)}50%{box-shadow:0 0 0 5px #0785f910,0 0 18px #0785f933;filter:brightness(1.09)}}@media(prefers-reduced-motion:reduce){.empty-offer .btn,.tv-bottom .tv-upgrade button,.tv-bottom .tv-upgrade .btn{animation:none}}@media(max-width:760px){header{height:auto;min-height:100px;flex-wrap:wrap;gap:12px;padding:16px}.header-actions{flex-wrap:wrap;justify-content:flex-end}.language-label{display:none}.language-picker select{max-width:118px;font-size:13px}.login-language{right:20px;top:20px}.login-language .language-label{display:inline}.login-card{padding:28px 22px}.warranty>div:nth-child(2){min-width:0}.warranty strong{overflow-wrap:anywhere}}
.tv-stat.ev-off b{animation:offer-invite 2.8s ease-in-out infinite}.tv-actions select{max-width:110px;padding:5px;font-size:12px;background:#0a2138;color:#def4ff;border:1px solid #2a5276;border-radius:7px}.tv-actions{align-items:center}@media(prefers-reduced-motion:reduce){.tv-stat.ev-off b{animation:none}}

.offer-node .node-icon{animation:equipment-invite 3s ease-in-out infinite}.offer-pulse{animation:offer-invite 2.8s ease-in-out infinite}@keyframes equipment-invite{0%,100%{transform:scale(1);box-shadow:0 0 0 0 #0785f900}50%{transform:scale(1.045);box-shadow:0 0 0 5px #0785f915,0 0 18px #0785f92b}}@media(prefers-reduced-motion:reduce){.offer-node .node-icon,.offer-pulse{animation:none}}
/* Visible touch-device invitation: normal motion gently scales; reduced motion only changes glow. */
.empty-offer .btn,.offer-pulse,.tv-stat.ev-off b{position:relative;animation:offer-mobile-pulse 2s ease-in-out infinite;transform-origin:center;will-change:transform,box-shadow}
@keyframes offer-mobile-pulse{0%,100%{transform:scale(1);box-shadow:0 0 0 0 rgba(7,133,249,.28);filter:brightness(1)}50%{transform:scale(1.025);box-shadow:0 0 0 7px rgba(7,133,249,.17),0 5px 26px rgba(7,133,249,.48);filter:brightness(1.16)}}
@keyframes offer-mobile-glow{0%,100%{box-shadow:0 0 0 2px rgba(7,133,249,.2);filter:brightness(1)}50%{box-shadow:0 0 0 5px rgba(7,133,249,.24),0 0 24px rgba(7,133,249,.45);filter:brightness(1.14)}}
@media(prefers-reduced-motion:reduce){.empty-offer .btn,.offer-pulse,.tv-stat.ev-off b{animation:offer-mobile-glow 2.8s ease-in-out infinite;transform:none;will-change:box-shadow}}

/* Theme-specific service icons: preserve original light artwork. */
.maintenance-light{display:contents}.maintenance-dark{display:none}.dark .maintenance-art .maintenance-light{display:none}.dark .maintenance-art .maintenance-dark{display:grid;place-items:center;color:#c5f2ff;background:radial-gradient(circle at 30% 20%,#246185,#12344f 75%);border:1px solid #58c8ed55;box-shadow:inset 0 1px 0 #c7f4ff20,0 8px 24px #0003,0 0 20px #17baff0d;border-radius:24px;width:90px;height:90px}.dark .service-art .maintenance-dark .icon{width:47px;height:47px;stroke-width:1.55;filter:drop-shadow(0 0 7px #3bcaff55)}.dark .service-tile:hover .maintenance-dark{border-color:#69d6fa99;background:radial-gradient(circle at 30% 20%,#2b7196,#153d5b 75%)}.dark .warranty .maintenance-dark{width:42px;height:42px;border-radius:12px;box-shadow:inset 0 1px 0 #c7f4ff15}.dark .warranty .maintenance-dark .icon{width:25px;height:25px;stroke-width:1.65}.dark .warranty .tile-icon{background:transparent}@media(max-width:760px){.dark .service-art .maintenance-dark{width:80px;height:80px;border-radius:22px}.dark .service-art .maintenance-dark .icon{width:42px;height:42px}}
/* Matching maintenance icon family across light and dark themes. */
.maintenance-art .maintenance-light{display:none}
.maintenance-art .maintenance-dark{display:grid;place-items:center;color:#087fc7;background:radial-gradient(circle at 30% 20%,#f8fdff,#deeffb 75%);border:1px solid #86bddb66;box-shadow:inset 0 1px 0 #fff,0 8px 24px #145a8510;border-radius:24px;width:90px;height:90px}
.service-art .maintenance-dark .icon{width:47px;height:47px;stroke-width:1.55;filter:drop-shadow(0 2px 3px #009ae51a)}
body:not(.dark) .service-tile:hover .maintenance-dark{border-color:#229cda99;background:radial-gradient(circle at 30% 20%,#fff,#cce9fa 75%)}
.warranty .maintenance-dark{width:42px;height:42px;border-radius:12px;box-shadow:inset 0 1px 0 #ffffffaa}
.warranty .maintenance-dark .icon{width:25px;height:25px;stroke-width:1.65}
.warranty .tile-icon.maintenance-art{background:transparent}
@media(max-width:760px){.service-art .maintenance-dark{width:80px;height:80px;border-radius:22px}.service-art .maintenance-dark .icon{width:42px;height:42px}}
/* Live navigation accent, shared by desktop and mobile. */
#nav button[onclick="go('uzivo')"],#mobile-nav button[onclick="go('uzivo')"]{color:#c53943;background:#e84b5710;border:1px solid #e84b5738;animation:live-tab-pulse 2.8s ease-in-out infinite}
#nav button[onclick="go('uzivo')"].active,#mobile-nav button[onclick="go('uzivo')"].active{background:#cc3b49;color:#fff;border-color:#de5964}
.dark #nav button[onclick="go('uzivo')"]:not(.active),.dark #mobile-nav button[onclick="go('uzivo')"]:not(.active){color:#ff929a;background:#e84b5718}
@keyframes live-tab-pulse{0%,100%{box-shadow:0 0 0 0 #e84b5700}50%{box-shadow:0 0 0 3px #e84b5718,0 0 13px #e84b5724}}
@media(prefers-reduced-motion:reduce){#nav button[onclick="go('uzivo')"],#mobile-nav button[onclick="go('uzivo')"]{animation:none;box-shadow:0 0 0 2px #e84b5718}}
/* Keep all live hub labels inside the circular content area on small screens. */
.flow-card .node.center{width:112px;height:112px;padding:10px 7px;gap:3px;box-sizing:border-box;cursor:default}
.flow-card .node.center .logo{font-size:26px;line-height:1;margin:0;flex:0 0 auto;letter-spacing:-1.5px}
.flow-card .node.center strong{font-size:14px;line-height:1.15;margin:0;max-width:100%;white-space:normal}
.flow-card .node.center small{font-size:11px;line-height:1.15;margin:0;width:78px;max-width:100%;white-space:normal;overflow-wrap:anywhere;text-wrap:balance;flex:0 0 auto}
/* Animate only the Key4S wordmark in the live system hub. */
.flow-card .node.center .logo{animation:live-wordmark-pulse 2.6s ease-in-out infinite;transform-origin:center;will-change:transform,opacity}
@keyframes live-wordmark-pulse{0%,100%{transform:scale(1);opacity:.85;text-shadow:0 0 0 transparent}50%{transform:scale(1.055);opacity:1;text-shadow:0 0 12px #ffffff88}}
@keyframes live-wordmark-glow{0%,100%{opacity:.85;text-shadow:0 0 0 transparent}50%{opacity:1;text-shadow:0 0 12px #ffffff88}}
@media(prefers-reduced-motion:reduce){.flow-card .node.center .logo{animation:live-wordmark-glow 2.8s ease-in-out infinite;transform:none;will-change:opacity}}

.admin-login-toggle{position:absolute;top:24px;left:28px;min-height:38px;padding:8px 12px;border:1px solid #42647d80;border-radius:10px;color:#c2d9eb;background:#0a203499;font-size:14px}.admin-login-toggle:hover,.admin-login-toggle:focus-visible{color:#fff;border-color:#28c4ec;background:#173b56}@media(max-width:480px){.admin-login-toggle{left:14px;top:20px;font-size:13px;padding:8px}.login-language{right:14px}.login-language .language-label{display:none}}

.live-grid.live-without-chart{grid-template-columns:minmax(0,1fr)}.live-without-chart .flow{max-width:620px;margin-inline:auto}.live-without-chart .live-side{display:block}
#support-chat{position:fixed;right:max(20px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));z-index:30;font-size:14px;line-height:1.45}.login-locked #support-chat{display:none}#chat-launcher{display:flex;align-items:center;gap:8px;padding:14px 18px;border-radius:30px;color:#fff;background:linear-gradient(130deg,#087eef,#05a7d3);box-shadow:0 6px 26px #0077cc44;border:1px solid #7adeff55;font-weight:650;min-height:50px}#chat-panel{position:absolute;bottom:70px;right:0;width:380px;max-width:calc(100vw - 32px);height:550px;max-height:calc(100dvh - 120px);display:flex;flex-direction:column;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:22px;overflow:hidden;box-shadow:0 18px 65px #03142944}#chat-panel[hidden]{display:none}.chat-head{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(110deg,#0b3050,#095783);color:#fff;padding:17px 18px;flex-shrink:0}.chat-head strong{font-size:17px}.chat-head small{display:block;color:#b5d9ed;font-size:12px;margin-top:3px}.chat-close{color:white;font-size:26px;width:40px;height:40px;border-radius:10px}.chat-close:hover{background:#ffffff15}.chat-scroll{overflow-y:auto;overscroll-behavior:contain;padding:16px;flex:1;min-height:0}.chat-message{max-width:94%;border-radius:15px;padding:11px 13px;margin-bottom:12px;background:var(--bg);border:1px solid var(--line);overflow-wrap:anywhere}.chat-message p{margin:0}.chat-user{margin-left:auto;background:var(--soft);color:var(--ink);border-color:#0785f926}.chat-bot{margin-right:auto}.chat-action{color:var(--blue);border:1px solid var(--line);padding:7px 10px;border-radius:9px;margin:10px 6px 0 0;font-size:13px}.chat-questions{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.chat-questions button{color:var(--blue);background:var(--soft);border:1px solid #0785f928;border-radius:13px;padding:9px 12px;text-align:left;font-size:13px}.chat-questions button:hover{border-color:var(--blue)}.chat-form{display:flex;gap:8px;padding:12px 14px;border-top:1px solid var(--line);flex-shrink:0}.chat-form input{min-width:0;width:100%;margin:0;font-size:16px;border-radius:12px}.chat-form>button{flex:0 0 44px;border-radius:12px;background:var(--blue);color:#fff;display:grid;place-items:center}.chat-foot{display:flex;justify-content:space-between;gap:8px;padding:0 14px 12px;font-size:11px;color:var(--muted);flex-shrink:0}.chat-foot a{white-space:nowrap}.chat-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.tv #support-chat{display:none}.tv #chat-panel{--surface:#102438;--bg:#0a1a2b;--ink:#e5f4ff;--muted:#adc2d5;--line:#29445d;--soft:#123852}.tv #chat-launcher{padding:10px 14px;min-height:44px}body:has(#support-chat) footer{padding-bottom:85px}@media(max-width:480px){#support-chat{right:14px;bottom:max(14px,env(safe-area-inset-bottom))}#chat-panel{width:calc(100vw - 28px);max-width:none;max-height:calc(100dvh - 105px);bottom:64px}.chat-head{padding:12px 15px}.chat-foot{font-size:10px}#chat-launcher{padding:12px 16px}}

/* Keep TV system status safely inside the circular hub. */
.tv .tv-flow .node.center{padding:.7cqw .6cqw;gap:.18cqw;line-height:1.1;cursor:default}
.tv .tv-flow .node.center .logo{margin:0;line-height:1;letter-spacing:-.12cqw;flex:0 0 auto}
.tv .tv-flow .node.center strong{margin:0;max-width:100%;font-size:1.05cqw;line-height:1.15;white-space:normal}
.tv .tv-flow .node.center small{margin:0;width:6.3cqw;max-width:100%;font-size:.75cqw;line-height:1.15;white-space:normal;overflow-wrap:anywhere;text-wrap:balance;flex:0 0 auto}

.tv .tv-flow .node.center .logo{animation:live-wordmark-pulse 2.6s ease-in-out infinite;transform-origin:center;will-change:transform,opacity}
@media(prefers-reduced-motion:reduce){.tv .tv-flow .node.center .logo{animation:live-wordmark-glow 2.8s ease-in-out infinite;transform:none;will-change:opacity}}

/* Shared rows keep import/export and charge/discharge cards aligned. */
.paired-metrics{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.paired-metrics>.energy-column{display:contents}
.paired-metrics>.energy-column>*{grid-column:1;min-width:0;margin:0}
.paired-metrics>.energy-column:nth-child(2)>*{grid-column:2}
.paired-metrics>.energy-column>:nth-child(1){grid-row:1;align-self:end}
.paired-metrics>.energy-column>:nth-child(2){grid-row:2}
.paired-metrics>.energy-column>:nth-child(3){grid-row:3}
.paired-metrics>.energy-column>:nth-child(4){grid-row:4}
.grid>*{min-width:0}
.kpi .value{margin-top:auto;overflow-wrap:anywhere}
.kpi-top{min-height:2.8em}
.hero-metric>div:last-child,.balance>div{min-width:0}
.balance>.btn,.balance>a{flex-shrink:0}
.service-tile{display:flex;flex-direction:column;align-items:flex-start}
.service-tile strong{min-height:2.6em;display:flex;align-items:center}
.service-tile p{margin-top:auto}
.feed-note{margin:14px 0 22px}
@media(max-width:760px){
.grid.g3:not(.analysis-detail .g3){grid-template-columns:minmax(0,1fr)}
.page-heading{flex-wrap:wrap}
.chart-header .segmented{max-width:100%;overflow-x:auto}
.balance{flex-wrap:wrap}
.warranty>div:nth-of-type(2){min-width:0;overflow-wrap:anywhere}
.warranty-right{flex-shrink:0}
}

.mix-layout{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1.2fr);align-items:center;gap:32px}.mix-donut{width:260px;max-width:100%;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;margin:auto}.mix-donut>div{width:74%;height:74%;border-radius:50%;background:var(--surface);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:18px}.mix-donut strong{font-size:28px}.mix-donut span{font-size:13px;color:var(--muted)}.mix-row{display:grid;grid-template-columns:1fr auto;gap:4px 14px;padding:16px 0;border-bottom:1px solid var(--line)}.mix-row small{grid-column:2;text-align:right;color:var(--muted)}.mix-row strong{font-variant-numeric:tabular-nums}.monthly-mix select{min-width:145px}@media(max-width:600px){.mix-layout{grid-template-columns:minmax(0,1fr);gap:18px}.mix-donut{width:230px}.mix-breakdown{width:100%}}

.mix-donut{position:relative;width:320px}.mix-ring-labels{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}.mix-donut>div{width:66%;height:66%;padding:26px}.mix-donut strong{font-size:26px}@media(max-width:600px){.mix-donut{width:290px;max-width:calc(100% - 24px)}}

.mix-row.mix-unavailable{color:var(--muted);background:var(--bg);border-radius:12px;padding:16px 12px}.mix-unavailable strong,.mix-unavailable small{color:var(--muted)}.mix-unavailable em{display:block;font-size:11px;font-style:normal;margin:3px 0 0 15px}

/* The sky changes with solar elevation; dashboard panels stay dark. */
.tv-scene{filter:brightness(var(--scene-brightness,.65)) saturate(var(--scene-saturation,1));transition:filter 10s linear}
.tv-sky-light{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(var(--sky-blue,99,150,188),var(--sky-day,0)) 0%,rgba(var(--sky-warm,238,117,67),var(--sky-twilight,0)) 27%,transparent 58%);mix-blend-mode:screen}
@media(prefers-reduced-motion:reduce){.tv-scene{transition:none}}

.app-splash{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;background:#090b0f;opacity:1;transition:opacity .35s ease;touch-action:none}.app-splash[hidden]{display:none}.app-splash.splash-finished{opacity:0;pointer-events:none}.splash-skip{display:flex;align-items:center;flex-direction:column;justify-content:center;width:100%;height:100%;border:0;background:transparent;cursor:pointer;color:white}.splash-wordmark{display:block;font-size:clamp(42px,10vw,72px);font-weight:850;line-height:1.1;letter-spacing:-3px;color:#05a8df}.splash-wordmark>span{color:#e2e6ec}.splash-caption{display:block;font-size:clamp(11px,2.7vw,15px);letter-spacing:3px;color:#98a8ba;margin-top:15px}.splash-playing .splash-wordmark{animation:splash-logo-reveal 1.5s ease-out both}.splash-playing .splash-caption{animation:splash-caption-reveal .8s .8s ease-out both}@keyframes splash-logo-reveal{0%{opacity:0;clip-path:inset(0 100% 0 0);transform:scale(.94);filter:blur(4px)}55%{opacity:1;clip-path:inset(0 0 0 0);transform:scale(1);filter:blur(0)}75%{text-shadow:0 0 24px #0aaaff55}100%{opacity:1;clip-path:inset(0 0 0 0);transform:scale(1);filter:blur(0);text-shadow:0 0 0 transparent}}@keyframes splash-caption-reveal{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.splash-playing .splash-wordmark,.splash-playing .splash-caption{animation:none}.app-splash{transition:none}}

.splash-caption{color:#249a50;letter-spacing:1.5px;font-weight:600}.splash-playing .splash-caption{animation:splash-caption-reveal 1.5s ease-out both}@media(prefers-reduced-motion:reduce){.splash-playing .splash-caption{animation:none}}

@font-face{font-family:Orbitron;src:url('assets/fonts/orbitron.ttf') format('truetype');font-weight:400 900;font-style:normal;font-display:swap}
.splash-caption{font-family:Orbitron,sans-serif;font-weight:500;font-size:clamp(12px,3.2vw,18px);letter-spacing:2px;color:#35c96c;text-shadow:0 0 12px #35c96c35;line-height:1.5}

/* Unclipped brand reveal, shared by app launch and TV entry. */
.app-splash{overflow:hidden;background:radial-gradient(ellipse at center,#103044 0%,#07121e 44%,#030810 100%)}
.splash-skip{position:relative;isolation:isolate;overflow:visible;padding:32px;perspective:900px}
.splash-skip:before,.splash-skip:after{content:"";position:absolute;pointer-events:none;z-index:-1;width:min(74vw,450px);aspect-ratio:1;border-radius:50%;border:1px solid #20cbf94d;box-shadow:0 0 36px #0acbff25,inset 0 0 32px #0acbff12;opacity:0}
.splash-skip:after{width:min(88vw,560px);border-color:#35c96c44;box-shadow:0 0 26px #35c96c18}
.splash-wordmark{overflow:visible;padding:.12em .3em .2em;line-height:1.25;letter-spacing:-.045em;font-size:clamp(52px,15vw,104px);text-shadow:0 2px 0 #046b9a,0 5px 0 #03384e,0 14px 26px #0009;clip-path:none!important}
.splash-wordmark>span{display:inline-block;padding-right:.08em;text-shadow:0 2px 0 #8c9fad,0 5px 0 #394d60,0 14px 26px #0009}
.splash-caption{margin-top:0;max-width:100%;text-align:center;font-size:clamp(11px,3vw,18px);letter-spacing:clamp(1px,.5vw,4px)}
.splash-playing .splash-wordmark{animation:brand-depth-reveal 2.6s cubic-bezier(.2,.7,.2,1) both}
.splash-playing .splash-caption{animation:brand-tagline 1s .55s both}
.splash-playing .splash-skip:before{animation:brand-energy-ring 2.6s ease-out both}
.splash-playing .splash-skip:after{animation:brand-energy-ring 2.6s .18s ease-out both}
@keyframes brand-depth-reveal{0%{opacity:0;transform:translateY(16px) rotateX(20deg) scale(.82);filter:blur(7px)}32%{opacity:1;transform:translateY(0) rotateX(0) scale(1);filter:blur(0) brightness(1)}57%{filter:blur(0) brightness(1.7);transform:scale(1.025)}80%,100%{opacity:1;transform:scale(1);filter:blur(0) brightness(1)}}
@keyframes brand-energy-ring{0%{opacity:0;transform:scale(.3) rotateX(58deg) rotateZ(-35deg)}32%{opacity:.85}75%{opacity:.45}100%{opacity:0;transform:scale(1.5) rotateX(58deg) rotateZ(40deg)}}
@keyframes brand-tagline{from{opacity:0;transform:translateY(12px);filter:blur(5px)}to{opacity:1;transform:translateY(0);filter:blur(0)}}
@media(prefers-reduced-motion:reduce){.splash-playing .splash-wordmark,.splash-playing .splash-caption{animation:none;opacity:1;transform:none;filter:none}.splash-playing .splash-skip:before,.splash-playing .splash-skip:after{animation:none}}

.certificate-entry{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-top:24px;padding-top:24px;border-top:1px solid var(--line)}.certificate-entry h3{margin:0 0 6px}.certificate-entry p{margin:0;color:var(--muted);font-size:14px}.certificate-entry .btn{background:#138451;color:white}

/* TV controls retain their own box, independent of text baseline. */
.tv-heading .tv-actions{align-items:center;flex-wrap:nowrap;padding:5px;border-radius:10px;background:#061726e8;gap:6px}
.tv-actions button{flex:0 0 36px;width:36px;height:36px;min-width:36px;min-height:36px;padding:0;line-height:1;font:26px/1 system-ui;overflow:hidden;align-self:center}
.tv-actions .icon{width:18px;height:18px}.tv-actions select{height:36px;margin:0;min-width:0}
@media(max-width:760px){.tv-heading .tv-actions{position:fixed;top:max(8px,env(safe-area-inset-top));right:max(8px,env(safe-area-inset-right));z-index:90}.tv-actions button{flex-basis:40px;width:40px;height:40px}.tv-actions select{height:40px;max-width:95px}}

.green-certificate-mark{display:grid;place-items:center;flex:0 0 64px;width:64px;height:64px;border:1px solid #4dd99c;border-radius:50%;color:#b8f9d8;background:radial-gradient(circle at 30% 20%,#27aa70,#074b35);box-shadow:0 0 24px #2acb7830}.green-certificate-mark .icon{width:36px;height:36px;stroke-width:1.5}.certificate-entry{background:linear-gradient(120deg,#1abb7010,transparent);border-radius:14px;padding:20px}.certificate-entry>div{flex:1;min-width:180px}.certificate-entry .btn{min-height:48px}.certificate-open{overflow:hidden!important}#green-certificate-dialog{padding:0;border:1px solid #316b51;border-radius:20px;background:#091c15;width:min(940px,96vw);max-width:96vw;height:94dvh;max-height:94dvh;overflow:hidden;color:#effaf4}#green-certificate-dialog[open]{display:flex;flex-direction:column}#green-certificate-dialog::backdrop{background:#020d18cf;backdrop-filter:blur(8px)}.green-dialog-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;border-bottom:1px solid #28533e;flex-shrink:0}.green-dialog-bar strong{font-size:16px}.green-dialog-bar button{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border:1px solid #537565;border-radius:12px;background:#193b2c;color:white;font:30px/1 system-ui;cursor:pointer}#green-certificate-dialog iframe{display:block;border:0;width:100%;flex:1;min-height:0;background:#09151b}@media(max-width:600px){.certificate-entry{display:grid;grid-template-columns:56px minmax(0,1fr);gap:14px;padding:16px}.green-certificate-mark{width:56px;height:56px}.certificate-entry>div{min-width:0}.certificate-entry .btn{grid-column:1/-1;width:100%;justify-content:center}.certificate-entry h3{font-size:18px}#green-certificate-dialog{margin:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;border:0}.green-dialog-bar{padding:max(10px,env(safe-area-inset-top)) 14px 10px}.green-dialog-bar strong{font-size:15px}}

#green-certificate-dialog .green-dialog-bar button{display:flex;align-items:center;justify-content:center;padding:0;box-sizing:border-box;line-height:0;align-self:center}#green-certificate-dialog .green-dialog-bar button svg{display:block;flex:none;width:22px;height:22px;margin:0;transform:none}

.live-source-status{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:10px 0 18px;padding:12px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface);font-size:14px}.live-source-status small{flex-basis:100%;color:var(--muted)}.live-source-status[hidden]{display:none}.tv .live-source-status{display:none}

/* Historical sources: consistent chart on mobile and desktop. */
.historical-mix .mix-controls{display:flex;gap:8px;flex-wrap:wrap}.historical-mix .mix-controls input,.historical-mix .mix-controls select{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:10px;min-width:0;max-width:100%;font:inherit}.historical-mix-ring{width:100%;max-width:340px;justify-self:center}.historical-mix-ring svg{width:100%;height:auto;display:block}.mix-progress{color:var(--muted);font-size:13px;margin:12px 0}.mix-empty{padding:65px 20px;text-align:center;color:var(--muted)}.mix-summary{display:flex;gap:14px;flex-wrap:wrap;margin:16px 0;padding:15px;background:var(--surface);border:1px solid var(--line);border-radius:14px}.mix-summary span{flex:1;min-width:140px;font-size:13px;color:var(--muted)}.mix-summary b{display:block;color:var(--ink);font-size:22px;margin-bottom:5px}.historical-mix .mix-row span{min-width:0}.historical-mix .chart-header{flex-wrap:wrap;gap:12px}@media(max-width:650px){.historical-mix .mix-layout{grid-template-columns:1fr}.historical-mix .mix-controls{width:100%}.historical-mix .mix-controls input{flex:1;width:150px}.historical-mix .mix-row{gap:8px}}

.mix-controls .icon-button{flex:none;width:38px;min-width:38px}.mix-controls input[type=number],.analysis-date input[type=number]{width:92px!important;flex:none!important}.analysis-date select{min-width:0;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:10px;font:inherit}.analysis-date .display-date{width:155px}.mix-controls .display-date{width:150px!important;flex:none!important}.mix-controls button:disabled{opacity:.35;cursor:default}@media(max-width:420px){.historical-mix .mix-controls{gap:5px}.historical-mix .mix-controls>select:first-child{width:100%}.analysis-date{gap:5px}.analysis-date select{max-width:120px}}

/* Keep financial amounts together inside the card at narrow mobile widths. */
.money-kpi{min-width:0;container-type:inline-size}.money-kpi .value{display:flex;align-items:baseline;flex-wrap:wrap;column-gap:6px;row-gap:2px;font-size:clamp(16px,8cqi,28px);font-variant-numeric:tabular-nums;letter-spacing:-.4px}.money-kpi .money-amount{white-space:nowrap;max-width:100%;line-height:1.3}.money-kpi .unit{white-space:nowrap;font-size:12px}.money-kpi .kpi-top{min-height:30px}.money-kpi .value{margin-top:auto}

/* Period controls form a stable 44px-high row, including Safari/iPhone. */
.analysis-date,.historical-mix .mix-controls{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;gap:8px;align-items:center;width:100%;max-width:380px;min-width:0;flex-wrap:unset}.historical-mix .mix-controls>select:first-child{grid-column:1/-1;width:100%;height:44px;margin:0}.period-fields{display:grid;align-items:center;gap:8px;min-width:0;width:100%}.period-fields.single{grid-template-columns:minmax(0,1fr)}.period-fields.month{grid-template-columns:minmax(0,1fr) 78px}.analysis-date .period-fields input,.analysis-date .period-fields select,.historical-mix .mix-controls .period-fields input,.historical-mix .mix-controls .period-fields select{display:block;box-sizing:border-box;width:100%!important;min-width:0;max-width:none;height:44px;min-height:44px;margin:0;padding:0 8px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font:inherit;font-size:15px;line-height:normal;flex:initial!important}.period-fields input{text-align:center}.period-fields input[type=number]{appearance:textfield;-moz-appearance:textfield}.period-fields input::-webkit-inner-spin-button,.period-fields input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.analysis-date>.icon-button,.historical-mix .mix-controls>.icon-button{display:grid;place-items:center;width:40px;min-width:40px;height:44px;margin:0;padding:0;line-height:1;align-self:center}.historical-mix .chart-header{align-items:center}.historical-mix .mix-controls{margin-left:auto}@media(max-width:480px){.analysis-date,.historical-mix .mix-controls{gap:6px;grid-template-columns:36px minmax(0,1fr) 36px;max-width:100%}.analysis-date>.icon-button,.historical-mix .mix-controls>.icon-button{width:36px;min-width:36px}.period-fields.month{grid-template-columns:minmax(0,1fr) 70px;gap:6px}.analysis-date .period-fields input,.analysis-date .period-fields select,.historical-mix .mix-controls .period-fields input,.historical-mix .mix-controls .period-fields select{font-size:14px;padding:0 6px}}

#provider-picker[hidden]{display:none!important}#provider-picker{margin-bottom:12px}#provider-picker select{min-width:0;width:100%}

/* Provider-specific name search: compact on desktop, full width on phones. */
.station-picker{align-items:flex-start}.station-picker>label{padding-top:13px}.station-picker-controls{width:100%;max-width:520px;min-width:0}.station-picker-controls select{width:100%;max-width:100%}.station-search{position:relative;margin-bottom:8px}.station-search input{width:100%;min-width:0;margin:0;padding:12px 42px 12px 14px;background:var(--surface);color:var(--ink);font:inherit;font-size:14px;border:1px solid var(--border);border-radius:12px}.station-search input:focus{outline:2px solid var(--blue);outline-offset:1px}.station-search input::-webkit-search-cancel-button{display:none}.station-search button{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:36px;height:36px;border:0;background:transparent;color:var(--muted);font-size:24px;cursor:pointer}.station-search button[hidden]{display:none}.station-search-status{display:block;margin-top:7px;font-size:12px;color:var(--muted)}.station-search-status[hidden]{display:none}@media(max-width:760px){.station-picker>label{padding-top:0}.station-picker-controls{max-width:none}.station-search input{font-size:16px}}

.station-search-results{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:120;max-height:min(320px,45vh);overflow-y:auto;overscroll-behavior:contain;background:var(--surface);color:var(--ink);border:1px solid var(--border);border-radius:12px;box-shadow:0 12px 32px #0003;padding:6px}.station-search-results[hidden]{display:none}.station-search-option{padding:12px 10px;min-height:44px;line-height:1.4;border-radius:7px;cursor:pointer;font-size:14px;overflow-wrap:anywhere}.station-search-option:hover,.station-search-option.highlighted{background:var(--soft);color:var(--blue)}.station-search-empty{padding:14px;color:var(--muted);font-size:14px}

/* One coherent station toolbar, shared by all provider catalogs. */
.portal-toolbar{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);margin-bottom:24px;isolation:isolate;z-index:5}
.portal-toolbar-controls{display:grid;grid-template-columns:minmax(180px,240px) minmax(0,1fr);gap:20px;padding:20px 22px;background:linear-gradient(120deg,var(--soft),transparent 75%);border-radius:20px 20px 0 0}
.portal-toolbar .plant-picker{display:block;min-width:0;margin:0}.portal-toolbar .plant-picker[hidden]{display:none}.portal-toolbar .plant-picker>label{font-size:11px;font-weight:650;letter-spacing:.6px;padding:0;margin:0 0 7px;line-height:1.4;color:var(--muted)}
.portal-toolbar .plant-picker select,.portal-toolbar .station-search input{height:48px;margin:0;background:var(--surface);border:1px solid var(--line);border-radius:12px;font-size:14px;box-shadow:0 2px 5px #00000003}
.portal-toolbar .plant-picker select{padding:0 14px;width:100%;max-width:none;font-weight:600}.portal-toolbar .station-picker-controls{max-width:none}.portal-toolbar .station-search{margin:0}.portal-toolbar .station-search input{padding-left:44px;padding-right:42px;font-weight:450}.station-search-glyph{position:absolute;left:15px;top:14px;width:20px;height:20px;color:var(--muted);pointer-events:none}.portal-toolbar .station-search:focus-within .station-search-glyph{color:var(--blue)}
.portal-toolbar .station-search input:focus{outline:2px solid #0785f955;outline-offset:2px;border-color:var(--blue)}.portal-toolbar .station-search-status{font-size:11px;margin:6px 0 0}.portal-toolbar .station-search-results{border-color:var(--line);top:calc(100% + 9px);padding:7px;box-shadow:0 14px 40px #0b244b25;border-radius:14px}.portal-toolbar .station-search-option{padding:12px 14px;border-radius:9px;font-weight:500}.portal-toolbar .station-search-option.highlighted{box-shadow:inset 3px 0 var(--blue)}
.portal-toolbar>.client{margin:0;padding:18px 22px;border-top:1px solid var(--line);gap:14px;min-width:0}.portal-toolbar .client-icon{width:46px;height:46px;border-radius:13px;flex:0 0 46px}.portal-toolbar .client-icon .icon{width:27px;height:27px}.portal-toolbar .client>div:nth-child(2){min-width:0;flex:1}.portal-toolbar .client h2{font-size:18px;line-height:1.35;overflow-wrap:anywhere;letter-spacing:-.3px}.portal-toolbar .client p{font-size:12px;margin-top:3px;overflow-wrap:anywhere}.portal-toolbar .client>.status{font-size:11px;padding:6px 10px;flex-shrink:0}.portal-toolbar-controls:has(#provider-picker[hidden]) .station-picker{grid-column:1/-1}.tv .portal-toolbar{display:none}
@media(max-width:760px){.portal-toolbar{border-radius:16px;margin-bottom:18px}.portal-toolbar-controls{padding:16px;gap:13px;grid-template-columns:1fr;border-radius:16px 16px 0 0}.portal-toolbar .plant-picker select,.portal-toolbar .station-search input{height:46px;font-size:16px}.portal-toolbar>.client{padding:15px 16px;gap:11px;flex-wrap:wrap}.portal-toolbar .client h2{font-size:16px}.portal-toolbar .client p{font-size:11px}.portal-toolbar .client-icon{width:40px;height:40px;flex-basis:40px}.portal-toolbar .client>.status{margin-left:auto}.portal-toolbar .station-search-results{max-height:min(300px,42vh)}}
@media(max-width:390px){.portal-toolbar .client>.status{margin-left:51px}.portal-toolbar .client>div:nth-child(2){flex-basis:calc(100% - 51px)}}

.manage-users-link{display:inline-flex;align-items:center;gap:8px;padding:10px 12px;border-radius:11px;background:var(--soft);color:var(--blue);font-size:13px;font-weight:600;white-space:nowrap}.manage-users-link[hidden]{display:none}.manage-users-link .icon{width:19px;height:19px}@media(max-width:1100px){header{height:auto;min-height:83px;flex-wrap:wrap;gap:12px;padding-top:14px;padding-bottom:14px}.header-actions{flex-wrap:wrap;gap:9px}}@media(max-width:760px){.header-actions .manage-users-link{font-size:12px;padding:9px}.header-actions{justify-content:flex-end}.manage-users-link .icon{width:16px}}

.ticket-link{position:relative}.ticket-count{background:#e54860;color:white;border-radius:20px;padding:2px 7px;font-size:12px}.ticket-link.has-unread{color:#e54860;animation:ticketGlow 2s ease-in-out infinite}@keyframes ticketGlow{50%{box-shadow:0 0 0 5px #e5486025}}@media(prefers-reduced-motion:reduce){.ticket-link.has-unread{animation:none;box-shadow:0 0 0 3px #e5486025}}

.battery-flow-power{display:block;font-size:11px;line-height:1.3;color:var(--ink);white-space:normal}.battery-flow-power b{white-space:nowrap}.battery-power-reading{margin-top:14px;padding:12px 15px;border-radius:12px;background:var(--soft);display:flex;flex-direction:column;gap:3px}.battery-power-reading>span{font-size:13px;color:var(--muted)}.battery-power-reading>strong{font-size:28px;line-height:1.2;font-variant-numeric:tabular-nums}.battery-power-reading small{font-size:15px;font-weight:500}.tv .battery-flow-power{font-size:.68cqw;color:#e7f5ff;line-height:1.2}

#session-loading{display:none}.auth-pending.login-locked #login-screen{display:none!important}.auth-pending.login-locked #session-loading{display:flex;min-height:100dvh;align-items:center;justify-content:center;background:var(--bg);color:var(--muted);font-size:14px}

.station-load-state{max-width:760px;margin:24px auto;padding:clamp(24px,5vw,44px)}.station-load-state h2{margin:0 0 12px}.station-load-state p{color:var(--muted);margin:0 0 22px}.station-load-state[aria-busy="true"]{border-left:3px solid var(--blue)}
