:root{--bg-primary: #1e1e1e;--bg-secondary: #252526;--bg-tertiary: #2d2d2d;--bg-hover: #3c3c3c;--text-primary: #d4d4d4;--text-secondary: #858585;--text-muted: #6e6e6e;--border-color: #3c3c3c;--accent: #007acc;--accent-hover: #1e90ff;--success: #4ec9b0;--warning: #dcdcaa;--error: #f14c4c;--header-height: 48px;--sidebar-width: 250px;--terminal-height: 300px}*{margin:0;padding:0;box-sizing:border-box}html,body{height:100%;overflow:hidden}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;font-size:13px;color:var(--text-primary);background:var(--bg-primary)}#app{display:flex;flex-direction:column;height:100vh}#header{height:var(--header-height);background:var(--bg-secondary);border-bottom:1px solid var(--border-color);display:flex;align-items:center;padding:0 16px;gap:16px}#header h1{font-size:14px;font-weight:500;color:var(--text-primary)}#sandbox-selector{flex:1;max-width:300px}#sandbox-selector select{width:100%;padding:6px 12px;background:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:4px;color:var(--text-primary);font-size:13px;cursor:pointer}#sandbox-selector select:hover{border-color:var(--accent)}#sandbox-selector select:focus{outline:none;border-color:var(--accent)}#status{display:flex;align-items:center;gap:8px;color:var(--text-secondary);font-size:12px}#status .indicator{width:8px;height:8px;border-radius:50%;background:var(--text-muted)}#status .indicator.connected{background:var(--success)}#status .indicator.connecting{background:var(--warning);animation:pulse 1s infinite}#status .indicator.error{background:var(--error)}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}#main{flex:1;display:flex;overflow:hidden}#sidebar{width:var(--sidebar-width);background:var(--bg-secondary);border-right:1px solid var(--border-color);display:flex;flex-direction:column;overflow:hidden}#file-tree{flex:1;overflow:auto;padding:8px 0}.file-tree-item{display:flex;align-items:center;padding:4px 8px;cursor:pointer;user-select:none}.file-tree-item:hover{background:var(--bg-hover)}.file-tree-item.selected{background:var(--accent);color:#fff}.file-tree-item .icon{width:16px;height:16px;margin-right:6px;opacity:.8}.file-tree-item .name{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-tree-item.directory>.name{font-weight:500}.file-tree-children{padding-left:16px}.file-tree-nav{padding:8px;border-bottom:1px solid var(--border-color);background:var(--bg-tertiary)}.file-tree-path{font-family:JetBrains Mono,Fira Code,monospace;font-size:11px;color:var(--text-secondary);padding:4px 6px;background:var(--bg-primary);border-radius:3px;margin-bottom:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-tree-buttons{display:flex;flex-wrap:wrap;gap:4px}.nav-btn{padding:3px 8px;font-size:11px;background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:3px;color:var(--text-secondary);cursor:pointer;transition:all .15s ease}.nav-btn:hover:not(:disabled){background:var(--bg-hover);border-color:var(--accent);color:var(--text-primary)}.nav-btn:disabled{opacity:.4;cursor:not-allowed}.nav-btn.active{background:var(--accent);border-color:var(--accent);color:#fff}.file-tree-content{padding:4px 0}#content,#editor-container{flex:1;display:flex;flex-direction:column;overflow:hidden}#editor-tabs{height:35px;background:var(--bg-tertiary);border-bottom:1px solid var(--border-color);display:flex;align-items:center;overflow-x:auto}.editor-tab{display:flex;align-items:center;padding:0 12px;height:100%;border-right:1px solid var(--border-color);cursor:pointer;gap:8px}.editor-tab:hover{background:var(--bg-hover)}.editor-tab.active{background:var(--bg-primary);border-bottom:2px solid var(--accent)}.editor-tab .close{opacity:0;width:16px;height:16px;display:flex;align-items:center;justify-content:center;border-radius:4px}.editor-tab:hover .close{opacity:.5}.editor-tab .close:hover{opacity:1;background:var(--bg-hover)}#editor{flex:1;overflow:hidden}#editor .placeholder{display:flex;align-items:center;justify-content:center;height:100%;color:var(--text-muted);font-size:14px}#terminal-container{height:var(--terminal-height);background:var(--bg-primary);border-top:1px solid var(--border-color);display:flex;flex-direction:column}#terminal-header{height:28px;background:var(--bg-secondary);border-bottom:1px solid var(--border-color);display:flex;align-items:center;justify-content:space-between;padding:0 12px;font-size:12px;color:var(--text-secondary)}#terminal-header button{background:none;border:none;color:var(--text-secondary);cursor:pointer;padding:2px 6px;border-radius:4px}#terminal-header button:hover{background:var(--bg-hover);color:var(--text-primary)}#terminal{flex:1;padding:8px;overflow:hidden}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--border-color);border-radius:5px}::-webkit-scrollbar-thumb:hover{background:var(--text-muted)}.loading{display:flex;align-items:center;justify-content:center;height:100%;color:var(--text-muted)}.loading:after{content:"";width:24px;height:24px;border:2px solid var(--border-color);border-top-color:var(--accent);border-radius:50%;animation:spin 1s linear infinite;margin-left:12px}@keyframes spin{to{transform:rotate(360deg)}}.resizer{background:var(--border-color);cursor:row-resize;height:4px;margin:-2px 0;z-index:10}.resizer:hover{background:var(--accent)}/**
 * 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 .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;inset:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{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}
