.mobileApp{--mobile-kbd-offset: 0px;--mobile-nav-space: calc(60px + env(safe-area-inset-bottom)) ;--mobile-input-space: 56px;--mobile-dock-space: calc(var(--mobile-nav-space) + var(--mobile-input-space));height:100vh;display:flex;flex-direction:column;background:var(--bg-app);color:var(--text-primary)}.mobileTopbar{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:10px;padding:10px 12px;border-bottom:1px solid var(--border-subtle);background:var(--bg-panel)}.mobileProjectBtn{flex:1;border:1px solid var(--border-subtle);background:#000;color:var(--text-primary);padding:8px 14px;border-radius:999px;cursor:pointer;font-size:13px;max-width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobileLogoutBtn{margin-left:auto;display:flex;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid var(--border-subtle);border-radius:50%;background:#000;color:var(--text-secondary);cursor:pointer;transition:color .15s,border-color .15s}.mobileLogoutBtn:hover{color:var(--text-primary);border-color:var(--text-secondary)}.mobileContent{flex:1;min-height:0;display:flex;flex-direction:column;padding:10px;padding-bottom:calc(var(--mobile-dock-space) + var(--mobile-kbd-offset));position:relative}.mobileCard{background:#000;border:1px solid var(--border-subtle);border-radius:var(--radius-sm)}.mobileTerminalWrap{flex:1;min-height:0;overflow:hidden;border-radius:0}.mobileSheetOverlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000a6;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);z-index:60;display:flex;align-items:flex-end}.mobileSheet{width:100%;max-height:70vh;display:flex;flex-direction:column;background:#000;border-top:1px solid var(--border-subtle);border-top-left-radius:18px;border-top-right-radius:18px;padding:12px;padding-bottom:calc(12px + env(safe-area-inset-bottom));box-shadow:var(--shadow-elev-1)}.mobileSheetHeader{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 4px 10px}.mobileSheetTitle{font-weight:600}.mobileSheetBody{flex:1;min-height:0;overflow-y:auto}.mobileList{display:grid;gap:10px}.mobileListRow{display:grid;gap:4px;padding:12px;border:1px solid var(--border-subtle);border-radius:var(--radius-sm);background:#000;cursor:pointer;text-align:left}.mobileListRowTitle{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobileListRowMeta{color:var(--text-secondary);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobileNavArrows{position:fixed;bottom:var(--mobile-kbd-offset);left:0;right:0;display:flex;justify-content:center;gap:12px;padding:8px;padding-bottom:calc(8px + env(safe-area-inset-bottom));background:var(--bg-panel);border-top:1px solid var(--border-subtle);z-index:40}.mobileNavArrowBtn{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid var(--border-subtle);border-radius:50%;background:#000;color:var(--text-primary);cursor:pointer;transition:background .15s,border-color .15s}.mobileNavArrowBtn svg{width:20px;height:20px}.mobileNavArrowBtn:active{background:var(--bg-active);border-color:var(--accent)}.mobileInputBar{position:fixed;bottom:calc(var(--mobile-kbd-offset) + var(--mobile-nav-space));left:0;right:0;padding:8px 12px;background:var(--bg-panel);border-top:1px solid var(--border-subtle);z-index:45;display:flex;justify-content:center}.mobileInputForm{display:flex;gap:8px;width:100%;max-width:600px}.mobileInput{flex:1;background:#000;border:1px solid var(--border-subtle);border-radius:999px;padding:0 16px;height:40px;color:var(--text-primary);font-family:inherit;font-size:16px;outline:none}.mobileInput:focus{border-color:var(--accent)}.mobileInputSendBtn{width:40px;height:40px;border-radius:50%;background:var(--accent);border:none;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0}.mobileInputSendBtn:active{opacity:.9}.app{height:100vh;display:flex;flex-direction:column}.topbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;row-gap:8px;padding:12px 16px;border-bottom:1px solid var(--border-subtle);background:var(--bg-panel);position:sticky;top:0;z-index:20}.topbar-title{font-weight:600;letter-spacing:.2px;margin-right:8px}.topbar-spacer{flex:1}.input{background:#000;border:1px solid var(--border-subtle);color:var(--text-primary);padding:8px 10px;border-radius:var(--radius-sm);min-width:min(260px,100%)}.card{background:#000;border:1px solid var(--border-subtle);border-radius:var(--radius-sm)}.content{display:grid;grid-template-rows:1fr auto;gap:12px;min-height:0}.main{display:grid;grid-template-columns:320px 1fr;gap:12px;padding:12px;flex:1;min-height:0}.sidebar{display:flex;flex-direction:column;min-height:0}.sidebarHeader{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-bottom:1px solid var(--border-subtle)}.sidebarBody{padding:8px 0;overflow:auto;min-height:0}.sidebarFooter{padding:10px 12px;border-top:1px solid var(--border-subtle)}.treeRow{display:flex;align-items:center;gap:8px;padding:4px 6px}.treeRow:hover{background:var(--bg-hover)}.treeRowSelected{background:var(--bg-active)}.treeToggle{width:22px;height:22px;border:1px solid var(--border-subtle);background:#000;color:var(--text-primary);border-radius:var(--radius-sm);cursor:pointer}.treeToggle:disabled{opacity:.35;cursor:default}.treeName{flex:1;text-align:left;border:none;background:transparent;color:var(--text-primary);padding:0;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.treeMeta{padding:2px 6px;color:var(--text-secondary)}.terminalWrap{background:var(--bg-term);border:1px solid var(--border-subtle);border-radius:0;overflow:hidden;min-height:0}.footer{display:flex;align-items:center;justify-content:space-between;padding:10px 12px}.badge{font-size:12px;padding:6px 10px;border-radius:999px;border:1px solid var(--border-subtle);color:var(--text-secondary);background:#000}.badgeGreen{color:var(--accent-success);border-color:#00ff00a6}.badgeRed{color:var(--accent-danger);border-color:#ef4444a6}.btn{border:1px solid var(--border-subtle);background:#000;color:var(--text-primary);padding:8px 12px;border-radius:var(--radius-sm);cursor:pointer;transition:all .2s ease-in-out}.btn:disabled{opacity:.55;cursor:not-allowed}.btn:hover{border-color:#00ff00a6;background:var(--bg-hover)}.btn:active{background:var(--bg-active)}.btnPrimary{background:var(--bg-hover);border-color:#00ff00bf}.btnPrimary:hover{background:var(--bg-active)}.btnDanger{background:#ef44441f;border-color:#ef4444a6;color:#fecaca}.btnDanger:hover{background:#ef44442e}.small{font-size:12px;color:var(--text-secondary)}.drawerOverlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#000000a6;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);display:flex;justify-content:flex-end;z-index:50}.drawerPanel{width:min(980px,92vw);height:100vh;background:#000;border-left:1px solid var(--border-subtle);box-shadow:var(--shadow-elev-1);border-top-left-radius:var(--radius-md);border-bottom-left-radius:var(--radius-md);display:flex;flex-direction:column}.drawerHeader{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border-bottom:1px solid var(--border-subtle);background:var(--bg-panel)}.drawerBody{display:grid;grid-template-columns:360px 1fr;gap:12px;padding:12px;min-height:0;flex:1}.drawerLeft{min-height:0;display:flex;flex-direction:column}.drawerRight{min-height:0;display:flex;flex-direction:column;gap:12px}.drawerList{margin-top:10px;min-height:0;overflow:auto;border:1px solid var(--border-subtle);border-radius:var(--radius-sm);background:#000}.drawerItem{display:grid;gap:4px;width:100%;text-align:left;padding:10px;border:none;border-bottom:1px solid rgba(0,255,0,.15);border-radius:var(--radius-sm);background:transparent;color:var(--text-primary);cursor:pointer}.drawerItem:hover{background:var(--bg-hover)}.drawerItemActive{background:var(--bg-active)}.drawerTranscript{min-height:0;overflow:auto;border:1px solid var(--border-subtle);padding:10px;border-radius:var(--radius-sm);background:#000}@media(max-width:900px){.main,.drawerBody{grid-template-columns:1fr}}/**
 * 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:not(.debug),.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{-webkit-user-select:text;user-select:text;white-space:pre}.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}.terminalWrap .xterm{background:#000;color:#0f0}.terminalWrap .xterm-viewport{background:#000;scrollbar-color:#00ff00 #000000;scrollbar-width:thin}.terminalWrap .xterm a{color:#0f0;text-decoration:underline}.terminalWrap .xterm .xterm-cursor-layer{opacity:1}.loginContainer{display:flex;align-items:center;justify-content:center;min-height:100vh;min-height:100dvh;background:#000;padding:16px}.loginCard{width:100%;max-width:360px;background:#111;border:1px solid #333;border-radius:12px;padding:32px 24px}.loginTitle{margin:0 0 24px;font-size:24px;font-weight:600;color:#fff;text-align:center}.loginForm{display:flex;flex-direction:column;gap:16px}.loginField{display:flex;flex-direction:column;gap:6px}.loginField label{font-size:14px;color:#888}.loginField input{padding:12px 14px;font-size:16px;background:#000;border:1px solid #333;border-radius:8px;color:#fff;outline:none;transition:border-color .15s}.loginField input:focus{border-color:#666}.loginField input::placeholder{color:#555}.loginField input:disabled{opacity:.6}.loginError{padding:10px 12px;background:#ff50501a;border:1px solid rgba(255,80,80,.3);border-radius:8px;color:#ff6b6b;font-size:14px;text-align:center}.loginBtn{padding:14px 20px;font-size:16px;font-weight:500;background:#fff;border:none;border-radius:8px;color:#000;cursor:pointer;transition:opacity .15s;margin-top:8px}.loginBtn:hover:not(:disabled){opacity:.9}.loginBtn:disabled{opacity:.5;cursor:not-allowed}:root{--bg-app: #000000;--bg-panel: #000000;--bg-term: #000000;--text-primary: #00ff00;--text-secondary: #00c000;--accent-primary: #00ff00;--accent-hover: #39ff14;--accent-danger: #ef4444;--accent-success: #00ff00;--border-subtle: rgba(0, 255, 0, .45);--bg-hover: #001400;--bg-active: #002400;--radius-sm: 8px;--radius-md: 10px;--focus-ring: rgba(0, 255, 0, .55);--shadow-elev-1: 0 18px 60px rgba(0, 0, 0, .55);color-scheme:dark}*{box-sizing:border-box}html,body{height:100%}body{margin:0;background:var(--bg-app);color:var(--text-primary);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,Liberation Mono,Courier New,monospace;text-rendering:optimizeLegibility}::selection{background:#00ff0040}:where(button,input,select,textarea,a):focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}::placeholder{color:#00c000bf}button,input,select,textarea{font:inherit}code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,Liberation Mono,Courier New,monospace}
