:root{--bg:#edf2f7;--panel:#fff;--panel2:#f8fafc;--line:#dce5ef;--text:#102943;--muted:#7890a8;--cyan:#0877ba;--blue:#2f80ed;--green:#17b981;--amber:#ff9e1b;--red:#ff5364;--shadow:0 7px 24px rgba(32,63,91,.08);color-scheme:light}
html,body{background:var(--bg);color:var(--text)}
.app-shell{grid-template-columns:235px minmax(0,1fr)}
.sidebar{background:linear-gradient(180deg,#073b62,#074a75);border:0;padding:20px 14px 18px;color:#fff}
.brand{padding:5px 7px 20px;margin-bottom:17px;border-bottom:1px solid rgba(255,255,255,.13)}
.brand-mark{width:48px;height:48px;border-radius:10px;background:#fff;color:#06436d;box-shadow:0 5px 16px rgba(1,25,43,.18)}
.brand-mark svg{width:31px;height:31px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.brand b{font-size:16px;white-space:nowrap}.brand b em,.auth-brand b em{color:#f9b92f;font-style:normal}.brand small{color:#b9d2e5;font-size:10px;line-height:1.45}
.sidebar nav{gap:5px}.nav-item{padding:12px 13px;border-radius:10px;color:#c1d7e8;font-size:13px;transition:.18s}.nav-item svg{width:19px;height:19px}.nav-item.active{background:#f9b92f;color:#163d5a;box-shadow:0 7px 17px rgba(0,0,0,.15)}.nav-item:hover:not(.active){background:rgba(255,255,255,.09);color:#fff;transform:translateX(2px)}
.sidebar-foot{border:0;padding:0;margin-top:auto}.system-chip{display:flex;gap:8px;padding:12px 10px;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.08);border-radius:11px}.system-chip b,.system-chip small{display:block}.system-chip b{font-size:11px}.system-chip small{font-size:10px;color:#c1d8e8;margin-top:5px}
.page-head{height:69px;min-height:69px;padding:10px 22px;border-color:var(--line);background:#fff;box-shadow:0 2px 10px rgba(40,74,105,.04)}
.page-search{width:min(620px,60%);height:41px;border:1px solid #d8e3ee;border-radius:10px;background:#f8fafc;display:flex;align-items:center;gap:10px;padding:0 14px;color:#70869b;font-size:13px}.page-search svg,.logout-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.head-actions{display:flex;align-items:center;gap:11px}.user-chip{padding:0 4px}.avatar{width:36px;height:36px;background:#06436d;color:#fff;font-size:12px}.user-chip b{max-width:120px;color:var(--text);font-size:12px}.user-chip small{font-size:10px}.logout-button{width:39px;height:39px}.content{padding:17px 18px 35px}
.btn,.icon-button{border-color:var(--line);background:#fff;color:#06436d;box-shadow:none}.btn:hover,.icon-button:hover{border-color:#b8cadb;background:#f5f8fb}.btn.primary{background:#06436d;border-color:#06436d;color:#fff}.alarm-toggle{font-size:11px}.alarm-toggle.enabled{border-color:#9edec6;background:#eaf9f3;color:#079565}
.welcome-hero{min-height:178px;border-radius:15px;background:linear-gradient(120deg,#08466f 0%,#115d87 58%,#51a2bd 100%);color:#fff;padding:27px 29px;display:flex;align-items:center;justify-content:space-between;gap:25px;position:relative;overflow:hidden;box-shadow:var(--shadow);margin-bottom:12px}.welcome-hero:before,.welcome-hero:after{content:"";position:absolute;border:1px solid rgba(255,255,255,.12);border-radius:50%;width:360px;height:360px;right:-110px;top:38px}.welcome-hero:after{width:500px;height:500px;right:190px;top:-355px;border-width:18px;border-color:rgba(255,255,255,.07)}.welcome-hero>div{position:relative;z-index:1}.welcome-hero small{font-size:11px;font-weight:700}.welcome-hero h1{font-size:29px;line-height:1.1;margin:8px 0 5px}.welcome-hero h1 span{color:#f9b92f}.welcome-hero p{font-size:12px;margin:0 0 16px}.welcome-hero em{font-size:12px;font-weight:650}.hero-clock{min-width:128px;text-align:center;background:rgba(2,54,87,.72);padding:13px 10px;border-radius:11px;align-self:flex-end}.hero-clock small,.hero-clock strong{display:block}.hero-clock small{font-size:9px;margin-bottom:4px}.hero-clock strong{font-size:16px}
.status-banner{padding:9px 14px;border-color:var(--line);background:#fff;border-radius:10px;margin-bottom:12px;font-size:11px}.status-banner.online{border-color:#bcebd9;background:#f5fcf9}.status-banner.offline{border-color:#ffe0ac;background:#fffaf1}.status-dot{width:8px;height:8px;background:var(--amber);box-shadow:0 0 0 4px rgba(255,158,27,.12)}.status-dot.online,.online>.status-dot{background:var(--green);box-shadow:0 0 0 4px rgba(23,185,129,.13)}
.stat-grid{gap:12px;margin-bottom:12px}.stat-card,.panel{background:#fff;border-color:var(--line);box-shadow:var(--shadow);border-radius:14px}.stat-card{padding:14px;display:flex;align-items:center;gap:12px;min-height:88px}.stat-card>div{min-width:0}.stat-card>div>span{color:#57718a;font-size:11px}.stat-card strong{font-size:25px;line-height:1;margin:4px 0}.stat-card strong small{font-size:14px}.stat-card p{font-size:9px}.stat-icon{width:42px;height:42px;border-radius:11px;display:grid;place-items:center;font-size:19px;font-weight:900;flex:0 0 auto}.stat-icon.blue{background:#e6f1ff;color:var(--blue)}.stat-icon.amber{background:#fff2d9;color:var(--amber)}.stat-icon.red{background:#ffe2e6;color:var(--red)}.stat-icon.green{background:#ddf6ec;color:var(--green)}
.panel-grid{gap:12px}.panel{padding:14px}.panel-head{margin-bottom:12px}.panel-head h2{font-size:14px}.panel-head>a{font-size:10px;color:#0876c0;text-decoration:underline}.eyebrow{font-size:9px;color:#0c527f}
.camera-mini-grid{gap:10px}.camera-tile,.camera-card{background:#fff;border-color:var(--line);border-radius:11px}.camera-tile>div:last-child,.camera-card footer{padding:9px 11px}.camera-tile b,.camera-card b{font-size:11px}.camera-tile small,.camera-card small{font-size:9px}.video-placeholder{background:linear-gradient(135deg,#092b44,#145d84);color:#d2e6f3}.placeholder-icon{color:#7eb5d0}.video-placeholder>small{color:#bcd9e8}.live-badge{background:rgba(1,26,43,.7);color:#fff}
.event-row{border-color:#edf1f5;padding:7px 0}.event-row b{font-size:10px}.event-row small{font-size:9px}.event-icon{border-radius:50%}.pill{background:#edf2f6;color:#688096}.pill.new{background:#ffe5e8;color:#dc4050}.pill.acknowledged{background:#dff6ec;color:#078c61}.empty-state{background:#fbfcfd;border-color:#ccd9e5;font-size:12px}
.segmented,.filter-bar select,.stack-form input,.stack-form select,.camera-setting-card input,.auth-card input{background:#fff;color:var(--text);border-color:#d6e1eb}.segmented button.active{background:#06436d}.camera-grid{gap:12px}.camera-frame{background:#071827}.event-table th{color:#6f879d;background:#f7f9fb;border-color:var(--line)}.event-table td,.gateway-row,.detail-list>div{border-color:#edf1f5}.camera-setting-card{background:#fbfcfd;border-color:var(--line)}.channel-number,.clip-preview{color:#06436d}.clip-preview{background:#e9f3fa}.notice.success{background:#e7f8f1;border-color:#b5ead6;color:#087c58}.notice.danger{background:#fff0f2;border-color:#ffcbd1;color:#bd3341}
.auth-page{background:linear-gradient(135deg,rgba(5,62,100,.95),rgba(21,113,151,.88)),radial-gradient(circle at 75% 20%,#77c2d3,transparent 30%)}.auth-card{background:#fff;border-color:rgba(255,255,255,.5);padding:31px;box-shadow:0 25px 70px rgba(0,31,53,.28);color:var(--text)}.auth-brand{display:flex;align-items:center;gap:12px;margin-bottom:26px;padding-bottom:20px;border-bottom:1px solid var(--line)}.auth-brand .brand-mark{background:#edf5fa}.auth-brand b,.auth-brand small{display:block}.auth-brand b{font-size:18px;color:#06436d}.auth-brand small{font-size:9px;color:var(--muted);margin-top:3px}.auth-card h1{color:var(--text)}.auth-card label{color:#5c7389}.auth-foot{text-align:center;font-size:9px;color:#9aabbb;margin:22px 0 0}.alarm-toast{background:#fff;box-shadow:0 16px 45px rgba(25,54,80,.18)}
@media(max-width:1100px){.alarm-toggle span{display:none}.page-search{width:min(480px,55%)}}
@media(max-width:760px){.sidebar{width:235px;left:-252px}.page-head{height:64px;min-height:64px;padding:10px 12px}.page-search{flex:1;width:auto}.head-actions{gap:6px}.user-chip>span:last-child{display:none}.avatar{width:34px;height:34px}.content{padding:12px 10px 30px}.welcome-hero{padding:22px 19px;min-height:205px;align-items:flex-start}.welcome-hero h1{font-size:24px}.welcome-hero p{line-height:1.55}.welcome-hero em{display:none}.hero-clock{position:absolute!important;right:14px;bottom:14px;padding:9px;min-width:110px}.auth-page{padding:16px}.auth-card{padding:24px 20px}}
