:root{--bg-primary: #1a1a2e;--bg-secondary: #16213e;--bg-tertiary: #0f3460;--text-primary: #eaeaea;--text-secondary: #a0a0a0;--text-muted: #6c757d;--accent-primary: #00d9ff;--accent-secondary: #7b2cbf;--accent-green: #00ff88;--accent-yellow: #ffd700;--accent-red: #ff4757;--border-color: #2d3748;--code-bg: #0d1117;--sidebar-width: 260px;--header-height: 60px}*{margin:0;padding:0;box-sizing:border-box}html{scroll-behavior:smooth}body{font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;background:var(--bg-primary);color:var(--text-primary);line-height:1.6}.app{display:flex;min-height:100vh}.sidebar{width:var(--sidebar-width);background:var(--bg-secondary);border-right:1px solid var(--border-color);position:fixed;height:100vh;overflow-y:auto;z-index:100}.logo{padding:1.5rem;border-bottom:1px solid var(--border-color);display:flex;align-items:center;gap:.75rem}.logo h1{font-size:1.25rem;font-weight:600;color:var(--accent-primary)}.version{font-size:.75rem;color:var(--text-muted);background:var(--bg-tertiary);padding:.2rem .5rem;border-radius:4px}.nav{padding:1rem 0}.nav-section{margin-bottom:1.5rem}.nav-section h3{font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.1em;color:var(--text-muted);padding:.5rem 1.5rem}.nav-section ul{list-style:none}.nav-link{display:block;padding:.5rem 1.5rem;color:var(--text-secondary);text-decoration:none;font-size:.9rem;transition:all .2s ease;border-left:3px solid transparent;background:transparent;border:none;width:100%;text-align:left;cursor:pointer}.nav-link:hover{color:var(--text-primary);background:#00d9ff0d}.nav-link.active{color:var(--accent-primary);background:#00d9ff1a;border-left-color:var(--accent-primary)}.main-content{flex:1;margin-left:var(--sidebar-width);padding:2rem 3rem;display:flex;justify-content:center}.content-wrapper{width:100%;max-width:1200px}.section{display:none;animation:fadeIn .3s ease}.section.active{display:block}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.section h2{font-size:2rem;margin-bottom:1rem;color:var(--text-primary);border-bottom:2px solid var(--accent-primary);padding-bottom:.5rem}.section h3{font-size:1.25rem;margin:2rem 0 1rem;color:var(--text-primary)}.lead{font-size:1.1rem;color:var(--text-secondary);margin-bottom:2rem}.component-desc{color:var(--text-secondary);margin-bottom:1.5rem}.feature-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.5rem;margin:2rem 0}.feature-card{background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:8px;padding:1.5rem;transition:transform .2s ease,border-color .2s ease}.feature-card:hover{transform:translateY(-2px);border-color:var(--accent-primary)}.feature-icon{font-size:2rem;margin-bottom:.75rem}.feature-card h4{color:var(--text-primary);margin-bottom:.5rem}.feature-card p{color:var(--text-secondary);font-size:.9rem}.message-flow{display:flex;align-items:center;justify-content:center;gap:1rem;margin:2rem 0;flex-wrap:wrap}.flow-step{background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:8px;padding:1.5rem;text-align:center;min-width:180px}.step-num{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;background:var(--accent-primary);color:var(--bg-primary);border-radius:50%;font-weight:600;font-size:.875rem;margin-bottom:.75rem}.flow-step code{display:block;color:var(--accent-primary);font-size:.9rem;margin-bottom:.5rem}.flow-step p{color:var(--text-muted);font-size:.8rem}.flow-arrow{color:var(--accent-primary);font-size:1.5rem;font-weight:700}.code-block{background:var(--code-bg);border:1px solid var(--border-color);border-radius:8px;overflow:hidden;margin:1rem 0}.code-block pre{padding:1rem;overflow-x:auto;font-family:Fira Code,Consolas,monospace;font-size:.875rem;line-height:1.5}.code-block code{color:var(--text-primary)}code{font-family:Fira Code,Consolas,monospace;background:var(--code-bg);padding:.15rem .4rem;border-radius:4px;font-size:.875em;color:var(--accent-primary)}.props-table{width:100%;border-collapse:collapse;margin:1rem 0}.props-table th,.props-table td{padding:.75rem 1rem;text-align:left;border-bottom:1px solid var(--border-color)}.props-table th{background:var(--bg-secondary);color:var(--text-primary);font-weight:600;font-size:.875rem}.props-table td{color:var(--text-secondary);font-size:.875rem}.props-table td:first-child{color:var(--accent-primary)}.example-container{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin:1rem 0}@media (max-width: 900px){.example-container{grid-template-columns:1fr}}.terminal-preview{background:#000;border:1px solid var(--border-color);border-radius:8px;padding:0;font-family:Fira Code,Consolas,monospace;font-size:.875rem;min-height:100px;display:flex;align-items:flex-start;overflow:hidden}.terminal-simulator{width:100%;min-height:300px;height:300px;overflow:hidden}.terminal-container .xterm,.terminal-simulator .xterm{width:100%;height:100%}.terminal-container .xterm-viewport,.terminal-simulator .xterm-viewport,.terminal-container .xterm-screen,.terminal-simulator .xterm-screen{width:100%!important}.terminal-output{color:var(--text-primary);white-space:pre-wrap;line-height:1.4}.terminal-output pre{margin:0;font-family:inherit;white-space:pre-wrap}.term-bold{font-weight:700}.term-green{color:var(--accent-green)}.term-cyan{color:var(--accent-primary)}.term-yellow{color:var(--accent-yellow)}.term-red{color:var(--accent-red)}.term-label{display:block;font-size:.75rem;color:var(--text-secondary);margin-bottom:.25rem}.term-button{background:var(--bg-tertiary);padding:.2rem .5rem;border-radius:4px}.term-input{background:var(--bg-tertiary);padding:.2rem .5rem;border-radius:4px;display:inline-block;min-width:200px}.cursor{animation:blink 1s infinite;color:var(--accent-primary)}@keyframes blink{0%,50%{opacity:1}51%,to{opacity:0}}.playground-container{display:grid;grid-template-columns:1fr 1.6fr;gap:1rem;margin:1.5rem 0;min-height:500px}@media (max-width: 1000px){.playground-container{grid-template-columns:1fr}}@media (max-width: 1200px){.main-content{padding:1.5rem}}@media (max-width: 1024px){.app{flex-direction:column}.sidebar{position:relative;width:100%;height:auto}.main-content{margin-left:0}.nav{display:flex;flex-wrap:wrap;gap:1rem;padding:1rem}.nav-section{flex:1 1 220px;margin-bottom:.5rem}}.playground-editor,.playground-preview{background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:8px;overflow:hidden;display:flex;flex-direction:column}.editor-header,.preview-header{display:flex;justify-content:space-between;align-items:center;padding:.75rem 1rem;background:var(--bg-tertiary);border-bottom:1px solid var(--border-color);font-size:.875rem;font-weight:500}.editor-actions,.preview-actions{display:flex;gap:.5rem}.editor-mode{display:flex;gap:.4rem}.btn.is-active{background:var(--accent-primary);color:var(--bg-primary);border-color:transparent}.simple-editor-grid{display:grid;grid-template-columns:1fr;gap:.75rem;padding:.75rem;background:var(--code-bg)}.editor-field{display:flex;flex-direction:column;gap:.35rem;font-size:.75rem;color:var(--text-secondary)}.editor-textarea{min-height:160px;background:var(--code-bg);color:var(--text-primary);border:1px solid var(--border-color);border-radius:6px;padding:.75rem;font-family:Fira Code,Consolas,monospace;font-size:.85rem;line-height:1.5;resize:vertical;outline:none}.editor-textarea:focus{border-color:var(--accent-primary)}#jsonEditor{flex:1}.terminal-container{flex:1;background:#000;padding:0;width:100%;min-height:600px;overflow:hidden}.terminal-help{padding:.75rem 1rem;border-top:1px solid var(--border-color);background:var(--bg-tertiary);color:var(--text-secondary);font-size:.8rem}.terminal-help code{margin:0 .2rem;font-size:.8rem}.btn{padding:.5rem 1rem;border:none;border-radius:4px;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s ease}.btn-primary{background:var(--accent-primary);color:var(--bg-primary)}.btn-primary:hover{background:#00c4e6}.btn-secondary{background:var(--bg-tertiary);color:var(--text-primary);border:1px solid var(--border-color)}.btn-secondary:hover{background:var(--border-color)}.btn-sm{padding:.3rem .6rem;font-size:.75rem}.playground-actions{margin-top:1.5rem}.actions-log{background:var(--code-bg);border:1px solid var(--border-color);border-radius:8px;padding:1rem;min-height:100px;max-height:200px;overflow-y:auto;font-family:Fira Code,Consolas,monospace;font-size:.8rem}.actions-log .placeholder{color:var(--text-muted);font-style:italic}.action-entry{padding:.5rem;border-bottom:1px solid var(--border-color);color:var(--text-secondary)}.action-entry:last-child{border-bottom:none}.action-entry .action-type{color:var(--accent-green)}.action-entry .action-component{color:var(--accent-primary)}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:var(--bg-primary)}::-webkit-scrollbar-thumb{background:var(--border-color);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--text-muted)}.xterm{padding:.5rem}.xterm-viewport{overflow-y:auto!important}.xterm .xterm-cursor{animation:xtermCursorBlink 1s steps(2,start) infinite}@keyframes xtermCursorBlink{0%,50%{opacity:1}51%,to{opacity:0}}@media (max-width: 768px){.sidebar{position:relative;width:100%;height:auto}.main-content{margin-left:0;padding:1rem}.message-flow{flex-direction:column}.flow-arrow{transform:rotate(90deg)}.nav{flex-direction:column}.nav-section ul{display:flex;flex-wrap:wrap;gap:.25rem}.nav-link{padding:.4rem .75rem;border-left:none;border-radius:6px;background:var(--bg-tertiary)}.nav-link.active{border-left:none;background:#00d9ff26}}@media (max-width: 520px){.playground-container{grid-template-columns:1fr;min-height:auto}.editor-header,.preview-header{flex-direction:column;align-items:flex-start;gap:.5rem}.editor-actions,.preview-actions{width:100%;justify-content:flex-start}}/**
 * 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 .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,.xterm .xterm-message{position:absolute;inset:0;z-index:10;color:transparent;pointer-events:none}.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}
