/**
 * 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-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{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{color:#18212a;background:#eef1f2;font-family:Aptos,Segoe UI,ui-sans-serif,system-ui,sans-serif;font-size:15px;--ink: #18212a;--muted: #5e6972;--hairline: #d8dedc;--panel: #ffffff;--panel-warm: #fbfaf7;--field: #f8faf9;--accent: #1f6f68;--accent-strong: #164d49;--accent-soft: #d9ece8;--amber: #9a6400;--red: #a33a2a}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}.app-shell{min-height:100vh}.topbar{height:56px;display:flex;align-items:center;gap:12px;padding:0 24px;border-bottom:1px solid var(--hairline);background:#17201f;color:#f4f0e8}.empty-state{padding:24px}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #b6c1bd;background:#fff;color:var(--ink);min-height:34px;padding:0 12px;border-radius:6px;cursor:pointer;font-weight:650;text-decoration:none}.button:hover{background:#f1f5f3}.button-primary{border-color:var(--accent-strong);background:var(--accent);color:#fff}.button-primary:hover{background:var(--accent-strong)}.button-icon svg{flex:0 0 auto}.topbar-user{margin-left:auto;color:#d7dedb}.login-screen{min-height:100vh;display:grid;place-items:center;background:#eef2f4}.login-panel{width:min(380px,calc(100vw - 32px));display:grid;gap:14px;padding:24px;border:1px solid #d8dee3;background:#fff;border-radius:8px}.login-panel h1,.login-panel h2{margin:0}.login-panel label{display:grid;gap:6px;color:#36444f}.login-panel input{min-height:36px;border:1px solid #b8c2cc;border-radius:6px;padding:0 10px}.form-error{color:var(--red);margin:0}.form-success{color:var(--accent-strong);margin:0}.status{display:inline-flex;align-items:center;min-height:24px;padding:0 8px;border-radius:999px;font-size:12px;font-weight:700;text-transform:capitalize;background:#e8eeed;color:#34403d}.status-healthy,.status-built,.status-succeeded,.status-online,.status-open{background:#dff3e8;color:#14633f}.status-degraded,.status-running,.status-building,.status-queued{background:#fff1cc;color:var(--amber)}.status-offline,.status-failed,.status-closed{background:#fde2df;color:var(--red)}.console-grid{display:grid;grid-template-columns:344px minmax(0,1fr);min-height:calc(100vh - 56px);background:linear-gradient(90deg,rgba(22,77,73,.05),transparent 34%),#eef1f2}.site-pane{min-width:0;padding:18px;border-right:1px solid var(--hairline);background:var(--panel-warm)}.site-pane-header,.site-header,.panel-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.site-pane-header h2,.site-header h1,.panel h3{margin:0}.site-pane-header{align-items:flex-start}.site-pane-header h2{font-size:20px;line-height:1.1}.site-pane-header p{margin:5px 0 0;color:var(--muted);font-size:13px}.search-field{display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;gap:8px;width:100%;min-height:36px;margin:16px 0;padding:0 10px;border:1px solid #c2cbc8;border-radius:6px;background:#fff;color:var(--muted)}.search-field input{min-width:0;border:0;outline:0;background:transparent;color:var(--ink)}.site-create-form{margin-top:14px;margin-bottom:16px;padding:14px;border:1px solid var(--hairline);border-radius:8px;background:#fff}.compact-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.site-list{display:grid;gap:8px}.site-row{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;min-height:76px;padding:11px;border:1px solid var(--hairline);border-radius:8px;background:#fff;color:var(--ink);text-align:left;cursor:pointer;text-decoration:none}.site-row:hover,.site-row-active{border-color:#8fb5ad;background:#eef7f4}.site-row span,.site-header div{min-width:0}.site-row strong,.site-row small,.site-header h1,.site-header p,.data-table th,.data-table td,.detail-list dd{overflow-wrap:anywhere}.site-row small{display:block;margin-top:4px;color:var(--muted)}.site-row em{display:inline-flex;align-items:center;gap:4px;margin-top:7px;color:#6d6250;font-size:12px;font-style:normal}.admin-nav{display:grid;gap:6px;margin-top:22px;padding-top:16px;border-top:1px solid var(--hairline)}.admin-nav span{color:var(--muted);font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.admin-nav a{display:flex;align-items:center;gap:9px;min-height:38px;padding:0 10px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--ink);cursor:pointer;text-align:left;text-decoration:none}.admin-nav a:hover,.admin-nav a[aria-current=page]{border-color:#bfd2cc;background:#fff}.site-detail{min-width:0;padding:24px}.site-header{margin-bottom:14px}.site-header h1{font-size:28px;line-height:1.2;letter-spacing:0}.site-header p,.muted{margin:6px 0 0;color:var(--muted)}.eyebrow{margin:0 0 4px;color:var(--accent-strong);font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.site-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;margin-bottom:16px;overflow:hidden;border:1px solid var(--hairline);border-radius:8px;background:var(--hairline)}.site-summary div{min-width:0;padding:12px;background:#fff}.site-summary span{display:block;margin-bottom:5px;color:var(--muted);font-size:12px;font-weight:700}.site-summary strong{display:block;overflow-wrap:anywhere;font-size:13px}.tabs{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin-bottom:16px}.tabs a{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:0 10px;border:1px solid var(--hairline);border-radius:7px;background:#fff;color:var(--muted);cursor:pointer;font-weight:700;text-decoration:none}.tabs a[aria-current=page]{border-color:#8fb5ad;background:var(--accent-soft);color:var(--accent-strong)}.panel{min-width:0;padding:18px;border:1px solid var(--hairline);border-radius:8px;background:#ffffffc7}.detail-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0}.detail-list div{min-width:0;padding:12px;border:1px solid #e4e8e6;border-radius:7px;background:#fff}.detail-list dt{margin-bottom:4px;color:var(--muted);font-size:13px;font-weight:700}.detail-list dd{margin:0}.data-table{width:100%;border-collapse:collapse;table-layout:fixed;background:#fff;border:1px solid var(--hairline);border-radius:8px;overflow:hidden}.data-table th,.data-table td{padding:11px 10px;border-bottom:1px solid var(--hairline);text-align:left;vertical-align:top}.data-table th{color:var(--muted);font-size:13px;font-weight:800;background:#f6f8f7}.data-table tr[aria-current=true]{background:#eef7f4}.runtime-table-wrap{overflow-x:auto}.runtime-table{min-width:680px}.runtime-table th:nth-child(1){width:30%}.runtime-table th:nth-child(2){width:42%}.runtime-table th:nth-child(3){width:88px}.runtime-table th:nth-child(4){width:112px}.runtime-table input[type=text],.runtime-table input:not([type]){width:100%;min-height:34px;padding:0 9px;border:1px solid #bac6c2;border-radius:6px;background:var(--field);color:var(--ink)}.runtime-table input[type=checkbox]{width:18px;height:18px;accent-color:var(--accent)}.button:disabled{cursor:not-allowed;opacity:.55}.form-stack{display:grid;gap:14px;max-width:860px}.form-stack label{display:grid;gap:6px}.form-stack label span{color:var(--muted);font-size:13px;font-weight:700}.form-stack input,.form-stack select,.form-stack textarea{width:100%;border:1px solid #bac6c2;border-radius:6px;background:var(--field);color:var(--ink)}.form-stack input,.form-stack select{min-height:36px;padding:0 10px}.form-stack textarea{min-height:150px;padding:10px;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:13px;resize:vertical}.inline-create-form{margin-bottom:20px;padding:14px;border:1px solid #e0e6e3;border-radius:8px;background:#fff}.log-panel{display:grid;gap:10px;padding-top:18px}.log-lines{display:grid;max-height:280px;overflow:auto;border:1px solid var(--hairline);border-radius:6px;background:#fff}.log-line{display:grid;grid-template-columns:64px 92px minmax(0,1fr);gap:10px;padding:8px 10px;border-bottom:1px solid #edf1f4}.log-line:last-child{border-bottom:0}.log-line span{color:var(--muted)}.log-line code{white-space:pre-wrap;word-break:break-word}.shell-layout{display:flex;flex-direction:column;gap:14px}.shell-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.shell-toolbar h3,.shell-layout h3{margin:0}.shell-toolbar-actions,.toolbar-actions{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:8px}.log-follow-button{min-height:30px;padding:0 9px;font-size:12px}.terminal-log{max-height:360px;overflow:auto;margin:12px 0 0;padding:12px;border:1px solid #23313a;border-radius:6px;background:#11181d;color:#d9f2e6;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.xterm-shell{min-height:460px;height:min(62vh,680px);overflow:hidden;padding:8px;border:1px solid #1d3131;border-radius:6px;background:#071016}.xterm-shell .xterm{height:100%}.shell-layout-fullscreen,.shell-layout.shell-layout-fullscreen{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;width:auto;height:auto;margin:0;border:0;border-radius:0;display:flex;flex-direction:column;background:var(--surface)}.shell-layout-fullscreen .xterm-shell,.shell-layout.shell-layout-fullscreen .xterm-shell{flex:1;height:auto;min-height:0}@media (max-width: 800px){.console-grid{grid-template-columns:1fr}.site-pane{border-right:0;border-bottom:1px solid var(--hairline)}.site-detail{padding:18px}.site-header{align-items:flex-start}.detail-list{grid-template-columns:1fr}.site-summary,.tabs{grid-template-columns:1fr 1fr}.data-table{display:block;overflow-x:auto}.shell-toolbar{display:grid;grid-template-columns:1fr}.shell-toolbar-actions{justify-content:flex-start}}
