:root{color-scheme:light;--ink:#17383b;--muted:#6c7e7e;--line:#e0e7e4;--paper:#f4f6f2;--white:#fff;--green:#2c6559;--orange:#c57c3c;--target:#1767c5;--supply:#ce8250;--return:#448c92;--buffer:#8a78a5}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}button,input{font:inherit}button{cursor:pointer;border:1px solid #cdd8d1;border-radius:9px;background:#fff;color:var(--ink);padding:11px 18px;min-height:44px;font-weight:550}button:disabled{opacity:.55;cursor:wait}button:hover{filter:brightness(.97)}button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #5e9c8e;outline-offset:3px}[hidden]{display:none!important}.topbar{min-height:89px;background:#142e32;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:20px max(28px,calc((100vw - 1320px)/2));gap:20px}.brand{display:flex;gap:13px;align-items:center;font-size:17px;font-weight:650;letter-spacing:.1px}.brand-sub{display:block;color:#a7c0bb;font-size:11px;font-weight:400;letter-spacing:.3px;margin-top:5px}.quiet{background:transparent;color:#d7e7e1;border-color:#416063;font-size:13px}nav{display:flex;gap:10px}main{max-width:1376px;margin:0 auto;padding:42px 28px 60px}h1,h2,p{margin-top:0}h1{font-size:36px;letter-spacing:-1.2px;line-height:1.16;margin-bottom:12px;font-weight:550}h2{font-size:21px;line-height:1.3;font-weight:550;letter-spacing:-.4px;margin-bottom:8px}.muted{color:var(--muted);font-size:14px;line-height:1.6}.eyebrow{display:block;font-size:10px;font-weight:750;letter-spacing:1.7px;color:#6b8b7a;margin-bottom:12px}.login-layout{display:grid;grid-template-columns:1.1fr 1fr;gap:90px;align-items:center;min-height:calc(100vh - 250px);max-width:1040px;margin:auto}.intro h1{font-size:49px;letter-spacing:-1.8px}.intro p{font-size:16px;color:var(--muted);line-height:1.8;max-width:440px}.intro-note{display:flex;align-items:center;gap:9px;color:#547366;font-size:12px;margin-top:30px}.login-card{padding:38px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:0 18px 40px #183a2f05}.login-card h2{font-size:24px}.login-card>p{line-height:1.6}label{display:block;font-size:12px;font-weight:600;color:#556c69;margin:22px 0 8px}input{width:100%;min-height:49px;border:1px solid #cfdbd4;border-radius:9px;background:#fbfcfa;padding:12px 14px;color:var(--ink);font-size:16px}.primary{background:#295f54;color:white;border-color:#295f54}.login-card .primary{width:100%;display:flex;justify-content:space-between;margin-top:20px;font-size:13px}.code-input{font-size:25px;letter-spacing:9px;text-align:center}.checkbox{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:400}.checkbox input{width:18px;min-height:18px;height:18px;accent-color:var(--green)}.text-button{border:0;background:transparent;padding:10px 0;font-size:12px;font-weight:400;color:var(--muted)}.message{font-size:13px;line-height:1.6;color:#386e5c;overflow-wrap:anywhere}.message.error{color:#a23f35}.fine-print{border-top:1px solid var(--line);padding-top:20px;font-size:11px;color:var(--muted);margin:22px 0 0}.page-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:32px}.page-heading p{margin-bottom:0}.freshness{display:flex;align-items:center;gap:10px;font-size:12px;text-align:left}.freshness strong{display:block;font-weight:550}.freshness span:not(.status-dot){display:block;color:var(--muted);font-size:10px;margin-top:5px}.status-dot{width:7px;height:7px;border-radius:50%;background:#6f9c84;display:inline-block;flex:none}.status-dot.stale{background:#c28e52}.temperature-grid,.energy-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.panel{background:var(--white);border:1px solid var(--line);border-radius:16px;padding:25px;min-width:0}.panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.panel-head h2{font-size:18px;margin:13px 0 3px}.panel-head p{font-size:11px;margin-bottom:0}.tag{font-size:8px;font-weight:750;letter-spacing:1.1px;padding:5px 7px;border-radius:4px;display:inline-block}.warm{color:#9b602c;background:#fbf0e2}.cool{color:#326d67;background:#e8f2ef}.temperature-now{text-align:right;white-space:nowrap;padding-top:9px}.temperature-now strong{display:block;font-size:30px;font-weight:500;letter-spacing:-1px}.temperature-now span{font-size:9px;color:var(--muted)}.chart-wrap{margin:27px -8px 5px}.chart-wrap svg{display:block;width:100%;height:auto;overflow:visible}.chart-grid{stroke:#edf0ec;stroke-width:1}.chart-tick{fill:#91a09b;font-size:10px}.chart-line{fill:none;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}.line-target{stroke:var(--target);stroke-width:3;stroke-dasharray:8 4}.line-supply{stroke:var(--supply)}.line-return{stroke:var(--return)}.line-buffer{stroke:var(--buffer);stroke-dasharray:2 3}.chart-detail{font-size:10px;color:var(--muted);min-height:15px;margin:5px 0 16px}.legend{display:grid;grid-template-columns:1fr 1fr;gap:13px 18px;border-top:1px solid var(--line);padding-top:17px}.legend-item{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--muted)}.legend-item strong{margin-left:auto;color:var(--ink);font-size:12px;font-weight:550}.legend-dot{width:14px;height:2px;display:inline-block;flex:none}.dot-target{background:var(--target)}.dot-supply{background:var(--supply)}.dot-return{background:var(--return)}.dot-buffer{background:var(--buffer)}.chart-note{font-size:9px;color:var(--muted);line-height:1.6;margin:14px 0 0}.energy-section,.efficiency-section{margin-top:36px}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:17px}.section-heading .eyebrow{margin-bottom:7px}.section-heading h2{margin:0;font-size:22px}.section-heading>span{font-size:11px}.energy-card{padding:23px 25px}.energy-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:21px}.energy-values>div+div{border-left:1px solid var(--line);padding-left:25px}.energy-values span{display:block;font-size:11px;color:var(--muted);margin-bottom:7px}.energy-values strong{font-size:27px;letter-spacing:-.6px;font-weight:500}.energy-values strong small{font-size:12px;font-weight:400;color:var(--muted);letter-spacing:0}.spf-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.spf-card>span{font-size:12px;color:var(--muted)}.spf-card>strong{display:block;font-size:38px;letter-spacing:-1px;font-weight:500;margin:13px 0 8px}.spf-card>small{display:block;font-size:10px;color:var(--muted);line-height:1.5}.spf-card.global{background:#e9f0e8;border-color:#d4dfd2}.data-notes{margin-top:26px;border-top:1px solid var(--line);padding-top:18px;color:var(--muted);font-size:12px;line-height:1.7}.data-notes summary{cursor:pointer;color:#496d60;font-weight:550}.data-notes ul{padding-left:18px}.notice{border:1px solid #e7d6b3;background:#fff8eb;color:#8c6b36;border-radius:10px;padding:14px 18px;font-size:13px;margin-bottom:22px}.admin-panel{max-width:900px}.inline-form{display:flex;gap:12px}.inline-form input{flex:1}.inline-form .primary{white-space:nowrap}.email-row{display:flex;align-items:center;justify-content:space-between;padding:17px 0;border-bottom:1px solid var(--line);gap:12px}.email-row span{font-size:14px;overflow-wrap:anywhere}.email-row small{font-size:10px;color:var(--muted);display:block;margin-top:6px}.email-row button{font-size:11px;min-height:36px;padding:8px 12px}.admin-badge{color:#376f5c;font-size:11px;white-space:nowrap}footer{border-top:1px solid var(--line);color:#8a9990;font-size:10px;text-align:center;padding:22px 15px;line-height:1.8}@media(max-width:980px){.temperature-grid{grid-template-columns:1fr}.login-layout{gap:35px}.intro h1{font-size:39px}.panel-head h2{font-size:20px}}@media(max-width:640px){.topbar{padding:17px 18px;min-height:78px}.brand{font-size:14px}.brand-sub{font-size:9px}.quiet{font-size:10px;padding:8px 10px;min-height:38px}nav{gap:6px}main{padding:28px 16px 40px}.page-heading{align-items:flex-start;flex-direction:column;margin-bottom:25px}h1{font-size:30px}.freshness{margin-top:3px}.login-layout{display:block;min-height:auto}.intro{padding:18px 5px 28px}.intro h1{font-size:36px}.intro p{font-size:14px}.intro-note{margin-top:18px}.login-card{padding:25px}.login-card h2{font-size:22px}.panel{padding:20px 18px;border-radius:13px}.panel-head h2{font-size:16px;max-width:190px}.temperature-now strong{font-size:27px}.temperature-now span{font-size:8px}.energy-grid,.spf-grid{grid-template-columns:1fr;gap:14px}.energy-values strong{font-size:28px}.section-heading{align-items:flex-start;flex-direction:column;gap:10px}.section-heading h2{font-size:20px}.energy-section,.efficiency-section{margin-top:28px}.spf-card{display:grid;grid-template-columns:1fr auto;gap:6px;align-items:center}.spf-card>strong{grid-column:2;grid-row:1/3;margin:0;font-size:34px}.spf-card>small{grid-row:2;grid-column:1}.inline-form{flex-direction:column}.email-row span{font-size:12px}.email-row button{font-size:10px}.legend{gap:12px}.legend-item{font-size:9px}.legend-item strong{font-size:11px}footer{font-size:9px}}

#email,#code{height:58px;min-height:58px;max-height:58px;width:100%;min-width:0}.login-card{min-width:0}.daily-summary{font-size:12px;color:var(--muted);line-height:1.7;margin:16px 0 0}.daily-summary strong{color:var(--ink);margin-right:12px}@media(max-width:640px){.energy-values{gap:10px}.energy-values>div+div{padding-left:12px}.energy-values strong{font-size:24px}}

.energy-values .previous-day{display:block;margin-top:7px;font-size:11px;font-weight:400;line-height:1.5;color:var(--muted);letter-spacing:0;overflow-wrap:anywhere}

#dhw-chart .line-buffer{stroke:var(--supply);stroke-dasharray:7 4}#dhw-chart .line-target{stroke:var(--supply);stroke-dasharray:none}#dhw-chart .line-off{stroke:var(--target)}#dhw-legend .dot-target{background:var(--supply)}#dhw-legend .dot-buffer{background:repeating-linear-gradient(to right,var(--supply) 0 4px,transparent 4px 7px)}.dot-off{background:var(--target)}

#heating-chart .line-target{stroke:var(--supply);stroke-dasharray:none}#heating-chart .line-supply{stroke:var(--supply);stroke-dasharray:7 4}#heating-legend .dot-target{background:var(--supply)}#heating-legend .dot-supply{background:repeating-linear-gradient(to right,var(--supply) 0 4px,transparent 4px 7px)}

#heating-chart .line-return{stroke:var(--target);stroke-dasharray:7 4}#heating-legend .dot-return{background:repeating-linear-gradient(to right,var(--target) 0 4px,transparent 4px 7px)}

#dhw-chart .line-target,#heating-chart .line-target{stroke:#8b1e2d}#dhw-chart .line-off{stroke:var(--target)}#dhw-legend .dot-target,#heating-legend .dot-target{background:#8b1e2d}

.yearly-panel{margin-top:22px}.yearly-panel .section-heading h2{font-size:18px}.yearly-legend{display:flex;flex-wrap:wrap;gap:18px;font-size:11px;color:var(--muted)}.yearly-legend span{display:flex;align-items:center;gap:7px}.yearly-legend i{width:17px;height:3px;display:inline-block}.efficiency-dhw{stroke:#8b1e2d;fill:#8b1e2d;background:#8b1e2d}.efficiency-heating{stroke:#448c92;fill:#448c92;background:#448c92}.efficiency-global{stroke:#8a78a5;fill:#8a78a5;background:#8a78a5}.efficiency-line{fill:none;stroke-width:2}.efficiency-point{stroke-width:0}

.history-controls{display:flex;align-items:center;gap:10px;margin-top:18px;flex-wrap:wrap}.history-controls label{margin:0;font-size:11px}.history-controls input{width:155px;min-width:0;min-height:38px;padding:7px 9px;font-size:13px;max-width:100%}.history-controls button{font-size:11px;min-height:38px;padding:7px 10px}.history-period{font-size:11px;color:var(--muted);margin:8px 0 -12px}.year-picker{display:flex;align-items:center;gap:9px;margin:0;font-size:12px}.year-picker select{font:inherit;color:var(--ink);background:white;border:1px solid var(--line);border-radius:7px;padding:8px 12px;min-height:38px}

.calendar-field{position:relative;display:inline-block;width:155px;max-width:100%;min-width:0}.history-controls .calendar-field input{width:100%;color:transparent;-webkit-text-fill-color:transparent;caret-color:transparent}.calendar-date-label{position:absolute;left:10px;top:50%;transform:translateY(-50%);font-size:13px;line-height:1.3;color:var(--ink);pointer-events:none;background:#fbfcfa;padding-right:5px}.calendar-field input::-webkit-calendar-picker-indicator{opacity:1;color:var(--ink);cursor:pointer}.calendar-field input:focus-visible{outline:3px solid #5e9c8e;outline-offset:3px}

.calendar-picker{position:relative;min-width:0}.calendar-picker>button{width:145px;text-align:left;background:#fbfcfa}.calendar-picker>button::after{content:"▾";float:right;margin-left:12px}.calendar-popup{position:absolute;top:calc(100% + 6px);left:0;width:260px;max-width:calc(100vw - 65px);z-index:10;padding:13px;background:white;border:1px solid var(--line);border-radius:10px;box-shadow:0 8px 24px #17383b20}.calendar-popup select{width:100%;padding:8px;font:inherit;font-size:13px;color:var(--ink);background:white;border:1px solid var(--line);border-radius:6px;margin-bottom:10px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;text-align:center}.calendar-weekday{font-size:10px;color:var(--muted);padding:4px 0}.history-controls .calendar-grid button{padding:0;min-height:30px;font-size:12px;border:0;border-radius:5px}.calendar-grid button:disabled{color:#aeb8b3;background:#f7f8f6;cursor:default;opacity:.65}.calendar-grid button[aria-pressed=true]{background:var(--green);color:white}.calendar-popup small{display:block;font-size:10px;line-height:1.5;color:var(--muted);margin-top:9px}

@media(max-width:640px){.calendar-popup{position:fixed;left:50%;top:22%;transform:translateX(-50%);width:280px;max-width:calc(100vw - 32px);max-height:70vh;overflow:auto}}
