@import"https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap";@import"https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap";@import"https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap";.energy-meter-card{--arc-start: #6f89a0;--arc-mid: #7e97ac;--arc-end: #8aa2b6;--needle-start: #072f5f;--needle-end: #0a3b74;--hub: #072f5f;--value: #072f5f;width:100%;max-width:520px;background:#f8f8f8;border:1px solid #e6e6e6;border-radius:28px;padding:28px 28px 34px;box-shadow:0 12px 24px #1018280f,0 2px 8px #1018280a;display:flex;flex-direction:column;overflow:hidden;transition:box-shadow .5s ease,transform .35s ease}.energy-meter-card.medium-zone{--arc-start: #6f89a0;--arc-mid: #d89b3c;--arc-end: #f08c2e;--needle-start: #0b3c70;--needle-end: #d97b18}.energy-meter-card.high-zone{--arc-start: #6f89a0;--arc-mid: #f08c2e;--arc-end: #e53935;--needle-start: #d96b1d;--needle-end: #d61f1f;--hub: #cf2020;--value: #b71c1c;box-shadow:0 14px 28px #e5393529,0 4px 12px #e539351f}.energy-meter-header{display:flex;align-items:center;gap:16px;margin-bottom:14px}.energy-meter-header h2{margin:0;font-size:30px;line-height:1.15;font-weight:600;color:#0b0f14;letter-spacing:.2px}.energy-meter-icon{min-width:58px;width:58px;height:58px;border-radius:50%;background:#e8f0f7;display:flex;align-items:center;justify-content:center;font-size:28px;color:#163f6b;flex-shrink:0}.energy-meter-gauge{width:100%;display:flex;justify-content:center;align-items:center;margin-top:8px}.gauge-svg{width:100%;max-width:430px;height:auto;display:block}.gauge-outer-arc{fill:none;stroke:url(#meterArcGradient);stroke-width:34;stroke-linecap:round;transition:stroke .6s ease,filter .4s ease}.grad-start{stop-color:var(--arc-start);transition:stop-color .6s ease}.grad-mid{stop-color:var(--arc-mid);transition:stop-color .6s ease}.grad-end{stop-color:var(--arc-end);transition:stop-color .6s ease}.gauge-tick{stroke:#d8dde2;stroke-width:6;stroke-linecap:round;transition:stroke .45s ease,opacity .45s ease,filter .45s ease;opacity:.9}.gauge-tick.active.low{stroke:#7d94a8}.gauge-tick.active.medium{stroke:#f0a23a}.gauge-tick.active.high{stroke:#e53935;filter:drop-shadow(0 0 4px rgba(229,57,53,.35))}.needle-group{transition:transform .9s cubic-bezier(.22,1,.36,1)}.needle{fill:url(#needleGradient);filter:drop-shadow(0 4px 8px rgba(7,47,95,.18));transition:fill .6s ease}.needle-start{stop-color:var(--needle-start);transition:stop-color .6s ease}.needle-end{stop-color:var(--needle-end);transition:stop-color .6s ease}.hub-ring{fill:#e8edf1}.hub-core{fill:var(--hub);transition:fill .5s ease}.gauge-label{fill:#7d7d7d;font-size:16px;font-weight:500}.energy-meter-value{margin-top:10px;display:flex;justify-content:center;align-items:baseline;gap:10px;color:var(--value);transition:color .5s ease}.energy-meter-value .number{font-size:74px;font-weight:700;line-height:1;letter-spacing:1px}.energy-meter-value .unit{font-size:44px;font-weight:700;line-height:1}@media (max-width: 768px){.energy-meter-card{padding:22px 20px 28px;border-radius:22px}.energy-meter-header{gap:12px}.energy-meter-header h2{font-size:24px}.energy-meter-icon{width:50px;height:50px;min-width:50px;font-size:24px}.energy-meter-value .number{font-size:56px}.energy-meter-value .unit{font-size:32px}}:root{--brand: #032648;--brand-mid: #0a4a7c;--accent: #0ea5e9;--accent-glow: rgba(14, 165, 233, .18);--success: #0a9f6c;--danger: #e53e3e;--surface: #ffffff;--surface-2: #f7fafd;--border: #e4ebf3;--border-strong: #d0dce9;--text-primary: #0d1f30;--text-secondary: #4e6378;--text-muted: #8fa3b8;--shadow-sm: 0 1px 4px rgba(3,38,72,.06);--shadow-md: 0 4px 18px rgba(3,38,72,.08);--shadow-lg: 0 12px 40px rgba(3,38,72,.12);--radius: 14px;--radius-sm: 8px}.livestream-board{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow-md);font-family:DM Sans,sans-serif;color:var(--text-primary);display:flex;flex-direction:column;gap:16px}.livestream-header{display:flex;justify-content:space-between;align-items:center}.livestream-header .title{font-size:15px;font-weight:700;color:var(--brand);display:flex;align-items:center;gap:8px;letter-spacing:-.2px}.livestream-header .title .live-dot{width:8px;height:8px;border-radius:50%;background:var(--danger);box-shadow:0 0 0 3px #e53e3e33;animation:pulse-dot 1.4s ease-in-out infinite;flex-shrink:0}@keyframes pulse-dot{0%,to{box-shadow:0 0 0 3px #e53e3e33}50%{box-shadow:0 0 0 6px #e53e3e0f}}.camera-tabs{display:flex;gap:6px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}.camera-tabs::-webkit-scrollbar{display:none}.camera-tab{display:flex;align-items:center;gap:6px;padding:6px 14px;border-radius:999px;border:1.5px solid var(--border);background:var(--surface-2);font-size:12.5px;font-weight:500;color:var(--text-secondary);cursor:pointer;white-space:nowrap;transition:all .18s ease;font-family:DM Sans,sans-serif}.camera-tab:hover{border-color:var(--accent);color:var(--accent);background:var(--accent-glow)}.camera-tab.active{background:var(--brand);border-color:var(--brand);color:#fff}.camera-tab .tab-dot{width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.7}.camera-tab.active .tab-dot{background:#4ade80;opacity:1}.camera-details{display:grid;grid-template-columns:repeat(5,1fr);gap:10px 16px;padding:14px 16px;background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius-sm);font-size:12.5px;animation:fade-in .2s ease}@keyframes fade-in{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}.camera-details div{display:flex;flex-direction:column;gap:3px}.camera-details span:first-child{color:var(--text-muted);font-size:10.5px;font-weight:600;letter-spacing:.5px;text-transform:uppercase}.camera-details span:last-child{color:var(--text-primary);font-weight:500}.camera-details .status{display:inline-flex;align-items:center;gap:5px;font-weight:600;font-size:12px}.camera-details .status:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex-shrink:0}.camera-details .status.active,.camera-details .status.online{color:var(--success)}.camera-details .status.inactive,.camera-details .status.offline{color:var(--danger)}.camera-details .link{color:var(--accent);font-family:JetBrains Mono,monospace;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.video-wrapper{position:relative;border-radius:10px;overflow:hidden;background:#0a1520;box-shadow:var(--shadow-lg)}.video-wrapper iframe{display:block;width:100%;aspect-ratio:16 / 9;border:none}.video-overlay-top{position:absolute;top:0;left:0;right:0;padding:10px 14px;display:flex;justify-content:space-between;align-items:center;background:linear-gradient(to bottom,rgba(0,0,0,.55),transparent);pointer-events:none;z-index:3}.video-cam-name{font-size:12px;font-weight:600;color:#ffffffe6;font-family:DM Sans,sans-serif;display:flex;align-items:center;gap:6px}.video-cam-name svg{opacity:.7}.video-overlay-bottom{position:absolute;bottom:0;left:0;right:0;padding:10px 14px;display:flex;justify-content:space-between;align-items:flex-end;background:linear-gradient(to top,rgba(0,0,0,.6),transparent);pointer-events:none;z-index:3}.video-time{font-family:JetBrains Mono,monospace;font-size:11.5px;color:#ffffffbf;letter-spacing:.5px}.video-ip{font-family:JetBrains Mono,monospace;font-size:10.5px;color:#ffffff80}.rec-badge{display:inline-flex;align-items:center;gap:5px;background:#d32f2feb;color:#fff;font-size:11px;font-weight:700;padding:3px 10px;border-radius:999px;font-family:DM Sans,sans-serif;letter-spacing:.5px;transition:opacity .15s ease}.rec-badge .rec-dot{width:6px;height:6px;border-radius:50%;background:#fff}.no-cameras{text-align:center;padding:48px 0;color:var(--text-muted);font-size:14px}.toggle-switch{display:flex;align-items:center;gap:8px;cursor:pointer;-webkit-user-select:none;user-select:none}.toggle-label{font-size:12.5px;font-weight:500;color:var(--text-secondary)}.switch{width:38px;height:21px;background:var(--border-strong);border-radius:999px;position:relative;transition:background .22s ease;flex-shrink:0}.switch.on{background:var(--brand)}.knob{width:15px;height:15px;background:#fff;border-radius:50%;position:absolute;top:3px;left:3px;transition:transform .22s ease;box-shadow:0 1px 3px #0003}.switch.on .knob{transform:translate(17px)}@media (max-width: 900px){.camera-details{grid-template-columns:repeat(3,1fr)}}@media (max-width: 600px){.camera-details{grid-template-columns:repeat(2,1fr)}}*{box-sizing:border-box;margin:0;padding:0}.dashboard{padding:24px 28px 40px;background:#f0f4f8;min-height:100vh;font-family:Inter,Segoe UI,sans-serif}.dashboard-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:16px;flex-wrap:wrap}.dashboard-title{font-size:22px;font-weight:700;color:#1a2e45;letter-spacing:-.3px;font-family:Inter,sans-serif}.dashboard-controls{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.select-wrapper{display:flex;align-items:center;gap:6px;background:#fff;border:1px solid #dde3ea;border-radius:9px;padding:7px 14px;cursor:pointer;transition:box-shadow .18s}.select-wrapper:hover{box-shadow:0 2px 8px #1a3a5c1a}.control-select{border:none;outline:none;background:transparent;font-size:13px;font-weight:500;color:#1a2e45;cursor:pointer;min-width:140px;font-family:Inter,sans-serif}.dashboard-body{display:flex;flex-direction:column;gap:20px}.metrics-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.metric-card{background:#fff;border-radius:16px;box-shadow:0 1px 8px #0000000f;display:flex;flex-direction:column;overflow:hidden}.metric-card-header{display:flex;align-items:center;gap:10px;padding:15px 20px 13px;border-bottom:1px solid #f0f4f8}.metric-card-icon{width:34px;height:34px;border-radius:9px;background:#eef3ff;display:flex;align-items:center;justify-content:center;flex-shrink:0}.metric-card-title{font-size:15px;font-weight:600;color:#1a2e45;letter-spacing:-.15px;font-family:Inter,sans-serif}.metric-card-body{padding:16px 20px 0}.metric-top{display:flex;flex-direction:row;align-items:flex-start;gap:10px;margin-bottom:0;width:100%}.metric-gauge-wrapper{flex:1;flex-direction:column;align-items:center;justify-content:center;min-width:0}.metric-stats{flex-shrink:0;display:flex;flex-direction:column;gap:0;align-self:flex-start;padding-top:6px}.stat-item{padding:9px 0;display:flex;flex-direction:column;align-items:flex-end;gap:3px;border-bottom:1px solid #f0f4f8}.stat-item:last-child{border-bottom:none;padding-bottom:2px}.stat-value-row{display:flex;align-items:baseline;gap:3px;line-height:1}.stat-value{font-size:24px;font-weight:700;color:#1a2e45;letter-spacing:-.8px;line-height:1;font-family:Inter,sans-serif}.stat-unit{font-size:12px;font-weight:600;color:#7a95b0;letter-spacing:.1px;font-family:Inter,sans-serif}.stat-label{font-size:11px;font-weight:400;color:#9aacc0;text-align:right;line-height:1.35;letter-spacing:0;font-family:Inter,sans-serif}.metric-chart-area{border-top:1px solid #f0f4f8;margin-top:14px;padding:12px 0 14px}.bottom-row{display:grid;grid-template-columns:1fr 300px;gap:20px;align-items:start}.peak-readings-panel{background:#fff;border-radius:16px;box-shadow:0 1px 8px #0000000f;overflow:hidden}.peak-readings-header{display:flex;align-items:center;gap:10px;padding:15px 20px 13px;border-bottom:1px solid #f0f4f8}.peak-readings-icon{width:34px;height:34px;border-radius:9px;background:#fff3e8;display:flex;align-items:center;justify-content:center;flex-shrink:0}.peak-readings-title{font-size:15px;font-weight:600;color:#1a2e45;letter-spacing:-.15px;font-family:Inter,sans-serif}.peak-readings-body{padding:14px 20px 16px}.sync-logs-panel{background:#fff;border-radius:16px;box-shadow:0 1px 8px #0000000f;position:sticky;top:24px;max-height:calc(100vh - 100px);overflow-y:auto}.sync-logs-header{display:flex;align-items:center;gap:10px;padding:15px 18px 13px;border-bottom:1px solid #f0f4f8}.sync-logs-icon{width:34px;height:34px;background:#e8f0fe;border-radius:9px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.sync-logs-title{font-size:15px;font-weight:600;color:#1a2e45;letter-spacing:-.15px;font-family:Inter,sans-serif}.sync-log-item{display:flex;align-items:center;justify-content:space-between;padding:9px 18px;border-bottom:1px solid #f6f8fa;gap:8px}.sync-log-item:last-child{border-bottom:none}.sync-log-left{display:flex;align-items:center;gap:8px}.sync-log-label{font-size:12px;font-weight:500;color:#1a2e45;font-family:Inter,sans-serif}.sync-log-time{font-size:11px;color:#9aacc0;white-space:nowrap;font-family:Inter,sans-serif}.device-section{width:100%}.device-title{font-size:15px;font-weight:700;color:#1a2e45;margin-bottom:16px;letter-spacing:-.2px;font-family:Inter,sans-serif}.custom-date-picker{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #dde3ea;border-radius:9px;padding:6px 12px}.date-input{border:1px solid #dde3ea;border-radius:6px;padding:5px 8px;font-size:13px;color:#1a2e45;background:#f9fafb;outline:none;cursor:pointer;font-family:Inter,sans-serif}.date-input:focus{border-color:#3b6fd4;background:#fff}.apply-date-btn{background:#1a3a5c;color:#fff;border:none;border-radius:6px;padding:5px 14px;font-size:13px;font-weight:600;cursor:pointer;transition:opacity .2s;font-family:Inter,sans-serif}.apply-date-btn:hover:not(:disabled){opacity:.85}.apply-date-btn:disabled{opacity:.4;cursor:not-allowed}.sync-logs-panel::-webkit-scrollbar{width:4px}.sync-logs-panel::-webkit-scrollbar-track{background:transparent}.sync-logs-panel::-webkit-scrollbar-thumb{background:#dde3ea;border-radius:4px}@media (max-width: 1200px){.bottom-row{grid-template-columns:1fr 280px}}@media (max-width: 960px){.bottom-row{grid-template-columns:1fr}.sync-logs-panel{position:static;max-height:400px}}@media (max-width: 700px){.metrics-grid{grid-template-columns:1fr}.dashboard{padding:14px}}@media (max-width: 420px){.metric-top{flex-direction:column;align-items:stretch}.metric-stats{width:100%}.stat-item{align-items:flex-start}.stat-label{text-align:left}}.sidebar{width:64px;min-height:100vh;background:#fff;border-right:1px solid var(--color-border);display:flex;flex-direction:column;align-items:center;padding:16px 0;position:sticky;top:0;height:100vh;z-index:100}.sidebar-logo{width:48px;height:48px;display:flex;align-items:center;justify-content:center;margin-bottom:24px;overflow:hidden;border-radius:10px;padding:4px}.logo-image{width:40px;height:40px;object-fit:contain;display:block}.sidebar-nav{display:flex;flex-direction:column;gap:4px;flex:1;width:100%;padding:0 8px}.nav-item{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:10px;color:var(--color-text-light);transition:var(--transition);cursor:pointer;margin:0 auto}.nav-item svg{width:20px;height:20px}.nav-item:hover,.nav-item.active{background:var(--color-icon-bg);color:var(--color-primary)}.sidebar-bottom{padding:0 8px;width:100%;display:flex;flex-direction:column;align-items:center;gap:8px;margin-bottom:8px}.login-page{display:flex;min-height:100vh;width:100%;background:linear-gradient(145deg,#0f2744,#1a3a5c 45%,#1e4d7a);position:relative;overflow:hidden}.login-card-header{text-align:center;margin-bottom:25px}.login-card-logo{display:flex;justify-content:center;align-items:center;margin-bottom:14px}.logo-img{max-width:160px;width:100%;height:auto;object-fit:contain}.login-title{font-size:26px;font-weight:600;margin-bottom:6px}.login-subtitle{font-size:14px;color:#6b7280}.login-page:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background-image:radial-gradient(rgba(255,255,255,.06) 1px,transparent 1px);background-size:28px 28px;pointer-events:none}.login-page:after{content:"";position:absolute;top:-120px;right:-120px;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle,rgba(58,123,213,.25) 0%,transparent 70%);pointer-events:none}.login-right{width:100%;flex-shrink:0;display:flex;align-items:center;justify-content:center;padding:40px 36px;min-height:100vh;position:relative;z-index:1}.login-card{width:100%;max-width:440px;background:#fff;border-radius:20px;box-shadow:0 8px 48px #0000004d;padding:44px 42px 40px;opacity:0;transform:translateY(20px);transition:opacity .55s ease,transform .55s ease}.login-card.visible{opacity:1;transform:translateY(0)}.login-card-header{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;margin-bottom:36px}.login-card-logo{margin-bottom:12px}.login-card-logo svg{width:48px;height:26px;display:block}.login-title{font-size:28px;font-weight:700;color:var(--color-text-dark);letter-spacing:-.3px}.login-subtitle{font-size:14px;color:var(--color-text-light);margin-top:2px}.login-form{display:flex;flex-direction:column;gap:20px}.form-group{display:flex;flex-direction:column;gap:7px}.label-row{display:flex;align-items:center;justify-content:space-between}.form-label{font-size:13px;font-weight:500;color:var(--color-text-medium)}.input-wrapper{position:relative;display:flex;align-items:center}.input-icon{position:absolute;left:13px;display:flex;align-items:center;color:var(--color-text-light);pointer-events:none;transition:color .2s}.input-icon svg{width:16px;height:16px}.form-input{width:100%;height:44px;padding:0 42px;border:1.5px solid var(--color-border);border-radius:10px;font-size:14px;font-family:inherit;color:var(--color-text-dark);background:#f8fafd;outline:none;transition:border-color .2s,box-shadow .2s,background .2s}.form-input::placeholder{color:#b8cde0}.form-input:focus{border-color:var(--color-accent-blue);background:#fff;box-shadow:0 0 0 3px #3a7bd51a}.form-group.has-error .form-input{border-color:var(--color-red);background:#fff8f8;box-shadow:0 0 0 3px #e055551a}.form-group.has-error .input-icon{color:var(--color-red)}.form-input:focus~.input-icon,.input-wrapper:focus-within .input-icon{color:var(--color-accent-blue)}.form-error{font-size:12px;color:var(--color-red);display:flex;align-items:center;gap:4px}.form-error:before{content:"⚠";font-size:11px}.input-toggle{position:absolute;right:12px;display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:6px;color:var(--color-text-light);transition:color .2s,background .2s;cursor:pointer}.input-toggle:hover{color:var(--color-primary);background:var(--color-icon-bg)}.input-toggle svg{width:16px;height:16px}.forgot-link{font-size:12.5px;color:var(--color-accent-blue);font-weight:500;cursor:pointer;transition:color .2s}.forgot-link:hover{color:var(--color-primary)}.form-row{margin-top:-4px}.checkbox-label{display:flex;align-items:center;gap:9px;cursor:pointer;-webkit-user-select:none;user-select:none}.checkbox-input{display:none}.checkbox-custom{width:18px;height:18px;border:1.5px solid var(--color-border);border-radius:5px;background:#f8fafd;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:border-color .2s,background .2s;position:relative}.checkbox-input:checked+.checkbox-custom{background:var(--color-accent-blue);border-color:var(--color-accent-blue)}.checkbox-input:checked+.checkbox-custom:after{content:"";display:block;width:5px;height:9px;border:2px solid white;border-top:none;border-left:none;transform:rotate(45deg) translate(-1px,-1px)}.checkbox-text{font-size:13px;color:var(--color-text-medium)}.login-btn{width:100%;height:46px;background:linear-gradient(135deg,#1e4d7a,#1a3a5c);color:#fff;border-radius:11px;font-size:14.5px;font-weight:600;font-family:inherit;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,opacity .18s;box-shadow:0 4px 14px #1a3a5c4d;margin-top:4px;display:flex;align-items:center;justify-content:center;border:none;letter-spacing:.01em}.login-btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 6px 20px #1a3a5c61}.login-btn:active:not(:disabled){transform:translateY(0);box-shadow:0 3px 10px #1a3a5c40}.login-btn.loading{opacity:.85;cursor:not-allowed}.btn-content{display:flex;align-items:center;gap:8px}.btn-content svg{width:16px;height:16px;transition:transform .2s}.login-btn:hover .btn-content svg{transform:translate(3px)}.btn-spinner{display:flex;align-items:center;gap:10px}.btn-spinner svg{width:20px;height:20px;animation:spinBtn .8s linear infinite}@keyframes spinBtn{to{transform:rotate(360deg)}}.spinner-arc{stroke-dasharray:30;stroke-dashoffset:0}.login-divider{display:flex;align-items:center;gap:14px;margin:22px 0 18px;color:var(--color-text-light);font-size:12.5px}.login-divider:before,.login-divider:after{content:"";flex:1;height:1px;background:var(--color-border)}.social-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.social-btn{display:flex;align-items:center;justify-content:center;gap:8px;height:42px;border:1.5px solid var(--color-border);border-radius:10px;font-size:13px;font-weight:500;color:var(--color-text-medium);font-family:inherit;background:#fff;cursor:pointer;transition:border-color .2s,box-shadow .2s,background .2s}.social-btn:hover{border-color:var(--color-primary-light);background:var(--color-icon-bg);box-shadow:0 2px 8px #1a3a5c12}.login-footer{text-align:center;margin-top:22px;font-size:13px;color:var(--color-text-light)}.signup-link{color:var(--color-accent-blue);font-weight:500;cursor:pointer;transition:color .2s;font-family:inherit}.signup-link:hover{color:var(--color-primary)}@media (max-width: 480px){.login-card{padding:32px 26px 28px;border-radius:16px}.login-right{padding:24px 20px}}:root{--color-bg: #f0f4f8;--color-sidebar: #ffffff;--color-card: #ffffff;--color-primary: #1a3a5c;--color-primary-light: #3a6b9e;--color-accent-blue: #3a7bd5;--color-text-dark: #1a2a3a;--color-text-medium: #4a6080;--color-text-light: #8ba0ba;--color-border: #dce8f5;--color-icon-bg: #eaf1f8;--color-red: #e05555;--color-green: #22c55e;--radius-card: 14px;--shadow-card: 0 2px 12px rgba(26, 58, 92, .07);--shadow-hover: 0 4px 20px rgba(26, 58, 92, .13);--transition: all .25s ease}*{margin:0;padding:0;box-sizing:border-box}body{font-family:Inter,-apple-system,BlinkMacSystemFont,sans-serif;background:var(--color-bg);color:var(--color-text-dark);line-height:1.5;-webkit-font-smoothing:antialiased;min-height:100vh}.app-container{display:flex;min-height:100vh}.main-content{flex:1;overflow-y:auto;min-height:100vh}.card{background:var(--color-card);border-radius:var(--radius-card);box-shadow:var(--shadow-card);padding:20px 22px;transition:var(--transition)}.card:hover{box-shadow:var(--shadow-hover)}.card-header{display:flex;align-items:center;gap:10px;margin-bottom:16px}.card-title{font-size:15px;font-weight:600;color:var(--color-text-dark)}.card-icon{display:flex;align-items:center;justify-content:center;width:30px;height:30px;background:var(--color-icon-bg);border-radius:8px;padding:6px;color:var(--color-primary)}.card-icon svg{width:100%;height:100%}select{-moz-appearance:none;appearance:none;-webkit-appearance:none;background:transparent;border:none;outline:none;font-family:inherit;cursor:pointer;color:var(--color-text-dark);font-size:13.5px;font-weight:500}button{background:none;border:none;cursor:pointer;font-family:inherit}:root{--red: #f04438;--red-mid: #fda29b;--red-light: #fff1f0;--orange: #dc6803;--orange-light: #fffaeb;--green: #039855;--green-light: #f0fdf4;--blue: #1570ef;--blue-light: #eff6ff;--text-primary: #101828;--text-secondary:#667085;--text-muted: #98a2b3;--border: #e4e7ec;--white: #ffffff;--shadow-sm: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);--shadow-md: 0 4px 8px rgba(16, 24, 40, .08), 0 2px 4px rgba(16, 24, 40, .04);--radius: 12px;--radius-sm: 8px;--font: "DM Sans", sans-serif;--font-mono: "JetBrains Mono", monospace}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}body{font-family:var(--font);background:#f8f9fb;color:var(--text-primary)}.dashboard{padding:28px 28px 40px}.dashboard-header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:24px;gap:20px;flex-wrap:wrap}.dashboard-title{font-size:22px;font-weight:700;color:var(--text-primary);margin-bottom:4px}.dashboard-subtitle{font-size:13px;color:var(--text-secondary);max-width:480px;line-height:1.6}.legend{display:flex;align-items:center;gap:20px;background:var(--white);border:1px solid var(--border);border-radius:var(--radius-sm);padding:10px 18px;box-shadow:var(--shadow-sm);flex-wrap:wrap}.legend-title{font-size:12px;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;margin-right:4px}.legend-item{display:flex;align-items:center;gap:6px}.legend-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.legend-dot--critical{background:#f04438}.legend-dot--medium{background:#f79009}.legend-dot--normal{background:#12b76a}.legend-dot--charging{background:#1570ef}.legend-label{font-size:12px;color:var(--text-secondary);font-weight:500}.battery-dashboard{background:var(--white);border:1px solid var(--border);border-radius:14px;padding:14px;gap:16px;box-shadow:0 4px 18px #0000000a}.topbar{display:flex;align-items:center;gap:12px;width:100%;padding:10px 14px;background:#f9fafb;border-radius:10px;border:1px solid var(--border);margin-bottom:14px}.search-wrap{flex:1;display:flex;align-items:center;gap:8px;padding:9px 14px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--white)}.search-icon{width:16px;height:16px;color:var(--text-muted)}.search-input{flex:1;border:none;outline:none;font-size:14px;font-family:var(--font);color:var(--text-primary);background:transparent}.search-input::placeholder{color:var(--text-muted)}.status-select{appearance:none;-webkit-appearance:none;-moz-appearance:none;padding:9px 40px 9px 14px;border:1px solid var(--border);border-radius:var(--radius-sm);background-color:var(--white);font-size:14px;font-family:var(--font);color:var(--text-primary);cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2398a2b3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center}.main-grid{display:grid;grid-template-columns:1fr 340px;gap:16px;align-items:start}.section{background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow-sm);overflow:hidden;margin-bottom:10px;border:1px solid var(--border);max-width:1000px}.section:last-child{margin-bottom:0}.section-header{display:flex;align-items:center;justify-content:space-between;padding:13px 18px;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background .15s}.section-header:hover{filter:brightness(.97)}.section-title{font-size:14px;font-weight:600;display:flex;align-items:center;gap:10px}.section-count{font-size:13px;font-weight:400;color:inherit;opacity:.65}.chevron{width:17px;height:17px;transition:transform .25s;flex-shrink:0}.chevron.open{transform:rotate(180deg)}.section--critical .section-header{background:var(--red-light);border-bottom:1px solid var(--red-mid)}.section--critical .section-title,.section--critical .chevron{color:var(--red)}.section--medium .section-header{background:var(--orange-light);border-bottom:1px solid #fde8b0}.section--medium .section-title,.section--medium .chevron{color:var(--orange)}.section--normal .section-header{background:var(--green-light);border-bottom:1px solid #a9efd0}.section--normal .section-title,.section--normal .chevron{color:var(--green)}.section--charging .section-header{background:var(--blue-light);border-bottom:1px solid #b2d9ff}.section--charging .section-title,.section--charging .chevron{color:var(--blue)}.device-list{padding:10px 14px;display:flex;flex-direction:column;gap:8px}.device-list.collapsed{display:none}.device-card{border:1px solid var(--border);border-radius:var(--radius-sm);padding:12px 14px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;transition:box-shadow .15s,border-color .15s,background .15s;background:var(--white);position:relative;overflow:hidden}.device-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;border-radius:2px 0 0 2px}.device-card--critical:before{background:var(--red)}.device-card--medium:before{background:var(--orange)}.device-card--normal:before{background:var(--green)}.device-card--charging:before{background:var(--blue)}.device-card:hover{box-shadow:var(--shadow-md);border-color:#d0d5dd}.device-card.active{border-color:var(--red-mid);background:#fff8f8}.device-left{display:flex;align-items:flex-start;gap:12px;padding-left:6px}.device-icon{width:19px;height:19px;color:var(--text-secondary);flex-shrink:0;margin-top:2px}.device-name-row{display:flex;align-items:center;gap:8px;margin-bottom:3px}.device-name{font-size:14px;font-weight:600;color:var(--text-primary)}.device-id{background:#f2f4f7;color:var(--text-secondary);font-size:11px;font-family:var(--font-mono);padding:2px 7px;border-radius:20px}.device-meta{font-size:12px;color:var(--text-secondary)}.device-right{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex-shrink:0}.badge{font-size:11px;font-weight:600;padding:3px 10px;border-radius:20px;white-space:nowrap}.badge--low{background:#fef0ef;color:var(--red)}.badge--medium{background:#fffaeb;color:var(--orange)}.badge--normal{background:var(--green-light);color:var(--green)}.badge--charging{background:var(--blue-light);color:var(--blue)}.mini-bar-wrap{display:flex;align-items:center;gap:6px}.mini-bar-track{width:60px;height:6px;background:#f2f4f7;border-radius:3px;overflow:hidden}.mini-bar-fill{height:100%;border-radius:3px;transition:width .3s}.mini-bar-fill--critical{background:var(--red)}.mini-bar-fill--medium{background:var(--orange)}.mini-bar-fill--normal{background:var(--green)}.mini-bar-fill--charging{background:var(--blue)}.mini-bar-pct{font-size:11px;font-family:var(--font-mono);font-weight:600;color:var(--text-secondary);min-width:28px;text-align:right}.info-panel{background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow-sm);padding:22px;position:sticky;top:24px;border:1px solid var(--border);max-width:1223px;right:375px}.info-title{font-size:14px;font-weight:700;color:var(--text-primary);margin-bottom:18px}.info-device-header{display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:var(--radius-sm);background:#fff8f8;border:1px solid var(--red-mid);margin-bottom:16px}.info-device-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.info-device-name{font-size:13px;font-weight:600;color:var(--text-primary)}.info-device-code{font-size:11px;color:var(--text-secondary);font-family:var(--font-mono)}.battery-visual-wrap{display:flex;flex-direction:column;justify-content:center;align-items:center;margin-bottom:18px;padding:10px 0;gap:8px}.battery-svg{width:110px;height:150px}@keyframes chargingGlow{0%,to{opacity:0}50%{opacity:.6}}@keyframes boltPulse{0%,to{opacity:.85;transform:scale(1)}50%{opacity:1;transform:scale(1.08)}}@keyframes casingGlow{0%,to{opacity:.3}50%{opacity:.9}}@keyframes energySweep{0%{transform:translateY(0);opacity:.12}50%{transform:translateY(-20%);opacity:.22}to{transform:translateY(0);opacity:.12}}@keyframes shimmerPass{0%{opacity:0;transform:translateY(100%)}30%{opacity:.18}70%{opacity:.18}to{opacity:0;transform:translateY(-100%)}}@keyframes statusDotPulse{0%,to{opacity:1;box-shadow:0 0 #1570ef66}50%{opacity:.7;box-shadow:0 0 0 5px #1570ef00}}.battery-svg--charging .charging-casing{animation:casingGlow 1.8s ease-in-out infinite}.battery-svg--charging .charging-glow-ring{animation:chargingGlow 1.8s ease-in-out infinite}.battery-svg--charging .charging-bolt{animation:boltPulse 1.2s ease-in-out infinite;transform-origin:62px 96px}.battery-svg--charging .charging-energy-sweep{animation:energySweep 2s ease-in-out infinite;transform-origin:center bottom}.battery-svg--charging .charging-pulse-overlay{animation:shimmerPass 2.4s ease-in-out infinite}.charging-status-badge{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--blue);background:var(--blue-light);border:1px solid #b2d9ff;border-radius:20px;padding:4px 12px}.charging-status-dot{width:7px;height:7px;border-radius:50%;background:var(--blue);flex-shrink:0;animation:statusDotPulse 1.4s ease-in-out infinite}.charging-window{display:flex;align-items:center;justify-content:space-between;background:var(--red-light);border:1px solid var(--red-mid);border-radius:var(--radius-sm);padding:10px 14px;margin-bottom:18px}.charging-window-label{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--red)}.charging-window-label svg{width:13px;height:13px;flex-shrink:0}.charging-window-time{font-size:12px;font-weight:700;color:var(--red);font-family:var(--font-mono)}.stats-grid{display:grid;grid-template-columns:1fr 1px 1fr 1px 1fr;margin-bottom:18px}.stats-divider{background:var(--border);margin:4px 0}.stat-item{padding:8px;text-align:center}.stat-value{font-size:16px;font-weight:700;color:var(--text-primary);font-family:var(--font-mono);display:block;margin-bottom:3px}.stat-label{font-size:11px;color:var(--text-muted);display:block;line-height:1.3}.time-row{display:grid;grid-template-columns:1fr 1px 1fr;border-top:1px solid var(--border);padding-top:16px}.time-divider{background:var(--border);margin:4px 0}.time-item{padding:0 10px;text-align:center}.time-item:first-child{padding-left:0}.time-item:last-child{padding-right:0}.time-value{font-size:15px;font-weight:700;color:var(--text-primary);font-family:var(--font-mono);display:block;margin-bottom:3px}.time-label{font-size:11px;color:var(--text-muted);display:block}@media (max-width: 900px){.main-grid{grid-template-columns:1fr}.info-panel{position:static}.legend{gap:12px}.dashboard-header{flex-direction:column;align-items:flex-start}}
