:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none;color:var(--text);background:var(--bg);color-scheme:light;--bg:#e8dfcf;--surface:#f0e8da;--raised:#e9dfce;--inset:#e5dccb;--text:#293c31;--muted:#677162;--line:#d4cbb9;--accent:#526f43;--selected:#2d4938;--on-selected:#ede7d6;--lime:#cfdfa0;--solar:#a77b30;--battery:#55805d;--grid:#a27c60;--home:#5e7c85;--shadow:#4b453b0b;--notice:#e9d8b5;--warning:#8e6028}
:root[data-theme=dark]{color-scheme:dark;--bg:#101914;--surface:#1a261e;--raised:#243329;--inset:#152119;--text:#e1e4d4;--muted:#a2b19e;--line:#344437;--accent:#b0cd85;--selected:#c5d99b;--on-selected:#1b2c1d;--lime:#bdd78b;--solar:#d8b26c;--battery:#94be8c;--grid:#c8a083;--home:#92b5ba;--shadow:#0002;--notice:#42351e;--warning:#e1b874}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0;transition:background-color .2s,color .2s}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}a{color:inherit;text-underline-offset:3px}button{cursor:pointer}button:active{transform:scale(.97)}[hidden]{display:none!important}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid var(--accent);outline-offset:4px}.app-header{max-width:1160px;margin:auto;padding:22px 28px;display:flex;align-items:center;justify-content:space-between;gap:16px}.brand{display:flex;gap:11px;align-items:center;text-decoration:none;font-size:18px;font-weight:650;letter-spacing:-.5px;white-space:nowrap}.brand svg{width:40px;height:40px;flex:none}.brand svg rect{fill:var(--lime)}.brand svg path,.brand svg circle{fill:none;stroke:#294536;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.brand small{display:block;font-size:10px;font-weight:450;letter-spacing:.3px;color:var(--muted);margin-top:3px}.header-actions{display:flex;align-items:center;gap:8px}.language-control{display:flex;padding:3px;background:var(--inset);border:1px solid var(--line);border-radius:30px;gap:2px}.language-control button{min-height:44px;min-width:64px;background:transparent;border:1px solid transparent;border-radius:24px;padding:8px 10px;color:var(--muted);font-size:12px;font-weight:550;display:flex;align-items:center;justify-content:center;gap:6px}.language-control button[aria-pressed=true]{background:var(--selected);color:var(--on-selected);box-shadow:0 2px 6px var(--shadow);font-weight:750}.language-control button[aria-pressed=false]{border-color:var(--line)}.language-control button span{font-size:17px}.icon-button{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);border-radius:50%;background:var(--surface);color:var(--text);flex:none}.icon-button svg{width:20px;height:20px}.sun{display:none}:root[data-theme=dark] .moon{display:none}:root[data-theme=dark] .sun{display:block}.primary-button{min-height:48px;border:0;border-radius:14px;background:var(--selected);color:var(--on-selected);padding:12px 25px;font-weight:600}.primary-button:disabled{opacity:.6;cursor:wait}main{max-width:1104px;margin:0 auto;padding:10px 0 110px}.section{margin-bottom:22px;padding:30px;background:var(--surface);border:1px solid var(--line);border-radius:26px;box-shadow:0 4px 25px var(--shadow);scroll-margin-top:20px;min-width:0}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:14px}.eyebrow{font-size:10px;font-weight:650;letter-spacing:1.7px;text-transform:uppercase;color:var(--muted);margin:0 0 8px}h1,h2,h3,p{margin-top:0}h1{font-size:30px;font-weight:550;line-height:1.15;letter-spacing:-1px;margin-bottom:0}h2{font-size:26px;line-height:1.2;font-weight:550;letter-spacing:-.8px;margin-bottom:0}h3{font-size:18px;font-weight:550;letter-spacing:-.3px;line-height:1.5}.muted{color:var(--muted)}.small{font-size:12px;line-height:1.7}.live-status{text-align:right;font-size:12px;max-width:160px}.live-status>span{display:block;font-weight:600}.live-status>span:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--battery);margin-right:6px}.live-status small{display:block;color:var(--muted);font-size:10px;margin-top:6px}.stale .live-status>span{color:var(--warning)}.stale .live-status>span:before{background:var(--warning)}
/* Direction is encoded in both travelling pulses and a stationary arrow. */
.flow-map{height:480px;position:relative;max-width:840px;margin:0 auto}.flow-lines{position:absolute;inset:0;width:100%;height:100%;overflow:visible}.flow-track{--flow:var(--muted);fill:none;stroke-linecap:round;stroke-linejoin:round}.solar{--flow:var(--solar)}.battery{--flow:var(--battery)}.grid{--flow:var(--grid)}.home{--flow:var(--home)}.flow-base{stroke:var(--flow);stroke-width:1.3;opacity:.26;vector-effect:non-scaling-stroke}.flow-pulse{stroke:var(--flow);stroke-width:3.5;stroke-dasharray:1 21;animation:energy-pulse var(--duration,3s) linear infinite;vector-effect:non-scaling-stroke;opacity:.9}.flow-arrow{stroke:var(--flow);stroke-width:2;transform-box:fill-box;transform-origin:center;vector-effect:non-scaling-stroke}.flow-track[data-state=reverse] .flow-pulse{animation-direction:reverse}.flow-track[data-state=reverse] .flow-arrow{transform:rotate(180deg)}.flow-track[data-state=idle] .flow-pulse,.flow-track[data-state=unknown] .flow-pulse,.flow-track[data-state=idle] .flow-arrow,.flow-track[data-state=unknown] .flow-arrow{visibility:hidden}.stale .flow-pulse,.stale .flow-arrow{visibility:hidden}.stale .flow-base{opacity:.15}.stale .flow-node strong,.stale .soc-badge{opacity:.5}.paused .flow-pulse{animation-play-state:paused}@keyframes energy-pulse{to{stroke-dashoffset:-88}}
.flow-node{position:absolute;top:5%;width:29%;display:flex;flex-direction:column;align-items:center;text-align:center;transform:translateX(-50%);min-width:0}.solar-node,.battery-node{left:17%}.grid-node,.home-node{left:83%}.battery-node,.home-node{top:65%}.node-icon{width:76px;height:76px;display:grid;place-items:center;position:relative;border:1px solid var(--line);border-radius:24px;background:var(--raised);box-shadow:inset 0 1px 0 #b8c0a51a,0 6px 16px var(--shadow);color:var(--flow)}.node-icon svg{width:53px;height:53px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.icon-panel{fill:var(--flow);fill-opacity:.07}.icon-glow{fill:var(--flow);fill-opacity:.12}.battery-charge{fill:var(--flow);stroke:none}.soc-badge{position:absolute;bottom:-9px;right:-13px;background:var(--selected);color:var(--on-selected);border:3px solid var(--surface);border-radius:20px;padding:4px 7px;font-size:10px;white-space:nowrap;line-height:1}.soc-badge b{font-size:13px;font-weight:650}.flow-node p{font-size:12px;color:var(--muted);margin:16px 0 6px}.flow-node strong{font-size:30px;font-weight:550;letter-spacing:-1px;line-height:1.25;white-space:nowrap;font-variant-numeric:tabular-nums}.flow-node small{font-size:11px;color:var(--muted);margin-top:5px}.inverter-node{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;flex-direction:column;pointer-events:none}.inverter-icon{width:100px;height:153px;filter:drop-shadow(0 9px 10px #1522161c)}.inverter-node>span{font-size:12px;font-weight:600;margin-top:9px}.inverter-node>small{font-size:9px;margin-top:4px;color:var(--muted);white-space:nowrap}.inverter-led{fill:#9bc973}.stale .inverter-led{fill:#9b9169}.live-summary{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);padding-top:23px;margin-top:7px;gap:15px}.live-summary p{margin:0;display:flex;flex-direction:column;gap:8px}.live-summary p+p{border-left:1px solid var(--line);padding-left:24px}.live-summary span{font-size:11px;color:var(--muted)}.live-summary strong{font-size:23px;letter-spacing:-.5px;font-weight:550;font-variant-numeric:tabular-nums}.live-summary .unit{font-size:14px;margin-left:2px}.phase-details{margin-top:20px;border-top:1px solid var(--line)}summary{min-height:44px;display:flex;align-items:center;gap:8px;cursor:pointer;font-size:12px;color:var(--muted);list-style:none}summary::-webkit-details-marker{display:none}summary:before{content:"+";font-size:17px}details[open]>summary:before{content:"−"}.phase-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;padding:9px 0}.phase-strip p{font-size:10px;color:var(--muted);margin:0}.phase-strip strong{display:block;color:var(--text);font-size:14px;font-weight:550;margin-top:6px;font-variant-numeric:tabular-nums}
.forecast-total{display:flex;align-items:baseline;gap:7px;white-space:nowrap}.forecast-total strong{font-size:46px;font-weight:500;letter-spacing:-2px;font-variant-numeric:tabular-nums}.forecast-total>span{font-size:15px;color:var(--muted)}.forecast-section .section-heading p.small{margin:8px 0 0}.chart-hint{font-size:10px;margin:18px 0 4px}.hour-chart{display:grid;grid-template-columns:repeat(18,minmax(0,1fr));height:200px;gap:5px;padding:8px 0 16px;margin-bottom:15px;position:relative;background:repeating-linear-gradient(to top,transparent 0,transparent 45px,var(--line) 46px,transparent 47px);border-bottom:1px solid var(--line)}.hour-bar{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:9px;position:relative;min-height:44px;min-width:0;border:0;background:transparent;color:var(--muted);padding:0;border-radius:5px;touch-action:manipulation}.hour-bar .bar{width:100%;max-width:30px;height:var(--height);min-height:3px;background:var(--solar);opacity:.35;border-radius:5px 5px 2px 2px;transition:height .25s,opacity .15s}.hour-bar[aria-pressed=true] .bar{opacity:1}.hour-bar:hover .bar{opacity:.75}.hour-bar[aria-pressed=true]{color:var(--text);font-weight:750}.hour-bar time{font-size:10px;font-variant-numeric:tabular-nums}#forecast-hour{width:100%;height:44px;accent-color:var(--solar);margin:0 0 9px}.hour-detail{display:grid;grid-template-columns:.75fr repeat(3,1fr);gap:16px;padding:20px;background:var(--inset);border:1px solid var(--line);border-radius:16px;align-items:center}.hour-detail>strong{font-size:25px;font-weight:500;letter-spacing:-.6px}.hour-detail p{margin:0;font-size:10px;color:var(--muted);line-height:1.5}.hour-detail b{display:block;font-size:16px;font-weight:550;color:var(--text);margin-top:5px;font-variant-numeric:tabular-nums}.forecast-source{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:20px;font-size:12px}.forecast-source span{color:var(--muted)}.forecast-source a{font-weight:600;padding:12px 0;min-height:44px}.source-links{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:12px}.source-links a{font-size:11px;min-height:44px;display:flex;align-items:center;padding:8px 12px;background:var(--inset);border:1px solid var(--line);border-radius:12px}.forecast-section>div>.small:last-child{font-size:10px;margin-bottom:0}
.plan-section{background:var(--raised)}.advice-badge{border:1px solid var(--line);border-radius:30px;padding:9px 12px;font-size:10px;color:var(--muted);white-space:nowrap}.plan-grid{display:grid;grid-template-columns:1fr 1fr;gap:50px;margin-top:28px}.target-number{display:flex;align-items:baseline;gap:5px;margin-bottom:9px}.target-number strong{font-size:72px;line-height:1;font-weight:500;letter-spacing:-3px;font-variant-numeric:tabular-nums}.target-number span{font-size:24px;color:var(--muted)}.plan-result>p:first-of-type{font-size:11px;color:var(--muted);margin-bottom:24px}.plan-result>.muted{font-size:13px;line-height:1.7}.plan-context>p:first-child{font-size:13px;line-height:1.7}.setting-row{padding:14px 0;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.plan-context>.small{font-size:11px;margin:15px 0 0}.advice-note{padding-top:19px;margin-top:22px;border-top:1px solid var(--line);font-size:11px;line-height:1.6;color:var(--muted)}.notice{padding:13px;background:var(--notice);border:1px solid var(--line);border-radius:11px;font-size:12px;line-height:1.6}.section-nav{position:fixed;bottom:max(15px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;padding:5px;border:1px solid var(--line);border-radius:30px;background:var(--surface);box-shadow:0 6px 30px var(--shadow);z-index:5;gap:3px}.section-nav a{display:grid;place-items:center;min-width:105px;min-height:44px;text-decoration:none;font-size:12px;border-radius:25px}.section-nav a.active{background:var(--selected);color:var(--on-selected);font-weight:600}footer{display:flex;justify-content:space-between;gap:12px;padding:0 5px;font-size:10px;line-height:1.6;color:var(--muted)}.login{max-width:440px;margin:55px auto;padding:25px}.login-symbol{display:grid;place-items:center;width:60px;height:60px;border-radius:20px;background:var(--lime);color:#294536;font-size:30px;margin-bottom:30px}.login h1{font-size:36px;margin-bottom:16px}.login>.muted{font-size:15px;line-height:1.7}.login form{margin-top:30px}.login label{display:block;font-size:12px;margin-bottom:9px}.login input{display:block;width:100%;height:50px;border:1px solid var(--line);border-radius:12px;padding:12px;background:var(--surface);color:var(--text)}.login .primary-button{width:100%;margin-top:12px}.login #login-error{font-size:12px;color:var(--warning);line-height:1.6;margin-top:15px}.skip{position:fixed;top:-100px;left:10px;background:var(--surface);padding:12px;z-index:10}.skip:focus{top:10px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:1160px){main{padding:10px 24px 110px}}@media(min-width:900px){main{display:grid;grid-template-columns:1.2fr 1fr;gap:22px}.live-section{grid-column:1/-1}.forecast-section,.plan-section{margin-bottom:0}.forecast-section .hour-chart{gap:3px}.plan-grid{grid-template-columns:1fr;gap:20px}.plan-section .section-heading{align-items:flex-start}.plan-section .advice-badge{display:none}footer{grid-column:1/-1}}
@media(max-width:560px){.app-header{padding:16px;flex-wrap:wrap;gap:14px}.brand{font-size:16px}.brand small{font-size:9px}.brand svg{width:35px;height:35px}.header-actions{gap:6px;margin-left:auto}.language-control button{min-width:55px;padding:8px;font-size:11px}.language-control button span{font-size:16px}.section{padding:23px 17px;border-radius:22px;margin-bottom:16px}main{padding:5px 12px 105px}.section-heading{gap:12px;margin-bottom:12px}h1{font-size:26px;letter-spacing:-.8px}h2{font-size:23px}.live-status{font-size:10px;max-width:120px;min-width:80px}.live-status small{font-size:9px}.flow-map{height:410px;margin:0 -3px}.node-icon{width:64px;height:64px;border-radius:21px}.node-icon svg{width:45px;height:45px}.flow-node p{font-size:11px;margin-top:15px}.flow-node strong{font-size:24px;letter-spacing:-.8px}.flow-node small{font-size:9px;line-height:1.4}.inverter-icon{width:76px;height:116px}.inverter-node>span{font-size:10px}.inverter-node>small{font-size:8px}.soc-badge{right:-12px;bottom:-8px;padding:4px 6px}.live-summary{gap:8px;padding-top:19px}.live-summary p+p{padding-left:12px}.live-summary span{font-size:9px;line-height:1.4}.live-summary strong{font-size:18px;white-space:nowrap}.phase-strip{gap:8px}.phase-strip strong{font-size:12px}.forecast-section .section-heading{align-items:flex-start}.forecast-total{gap:4px;flex-direction:column;align-items:flex-end}.forecast-total strong{font-size:35px;line-height:1.05}.forecast-total>span{font-size:13px}.forecast-section .section-heading .small{font-size:11px}.hour-chart{height:180px;gap:3px}.hour-bar time{font-size:9px}.hour-bar:nth-child(even) time{transform:translateY(13px)}.hour-detail{grid-template-columns:1fr 1fr;padding:16px;gap:17px;margin-top:7px}.hour-detail>strong{font-size:23px}.hour-detail p{font-size:10px}.plan-grid{grid-template-columns:1fr;gap:22px;margin-top:24px}.target-number strong{font-size:68px}.advice-badge{font-size:9px;padding:8px 10px}.section-nav{bottom:max(12px,env(safe-area-inset-bottom));width:calc(100% - 44px);max-width:380px}.section-nav a{min-width:0;flex:1;font-size:12px}footer{font-size:9px}.login{margin:25px auto;padding:24px}.login h1{font-size:32px}}
@media(max-width:370px){.app-header{justify-content:center}.brand{margin-right:auto}.header-actions{width:100%;justify-content:space-between}.language-control{margin-right:auto}.flow-map{height:385px}.node-icon{width:58px;height:58px;border-radius:18px}.node-icon svg{width:42px;height:42px}.flow-node strong{font-size:20px}.flow-node p{font-size:10px}.inverter-icon{width:65px;height:99px}.inverter-node>small{font-size:7px}.live-summary strong{font-size:16px}.live-summary p+p{padding-left:9px}.live-status{max-width:95px}.hour-chart{gap:2px}.hour-bar time{font-size:8px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}.flow-pulse{display:none}}
@media(prefers-contrast:more){.flow-base{opacity:.7}.section,.node-icon,.icon-button{border-width:2px}.muted{color:var(--text)}}
