:root{--navy:#101c33;--ink:#18253b;--muted:#65748b;--line:#e2e8f0;--blue:#3866e9;--teal:#078579;--orange:#bc712c;--bg:#f4f7fb}*{box-sizing:border-box}body{margin:0;font:16px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button,a,summary{touch-action:manipulation}button{cursor:pointer}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #769aff;outline-offset:4px}.topbar{min-height:92px;background:var(--navy);color:#fff;padding:20px max(24px,calc((100vw - 1280px)/2));display:flex;justify-content:space-between;align-items:center;gap:24px}.brand{display:flex;align-items:center;gap:13px;font-size:25px;font-weight:750;letter-spacing:-.6px}.brand-mark{display:grid;place-items:center;width:44px;height:44px;border:1px solid #687da1;border-radius:12px;background:#263a60;color:#b9d9ff;font-size:25px;font-weight:800}.brand small{display:block;color:#b5c3d9;font-size:14px;letter-spacing:.2px;font-weight:400}.header-right{display:flex;align-items:center;gap:28px}.header-caption{font-size:12px;letter-spacing:1.6px;color:#abbdd8}.logout{padding:8px 14px;color:#e1eaff;background:#263750;border:1px solid #41516a;border-radius:7px;font-size:14px}.page{max-width:1280px;margin:auto;padding:40px 24px 32px}.eyebrow{font-size:12px;letter-spacing:1.5px;font-weight:750;color:var(--muted)}h1,h2,h3,p{margin-top:0}h1{font-size:30px;line-height:1.22;letter-spacing:-.7px;margin-bottom:12px}h2{font-size:19px;line-height:1.35;margin-bottom:8px;letter-spacing:-.3px}h3{font-size:19px}.muted{color:var(--muted)}.small{font-size:14px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:26px}.page-heading .eyebrow{display:block;margin-bottom:10px}.page-heading p{margin-bottom:0}.heading-state{text-align:right;display:grid;justify-items:end;gap:10px}.heading-state small{font-size:13px;color:var(--muted)}.pill{display:inline-flex;align-items:center;white-space:nowrap;font-size:13px;font-weight:650;padding:6px 12px;border-radius:6px}.neutral{background:#e7edf5;color:#57657c}.online{background:#dcf2e9;color:#176848}.test{background:#fff0ce;color:#84560b}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:24px;flex-wrap:wrap}.tabs{display:flex;gap:3px;background:#e6ecf5;padding:4px;border-radius:9px}.tabs a{font-size:14px;padding:9px 17px;color:#59677e;border-radius:6px;font-weight:650}.tabs .selected{background:white;color:var(--ink);box-shadow:0 1px 5px #193b6420}.filter-form{display:flex;gap:8px;align-items:center}.filter-form select{padding:9px 36px 9px 12px;background:#fff;border:1px solid #d2dce9;border-radius:7px;font-size:14px}.primary,.secondary{display:inline-flex;justify-content:center;align-items:center;gap:7px;border:1px solid transparent;border-radius:7px;padding:10px 16px;font-weight:650;font-size:14px;line-height:1.5}.primary{background:var(--blue);color:#fff}.primary:hover{background:#2851c8}.secondary{background:white;border-color:#d2dce9;color:#34455e}.secondary:hover{background:#edf2fa}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:24px}.metric{border:1px solid var(--line);border-top:3px solid var(--blue);background:#fff;padding:24px;border-radius:12px;box-shadow:0 4px 14px #1b2b4504}.metric.teal{border-top-color:var(--teal)}.metric.orange{border-top-color:var(--orange)}.metric-top{display:flex;gap:12px;align-items:center;justify-content:space-between}.metric h2{font-size:15px;font-weight:600;margin:0;color:#52617a}.sensor-tag{font:12px ui-monospace,monospace;color:#7a8aa2;background:#f0f4fa;padding:3px 7px;border-radius:4px}.metric-value{font-size:44px;font-weight:700;letter-spacing:-1.5px;line-height:1.4;margin:10px 0 2px}.metric-value span{font-size:22px;color:#7a879b;font-weight:400;margin-left:8px;letter-spacing:0}.metric p{font-size:13px;color:var(--muted);margin:0}.panel{background:white;border:1px solid var(--line);border-radius:12px;margin-bottom:24px;overflow:hidden;box-shadow:0 4px 14px #1b2b4503}.panel-heading{padding:24px 24px 14px;display:flex;justify-content:space-between;align-items:center;gap:20px}.panel-heading h2{margin-top:5px}.legend{display:flex;gap:18px;flex-wrap:wrap;color:#5d6c83;font-size:13px}.legend span:before{content:"";width:9px;height:9px;display:inline-block;border-radius:3px;margin-right:7px}.blue-dot:before{background:var(--blue)}.teal-dot:before{background:var(--teal)}.orange-dot:before{background:var(--orange)}.chart-wrap{height:300px;margin:5px 24px}.chart-wrap canvas{width:100%;height:100%;display:block}.chart-note{font-size:12px;color:var(--muted);padding:0 24px 16px;margin:0}.empty-state{min-height:265px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px}.empty-symbol{display:grid;place-items:center;width:56px;height:56px;background:#edf2fb;border:1px solid #dce6f6;color:#839dc4;border-radius:15px;font-size:40px;margin-bottom:15px}.empty-state h3{margin-bottom:6px}.empty-state p{max-width:490px;font-size:14px;color:var(--muted);margin-bottom:0}.count{font-size:13px;display:inline-block;background:#edf2f9;border-radius:5px;padding:2px 8px;color:#6c7f9b;vertical-align:middle;margin-left:7px}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:14px}th{text-align:left;background:#f7f9fc;font-size:12px;color:#61718b;font-weight:650;letter-spacing:.3px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}th,td{padding:13px 24px}td{border-bottom:1px solid #edf1f6}tr:last-child td{border-bottom:0}.empty-cell{text-align:center;color:var(--muted);padding:32px}.pagination{display:flex;justify-content:center;align-items:center;gap:18px;font-size:13px;color:var(--muted);padding:15px;border-top:1px solid var(--line)}.device-panel{padding:22px 24px;display:flex;justify-content:space-between;align-items:center}.device-panel h2{margin-top:5px;margin-bottom:5px;font-size:17px}.device-panel p{font-size:13px;margin-bottom:0}.admin-panel{padding:22px 24px}.admin-panel summary{cursor:pointer;font-weight:650}.admin-panel p{margin-top:16px;font-size:14px}.user-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.user-grid button{justify-self:start}.notice{padding:16px 20px;border:1px solid #d9e3f1;border-radius:9px;margin-bottom:22px;font-size:14px}.notice ul{margin-bottom:0;padding-left:20px}.error{background:#fff2f2;border-color:#edcaca;color:#8e3030}.success{background:#e8f5ed;color:#25603f}.test-notice{background:#fff8e7;border-color:#f0dfba;color:#805d1f}.footer{max-width:1232px;margin:0 auto;padding:18px 0 28px;border-top:1px solid #dce4ef;display:flex;justify-content:space-between;gap:20px;color:#8190a6;font-size:12px}.footer>span:first-child{font-weight:750;letter-spacing:.3px}.auth-page{display:grid;grid-template-columns:1.15fr 1fr;gap:90px;align-items:center;min-height:calc(100vh - 173px);max-width:1070px}.auth-intro h1{font-size:46px;line-height:1.12;margin-top:16px;margin-bottom:24px;letter-spacing:-1.7px}.auth-intro p{max-width:410px;color:#697a93;font-size:17px;line-height:1.8}.intro-line{display:flex;align-items:center;gap:14px;font-size:13px;color:#75859d;margin-top:38px}.intro-line span{width:40px;height:3px;background:#6c91ed}.auth-card{background:white;border:1px solid var(--line);border-radius:15px;padding:34px;box-shadow:0 12px 40px #18335908}.auth-card h2,.auth-card h1{margin-top:10px;margin-bottom:10px;font-size:27px}.auth-card p{font-size:14px}.auth-card form{margin-top:25px}label{display:block;font-size:14px;font-weight:600}label small{font-weight:400;color:var(--muted);margin-left:8px}input{width:100%;display:block;margin-top:7px;padding:12px;border:1px solid #cfdae9;border-radius:7px;background:#fbfcfe;color:var(--ink);outline:0}input:focus{border-color:#6388e9;box-shadow:0 0 0 3px #3866e914}.auth-card label{margin-bottom:18px}.full{width:100%;padding:13px}.form-note{text-align:center;color:#8290a6;margin-top:22px;margin-bottom:0;font-size:12px!important}.setup-page{max-width:570px;min-height:calc(100vh - 175px);display:flex;align-items:center}.setup-page .auth-card{width:100%}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:900px){.auth-page{gap:35px}.auth-intro h1{font-size:37px}.header-caption{display:none}.metric{padding:19px}.panel-heading{align-items:flex-start}.legend{max-width:200px}.footer{margin:0 24px}}@media(max-width:680px){.topbar{min-height:78px;padding:16px 20px}.brand{font-size:22px}.brand-mark{width:38px;height:38px}.brand small{font-size:12px}.page{padding:26px 16px}.page-heading{display:block}.page-heading h1{font-size:25px}.heading-state{justify-items:start;text-align:left;margin-top:16px;gap:6px}.metrics{grid-template-columns:1fr;gap:12px}.metric{padding:17px 20px}.metric-value{font-size:37px}.metric-top h2{font-size:16px}.filter-form{flex-wrap:wrap;width:100%}.filter-form select{flex:1}.toolbar{gap:14px}.panel-heading{padding:20px 18px 12px;display:block}.legend{margin-top:14px;max-width:none;gap:14px}.chart-wrap{height:260px;margin:0 12px}.chart-note{padding-left:18px}.device-panel{align-items:flex-start;gap:14px}.device-panel .pill{margin-top:5px}th,td{padding:12px 18px}.user-grid{grid-template-columns:1fr}.auth-page{display:block;min-height:calc(100vh - 160px);padding:35px 20px}.auth-intro h1{font-size:32px}.auth-intro p{font-size:15px}.auth-intro .intro-line{display:none}.auth-card{padding:25px;margin-top:28px}.auth-intro h1 br{display:none}.footer{display:block;padding-bottom:24px;margin:0 20px}.footer span{display:block;margin-bottom:5px}.setup-page{padding:20px}.setup-page .auth-card{margin-top:0}}
