/**
 * 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{--bg: #f4f6fa;--panel: #ffffff;--ink: #14161b;--dim: #5b6472;--border: #e3e7ee;--accent: #2e5cff;--green: #12a150;--red: #e5484d;--amber: #b9770f;--term-bg: #0e1116;--term-ink: #e6edf3;--mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;--sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--ink);font-family:var(--sans);-webkit-font-smoothing:antialiased}button{font-family:inherit;cursor:pointer}a{color:var(--accent)}.app{display:flex;flex-direction:column;height:100vh}.header{flex:none;height:56px;background:var(--panel);border-bottom:1px solid var(--border);display:flex;align-items:center;gap:20px;padding:0 20px}.brand{font-weight:600;font-size:15px;display:flex;align-items:center;gap:9px}.brand .logo{width:24px;height:24px;border-radius:7px;background:#14161b;display:flex;align-items:center;justify-content:center}.brand .logo i{width:7px;height:7px;border-radius:50%;background:var(--red);display:block}.nav{display:flex;gap:4px}.nav button{border:none;background:none;color:var(--dim);font-size:13.5px;font-weight:500;padding:7px 12px;border-radius:8px}.nav button.active{color:var(--ink);background:var(--bg)}.spacer{margin-left:auto}.pill{display:inline-flex;align-items:center;gap:7px;font-size:12.5px;color:var(--dim);background:var(--bg);border:1px solid var(--border);padding:5px 10px;border-radius:8px}.dot{width:6px;height:6px;border-radius:50%;background:var(--green)}.dot.red{background:var(--red)}.content{flex:1;min-height:0;overflow:auto}.wrap{max-width:1120px;margin:0 auto;padding:30px 24px 60px}h1{font-size:30px;letter-spacing:-.6px;margin:6px 0 4px}.sub{color:var(--dim);font-size:14.5px;margin:0 0 22px}.eyebrow{color:var(--accent);font-size:12.5px;font-weight:600;text-transform:uppercase;letter-spacing:.4px}.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.card{background:var(--panel);border:1px solid var(--border);border-radius:14px;padding:20px}.card.click{cursor:pointer;transition:border-color .15s,box-shadow .15s}.card.click:hover{border-color:var(--accent);box-shadow:0 2px 10px #2e5cff14}.card .tag{font-size:11.5px;font-weight:600;color:var(--dim);text-transform:uppercase;letter-spacing:.3px}.card .title{font-size:17px;font-weight:600;margin:12px 0 6px}.card .foot{display:flex;align-items:center;justify-content:space-between;margin-top:16px;padding-top:14px;border-top:1px solid #eef1f6;font-size:12.5px;color:var(--dim)}.chip{font-size:11.5px;font-weight:600;padding:3px 10px;border-radius:7px}.chip.s{color:var(--green);background:#12a1501a}.chip.c{color:#1e44c7;background:#2e5cff1a}.chip.f{color:var(--amber);background:#f5a62324}.play{display:grid;grid-template-columns:1fr 372px;height:100%;min-height:0}.term-col{background:var(--term-bg);display:flex;flex-direction:column;min-width:0}.term-bar{height:40px;flex:none;display:flex;align-items:center;gap:8px;padding:0 14px;border-bottom:1px solid #21262d}.term-bar .b{width:11px;height:11px;border-radius:50%}.term-bar .name{margin-left:8px;font-family:var(--mono);font-size:12px;color:#8b949e}.term-bar .reset{margin-left:auto;font-family:var(--mono);font-size:11.5px;color:#8b949e;border:1px solid #30363d;background:none;padding:3px 9px;border-radius:6px}.term-host{flex:1;min-height:0;padding:8px 10px}.devtabs{flex:none;display:flex;gap:4px;padding:6px 12px;background:#0b0e13;border-top:1px solid #21262d;flex-wrap:wrap;align-items:center}.devtabs-label{font-size:10px;color:#5b6472;margin-right:6px;text-transform:uppercase;letter-spacing:.3px}.devtab{font-family:var(--mono);font-size:11.5px;color:#8b949e;background:none;border:1px solid #30363d;padding:3px 10px;border-radius:6px;cursor:pointer;display:flex;align-items:center;gap:4px}.devtab:hover{border-color:#8b949e;color:#c9d1d9}.devtab.active{color:#58a6ff;border-color:#58a6ff;background:#58a6ff14}.devtab-icon{font-size:12px}.side{background:var(--bg);border-left:1px solid var(--border);overflow:auto;padding:18px}.topbar{height:52px;flex:none;background:var(--panel);border-bottom:1px solid var(--border);display:flex;align-items:center;gap:14px;padding:0 20px}.topbar .num{width:26px;height:26px;border-radius:7px;background:#14161b;color:#fff;display:flex;align-items:center;justify-content:center;font-family:var(--mono);font-weight:600;font-size:12.5px}.status{margin-left:auto;font-size:12px;font-weight:600;padding:5px 11px;border-radius:8px}.status.inv{color:var(--amber);background:#f5a62324}.status.ok{color:#0e7a3d;background:#12a1501f}.ticket{background:var(--panel);border:1px solid var(--border);border-radius:13px;overflow:hidden}.ticket .head{padding:11px 15px;background:#14161b;color:#fff;display:flex;align-items:center}.ticket .head .id{font-family:var(--mono);font-size:12px;color:#f5a623}.ticket .head .pri{margin-left:auto;font-size:11px;font-weight:600;background:#e5484d33;color:#ff8b8e;padding:2px 8px;border-radius:6px}.ticket .body{padding:14px 15px}.ticket .t{font-weight:600;font-size:14px}.ticket .sym{font-size:13px;color:var(--dim);line-height:1.55;margin:8px 0 0}.ticket .win{margin-top:12px;padding:9px 12px;background:var(--bg);border-radius:9px;font-size:12.5px}.ticket .win code{font-family:var(--mono)}.block{background:var(--panel);border:1px solid var(--border);border-radius:13px;padding:15px;margin-top:14px}.block .h{font-size:11.5px;font-weight:600;color:var(--dim);text-transform:uppercase;letter-spacing:.4px}.node{display:flex;align-items:center;gap:11px;padding:6px 0}.node .ico{width:40px;height:36px;flex:none;border-radius:8px;border:1.5px solid #c7ceda;background:#fff;display:flex;align-items:center;justify-content:center;font-size:16px}.node .nm{font-size:12px;font-weight:600}.node .meta{font-family:var(--mono);font-size:10.5px;color:#8b949e}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0a0c108c;display:flex;align-items:center;justify-content:center;z-index:50}.modal{background:var(--panel);border-radius:16px;padding:30px;max-width:460px;width:92%;text-align:center}.modal h2{color:var(--green);margin:0 0 6px}.grade{font-size:46px;font-weight:700;margin:10px 0}.btn{border:none;border-radius:10px;padding:11px 20px;font-size:14px;font-weight:600}.btn.primary{background:var(--accent);color:#fff}.btn.ghost{background:var(--panel);border:1px solid var(--border);color:var(--ink)}.row{display:flex;gap:10px;justify-content:center;margin-top:18px}.studio{display:grid;grid-template-columns:1fr 360px;gap:20px}.yaml{background:var(--term-bg);color:#c9d1d9;border-radius:12px;padding:16px;font-family:var(--mono);font-size:12.5px;line-height:1.6;white-space:pre;overflow:auto;max-height:62vh}.yaml-editor{background:var(--term-bg);color:#c9d1d9;border-radius:12px;padding:16px;font-family:var(--mono);font-size:12.5px;line-height:1.6;white-space:pre;overflow:auto;max-height:62vh;min-height:50vh;width:100%;border:1px solid var(--border);resize:vertical;outline:none;-moz-tab-size:2;tab-size:2}.yaml-editor:focus{border-color:var(--accent);box-shadow:0 0 0 3px #2e5cff1f}.verdict{border-radius:12px;padding:16px;margin-top:14px;font-size:14px}.verdict.pass{background:#12a1501a;color:#0e7a3d}.verdict.fail{background:#e5484d1a;color:#b21f24}.step{display:flex;gap:10px;align-items:flex-start;font-size:13px;padding:7px 0;border-bottom:1px solid #f0f2f6}.step .mark{width:18px;height:18px;flex:none;border-radius:5px;color:#fff;display:flex;align-items:center;justify-content:center;font-size:11px}@keyframes blink{0%,49%{opacity:1}50%,to{opacity:0}}.card.solved{border-color:var(--green);background:#12a15008}@media (max-width: 1024px){.grid,.studio{grid-template-columns:1fr}}@media (max-width: 900px){.play{grid-template-columns:1fr;grid-template-rows:1fr auto;height:auto}.term-col{min-height:45vh}.side{border-left:none;border-top:1px solid var(--border);max-height:50vh;overflow:auto}.topbar{flex-wrap:wrap;height:auto;padding:12px 16px;gap:8px}.header{flex-wrap:wrap;height:auto;padding:10px 16px;gap:10px}.nav{order:3;width:100%;justify-content:center}.wrap{padding:20px 14px 40px}h1{font-size:22px}}@media (max-width: 640px){.grid{gap:12px}.card{padding:16px}.card .title{font-size:15px}.ticket .body{padding:12px}.play{grid-template-columns:1fr}.term-col{min-height:38vh}.side{padding:12px}.studio{grid-template-columns:1fr;gap:14px}.yaml-editor{min-height:35vh;font-size:11px}.topbar .num{width:22px;height:22px;font-size:11px}.topbar b{font-size:13px}div[style*="gridTemplateColumns: '1fr 1fr'"],div[style*="grid-template-columns: 1fr 1fr"]{grid-template-columns:1fr!important}}@media (max-width: 480px){.header{padding:8px 12px;gap:8px}.brand{font-size:13px;gap:6px}.pill{font-size:11px;padding:4px 8px}.nav button{font-size:12px;padding:5px 8px}.wrap{padding:16px 10px 30px}h1{font-size:18px}.sub{font-size:13px}.eyebrow{font-size:11px}.block{padding:12px}.card .foot{flex-direction:column;align-items:flex-start;gap:6px}}.hero-grid{grid-template-columns:1fr 1fr}.feature-grid{grid-template-columns:repeat(3,1fr)}@media (max-width: 900px){.hero-grid,.feature-grid{grid-template-columns:1fr!important}}@media (max-width: 640px){.hero-grid{padding:30px 16px 24px!important;gap:28px!important}.feature-grid{padding:10px 16px 30px!important}}
