/**
 * 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{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}.lab{display:grid;gap:28px;align-items:start}.lab-side{display:grid;gap:28px;min-width:0}.exit-term{margin-top:28px}.term-wrap{position:relative}.term-cover{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;text-align:center;padding:16px;border-radius:var(--radius-sm);background:#18130eb8;color:var(--cream)}.term-cover .small{margin:0;position:absolute;bottom:14px;left:16px;right:16px}.term-cover .big{font-size:1.15rem;padding:12px 28px}.err-on-dark{color:#ffb3b6;font-weight:600;margin:0;max-width:28em;position:absolute;top:calc(50% + 48px)}@media(min-width:960px){.lab{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}.lab-term{position:sticky;top:84px}.lab .lab-term .term{height:clamp(360px,calc(100vh - 190px),640px)}}.lab .term{border:var(--border);border-radius:var(--radius-sm);box-shadow:var(--shadow);background:var(--ink);padding:8px;height:420px;overflow:hidden}.lab>*{min-width:0}.lab .term-inner{width:100%;height:100%;overflow:hidden}.lab .bar{display:flex;gap:12px;align-items:center;margin-bottom:10px}.lab .actions{display:flex;gap:12px;align-items:center;margin-top:18px;flex-wrap:wrap}.lab .small{font-size:.9rem}.lab .err{color:var(--red);font-weight:600}.lab .ok{color:var(--ok);font-weight:600}.lab .steps{list-style:none;counter-reset:s;padding:0;margin:0;display:grid;gap:16px}.lab .steps li{counter-increment:s;background:#fff;border:var(--border);border-radius:var(--radius-sm);padding:14px 16px 14px 56px;position:relative}.lab .steps li:before{content:counter(s);position:absolute;left:14px;top:12px;width:30px;height:30px;border:3px solid var(--ink);border-radius:50%;display:grid;place-content:center;font:700 14px var(--font-mono)}.lab .steps li.done{background:#eaf7ee}.lab .steps li.done:before{background:var(--ok);color:#fff;border-color:var(--ok)}.lab .say{margin:0 0 8px;font-weight:600}.lab .hints{margin-top:12px;border-top:3px dashed var(--ink);padding-top:10px}.lab .hints ol{margin:0 0 8px;padding-left:1.2em}.lab .hints li{margin-bottom:6px}.lab .small-btn{font-size:.9rem;padding:4px 14px}.lab .trap .hints{border-color:var(--ink)}.lab .trap h3{color:var(--ink)}.lab .trap{margin-bottom:0}.lab.solo{max-width:none;grid-template-columns:minmax(0,1fr)}.lab.solo .term{height:clamp(420px,calc(100vh - 320px),820px)}.term-cover .queue{display:grid;gap:10px;justify-items:center;max-width:30em}.term-cover .queue p{margin:0;position:static}.term-cover .queue-title{font:800 1.4rem var(--font-display);letter-spacing:-.5px}.term-cover .queue-sub{font-size:1rem}.term-cover .queue .btn{margin-top:6px}.term-cover .queue-fine{font-size:.85rem;opacity:.8;margin-top:6px}.muted-on-dark{opacity:.75;font-family:var(--font-mono)}.lab .keys{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.lab .keys .key{min-width:48px;min-height:48px;padding:4px 10px;font:700 1rem var(--font-mono);border-radius:var(--radius-sm)}.lab .keys .key[aria-pressed=true]{background:var(--ink);color:var(--cream)}
