.project-context{display:flex;align-items:center;gap:16px;padding:14px 18px;background:#fff;border:1px solid var(--line);border-radius:10px;margin-bottom:22px;flex-wrap:wrap}.project-context strong{color:#213752}.project-context span{font-size:12px;color:var(--muted)}.project-nav-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.gateway-cards{padding:22px}.card-actions{flex-wrap:wrap;justify-content:flex-start}.card-facts{gap:24px;flex-wrap:wrap}.card-facts strong{display:block;margin-top:8px;font-size:13px;overflow-wrap:anywhere}.side{overflow-y:auto}.side-foot{padding-bottom:10px}
:root{font-family:Inter,'Segoe UI','Microsoft YaHei',sans-serif;color:#162a42;background:#f3f6fa;font-synthesis:none;--blue:#2563eb;--line:#e5eaf2;--muted:#7b8aa0}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;border:1px solid var(--line);border-radius:8px;background:white;padding:9px 15px;color:#40536c;transition:.15s}button:hover{border-color:#93b5ff;color:var(--blue)}button.primary{background:var(--blue);color:white;border-color:var(--blue)}button.danger{color:#d53e4f}button:disabled{opacity:.45;cursor:not-allowed}input,select{border:1px solid #dce3ee;border-radius:7px;padding:10px;background:white;color:#213752;min-width:0}label{font-size:13px;color:#60738c;display:grid;gap:8px}a{color:var(--blue)}.shell{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100vh}.side{background:#11243c;color:#dce8f8;padding:30px 18px;position:fixed;width:232px;top:0;bottom:0;display:flex;flex-direction:column}.brand{font-size:21px;font-weight:700;letter-spacing:2px;padding:2px 14px 32px;display:flex;gap:12px;align-items:center}.brand b{background:#3e7cff;color:white;border-radius:11px;width:36px;height:36px;display:grid;place-items:center;font-size:22px}.side small{font-size:10px;display:block;font-weight:400;letter-spacing:2px;color:#8196b1;margin-top:3px}.nav-label{color:#7187a5;font-size:11px;padding:14px;margin-top:9px}.nav{display:grid;gap:6px}.nav button{text-align:left;background:none;color:#91a6bf;border:0;padding:13px 16px;display:flex;gap:13px;align-items:center}.nav button span{font-size:17px;width:22px}.nav button.active{color:white;background:#2563eb}.side-foot{margin-top:auto;padding:18px 14px 0;border-top:1px solid #263c56;font-size:12px;color:#8da4bf;line-height:1.8}.workspace{grid-column:2;min-width:0}.top{height:78px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 36px}.top .crumb{color:#8b99aa;font-size:13px}.top-right{display:flex;gap:15px;align-items:center;font-size:13px}.avatar{width:32px;height:32px;border-radius:50%;background:#eef4ff;color:var(--blue);display:grid;place-items:center;font-weight:bold}.content{padding:30px 36px 50px;max-width:1600px;margin:auto}.page-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px;gap:20px}.page-title h1{font-size:26px;margin:0 0 8px;letter-spacing:.4px}.page-title p{font-size:13px;color:var(--muted);margin:0}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.badge{display:inline-flex;border-radius:5px;padding:4px 8px;font-size:11px;background:#eef4ff;color:#4478d4}.badge.green{background:#e9f8f1;color:#159467}.badge.gray{background:#f1f3f6;color:#8c99aa}.badge.amber{background:#fff4de;color:#b67c1c}.badge.red{background:#ffebed;color:#c73b50}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:20px 0 26px}.stat{background:white;border:1px solid var(--line);border-radius:12px;padding:21px 23px}.stat-label{font-size:12px;color:var(--muted)}.stat-value{font-size:31px;line-height:1.5;font-weight:650;margin-top:8px;letter-spacing:-1px}.stat-value small{font-size:12px;font-weight:400;color:#8d9bae;margin-left:7px;letter-spacing:0}.stat-foot{color:#8d9bae;font-size:11px;margin-top:5px}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px}.card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:23px;min-width:0}.card h3{margin:14px 0 8px;font-size:18px}.card p{color:#8b99ac;font-size:12px;line-height:1.8}.card-top{display:flex;justify-content:space-between}.card-icon{width:43px;height:43px;border-radius:12px;background:#eef4ff;color:#3676ef;display:grid;place-items:center;font-size:23px}.card-facts{display:flex;gap:35px;margin:22px 0}.card-facts b{display:block;font-size:23px;margin-bottom:4px}.card-facts small{font-size:11px;color:#8b99ac}.card-actions{border-top:1px solid var(--line);padding-top:16px;display:flex;justify-content:space-between;gap:9px}.card-actions button{font-size:12px;padding:7px 12px}.panel{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:22px}.panel-head{padding:20px 23px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #eef1f6;gap:12px}.panel-head h3{margin:0;font-size:15px}.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap}th{font-weight:500;color:#8492a6;background:#f9fbfd;padding:15px 20px;text-align:left}td{border-top:1px solid #f0f3f7;padding:16px 20px;color:#52657d}td strong{color:#263d59;font-weight:500}td button{font-size:11px;padding:5px 9px;margin-right:5px}code{font-family:Consolas,monospace;font-size:11px;color:#788da6}.light-row{display:flex;justify-content:space-between;gap:15px}.light-symbol{font-size:32px;color:#f4ba42;background:#fff7df;border-radius:11px;padding:10px}.brightness{height:5px;background:#edf1f7;margin:20px 0 8px;border-radius:3px;overflow:hidden}.brightness span{display:block;height:100%;background:#f4c866}.value-line{font-size:12px;color:#7e8ca1;display:flex;justify-content:space-between}.notice{background:#edf4ff;border:1px solid #d7e5ff;border-radius:9px;padding:13px 17px;color:#5d7aa1;font-size:12px;line-height:1.8;margin:18px 0}.notice.warning{background:#fff9eb;border-color:#f5e7c0;color:#9c7a39}.empty{padding:65px 24px;text-align:center;color:#8c9cb0}.empty .glyph{font-size:42px;color:#c9d8ed;margin-bottom:15px}.empty h3{color:#4c6582;font-size:17px}.empty p{font-size:13px;margin-bottom:20px}.auth-bg{min-height:100vh;display:grid;place-items:center;background:radial-gradient(ellipse at 25% 15%,#e5efff,transparent 55%),#f4f7fb}.auth{background:white;border-radius:18px;padding:42px;width:min(430px,92vw);box-shadow:0 16px 65px #264a7820;border:1px solid white}.auth .logo{font-size:33px;color:var(--blue);margin-bottom:24px}.auth h1{font-size:25px;margin:0 0 10px}.auth p{color:#8a98ac;font-size:13px;line-height:1.8}.auth form{display:grid;gap:20px;margin-top:28px}.auth button{padding:12px}.auth-foot{margin-top:25px;color:#a4afbf;font-size:11px;text-align:center}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);padding:14px 24px;background:#183353;color:white;border-radius:9px;box-shadow:0 5px 30px #102b5025;z-index:100;display:none;font-size:13px;max-width:90vw}dialog{border:1px solid #dce5f2;border-radius:15px;padding:0;width:min(540px,94vw);box-shadow:0 25px 100px #142d5340;max-height:88vh}dialog::backdrop{background:#132b4c60;backdrop-filter:blur(3px)}.modal-head{padding:21px 25px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.modal-head h2{font-size:18px;margin:0}.modal-head button{border:0;font-size:20px;padding:0 5px}.modal-body{padding:25px;display:grid;gap:19px}.modal-foot{padding:16px 25px;border-top:1px solid var(--line);display:flex;justify-content:flex-end;gap:10px}.error{color:#cf4054;font-size:12px;min-height:17px}.field-pair{display:grid;grid-template-columns:1fr 1fr;gap:15px}.chart{height:240px;display:flex;align-items:flex-end;gap:10px;padding:25px 32px 45px}.chart-bar{min-width:15px;max-width:55px;flex:1;background:linear-gradient(#6fa3ff,#306deb);border-radius:5px 5px 0 0;position:relative;min-height:3px}.chart-bar span{position:absolute;bottom:-25px;left:50%;transform:translateX(-50%);color:#93a0b2;font-size:10px}.chart-bar b{position:absolute;top:-20px;left:50%;transform:translateX(-50%);color:#6680a0;font-size:10px;font-weight:400}.secret{overflow-wrap:anywhere;white-space:pre-wrap;background:#f3f6fa;padding:15px;border-radius:7px;font-family:Consolas,monospace;font-size:12px}.loading{padding:100px;text-align:center;color:#869ab4}.connection{width:7px;height:7px;display:inline-block;border-radius:50%;background:#3fc896;margin-right:7px}@media(max-width:1000px){.side{width:195px}.shell{grid-template-columns:195px minmax(0,1fr)}.content{padding:24px}.top{padding:0 24px}.stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.side{position:static;width:auto;padding:16px}.shell{display:block}.brand{padding:0 0 15px}.side small,.side-foot,.nav-label{display:none}.nav{display:flex;overflow:auto;gap:5px}.nav button{white-space:nowrap;padding:9px}.workspace{width:100%}.content{padding:20px 15px}.top{height:60px;padding:0 16px}.page-title{align-items:flex-start}.page-title h1{font-size:22px}.page-title .toolbar{justify-content:flex-end}.stats{gap:10px}.stat{padding:16px}.stat-value{font-size:25px}.top .crumb{display:none}.top-right{width:100%;justify-content:flex-end}.cards{grid-template-columns:1fr}.field-pair{grid-template-columns:1fr}}

button.primary.danger{background:#c73b50;border-color:#c73b50;color:white}

.delete-hint{font-size:13px;color:var(--muted);line-height:1.8}

.bulk-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap;padding:16px 22px;border-bottom:1px solid var(--line);font-size:13px}.bulk-actions small{color:var(--muted)}input.device-select{width:16px;height:16px;accent-color:var(--blue);cursor:pointer;margin:0;padding:0}.batch-checkbox{display:flex;align-items:center;gap:9px}.batch-checkbox input{width:16px;height:16px;accent-color:var(--blue);margin:0;padding:0}
.device-title{border:0;background:none;padding:0;text-align:left;font:inherit;font-weight:inherit;color:inherit;cursor:pointer}.device-title:hover{color:var(--blue)}.device-overview{display:flex;align-items:center;gap:18px;margin:22px 0}.device-overview h2{font-size:23px;margin:0 0 7px}.device-overview p{font-size:13px;color:var(--muted);margin:0}.device-overview>div:last-child{margin-left:auto}.device-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 30px;margin:0;padding:24px}.device-facts div{min-width:0}.device-facts dt{font-size:12px;color:var(--muted);margin-bottom:7px}.device-facts dd{margin:0;font-size:14px;overflow-wrap:anywhere}.device-report-controls{padding:22px 24px 0;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.device-report-controls p{width:100%;font-size:12px;color:var(--muted);margin:0}.device-energy-stats{padding:0 22px}.device-energy-kind{padding:0 24px;color:var(--muted);font-size:12px}.device-chart{overflow-x:auto}.device-chart .chart-bar{flex-shrink:0;min-width:22px}.device-targets{padding:20px 24px;font-size:13px;color:var(--muted)}.device-targets pre{white-space:pre-wrap}@media(max-width:650px){.device-facts{grid-template-columns:1fr}.device-overview h2{font-size:20px}.device-energy-stats{padding:0 12px}.device-report-controls{padding:16px 12px 0}}
.inspection-table{table-layout:fixed;min-width:850px;width:100%}.inspection-table th,.inspection-table td{white-space:normal;overflow-wrap:anywhere;vertical-align:top;line-height:1.7}.inspection-lights th:nth-child(1){width:15%}.inspection-lights th:nth-child(2){width:11%}.inspection-lights th:nth-child(3){width:23%}.inspection-lights th:nth-child(4){width:15%}.inspection-lights th:nth-child(5){width:28%}.inspection-lights th:nth-child(6){width:8%}
.inspection-table th,.inspection-table td{padding:14px 12px}.inspection-table button,.inspection-table .badge{white-space:nowrap}.inspection-table button{padding:7px 9px}

.card .light-row{margin-bottom:8px}.card .light-row .light-symbol{display:none}.card>p{margin:8px 0;font-size:12px}.card .brightness{margin:10px 0 4px}.card .value-line{margin:4px 0}.card .card-actions{gap:6px}.card .card-actions button{padding:7px 10px;font-size:12px}

.strategy-time{padding:16px;border:1px solid #dce8fb;border-radius:12px;background:#f6f9ff}.strategy-time-title{font-size:13px;font-weight:600;color:#263d59}.strategy-time-title span{font-size:11px;font-weight:400;color:#8295ae;margin-left:8px}.strategy-time-fields{display:flex;align-items:end;gap:10px;margin-top:12px}.strategy-time-fields label{flex:1;gap:5px}.strategy-time-fields label span{font-size:11px;color:#8192a8}.strategy-time-fields select{width:100%;font-size:16px;font-weight:600;color:#234b8d;border-color:#d6e3f7}.strategy-time-fields b{padding-bottom:10px;color:#a3b4ca}.strategy-time small{display:block;margin-top:10px;color:#8699b2;font-size:11px}

.mobile-menu,.mobile-account{display:none}
@media(max-width:650px){
 .side{padding:10px 14px}
 .side-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
 .side-heading .brand{padding:0;font-size:17px;gap:8px}
 .side-heading .brand b{width:32px;height:32px}
 .mobile-menu{display:inline-flex;align-items:center;gap:6px;min-height:40px;background:#203751;color:#fff;border-color:#38506a}
 .side-navigation{display:none}
 .side-heading:has(.mobile-menu[aria-expanded=true])+.side-navigation{display:block;padding-top:6px}
 .side-navigation .nav-label{display:block;margin:0;padding:10px 2px 5px;color:#9eb2ca}
 .side-navigation .nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:4px}
 .side-navigation .nav button{min-height:42px;white-space:normal}
 .mobile-account{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:10px;margin-top:10px;border-top:1px solid #38506a;color:#e0eaf7;overflow-wrap:anywhere}
 .workspace .top{display:none}
 .content{padding:14px 12px}
 .page-title{display:grid;gap:10px;margin-bottom:12px}
 .page-title h1{margin:0}
 .page-title p{margin:4px 0 0}
 .page-title .toolbar{justify-content:flex-start;gap:8px}
 .page-title .toolbar select{min-width:0;min-height:42px;max-width:100%}
 .page-title .toolbar #project-select{flex:1 1 100%;width:100%}
 .page-title .toolbar #gateway-select{flex:1 1 auto}
 .page-title .toolbar button{min-height:42px}
 .project-context{margin-bottom:12px;padding:10px;gap:8px}
 .project-context strong{min-width:0;overflow-wrap:anywhere}
 .project-context span{flex-basis:100%}
 .stat{padding:12px}
 .table-scroll{max-width:100%;overflow-x:auto}
 dialog{width:min(540px,calc(100vw - 20px));max-height:90dvh}
 .modal-body,.modal-head,.modal-foot{padding:14px}
}
/* Customer workspace */
.shell{--client-ink:#152b38;--client-muted:#536b79;--client-teal:#0d665e}
.shell>.side{background:#142b38}.shell .side .nav button.active{background:#28505a;color:#fff;box-shadow:inset 3px 0 #66d8bd}.shell .nav button:focus-visible,.client-project summary:focus-visible{outline:2px solid #39a795;outline-offset:2px}
.shell>.workspace{background:#f3f7f8}.shell .page-title h1{color:var(--client-ink);letter-spacing:-.03em}.shell .page-title p{color:var(--client-muted)}
.client-overview .stat{border-top:3px solid #a5d6cc}.client-overview .stat b{font-variant-numeric:tabular-nums}
.client-list-tools,.client-light-filters{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 20px;border-bottom:1px solid #e3ecee}.client-list-tools input{width:min(100%,320px);margin:0}.client-list-tools span{font-size:13px;color:var(--client-muted)}
.client-project-grid{padding:18px 20px 22px;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:16px}
.client-project{padding:19px;border:1px solid #d8e5e8;border-radius:14px;background:#fff;box-shadow:0 3px 10px #18364208;min-width:0}.client-project-head{display:flex;justify-content:space-between;align-items:start;gap:12px}.client-project h3{margin:0;color:var(--client-ink);font-size:19px;overflow-wrap:anywhere}.client-project-head p,.client-project-meta{color:var(--client-muted);font-size:13px;overflow-wrap:anywhere;margin:7px 0}.client-project-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:12px;margin:15px 0 11px;border-radius:9px;background:#eff6f5}.client-project-metrics dt{font-size:12px;color:var(--client-muted)}.client-project-metrics dd{margin:5px 0 0;font-size:21px;font-weight:650;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.client-project-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:14px}.client-project-actions .primary{background:var(--client-teal);border-color:var(--client-teal);color:#fff}.client-project-actions details[open]{flex-basis:100%}.client-project-actions summary{font-size:13px;cursor:pointer;color:#315462}.client-project-actions details div{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.client-light-grid{padding:16px 20px 20px}.client-light-grid .card{border-radius:13px;box-shadow:0 2px 8px #18364209}.client-light-grid .badge.green::before,.client-light-grid .badge.gray::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor;margin-right:5px;vertical-align:1px}.client-light-filters button{border-radius:999px}.client-light-filters button[aria-pressed=true]{background:#dcefe9;border-color:#8cbfb0;color:#185648;font-weight:650}.client-light-filters small{margin-left:3px;color:inherit}.client-filter-empty{margin:0;padding:18px 20px;color:var(--client-muted)}.client-project[hidden],.client-light-grid .card[hidden]{display:none}
@media(max-width:650px){.client-list-tools,.client-light-filters,.client-project-grid,.client-light-grid{padding-inline:12px}.client-project{padding:14px}.client-light-filters{gap:6px}}

/* Parking project forms */
#modal:has(.project-form-section){width:min(680px,calc(100vw - 28px));max-height:min(92vh,860px)}
#modal .project-form-section{display:grid;gap:14px;padding:18px 20px;background:#f8faff;border:1px solid #e8edf6;border-radius:12px;margin-bottom:14px}
#modal .project-form-section-title{font-size:15px;font-weight:700;color:#213956;display:flex;align-items:center;gap:10px}
#modal .project-form-section-title small,#modal .project-form-section>small{font-size:12px;font-weight:400;color:#8293a8}
#modal .project-form-section label{font-weight:500;color:#526985;gap:7px}
#modal .project-form-section input,#modal .project-form-section select{height:42px;width:100%;background:#fff}
#modal .project-form-section input:focus,#modal .project-form-section select:focus{outline:2px solid #a9cbff;outline-offset:1px;border-color:#5b9cf5}
#modal .project-energy-pair,#modal .region-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
@media(max-width:620px){#modal .project-energy-pair,#modal .region-pair{grid-template-columns:1fr}#modal .project-form-section{padding:15px}}

.client-light-grid .monitor-command-state{min-height:26px;display:flex;align-items:center}
.client-light-grid .card[data-light-id]{display:flex;flex-direction:column}
.client-light-grid .card[data-light-id][hidden]{display:none}
.client-light-grid .card[data-light-id] .card-actions{margin-top:auto}
