/**
 * 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{color-scheme:dark;background:#101216;color:#d3d8df;font-family:Menlo,Monaco,Cascadia Mono,Liberation Mono,Consolas,monospace}*{box-sizing:border-box}html,body,#root,main{width:100%;height:100%;margin:0;overflow:hidden}main{position:relative;padding:22px 26px 18px;height:100dvh}.terminal{width:100%;height:100%}.xterm{height:100%}.xterm-viewport{scrollbar-width:thin;scrollbar-color:#363d48 #101216}.xterm .xterm-screen{margin:0 auto}.xterm:focus-visible{outline:none}.mobile-keys{display:none}@media(max-width:600px),(pointer:coarse){main{padding:max(10px,env(safe-area-inset-top)) 10px calc(46px + env(safe-area-inset-bottom))}.mobile-keys{display:flex;position:absolute;bottom:env(safe-area-inset-bottom);left:0;right:0;height:38px;border-top:1px solid #2d3540;background:#101216}.mobile-keys button{flex:1;color:#9ca6b5;background:none;border:none;font:12px Menlo,monospace;padding:8px 0}.mobile-keys button:active{background:#252c35;color:#a4c98a}}.xterm .xterm-viewport{background-color:#101216!important}.xterm-viewport::-webkit-scrollbar{width:6px;background:#101216}.xterm-viewport::-webkit-scrollbar-track{background:#101216}.xterm-viewport::-webkit-scrollbar-thumb{background:#363d48;border-radius:3px}main>.terminal:not(.has-scrollback) .xterm-viewport{overflow-y:hidden!important}.terminal-overlay{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;z-index:5}.terminal-hit{position:absolute;background:transparent;border:0;padding:0;pointer-events:auto;cursor:pointer;border-radius:2px}.terminal-hit:hover{background:#a4c98a1a}.terminal-hit:focus-visible{outline:1px solid #a4c98a;outline-offset:-1px}.terminal-image-slot{position:absolute;display:flex;align-items:center;justify-content:center;pointer-events:none}.terminal-image-slot img{width:100%;height:100%;object-fit:contain}.avatar-image img{width:100%;height:auto;max-height:100%;aspect-ratio:1;object-fit:contain;border-radius:2px;animation:avatar-arrive .28s steps(4)}.mono-icon img{filter:invert(1)}main.cosmos{background:#000;padding:0}main.cosmos .xterm .xterm-viewport{background-color:#000!important}main.cosmos .mobile-keys{display:none}@keyframes avatar-arrive{0%{opacity:0;transform:translate(-3px);filter:brightness(2)}50%{opacity:.6;transform:translate(2px)}to{opacity:1;transform:none;filter:none}}@media(prefers-reduced-motion:reduce){.avatar-image img{animation:none}}
