/**
 * 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}*{box-sizing:border-box}:root{--bg: #0d1117;--panel: #161b22;--line: #30363d;--text: #e6edf3;--dim: #8b949e;--accent: #2f81f7;--ok: #3fb950;--warn: #d29922;--bad: #f85149}html,body,#root{height:100%}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Ubuntu,sans-serif;background:var(--bg);color:var(--text);font-size:14px}a{color:var(--accent);text-decoration:none}.loading{display:flex;align-items:center;justify-content:center;height:100%;color:var(--dim)}.shell{display:flex;min-height:100vh}.sidebar{width:210px;background:var(--panel);border-right:1px solid var(--line);padding:18px 12px;display:flex;flex-direction:column;gap:2px}.sidebar h1{font-size:15px;margin:0 8px 16px;color:var(--accent)}.sidebar a{color:var(--dim);padding:8px;border-radius:6px;font-size:13px}.sidebar a.active,.sidebar a:hover{color:var(--text);background:#21262d}.sidebar .grow{flex:1}.sidebar .who{padding:8px;color:var(--dim);font-size:12px;border-top:1px solid var(--line)}.content{flex:1;padding:24px;max-width:1100px}.content.wide{max-width:none}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px}.card{background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:16px}.row{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.row:last-child{margin-bottom:0}h2{font-size:18px;margin:0 0 16px}h3{font-size:14px;margin:0 0 10px}.badge{display:inline-block;padding:2px 9px;border-radius:999px;font-size:11px;font-weight:600}.badge.ok{background:#3fb95026;color:var(--ok)}.badge.warn{background:#d2992226;color:var(--warn)}.badge.bad{background:#f8514926;color:var(--bad)}.badge.dim{background:#8b949e26;color:var(--dim)}.meter{margin-bottom:12px}.meter .labels{display:flex;justify-content:space-between;font-size:12px;color:var(--dim);margin-bottom:4px}.meter .bar{height:8px;background:#21262d;border-radius:4px;overflow:hidden}.meter .bar>div{height:100%;border-radius:4px;transition:width .3s}.mini-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px}button,input,select,textarea{font:inherit}button{background:#21262d;color:var(--text);border:1px solid var(--line);border-radius:6px;padding:7px 14px;cursor:pointer}button:hover{background:#30363d}button.primary{background:var(--accent);border-color:var(--accent);color:#fff}button.danger{background:#f8514926;border-color:var(--bad);color:var(--bad)}button.small{padding:4px 9px;font-size:12px}button:disabled{opacity:.5;cursor:not-allowed}input,select{background:#0d1117;color:var(--text);border:1px solid var(--line);border-radius:6px;padding:8px 10px;width:100%}label{display:block;font-size:12px;color:var(--dim);margin:12px 0 4px}.btnrow{display:flex;gap:8px;margin-top:16px;justify-content:flex-end}.modal-back{position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:50}.modal{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:22px;width:460px;max-width:94vw}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:8px 10px;border-bottom:1px solid var(--line);font-size:13px}th{color:var(--dim);font-weight:600}.console-wrap{height:calc(100vh - 130px);background:#000;border:1px solid var(--line);border-radius:10px;padding:10px}.console-wrap .xterm{height:100%}.tiers{display:flex;gap:8px;margin-top:4px}.tier{flex:1;text-align:center;padding:10px 6px;border:1px solid var(--line);border-radius:8px;cursor:pointer;background:#0d1117}.tier.on{border-color:var(--accent);background:#2f81f71a}.tier b{display:block}.tier span{font-size:11px;color:var(--dim)}.notice{border:1px solid var(--warn);background:#d299221a;color:var(--warn);border-radius:8px;padding:10px 14px;margin-bottom:16px}.error-box{border:1px solid var(--bad);background:#f851491a;color:var(--bad);border-radius:8px;padding:10px 14px;margin:8px 0}.hint{color:var(--dim);font-size:12px}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px}.hint.dim{opacity:.55}.portchips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:6px}.portchip{display:inline-flex;align-items:center;gap:4px;background:#161b22;border:1px solid var(--line);border-radius:6px;padding:3px 8px;font-size:11px}.portchip a{color:var(--accent);text-decoration:none;word-break:break-all}.portchip a:hover{text-decoration:underline}.portclose{background:none;border:none;color:var(--bad);cursor:pointer;font-size:13px;padding:0 2px;line-height:1}.portopenrow{display:flex;gap:6px;margin-top:4px;align-items:center}.portopenrow input[type=number]{width:80px;padding:4px 8px;font-size:12px;background:#0d1117;color:var(--fg);border:1px solid var(--line);border-radius:6px}
