:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#1b2430;background:#f5f7fa;line-height:1.4}
*{box-sizing:border-box} body{margin:0}.topbar{display:flex;justify-content:space-between;align-items:center;padding:18px 24px;background:#fff;border-bottom:1px solid #dde3ea;position:sticky;top:0;z-index:5}.brand{font-size:22px;font-weight:800}.subbrand{font-size:12px;color:#687386;margin-top:2px}.pill{padding:7px 12px;border-radius:999px;font-size:12px;font-weight:700}.pill.online{background:#e8f7ee;color:#176b3a}.pill.offline{background:#fbecee;color:#8f2531}main{max-width:1280px;margin:0 auto;padding:22px}.card{background:#fff;border:1px solid #dde3ea;border-radius:14px;padding:18px}.auth-card{margin-bottom:24px}.grid3{display:grid;grid-template-columns:1fr 1fr auto;gap:14px;align-items:end}label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:700;color:#354052}input,select,button{font:inherit}input,select{height:42px;border:1px solid #cbd4de;border-radius:9px;padding:0 11px;background:#fff;font-size:15px}button{min-height:42px;border:1px solid #cbd4de;border-radius:9px;background:#fff;padding:0 14px;cursor:pointer;font-weight:700;color:#273242}button:hover:not(:disabled){background:#f2f5f8}button:disabled{opacity:.5;cursor:not-allowed}.primary{background:#1769e0;color:#fff;border-color:#1769e0}.primary:hover:not(:disabled){background:#0f59c5}.danger{background:#b42334;color:white;border-color:#b42334}.actions{display:flex;gap:9px;flex-wrap:wrap}.actions.bottom{padding-bottom:0}.message{min-height:20px;margin-top:10px;color:#5f6b7a;font-size:13px}.section-head{display:flex;justify-content:space-between;align-items:end;margin:22px 0 10px;gap:16px}.section-head h1,.section-head h2{margin:0;font-size:21px}.section-head p{margin:3px 0 0;color:#758092;font-size:13px}.history-head{margin-top:28px}.table-wrap{overflow:auto;padding:0}table{width:100%;border-collapse:collapse;min-width:850px}th,td{text-align:left;padding:13px 14px;border-bottom:1px solid #edf0f3;font-size:13px;vertical-align:middle}th{font-size:12px;color:#697486;background:#fafbfc;text-transform:uppercase;letter-spacing:.02em}.empty{text-align:center;color:#7e8898;padding:28px}.state-dot{display:inline-flex;align-items:center;gap:7px}.state-dot::before{content:"";width:9px;height:9px;border-radius:50%;background:#aeb6c2}.state-dot.online::before{background:#24a35a}.status-tag{font-size:11px;font-weight:800;border-radius:999px;padding:4px 8px;background:#edf1f5;color:#566171}dialog{border:0;border-radius:16px;padding:0;box-shadow:0 24px 70px rgba(19,30,46,.25);max-width:95vw}dialog::backdrop{background:rgba(23,32,44,.55)}.dialog-card{width:min(520px,90vw);padding:22px;display:flex;flex-direction:column;gap:14px}.dialog-card h2{margin:0}.dialog-card p{margin:0;color:#6b7584}.code-box{font-size:28px;font-weight:900;letter-spacing:.12em;text-align:center;padding:18px;border:2px dashed #9bb7df;border-radius:12px;background:#f3f8ff;color:#174d97}.hidden{display:none}.remote-dialog{width:min(1500px,98vw);max-width:98vw;background:#11161e}.remote-shell{display:flex;flex-direction:column;min-height:500px}.remote-toolbar{background:#fff;padding:11px 14px;display:flex;justify-content:space-between;align-items:center;gap:12px}.remote-status{font-size:12px;margin-left:10px;color:#6a7482}.remote-meta{background:#eef2f6;padding:8px 14px;display:flex;align-items:center;gap:18px;font-size:12px;color:#5a6574}.remote-meta label{flex-direction:row;align-items:center}.remote-meta input{height:34px;width:110px}.screen-wrap{position:relative;display:flex;align-items:center;justify-content:center;background:#11161e;min-height:500px;overflow:auto;outline:none}.screen-wrap:focus{box-shadow:inset 0 0 0 2px #4d8df3}.screen-wrap img{display:block;max-width:100%;height:auto;user-select:none}.waiting{position:absolute;background:rgba(255,255,255,.94);border-radius:12px;padding:16px 20px;color:#253142;font-weight:700;box-shadow:0 8px 24px rgba(0,0,0,.18)}
@media(max-width:760px){.grid3{grid-template-columns:1fr}.section-head{align-items:flex-start;flex-direction:column}.topbar{padding:14px}.remote-toolbar,.remote-meta{align-items:flex-start;flex-direction:column}.screen-wrap{min-height:360px}}
