@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--ink:#143c36;--muted:#6e7f79;--green:#17674e;--lime:#d2ec91;--line:#dfe7df;--bg:#f4f6f1}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);font-family:'DM Sans',system-ui,sans-serif;font-size:14px}button,input,select{font:inherit}button,a,select{touch-action:manipulation}button{cursor:pointer;border:0;border-radius:9px;padding:11px 15px;font-weight:600;background:#e8eee5;color:var(--ink)}button:hover{filter:brightness(.96)}button:disabled{opacity:.45;cursor:not-allowed}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #92b94f;outline-offset:3px}.demo{background:#163d35;color:#e6f3d5;text-align:center;padding:9px 16px;font-size:10px;font-weight:700;letter-spacing:1.2px}.demo span{letter-spacing:.1px;font-weight:400;margin-left:12px}header{background:white;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:19px 4%;gap:15px}.brand{display:flex;align-items:center;gap:10px;font-size:21px;font-weight:800;text-decoration:none;font-family:Manrope,system-ui}.logo{display:grid;place-items:center;width:34px;height:36px;border-radius:10px;background:var(--green);color:var(--lime);font-size:32px}.preview{font:600 9px 'DM Sans',sans-serif;letter-spacing:1px;color:#829183;margin-left:4px}.portal{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:12px}select,input{border:1px solid #d3ddd2;padding:10px 12px;border-radius:8px;background:white;color:var(--ink);max-width:100%}#shell{display:flex;max-width:1600px;margin:auto;min-height:70vh}aside{width:220px;flex-shrink:0;padding:30px 18px;border-right:1px solid var(--line)}aside:empty{display:none}.navTitle{font-size:10px;letter-spacing:1.4px;color:var(--muted);margin:5px 12px 20px}.navButton{display:block;width:100%;text-align:left;background:transparent;margin:5px 0;padding:13px}.navButton.active{background:#dfead7}.asideNote{font-size:12px;line-height:1.65;margin:45px 12px;color:var(--muted)}main{flex:1;min-width:0;padding:38px 4% 50px;max-width:1400px;margin:auto;width:100%}h1,h2,h3{font-family:Manrope,system-ui;letter-spacing:-.8px}h1{font-size:32px;margin:8px 0 10px}h2{font-size:20px;margin:0 0 8px}h3{font-size:16px;margin:0 0 10px}p{color:var(--muted);line-height:1.65;margin:8px 0 16px}.eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:700;color:#68816b}.heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.card{padding:25px;border:1px solid var(--line);border-radius:16px;background:white}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:24px 0}.stat{background:white;border:1px solid var(--line);border-radius:13px;padding:21px}.stat .value{font-family:Manrope;font-size:28px;font-weight:750;margin:8px 0}.muted,small{color:var(--muted);font-size:12px}.badge{display:inline-block;font-size:10px;font-weight:700;border-radius:25px;padding:6px 10px;background:#edf4e5;white-space:nowrap;color:#416540}.badge.offline,.badge.refunded{background:#fbe9de;color:#9c6036}.badge.pending,.badge.planned{background:#fff2ca;color:#8a7228}.badge.active,.badge.paid{background:#dfefe5;color:#17674e}.row{display:flex;align-items:center;justify-content:space-between;gap:12px}.actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.primary{background:var(--green);color:white}.dark{background:#173f35;color:white}.outline{border:1px solid var(--line);background:white}.danger{color:#a03e39;background:#faece7}.wide{width:100%;margin-top:15px}.tableWrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:12px}th{font-size:10px;letter-spacing:.6px;color:var(--muted);font-weight:500;padding:15px 12px;background:#f8faf6}td{padding:17px 12px;border-bottom:1px solid #edf0e9}td:first-child{font-weight:600}td button{font-size:11px;padding:8px 10px}.section{margin-top:24px}.toolbar{display:flex;gap:12px;margin:18px 0;flex-wrap:wrap}.callout{border-radius:10px;background:#edf4e8;padding:15px;font-size:12px;line-height:1.6;color:#52704e}.warning{background:#fff4d9;color:#856924}.hero{display:grid;grid-template-columns:1fr 440px;gap:70px;max-width:1120px;margin:24px auto;align-items:start}.hero h1{font-size:59px;letter-spacing:-2.5px;line-height:1.12;margin:20px 0}.hero p{max-width:450px;font-size:15px}.heroArt{position:relative;margin-top:30px;height:150px;border-radius:20px;background:#e5ecdb;overflow:hidden;display:flex;align-items:center;justify-content:space-evenly}.plug{width:64px;height:90px;border-radius:15px;background:#fff;box-shadow:0 10px 0 #c8d6bb;display:grid;place-items:center;font-size:35px;color:var(--green)}.flow{display:flex;gap:14px;margin-top:25px}.flow div{flex:1}.flow b{display:block;margin:10px 0;font-size:12px}.flow span{font-size:11px;color:var(--muted)}.choice{display:flex;gap:8px;margin:15px 0}.choice button{flex:1;border:1px solid var(--line);background:white}.choice button.selected{background:#e8f1df;border:2px solid var(--green)}label.field{display:block;margin:18px 0 8px;font-size:12px;font-weight:600}label.field input, label.field select{display:block;width:100%;margin-top:8px}.price{font-size:36px;font-weight:750;font-family:Manrope;margin:18px 0 0}.price small{font-size:13px;font-weight:400}.line{border-top:1px solid var(--line);padding-top:13px;margin-top:13px}.progress{height:8px;border-radius:8px;background:#e6ecdf;overflow:hidden;margin:16px 0}.progress div{height:100%;background:var(--green)}.empty{padding:25px;text-align:center;color:var(--muted)}.mini{font-size:11px;color:var(--muted)}dialog{border:1px solid var(--line);border-radius:17px;padding:28px;width:470px;max-width:94vw;color:var(--ink);box-shadow:0 20px 100px #102e3233}dialog::backdrop{background:#102e3270}dialog input,dialog select{width:100%}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:14px 22px;background:#173f35;color:white;border-radius:10px;box-shadow:0 8px 25px #0002;display:none;z-index:100;width:max-content;max-width:90vw}footer{border-top:1px solid var(--line);padding:24px;text-align:center;font-size:11px;color:var(--muted);line-height:1.8}footer span{font-size:10px}.capacity{background:#173f35;color:white;border-radius:16px;padding:24px;display:flex;justify-content:space-between;align-items:center;margin:25px 0}.capacity p{color:#b8d0be;margin:5px 0}.sideMetric{font-size:35px;font-weight:700;letter-spacing:-1px}.statusDot{width:7px;height:7px;background:#86b663;border-radius:50%;display:inline-block;margin-right:6px}.back{border:0;background:transparent;padding:0;margin:0 0 20px;color:var(--muted)}.hidden{display:none!important}@media(max-width:1050px){.hero{grid-template-columns:1fr 390px;gap:30px}.hero h1{font-size:46px}aside{width:180px}.stats{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){header{padding:15px;align-items:flex-start}.brand{font-size:17px}.preview{display:none}.portal{display:block;font-size:10px}.portal select{display:block;padding:7px;margin-top:4px;max-width:155px;font-size:11px}#shell{display:block}aside{width:100%;border-right:0;border-bottom:1px solid var(--line);padding:12px;display:flex;overflow:auto;gap:5px}.navTitle,.asideNote{display:none}.navButton{white-space:nowrap;width:auto;margin:0;padding:10px;font-size:12px}main{padding:25px 18px}.hero{grid-template-columns:1fr;margin:0;gap:25px}.hero h1{font-size:43px;letter-spacing:-1.5px}.heroArt{display:none}.grid{grid-template-columns:1fr}.heading{align-items:flex-start;flex-direction:column;gap:8px}.stats{gap:9px}.stat{padding:16px}.stat .value{font-size:24px}.demo{font-size:8px;letter-spacing:.6px}.demo span{margin-left:5px}.card{padding:19px}.capacity{gap:15px}.sideMetric{font-size:26px}h1{font-size:28px}}
.authWrap{display:grid;grid-template-columns:1fr 440px;gap:70px;max-width:1080px;margin:30px auto}.authWrap h1{font-size:49px;line-height:1.14;letter-spacing:-1.8px}.authPanel{padding:30px}.authPanel input{width:100%}.authMessage{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:15px}.authError{color:#993b31;background:#fbece6;border-radius:9px;padding:12px}.authSuccess{color:#245b40;background:#e7f2e5;border-radius:9px;padding:12px}.authLink{background:transparent;padding:7px 0;color:var(--green);font-size:12px;text-decoration:underline}.authTabs{display:flex;gap:12px;border-bottom:1px solid var(--line);margin-bottom:23px}.authTabs button{background:transparent;border-radius:0;border-bottom:2px solid transparent;padding:10px 0}.authTabs .selected{border-color:var(--green)}.connection{display:flex;gap:8px;align-items:center}.connection:before{content:'';width:7px;height:7px;border-radius:10px;background:#72a460}.deviceDetail{overflow-wrap:anywhere}.securityNote{font-size:12px;color:var(--muted);line-height:1.7}.busy{opacity:.7;pointer-events:none}@media(max-width:760px){.authWrap{grid-template-columns:1fr;gap:20px;margin:5px auto}.authWrap h1{font-size:36px}.authPanel{padding:22px}.securityNote{font-size:11px}}
dialog{border:1px solid #dae4d9;border-radius:18px;padding:28px;max-width:520px;width:calc(100% - 40px);color:#073e42;background:#fff}dialog::backdrop{background:#073e4266}dialog input,dialog select{display:block;width:100%;box-sizing:border-box;margin-top:8px;padding:12px;border:1px solid #ccd9cc;border-radius:8px;background:white;color:#073e42}dialog .field{display:block;margin-top:18px}button.section{margin-bottom:20px}
.portalLink{text-decoration:none;font-size:12px;white-space:nowrap}.managerTop{display:flex;justify-content:space-between;align-items:center;gap:25px;padding-bottom:27px;border-bottom:1px solid var(--line)}.managerTop h1{font-size:36px}.managerTop p{margin-bottom:0}.propertyPicker{min-width:210px;max-width:300px}.propertyPicker label{display:block;font-size:11px;color:var(--muted);margin-bottom:8px}.propertyPicker select{width:100%}.managerPageHeading{display:flex;justify-content:space-between;align-items:center;margin:27px 0 20px;gap:14px}.managerPageHeading h2{margin:0;font-size:24px}.managerPreview{margin-top:18px}.managerPrice{font:800 36px Manrope,system-ui;letter-spacing:-1.5px;margin:18px 0 8px;color:var(--green)}.managerPrice small{font:500 13px 'DM Sans',system-ui;letter-spacing:0;margin-left:8px}.managerPrice .unsetRate{font-size:28px}.rateCard{background:linear-gradient(135deg,#fff 40%,#f0f7e8)}.managerDevice{border:1px solid var(--line);border-radius:16px;padding:23px;background:white;min-width:0}.managerDevice h3{font-size:15px;letter-spacing:-.3px;overflow-wrap:anywhere;margin:0}.deviceReadings{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:22px 0}.deviceReadings strong{display:block;font-size:17px;font-weight:600;margin-top:7px;overflow-wrap:anywhere}.managerDevice .line{align-items:start}.managerDevice .line .mini{max-width:65%;line-height:1.6}.managerDevice>p:last-child{margin-bottom:0}.managerEmpty{text-align:center;padding:28px 14px}.managerEmpty>span{display:grid;place-items:center;background:#eff4e8;border-radius:14px;width:42px;height:42px;font-size:24px;color:var(--green);margin:0 auto 18px}.managerEmpty h3{letter-spacing:-.2px;margin-bottom:7px}.managerEmpty p{max-width:400px;margin:0 auto;font-size:12px}.managerFilter{font-size:11px;color:var(--muted)}.managerFilter input,.managerFilter select{display:block;margin-top:7px;min-width:185px}.toolbar{align-items:end}.propertyFacts{margin:25px 0}.propertyFacts>div{display:flex;justify-content:space-between;gap:20px;padding:16px 0;border-bottom:1px solid var(--line)}.propertyFacts dt{color:var(--muted);font-size:12px}.propertyFacts dd{margin:0;text-align:right;font-size:12px}.managerLoginPoints{margin-top:32px;display:grid;gap:23px}.managerLoginPoints b{display:block;font-size:14px}.managerLoginPoints span{display:block;color:var(--muted);font-size:12px;line-height:1.6;margin-top:7px}.managerAuth h1{font-size:49px}.managerAuth .authPanel h2{margin-top:13px}.managerAuth .authPanel{margin-top:12px}summary{cursor:pointer}details p{white-space:normal;max-width:260px;font-weight:400}#managerProperty:only-child{width:100%}@media(max-width:760px){.managerTop{display:block}.managerTop h1{font-size:29px}.propertyPicker{margin-top:22px;max-width:none}.managerPageHeading{align-items:flex-start}.managerPageHeading .badge{font-size:9px}.managerPageHeading .actions{justify-content:flex-end}.managerPrice{font-size:31px}.managerAuth h1{font-size:37px}.managerLoginPoints{display:none}.managerDevice{padding:20px}.propertyFacts>div{gap:12px}.deviceReadings strong{font-size:15px}.managerTop .eyebrow{font-size:9px}header .actions .mini{display:none}}
.deviceIdentity{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:18px}.deviceId{font-size:12px;margin-top:5px;overflow-wrap:anywhere}.managerDevice h3{margin-top:5px}
.featureTabs{display:flex;gap:18px;margin-top:20px;border-bottom:1px solid var(--line)}.featureTabs button{background:transparent;border-radius:0;border-bottom:3px solid transparent}.featureTabs .selected{border-color:var(--green)}.featureCell{white-space:normal;min-width:280px;width:60%;vertical-align:top}.featureCell summary{font-size:14px;line-height:1.6}.featureSnippet{font-size:12px;font-weight:400;color:var(--muted);margin-top:9px;line-height:1.6}.featureDetail{max-width:680px;padding:16px 0;font-weight:400}.featureDetail h3{font-size:13px;letter-spacing:0;margin-top:18px}.featureDetail p{white-space:pre-wrap;max-width:none;font-size:13px;overflow-wrap:anywhere}.featureDetail .primary{display:block}#featureModal{max-width:680px;width:calc(100% - 36px);max-height:90vh;overflow:auto}#featureModal textarea{width:100%;resize:vertical;display:block;margin-top:9px;padding:12px;border:1px solid var(--line);border-radius:8px;color:var(--ink);font:inherit;line-height:1.6}#featureModal input[type=file]{font-size:12px}.badge.under_review{background:#fff2ca}.badge.planned{background:#e9eafa}.badge.completed{background:#dfefe5}.badge.declined{background:#fbe9de}
.deviceViewToolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.deviceViewToolbar p{margin:0;max-width:540px}.deviceViewSwitch{display:flex;flex-shrink:0;border:1px solid var(--line);border-radius:10px;padding:4px;background:white;gap:4px}.deviceViewSwitch button{padding:9px 18px;background:transparent;font-size:12px}.deviceViewSwitch button.selected{background:var(--green);color:white}.deviceList{padding:12px}.deviceList td{vertical-align:middle}.deviceListName{min-width:140px;max-width:240px;white-space:normal;overflow-wrap:anywhere}.deviceList .actions{flex-wrap:nowrap}@media(max-width:760px){.deviceViewToolbar{align-items:flex-start;flex-direction:column;gap:15px}.deviceViewSwitch{align-self:flex-end}.deviceList{padding:8px}.deviceList th,.deviceList td{padding:13px 10px}}
.manualPanel{border:1px solid #d4e3d1;border-radius:10px;background:#f1f7ed;padding:13px;margin-top:12px}.manualPanel b{font-size:12px}.manualPanel p{font-size:11px;margin:7px 0;white-space:normal}.manualPanel .mini{display:block;margin-top:8px}.managerDevice>.primary{margin-top:16px}.deviceList .manualPanel{min-width:180px;margin:0}.deviceList .actions{flex-wrap:wrap;min-width:190px}#manualModal [hidden]{display:none!important}.field[hidden]{display:none!important}

/* Manager relay output: same badge shape as device status. */
.badge.output-on{background:#dfefe5;color:#17674e}.badge.output-off{background:#faece7;color:#a03e39}.badge.output-unknown{background:#eef0ef;color:#6e7f79}

/* Combined session history */
.sessionToolbar{align-items:end;flex-wrap:wrap;gap:12px;margin:20px 0}.sessionToolbar label{min-width:145px;flex:1}.sessionToolbar input,.sessionToolbar select{width:100%;min-height:42px}.sessionHistoryTable{padding:0;overflow:visible}.sessionHistoryTable .tableWrap{overflow-x:auto}.sessionHistoryTable td{vertical-align:top;min-width:100px}.sessionHistoryTable td:first-child{min-width:190px}.sessionDetails{min-width:140px}.sessionDetails summary{cursor:pointer;color:#17674e;font-weight:650}.sessionDetails[open]{min-width:300px;max-width:380px}.sessionDetails dl{font-size:13px}.sessionDetails dl>div{padding:8px 0;border-bottom:1px solid #dfe7de}.sessionDetails dt{font-weight:650}.sessionDetails dd{margin:3px 0;overflow-wrap:anywhere}.sessionHistoryTable .badge{white-space:normal}@media(max-width:700px){.sessionToolbar label{min-width:130px}.sessionToolbar button{flex:1}.sessionDetails[open]{min-width:250px}}

/* Device fault alerts */
.deviceAttention{border:1px solid #dfe7de;background:#f4f8f2;border-radius:14px;padding:18px 20px;margin:20px 0}.deviceAttention.hasAlerts{background:#fffaf0;border-color:#e8ce94}.deviceAttention h2{font-size:18px;margin:0}.deviceAttention p{margin:5px 0}.attentionCount{display:inline-block;background:#8c432f;color:white;border-radius:20px;padding:3px 9px;font-size:12px}.attentionList{display:grid;gap:10px;margin-top:14px}.attentionItem{border-left:4px solid #d39c38;background:white;border-radius:9px;padding:14px;display:flex;align-items:start;justify-content:space-between;gap:18px}.attentionItem.urgent{border-left-color:#b63a32}.attentionItem p{font-size:13px}.attentionItem .attentionDevice{font-weight:650}.attentionItem .actions{justify-content:flex-end;min-width:230px;flex-wrap:wrap}.attentionFoot{margin-top:12px!important}.attentionTarget{outline:3px solid #d39c38;outline-offset:2px}@media(max-width:900px){.attentionItem{display:block}.attentionItem .actions{margin-top:12px;justify-content:flex-start;min-width:0}.deviceAttention>.row{align-items:start}.deviceAttention{padding:15px}}

.navAlertCount{background:#b52f32!important;color:#fff!important;margin-left:7px;font-size:12px;min-width:22px;text-align:center}.navAlertCount[hidden]{display:none}.attentionItem.acknowledged{border-left-color:#8b9690;background:#f6f7f5}.ackLabel{color:#56665f;font-weight:650}
