:root{--ink:#233c50;--muted:#526f82;--soft:#91aab9;--base:#dce8ee;--cyan:#65b9c4;--line:#c4d7e0;--shadow:9px 9px 24px #bfced7,-9px -9px 24px #f5fcff}*{box-sizing:border-box}body{margin:0;background:var(--base);color:var(--ink);font:14px/1.6 'Segoe UI',Arial,sans-serif}button,input,select{font:inherit;color:inherit}button,a,input,select{ -webkit-tap-highlight-color:transparent}button{cursor:pointer;border:1px solid #c4d7e0;border-radius:10px;padding:9px 16px;background:#e5eff4;box-shadow:3px 3px 8px #c4d3dc,-3px -3px 8px #f2faff}button:hover{background:#f1f8fb}button:disabled{opacity:.45;cursor:default}.primary{background:var(--ink);color:white;border-color:var(--ink)}.primary:hover{background:#36546a}input,select{border:1px solid #b5cbd6;background:#e5eff4;border-radius:9px;padding:9px 10px;min-width:0;max-width:100%}input:focus,select:focus,button:focus-visible,a:focus-visible{outline:2px solid #348994;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:30px;letter-spacing:-1px;line-height:1.3;margin-bottom:0}h2{font-size:23px;letter-spacing:-.6px;line-height:1.4}h3{font-size:16px;font-weight:600}small,.caption{color:var(--muted);font-size:12px}.eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:700;color:var(--muted);margin-bottom:8px}.sidebar{position:fixed;inset:0 auto 0 0;width:248px;padding:30px 22px;border-right:1px solid #c4d7e0;background:linear-gradient(145deg,#e5eff4,#d7e4eb);display:flex;flex-direction:column;z-index:5}.brand{display:flex;gap:12px;align-items:center;color:var(--ink);text-decoration:none;font-size:25px;letter-spacing:2px;font-weight:750}.brand small{display:block;font-size:8px;letter-spacing:1.6px}.brand-symbol{width:48px;height:48px;border-radius:15px;box-shadow:4px 4px 11px #bfced7,-4px -4px 11px #f5fcff;font-size:34px;line-height:48px;text-align:center;position:relative;font-weight:800;color:var(--muted)}.brand-symbol span{font-size:20px;position:absolute;top:8px;right:5px;color:#3995a0}.nav-label{font-size:10px;letter-spacing:2px;color:var(--soft);margin:48px 12px 16px}nav{display:flex;flex-direction:column;gap:9px}nav a{display:flex;align-items:center;gap:13px;padding:13px 12px;border-radius:12px;color:var(--muted);text-decoration:none;font-size:12px;font-weight:600}nav a.active{background:#e8f1f5;box-shadow:5px 5px 13px #bfced7,-5px -5px 13px #f2faff;color:var(--ink)}svg{width:19px;height:19px;stroke-width:1.7}nav a.active svg{color:#3594a0}.sidebar-foot{margin-top:auto;border-top:1px solid var(--line);padding:22px 4px 0;display:flex;gap:12px;font-size:10px}.sidebar-foot small{display:block;font-size:9px}.small-orb{width:10px;height:10px;border-radius:50%;background:var(--cyan);margin-top:6px}.workspace{margin-left:248px;padding:30px 36px 15px;max-width:1800px}header{display:flex;justify-content:space-between;align-items:center;gap:20px}.header-tools{display:flex;align-items:center;gap:20px}time{font-size:12px;color:var(--muted)}.icon-button{padding:10px;display:flex}.toolbar{display:flex;align-items:center;justify-content:space-between;margin:26px 0 22px;font-size:12px}.dot{display:inline-block;width:8px;height:8px;background:var(--soft);border-radius:50%;margin-right:8px}.dot.online{background:#3c9a7c;box-shadow:0 0 0 4px #3c9a7c15}.device-label{display:flex;gap:10px;align-items:center}.card{background:linear-gradient(135deg,#e6eff4,#dce8ee);border:1px solid #edf5f9;border-radius:21px;box-shadow:var(--shadow);padding:24px}.hero{display:flex;justify-content:space-between;align-items:center;min-height:205px;padding:28px 34px;overflow:hidden;background:linear-gradient(115deg,#e7f1f6 5%,#d2e4eb 90%)}.hero h2{font-size:29px;max-width:650px;margin-bottom:7px}.hero p:not(.eyebrow){color:var(--muted);font-size:12px}.hero-tags{display:flex;gap:9px;flex-wrap:wrap}.hero-tags span{font-size:10px;border:1px solid #c0d4de;padding:4px 10px;border-radius:7px}.hero-art{width:180px;height:155px;position:relative;flex-shrink:0;display:grid;place-items:center}.hero-core{border:1px solid #e4f4f7;border-radius:50%;width:85px;height:85px;display:grid;place-items:center;box-shadow:9px 9px 21px #b8cdd7,-9px -9px 21px #edfaff;background:#dcebf0}.hero-core svg{width:36px;height:36px;color:#3995a0}.orbit{position:absolute;border:1px solid #b3cdd83d;border-radius:50%;inset:0}.orbit-two{inset:16px}.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;margin:24px 0 32px}.metric{padding:20px;min-width:0}.metric-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:var(--muted)}.metric-head svg{color:#5b9fad}.value{font-size:42px;letter-spacing:-1.5px;line-height:1.4;margin:11px 0}.value small{font-size:17px;letter-spacing:0;margin-left:8px}.text-value{font-size:19px;letter-spacing:-.4px;min-height:59px;display:flex;align-items:center}.metric-foot{font-size:10px;color:var(--muted);border-top:1px solid #c4d7e075;padding-top:10px;display:flex;justify-content:space-between;gap:4px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:16px}.section-heading h2,.section-heading h3{margin-bottom:0}.section-heading h2{font-size:21px}.chart-filters{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.chart-filters input,.chart-filters button{font-size:11px}.segmented{display:flex;padding:4px;border-radius:10px;box-shadow:inset 3px 3px 7px #bfced7,inset -3px -3px 7px #f1f9fc}.segmented button{border:0;box-shadow:none;background:transparent;padding:6px 10px}.segmented .selected{background:#edf6fa;box-shadow:2px 2px 5px #bfced7}.chart-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.chart-heading{display:flex;justify-content:space-between;align-items:center;color:var(--muted)}.chart-heading h3{font-size:13px}.chart-heading>span{font-size:11px}.legend{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:8px}.temperature{background:#526f82}.humidity{background:#65b9c4}.chart-wrap{height:255px;position:relative}.empty-chart{font-size:12px;color:var(--muted);text-align:center;margin:12px 0 0}.bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:25px}.summary-list{font-size:12px}.summary-row{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid #c4d7e075}.schedule-list{display:flex;gap:10px}.schedule-item{flex:1;padding:12px;border-radius:10px;background:#d5e3eb;box-shadow:inset 3px 3px 7px #c4d2dc,inset -3px -3px 7px #edf5fa}.schedule-item span{display:block;font-size:10px}.schedule-item strong{font-size:13px}.success{color:#287a61}.failed,.error{color:#9c433f}.waiting{color:var(--muted)}.message{padding:12px;border-radius:10px;background:#f6e7dd;color:#733e2e}.filter-form{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:24px 0}label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:var(--muted)}.filter-form label{max-width:220px}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px;white-space:nowrap}th,td{padding:13px 12px;border-bottom:1px solid var(--line)}th{font-size:10px;letter-spacing:.5px;color:var(--muted)}.pagination{display:flex;justify-content:space-between;align-items:center;margin-top:18px;font-size:12px}.report-card{max-width:820px;padding:46px}.report-icon{padding:20px;width:75px;height:75px;border-radius:18px;box-shadow:var(--shadow);margin-bottom:28px}.report-icon svg{width:34px;height:34px;color:#3995a0}.report-card label{max-width:250px;margin:25px 0}.settings-card{max-width:650px}.settings-card form{display:grid;gap:20px;margin:24px 0}.settings-card button{justify-self:start}hr{border:0;border-top:1px solid var(--line);margin:30px 0}.device-row{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding:18px 0}.device-row small{display:block}footer{display:flex;gap:18px;align-items:center;font-size:10px;color:var(--muted);padding:30px 0 5px;letter-spacing:.2px}footer span:last-child{margin-left:auto}.login{min-height:100vh;display:grid;place-items:center;padding:25px;background:radial-gradient(ellipse at top right,#c3dfe5,transparent 60%),var(--base)}.login-card{width:420px;max-width:100%;padding:36px}.login-card .brand-symbol{margin-bottom:30px}.login-card h1{font-size:40px;letter-spacing:3px}.login-card p{color:var(--muted)}.login-card form{display:grid;gap:20px;margin:25px 0}.login-card button{display:flex;justify-content:space-between}.login-card>small{display:block;text-align:center;font-size:10px}[hidden]{display:none!important}@media(min-width:1600px){.chart-wrap{height:315px}}@media(max-width:1250px){.sidebar{width:210px;padding:25px 15px}.workspace{margin-left:210px;padding:25px}.metric-grid{gap:14px}.metric{padding:16px}.section-heading{flex-wrap:wrap}.hero-art{width:135px}nav a{font-size:11px}}@media(max-width:950px){.sidebar{width:78px;padding:25px 12px}.brand>div:last-child,.nav-label,.sidebar-foot{display:none}nav{margin-top:36px}nav a{font-size:0;padding:13px;gap:0}nav a svg{width:20px;flex-shrink:0}.workspace{margin-left:78px;padding:24px}.metric-grid{grid-template-columns:1fr 1fr}.chart-grid,.bottom-grid{grid-template-columns:1fr}.hero h2{font-size:25px}.header-tools time{max-width:140px;text-align:right}}@media(max-width:600px){.sidebar{position:static;width:100%;height:auto;padding:15px 18px;border-right:0;border-bottom:1px solid var(--line)}.brand>div:last-child{display:block;font-size:22px}.brand-symbol{width:38px;height:38px;font-size:28px;line-height:38px}.brand-symbol span{top:4px}nav{flex-direction:row;overflow:auto;margin-top:16px;gap:6px;padding:5px 0}nav a{padding:11px 15px}nav a.active{background:#eff7fa}.workspace{margin-left:0;padding:20px 16px}header{gap:8px}header .eyebrow{font-size:8px;letter-spacing:.8px;max-width:200px}h1{font-size:25px}.header-tools{gap:10px}.header-tools time{font-size:10px;max-width:112px}.toolbar{gap:10px;align-items:start}.toolbar>div{font-size:10px;max-width:140px}.device-label{font-size:0}.device-label select{font-size:11px;max-width:180px}.hero{padding:24px;min-height:190px}.hero h2{font-size:23px}.hero-art{display:none}.hero-tags span{font-size:9px}.metric-grid{gap:14px;margin-top:19px}.metric{padding:16px 13px}.value{font-size:34px}.text-value{font-size:15px;min-height:48px}.metric-foot{display:block;font-size:9px}.metric-foot b{display:block}.metric-head{font-size:10px}.card{border-radius:17px}.chart-card{padding:18px 12px}.chart-filters{gap:7px}.chart-filters input{max-width:138px}.chart-wrap{height:235px}.section-heading h2{font-size:19px}.schedule-list{gap:7px}.schedule-item{padding:10px 8px}.report-card{padding:26px}.pagination{gap:8px}.pagination button{font-size:10px;padding:8px}footer{flex-wrap:wrap;font-size:9px}footer span:last-child{margin-left:0}.filter-form label{flex:1;min-width:130px}.section-heading button{font-size:11px;padding:8px 12px}}@media(prefers-reduced-motion:no-preference){button,nav a{transition:background .18s,box-shadow .18s}.card{animation:arrive .35s ease both}@keyframes arrive{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}}

/* Grid tracks must shrink below canvas intrinsic width on mobile. */
.chart-grid>*,.bottom-grid>*{min-width:0}.chart-wrap{min-width:0;width:100%}.chart-wrap canvas{max-width:100%}
@media(min-width:951px){.chart-grid,.bottom-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:950px){.chart-grid,.bottom-grid{grid-template-columns:minmax(0,1fr)}}

.metric-status{font-size:10px;margin:0 0 10px;overflow-wrap:anywhere;color:var(--muted)}.metric-status.success{color:#287a61}.metric-status.failed{color:#9c433f}.rtc-time{font-size:10px;overflow-wrap:anywhere}.metric-foot{overflow-wrap:anywhere}
