*{box-sizing:border-box}html,body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;background:#f5f7fb;color:#172033}button,input{font:inherit}.hidden{display:none!important}.muted{color:#79849a}.login-shell{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 20% 20%,#e7f0ff,transparent 35%),radial-gradient(circle at 85% 15%,#edf4ff,transparent 32%),#f7f9fd}.login-card{width:min(430px,100%);background:#fff;border:1px solid #e7ebf3;border-radius:22px;padding:34px;box-shadow:0 24px 70px rgba(32,61,112,.12)}.brand-row{display:flex;gap:12px;align-items:center}.brand-mark{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;color:#fff;font-weight:800;font-size:22px;background:linear-gradient(145deg,#1976ff,#0b57d0);box-shadow:0 8px 20px rgba(25,118,255,.25)}.brand-name{font-weight:800;letter-spacing:.08em}.brand-sub{font-size:12px;color:#7c8799}.login-card h1{margin:32px 0 7px;font-size:28px}.login-card label,.form-grid label{display:block;font-size:13px;font-weight:650;margin:16px 0 7px;color:#505d73}.login-card input,.form-grid input{width:100%;border:1px solid #dfe5ef;background:#fff;border-radius:11px;padding:12px 13px;outline:none;transition:.2s}.login-card input:focus,.form-grid input:focus{border-color:#1976ff;box-shadow:0 0 0 4px rgba(25,118,255,.08)}.btn{border:1px solid #dce3ef;background:#fff;color:#26344d;border-radius:10px;padding:9px 14px;cursor:pointer;font-weight:650;transition:.2s}.btn:hover{transform:translateY(-1px);box-shadow:0 5px 14px rgba(38,52,77,.08)}.btn.primary{background:#156ff3;border-color:#156ff3;color:#fff}.btn.danger{color:#d33d3d;border-color:#ffd0d0;background:#fff7f7}.btn.small{padding:6px 9px;font-size:12px}.btn.wide{width:100%;margin-top:24px;padding:12px}.error{color:#d93c3c;font-size:13px;margin-top:10px;min-height:18px}.app-shell{display:flex;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:246px;background:#0f1d34;color:#dce7f8;padding:22px 16px;display:flex;flex-direction:column}.side-brand{padding:4px 8px 24px;border-bottom:1px solid rgba(255,255,255,.08)}.side-brand .brand-name{color:#fff}.side-brand .brand-sub{color:#8fa3c2}.sidebar nav{display:flex;flex-direction:column;gap:7px;padding-top:20px}.nav{border:0;background:transparent;color:#9fb0ca;padding:12px 13px;border-radius:10px;display:flex;gap:11px;align-items:center;cursor:pointer;text-align:left}.nav:hover,.nav.active{background:#183b70;color:#fff}.side-footer{margin-top:auto;border-top:1px solid rgba(255,255,255,.08);padding:16px 6px 0;font-size:12px;color:#8fa3c2}.dot{display:inline-block;width:8px;height:8px;border-radius:99px;margin-right:5px}.online-dot{background:#33c27f;box-shadow:0 0 0 4px rgba(51,194,127,.12)}.link-btn{float:right;border:0;background:none;color:#8fa3c2;cursor:pointer;font-size:12px}.main{margin-left:246px;width:calc(100% - 246px);padding:28px}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.topbar h2{margin:0;font-size:24px}.topbar p{margin:5px 0 0;color:#7b879a;font-size:13px}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:18px}.stat{background:#fff;border:1px solid #e5eaf2;border-radius:15px;padding:20px;box-shadow:0 5px 20px rgba(27,48,84,.035)}.stat span{display:block;color:#7a8699;font-size:13px}.stat strong{display:block;font-size:30px;margin-top:10px}.panel{background:#fff;border:1px solid #e5eaf2;border-radius:15px;padding:18px;box-shadow:0 5px 20px rgba(27,48,84,.035);margin-bottom:18px}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.panel h3{margin:0 0 4px;font-size:16px}.panel p{margin:0;color:#7b879a;font-size:13px;line-height:1.7}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:980px}th,td{padding:12px 10px;border-top:1px solid #edf0f5;text-align:left;font-size:13px;vertical-align:middle}th{color:#68758b;font-size:12px;font-weight:700;background:#fafbfd}.status{display:inline-flex;align-items:center;gap:6px;font-size:12px}.status::before{content:"";width:7px;height:7px;border-radius:50%;background:#a9b1bf}.status.on{color:#1e9e67}.status.on::before{background:#2cc67b}.status.off{color:#8a93a4}.device-name{font-weight:700}.sub{display:block;color:#8d97a9;font-size:11px;margin-top:3px}.pill{display:inline-block;border-radius:999px;padding:4px 8px;background:#eef4ff;color:#2a67bd;font-size:11px}.actions{display:flex;flex-wrap:wrap;gap:6px}.grid-2{display:grid;grid-template-columns:1.3fr .7fr;gap:18px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px;margin-bottom:18px}.tip-card{background:linear-gradient(145deg,#f4f8ff,#fff)}.tip-card .warn{margin-top:12px;color:#a46a18}.toast{position:fixed;right:24px;bottom:24px;max-width:360px;background:#172033;color:#fff;padding:12px 16px;border-radius:11px;opacity:0;transform:translateY(10px);pointer-events:none;transition:.25s;box-shadow:0 12px 28px rgba(23,32,51,.22);font-size:13px}.toast.show{opacity:1;transform:translateY(0)}
@media(max-width:900px){.sidebar{width:76px;padding:16px 10px}.sidebar .brand-name,.sidebar .brand-sub,.nav span,.side-footer{display:none}.side-brand{justify-content:center;padding:4px 0 18px}.nav{justify-content:center;font-size:18px}.main{margin-left:76px;width:calc(100% - 76px);padding:18px}.stats-grid{grid-template-columns:1fr 1fr}.grid-2{grid-template-columns:1fr}}
@media(max-width:560px){.main{padding:12px}.stats-grid{gap:10px}.stat{padding:15px}.stat strong{font-size:24px}.form-grid{grid-template-columns:1fr}.topbar{align-items:flex-start}.topbar .btn{padding:7px 10px}.panel{padding:12px}.login-card{padding:25px}}
.remote-modal{position:fixed;inset:0;background:rgba(8,18,35,.66);z-index:50;padding:24px;overflow:auto}.remote-shell{max-width:980px;margin:0 auto;background:#fff;border-radius:18px;border:1px solid #e1e7f0;box-shadow:0 28px 80px rgba(0,0,0,.28);overflow:hidden}.remote-head{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid #e9edf4}.remote-head h3{margin:0 0 4px}.remote-head p{margin:0;color:#7b879a;font-size:12px}.remote-body{display:grid;grid-template-columns:minmax(300px,1fr) 220px;gap:18px;padding:18px;background:#f5f7fb}.phone-stage{min-height:560px;display:grid;place-items:center;background:#111827;border-radius:16px;padding:12px;overflow:hidden}.phone-stage img{display:none;max-width:100%;max-height:720px;object-fit:contain;touch-action:none;user-select:none;border-radius:10px;background:#000;cursor:crosshair}.screen-placeholder{max-width:430px;text-align:center;color:#c4cedf;line-height:1.8;font-size:14px}.remote-tools{background:#fff;border:1px solid #e4e9f1;border-radius:14px;padding:14px;align-self:start}.remote-tools .wide{width:100%;margin-top:8px}.remote-tools p{font-size:12px;color:#7b879a;line-height:1.7;margin-top:14px}.remote-status{padding:10px;border-radius:10px;background:#f4f7fb;color:#5b687d;font-size:12px;margin-bottom:8px}.btn.remote{background:#eef5ff;color:#155fbf;border-color:#cfe1fb}
@media(max-width:760px){.remote-modal{padding:8px}.remote-body{grid-template-columns:1fr}.phone-stage{min-height:420px}.remote-tools{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.remote-tools .wide{margin:0}.remote-tools p,.remote-status{grid-column:1/-1}}
