/**
 * 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}:root{--bg: #0b0e14;--panel: #151a24;--panel-2: #1c2230;--border: #2a3140;--text: #e5e9f0;--muted: #8b95a7;--accent: #6366f1;--accent-2: #22c55e;--danger: #ef4444}*{box-sizing:border-box}body{margin:0;font-family:Inter,Hiragino Sans,Noto Sans JP,system-ui,sans-serif;background:var(--bg);color:var(--text)}a{color:inherit;text-decoration:none}hr{border:none;border-top:1px solid var(--border);margin:16px 0}.center{min-height:100vh;display:grid;place-items:center}.app{display:grid;grid-template-columns:240px 1fr;min-height:100vh}.sidebar{background:var(--panel);border-right:1px solid var(--border);padding:20px 14px;display:flex;flex-direction:column;gap:8px}.brand{font-weight:700;font-size:18px;margin-bottom:16px}.sidebar nav{display:flex;flex-direction:column;gap:4px;flex:1}.sidebar nav a{padding:10px 12px;border-radius:8px;color:var(--muted);font-weight:500}.sidebar nav a:hover{background:var(--panel-2);color:var(--text)}.sidebar nav a.active{background:var(--accent);color:#fff}.sidebar-foot{border-top:1px solid var(--border);padding-top:12px}.content{padding:28px 32px;overflow:auto}h1{font-size:22px;margin:0 0 20px}.card{background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:18px}.login{width:340px;display:flex;flex-direction:column;gap:8px}.login h1{margin:0;text-align:center}.login h2{margin:0 0 8px;font-size:15px;font-weight:500;color:var(--muted);text-align:center}.login label{font-size:13px;color:var(--muted)}input,select,textarea,button{font-family:inherit;font-size:14px}input,select,textarea{background:var(--panel-2);border:1px solid var(--border);color:var(--text);border-radius:8px;padding:9px 11px;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--accent)}button{background:var(--accent);color:#fff;border:none;border-radius:8px;padding:9px 14px;cursor:pointer;font-weight:600}button:hover{filter:brightness(1.1)}button.secondary{background:var(--panel-2);border:1px solid var(--border);color:var(--text)}button.link,.link{background:none;border:none;color:var(--accent);cursor:pointer;padding:0}button.small,.small{font-size:12px}button.small{padding:4px 8px}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}.server-card{display:flex;flex-direction:column;gap:8px;transition:border-color .15s}.server-card:hover{border-color:var(--accent)}.server-name{font-weight:600;font-size:16px}.status{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}.dot{width:9px;height:9px;border-radius:50%;display:inline-block}.server-header{display:flex;justify-content:space-between;align-items:center}.power-buttons{display:flex;gap:8px}.btn-start{background:var(--accent-2)}.btn-restart{background:#eab308}.btn-stop{background:#6b7280}.btn-kill{background:var(--danger)}.tabs{display:flex;gap:4px;border-bottom:1px solid var(--border);margin:18px 0}.tabs a,.tabs button{padding:8px 14px;color:var(--muted);background:none;border:none;border-bottom:2px solid transparent;border-radius:0;font-weight:500;cursor:pointer}.tabs a.active,.tabs button.active{color:var(--text);border-bottom-color:var(--accent)}.stats-row{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:14px}.stat{background:var(--panel);border:1px solid var(--border);border-radius:10px;padding:12px 14px;display:flex;flex-direction:column;gap:4px}.stat span{color:var(--muted);font-size:12px}.stat b{font-size:18px}.terminal{height:420px;background:#0b0e14;border:1px solid var(--border);border-radius:10px;padding:8px}.console-input{display:flex;gap:8px;margin-top:10px}.console-input input{flex:1;font-family:JetBrains Mono,monospace}.toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;gap:8px}.toolbar div{display:flex;gap:8px}.table{width:100%;border-collapse:collapse}.table th{text-align:left;color:var(--muted);font-size:12px;font-weight:500;padding:8px 10px;border-bottom:1px solid var(--border)}.table td{padding:8px 10px;border-bottom:1px solid var(--border);font-size:14px}.table td.link{cursor:pointer;color:var(--text)}.table td.link:hover{color:var(--accent)}.file-editor textarea{width:100%;height:460px;font-family:JetBrains Mono,monospace;font-size:13px}.row-form{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:16px}.row-form input,.row-form select{flex:1;min-width:120px}.chk{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:13px}.muted{color:var(--muted)}.mono{font-family:JetBrains Mono,monospace}.error{background:#ef444426;color:#fca5a5;padding:8px 12px;border-radius:8px;font-size:13px}.crumbs{color:var(--muted);font-size:13px;margin-bottom:8px}.crumbs a{color:var(--accent)}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}.codeblock{background:#0b0e14;border:1px solid var(--border);border-radius:8px;padding:12px;overflow:auto;white-space:pre;font-family:JetBrains Mono,monospace;font-size:12px;line-height:1.5;margin:8px 0}.table.kv th{width:120px;vertical-align:top}@media (max-width: 800px){.grid2{grid-template-columns:1fr}}
