:root{color:#18333a;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;background:#f5f4ef;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.preview-banner{color:#755b2c;background:#f4ead9;border:1px solid #ead5ad;border-radius:10px;margin-bottom:24px;padding:11px 15px;font-size:12px;font-weight:700}.metrics-panel{border-top:1px solid #e8eee9;margin-top:18px;padding-top:20px}.metrics-head,.history-head{justify-content:space-between;align-items:center;gap:12px;display:flex}.history-head{flex-wrap:wrap}.metrics-head h3{letter-spacing:-.02em;margin-top:5px;font-size:15px}.metrics-head>span{color:#8a9b93;font-size:10px}.power-now{background:#eaf3eb;border-radius:12px;justify-content:space-between;align-items:center;margin-top:16px;padding:18px 20px;display:flex}.power-now small{color:#728f7d;margin-bottom:5px;font-size:10px;display:block}.power-now strong{letter-spacing:-.04em;color:#1b5d48;font-size:28px}.power-now>span{color:#b69b58;font-size:25px}.history-panel{margin-top:18px}.history-head strong,.history-head small{display:block}.history-head strong{font-size:12px}.history-head small{color:#8a9c94;margin-top:3px;font-size:10px}.period-switch{background:#edf2ed;border-radius:8px;flex-wrap:wrap;gap:3px;padding:3px;display:flex}.period-switch button{color:#668278;white-space:nowrap;background:0 0;border:0;border-radius:6px;padding:7px 8px;font-size:10px;font-weight:750}.period-switch button.selected{color:#1a5849;background:#fff;box-shadow:0 1px 4px #1d524318}.history-chart{color:#8ca19a;place-items:center;min-height:185px;margin-top:11px;font-size:11px;display:grid}.history-chart svg{width:100%;height:auto;max-height:220px;overflow:visible}.history-chart svg text{fill:#91a39b;font:11px Inter,ui-sans-serif,sans-serif}.chart-line{fill:none;stroke:#3b9375;stroke-width:3px;stroke-linejoin:round;stroke-linecap:round}.chart-axis{stroke:#b9ccc0;stroke-width:1px}.chart-grid{stroke:#e4eee8;stroke-width:1px;stroke-dasharray:4 4}.chart-empty,.sensor-empty,.chart-note{color:#8ca099;font-size:11px;line-height:1.5}.chart-note{margin-top:5px}.sensor-empty{padding-top:16px}.all-metrics{border-top:1px solid #ebf0ea;margin-top:15px;padding-top:14px}.all-metrics summary{cursor:pointer;color:#426e5a;font-size:11px;font-weight:750}.all-metrics summary span{color:#98aa9f;margin-left:5px}.metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px;display:grid}.metric{background:#f7faf6;border-radius:8px;min-width:0;padding:10px}.metric small{color:#83988b;text-overflow:ellipsis;white-space:nowrap;font-size:10px;display:block;overflow:hidden}.metric strong{color:#274b3f;text-overflow:ellipsis;white-space:nowrap;margin-top:5px;font-size:13px;display:block;overflow:hidden}.metric strong span{color:#829588;font-size:10px;font-weight:500}*{box-sizing:border-box}body{background:radial-gradient(circle at 83% 1%,#e8efe8 0,#0000 27rem),#f5f4ef;min-height:100vh;margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled,input:disabled,select:disabled{opacity:.45;cursor:not-allowed}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin:0}.shell{flex-direction:column;max-width:1480px;min-height:100vh;margin:auto;padding:0 48px;display:flex}.topbar{border-bottom:1px solid #dbe2de;justify-content:space-between;align-items:center;height:88px;display:flex}.brand{letter-spacing:-.07em;align-items:center;gap:12px;font-size:26px;font-weight:800;display:flex}.brand-mark{color:#e7eee5;background:#102f39;border-radius:12px;place-items:center;width:37px;height:37px;font-size:26px;font-weight:400;line-height:1;display:inline-grid}.brand-dot,.heading-dot{color:#ba8c55}.top-actions{align-items:center;gap:23px;display:flex}.connection{color:#61747a;align-items:center;gap:8px;font-size:12px;font-weight:700;display:flex}.status-dot{background:#75af83;border-radius:100%;width:8px;height:8px;box-shadow:0 0 0 4px #dceade}.connection.offline .status-dot{background:#d19b79;box-shadow:0 0 0 4px #f4e9dc}.ghost,.text-button,.back-link{color:#234c54;background:0 0;border:0;padding:8px 0;font-size:13px;font-weight:750}.ghost:hover,.text-button:hover,.back-link:hover{text-decoration:underline}.button{border:1px solid #0000;border-radius:11px;justify-content:center;align-items:center;gap:24px;padding:14px 19px;font-size:13px;font-weight:780;transition:transform .18s,background .18s;display:inline-flex}.button:hover{transform:translateY(-1px)}.primary{color:#fff;background:#174550}.primary:hover{background:#0e333c}.secondary{color:#174550;background:#fff;border-color:#cddbd7}.secondary:hover{background:#f2f8f4}main{flex:1;width:100%;padding:44px 0 72px}.eyebrow{text-transform:uppercase;letter-spacing:.19em;color:#729480;font-size:10px;font-weight:800}.welcome{text-align:center;max-width:570px;margin:12vh auto 0;padding:35px}.welcome h1{letter-spacing:-.07em;color:#14353d;margin:16px 0;font-size:clamp(45px,6vw,75px)}.welcome p{color:#728488;margin-bottom:28px;font-size:16px;line-height:1.6}.welcome .button{margin:auto}.page-head{justify-content:space-between;align-items:end;gap:20px;margin-bottom:30px;display:flex}.page-head h1{letter-spacing:-.065em;margin:12px 0 11px;font-size:clamp(37px,4.2vw,59px);font-weight:760;line-height:1.08}.page-head p{color:#74868a;font-size:14px}.page-head .button{margin-bottom:8px}.summary{color:#fff;background:#183b44;border-radius:16px;grid-template-columns:repeat(3,1fr);margin-bottom:44px;display:grid;overflow:hidden;box-shadow:0 16px 35px #102f3912}.summary>div{flex-direction:column;justify-content:space-between;min-height:116px;padding:22px 29px;display:flex}.summary>div+div{border-left:1px solid #fff2}.summary small{color:#b4cbc5;font-size:11px;font-weight:650}.summary strong{letter-spacing:-.06em;font-size:37px;line-height:1}.section-heading{justify-content:space-between;align-items:end;margin-bottom:18px;display:flex}.section-heading h2{letter-spacing:-.04em;margin-top:6px;font-size:25px}.device-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;display:grid}.device-card,.user-panel,.policy-panel{background:#fff;border:1px solid #e4e9e4;border-radius:16px;box-shadow:0 8px 25px #173c4208}.device-card{padding:24px}.device-title{border-bottom:1px solid #ecf0ec;justify-content:space-between;gap:12px;padding-bottom:21px;display:flex}.type-label{text-transform:uppercase;letter-spacing:.13em;color:#7c9b86;font-size:10px;font-weight:850}.device-title h2{letter-spacing:-.04em;margin:7px 0 3px;font-size:22px}.device-title p{color:#9aa6a5;font-size:11px}.device-count{color:#7b8c8d;white-space:nowrap;font-size:11px}.entities{gap:15px;padding-top:16px;display:grid}.entity{background:#f7f9f5;border-radius:12px;padding:17px}.entity-head{align-items:center;gap:12px;display:flex}.entity-icon{border-radius:11px;flex:none;place-items:center;width:40px;height:40px;font-size:22px;display:grid}.light-icon{color:#b18b49;background:#f4e9ce}.climate-icon{color:#4c8980;background:#dcece7}.entity-head h3{letter-spacing:-.02em;font-size:14px}.entity-head p{color:#83908f;margin-top:3px;font-size:11px}.state-pill{color:#708480;background:#e8ece9;border-radius:99px;margin-left:auto;padding:5px 9px;font-size:10px;font-weight:750}.state-pill.active{color:#3f8b62;background:#e0f0e5}.entity-actions{align-items:center;gap:23px;margin-top:18px;display:flex}.toggle{background:#c6d1cd;border:0;border-radius:100px;flex:none;width:48px;height:27px;padding:3px}.toggle span{background:#fff;border-radius:50%;width:21px;height:21px;transition:transform .2s;display:block}.toggle.is-on{background:#3d8b73}.toggle.is-on span{transform:translate(21px)}.range-wrap{color:#728884;grid-template-columns:auto auto;align-items:center;gap:5px 10px;width:100%;font-size:11px;display:grid}.range-wrap strong{color:#23444b;justify-self:end}.range-wrap input{accent-color:#448a74;grid-column:1/3;width:100%}.temperatures{border-top:1px solid #e7ece7;border-bottom:1px solid #e7ece7;grid-template-columns:1fr 1fr;margin-top:21px;display:grid}.temperatures>div{padding:16px 0}.temperatures>div+div{border-left:1px solid #e7ece7;padding-left:22px}.temperatures small{color:#8a9a96;margin-bottom:5px;font-size:10px;display:block}.temperatures strong{letter-spacing:-.05em;font-size:30px;font-weight:650}.temperatures strong span{color:#79918a;margin-left:2px;font-size:13px}.climate-controls{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:15px;display:grid}.climate-controls label{color:#78908a;font-size:10px;font-weight:700}.climate-controls select,.climate-controls input{color:#193c41;background:#fff;border:1px solid #d6e1d9;border-radius:8px;outline-color:#5a9d7f;width:100%;margin-top:6px;padding:9px 8px;font-size:12px;display:block}.admin-head{margin-bottom:30px}.admin-head .back-link{margin-bottom:23px;display:block}.admin-badge{color:#49765e;background:#e5ece6;border-radius:8px;padding:9px 13px;font-size:11px;font-weight:800}.admin-layout{grid-template-columns:300px 1fr;align-items:start;gap:20px;display:grid}.user-panel,.policy-panel{min-height:410px}.panel-head{border-bottom:1px solid #edf0ea;padding:24px}.panel-head h2{letter-spacing:-.045em;margin:7px 0;font-size:23px}.panel-head p{color:#81918f;font-size:12px;line-height:1.45}.user-list{padding:10px}.user-item{text-align:left;background:0 0;border:0;border-radius:10px;align-items:center;gap:10px;width:100%;padding:11px;display:flex}.user-item:hover,.user-item.selected{background:#eef5ef}.avatar{color:#326e56;background:#d8e7dc;border-radius:10px;flex:none;place-items:center;width:36px;height:36px;font-size:13px;font-weight:800;display:grid}.user-item strong,.user-item small{text-overflow:ellipsis;white-space:nowrap;max-width:190px;display:block;overflow:hidden}.user-item strong{font-size:12px}.user-item small{color:#8e9b97;margin-top:3px;font-size:10px}.chevron{color:#9aad9f;margin-left:auto;font-size:20px}.aside-empty{color:#84938c;padding:23px;font-size:12px;line-height:1.5}.mode-grid{grid-template-columns:1fr 1fr;gap:12px;padding:20px 24px;display:grid}.mode-option{cursor:pointer;border:1px solid #dae4dd;border-radius:11px;gap:12px;min-height:90px;padding:15px;display:flex}.mode-option.chosen{background:#f1f8f2;border-color:#589275}.mode-option input{accent-color:#3f8b62;align-self:flex-start;margin-top:2px}.mode-option strong,.mode-option small{display:block}.mode-option strong{font-size:12px}.mode-option small{color:#7f8f88;margin-top:5px;font-size:10px;line-height:1.4}.access-heading{justify-content:space-between;align-items:end;padding:8px 24px 14px;display:flex}.access-heading h3{font-size:15px}.access-heading p,.access-heading>span{color:#81918b;margin-top:4px;font-size:10px}.access-list{padding:0 24px 18px}.access-row{border-top:1px solid #edf0eb;justify-content:space-between;align-items:center;gap:15px;padding:13px 0;display:flex}.access-row strong,.access-row small{display:block}.access-row strong{margin:3px 0;font-size:12px}.access-row small{color:#93a09a;font-size:10px}.access-row select{color:#234c45;background:#fff;border:1px solid #d8e1db;border-radius:8px;width:130px;padding:9px;font-size:11px}.save-bar{border-top:1px solid #edf0ea;justify-content:space-between;align-items:center;gap:12px;padding:17px 24px;display:flex}.save-bar span{color:#889792;font-size:10px}.save-bar .button{padding:11px 15px}.empty{text-align:center;color:#81918a;background:#fcfdfa;border:1px dashed #ccd9d0;border-radius:15px;padding:55px 25px}.empty>span{color:#90ac98;margin-bottom:10px;font-size:35px;display:block}.empty h3{color:#25434a;margin-bottom:8px;font-size:17px}.empty p{font-size:12px;line-height:1.5}.loading{color:#81918a;padding:50px}footer{color:#93a29a;border-top:1px solid #dce5de;justify-content:space-between;gap:20px;padding:20px 0 27px;font-size:10px;display:flex}.toast{color:#fff;z-index:10;background:#193d45;border-radius:10px;padding:13px 17px;font-size:12px;font-weight:650;position:fixed;bottom:25px;right:25px;box-shadow:0 12px 35px #16393d35}.toast.error{background:#923f37}@media (width<=900px){.shell{padding:0 25px}.device-grid,.admin-layout{grid-template-columns:1fr}.user-panel{min-height:0}.user-list{display:flex;overflow:auto}.user-item{min-width:190px}.policy-panel{min-height:300px}}@media (width<=620px){.shell{padding:0 16px}.topbar{height:70px}.brand{font-size:23px}.top-actions{gap:12px}.connection{font-size:0}.connection .status-dot{font-size:12px}.page-head{display:block}.page-head .button{margin-top:22px}.page-head h1{font-size:39px}.summary>div{min-height:95px;padding:16px 13px}.summary small{font-size:9px}.summary strong{font-size:28px}.device-card{padding:18px}.mode-grid{grid-template-columns:1fr}.climate-controls{grid-template-columns:1fr 1fr}.save-bar{flex-direction:column;align-items:flex-start}footer{font-size:9px}}.install-banner{background:#eaf3eb;border:1px solid #cbded1;border-radius:14px;justify-content:space-between;align-items:center;gap:20px;margin-top:24px;padding:18px 22px;display:flex}.install-banner[hidden]{display:none}.install-banner strong{color:#234c40;font-size:14px}.install-banner p{color:#648174;margin-top:5px;font-size:12px;line-height:1.5}.install-actions{flex-shrink:0;align-items:center;gap:15px;display:flex}.install-actions .button{padding:11px 15px}.install-actions [hidden]{display:none}@media (width<=620px){.install-banner{flex-direction:column;align-items:flex-start;gap:12px;padding:16px}.top-actions{gap:10px}#install-shortcut{font-size:11px}}.history-chart{position:relative}.interactive-chart{cursor:crosshair;touch-action:pan-y}.interactive-chart:focus-visible{outline-offset:4px;border-radius:6px;outline:2px solid #3b9375}.chart-cursor{pointer-events:none}.chart-cursor line{stroke:#668278;stroke-width:1px;stroke-dasharray:3 3}.chart-cursor circle{fill:#3b9375;stroke:#fff;stroke-width:2px}.chart-tooltip{z-index:2;pointer-events:none;color:#fff;box-sizing:border-box;white-space:nowrap;background:#173d31;border-radius:8px;max-width:100%;padding:9px 12px;position:absolute;box-shadow:0 4px 14px #173d3126}.chart-tooltip[hidden]{display:none}.chart-tooltip time{color:#c4dace;font-size:10px;display:block}.chart-tooltip strong{margin-top:3px;font-size:13px;display:block}.view-tabs{border-bottom:1px solid #dce7df;gap:5px;margin-bottom:28px;padding-bottom:10px;display:flex}.view-tabs button{color:#6d8478;font:inherit;cursor:pointer;background:0 0;border:0;border-radius:8px;padding:10px 18px;font-size:13px;font-weight:700}.view-tabs button.selected{color:#fff;background:#173d31}.energy-access{border:1px solid #dce7df;border-radius:12px;justify-content:space-between;align-items:center;gap:20px;margin:16px 0;padding:18px;display:flex}.energy-access strong,.energy-access small{display:block}.energy-access small{color:#789080;max-width:440px;margin-top:5px;font-size:11px}.energy-access input{accent-color:#286c50;cursor:pointer;width:22px;height:22px}.energy-toolbar{flex-wrap:wrap;align-items:center;gap:14px;margin-bottom:20px;display:flex}.energy-toolbar label{color:#617b6b;align-items:center;gap:8px;font-size:12px;display:flex}.energy-toolbar input{color:#274b3f;font:inherit;background:#fff;border:1px solid #dce7df;border-radius:8px;padding:9px}.energy-toolbar>span{color:#789080;margin-left:auto;font-size:10px}.energy-range-label{color:#678470;margin-bottom:16px;font-size:12px}.energy-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:22px;display:grid}.energy-stat{background:#fff;border:1px solid #e1e8df;border-radius:12px;padding:20px}.energy-stat small{color:#789080;margin-bottom:8px;font-size:11px;display:block}.energy-stat strong{color:#274b3f;letter-spacing:-.03em;font-size:24px}.energy-layout{grid-template-columns:minmax(280px,1fr) minmax(0,2fr);gap:20px;display:grid}.energy-card{background:#fff;border:1px solid #e1e8df;border-radius:16px;min-width:0;margin-bottom:20px;padding:24px}.energy-card h2{margin-bottom:20px;font-size:16px}.energy-flow{grid-template-columns:1fr 1fr;gap:15px;display:grid;position:relative}.energy-flow>div{text-align:center;background:#f4f8f1;border-radius:12px;padding:14px;position:relative}.energy-flow span{font-size:26px;display:block}.energy-flow small{color:#6d8478;margin:5px 0;font-size:10px;display:block}.energy-flow strong{color:#274b3f;font-size:15px;display:block}.energy-flow .solar{color:#be901a;background:#fff7e4}.energy-flow .grid{color:#347baa;background:#edf5fb}.energy-flow .flow-home{background:#e6f2e8;grid-column:1/-1}.energy-details{gap:25px;margin-top:20px;display:flex}.energy-details small,.energy-details strong{display:block}.energy-details small{color:#789080;margin-bottom:5px;font-size:10px}.energy-notice{color:#8d702c;background:#fff6e4;border-radius:10px;margin-bottom:18px;padding:14px 18px;font-size:12px}.energy-notice p{margin-top:5px;font-size:11px;line-height:1.5}.energy-graph{position:relative}.energy-svg{cursor:crosshair;touch-action:pan-y;width:100%;height:auto}.energy-svg text{fill:#789080;font:11px Inter,ui-sans-serif,sans-serif}.energy-svg:focus-visible{border-radius:8px;outline:2px solid #3b9375}.energy-legend{color:#678470;flex-wrap:wrap;gap:14px;margin-bottom:15px;font-size:10px;display:flex}.energy-legend span{align-items:center;gap:5px;display:flex}.energy-legend i{border-radius:2px;width:8px;height:8px}.energy-cursor{stroke:#668278;stroke-dasharray:3 3;pointer-events:none}.energy-tooltip{z-index:3;pointer-events:none;color:#fff;box-sizing:border-box;background:#173d31;border-radius:8px;max-width:100%;padding:10px 13px;font-size:11px;position:absolute;box-shadow:0 4px 14px #173d3126}.energy-tooltip[hidden]{display:none}.energy-tooltip time{color:#c4dace;margin-bottom:8px;font-size:10px;display:block}.energy-tooltip>div{white-space:nowrap;justify-content:space-between;gap:15px;margin-top:4px;display:flex}.energy-devices{gap:18px;display:grid}.energy-device-label{color:#486650;justify-content:space-between;gap:15px;margin-bottom:7px;font-size:12px;display:flex}.energy-device-track{background:#eef4ed;border-radius:5px;height:6px;overflow:hidden}.energy-device-track span{background:#3b9375;height:100%;display:block}.energy-devices small{color:#789080;font-size:10px}@media (width<=800px){.energy-layout{grid-template-columns:1fr}.energy-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.energy-card{padding:18px}.energy-stat{padding:16px}.energy-stat strong{font-size:20px}.energy-toolbar>span{margin-left:0}.energy-device-label{font-size:11px}}.energy-color-import{background:#3b85c2}.energy-color-export{background:#9d69bb}.energy-color-solar,.energy-color-forecast{background:#d69b22}.energy-color-consumption{background:#3b9375}.energy-color-charge{background:#6d8fb2}.energy-color-discharge{background:#ba77a6}.energy-stat-value{flex-wrap:wrap;align-items:baseline;gap:4px 8px;display:flex}.energy-stat-percent{color:#9aa5a0;white-space:nowrap;font-size:15px;font-weight:500}.energy-lifetime summary{cursor:pointer;color:#274b3f;font-size:16px;font-weight:700}.energy-lifetime summary:focus-visible{outline-offset:5px;border-radius:4px;outline:2px solid #3b9375}.energy-lifetime>h2{margin-top:22px;margin-bottom:8px}.energy-lifetime>.chart-note{margin-top:14px}.energy-lifetime>.energy-summary{margin-top:18px;margin-bottom:0}.energy-lifetime>.energy-notice{margin-top:14px}.chart-settings{min-height:0;margin-bottom:20px}.chart-settings .energy-access{border:0;margin:0}.chart-settings-status{color:#678470;min-height:18px;padding:0 18px 12px;font-size:11px}.live-energy-card{margin-bottom:22px}.live-energy-head{justify-content:space-between;align-items:start;gap:15px;display:flex}.live-energy-head h2{margin-bottom:5px}.live-status{color:#789080;font-size:11px}.live-flow-svg{width:100%;max-width:760px;margin:12px auto 0;display:block}.live-flow-line{fill:none;stroke-width:4px}.flow-moving{stroke-dasharray:10 7;animation:1s linear infinite energy-flow-motion}.live-solar-node rect{fill:#fff7e4}.live-grid-node rect{fill:#edf5fb}.live-home-node rect{fill:#e6f2e8}.live-node-label{fill:#547460;font:14px Inter,ui-sans-serif,sans-serif}.live-node-value{fill:#274b3f;font:700 27px Inter,ui-sans-serif,sans-serif}.live-node-hint{fill:#789080;font:11px Inter,ui-sans-serif,sans-serif}@keyframes energy-flow-motion{to{stroke-dashoffset:-17px}}@media (prefers-reduced-motion:reduce){.flow-moving{animation:none}}.energy-alert{text-align:left;margin-top:.7rem;display:block}.energy-target-dialog{border:1px solid #c7d2c9;border-radius:18px;width:calc(100% - 32px);max-width:480px;padding:24px}.energy-target-dialog::backdrop{background:#15291f88}.energy-target-dialog input{width:100%;margin:12px 0;display:block}.energy-counter-value{color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;padding:0}.energy-counter-value:focus-visible{outline-offset:4px;outline:2px solid #3b9375}.workflow-note{color:#789080;margin:12px 0 22px;font-size:12px;line-height:1.6}.workflow-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;display:grid}.workflow-card,.workflow-section{background:#fff;border:1px solid #e1e8df;border-radius:16px;min-width:0;margin-bottom:20px;padding:24px}.workflow-card h2,.workflow-section h2{color:#274b3f;font-size:18px}.workflow-card h1{margin-top:16px;font-size:28px}.workflow-card-head{justify-content:space-between;align-items:flex-start;gap:15px;display:flex}.workflow-card-head p{color:#789080;white-space:pre-wrap;margin-top:8px;font-size:12px}.workflow-card-head .state-pill{flex-shrink:0}.workflow-devices{color:#486650;margin-top:20px;font-size:12px}.workflow-readonly{color:#8d702c;background:#fff6e4;border-radius:10px;margin:16px 0;padding:14px;font-size:12px;line-height:1.7}.workflow-section .section-heading{margin:0 0 18px}.workflow-section .section-heading p{color:#789080;margin-top:8px;font-size:12px}.workflow-block{background:#f7faf6;border:1px solid #dce7df;border-radius:12px;margin-top:12px;padding:18px}.workflow-block-type{flex-wrap:wrap;align-items:flex-end;gap:18px;margin-bottom:16px;display:flex}.workflow-block-type>label{flex:1;min-width:150px}.workflow-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.workflow-fields>label:first-child{grid-column:1/-1}.workflow-section label{color:#486650;flex-direction:column;gap:7px;min-width:0;font-size:12px;display:flex}.workflow-section input,.workflow-section select,.workflow-section textarea{font:inherit;color:#274b3f;background:#fff;border:1px solid #ccd9d0;border-radius:8px;width:100%;min-width:0;padding:11px}.workflow-meta{gap:18px;display:grid}.workflow-meta textarea{resize:vertical;min-height:70px}.workflow-days{border:0;flex-wrap:wrap;grid-column:1/-1;gap:12px;padding:0;display:flex}.workflow-days legend{color:#486650;margin-bottom:10px;font-size:12px}.workflow-days label{flex-direction:row;align-items:center}.workflow-days input{accent-color:#286c50;width:18px;height:18px}.workflow-block button{cursor:pointer}.workflow-section input:focus-visible,.workflow-section select:focus-visible,.workflow-section textarea:focus-visible{outline-offset:2px;outline:2px solid #3b9375}#workflow-status{color:#486650;max-width:600px;font-size:12px;line-height:1.6}#workflow-form .save-bar{margin-bottom:25px;padding:18px 0}@media (width<=700px){.workflow-list{grid-template-columns:1fr}.workflow-card,.workflow-section{padding:18px}.workflow-fields{grid-template-columns:1fr}.workflow-block{padding:14px}.view-tabs{gap:2px}.view-tabs button{padding:10px 12px}}#workflow-cancel{margin-bottom:12px;display:block}@media (width<=700px){.workflow-block-type>label{flex-basis:100%}}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}.theme-picker{color:#61747a;align-items:center;gap:8px;font-size:12px;font-weight:700;display:flex}.theme-picker select{color:#234c54;max-width:120px;font:inherit;cursor:pointer;background:#fff;border:1px solid #cddbd7;border-radius:8px;padding:8px}.theme-picker select:focus-visible{outline-offset:3px;outline:2px solid #3b9375}.topbar{flex-wrap:wrap;gap:12px;height:auto;min-height:88px;padding:18px 0}@media (width<=620px){.topbar{min-height:70px;padding:14px 0}.theme-picker>span{display:none}.theme-picker select{max-width:100px;padding:7px;font-size:11px}.top-actions{flex-wrap:wrap;gap:10px}}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--dark-page:#10191e;--dark-surface:#19272d;--dark-inset:#203139;--dark-hover:#283e43;--dark-border:#34474f;--dark-text:#e1ece9;--dark-muted:#afc1bb;--dark-accent:#9bd6ba;--dark-green:#244638;--dark-warn:#3d3221;--dark-warn-text:#ecd19c;color:var(--dark-text);background:var(--dark-page)}:root[data-theme=dark] body{background:radial-gradient(circle at 83% 1%, #1c3030 0, transparent 27rem), var(--dark-page)}:root[data-theme=dark] :is(.device-card,.user-panel,.policy-panel,.workflow-card,.workflow-section,.energy-card,.energy-stat,.energy-target-dialog,.secondary,.theme-picker select){background:var(--dark-surface);color:var(--dark-text);border-color:var(--dark-border)}:root[data-theme=dark] :is(.entity,.metric,.workflow-block,.empty,.mode-option.chosen,.user-item.selected,.user-item:hover,.energy-flow>div,.energy-device-track){background:var(--dark-inset);border-color:var(--dark-border)}:root[data-theme=dark] :is(.climate-controls select,.climate-controls input,.access-row select,.energy-toolbar input,.workflow-section input,.workflow-section select,.workflow-section textarea,.energy-target-dialog input){background:var(--dark-page);color:var(--dark-text);border-color:var(--dark-border)}:root[data-theme=dark] :is(.welcome h1,.range-wrap strong,.metric strong,.empty h3,.energy-stat strong,.energy-flow strong,.energy-lifetime summary,.workflow-card h2,.workflow-section h2,.theme-picker){color:var(--dark-text)}:root[data-theme=dark] :is(.ghost,.text-button,.back-link,.all-metrics summary,.energy-device-label,.workflow-devices,.workflow-section label,.workflow-days legend,#workflow-status){color:var(--dark-accent)}:root[data-theme=dark] :is(.connection,.welcome p,.page-head p,.eyebrow,.type-label,.device-title p,.device-count,.entity-head p,.range-wrap,.temperatures small,.temperatures strong span,.climate-controls label,.panel-head p,.user-item small,.chevron,.aside-empty,.mode-option small,.access-heading p,.access-heading>span,.access-row small,.save-bar span,.empty,.loading,footer,.metrics-head>span,.power-now small,.history-head small,.history-chart,.chart-empty,.sensor-empty,.chart-note,.all-metrics summary span,.metric small,.metric strong span,.energy-access small,.energy-toolbar label,.energy-toolbar>span,.energy-range-label,.energy-stat small,.energy-flow small,.energy-details small,.energy-legend,.energy-devices small,.energy-stat-percent,.chart-settings-status,.live-status,.workflow-note,.workflow-card-head p,.workflow-section .section-heading p){color:var(--dark-muted)}:root[data-theme=dark] :is(.topbar,.device-title,.temperatures,.temperatures>div+div,.panel-head,.access-row,.save-bar,footer,.metrics-panel,.all-metrics,.view-tabs,.energy-access,.mode-option){border-color:var(--dark-border)}:root[data-theme=dark] .primary{color:#fff;background:#2e6f64}:root[data-theme=dark] .primary:hover{background:#388475}:root[data-theme=dark] .secondary:hover{background:var(--dark-hover)}:root[data-theme=dark] .brand-mark{color:#e7eee5;background:#2c535c}:root[data-theme=dark] .summary{background:#213e47}:root[data-theme=dark] :is(.power-now,.install-banner,.energy-flow .flow-home){background:var(--dark-green);border-color:#3d6452}:root[data-theme=dark] :is(.power-now strong,.install-banner strong){color:var(--dark-accent)}:root[data-theme=dark] .install-banner p{color:var(--dark-muted)}:root[data-theme=dark] :is(.preview-banner,.energy-notice,.workflow-readonly){background:var(--dark-warn);color:var(--dark-warn-text);border-color:#685231}:root[data-theme=dark] .light-icon{color:#e5c07b;background:#433923}:root[data-theme=dark] :is(.climate-icon,.avatar,.admin-badge){color:var(--dark-accent);background:#2b4b42}:root[data-theme=dark] .state-pill{color:#b8cbc6;background:#304047}:root[data-theme=dark] .state-pill.active{background:var(--dark-green);color:var(--dark-accent)}:root[data-theme=dark] .toggle{background:#4c6067}:root[data-theme=dark] .toggle.is-on{background:#4ca487}:root[data-theme=dark] .period-switch{background:var(--dark-page)}:root[data-theme=dark] .period-switch button{color:var(--dark-muted)}:root[data-theme=dark] .period-switch button.selected{background:var(--dark-hover);color:var(--dark-text)}:root[data-theme=dark] .view-tabs button{color:var(--dark-muted)}:root[data-theme=dark] .view-tabs button.selected{color:#fff;background:#2e6f64}:root[data-theme=dark] .status-dot{box-shadow:0 0 0 4px #254439}:root[data-theme=dark] .connection.offline .status-dot{box-shadow:0 0 0 4px #47382b}:root[data-theme=dark] .energy-flow .solar{background:var(--dark-warn);color:#e5c07b}:root[data-theme=dark] .energy-flow .grid{color:#92bce3;background:#233b50}:root[data-theme=dark] .live-solar-node rect{fill:var(--dark-warn)}:root[data-theme=dark] .live-grid-node rect{fill:#233b50}:root[data-theme=dark] .live-home-node rect{fill:var(--dark-green)}:root[data-theme=dark] :is(.history-chart svg text,.energy-svg text,.live-node-label,.live-node-hint){fill:var(--dark-muted)}:root[data-theme=dark] .live-node-value{fill:var(--dark-text)}:root[data-theme=dark] .chart-grid{stroke:var(--dark-border)}:root[data-theme=dark] .chart-axis{stroke:#6f8781}:root[data-theme=dark] .energy-target-dialog::backdrop{background:#080e14bb}.control-dialog{color:#18333a;background:#fff;border:1px solid #ccd9d0;border-radius:16px;width:calc(100% - 32px);max-width:510px;padding:24px}.control-dialog::backdrop{background:#102f3980}.control-dialog-head{justify-content:space-between;align-items:start;gap:16px;display:flex}.control-dialog h2{margin-top:8px;font-size:22px}.control-dialog label,.activity-filters label{color:#486650;flex-direction:column;gap:7px;margin:16px 0;font-size:12px;display:flex}.control-dialog input,.control-dialog select,.activity-filters select{color:#274b3f;font:inherit;background:#fff;border:1px solid #ccd9d0;border-radius:8px;width:100%;min-width:0;padding:11px}.control-dialog [hidden]{display:none}.control-dialog input:focus-visible,.control-dialog select:focus-visible,.activity-filters select:focus-visible{outline-offset:2px;outline:2px solid #3b9375}.control-note{color:#789080;margin:12px 0 18px;font-size:12px;line-height:1.6}#temporary-status,#activity-status{color:#486650;margin:12px 0;font-size:12px;line-height:1.6}.temporary-overview,.activity-card{background:#fff;border:1px solid #dce7df;border-radius:16px;margin-bottom:20px;padding:24px}.temporary-overview h2{margin-top:8px;font-size:20px}.temporary-row{border-top:1px solid #dce7df;justify-content:space-between;align-items:center;gap:20px;padding:14px 0;display:flex}.temporary-row strong,.temporary-row small{font-size:12px;display:block}.temporary-row small{color:#789080;margin-top:5px}.temporary-row:last-child{padding-bottom:0}.activity-filters{flex-wrap:wrap;gap:18px;margin-bottom:18px;display:flex}.activity-filters label{flex:1;min-width:200px}.activity-card-head{flex-wrap:wrap;justify-content:space-between;gap:18px;font-size:12px;display:flex}.activity-card-head time{color:#789080}.activity-card h3{margin:12px 0 8px;font-size:17px}.activity-card p{color:#617b6b;margin-top:5px;font-size:12px;line-height:1.6}.activity-card .control-note{margin-bottom:0}.temporary-start{text-align:left}.view-tabs{flex-wrap:wrap}:root[data-theme=dark] :is(.control-dialog,.temporary-overview,.activity-card){background:var(--dark-surface);color:var(--dark-text);border-color:var(--dark-border)}:root[data-theme=dark] :is(.control-dialog input,.control-dialog select,.activity-filters select){background:var(--dark-page);color:var(--dark-text);border-color:var(--dark-border)}:root[data-theme=dark] :is(.control-dialog label,.activity-filters label,#temporary-status,#activity-status){color:var(--dark-accent)}:root[data-theme=dark] :is(.control-note,.temporary-row small,.activity-card-head time,.activity-card p){color:var(--dark-muted)}:root[data-theme=dark] .temporary-row{border-color:var(--dark-border)}:root[data-theme=dark] .control-dialog::backdrop{background:#080e14bb}@media (width<=620px){.control-dialog,.temporary-overview,.activity-card{padding:18px}.temporary-row{flex-direction:column;align-items:start;gap:8px}.activity-filters{gap:0}.activity-filters label{min-width:100%}.view-tabs button{padding:10px 12px}}#activity-more[hidden]{display:none}.control-dialog{max-height:calc(100dvh - 32px);overflow:auto}.workflow-card-actions{flex-wrap:wrap;gap:10px;display:flex}.workflow-text-steps{padding-left:24px}.workflow-step-text{white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid #dce7df;border-radius:8px;padding:14px;font-size:13px;line-height:1.6}:root[data-theme=dark] .workflow-step-text{border-color:var(--dark-border);color:var(--dark-text)}.notification-panel{background:#fff;border:1px solid #dce7df;border-radius:16px;margin-bottom:20px;padding:24px}.notification-panel h2{margin-bottom:14px;font-size:20px}.notification-toggle{align-items:center;gap:10px;margin:14px 0;font-size:13px;display:flex}.notification-toggle input{accent-color:#367c62;flex-shrink:0;width:18px;height:18px}.notification-quiet{flex-wrap:wrap;gap:16px;display:flex}.notification-quiet label{flex-direction:column;flex:1;gap:8px;min-width:140px;font-size:12px;display:flex}.notification-quiet input{width:100%;min-width:0;font:inherit;border:1px solid #ccd9d0;border-radius:8px;padding:10px}.notification-device{border:1px solid #dce7df;border-radius:10px;margin:20px 0;padding:8px 16px}.notification-device legend{padding:0 8px;font-size:15px;font-weight:600}#notification-status,#push-status{font-size:13px;line-height:1.6}:root[data-theme=dark] .notification-panel{background:var(--dark-surface);border-color:var(--dark-border);color:var(--dark-text)}:root[data-theme=dark] .notification-device{border-color:var(--dark-border)}:root[data-theme=dark] .notification-quiet input{background:var(--dark-page);color:var(--dark-text);border-color:var(--dark-border)}@media (width<=620px){.notification-panel{padding:18px}}.update-guide{color:#18333a;background:#fff;border:1px solid #ccd9d0;border-radius:18px;width:calc(100% - 32px);max-width:680px;max-height:calc(100dvh - 32px);margin:auto;padding:26px;overflow:hidden}.update-guide::backdrop{background:#102f3980}.update-guide-head{justify-content:space-between;align-items:start;gap:16px;display:flex}.update-guide-head h2{margin:8px 0 12px;font-size:25px}.update-guide p{color:#617b6b;font-size:13px;line-height:1.65}.update-guide-progress{color:#367c62;margin:18px 0 8px;font-size:12px;font-weight:600}.update-guide h3{margin:0 0 8px;font-size:20px;line-height:1.35}.update-guide-image{object-fit:contain;background:#fff;border:1px solid #dce7df;border-radius:10px;width:100%;max-height:245px;margin:16px 0;display:block}.update-guide-steps{padding-left:22px;font-size:13px;line-height:1.65}.update-guide-steps li{margin:10px 0;padding-left:4px}.update-guide-footer{border-top:1px solid #dce7df;justify-content:space-between;gap:12px;margin-top:18px;padding-top:16px;display:flex}:root[data-theme=dark] .update-guide{background:var(--dark-surface);color:var(--dark-text);border-color:var(--dark-border)}:root[data-theme=dark] .update-guide p{color:var(--dark-muted)}:root[data-theme=dark] .update-guide-progress{color:var(--dark-accent)}:root[data-theme=dark] .update-guide-footer{border-color:var(--dark-border)}:root[data-theme=dark] .update-guide::backdrop{background:#080e14bb}@media (width<=620px){.update-guide{padding:18px}.update-guide-head h2{font-size:22px}.update-guide-image{max-height:190px}}.update-guide[open]{flex-direction:column;display:flex}.update-guide-head,.update-guide-footer{flex-shrink:0}.update-guide-content{min-height:0;overflow:auto}.history-consumption{box-sizing:border-box;background:#eaf3eb;border-radius:12px;width:100%;margin-bottom:12px;padding:14px 18px}.history-consumption small{color:#668278;font-size:11px;line-height:1.5;display:block}.history-consumption strong{color:#1b5d48;letter-spacing:-.03em;margin-top:5px;font-size:24px;display:block}.history-consumption strong span{font-size:14px}.history-consumption p{color:#668278;margin:6px 0;font-size:11px;line-height:1.5}.history-consumption+svg{min-width:0}:root[data-theme=dark] .history-consumption{background:var(--dark-surface)}:root[data-theme=dark] .history-consumption strong{color:var(--dark-text)}:root[data-theme=dark] .history-consumption :is(small,p){color:var(--dark-muted)}.history-range{border:1px solid #dce8df;border-radius:10px;margin:14px 0;padding:12px}.history-range summary{cursor:pointer;font-size:12px;font-weight:700}.history-range-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px;display:grid}.history-range-fields label{color:#668278;min-width:0;font-size:11px}.history-range-fields input{box-sizing:border-box;width:100%;min-width:0;font:inherit;color:#274b3f;background:#fff;border:1px solid #b9ccc0;border-radius:7px;margin-top:5px;padding:8px;display:block}.history-range-actions{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.history-range-actions .button{padding:9px 12px;font-size:11px}:root[data-theme=dark] .history-range{border-color:var(--dark-border)}:root[data-theme=dark] .history-range-fields label{color:var(--dark-muted)}:root[data-theme=dark] .history-range-fields input{background:var(--dark-inset);border-color:var(--dark-border);color:var(--dark-text);--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}@media (width<=480px){.history-range-fields{grid-template-columns:1fr}}fieldset{border:0;min-width:0;padding:0}.view-tabs{flex-wrap:wrap;gap:8px;display:flex}.view-tabs button{cursor:pointer;border:0}.light-controls{align-items:center;gap:14px;display:flex}.range-wrap{flex:1}.history-chart{width:100%}.live-energy-svg{width:100%;height:auto}.live-energy-svg .live-path{fill:none;stroke:#3b9375;stroke-width:3px}.toast{z-index:1000}.power-graph{width:100%;position:relative}
