.xterm{cursor:text;-webkit-user-select:none;user-select:none;position:relative}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{z-index:5;position:absolute;top:0}.xterm .xterm-helper-textarea{opacity:0;z-index:-5;white-space:nowrap;resize:none;border:0;width:0;height:0;margin:0;padding:0;position:absolute;top:0;left:-9999em;overflow:hidden}.xterm .composition-view{color:#fff;white-space:nowrap;z-index:1;background:#000;display:none;position:absolute}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{cursor:default;background-color:#000;position:absolute;inset:0;overflow-y:scroll}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;top:0;left:0}.xterm-char-measure-element{visibility:hidden;line-height:normal;display:inline-block;position:absolute;top:0;left:-9999em}.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{z-index:10;color:#0000;pointer-events:none;position:absolute;inset:0}.xterm .xterm-accessibility-tree:not(.debug) ::selection{color:#0000}.xterm .xterm-accessibility-tree{-webkit-user-select:text;user-select:text;white-space:pre;font-family:monospace}.xterm .xterm-accessibility-tree>div{transform-origin:0;width:-moz-fit-content;width:fit-content}.xterm .live-region{width:1px;height:1px;position:absolute;left:-9999px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{-webkit-text-decoration:underline double;text-decoration:underline double}.xterm-underline-3{-webkit-text-decoration:underline wavy;text-decoration:underline wavy}.xterm-underline-4{-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.xterm-underline-5{-webkit-text-decoration:underline dashed;text-decoration:underline dashed}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:underline overline}.xterm-overline.xterm-underline-2{-webkit-text-decoration:overline double underline;text-decoration:overline double underline}.xterm-overline.xterm-underline-3{-webkit-text-decoration:overline wavy underline;text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{-webkit-text-decoration:overline dotted underline;text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{-webkit-text-decoration:overline dashed underline;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;pointer-events:none;position:absolute;top:0;right:0}.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;z-index:11;background:0 0;transition:opacity .1s linear}.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{display:none;position:absolute}.xterm .xterm-scrollable-element>.shadow.top{width:100%;height:3px;box-shadow:var(--vscode-scrollbar-shadow,#000) 0 6px 6px -6px inset;display:block;top:0;left:3px}.xterm .xterm-scrollable-element>.shadow.left{width:3px;height:100%;box-shadow:var(--vscode-scrollbar-shadow,#000) 6px 0 6px -6px inset;display:block;top:3px;left:0}.xterm .xterm-scrollable-element>.shadow.top-left-corner{width:3px;height:3px;display:block;top:0;left:0}.xterm .xterm-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow,#000) 6px 0 6px -6px inset}:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;color:#fafafa;--background:#09090b;--foreground:#fafafa;--muted:#27272a;--muted-foreground:#a1a1aa;--border:#27272a;--line:#313135;--accent:#f4f4f5;--accent-foreground:#18181b;--danger:#dc2626;--success:#22c55e;background:#09090b;font-family:Inter,Noto Sans SC,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:var(--background);min-width:1120px;margin:0}button,input{font:inherit}button{color:inherit;cursor:pointer;background:0 0;border:0}.app-shell{grid-template-columns:300px minmax(560px,1fr) 360px;height:100vh;display:grid;overflow:hidden}.level-sidebar,.workbench,.info-sidebar{min-height:0}.level-sidebar{border-right:1px solid var(--border);flex-direction:column;min-width:0;display:flex}.sidebar-header{border-bottom:1px solid var(--border);padding:1.25rem}.sidebar-header h1,.workbench-header h2,.info-section h2,.info-section h3,.section-title-row h3{letter-spacing:-.025em;margin:0;line-height:1.2}.sidebar-header h1{font-size:1.35rem}.workbench-header h2,.info-section h2{font-size:1.2rem}.info-section h3,.section-title-row h3{font-size:.95rem}.eyebrow{color:var(--muted-foreground);letter-spacing:.08em;text-transform:uppercase;margin:0 0 .45rem;font-size:.72rem;font-weight:600}.muted,small{color:var(--muted-foreground)}.level-list{flex-direction:column;flex:1;padding:.5rem;display:flex;overflow:auto}.level-item{text-align:left;border-radius:4px;grid-template-columns:auto 1fr;align-items:center;gap:.75rem;min-height:3.5rem;padding:.65rem .75rem;display:grid}.level-item:hover{background:#1d1d20}.level-item.active{background:var(--accent);color:var(--accent-foreground)}.level-item.active small{color:#54545f}.level-item span:last-child{flex-direction:column;gap:.15rem;min-width:0;display:flex}.level-number{background:var(--muted);color:var(--muted-foreground);border-radius:.45rem;justify-content:center;align-items:center;width:2rem;height:2rem;font-size:.78rem;font-weight:700;display:inline-flex}.level-item.active .level-number{color:#fafafa;background:#18181b}.workbench{grid-template-rows:auto minmax(260px,1fr) auto 320px;min-width:0;display:grid}.workbench-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:1.25rem;display:flex}.header-actions{align-items:center;gap:.5rem;display:flex}.header-actions button,.terminal-input button,.command-list button{border:1px solid var(--border);color:var(--foreground);border-radius:.5rem;min-height:2.25rem;padding:.45rem .75rem}.header-actions button:hover,.terminal-input button:hover,.command-list button:hover{background:var(--muted)}.win-badge{color:#3bdd77;border:1px solid #22c55e59;border-radius:999px;padding:.35rem .6rem;font-size:.75rem;font-weight:600}.graph-stage{border-bottom:1px solid var(--border);grid-template-rows:auto 1fr;min-height:0;padding:1.25rem;display:grid;overflow:hidden}.section-title-row{justify-content:space-between;align-items:center;margin-bottom:1rem;display:flex}.section-title-row span{color:var(--muted-foreground);font-size:.875rem}.empty-state{border:1px dashed var(--line);color:var(--muted-foreground);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:.35rem;height:calc(100% - 2rem);min-height:220px;display:flex}.empty-state p{color:var(--foreground);margin:0}.commit-lane{margin:0;padding:0 0 0 .15rem;list-style:none;position:relative}.commit-lane:before{background:var(--border);content:"";width:1px;position:absolute;top:1.2rem;bottom:1.2rem;left:.62rem}.commit-lane li{align-items:center;gap:.75rem;margin:.85rem 0;display:flex;position:relative}.commit-lane li>div{border:1px solid var(--border);flex-direction:column;gap:.3rem;min-width:220px;padding:.7rem .8rem;display:flex}.dot{background:var(--foreground);border:3px solid var(--background);z-index:1;border-radius:999px;flex:none;width:18px;height:18px;display:inline-block;position:relative}.terminal-stage{min-height:0;overflow:hidden}.terminal-input{border-bottom:1px solid var(--border);grid-template-columns:auto 1fr auto;align-items:center;gap:.75rem;padding:.75rem 1.25rem;display:grid}.terminal-input span{color:var(--muted-foreground);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace}.terminal-input input{color:var(--foreground);background:0 0;border:0;outline:0;min-width:0}.terminal-input input::placeholder{color:var(--muted-foreground)}.terminal-log{flex-direction:column;gap:.8rem;min-height:0;padding:1rem 1.25rem;display:flex;overflow:auto}.terminal-entry{border-left:2px solid var(--border);padding-left:.75rem}.terminal-entry.error{border-left-color:var(--danger)}.terminal-command{color:var(--foreground);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:.86rem}.terminal-entry pre{color:var(--muted-foreground);white-space:pre-wrap;margin:.35rem 0 0;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:.82rem;line-height:1.6}.info-sidebar{border-left:1px solid var(--border);min-width:0;overflow:auto}.canvas-wrap{border:1px solid var(--border);min-height:0;position:relative;overflow:hidden}.commit-canvas{width:100%;height:100%;display:block}.xterm-container{width:100%;height:100%;padding:.75rem 1rem}.xterm-container .xterm{height:100%}.account-bar{border-top:1px solid var(--border);grid-template-columns:auto 1fr auto;align-items:center;gap:.75rem;padding:.85rem;display:grid}.avatar{background:var(--accent);color:var(--accent-foreground);border-radius:999px;justify-content:center;align-items:center;width:2.25rem;height:2.25rem;font-weight:800;display:flex}.account-meta{flex-direction:column;gap:.1rem;min-width:0;display:flex}.account-meta strong,.account-meta small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.account-bar button{border:1px solid var(--border);color:var(--foreground);border-radius:.5rem;min-height:2rem;padding:.25rem .55rem}.account-bar button:hover{background:var(--muted)}.info-section{border-bottom:1px solid var(--border);padding:1.25rem}.info-section p{color:var(--muted-foreground);line-height:1.7}.message-line{border-left:2px solid var(--border);color:var(--foreground);margin-top:1rem;padding-left:.75rem;font-size:.875rem;line-height:1.6}.plain-list,.status-list{margin:1rem 0 0;padding:0}.plain-list{list-style:none}.plain-list.ordered{counter-reset:step}.plain-list.ordered li{counter-increment:step;grid-template-columns:auto 1fr;gap:.6rem;display:grid}.plain-list.ordered li:before{color:var(--muted-foreground);content:counter(step) ".";font-variant-numeric:tabular-nums}.plain-list li,.status-list li{border-bottom:1px solid var(--border);color:var(--foreground);padding:.65rem 0;font-size:.875rem;line-height:1.6}.plain-list li:first-child,.status-list li:first-child{padding-top:0}.plain-list li:last-child,.status-list li:last-child{border-bottom:0;padding-bottom:0}.command-list{flex-direction:column;gap:.5rem;margin-top:1rem;display:flex}.command-list button{text-align:left;justify-content:flex-start;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace}.status-list{list-style:none}.status-list li{align-items:center;gap:.6rem;display:flex}code{background:var(--muted);color:var(--foreground);border-radius:.3rem;padding:.1rem .35rem;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:.78rem}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:var(--border);border:3px solid var(--background);border-radius:999px}@media (max-width:1180px){body{min-width:0}.app-shell{grid-template-columns:240px minmax(420px,1fr) 300px}}.login-screen{justify-content:center;align-items:center;min-height:100vh;display:flex}.login-box{border:1px solid var(--border);flex-direction:column;gap:1rem;width:min(420px,100vw - 2rem);padding:2rem;display:flex}.login-box h1,.login-box p{margin:0}.login-box p:not(.eyebrow){color:var(--muted-foreground);line-height:1.7}.login-box input{border:1px solid var(--border);color:var(--foreground);background:0 0;outline:0;min-height:2.75rem;padding:0 .8rem}.login-box input:focus{border-color:var(--foreground)}.login-box button{border:1px solid var(--border);justify-content:center;min-height:2.75rem}.status-badge{white-space:nowrap;border:1px solid #0000;border-radius:999px}.status-badge.untracked{color:#f7b645;background:#f59f0a24}.status-badge.staged{color:#48e080;background:#21c45d24}.status-badge.modified{color:#6a95f1;background:#2463eb24}.status-badge.clean{color:var(--muted-foreground);background:#27272a}.status-badge.unstaged{color:#f37272;background:#ef434324}.level-item em{color:#48e080;font-size:.75rem;font-style:normal;font-weight:600}.level-item.active em{color:#188c42}.level-group{flex-direction:column;gap:.25rem;margin-bottom:.9rem;display:flex}.level-group h2{color:var(--muted-foreground);letter-spacing:.08em;text-transform:uppercase;margin:.65rem 0 .35rem;padding:0 .75rem;font-size:.72rem;font-weight:700}.level-item.active{border-radius:4px}:root[data-theme=light],[data-theme=light]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--background:#fff;--foreground:#09090b;--muted:#f4f4f5;--muted-foreground:#71717a;--border:#e4e4e7;--line:#dfdfe2;--accent:#18181b;--accent-foreground:#fafafa}[data-theme=light] .canvas-wrap,[data-theme=light] .xterm-container{filter:invert()hue-rotate(180deg)}.file-link{color:var(--foreground);text-align:left;-webkit-text-decoration:underline dotted var(--border);text-decoration:underline dotted var(--border);text-underline-offset:4px;padding:0}.file-link:hover{color:var(--muted-foreground)}.modal-backdrop{z-index:20;background:#00000094;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.modal{background:var(--background);border:1px solid var(--border);color:var(--foreground);width:min(720px,100vw - 3rem);max-height:min(720px,100vh - 3rem);padding:1rem;overflow:auto}.modal header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;margin:-1rem -1rem 1rem;padding:1rem;display:flex}.modal h2{margin:0;font-size:1rem}.modal button,.modal input,.modal select{border:1px solid var(--border);color:var(--foreground);min-height:2.4rem;padding:.45rem .7rem}.modal input,.modal select{background:0 0}.file-preview{background:var(--muted);border:1px solid var(--border);white-space:pre-wrap;min-height:240px;margin:0;padding:1rem;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;line-height:1.7;overflow:auto}.settings-modal{flex-direction:column;gap:1rem;width:min(460px,100vw - 3rem);display:flex}.settings-modal label{flex-direction:column;gap:.45rem;display:flex}.settings-modal label>span{color:var(--muted-foreground);font-size:.85rem}.settings-modal .inline-setting{flex-direction:row;align-items:center}.settings-modal .inline-setting input{min-height:auto}.editor-modal{width:min(980px,100vw - 3rem);max-width:min(980px,100vw - 3rem);height:min(760px,100vh - 3rem)}.modal-actions{gap:.5rem;display:flex}.codemirror-host{border:1px solid var(--border);height:calc(100% - 4.5rem);overflow:hidden}.codemirror-host .cm-editor{height:100%}.codemirror-host .cm-scroller{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace}.canvas-wrap{position:relative}.canvas-menu{background:var(--background);border:1px solid var(--border);z-index:8;flex-direction:column;min-width:180px;padding:.35rem;display:flex;position:absolute;box-shadow:0 18px 50px #00000052}.canvas-menu button{color:var(--foreground);text-align:left;border-radius:4px;padding:.55rem .65rem}.canvas-menu button:hover{background:var(--muted)}.editor-statusbar{border:1px solid var(--border);color:var(--muted-foreground);border-top:0;justify-content:flex-end;align-items:center;gap:1rem;min-height:2rem;padding:0 .75rem;font-size:.78rem;display:flex}.editor-modal .codemirror-host{height:calc(100% - 6.5rem)}.hint-header{justify-content:space-between;align-items:center;gap:1rem;display:flex}.hint-header button{border:1px solid var(--border);color:var(--foreground);border-radius:4px;min-height:2rem;padding:.25rem .6rem}.hint-header button:hover{background:var(--muted)}.challenge-panel dl{gap:.65rem;margin:1rem 0 0;display:grid}.challenge-panel dl div{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding-bottom:.65rem;display:flex}.challenge-panel dl div:last-child{border-bottom:0;padding-bottom:0}.challenge-panel dt{color:var(--muted-foreground)}.challenge-panel dd{margin:0;font-weight:700}.lesson-assist{border-bottom:1px solid var(--border);grid-template-columns:1fr 1fr;min-height:72px;display:grid}.assist-block{padding:.85rem 1.25rem}.assist-block+.assist-block{border-left:1px solid var(--border)}.assist-block p{margin:.55rem 0 0}.compact-list{margin-top:.65rem}.compact-list li{padding:.35rem 0}.inline-commands{flex-flow:wrap;gap:.5rem;display:flex}.inline-commands button{width:auto}.workbench{grid-template-rows:auto minmax(220px, 1fr) 6px var(--terminal-height,320px)}.title-row{align-items:center;gap:.75rem;display:flex}.difficulty{border:1px solid var(--border);border-radius:999px;align-items:center;gap:.2rem;padding:.18rem .5rem;display:inline-flex}.difficulty i{background:var(--border);border-radius:999px;width:.24rem;height:.55rem;display:block}.difficulty i:nth-child(2){height:.8rem}.difficulty i:nth-child(3){height:1.05rem}.difficulty-1 i:first-child,.difficulty-2 i:nth-child(-n+2),.difficulty-3 i{background:var(--success)}.difficulty b{color:var(--muted-foreground);margin-left:.25rem;font-size:.72rem;font-weight:600}.header-stats{color:var(--muted-foreground);align-items:center;gap:.65rem;margin-left:auto;font-size:.82rem;display:flex}.header-stats span{border:1px solid var(--border);border-radius:999px;padding:.28rem .55rem}.terminal-resizer{border-bottom:1px solid var(--border);cursor:row-resize;position:relative}.terminal-resizer:before{background:var(--border);content:"";width:52px;height:2px;position:absolute;top:2px;left:50%;transform:translate(-50%)}.modal{transform-origin:50%;border-radius:10px;animation:.14s ease-out modal-in}@keyframes modal-in{0%{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}}.advance-toast{background:var(--background);border:1px solid var(--border);z-index:15;border-radius:10px;flex-direction:column;gap:.25rem;padding:.9rem 1rem;animation:.14s ease-out modal-in;display:flex;position:fixed;bottom:1rem;right:1rem;box-shadow:0 18px 50px #00000047}.advance-toast span{color:var(--muted-foreground);font-size:.85rem}
