/**
 * Copyright (c) 2014 The xterm.js authors. All rights reserved.
 * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
 * https://github.com/chjj/term.js
 * @license MIT
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 *
 * Originally forked from (with the author's permission):
 *   Fabrice Bellard's javascript vt100 for jslinux:
 *   http://bellard.org/jslinux/
 *   Copyright (c) 2011 Fabrice Bellard
 *   The original design remains. The terminal itself
 *   has been extended to include xterm CSI codes, among
 *   other features.
 */.xterm{cursor:text;position:relative;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{text-decoration:double underline}.xterm-underline-3{text-decoration:wavy underline}.xterm-underline-4{text-decoration:dotted underline}.xterm-underline-5{text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{text-decoration:overline double underline}.xterm-overline.xterm-underline-3{text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}.connection-status[data-v-5e1fd1e7]{display:flex;align-items:center;gap:8px;padding:6px 12px;border-radius:20px;font-size:12px;font-weight:500}.status-dot[data-v-5e1fd1e7]{width:8px;height:8px;border-radius:50%;animation:pulse-5e1fd1e7 2s infinite}.connected[data-v-5e1fd1e7]{background:#00ff001a;color:#0f0}.connected .status-dot[data-v-5e1fd1e7]{background:#0f0;box-shadow:0 0 8px #0f0;animation:none}.connecting[data-v-5e1fd1e7]{background:#ffa5001a;color:orange}.connecting .status-dot[data-v-5e1fd1e7]{background:orange}.error[data-v-5e1fd1e7]{background:#ff00001a;color:#f44}.error .status-dot[data-v-5e1fd1e7]{background:#f44;animation:none}@keyframes pulse-5e1fd1e7{0%,to{opacity:1}50%{opacity:.5}}.screenshot-modal[data-v-7b59f0c8]{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000e6;display:flex;justify-content:center;align-items:center;z-index:1000;animation:fadeIn-7b59f0c8 .2s ease}@keyframes fadeIn-7b59f0c8{0%{opacity:0}to{opacity:1}}.modal-content[data-v-7b59f0c8]{background:var(--bg-secondary);border-radius:12px;max-width:90vw;max-height:90vh;display:flex;flex-direction:column;overflow:hidden}.modal-header[data-v-7b59f0c8]{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid var(--border)}.modal-header h3[data-v-7b59f0c8]{margin:0;font-size:16px}.close-btn[data-v-7b59f0c8]{width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:transparent;color:var(--text-secondary);font-size:24px;border-radius:8px}.close-btn[data-v-7b59f0c8]:hover{background:#ffffff1a;color:var(--text-primary)}.modal-body[data-v-7b59f0c8]{flex:1;overflow:auto;padding:20px;display:flex;justify-content:center;align-items:center}.screenshot-image[data-v-7b59f0c8]{max-width:100%;max-height:60vh;border-radius:8px;box-shadow:0 4px 24px #0000004d}.modal-footer[data-v-7b59f0c8]{display:flex;justify-content:center;gap:12px;padding:16px 20px;border-top:1px solid var(--border)}.modal-footer .btn[data-v-7b59f0c8]{text-decoration:none}.settings-modal[data-v-7eed54a9]{position:fixed;top:0;left:0;right:0;bottom:0;background:#0009;display:flex;justify-content:center;align-items:center;z-index:10000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);animation:fadeIn-7eed54a9 .2s ease}@keyframes fadeIn-7eed54a9{0%{opacity:0}to{opacity:1}}.modal-content[data-v-7eed54a9]{background:var(--bg-secondary);border-radius:12px;width:100%;max-width:400px;max-height:90vh;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--border);box-shadow:0 8px 32px #0006}.modal-header[data-v-7eed54a9]{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid var(--border)}.modal-header h3[data-v-7eed54a9]{margin:0;font-size:16px}.close-btn[data-v-7eed54a9]{width:32px;height:32px;display:flex;align-items:center;justify-content:center;background:transparent;color:var(--text-secondary);font-size:24px;border-radius:8px;cursor:pointer;border:none}.close-btn[data-v-7eed54a9]:hover{background:#ffffff1a;color:var(--text-primary)}.modal-body[data-v-7eed54a9]{flex:1;overflow:auto;padding:20px}.form-group[data-v-7eed54a9]{margin-bottom:16px;display:flex;flex-direction:column;gap:8px}.form-group label[data-v-7eed54a9]{font-size:13px;color:var(--text-secondary)}.form-group input[type=number][data-v-7eed54a9],.form-group input[type=text][data-v-7eed54a9]{background:var(--bg-primary);border:1px solid var(--border);padding:10px;border-radius:6px;color:var(--text-primary);font-size:14px}.form-group input[data-v-7eed54a9]:focus{outline:none;border-color:var(--accent)}.hint[data-v-7eed54a9]{font-size:12px;color:#8b949e}.toggle-switch[data-v-7eed54a9]{display:flex;align-items:center}.toggle-switch input[type=checkbox][data-v-7eed54a9]{display:none}.toggle-switch label[data-v-7eed54a9]{cursor:pointer;width:40px;height:20px;background:var(--border);border-radius:10px;position:relative;transition:background-color .2s}.toggle-switch label[data-v-7eed54a9]:after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;background:#fff;border-radius:50%;transition:transform .2s}.toggle-switch input[type=checkbox]:checked+label[data-v-7eed54a9]{background:var(--accent)}.toggle-switch input[type=checkbox]:checked+label[data-v-7eed54a9]:after{transform:translate(20px)}.modal-footer[data-v-7eed54a9]{display:flex;justify-content:flex-end;gap:12px;padding:16px 20px;border-top:1px solid var(--border)}.btn[data-v-7eed54a9]{padding:8px 16px;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s;border:none}.btn-secondary[data-v-7eed54a9]{background:transparent;color:var(--text-primary);border:1px solid var(--border)}.btn-secondary[data-v-7eed54a9]:hover{background:#ffffff1a}.btn-primary[data-v-7eed54a9]{background:var(--accent);color:#fff}.btn-primary[data-v-7eed54a9]:hover{filter:brightness(1.1)}.btn-danger[data-v-7eed54a9]{background:transparent;color:#f85149;border:1px solid #f85149}.btn-danger[data-v-7eed54a9]:hover{background:#f851491a}.keymap-editor[data-v-32aef176]{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1000;pointer-events:none;overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}.keymap-editor.is-editing[data-v-32aef176]{background:#0006;pointer-events:auto}.editor-toolbar[data-v-32aef176]{position:absolute;top:24px;left:50%;transform:translate(-50%);display:flex;flex-direction:column;gap:12px;background:#191919f2;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);padding:16px 20px;border-radius:12px;border:1px solid rgba(255,255,255,.15);box-shadow:0 12px 40px #0009;z-index:1001;min-width:320px}.toolbar-header[data-v-32aef176]{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid rgba(255,255,255,.1);padding-bottom:12px}.profile-selector[data-v-32aef176]{display:flex;align-items:center;gap:6px}.profile-select[data-v-32aef176]{background:#00000080;color:#fff;border:1px solid rgba(255,255,255,.2);padding:4px 8px;border-radius:6px;font-size:13px;outline:none;cursor:pointer;max-width:140px}.divider-v[data-v-32aef176]{width:1px;height:16px;background:#fff3;margin:0 4px}.icon-btn[data-v-32aef176]{background:transparent;border:none;color:#ccc;cursor:pointer;padding:4px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:all .2s}.icon-btn .icon[data-v-32aef176]{width:14px;height:14px;stroke:currentColor;stroke-width:2;fill:none}.icon-btn[data-v-32aef176]:hover{background:#ffffff1a;color:#fff}.icon-btn.danger[data-v-32aef176]:hover{background:#dc354533;color:#ff4d4f}.toolbar-title[data-v-32aef176]{color:#fff;font-weight:600;font-size:15px}.hint-toggle[data-v-32aef176]{display:flex;align-items:center;gap:6px;color:#aaa;font-size:12px;cursor:pointer}.hint-toggle input[data-v-32aef176]{cursor:pointer}.toolbar-body[data-v-32aef176]{display:flex;justify-content:space-between;align-items:center;gap:16px}.toolbar-tools[data-v-32aef176]{display:flex;gap:8px}.tool-btn[data-v-32aef176]{background:#ffffff0d;border:1px solid rgba(255,255,255,.1);color:#ddd;padding:6px 12px;border-radius:8px;font-size:13px;cursor:pointer;transition:all .2s;display:flex;align-items:center;gap:4px}.tool-btn .icon[data-v-32aef176]{width:16px;height:16px;stroke:currentColor;stroke-width:2;fill:none}.tool-btn[data-v-32aef176]:hover{background:#ffffff26;color:#fff}.toolbar-actions[data-v-32aef176]{display:flex;gap:8px}.action-btn[data-v-32aef176]{padding:6px 16px;border-radius:6px;font-size:13px;font-weight:600;cursor:pointer;border:none}.action-btn.cancel[data-v-32aef176]{background:transparent;color:#ccc}.action-btn.cancel[data-v-32aef176]:hover{color:#fff}.action-btn.save[data-v-32aef176]{background:var(--accent, #007bff);color:#fff}.action-btn.save[data-v-32aef176]:hover{filter:brightness(1.1)}.keymap-overlay[data-v-32aef176]{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1000}.video-area-indicator[data-v-32aef176]{position:absolute;border:2px dashed rgba(255,255,255,.3);pointer-events:none}.swipe-lines-svg[data-v-32aef176]{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;pointer-events:none;z-index:999}.key-node[data-v-32aef176]{position:absolute;width:60px;height:60px;margin-left:-30px;margin-top:-30px;border-radius:50%;background:#fff3;border:2px solid rgba(255,255,255,.8);display:flex;align-items:center;justify-content:center;cursor:move;box-shadow:0 4px 12px #00000080;-webkit-user-select:none;user-select:none;touch-action:none;transition:opacity .2s,background .2s}.key-node.swipe-end-node[data-v-32aef176]{width:40px;height:40px;margin-left:-20px;margin-top:-20px;background:#ff646433;border-color:#ff6464cc}.swipe-end-label[data-v-32aef176]{color:#fff;font-size:14px;font-weight:700}.key-node.is-joystick[data-v-32aef176]{background:#64c8ff33;border-color:#64c8ffcc}.key-node.is-selected[data-v-32aef176]{background:#ffc80066;border-color:#ffc107;z-index:10}.key-node.is-hint[data-v-32aef176]{background:#ffffff1a;border:1px solid rgba(255,255,255,.2);box-shadow:none;pointer-events:none;cursor:default}.key-node.is-hint .key-label[data-v-32aef176]{font-size:18px;opacity:.6}.key-node.is-hint .joy-label[data-v-32aef176],.key-node.is-hint .wheel-label[data-v-32aef176]{font-size:12px;opacity:.6}.key-node.is-hint.is-joystick[data-v-32aef176],.key-node.is-hint.is-wheel[data-v-32aef176]{background:#64c8ff1a;border:1px solid rgba(100,200,255,.2)}.key-node.is-wheel[data-v-32aef176]{background:#64c8ff33;border-color:#64c8ffcc}.key-label[data-v-32aef176]{color:#fff;font-size:24px;font-weight:700;text-shadow:0 2px 4px rgba(0,0,0,.8)}.joy-label[data-v-32aef176]{color:#fff;font-size:14px;font-weight:700;text-shadow:0 2px 4px rgba(0,0,0,.8)}.wheel-label[data-v-32aef176]{display:flex;align-items:center;justify-content:center;color:#fff;filter:drop-shadow(0 2px 4px rgba(0,0,0,.8))}.wheel-label .icon[data-v-32aef176]{width:24px;height:24px;stroke:currentColor;stroke-width:2;fill:none}.delete-btn[data-v-32aef176]{position:absolute;top:-10px;right:-10px;width:24px;height:24px;border-radius:50%;background:#dc3545;color:#fff;border:2px solid #fff;font-size:16px;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:11;padding:0;line-height:1}.joystick-radius[data-v-32aef176]{position:absolute;border:2px dashed rgba(100,200,255,.4);border-radius:50%;pointer-events:none}.node-settings[data-v-32aef176]{position:absolute;right:24px;top:80px;width:200px;background:#141414f2;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.15);border-radius:12px;padding:12px 16px;z-index:1002;box-shadow:0 8px 32px #0009}.settings-header[data-v-32aef176]{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.node-settings h4[data-v-32aef176]{margin:0;color:#fff;font-size:14px}.close-settings-btn[data-v-32aef176]{background:transparent;border:none;color:#aaa;cursor:pointer;font-size:14px;padding:0}.close-settings-btn[data-v-32aef176]:hover{color:#fff}.setting-item[data-v-32aef176]{display:flex;align-items:center;gap:8px;margin-bottom:8px}.setting-item label[data-v-32aef176]{color:#aaa;font-size:12px;white-space:nowrap}.key-input[data-v-32aef176]{flex:1;background:#00000080;border:1px solid #444;color:#fff;padding:6px;border-radius:6px;text-align:center;font-size:14px;font-weight:700;outline:none;cursor:pointer;text-transform:uppercase;max-width:80px}.key-input[data-v-32aef176]:focus{border-color:var(--accent, #007bff);box-shadow:0 0 0 2px #007bff4d}.setting-tip[data-v-32aef176]{margin:0;font-size:11px;color:#888;text-align:center}.device-panel-view[data-v-c4c6b8e3]{height:100%;display:flex;flex-direction:row;background:#000;position:relative;overflow:hidden}.device-client-main[data-v-c4c6b8e3]{flex:1;display:flex;flex-direction:column;position:relative;min-width:0}.icon[data-v-c4c6b8e3]{width:20px;height:20px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}.fullscreen-fab[data-v-c4c6b8e3]{position:absolute;top:16px;right:16px;width:36px;height:36px;background:#00000080;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.1);border-radius:50%;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:100;transition:all .2s}.fullscreen-fab .icon[data-v-c4c6b8e3]{width:18px;height:18px}.fullscreen-fab[data-v-c4c6b8e3]:hover{background:#000c;transform:scale(1.1)}.stats-badge[data-v-c4c6b8e3]{position:absolute;top:16px;left:16px;background:#0009;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#0f0;font-family:Fira Code,Courier New,monospace;font-size:11px;font-weight:600;padding:4px 10px;border-radius:4px;z-index:100;pointer-events:none;white-space:nowrap}.stat-delimiter[data-v-c4c6b8e3]{color:#555;margin:0 2px}.stat-warn[data-v-c4c6b8e3]{color:#f85149}.video-wrapper[data-v-c4c6b8e3]{flex:1;background:#000;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;min-height:0}.video-stream[data-v-c4c6b8e3]{width:100%;height:100%;object-fit:contain;touch-action:none}.panel-overlay[data-v-c4c6b8e3]{position:absolute;top:0;right:0;bottom:0;left:0;background:#000000d9;display:flex;align-items:center;justify-content:center;z-index:5}.overlay-box[data-v-c4c6b8e3]{text-align:center;padding:24px}.mini-spinner[data-v-c4c6b8e3]{width:24px;height:24px;border:2px solid rgba(255,255,255,.1);border-top-color:var(--accent);border-radius:50%;animation:spin-c4c6b8e3 .8s linear infinite;margin:0 auto 12px}@keyframes spin-c4c6b8e3{to{transform:rotate(360deg)}}.error-msg[data-v-c4c6b8e3]{color:var(--accent);font-weight:600}.error-tip[data-v-c4c6b8e3]{font-size:12px;color:#999;margin:8px 0 16px}.retry-btn[data-v-c4c6b8e3]{background:var(--accent);color:#fff;border:none;padding:6px 16px;border-radius:4px;font-size:12px;cursor:pointer}.control-sidebar[data-v-c4c6b8e3]{width:64px;background:#111;border-left:1px solid var(--border);display:flex;flex-direction:column;align-items:center;padding:16px 0;gap:12px;overflow-y:auto;z-index:10}.sidebar-group[data-v-c4c6b8e3]{display:flex;flex-direction:column;gap:12px;width:100%;align-items:center}.sidebar-btn-wrapper[data-v-c4c6b8e3]{position:relative;display:flex;justify-content:center}.sidebar-btn-delete[data-v-c4c6b8e3]{position:absolute;top:-6px;right:-6px;width:18px;height:18px;border-radius:50%;background:#dc3545;color:#fff;border:1px solid #111;font-size:12px;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:11;padding:0;line-height:1;opacity:0;transition:opacity .2s}.sidebar-btn-wrapper:hover .sidebar-btn-delete[data-v-c4c6b8e3]{opacity:1}.sidebar-btn[data-v-c4c6b8e3]{background:#222;border:1px solid #333;color:#ccc;width:48px;height:48px;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;transition:all .2s;padding:0}.sidebar-btn .icon[data-v-c4c6b8e3]{margin-bottom:2px}.sidebar-btn .btn-text[data-v-c4c6b8e3]{font-size:10px;white-space:nowrap}.sidebar-btn[data-v-c4c6b8e3]:hover{background:#333;border-color:var(--accent);color:#fff}.sidebar-btn.danger[data-v-c4c6b8e3]:hover{background:#f8514933;border-color:var(--error);color:var(--error)}.sidebar-btn.danger[data-v-c4c6b8e3]{color:#888}.sidebar-btn.add-btn[data-v-c4c6b8e3]{border-style:dashed}.sidebar-divider[data-v-c4c6b8e3]{width:32px;height:1px;background:#333;margin:4px 0}.fab-overlay[data-v-c4c6b8e3]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:99}.mobile-fab-container[data-v-c4c6b8e3]{position:fixed;z-index:100;width:56px;height:56px}.mobile-fab-main[data-v-c4c6b8e3]{position:absolute;top:0;left:0;width:56px;height:56px;border-radius:50%;background:var(--accent);color:#fff;border:none;box-shadow:0 4px 12px #00000080;cursor:grab;display:flex;align-items:center;justify-content:center;transition:background .2s,transform .2s;touch-action:none;z-index:2}.mobile-fab-main .icon[data-v-c4c6b8e3]{width:24px;height:24px}.mobile-fab-main[data-v-c4c6b8e3]:active{cursor:grabbing;transform:scale(.95)}.mobile-fab-main.active[data-v-c4c6b8e3]{background:#555}.mobile-fab-menu[data-v-c4c6b8e3]{position:absolute;bottom:68px;right:0;width:max-content;display:flex;flex-direction:column;gap:8px;background:#141414e6;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding:12px;border-radius:12px;border:1px solid rgba(255,255,255,.1);opacity:0;pointer-events:none;transform:translateY(20px);transition:all .3s cubic-bezier(.175,.885,.32,1.275);box-shadow:0 8px 24px #00000080;max-height:60vh;overflow-y:auto;z-index:1}.mobile-fab-menu.align-left[data-v-c4c6b8e3]{right:auto;left:0}.mobile-fab-menu.align-top[data-v-c4c6b8e3]{bottom:auto;top:68px;transform:translateY(-20px)}.mobile-fab-menu.show[data-v-c4c6b8e3]{opacity:1;pointer-events:auto;transform:translateY(0)}.fab-item[data-v-c4c6b8e3]{background:#2a2a2a;border:1px solid #444;color:#eee;padding:10px 16px;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;text-align:left;white-space:nowrap;display:flex;align-items:center;width:100%}.fab-item-wrapper[data-v-c4c6b8e3]{position:relative;display:flex;width:100%}.fab-item-delete[data-v-c4c6b8e3]{position:absolute;top:50%;right:8px;transform:translateY(-50%);width:20px;height:20px;border-radius:50%;background:#dc3545;color:#fff;border:none;font-size:14px;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:11;padding:0;line-height:1}.fab-item .icon[data-v-c4c6b8e3]{margin-right:8px;width:18px;height:18px}.fab-item[data-v-c4c6b8e3]:active{background:var(--accent)}.fab-item.danger[data-v-c4c6b8e3]{color:#f85149}.fab-item.add-btn[data-v-c4c6b8e3]{background:transparent;border-style:dashed;justify-content:center}.fab-divider[data-v-c4c6b8e3]{height:1px;background:#ffffff1a;margin:4px 0}.console-drawer[data-v-c4c6b8e3]{height:360px;background:#151515;border-top:2px solid var(--accent);display:flex;flex-direction:column;z-index:100;flex-shrink:0}.console-header[data-v-c4c6b8e3]{background:#222;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #333}.console-tabs[data-v-c4c6b8e3]{display:flex}.console-tabs button[data-v-c4c6b8e3]{background:none;border:none;color:#666;padding:12px 16px;font-size:12px;cursor:pointer;border-bottom:2px solid transparent}.console-tabs button.active[data-v-c4c6b8e3]{color:var(--accent);border-bottom-color:var(--accent);background:#ffffff0d}.close-console[data-v-c4c6b8e3]{background:none;border:none;color:#555;cursor:pointer;font-size:18px;padding-right:16px}.console-history[data-v-c4c6b8e3]{flex:1;overflow-y:auto;padding:16px;font-family:Fira Code,Courier New,monospace;font-size:12px;background:#0a0a0a}.console-empty[data-v-c4c6b8e3]{color:#444;text-align:center;margin-top:40px}.log-item[data-v-c4c6b8e3]{margin-bottom:12px}.log-cmd[data-v-c4c6b8e3]{color:var(--accent);opacity:.8;font-weight:700}.log-out[data-v-c4c6b8e3]{white-space:pre-wrap;word-break:break-all;margin:4px 0 0;color:#eee;line-height:1.4}.log-item.error .log-out[data-v-c4c6b8e3]{color:#f55}.log-item.success .log-out[data-v-c4c6b8e3]{color:#50fa7b}.console-shortcuts[data-v-c4c6b8e3]{display:flex;padding:8px;gap:8px;background:#1a1a1a;overflow-x:auto;border-top:1px solid #333}.console-shortcuts button[data-v-c4c6b8e3]{background:#252525;border:1px solid #333;color:#999;padding:4px 10px;border-radius:4px;font-size:10px;white-space:nowrap;cursor:pointer}.console-shortcuts.danger[data-v-c4c6b8e3]{border-top:none;padding-top:0;padding-bottom:8px}.console-shortcuts .quit-btn[data-v-c4c6b8e3]{color:#f85149;border-color:#f851494d}.console-shortcuts .quit-btn[data-v-c4c6b8e3]:hover{background:#f851491a;border-color:#f85149}.console-input-group[data-v-c4c6b8e3]{display:flex;padding:10px;gap:8px;background:#222}.cmd-input[data-v-c4c6b8e3]{flex:1;background:#000;border:1px solid #444;color:#fff;padding:8px 12px;border-radius:4px;outline:none}.cmd-input[data-v-c4c6b8e3]:focus{border-color:var(--accent)}.send-btn[data-v-c4c6b8e3]{background:var(--accent);color:#fff;border:none;padding:0 16px;border-radius:4px;font-weight:600;cursor:pointer}.adb-container[data-v-c4c6b8e3]{flex:1;background:#000;position:relative;overflow:hidden}.adb-placeholder[data-v-c4c6b8e3]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:#666;text-align:center;padding:20px}.adb-connect-btn[data-v-c4c6b8e3]{background:var(--accent);color:#fff;border:none;padding:10px 20px;border-radius:6px;margin-bottom:12px;cursor:pointer;font-weight:600}@media (max-width: 1024px){.device-panel-view.mobile-landscape[data-v-c4c6b8e3]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999;background:#000}.device-panel-view.mobile-landscape .video-wrapper[data-v-c4c6b8e3]{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1}.device-panel-view.mobile-landscape .video-stream[data-v-c4c6b8e3]{position:absolute;top:50%;left:50%;width:100vh;height:100vw;transform:translate(-50%,-50%) rotate(90deg);object-fit:contain}.device-panel-view.mobile-landscape .fullscreen-fab[data-v-c4c6b8e3]{z-index:101}.device-panel-view.mobile-landscape .console-drawer[data-v-c4c6b8e3]{position:fixed;bottom:60px;left:0;right:0;z-index:100}.device-panel-view.mobile-landscape .panel-overlay[data-v-c4c6b8e3]{z-index:50}}.device-card[data-v-947616f7]{background:var(--bg-secondary);border-radius:12px;overflow:hidden;display:flex;flex-direction:column;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);border:1px solid var(--border);position:relative}.device-card[data-v-947616f7]:hover{transform:translateY(-4px);box-shadow:0 12px 32px #0006;border-color:var(--accent)}.preview-area[data-v-947616f7]{aspect-ratio:9 / 16;background:#111;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center}.snapshot-placeholder[data-v-947616f7]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#1a1a2e,#16213e)}.snapshot-img[data-v-947616f7]{width:100%;height:100%;object-fit:cover;display:block}.vm-icon[data-v-947616f7]{font-size:48px;opacity:.3}.overlay[data-v-947616f7]{position:absolute;top:0;left:0;right:0;bottom:0;background:#0006;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .2s}.device-card:hover .overlay[data-v-947616f7]{opacity:1}.play-hint[data-v-947616f7]{background:var(--accent);color:#fff;padding:6px 16px;border-radius:20px;font-size:13px;font-weight:500;transform:translateY(10px);transition:transform .2s}.device-card:hover .play-hint[data-v-947616f7]{transform:translateY(0)}.card-footer[data-v-947616f7]{padding:12px 16px;background:var(--bg-secondary);border-top:1px solid var(--border);position:relative}.device-main-info[data-v-947616f7]{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}.device-id-text[data-v-947616f7]{font-size:14px;font-weight:600;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--text-primary);max-width:140px}.status-badge[data-v-947616f7]{font-size:10px;padding:2px 6px;border-radius:4px;font-weight:700;text-transform:uppercase}.status-badge.online[data-v-947616f7]{background:#4ade801a;color:#4ade80}.status-badge.offline[data-v-947616f7]{background:#ffffff1a;color:#999}.device-meta[data-v-947616f7]{font-size:11px;color:var(--text-secondary)}.model-name[data-v-947616f7]{opacity:.7}.menu-btn[data-v-947616f7]{position:absolute;right:8px;bottom:8px;width:24px;height:24px;display:flex;align-items:center;justify-content:center;background:transparent;border:none;border-radius:4px;cursor:pointer;opacity:.5;transition:all .15s ease}.menu-btn[data-v-947616f7]:hover{opacity:1;background:var(--bg-hover)}.menu-btn svg[data-v-947616f7]{width:14px;height:14px;color:var(--text-secondary)}.card-menu[data-v-947616f7]{position:absolute;bottom:36px;right:8px;min-width:140px;background:var(--bg-surface);border:1px solid var(--border);border-radius:8px;box-shadow:0 8px 32px #00000080;z-index:100;padding:4px}.menu-item[data-v-947616f7]{display:flex;align-items:center;gap:10px;width:100%;padding:8px 12px;background:transparent;border:none;border-radius:6px;font-size:12px;color:var(--text-primary);cursor:pointer;text-align:left}.menu-item[data-v-947616f7]:hover:not(:disabled){background:var(--bg-hover)}.menu-item[data-v-947616f7]:disabled{opacity:.4;cursor:not-allowed}.menu-item.danger[data-v-947616f7]{color:var(--error)}.menu-item svg[data-v-947616f7]{width:14px;height:14px}.menu-overlay[data-v-947616f7]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50}@media (max-width: 768px){.card-footer[data-v-947616f7]{padding:8px 10px}.device-id-text[data-v-947616f7]{font-size:13px;max-width:80px}.status-badge[data-v-947616f7]{font-size:9px;padding:1px 4px}.vm-icon[data-v-947616f7]{font-size:32px}.menu-btn[data-v-947616f7]{opacity:1}}.device-list-page[data-v-b7861d24]{padding:24px;min-height:100%}.page-header[data-v-b7861d24]{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;padding-bottom:16px;border-bottom:1px solid var(--border)}.header-left[data-v-b7861d24]{display:flex;align-items:baseline;gap:12px}.page-title[data-v-b7861d24]{font-size:20px;font-weight:600;margin:0}.device-count[data-v-b7861d24]{font-size:13px;color:var(--text-secondary)}.header-controls[data-v-b7861d24]{display:flex;align-items:center;gap:24px}.deploy-btn[data-v-b7861d24]{display:flex;align-items:center;gap:8px;background:var(--accent);color:#fff;border:none;padding:8px 16px;border-radius:6px;font-weight:600;font-size:13px;cursor:pointer;transition:all .2s}.deploy-btn[data-v-b7861d24]:hover{opacity:.9;transform:translateY(-1px)}.size-control[data-v-b7861d24]{display:flex;align-items:center;gap:12px}.size-control .label[data-v-b7861d24]{font-size:13px;color:var(--text-secondary)}.size-slider[data-v-b7861d24]{width:120px;height:4px;-webkit-appearance:none;background:var(--border);border-radius:2px;outline:none}.size-slider[data-v-b7861d24]::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;background:var(--accent);border-radius:50%;cursor:pointer;transition:transform .1s}.size-slider[data-v-b7861d24]::-webkit-slider-thumb:hover{transform:scale(1.2)}.size-value[data-v-b7861d24]{font-size:12px;color:var(--text-secondary);min-width:40px}.btn-refresh-icon[data-v-b7861d24]{background:none;border:none;cursor:pointer;font-size:18px;padding:4px;border-radius:4px;transition:background .2s}.btn-refresh-icon[data-v-b7861d24]:hover{background:#ffffff0d}.grid-container[data-v-b7861d24]{width:100%}.device-grid[data-v-b7861d24]{display:grid;gap:20px}.state-view[data-v-b7861d24]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:100px 0;color:var(--text-secondary);text-align:center}.spinner[data-v-b7861d24]{width:32px;height:32px;border:2px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:spin-b7861d24 .8s linear infinite;margin-bottom:16px}@keyframes spin-b7861d24{to{transform:rotate(360deg)}}.empty-icon[data-v-b7861d24]{font-size:48px;margin-bottom:16px;opacity:.5}.state-view h3[data-v-b7861d24]{margin:0 0 8px;color:var(--text-primary)}@media (max-width: 768px){.device-list-page[data-v-b7861d24]{padding:12px;height:calc(100vh - 100px);display:flex;flex-direction:column}.size-control[data-v-b7861d24],.hide-on-mobile[data-v-b7861d24]{display:none!important}.grid-container[data-v-b7861d24]{flex:1;display:flex;align-items:center;overflow:hidden}.device-grid[data-v-b7861d24]{display:flex!important;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;gap:16px;padding:20px 12px;width:100%;-webkit-overflow-scrolling:touch}.device-grid[data-v-b7861d24]::-webkit-scrollbar{display:none}.device-grid[data-v-b7861d24]>*{min-width:80vw;max-width:80vw;scroll-snap-align:center}.page-title[data-v-b7861d24]{font-size:18px}}.deploy-page[data-v-96336780]{padding:24px;height:100%;overflow-y:auto}.deploy-layout[data-v-96336780]{display:grid;grid-template-columns:360px 1fr;gap:24px;max-width:1200px}.section-title[data-v-96336780]{font-size:16px;font-weight:600;margin:0 0 20px;color:var(--text-primary)}.form-section[data-v-96336780]{background:var(--bg-surface, var(--bg-secondary));border:1px solid var(--border);border-radius:12px;padding:24px;align-self:start}.form-group[data-v-96336780]{margin-bottom:16px}.form-row[data-v-96336780]{display:flex;align-items:center;justify-content:space-between}.form-label[data-v-96336780]{display:block;font-size:13px;color:var(--text-secondary);margin-bottom:6px}.form-hint[data-v-96336780]{font-size:11px;color:var(--text-secondary);opacity:.6;margin-top:4px;word-break:break-all}.form-row .form-label[data-v-96336780]{margin-bottom:0}.required[data-v-96336780]{color:var(--error, #f44)}.form-input[data-v-96336780]{width:100%;padding:8px 12px;border:1px solid var(--border);border-radius:6px;font-size:13px;background:var(--bg-primary);color:var(--text-primary);box-sizing:border-box}.form-input[data-v-96336780]:focus{outline:none;border-color:var(--accent)}.toggle[data-v-96336780]{position:relative;display:inline-block;width:40px;height:22px}.toggle input[data-v-96336780]{opacity:0;width:0;height:0}.toggle-slider[data-v-96336780]{position:absolute;cursor:pointer;top:0;right:0;bottom:0;left:0;background:var(--border);border-radius:22px;transition:.2s}.toggle-slider[data-v-96336780]:before{content:"";position:absolute;height:16px;width:16px;left:3px;bottom:3px;background:#fff;border-radius:50%;transition:.2s}.toggle input:checked+.toggle-slider[data-v-96336780]{background:var(--accent)}.toggle input:checked+.toggle-slider[data-v-96336780]:before{transform:translate(18px)}.deploy-btn[data-v-96336780]{width:100%;padding:10px;margin-top:8px;background:var(--accent);color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:opacity .2s}.deploy-btn[data-v-96336780]:hover:not(:disabled){opacity:.9}.deploy-btn[data-v-96336780]:disabled{background:var(--bg-hover);color:var(--text-muted);cursor:not-allowed}.log-section[data-v-96336780]{background:var(--bg-surface, var(--bg-secondary));border:1px solid var(--border);border-radius:12px;padding:24px;display:flex;flex-direction:column;min-height:400px}.steps[data-v-96336780]{display:flex;gap:4px;margin-bottom:16px;flex-wrap:wrap}.step[data-v-96336780]{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--text-secondary);padding:4px 10px;border-radius:6px;background:var(--bg-primary)}.step.done[data-v-96336780]{color:var(--success, #4caf50)}.step.active[data-v-96336780]{color:var(--accent);background:#3b82f61a}.step.error[data-v-96336780]{color:var(--error, #f44);background:#f443361a}.step-icon[data-v-96336780]{font-size:14px}.progress-bar[data-v-96336780]{height:6px;background:var(--border);border-radius:3px;overflow:hidden;margin-bottom:12px}.progress-inner[data-v-96336780]{height:100%;background:var(--accent);transition:width .3s ease}.status-line[data-v-96336780]{font-size:13px;color:var(--text-secondary);margin-bottom:12px}.status-line.success[data-v-96336780]{color:var(--success, #4caf50)}.status-line.error[data-v-96336780]{color:var(--error, #f44)}.log-area[data-v-96336780]{flex:1;background:var(--bg-primary);border:1px solid var(--border);border-radius:8px;padding:12px;font-family:SF Mono,Fira Code,monospace;font-size:12px;line-height:1.6;overflow-y:auto;max-height:400px}.log-empty[data-v-96336780]{color:var(--text-secondary);opacity:.5}.log-line[data-v-96336780]{color:var(--text-secondary);white-space:pre-wrap;word-break:break-all}@media (max-width: 768px){.deploy-layout[data-v-96336780]{grid-template-columns:1fr}}:root{--nav-width: 64px;--bg-primary: #0d1117;--bg-secondary: #161b22;--border: #30363d;--accent: #58a6ff}body{margin:0;background:var(--bg-primary);color:#c9d1d9;font-family:-apple-system,sans-serif;overflow:hidden}.app-container{display:flex;height:100vh;width:100vw;position:relative}.is-resizing *{transition:none!important;-webkit-user-select:none!important;user-select:none!important}.side-nav{width:var(--nav-width);background:var(--bg-secondary);border-right:1px solid var(--border);display:flex;flex-direction:column;align-items:center;padding:20px 0;flex-shrink:0;box-sizing:border-box}.nav-brand{font-size:24px;margin-bottom:40px;display:flex;align-items:center;justify-content:center}.nav-links{display:flex;flex-direction:column;align-items:center;width:100%}.nav-item{font-size:20px;padding:10px;border-radius:12px;margin-bottom:20px;opacity:.5;text-decoration:none;color:inherit;display:flex;align-items:center;justify-content:center}.nav-item.active{opacity:1;color:var(--accent);background:#58a6ff1a}.main-content{flex:1;display:flex;flex-direction:column;overflow:hidden}.top-bar{height:60px;padding:0 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border)}.page-title{font-size:16px;font-weight:600;color:#e6edf3}.global-status{color:#888;font-size:13px}.viewport{flex:1;overflow-y:auto;padding:12px}.control-panel-wrapper{height:100vh;background:var(--bg-secondary);border-left:1px solid var(--border);display:flex;flex-direction:column;position:absolute;right:0;top:0;z-index:200;transition:transform .4s cubic-bezier(.16,1,.3,1),width .2s ease;transform:translate(100%);width:0;overflow:hidden}.control-panel-wrapper.is-open{transform:translate(0)}.control-panel-wrapper.is-floating{position:fixed;border:1px solid var(--border);border-radius:12px;box-shadow:0 30px 60px #0009;z-index:1000;transform:none;transition:none}.side-resizer{position:absolute;left:-4px;top:0;bottom:0;width:8px;cursor:col-resize;z-index:100}.resize-handle{position:absolute;z-index:100}.resize-handle.top{top:-5px;left:0;right:0;height:10px;cursor:ns-resize}.resize-handle.bottom{bottom:-5px;left:0;right:0;height:10px;cursor:ns-resize}.resize-handle.left{left:-5px;top:0;bottom:0;width:10px;cursor:ew-resize}.resize-handle.right{right:-5px;top:0;bottom:0;width:10px;cursor:ew-resize}.resize-corner.bottom-right{position:absolute;right:-5px;bottom:-5px;width:20px;height:20px;cursor:nwse-resize;z-index:101}.panel-inner{flex:1;display:flex;flex-direction:column;overflow:hidden;background:var(--bg-secondary);border-radius:12px}.panel-top-bar{height:50px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--border);cursor:grab}.vm-info{display:flex;align-items:center;gap:8px;pointer-events:none}.status-dot{width:8px;height:8px;border-radius:50%;background:#10b981}.vm-id{font-weight:600;font-size:14px}.tool-btn{background:none;border:none;color:#888;cursor:pointer;padding:6px;border-radius:4px;font-size:16px}.tool-btn:hover{color:#fff;background:#ffffff0d}.tool-btn.close:hover{color:#f85149}.panel-main{flex:1;overflow:hidden;background:#000}.panel-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#888;text-align:center;opacity:.3}.hint-icon{font-size:48px;margin-bottom:16px}@media (max-width: 1024px){.control-panel-wrapper.is-mobile{position:fixed;top:0;right:0;bottom:0;left:0;width:100vw!important;height:100vh!important;transform:translate(100%);z-index:2000;border:none}.control-panel-wrapper.is-mobile.is-open{transform:translate(0)}.panel-inner{border-radius:0}}.fade-enter-active,.fade-leave-active{transition:opacity .2s}:root{--bg-primary: #0f0f1a;--bg-secondary: #1a1a2e;--bg-card: #16213e;--accent: #e94560;--accent-hover: #ff6b6b;--text-primary: #ffffff;--text-secondary: #888888;--success: #00ff00;--border: rgba(255, 255, 255, .1)}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;background:var(--bg-primary);color:var(--text-primary);min-height:100vh}button{cursor:pointer;border:none;font-family:inherit}.btn{padding:10px 20px;background:var(--accent);color:#fff;border-radius:8px;font-size:14px;font-weight:500;transition:all .2s ease}.btn:hover{background:var(--accent-hover);transform:translateY(-1px)}.btn-secondary{background:#ffffff1a;border:1px solid var(--border)}.btn-secondary:hover{background:#fff3}.btn-icon{padding:8px 12px;background:#ffffff1a;border:1px solid var(--border);border-radius:8px;color:#fff;font-size:14px;display:flex;align-items:center;gap:6px}.btn-icon:hover{background:#fff3}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:var(--bg-secondary)}::-webkit-scrollbar-thumb{background:var(--accent);border-radius:4px}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.fade-enter-active,.fade-leave-active{transition:opacity .3s ease}.fade-enter-from,.fade-leave-to{opacity:0}.slide-enter-active,.slide-leave-active{transition:all .3s ease}.slide-enter-from,.slide-leave-to{opacity:0;transform:translateY(-20px)}
