:root{color:#313131;font-synthesis:none;background:#f7f7f7;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:#f7f7f7;min-width:320px;min-height:100vh;margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}h1,h2,h3,p{margin:0}h1{color:#202020;letter-spacing:-.025em;font-size:2rem;font-weight:650;line-height:1.25}h2{color:#2b2b2b;font-size:1.125rem;font-weight:650;line-height:1.35}h3{color:#343434;font-size:1rem;font-weight:650}.eyebrow{color:#6b6b6b;letter-spacing:.06em;font-size:.75rem;font-weight:650}.subtle{color:#6a6a6a;margin-top:7px;font-size:.9375rem;line-height:1.55}.icon{flex:none;width:18px;height:18px}.button{border:1px solid #0000;border-radius:5px;justify-content:center;align-items:center;gap:8px;padding:10px 14px;font-size:.9375rem;font-weight:600;text-decoration:none;transition:background .15s,border-color .15s;display:inline-flex}.button.primary,.on{color:#fff;background:#0051c3;border:1px solid #0051c3}.button.primary:hover,.on:hover{background:#003f9e;border-color:#003f9e}.button.secondary{color:#333;background:#fff;border-color:#c9c9c9}.button.secondary:hover,.off:hover{background:#f5f5f5;border-color:#777}.error{color:#a12626;background:#fff7f7;border:1px solid #f3c7c7;border-radius:5px;margin-top:16px;padding:11px 12px;font-size:.875rem}.login-shell{background:#fff;place-items:center;min-height:100vh;padding:30px 20px;display:grid}.session-loading{color:#666;background:#fff;place-content:center;justify-items:center;gap:13px;min-height:100vh;font-size:.9375rem;display:grid}.loading-mark{color:#fff;letter-spacing:-.1em;background:#f38020;border-radius:5px;place-items:center;width:36px;height:36px;font-size:1.25rem;font-weight:800;display:grid}.loading-mark span{color:#fff}.login-intro{display:none}.login-card{background:#fff;border:1px solid #d9d9d9;border-radius:7px;gap:20px;width:min(100%,410px);padding:30px;display:grid}.login-card h2{margin-top:7px;font-size:1.5rem}.login-card label{color:#343434;gap:8px;font-size:.875rem;font-weight:600;display:grid}.login-card input,.admin-form input,.admin-form select{color:#262626;background:#fff;border:1px solid #aaa;border-radius:4px;outline:none;width:100%;min-width:0;padding:10px 11px}.login-card input:focus,.admin-form input:focus,.admin-form select:focus{border-color:#0051c3;box-shadow:0 0 0 1px #0051c3}.login-card .button{width:100%;margin-top:2px}.brand-mark{color:#fff;letter-spacing:-.1em;background:#f38020;border-radius:4px;place-items:center;width:30px;height:30px;font-size:1.1rem;font-weight:800;display:inline-grid}.brand-mark span,.brand-accent{color:#f38020}.app-shell{grid-template-columns:244px minmax(0,1fr);min-height:100vh;display:grid}.app-shell aside{background:#fff;border-right:1px solid #d9d9d9;flex-direction:column;height:100vh;padding:20px 12px 16px;display:flex;position:sticky;top:0}.brand{color:#252525;letter-spacing:-.04em;align-items:center;gap:9px;margin:0 10px 31px;font-size:1.125rem;font-weight:700;text-decoration:none;display:flex}.brand .brand-mark{color:#fff;background:#f38020;width:27px;height:27px;font-size:1rem}.brand .brand-mark span{color:#fff}.app-shell nav{gap:2px;display:grid}.nav-label{color:#777;letter-spacing:.07em;margin:18px 10px 7px;font-size:.6875rem;font-weight:700}.nav-label:first-child{margin-top:0}.app-shell nav a{color:#4b4b4b;border-radius:4px;align-items:center;gap:11px;padding:9px 10px;font-size:.875rem;font-weight:500;text-decoration:none;display:flex}.app-shell nav a:hover{color:#202020;background:#f1f1f1}.app-shell nav a.active{color:#0051c3;background:#eaf2ff;font-weight:650}.profile{color:#333;border-top:1px solid #e4e4e4;grid-template-columns:auto 1fr auto;align-items:center;gap:9px;margin-top:auto;padding:12px 9px;display:grid}.avatar{color:#555;background:#e7e7e7;border-radius:50%;place-items:center;width:28px;height:28px;font-size:.75rem;font-weight:700;display:grid}.profile b,.profile small{display:block}.profile b{font-size:.8125rem;font-weight:600}.profile small{color:#777;margin-top:2px;font-size:.6875rem}.logout{color:#666;background:0 0;border:0;font-size:1rem}.logout:hover{color:#0051c3}.page{width:min(1340px,100%);margin:0 auto;padding:38px clamp(24px,4.5vw,64px) 64px}.page-header{border-bottom:1px solid #ddd;justify-content:space-between;align-items:flex-end;gap:24px;padding-bottom:24px;display:flex}.page-header .eyebrow{margin-bottom:7px}.page-actions{gap:10px;display:flex}.metric-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:24px 0 18px;display:grid}.metric{background:#fff;border:1px solid #d9d9d9;border-radius:6px;padding:18px}.metric p{color:#5f5f5f;font-size:.8125rem;font-weight:600}.metric strong{color:#252525;letter-spacing:-.035em;margin:6px 0;font-size:1.875rem;font-weight:650;display:block}.metric small{color:#747474;font-size:.75rem}.metric.good{border-top:3px solid #238636}.metric.warning{border-top:3px solid #bf8700}.panel{background:#fff;border:1px solid #d9d9d9;border-radius:6px;margin-top:18px;padding:22px}.content-loading{color:#666;justify-content:center;align-items:center;gap:10px;min-height:118px;font-size:.9375rem;display:flex}.spinner{border:2px solid #d5d5d5;border-top-color:#0051c3;border-radius:50%;width:20px;height:20px;animation:.75s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.panel-heading{justify-content:space-between;align-items:center;gap:15px;margin-bottom:14px;display:flex}.panel-heading .eyebrow{margin-bottom:6px}.quiet-label{color:#777;font-size:.75rem}.health-list{border-top:1px solid #e6e6e6}.health-row{color:#333;border-bottom:1px solid #e6e6e6;grid-template-columns:auto 1fr auto auto;align-items:center;gap:13px;padding:14px 4px;text-decoration:none;display:grid}.health-row:hover{background:#fafafa}.health-row .icon{color:#777;width:16px}.health-row b,.health-row small{display:block}.health-row b{font-size:.875rem;font-weight:600}.health-row small{color:#767676;margin-top:3px;font-size:.75rem}.status-dot{background:#999;border-radius:50%;width:8px;height:8px}.status-dot.online{background:#238636}.status-dot.offline{background:#b7791f}.status-pill{border-radius:999px;align-items:center;gap:6px;padding:5px 9px;font-size:.8125rem;font-weight:600;display:inline-flex}.status-pill i{background:currentColor;border-radius:50%;width:6px;height:6px}.status-pill.online{color:#247d34;background:#eaf7ec}.status-pill.offline{color:#986900;background:#fff5df}.device-grid{grid-template-columns:repeat(auto-fit,minmax(310px,1fr));gap:14px;margin-top:25px;display:grid}.device-card{background:#fff;border:1px solid #d9d9d9;border-radius:6px;padding:19px}.device-card header{justify-content:space-between;align-items:center;display:flex}.device-icon,.empty-icon{color:#555;background:#f1f1f1;border-radius:5px;place-items:center;width:36px;height:36px;display:grid}.device-title{margin:18px 0}.device-title h2{font-size:1rem}.device-title p{color:#777;margin-top:4px;font-size:.75rem}.relay-controls{gap:8px;display:grid}.relay-control{background:#fafafa;border:1px solid #e1e1e1;border-radius:5px;justify-content:space-between;align-items:center;gap:15px;padding:10px;display:flex}.relay-control small,.relay-control b{display:block}.relay-control small{color:#666;font-size:.75rem;font-weight:600}.relay-control b{margin-top:2px;font-size:.75rem}.relay-on{color:#247d34}.relay-off{color:#666}.segmented{background:#e7e7e7;border-radius:4px;padding:2px;display:flex}.segmented button{color:#555;background:0 0;border:0;border-radius:3px;padding:6px 10px;font-size:.8125rem;font-weight:600}.segmented button.selected{color:#fff;background:#0051c3}.segmented button.off-selected{background:#666}.empty{text-align:center;padding:25px}.empty-icon{margin:0 auto 13px}.empty h3{color:#333}.empty p{color:#707070;max-width:390px;margin:7px auto 0;font-size:.875rem;line-height:1.55}.admin-form{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:20px 0;display:grid}.admin-form button{border-radius:4px;padding:10px 12px;font-size:.9375rem;font-weight:600}.device-form{grid-template-columns:repeat(3,minmax(0,1fr))}.panel>h2{margin-bottom:4px}table{border-collapse:collapse;text-align:left;width:100%;font-size:.875rem}th{color:#666;font-size:.75rem;font-weight:650}th,td{border-bottom:1px solid #e4e4e4;padding:14px 10px}td small{color:#777;margin-top:3px;font-size:.75rem;display:block}.good{color:#247d34}.bad{color:#b42318}.off{color:#333;background:#fff;border:1px solid #b9b9b9;border-radius:4px;padding:8px 10px;font-size:.875rem;font-weight:600}.remove-device{color:#a12626;border-color:#dba6a6}.credential-box{background:#f6fbf7;border:1px solid #b7d6c0;border-radius:5px;gap:11px;margin-top:17px;padding:17px;display:grid}.credential-box label{color:#34513a;gap:6px;font-size:.8125rem;font-weight:600;display:grid}.credential-box input{color:#333;background:#fff;border:1px solid #b6cdbb;border-radius:4px;width:100%;padding:9px;font-size:.8125rem}.credential-box p{font-size:.875rem}.credential-box .subtle{font-size:.8125rem}@media (width<=850px){.app-shell{grid-template-columns:200px minmax(0,1fr)}.page{padding:32px 28px 52px}.device-form{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=650px){.app-shell{display:block}.app-shell aside{height:auto;padding:16px 12px;position:static}.brand{margin:0 8px 16px}.app-shell nav{grid-template-columns:repeat(2,minmax(0,1fr))}.nav-label{grid-column:1/-1;margin-top:13px}.nav-label:first-child,.profile{display:none}.app-shell nav a{padding:9px;font-size:.8125rem}.page{padding:27px 17px 45px}.page-header{flex-direction:column;align-items:flex-start;padding-bottom:20px}h1{font-size:1.75rem}.metric-grid{grid-template-columns:1fr;margin-top:20px}.panel{padding:17px;overflow:auto}.device-grid{grid-template-columns:1fr;margin-top:20px}.admin-form,.device-form{grid-template-columns:1fr}table{min-width:540px}.health-row{grid-template-columns:auto 1fr auto}.health-row>.icon,.quiet-label{display:none}}
