:root{color-scheme:dark;font-family:Inter,'Segoe UI',Arial,sans-serif;background:#0b1120;color:#e8eefb;font-size:15px}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 55% -20%,#193658 0%,#0b1120 55%)}button,input{font:inherit}button{cursor:pointer;border:0;border-radius:10px;padding:11px 17px;font-weight:650;transition:background .15s}button:disabled{opacity:.4;cursor:not-allowed}button.primary{background:#278cf4;color:white}button.primary:hover{background:#1c72d3}button.secondary{color:#dbe8f9;background:#253450;border:1px solid #34486a}button.secondary:hover{background:#32486b}button.danger{background:#612a38;color:white}button.danger:hover{background:#803447}.full{width:100%}input{width:100%;border:1px solid #344660;background:#0e1930;color:#f5f9ff;padding:12px 13px;border-radius:9px;outline:none}input:focus{border-color:#2e94f4;box-shadow:0 0 0 2px #2e94f433}label{display:block;color:#c4d2e7;margin:14px 0;font-size:13px;font-weight:600}label input{display:block;margin-top:7px;font-size:15px}.topbar{display:flex;align-items:center;justify-content:space-between;padding:17px max(22px,calc((100vw - 1160px)/2));border-bottom:1px solid #23314a;background:#101b30e8}.brand{display:flex;align-items:center;gap:12px;font-size:19px;letter-spacing:-.4px}.brand-mark{font-size:12px;letter-spacing:-.5px;font-weight:800;display:grid;place-items:center;width:33px;height:33px;background:linear-gradient(130deg,#3bafff,#1966da);border-radius:9px;color:white}.version{font-size:12px;color:#90a2bd}main{width:min(1160px,calc(100% - 32px));margin:34px auto 60px}.panel{padding:24px;border:1px solid #2a3c56;border-radius:17px;background:#131f34;box-shadow:0 7px 25px #00000022}.login{max-width:440px;margin:88px auto;padding:36px}.login h1{font-size:25px}.login .round-icon{font-size:25px;color:#70baff}.muted{color:#94a8c4}.message{margin-top:15px;color:#ff9ba9;min-height:20px;font-size:13px}h1{font-size:27px;margin:0 0 6px;letter-spacing:-.5px}h2{font-size:20px;margin:0 0 9px}.heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.heading p{margin:3px 0}.actions{display:flex;gap:10px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px}.stat{border:1px solid #2b3d57;border-radius:14px;background:#141f35;padding:18px 22px;display:flex;justify-content:space-between;align-items:center}.stat span{font-size:13px;color:#93a7c2}.stat strong{font-size:29px}.green{color:#48d49d}.toolbar{display:flex;gap:14px;justify-content:space-between;margin-bottom:17px}.toolbar input{max-width:480px}.devices{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:13px}.device{border:1px solid #34465f;border-radius:13px;padding:18px;background:#101a2e;display:flex;flex-direction:column;gap:15px}.device .device-title{display:flex;gap:12px;align-items:center}.device .icon{font-size:22px;background:#223653;border-radius:10px;padding:10px}.device .device-name{font-weight:700;overflow-wrap:anywhere}.device .id{font-size:12px;color:#91a4bd;margin-top:3px}.device .device-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px}.status{font-size:12px;display:flex;align-items:center;gap:6px;color:#aebcd0}.dot{width:8px;height:8px;border-radius:50%;background:#64748b}.status.online .dot{background:#39cd99;box-shadow:0 0 0 3px #39cd9922}.status.online{color:#75ddb4}.status.busy .dot{background:#ffbd69}.help{margin:14px 0;font-size:12px}.dialog{width:min(480px,calc(100% - 24px));background:#16243b;color:#eff6ff;border:1px solid #39506e;border-radius:15px;padding:24px;box-shadow:0 25px 60px #0009}.dialog::backdrop{background:#030810c9}.dialog.wide{width:min(760px,calc(100% - 24px))}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.audit-content{max-height:380px;overflow:auto}.audit-row{padding:11px 3px;border-bottom:1px solid #2e3d55;display:flex;gap:15px;font-size:12px}.audit-row .muted{min-width:130px}.toast{position:fixed;bottom:20px;right:20px;background:#263b56;box-shadow:0 10px 30px #0008;border-radius:12px;padding:14px 18px;opacity:0;pointer-events:none;transition:opacity .15s;max-width:370px;z-index:9}.toast.show{opacity:1}#viewer-page{display:flex;flex-direction:column;gap:10px;min-height:80vh}#viewer-page[hidden]{display:none}.viewer-top{display:flex;justify-content:space-between;align-items:center;background:#131f35;border:1px solid #2a3b56;padding:13px 17px;border-radius:12px}.viewer-top div:first-child{display:flex;gap:15px;align-items:center}.viewer-stage{position:relative;background:#03060b;display:flex;align-items:center;justify-content:center;border:1px solid #273750;min-height:calc(100vh - 230px);border-radius:12px;overflow:hidden}.viewer-stage canvas{max-width:100%;max-height:calc(100vh - 240px);width:auto;height:auto;outline:none;cursor:crosshair;image-rendering:auto}.viewer-stage canvas:focus{outline:2px solid #2a93e6;outline-offset:2px}#viewer-overlay{position:absolute;color:#a3b6d0;font-size:15px;pointer-events:none}.viewer-footer{display:flex;justify-content:space-between;gap:15px;color:#899ebb;font-size:12px}.device button{font-size:12px;padding:9px 12px}.empty{color:#93a7c2;padding:25px;text-align:center;grid-column:1/-1}@media(max-width:700px){.version{display:none}.heading{align-items:flex-start;gap:12px;flex-direction:column}.stats{grid-template-columns:1fr}.toolbar{flex-direction:column}.toolbar input{max-width:none}.stat{padding:12px}.viewer-top{flex-direction:column;gap:10px}.viewer-footer{flex-direction:column}}

.soft-rule{height:1px;border:0;background:#344660;margin:24px 0}
.device .device-bottom .actions{gap:7px}
