:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#172033;background:#f5f7fb;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select{font:inherit}.login-shell,.app-shell{min-height:100vh}.login-shell{display:grid;place-items:center;padding:24px}.login-panel{width:min(420px,100%);padding:28px;border:1px solid #dce3ef;border-radius:8px;background:#fff;box-shadow:0 20px 60px #17203314}.login-panel h1{margin:0 0 10px;font-size:26px}.login-panel p{margin:0 0 18px;color:#667085;line-height:1.6}.login-panel input{width:100%;height:44px;padding:0 12px;border:1px solid #cbd5e1;border-radius:6px;outline:none}.login-panel button,.top-actions button{height:42px;padding:0 16px;border:0;border-radius:6px;background:#2563eb;color:#fff;cursor:pointer}.login-panel button{width:100%;margin-top:14px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:28px clamp(18px,4vw,48px);background:#fff;border-bottom:1px solid #e5eaf2}.topbar h1{margin:0;font-size:clamp(22px,3vw,34px);line-height:1.1}.topbar p{margin:8px 0 0;color:#667085}.top-actions{display:flex;gap:10px}.top-actions .secondary{background:#eef2f7;color:#334155}.notice{margin:18px clamp(18px,4vw,48px) 0;padding:12px 14px;border:1px solid #fecaca;border-radius:8px;background:#fef2f2;color:#991b1b}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;padding:18px clamp(18px,4vw,48px) 6px}.stats article{padding:14px 16px;border:1px solid #dce3ef;border-radius:8px;background:#fff}.stats span{display:block;color:#667085}.stats strong{display:block;margin-top:4px;font-size:30px;line-height:1.1}.danger{color:#dc2626}.warn{color:#d97706}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px;padding:18px clamp(18px,4vw,48px)}.sensor-card{min-height:236px;padding:18px;border:1px solid #dce3ef;border-radius:8px;background:#fff;text-align:left;cursor:pointer;box-shadow:0 12px 32px #1720330d}.sensor-card.selected{outline:3px solid rgba(37,99,235,.15)}.card-head{display:flex;align-items:center;gap:10px;font-weight:700}.dot{width:10px;height:10px;border-radius:999px;flex:0 0 auto}.card-head em{margin-left:auto;padding:4px 8px;border-radius:999px;font-size:12px;font-style:normal;font-weight:700}.ok{background:#ecfdf3;color:#047857}.bad{background:#fff7ed;color:#c2410c}.reading{display:flex;align-items:baseline;gap:8px;margin:20px 0 10px}.reading strong{font-size:clamp(36px,6vw,58px);line-height:1}.reading span,.card-meta,.detail-panel p{color:#667085}.card-meta{display:flex;justify-content:space-between;gap:12px;font-size:13px}.sparkline{width:100%;height:118px;margin-top:16px;border-radius:6px;background:linear-gradient(180deg,#f8fafc,#fff)}.chart-bg{fill:#fff}.chart-grid{stroke:#e5eaf2;stroke-width:1}.chart-axis,.chart-tick{stroke:#cbd5e1;stroke-width:1}.chart-label{fill:#667085;font-size:12px;font-weight:600}.x-label{letter-spacing:0}.sparkline-empty{display:grid;place-items:center;height:118px;margin-top:16px;border-radius:6px;background:#f8fafc;color:#94a3b8;font-size:13px}.alarm{margin-top:10px;color:#dc2626;font-weight:700}.empty-state{grid-column:1 / -1;padding:36px;border:1px dashed #cbd5e1;border-radius:8px;background:#fff;color:#667085;text-align:center}.detail-panel{margin:0 clamp(18px,4vw,48px) 36px;padding:22px;border:1px solid #dce3ef;border-radius:8px;background:#fff}.detail-panel h2{margin:0 0 6px}.detail-panel p{margin:0}.detail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.trend-window-control{display:flex;align-items:center;gap:10px;color:#667085;font-size:14px;white-space:nowrap}.trend-window-control select{height:36px;min-width:104px;padding:0 10px;border:1px solid #cbd5e1;border-radius:6px;background:#fff;color:#172033;outline:none}.detail-panel .sparkline{height:240px}@media(max-width:720px){.topbar{align-items:flex-start;flex-direction:column}.top-actions{width:100%}.top-actions button{flex:1}.card-meta{flex-direction:column}.stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:12px 18px 4px}.stats article{min-height:62px;padding:10px 12px}.stats span{font-size:13px}.stats strong{margin-top:3px;font-size:24px}.detail-head{flex-direction:column}.trend-window-control{width:100%;justify-content:space-between}.trend-window-control select{flex:1}}
