:root{color-scheme:dark;--bg: #12161c;--surface: #1b2430;--border: #2c3846;--text: #e6edf3;--muted: #8b98a8;--accent: #4c8dff;--danger: #ff5c5c}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,sans-serif;display:grid;place-items:center;padding:24px}#app{width:100%;max-width:420px}#app:has(#session-panel:not(.hidden)){max-width:100%}.panel{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:24px;display:flex;flex-direction:column;gap:10px}.hidden{display:none}h1{margin:0;font-size:22px}label{font-size:12px;color:var(--muted);margin-top:6px}input{background:var(--bg);border:1px solid var(--border);border-radius:8px;color:var(--text);padding:10px 12px;font-size:15px;font-family:ui-monospace,Cascadia Code,monospace}input:focus-visible{outline:2px solid var(--accent);outline-offset:1px}button{background:var(--accent);border:none;border-radius:8px;color:#fff;padding:10px 14px;font-size:14px;font-weight:600;cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button.danger{background:transparent;border:1px solid var(--danger);color:var(--danger)}.checkbox{display:flex;align-items:center;gap:8px;margin-top:12px;color:var(--text);font-size:13px;cursor:pointer}.checkbox input{width:auto;margin:0;cursor:pointer}#connect{margin-top:14px}.status{font-size:13px;color:var(--muted);min-height:18px;margin:4px 0 0}.status.error{color:var(--danger)}.stage{position:relative;display:grid;place-items:center;background:#000;border-radius:10px;overflow:hidden;min-height:200px}#screen,#screen-canvas{max-height:78vh;max-width:100%;display:block;touch-action:none;cursor:crosshair}#screen:focus-visible,#screen-canvas:focus-visible{outline:2px solid var(--accent)}.session-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:8px}.indicator{font-size:12px;padding:2px 10px;border-radius:999px;border:1px solid var(--border);color:var(--muted);white-space:nowrap}.indicator.adb{border-color:#2e7d5b;color:#6ee7b7}.indicator.accessibility{border-color:#7a6a2e;color:#e7d16e}.session-bar .status{margin-left:auto}.stage-idle{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;color:var(--muted);padding:24px}.stage-idle.hidden{display:none}#toggle-stream.active,#toggle-camera.active,#toggle-mic.active{border-color:var(--accent);color:var(--accent)}.camera-panel{margin-top:8px;background:#000;border-radius:8px;overflow:hidden;display:flex;justify-content:center}.camera-panel.hidden{display:none}#camera{max-width:100%;max-height:40vh}.controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.controls .status{margin-left:auto}.hint{font-size:12px;color:var(--muted);margin:0}.terminal-panel{border:1px solid var(--border);border-radius:8px;background:#0b0e14;padding:8px;height:320px;resize:vertical;overflow:hidden}.terminal{width:100%;height:100%}#toggle-terminal.active{border-color:var(--accent);color:var(--accent)}.files-panel{display:flex;flex-direction:column;gap:8px;border:1px solid var(--border);border-radius:8px;padding:8px}.files-panel.dropping{border-color:var(--accent);background:#4c8dff0f}.files-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.files-bar input[type=text]{flex:1 1 220px;min-width:0}.file-list{height:260px;overflow-y:auto;border:1px solid var(--border);border-radius:6px;background:var(--bg)}.file-row{display:flex;align-items:center;gap:8px;padding:4px 8px;border-bottom:1px solid var(--border)}.file-row:last-child{border-bottom:none}.file-row:hover{background:var(--surface)}.file-icon{flex:0 0 auto;font-size:15px}.file-name{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left;background:none;border:none;color:var(--text);padding:2px 0;cursor:pointer;font:inherit}.file-name:hover{color:var(--accent);text-decoration:underline}.file-meta{flex:0 0 auto;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.file-action{flex:0 0 auto;background:none;border:1px solid transparent;color:var(--muted);cursor:pointer;padding:2px 6px;border-radius:4px;font-size:13px}.file-action:hover{color:var(--text);border-color:var(--border)}.file-action.danger:hover{color:var(--danger);border-color:var(--danger)}.file-empty{padding:12px;color:var(--muted);font-size:13px}.files-hint{font-size:12px;color:var(--muted);margin:0}#toggle-audit.active{border-color:var(--accent);color:var(--accent)}.audit-panel{display:flex;flex-direction:column;gap:8px;border:1px solid var(--border);border-radius:8px;padding:8px}.audit-bar{display:flex;align-items:center;gap:8px}.audit-title{font-size:13px;font-weight:600}.audit-count{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums;background:var(--bg);border:1px solid var(--border);border-radius:10px;padding:1px 8px}#audit-export{margin-left:auto}.audit-list{height:260px;overflow-y:auto;border:1px solid var(--border);border-radius:6px;background:var(--bg);font-size:13px}.audit-row{display:grid;grid-template-columns:auto minmax(60px,.8fr) minmax(0,1fr) minmax(0,2fr);gap:10px;align-items:baseline;padding:4px 8px;border-bottom:1px solid var(--border)}.audit-row:last-child{border-bottom:none}.audit-row:hover{background:var(--surface)}.audit-time{color:var(--muted);font-variant-numeric:tabular-nums;font-size:12px}.audit-app{color:var(--accent);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.audit-where{color:var(--muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.audit-text{font-family:SF Mono,Cascadia Code,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}.audit-text.redacted{color:var(--muted);font-style:italic}@media (max-width: 640px){.audit-row{grid-template-columns:auto 1fr}.audit-text{grid-column:1 / -1}}/**
 * 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;inset:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.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:not(.debug),.xterm .xterm-message{position:absolute;inset:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{font-family:monospace;user-select:text;white-space:pre}.xterm .xterm-accessibility-tree>div{transform-origin:left;width:fit-content}.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}.xterm .xterm-scrollable-element>.scrollbar{cursor:default}.xterm .xterm-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.xterm .xterm-scrollable-element>.visible{opacity:1;background:#0000;transition:opacity .1s linear;z-index:11}.xterm .xterm-scrollable-element>.invisible{opacity:0;pointer-events:none}.xterm .xterm-scrollable-element>.invisible.fade{transition:opacity .8s linear}.xterm .xterm-scrollable-element>.shadow{position:absolute;display:none}.xterm .xterm-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%;box-shadow:var(--vscode-scrollbar-shadow, #000) 0 6px 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px;box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.xterm .xterm-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}
