/**
 * 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: #0f1115;--panel: #171a21;--panel-2: #1e222b;--border: #2a2f3a;--text: #e6e9ef;--muted: #8b93a3;--accent: #4f8cff;--ok: #3fb27f;--warn: #d9a13c;--err: #e05d5d;--radius: 8px}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--text);font:14px/1.5 -apple-system,PingFang SC,Segoe UI,Microsoft YaHei,sans-serif}.app{display:flex;flex-direction:column;height:100%}.topbar{display:flex;align-items:center;gap:12px;padding:10px 16px;background:var(--panel);border-bottom:1px solid var(--border);flex-wrap:wrap}.topbar h1{font-size:15px;margin:0 auto 0 0;font-weight:600}.tabs{display:flex;gap:4px;flex-wrap:wrap}.tabs button{background:none;border:1px solid transparent;color:var(--muted);padding:5px 12px;border-radius:var(--radius);cursor:pointer;font-size:13px}.tabs button.active{color:var(--text);background:var(--panel-2);border-color:var(--border)}.content{flex:1;overflow:auto;padding:16px}.card{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);padding:14px;margin-bottom:14px}.card h2{margin:0 0 10px;font-size:14px;color:var(--muted);font-weight:600}.card h3{margin:12px 0 6px;font-size:13px;color:var(--muted)}button.primary{background:var(--accent);border:none;color:#fff;padding:7px 14px;border-radius:var(--radius);cursor:pointer;font-size:13px}button.danger{background:var(--err);border:none;color:#fff;padding:7px 14px;border-radius:var(--radius);cursor:pointer}button.ghost{background:none;border:1px solid var(--border);color:var(--text);padding:6px 12px;border-radius:var(--radius);cursor:pointer;font-size:13px}button:disabled{opacity:.5;cursor:not-allowed}input,textarea,select{background:var(--panel-2);color:var(--text);border:1px solid var(--border);border-radius:var(--radius);padding:8px 10px;font-size:13px;width:100%}textarea{min-height:80px;resize:vertical}label{display:block;margin:10px 0 4px;color:var(--muted);font-size:12px}table{width:100%;border-collapse:collapse;font-size:13px}th,td{text-align:left;padding:7px 8px;border-bottom:1px solid var(--border)}th{color:var(--muted);font-weight:500}tr:hover td{background:#ffffff05}.badge{display:inline-block;padding:1px 8px;border-radius:10px;font-size:11px;background:var(--panel-2);border:1px solid var(--border)}.badge.RUNNING,.badge.WORKING{color:var(--ok)}.badge.REVIEW,.badge.REPORTED,.badge.TIMEOUT_PENDING,.badge.BLOCKED{color:var(--warn)}.badge.DELIVERED,.badge.DONE,.badge.IDLE{color:var(--accent)}.badge.FAILED,.badge.ABORTED,.badge.TIMEOUT,.badge.DEAD,.badge.BOOT_FAILED,.badge.ORPHANED{color:var(--err)}.check-ok{color:var(--ok)}.check-warn{color:var(--warn)}.check-fail{color:var(--err)}.muted{color:var(--muted)}.error-text{color:var(--err);margin:8px 0;white-space:pre-wrap}.ok-text{color:var(--ok);margin:8px 0}.login-wrap{display:flex;align-items:center;justify-content:center;height:100%}.login-card{width:320px}.login-card h1{font-size:17px;margin:0 0 14px}.events{font-family:ui-monospace,SF Mono,Menlo,monospace;font-size:12px;max-height:320px;overflow:auto}.events div{padding:2px 0;border-bottom:1px dashed rgba(255,255,255,.04)}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:14px}fieldset{border:1px solid var(--border);border-radius:var(--radius);padding:10px 12px;margin:12px 0}fieldset legend{font-size:12px;color:var(--muted);padding:0 6px}.org-node{display:flex;align-items:center;gap:8px;margin:6px 0;flex-wrap:wrap}.org-role{min-width:34px;font-size:12px;color:var(--muted)}.org-lead{color:var(--accent);font-weight:600}.org-hint{font-size:12px;color:var(--muted);margin-left:8px}.terminal-box{height:420px;background:#000;border-radius:var(--radius);border:1px solid var(--border);overflow:hidden}.ev-err{color:var(--err);border-color:var(--err)}.ev-warn{color:var(--warn);border-color:var(--warn)}.ev-ok{color:var(--ok);border-color:var(--ok)}.ev-info{color:var(--text)}.term-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(380px,1fr));gap:10px;margin-top:10px}.term-cell{display:flex;flex-direction:column;gap:4px;min-width:0}.term-head{display:flex;align-items:center;gap:8px}.term-small{height:260px}@media(max-width:760px){.grid-2{grid-template-columns:1fr}.content{padding:10px}.table-scroll{overflow-x:auto}.topbar{padding:8px 10px}.tabs button{padding:5px 8px}}
