:root{--bg: #0f172a;--panel: #131c30;--panel-2: #1a2540;--border: #263251;--border-strong: #384870;--text: #e2e8f0;--muted: #94a3b8;--accent: #6366f1;--accent-hover: #7c7dff;--danger: #ef4444;--ok: #10b981;--warn: #f59e0b;--nav-h: 56px;--safe-t: env(safe-area-inset-top);--safe-b: env(safe-area-inset-bottom);--safe-l: env(safe-area-inset-left);--safe-r: env(safe-area-inset-right)}*{box-sizing:border-box}html,body,#root{height:100%;margin:0;padding:0;overflow:hidden;overscroll-behavior:none}body{background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans KR,sans-serif;font-size:15px;line-height:1.4;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}input,textarea,select,button{font-family:inherit;font-size:16px;color:inherit}button{cursor:pointer;background:var(--panel-2);color:var(--text);border:1px solid var(--border-strong);border-radius:6px;padding:8px 12px;min-height:40px;touch-action:manipulation}button:hover:not(:disabled){background:var(--border)}button:disabled{opacity:.5;cursor:not-allowed}button.primary{background:var(--accent);border-color:var(--accent);color:#fff}button.primary:hover:not(:disabled){background:var(--accent-hover)}button.danger{color:var(--danger);border-color:color-mix(in oklab,var(--danger) 60%,var(--border-strong))}button.ghost{background:transparent;border-color:transparent}input[type=text],input[type=password],input[type=search],textarea{background:var(--panel);border:1px solid var(--border);border-radius:6px;padding:10px 12px;color:var(--text);width:100%;min-height:40px}input:focus,textarea:focus{outline:none;border-color:var(--accent)}a{color:var(--accent-hover);text-decoration:none}a:hover{text-decoration:underline}.app{display:grid;grid-template-rows:auto 1fr;height:100dvh;padding-left:var(--safe-l);padding-right:var(--safe-r)}.topbar{display:flex;align-items:center;gap:8px;height:var(--nav-h);padding:0 12px;padding-top:var(--safe-t);border-bottom:1px solid var(--border);background:var(--panel);min-height:var(--nav-h)}.topbar .brand{font-weight:700;letter-spacing:.02em;padding:6px 10px;border-radius:6px;color:var(--text);display:inline-flex;align-items:center;gap:8px}.server-tag{display:inline-block;padding:2px 8px;font-size:12px;font-weight:600;letter-spacing:.02em;color:var(--text);background:color-mix(in oklab,var(--accent) 30%,var(--panel-2));border:1px solid var(--accent);border-radius:999px;vertical-align:middle;white-space:nowrap}.login-card h1 .server-tag{font-size:13px;margin-left:6px}.topbar .nav{display:flex;gap:4px;overflow-x:auto;flex:1}.topbar .nav a{color:var(--muted);padding:8px 12px;border-radius:6px;white-space:nowrap}.topbar .nav a.active{color:var(--text);background:var(--panel-2)}.topbar .spacer{flex:1}.topbar .who{color:var(--muted);font-size:13px;padding:0 6px}.main{overflow:hidden;min-height:0;display:flex;flex-direction:column;padding-bottom:var(--safe-b)}.login-wrap{display:grid;place-items:center;height:100dvh;padding:16px}.login-card{background:var(--panel);border:1px solid var(--border);border-radius:10px;padding:24px;width:min(360px,100%);display:flex;flex-direction:column;gap:12px}.login-card h1{margin:0 0 8px;font-size:20px}.error{color:var(--danger);font-size:13px}.files{display:grid;grid-template-rows:auto auto 1fr auto;height:100%;min-height:0}.crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:4px;padding:8px 12px;border-bottom:1px solid var(--border);overflow-x:auto;background:var(--panel)}.crumbs button.crumb{background:transparent;border:none;color:var(--muted);padding:6px 8px;min-height:32px;border-radius:4px}.crumbs button.crumb:hover{color:var(--text);background:var(--panel-2)}.crumbs .sep{color:var(--muted);padding:0 2px}.files-toolbar{display:flex;flex-wrap:wrap;gap:6px;padding:8px 12px;border-bottom:1px solid var(--border);background:var(--panel)}.file-list{overflow:auto;min-height:0}.file-row{display:grid;grid-template-columns:32px 1fr auto auto;align-items:center;gap:10px;padding:12px;border-bottom:1px solid var(--border);cursor:pointer;user-select:none}.file-row:hover{background:var(--panel)}.file-row.selected{background:color-mix(in oklab,var(--accent) 20%,transparent)}.file-row .icon{font-size:20px;text-align:center}.file-row .name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.file-row .meta{color:var(--muted);font-size:12px;white-space:nowrap}.file-row .actions{display:flex;gap:4px}.file-row .actions button{padding:6px 8px;min-height:32px}.status-bar{padding:6px 12px;color:var(--muted);font-size:12px;border-top:1px solid var(--border);background:var(--panel)}.overlay{position:fixed;inset:0;background:#00000080;display:grid;place-items:center;padding:12px;z-index:30}.overlay .card{background:var(--panel);border:1px solid var(--border-strong);border-radius:10px;width:min(1000px,100%);max-height:calc(100dvh - 32px);display:grid;grid-template-rows:auto 1fr auto;min-height:0}.overlay .card header,.overlay .card footer{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid var(--border);flex-wrap:wrap}.overlay .card footer{border-top:1px solid var(--border);border-bottom:none;justify-content:flex-end}.overlay .card header .title{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}.overlay .card .body{overflow:auto;min-height:0;padding:0}.editor-textarea{width:100%;height:100%;min-height:300px;border:none;border-radius:0;background:var(--bg);color:var(--text);font-family:ui-monospace,SF Mono,Menlo,Consolas,monospace;font-size:14px;line-height:1.5;padding:12px;resize:none;tab-size:4}.term-page{display:grid;grid-template-rows:auto 1fr;height:100%;min-height:0}.term-tabs{display:flex;gap:4px;padding:6px 8px;border-bottom:1px solid var(--border);background:var(--panel);overflow-x:auto;align-items:center}.term-tab{display:inline-flex;align-items:center;gap:6px;padding:6px 8px 6px 10px;border:1px solid var(--border);border-radius:6px;cursor:pointer;background:var(--panel-2);color:var(--muted);white-space:nowrap;max-width:200px}.term-tab.active{color:var(--text);border-color:var(--accent);background:color-mix(in oklab,var(--accent) 15%,var(--panel-2))}.term-tab .label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:140px}.term-tab .close{border:none;background:transparent;color:inherit;min-height:0;min-width:22px;padding:2px 4px;border-radius:4px}.term-tab .close:hover{background:#ffffff1a}.term-new{border:1px dashed var(--border-strong);background:transparent;color:var(--muted)}.term-body{position:relative;overflow:hidden;background:#000;min-height:0}.term-empty{padding:24px;color:var(--muted);text-align:center}.xterm-holder{position:absolute;inset:0}.xterm-holder.hidden{visibility:hidden}@media (max-width: 640px){.topbar{padding:0 8px;padding-top:var(--safe-t)}.topbar .brand{padding:6px;font-size:14px}.topbar .nav a{padding:8px;font-size:13px}.topbar .who{display:none}.file-row{grid-template-columns:30px 1fr auto}.file-row .meta{display:none}.file-row .actions{grid-column:3}}.row{display:flex;align-items:center;gap:8px}.col{display:flex;flex-direction:column;gap:8px}.grow{flex:1}.muted{color:var(--muted)}.hidden{display:none!important}.spinner{display:inline-block;width:14px;height:14px;border:2px solid var(--muted);border-top-color:var(--text);border-radius:50%;animation:spin .6s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.dialog{background:var(--panel);border:1px solid var(--border-strong);border-radius:10px;padding:16px;width:min(420px,100%);display:flex;flex-direction:column;gap:10px}.dialog h3{margin:0;font-size:16px}.dialog .actions{display:flex;justify-content:flex-end;gap:8px}/**
 * 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}
