/**
 * 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-primary: #0d1117;--bg-secondary: #161b22;--bg-tertiary: #21262d;--text-primary: #e6edf3;--text-secondary: #8b949e;--accent: #58a6ff;--accent-hover: #79b8ff;--success: #3fb950;--warning: #d29922;--error: #f85149;--border: #30363d;--terminal-bg: #0d1117;--font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;--font-mono: "JetBrains Mono", "Fira Code", "Cascadia Code", Consolas, monospace}*{box-sizing:border-box;margin:0;padding:0}html,body{height:100%}body{font-family:var(--font-sans);background:var(--bg-primary);color:var(--text-primary);line-height:1.6}#app{min-height:100%;display:flex;flex-direction:column}.header{text-align:center;padding:2rem 1rem;background:linear-gradient(180deg,var(--bg-secondary) 0%,transparent 100%)}.logo{font-size:3rem;font-weight:700;background:linear-gradient(135deg,#58a6ff,#a371f7,#f778ba);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;margin-bottom:.5rem}.tagline{color:var(--text-secondary);font-size:1.1rem;max-width:500px;margin:0 auto}.main{flex:1;max-width:1000px;margin:0 auto;padding:1rem;width:100%}.demo-selector{margin-bottom:1.5rem}.demo-selector h2{font-size:1rem;color:var(--text-secondary);margin-bottom:.75rem;text-transform:uppercase;letter-spacing:.05em}.demo-buttons{display:flex;gap:.75rem;flex-wrap:wrap}.demo-btn{display:flex;flex-direction:column;align-items:flex-start;gap:.25rem;padding:.75rem 1rem;background:var(--bg-secondary);border:1px solid var(--border);border-radius:8px;color:var(--text-primary);cursor:pointer;transition:all .2s ease;min-width:140px}.demo-btn:hover{background:var(--bg-tertiary);border-color:var(--accent)}.demo-btn.active{background:var(--bg-tertiary);border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.demo-icon{font-family:var(--font-mono);font-size:.9rem;color:var(--accent)}.demo-name{font-weight:600;font-size:.95rem}.demo-desc{font-size:.75rem;color:var(--text-secondary)}.terminal-container{background:var(--bg-secondary);border:1px solid var(--border);border-radius:12px;overflow:hidden;margin-bottom:1.5rem}.terminal-header{display:flex;align-items:center;padding:.75rem 1rem;background:var(--bg-tertiary);border-bottom:1px solid var(--border)}.terminal-dots{display:flex;gap:6px;margin-right:1rem}.dot{width:12px;height:12px;border-radius:50%}.dot.red{background:var(--error)}.dot.yellow{background:var(--warning)}.dot.green{background:var(--success)}.terminal-title{font-family:var(--font-mono);font-size:.85rem;color:var(--text-secondary)}#terminal{height:450px;padding:.5rem;background:var(--terminal-bg)}.instructions{background:var(--bg-secondary);border:1px solid var(--border);border-radius:8px;padding:1rem}.instructions h3{font-size:.9rem;color:var(--text-secondary);margin-bottom:.75rem;text-transform:uppercase;letter-spacing:.05em}.controls{display:grid;grid-template-columns:auto 1fr;gap:.5rem 1rem;align-items:center;margin-bottom:.75rem}kbd{display:inline-block;padding:.25rem .5rem;font-family:var(--font-mono);font-size:.85rem;background:var(--bg-tertiary);border:1px solid var(--border);border-radius:4px;color:var(--accent)}.click-hint{font-size:.85rem;color:var(--text-secondary);font-style:italic}.click-hint kbd{font-style:normal}.quick-commands{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:.75rem}.quick-commands code{display:inline-block;padding:.35rem .75rem;font-family:var(--font-mono);font-size:.85rem;background:var(--bg-tertiary);border:1px solid var(--border);border-radius:4px;color:var(--success)}.footer{text-align:center;padding:1.5rem 1rem;color:var(--text-secondary);font-size:.9rem;border-top:1px solid var(--border)}.footer a{color:var(--accent);text-decoration:none}.footer a:hover{text-decoration:underline}.xterm{height:100%}.xterm-viewport{overflow-y:hidden!important}@media(max-width:600px){.logo{font-size:2rem}.tagline{font-size:.95rem}.demo-buttons{flex-direction:column}.demo-btn{width:100%}#terminal{height:280px}}
