:root{--bg: #0b0c0e;--surface: #17181c;--surface-2: #1e2024;--border: #2a2c32;--border-strong: #383a42;--text: #e7e7ea;--muted: #92939c;--muted-2: #616269;--accent: #2f9d8f;--accent-hover: #3db3a4;--accent-text: #5cc9ba;--accent-soft: rgba(47, 157, 143, .14);--accent-soft-strong: rgba(47, 157, 143, .24);--green: #3fb950;--yellow: #d29922;--red: #f85149;--green-soft: rgba(63, 185, 80, .14);--yellow-soft: rgba(210, 153, 34, .14);--red-soft: rgba(248, 81, 73, .14);--muted-soft: rgba(146, 147, 156, .12);--radius-sm: 6px;--radius: 10px;--radius-lg: 16px;--shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 1px 1px rgba(0, 0, 0, .2);--shadow-md: 0 6px 20px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .25);--shadow-lg: 0 24px 60px rgba(0, 0, 0, .5), 0 8px 20px rgba(0, 0, 0, .35);--font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--font-mono: "JetBrains Mono", "Cascadia Code", "Fira Code", ui-monospace, monospace}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html{scroll-behavior:smooth}body{font-family:var(--font-sans);font-size:14px;font-variant-numeric:tabular-nums;background:var(--bg);color:var(--text);min-height:100vh;-webkit-font-smoothing:antialiased}h1,h2,h3{text-wrap:balance;letter-spacing:-.01em}code{font-family:var(--font-mono)}:focus-visible{outline:2px solid var(--accent-text);outline-offset:2px;border-radius:4px}.skip-link{position:fixed;top:-48px;left:12px;z-index:1000;background:var(--accent);color:#06110f;font-weight:700;font-size:13px;padding:10px 16px;border-radius:var(--radius-sm);transition:top .15s ease}.skip-link:focus{top:12px}.app-shell{display:flex;min-height:100vh}.sidebar{width:220px;flex-shrink:0;background:var(--surface);border-right:1px solid var(--border);display:flex;flex-direction:column;padding:20px 0}.sidebar-brand{font-size:16px;font-weight:800;letter-spacing:-.01em;color:var(--text);padding:0 20px 22px}.sidebar-brand span{color:var(--accent-text)}.sidebar-nav{display:flex;flex-direction:column;gap:2px;padding:0 12px}.sidebar-link{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:var(--radius-sm);color:var(--muted);text-decoration:none;font-size:13px;font-weight:500;transition:background .15s ease,color .15s ease,transform .15s ease}.sidebar-link:hover{background:var(--surface-2);color:var(--text)}.sidebar-link:active{transform:scale(.98)}.sidebar-link.active{background:var(--accent-soft);color:var(--accent-text);font-weight:600}.sidebar-link-icon{font-size:15px;width:18px;text-align:center}.sidebar-tag{margin:auto 20px 0;padding:4px 10px;border-radius:20px;background:var(--accent-soft);color:var(--accent-text);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;text-align:center}.app-shell-main{flex:1;min-width:0;display:flex;flex-direction:column}.topbar{display:flex;align-items:center;justify-content:space-between;padding:0 24px;height:56px;border-bottom:1px solid var(--border);position:sticky;top:0;background:var(--bg);z-index:10;flex-shrink:0}.topbar-right{display:flex;align-items:center;gap:16px;color:var(--muted);font-size:13px}.topbar-right em{color:var(--text);font-style:normal;font-weight:600}.app-shell-content{flex:1;max-width:1200px;width:100%;margin:0 auto;padding:32px 24px 56px}@media (max-width: 720px){.app-shell{flex-direction:column}.sidebar{width:100%;flex-direction:row;align-items:center;padding:12px;overflow-x:auto}.sidebar-brand{padding:0 16px 0 0}.sidebar-nav{flex-direction:row;padding:0}.sidebar-tag{display:none}}.page-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px;gap:16px}.page-title{font-size:21px;font-weight:700;letter-spacing:-.015em}.btn{display:inline-flex;align-items:center;gap:6px;padding:7px 14px;border-radius:var(--radius-sm);border:1px solid transparent;font-size:13px;font-weight:600;font-family:inherit;cursor:pointer;transition:background .15s ease,border-color .15s ease,color .15s ease,transform .1s ease,box-shadow .15s ease;white-space:nowrap;background:transparent;color:var(--text)}.btn:disabled{opacity:.45;cursor:not-allowed}.btn:not(:disabled):active{transform:translateY(1px) scale(.98)}.btn-primary{background:var(--accent);color:#06110f;border-color:var(--accent)}.btn-primary:not(:disabled):hover{background:var(--accent-hover);border-color:var(--accent-hover);box-shadow:0 0 0 3px var(--accent-soft)}.btn-outline{border-color:var(--border-strong);color:var(--text)}.btn-outline:not(:disabled):hover{border-color:var(--accent-text);color:var(--accent-text);background:var(--accent-soft)}.btn-danger{color:var(--red);border-color:var(--border-strong)}.btn-danger:not(:disabled):hover{border-color:var(--red);background:var(--red-soft)}.btn-success{color:var(--green);border-color:var(--border-strong)}.btn-success:not(:disabled):hover{border-color:var(--green);background:var(--green-soft)}.btn-sm{padding:5px 10px;font-size:12px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius)}.card-header{padding:16px 20px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;font-weight:700}.card-body{padding:24px}.badge{display:inline-block;padding:2px 9px;border-radius:20px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.4px}.badge-running{background:var(--green-soft);color:var(--green)}.badge-starting{background:var(--yellow-soft);color:var(--yellow)}.badge-stopped{background:var(--red-soft);color:var(--red)}.badge-deleted{background:var(--muted-soft);color:var(--muted)}.table{width:100%;border-collapse:collapse}.table th{padding:11px 16px;text-align:left;font-size:11px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.5px;border-bottom:1px solid var(--border)}.table td{padding:14px 16px;border-bottom:1px solid var(--border);vertical-align:middle}.table tr:last-child td{border-bottom:none}.table tr{transition:background .12s ease}.table tr:hover td{background:var(--surface-2)}.form-group{margin-bottom:16px}.form-label{display:block;margin-bottom:6px;font-size:13px;font-weight:600;color:var(--text)}.form-control{width:100%;padding:8px 12px;background:var(--bg);border:1px solid var(--border-strong);border-radius:var(--radius-sm);color:var(--text);font-size:14px;font-family:inherit;outline:none;transition:border-color .15s ease,box-shadow .15s ease}.form-control:hover{border-color:var(--muted-2)}.form-control:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}.form-control::placeholder{color:var(--muted-2)}select.form-control option{background:var(--surface)}.form-error{color:var(--red);font-size:12px;margin-top:6px}.login-wrap{display:flex;align-items:center;justify-content:center;min-height:100dvh;padding:24px;background:radial-gradient(ellipse 900px 500px at 15% -10%,rgba(47,157,143,.1),transparent 60%),radial-gradient(ellipse 700px 500px at 100% 110%,rgba(47,157,143,.06),transparent 60%),var(--bg)}.login-card{width:100%;max-width:380px;box-shadow:var(--shadow-lg)}.login-title{font-size:24px;font-weight:800;letter-spacing:-.02em;margin-bottom:4px}.login-title span{color:var(--accent-text)}.login-sub{color:var(--muted);font-size:13px;margin-bottom:28px}.alert{display:flex;align-items:flex-start;gap:8px;padding:10px 14px;border-radius:var(--radius-sm);font-size:13px;line-height:1.4;margin-bottom:16px}.alert-error{background:var(--red-soft);border:1px solid rgba(248,81,73,.35);color:#ffb3ae}.alert-success{background:var(--green-soft);border:1px solid rgba(63,185,80,.35);color:#9fe6a8}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#060708ad;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:100;display:flex;align-items:center;justify-content:center;padding:20px;animation:fade-in .15s ease}.modal{background:var(--surface-2);border:1px solid var(--border-strong);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);width:100%;max-width:420px;padding:24px;max-height:calc(100dvh - 40px);overflow-y:auto;animation:modal-in .18s cubic-bezier(.2,.8,.2,1)}.modal-title{font-size:17px;font-weight:700;letter-spacing:-.01em;margin-bottom:20px}.modal-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes modal-in{0%{opacity:0;transform:translateY(6px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.ttl{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.ttl.warn{color:var(--yellow)}.ttl.crit{color:var(--red);font-weight:700}.actions{display:flex;gap:6px;flex-wrap:wrap}.empty{text-align:center;padding:64px 24px;color:var(--muted)}.empty-icon{font-size:30px;margin:0 auto 14px;width:56px;height:56px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-lg);background:var(--surface-2)}.empty p{margin-bottom:16px;max-width:40ch;margin-left:auto;margin-right:auto}@keyframes spin{to{transform:rotate(360deg)}}.spinner{width:18px;height:18px;border:2px solid var(--border-strong);border-top-color:var(--accent);border-radius:50%;animation:spin .7s linear infinite;display:inline-block}@keyframes skeleton-pulse{0%,to{opacity:.55}50%{opacity:1}}.skeleton-row td{padding:14px 16px;border-bottom:1px solid var(--border)}.skeleton-block{height:14px;border-radius:4px;background:var(--surface-2);animation:skeleton-pulse 1.4s ease-in-out infinite}.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px}.stat-card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow-sm);padding:20px;display:flex;align-items:center;gap:14px;transition:box-shadow .2s ease,transform .2s ease}.stat-card:hover{box-shadow:var(--shadow-md);transform:translateY(-1px)}.stat-card-icon{font-size:20px;line-height:1;width:42px;height:42px;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:var(--accent-soft);border-radius:var(--radius-sm)}.stat-card-value{font-size:24px;font-weight:800;letter-spacing:-.02em;line-height:1.2}.stat-card-label{font-size:12px;color:var(--muted);margin-top:2px}.stat-card-sub{font-size:11px;color:var(--muted-2);margin-top:2px}.host-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}.host-card{background:var(--surface);border:1px solid transparent;border-radius:var(--radius);box-shadow:var(--shadow-sm);padding:18px 20px;transition:box-shadow .2s ease,border-color .2s ease}.host-card:hover{border-color:var(--border-strong);box-shadow:var(--shadow-md)}.host-card-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px;gap:8px}.host-card-name{font-weight:700;font-size:14px}.host-card-addr{font-size:12px;color:var(--muted);margin-bottom:16px;font-family:var(--font-mono)}.host-card-metric{margin-bottom:10px}.host-card-metric-label{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin-bottom:4px;font-variant-numeric:tabular-nums}.meter{height:6px;background:var(--bg);border:1px solid var(--border);border-radius:10px;overflow:hidden}.meter-fill{height:100%;background:var(--accent);transition:width .3s ease}.meter-fill.warn{background:var(--yellow)}.meter-fill.crit{background:var(--red)}.host-card-specs{display:flex;gap:10px;flex-wrap:wrap;font-size:11px;color:var(--muted);margin-top:12px;padding-top:12px;border-top:1px solid var(--border)}.host-card-labels{margin-top:10px}.host-card-footer{font-size:12px;color:var(--muted);margin-top:12px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.checkbox-label{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--text);margin-bottom:4px;cursor:pointer}.term-page{display:flex;flex-direction:column;height:100dvh;overflow:hidden;background:var(--bg)}.term-pane{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;background:var(--bg)}.term-bar{display:flex;align-items:center;justify-content:space-between;padding:0 16px;height:44px;background:var(--surface);border-bottom:1px solid var(--border);flex-shrink:0}.term-bar-left{display:flex;align-items:center;gap:10px;font-size:13px}.conn-dot{width:8px;height:8px;border-radius:50%;background:var(--yellow);flex-shrink:0;transition:background .2s ease}.conn-dot.connected{background:var(--green);box-shadow:0 0 0 3px var(--green-soft)}.conn-dot.disconnected{background:var(--red)}.xterm-pane{flex:1;overflow:hidden;padding:6px}.course-view-page{display:flex;flex-direction:column;margin:-32px -24px -56px;height:calc(100dvh - 56px);overflow:hidden}.course-view-topbar{flex:0 0 auto;display:flex;align-items:center;gap:16px;padding:10px 20px;border-bottom:1px solid var(--border);background:var(--surface)}.course-view-topbar-title{display:flex;flex-direction:column;min-width:0}.course-view-topbar-title strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.course-view-topbar-step{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.course-view-topbar-timer{margin-left:auto;display:flex;flex-direction:column;align-items:center;padding:4px 16px;border-radius:var(--radius-sm);background:var(--surface-2);flex:0 0 auto}.course-view-timer-label{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}.course-view{display:flex;flex:1 1 auto;min-height:0;overflow:hidden}.course-view-theory{min-width:0;overflow-y:auto;padding:24px}.course-view-divider{flex:0 0 5px;cursor:col-resize;background:var(--border);transition:background .15s}.course-view-divider:hover,.course-view-divider:active{background:var(--accent)}.course-view-lab{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;background:var(--bg);position:relative}.course-view-checklist{display:flex;flex-direction:column;gap:4px;margin-bottom:20px}.course-view-checklist-item{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid transparent;border-radius:var(--radius-sm);background:none;text-align:left;cursor:pointer;font-size:13px;color:var(--text);transition:background .15s,border-color .15s}.course-view-checklist-item:hover{background:var(--surface-2)}.course-view-checklist-item.active{background:var(--surface-2);border-color:var(--border);font-weight:600}.course-view-checklist-num{flex:0 0 auto;width:22px;height:22px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--surface-2);font-size:11px;color:var(--muted)}.course-view-checklist-item.active .course-view-checklist-num{background:var(--accent);color:#fff}.course-view-checklist-item.visited .course-view-checklist-num{background:var(--border-strong);color:var(--text)}.course-view-checklist-item.completed .course-view-checklist-num{background:var(--green);color:#fff}.course-view-checklist-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.course-view-check{display:flex;flex-direction:column;gap:8px;padding:12px 16px;border-bottom:1px solid var(--border);background:var(--surface)}.course-view-check-output{max-height:160px;overflow:auto;background:var(--surface-2);border-radius:var(--radius-sm);padding:10px 12px;font-family:var(--font-mono);font-size:12px;white-space:pre-wrap;word-break:break-word;color:var(--muted)}.course-view-markdown{padding:20px 24px;line-height:1.65}.course-view-markdown :is(h1,h2,h3){margin:18px 0 10px}.course-view-markdown :is(h1,h2,h3):first-child{margin-top:0}.course-view-markdown p{margin-bottom:12px}.course-view-markdown code{background:var(--surface-2);padding:2px 5px;border-radius:4px;font-size:13px;font-family:var(--font-mono)}.course-view-markdown pre{background:var(--surface-2);padding:12px 14px;border-radius:var(--radius-sm);overflow-x:auto;margin-bottom:12px}.course-view-markdown pre code{background:none;padding:0}.course-view-markdown ul,.course-view-markdown ol{margin:0 0 12px 20px}@media (max-width: 900px){.course-view{flex-direction:column;height:auto;overflow:visible}.course-view-theory{flex-basis:auto!important}.course-view-divider{display:none}.course-view-lab{border-left:none;border-top:1px solid var(--border);min-height:480px;flex-basis:auto!important}}.toast-host{position:fixed;bottom:20px;right:20px;z-index:200;display:flex;flex-direction:column;gap:8px;max-width:360px}.toast{background:var(--surface-2);border:1px solid var(--border-strong);border-left:3px solid var(--muted);border-radius:var(--radius-sm);box-shadow:var(--shadow-md);padding:12px 14px;font-size:13px;line-height:1.4;color:var(--text);animation:toast-in .18s ease}.toast-error{border-left-color:var(--red)}.toast-success{border-left-color:var(--green)}@keyframes toast-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}/**
 * 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}
