:root{color-scheme:dark;--bg:#101714;--surface:#19221d;--surface2:#1e2922;--line:#2b392f;--text:#f0f4ed;--muted:#a2b2a6;--accent:#c5e7a3;--accent-ink:#22331b;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:15px;line-height:1.5}button,input,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button,input{font:inherit}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.5}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--accent);outline-offset:4px}svg{width:24px;height:24px;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}h1,h2,h3,p{margin:0}h1{font-weight:500;font-size:30px;letter-spacing:-1px}h2{font-size:26px;font-weight:500;letter-spacing:-.7px}h3{font-size:17px;font-weight:500}.demo-eyebrow{font-size:10px;letter-spacing:1.8px;text-transform:uppercase;color:var(--muted);margin-bottom:7px}
.demo-skip{position:fixed;top:-60px;left:16px;z-index:100;background:var(--accent);color:var(--accent-ink);padding:12px}.demo-skip:focus{top:12px}
.demo-shell{display:grid;grid-template-columns:208px minmax(0,1fr);min-height:100dvh}.demo-sidebar{padding:26px 18px;border-right:1px solid var(--line);display:flex;flex-direction:column;position:sticky;top:0;height:100dvh}.demo-brand{font-size:34px;letter-spacing:-2px;display:flex;align-items:center;gap:14px;min-height:58px;margin-bottom:34px}.demo-brand span{font-size:10px;letter-spacing:1px;color:var(--accent);padding:4px 8px;border:1px solid #506147;border-radius:5px}.demo-nav{display:flex;flex-direction:column;gap:8px}.demo-nav button{display:flex;align-items:center;gap:12px;min-height:55px;padding:12px 14px;border:0;border-radius:13px;background:transparent;text-align:left;color:var(--muted);font-size:14px}.demo-nav button[aria-selected="true"]{background:var(--accent);color:var(--accent-ink);font-weight:600}.demo-nav button:hover{background:var(--surface2)}.demo-nav button[aria-selected="true"]:hover{background:var(--accent)}.demo-sidebar-bottom{margin-top:auto;color:var(--muted);font-size:11px;padding:20px 8px;line-height:1.8}.demo-sidebar-bottom a{display:flex;min-height:48px;align-items:center;border-top:1px solid var(--line);margin-top:15px;font-size:13px}.demo-status-dot{width:6px;height:6px;display:inline-block;border-radius:50%;background:var(--accent);margin-right:8px}
.demo-workspace{max-width:1600px;width:100%;padding:24px 30px 14px;min-width:0}.demo-topbar{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:20px}.demo-top-actions{display:flex;gap:20px;align-items:center}.demo-languages{display:flex;gap:6px}.demo-languages a{display:flex;align-items:center;justify-content:center;min-height:44px;min-width:34px;color:var(--muted);font-size:12px}.demo-languages a[aria-current]{color:var(--text);border-bottom:1px solid var(--accent)}.demo-icon-button{min-height:48px;min-width:48px;border:1px solid var(--line);border-radius:13px;background:var(--surface);font-size:26px}
.demo-hint{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 18px;border:1px solid #506147;border-radius:14px;background:#18231b;margin-bottom:25px;font-size:12px;color:var(--muted)}.demo-hint>span{max-width:740px}.demo-hint button{border:0;background:transparent;min-height:44px;flex-shrink:0;color:var(--accent);font-size:12px;padding:8px}.demo-intro{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:8px 0 22px}.demo-intro>div>p:last-child{margin-top:7px;color:var(--muted);font-size:13px}.demo-weather{display:flex;gap:13px;align-items:center}.demo-weather svg{width:36px;height:36px;color:#edc386}.demo-weather small{display:block;color:var(--muted);font-size:10px}.demo-weather strong{font-size:15px;font-weight:500;white-space:nowrap}
.demo-card{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:22px;min-width:0}.demo-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:22px}.demo-label{display:flex;gap:10px;align-items:center;color:var(--muted);font-size:12px}.demo-label svg{width:20px;height:20px;color:var(--accent)}.demo-metric>strong{display:block;font-size:38px;letter-spacing:-1.5px;font-weight:500;line-height:1.2;margin-top:15px;font-variant-numeric:tabular-nums}.demo-metric strong small,.demo-temperature strong small,.demo-ev-readings strong small{font-size:15px;letter-spacing:0;margin-left:7px;color:var(--muted);font-weight:400}
.demo-scenarios{display:flex;gap:8px;margin:0 0 20px;padding:5px;background:#0b120e;border:1px solid var(--line);border-radius:14px;max-width:580px}.demo-scenarios button{flex:1;min-height:46px;padding:10px;border:0;background:transparent;border-radius:10px;color:var(--muted);font-size:14px}.demo-scenarios button[aria-pressed="true"]{background:var(--accent);color:var(--accent-ink);font-weight:600}
.demo-home-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:18px;margin-bottom:18px}.demo-section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.demo-section-title>span{font-size:12px;color:var(--accent);border:1px solid var(--line);padding:3px 9px;border-radius:99px}.demo-light-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.demo-light{position:relative;padding:18px 14px;background:var(--surface2);border:1px solid var(--line);border-radius:15px;display:flex;flex-direction:column;gap:8px;min-height:124px;text-align:left}.demo-light>svg{color:var(--muted)}.demo-light>span{font-size:14px}.demo-light>small{font-size:11px;color:var(--muted)}.demo-light.is-on{background:linear-gradient(135deg,#514525,#332c1d);border-color:#b19655;color:#fff0c0}.demo-light.is-on>svg{color:#ffe394;filter:drop-shadow(0 0 4px #ffd76b55)}.demo-light.is-on small{color:#ead19b}.demo-light>.demo-switch{position:absolute;top:19px;right:14px}
.demo-switch{height:21px;width:36px;border:1px solid #536052;border-radius:20px;background:#303d32;position:relative;flex-shrink:0}.demo-switch:before{content:'';position:absolute;left:3px;top:3px;width:13px;height:13px;border-radius:50%;background:#8a9a8d;transition:transform .18s}.is-on .demo-switch{background:var(--accent);border-color:var(--accent)}.is-on .demo-switch:before{background:var(--accent-ink);transform:translateX(14px)}.demo-light.is-on .demo-switch{background:#f5d374;border-color:#f5d374}.demo-light.is-on .demo-switch:before{background:#765a22}
.demo-temperature{text-align:center;margin:18px 0}.demo-temperature>strong{display:block;font-size:48px;letter-spacing:-2px;font-weight:500;font-variant-numeric:tabular-nums}.demo-temperature p{color:var(--muted);font-size:11px;margin-top:3px}.demo-temp-control{display:grid;grid-template-columns:48px 1fr 48px;align-items:center;text-align:center;gap:10px;padding:12px 0 18px}.demo-temp-control button{min-height:48px;border:1px solid var(--line);background:var(--surface2);border-radius:12px;font-size:24px}.demo-temp-control small{display:block;font-size:10px;color:var(--muted)}.demo-temp-control strong{font-size:25px;font-weight:500}.demo-toggle{min-height:48px;width:100%;border:1px solid var(--line);background:var(--surface2);border-radius:12px;display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 15px;font-size:12px;text-align:left}
.demo-devices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:18px}.demo-device-head{display:flex;align-items:center;gap:12px;margin-bottom:20px}.demo-device-head p{font-size:11px;color:var(--muted);margin-top:4px}.demo-device-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:13px;background:var(--surface2);color:var(--accent);flex-shrink:0}.demo-device>.demo-toggle{margin-top:34px}.demo-button{border:1px solid var(--accent);background:var(--accent);color:var(--accent-ink);min-height:48px;padding:12px 17px;border-radius:12px;font-size:13px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;text-align:center}.demo-gate-art{height:53px;overflow:hidden;display:flex;border-left:5px solid #536052;border-right:5px solid #536052;margin:0 5px 16px;gap:2px}.demo-gate-art>i{flex:1;border:2px solid #647e52;background:repeating-linear-gradient(90deg,#1e2922 0,#1e2922 11px,#647e52 11px,#647e52 13px);transition:transform 1.2s}.demo-gate-art.is-open>i:first-child{transform:translateX(-90%)}.demo-gate-art.is-open>i:last-child{transform:translateX(90%)}.demo-gate>.demo-button{width:100%}.demo-ev-readings{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:12px 0}.demo-ev-readings strong{font-size:33px;font-weight:500;font-variant-numeric:tabular-nums}.demo-ev-readings>span{color:var(--accent);font-size:13px}.demo-progress{height:5px;border-radius:5px;background:#303d32;margin:14px 0 18px}.demo-progress>i{display:block;width:58%;height:100%;background:var(--accent);border-radius:5px;transition:width .4s}
.demo-security{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:16px 18px;display:flex;gap:13px;align-items:center;width:100%;min-height:64px;text-align:left}.demo-security svg{color:var(--accent)}.demo-security>.demo-switch{margin-left:auto}.demo-security.is-on{border-color:#829763;background:#23321e}.demo-range{display:block;color:var(--muted);font-size:13px;margin-top:30px}.demo-range strong{float:right;color:var(--text);font-weight:500}.demo-range input{width:100%;height:48px;display:block;accent-color:var(--accent);margin:4px 0 0}.demo-chart svg{display:block;width:100%;height:auto;margin-top:20px;stroke-width:2}.demo-chart polyline{stroke:var(--accent);stroke-width:3}.chart-axis{stroke:#506147;stroke-width:1}.chart-grid{stroke:var(--line);stroke-dasharray:4 7}.demo-chart text{fill:var(--muted);stroke:none;font-size:12px;font-family:inherit}.demo-loads{margin-top:18px}.demo-loads h3{margin-bottom:15px}.demo-load-row{display:grid;grid-template-columns:1fr 130px 70px;gap:20px;align-items:center;border-top:1px solid var(--line);padding:12px 0;font-size:12px}.demo-load-row strong{text-align:right;font-weight:500}.demo-load-row i{height:5px;background:var(--accent);border-radius:5px;max-width:100%}
.demo-contact{display:flex;align-items:center;justify-content:space-between;gap:22px;border-top:1px solid var(--line);margin-top:32px;padding-top:25px}.demo-contact h2{font-size:21px}.demo-contact p{font-size:12px;color:var(--muted);margin-top:5px}.demo-contact .demo-button{flex-shrink:0}.demo-footer{display:flex;justify-content:space-between;gap:15px;color:var(--muted);font-size:10px;letter-spacing:.5px;padding:26px 0 5px}.demo-toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--accent);color:var(--accent-ink);padding:12px 22px;border-radius:12px;max-width:calc(100vw - 32px);z-index:30;font-size:13px;box-shadow:0 5px 30px #0005}.demo-nojs{padding:20px;color:var(--accent)}[hidden]{display:none!important}
@media(min-width:1600px){.demo-workspace{padding-left:50px;padding-right:50px}.demo-card{padding:26px}.demo-light{min-height:147px}}
@media(max-width:1100px){.demo-shell{grid-template-columns:175px minmax(0,1fr)}.demo-sidebar{padding:24px 12px}.demo-workspace{padding:22px}.demo-home-grid{grid-template-columns:1fr 1fr}.demo-devices{grid-template-columns:repeat(2,minmax(0,1fr))}.demo-card{padding:18px}.demo-weather{display:none}}
@media(max-width:780px){.demo-shell{display:block}.demo-sidebar{position:static;height:auto;border-right:0;border-bottom:1px solid var(--line);padding:14px 18px 10px}.demo-brand{font-size:29px;margin-bottom:12px;min-height:40px}.demo-nav{flex-direction:row;overflow-x:auto;gap:6px;padding-bottom:5px}.demo-nav button{flex-shrink:0;min-height:44px;gap:7px;padding:10px;font-size:12px}.demo-nav svg{width:19px;height:19px}.demo-sidebar-bottom{display:none}.demo-workspace{padding:20px 18px}.demo-topbar{align-items:flex-start;gap:14px}.demo-topbar h1{font-size:25px}.demo-top-actions{gap:8px}.demo-languages{gap:1px}.demo-languages a{min-width:28px;font-size:10px}.demo-icon-button{display:none}.demo-hint{align-items:flex-start;flex-direction:column;gap:6px;padding:14px}.demo-hint button{min-height:38px;padding:5px 0}.demo-intro{margin-bottom:18px}.demo-intro h2{font-size:23px}.demo-metrics{gap:8px}.demo-metric{padding:15px 11px;border-radius:15px}.demo-metric .demo-label{display:block;font-size:10px;line-height:1.6;min-height:34px}.demo-label svg{display:none}.demo-metric>strong{font-size:28px;letter-spacing:-1px;margin-top:9px}.demo-metric strong small{font-size:10px;margin-left:3px}.demo-home-grid{grid-template-columns:1fr}.demo-devices{gap:12px}.demo-device-head{gap:9px}.demo-device-head h3{font-size:15px}.demo-device-head .demo-device-icon{width:35px;height:35px;border-radius:10px}.demo-device-head p{font-size:10px}.demo-device-head svg{width:21px;height:21px}.demo-devices .demo-card{padding:15px}.demo-contact{align-items:flex-start;flex-direction:column}.demo-load-row{grid-template-columns:1fr 50px 60px;gap:10px}.demo-security{font-size:13px}}
@media(max-width:370px){.demo-workspace{padding-left:13px;padding-right:13px}.demo-topbar h1{font-size:22px}.demo-topbar .demo-eyebrow{font-size:9px;letter-spacing:1px}.demo-devices{grid-template-columns:1fr}.demo-metric>strong{font-size:24px}.demo-light{padding:16px 12px}.demo-light>span{font-size:13px}.demo-light>.demo-switch{right:11px;width:33px}.demo-contact .demo-button{width:100%}}
@media(prefers-reduced-motion:reduce){*,*:before{transition:none!important;scroll-behavior:auto!important}}

#demo-energy .demo-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
