: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)}#status .indicator.restoring{background:#569cd6;animation:pulse 1s infinite}@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-header{display:flex;justify-content:flex-end;margin-bottom:6px}.refresh-btn{font-size:11px}.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)}.snapshot-panel{position:relative}.snapshot-btn{display:flex;align-items:center;gap:4px;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;transition:all .15s ease}.snapshot-btn:hover:not(.disabled){border-color:var(--accent);background:var(--bg-hover)}.snapshot-btn.disabled{opacity:.5;cursor:not-allowed}.snapshot-icon{font-size:14px}.snapshot-count{font-size:11px;color:var(--text-secondary)}.snapshot-dropdown{position:absolute;top:calc(100% + 4px);right:0;width:320px;background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:6px;box-shadow:0 4px 12px #0000004d;z-index:1000;overflow:hidden}.snapshot-dropdown-header{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;background:var(--bg-tertiary);border-bottom:1px solid var(--border-color);font-weight:500}.snapshot-close{background:none;border:none;color:var(--text-secondary);font-size:18px;cursor:pointer;padding:0 4px;line-height:1}.snapshot-close:hover{color:var(--text-primary)}.snapshot-header-actions{display:flex;align-items:center;gap:8px}.snapshot-take-btn{padding:4px 8px;background:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:4px;color:var(--text-primary);font-size:12px;cursor:pointer;display:flex;align-items:center;gap:4px;transition:all .15s ease}.snapshot-take-btn:hover:not(:disabled){background:var(--accent);border-color:var(--accent)}.snapshot-take-btn:disabled{opacity:.5;cursor:not-allowed}.snapshot-list{max-height:400px;overflow-y:auto}.snapshot-loading,.snapshot-empty{padding:24px;text-align:center;color:var(--text-muted)}.snapshot-item{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border-bottom:1px solid var(--border-color);transition:background .15s ease}.snapshot-item:hover{background:var(--bg-hover)}.snapshot-item:last-child{border-bottom:none}.snapshot-info{flex:1;min-width:0}.snapshot-date{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--text-primary);margin-bottom:2px}.snapshot-latest{font-size:9px;font-weight:600;text-transform:uppercase;padding:2px 6px;background:var(--success);color:#000;border-radius:3px}.snapshot-meta{font-size:11px;color:var(--text-muted)}.snapshot-actions{display:flex;gap:4px}.snapshot-preview-btn,.snapshot-restore-btn{padding:4px 8px;background:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:4px;font-size:14px;cursor:pointer;transition:all .15s ease}.snapshot-preview-btn:hover{background:var(--accent);border-color:var(--accent)}.snapshot-restore-btn:hover{background:var(--success);border-color:var(--success)}.schedules-panel{position:relative}.schedules-btn{display:flex;align-items:center;gap:4px;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;transition:all .15s ease}.schedules-btn:hover:not(.disabled){border-color:var(--accent);background:var(--bg-hover)}.schedules-btn.disabled{opacity:.5;cursor:not-allowed}.schedules-icon{font-size:14px}.schedules-count{font-size:11px;color:var(--success);font-weight:600}.schedules-dropdown{position:absolute;top:calc(100% + 4px);right:0;width:400px;background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:6px;box-shadow:0 4px 12px #0000004d;z-index:1000;overflow:hidden}.schedules-dropdown-header{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;background:var(--bg-tertiary);border-bottom:1px solid var(--border-color);font-weight:500}.schedules-header-actions{display:flex;align-items:center;gap:4px}.schedules-edit-btn,.schedules-save-btn,.schedules-cancel-btn{background:none;border:none;font-size:14px;cursor:pointer;padding:4px 6px;border-radius:4px;transition:background .15s ease}.schedules-edit-btn:hover,.schedules-save-btn:hover,.schedules-cancel-btn:hover{background:var(--bg-hover)}.schedules-close{background:none;border:none;color:var(--text-secondary);font-size:18px;cursor:pointer;padding:0 4px;line-height:1}.schedules-close:hover{color:var(--text-primary)}.schedules-content{max-height:500px;overflow-y:auto}.schedules-loading,.schedules-empty{padding:24px;text-align:center;color:var(--text-muted)}.schedules-empty p{margin:0 0 8px}.schedules-hint{font-size:12px;opacity:.7}.schedule-item{display:flex;justify-content:space-between;align-items:flex-start;padding:12px;border-bottom:1px solid var(--border-color);transition:background .15s ease}.schedule-item:hover{background:var(--bg-hover)}.schedule-item:last-child{border-bottom:none}.schedule-item.disabled{opacity:.6}.schedule-info{flex:1;min-width:0}.schedule-header{display:flex;align-items:center;gap:8px;margin-bottom:4px}.schedule-toggle-label{display:flex;align-items:center;gap:8px;cursor:pointer}.schedule-toggle{width:16px;height:16px;cursor:pointer;accent-color:var(--success)}.schedule-id{font-size:13px;font-weight:600;color:var(--text-primary)}.schedule-description{font-size:12px;color:var(--text-secondary);margin-bottom:6px}.schedule-meta{display:flex;flex-wrap:wrap;gap:8px;font-size:11px}.schedule-cron{color:var(--warning);font-family:JetBrains Mono,Fira Code,monospace}.schedule-next{color:var(--text-muted)}.schedule-actions{display:flex;align-items:center;gap:4px;margin-left:8px}.schedule-run-btn{width:28px;height:28px;display:flex;align-items:center;justify-content:center;background:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:4px;font-size:12px;cursor:pointer;transition:all .15s ease}.schedule-run-btn:hover:not(:disabled){background:var(--success);border-color:var(--success)}.schedule-run-btn:disabled{opacity:.4;cursor:not-allowed}.schedules-editor{padding:12px}.schedule-yaml-editor{width:100%;height:200px;background:var(--bg-primary);border:1px solid var(--border-color);border-radius:4px;color:var(--text-primary);font-family:JetBrains Mono,Fira Code,monospace;font-size:12px;padding:12px;resize:vertical;line-height:1.5}.schedule-yaml-editor:focus{outline:none;border-color:var(--accent)}.schedules-editor-help{margin-top:12px;padding:10px;background:var(--bg-tertiary);border-radius:4px;font-size:11px;color:var(--text-secondary)}.schedules-editor-help p{margin:0 0 6px}.schedules-editor-help pre{margin:0;font-family:JetBrains Mono,Fira Code,monospace;font-size:10px;color:var(--text-muted);white-space:pre-wrap}#preview-banner{display:none}.preview-banner{display:flex;justify-content:space-between;align-items:center;padding:8px 16px;background:#c87600;color:#fff}.preview-banner-info{display:flex;align-items:center;gap:8px}.preview-banner-icon{font-size:16px}.preview-banner-text{font-size:13px}.preview-banner-actions{display:flex;gap:8px}.preview-exit-btn,.preview-restore-btn{padding:6px 12px;font-size:12px;font-weight:500;border-radius:4px;cursor:pointer;transition:all .15s ease}.preview-exit-btn{background:#fff3;border:1px solid rgba(255,255,255,.3);color:#fff}.preview-exit-btn:hover{background:#ffffff4d}.preview-restore-btn{background:#fff;border:1px solid #fff;color:#c87600}.preview-restore-btn:hover{background:#f0f0f0}body.preview-mode #header{background:#c87600}body.preview-mode #header h1,body.preview-mode #sandbox-selector select,body.preview-mode #status{color:#fff}body.preview-mode #sandbox-selector select{background:#fff3;border-color:#ffffff4d}body.preview-mode .snapshot-btn{background:#fff3;border-color:#ffffff4d;color:#fff}.confirm-modal-overlay{position:fixed;inset:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:2000}.confirm-modal{width:400px;max-width:90vw;background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:8px;box-shadow:0 8px 32px #0006;overflow:hidden}.confirm-modal-header{padding:16px 20px;background:var(--bg-tertiary);border-bottom:1px solid var(--border-color)}.confirm-modal-header h3{margin:0;font-size:16px;font-weight:600;color:var(--text-primary)}.confirm-modal-body{padding:20px}.confirm-modal-body p{margin:0 0 12px;color:var(--text-primary);line-height:1.5}.confirm-modal-body p:last-child{margin-bottom:0}.confirm-modal-details{font-size:12px;color:var(--text-secondary);padding:8px 12px;background:var(--bg-primary);border-radius:4px}.confirm-modal-checkbox{display:flex;align-items:center;gap:8px;margin-top:16px;padding:8px 0;cursor:pointer}.confirm-modal-checkbox input{width:16px;height:16px;cursor:pointer}.confirm-modal-checkbox span{font-size:13px;color:var(--text-secondary)}.confirm-modal-footer{display:flex;justify-content:flex-end;gap:8px;padding:16px 20px;border-top:1px solid var(--border-color);background:var(--bg-tertiary)}.confirm-modal-cancel,.confirm-modal-confirm{padding:8px 16px;font-size:13px;font-weight:500;border-radius:4px;cursor:pointer;transition:all .15s ease}.confirm-modal-cancel{background:var(--bg-secondary);border:1px solid var(--border-color);color:var(--text-primary)}.confirm-modal-cancel:hover{background:var(--bg-hover)}.confirm-modal-confirm{background:var(--accent);border:1px solid var(--accent);color:#fff}.confirm-modal-confirm:hover{background:var(--accent-hover);border-color:var(--accent-hover)}.error-modal-overlay{position:fixed;inset:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:2000}.error-modal{width:480px;max-width:90vw;max-height:80vh;display:flex;flex-direction:column;background:var(--bg-secondary);border:1px solid var(--error);border-radius:8px;box-shadow:0 8px 32px #0006;overflow:hidden}.error-modal-header{display:flex;align-items:center;gap:12px;padding:16px 20px;background:var(--error);color:#fff}.error-modal-icon{width:24px;height:24px;display:flex;align-items:center;justify-content:center;background:#fff3;border-radius:50%;font-weight:700;font-size:14px}.error-modal-header h3{margin:0;font-size:16px;font-weight:600}.error-modal-body{padding:20px;flex:1;overflow:hidden;display:flex;flex-direction:column}.error-modal-body p{margin:0 0 16px;color:var(--text-primary);line-height:1.5}.error-modal-details{flex:1;min-height:0;max-height:200px;overflow:auto;background:var(--bg-primary);border:1px solid var(--border-color);border-radius:4px;padding:12px}.error-modal-details pre{margin:0;font-family:JetBrains Mono,Fira Code,monospace;font-size:12px;color:var(--error);white-space:pre-wrap;word-break:break-word}.error-modal-footer{display:flex;justify-content:flex-end;gap:8px;padding:16px 20px;border-top:1px solid var(--border-color);background:var(--bg-tertiary)}.error-modal-copy,.error-modal-dismiss{padding:8px 16px;font-size:13px;font-weight:500;border-radius:4px;cursor:pointer;transition:all .15s ease}.error-modal-copy{background:var(--bg-secondary);border:1px solid var(--border-color);color:var(--text-primary)}.error-modal-copy:hover{background:var(--bg-hover)}.error-modal-dismiss{background:var(--error);border:1px solid var(--error);color:#fff}.error-modal-dismiss:hover{background:#ff5c5c;border-color:#ff5c5c}/**
 * 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}
