:root{color-scheme:light;--bg:#f2f5f5;--surface:#fff;--ink:#193a38;--muted:#586b6a;--line:#dce5e4;--green:#176b59;--green-pale:#eaf4ef;--amber:#9a5914;--amber-pale:#fff3dc;--blue:#326a9d;--blue-pale:#eaf1f8;--danger:#a43434;--radius:16px;font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.5;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.52}a{color:var(--green);text-underline-offset:3px}button,input,select{border-radius:8px}button{border:1px solid var(--line);background:var(--surface);color:var(--ink);padding:10px 15px;min-height:44px;font-weight:600;transition:background .16s ease,border-color .16s ease}button:hover:not(:disabled){background:#edf3f1;border-color:#b1c9bf}button:active:not(:disabled){background:#dfebe6}:focus-visible{outline:3px solid var(--blue);outline-offset:3px}input,select{border:1px solid #a5b6b3;padding:10px 12px;background:#fff;color:var(--ink);min-height:44px;width:100%;accent-color:var(--green);caret-color:var(--green)}input::placeholder{color:#697b77;opacity:1}input[type=checkbox]{width:22px;min-height:22px;margin:0;flex-shrink:0}input[type=time]{min-width:115px}::selection{background:#c4e6d8;color:#153e39}h1,h2,h3,p{margin:0}h1{font-size:1.9rem;letter-spacing:-.035em;font-weight:650;line-height:1.2}h2{font-size:1.13rem;letter-spacing:-.02em;font-weight:650}h3{font-size:1rem;font-weight:650}small,.small{font-size:.875rem}p{max-width:72ch}.muted{color:var(--muted)}.mono,.number{font-variant-numeric:tabular-nums}.primary{background:var(--green);border-color:var(--green);color:#fff}.primary:hover:not(:disabled){background:#145644;border-color:#145644}.text-button{border:0;background:transparent;padding:8px 4px;color:var(--green);text-decoration:underline;text-underline-offset:4px}.icon{width:21px;height:21px;display:inline-block;vertical-align:middle;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.skip-link{position:fixed;left:10px;top:-100px;z-index:100;background:#fff;padding:12px}.skip-link:focus{top:10px}.initial-loading{display:grid;min-height:100dvh;place-items:center}.layout{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:100dvh}.sidebar{position:sticky;top:0;height:100dvh;padding:34px 20px 24px;border-right:1px solid var(--line);display:flex;flex-direction:column;background:#eaf0ef}.brand{display:flex;align-items:center;gap:10px;font-size:1.8rem;font-weight:700;letter-spacing:-.05em;color:#153e39;text-decoration:none}.brand .icon{width:30px;height:30px;stroke-width:1.6}.brand-sub{margin:4px 0 34px 40px;font-size:.875rem;color:var(--muted)}.nav{display:grid;gap:7px}.nav button{background:transparent;border-color:transparent;display:flex;align-items:center;gap:12px;text-align:left;font-weight:500;padding:12px 14px;color:#49625d}.nav button.active{background:#153e39;color:#fff;border-color:#153e39}.nav button:not(.active):hover{background:#dde8e3}.sidebar-foot{margin-top:auto;border-top:1px solid #ccdad6;padding-top:22px;font-size:.875rem;color:var(--muted)}.house-location{font-size:1rem;font-weight:650;color:var(--ink);margin-bottom:3px}.sidebar-foot .house-location{display:flex;gap:9px;align-items:center}.main{padding:36px 44px 44px;max-width:1600px;width:100%;margin:0 auto;min-width:0}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:26px;gap:20px}.date{font-size:.9375rem;color:var(--muted);margin-top:7px}.user-tools{display:flex;align-items:center;gap:12px}.avatar{width:36px;height:36px;background:#e1eae7;border-radius:50%;display:grid;place-items:center;font-size:.875rem;font-weight:650}.user-name{font-size:.875rem}.logout{padding:8px 10px;min-height:40px;font-size:.875rem}.notice{display:flex;align-items:flex-start;gap:12px;background:var(--amber-pale);border:1px solid #eed9b7;color:#754a1f;padding:12px 16px;border-radius:10px;margin-bottom:24px;font-size:.875rem}.notice strong{font-weight:650}.notice .icon{width:19px;height:19px;margin-top:1px}.notice a{margin-left:auto;white-space:nowrap;color:inherit}.status-pill{font-size:.875rem;display:inline-flex;align-items:center;gap:7px;padding:5px 10px;border:1px solid var(--line);border-radius:7px;white-space:nowrap}.status-pill.ok{background:var(--green-pale);border-color:#d0e4d8;color:#235f48}.status-pill.demo{background:var(--amber-pale);border-color:#eed9b7;color:#754a1f}.status-pill.missing,.status-pill.stale{background:#f3f5f4;color:#5c6c67}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.section-head p{font-size:.875rem;color:var(--muted);margin-top:4px}.periods{display:flex;padding:3px;border:1px solid var(--line);border-radius:9px;background:#eaf0ee;gap:2px}.periods button{font-size:.875rem;min-height:34px;padding:5px 12px;background:transparent;border-color:transparent;font-weight:500}.periods button[aria-pressed=true]{background:#fff;border-color:#d3dfda;box-shadow:0 2px 3px #0000000d}.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);border-radius:var(--radius);background:#fff;margin-bottom:24px}.metric{padding:21px 24px;min-width:0}.metric+.metric{border-left:1px solid var(--line)}.metric-label{display:flex;gap:9px;align-items:center;color:var(--muted);font-size:.875rem}.metric .icon{width:18px;height:18px;color:var(--green)}.metric-value{font-size:2rem;letter-spacing:-.04em;margin:5px 0 2px;font-weight:600;white-space:nowrap}.metric-value span{font-size:1rem;letter-spacing:0;font-weight:400;color:var(--muted);margin-left:4px}.metric-sub{font-size:.875rem;color:var(--muted)}.grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(310px,1fr);gap:24px;align-items:start}.stack{display:grid;gap:24px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:24px;min-width:0}.span-all{grid-column:1/-1}.room-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:16px}.temperature{display:flex;align-items:baseline;gap:15px}.temp-big{font-size:3.3rem;line-height:1.1;letter-spacing:-.05em;font-weight:550;white-space:nowrap;margin:10px 0 2px}.temp-big sup{font-size:1.5rem;top:0;margin-left:3px}.room-target{font-size:.875rem;color:var(--muted)}.room-target strong{font-weight:600;color:var(--ink)}.chart-wrap{width:100%;margin-top:10px;min-height:220px}.chart{width:100%;height:auto;display:block;overflow:visible}.chart text{font:13px ui-sans-serif,system-ui,sans-serif;fill:#60716c}.chart .gridline{stroke:#e4ebe7;stroke-width:1}.chart .temperature-line{fill:none;stroke:var(--green);stroke-width:2.8;stroke-linejoin:round;stroke-linecap:round}.chart .forecast-line{fill:none;stroke:var(--amber);stroke-width:2.4;stroke-dasharray:5 5}.chart .target-line{fill:none;stroke:#9bada6;stroke-width:1.5;stroke-dasharray:4 5}.chart .forecast-area{fill:#f8ead0;opacity:.65}.legend{display:flex;gap:20px;flex-wrap:wrap;color:var(--muted);font-size:.8125rem;margin:4px 0 0}.legend span{display:inline-flex;gap:7px;align-items:center}.legend i{display:inline-block;width:17px;height:3px;background:var(--green)}.legend i.forecast{height:0;border-top:2px dashed var(--amber);background:none}.legend i.target{height:0;border-top:2px dashed #81998e;background:none}.chart-empty{min-height:236px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:#f7faf8;border:1px dashed #c3d3cb;border-radius:10px;text-align:center;padding:25px;color:var(--muted)}.chart-empty .icon{width:28px;height:28px}.chart-empty p{font-size:.9375rem;max-width:45ch}.panel-note{color:var(--muted);font-size:.8125rem;margin-top:14px;line-height:1.5}.advice-panel{background:#153e39;border-color:#153e39;color:#fff;padding:25px}.advice-panel .muted{color:#c0d6cc}.advice-title{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:20px}.advice-title h2{font-size:1rem}.advice-title .icon{color:#c5e7bc}.advice-panel h3{font-size:1.45rem;line-height:1.3;font-weight:550;letter-spacing:-.02em;margin-bottom:12px}.advice-panel p{color:#d3e3dc;font-size:.9375rem;line-height:1.65}.advice-foot{margin-top:20px;padding-top:16px;border-top:1px solid #ffffff2b;display:flex;gap:8px;align-items:center;color:#c0d6cc;font-size:.8125rem}.controls{display:grid;gap:18px}.segmented{display:grid;grid-template-columns:1fr 1fr;gap:4px;background:#eef3f0;padding:4px;border-radius:10px}.segmented button{background:transparent;border-color:transparent;font-size:.9375rem;display:flex;gap:8px;justify-content:center;align-items:center}.segmented button[aria-pressed=true]{background:#fff;border-color:#ccdbd2;box-shadow:0 2px 3px #0000000d}.temp-control{display:flex;align-items:center;justify-content:space-between;gap:15px}.temp-control button{font-size:1.5rem;font-weight:400;width:44px;height:44px;padding:0}.desired-temp{font-size:2.25rem;letter-spacing:-.04em;font-weight:550}.control-message{font-size:.8125rem;color:var(--muted)}.controls .primary{width:100%}.inline-note{padding:12px 0 0;border-top:1px solid var(--line);font-size:.875rem;color:var(--muted)}.weather-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:22px}.weather-cell{border-right:1px solid var(--line);text-align:center}.weather-cell:last-child{border:0}.weather-cell .icon{color:var(--amber);margin:6px 0}.weather-time,.weather-temp{display:block;font-size:.875rem}.weather-time{color:var(--muted)}.solar-copy{font-size:.875rem;color:var(--muted);margin-top:20px}.price-bar{fill:#b8d1c2}.price-bar.cheap{fill:#398571}.price-bar.current{fill:#c4883b}.tariff-line{display:flex;gap:20px;margin:14px 0 0;flex-wrap:wrap;font-size:.875rem;color:var(--muted)}.tariff-line strong{color:var(--ink);font-weight:600}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:.875rem;font-variant-numeric:tabular-nums}th{text-align:left;font-weight:550;color:var(--muted);padding:11px 12px 11px 0;border-bottom:1px solid var(--line);white-space:nowrap}td{padding:13px 12px 13px 0;border-bottom:1px solid #edf1ee;white-space:nowrap}td:last-child,th:last-child{text-align:right;padding-right:0}tr:last-child td{border:0}.table-note{font-size:.875rem;color:var(--muted);margin:15px 0 0;max-width:75ch}.night-heading{display:flex;align-items:center;gap:10px;margin-bottom:15px}.night-heading .icon{color:var(--blue)}details{margin-top:14px;font-size:.8125rem;color:var(--muted)}summary{cursor:pointer;min-height:36px;padding-top:7px;width:fit-content}details table{margin-top:10px}.footer{font-size:.8125rem;display:flex;justify-content:space-between;gap:12px;color:var(--muted);margin-top:26px}.footer button{font-size:.8125rem;min-height:32px;padding:4px 8px}.settings-layout{max-width:930px;display:grid;gap:24px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:22px}.field{display:grid;gap:6px;align-content:start}.field label{font-size:.875rem;font-weight:550}.field small{font-size:.8125rem;color:var(--muted)}.form-error{color:var(--danger);font-size:.875rem;min-height:20px}.form-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.form-actions p{font-size:.875rem;color:var(--muted)}.settings-description{font-size:.9375rem;color:var(--muted);margin-top:7px}.schedule-row{display:grid;grid-template-columns:minmax(90px,1fr) 130px 24px 130px;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #edf1ee}.schedule-row:last-child{border:0}.schedule-row label{font-size:.9375rem}.schedule-times-label{font-size:.8125rem;color:var(--muted);margin-bottom:8px}.checkbox-field{display:flex;gap:12px;align-items:flex-start;margin-top:20px;font-size:.875rem}.source-row{display:grid;grid-template-columns:1fr auto;gap:12px;padding:20px 0;border-bottom:1px solid var(--line)}.source-row:first-child{padding-top:0}.source-row:last-child{border:0;padding-bottom:0}.source-row p{font-size:.875rem;color:var(--muted);margin-top:5px}.source-row .small{display:block;color:var(--muted);font-size:.8125rem;margin-top:6px}.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 30px;margin-top:20px}.profile-grid dt{font-size:.8125rem;color:var(--muted)}.profile-grid dd{margin:2px 0 0;font-size:.9375rem}.check-list{list-style:none;padding:0;margin:18px 0 0;display:grid;gap:14px}.check-list li{display:flex;gap:12px;font-size:.9375rem}.check-list .icon{color:var(--muted);margin-top:2px}.empty-copy{padding:22px 0;color:var(--muted);font-size:.9375rem}.lock-panel{display:flex;align-items:flex-start;gap:14px;background:var(--blue-pale);padding:20px;border-radius:12px;color:#254f75;margin-top:20px}.lock-panel p{font-size:.875rem;margin-top:4px}.login-wrap{min-height:100dvh;display:grid;place-items:center;padding:28px;background:#edf3ef}.login-card{width:100%;max-width:440px;background:#fff;border:1px solid var(--line);border-radius:20px;padding:38px;box-shadow:0 18px 65px #0000000a}.login-card .brand{margin-bottom:35px}.login-card h1{font-size:1.6rem}.login-card p{color:var(--muted);font-size:.9375rem;margin:9px 0 24px}.login-card form{display:grid;gap:18px}.login-card .primary{width:100%;margin-top:4px}.login-foot{border-top:1px solid var(--line);margin-top:24px;padding-top:20px;text-align:center;font-size:.875rem;color:var(--muted)}.login-foot a{display:block;margin-top:8px}.toast{position:fixed;z-index:100;bottom:26px;left:50%;transform:translateX(-50%);max-width:min(560px,calc(100% - 32px));padding:14px 20px;background:#173d34;color:#fff;border-radius:11px;box-shadow:0 8px 25px #00000026;font-size:.9375rem}.toast.error{background:#842f2f}.toast[hidden]{display:none}.skeleton{height:130px;border-radius:12px;background:#e7eeea}.load-error{padding:30px;background:#fff;border:1px solid #e3b7ac;border-radius:12px}.load-error p{margin:10px 0 20px}.mobile-brand{display:none}.hidden{display:none!important}
@media(min-width:1600px){.main{padding-top:44px}.grid{grid-template-columns:minmax(0,1.8fr) minmax(340px,1fr)}}
@media(max-width:1200px){.layout{grid-template-columns:185px minmax(0,1fr)}.sidebar{padding:30px 14px}.main{padding:30px 26px}.grid{grid-template-columns:minmax(0,1fr)}.overview-bottom{grid-template-columns:minmax(0,1.3fr) minmax(270px,1fr)}.overview-side{display:grid;grid-template-columns:1fr 1fr;gap:24px}.metric{padding:20px}.metric-value{font-size:1.8rem}.user-name{display:none}}
@media(max-width:760px){.layout{display:block}.sidebar{position:fixed;z-index:20;top:auto;bottom:0;left:0;width:100%;height:auto;padding:6px 8px calc(6px + env(safe-area-inset-bottom));background:#fff;border-right:0;border-top:1px solid var(--line)}.sidebar>.brand,.sidebar>.brand-sub,.sidebar-foot{display:none}.nav{display:grid;grid-template-columns:repeat(5,1fr);gap:2px}.nav button{display:flex;flex-direction:column;justify-content:center;gap:3px;padding:6px 0;font-size:.6875rem;min-height:52px;line-height:1.4;border-radius:8px}.nav button.active{color:var(--green);background:#eaf4ee;border-color:transparent}.nav button .icon{width:22px;height:22px}.main{padding:22px 16px 110px}.topbar{margin-bottom:20px;gap:8px;align-items:flex-start}h1{font-size:1.65rem}.date{font-size:.8125rem}.user-tools{gap:7px}.avatar{width:30px;height:30px;font-size:.75rem}.logout{min-height:36px;font-size:.75rem;padding:6px 8px}.mobile-brand{display:block;margin-bottom:22px}.mobile-brand .brand{font-size:1.5rem;gap:8px}.mobile-brand .brand .icon{width:25px;height:25px}.notice{font-size:.8125rem;padding:11px 12px;margin-bottom:20px;gap:8px}.notice a{display:none}.metrics{margin-bottom:18px}.metric{padding:15px 10px}.metric+.metric{border-color:#e2e9e4}.metric-label{font-size:.8125rem;gap:4px}.metric-label .icon{display:none}.metric-value{font-size:1.45rem;letter-spacing:-.04em}.metric-value span{font-size:.75rem;margin-left:2px}.metric-sub{font-size:.75rem}.grid,.stack{gap:18px}.panel{padding:20px 16px;border-radius:13px}.overview-side,.overview-bottom{display:grid;grid-template-columns:1fr;gap:18px}.temp-big{font-size:2.8rem}.temperature{gap:10px}.room-heading{gap:8px}.status-pill{font-size:.75rem;padding:5px 8px}.room-target{font-size:.8125rem}.chart-wrap{min-height:190px}.section-head{margin-bottom:16px;align-items:flex-start}.periods button{font-size:.75rem;padding:4px 8px;min-height:30px}.section-head h2{font-size:1.05rem}.legend{font-size:.75rem;gap:14px}.advice-panel h3{font-size:1.3rem}.form-grid{grid-template-columns:1fr;gap:18px}.schedule-row{grid-template-columns:minmax(60px,1fr) minmax(95px,1fr) 15px minmax(95px,1fr);gap:5px}.schedule-row label{font-size:.8125rem}.schedule-row input{padding:9px 5px;font-size:.875rem;min-width:0}.profile-grid{gap:18px}.source-row{grid-template-columns:1fr auto;gap:8px}.source-row p{font-size:.8125rem}.footer{font-size:.75rem;align-items:flex-start}.footer span{max-width:70%}.toast{bottom:95px}.login-card{padding:28px}.login-card .brand{margin-bottom:28px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
