:root{color:#0f172a;font-synthesis:none;text-rendering:optimizelegibility;background:#f4f7fb;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html{background:#f4f7fb}body{background:radial-gradient(circle at 82% 0,#3b82f612,#0000 26%),#f4f7fb;min-width:320px;min-height:100vh;margin:0}button{font:inherit}.app-shell{min-height:100vh}.sidebar{z-index:20;color:#e2e8f0;background:linear-gradient(#101827 0%,#0b1220 100%);flex-direction:column;width:250px;padding:24px 18px;display:flex;position:fixed;inset:0 auto 0 0;box-shadow:12px 0 30px #0f172a14}.brand{align-items:center;gap:13px;padding:2px 7px 27px;display:flex}.brand-symbol{color:#fff;background:linear-gradient(135deg,#2563eb,#0ea5e9);border-radius:13px;place-items:center;width:43px;height:43px;display:grid;box-shadow:0 10px 24px #2563eb57}.brand div:last-child{flex-direction:column;gap:2px;display:flex}.brand strong{color:#fff;letter-spacing:-.02em;font-size:18px}.brand span{color:#8290a7;font-size:11px}.navigation{flex-direction:column;flex:1;gap:6px;display:flex}.navigation-label{color:#5f6c83;letter-spacing:.14em;padding:0 12px 9px;font-size:10px;font-weight:800}.nav-item{color:#94a3b8;cursor:default;text-align:left;background:0 0;border:0;border-radius:11px;align-items:center;gap:12px;width:100%;padding:12px 13px;transition:color .2s,background .2s;display:flex}.nav-item.active{color:#fff;background:linear-gradient(90deg,#2563eb57,#2563eb17);box-shadow:inset 3px 0 #3b82f6}.nav-item span:nth-child(2){flex:1;font-size:14px;font-weight:600}.soon{color:#56647a;text-transform:uppercase;font-size:9px}.sidebar-footer{color:#60a5fa;background:#2563eb17;border:1px solid #60a5fa1f;border-radius:13px;align-items:center;gap:11px;padding:15px;display:flex}.sidebar-footer div{flex-direction:column;gap:2px;display:flex}.sidebar-footer strong{color:#cbd5e1;font-size:11px}.sidebar-footer span{color:#64748b;font-size:10px}.main-content{min-height:100vh;margin-left:250px;padding:31px 34px 25px}.top-header{justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:24px;display:flex}.eyebrow,.panel-kicker{color:#3b82f6;letter-spacing:.14em;margin-bottom:7px;font-size:10px;font-weight:800;display:block}.top-header h1{color:#111827;letter-spacing:-.035em;margin:0;font-size:31px;line-height:1.15}.top-header p,.panel-heading p{color:#64748b;margin:7px 0 0;font-size:13px}.header-actions{align-items:center;gap:13px;display:flex}.update-info{color:#64748b;align-items:center;gap:10px;display:flex}.update-info div{flex-direction:column;align-items:flex-end;gap:2px;display:flex}.update-info span{font-size:10px}.update-info strong{color:#334155;font-size:11px}.refresh-button{color:#fff;cursor:pointer;background:#2563eb;border:0;border-radius:10px;align-items:center;gap:8px;padding:10px 14px;display:inline-flex;box-shadow:0 8px 18px #2563eb38}.refresh-button:disabled{cursor:wait;opacity:.72}.rotating{animation:1s linear infinite rotate}@keyframes rotate{to{transform:rotate(360deg)}}.installation-banner{background:linear-gradient(100deg,#fffffff5,#f8fbfff0);border:1px solid #e6ebf2;border-radius:16px;justify-content:space-between;align-items:center;margin-bottom:19px;padding:16px 18px;display:flex;box-shadow:0 10px 30px #0f172a0a}.installation-info{align-items:center;gap:13px;display:flex}.installation-icon{color:#2563eb;background:#eff6ff;border-radius:12px;place-items:center;width:43px;height:43px;display:grid}.installation-info div:last-child{flex-direction:column;gap:2px;display:flex}.installation-info span{color:#64748b;font-size:10px}.installation-info strong{color:#0f172a;font-size:14px}.installation-info small{color:#94a3b8;font-size:10px}.status-badge{white-space:nowrap;border-radius:999px;justify-content:center;align-items:center;gap:7px;padding:6px 10px;font-size:10px;font-weight:700;display:inline-flex}.status-badge.online{color:#15803d;background:#ecfdf3}.status-badge.waiting{color:#64748b;background:#f1f5f9}.status-dot{background:currentColor;border-radius:50%;width:7px;height:7px}.status-badge.online .status-dot{box-shadow:0 0 0 4px #22c55e1f}.metrics-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:16px;display:grid}.metric-card{background:#fffffff0;border:1px solid #e7ebf1;border-radius:16px;align-items:center;gap:14px;min-width:0;padding:18px;display:flex;box-shadow:0 10px 28px #0f172a0b}.metric-icon{border-radius:13px;flex:none;place-items:center;width:44px;height:44px;display:grid}.metric-icon.blue{color:#2563eb;background:#eff6ff}.metric-icon.green{color:#059669;background:#ecfdf5}.metric-icon.orange{color:#d97706;background:#fff7ed}.metric-icon.purple{color:#7c3aed;background:#f5f3ff}.metric-content{flex-direction:column;min-width:0;display:flex}.metric-title{color:#64748b;margin-bottom:5px;font-size:11px}.metric-value{color:#0f172a;letter-spacing:-.025em;text-overflow:ellipsis;white-space:nowrap;font-size:21px;line-height:1.15;overflow:hidden}.metric-subtitle{color:#94a3b8;margin-top:5px;font-size:9px}.overview-grid{grid-template-columns:minmax(0,1.05fr) minmax(340px,.95fr);gap:16px;margin-bottom:16px;display:grid}.panel{background:#fffffff5;border:1px solid #e6eaf0;border-radius:17px;box-shadow:0 12px 34px #0f172a0b}.gauge-panel,.network-panel,.phases-panel,.daily-panel,.devices-panel,.chart-panel{padding:20px 21px}.panel-heading{justify-content:space-between;align-items:flex-start;gap:18px;display:flex}.panel-heading h2{color:#172033;letter-spacing:-.02em;margin:0;font-size:17px}.panel-heading-icon{color:#3b82f6}.gauge-footer{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.gauge-footer>div{background:#f8fafc;border-radius:11px;flex-direction:column;gap:4px;padding:12px 14px;display:flex}.gauge-footer span{color:#64748b;font-size:10px}.gauge-footer strong{color:#0f172a;font-size:14px}.health-list{flex-direction:column;gap:9px;margin-top:23px;display:flex}.health-row{background:#f8fafc;border-radius:12px;grid-template-columns:39px minmax(0,1fr) auto;align-items:center;gap:11px;padding:11px 12px;display:grid}.health-icon{color:#2563eb;background:#fff;border:1px solid #e8edf3;border-radius:10px;place-items:center;width:38px;height:38px;display:grid}.health-row>div:nth-child(2){flex-direction:column;gap:3px;display:flex}.health-row span{color:#64748b;font-size:10px}.health-row strong{color:#0f172a;text-overflow:ellipsis;white-space:nowrap;max-width:220px;font-size:12px;overflow:hidden}.health-status.good{color:#15803d;background:#ecfdf3;border-radius:999px;padding:5px 8px}.chart-panel{margin-bottom:16px}.chart-heading{align-items:center}.chart-period{color:#475569;background:#f8fafc;border:1px solid #e7ebf1;border-radius:9px;align-items:center;gap:7px;padding:8px 11px;font-size:10px;display:inline-flex}.content-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin-bottom:16px;display:grid}.phase-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-top:20px;display:grid}.phase-card{background:#f8fafc;border-radius:13px;padding:15px}.phase-header{justify-content:space-between;align-items:center;margin-bottom:15px;display:flex}.phase-name{color:#64748b;font-size:10px;font-weight:700}.phase-dot{border-radius:50%;width:9px;height:9px}.phase-a{background:#ef4444}.phase-b{background:#2563eb}.phase-c{background:#f59e0b}.phase-card>strong{color:#0f172a;margin-bottom:14px;font-size:18px;display:block}.phase-data{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.phase-data span{color:#334155;flex-direction:column;gap:3px;font-size:11px;display:flex}.phase-data small{color:#94a3b8;font-size:8px}.devices-panel{margin-bottom:17px}.devices-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:20px;display:grid}.device-card{background:#f8fafc;border-radius:13px;grid-template-columns:42px minmax(0,1fr) auto 18px;align-items:center;gap:11px;padding:13px;display:grid}.device-icon{color:#2563eb;background:#fff;border:1px solid #e5eaf1;border-radius:11px;place-items:center;width:41px;height:41px;display:grid}.device-text{flex-direction:column;gap:3px;min-width:0;display:flex}.device-text strong{color:#172033;text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.device-text span{color:#94a3b8;text-overflow:ellipsis;white-space:nowrap;font-size:9px;overflow:hidden}.device-chevron{color:#cbd5e1}.page-footer{color:#94a3b8;justify-content:space-between;align-items:center;padding:3px 3px 0;font-size:9px;display:flex}.state-screen{color:#0f172a;text-align:center;flex-direction:column;justify-content:center;align-items:center;min-height:100vh;padding:30px;display:flex}.loading-symbol{color:#fff;background:linear-gradient(135deg,#2563eb,#0ea5e9);border-radius:20px;place-items:center;width:70px;height:70px;margin-bottom:18px;display:grid;box-shadow:0 18px 38px #2563eb40}.state-screen h2{margin:0}.state-screen p{color:#64748b;max-width:430px;font-size:13px}.state-screen button{color:#fff;background:#2563eb;border:0;border-radius:10px;align-items:center;gap:8px;margin-top:8px;padding:10px 15px;display:inline-flex}@media (width<=1180px){.metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.overview-grid,.content-grid{grid-template-columns:1fr}}@media (width<=860px){.sidebar{width:100%;min-height:auto;position:static}.navigation{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.navigation-label,.sidebar-footer{display:none}.main-content{margin-left:0;padding:23px 17px}.top-header{flex-direction:column}.header-actions{justify-content:space-between;width:100%}.devices-grid,.phase-grid{grid-template-columns:1fr}.page-footer{flex-direction:column;align-items:flex-start;gap:6px}}@media (width<=560px){.metrics-grid,.navigation{grid-template-columns:1fr}.installation-banner{flex-direction:column;align-items:flex-start;gap:13px}.header-actions{flex-direction:column;align-items:flex-start}.update-info div{align-items:flex-start}.device-card{grid-template-columns:42px minmax(0,1fr) 18px}.device-card .status-badge{grid-column:2/4;justify-self:start}}.consumption-insights{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:16px;display:grid}.insight-card{padding:20px 21px}.insight-card strong{color:#0f172a;letter-spacing:-.035em;margin:7px 0 8px;font-size:25px;display:block}.insight-card p{color:#64748b;margin:0;font-size:11px;line-height:1.55}.nav-item:not(.active){cursor:pointer}.nav-item:not(.active):hover{color:#e2e8f0;background:#94a3b814}@media (width<=900px){.consumption-insights{grid-template-columns:1fr}}.network-phases-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:16px;display:grid}.network-phase-card{background:#fffffff5;border:1px solid #e6eaf0;border-radius:17px;padding:20px;box-shadow:0 12px 34px #0f172a0b}.network-phase-header{justify-content:space-between;align-items:center;display:flex}.network-phase-header div{flex-direction:column;display:flex}.network-phase-header span{color:#94a3b8;letter-spacing:.14em;font-size:9px;font-weight:800}.network-phase-header strong{color:#0f172a;margin-top:2px;font-size:21px}.network-phase-indicator{border-radius:50%;width:12px;height:12px;box-shadow:0 0 0 5px #94a3b81f}.network-phase-power{color:#0f172a;letter-spacing:-.04em;margin:24px 0 19px;font-size:29px;font-weight:750}.network-phase-values{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.network-phase-values div{background:#f8fafc;border-radius:11px;flex-direction:column;gap:4px;padding:11px;display:flex}.network-phase-values span{color:#94a3b8;font-size:9px}.network-phase-values strong{color:#334155;font-size:13px}.network-phase-status{border-radius:999px;align-items:center;gap:7px;margin-top:16px;padding:6px 9px;font-size:10px;font-weight:700;display:inline-flex}.network-phase-status.active{color:#15803d;background:#ecfdf3}.network-phase-status.inactive{color:#64748b;background:#f1f5f9}.network-analysis-panel{margin-bottom:17px;padding:21px}.balance-comparison{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:24px;display:grid}.balance-item{flex-direction:column;gap:8px;display:flex}.balance-label{justify-content:space-between;align-items:center;display:flex}.balance-label span{color:#475569;font-size:12px;font-weight:700}.balance-label strong{color:#0f172a;font-size:14px}.balance-track{background:#edf2f7;border-radius:999px;height:11px;overflow:hidden}.balance-fill{border-radius:999px;height:100%;transition:width .4s;display:block}.phase-a-fill{background:linear-gradient(90deg,#ef4444,#fb7185)}.phase-b-fill{background:linear-gradient(90deg,#2563eb,#60a5fa)}.balance-item small{color:#94a3b8;font-size:10px}.network-quality-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin-top:24px;display:grid}.network-quality-grid div{background:#f8fafc;border-radius:12px;flex-direction:column;gap:5px;padding:14px;display:flex}.network-quality-grid span{color:#94a3b8;font-size:9px}.network-quality-grid strong{color:#0f172a;font-size:14px}@media (width<=900px){.network-phases-grid,.balance-comparison,.network-quality-grid{grid-template-columns:1fr}}.period-selector{background:#f1f5f9;border-radius:11px;gap:5px;padding:4px;display:inline-flex}.period-selector button{color:#64748b;cursor:pointer;background:0 0;border:0;border-radius:8px;align-items:center;gap:7px;padding:8px 12px;font-size:11px;font-weight:700;display:inline-flex}.period-selector button.active{color:#2563eb;background:#fff;box-shadow:0 4px 12px #0f172a14}.history-actions{align-items:center;gap:8px;display:flex}.secondary-button{color:#64748b;background:#f8fafc;border:1px solid #e7ebf1;border-radius:9px;align-items:center;gap:7px;padding:8px 11px;font-size:10px;display:inline-flex}.secondary-button:disabled{cursor:not-allowed;opacity:.55}.history-table-panel{margin-bottom:17px;padding:21px}.history-table-wrapper{border:1px solid #e8edf3;border-radius:13px;margin-top:21px;overflow-x:auto}.history-table{border-collapse:collapse;width:100%;min-width:1050px}.history-table th,.history-table td{text-align:left;white-space:nowrap;border-bottom:1px solid #edf1f5;padding:12px 14px}.history-table th{color:#64748b;letter-spacing:.04em;text-transform:uppercase;background:#f8fafc;font-size:9px;font-weight:800}.history-table td{color:#334155;font-size:11px}.history-table tbody tr:last-child td{border-bottom:0}.history-table tbody tr:hover{background:#f8fbff}@media (width<=700px){.period-selector,.history-actions{width:100%}.period-selector button{flex:1;justify-content:center}.history-actions{flex-direction:column;align-items:stretch}}.solar-installation-banner{color:#fff;background:linear-gradient(105deg,#b45309 0%,#f59e0b 48%,#fbbf24 100%);border-radius:17px;justify-content:space-between;align-items:center;margin-bottom:19px;padding:18px 20px;display:flex;box-shadow:0 16px 34px #f59e0b38}.solar-banner-content{align-items:center;gap:14px;display:flex}.solar-banner-icon{color:#f59e0b;background:#fff;border-radius:14px;place-items:center;width:49px;height:49px;display:grid}.solar-banner-content>div:last-child{flex-direction:column;gap:3px;display:flex}.solar-banner-content span,.solar-banner-content small{color:#fffc;font-size:10px}.solar-banner-content strong{font-size:16px}.solar-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:16px;display:grid}.solar-live-card,.solar-comparison-card,.solar-record-card{padding:21px}.solar-heading-icon{color:#f59e0b}.solar-live-value,.solar-record-value{color:#0f172a;letter-spacing:-.045em;margin:27px 0 17px;font-size:39px;font-weight:760}.solar-capacity-track{background:#f1f5f9;border-radius:999px;height:12px;overflow:hidden}.solar-capacity-track span{background:linear-gradient(90deg,#f59e0b,#fbbf24);border-radius:999px;height:100%;display:block}.solar-live-footer,.solar-ytd-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:19px;display:grid}.solar-live-footer div,.solar-ytd-grid div{background:#f8fafc;border-radius:11px;flex-direction:column;gap:5px;padding:12px;display:flex}.solar-live-footer span,.solar-ytd-grid span,.solar-record-detail span{color:#94a3b8;font-size:9px}.solar-live-footer strong,.solar-ytd-grid strong,.solar-record-detail strong{color:#0f172a;font-size:14px}.solar-change-value{letter-spacing:-.045em;margin:27px 0 9px;font-size:39px;font-weight:760}.solar-change-value.positive,.solar-change-positive{color:#16a34a}.solar-change-value.negative,.solar-change-negative{color:#dc2626}.solar-comparison-card>p,.solar-record-card>p{color:#64748b;font-size:11px}.solar-record-detail{background:#f8fafc;border-radius:11px;justify-content:space-between;align-items:center;margin-top:25px;padding:13px;display:flex}.solar-year-heading{align-items:flex-start}.solar-year-selector{flex-wrap:wrap;justify-content:flex-end;gap:5px;display:flex}.solar-year-selector button{color:#64748b;cursor:pointer;background:#f8fafc;border:1px solid #e7ebf1;border-radius:8px;padding:6px 9px;font-size:9px;font-weight:700}.solar-year-selector button.active{color:#fff;background:#f59e0b;border-color:#f59e0b}.solar-systems-panel{margin-bottom:17px;padding:21px}.solar-systems-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:20px;display:grid}.solar-system-item{background:#f8fafc;border:1px solid #0000;border-radius:13px;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px;display:grid}.solar-system-item.active{background:#fffbeb;border-color:#fde68a}.solar-system-icon{color:#f59e0b;background:#fff;border-radius:11px;place-items:center;width:43px;height:43px;display:grid}.solar-system-icon.waiting{color:#94a3b8}.solar-system-item>div:nth-child(2){flex-direction:column;gap:4px;min-width:0;display:flex}.solar-system-item strong{color:#0f172a;font-size:12px}.solar-system-item div span{color:#94a3b8;font-size:9px}@media (width<=1050px){.solar-summary-grid{grid-template-columns:1fr}}@media (width<=720px){.solar-installation-banner{flex-direction:column;align-items:flex-start;gap:15px}.solar-systems-grid{grid-template-columns:1fr}.solar-system-item{grid-template-columns:44px minmax(0,1fr)}.solar-system-item .status-badge{grid-column:2;justify-self:start}}
