/**
 * 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-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{font-family:monospace;-webkit-user-select:text;user-select:text;white-space:pre}.xterm .xterm-accessibility-tree>div{transform-origin:left;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{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}.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}:root{font-family:Inter,Noto Sans SC,system-ui,sans-serif;color:#c9d4df;background:#0b1016;color-scheme:dark}*{box-sizing:border-box}body{margin:0;overflow:hidden}button,input{font:inherit}button{border:1px solid #34475a;background:#182432;color:#dce6ef;border-radius:5px;padding:7px 11px;cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}.primary{background:#36c98f!important;color:#07140f!important;border-color:#36c98f!important}.run-action{border-color:#397f65;color:#a9ebcc}.grow{flex:1}.app{height:100dvh;display:grid;grid-template:52px minmax(0,1fr)/248px minmax(0,1fr);background:#0c1117}.app>header{grid-column:1/-1;display:flex;align-items:center;gap:10px;padding:0 16px;border-bottom:1px solid #263444;background:#111923}.app>header strong{font-weight:650;color:#e4ebf2}.status{font-size:12px;color:#8298ad}aside{min-height:0;padding:15px 10px;border-right:1px solid #253342;overflow:auto;background:#101720}aside h2{margin:0 0 10px;font-size:11px;text-transform:uppercase;letter-spacing:.13em;color:#8296aa;padding:0 8px}details{margin:8px 0}summary{padding:8px;font-weight:650;cursor:pointer}small{display:block;font-size:10px;color:#7990a7;font-weight:400}.lesson{display:flex;text-align:left;width:100%;gap:8px;border:0;background:transparent;padding:9px}.lesson:hover{background:#172332}.planned{font-size:12px;color:#7890a7;padding:0 8px}.workspace{display:grid;min-width:0;min-height:0}.editor-pane,.right{min-width:0;min-height:0;overflow:hidden}.editor-pane{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto}.files{display:flex;gap:3px;padding:6px 8px;background:#0e151d;border-bottom:1px solid #253342;overflow-x:auto}.files button{display:flex;align-items:center;gap:7px;border:0;border-radius:3px;background:transparent;white-space:nowrap;padding:6px 8px;font-size:12px}.files button.active{background:#243448;color:#f1f6fa}.file-kind{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:16px;padding:0 3px;border-radius:3px;background:#274869;color:#bde0ff;font:700 9px/1 ui-monospace,monospace;letter-spacing:-.03em}.file-kind--h{background:#514069;color:#e0c9ff}.file-kind--c{background:#475637;color:#d4edb9}.tab{display:flex;align-items:center;gap:7px;padding:8px 14px;background:#151f2a;border-bottom:1px solid #253342;font-size:13px}.tab>span:last-child{color:#e4ad48;margin-left:2px}.divider{background:#253342;cursor:col-resize}.divider:hover{background:#36c98f}.lsp-statusbar{display:flex;align-items:center;gap:8px;padding:4px 12px;background:#0d1620;border-top:1px solid #1e2e3f;font-size:11px;color:#7a9ab8;height:24px;-webkit-user-select:none;user-select:none}.lsp-statusbar-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0}.lsp-statusbar-dot.ready{background:#36c98f;box-shadow:0 0 5px #36c98f88}.lsp-statusbar-dot.connecting{background:#e4ad48;animation:pulse 1.2s infinite}.lsp-statusbar-dot.disconnected{background:#566879}.lsp-statusbar-bar{flex:1;height:2px;background:#1d2c3c;border-radius:1px;overflow:hidden;max-width:140px}.lsp-statusbar-bar-fill{height:100%;background:#36c98f;border-radius:1px;transition:width .3s ease}.lsp-statusbar-pct{min-width:28px;text-align:right}@keyframes pulse{50%{opacity:.4}}.bottom-panel{border-top:1px solid #1e2e3f;background:#0a1018}.bottom-panel-tabs{height:31px;display:flex;align-items:stretch}.bottom-tab,.bottom-close{border:0;border-radius:0;background:transparent;padding:5px 13px;font-size:11px;color:#8298ad}.bottom-tab{border-right:1px solid #1e2e3f}.bottom-tab:hover,.bottom-tab--active{background:#101c29;color:#dce6ef}.bottom-tab--active{box-shadow:inset 0 -2px #36c98f}.bottom-tab--has-issues{color:#e8b45d}.bottom-close{padding-inline:12px;font-size:18px;line-height:1;color:#8298ad}.bottom-close:hover{color:#fff;background:#28171b}.bottom-panel-body{height:210px;overflow:auto}.problems-badge{display:inline-block;padding:1px 5px;margin-left:4px;border-radius:10px;background:#263a4d;color:#b9d0e4;font-size:10px;font-weight:700}.problems-badge--error{background:#35161a;color:#ff9a96}.problems-badge--warn{background:#3a2b12;color:#f0c66b}.problems-empty{padding:18px;color:#71869a;font-size:12px}.problems-row{display:grid;grid-template-columns:18px auto 1fr;gap:7px;align-items:baseline;padding:5px 16px;cursor:pointer;font-size:11px;border-left:2px solid transparent}.problems-row:hover{background:#101c29}.problems-row--error{border-left-color:#f87171}.problems-row--warning{border-left-color:#e4ad48}.problems-row--note{border-left-color:#4a9eff}.problems-sev--error{color:#f87171}.problems-sev--warning{color:#e4ad48}.problems-sev--note{color:#4a9eff}.problems-file{font-family:ui-monospace,monospace;color:#70869a;white-space:nowrap}.problems-msg{color:#c6d5e3}.bottom-output,.bottom-tests{padding:10px 14px}.run-status{padding:6px 9px;margin-bottom:8px;border-radius:4px;font-size:12px;font-weight:650}.run-status--ok{background:#0d2318;color:#6ee3ad;border:1px solid #1a4030}.run-status--fail{background:#2a1010;color:#ff9893;border:1px solid #4a2020}.run-pre,.test-pre,.test-diff{display:block;width:100%;margin:6px 0;font:12px/1.55 JetBrains Mono,Consolas,monospace;background:#0a1420;border:1px solid #1e2e3f;border-radius:4px;padding:8px 10px;color:#c4d7e6;overflow:auto;white-space:pre-wrap}.run-pre--err,.test-pre--err{color:#ff9c99;background:#160b0b;border-color:#462024}.run-truncated{font-size:11px;color:#e4ad48}.bottom-test{margin:4px 0;border:1px solid #263848;border-radius:5px;overflow:hidden}.bottom-test--pass{border-color:#1d533c}.bottom-test--fail{border-color:#5a292e}.bottom-test summary{display:flex;align-items:center;gap:9px;padding:7px 10px;font:12px ui-monospace,monospace;cursor:pointer}.bottom-test--pass summary{color:#76dca9}.bottom-test--fail summary{color:#ff9a96}.bottom-test summary small{margin-left:auto}.bottom-test__detail{padding:0 10px 8px;background:#0b1118}.right{background:#111922;display:grid;grid-template-rows:auto minmax(0,1fr)}.tabs{display:flex;border-bottom:1px solid #253342}.tabs button{border:0;border-radius:0;background:transparent;padding:11px 15px;font-size:12px}.tabs button.active{color:#65e9b0;box-shadow:inset 0 -2px #36c98f}.right article{min-height:0;overflow:hidden;line-height:1.65}.guide-reader{height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto}.guide-reader__meta{display:flex;justify-content:space-between;align-items:center;padding:8px 18px;border-bottom:1px solid #1e2e3f;color:#89a1b6;font-size:12px}.guide-reader__mode{display:flex;border:1px solid #2b4052;border-radius:4px;overflow:hidden}.guide-reader__mode button{border:0;border-radius:0;background:transparent;padding:4px 8px;font-size:11px;color:#91a6b8}.guide-reader__mode button.active{background:#214535;color:#9cf0c6}.guide-reader__content{min-height:0;overflow:auto;padding:18px 24px}.guide-reader__content h1{font-size:25px}.guide-reader__content h2{font-size:19px}.guide-reader__content code{background:#1d2a38;padding:2px 5px;border-radius:3px}.guide-reader__content blockquote{border-left:3px solid #36c98f;margin-left:0;padding:8px 14px;background:#14251f}.guide-reader__content--full{scroll-behavior:smooth}.guide-reader__section{padding-bottom:26px;margin-bottom:20px;border-bottom:1px solid #213140}.guide-reader__section:last-child{border-bottom:0}.guide-reader__pager{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:10px 18px;border-top:1px solid #253342;background:#0f171f}.guide-reader__pager span{margin-right:auto;font-size:11px;color:#8197aa}.guide-tip{background:#0d2318;border:1px solid #1a4030;border-left:3px solid #36c98f;border-radius:6px;padding:10px 14px;margin:12px 0;font-size:13px;color:#8fd4b0}.guide-warn{background:#1a1500;border:1px solid #3a2f0a;border-left:3px solid #e4ad48;border-radius:6px;padding:10px 14px;margin:12px 0;font-size:13px;color:#c9a84c}.quiz-panel{height:100%;overflow:auto;padding:16px 24px}.quiz-correct{border-color:#1a4030!important}.quiz-wrong{border-color:#3a1a1a!important}.quiz-selected-correct{color:#36c98f;font-weight:600}.quiz-selected-wrong{color:#f87171;font-weight:600}.quiz-explanation{margin-top:8px;padding:8px 10px;border-radius:5px;font-size:12px}.quiz-explanation--ok{background:#0d2318;color:#36c98f;border:1px solid #1a4030}.quiz-explanation--fail{background:#2a1010;color:#f87171;border:1px solid #3a2020}.quiz-result{display:flex;gap:12px;padding:12px 16px;border-radius:8px;font-weight:600}.quiz-result--pass{background:#0d2318;color:#36c98f;border:1px solid #1a4030}.quiz-result--fail{background:#2a1010;color:#f87171;border:1px solid #3a2020}.quiz-result-score{font-size:20px}fieldset{border:1px solid #314354;border-radius:6px;margin:14px 0}fieldset label{display:block;padding:5px}.empty,.pair{display:grid;place-content:center;height:100%;text-align:center;color:#91a4b7}.empty h1,.pair h1{color:#e8f0f7}.error{color:#ff7e79}.pair{height:100vh}.pair form{display:flex;gap:8px}.pair input{min-width:320px;padding:10px;background:#121c26;border:1px solid #34475a;border-radius:5px}@media(max-width:900px){.app{grid-template-columns:190px minmax(0,1fr)}.workspace{grid-template-columns:1fr!important}.divider,.right,.status{display:none}}.test-guide-overlay{position:fixed;z-index:5;left:248px;right:0;bottom:0;height:241px;padding:10px 14px;background:#0a1018;border-top:1px solid #1e2e3f;overflow:auto}.test-guide-overlay~.lsp-progress{z-index:6}body:has(.test-guide-overlay) .bottom-tests{visibility:hidden}.test-guide-list{display:flex;flex-direction:column;gap:8px}.test-guide{border:1px solid #2c4053;border-radius:6px;background:#0d151f;overflow:hidden}.test-guide--pass{border-color:#20734d}.test-guide--fail{border-color:#70343a}.test-guide__header{display:flex;align-items:center;gap:8px;padding:8px 10px;background:#111f2c;font-size:12px}.test-guide__icon{font-weight:800;color:#91a5b8}.test-guide--pass .test-guide__icon,.test-guide--pass .test-guide__status{color:#72e5ab}.test-guide--fail .test-guide__icon,.test-guide--fail .test-guide__status{color:#ff9b98}.test-guide__status{margin-left:auto;font-size:11px}.test-guide__io{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:8px 10px}.test-guide__io span,.test-guide__feedback span{display:block;margin-bottom:3px;font-size:10px;color:#8098ad;letter-spacing:.07em}.test-guide pre{margin:0;padding:6px 8px;min-height:32px;background:#09111a;border:1px solid #213346;border-radius:4px;color:#c9d9e8;font:11px/1.5 JetBrains Mono,monospace;white-space:pre-wrap}.test-guide__hint,.test-guide__success{margin:0;padding:0 10px 9px;font-size:11px;color:#a5b9ca}.test-guide__success{color:#70e2a8}.test-guide__feedback{padding:0 10px 10px}.test-guide__actual{border-color:#613036!important;color:#ffd0ce!important}.test-guide__stderr{border-color:#613036!important;background:#180c0d!important;color:#ffaaa6!important}@media(max-width:900px){.test-guide-overlay{left:190px}.test-guide__io{grid-template-columns:1fr}}.capability-screen{min-height:100dvh;display:grid;place-content:center;gap:12px;padding:32px;background:#0c1117;color:#dce6ef}.capability-screen h1{margin:0;font-size:24px}.capability-screen>p{max-width:640px;margin:0;color:#91a6b8}.capability{display:grid;gap:3px;margin:7px 0;padding:10px 12px;border:1px solid #2a3d50;border-radius:6px;background:#101a25}.capability span{font-size:12px;color:#91a6b8}.capability--ok strong{color:#72e5ab}.capability--fail{border-color:#71393f}.capability--fail strong{color:#ff9b98}.capability-note{font-size:12px}.toolchain-panel{padding:16px;color:#b5c6d5;font-size:12px}.toolchain-panel p{margin:8px 0}.toolchain-panel code{display:block;margin:6px 0;color:#8edcb9}.toolchain-log{max-height:180px;overflow:auto;margin:6px 0;padding:8px 8px 8px 28px;border:1px solid #2a3d50;border-radius:4px;background:#0c1117;font-family:JetBrains Mono,monospace;font-size:11px;line-height:1.6}.toolchain-log time{color:#7a9ab8}.toolchain-log--error{color:#ff9b98}.lesson--active{background:#1b3142!important;color:#f1f6fa}.browser-workspace{grid-template-columns:minmax(0,58%) minmax(280px,42%)}.terminal-pane{height:170px;min-height:120px;border:1px solid #1e2e3f;border-radius:4px;overflow:hidden;background:#071018}.terminal-pane .xterm{height:100%;padding:6px 8px}
