:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#253235;background:#f5f7f8;--line:#dde4e6;--muted:#667579;--green:#17664f}
body{line-height:1.5}
header{min-height:76px;padding:14px 32px;background:#fff;border-color:var(--line)}
.brand{font-size:22px;font-weight:750;color:var(--green);white-space:nowrap}
header>span:nth-child(2){border-left:1px solid var(--line);padding-left:20px;color:var(--muted);font-size:13px}
#identity{font-size:12px;overflow-wrap:anywhere}
main{padding:24px 32px 64px}
#auth{max-width:420px;margin:72px auto;padding:0 24px}
#auth h1{font-size:28px;margin-bottom:28px}
h1{font-size:23px;font-weight:650;line-height:1.35}
button,input,select{border-color:#bfcbd0;border-radius:5px;transition:border-color .15s,background-color .15s,box-shadow .15s}
button{font-weight:550;line-height:1.3}
button:hover:not(:disabled){background:#f0f5f3;border-color:#91aba1}
button.primary{background:var(--green);border-color:var(--green)}
button.primary:hover:not(:disabled){background:#11513e;border-color:#11513e}
button:disabled{opacity:.45}
button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #b8ded1;outline-offset:2px}
input,select{min-width:0}
input::placeholder{color:#879397}
input[type=checkbox]{min-height:19px;width:19px;height:19px;margin:4px 0;accent-color:var(--green);cursor:pointer}
label{gap:7px;font-size:13px;font-weight:550}
label input,label select{font-size:14px;font-weight:400}
form>label{margin:18px 0}
#headerNav button{font-size:13px}
#devices>.toolbar{margin:0 0 26px;padding-bottom:24px;border-bottom:1px solid var(--line)}
#region{min-width:180px}
#searchSN{width:290px;max-width:100%}
aside{border-color:var(--line);padding-right:20px}
aside h2{margin:0 0 18px;color:var(--muted);font-size:12px;text-transform:uppercase}
#deviceList button{margin:6px 0;padding:12px;border-color:transparent;background:transparent;overflow-wrap:anywhere;font-size:13px}
#deviceList .selected{background:#e5f1eb;color:#14563f;border-color:#bed9ca;box-shadow:inset 3px 0 var(--green)}
.device-heading{margin-bottom:20px}
.device-heading h1{margin:0 auto 0 0}
#deviceInfo{column-gap:32px;row-gap:0;margin-bottom:24px}
#deviceInfo div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:16px;padding:9px 0;border-bottom:1px solid #e3e9eb;font-size:12px;color:var(--muted)}
#deviceInfo strong{font-weight:500;color:#253235}
#editActions{background:#f5f7f8;z-index:2;border-color:var(--line);padding:14px 0;flex-wrap:wrap;gap:10px}
#export{margin-left:auto}
#pending{color:#94601d;font-size:13px}
#pending:empty{display:none}
#filterLabel{max-width:400px;margin:22px 0 28px}
.module h2{padding:12px 14px;margin:0;background:#eaf0f2;border-left:3px solid #6c949d;border-bottom:1px solid var(--line);font-size:14px;font-weight:650}
.parameter{grid-template-columns:minmax(0,1fr) 180px 90px;gap:20px;border-color:#e6ebed;padding:10px 14px;background:#fff}
.parameter:hover{background:#fafcfc}
.parameter input:not([type=checkbox]),.parameter select{font-variant-numeric:tabular-nums}
.parameter input[type=number]{text-align:right}
.parameter.edited{background:#fffaf0;box-shadow:inset 3px 0 #b27b20}
.parameter.edited input,.parameter.edited select{border-color:#c59b50}
.unit{color:var(--muted);font-size:12px;overflow-wrap:anywhere}
.empty{font-size:13px}
.account-row,.event{padding:18px 0;overflow-wrap:anywhere;border-color:var(--line)}
.account-row span:first-child{font-weight:600}
.event time{font-variant-numeric:tabular-nums}
#notice{overflow-wrap:anywhere}
#notice:not(:empty){border-bottom:1px solid #f0d1c9}
#notice.success:not(:empty){border-color:#cce3d6}
dialog{border-color:var(--line);border-radius:8px;padding:28px;box-shadow:0 24px 80px #182e3733}
dialog h2{margin-top:0;font-size:20px}
.change{padding:12px 0;overflow-wrap:anywhere}
@media(max-width:1100px){header{padding:14px 24px;flex-wrap:wrap}.device-layout{grid-template-columns:185px minmax(0,1fr);gap:20px}#deviceInfo{grid-template-columns:1fr}}
@media(max-width:760px){
header{padding:14px 16px;gap:12px}.brand{font-size:20px}header>span:nth-child(2){padding-left:12px;font-size:12px}
main{padding:20px 16px 40px}#auth{margin:48px auto}.device-layout{grid-template-columns:1fr}
aside{padding:0 0 16px}aside h2{margin-bottom:8px}#deviceList button{max-width:100%;margin:0}
.device-heading h1{font-size:20px}.parameter{grid-template-columns:minmax(0,1fr) 100px 42px;gap:10px;font-size:12px;padding:10px}
.parameter input,.parameter select{padding:8px 6px;font-size:13px}.toolbar label{min-width:140px}
#region,#searchSN{width:100%;min-width:0}#editActions{gap:8px}#editActions button{font-size:12px;padding:9px 10px}#export{margin-left:0}
#deviceInfo div{gap:12px}.grant{flex-wrap:wrap}#grantSN{max-width:100%}
}
@media(prefers-reduced-motion:reduce){button,input,select{transition:none}}

/* A restrained instrument-panel treatment, without changing the workflow. */
:root{background:#f3f5f6;color:#263238;--line:#dfe5e8;--muted:#6c7a82;--green:#17634f;font-size:14px;letter-spacing:0}
body{background:#f3f5f6}
header{min-height:80px;padding:16px 36px;border-top:3px solid #17634f;box-shadow:0 2px 8px #243a4205;gap:22px}
.brand{font-size:23px;font-weight:750;color:#175b48}
header>span:nth-child(2){font-size:12px;line-height:1.45;max-width:155px;color:#66767c}
#headerNav{gap:6px;align-self:stretch;align-items:center}
#headerNav button{min-height:38px;padding:10px 16px;color:#637179;border-radius:5px;font-weight:600}
#headerNav button.active{background:#e9f2ee;color:#145c46;box-shadow:inset 0 -2px #24836a}
#identity{background:#f1f4f5;border:1px solid #e4e9eb;padding:5px 10px;border-radius:4px;max-width:180px;color:#52636d}
#identity:empty{display:none}
#logout{border-color:transparent;color:#65747b;font-size:12px;min-height:36px;padding:8px}
main{max-width:1520px;padding:30px 36px 72px}
h1{font-size:25px;font-weight:650;color:#213139}
button{font-size:13px;min-height:38px;padding:9px 15px;border-color:#cbd5da;box-shadow:0 1px 2px #223d4610}
button:active:not(:disabled){box-shadow:none;background:#e9efed}
button.primary{box-shadow:0 2px 4px #17634f19}
input,select{min-height:42px;border-color:#cbd5da;background:#fff;padding:10px 12px;box-shadow:inset 0 1px 2px #263a4304}
input:hover:not(:disabled),select:hover:not(:disabled){border-color:#93aaa3}
input:disabled,select:disabled{background:#f1f4f5;color:#819097}
label{color:#52646e;font-size:12px;font-weight:600}
#auth{max-width:416px;margin:84px auto;padding:0 24px 40px}
#auth h1{font-size:30px;margin:0 0 34px;border-bottom:1px solid #d9e2e5;padding-bottom:23px}
#auth form>label{margin:22px 0}
#auth input{min-height:48px;font-size:15px}
#auth form>button{width:100%;margin:8px 0 0;min-height:46px}
#auth #register{background:transparent;border-color:transparent;box-shadow:none;color:#286b58;margin-top:10px}
#devices>.toolbar{margin-bottom:28px;padding-bottom:24px;gap:12px;align-items:end}
#devices>.toolbar button{min-height:42px}
.device-layout{grid-template-columns:214px minmax(0,1fr);gap:30px}
aside{padding-right:20px}
aside h2{font-size:11px;font-weight:700;color:#7c8a90;padding:2px 10px 12px;margin:0}
#deviceList button{border-radius:5px;font-size:12px;padding:12px 13px;min-height:44px;box-shadow:none;margin:4px 0;color:#54656d}
#deviceList button:hover{background:#eaf0f0}
#deviceList .selected{background:#e3eee9;color:#155b47;border-color:#c8ded3;box-shadow:inset 3px 0 #26836a;font-weight:650}
.device-heading{padding:0 0 19px;margin-bottom:0;border-bottom:1px solid #d6e0e3}
.device-heading h1{font-size:23px;font-variant-numeric:tabular-nums}
#deviceInfo{margin:0 0 24px;column-gap:36px}
#deviceInfo div{padding:12px 0;line-height:1.5;font-size:12px;border-color:#e0e6e9;align-items:baseline}
#deviceInfo strong{font-weight:550;color:#33454e;text-align:right}
#editActions{padding:13px 0;background:#f3f5f6;box-shadow:0 4px 5px #20343a04;border-top:0;border-bottom:1px solid #d4dfe2}
#filterLabel{margin:24px 0 30px;max-width:360px}
#filter{background:#fff}
.module{margin-top:30px}
.module h2{background:#e7edef;border:0;border-bottom:1px solid #d4dfe3;border-left:3px solid #64868a;padding:13px 18px;font-size:13px;color:#35525c;line-height:1.5}
.parameter{min-height:64px;padding:11px 18px;grid-template-columns:minmax(0,1fr) 168px 78px;gap:24px;border-bottom:1px solid #e7ecee;font-size:13px;color:#34464f}
.parameter:nth-child(odd){background:#fbfcfc}
.parameter:hover{background:#f2f8f6}
.parameter input:not([type=checkbox]),.parameter select{min-height:36px;padding:7px 10px;font-size:13px;box-shadow:none;border-color:#d3dee2;border-radius:4px}
.parameter input[type=checkbox]{width:20px;height:20px;justify-self:end;margin-right:10px;box-shadow:none}
.parameter.edited{background:#fff9ed;box-shadow:inset 3px 0 #b7832c}
.unit{font-size:12px;color:#74858c;font-variant-numeric:tabular-nums}
#users>.toolbar{padding-bottom:20px;margin-bottom:0;border-bottom:2px solid #d3dfe3}
.account-row{display:grid;grid-template-columns:minmax(140px,1.4fr) minmax(100px,.8fr) 80px 90px 190px;gap:18px;padding:17px 12px;background:#fff;font-size:13px;min-height:78px}
.account-row:nth-child(even){background:#fafcfc}
.account-row span:first-child{min-width:0;color:#30434c}
.account-row span:nth-child(2){font-size:12px;color:#57716c}
.account-row span:nth-child(3){font-size:12px;color:#58766a}
.account-row span:nth-child(4){font-size:12px;color:#7b888f}
.account-row .toolbar{margin:0;gap:8px;justify-content:flex-end;align-items:center}
.account-row .toolbar button:last-child:not(:first-child){color:#a14743;border-color:#e6cecb;background:#fff;box-shadow:none}
.account-row .toolbar button:last-child:not(:first-child):hover{background:#fcf0ee;border-color:#cb9993}
#profile{max-width:640px}
#profile h1{border-bottom:1px solid var(--line);padding-bottom:22px}
.event{padding:16px 12px;background:#fff;font-size:12px}
.event:nth-child(even){background:#fafcfc}
.event strong{font-weight:600;color:#3f5e59}
dialog{padding:30px;border-color:#d9e2e6;box-shadow:0 20px 70px #263a4429}
dialog::backdrop{background:#24383e66;backdrop-filter:blur(2px)}
dialog h2{padding-bottom:18px;border-bottom:1px solid var(--line);font-size:21px;overflow-wrap:anywhere}
dialog .toolbar:last-child{padding-top:18px;border-top:1px solid var(--line);margin-bottom:0}
#notice:not(:empty){font-size:13px;padding:13px 36px;border-left:4px solid #c06f56}
#notice.success:not(:empty){border-left-color:#36866c}
@media(max-width:1100px){header{padding:14px 24px;gap:16px}.device-layout{grid-template-columns:180px minmax(0,1fr);gap:24px}.account-row{grid-template-columns:minmax(130px,1fr) 100px 70px 80px 160px;gap:10px}#deviceInfo{grid-template-columns:1fr}}
@media(max-width:760px){
 header{padding:12px 16px;gap:8px 12px;min-height:70px;display:grid;grid-template-columns:minmax(0,1fr) auto}.brand{font-size:20px;grid-column:1;grid-row:1}header>span:nth-child(2){max-width:none;font-size:11px;padding-left:0;border:0;grid-column:1;grid-row:2}
 header #identity{grid-column:2;grid-row:1;margin:0}header #logout{grid-column:2;grid-row:2;padding:2px 8px;min-height:28px}header #headerNav{grid-column:1 / -1;grid-row:3;margin-top:8px}
 #headerNav{gap:0;justify-content:space-between;overflow:auto}#headerNav button{font-size:12px;padding:10px 12px;flex-shrink:0}#identity{max-width:150px}
 main{padding:22px 16px 48px}#auth{margin:48px auto}.device-layout{grid-template-columns:1fr;gap:20px}
 aside{padding:0 0 16px}aside h2{padding-left:0}#deviceList{gap:6px}#deviceList button{margin:0;max-width:100%}
 #devices>.toolbar{gap:10px;margin-bottom:20px}#devices>.toolbar label{min-width:120px}#searchSN{width:100%}
 .device-heading h1{font-size:20px}#deviceInfo div{gap:14px;padding:11px 0}#deviceInfo strong{text-align:right}
 .module h2{padding:12px;font-size:12px}.parameter{padding:12px;gap:10px;grid-template-columns:minmax(0,1fr) 92px 48px;font-size:12px;min-height:68px}
 .parameter input:not([type=checkbox]),.parameter select{padding:7px 5px;font-size:12px}.parameter input[type=checkbox]{margin-right:4px}
 .unit{font-size:11px}#editActions{gap:8px}#export{margin-left:auto}#editActions button{padding:9px;font-size:11px}
 .account-row{grid-template-columns:minmax(0,1fr) 100px;gap:8px;padding:16px 12px}.account-row .toolbar{grid-column:1 / -1;justify-content:flex-end;margin-top:4px}.account-row span:nth-child(3){grid-column:2;grid-row:2}
 dialog{padding:20px}#notice:not(:empty){padding:12px 16px}
}
