#hand-controls{z-index:12;box-sizing:border-box;color:#f5e9cf;background:#171322e8;border:1px solid #e7c68b55;border-radius:11px;width:220px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 28px);padding:10px;font:12px/1.4 system-ui,sans-serif;position:fixed;bottom:14px;left:14px;overflow-y:auto;box-shadow:0 6px 22px #0005}#performance-hud{z-index:15;color:#c9efc4;pointer-events:none;font-variant-numeric:tabular-nums;background:#100e19cc;border-radius:6px;min-width:60px;padding:5px 9px;font:12px/1.4 ui-monospace,monospace;position:fixed;top:12px;right:12px}#hand-controls .hand-title{align-items:center;gap:7px;font-size:13px;display:flex}#hand-controls .hand-mode{color:#b4b2ba;white-space:nowrap;margin-left:auto;font-size:11px}#hand-controls .hand-toggle{flex-shrink:0;width:26px;height:24px;padding:0;font-size:18px;line-height:1}#hand-controls.collapsed{width:172px;overflow:hidden}#hand-controls [hidden]{display:none!important}#hand-controls .hand-led{background:#84798b;border-radius:50%;width:7px;height:7px}#hand-controls.on .hand-led{background:#b5edb6;box-shadow:0 0 9px #a9f7b2}#hand-controls .hand-status{color:#f1b9a9;margin:8px 0;font-size:11px;display:none}#hand-controls.has-error .hand-status{display:block}#hand-controls .hand-metrics{color:#9bbeb2;white-space:pre-line;margin-top:7px;font:10px/1.4 ui-monospace,monospace;display:block}#hand-controls .hand-actions{gap:6px;margin-top:9px;display:flex}#hand-controls .hand-actions button{flex:1}#hand-controls button,#hand-controls select{color:#fff1d0;font:inherit;cursor:pointer;background:#302639;border:1px solid #d8b87955;border-radius:6px;padding:6px 7px}#hand-controls button:hover,#hand-controls select:hover{background:#49364a}#hand-controls button:focus-visible,#hand-controls select:focus-visible{outline-offset:2px;outline:2px solid #ffe7af}#hand-controls button:disabled{opacity:.5;cursor:wait}#hand-controls .hand-spell{align-items:center;gap:8px;margin-top:8px;display:flex}#hand-controls .hand-spell>select{margin-left:auto}#hand-controls .hand-settings{border-top:1px solid #d8b87922;margin-top:8px;padding-top:6px}#hand-controls .hand-settings summary{color:#bab1c2;cursor:pointer;font-size:11px}#hand-controls .hand-range{color:#bab1c2;grid-template-columns:1fr auto;gap:3px 8px;margin-top:9px;font-size:11px;display:grid}#hand-controls .hand-range input{accent-color:#d4ba8a;grid-column:1/-1;width:100%;margin:0}#hand-controls .hand-range output{color:#f5e9cf}#hand-controls .view-reset{margin-top:7px;padding:3px 7px;font-size:10px}#hand-controls select{flex:1;min-width:0}#hand-controls .hand-preview{aspect-ratio:4/3;background:#07060b;border-radius:7px;width:100%;margin-top:9px;position:relative;overflow:hidden}#hand-controls video,#hand-controls .hand-preview canvas{object-fit:fill;width:100%;height:100%;position:absolute;inset:0;transform:scaleX(-1)}#hand-controls video{opacity:.82}.hand-input{touch-action:none}@media (max-width:700px){#hand-controls{width:200px;padding:9px;bottom:10px;left:10px}#hand-controls .hand-preview{max-height:120px}}
