:root{color-scheme:dark;--bg:#070d16;--panel:#111c2b;--panel2:#0d1725;--stroke:#25374d;--text:#ecf5ff;--muted:#94aac1;--blue:#3daaff;--green:#4bd3a1;--error:#ff9ca7;--radius:18px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100svh;font:14px/1.5 Inter,system-ui,-apple-system,Segoe UI,sans-serif;background:var(--bg);color:var(--text)}a{color:inherit;text-decoration:none}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #91d0ff;outline-offset:3px}h1{font-size:clamp(26px,3vw,36px);letter-spacing:-.045em;line-height:1.15;margin:5px 0 12px}h2{font-size:18px;letter-spacing:-.02em;margin:0 0 14px}p{color:var(--muted);margin:6px 0 16px}small,.hint{color:var(--muted)}code{font-family:ui-monospace,Consolas,monospace;color:#a7dcff;overflow-wrap:anywhere}.app{display:grid;grid-template-columns:254px minmax(0,1fr)}.sidebar{min-height:100svh;height:100svh;position:sticky;top:0;border-right:1px solid var(--stroke);display:flex;flex-direction:column;background:#0b1420;padding:25px 17px}.brand{display:flex;align-items:center;gap:12px;padding:2px 8px 32px;color:white}.brand b{font-size:17px;letter-spacing:.12em}.brand small{display:block;font-size:9px;letter-spacing:.28em;color:#8aabc8}.brand-mark{width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:13px;background:linear-gradient(145deg,#1259b2,#38baff);box-shadow:0 10px 20px #1239722b;font-size:28px;color:white}.sidebar-label{font-size:10px;letter-spacing:.22em;color:#718da8;padding:4px 16px 13px}.sidebar nav{display:flex;flex-direction:column;gap:6px}.nav-link{display:block;border:1px solid transparent;border-radius:11px;padding:12px 15px;color:#a5bad0;font-weight:550;transition:background .2s,color .2s}.nav-link:hover{color:#fff;background:#172840}.nav-link.selected{background:#152c47;color:#6bc4ff;border-color:#24517a}.sidebar-bottom{margin-top:auto;padding:17px 9px;font-size:11px;color:#a5bad0;overflow-wrap:anywhere;border-top:1px solid var(--stroke)}.status-dot{display:inline-block;width:7px;height:7px;background:var(--green);border-radius:100%;margin-right:7px}.workspace{min-width:0}.topbar{height:84px;border-bottom:1px solid var(--stroke);padding:16px clamp(20px,4vw,52px);display:flex;align-items:center;justify-content:space-between;gap:20px;background:#091321}.topbar strong,.topbar small{display:block}.topbar small{font-size:11px;margin-top:5px}.content{padding:36px clamp(20px,4vw,52px) 76px;max-width:1700px;margin:auto;min-height:calc(100svh - 84px)}.page-title{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:26px;flex-wrap:wrap}.page-title p{margin:0}.eyebrow{color:#60baff;letter-spacing:.22em;text-transform:uppercase;font-size:10px;font-weight:750}.btn{font:inherit;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;padding:12px 20px;border-radius:11px;font-weight:700;min-height:42px;white-space:normal;text-align:center}.btn.primary{background:#1689dc;color:white}.btn.primary:hover{background:#269fed}.btn.outline{border-color:#355476;background:#14283d;color:#c4e7ff}.btn.outline:hover{background:#20405f}.btn.ghost{background:#17253a;color:#b9d8ef;border-color:#293d56}.btn.small{font-size:12px;padding:8px 13px;min-height:35px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:23px}.metric{background:linear-gradient(145deg,#14253a,#0f1a28);border:1px solid var(--stroke);border-radius:var(--radius);padding:22px;min-width:0;display:flex;flex-direction:column;gap:9px;min-height:150px}.metric-icon{color:var(--blue);font-size:20px}.metric strong{font-size:clamp(21px,2.4vw,31px);letter-spacing:-.05em;line-height:1.2;overflow-wrap:anywhere}.metric span:last-child{color:var(--muted);font-size:12px}.panel{background:var(--panel);border:1px solid var(--stroke);border-radius:var(--radius);padding:26px;min-width:0;margin-bottom:20px}.panel p:last-child{margin-bottom:0}.panel.narrow{max-width:670px}.split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:22px;align-items:start}.field{display:flex;flex-direction:column;gap:8px;min-width:0;font-size:12px;color:#b4c9dd;font-weight:650}.field input,.field select,.upgrade input{background:#0a1422;border:1px solid #304760;border-radius:10px;color:#f5faff;min-height:46px;padding:10px 14px;font:inherit;width:100%;min-width:0}.field input:focus,.field select:focus{border-color:var(--blue)}.form-grid{display:grid;gap:17px}.hint{font-size:12px}.notice{margin:0 0 20px;background:#133d32;border:1px solid #247e60;padding:13px 17px;border-radius:12px;color:#b4f1d7}.notice.error{background:#3e2029;border-color:#784051;color:#ffd6dc}.privacy-pill{background:#13352f;border:1px solid #276b52;border-radius:10px;padding:12px 15px;color:#b7eed6;font-size:12px}.empty{border:1px dashed #35495e;border-radius:12px;color:#8ca6c1;padding:40px 20px;text-align:center}.company{border:1px solid var(--stroke);border-radius:13px;padding:17px;margin-top:14px;background:var(--panel2)}.company-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.company strong,.company small,.camera-meta strong,.camera-meta small,.record-row strong,.record-row small{display:block}.company small,.camera-meta small,.record-row small{margin-top:4px;color:var(--muted);font-size:11px;overflow-wrap:anywhere}.pill{font-size:10px;border:1px solid #356177;color:#8ad9ee;background:#153646;display:inline-flex;padding:6px 9px;white-space:nowrap;border-radius:50px}.pill.muted{background:#29303d;color:#a7b7c9;border-color:#455267}.pill.green{background:#123e31;border-color:#28664f;color:#8ce2b6}.code-short{display:block;margin-top:13px;padding:8px 10px;background:#07121f;font-size:11px;border-radius:7px}.upgrade{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-top:12px}.upgrade label{display:flex;flex:1;align-items:center;gap:8px;color:var(--muted);font-size:12px;min-width:210px}.upgrade input{max-width:94px;min-height:35px}.camera-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.camera-card{overflow:hidden;border:1px solid var(--stroke);border-radius:var(--radius);background:var(--panel)}.camera-placeholder{aspect-ratio:16/9;background:radial-gradient(ellipse at 50% 50%,#1d4160,#07101d 72%);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;color:#4299d4}.camera-placeholder>span{font-size:46px;line-height:1}.camera-placeholder small{font-size:11px}.camera-meta{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px}.video-layout{grid-template-columns:minmax(0,2fr) minmax(250px,1fr)}.video-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px}.video-panel video{display:block;width:100%;aspect-ratio:16/9;background:#000;border-radius:12px;object-fit:contain}.device-row{display:flex;gap:12px;align-items:center;padding:13px 10px;border-radius:9px;border:1px solid transparent}.device-row:hover,.device-row.active{background:#173047;border-color:#2a5274}.device-row small{margin-left:auto}.filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.filters .field{flex:1;min-width:200px}.recordings{margin-top:26px}.record-row{display:flex;align-items:center;justify-content:space-between;gap:17px;padding:15px 0;border-bottom:1px solid var(--stroke);overflow-wrap:anywhere}.record-actions{display:flex;gap:8px;flex-shrink:0}.permission-table{width:100%;border-collapse:collapse}.permission-table td,.permission-table th{text-align:left;padding:12px;border-bottom:1px solid var(--stroke)}.permission-table input{width:19px;height:19px;accent-color:#219cea}.guest{display:flex;flex-direction:column;min-height:100svh;justify-content:center;align-items:center;padding:24px;background:radial-gradient(ellipse at 50% 0%,#142a42 0%,#070d16 60%)}.guest-main{width:min(100%,450px);margin:auto}.guest-head{display:flex;align-items:center;justify-content:center;gap:9px;margin-bottom:28px}.guest-head .brand-mark{width:34px;height:34px;font-size:22px}.guest-head b{font-size:18px;letter-spacing:.12em}.guest-head>span{display:none}.auth-panel{border-radius:22px;background:var(--panel);border:1px solid var(--stroke);padding:32px}.auth-panel h1{font-size:28px}.auth-panel .btn{width:100%;margin-top:2px}.tabs{background:#0a1422;border:1px solid var(--stroke);border-radius:10px;padding:4px;display:flex;margin:20px 0}.tab{flex:1;background:transparent;color:var(--muted);border:0;padding:11px;border-radius:8px;cursor:pointer;font-weight:700}.tab.active{color:white;background:#21405f}.hidden{display:none!important}.subtle-link{display:block;color:#80c5fb;text-align:center;margin-top:21px;font-size:12px}.footer{display:none}.guest .footer{display:block;text-align:center;font-size:10px;color:#7191ab;padding:20px 0}@media(max-width:1200px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.camera-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:870px){.app{display:block}.sidebar{height:auto;min-height:0;position:static;padding:10px 16px 14px}.sidebar .brand{padding:3px 0 10px}.sidebar-label,.sidebar-bottom{display:none}.sidebar nav{flex-direction:row;overflow-x:auto;padding-bottom:5px}.nav-link{white-space:nowrap;padding:9px 12px}.topbar{height:auto;min-height:65px;padding:14px 20px}.content{padding:25px 20px 75px}.split,.video-layout{grid-template-columns:minmax(0,1fr)}}@media(max-width:600px){.metrics,.camera-grid{grid-template-columns:1fr}.panel{padding:20px}.auth-panel{padding:22px}.record-row,.camera-meta{align-items:stretch;flex-direction:column}.record-actions{flex-wrap:wrap}.company-head{flex-wrap:wrap}.topbar small{display:none}.page-title .btn{width:100%}.metric{min-height:120px}.guest-main{width:100%}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.danger-zone{border-top:1px solid var(--stroke);padding:10px 16px;color:#d2a5a9;font-size:11px}.danger-zone summary{cursor:pointer}.danger-zone form{display:flex;flex-direction:column;gap:10px;padding:10px 0}.danger-zone label{display:flex;align-items:center;gap:8px}.danger-zone input[type=checkbox]{accent-color:#ff8fa0}

/* CommandCenter 4.2.3: indicadores por dispositivo */
.uv-device-state{font-weight:700;color:#aec0d3}.uv-device-state.is-online{color:#7ae7b5}.uv-device-state.is-offline{color:#ffb8b8}
