/**
 * 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: #0e1015;--panel: #161922;--panel-2: #1c202b;--border: #262b38;--text: #e7eaf0;--muted: #8b93a7;--accent: #4f8cff;--green: #2ecc71;--amber: #f5a623;--red: #ef4757;--radius: 10px}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.5 ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;-webkit-font-smoothing:antialiased}button,input,select{font:inherit;color:inherit}a{color:var(--accent)}.shell{display:grid;grid-template-columns:232px 1fr;height:100%}.sidebar{background:var(--panel);border-right:1px solid var(--border);display:flex;flex-direction:column;padding:18px 12px;gap:4px}.brand{display:flex;align-items:center;gap:10px;padding:4px 10px 18px;font-weight:650;letter-spacing:.2px}.brand .dot{width:9px;height:9px;border-radius:50%;background:var(--green);box-shadow:0 0 10px var(--green)}.brand small{display:block;color:var(--muted);font-weight:400;font-size:11px}.nav-item{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:8px;background:none;border:0;width:100%;color:var(--muted);cursor:pointer;text-align:left;text-decoration:none}.nav-item:hover{background:var(--panel-2);color:var(--text)}.nav-item.active{background:var(--accent);color:#fff}.sidebar-foot{margin-top:auto;padding:10px;color:var(--muted);font-size:12px}.main{overflow:auto;padding:26px 30px 60px}.page-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:16px;flex-wrap:wrap}.page-head h1{margin:0;font-size:21px;font-weight:620}.page-head p{margin:2px 0 0;color:var(--muted);font-size:13px}.grid{display:grid;gap:14px}.grid.cols-4{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}.grid.cols-2{grid-template-columns:repeat(auto-fit,minmax(340px,1fr))}.card{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);padding:16px 18px}.card h3{margin:0 0 14px;font-size:13px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.6px}.stat-value{font-size:27px;font-weight:640;line-height:1.1}.stat-sub{color:var(--muted);font-size:12px;margin-top:5px}.bar{height:6px;background:var(--panel-2);border-radius:99px;overflow:hidden;margin-top:12px}.bar>i{display:block;height:100%;background:var(--accent);border-radius:99px;transition:width .4s ease}.bar>i.warn{background:var(--amber)}.bar>i.crit{background:var(--red)}.table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:var(--radius);background:var(--panel)}table{width:100%;border-collapse:collapse;min-width:860px}th,td{padding:11px 14px;text-align:left;border-bottom:1px solid var(--border);white-space:nowrap}th{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.6px;font-weight:600}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:var(--panel-2)}td.name{font-weight:560}td.dim,.dim{color:var(--muted)}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}.pill{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border-radius:99px;font-size:12px;font-weight:550;background:var(--panel-2);color:var(--muted)}.pill .dot{width:7px;height:7px;border-radius:50%;background:currentColor}.pill.running{color:var(--green);background:#2ecc711f}.pill.exited,.pill.dead{color:var(--red);background:#ef47571f}.pill.restarting,.pill.paused,.pill.created{color:var(--amber);background:#f5a6231f}.pill.unhealthy{color:var(--red);background:#ef47571f}.pill.healthy{color:var(--green);background:#2ecc711f}.btn{background:var(--panel-2);border:1px solid var(--border);color:var(--text);padding:6px 12px;border-radius:7px;cursor:pointer}.btn:hover:not(:disabled){border-color:#39415400;background:#232838}.btn:disabled{opacity:.45;cursor:not-allowed}.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}.btn.primary:hover:not(:disabled){background:#3d7bf0}.btn.danger{color:var(--red)}.btn.sm{padding:4px 9px;font-size:12px}.btn.xs{padding:3px 9px;font-size:11.5px;line-height:1.5}.btn-row{display:flex;gap:6px;flex-wrap:wrap}.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:14px}.ctr-card{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);padding:14px 16px;display:flex;flex-direction:column;gap:10px}.ctr-card:hover{border-color:#333c4e}.ctr-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.ctr-name{font-weight:600;color:var(--text);text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ctr-name:hover{color:var(--accent)}.ctr-image{font-size:11.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:-4px}.ctr-meta{display:grid;grid-template-columns:1fr 1fr;gap:7px 12px;font-size:12px}.ctr-meta>div{display:flex;flex-direction:column;gap:1px}.ctr-meta strong{font-weight:570;font-size:13px}.ctr-meta strong.bad{color:var(--red)}.ctr-ports{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ctr-actions{display:flex;align-items:center;gap:6px;margin-top:auto;padding-top:2px}.compose-layout{display:grid;grid-template-columns:268px 1fr;gap:14px;align-items:start}@media (max-width: 900px){.compose-layout{grid-template-columns:1fr}}.compose-list{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);padding:10px;max-height:70vh;overflow:auto}.compose-project+.compose-project{margin-top:14px;border-top:1px solid var(--border);padding-top:12px}.compose-project-head{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-size:13.5px}.compose-services{font-size:11px;margin:2px 0 7px;overflow-wrap:anywhere}.compose-file{display:block;width:100%;text-align:left;padding:5px 9px;margin-bottom:3px;border-radius:6px;background:none;border:0;cursor:pointer;color:var(--muted);font-size:12px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.compose-file:hover{background:var(--panel-2);color:var(--text)}.compose-file.active{background:var(--accent);color:#fff}.compose-editor{background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column}.compose-editor textarea{width:100%;min-height:62vh;resize:vertical;padding:16px;border:0;outline:none;background:#0a0c11;color:#cdd3e0;font-size:12.5px;line-height:1.65;-moz-tab-size:2;tab-size:2;white-space:pre;overflow-wrap:normal;overflow-x:auto}.compose-editor textarea[readonly]{opacity:.75}.compose-foot{display:flex;justify-content:space-between;gap:10px;padding:8px 14px;font-size:11.5px;border-top:1px solid var(--border)}.group{margin-bottom:22px}.group-head{display:flex;align-items:center;gap:10px;width:100%;padding:8px 2px 10px;background:none;border:0;border-bottom:1px solid var(--border);margin-bottom:14px;cursor:pointer;text-align:left;color:var(--text)}.group-head:hover .group-name{color:var(--accent)}.chev{display:inline-block;color:var(--muted);font-size:11px;transition:transform .15s ease;transform:rotate(0)}.chev.open{transform:rotate(90deg)}.group-name{font-weight:620;font-size:14.5px}.group-stats{margin-left:auto;font-size:12px;white-space:nowrap}@media (prefers-reduced-motion: reduce){.chev{transition:none}}.ctr-card.skeleton{pointer-events:none}.sk{display:block;border-radius:5px;background:linear-gradient(90deg,var(--panel-2) 25%,#232838 37%,var(--panel-2) 63%);background-size:400% 100%;animation:sk-shimmer 1.4s ease infinite}.sk-name{width:55%;height:14px}.sk-pill{width:62px;height:18px;border-radius:99px}.sk-line{width:100%;height:11px}.sk-line.short{width:70%}.sk-btn{width:58px;height:22px}@keyframes sk-shimmer{0%{background-position:100% 50%}to{background-position:0 50%}}@media (prefers-reduced-motion: reduce){.sk{animation:none}}.kv{display:grid;grid-template-columns:130px 1fr;gap:10px;padding:5px 0;font-size:13px}.kv+.kv{border-top:1px solid var(--border)}.kv-k{color:var(--muted);font-size:12px}.kv-v{overflow-wrap:anywhere}.field{margin-bottom:14px}.field label{display:block;font-size:12px;color:var(--muted);margin-bottom:5px}.field input[type=text],.field input[type=password],.field input[type=number],.field select{width:100%;padding:9px 11px;background:var(--bg);border:1px solid var(--border);border-radius:7px}.field input:focus,.field select:focus{outline:none;border-color:var(--accent)}.field .hint{font-size:11px;color:var(--muted);margin-top:5px}.row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.check{display:flex;align-items:center;gap:9px;padding:7px 0}.check input{width:16px;height:16px;accent-color:var(--accent)}.notice{padding:11px 14px;border-radius:8px;margin-bottom:16px;font-size:13px}.notice.warn{background:#f5a6231a;border:1px solid rgba(245,166,35,.3);color:#ffd591}.notice.err{background:#ef47571a;border:1px solid rgba(239,71,87,.3);color:#ffb3bb}.notice.ok{background:#2ecc711a;border:1px solid rgba(46,204,113,.3);color:#a6ecc6}.login-wrap{height:100%;display:grid;place-items:center}.login-card{width:340px;background:var(--panel);border:1px solid var(--border);border-radius:14px;padding:28px}.login-card h1{margin:0 0 4px;font-size:19px}.login-card p.sub{margin:0 0 22px;color:var(--muted);font-size:13px}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;display:grid;place-items:center;z-index:50;padding:20px}.modal{background:var(--panel);border:1px solid var(--border);border-radius:12px;width:min(760px,100%);max-height:84vh;display:flex;flex-direction:column}.modal header{padding:15px 18px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}.modal header h2{margin:0;font-size:15px}.modal .body{padding:18px;overflow:auto}.modal .body.flush{padding:0}.modal footer{padding:13px 18px;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:8px}.close-x{background:none;border:0;color:var(--muted);font-size:20px;cursor:pointer;line-height:1}pre.stream{margin:0;padding:16px;background:#0a0c11;color:#cdd3e0;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;white-space:pre-wrap;word-break:break-word;max-height:55vh;overflow:auto}.term-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px}.term-host{background:#0a0c11;border:1px solid var(--border);border-radius:var(--radius);padding:10px;height:calc(100vh - 220px);min-height:340px}.term-host .xterm{height:100%}.sparkline{display:block;width:100%;height:46px}
