:root{--text:#6b6375;--text-h:#08060d;--bg:#fff;--border:#e5e4e7;--code-bg:#f4f3ec;--accent:#aa3bff;--accent-bg:#aa3bff1a;--accent-border:#aa3bff80;--social-bg:#f4f3ec80;--shadow:#0000001a 0 10px 15px -3px, #0000000d 0 4px 6px -2px;--sans:system-ui, "Segoe UI", Roboto, sans-serif;--heading:system-ui, "Segoe UI", Roboto, sans-serif;--mono:ui-monospace, Consolas, monospace;font:18px/145% var(--sans);letter-spacing:.18px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}@media (width<=1024px){:root{font-size:16px}}@media (prefers-color-scheme:dark){:root{--text:#9ca3af;--text-h:#f3f4f6;--bg:#16171d;--border:#2e303a;--code-bg:#1f2028;--accent:#c084fc;--accent-bg:#c084fc26;--accent-border:#c084fc80;--social-bg:#2f303a80;--shadow:#0006 0 10px 15px -3px, #00000040 0 4px 6px -2px}#social .button-icon{filter:invert()brightness(2)}}body{margin:0}#root{text-align:center;border-inline:1px solid var(--border);box-sizing:border-box;flex-direction:column;width:1126px;max-width:100%;min-height:100svh;margin:0 auto;display:flex}h1,h2{font-family:var(--heading);color:var(--text-h);font-weight:500}h1{letter-spacing:-1.68px;margin:32px 0;font-size:56px}@media (width<=1024px){h1{margin:20px 0;font-size:36px}}h2{letter-spacing:-.24px;margin:0 0 8px;font-size:24px;line-height:118%}@media (width<=1024px){h2{font-size:20px}}p{margin:0}code,.counter{font-family:var(--mono);color:var(--text-h);border-radius:4px;display:inline-flex}code{background:var(--code-bg);padding:4px 8px;font-size:15px;line-height:135%}*{box-sizing:border-box;margin:0;padding:0}body{color:#475569;-webkit-font-smoothing:antialiased;background:#f8fafc;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}.login-page{background:#f8fafc;justify-content:center;align-items:center;min-height:100vh;padding:20px;display:flex}.login-card{text-align:center;background:#fff;border:1px solid #e2e8f0;border-radius:12px;width:100%;max-width:420px;padding:40px;box-shadow:0 10px 25px -5px #0000000d}.login-logo{height:100px;margin-bottom:30px}.error-banner{color:#991b1b;background:#fee2e2;border-radius:6px;margin-bottom:20px;padding:12px;font-size:14px;font-weight:500}.input-group{text-align:left;margin-bottom:20px}.input-group label{color:#0f172a;margin-bottom:6px;font-size:14px;font-weight:600;display:block}.input-group input{border:1px solid #cbd5e1;border-radius:8px;width:100%;padding:12px;font-size:15px;transition:border-color .2s}.input-group input:focus{border-color:#1f5f7e;outline:none;box-shadow:0 0 0 3px #1f5f7e1a}.btn-primary{color:#fff;cursor:pointer;background:#1f5f7e;border:none;border-radius:8px;width:100%;padding:14px;font-size:16px;font-weight:600;transition:background .2s}.btn-primary:hover{background:#14485f}.app-layout{height:100vh;display:flex;overflow:hidden}.sidebar{background:#fff;border-right:1px solid #e2e8f0;flex-direction:column;width:280px;display:flex}.sidebar-header{border-bottom:1px solid #e2e8f0;align-items:center;padding:24px;display:flex}.sidebar-logo{width:auto;height:40px}.sidebar-content{flex:1;padding:24px;overflow-y:auto}.sidebar-actions{justify-content:space-between;align-items:center;margin-bottom:20px;display:flex}.sidebar-actions h3{color:#0f172a;font-size:16px;font-weight:700}.btn-add{color:#fff;cursor:pointer;background:#1f5f7e;border:none;border-radius:6px;padding:6px 12px;font-size:13px;font-weight:600;transition:background .2s}.btn-add:hover{background:#14485f}.add-form{background:#f8fafc;border:1px solid #cbd5e1;border-radius:8px;margin-bottom:20px;padding:15px}.add-form input{border:1px solid #cbd5e1;border-radius:6px;width:100%;margin-bottom:10px;padding:10px;font-size:14px}.add-form button{color:#fff;cursor:pointer;background:#10b981;border:none;border-radius:6px;width:100%;padding:10px;font-size:14px;font-weight:600}.device-list{list-style:none}.device-list li{cursor:pointer;border:1px solid #e2e8f0;border-radius:8px;margin-bottom:10px;padding:16px;transition:all .2s}.device-list li:hover{background:#f8fafc;border-color:#cbd5e1}.device-list li.active{background:#f0f9ff;border-color:#1f5f7e}.device-name{color:#0f172a;margin-bottom:4px;font-weight:600}.device-meta{color:#64748b;font-size:12px}.main-content{background:#f8fafc;flex-direction:column;flex:1;display:flex;overflow:hidden}.topbar{background:#fff;border-bottom:1px solid #e2e8f0;justify-content:space-between;align-items:center;height:76px;padding:0 32px;display:flex}.topbar h2{color:#0f172a;font-size:18px;font-weight:600}.btn-logout{color:#64748b;cursor:pointer;background:0 0;border:1px solid #cbd5e1;border-radius:6px;padding:8px 16px;font-weight:500;transition:all .2s}.btn-logout:hover{color:#0f172a;background:#f1f5f9}.dashboard-scroll{flex:1;padding:32px;overflow-y:auto}.empty-state{text-align:center;color:#64748b;background:#fff;border:1px dashed #cbd5e1;border-radius:12px;padding:60px;font-size:16px}.charts-grid{grid-template-columns:repeat(auto-fit,minmax(450px,1fr));gap:24px;margin-bottom:32px;display:grid}.chart-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:24px;box-shadow:0 4px 6px -1px #00000005}.chart-header{justify-content:space-between;align-items:center;margin-bottom:20px;display:flex}.chart-header h3{color:#0f172a;text-transform:capitalize;font-size:16px}.unit-badge{color:#475569;background:#f1f5f9;border-radius:20px;padding:4px 10px;font-size:12px;font-weight:600}.chart-container{width:100%;height:250px}.table-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden;box-shadow:0 4px 6px -1px #00000005}.table-header{border-bottom:1px solid #e2e8f0;padding:20px 24px}.table-header h3{color:#0f172a;font-size:16px}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%}th,td{text-align:left;border-bottom:1px solid #e2e8f0;padding:16px 24px}th{color:#475569;text-transform:uppercase;letter-spacing:.5px;background:#f8fafc;font-size:13px;font-weight:600}.time-col{white-space:nowrap;color:#64748b;font-size:14px}pre{color:#334155;background:#f1f5f9;border-radius:6px;margin:0;padding:12px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px}@media (width<=768px){.app-layout{flex-direction:column}.sidebar{border-bottom:1px solid #e2e8f0;border-right:none;width:100%;height:auto}.charts-grid{grid-template-columns:1fr}}#root{flex-direction:column;width:100%;min-height:100vh;margin:0;padding:0;display:flex}.login-page{width:100vw;min-height:100vh}
