/**
 * 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-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{font-family:monospace;user-select:text;white-space:pre}.xterm .xterm-accessibility-tree>div{transform-origin:left;width:fit-content}.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}.xterm .xterm-scrollable-element>.scrollbar{cursor:default}.xterm .xterm-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.xterm .xterm-scrollable-element>.visible{opacity:1;background:#0000;transition:opacity .1s linear;z-index:11}.xterm .xterm-scrollable-element>.invisible{opacity:0;pointer-events:none}.xterm .xterm-scrollable-element>.invisible.fade{transition:opacity .8s linear}.xterm .xterm-scrollable-element>.shadow{position:absolute;display:none}.xterm .xterm-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%;box-shadow:var(--vscode-scrollbar-shadow, #000) 0 6px 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px;box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}.xterm .xterm-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.xterm .xterm-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset}:root{color-scheme:dark;--bg-app: #060911;--bg-panel: #0d1322;--bg-card: #121a2d;--bg-elevated: #19243d;--border-subtle: #22304d;--border-accent: #38bdf8;--text-primary: #f1f5f9;--text-secondary: #94a3b8;--text-muted: #64748b;--accent-cyan: #38bdf8;--accent-emerald: #10b981;--accent-crimson: #e11d48;--accent-amber: #f59e0b;--font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;--font-mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace}*{box-sizing:border-box}html,body{margin:0;padding:0;background:var(--bg-app);color:var(--text-primary);font-family:var(--font-sans);min-height:100vh}.wnx-shell{display:flex;flex-direction:column;min-height:100vh;max-width:1680px;margin:0 auto;padding:12px 16px 20px;gap:12px}.wnx-topbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;background:var(--bg-panel);border:1px solid var(--border-subtle);border-radius:10px;padding:10px 14px}.wnx-brand{display:flex;align-items:center;gap:10px}.wnx-brand h1{margin:0;font-size:1.05rem;font-weight:700;letter-spacing:-.01em}.wnx-brand-sub{font-size:.78rem;color:var(--text-secondary)}.wnx-badges{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.wnx-badge{display:inline-flex;align-items:center;gap:6px;font-size:.75rem;font-family:var(--font-mono);padding:4px 9px;border-radius:999px;background:var(--bg-card);border:1px solid var(--border-subtle);color:var(--text-secondary)}.wnx-badge[data-tone=ok]{border-color:#10b98173;color:#6ee7b7}.wnx-badge[data-tone=warn]{border-color:#f59e0b73;color:#fcd34d}.wnx-badge[data-tone=active]{border-color:#38bdf88c;color:#7dd3fc}.wnx-error-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-radius:8px;background:#e11d4824;border:1px solid rgba(225,29,72,.55);color:#fecdd3;font-size:.84rem}.wnx-error-banner[hidden]{display:none}.wnx-control-deck{display:grid;grid-template-columns:minmax(300px,1.2fr) minmax(340px,1.8fr);gap:12px}@media(max-width:1024px){.wnx-control-deck{grid-template-columns:1fr}}.wnx-card{background:var(--bg-panel);border:1px solid var(--border-subtle);border-radius:10px;padding:12px}.wnx-profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.wnx-profile-btn{text-align:left;background:var(--bg-card);border:1px solid var(--border-subtle);border-radius:8px;padding:10px 12px;color:var(--text-primary);cursor:pointer;transition:border-color .15s ease,background .15s ease}.wnx-profile-btn:hover{border-color:#3b5380}.wnx-profile-btn[aria-pressed=true]{border-color:var(--accent-cyan);background:#38bdf817}.wnx-profile-title{font-weight:600;font-size:.9rem;margin-bottom:3px}.wnx-profile-meta{font-size:.74rem;color:var(--text-secondary);font-family:var(--font-mono)}.wnx-actions-bar{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.wnx-btn{background:var(--bg-card);color:var(--text-primary);border:1px solid var(--border-subtle);border-radius:6px;padding:7px 12px;font-size:.81rem;font-weight:500;cursor:pointer}.wnx-btn:hover:not(:disabled){background:var(--bg-elevated);border-color:#435d8f}.wnx-btn:disabled{opacity:.45;cursor:not-allowed}.wnx-btn-primary{background:#0284c7;border-color:#38bdf8;color:#fff}.wnx-btn-primary:hover:not(:disabled){background:#0369a1}.wnx-btn-danger{border-color:#e11d4880;color:#fda4af}.wnx-select,.wnx-input{background:var(--bg-card);color:var(--text-primary);border:1px solid var(--border-subtle);border-radius:6px;padding:6px 9px;font-size:.8rem}.wnx-workspace{display:grid;grid-template-columns:minmax(420px,1.35fr) minmax(340px,1fr);gap:12px;min-height:440px}@media(max-width:1120px){.wnx-workspace{grid-template-columns:1fr}}.wnx-pane{display:flex;flex-direction:column;background:var(--bg-panel);border:1px solid var(--border-subtle);border-radius:10px;overflow:hidden}.wnx-pane-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;background:var(--bg-card);border-bottom:1px solid var(--border-subtle);font-size:.8rem}.wnx-pane-tools{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.wnx-terminal-mount{flex:1;min-height:380px;padding:6px;background:#090d16}.wnx-fb-mount{flex:1;min-height:300px;background:#05080f;position:relative}.wnx-inspector{background:var(--bg-panel);border:1px solid var(--border-subtle);border-radius:10px;padding:12px}.wnx-tabs{display:flex;gap:8px;border-bottom:1px solid var(--border-subtle);padding-bottom:8px;margin-bottom:12px}.wnx-tab-btn{background:transparent;color:var(--text-secondary);border:1px solid transparent;border-radius:6px;padding:6px 11px;font-size:.81rem;cursor:pointer}.wnx-tab-btn[aria-selected=true]{background:var(--bg-card);color:var(--text-primary);border-color:var(--border-subtle)}.wnx-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:10px}.wnx-stat-box{background:var(--bg-card);border:1px solid var(--border-subtle);border-radius:8px;padding:9px 11px}.wnx-stat-label{font-size:.72rem;color:var(--text-secondary)}.wnx-stat-value{font-size:.92rem;font-family:var(--font-mono);margin-top:3px}.wnx-snapshot-list{display:flex;flex-direction:column;gap:6px;margin-top:10px}.wnx-snapshot-row{display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--bg-card);border:1px solid var(--border-subtle);border-radius:6px;padding:7px 10px;font-size:.8rem;font-family:var(--font-mono)}.wnx-log-view{background:#070b14;border:1px solid var(--border-subtle);border-radius:6px;padding:8px 10px;max-height:200px;overflow:auto;font-family:var(--font-mono);font-size:.75rem;line-height:1.4;white-space:pre-wrap;margin:8px 0 0}.wnx-milestone-pills{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
