*,*:before,*:after{margin:0;padding:0;box-sizing:border-box}:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5;font-weight:400;color-scheme:dark;color:#e0e0e0;background-color:#12121a;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}body{min-height:100vh}a{color:inherit;text-decoration:none}button{font-family:inherit}.demo-toggle{display:flex;align-items:center;gap:8px}.demo-toggle__btn{display:flex;align-items:center;gap:6px;padding:6px 14px;border-radius:20px;border:2px solid #3a3a4e;background:#1e1e2e;color:#a0a0b0;font-size:13px;font-weight:600;cursor:pointer;transition:all .3s ease;letter-spacing:.5px}.demo-toggle__btn:hover{border-color:#22c55e;color:#e0e0e0}.demo-toggle__btn--active{border-color:#f59e0b;background:#f59e0b26;color:#f59e0b}.demo-toggle__btn--active:hover{border-color:#ef4444;background:#ef444426;color:#ef4444}.demo-toggle__icon{font-size:16px}.demo-toggle__label{font-size:11px;text-transform:uppercase;letter-spacing:1px}.demo-toggle__badge{font-size:11px;color:#f59e0b;background:#f59e0b1a;padding:2px 8px;border-radius:10px;animation:pulse-badge 2s ease-in-out infinite}@keyframes pulse-badge{0%,to{opacity:.7}50%{opacity:1}}.energy-flow{border-radius:16px;padding:24px}.energy-flow__title{font-size:18px;font-weight:600;color:#e0e0e0;margin-bottom:12px}.energy-flow__container{width:100%;max-width:825px;margin:0 auto}.energy-flow__svg{width:100%;height:auto}.energy-flow__ev-controls{display:flex;flex-direction:column;align-items:flex-end;gap:6px}.energy-flow__ev-suggestion{display:flex;flex-direction:column;gap:4px;color:#a0a0b0;font-size:10px;line-height:1.3}.energy-flow__ev-suggestion strong{color:#fff;font-size:13px}.energy-flow__ev-info{margin-top:12px;max-height:100px;overflow-y:auto;color:#a0a0b0;font-size:12px;line-height:1.5}.energy-flow__ev-switch button[aria-pressed=true]{border-color:#22c55e;background:#163126}.energy-flow__ev-current{align-self:flex-start;display:flex;flex-direction:column;align-items:flex-start;gap:3px;color:#a0a0b0;font-size:10px}.energy-flow__ev-current select{color:#fff;background:#16161e;border:1px solid #6b6b80;border-radius:5px;padding:4px 8px;font:inherit;font-size:12px;cursor:pointer;color-scheme:dark}.energy-flow__ev-current select:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}.energy-flow__ev-current select:disabled{cursor:wait;opacity:.6}.energy-flow__ev-current [role=status]{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.energy-flow__svg text{font-family:Inter,system-ui,sans-serif;pointer-events:none}.energy-flow__svg-node circle{transition:stroke .5s ease,fill .3s ease}.energy-flow__svg-node:hover circle{fill:#1e1e2e;filter:url(#glow)}.energy-flow__ev-switch{width:100%;display:flex;flex-direction:column;gap:5px;align-items:flex-end;color:#a0a0b0;font-size:10px}.energy-flow__ev-switch button{width:100%;white-space:nowrap;background:#16161e;color:#fff;border:1px solid #6b6b80;border-radius:5px;padding:7px 9px;font:inherit;cursor:pointer}.energy-flow__ev-switch button:disabled{cursor:default;opacity:.6}.energy-flow__ev-switch button.energy-flow__ev-stop{border-color:#ef4444}.energy-flow__ev-switch button:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}.pv-forecast{max-width:825px;margin:8px auto 0;padding:20px;background:#12121a;border:1px solid #2a2a3e;border-radius:16px}.pv-forecast__head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}.pv-forecast__title{font-size:18px;font-weight:600;color:#e0e0e0}.pv-forecast__meta{font-size:12px;color:#6b6b80;margin-top:2px}.pv-forecast__error{color:#ef4444}.pv-forecast__seg{display:flex;background:#1e1e2e;border:1px solid #3a3a4e;border-radius:8px;overflow:hidden}.pv-forecast__seg button{border:0;background:transparent;color:#a0a0b0;font-size:12px;padding:5px 12px;cursor:pointer}.pv-forecast__seg button[aria-pressed=true]{background:#163126;color:#22c55e}.pv-forecast__kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:16px 0}.pv-forecast__kpi{display:flex;flex-direction:column;background:#1e1e2e;border-radius:12px;padding:12px 14px}.pv-forecast__kpi-label{font-size:11px;color:#6b6b80;text-transform:uppercase;letter-spacing:.5px}.pv-forecast__kpi-value{font-size:22px;font-weight:700;color:#e0e0e0;font-variant-numeric:tabular-nums;margin-top:2px}.pv-forecast__kpi-value small{font-size:13px;font-weight:500;color:#a0a0b0}.pv-forecast__kpi-sub{font-size:12px;color:#a0a0b0;margin-top:4px}.pv-forecast__down{color:#f59e0b}.pv-forecast__up{color:#22c55e}.pv-forecast__bar{height:6px;background:#2a2a3e;border-radius:3px;margin-top:8px;overflow:hidden}.pv-forecast__bar i{display:block;height:100%;background:#22c55e;border-radius:3px}.pv-forecast__legend{display:flex;flex-wrap:wrap;gap:16px;font-size:11px;color:#a0a0b0;margin-bottom:4px}.pv-forecast__legend b{display:inline-block;width:14px;height:3px;border-radius:2px;vertical-align:middle;margin-right:6px}.pv-forecast__legend-forecast{background:#22c55e;opacity:.5}.pv-forecast__legend-actual{background:#22c55e}.pv-forecast__legend-ev{background:#3b82f6;opacity:.6}.pv-forecast__hint{margin-top:12px;font-size:13px;color:#a0a0b0;background:#3b82f614;border:1px solid rgba(59,130,246,.25);border-radius:10px;padding:8px 12px}.pv-forecast__hint strong{color:#fff}.pv-forecast__days{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin-top:14px}.pv-forecast__day{display:flex;flex-direction:column;align-items:center;gap:2px;font-family:inherit;font-size:11px;color:#a0a0b0;background:#1e1e2e;border:1px solid transparent;border-radius:10px;padding:8px 4px;cursor:pointer}.pv-forecast__day[aria-pressed=true]{border-color:#22c55e}.pv-forecast__day-icon{font-size:16px}.pv-forecast__day-temp{display:flex;gap:4px;font-size:11px;font-variant-numeric:tabular-nums}.pv-forecast__day-temp-max{color:#e0e0e0}.pv-forecast__day-temp-min{color:#6b6b80}.pv-forecast__day-bar{display:flex;align-items:flex-end;justify-content:center;height:28px;width:100%;margin:2px 0}.pv-forecast__day-bar i{display:block;width:14px;min-height:2px;background:#22c55e;opacity:.75;border-radius:3px 3px 0 0}.pv-forecast__day-kwh{color:#e0e0e0;font-weight:600;font-size:12px;font-variant-numeric:tabular-nums}@media(max-width:560px){.pv-forecast{padding:14px}.pv-forecast__kpis{grid-template-columns:1fr;gap:8px}.pv-forecast__days{gap:4px}.pv-forecast__day{padding:6px 2px}}.dashboard{min-height:100vh;background:#000;color:#e0e0e0;padding:24px;max-width:1200px;margin:0 auto}.dashboard__header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:32px;flex-wrap:wrap;gap:16px}.dashboard__header h1{font-size:28px;font-weight:700;margin:0;background:linear-gradient(135deg,#22c55e,#3b82f6);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.dashboard__station-name{font-size:14px;color:#6b6b80;margin-top:4px;display:flex;align-items:center;gap:8px}.dashboard__countdown{font-size:13px;color:#4a90d9;background:#4a90d91a;border:1px solid rgba(74,144,217,.25);border-radius:6px;padding:1px 7px;font-variant-numeric:tabular-nums;letter-spacing:.02em}.dashboard__header-right{display:flex;align-items:center;gap:12px}.dashboard__refresh-btn{background:#1e1e2e;border:1px solid #3a3a4e;border-radius:8px;padding:8px 12px;font-size:18px;cursor:pointer;transition:background .2s}.dashboard__refresh-btn:hover{background:#2a2a3e}.dashboard__last-update{font-size:12px;color:#6b6b80}.dashboard__cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px;margin-bottom:24px}.dashboard__summary{display:flex;gap:24px;background:#1e1e2e;border-radius:16px;padding:20px 24px;margin-bottom:24px;flex-wrap:wrap;box-shadow:0 4px 24px #0003}.dashboard__summary-item{display:flex;flex-direction:column;gap:4px}.dashboard__summary-label{font-size:12px;color:#6b6b80;text-transform:uppercase;letter-spacing:.5px}.dashboard__summary-value{font-size:18px;font-weight:600;color:#e0e0e0}.dashboard__status--active{color:#22c55e}.dashboard__status--idle{color:#6b6b80}.dashboard__loading{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:60vh;gap:20px;color:#a0a0b0}.dashboard__spinner{width:48px;height:48px;border:4px solid #2a2a3e;border-top:4px solid #22c55e;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.dashboard__error{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:40vh;gap:16px;text-align:center}.dashboard__error h2{color:#ef4444}.dashboard__retry-btn{background:#22c55e;color:#fff;border:none;border-radius:8px;padding:12px 24px;font-size:16px;cursor:pointer;transition:background .2s}.dashboard__retry-btn:hover{background:#16a34a}.dashboard__empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:40vh;gap:12px;color:#6b6b80}@media(max-width:768px){.dashboard{padding:16px}.dashboard__header h1{font-size:22px}.dashboard__cards{grid-template-columns:1fr}.dashboard__summary{flex-direction:column}}
