/**
 * 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: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{-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}#live-ssh-overlay{-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}#live-ssh-overlay.hidden{display:none}#live-ssh-terminal-container{position:relative;background-color:#0f172ae6;border-radius:1rem;overflow:hidden}#live-ssh-terminal{height:100%;width:100%}.live-ssh-status-indicator{display:inline-flex;align-items:center;gap:.35rem;font-size:.75rem;font-weight:500}.live-ssh-status-dot{width:.6rem;height:.6rem;border-radius:9999px;background-color:#f97316;box-shadow:0 0 #f97316b3;animation:live-ssh-pulse 2s infinite}.live-ssh-status-dot.online{background-color:#22c55e;box-shadow:0 0 #22c55e99}.live-ssh-status-dot.error{background-color:#ef4444;box-shadow:0 0 #ef444499}.live-ssh-status-dot.busy{background-color:#f59e0b;box-shadow:0 0 #f59e0b99}@keyframes live-ssh-pulse{0%{box-shadow:0 0 #f9731680}70%{box-shadow:0 0 0 15px #f9731600}to{box-shadow:0 0 #f9731600}}.live-ssh-log{font-family:JetBrains Mono,Fira Code,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.75rem;line-height:1.1rem;max-height:6rem;overflow-y:auto;white-space:pre-wrap}.live-ssh-log::-webkit-scrollbar{width:6px}.live-ssh-log::-webkit-scrollbar-thumb{background-color:#94a3b899;border-radius:9999px}.live-ssh-toolbar button,.live-ssh-toolbar a{transition:all .2s ease}.live-ssh-toolbar button:hover,.live-ssh-toolbar a:hover{transform:translateY(-1px);box-shadow:0 10px 25px -15px #3b82f6cc}#live-ssh-inline-panel{background:#0f172aeb;border:1px solid rgba(71,85,105,.45);box-shadow:0 20px 40px -24px #0f172acc}#live-ssh-inline-terminal-container{border-top:1px solid rgba(71,85,105,.45)}#live-ssh-inline-terminal .xterm-viewport{border-radius:0 0 1rem 1rem}#live-ssh-ask-button:disabled{opacity:.5;cursor:not-allowed}.message-bubble.user-ask,.message-bubble.agent-ask{border-left:4px solid #fbbf24;background:linear-gradient(135deg,#fbbf2414,#fbbf2408)}.ask-badge{display:inline-flex;align-items:center;gap:.375rem;padding:.25rem .75rem;border-radius:.5rem;background-color:#fef3c7cc;color:#92400e;font-size:.75rem;font-weight:600;margin-bottom:.75rem}.dark .ask-badge{background-color:#92400e33;color:#fbbf24}.message-bubble.user-ask .message-content,.message-bubble.agent-ask .message-content{font-size:.9375rem;padding:.75rem}.ask-actions{display:flex;gap:.5rem;margin-top:1rem;padding-top:.75rem;border-top:1px solid rgba(251,191,36,.2)}.ask-actions .resume-btn{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.625rem 1rem;border-radius:.5rem;background:linear-gradient(135deg,#10b981,#059669);color:#fff;font-size:.875rem;font-weight:600;transition:all .2s ease;border:none;cursor:pointer}.ask-actions .resume-btn:hover{transform:translateY(-1px);box-shadow:0 10px 25px -10px #10b98199}.ask-actions .cancel-btn{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.625rem 1rem;border-radius:.5rem;background:#94a3b826;color:#94a3b8;font-size:.875rem;font-weight:600;transition:all .2s ease;border:1px solid rgba(148,163,184,.3);cursor:pointer}.ask-actions .cancel-btn:hover{background:#94a3b840;border-color:#94a3b880}.terminal-overlay-ask{position:absolute;inset:0;background:#0f172a4d;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);display:flex;align-items:flex-start;justify-content:center;padding-top:2rem;z-index:10;pointer-events:none}.terminal-overlay-ask .ask-notification{display:inline-flex;align-items:center;gap:.5rem;padding:.75rem 1.25rem;border-radius:.75rem;background:#fbbf24f2;color:#92400e;font-size:.875rem;font-weight:600;box-shadow:0 10px 40px -10px #fbbf2499}.live-ssh-status.paused-ask .status-dot{background-color:#fbbf24;box-shadow:0 0 #fbbf2499;animation:live-ssh-pulse 2s infinite}.live-ssh-status.paused-ask .status-text{color:#fbbf24}@media (max-width: 640px){.ask-actions{flex-direction:column}.ask-actions .resume-btn,.ask-actions .cancel-btn{width:100%}}
