*{box-sizing:border-box;margin:0;padding:0;}
html{overflow-x:hidden;}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:#f5f4f0;color:#1a1a1a;min-height:100vh;overflow-x:hidden;max-width:100vw;}
.topbar{background:#1a1a1a;color:#fff;padding:8px 16px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:50;flex-wrap:wrap;gap:4px;}
.topbar h1{font-size:14px;font-weight:600;}
.clock{font-size:11px;color:#aaa;font-variant-numeric:tabular-nums;}
.save-ind{font-size:11px;padding:3px 8px;border-radius:99px;background:#2a2a2a;color:#6ee7b7;}
.topbar-conn{display:none;font-size:10px;padding:3px 8px;border-radius:99px;font-weight:600;word-break:break-all;max-width:200px;line-height:1.4;text-align:center;}
.topbar-conn.connected{background:#059669;color:#fff;}
.topbar-conn.disconnected{background:#dc2626;color:#fff;}
.topbar-server-btn{display:none;font-size:11px;padding:3px 8px;border-radius:99px;background:#374151;color:#fff;border:none;cursor:pointer;font-weight:600;white-space:nowrap;}
.container{max-width:980px;margin:0 auto;padding:1rem;}
.tabs{display:flex;gap:2px;margin-bottom:1rem;background:#e8e7e2;padding:3px;border-radius:10px;flex-wrap:wrap;}
.tab{flex:1;padding:7px 6px;border:none;background:transparent;border-radius:8px;font-size:11px;font-weight:400;color:#666;cursor:pointer;transition:all 0.15s;white-space:nowrap;}
.tab.active{background:#fff;color:#1a1a1a;font-weight:600;box-shadow:0 1px 3px rgba(0,0,0,0.08);}
.panel{display:none;}.panel.active{display:block;}
.card{background:#fff;border-radius:12px;padding:1.25rem;margin-bottom:1rem;border:1px solid #e8e7e2;}
.card-title{font-size:14px;font-weight:600;margin-bottom:1rem;}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.fg{display:flex;flex-direction:column;gap:4px;}
.fg.full{grid-column:1/-1;}
label{font-size:12px;color:#666;font-weight:500;}
input,select,textarea{width:100%;padding:8px 11px;border:1px solid #ddd;border-radius:8px;font-size:14px;background:#fafafa;color:#1a1a1a;outline:none;transition:border 0.15s;}
input:focus,select:focus,textarea:focus{border-color:#1a1a1a;background:#fff;}
input.required-err{border-color:#dc2626;background:#fff5f5;}
.req{color:#dc2626;margin-left:2px;}
.btn{padding:8px 16px;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;border:1px solid transparent;transition:all 0.15s;display:inline-flex;align-items:center;gap:5px;}
.btn:active{transform:scale(0.97);}
.btn-dark{background:#1a1a1a;color:#fff;}.btn-dark:hover{background:#333;}
.btn-green{background:#059669;color:#fff;}
.btn-red{background:#dc2626;color:#fff;}
.btn-wa{background:#25D366;color:#fff;}
.btn-email{background:#2563eb;color:#fff;}
.btn-outline{background:#fff;color:#1a1a1a;border-color:#ddd;}.btn-outline:hover{background:#f5f4f0;}
.btn-amber{background:#d97706;color:#fff;}
.btn-sm{padding:5px 10px;font-size:11px;border-radius:6px;}
.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:1rem;}
.metric{background:#fff;border-radius:10px;padding:12px;border:1px solid #e8e7e2;}
.metric-label{font-size:10px;color:#888;font-weight:500;text-transform:uppercase;letter-spacing:0.05em;margin-bottom:3px;}
.metric-value{font-size:24px;font-weight:700;}
.metric-value.green{color:#059669;}.metric-value.amber{color:#d97706;}.metric-value.red{color:#dc2626;}.metric-value.blue{color:#2563eb;}
.vlist{display:flex;flex-direction:column;gap:5px;}
.vrow{display:flex;align-items:center;gap:10px;padding:9px 12px;background:#fff;border:1px solid #e8e7e2;border-radius:10px;flex-wrap:wrap;}
.vrow:hover{border-color:#ccc;}
.va{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;flex-shrink:0;}
.vi{flex:1;min-width:100px;}
.vn{font-size:13px;font-weight:600;}
.vm{font-size:11px;color:#888;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px;}
.badge{display:inline-flex;align-items:center;padding:3px 8px;border-radius:99px;font-size:10px;font-weight:600;white-space:nowrap;}
.b-in{background:#d1fae5;color:#065f46;}.b-out{background:#f3f4f6;color:#6b7280;}.b-reg{background:#dbeafe;color:#1e40af;}
.vact{display:flex;gap:4px;flex-shrink:0;flex-wrap:wrap;}
.alert{padding:10px 14px;border-radius:8px;font-size:13px;margin-bottom:1rem;display:none;font-weight:500;}
.alert-success{background:#d1fae5;color:#065f46;border:1px solid #6ee7b7;}
.alert-error{background:#fee2e2;color:#991b1b;border:1px solid #fca5a5;}
.alert-info{background:#dbeafe;color:#1e40af;border:1px solid #93c5fd;}
.alert-warning{background:#fef3c7;color:#92400e;border:1px solid #fcd34d;}
.ltable-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;width:100%;}
.ltable{width:100%;border-collapse:collapse;font-size:12px;min-width:420px;}
.ltable th{text-align:left;padding:7px 9px;color:#888;font-weight:600;font-size:10px;text-transform:uppercase;letter-spacing:0.04em;border-bottom:1px solid #e8e7e2;}
.ltable td{padding:7px 9px;border-bottom:1px solid #f0efe9;vertical-align:middle;}
.ltable tr:last-child td{border-bottom:none;}
.ltable tr:hover td{background:#fafaf8;}
.empty{text-align:center;padding:2rem;color:#aaa;font-size:14px;}
.filter-row{display:flex;gap:8px;margin-bottom:1rem;flex-wrap:wrap;}
.filter-row input,.filter-row select{flex:1;font-size:13px;min-width:120px;}
.section-head{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:0.06em;color:#aaa;margin-bottom:8px;}
.conn-bar{display:flex;align-items:center;gap:8px;padding:7px 12px;border-radius:8px;font-size:12px;font-weight:600;margin-bottom:1rem;}
.conn-bar.connected{background:#d1fae5;color:#065f46;}
.conn-bar.disconnected{background:#fee2e2;color:#991b1b;}
.conn-dot{width:7px;height:7px;border-radius:50%;background:currentColor;flex-shrink:0;}
.scanner-box{position:relative;background:#000;border-radius:12px;overflow:hidden;margin-bottom:1rem;}
.scanner-box video{width:100%;display:block;height:auto;max-height:65vh;object-fit:contain;}
.scanner-box video.video-flipped{transform:scaleX(-1);}
.scan-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;}
.scan-frame{position:relative;width:75%;height:75%;max-width:320px;max-height:320px;border:2px solid #22c55e;border-radius:10px;overflow:hidden;}
.scan-line{position:absolute;left:0;right:0;top:0;height:2px;background:linear-gradient(90deg,transparent,#22c55e,transparent);animation:sl 2s linear infinite;}
@keyframes sl{0%{top:0%;}100%{top:100%;}}
.scan-status{position:absolute;bottom:0;left:0;right:0;padding:9px;text-align:center;font-size:12px;font-weight:600;color:#fff;background:rgba(0,0,0,0.6);}
.scan-status.success{background:rgba(5,150,105,0.85);}
.scan-status.error{background:rgba(220,38,38,0.85);}
.scan-status.warning{background:rgba(217,119,6,0.85);}
.smode{flex:1;padding:10px;border-radius:8px;border:2px solid #ddd;background:#fff;font-size:12px;font-weight:600;cursor:pointer;text-align:center;}
.smode.ae{border-color:#059669;background:#d1fae5;color:#065f46;}
.smode.ax{border-color:#dc2626;background:#fee2e2;color:#991b1b;}
.src{border-radius:10px;padding:1rem;margin-bottom:1rem;display:none;border:2px solid #059669;background:#f0fdf4;}
.src.ie{border-color:#dc2626;background:#fef2f2;}
.src.iw{border-color:#d97706;background:#fffbeb;}
.src-h{display:flex;align-items:center;gap:10px;}
.src-ic{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:700;flex-shrink:0;}
.cam-select-row{display:flex;gap:8px;align-items:center;margin-bottom:8px;flex-wrap:wrap;}
.cam-info{font-size:11px;color:#888;margin-top:4px;}
.modal-bg{position:fixed;inset:0;background:rgba(0,0,0,0.55);display:none;align-items:center;justify-content:center;z-index:200;padding:1rem;}
.modal-bg.open{display:flex;}
.modal{background:#fff;border-radius:16px;padding:1.5rem;max-width:440px;width:100%;box-shadow:0 20px 60px rgba(0,0,0,0.2);max-height:92vh;overflow-y:auto;}
.modal h3{font-size:16px;font-weight:700;margin-bottom:3px;}
.modal .msub{font-size:12px;color:#888;margin-bottom:1.25rem;}
.qr-wrap{display:flex;justify-content:center;margin-bottom:1rem;}
.qr-wrap img{border-radius:8px;border:1px solid #e8e7e2;}
.qr-ib{background:#f5f4f0;border-radius:8px;padding:10px;font-size:12px;margin-bottom:1rem;}
.qr-row{display:flex;justify-content:space-between;padding:2px 0;}
.qr-row span:first-child{color:#888;}
.modal-btns{display:flex;gap:6px;flex-wrap:wrap;}
.modal-btns .btn{flex:1;justify-content:center;}
.toggle-row{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid #f0efe9;}
.toggle-row:last-child{border-bottom:none;}
.toggle-label{font-size:13px;font-weight:500;}
.toggle-desc{font-size:11px;color:#888;margin-top:2px;}
.toggle{position:relative;width:44px;height:24px;flex-shrink:0;}
.toggle input{opacity:0;width:0;height:0;}
.toggle-slider{position:absolute;inset:0;background:#ddd;border-radius:99px;cursor:pointer;transition:0.2s;}
.toggle-slider:before{content:'';position:absolute;width:18px;height:18px;left:3px;top:3px;background:#fff;border-radius:50%;transition:0.2s;}
.toggle input:checked+.toggle-slider{background:#059669;}
.toggle input:checked+.toggle-slider:before{transform:translateX(20px);}
.srow{display:flex;align-items:flex-start;gap:10px;margin-bottom:8px;flex-wrap:wrap;}
.srow label{width:150px;flex-shrink:0;font-size:12px;color:#666;font-weight:500;padding-top:10px;}
.srow input,.srow select,.srow textarea{flex:1;min-width:150px;}
.ssec{margin-bottom:1.5rem;}
.ssec h3{font-size:13px;font-weight:700;margin-bottom:10px;padding-bottom:6px;border-bottom:1px solid #e8e7e2;}
.ip-stat{font-size:11px;padding:3px 8px;border-radius:99px;font-weight:600;}
.ip-stat.ok{background:#d1fae5;color:#065f46;}
.ip-stat.fail{background:#fee2e2;color:#991b1b;}
.ip-stat.testing{background:#fef3c7;color:#92400e;}
.wa-prev{background:#e7f8e7;border-radius:10px;padding:12px;font-size:13px;line-height:1.7;white-space:pre-wrap;border:1px solid #c3e6c3;margin-top:8px;}
.email-prev{background:#e8f0fe;border-radius:10px;padding:12px;font-size:13px;line-height:1.7;white-space:pre-wrap;border:1px solid #c3d9fd;margin-top:8px;}
.warn-box{background:#fef3c7;border:1px solid #fcd34d;border-radius:8px;padding:10px 12px;font-size:12px;color:#92400e;margin-top:8px;line-height:1.6;}
.info-box{background:#dbeafe;border:1px solid #93c5fd;border-radius:8px;padding:10px 12px;font-size:12px;color:#1e40af;margin-top:8px;line-height:1.6;}
.svr-modal-bg{position:fixed;inset:0;background:rgba(0,0,0,0.6);display:none;align-items:center;justify-content:center;z-index:300;padding:1.5rem;}
.svr-modal-bg.open{display:flex;}
.svr-modal{background:#fff;border-radius:16px;padding:1.5rem;width:100%;max-width:380px;}
.svr-modal h3{font-size:16px;font-weight:700;margin-bottom:6px;}
.svr-modal p{font-size:12px;color:#888;margin-bottom:1.2rem;}
.scan-result{display:none;position:fixed;left:0;right:0;bottom:0;z-index:100;padding:12px 16px;animation:slideUp 0.2s ease;}
.scan-result.show{display:block;}
@keyframes slideUp{from{transform:translateY(100%);}to{transform:translateY(0);}}
.scan-result-inner{border-radius:12px;padding:14px 16px;box-shadow:0 4px 20px rgba(0,0,0,0.15);}
.scan-result-inner.ok{background:#059669;color:#fff;}
.scan-result-inner.warn{background:#d97706;color:#fff;}
.scan-result-inner.err{background:#dc2626;color:#fff;}
.scan-result-name{font-size:16px;font-weight:700;margin-bottom:2px;}
.scan-result-sub{font-size:12px;opacity:0.9;margin-bottom:8px;}
.scan-result-bar-wrap{background:rgba(255,255,255,0.3);border-radius:99px;height:4px;overflow:hidden;}
.scan-result-bar{height:4px;background:#fff;border-radius:99px;width:100%;transition:width linear;}
.dc{background:#fff;border-radius:12px;border:1px solid #e8e7e2;padding:1.25rem;margin-bottom:1rem;}
.dc h3{font-size:13px;font-weight:700;margin-bottom:5px;}
.dc p{font-size:12px;color:#666;margin-bottom:10px;line-height:1.5;}
.ds{font-size:11px;padding:8px;background:#f5f4f0;border-radius:8px;color:#555;margin-top:8px;font-family:monospace;white-space:pre-wrap;}
.ac-item{padding:7px 10px;border-radius:6px;cursor:pointer;font-size:13px;border:1px solid #ddd;margin-top:3px;background:#fafafa;}
.ac-item:hover{background:#f0eff9;}
.vtl{display:flex;flex-direction:column;gap:5px;}
.vi-item{display:flex;gap:8px;padding:9px;background:#f9f8f5;border-radius:8px;border:1px solid #ede;}
.vinum{background:#1a1a1a;color:#fff;width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:9px;font-weight:700;flex-shrink:0;margin-top:2px;}
.videt{flex:1;}
.virow{display:flex;gap:12px;flex-wrap:wrap;font-size:12px;}
.vidur{font-size:11px;color:#888;margin-top:2px;}
.pwa-banner{background:#1a1a1a;color:#fff;padding:10px 16px;display:none;align-items:center;gap:10px;font-size:13px;}
.pwa-banner.show{display:flex;}
@media print{.topbar,.tabs,.vact,.btn,.conn-bar,.src,.pwa-banner{display:none!important;}body{background:#fff;}}
@media(max-width:600px){.metrics{grid-template-columns:1fr 1fr;}.form-grid{grid-template-columns:1fr;}.fg.full{grid-column:1;}.srow label{width:100%;padding-top:0;}}
@media(max-width:480px){.vact{display:grid;grid-template-columns:1fr 1fr;gap:4px;}.vact .btn{font-size:11px;padding:5px 6px;}.report-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;}table{min-width:500px;}.srow label{width:100px;font-size:12px;}.modal-box{padding:16px 12px;}.topbar{padding:8px 10px;gap:6px;}.conn-bar{font-size:11px;padding:4px 8px;}}
@media(max-height:500px) and (orientation:landscape){#scanner-video{max-height:160px;}.scan-box{padding:8px;}}
@media(min-width:601px) and (max-width:900px){.srow label{width:130px;}}
.cc-wrap{position:relative;flex-shrink:0;}
.cc-btn{width:110px;height:38px;border:1px solid #d1d0cb;border-radius:8px;background:#fff;cursor:pointer;display:flex;align-items:center;justify-content:space-between;padding:0 8px;font-size:13px;gap:4px;white-space:nowrap;overflow:hidden;}
.cc-btn:hover{border-color:#888;}
.cc-panel{position:absolute;top:42px;left:0;width:270px;background:#fff;border:1px solid #d1d0cb;border-radius:8px;box-shadow:0 4px 16px rgba(0,0,0,0.13);z-index:1000;overflow:hidden;}
.cc-search{width:100%;box-sizing:border-box;padding:8px 10px;border:none;border-bottom:1px solid #e8e7e2;font-size:13px;outline:none;border-radius:8px 8px 0 0;}
.cc-list{max-height:220px;overflow-y:auto;}
.cc-item{padding:8px 12px;cursor:pointer;font-size:13px;display:flex;align-items:center;gap:8px;}
.cc-item:hover{background:#f5f4f0;}
.cc-item.cc-pinned{background:#f0fdf4;font-weight:600;border-bottom:2px solid #e8e7e2;position:sticky;top:0;}
.cc-item.cc-pinned:hover{background:#dcfce7;}
.cc-none{padding:10px 12px;font-size:12px;color:#999;text-align:center;}

/* ── F28 Dark Mode — Premium Charcoal/Slate ─────────────────── */
.dark-toggle-btn{background:transparent;border:1px solid #c8c7c2;border-radius:99px;color:#555;font-size:11px;padding:3px 10px;cursor:pointer;font-weight:600;transition:all 0.15s;white-space:nowrap;}
.dark-toggle-btn:hover{background:#f0eeea;color:#222;}
body.dark-mode{background:#0f1117;color:#e2e8f0;}
body.dark-mode *{border-color:#323848;}
body.dark-mode .topbar{background:#1a1f2e;border-bottom:1px solid #323848;box-shadow:0 1px 0 #323848;}
body.dark-mode .topbar h1{color:#e2e8f0;}
body.dark-mode .clock{color:#64748b;}
body.dark-mode .save-ind{background:transparent;color:#34d399;font-weight:600;}
body.dark-mode .topbar-server-btn{background:#242936;color:#94a3b8;border:1px solid #323848;}
body.dark-mode .topbar-server-btn:hover{background:#2d3344;color:#e2e8f0;}
body.dark-mode #logout-btn{background:#2d1a1a;color:#fca5a5;border:1px solid #5b2020 !important;}
body.dark-mode #logout-btn:hover{background:#3d2020;}
body.dark-mode #user-display{color:#64748b;}
body.dark-mode .dark-toggle-btn{background:transparent;border:1px solid #3d4558;color:#94a3b8;}
body.dark-mode .dark-toggle-btn:hover{background:#242936;color:#e2e8f0;}
body.dark-mode .tabs{background:#1a1f2e;border-bottom:1px solid #323848;}
body.dark-mode .tab{color:#64748b;border-radius:6px;}
body.dark-mode .tab:hover{color:#94a3b8;background:#242936;}
body.dark-mode .tab.active{background:#242936;color:#e2e8f0;box-shadow:0 0 0 1px #3d4558;}
body.dark-mode .card{background:#1a1f2e;border:1px solid #323848;box-shadow:none;}
body.dark-mode .card-title{color:#e2e8f0;border-bottom-color:#323848;}
body.dark-mode .dc{background:#1a1f2e;border:1px solid #323848;}
body.dark-mode .dc h3{color:#e2e8f0;}
body.dark-mode .dc p{color:#94a3b8;}
body.dark-mode .ds{background:#0f1117;color:#64748b;border-top:1px solid #323848;border-radius:0 0 8px 8px;}
body.dark-mode .panel{background:transparent;}
body.dark-mode .ssec h3{color:#e2e8f0;border-bottom:1px solid #323848;}
body.dark-mode .ssec{border-bottom:1px solid #323848;}
body.dark-mode .srow label{color:#94a3b8;}
body.dark-mode .section-head{color:#64748b;letter-spacing:.04em;}
body.dark-mode .srow{border-bottom-color:#323848;}
body.dark-mode .dm-toggle-panel{background:#242936!important;border:1px solid #323848!important;border-radius:8px;}
body.dark-mode label{color:#94a3b8;}
body.dark-mode input,body.dark-mode select,body.dark-mode textarea{background:#242936;border:1px solid #3d4558;color:#e2e8f0;border-radius:8px;}
body.dark-mode input:focus,body.dark-mode select:focus,body.dark-mode textarea:focus{border-color:#38bdf8;background:#2d3344;outline:none;box-shadow:0 0 0 2px rgba(56,189,248,0.12);}
body.dark-mode input.required-err{border-color:#f87171;background:#2d1a1a;}
body.dark-mode input::placeholder,body.dark-mode textarea::placeholder{color:#4a5568;}
body.dark-mode select option{background:#242936;color:#e2e8f0;}
body.dark-mode input[type=date]::-webkit-calendar-picker-indicator{filter:invert(0.6);}
body.dark-mode .btn-outline{background:#242936;color:#94a3b8;border:1px solid #3d4558;}
body.dark-mode .btn-outline:hover{background:#2d3344;color:#e2e8f0;border-color:#4d5a70;}
body.dark-mode .btn-dark{background:#e2e8f0;color:#0f1117;font-weight:700;}
body.dark-mode .btn-dark:hover{background:#cbd5e1;}
body.dark-mode .btn-red{background:#7f1d1d;color:#fecaca;border-color:#991b1b;}
body.dark-mode .btn-red:hover{background:#991b1b;}
body.dark-mode .btn-green{background:#065f46;color:#6ee7b7;border-color:#047857;}
body.dark-mode .btn-green:hover{background:#047857;}
body.dark-mode .btn-amber{background:#78350f;color:#fde68a;border-color:#92400e;}
body.dark-mode .btn-wa{background:#14532d;color:#86efac;border-color:#166534;}
body.dark-mode .btn-email{background:#1e3a5f;color:#93c5fd;border-color:#1d4ed8;}
body.dark-mode .metric{background:#1a1f2e;border:1px solid #323848;}
body.dark-mode .metric-label{color:#64748b;}
body.dark-mode .metric-value{color:#e2e8f0;}
body.dark-mode .vrow{background:#1a1f2e;border:1px solid #323848;}
body.dark-mode .vrow:hover{border-color:#3d4558;background:#1e2438;}
body.dark-mode .vn{color:#e2e8f0;}
body.dark-mode .vm{color:#64748b;}
body.dark-mode .b-in{background:#064e3b;color:#34d399;border:1px solid #065f46;}
body.dark-mode .b-out{background:#1e2a3a;color:#94a3b8;border:1px solid #2d3a4a;}
body.dark-mode .b-reg{background:#1e2d4a;color:#7dd3fc;border:1px solid #1e3a6e;}
body.dark-mode .alert-success{background:#052e1a;color:#34d399;border:1px solid #065f46;}
body.dark-mode .alert-error{background:#2d1515;color:#fca5a5;border:1px solid #7f1d1d;}
body.dark-mode .alert-info{background:#0f2038;color:#7dd3fc;border:1px solid #1e3a6e;}
body.dark-mode .alert-warning{background:#271a06;color:#fcd34d;border:1px solid #78350f;}
body.dark-mode .ltable th{color:#64748b;border-bottom:1px solid #323848;background:#1a1f2e;font-weight:600;letter-spacing:.04em;}
body.dark-mode .ltable td{border-bottom:1px solid #242936;color:#e2e8f0;}
body.dark-mode .ltable tr:hover td{background:#1e2438;}
body.dark-mode .empty{color:#4a5568;}
body.dark-mode .conn-bar.connected{background:#052e1a;color:#34d399;border:1px solid #065f46;}
body.dark-mode .conn-bar.disconnected{background:#2d1515;color:#fca5a5;border:1px solid #7f1d1d;}
body.dark-mode .conn-dot{border-color:#0f1117;}
body.dark-mode .modal-bg{background:rgba(0,0,0,0.7);backdrop-filter:blur(2px);}
body.dark-mode .modal{background:#1a1f2e;border:1px solid #323848;box-shadow:0 24px 64px rgba(0,0,0,0.7);}
body.dark-mode .modal h3{color:#e2e8f0;}
body.dark-mode .modal p{color:#94a3b8;}
body.dark-mode .modal .msub{color:#64748b;}
body.dark-mode .modal-btns{border-top:1px solid #323848;}
body.dark-mode .qr-ib{background:#242936;border-radius:8px;}
body.dark-mode .qr-row span:first-child{color:#64748b;}
body.dark-mode .qr-wrap img{border:1px solid #323848;border-radius:8px;}
body.dark-mode .svr-modal-bg{background:rgba(0,0,0,0.7);backdrop-filter:blur(2px);}
body.dark-mode .svr-modal{background:#1a1f2e;border:1px solid #323848;box-shadow:0 24px 64px rgba(0,0,0,0.6);}
body.dark-mode .svr-modal h3{color:#e2e8f0;}
body.dark-mode .svr-modal p{color:#94a3b8;}
body.dark-mode .toggle-row{border-bottom:1px solid #323848;}
body.dark-mode .toggle-row:last-child{border-bottom:none;}
body.dark-mode .toggle-label{color:#e2e8f0;}
body.dark-mode .toggle-desc{color:#64748b;}
body.dark-mode .toggle-slider{background:#3d4558;}
body.dark-mode input:checked+.toggle-slider{background:#0284c7;}
body.dark-mode .warn-box{background:#271a06;border:1px solid #78350f;color:#fcd34d;}
body.dark-mode .info-box{background:#0f2038;border:1px solid #1e3a6e;color:#7dd3fc;}
body.dark-mode .wa-prev{background:#0a1525!important;border:1px solid #1e3355!important;color:#dde3ee!important;border-radius:8px!important;}
body.dark-mode .email-prev{background:#0a1525!important;border:1px solid #1e3355!important;color:#dde3ee!important;border-radius:8px!important;}
body.dark-mode #srv-info{background:#052e1a;border:1px solid #065f46;color:#34d399;}
body.dark-mode #email-admin-list{background:#242936;border:1px solid #323848;}
body.dark-mode #add-user-form{background:#242936;border:1px solid #323848;}
body.dark-mode #login-screen{background:#0f1117;}
body.dark-mode #login-screen>div{background:#1a1f2e;border:1px solid #323848;box-shadow:0 8px 40px rgba(0,0,0,0.6);}
body.dark-mode #login-screen h2{color:#e2e8f0;}
body.dark-mode #login-screen p{color:#64748b;}
body.dark-mode #login-screen label{color:#94a3b8;}
body.dark-mode #forgot-bg{background:#0f1117;}
body.dark-mode #forgot-bg>div{background:#1a1f2e;border:1px solid #323848;box-shadow:0 8px 40px rgba(0,0,0,0.6);}
body.dark-mode #forgot-bg h2{color:#e2e8f0;}
body.dark-mode #forgot-bg p{color:#64748b;}
body.dark-mode #reset-bg{background:#0f1117;}
body.dark-mode #reset-bg>div{background:#1a1f2e;border:1px solid #323848;box-shadow:0 8px 40px rgba(0,0,0,0.6);}
body.dark-mode #reset-bg h2{color:#e2e8f0;}
body.dark-mode #chpass-bg>div{background:#1a1f2e;border:1px solid #323848;box-shadow:0 8px 40px rgba(0,0,0,0.6);}
body.dark-mode #chpass-bg h3{color:#e2e8f0;}
body.dark-mode #chpass-bg p{color:#64748b;}
body.dark-mode #testing-mode-bg>div{background:#1a1f2e;border:1px solid #323848;box-shadow:0 8px 40px rgba(0,0,0,0.6);}
body.dark-mode #testing-mode-bg h3{color:#e2e8f0;}
body.dark-mode #testing-mode-bg p{color:#64748b;}
body.dark-mode #reset-backup-bg>div{background:#1a1f2e;border:1px solid #323848;box-shadow:0 8px 40px rgba(0,0,0,0.6);}
body.dark-mode #reset-backup-bg h3{color:#e2e8f0;}
body.dark-mode a{color:#38bdf8;}
body.dark-mode a:hover{color:#7dd3fc;}
body.dark-mode .scan-result-inner.ok{background:#059669;}
body.dark-mode .scan-result-inner.warn{background:#b45309;}
body.dark-mode .scan-result-inner.err{background:#dc2626;}
body.dark-mode .scan-result-name{color:#fff;}
body.dark-mode .scan-result-sub{color:rgba(255,255,255,0.8);}
body.dark-mode .src{background:#0a1a10;border:1px solid #065f46;}
body.dark-mode .src.ie{background:#1a0a0a;border:1px solid #991b1b;}
body.dark-mode .src.iw{background:#1a1206;border:1px solid #92400e;}
body.dark-mode #src-sb{color:#64748b !important;}
body.dark-mode .smode{background:#242936;border:1px solid #3d4558;color:#94a3b8;}
body.dark-mode .smode:hover{background:#2d3344;}
body.dark-mode .smode.ae{background:#052e1a;border:1px solid #065f46;color:#34d399;}
body.dark-mode .smode.ax{background:#2d1515;border:1px solid #7f1d1d;color:#fca5a5;}
body.dark-mode .card[style*="dashed"]{border:2px dashed #3d4558 !important;}
body.dark-mode .ip-stat.ok{background:#052e1a;color:#34d399;border:1px solid #065f46;}
body.dark-mode .ip-stat.fail{background:#2d1515;color:#fca5a5;border:1px solid #7f1d1d;}
body.dark-mode .ip-stat.testing{background:#271a06;color:#fcd34d;border:1px solid #78350f;}
body.dark-mode .ac-item{background:#1a1f2e;border:1px solid #323848;color:#e2e8f0;}
body.dark-mode .ac-item:hover{background:#242936;border-color:#3d4558;}
body.dark-mode .vi-item{background:#1a1f2e;border:1px solid #323848;}
body.dark-mode .vinum{background:#e2e8f0;color:#0f1117;font-weight:700;}
body.dark-mode .vidur{color:#64748b;}
body.dark-mode #vh-content{color:#94a3b8;}
body.dark-mode .cc-btn{background:#242936;border:1px solid #3d4558;color:#e2e8f0;}
body.dark-mode .cc-btn:hover{border-color:#4d5a70;}
body.dark-mode .cc-panel{background:#1a1f2e;border:1px solid #3d4558;box-shadow:0 8px 24px rgba(0,0,0,0.5);}
body.dark-mode .cc-search{background:#1a1f2e;border-bottom:1px solid #323848;color:#e2e8f0;}
body.dark-mode .cc-search::placeholder{color:#4a5568;}
body.dark-mode .cc-item{color:#e2e8f0;}
body.dark-mode .cc-item:hover{background:#242936;}
body.dark-mode .cc-item.cc-pinned{background:#0a1a10;border-bottom:2px solid #323848;}
body.dark-mode .cc-item.cc-pinned:hover{background:#052e1a;}
body.dark-mode .cc-none{color:#4a5568;}
body.dark-mode .filter-row input,body.dark-mode .filter-row select{background:#242936;border:1px solid #3d4558;color:#e2e8f0;}
body.dark-mode .pwa-banner{background:#1a1f2e;border-bottom:1px solid #323848;color:#94a3b8;}
body.dark-mode ::-webkit-scrollbar{width:6px;height:6px;}
body.dark-mode ::-webkit-scrollbar-track{background:#1a1f2e;}
body.dark-mode ::-webkit-scrollbar-thumb{background:#3d4558;border-radius:99px;}
body.dark-mode ::-webkit-scrollbar-thumb:hover{background:#4d5a70;}
body.dark-mode #user-mgmt-section>div[style*="border-top"]{border-top-color:#323848!important;}
body.dark-mode [style*="border-top:1px solid #e8e7e2"]{border-top-color:#323848!important;}
body.dark-mode [style*="border-bottom:1px solid #e8e7e2"]{border-bottom-color:#323848!important;}
body.dark-mode #last-visitor-sync-display,body.dark-mode #last-user-sync-display,body.dark-mode #last-push-display{color:#64748b!important;}
body.dark-mode [style*="color:#aaa"]{color:#64748b!important;}
body.dark-mode p[style*="color:#666"],body.dark-mode div[style*="color:#666"],body.dark-mode span[style*="color:#666"]{color:#64748b!important;}
body.dark-mode p[style*="color:#888"],body.dark-mode span[style*="color:#888"],body.dark-mode div[style*="font-size:12px;color:#888"]{color:#64748b!important;}
body.dark-mode [style*="color:#d97706"]{color:#fbbf24!important;}
body.dark-mode #edit-user-role-note{color:#fbbf24!important;}
body.dark-mode #edit-user-admin-note{color:#fbbf24!important;}
body.dark-mode .cam-select-row label{color:#64748b!important;}
body.dark-mode .card-title[style*=""],body.dark-mode .card>div[style*="border:2px dashed"]{border-color:#3d4558!important;}
body.dark-mode #ov-alert{margin-top:8px;}
body.dark-mode #rep-day-filter{background:#242936;border:1px solid #3d4558;color:#e2e8f0;}
body.dark-mode .modal label[style*="color:#666"]{color:#94a3b8!important;}
body.dark-mode .modal label[style*="color:#888"]{color:#94a3b8!important;}
body.dark-mode #login-screen a,body.dark-mode #forgot-bg a,body.dark-mode #reset-bg a{color:#38bdf8!important;}
body.dark-mode #login-screen label[style],body.dark-mode #forgot-bg label[style],body.dark-mode #reset-bg label[style],body.dark-mode #chpass-bg label[style],body.dark-mode #testing-mode-bg label[style],body.dark-mode #reset-backup-bg label[style]{color:#94a3b8!important;}
body.dark-mode button[style*="background:none"]{color:#64748b!important;background:none!important;}
body.dark-mode #push-tier1-btn{background:#242936;color:#94a3b8;border:1px solid #3d4558;}
body.dark-mode [style*="All timestamps stored in UTC"]{color:#64748b!important;}
body.dark-mode #wa-api-section p{color:#94a3b8!important;}
body.dark-mode [style*="font-size:11px;color:#888;font-weight:600"]{color:#64748b!important;}
body.dark-mode .ssec p[style*="color:#666"]{color:#94a3b8!important;}
body.dark-mode #vis-banner{background:#0f2038;border:1px solid #1e3a6e;color:#7dd3fc;}
body.dark-mode .cam-info{color:#94a3b8!important;}
body.dark-mode .qr-row{color:#e2e8f0;}
body.dark-mode .badge[style*="background:#dbeafe"]{background:#0f1e3a!important;color:#3b82f6!important;border:1px solid #1e3a7a!important;}
body.dark-mode .badge[style*="background:#dcfce7"]{background:#0a1a14!important;color:#3db87a!important;border:1px solid #143828!important;}
body.dark-mode .badge[style*="background:#fef9c3"]{background:#1a1508!important;color:#8a7030!important;border:1px solid #2e2510!important;}
body.dark-mode .badge[style*="background:#ede9fe"]{background:#160f28!important;color:#7a5abf!important;border:1px solid #2a1850!important;}
body.dark-mode .badge[style*="background:#fee2e2"]{background:#1f0a0a!important;color:#8a3a3a!important;border:1px solid #3a1515!important;}
body.dark-mode #users-list [style*="color:#888"],body.dark-mode #users-list [style*="color:#666"]{color:#64748b!important;}
body.dark-mode #reset-backup-bg .btn-outline{background:#242936;border-color:#3d4558;color:#94a3b8;}
body.dark-mode #srv-info{background:#052e1a!important;border:1px solid #065f46!important;color:#34d399!important;}
body.dark-mode #email-admin-list [style*="color:#888"]{color:#64748b!important;}
body.dark-mode .scanner-box{background:#0f1117;border:1px solid #323848;}
body.dark-mode .topbar-conn{color:#94a3b8;}
body.dark-mode .banner-warn{background:#271a06;border:1px solid #78350f;color:#fcd34d;}
body.dark-mode .banner-testing{background:#271a06;border:2px solid #92400e;color:#fcd34d;}
body.dark-mode .banner-failover-amber{background:#271a06;border:1px solid #92400e;color:#fcd34d;}
body.dark-mode .banner-failover-red{background:#2d1515;border:1px solid #7f1d1d;color:#fca5a5;}
body.dark-mode .container{padding-top:12px;}
body.dark-mode .panel{padding-top:2px;}
body.dark-mode .card{background:#1a1f2e;border:1px solid #2a3147;border-radius:10px;box-shadow:0 2px 8px rgba(0,0,0,0.28),0 0 0 0.5px rgba(255,255,255,0.03) inset;}
body.dark-mode .dc{background:#1a1f2e;border:1px solid #2a3147;border-radius:10px;box-shadow:0 2px 8px rgba(0,0,0,0.28);}
body.dark-mode .card-title{color:#e2e8f0;font-size:13px;font-weight:700;letter-spacing:.02em;border-bottom:1px solid #242936;padding-bottom:10px;margin-bottom:12px;}
body.dark-mode .ssec h3{color:#94a3b8;font-size:10.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;border-bottom:1px solid #242936;padding-bottom:8px;margin-bottom:14px;}
body.dark-mode .ssec{border-bottom:1px solid #242936;padding-bottom:16px;margin-bottom:16px;}
body.dark-mode .ssec:last-of-type{border-bottom:none;}
body.dark-mode input,body.dark-mode select,body.dark-mode textarea{background:#0f1117;border:1px solid #2a3147;color:#e2e8f0;border-radius:7px;transition:border-color 0.15s,box-shadow 0.15s;}
body.dark-mode input:focus,body.dark-mode select:focus,body.dark-mode textarea:focus{border-color:#38bdf8;background:#0f1117;box-shadow:0 0 0 3px rgba(56,189,248,0.1);outline:none;}
body.dark-mode input::placeholder,body.dark-mode textarea::placeholder{color:#3d4558;}
body.dark-mode .srow label{color:#64748b;font-size:11.5px;font-weight:600;letter-spacing:.03em;text-transform:uppercase;}
body.dark-mode .dm-toggle-panel{background:#242936!important;border:1px solid #2a3147!important;border-radius:8px;box-shadow:0 1px 3px rgba(0,0,0,0.2) inset;}
body.dark-mode .toggle-row{border-bottom:1px solid #1e2535;padding:10px 0;}
body.dark-mode .toggle-row:last-child{border-bottom:none;padding-bottom:4px;}
body.dark-mode .toggle-label{color:#cbd5e1;font-size:13px;font-weight:600;}
body.dark-mode .toggle-desc{color:#4a5568;font-size:11.5px;margin-top:2px;}
body.dark-mode .toggle-slider{background:#2d3344;border:1px solid #3d4558;transition:background 0.2s;}
body.dark-mode input:checked+.toggle-slider{background:#0284c7;border-color:#0369a1;}
body.dark-mode .btn-dark{background:#e2e8f0;color:#0f1117;font-weight:700;letter-spacing:.02em;box-shadow:0 1px 3px rgba(0,0,0,0.3);}
body.dark-mode .btn-dark:hover{background:#f1f5f9;box-shadow:0 2px 6px rgba(0,0,0,0.35);}
body.dark-mode .btn-outline{background:#1a1f2e;color:#94a3b8;border:1px solid #2a3147;font-weight:500;}
body.dark-mode .btn-outline:hover{background:#242936;color:#e2e8f0;border-color:#3d4558;}
body.dark-mode .btn-red{background:#7f1d1d;color:#fecaca;border:1px solid #991b1b;font-weight:600;}
body.dark-mode .btn-red:hover{background:#991b1b;}
body.dark-mode .btn-green{background:#052e1a;color:#34d399;border:1px solid #065f46;font-weight:600;}
body.dark-mode .btn-green:hover{background:#065f46;}
body.dark-mode #users-list>div{background:#0f1117;border:1px solid #242936;border-radius:8px;padding:8px 12px;margin-bottom:6px;}
body.dark-mode #users-list>div:last-child{margin-bottom:0;}
body.dark-mode .badge{font-size:10px;font-weight:700;letter-spacing:.04em;border-radius:99px;padding:2px 9px;}
body.dark-mode .vrow{background:#1a1f2e;border:1px solid #242936;border-radius:8px;transition:border-color 0.12s,background 0.12s;}
body.dark-mode .vrow:hover{background:#1e2438;border-color:#3d4558;box-shadow:0 2px 8px rgba(0,0,0,0.2);}
body.dark-mode .vn{color:#e2e8f0;font-weight:600;}
body.dark-mode .vm{color:#4a5568;font-size:12px;}
body.dark-mode .metric{background:#1a1f2e;border:1px solid #2a3147;border-radius:10px;box-shadow:0 2px 6px rgba(0,0,0,0.2);}
body.dark-mode .metric-value{color:#e2e8f0;font-weight:700;}
body.dark-mode .metric-label{color:#4a5568;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;}
body.dark-mode .tabs{background:#1a1f2e;border-bottom:1px solid #242936;padding:4px 6px;}
body.dark-mode .tab{color:#4a5568;font-weight:500;border-radius:6px;transition:background 0.12s,color 0.12s;padding:5px 12px;}
body.dark-mode .tab:hover{color:#94a3b8;background:#242936;}
body.dark-mode .tab.active{background:#242936;color:#e2e8f0;font-weight:600;box-shadow:0 0 0 1px #3d4558;}
body.dark-mode .conn-bar.connected{background:#042d1a;color:#34d399;border:1px solid #065f46;border-radius:8px;font-weight:600;}
body.dark-mode .conn-bar.disconnected{background:#2d1515;color:#fca5a5;border:1px solid #7f1d1d;border-radius:8px;}
body.dark-mode .topbar{background:#1a1f2e;border-bottom:1px solid #242936;box-shadow:0 1px 0 #242936;}
body.dark-mode .topbar h1{color:#e2e8f0;font-size:15px;font-weight:700;letter-spacing:.01em;}
body.dark-mode .ds{background:#0f1117;color:#4a5568;border-top:1px solid #242936;border-radius:0 0 9px 9px;font-size:12px;padding:8px 12px;}
body.dark-mode .info-box{background:#0a1929;border:1px solid #1e3a6e;border-left:3px solid #38bdf8;color:#7dd3fc;border-radius:7px;}
body.dark-mode .warn-box{background:#1c1208;border:1px solid #78350f;border-left:3px solid #f59e0b;color:#fcd34d;border-radius:7px;}
body.dark-mode .smode{border-radius:99px;font-weight:700;font-size:12px;letter-spacing:.05em;padding:6px 18px;transition:all 0.15s;}
body.dark-mode .smode.ae{background:#042d1a;border:1px solid #065f46;color:#34d399;box-shadow:0 0 0 1px #065f46 inset;}
body.dark-mode .smode.ax{background:#2d1515;border:1px solid #7f1d1d;color:#fca5a5;}
body.dark-mode .modal{background:#1a1f2e;border:1px solid #2a3147;border-radius:14px;box-shadow:0 32px 80px rgba(0,0,0,0.75),0 0 0 0.5px rgba(255,255,255,0.04) inset;}
body.dark-mode .modal h3{color:#e2e8f0;font-size:16px;font-weight:700;border-bottom:1px solid #242936;padding-bottom:10px;margin-bottom:12px;}
body.dark-mode .modal-btns{border-top:1px solid #242936;padding-top:12px;margin-top:12px;}
body.dark-mode #login-screen>div,body.dark-mode #forgot-bg>div,body.dark-mode #reset-bg>div,body.dark-mode #chpass-bg>div,body.dark-mode #testing-mode-bg>div,body.dark-mode #reset-backup-bg>div{background:#1a1f2e;border:1px solid #2a3147;border-radius:14px;box-shadow:0 16px 48px rgba(0,0,0,0.65);}
body.dark-mode .alert-success{background:#042d1a;border:1px solid #065f46;border-left:3px solid #34d399;color:#34d399;}
body.dark-mode .alert-error{background:#2d1515;border:1px solid #7f1d1d;border-left:3px solid #f87171;color:#fca5a5;}
body.dark-mode .alert-info{background:#0a1929;border:1px solid #1e3a6e;border-left:3px solid #38bdf8;color:#7dd3fc;}
body.dark-mode .alert-warning{background:#1c1208;border:1px solid #78350f;border-left:3px solid #f59e0b;color:#fcd34d;}
body.dark-mode .b-in{background:#042d1a;color:#34d399;border:1px solid #065f46;font-weight:700;font-size:10px;letter-spacing:.04em;}
body.dark-mode .b-out{background:#1a2030;color:#64748b;border:1px solid #2a3147;font-weight:600;}
body.dark-mode .b-reg{background:#0a1929;color:#7dd3fc;border:1px solid #1e3a6e;font-weight:600;}
body.dark-mode .empty{color:#2a3147;font-style:italic;}
body.dark-mode .section-head{color:#3d4558;font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;}
body.dark-mode{background:#111318!important;}
body.dark-mode .card{background:#1c2130!important;border:1px solid #252d3d!important;border-radius:12px!important;box-shadow:0 4px 24px rgba(0,0,0,0.35)!important;}
body.dark-mode .vrow{background:#13181f!important;border:1px solid #252d3d!important;border-radius:8px!important;margin-bottom:6px!important;padding:10px 14px!important;transition:border-color 0.12s,background 0.12s;}
body.dark-mode .vrow:hover{background:#1a2030!important;border-color:#3d4f6a!important;box-shadow:0 2px 8px rgba(0,0,0,0.25);}
body.dark-mode .vn{color:#dde3ee!important;font-weight:600;font-size:13px;}
body.dark-mode .vm{color:#64748b!important;font-size:11px;margin-top:2px;}
body.dark-mode .dm-toggle-panel{background:transparent!important;border:none!important;border-top:1px solid #252d3d!important;border-radius:0!important;box-shadow:none!important;padding-top:12px!important;padding-left:0!important;padding-right:0!important;margin-top:8px!important;}
body.dark-mode .dm-toggle-panel .toggle-label{color:#c8d0e0!important;font-size:13px;font-weight:600;}
body.dark-mode .dm-toggle-panel .toggle-desc{color:#3d4f6a!important;font-size:12px;}
body.dark-mode .dm-toggle-panel .toggle-row{border-bottom:none!important;padding:6px 0!important;}
body.dark-mode .ssec h3{color:#4a5a72!important;font-size:10px!important;font-weight:700!important;letter-spacing:.12em!important;text-transform:uppercase!important;border-bottom:1px solid #1e2535!important;padding-bottom:10px!important;margin-bottom:16px!important;}
body.dark-mode .srow label{color:#3d4f6a!important;font-size:10.5px!important;font-weight:700!important;letter-spacing:.06em!important;text-transform:uppercase!important;}
body.dark-mode input,body.dark-mode select,body.dark-mode textarea{background:#13181f!important;border:1px solid #252d3d!important;color:#dde3ee!important;border-radius:7px!important;}
body.dark-mode input:focus,body.dark-mode select:focus,body.dark-mode textarea:focus{border-color:#3b82f6!important;box-shadow:0 0 0 3px rgba(59,130,246,0.12)!important;outline:none!important;}
body.dark-mode input::placeholder,body.dark-mode textarea::placeholder{color:#3a4560!important;font-style:italic;}
body.dark-mode input:not(:placeholder-shown),body.dark-mode textarea:not(:placeholder-shown){color:#c8d0e0!important;background:#13181f!important;border-color:#2e3a52!important;}
body.dark-mode input:-webkit-autofill,body.dark-mode input:-webkit-autofill:hover,body.dark-mode input:-webkit-autofill:focus{-webkit-box-shadow:0 0 0 1000px #13181f inset!important;-webkit-text-fill-color:#c8d0e0!important;border-color:#2e3a52!important;}
body.dark-mode #sync-visitors-btn,body.dark-mode #sync-users-btn,body.dark-mode #push-tier1-btn{background:#13181f;border:1px solid #252d3d;color:#94a3b8;border-radius:6px;}
body.dark-mode #sync-visitors-btn:hover,body.dark-mode #sync-users-btn:hover,body.dark-mode #push-tier1-btn:hover{background:#1c2130;border-color:#3d4f6a;color:#c8d0e0;}
body.dark-mode .topbar{background:#1c2130!important;border-bottom:1px solid #1e2535!important;}
body.dark-mode .topbar h1{color:#dde3ee!important;font-weight:700;}
body.dark-mode .tabs{background:#1c2130!important;border-bottom:1px solid #1e2535!important;padding:6px 8px!important;}
body.dark-mode .tab{color:#3d4f6a!important;font-weight:500;}
body.dark-mode .tab:hover{color:#94a3b8!important;background:#252d3d!important;}
body.dark-mode .tab.active{background:#252d3d!important;color:#dde3ee!important;font-weight:600!important;box-shadow:0 0 0 1px #3d4f6a!important;}
body.dark-mode .conn-bar.connected{background:#071a0f!important;color:#3db87a!important;border:1px solid #0f3d1f!important;border-radius:8px!important;font-size:12px!important;font-weight:500!important;}
body.dark-mode .conn-bar.connected .conn-dot{background:#3db87a!important;box-shadow:0 0 5px rgba(61,184,122,0.25)!important;}
body.dark-mode .conn-bar.disconnected{background:#1a0808!important;color:#f87171!important;border:1px solid #3d0f0f!important;border-radius:8px!important;}
body.dark-mode .conn-bar.disconnected .conn-dot{background:#ef4444!important;box-shadow:0 0 6px rgba(239,68,68,0.35)!important;}
body.dark-mode .badge{border-radius:4px!important;font-size:10px!important;font-weight:700!important;padding:2px 8px!important;letter-spacing:.03em;}
body.dark-mode .btn-outline{background:#13181f!important;border:1px solid #252d3d!important;color:#94a3b8!important;}
body.dark-mode .btn-outline:hover{background:#1c2130!important;border-color:#3d4f6a!important;color:#dde3ee!important;}
body.dark-mode .btn-dark{background:#e2e8f0!important;color:#111318!important;font-weight:700!important;}
body.dark-mode .btn-red{background:#7f1d1d!important;color:#fca5a5!important;border:1px solid #991b1b!important;}
body.dark-mode .btn-red:hover{background:#991b1b!important;}
body.dark-mode .info-box{background:#0a1525!important;border:1px solid #1e3355!important;border-left:3px solid #3b82f6!important;color:#60a5fa!important;}
body.dark-mode .warn-box{background:#1f1508!important;border:1px solid #3d2a0a!important;border-left:3px solid #92600a!important;color:#b07d30!important;font-size:12px!important;}
body.dark-mode .ssec{border-bottom:1px solid #1e2535!important;padding-bottom:20px!important;margin-bottom:20px!important;}
body.dark-mode .ssec:last-of-type{border-bottom:none!important;}
body.dark-mode .dc{background:#1c2130!important;border:1px solid #252d3d!important;border-radius:12px!important;}
body.dark-mode .ds{background:#13181f!important;color:#3d4f6a!important;border-top:1px solid #1e2535!important;}
body.dark-mode .modal{background:#1c2130!important;border:1px solid #252d3d!important;border-radius:14px!important;box-shadow:0 40px 100px rgba(0,0,0,0.8)!important;}
body.dark-mode .modal h3{color:#dde3ee!important;border-bottom:1px solid #1e2535!important;}
body.dark-mode .modal-btns{border-top:1px solid #1e2535!important;}
body.dark-mode .svr-modal{background:#1c2130!important;border:1px solid #252d3d!important;}
body.dark-mode #login-screen{background:#0a0c10!important;}
body.dark-mode #forgot-bg{background:#0a0c10!important;display:flex;}
body.dark-mode #reset-bg{background:#0a0c10!important;display:flex;}
body.dark-mode .dm-auth-card{background:#1c2130!important;border:1px solid #252d3d!important;border-radius:16px!important;box-shadow:0 24px 80px rgba(0,0,0,0.7)!important;}
body.dark-mode .dm-auth-card h2,body.dark-mode .dm-auth-card h3{color:#dde3ee!important;}
body.dark-mode .dm-auth-card p{color:#4a5a72!important;}
body.dark-mode .dm-auth-card label{color:#4a5a72!important;font-size:11.5px!important;font-weight:600!important;}
body.dark-mode .dm-auth-card a{color:#38bdf8!important;border-bottom-color:#1e3a6e!important;}
body.dark-mode .dm-auth-card a:hover{color:#7dd3fc!important;}
body.dark-mode #chpass-bg>div,body.dark-mode #testing-mode-bg>div,body.dark-mode #reset-backup-bg>div{background:#1c2130!important;border:1px solid #252d3d!important;border-radius:16px!important;box-shadow:0 24px 80px rgba(0,0,0,0.7)!important;}
body.dark-mode #chpass-bg h3,body.dark-mode #testing-mode-bg h3,body.dark-mode #reset-backup-bg h3{color:#dde3ee!important;}
body.dark-mode #chpass-bg p,body.dark-mode #testing-mode-bg p,body.dark-mode #reset-backup-bg p{color:#4a5a72!important;}
body.dark-mode #chpass-bg label,body.dark-mode #testing-mode-bg label,body.dark-mode #reset-backup-bg label{color:#4a5a72!important;}
body.dark-mode .alert-success{background:#071f10!important;border:1px solid #0a4020!important;border-left:3px solid #34d399!important;color:#34d399!important;}
body.dark-mode .alert-error{background:#1f0a0a!important;border:1px solid #4a1515!important;border-left:3px solid #f87171!important;color:#fca5a5!important;}
body.dark-mode .alert-info{background:#0a1525!important;border:1px solid #1e3355!important;border-left:3px solid #38bdf8!important;color:#7dd3fc!important;}
body.dark-mode .alert-warning{background:#1a1005!important;border:1px solid #5c3008!important;border-left:3px solid #f59e0b!important;color:#fcd34d!important;}
body.dark-mode .b-in{background:#071f10!important;color:#34d399!important;border:1px solid #0a4020!important;}
body.dark-mode .b-out{background:#13181f!important;color:#4a5a72!important;border:1px solid #252d3d!important;}
body.dark-mode .b-reg{background:#0a1525!important;color:#7dd3fc!important;border:1px solid #1e3355!important;}
body.dark-mode [style*="color:#d97706"]{color:#78716c!important;font-size:11px!important;font-weight:400!important;}
body.dark-mode .info-box{background:#0f1620!important;border:1px solid #1a2535!important;border-left:2px solid #2a3f5f!important;color:#4a6080!important;font-size:12px!important;}
body.dark-mode .dm-auth-card input[type="text"],body.dark-mode .dm-auth-card input[type="email"],body.dark-mode .dm-auth-card input[type="password"]{width:100%!important;box-sizing:border-box!important;}
body.dark-mode .dm-auth-card .btn-dark{background:#2563eb!important;color:#ffffff!important;font-weight:700!important;border:none!important;box-shadow:0 2px 8px rgba(37,99,235,0.35)!important;}
body.dark-mode .dm-auth-card .btn-dark:hover{background:#1d4ed8!important;box-shadow:0 4px 12px rgba(37,99,235,0.45)!important;}
body.dark-mode .toggle-slider{background:#252d3d!important;}
body.dark-mode input:checked+.toggle-slider{background:#2563eb!important;}
body.dark-mode #barcode-inp+button{background:#242936!important;color:#c8d0e0!important;border:1px solid #3d4f6a!important;}
body.dark-mode #barcode-inp+button:hover{background:#2d3a52!important;color:#e2e8f0!important;}
body.dark-mode button[onclick="registerVisitor()"]{background:#242936!important;color:#c8d0e0!important;border:1px solid #3d4f6a!important;}
body.dark-mode button[onclick="registerVisitor()"]:hover{background:#2d3a52!important;color:#e2e8f0!important;}
body.dark-mode .form-grid{width:100%;box-sizing:border-box;}
body.dark-mode .form-grid input,body.dark-mode .form-grid select,body.dark-mode .form-grid textarea{width:100%;box-sizing:border-box;min-width:0;}
body.dark-mode .fg{min-width:0;overflow:hidden;}
body.dark-mode{color:#c8d0e0!important;}
body.dark-mode .vn{color:#c8d0e0!important;}
body.dark-mode .card-title{color:#c8d0e0!important;}
body.dark-mode .dc h3{color:#c8d0e0!important;}
body.dark-mode .topbar h1{color:#c8d0e0!important;}
body.dark-mode .modal h3{color:#c8d0e0!important;}
body.dark-mode .svr-modal h3{color:#c8d0e0!important;}
body.dark-mode .toggle-label{color:#c8d0e0!important;}
body.dark-mode .dm-toggle-panel .toggle-label{color:#c8d0e0!important;}
body.dark-mode .tab.active{color:#c8d0e0!important;}
body.dark-mode input,body.dark-mode select,body.dark-mode textarea{color:#c8d0e0!important;}
body.dark-mode input:not(:placeholder-shown),body.dark-mode textarea:not(:placeholder-shown){color:#c8d0e0!important;background:#1a2038!important;}
body.dark-mode .ltable td{color:#c8d0e0!important;}
body.dark-mode .ac-item{color:#c8d0e0!important;}
body.dark-mode .cc-item{color:#c8d0e0!important;}
body.dark-mode .cc-search{color:#c8d0e0!important;}
body.dark-mode .cc-btn{color:#c8d0e0!important;}
body.dark-mode .filter-row input,body.dark-mode .filter-row select{color:#c8d0e0!important;}
body.dark-mode .dm-auth-card h2,body.dark-mode .dm-auth-card h3{color:#c8d0e0!important;}
body.dark-mode #chpass-bg h3,body.dark-mode #testing-mode-bg h3,body.dark-mode #reset-backup-bg h3{color:#c8d0e0!important;}
body.dark-mode .qr-row{color:#c8d0e0!important;}
body.dark-mode .wa-prev,body.dark-mode .email-prev{color:#c8d0e0!important;}
body.dark-mode .metric-value.green{color:#3db87a!important;}
body.dark-mode .b-in{background:#071f10!important;color:#3db87a!important;border:1px solid #0a4020!important;}
body.dark-mode .btn-green{background:#052e1a!important;color:#3db87a!important;border:1px solid #0a4020!important;}
body.dark-mode .btn-green:hover{background:#0a4020!important;}
body.dark-mode .smode.ae{background:#052e1a!important;border:1px solid #0a4020!important;color:#3db87a!important;}
body.dark-mode .alert-success{background:#071f10!important;border:1px solid #0a4020!important;border-left:3px solid #3db87a!important;color:#3db87a!important;}
body.dark-mode .ip-stat.ok{background:#071f10!important;color:#3db87a!important;border:1px solid #0a4020!important;}
body.dark-mode #srv-info{background:#071f10!important;border:1px solid #0a4020!important;color:#3db87a!important;}
body.dark-mode .badge[style*="background:#dcfce7"]{background:#071f10!important;color:#3db87a!important;border:1px solid #0a4020!important;}
body.dark-mode .badge[style*="color:#0284c7"],body.dark-mode .badge[style*="color:#0369a1"],body.dark-mode .badge[style*="color:#1e40af"],body.dark-mode span[style*="color:#0284c7"],body.dark-mode span[style*="color:#0369a1"]{color:#3b82f6!important;}
body.dark-mode .badge[style*="background:#dbeafe"],body.dark-mode .badge[style*="background:#e0f2fe"],body.dark-mode span.badge[style*="background:#bfdbfe"]{background:#0f1e3a!important;border:1px solid #1e3a7a!important;color:#3b82f6!important;}
body.dark-mode .badge[style*="background:#cffafe"],body.dark-mode .badge[style*="background:#a5f3fc"],body.dark-mode span[style*="background:#cffafe"]{background:#0a1a25!important;border:1px solid #1a3a4a!important;color:#4a8a9a!important;}
body.dark-mode .badge[style*="background:#d1fae5"],body.dark-mode span[style*="background:#d1fae5"]{background:#071f10!important;border:1px solid #0a4020!important;color:#3db87a!important;}
body.dark-mode .badge[style*="background:#f3f4f6"],body.dark-mode span[style*="background:#f3f4f6"]{background:#13181f!important;border:1px solid #252d3d!important;color:#4a5a72!important;}
body.dark-mode [style*="color:#065f46"]{color:#3db87a!important;}
body.dark-mode [style*="color:#1e40af"]{color:#3b82f6!important;}
body.dark-mode .btn.btn-green.btn-sm{background:#052e1a!important;color:#3db87a!important;border:1px solid #0a4020!important;}
body.dark-mode .btn.btn-red.btn-sm{background:#7f1d1d!important;color:#fca5a5!important;border:1px solid #991b1b!important;}
body.dark-mode .badge.b-in{background:#071f10!important;color:#3db87a!important;border:1px solid #0a4020!important;}
body.dark-mode span.badge[style]{background:#0f1e3a!important;color:#3b82f6!important;border:1px solid #1e3a7a!important;}
body.dark-mode span.badge[style*="background:#d1fae5"]{background:#071f10!important;color:#3db87a!important;border:1px solid #0a4020!important;}
body.dark-mode span.badge[style*="background:#f3f4f6"]{background:#13181f!important;color:#4a5a72!important;border:1px solid #252d3d!important;}
body.dark-mode span.badge[style*="background:#fef3c7"]{background:#1a1005!important;color:#8a7030!important;border:1px solid #2e2510!important;}
body.dark-mode span.badge[style*="065f46"]{background:#071f10!important;color:#3db87a!important;border:1px solid #0a4020!important;}