:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#233b36;background:#f4f6f5;font-synthesis:none;--green:#21735a;--muted:#788780;--line:#e7ece8;--orange:#e9a254}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{outline-offset:4px}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button{border:1px solid var(--line);background:white;color:inherit;border-radius:11px;padding:11px 16px;font-size:13px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:background .15s}button:hover{background:#f1f6f3}button.primary{background:var(--green);color:white;border-color:var(--green)}button.primary:hover{background:#185b46}button.danger{color:#b34840}button.ghost{border:0;background:transparent}svg.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.layout{display:grid;grid-template-columns:238px 1fr;min-height:100vh}.sidebar{background:#142e29;color:#d7e5df;padding:34px 22px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:12px;font-size:18px;font-weight:650;letter-spacing:-.5px}.brand em{font-style:normal;display:block;font-size:11px;color:#92afa3;letter-spacing:2px;margin-top:5px;font-weight:500}.brandmark{width:38px;height:42px;background:#b8dec2;border-radius:12px;color:#174833;display:grid;place-items:center}.nav-label{font-size:10px;letter-spacing:2px;color:#77968b;margin:48px 12px 12px}.nav{display:flex;flex-direction:column;gap:7px}.nav button{background:transparent;border:0;color:#a5bdb2;justify-content:flex-start;padding:13px 15px;font-weight:500}.nav button.active{background:#2a4439;color:#d2edbd}.nav button:hover{background:#243f35}.sidefoot{margin-top:auto;border-top:1px solid #30473e;padding-top:22px;font-size:12px;display:flex;align-items:center;gap:10px}.avatar{width:36px;height:36px;border-radius:12px;background:#e9f0e9;color:#386151;display:grid;place-items:center;font-weight:600}.sidefoot .avatar{background:#324c40;color:#d5e7d6}.sidefoot small{display:block;color:#9bb3a6;margin-top:4px}.sidefoot button{margin-left:auto;color:#aac3b6}.main{padding:32px 42px 50px;max-width:1700px;width:100%;margin:auto}.top{display:flex;align-items:center;justify-content:space-between;margin-bottom:34px;gap:15px}.eyebrow{font-size:10px;text-transform:uppercase;letter-spacing:2px;font-weight:700;color:var(--muted);margin-bottom:9px}h1{font-size:29px;letter-spacing:-1px;font-weight:600;margin:0}h2{font-size:17px;letter-spacing:-.3px;margin:0;font-weight:600}h3{font-size:15px;margin:0}p{line-height:1.6}.muted,small{color:var(--muted)}.small{font-size:12px}.top-actions,.row,.actions{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.hero{background:linear-gradient(115deg,#dceade,#f1f3e7);border:1px solid #dce7d9;border-radius:20px;padding:28px 30px;display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;gap:24px}.hero h2{font-size:25px;line-height:1.3;max-width:500px}.hero p{font-size:13px;color:#58705e;margin:10px 0 0}.hero-art{display:flex;gap:7px;align-items:end;height:72px;padding-right:25px}.hero-art i{display:block;width:17px;background:#538568;border-radius:6px;opacity:.6}.hero-art i:nth-child(2){height:64px;opacity:.8}.hero-art i:nth-child(1){height:35px}.hero-art i:nth-child(3){height:48px}.hero-art i:nth-child(4){height:72px;opacity:1}.hero-art i:nth-child(5){height:58px;background:#d7ae59}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:25px}.stat,.card{background:#fff;border:1px solid var(--line);border-radius:18px}.stat{padding:22px}.stat .label{font-size:12px;color:#75867c;display:flex;justify-content:space-between;align-items:center}.stat strong{font-size:29px;font-weight:550;letter-spacing:-1px;display:block;margin:15px 0 8px}.stat small{font-size:11px}.card{padding:25px}.card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;gap:12px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-bottom:24px}.grid-wide{display:grid;grid-template-columns:1.4fr 1fr;gap:22px;margin-bottom:24px}.badge{display:inline-flex;align-items:center;gap:6px;border-radius:7px;padding:5px 8px;font-size:10px;font-weight:600;white-space:nowrap;background:#f0f3f1;color:#78857e}.badge.good{background:#edf6ef;color:#3b7b51}.badge.warn{background:#fdf3e7;color:#a07133}.badge.bad{background:#fbeceb;color:#ad5149}.dot{width:6px;height:6px;background:currentColor;border-radius:50%;display:inline-block}.device-title{display:flex;gap:12px;align-items:center}.device-symbol{width:44px;height:44px;background:#f3f6f2;border-radius:13px;display:grid;place-items:center;color:#64856b}.device-title small{display:block;margin-top:5px;font-size:11px}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin:24px 0}.metrics strong{display:block;font-size:22px;font-weight:550;letter-spacing:-.6px;margin-top:7px}.metrics span{color:var(--muted);font-size:11px}.progress{height:7px;border-radius:10px;background:#eef2ed;overflow:hidden;margin-top:13px}.progress i{display:block;background:#76a77b;height:100%;border-radius:10px}.device-foot{border-top:1px solid var(--line);padding-top:16px;margin-top:18px;display:flex;justify-content:space-between;align-items:center;gap:10px}.device-foot small{font-size:11px}.device-foot button{padding:7px 10px}.flow{position:relative;display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px;align-items:center;padding:25px 5px}.flow-node{background:#f6f8f5;border:1px solid #e8eee5;border-radius:15px;text-align:center;padding:18px 12px}.flow-node.center{background:#eaf2e6;border:1px solid #d7e4cf}.flow-node svg{width:26px;height:26px}.flow-node b{font-size:20px;font-weight:550;display:block;margin:10px 0 5px}.flow-node small{font-size:11px}.flow-label{text-align:center;color:#7e8c81;font-size:11px;margin-top:10px}.detail-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:22px}.data-row{display:flex;justify-content:space-between;gap:24px;padding:13px 0;border-bottom:1px solid #f1f4f1;font-size:12px;line-height:1.5}.data-row:last-child{border:0}.data-row span{color:var(--muted)}.data-row b{font-weight:500;text-align:right;overflow-wrap:anywhere}.chart{height:185px;width:100%;overflow:visible}.chart-grid{stroke:#edf1ec;stroke-width:1}.chart-labels{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin-top:10px}.tabs{display:flex;gap:6px;margin:4px 0 24px;border-bottom:1px solid var(--line);padding-bottom:12px;flex-wrap:wrap}.tabs button{border:0;background:transparent;color:#78877f}.tabs button.active{background:#e4eee5;color:#29533a}.tablewrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}th{font-weight:500;color:#859187;font-size:10px;text-transform:uppercase;letter-spacing:1px;padding:13px 15px;background:#f8faf7}td{padding:17px 15px;border-bottom:1px solid var(--line)}td small{display:block;margin-top:5px;font-size:11px}.empty{padding:45px;text-align:center;color:var(--muted);font-size:13px}.error{background:#fcefeb;color:#9a4e3f;padding:15px 20px;border-radius:12px;margin-bottom:20px;font-size:13px}.hint{background:#f6f8f5;border-radius:12px;padding:16px;color:#708170;font-size:12px;line-height:1.65}.login{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr}.login-art{background:#142e29;padding:65px;color:white;display:flex;flex-direction:column;justify-content:space-between}.login-art h1{font-size:56px;max-width:500px;line-height:1.14;letter-spacing:-2.5px}.login-art p{color:#afc7b7;max-width:340px}.login-form{max-width:410px;width:100%;padding:30px;margin:auto}.login-form h1{font-size:30px}.login-form form{margin-top:32px}.login-form button{width:100%;margin-top:16px}.login-foot{font-size:11px;color:var(--muted);margin-top:30px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}label{display:block;font-size:12px;font-weight:500;color:#64746a;margin-bottom:18px}input,select{display:block;width:100%;border:1px solid #dfe6df;background:#fff;border-radius:10px;padding:12px;color:#233b36;margin-top:8px}input[type=checkbox]{width:18px;display:inline;margin:0 8px 0 0}label.check{display:flex;align-items:center;margin:16px 0}dialog{border:1px solid var(--line);border-radius:22px;width:520px;max-width:calc(100% - 32px);padding:30px;color:#233b36;box-shadow:0 30px 100px #142e2926}dialog::backdrop{background:#0c241c77;backdrop-filter:blur(3px)}dialog .actions{justify-content:flex-end;border-top:1px solid var(--line);padding-top:20px;margin-top:20px}dialog h2{margin-bottom:24px}#notice{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#193f2f;color:white;border-radius:12px;padding:14px 22px;font-size:13px;box-shadow:0 10px 30px #0002;display:none;z-index:10}.boot{padding:70px;text-align:center;color:var(--muted)}.spacer{height:22px}.footer{color:#8b978e;font-size:10px;margin-top:30px;display:flex;justify-content:space-between}.stack{display:grid;gap:22px}.tag{background:#edf3ed;padding:5px 8px;border-radius:6px;font-size:11px}.command{border-left:3px solid #b5cbb4;padding:8px 14px;margin:15px 0;font-size:12px}.command b{display:block;margin-bottom:5px}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(min-width:1600px){.main{padding:40px 60px}}@media(max-width:1100px){.layout{grid-template-columns:195px 1fr}.main{padding:28px 24px}.sidebar{padding:28px 14px}.stats{grid-template-columns:repeat(2,1fr)}.grid-wide,.detail-grid{grid-template-columns:1fr}.grid2{gap:15px}.card{padding:20px}.metrics strong{font-size:19px}.hero h2{font-size:22px}}@media(max-width:750px){.layout{display:block}.sidebar{height:auto;position:static;padding:18px}.sidebar .brand em,.nav-label,.sidefoot{display:none}.nav{flex-direction:row;overflow:auto;margin-top:15px}.nav button{font-size:11px;white-space:nowrap;padding:10px}.nav button svg{width:16px}.main{padding:24px 16px}.top{margin-bottom:22px}h1{font-size:25px}.top-actions .muted{display:none}.hero{padding:23px}.hero-art{display:none}.stats{gap:12px}.stat{padding:18px}.stat strong{font-size:25px}.grid2{grid-template-columns:1fr}.login{display:block}.login-art{padding:30px;min-height:180px}.login-art h1{font-size:30px;margin:25px 0 0}.login-art p,.login-art>small{display:none}.login-form{padding:35px 25px}.form-grid{grid-template-columns:1fr}.footer{line-height:1.6;gap:20px}.top-actions button{padding:10px}.flow{gap:8px}.flow-node{padding:15px 6px}.flow-node b{font-size:17px}}

/* Hardware settings */
.hardware-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:20px}.hardware-intro p{margin-bottom:0}.hardware-search{width:280px;margin:0}.hardware-pack{margin-bottom:24px}.hardware-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;padding:20px;background:#f6f8f6;border-radius:16px}.hardware-metrics span{display:block;font-size:12px;color:#687771;margin-bottom:8px}.hardware-metrics strong{font-size:23px;font-weight:600;font-variant-numeric:tabular-nums}.hardware-stamp{font-size:12px;color:#6b7974;margin:12px 0 24px}.hardware-stamp.stale{color:#99672d}.hardware-columns{display:grid;grid-template-columns:1fr 1fr;gap:32px}.hardware-section h3{margin:0 0 14px}.hardware-section .data-row b{text-align:right;max-width:65%}.hardware-section>button{margin-top:18px}.hardware-buttons{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.hardware-blocked{background:#faf5eb;color:#84612d}.hardware-settings-head{margin-top:28px;padding-top:24px;border-top:1px solid #edf0ed}.hardware-settings-head p{margin-bottom:0}.hardware-group{border-top:1px solid #edf0ed}.hardware-group summary{cursor:pointer;padding:18px 0;font-weight:600}.hardware-group summary span{font-weight:400;font-size:12px;margin-left:10px;color:#7d8982}.hardware-group table{width:100%}.hardware-group td:last-child{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.hardware-group th:last-child{text-align:right}.hardware-group td small{font-size:10px;color:#8a948f}.hardware-group tr[hidden]{display:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.tabs{overflow-x:auto}.tabs button{white-space:nowrap}button:disabled{cursor:not-allowed;opacity:.5}
@media(max-width:760px){.hardware-intro{align-items:stretch;flex-direction:column;gap:10px}.hardware-search{width:100%}.hardware-columns{grid-template-columns:1fr;gap:24px}.hardware-metrics{grid-template-columns:repeat(2,1fr);padding:16px}.hardware-metrics strong{font-size:20px}.hardware-group td{white-space:normal}.hardware-pack .card-head{align-items:flex-start;gap:12px}.hardware-pack .card-head h2{font-size:19px}.hardware-pack .card-head button{flex-shrink:0}}
.hardware-readonly{display:inline-block;margin-top:6px;font-size:11px;color:#6b7974;background:#f2f5f3;padding:3px 7px;border-radius:6px}.hardware-editor{display:grid;gap:18px;margin:22px 0}.hardware-editor label small{display:block;color:#6b7974;font-size:12px;font-weight:400;line-height:1.5;margin-top:5px}.hardware-input-unit{display:flex;align-items:center;gap:12px;margin:8px 0}.hardware-input-unit input{width:100%;margin:0}.hardware-input-unit span{color:#6b7974}.hardware-preview{padding:18px;background:#f2f7f4;border:1px solid #dce9df;border-radius:12px;margin:20px 0}.hardware-preview h3{margin-top:0}.hardware-preview .data-row{gap:16px}.hardware-preview b{white-space:nowrap}.hardware-history{border-top:1px solid #edf0ed;padding-top:20px;margin-top:20px}.hardware-history summary{cursor:pointer;font-weight:600}.hardware-history summary span{font-size:12px;color:#6b7974;margin-left:8px}.hardware-change{padding:16px 0;border-bottom:1px solid #edf0ed}.hardware-change small{display:block;color:#6b7974;margin-bottom:10px}.hardware-change>div{display:flex;justify-content:space-between;gap:16px;font-size:13px}.hardware-setting-confirm[hidden],.hardware-preview[hidden],[data-hw-back][hidden],.hardware-group[hidden]{display:none!important}@media(max-width:760px){.hardware-settings-head{flex-direction:column;align-items:stretch!important}.hardware-settings-head .hardware-buttons{margin:6px 0}.hardware-change>div,.hardware-preview .data-row{flex-wrap:wrap}.hardware-group td:first-child{min-width:0}.hardware-group td:last-child{white-space:nowrap}}
#dialog:has(.hardware-engineer){width:min(860px,calc(100vw - 32px));max-width:860px;max-height:90dvh;overflow-y:auto}.hardware-editor-groups{margin:16px 0}.hardware-edit-group{border-top:1px solid #edf0ed;padding:14px 0}.hardware-edit-group>summary{cursor:pointer;font-weight:600}.hardware-edit-group>summary small{margin-left:10px;color:#718079;font-weight:400}.hardware-edit-group .hardware-editor{grid-template-columns:1fr 1fr;gap:16px}.hardware-editor-field{padding:16px;background:#f7f9f7;border:1px solid #e6ebe7;border-radius:12px;min-width:0}.hardware-editor-field>label{font-size:13px;font-weight:600}.hardware-editor-field small{display:block;color:#718079;font-size:11px;line-height:1.5;font-weight:400;margin-top:5px}.hardware-editor-field.outside-profile{border-color:#d9bd83}.hardware-locked-value{margin-top:12px;font-weight:600}.hardware-locked-value small{font-weight:400}.hardware-engineer .actions{position:sticky;bottom:-24px;background:#fff;padding:16px 0;margin-bottom:0;border-top:1px solid #e6ebe7;z-index:1}.hardware-editor-search{margin-top:18px}.hardware-engineer [hidden]{display:none!important}@media(max-width:600px){.hardware-edit-group .hardware-editor{grid-template-columns:1fr}#dialog:has(.hardware-engineer){width:calc(100vw - 20px);padding:18px}.hardware-engineer .actions{bottom:-18px;flex-wrap:wrap}}
