:root{color-scheme:dark;--bg: #101014;--bg-raised: #1b1b22;--bg-input: #16161c;--border: #2a2a33;--border-strong: #3a3a45;--text: #e8e8ea;--text-muted: #9a9aa6;--accent: #59d18b;--accent-dim: #2a5f3f;--accent-border: #37804f;--warn: #e8c25a;--danger: #e8685a;--radius: 6px}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,sans-serif;background:var(--bg);color:var(--text);font-size:14px;line-height:1.5}h1,h2,h3{margin:0;font-weight:600}button{font:inherit;background:var(--border);color:var(--text);border:1px solid var(--border-strong);border-radius:var(--radius);padding:7px 14px;cursor:pointer}button:hover:not(:disabled){background:var(--border-strong)}button:disabled{opacity:.5;cursor:default}button.primary{background:var(--accent-dim);border-color:var(--accent-border)}button.primary:hover:not(:disabled){background:#356f4b}input{font:inherit;background:var(--bg-input);color:var(--text);border:1px solid var(--border-strong);border-radius:var(--radius);padding:9px 11px}input:focus{outline:1px solid var(--accent)}a{color:var(--accent)}.page{min-height:100%;display:flex;flex-direction:column}.page-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 20px;background:var(--bg-raised);border-bottom:1px solid var(--border)}.page-title{font-size:16px;font-weight:600}.page-body{flex:1;padding:24px 20px;max-width:960px;width:100%;margin:0 auto}.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:7px;vertical-align:middle}.status-dot.online{background:var(--accent)}.status-dot.offline{background:var(--danger)}.status-dot.unknown{background:var(--text-muted)}.muted{color:var(--text-muted)}.error-text{color:var(--danger);font-size:13px;min-height:18px;margin:0}body.viewer-active{overflow:hidden}.viewer-root{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;background:#000}.viewer-toolbar{display:flex;align-items:center;gap:14px;padding:8px 12px;background:var(--bg-raised);border-bottom:1px solid var(--border);font-size:13px;flex-wrap:wrap}.viewer-toolbar .spacer{flex:1}.viewer-stat{color:var(--text-muted);white-space:nowrap}.viewer-stat b{color:var(--text);font-weight:600}.viewer-stage{position:relative;flex:1;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#000}.viewer-video{width:100%;height:100%;object-fit:contain;background:#000}.remote-cursor{position:fixed;pointer-events:none;z-index:10;background-repeat:no-repeat;background-size:100% 100%}.remote-cursor.fallback{width:12px;height:18px;background:#fff;clip-path:polygon(0 0,0 100%,30% 75%,55% 100%,70% 92%,45% 68%,100% 68%);filter:drop-shadow(0 0 1px #000)}.viewer-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;text-align:center;color:var(--text-muted);font-size:14px;line-height:1.7;padding:24px}.viewer-overlay.hidden{display:none}.viewer-sdp{max-height:30vh;overflow:auto;margin:0;padding:10px 12px;background:var(--bg-input);border-top:1px solid var(--border);font-family:ui-monospace,Consolas,monospace;font-size:11px;white-space:pre-wrap}.viewer-root.in-control .viewer-toolbar,.viewer-root.in-control .viewer-sdp{display:none}
