/**
 * 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-base: #070b14;--bg-surface: #0d1117;--bg-card: rgba(255,255,255,.035);--bg-card-hover: rgba(255,255,255,.065);--bg-input: rgba(255,255,255,.05);--border: rgba(255,255,255,.07);--border-accent: rgba(99,102,241,.65);--border-hover: rgba(255,255,255,.2);--accent: #6366f1;--accent-dim: rgba(99,102,241,.15);--accent-glow: rgba(99,102,241,.4);--accent-hover: #818cf8;--green: #10b981;--green-dim: rgba(16,185,129,.15);--yellow: #f59e0b;--yellow-dim: rgba(245,158,11,.15);--red: #ef4444;--red-dim: rgba(239,68,68,.15);--slate: #64748b;--slate-dim: rgba(100,116,139,.15);--text: #e2e8f0;--text-muted: #94a3b8;--text-dim: #475569;--radius-sm: 6px;--radius: 10px;--radius-lg: 16px;--radius-xl: 24px;--blur: blur(18px);--shadow: 0 4px 32px rgba(0,0,0,.5);--shadow-glow: 0 0 40px rgba(99,102,241,.2);--transition: .2s cubic-bezier(.4,0,.2,1)}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html,body,#root{height:100%;font-family:Inter,system-ui,sans-serif;background:var(--bg-base);color:var(--text);-webkit-font-smoothing:antialiased}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#ffffff1a;border-radius:99px}::-webkit-scrollbar-thumb:hover{background:#ffffff2e}h1{font-size:2.8rem;font-weight:800;letter-spacing:-.03em;line-height:1.1}h2{font-size:1.6rem;font-weight:700;letter-spacing:-.02em}h3{font-size:1.1rem;font-weight:600}p{line-height:1.6;color:var(--text-muted)}code,pre{font-family:JetBrains Mono,monospace}.container{max-width:1160px;margin:0 auto;padding:0 24px}.container-wide{max-width:96%;margin:0 auto;padding:0 24px}.flex{display:flex}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-sm{gap:8px}.gap-md{gap:16px}.gap-lg{gap:24px}.flex-center{display:flex;align-items:center;justify-content:center}.h-full{height:100%}.text-muted{color:var(--text-muted)}.card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-lg);backdrop-filter:var(--blur);-webkit-backdrop-filter:var(--blur);transition:border-color var(--transition),background var(--transition)}.card:hover{border-color:var(--border-hover);background:var(--bg-card-hover)}.btn{display:inline-flex;align-items:center;gap:8px;padding:10px 20px;border-radius:var(--radius);font-size:.875rem;font-weight:600;cursor:pointer;border:none;transition:all var(--transition);white-space:nowrap;font-family:inherit}.btn-primary{background:var(--accent);color:#fff;box-shadow:0 0 20px var(--accent-glow)}.btn-primary:hover{background:var(--accent-hover);box-shadow:0 0 30px var(--accent-glow);transform:translateY(-1px)}.btn-primary:active{transform:translateY(0)}.btn-ghost{background:transparent;color:var(--text-muted);border:1px solid var(--border)}.btn-ghost:hover{border-color:var(--border-hover);color:var(--text);background:var(--bg-card-hover)}.btn-ide{background:#0ea5e929;color:#7dd3fc;border:1px solid rgba(125,211,252,.38);box-shadow:0 0 18px #0ea5e91f}.btn-ide:hover{background:#0ea5e942;color:#e0f2fe;border-color:#7dd3fca6;box-shadow:0 0 24px #0ea5e938;transform:translateY(-1px)}.btn-danger{background:var(--red-dim);color:var(--red);border:1px solid rgba(239,68,68,.2)}.btn-danger:hover{background:#ef444440}.btn-sm{padding:6px 14px;font-size:.8rem;border-radius:var(--radius-sm)}.btn:disabled{opacity:.4;cursor:not-allowed;pointer-events:none}.badge{display:inline-flex;align-items:center;gap:6px;padding:4px 12px;border-radius:99px;font-size:.75rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase}.badge-running{background:var(--green-dim);color:var(--green);border:1px solid rgba(16,185,129,.25)}.badge-spawning{background:var(--yellow-dim);color:var(--yellow);border:1px solid rgba(245,158,11,.25)}.badge-error{background:var(--red-dim);color:var(--red);border:1px solid rgba(239,68,68,.25)}.badge-idle{background:var(--slate-dim);color:var(--slate);border:1px solid rgba(100,116,139,.25)}.badge-stopping{background:var(--yellow-dim);color:var(--yellow);border:1px solid rgba(245,158,11,.25)}.dot{width:7px;height:7px;border-radius:50%;background:currentColor;flex-shrink:0}.dot-pulse{animation:pulse 1.6s ease-in-out infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.3}}.input{background:var(--bg-input);border:1px solid var(--border);border-radius:var(--radius);color:var(--text);padding:10px 14px;font-size:.9rem;font-family:inherit;width:100%;transition:border-color var(--transition);outline:none}.input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-dim)}.input::placeholder{color:var(--text-dim)}.code-textarea{font-family:JetBrains Mono,monospace;font-size:.85rem;line-height:1.8;resize:vertical;min-height:500px;background:#0d1117;-moz-tab-size:2;tab-size:2}.divider{border:none;border-top:1px solid var(--border);margin:24px 0}.spinner{width:20px;height:20px;border:2px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:spin .7s linear infinite;flex-shrink:0}@keyframes spin{to{transform:rotate(360deg)}}.navbar{position:sticky;top:0;z-index:100;padding:0 24px;background:#070b14cc;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-bottom:1px solid var(--border);height:60px;display:flex;align-items:center;justify-content:space-between}.navbar-logo{font-size:1.1rem;font-weight:800;letter-spacing:-.03em;background:linear-gradient(135deg,var(--accent) 0%,#a78bfa 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;text-decoration:none}.hero{padding:80px 24px 60px;text-align:center;position:relative;overflow:hidden}.hero-compact{padding:28px 24px 16px}.hero:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:radial-gradient(ellipse 80% 50% at 50% -10%,rgba(99,102,241,.18) 0%,transparent 70%);pointer-events:none}.hero-title{background:linear-gradient(135deg,#fff 30%,#ffffff8c);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;margin-bottom:16px}.hero-sub{font-size:1.1rem;color:var(--text-muted);margin-bottom:32px;max-width:540px;margin-inline:auto}.container-grid{display:flex;flex-wrap:wrap;gap:10px;padding:0 24px 20px}.container-card{padding:10px 14px;position:relative;cursor:pointer;display:flex;align-items:center;gap:12px;border-radius:var(--radius);border:1px solid var(--border);border-left:3px solid var(--accent);background:var(--bg-card);transition:background var(--transition),border-color var(--transition);min-width:220px;flex:1;max-width:340px}.container-card:hover{background:var(--bg-card-hover);border-color:#6366f166}.container-card-icon{width:32px;height:32px;border-radius:8px;background:var(--accent-dim);display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--accent)}.container-card-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.container-hostname{font-size:.875rem;font-weight:700;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.service-badge{font-size:.65rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--accent);display:flex;align-items:center;gap:3px}.container-meta{font-family:JetBrains Mono,monospace;font-size:.68rem;color:var(--text-dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:4px}.container-card-actions{display:flex;gap:5px;flex-shrink:0}.action-btn{min-width:62px;justify-content:center;padding:6px 10px;font-size:.75rem;gap:5px}.terminal-panel{margin:0 24px 24px;border-radius:var(--radius-lg);border:1px solid var(--border);overflow:hidden;background:#0a0a0a;box-shadow:var(--shadow);display:flex;flex-direction:column;flex:1;min-height:400px}.terminal-panel-embedded{margin:0;min-height:100%;height:100%;border:none;border-radius:0;box-shadow:none}.terminal-panel-embedded .terminal-body{min-height:0}.terminal-tabs{display:flex;align-items:center;background:#111;border-bottom:1px solid var(--border);padding:0 8px;gap:4px;overflow-x:auto}.terminal-tab{display:flex;align-items:center;gap:8px;padding:10px 14px;font-size:.8rem;font-weight:500;color:var(--text-muted);cursor:pointer;white-space:nowrap;border-bottom:2px solid transparent;transition:all var(--transition);background:transparent;border-top:none;border-left:none;border-right:none;font-family:inherit}.terminal-tab.active{color:var(--text);border-bottom-color:var(--accent)}.terminal-tab:hover:not(.active){color:var(--text)}.terminal-tab-close{opacity:.4;font-size:.75rem;line-height:1;background:none;border:none;color:inherit;cursor:pointer;padding:2px;border-radius:3px}.terminal-tab-close:hover{opacity:1;background:#ffffff1a}.terminal-body{padding:12px;position:relative;flex:1;display:flex;flex-direction:column}.xterm-container{flex:1;height:100%;min-height:250px}.lab-workspace{padding:16px 24px 28px;display:flex;flex-direction:column;gap:16px}.lab-running-overview{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.9fr);gap:16px}.lab-running-hero-card,.lab-running-meta-card{padding:20px 22px}.lab-running-eyebrow,.admin-page-eyebrow{font-size:.74rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--accent);margin-bottom:10px}.lab-running-hero-copy h2,.admin-page-title{margin-bottom:8px}.lab-running-pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.lab-running-meta-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.lab-running-meta-item{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border-radius:12px;border:1px solid var(--border);background:#ffffff08}.lab-running-meta-item span{color:var(--text-dim);font-size:.74rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.lab-running-meta-item strong{color:var(--text);font-size:.92rem}.lab-workspace-shell-wrap{position:relative}.lab-workspace-shell{overflow:hidden}.lab-workspace-shell.is-docked{position:sticky;top:72px;z-index:20}.lab-workspace-shell-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:16px 18px;border-bottom:1px solid var(--border)}.lab-workspace-shell-header h3{margin-bottom:4px}.lab-workspace-shell-header p{font-size:.86rem}.lab-workspace-switcher{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.lab-workspace-tab-btn{border:1px solid var(--border);background:#ffffff08;color:var(--text-muted);padding:8px 12px;border-radius:999px;font-family:inherit;font-size:.82rem;font-weight:600;cursor:pointer;transition:border-color var(--transition),background var(--transition),color var(--transition)}.lab-workspace-tab-btn:hover{border-color:var(--border-hover);color:var(--text)}.lab-workspace-tab-btn.active{border-color:var(--border-accent);background:#6366f129;color:#fff}.lab-workspace-shell-body{display:flex;height:min(72vh,780px);background:#00000024}.lab-workspace-shell-body>*{flex:1 1 auto;min-width:0}.lab-resources-panel{margin:0 24px 16px;border:1px solid var(--border);border-radius:8px;background:var(--bg-card);overflow:hidden}.lab-resources-viewer{width:min(1000px,calc(100vw - 48px));margin:24px auto;border:1px solid var(--border);border-radius:12px;background:var(--bg-card);overflow:hidden}.lab-resources-viewer-embedded{width:100%;margin:0;border:none;border-radius:0;background:transparent;display:flex;flex-direction:column;height:100%}.lab-resources-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:16px 18px 12px;border-bottom:1px solid var(--border)}.lab-resources-title{display:flex;align-items:center;gap:8px;font-weight:700;color:var(--text)}.lab-resources-subtitle{margin-top:4px;color:var(--text-muted);font-size:.84rem}.lab-resources-header-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.lab-resources-expiry{display:inline-flex;align-items:center;gap:6px;color:var(--yellow);background:var(--yellow-dim);border:1px solid rgba(245,158,11,.2);border-radius:999px;padding:6px 10px;font-size:.78rem;white-space:nowrap}.lab-resources-launcher-body{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px 18px}.lab-resources-launcher-copy{display:flex;flex-direction:column;gap:10px;min-width:0}.lab-resources-chip-list{display:flex;flex-wrap:wrap;gap:8px}.lab-resources-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:#6366f11f;border:1px solid rgba(99,102,241,.18);color:var(--text-muted);font-size:.78rem}.lab-resources-inline-note{font-size:.82rem;color:var(--text-dim)}.lab-resources-launcher-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto}.lab-resources-tabs{display:flex;gap:8px;padding:12px 18px 10px;overflow-x:auto;flex-shrink:0;scrollbar-gutter:stable both-edges}.lab-resources-tabs-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.lab-resources-tabs-row .lab-resources-tabs{flex:1 1 auto;min-width:0}.lab-resources-inline-actions{display:flex;align-items:center;justify-content:flex-end;padding:12px 18px 0 0;flex:0 0 auto}.lab-resources-tab{border:1px solid var(--border);border-bottom:none;border-radius:8px 8px 0 0;background:transparent;color:var(--text-muted);padding:9px 12px;cursor:pointer;white-space:nowrap;flex:0 0 auto}.lab-resources-tab.active{background:#6366f124;color:var(--text);border-color:var(--border-accent)}.lab-resources-content{padding:18px;border-top:1px solid var(--border);color:var(--text);line-height:1.65}.lab-resources-viewer-embedded .lab-resources-content{flex:1 1 auto;overflow:auto}.markdown-body h1,.markdown-body h2,.markdown-body h3{margin:1em 0 .4em}.markdown-body h1:first-child,.markdown-body h2:first-child,.markdown-body h3:first-child,.markdown-body p:first-child{margin-top:0}.markdown-body p,.markdown-body ul,.markdown-body ol,.markdown-body pre,.markdown-body blockquote{margin:0 0 .9em}.markdown-body ul,.markdown-body ol{padding-left:1.5rem;list-style-position:outside}.markdown-body li{margin:.25em 0}.markdown-body li>ul,.markdown-body li>ol{margin-top:.35em;margin-bottom:.35em}.markdown-body code{background:#94a3b824;padding:.15em .35em;border-radius:4px;font-family:JetBrains Mono,monospace;font-size:.92em}.markdown-body pre{background:#111827;border:1px solid var(--border);border-radius:8px;padding:12px;overflow-x:auto}.markdown-body pre code{background:transparent;padding:0}.markdown-body blockquote{border-left:3px solid var(--border-accent);padding-left:12px;color:var(--text-muted)}.markdown-body a{color:var(--accent-hover)}.markdown-body table{width:100%;border-collapse:collapse;margin:0 0 1rem;overflow:hidden;border:1px solid var(--border);border-radius:10px}.markdown-body th,.markdown-body td{padding:10px 12px;border:1px solid var(--border);text-align:left;vertical-align:top}.markdown-body th{background:#ffffff0d;color:var(--text);font-weight:700}.markdown-body td{color:var(--text-muted)}.markdown-body tbody tr:nth-child(2n){background:#ffffff05}.lab-resources-page{flex:1;padding:0 24px 32px}.spawn-progress{width:min(620px,calc(100vw - 48px));margin:24px auto 0;border:1px solid var(--border);border-radius:8px;background:#00000038;overflow:hidden;text-align:left}.spawn-progress-header{display:flex;justify-content:space-between;gap:16px;padding:10px 14px;border-bottom:1px solid var(--border);color:var(--text);font-size:.78rem;font-weight:700}.spawn-progress-header span:last-child{color:var(--accent-hover);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.spawn-progress-list{display:flex;flex-direction:column;padding:8px 0}.spawn-progress-row{display:grid;grid-template-columns:16px 76px minmax(0,1fr);align-items:center;gap:8px;padding:6px 14px;color:var(--text-muted);font-size:.8rem}.spawn-progress-row time{color:var(--text-dim);font-family:JetBrains Mono,monospace;font-size:.72rem}.spawn-progress-row span:last-child{overflow-wrap:anywhere}.lab-template-picker{width:min(860px,calc(100vw - 48px));margin:28px auto 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.lab-template-option{display:flex;flex-direction:column;gap:6px;min-height:118px;padding:16px;border-radius:8px;border:1px solid var(--border);background:var(--bg-card);color:var(--text);text-align:left;font-family:inherit;cursor:pointer;transition:border-color var(--transition),background var(--transition),transform var(--transition)}.lab-template-option:hover{border-color:var(--border-hover);background:var(--bg-card-hover);transform:translateY(-1px)}.lab-template-option.selected{border-color:var(--border-accent);background:#6366f11f}.lab-template-title{font-size:.98rem;font-weight:700}.lab-template-description{color:var(--text-muted);font-size:.86rem;line-height:1.5}.admin-layout{min-height:100vh;display:flex;flex-direction:column}.admin-content{padding:32px 24px;flex:1}.admin-section{margin-bottom:40px}.admin-section h2{margin-bottom:20px}.admin-page-header{margin-bottom:24px}.admin-page-title{font-size:clamp(2rem,4vw,3rem);line-height:1.05}.admin-page-subtitle{max-width:760px;font-size:1rem}.admin-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);gap:16px;margin-bottom:28px}.admin-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.admin-card-header h2,.admin-card-header h3{margin-bottom:4px}.admin-card-header p{font-size:.85rem}.admin-summary-card,.admin-settings-card,.admin-template-list-card,.admin-editor-card{padding:20px}.admin-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.dashboard-metric{padding:16px;border-radius:14px;border:1px solid var(--border);background:#ffffff08;display:flex;flex-direction:column;gap:6px}.dashboard-metric-value{font-size:1.8rem;font-weight:800;color:var(--text);line-height:1}.dashboard-metric-label{color:var(--text-muted);font-size:.78rem;letter-spacing:.05em;text-transform:uppercase}.admin-settings-stack{display:flex;flex-direction:column;gap:12px}.admin-setting-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border-radius:14px;border:1px solid var(--border);background:#ffffff08}.admin-setting-row strong{display:block;margin-bottom:3px}.admin-setting-row p{font-size:.82rem}.admin-setting-inputs{display:flex;align-items:center;gap:10px;min-width:220px}.admin-setting-inputs .input{min-width:0}.admin-setting-row-danger{border-color:#ef444433}.admin-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:16px}.admin-section-heading h2{margin-bottom:4px}.admin-section-heading p{font-size:.86rem}.sessions-table{width:100%;border-collapse:collapse}.sessions-table th{text-align:left;padding:10px 14px;font-size:.75rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--text-dim);border-bottom:1px solid var(--border)}.sessions-table td{padding:12px 14px;font-size:.875rem;border-bottom:1px solid rgba(255,255,255,.04);vertical-align:middle}.sessions-table tr:hover td{background:var(--bg-card)}.sessions-table code{background:var(--bg-input);padding:2px 7px;border-radius:4px;font-size:.75rem;color:var(--text-muted)}.session-primary{display:flex;flex-direction:column;gap:6px}.session-primary-row{display:flex;align-items:center;gap:8px}.session-code{width:fit-content}.session-timing{display:flex;flex-direction:column;gap:8px}.session-timing-row{display:flex;flex-direction:column;gap:2px}.session-timing-row span{color:var(--text-dim);font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.session-timing-row strong{color:var(--text-muted);font-size:.82rem;font-weight:600}.session-inline-actions{display:flex;justify-content:flex-end}.session-container-summary{display:flex;flex-direction:column;gap:6px}.session-container-summary span{color:var(--text-dim);font-size:.74rem}.template-access-toggle{display:inline-flex;align-items:center;gap:10px;width:198px;justify-content:flex-start;padding:7px 10px;border-radius:999px;border:1px solid var(--border);background:#64748b1f;color:var(--text-muted);font-family:inherit;font-size:.8rem;font-weight:600;cursor:pointer;transition:border-color var(--transition),background var(--transition),color var(--transition)}.template-access-toggle span:last-child{display:inline-block;width:132px;text-align:left;white-space:nowrap}.template-access-toggle:hover{border-color:var(--border-hover);color:var(--text)}.template-access-toggle.on{background:var(--green-dim);border-color:#10b98159;color:var(--green)}.template-access-knob{width:28px;height:16px;border-radius:999px;background:#ffffff2e;position:relative;flex:0 0 auto}.template-access-knob:after{content:"";position:absolute;top:3px;left:3px;width:10px;height:10px;border-radius:50%;background:currentColor;transition:transform var(--transition)}.template-access-toggle.on .template-access-knob:after{transform:translate(12px)}.admin-studio{display:grid;grid-template-columns:minmax(320px,420px) minmax(0,1fr);gap:16px;align-items:start}.admin-template-list{display:flex;flex-direction:column;gap:12px}.template-card{padding:16px;border:1px solid var(--border);border-radius:16px;background:#ffffff08;transition:border-color var(--transition),background var(--transition),transform var(--transition)}.template-card:hover{border-color:var(--border-hover);background:#ffffff0d}.template-card.selected{border-color:var(--border-accent);background:#6366f11a}.template-card-head{display:flex;justify-content:space-between;gap:12px}.template-card-title-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.template-card-name{color:var(--text-dim);font-size:.76rem;margin-top:4px;font-family:JetBrains Mono,monospace}.template-card-description{margin-top:10px;font-size:.84rem}.template-card-meta{display:flex;flex-direction:column;gap:8px;margin-top:12px}.template-card-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px}.template-card-updated{color:var(--text-dim);font-size:.74rem}.template-card-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.admin-editor-card{position:sticky;top:72px}.admin-editor-header{align-items:center}.admin-editor-header-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.admin-editor-body{min-height:0}.password-gate{display:flex;align-items:center;justify-content:center;min-height:100vh}.password-gate-card{padding:40px;width:380px;text-align:center}.password-gate-card h1{font-size:1.8rem;margin-bottom:8px}.password-gate-card p{margin-bottom:28px}.password-input-row{display:flex;gap:8px}.admin-login-form{display:flex;flex-direction:column;gap:12px;text-align:left}.admin-login-form label{display:flex;flex-direction:column;gap:7px;color:var(--text-muted);font-size:.8rem;font-weight:600}.stats-row{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:28px}.stat-card{padding:20px 24px;flex:1;min-width:160px}.stat-card .stat-value{font-size:2rem;font-weight:800;color:var(--text);line-height:1}.stat-card .stat-label{font-size:.78rem;color:var(--text-muted);margin-top:4px;font-weight:500;text-transform:uppercase;letter-spacing:.06em}.toast{position:fixed;bottom:24px;right:24px;z-index:999;padding:14px 20px;border-radius:var(--radius);background:var(--bg-surface);border:1px solid var(--border);font-size:.875rem;box-shadow:var(--shadow);animation:slideUp .3s cubic-bezier(.4,0,.2,1);max-width:320px}@keyframes slideUp{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}.toast-success{border-color:#10b9814d;color:var(--green)}.toast-error{border-color:#ef44444d;color:var(--red)}@keyframes fadeIn{0%{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}@keyframes slideRight{0%{opacity:0;transform:translate(-12px)}to{opacity:1;transform:translate(0)}}.fade-in{animation:fadeIn .5s cubic-bezier(.2,.8,.2,1) both}.slide-in{animation:slideRight .4s cubic-bezier(.2,.8,.2,1) both}.stagger-1{animation-delay:50ms}.stagger-2{animation-delay:.1s}.stagger-3{animation-delay:.15s}.stagger-4{animation-delay:.2s}.stagger-5{animation-delay:.25s}.fade-in-delay-1{animation-delay:.15s}.fade-in-delay-2{animation-delay:.3s}.fade-in-delay-3{animation-delay:.45s}.empty-state{text-align:center;padding:60px 24px;color:var(--text-dim);font-size:.9rem}.empty-state .icon{font-size:2.5rem;margin-bottom:12px}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;background:#000000b3;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:24px;animation:fadeInModal .2s ease-out}.modal-content{background:var(--bg-surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:32px;width:100%;max-width:480px;box-shadow:0 20px 50px #00000080;position:relative;animation:slideInModal .2s cubic-bezier(.4,0,.2,1)}@keyframes fadeInModal{0%{opacity:0}to{opacity:1}}@keyframes slideInModal{0%{opacity:0;transform:scale(.95) translateY(10px)}to{opacity:1;transform:scale(1) translateY(0)}}.modal-header{margin-bottom:20px}.modal-footer{margin-top:32px;display:flex;justify-content:flex-end;gap:12px}@media (max-width: 640px){h1{font-size:1.9rem}.hero{padding:48px 16px 40px}.hero-compact{padding:24px 16px 12px}.container-grid{padding:0 16px 16px;grid-template-columns:1fr}.terminal-panel{margin:0 16px 16px}.stats-row{flex-direction:column}.modal-content{padding:24px}}.lab-editor-wrap{border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;background:#1e1e1e;display:flex;flex-direction:column}.lab-builder-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;background:#252526;border-bottom:1px solid #333}.lab-builder-toolbar-title{color:var(--text);font-size:.94rem;font-weight:700}.lab-builder-toolbar-subtitle{color:var(--text-muted);font-size:.78rem;margin-top:2px}.lab-builder-toolbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0}.lab-builder-panel{display:grid;grid-template-columns:minmax(0,1fr) 340px;align-items:stretch;background:var(--bg-surface);border-bottom:1px solid #333}.lab-builder-main{padding:18px;border-right:1px solid var(--border)}.lab-builder-sidebar{display:flex;flex-direction:column;min-height:0;padding:18px;background:#0000001f}.lab-builder-sidebar-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.lab-builder-sidebar-header .lab-builder-section-title{margin-bottom:0}.lab-builder-section-title{color:var(--text-dim);font-size:.72rem;font-weight:700;letter-spacing:.08em;margin-bottom:10px;text-transform:uppercase}.lab-builder-fields{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(280px,1.2fr);gap:14px}.lab-builder-fields label{display:flex;flex-direction:column;gap:7px;color:var(--text-muted);font-size:.8rem;font-weight:600}.lab-builder-description{min-height:74px;resize:vertical;line-height:1.45}.service-editor-panel{margin-top:18px;padding-top:18px;border-top:1px solid var(--border)}.service-editor-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}.service-editor-header h3{margin:0;color:var(--text)}.service-editor-grid{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:12px}.service-editor-grid label,.service-editor-block,.service-file-fields label{display:flex;flex-direction:column;gap:7px;color:var(--text-muted);font-size:.8rem;font-weight:600}.service-editor-block{margin-top:14px}.service-editor-script{min-height:132px;font-family:JetBrains Mono,monospace;font-size:.82rem;line-height:1.55;resize:vertical}.service-files-editor{margin-top:18px}.service-files-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.service-files-header .lab-builder-section-title{margin-bottom:0}.service-file-row{position:relative;padding:8px;border:1px solid var(--border);border-radius:8px;background:#ffffff08;margin-bottom:8px}.service-file-summary{width:100%;display:grid;grid-template-columns:18px minmax(0,1fr) 58px 48px;align-items:center;gap:8px;min-height:36px;padding:0 34px 0 2px;background:transparent;border:0;color:var(--text);font-family:inherit;text-align:left;cursor:pointer}.service-file-summary svg{color:var(--accent-hover)}.service-file-summary span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.82rem;font-weight:600}.service-file-summary small{color:var(--text-dim);font-family:JetBrains Mono,monospace;font-size:.7rem}.service-file-summary strong{color:var(--accent-hover);font-size:.76rem;text-align:right}.service-file-details{padding:10px 2px 2px;border-top:1px solid var(--border);margin-top:6px}.service-file-fields{display:grid;grid-template-columns:minmax(220px,1fr) 100px;gap:10px}.service-file-content{min-height:104px;font-family:JetBrains Mono,monospace;font-size:.8rem;line-height:1.5;resize:vertical}.service-file-delete{margin-top:10px}.lab-resource-editor-label-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.lab-resource-editor-actions{display:flex;justify-content:flex-end}.lab-resource-fullscreen-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:400;background:#070b14d1;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);padding:24px;display:flex;align-items:stretch;justify-content:center}.lab-resource-fullscreen-dialog{width:min(1200px,100%);height:100%;max-height:100%;display:flex;flex-direction:column;background:var(--bg-surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow);overflow:hidden}.lab-resource-fullscreen-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid var(--border);background:#ffffff08}.lab-resource-fullscreen-header h3{margin:0}.lab-resource-fullscreen-body{flex:1 1 auto;min-height:0;overflow:auto;padding:20px;display:flex;flex-direction:column;gap:14px}.lab-resource-fullscreen-content-field{flex:1 1 auto;min-height:0}.lab-resource-fullscreen-textarea{min-height:calc(100vh - 260px);height:100%;resize:none}.service-file-delete-compact{position:absolute;top:50%;right:8px;width:28px;height:28px;padding:0;justify-content:center;transform:translateY(-50%)}.lab-service-summary-list{display:flex;flex-direction:column;gap:10px;flex:1 1 auto;min-height:360px;max-height:none;overflow:auto;padding-right:4px}.lab-service-summary{width:100%;font-family:inherit;text-align:left;padding:10px;border:1px solid var(--border);border-radius:8px;background:#ffffff09;cursor:pointer;transition:border-color var(--transition),background var(--transition)}.lab-service-summary:hover,.lab-service-summary.selected{border-color:var(--border-accent);background:#6366f11f}.lab-service-summary-head{display:flex;align-items:center;gap:8px;color:var(--text);font-size:.86rem}.lab-service-summary-head svg{color:var(--accent-hover);flex:0 0 auto}.lab-service-summary-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px;color:var(--text-muted);font-size:.74rem}.lab-service-summary-meta span{overflow-wrap:anywhere}.lab-service-summary-resources{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.lab-service-summary-resources span{display:inline-flex;align-items:center;gap:4px;padding:3px 7px;border-radius:999px;background:var(--bg-input);color:var(--text-muted);font-size:.72rem}.lab-service-summary-resources .ok{background:var(--green-dim);color:var(--green)}.lab-service-summary-resources .warn{background:var(--yellow-dim);color:var(--yellow)}.lab-builder-hints{margin-top:16px;padding-top:14px;border-top:1px solid var(--border)}.lab-builder-hint{display:flex;gap:7px;color:var(--yellow);font-size:.76rem;line-height:1.35;margin-top:8px}.lab-builder-hint svg{flex:0 0 auto;margin-top:1px}.lab-builder-empty{color:var(--text-muted);font-size:.82rem;padding:12px;border:1px dashed var(--border);border-radius:8px}.lab-editor-toolbar{display:flex;align-items:center;gap:10px;padding:8px 14px;background:#252526;border-bottom:1px solid #333;min-height:42px}.lab-editor-lang{font-family:JetBrains Mono,monospace;font-size:.7rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--accent);background:var(--accent-dim);padding:3px 8px;border-radius:4px}.lab-editor-msg{display:flex;align-items:center;gap:6px;font-size:.8rem;padding:4px 10px;border-radius:var(--radius-sm)}.lab-editor-msg.ok{color:var(--green);background:var(--green-dim)}.lab-editor-msg.err{color:var(--red);background:var(--red-dim)}.lab-editor-monaco{height:540px;min-height:540px}@media (max-width: 760px){.lab-resources-header{flex-direction:column}.lab-resources-launcher-body{flex-direction:column;align-items:stretch}.lab-resources-launcher-actions{justify-content:flex-start}.lab-builder-toolbar{align-items:stretch;flex-direction:column}.lab-builder-toolbar-actions{justify-content:space-between}.lab-builder-panel{grid-template-columns:1fr}.lab-builder-main{border-right:none;border-bottom:1px solid var(--border)}.lab-builder-fields,.service-editor-grid,.service-file-fields{grid-template-columns:1fr}.lab-resource-editor-label-row,.lab-resource-fullscreen-header{flex-direction:column;align-items:stretch}.lab-resource-fullscreen-overlay{padding:12px}.lab-resource-fullscreen-body{padding:16px}.lab-resource-fullscreen-textarea{min-height:calc(100vh - 240px)}}.ide-panel{display:flex;flex-direction:column;background:var(--bg-card);border:1px solid var(--border);border-radius:8px;overflow:hidden;height:60vh;margin:16px 24px}.ide-panel-embedded{flex:1 1 auto;min-height:0;height:auto;margin:0;border:none;border-radius:0}.ide-header{display:flex;justify-content:space-between;align-items:center;padding:8px 16px;background:#0003;border-bottom:1px solid var(--border)}.ide-header-title{font-weight:600;font-size:.85rem;letter-spacing:.05em}.ide-body{display:flex;flex:1;overflow:hidden;min-height:0}.ide-sidebar{width:250px;border-right:1px solid var(--border);background:#0000001a;display:flex;flex-direction:column}.ide-editor-container{flex:1;display:flex;flex-direction:column;background:#1e1e1e}.ide-editor-tabs{display:flex;align-items:center;background:#252526;border-bottom:1px solid #333;padding-right:8px}.ide-editor-tab{padding:8px 16px;background:#1e1e1e;border-right:1px solid #333;color:#ccc;font-size:.85rem;display:flex;align-items:center;gap:8px}.ide-editor-wrapper{flex:1;position:relative}.dirty-dot{width:8px;height:8px;border-radius:50%;background:var(--accent)}.file-browser{display:flex;flex-direction:column;height:100%}.file-browser-header{display:flex;justify-content:space-between;align-items:center;padding:8px;font-size:.75rem;font-weight:700;color:var(--text-muted);border-bottom:1px solid rgba(255,255,255,.05)}.file-browser-actions{display:flex;align-items:center;gap:4px}.file-browser-error{padding:8px 10px;border-bottom:1px solid rgba(239,68,68,.2);background:#7f1d1d2e;color:var(--red);font-size:.78rem}.file-browser-content{flex:1;overflow-y:auto;padding:8px 0}.file-node{display:flex;align-items:center;gap:6px;padding:4px 8px;cursor:pointer;font-size:.85rem;color:var(--text);-webkit-user-select:none;user-select:none}.file-node:hover{background:#ffffff0d}.file-node.selected{background:#6366f12e;color:var(--text)}.file-node-icon{display:flex;align-items:center;color:var(--text-muted);width:36px;justify-content:flex-start;gap:4px}.color-folder{color:#dcb67a}.color-file{color:#519aba}.file-node-children{display:flex;flex-direction:column}.container-card:before{pointer-events:none}.container-card button{position:relative;z-index:2}.lab-launch-layout{width:min(1120px,100%);margin:0 auto;padding:28px 24px 32px}.lab-launch-card,.lab-running-shell,.admin-toolbar,.admin-live-terminals{padding:20px 22px}.lab-launch-header,.lab-running-shell-top,.admin-toolbar-main,.admin-toolbar-controls,.admin-toolbar-control-row,.admin-main-grid{display:flex;gap:16px}.lab-launch-header,.lab-running-shell-top,.admin-toolbar-main{align-items:flex-start;justify-content:space-between}.lab-launch-title{margin-bottom:8px}.lab-launch-subtitle{max-width:640px}.lab-launch-loading{display:flex;justify-content:center;padding:24px 0 8px}.lab-template-picker-compact{margin-top:18px}.lab-template-flags,.lab-launch-meta,.lab-running-shell-meta,.admin-toolbar-stats{display:flex;flex-wrap:wrap;gap:10px}.lab-template-flags{margin-top:12px}.lab-launch-meta{margin-top:16px;color:var(--text-muted);font-size:.85rem}.lab-launch-meta span:not(:last-child):after{content:"•";margin-left:10px;color:var(--text-dim)}.lab-running-shell-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.lab-running-shell-actions .btn.is-active{border-color:var(--border-accent);color:var(--text);background:var(--accent-dim)}.lab-running-shell-meta{margin-top:16px}.lab-shell-chip,.admin-stat-chip{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;border:1px solid var(--border);background:#ffffff08;color:var(--text-muted);font-size:.8rem}.admin-stat-chip{flex-direction:column;align-items:flex-start;border-radius:14px;min-width:110px;gap:2px}.admin-stat-chip strong{color:var(--text);font-size:1rem}.admin-stat-chip span{color:var(--text-dim);font-size:.74rem;text-transform:uppercase;letter-spacing:.06em}.lab-inline-hint{padding:16px 18px}.lab-inline-hint p{color:var(--text-muted)}.lab-workspace-shell-header-compact{align-items:center}.lab-workspace-shell-header-compact h3{margin:0}.admin-toolbar-controls{margin-top:18px;align-items:flex-end;flex-wrap:wrap}.admin-toolbar-control{display:flex;flex-direction:column;gap:8px;min-width:220px;flex:1}.admin-toolbar-control label{color:var(--text-dim);font-size:.75rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.admin-toolbar-control-row{align-items:center}.admin-toolbar-control-row .input{min-width:0}.admin-toolbar-control-danger{flex:0 0 auto;min-width:180px}.admin-main-grid{align-items:flex-start;margin-top:28px}.admin-main-grid>.admin-section{flex:1;min-width:0}.admin-live-terminals{margin-top:18px}.admin-section-heading-tight{margin-bottom:12px}.admin-studio-compact{grid-template-columns:minmax(300px,.9fr) minmax(0,1.4fr)}.template-card{cursor:pointer}.admin-editor-header-compact{align-items:center}@media (max-width: 1100px){.admin-dashboard-grid,.admin-studio,.lab-running-overview,.admin-studio-compact,.admin-main-grid{grid-template-columns:1fr}.admin-editor-card{position:static}}@media (max-width: 900px){.lab-workspace{padding-inline:16px}.lab-workspace-shell.is-docked{position:static}.lab-workspace-shell-body{min-height:60vh}.admin-summary-grid,.lab-running-meta-grid{grid-template-columns:1fr 1fr}}@media (max-width: 760px){.lab-workspace-shell-header,.admin-section-heading,.template-card-footer,.admin-setting-row,.lab-launch-header,.lab-running-shell-top,.admin-toolbar-main,.admin-toolbar-controls,.admin-toolbar-control-row,.admin-main-grid{flex-direction:column;align-items:stretch}.lab-resources-header{flex-direction:column}.lab-resources-tabs-row{flex-direction:column;align-items:stretch}.lab-resources-header-actions,.lab-workspace-switcher,.admin-editor-header-actions,.lab-running-shell-actions{justify-content:flex-start}.lab-resources-inline-actions{padding:0 18px;justify-content:flex-start}.lab-resources-launcher-body{flex-direction:column;align-items:stretch}.lab-resources-launcher-actions{justify-content:flex-start}.lab-builder-toolbar{align-items:stretch;flex-direction:column}.lab-builder-toolbar-actions{justify-content:space-between}.lab-builder-panel{grid-template-columns:1fr}.lab-builder-main{border-right:none;border-bottom:1px solid var(--border)}.lab-builder-fields,.service-editor-grid,.service-file-fields{grid-template-columns:1fr}}@media (max-width: 640px){.admin-content,.lab-resources-page,.lab-launch-layout{padding-inline:16px}.admin-summary-grid,.lab-running-meta-grid{grid-template-columns:1fr}.admin-setting-inputs{min-width:0;width:100%}.admin-setting-inputs .btn,.admin-setting-inputs .input,.template-card-actions .btn,.lab-workspace-switcher .lab-workspace-tab-btn,.lab-running-shell-actions .btn,.admin-toolbar-control-row .btn,.admin-toolbar-control-row .input,.admin-toolbar-control .btn{width:100%;justify-content:center}.admin-stat-chip{min-width:calc(50% - 5px)}}
