/**
 * 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-f209d6d9]{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-f209d6d9 .2s ease}@keyframes fadeIn-f209d6d9{0%{opacity:0}to{opacity:1}}.modal-content[data-v-f209d6d9]{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-f209d6d9]{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid var(--border)}.modal-header h3[data-v-f209d6d9]{margin:0;font-size:16px}.close-btn[data-v-f209d6d9]{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-f209d6d9]:hover{background:#ffffff1a;color:var(--text-primary)}.modal-body[data-v-f209d6d9]{flex:1;overflow:auto;padding:20px}.form-group[data-v-f209d6d9]{margin-bottom:16px;display:flex;flex-direction:column;gap:8px}.form-group label[data-v-f209d6d9]{font-size:13px;color:var(--text-secondary)}.form-group input[type=number][data-v-f209d6d9],.form-group input[type=text][data-v-f209d6d9]{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-f209d6d9]:focus{outline:none;border-color:var(--accent)}.hint[data-v-f209d6d9]{font-size:12px;color:#8b949e}.toggle-switch[data-v-f209d6d9]{display:flex;align-items:center}.toggle-switch input[type=checkbox][data-v-f209d6d9]{display:none}.toggle-switch label[data-v-f209d6d9]{cursor:pointer;width:40px;height:20px;background:var(--border);border-radius:10px;position:relative;transition:background-color .2s}.toggle-switch label[data-v-f209d6d9]: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-f209d6d9]{background:var(--accent)}.toggle-switch input[type=checkbox]:checked+label[data-v-f209d6d9]:after{transform:translate(20px)}.modal-footer[data-v-f209d6d9]{display:flex;justify-content:flex-end;gap:12px;padding:16px 20px;border-top:1px solid var(--border)}.btn[data-v-f209d6d9]{padding:8px 16px;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s;border:none}.btn-secondary[data-v-f209d6d9]{background:transparent;color:var(--text-primary);border:1px solid var(--border)}.btn-secondary[data-v-f209d6d9]:hover{background:#ffffff1a}.btn-primary[data-v-f209d6d9]{background:var(--accent);color:#fff}.btn-primary[data-v-f209d6d9]:hover{filter:brightness(1.1)}.btn-danger[data-v-f209d6d9]{background:transparent;color:#f85149;border:1px solid #f85149}.btn-danger[data-v-f209d6d9]: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-77f165ae]{height:100%;display:flex;flex-direction:row;background:#000;position:relative;overflow:hidden}.device-client-main[data-v-77f165ae]{flex:1;display:flex;flex-direction:column;position:relative;min-width:0}.icon[data-v-77f165ae]{width:20px;height:20px;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}.fullscreen-fab[data-v-77f165ae]{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-77f165ae]{width:18px;height:18px}.fullscreen-fab[data-v-77f165ae]:hover{background:#000c;transform:scale(1.1)}.stats-badge[data-v-77f165ae]{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-77f165ae]{color:#555;margin:0 2px}.stat-warn[data-v-77f165ae]{color:#f85149}.video-wrapper[data-v-77f165ae]{flex:1;background:#000;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;min-height:0}.video-stream[data-v-77f165ae]{width:100%;height:100%;object-fit:contain;touch-action:none}.panel-overlay[data-v-77f165ae]{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-77f165ae]{text-align:center;padding:24px}.mini-spinner[data-v-77f165ae]{width:24px;height:24px;border:2px solid rgba(255,255,255,.1);border-top-color:var(--accent);border-radius:50%;animation:spin-77f165ae .8s linear infinite;margin:0 auto 12px}@keyframes spin-77f165ae{to{transform:rotate(360deg)}}.error-msg[data-v-77f165ae]{color:var(--accent);font-weight:600}.error-tip[data-v-77f165ae]{font-size:12px;color:#999;margin:8px 0 16px}.retry-btn[data-v-77f165ae]{background:var(--accent);color:#fff;border:none;padding:6px 16px;border-radius:4px;font-size:12px;cursor:pointer}.control-sidebar[data-v-77f165ae]{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-77f165ae]{display:flex;flex-direction:column;gap:12px;width:100%;align-items:center}.sidebar-btn-wrapper[data-v-77f165ae]{position:relative;display:flex;justify-content:center}.sidebar-btn-delete[data-v-77f165ae]{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-77f165ae]{opacity:1}.sidebar-btn[data-v-77f165ae]{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-77f165ae]{margin-bottom:2px}.sidebar-btn .btn-text[data-v-77f165ae]{font-size:10px;white-space:nowrap}.sidebar-btn[data-v-77f165ae]:hover{background:#333;border-color:var(--accent);color:#fff}.sidebar-btn.danger[data-v-77f165ae]:hover{background:#f8514933;border-color:var(--error);color:var(--error)}.sidebar-btn.danger[data-v-77f165ae]{color:#888}.sidebar-btn.add-btn[data-v-77f165ae]{border-style:dashed}.sidebar-divider[data-v-77f165ae]{width:32px;height:1px;background:#333;margin:4px 0}.fab-overlay[data-v-77f165ae]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:99}.mobile-fab-container[data-v-77f165ae]{position:fixed;z-index:100;width:56px;height:56px}.mobile-fab-main[data-v-77f165ae]{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-77f165ae]{width:24px;height:24px}.mobile-fab-main[data-v-77f165ae]:active{cursor:grabbing;transform:scale(.95)}.mobile-fab-main.active[data-v-77f165ae]{background:#555}.mobile-fab-menu[data-v-77f165ae]{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-77f165ae]{right:auto;left:0}.mobile-fab-menu.align-top[data-v-77f165ae]{bottom:auto;top:68px;transform:translateY(-20px)}.mobile-fab-menu.show[data-v-77f165ae]{opacity:1;pointer-events:auto;transform:translateY(0)}.fab-item[data-v-77f165ae]{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-77f165ae]{position:relative;display:flex;width:100%}.fab-item-delete[data-v-77f165ae]{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-77f165ae]{margin-right:8px;width:18px;height:18px}.fab-item[data-v-77f165ae]:active{background:var(--accent)}.fab-item.danger[data-v-77f165ae]{color:#f85149}.fab-item.add-btn[data-v-77f165ae]{background:transparent;border-style:dashed;justify-content:center}.fab-divider[data-v-77f165ae]{height:1px;background:#ffffff1a;margin:4px 0}.console-drawer[data-v-77f165ae]{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-77f165ae]{background:#222;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #333}.console-tabs[data-v-77f165ae]{display:flex}.console-tabs button[data-v-77f165ae]{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-77f165ae]{color:var(--accent);border-bottom-color:var(--accent);background:#ffffff0d}.close-console[data-v-77f165ae]{background:none;border:none;color:#555;cursor:pointer;font-size:18px;padding-right:16px}.console-history[data-v-77f165ae]{flex:1;overflow-y:auto;padding:16px;font-family:Fira Code,Courier New,monospace;font-size:12px;background:#0a0a0a}.console-empty[data-v-77f165ae]{color:#444;text-align:center;margin-top:40px}.log-item[data-v-77f165ae]{margin-bottom:12px}.log-cmd[data-v-77f165ae]{color:var(--accent);opacity:.8;font-weight:700}.log-out[data-v-77f165ae]{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-77f165ae]{color:#f55}.log-item.success .log-out[data-v-77f165ae]{color:#50fa7b}.console-shortcuts[data-v-77f165ae]{display:flex;padding:8px;gap:8px;background:#1a1a1a;overflow-x:auto;border-top:1px solid #333}.console-shortcuts button[data-v-77f165ae]{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-77f165ae]{border-top:none;padding-top:0;padding-bottom:8px}.console-shortcuts .quit-btn[data-v-77f165ae]{color:#f85149;border-color:#f851494d}.console-shortcuts .quit-btn[data-v-77f165ae]:hover{background:#f851491a;border-color:#f85149}.console-input-group[data-v-77f165ae]{display:flex;padding:10px;gap:8px;background:#222}.cmd-input[data-v-77f165ae]{flex:1;background:#000;border:1px solid #444;color:#fff;padding:8px 12px;border-radius:4px;outline:none}.cmd-input[data-v-77f165ae]:focus{border-color:var(--accent)}.send-btn[data-v-77f165ae]{background:var(--accent);color:#fff;border:none;padding:0 16px;border-radius:4px;font-weight:600;cursor:pointer}.adb-container[data-v-77f165ae]{flex:1;background:#000;position:relative;overflow:hidden}.adb-placeholder[data-v-77f165ae]{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-77f165ae]{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-77f165ae]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999;background:#000}.device-panel-view.mobile-landscape .video-wrapper[data-v-77f165ae]{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1}.device-panel-view.mobile-landscape .video-stream[data-v-77f165ae]{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-77f165ae]{z-index:101}.device-panel-view.mobile-landscape .console-drawer[data-v-77f165ae]{position:fixed;bottom:60px;left:0;right:0;z-index:100}.device-panel-view.mobile-landscape .panel-overlay[data-v-77f165ae]{z-index:50}}: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)}
