:root{color-scheme:dark;font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#e8f2f6;background:#0c141d;--cyan:#76d7f3;--panel:#152330;--line:#2c4050;--muted:#a7bccb}*{box-sizing:border-box}body{margin:0;font-size:16px}button,input,select,textarea{font:inherit}button{border:1px solid var(--line);border-radius:9px;color:inherit;background:#203445;padding:11px 16px;cursor:pointer;min-height:44px}button:hover{border-color:var(--cyan)}button.primary{background:var(--cyan);color:#083244;font-weight:650}button:disabled{opacity:.55;cursor:default}input,select,textarea{width:100%;border:1px solid var(--line);border-radius:7px;background:#0d1b26;color:inherit;padding:10px;min-height:44px}input[type=checkbox]{width:21px;min-height:21px;height:21px;accent-color:var(--cyan)}textarea{min-height:96px;resize:vertical}label{display:grid;gap:7px;font-size:.9rem;color:var(--muted)}label.check{display:flex;align-items:center;gap:10px;min-height:44px}a{color:var(--cyan)}h1,h2,h3,p{margin:0}h1{font-size:1.8rem;margin-top:5px}h2{font-size:1.6rem}h3{font-size:1.05rem}p{line-height:1.6}small,.muted{color:var(--muted)}.eyebrow{letter-spacing:.13em;color:var(--cyan);font-size:.72rem;font-weight:700}.top{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:24px 32px;border-bottom:1px solid var(--line)}#app{padding:28px 32px}.layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:28px}.sidebar{display:grid;align-content:start;gap:10px}.sidebar button{text-align:left}.sidebar button.selected{border-color:var(--cyan);background:#183e4d}.sidebar button small{display:block;margin-top:7px}.row{display:flex;gap:14px;align-items:center;justify-content:space-between;flex-wrap:wrap}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.stack{display:grid;gap:22px}.panel,.metric{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:22px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.metric span{display:block;color:var(--muted);font-size:.85rem}.metric strong{display:block;font-size:1.65rem;margin-top:10px;font-variant-numeric:tabular-nums}.metric small{display:block;margin-top:6px}.badge{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:30px;padding:8px 14px;font-size:.9rem}.badge:before{content:'';width:10px;height:10px;border-radius:50%;background:#9aafba}.badge.online:before{background:#55d39a}.badge.error:before,.badge.offline:before,.badge.critical:before{background:#ff7272}.badge.warning:before,.badge.paused:before{background:#f6c55b}.tabs{display:flex;gap:8px;flex-wrap:wrap;padding:18px 0}.tabs .active{background:#173e4d;border-color:var(--cyan);color:var(--cyan)}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.form-grid .wide{grid-column:1/-1}.auth{max-width:470px;margin:35px auto}.auth form{display:grid;gap:20px;margin-top:22px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:.9rem}th,td{padding:13px 12px;text-align:left;border-bottom:1px solid var(--line);vertical-align:top}th{color:var(--muted);font-weight:500}td.num,th.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}tr:last-child td{border-bottom:0}.empty{color:var(--muted);padding:26px 0}.status-text{max-width:75ch}.error-text{color:#ffaaaa}.success-text{color:#75ddb0}#notice{padding:14px 32px;background:#453025;color:#ffe1bd;white-space:pre-line}dialog{background:var(--panel);color:inherit;border:1px solid var(--line);border-radius:16px;padding:26px;width:min(680px,94vw);max-height:90vh}dialog::backdrop{background:#000a}dialog form{display:grid;gap:18px}dialog h2{margin-bottom:10px}dl{display:grid;grid-template-columns:minmax(130px,1fr) 2fr;gap:12px;margin:0}dt{color:var(--muted)}dd{margin:0;overflow-wrap:anywhere}.filters{display:flex;align-items:end;gap:14px;flex-wrap:wrap}.filters label{min-width:140px;flex:1}.fault-message{white-space:pre-wrap;overflow-wrap:anywhere;max-width:65ch}.secret{font-family:ui-monospace,monospace}.compact{font-size:.9rem}.section-separator{border:0;border-top:1px solid var(--line);margin:20px 0}.spaced{margin-top:16px}.chart{display:block;width:100%;height:auto;max-height:380px}.chart text{fill:#bfd1dc;font-size:12px}.chart .usage{fill:#61ccea}.chart .saved{fill:#ebc065}:focus-visible{outline:3px solid var(--cyan);outline-offset:3px}[hidden]{display:none!important}@media(max-width:1150px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.layout{grid-template-columns:200px minmax(0,1fr)}}@media(max-width:760px){.top{padding:18px}.top h1{font-size:1.4rem}#app{padding:18px}.layout{grid-template-columns:1fr}.sidebar{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid{grid-template-columns:1fr}.metrics{gap:10px}.metric{padding:16px}.metric strong{font-size:1.3rem}.panel{padding:17px}.form-grid .wide{grid-column:auto}.filters label{min-width:125px}.top .eyebrow{font-size:.62rem}dl{grid-template-columns:1fr}dd{margin-bottom:8px}}

.brand-logo{width:64px;height:64px;object-fit:contain}@media(max-width:760px){.brand-logo{width:40px;height:40px}}

.mobile-plant{display:none}@media(max-width:760px){.sidebar{display:flex;align-items:end}.sidebar [data-plant]{display:none}.mobile-plant{display:grid;flex:1;min-width:0}.sidebar #new-plant{max-width:150px}.top>.actions{flex-wrap:nowrap}}

#customer-portal{max-width:1200px;margin:auto}.customer-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:760px){.customer-metrics{grid-template-columns:1fr}.top{flex-wrap:wrap}#session{max-width:100%}}

.mail-item{padding:16px 0;border-top:1px solid var(--line,#304454);overflow-wrap:anywhere}.mail-item .row{gap:12px;flex-wrap:wrap}.mail-item .compact{margin-top:8px}

/* Clear status and energy colors, shared by the administration and customer views. */
.metric{border-top:3px solid #4dc9ed;background:linear-gradient(145deg,#183646,#152330 70%)}.metric:nth-child(2){border-top-color:#69dfa9;background:linear-gradient(145deg,#173d35,#152330 70%)}.metric:nth-child(3){border-top-color:#eac16a;background:linear-gradient(145deg,#3d3525,#152330 70%)}.metric:nth-child(4){border-top-color:#b49af5;background:linear-gradient(145deg,#312c4a,#152330 70%)}.metric:nth-child(2) strong{color:#8fe7be}.metric:nth-child(3) strong{color:#f3d396}.metric:nth-child(4) strong{color:#c9b4ff}
.button{display:inline-flex;align-items:center;min-height:44px;padding:11px 16px;text-decoration:none;border:1px solid var(--line);border-radius:9px;background:#203445;color:inherit}.button.primary{background:var(--cyan);color:#083244;font-weight:650}.button:hover{border-color:var(--cyan)}.info-tip{color:var(--muted);cursor:help;font-size:.85rem}.plant-filters{display:grid;gap:12px}.plant-group{display:grid;gap:8px}.plant-group h3{font-size:.82rem;color:var(--muted);font-weight:500;margin:8px 0}.plant-group button{width:100%;overflow-wrap:anywhere}.plant-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#9caab4;margin-right:8px}.plant-dot.online{background:#69dfa9}.plant-dot.error,.plant-dot.offline{background:#ff8282}.plant-dot.warning,.plant-dot.paused{background:#f2bd61}#plant-list{gap:16px}
.status-tile{display:grid;gap:6px;min-width:245px;border:1px solid var(--line);border-radius:16px;padding:20px 30px;background:#203445}.status-tile>span{font-size:.88rem}.status-tile>strong{font-size:2.1rem;line-height:1.2}.status-tile.healthy{background:linear-gradient(120deg,#12493b,#15352f);border-color:#4ac795;color:#9bf1c5}.status-tile.healthy strong:before{content:'✓';margin-right:14px}.status-tile.danger{background:linear-gradient(120deg,#5b272e,#352029);border-color:#e37280;color:#ffc0c0}.status-tile.danger strong:before{content:'!';margin-right:14px}.status-tile small{color:inherit;opacity:.85}
.energy-explore{overflow:hidden}.legend{display:flex;gap:22px;flex-wrap:wrap;font-size:.88rem}.legend span:before{content:'';display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:8px}.usage-key:before{background:#49c9ec}.saving-key:before{background:#6cdda7}.ratio-key:before{background:#b399ee}.plot-card{min-width:0;padding:20px 0 0}.plot-card+ .plot-card{border-top:1px solid var(--line)}.plot-scroll{overflow-x:auto;padding-bottom:6px}.energy-plot{display:block;width:100%;min-width:620px;max-height:340px}.energy-plot text{fill:#b9cedc;font:12px system-ui,sans-serif}.plot-line{stroke:#2d4756;stroke-width:1}.energy-plot .usage{fill:#49c9ec}.energy-plot .saving{fill:#6cdda7}.energy-plot .ratio{fill:#b399ee}.energy-plot rect:hover{filter:brightness(1.25)}.day-choice{min-width:190px}.billing-table{white-space:nowrap}.billing-table th{font-weight:600}.billing-table tfoot{background:#1b3541}.billing-table td,.billing-table th{border-right:1px solid #304655}.billing-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.billing-facts p{padding:16px;border-left:3px solid #7188d3;background:#1a2a38;font-size:.86rem;color:var(--muted)}.billing-facts strong{display:block;font-size:1.1rem;color:#e3f0f7}.billing-metrics strong{overflow-wrap:anywhere}summary{cursor:pointer;min-height:32px}
.event-legend{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:22px}.event-tag{display:inline-block;border-radius:7px;padding:5px 10px;font-size:.82rem;font-weight:650}.event-tag.danger{background:#612f3a;color:#ffc1c5}.event-tag.caution{background:#514329;color:#f3d091}.event-tag.recovery{background:#1b4d3d;color:#94e9ba}.event-tag.information{background:#203f55;color:#99d6ef}.incident{padding:20px 0;border-top:1px solid var(--line)}.incident>.row{margin-bottom:14px}.event-row{display:grid;grid-template-columns:190px minmax(0,1fr);gap:20px;margin:8px 0;padding:15px 18px;border-left:3px solid #6eb5d4;background:#142837;border-radius:0 9px 9px 0}.event-row.danger{border-left-color:#f07885;background:#2d212b}.event-row.caution{border-left-color:#dfb154;background:#2a2924}.event-row.recovery{border-left-color:#61cc98;background:#182e2a}.event-row .spaced{margin-top:6px}
@media(max-width:760px){.sidebar{display:grid;grid-template-columns:1fr}.sidebar [data-plant]{display:block}.sidebar #new-plant{max-width:none}#plant-list{max-height:340px;overflow:auto}.plant-filters{grid-template-columns:1fr 1fr}.plant-filters #clear-filter{grid-column:1/-1}.status-tile{width:100%;min-width:0}.billing-facts{grid-template-columns:1fr}.event-row{grid-template-columns:1fr;gap:10px}.incident .row h3 small{display:block}.energy-explore .actions{width:100%}.day-choice{flex:1}.metric strong{font-size:1.4rem}}

.stack{grid-template-columns:minmax(0,1fr)}.panel,.table-wrap,#detail,#tab,details{min-width:0}@media(max-width:760px){.layout{grid-template-columns:minmax(0,1fr)}.top .actions{flex-wrap:wrap}#session .muted{overflow-wrap:anywhere}}

.energy-plot.compact{min-width:0}.energy-plot.dense{min-width:1100px;max-height:none}

#customer-portal.customer-layout{max-width:none}.customer-layout{grid-template-columns:230px minmax(0,1fr)}.customer-layout .sidebar h2{font-size:1rem;color:var(--muted)}.status-hero{display:flex;justify-content:space-between;align-items:center;padding:26px 30px;gap:20px}.status-hero strong{display:block;font-size:2rem;margin-top:8px}.customer-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.customer-metrics .metric:nth-child(5){border-top-color:#eeae7d}.requests-pending{border-color:#eac16a;color:#f3d396;background:#403925}.plant-assignment{max-height:260px;overflow:auto;border:1px solid var(--line);border-radius:8px;padding:12px;display:grid;gap:8px}#customer-plants button{text-align:left;width:100%;overflow-wrap:anywhere}#customer-email,#customer-price{max-width:760px}@media(max-width:760px){.customer-layout{grid-template-columns:minmax(0,1fr)}.status-hero{align-items:start;flex-direction:column}.status-hero strong{font-size:1.7rem}.customer-metrics{grid-template-columns:minmax(0,1fr)}#customer-plants{max-height:230px;overflow:auto}}

/* Six equally sized customer cards; status stays visible independently of energy loading. */
.customer-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
.customer-metrics .metric{min-width:0}
.customer-metrics .customer-status{padding:24px;gap:8px;align-content:start}
.customer-metrics .customer-status strong{font-size:1.5rem;line-height:1.3;overflow-wrap:anywhere}
.customer-metrics .customer-status small{font-size:.78rem}
.customer-metrics .metric:nth-child(2){border-top-color:#4dc9ed;background:linear-gradient(145deg,#183646,#152330 70%)}
.customer-metrics .metric:nth-child(2) strong{color:var(--text)}
.customer-metrics .metric:nth-child(3){border-top-color:#69dfa9;background:linear-gradient(145deg,#173d35,#152330 70%)}
.customer-metrics .metric:nth-child(3) strong{color:#8fe7be}
.customer-metrics .metric:nth-child(4){border-top-color:#eac16a;background:linear-gradient(145deg,#3d3525,#152330 70%)}
.customer-metrics .metric:nth-child(4) strong{color:#f3d396}
.customer-metrics .metric:nth-child(5){border-top-color:#b49af5;background:linear-gradient(145deg,#312c4a,#152330 70%)}
.customer-metrics .metric:nth-child(5) strong{color:#c9b4ff}
.customer-metrics .metric:nth-child(6){border-top-color:#eeae7d}
@media(max-width:1050px){.customer-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.customer-metrics{grid-template-columns:minmax(0,1fr)}}

.ops-warning{border-left:5px solid #f4b44f;margin-bottom:20px}.ops-warning strong{color:#ffd070}.ops-warning p{margin-top:8px}

.pin-display{display:block;font-size:2.3rem;letter-spacing:.18em;font-variant-numeric:tabular-nums;color:var(--cyan,#70d5ed);padding:1rem 0;user-select:all}.pin-success{color:#79dfb5}

.mail-rule{display:grid;grid-template-columns:2fr 1fr 1fr 44px;align-items:end;gap:12px;padding:12px 0}.mail-rule input[type=checkbox]{width:auto}.release-notes{white-space:pre-wrap;line-height:1.6}@media(max-width:800px){.mail-rule{grid-template-columns:1fr 1fr}}

select[data-direction="older"],.update-direction[data-direction="older"],option.update-older{color:#ffc36b}select[data-direction="newer"],.update-direction[data-direction="newer"],option.update-newer{color:#69e5ad}select[data-direction="older"]{border-color:#efac4f}select[data-direction="newer"]{border-color:#4bd19a}.update-direction{display:block;font-weight:600;line-height:1.5}

.portal-hero{display:grid;grid-template-columns:1.3fr 1fr;align-items:center;gap:3rem;padding:4rem 2rem 5rem;max-width:1240px;margin:auto}.portal-hero h2{font-size:clamp(2.4rem,5vw,4.5rem);line-height:1.06;margin:1rem 0 1.5rem;letter-spacing:-.04em}.portal-hero p{font-size:1.2rem;max-width:38rem;line-height:1.6;color:#aec8d6}.portal-hero button{margin-top:1rem;min-height:52px}.portal-illustration{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;aspect-ratio:1;isolation:isolate}.portal-illustration strong{font-size:5rem;color:#72ddf5;letter-spacing:.1em}.portal-illustration>span:last-child{color:#aec8d6}.light-ring{position:absolute;inset:8%;border:1px solid #39cdec;border-radius:50%;box-shadow:0 0 60px #00b4d422,inset 0 0 80px #00b4d422;z-index:-1}.light-ring:after{content:"";position:absolute;inset:18%;border:1px solid #39cdec55;border-radius:50%}.portal-benefits{max-width:1240px;margin:auto;display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;padding:0 2rem 3rem}.portal-benefits article{border-top:1px solid #385566;padding:1.5rem 0}.portal-benefits article>span{color:#72ddf5}.portal-benefits h3{margin:1rem 0}.portal-benefits p{color:#aec8d6;line-height:1.6}.portal-footer{text-align:center;padding:2rem;color:#aec8d6}.portal-footer a{color:#72ddf5}.preview-banner{padding:1rem;border:1px solid #62d4f0;border-radius:12px;background:#103441;margin-bottom:1rem}
@media(max-width:760px){.portal-hero{grid-template-columns:1fr;padding:2rem 0;gap:0}.portal-illustration{max-width:280px;width:100%;margin:auto}.portal-benefits{grid-template-columns:1fr;padding:0}.portal-hero h2{font-size:2.5rem}}
