:root{--bg:#f3f0ea;--ink:#1c2430;--muted:#5d6673;--panel:#fffdf8;--line:#d9d2c5;--accent:#0f6a5d;--accent-soft:#d8efe9;--danger:#9b2c2c;--shadow:0 18px 40px #1c243014;color:var(--ink);background:radial-gradient(circle at 0 0,#e7f3ef 0%,#0000 40%),linear-gradient(#f7f4ee 0%,#efe8dc 100%);font-family:IBM Plex Sans,Segoe UI,sans-serif;line-height:1.45}*{box-sizing:border-box}body{min-height:100vh;margin:0}button,input,select,textarea{font:inherit}a{color:inherit;text-decoration:none}.shell{grid-template-columns:240px 1fr;min-height:100vh;display:grid}.sidebar{color:#f4f7f6;background:#16343a;flex-direction:column;gap:1.5rem;padding:1.5rem 1rem;display:flex}.brand{align-items:center;gap:.75rem;display:flex}.brand-mark{color:#08332c;background:#2bb59a;border-radius:12px;place-items:center;width:42px;height:42px;font-weight:700;display:grid}.brand p,.muted{color:var(--muted);margin:.15rem 0 0;font-size:.9rem}.brand strong{display:block}.sidebar nav{flex-direction:column;flex:1;gap:.35rem;display:flex}.nav{color:#d7e4e1;border-radius:10px;padding:.7rem .85rem}.nav.active,.nav:hover{color:#fff;background:#ffffff1a}.logout{color:#fff;cursor:pointer;background:0 0;border:1px solid #fff3;border-radius:10px;padding:.7rem .9rem}.content{padding:1.75rem}.page-header{margin-bottom:1.25rem}.page-header h1{margin:0;font-size:1.8rem}.page-header p{color:var(--muted);margin:.35rem 0 0}.panel,.login-card,.stat-grid article{background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:16px}.panel{margin-bottom:1rem;padding:1.1rem 1.2rem}.stat-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:1rem;margin-bottom:1rem;display:grid}.stat-grid article{padding:1rem 1.1rem}.stat-grid span{color:var(--muted);font-size:.9rem}.stat-grid strong{margin-top:.35rem;font-size:1.8rem;display:block}.split{grid-template-columns:1fr 1fr;gap:1rem;display:grid}table{border-collapse:collapse;width:100%}th,td{text-align:left;border-bottom:1px solid var(--line);vertical-align:top;padding:.7rem .4rem}th{color:var(--muted);font-size:.85rem;font-weight:600}ul{margin:0;padding:0;list-style:none}ul li{border-bottom:1px solid var(--line);justify-content:space-between;gap:1rem;padding:.55rem 0;display:flex}.form-grid,.filters{gap:.85rem;display:grid}.form-grid label,.filters label,.login-card label{gap:.35rem;font-size:.92rem;font-weight:600;display:grid}input,select,textarea,button{border:1px solid var(--line);background:#fff;border-radius:10px;padding:.7rem .8rem}button{background:var(--accent);color:#fff;border-color:var(--accent);cursor:pointer;font-weight:600}button.danger{color:var(--danger);background:#fff;border-color:#e2b4b4}.row-actions{gap:.5rem;display:flex}.checkbox{align-items:center;gap:.5rem;display:flex!important}.badge{border-radius:999px;padding:.2rem .55rem;font-size:.8rem;font-weight:700;display:inline-flex}.badge.online{background:var(--accent-soft);color:var(--accent)}.badge.offline,.badge.planned,.badge.info{color:#6a5b3e;background:#eee7da}.badge.warning{color:#8a5a00;background:#ffe8c2}.badge.critical{color:var(--danger);background:#fde8e8}.button-link{background:var(--accent);color:#fff;border-radius:10px;align-items:center;padding:.55rem .8rem;font-weight:600;display:inline-flex}.remote-shell{color:#e8eef1;background:#0d1216;grid-template-rows:auto 1fr auto;min-height:100vh;display:grid}.remote-topbar{background:linear-gradient(#152028 0%,#10171d 100%);border-bottom:1px solid #ffffff14;justify-content:space-between;align-items:center;gap:1rem;padding:.75rem 1rem;display:flex}.remote-topbar-left,.remote-topbar-center,.remote-topbar-right{align-items:center;gap:.75rem;min-width:0;display:flex}.remote-topbar-center{justify-content:center}.remote-back{color:#9ed7c8;background:#2bb59a1f;border-radius:8px;padding:.4rem .7rem;font-weight:600}.remote-pill{background:#243039;border-radius:999px;align-items:center;gap:.4rem;padding:.35rem .7rem;font-size:.85rem;font-weight:700;display:inline-flex}.remote-pill i{background:#8899a6;border-radius:50%;width:8px;height:8px}.remote-pill.live{color:#7ddec8;background:#2bb59a2e}.remote-pill.live i{background:#2bb59a;box-shadow:0 0 0 4px #2bb59a33}.remote-pill.wait{color:#ffd27a;background:#ffc45a24}.remote-pill.wait i{background:#ffc45a}.remote-pill.off{color:#9aa7b2;background:#ffffff0f}.remote-metric{font-variant-numeric:tabular-nums;color:#9aa7b2;font-size:.85rem}.fps-control{background:#eef2f5;border:1px solid #d5dee6;border-radius:10px;align-items:center;gap:.35rem;padding:.2rem .35rem;display:inline-flex}.fps-control-label{color:#5b6b76;padding:0 .25rem;font-size:.75rem;font-weight:700}.fps-control-value{text-align:center;font-variant-numeric:tabular-nums;min-width:1.75rem;font-size:.9rem;font-weight:700}.fps-control button{color:#1a232b;cursor:pointer;background:#fff;border:0;border-radius:8px;width:1.75rem;height:1.75rem;font-size:1.05rem;font-weight:700;line-height:1}.fps-control button:hover:not(:disabled){color:#08332c;background:#2bb59a}.fps-control button:disabled{opacity:.4;cursor:not-allowed}.fps-control-dark{background:#1a232b;border-color:#2a3640}.fps-control-dark .fps-control-value{color:#e8eef2}.fps-control-dark button{color:#e8eef2;background:#243039}.fps-control-dark button:hover:not(:disabled){color:#08332c;background:#2bb59a}.remote-seg{background:#1a232b;border-radius:10px;gap:2px;padding:3px;display:inline-flex}.remote-seg button,.remote-ghost{color:#c5d0d7;cursor:pointer;background:0 0;border:0;border-radius:8px;padding:.45rem .7rem;font-size:.85rem;font-weight:600}.remote-seg button.active,.remote-ghost:hover{color:#08332c;background:#2bb59a}.remote-seg button.best{color:#ffe2a8}.remote-seg button.best.active{color:#2a1d00;background:linear-gradient(135deg,#d4a017,#f0c14b)}.remote-ghost{background:#1a232b}.remote-banner{border-radius:0;margin:0}.remote-stage{background:radial-gradient(circle at top,#2bb59a14,#0000 40%),#0a0e11;place-items:center;min-height:0;padding:1rem;display:grid}.remote-viewport{background:#000;border:1px solid #ffffff14;border-radius:14px;width:min(100%,1400px);max-height:calc(100vh - 140px);position:relative;overflow:hidden;box-shadow:0 24px 60px #00000073}.remote-viewport.fill{width:100%;height:calc(100vh - 140px)}.remote-viewport.fill .remote-canvas{object-fit:contain;width:100%;height:100%}.remote-canvas{cursor:crosshair;background:#000;outline:none;width:100%;height:auto;max-height:calc(100vh - 140px);display:block}.remote-annotate-layer{cursor:crosshair;width:100%;height:100%;position:absolute;inset:0}.share-targets{flex-wrap:wrap;gap:.65rem 1.1rem;margin:.75rem 0;display:flex}.share-preview-wrap{background:#102226;border-radius:12px;min-height:240px;position:relative;overflow:hidden}.share-video,.share-annotate{object-fit:contain;width:100%;max-height:420px;display:block}.share-annotate{width:100%;height:100%;position:absolute;inset:0}.recording-player{background:#000;border-radius:12px;width:100%;max-height:480px;margin-bottom:.75rem}.remote-ghost.active{background:var(--accent);color:#fff}.remote-overlay{text-align:center;z-index:2;pointer-events:none;background:#080c10b8;place-content:center;gap:.5rem;display:grid;position:absolute;inset:0}.remote-overlay p{margin:0;font-weight:700}.remote-overlay small{color:#9aa7b2}.remote-spinner{border:3px solid #ffffff26;border-top-color:#2bb59a;border-radius:50%;width:36px;height:36px;margin:0 auto .4rem;animation:.8s linear infinite remote-spin}@keyframes remote-spin{to{transform:rotate(360deg)}}.remote-footer{color:#8b98a3;background:#10171d;border-top:1px solid #ffffff0f;justify-content:space-between;gap:1rem;padding:.65rem 1rem;font-size:.85rem;display:flex}.remote-shell .muted{color:#8b98a3}@media (width<=960px){.remote-topbar{flex-wrap:wrap}.remote-footer{flex-direction:column}}.login-page{place-items:center;min-height:100vh;padding:1rem;display:grid}.login-card{gap:.9rem;width:min(420px,100%);padding:1.6rem;display:grid}.login-card h1{margin:0}.login-card p{color:var(--muted);margin:0}.error,.success{border-radius:12px;margin-bottom:1rem;padding:.75rem .9rem}.error{color:var(--danger);background:#fde8e8}.success{background:var(--accent-soft);color:#0b4f45}code{font-family:IBM Plex Mono,ui-monospace,monospace;font-size:.88em}@media (width<=960px){.shell{grid-template-columns:1fr}.sidebar{z-index:10;position:sticky;top:0}.sidebar nav{flex-flow:wrap}.stat-grid,.split{grid-template-columns:1fr 1fr}}@media (width<=640px){.stat-grid,.split{grid-template-columns:1fr}.content{padding:1rem}}.policy-fieldset{border:1px solid var(--line);border-radius:14px;grid-column:1/-1;margin:0;padding:.85rem 1rem 1rem}.policy-fieldset legend{padding:0 .35rem;font-weight:600}.monitor-grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem;display:grid}.monitor-tile{background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:16px;flex-direction:column;gap:.55rem;padding:.75rem;display:flex}.monitor-tile.selected{outline:2px solid var(--accent)}.monitor-tile-head{justify-content:space-between;align-items:center;gap:.5rem;display:flex}.monitor-thumb{aspect-ratio:16/10;background:#102226;border-radius:10px;display:block;overflow:hidden}.monitor-thumb img{object-fit:cover;width:100%;height:100%;display:block}.monitor-placeholder{color:#c5d4d1;text-align:center;place-items:center;height:100%;min-height:140px;padding:1rem;font-size:.9rem;display:grid}.monitor-meta{gap:.2rem;font-size:.88rem;display:grid}.monitor-meta .muted{min-width:5.2rem;display:inline-block}.ellipsis{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chat-log{flex-direction:column;gap:.65rem;max-height:320px;margin-bottom:.75rem;display:flex;overflow:auto}.chat-bubble{border:1px solid var(--line);background:#fff;border-radius:12px;padding:.65rem .8rem}.chat-bubble.admin_to_device{background:var(--accent-soft)}.chat-bubble p{margin:.25rem 0}.chat-bubble small{color:var(--muted)}
