:root{color-scheme:dark;--bg:#080e19;--panel:#101b2b;--line:#22334a;--cyan:#49d9ff;--muted:#91a4bf;--white:#edf4ff}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--white);font:14px/1.55 system-ui,-apple-system,Segoe UI,sans-serif}button,input,select{font:inherit}button,.button{border:1px solid #304660;border-radius:10px;background:#15243a;padding:11px 16px;color:var(--white);cursor:pointer;text-decoration:none;display:inline-block}button:hover,.button:hover{border-color:var(--cyan);background:#1b304c}input,select{background:#0c1524;border:1px solid #2c405d;border-radius:9px;color:var(--white);padding:12px;width:100%;min-width:0}input:focus,select:focus{outline:2px solid #43c6f8;outline-offset:2px}label{display:grid;gap:8px;color:#afc0d7;font-size:13px}h1,h2,p{margin-top:0}h1{font-size:28px;margin-bottom:0;letter-spacing:-1px}h2{font-size:18px;letter-spacing:-.4px}p{color:var(--muted)}[hidden]{display:none!important}.muted,small{color:var(--muted);font-size:12px}.eyebrow{color:#7794b8;font-size:10px;font-weight:700;letter-spacing:2.2px}.pill{font-size:10px;letter-spacing:1.3px;color:var(--cyan);border:1px solid #23506b;background:#0c2a3c;padding:6px 10px;border-radius:6px;display:inline-block}.primary{background:#37c4f5;color:#041421;border:0;font-weight:700}.primary:hover{background:#80e2ff}.login{min-height:100vh;display:grid;grid-template-columns:1.15fr 1fr;align-items:center;max-width:1300px;margin:auto;padding:60px;gap:80px}.login-art{padding:20px}.login-art img{width:min(370px,100%);display:block;margin:-15px 0 20px}.login-art h1{font-size:44px;line-height:1.1;margin:16px 0}.login-box{background:linear-gradient(145deg,#152339,#0c1524);border:1px solid var(--line);padding:40px;border-radius:24px;display:grid;gap:20px;box-shadow:0 30px 100px #0005}.login-box h2{font-size:27px;margin:0}.login-box p{margin:0}.login-box button{margin-top:8px;display:flex;justify-content:space-between}.login-box small{text-align:center}#login-error{color:#ffafb0;font-size:13px}aside{position:fixed;inset:0 auto 0 0;width:236px;border-right:1px solid var(--line);background:#0b1320;padding:28px 20px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;margin-bottom:46px}.brand img{width:62px;height:62px;object-fit:contain;border-radius:12px}.brand b{font-size:19px;letter-spacing:1px}.brand span{display:block;color:var(--muted);font-size:10px;font-weight:400}.brand+.eyebrow{padding-left:10px;margin-bottom:16px}nav{display:grid;gap:8px}nav button{display:flex;gap:14px;border:0;background:transparent;text-align:left;padding:13px 14px;color:var(--muted)}nav button.active{background:#153149;color:#64deff}.aside-bottom{margin-top:auto;font-size:12px;color:#b2c3da;padding:12px 4px}.aside-bottom p{margin-top:10px}.aside-bottom button{font-size:11px;padding:8px 12px}.live-dot{display:inline-block;width:7px;height:7px;background:#54e4b5;border-radius:50%;margin-right:6px;box-shadow:0 0 12px #54e4b54d}main{margin-left:236px;max-width:1750px;padding:32px 40px}header{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px;gap:20px}.header-actions{display:flex;align-items:center;gap:15px}.hero{background:radial-gradient(ellipse at 70% 50%,#123955 0%,#112238 44%,#101b2d 85%);border:1px solid #24445e;border-radius:20px;padding:32px 38px;display:flex;align-items:center;justify-content:space-between;overflow:hidden;min-height:300px}.hero h2{font-size:38px;line-height:1.15;letter-spacing:-1.5px;margin:18px 0}.hero p{max-width:390px;font-size:13px}.hero img{width:260px;height:260px;object-fit:contain;border-radius:20px;mix-blend-mode:screen}.hero-status{color:#64e0b8;font-size:12px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:20px 0 24px}.stat{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:20px}.stat b{display:block;font-size:34px;line-height:1.2;margin:10px 0}.stat small{font-size:11px}.stat .tag{color:var(--cyan);font-size:11px}.split{display:grid;grid-template-columns:1.25fr 1fr;gap:22px}.panel{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:24px;margin-bottom:22px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}.panel-head h2{margin:0}.device-row{display:flex;gap:14px;align-items:center;padding:15px 0;border-bottom:1px solid #1e2f46}.device-row:last-child{border:0}.icon{font-size:20px;display:grid;place-items:center;flex:0 0 40px;height:40px;background:#162d45;color:var(--cyan);border-radius:12px}.device-row .details{flex:1;min-width:0}.device-row b{display:block;overflow-wrap:anywhere;font-size:13px}.device-row small{display:block;font-size:11px}.status{font-size:10px;padding:5px 8px;background:#12352f;color:#69e3bf;border-radius:5px;white-space:nowrap}.status.off{background:#293345;color:#a9b7ca}.event{display:flex;gap:12px;padding:13px 0;border-bottom:1px solid #1d2c42}.event-dot{width:7px;height:7px;background:var(--cyan);border-radius:50%;margin-top:7px;flex-shrink:0}.event b{font-size:12px;font-weight:600}.event p{font-size:11px;margin:4px 0 0;overflow-wrap:anywhere}.event time{font-size:10px;white-space:nowrap;margin-left:auto;color:#8da2bf}.toolbar{display:flex;align-items:end;gap:15px;margin-bottom:24px}.toolbar>input{max-width:550px}.toolbar>select{max-width:240px}.toolbar label{min-width:170px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap}th{font-size:10px;letter-spacing:1px;text-transform:uppercase;color:var(--muted);padding:0 12px 16px}td{padding:16px 12px;border-top:1px solid var(--line);font-size:12px}td small{display:block;font-size:10px}.table-wrap>p{margin:20px 12px 0}.timeline-row{padding:17px 0;border-bottom:1px solid var(--line)}.timeline-label{display:flex;justify-content:space-between;font-size:12px;margin-bottom:10px}.timeline-label b{color:var(--cyan);font-weight:500}.track{height:16px;background:repeating-linear-gradient(90deg,#18293f 0,#18293f calc(4.166% - 1px),#243953 calc(4.166% - 1px),#243953 4.166%);border-radius:5px;position:relative;overflow:hidden}.segment{position:absolute;top:3px;height:10px;min-width:2px;background:#47c9f8;border-radius:2px}.hours{display:flex;justify-content:space-between;color:#8096b5;font-size:10px;margin-top:12px}.traffic{display:flex;align-items:center;gap:18px}.traffic p{margin:0;font-size:12px}.traffic h2{margin-bottom:6px}.traffic .pill{margin-left:auto;white-space:nowrap}.actions{display:flex;gap:10px;flex-wrap:wrap}.empty{padding:30px 0;color:#90a5c1;font-size:13px}#notice{background:#392a18;border:1px solid #73552a;border-radius:12px;padding:14px 18px;color:#ffd69a;margin-bottom:22px}footer{display:flex;justify-content:space-between;color:#6f86a5;font-size:10px;padding:12px 0}dialog{background:#101d30;border:1px solid #31506d;border-radius:18px;color:var(--white);padding:28px;width:min(460px,90vw)}dialog::backdrop{background:#000b;backdrop-filter:blur(4px)}dialog form{display:grid;gap:18px}dialog h2{font-size:19px}.checkbox{display:flex;align-items:center;gap:10px}.checkbox input{width:auto}#toast{position:fixed;bottom:24px;right:24px;background:#173c50;color:#bdf0ff;border:1px solid #3a8dad;border-radius:10px;padding:16px 22px;max-width:90vw;z-index:10}
@media(min-width:1500px){.hero img{width:300px;height:300px}.hero{min-height:340px}}@media(max-width:1100px){aside{width:195px;padding:24px 12px}main{margin-left:195px;padding:25px}.hero{padding:25px}.hero h2{font-size:31px}.hero img{width:200px;height:200px}.split{grid-template-columns:1fr}.stat{padding:15px}.stat b{font-size:28px}.login{padding:35px;gap:30px}.login-box{padding:28px}}@media(max-width:760px){.login{grid-template-columns:1fr;padding:22px;gap:20px}.login-art{padding:0;text-align:center}.login-art img{width:180px;margin:0 auto 15px}.login-art h1{font-size:30px}.login-art p{display:none}.login-box{padding:25px}.login-box h2{font-size:23px}aside{position:sticky;top:0;z-index:5;width:100%;padding:10px 12px;border-right:0;border-bottom:1px solid var(--line)}.brand{display:none}aside>.eyebrow,.aside-bottom{display:none}nav{display:flex;justify-content:space-between;gap:0}nav button{padding:8px;font-size:15px;display:grid;gap:3px;text-align:center;justify-items:center;border-radius:8px}nav button span{font-size:9px}main{margin-left:0;padding:20px 16px}header{align-items:flex-start;margin-bottom:20px}h1{font-size:24px}.header-actions{display:grid;gap:6px;text-align:right}.header-actions button{font-size:11px;padding:8px}.header-actions .muted{font-size:9px}.hero{padding:22px 18px;min-height:240px;position:relative}.hero>div{z-index:1;max-width:70%}.hero h2{font-size:27px}.hero img{position:absolute;right:-18px;top:28px;width:175px;height:175px;opacity:.45}.hero p{font-size:12px;max-width:240px}.hero .pill{font-size:8px}.hero-status{font-size:10px}.stats{grid-template-columns:repeat(2,1fr);gap:12px;margin:14px 0 20px}.stat{padding:15px}.stat b{font-size:29px}.panel{padding:18px}.panel h2{font-size:16px}.toolbar{flex-wrap:wrap;gap:10px}.toolbar>input,.toolbar>select{max-width:100%}.toolbar .button{font-size:11px;padding:9px}.toolbar label{flex:1}.traffic{align-items:flex-start;flex-wrap:wrap}.traffic .pill{margin-left:58px}.device-row{gap:10px}.device-row .icon{flex-basis:32px;height:32px;font-size:17px}.status{font-size:9px}.device-row small{font-size:10px}.event time{font-size:9px}footer span{display:none}}

.archive-filters{flex-wrap:wrap;align-items:end}
.archive-filters label{min-width:135px;max-width:240px}
.archive .table-wrap{overflow:auto}
.archive td:last-child{white-space:normal;min-width:8rem}
.archive-pages{margin-top:1rem}
.archive button:disabled{opacity:.45;cursor:default}
@media(max-width:640px){nav{flex-wrap:wrap}.archive-filters label{flex:1;max-width:none}}
