/**
 * 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;-moz-user-select:none;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-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) *::-moz-selection{color:transparent}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{font-family:monospace;-webkit-user-select:text;-moz-user-select:text;user-select:text;white-space:pre}.xterm .xterm-accessibility-tree>div{transform-origin:left;width:-moz-fit-content;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{-webkit-text-decoration:double underline;text-decoration:double underline}.xterm-underline-3{-webkit-text-decoration:wavy underline;text-decoration:wavy underline}.xterm-underline-4{-webkit-text-decoration:dotted underline;text-decoration:dotted underline}.xterm-underline-5{-webkit-text-decoration:dashed underline;text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{-webkit-text-decoration:overline double underline;text-decoration:overline double underline}.xterm-overline.xterm-underline-3{-webkit-text-decoration:overline wavy underline;text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{-webkit-text-decoration:overline dotted underline;text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{-webkit-text-decoration:overline dashed underline;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}.agent-page.svelte-1mf7izu{box-sizing:border-box;display:flex;flex-direction:column;width:100%;min-height:calc(100vh - 2.5rem);margin:0;padding:20px 16px 48px;background:var(--tal-bg);color:var(--tal-ink);font-family:var(--tal-grotesk);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.agent-page.svelte-1mf7izu>:where(.svelte-1mf7izu){width:100%;max-width:1040px;margin-inline:auto}.agent-page.embed.svelte-1mf7izu{height:100vh;height:100dvh;min-height:0;padding:0;background:var(--bg-primary)}.agent-page.embed.svelte-1mf7izu>:where(.svelte-1mf7izu){max-width:none}.agent-page.embed.svelte-1mf7izu .terminal-frame.demo:where(.svelte-1mf7izu){flex:1;min-height:0;border:0;border-radius:0;background:var(--bg-primary)}.agent-page.embed.svelte-1mf7izu .terminal-host:where(.svelte-1mf7izu){height:100%}.agent-header.svelte-1mf7izu,nav.svelte-1mf7izu,.terminal-meta.svelte-1mf7izu{display:flex;align-items:center;justify-content:space-between}.agent-header.svelte-1mf7izu{align-items:baseline;gap:12px;padding:0 2px 12px}.kicker.svelte-1mf7izu,.runtime.svelte-1mf7izu span:where(.svelte-1mf7izu){font-size:11px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;color:var(--tal-ink-2)}h1.svelte-1mf7izu{margin:4px 0 0;font-size:20px;font-weight:600;letter-spacing:-.01em}.agent-header.svelte-1mf7izu h1:where(.svelte-1mf7izu){margin:0}.runtime.svelte-1mf7izu{display:grid;gap:4px;text-align:right}.runtime.svelte-1mf7izu strong:where(.svelte-1mf7izu){color:var(--accent);font-family:var(--tal-mono);font-size:13px;font-weight:500}nav.svelte-1mf7izu{justify-content:flex-end;gap:8px;padding-bottom:12px}nav.svelte-1mf7izu a:where(.svelte-1mf7izu),nav.svelte-1mf7izu button:where(.svelte-1mf7izu){display:inline-flex;align-items:center;min-height:34px;padding:0 16px;border:0;border-radius:999px;background:var(--tal-pill);color:var(--tal-ink);font:inherit;font-size:13px;font-weight:500;text-decoration:none;cursor:pointer;transition:background .12s ease,color .12s ease}nav.svelte-1mf7izu a:where(.svelte-1mf7izu):hover,nav.svelte-1mf7izu button:where(.svelte-1mf7izu):hover:not(:disabled),nav.svelte-1mf7izu a:where(.svelte-1mf7izu):focus-visible,nav.svelte-1mf7izu button:where(.svelte-1mf7izu):focus-visible{outline:0;background:var(--tal-ink);color:var(--tal-bg)}nav.svelte-1mf7izu button:where(.svelte-1mf7izu):disabled{opacity:.5;cursor:default}.error.svelte-1mf7izu{margin-bottom:12px;padding:10px 14px;border:1px solid var(--danger);border-radius:10px;background:var(--tal-card);color:var(--danger);font-size:13px}.error.svelte-1mf7izu a:where(.svelte-1mf7izu),.error.svelte-1mf7izu button:where(.svelte-1mf7izu){margin-left:8px;color:inherit}.error.svelte-1mf7izu button:where(.svelte-1mf7izu){background:none;border:1px solid currentcolor;border-radius:999px;padding:2px 10px;font:inherit;cursor:pointer}.terminal-frame.svelte-1mf7izu{display:grid;grid-template-rows:auto minmax(0,1fr);border:1px solid var(--tal-line-2);border-radius:14px;background:var(--tal-card);overflow:hidden}.terminal-frame.demo.svelte-1mf7izu{grid-template-rows:minmax(0,1fr)}.agent-status.svelte-1mf7izu{font-family:var(--tal-mono);font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--accent)}.terminal-meta.svelte-1mf7izu{min-width:0;gap:16px;padding:8px 14px;border-bottom:1px solid var(--tal-line);font-family:var(--tal-mono);font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--tal-ink-2)}.terminal-meta.svelte-1mf7izu span:where(.svelte-1mf7izu):last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.terminal-host.svelte-1mf7izu{min-width:0;min-height:0;overflow:hidden;height:55vh;height:clamp(320px,58dvh,640px);padding:12px;background:var(--bg-primary)}.terminal-host.svelte-1mf7izu .xterm,.terminal-host.svelte-1mf7izu .xterm-viewport{height:100%}.terminal-host.svelte-1mf7izu .xterm-helper-textarea{font-size:16px}.key-strip.svelte-1mf7izu{display:none}@media(max-width:640px){body:has(.agent-page.mobile) .fw-launcher-wrap{display:none}.agent-page.mobile.svelte-1mf7izu{height:calc(100vh - 40px);height:calc(var(--agent-vvh, 100dvh) - 40px);min-height:0;padding:0;overflow:hidden;overscroll-behavior:none}.agent-header.svelte-1mf7izu{align-items:center;gap:12px;min-height:32px;padding:4px 10px}.agent-header.svelte-1mf7izu h1:where(.svelte-1mf7izu),.agent-header.svelte-1mf7izu .runtime:where(.svelte-1mf7izu) strong:where(.svelte-1mf7izu){font-size:13px}.agent-header.svelte-1mf7izu .kicker:where(.svelte-1mf7izu),.agent-header.svelte-1mf7izu .runtime:where(.svelte-1mf7izu) span:where(.svelte-1mf7izu),.terminal-meta.svelte-1mf7izu{display:none}nav.svelte-1mf7izu{padding:0 10px 8px}nav.svelte-1mf7izu a:where(.svelte-1mf7izu),nav.svelte-1mf7izu button:where(.svelte-1mf7izu){min-height:30px;font-size:12px}.agent-page.mobile.svelte-1mf7izu .terminal-frame:where(.svelte-1mf7izu){flex:1;min-height:0;grid-template-rows:minmax(0,1fr) auto;border-left:0;border-right:0;border-radius:0}.agent-page.mobile.svelte-1mf7izu .terminal-host:where(.svelte-1mf7izu){height:100%;padding:4px 2px 0;overscroll-behavior:contain}.key-strip.svelte-1mf7izu{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;border-top:1px solid var(--tal-line);background:var(--tal-card);padding-bottom:env(safe-area-inset-bottom,0)}.key-strip.svelte-1mf7izu button:where(.svelte-1mf7izu){min-height:36px;padding:0;border:0;border-left:1px solid var(--tal-line);border-radius:0;background:var(--tal-card);color:var(--tal-ink);font-family:var(--tal-mono);font-size:12px;letter-spacing:.04em;touch-action:manipulation;-webkit-tap-highlight-color:transparent;cursor:pointer}.key-strip.svelte-1mf7izu button:where(.svelte-1mf7izu):first-child{border-left:0}.key-strip.svelte-1mf7izu button:where(.svelte-1mf7izu):active,.key-strip.svelte-1mf7izu button.armed:where(.svelte-1mf7izu){background:var(--tal-ink);color:var(--tal-card)}}
