/**
 * 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{--app-bg: #eef0f3;--bg: #f7f8fa;--surface: #ffffff;--surface-2: #f1f3f5;--surface-hover: #e9ecef;--nav-hover: #e4e7eb;--nav-active: #ffffff;--nav-active-ring: rgba(15, 23, 42, .08);--border: #e3e6ea;--border-strong: #cfd4da;--text: #0f1115;--text-2: #3a3f47;--muted: #6b7280;--primary: #16a34a;--primary-hover: #15803d;--primary-soft: rgba(22, 163, 74, .14);--primary-text: #ffffff;--accent: #2563eb;--danger: #dc2626;--danger-soft: rgba(220, 38, 38, .1);--warning: #b45309;--warning-soft: rgba(245, 158, 11, .14);--success: #16a34a;--success-soft: rgba(22, 163, 74, .14);--code-bg: #0d1117;--code-text: #e6edf3;--c-cpu: #f59e0b;--c-mem: #3b82f6;--c-disk: #16a34a;--c-net: #0891b2;--shadow: 0 1px 2px rgba(16, 24, 40, .06);--shadow-lg: 0 24px 48px -16px rgba(16, 24, 40, .3);--radius: 10px;--radius-sm: 8px;--sidebar-w: 284px;--font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;--mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;color-scheme:light}:root[data-theme=dark]{--app-bg: #171717;--bg: #0a0a0a;--surface: #171717;--surface-2: #262626;--surface-hover: #2a2a2a;--nav-hover: #1f1f1f;--nav-active: #262626;--nav-active-ring: transparent;--border: rgba(255, 255, 255, .1);--border-strong: rgba(255, 255, 255, .18);--text: #fafafa;--text-2: #d4d4d4;--muted: #a1a1a1;--primary: #16a34a;--primary-hover: #15803d;--primary-soft: rgba(34, 197, 94, .16);--primary-text: #ffffff;--accent: #60a5fa;--danger: #f87171;--danger-soft: rgba(248, 113, 113, .13);--warning: #fbbf24;--warning-soft: rgba(251, 191, 36, .13);--success: #22c55e;--success-soft: rgba(34, 197, 94, .15);--code-bg: #08080a;--c-cpu: #fbbf24;--c-mem: #60a5fa;--c-disk: #34d399;--c-net: #22d3ee;--shadow: none;--shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, .7);color-scheme:dark}*{box-sizing:border-box}html,body{height:100%}body{margin:0;font-family:var(--font);font-size:14px;line-height:1.5;background:var(--app-bg);color:var(--text);-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button{font:inherit;color:inherit}h1,h2,h3,h4{margin:0;font-weight:700;letter-spacing:-.015em}p{margin:0}.hidden{display:none!important}.muted{color:var(--muted)}code{font-family:var(--mono);font-size:.86em;background:var(--surface-2);border:1px solid var(--border);padding:1px 6px;border-radius:5px}kbd{font-family:var(--font);font-size:11px;font-weight:600;color:var(--muted);background:var(--surface-2);border:1px solid var(--border);border-radius:6px;padding:2px 7px;margin-left:auto}i[data-icon],.ic{display:inline-flex;width:18px;height:18px;flex-shrink:0}i[data-icon] svg,.ic svg{width:100%;height:100%}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:34px;padding:0 13px;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface);color:var(--text);font-weight:600;font-size:13px;cursor:pointer;white-space:nowrap;transition:background .12s,border-color .12s,opacity .12s}.btn .ic{width:16px;height:16px}.btn:hover{background:var(--surface-hover)}.btn:disabled{opacity:.55;cursor:not-allowed}.btn-primary{background:var(--primary);border-color:var(--primary);color:var(--primary-text)}.btn-primary:hover{background:var(--primary-hover);border-color:var(--primary-hover)}.btn-danger{color:var(--danger)}.btn-danger:hover{background:var(--danger-soft);border-color:var(--danger)}.btn-danger-solid{background:var(--danger);border-color:var(--danger);color:#fff}.btn-danger-solid:hover{opacity:.9;background:var(--danger)}.btn-sm{height:30px;padding:0 10px;font-size:12.5px}.btn-block{width:100%}.seg{display:inline-flex;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);overflow:hidden}.seg button{display:inline-flex;align-items:center;gap:7px;height:32px;padding:0 12px;border:none;background:transparent;cursor:pointer;font-weight:600;font-size:13px;color:var(--text-2)}.seg button .ic{width:16px;height:16px}.seg button:hover{background:var(--surface-hover)}.seg button.active{background:var(--surface-hover);color:var(--text)}.btn-group{display:inline-flex}.btn-group .btn{border-radius:0;margin-left:-1px}.btn-group .btn:first-child{border-radius:var(--radius-sm) 0 0 var(--radius-sm);margin-left:0}.btn-group .btn:last-child{border-radius:0 var(--radius-sm) var(--radius-sm) 0}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border:none;background:transparent;border-radius:var(--radius-sm);color:var(--muted);cursor:pointer}.icon-btn:hover{background:var(--surface-hover);color:var(--text)}.spinner{width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.stack{display:flex;flex-direction:column;gap:16px}.field{display:flex;flex-direction:column;gap:6px}.field>span{font-weight:600;font-size:13px;color:var(--text-2)}.field small{color:var(--muted);font-size:12px}input[type=text],input[type=password],input[type=url],input[type=number],input[type=search],select,textarea{width:100%;height:38px;padding:0 12px;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--bg);color:var(--text);font:inherit;outline:none;transition:border-color .12s,box-shadow .12s}textarea{height:auto;padding:10px 12px;resize:vertical;font-family:var(--mono);font-size:12.5px;line-height:1.6}input:focus,select:focus,textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft)}input[readonly]{background:var(--surface-2)}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:16px}.switch-row{display:flex;align-items:center;gap:10px;cursor:pointer;font-weight:600;font-size:13px}.switch-row input[type=checkbox]:not(.toggle){width:16px;height:16px;accent-color:var(--primary)}.toggle{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:34px;height:20px;border-radius:999px;background:var(--border-strong);position:relative;cursor:pointer;margin:0 0 0 auto;flex-shrink:0;transition:background .15s}.toggle:after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform .15s}.toggle:checked{background:var(--text-2)}:root[data-theme=dark] .toggle:checked{background:#e4e4e7}:root[data-theme=dark] .toggle:checked:after{background:#18181b}.toggle:checked:after{transform:translate(14px)}.alert{display:flex;align-items:center;gap:10px;padding:11px 14px;border-radius:var(--radius);font-size:13.5px}.alert-error{background:var(--danger-soft);color:var(--danger)}.alert-warning{background:var(--warning-soft);color:var(--text)}.alert-warning .ic{color:var(--warning)}.login{min-height:100vh;display:grid;place-items:center;padding:16px;background:var(--bg)}.login-card{width:100%;max-width:380px;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:28px;box-shadow:var(--shadow-lg)}.login-brand{display:flex;align-items:center;gap:12px;margin-bottom:24px}.login-brand h1{font-size:18px}.logo{width:46px;height:46px;border-radius:12px;display:block;flex-shrink:0}.logo.sm{width:28px;height:28px;border-radius:8px}.shell{display:flex;min-height:100vh}.sidebar{width:var(--sidebar-w);flex-shrink:0;display:flex;flex-direction:column;position:sticky;top:0;height:100vh;padding:14px 16px 18px;gap:6px;z-index:40;background:var(--app-bg);overflow-y:auto}.sidebar-brand{display:flex;align-items:center;gap:12px;padding:0 0 22px}.brand-meta{display:flex;flex-direction:column;min-width:0}.brand-meta strong{font-size:15px}.docker-status{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}.sidebar-nav{display:flex;flex-direction:column;gap:2px}.nav-item{display:flex;align-items:center;gap:14px;height:42px;padding:0 14px;border-radius:var(--radius);color:var(--text);font-weight:600;font-size:15px;border:none;background:none;width:100%;cursor:pointer;text-align:left}.nav-item i{color:var(--text-2)}.nav-item:hover{background:var(--nav-hover)}.nav-item.active{background:var(--nav-active);color:var(--text);box-shadow:inset 0 0 0 1px var(--nav-active-ring)}.nav-item.active i,.nav-item.active .ic{color:var(--text)}.sidebar-divider{height:1px;background:var(--border);margin:14px 0}.sidebar-spacer{flex:1;min-height:20px}.dot{width:9px;height:9px;border-radius:50%;background:var(--muted);flex-shrink:0}.dot.running,.dot.ok{background:var(--success)}.dot.stopped,.dot.err{background:var(--danger)}.dot.restarting,.dot.partial,.dot.deploying{background:var(--warning)}.dot.not_deployed,.dot.unknown{background:var(--border-strong)}.main{flex:1;min-width:0;background:var(--bg);margin-top:14px;border-top-left-radius:16px;border:1px solid var(--border);border-right:none;border-bottom:none;min-height:calc(100vh - 14px)}.mobile-bar{display:none}.content{padding:40px 32px 64px;width:100%;max-width:1200px;margin:0 auto}.page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px;flex-wrap:wrap}.page-head h1{font-size:28px}.page-head p{margin-top:4px;color:var(--muted)}.page-head .actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.page-title-row{display:flex;align-items:center;gap:14px;min-width:0}.crumbs{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted);margin-bottom:14px;flex-wrap:wrap}.crumbs a:hover{color:var(--text)}.metrics-strip{display:grid;grid-template-columns:repeat(4,1fr);background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:14px 0 12px;margin-bottom:16px}.metric{padding:0 12px;min-width:0;border-left:1px solid var(--border)}.metric:first-child{border-left:none}.metric .m-label{font-size:12px;color:var(--muted)}.metric .m-value{font-size:20px;font-weight:700;letter-spacing:-.01em;line-height:1.3}.metric .m-sub{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;height:16px}.metric svg.spark{display:block;width:100%;height:48px;margin-top:8px}.section-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:36px 0 20px;flex-wrap:wrap}.section-bar h1{font-size:28px}.section-bar .actions{display:flex;gap:14px;flex-wrap:wrap}.proj-group{margin-bottom:30px}.proj-group-head{display:flex;align-items:center;gap:6px;padding:0 12px 12px;border-bottom:1px solid var(--border);margin-bottom:16px}.proj-group-head h2{font-size:20px;font-weight:600;margin-right:8px}.proj-group-head h2 a:hover{text-decoration:underline;text-underline-offset:4px}.proj-group-head .icon-btn{width:30px;height:30px}.proj-group-head .count{margin-left:auto;color:var(--muted);font-size:13px}.svc-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.svc-card{display:flex;align-items:center;gap:12px;min-height:64px;padding:12px 16px;background:var(--surface);border:1px solid transparent;border-radius:var(--radius);box-shadow:var(--shadow);transition:border-color .12s,background .12s;min-width:0}.svc-card:hover{border-color:var(--border-strong)}.svc-card .info{flex:1;min-width:0}.svc-card .name{font-weight:600;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.svc-card .type{font-size:12px;font-weight:600;color:var(--muted);display:flex;align-items:center;gap:4px}.svc-card .type .ic{width:12px;height:12px}.svc-card.new{justify-content:center;color:var(--muted);border:1px dashed var(--border-strong);background:transparent;cursor:pointer;font-weight:600;box-shadow:none}.svc-card.new:hover{color:var(--text);border-color:var(--primary)}.group-empty{color:var(--muted);font-size:13.5px;padding:4px 12px}.group-empty button{background:none;border:none;color:var(--accent);cursor:pointer;font-weight:600;padding:0}.collapsed-list{display:flex;flex-direction:column;gap:6px}.collapsed-row{display:flex;align-items:center;gap:12px;padding:12px 16px;background:var(--surface);border-radius:var(--radius)}.collapsed-row:hover{background:var(--surface-hover)}.collapsed-row strong{flex:1;font-size:15px}.collapsed-row .tile-dots{display:flex;gap:5px}.card{background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:var(--shadow)}.card-body{padding:20px}.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid var(--border);flex-wrap:wrap}.card-head h3{font-size:15px;font-weight:600}.card-head p{color:var(--muted);font-size:13px;margin-top:2px}.card-foot{display:flex;justify-content:flex-end;gap:8px;padding:12px 20px;border-top:1px solid var(--border)}.empty{text-align:center;padding:56px 24px}.empty .svc-icon{margin:0 auto 16px}.empty h3{font-size:17px}.empty p{color:var(--muted);margin:6px auto 20px;max-width:440px}.empty .actions{display:flex;justify-content:center;gap:8px;flex-wrap:wrap}.svc-icon{width:40px;height:40px;border-radius:10px;display:grid;place-items:center;background:var(--surface-2);color:var(--text-2);flex-shrink:0}.svc-icon.lg{width:48px;height:48px;border-radius:12px}.svc-icon.lg .ic{width:24px;height:24px}.badge{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 9px;border-radius:999px;font-size:12px;font-weight:600;background:var(--surface-2);color:var(--text-2);white-space:nowrap}.badge.running{background:var(--success-soft);color:var(--success)}.badge.stopped{background:var(--danger-soft);color:var(--danger)}.badge.restarting,.badge.partial{background:var(--warning-soft);color:var(--warning)}.badge .dot{width:6px;height:6px;background:currentColor}.table{width:100%;border-collapse:collapse;font-size:13.5px}.table th{text-align:left;font-size:12px;font-weight:600;color:var(--muted);padding:10px 20px;border-bottom:1px solid var(--border);white-space:nowrap}.table td{padding:12px 20px;border-bottom:1px solid var(--border);vertical-align:middle}.table tr:last-child td{border-bottom:none}.table tr.clickable{cursor:pointer}.table tr.clickable:hover td{background:var(--surface-hover)}.table-wrap{overflow-x:auto}.cell-flex{display:flex;align-items:center;gap:8px}.svc-header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:18px 20px}.svc-header .meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:6px;font-size:13px;color:var(--muted)}.svc-header h1{font-size:22px}.svc-header .actions{display:flex;gap:8px;flex-wrap:wrap}.link{color:var(--accent);display:inline-flex;align-items:center;gap:4px}.link:hover{text-decoration:underline}.link .ic{width:12px;height:12px}.svc-layout{display:grid;grid-template-columns:210px 1fr;gap:20px;margin-top:20px;align-items:start}.svc-tabs{display:flex;flex-direction:column;gap:2px;position:sticky;top:20px}.svc-tab{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:var(--radius);color:var(--text-2);font-weight:600;font-size:14px}.svc-tab .ic{width:16px;height:16px;color:var(--muted)}.svc-tab:hover{background:var(--nav-hover);color:var(--text)}.svc-tab.active{background:var(--nav-active);color:var(--text);box-shadow:inset 0 0 0 1px var(--nav-active-ring)}.svc-tab.active .ic{color:var(--primary)}.svc-panel{display:flex;flex-direction:column;gap:16px;min-width:0}.kv{display:grid;grid-template-columns:repeat(2,1fr);margin:0}.kv>div{padding:14px 20px;border-bottom:1px solid var(--border);min-width:0}.kv>div:nth-child(odd){border-right:1px solid var(--border)}.kv>div:nth-last-child(-n+2){border-bottom:none}.kv dt{font-size:12px;color:var(--muted);margin-bottom:4px}.kv dd{margin:0;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stat-row{display:grid;grid-template-columns:repeat(4,1fr)}.stat-row>div{padding:14px 20px;border-left:1px solid var(--border)}.stat-row>div:first-child{border-left:none}.stat-row .label{font-size:12px;color:var(--muted)}.stat-row .value{font-size:18px;font-weight:700}.stat-row .sub{font-size:11.5px;color:var(--muted)}.console{background:var(--code-bg);color:var(--code-text);font-family:var(--mono);font-size:12.5px;line-height:1.65;padding:16px 18px;margin:0;overflow:auto;white-space:pre-wrap;word-break:break-word;min-height:220px;max-height:600px;border-radius:0 0 10px 10px}.console.tall{height:560px}.live-pill{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--muted)}.live-pill .dot{width:7px;height:7px}.live-pill.on{color:var(--success)}.live-pill.on .dot{background:var(--success);animation:pulse 1.4s ease-in-out infinite}@keyframes pulse{50%{opacity:.35}}.deploy-row{display:flex;align-items:center;gap:12px;padding:14px 20px}.deploy-row .grow{flex:1;min-width:0}.key-row{display:flex;gap:8px}.key-row input{font-family:var(--mono);font-size:12.5px}.tabs-h{display:flex;gap:4px;border-bottom:1px solid var(--border);margin-bottom:20px}.tab-h{padding:9px 12px;font-weight:600;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-1px;display:inline-flex;align-items:center;gap:8px}.tab-h .ic{width:16px;height:16px}.tab-h:hover{color:var(--text)}.tab-h.active{color:var(--text);border-bottom-color:var(--primary)}.monitor-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.monitor-card{padding:18px 20px}.monitor-card .top{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.monitor-card .label{font-size:13px;color:var(--muted);font-weight:600}.monitor-card .value{font-size:30px;font-weight:700;letter-spacing:-.02em}.monitor-card .sub{font-size:12.5px;color:var(--muted)}.monitor-card svg.spark{display:block;width:100%;height:120px;margin-top:14px}.bar{height:6px;border-radius:999px;background:var(--surface-2);overflow:hidden;margin-top:10px}.bar>span{display:block;height:100%;border-radius:inherit}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;display:grid;place-items:center;padding:16px;z-index:100;animation:fade .12s ease}.modal-backdrop.top{place-items:start center;padding-top:12vh}.modal{width:100%;max-width:480px;max-height:calc(100vh - 32px);overflow-y:auto;background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow-lg);animation:pop .14s ease}.modal.lg{max-width:640px}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px 0}.modal-head h3{font-size:17px}.modal-body{padding:18px 20px}.modal-foot{display:flex;justify-content:flex-end;gap:8px;padding:14px 20px;border-top:1px solid var(--border)}@keyframes fade{0%{opacity:0}}@keyframes pop{0%{opacity:0;transform:translateY(6px) scale(.98)}}.type-picker{display:grid;grid-template-columns:1fr 1fr;gap:10px}.type-option{display:flex;gap:12px;align-items:flex-start;padding:14px;border:1px solid var(--border);border-radius:10px;cursor:pointer;background:var(--bg);text-align:left}.type-option:hover{border-color:var(--border-strong)}.type-option.active{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft)}.type-option strong{display:block;font-size:13.5px}.type-option span{font-size:12.5px;color:var(--muted)}.search-box{max-width:560px}.search-input-wrap{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--border)}.search-input-wrap input{border:none;background:transparent;height:28px;padding:0;font-size:15px;box-shadow:none!important}.search-results{max-height:380px;overflow-y:auto;padding:6px}.search-item{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:var(--radius);cursor:pointer}.search-item .ic{color:var(--muted)}.search-item .sub{margin-left:auto;font-size:12px;color:var(--muted)}.search-item.active,.search-item:hover{background:var(--surface-hover)}.search-empty{padding:24px;text-align:center;color:var(--muted)}.toasts{position:fixed;right:16px;bottom:16px;display:flex;flex-direction:column;gap:8px;z-index:200;max-width:calc(100vw - 32px)}.toast{display:flex;align-items:flex-start;gap:10px;min-width:260px;max-width:400px;padding:12px 14px;background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:var(--shadow-lg);font-size:13.5px;animation:pop .16s ease}.toast .ic{margin-top:1px;color:var(--success);width:16px;height:16px}.toast.error .ic{color:var(--danger)}@media (max-width: 1100px){.svc-grid{grid-template-columns:repeat(3,1fr)}}@media (max-width: 960px){.svc-grid{grid-template-columns:repeat(2,1fr)}.metrics-strip{grid-template-columns:repeat(2,1fr);row-gap:16px}.metric:nth-child(3){border-left:none}.monitor-grid,.svc-layout{grid-template-columns:1fr}.svc-tabs{position:static;flex-direction:row;overflow-x:auto}.svc-tab{white-space:nowrap}.stat-row{grid-template-columns:repeat(2,1fr)}.stat-row>div:nth-child(3){border-left:none}}@media (max-width: 760px){.sidebar{position:fixed;left:0;top:0;bottom:0;transform:translate(-100%);transition:transform .2s ease;box-shadow:var(--shadow-lg)}.shell.nav-open .sidebar{transform:none}.sidebar-backdrop{display:none}.shell.nav-open .sidebar-backdrop{display:block;position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;z-index:35}.main{margin-top:0;border-radius:0;border:none}.mobile-bar{display:flex;align-items:center;gap:10px;padding:10px 16px;border-bottom:1px solid var(--border);position:sticky;top:0;background:var(--bg);z-index:30}.content{padding:20px 16px 40px}.page-head h1,.section-bar h1{font-size:24px}.svc-grid,.grid-2,.type-picker,.kv{grid-template-columns:1fr}.kv>div:nth-child(odd){border-right:none}.kv>div:nth-last-child(2){border-bottom:1px solid var(--border)}}.domain-list{display:flex;flex-direction:column;gap:10px;padding:16px;background:var(--bg);margin:0 8px 8px;border-radius:8px}.domain-row{display:grid;grid-template-columns:1fr 28px 1fr auto;align-items:center;gap:8px}.domain-cell{display:block;padding:9px 16px;background:var(--surface);border-radius:var(--radius-sm);font-weight:500;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}a.domain-cell:hover{background:var(--surface-hover)}.domain-arrow{display:grid;place-items:center;color:var(--muted)}.domain-arrow .ic{width:16px;height:16px}.domain-actions{display:flex;gap:8px;padding-left:16px}.icon-btn.boxed{width:38px;height:38px;background:var(--surface);color:var(--text-2)}.icon-btn.boxed:hover{background:var(--surface-hover);color:var(--text)}.icon-btn.boxed .ic{width:16px;height:16px}@media (max-width: 760px){.domain-row{grid-template-columns:1fr}.domain-arrow{transform:rotate(90deg);justify-self:start;padding-left:12px}.domain-actions{padding-left:0}}.shell.in-project .sidebar{width:80px;padding:14px 12px 18px;align-items:center}.shell.in-project .sidebar .lbl,.shell.in-project .sidebar kbd,.shell.in-project .sidebar .brand-meta,.shell.in-project .sidebar .toggle{display:none}.shell.in-project .sidebar .nav-item{width:44px;padding:0;justify-content:center;gap:0}.shell.in-project .sidebar .sidebar-divider{width:100%}.shell.in-project .sidebar .sidebar-brand{padding-bottom:18px}.subnav{width:300px;flex-shrink:0;position:sticky;top:0;height:100vh;overflow-y:auto;background:var(--app-bg);border-left:1px solid var(--border);padding:20px 20px 24px;display:flex;flex-direction:column;gap:6px}.proj-switch{position:relative;margin-bottom:18px}.proj-switch .ic{position:absolute;top:50%;transform:translateY(-50%);pointer-events:none;color:var(--text-2);width:16px;height:16px}.proj-switch .ic.left{left:14px}.proj-switch .ic.right{right:12px}.proj-switch select{-webkit-appearance:none;-moz-appearance:none;appearance:none;height:40px;padding:0 36px 0 42px;background:var(--surface);border:1px solid transparent;font-weight:600;font-size:14.5px;cursor:pointer}.subnav-title{display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:600;letter-spacing:.05em;color:var(--muted);padding:0 0 0 2px;margin-bottom:4px}.subnav-title .icon-btn{width:26px;height:26px}.subnav-link{display:flex;align-items:center;gap:12px;height:40px;padding:0 14px;border-radius:var(--radius);font-weight:600;font-size:14.5px;color:var(--text)}.subnav-link .dot{width:7px;height:7px}.subnav-link .ic{width:15px;height:15px;color:var(--muted)}.subnav-link:hover{background:var(--nav-hover)}.subnav-link.active{background:var(--nav-active);box-shadow:inset 0 0 0 1px var(--nav-active-ring)}.subnav-link.active .ic{color:var(--text)}.subnav-link .name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.subnav-divider{height:1px;background:var(--border);margin:14px -20px}.subnav-empty{color:var(--muted);font-size:13px;padding:4px 14px}.svc-title{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:18px}.svc-title h1{font-size:30px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.svc-title h1 .sep{color:var(--muted);font-weight:400}.svc-title h1 a:hover{text-decoration:underline;text-underline-offset:5px}.type-tag{font-size:11px;font-weight:700;letter-spacing:.04em;padding:3px 8px;border-radius:999px;background:var(--success-soft);color:var(--success);text-transform:uppercase}.svc-title .actions{display:flex;gap:8px}.square-btn{width:40px;height:40px;padding:0}.action-bar{overflow:visible}.action-bar .row{display:flex;align-items:center;gap:4px;padding:10px;flex-wrap:wrap}.action-bar .row .btn-primary{height:38px;padding:0 16px;margin-right:6px}.action-bar .icon-btn{width:38px;height:38px;color:var(--text)}.action-bar .icon-btn .ic{width:16px;height:16px;opacity:.8}.action-bar .icon-btn:hover .ic{opacity:1}.action-bar .icon-btn:hover{color:var(--text)}.action-bar .icon-btn.danger:hover{color:var(--danger);background:var(--danger-soft)}.action-bar .icon-btn:disabled{opacity:.4;cursor:not-allowed}.action-bar .stats{border-radius:0 0 10px 10px;display:flex;gap:40px;flex-wrap:wrap;padding:10px 16px;border-top:1px solid var(--border);background:var(--surface-2);font-size:13px;color:var(--muted)}.action-bar .stats b{color:var(--text);font-weight:700}.svc-body{display:flex;flex-direction:column;gap:16px;margin-top:16px}.logs-card .card-head{padding:10px 16px 10px 20px}.logs-card .console{border-radius:0 0 10px 10px;height:420px;max-height:none}.logs-card.fullscreen{position:fixed;top:12px;right:12px;bottom:12px;left:12px;z-index:90;display:flex;flex-direction:column}.logs-card.fullscreen .console{flex:1;height:auto}.channel{border-top:1px solid var(--border)}.channel:first-of-type{border-top:none}.channel-head{display:flex;align-items:center;gap:12px;padding:14px 20px}.channel-head strong{flex:1}.channel-body{padding:0 20px 18px}.check-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:10px 16px}.backup-item{border-top:1px solid var(--border)}.backup-item:first-child{border-top:none}.backup-main{display:flex;align-items:center;gap:14px;padding:14px 20px;flex-wrap:wrap}.backup-main .grow{flex:1;min-width:200px}.backup-main .meta{font-size:12.5px;color:var(--muted)}.backup-files{padding:0 20px 14px}.file-row{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:var(--radius-sm);background:var(--surface-2);margin-top:6px;font-size:13px}.file-row .grow{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--mono);font-size:12.5px}.file-row .icon-btn{width:28px;height:28px}.tag-auto{font-size:11px;font-weight:600;padding:2px 7px;border-radius:999px;background:var(--surface-2);color:var(--muted);margin-left:8px}@media (max-width: 1100px){.subnav{width:240px}}@media (max-width: 760px){.shell.in-project .sidebar{width:var(--sidebar-w);align-items:stretch}.shell.in-project .sidebar .lbl,.shell.in-project .sidebar kbd,.shell.in-project .sidebar .brand-meta{display:revert}.shell.in-project .sidebar .toggle{display:inline-block}.shell.in-project .sidebar .nav-item{width:100%;padding:0 14px;justify-content:flex-start;gap:14px}.shell{flex-direction:column}.subnav{position:static;width:100%;height:auto;border-left:none;border-bottom:1px solid var(--border);padding:12px 16px;order:0}.subnav-divider{margin:10px -16px}.subnav .svc-nav{display:flex;overflow-x:auto;gap:4px}.subnav .svc-nav .subnav-link{white-space:nowrap}.action-bar .stats{gap:16px}.svc-title h1{font-size:22px}}.le{display:flex;flex-direction:column;gap:8px;align-items:flex-start}.le-head,.le-row{display:grid;grid-template-columns:repeat(var(--le-cols, 3),minmax(0,1fr)) 36px;gap:8px;width:100%;align-items:center}.le-head span{font-size:12px;font-weight:600;color:var(--muted)}.le-rows{display:flex;flex-direction:column;gap:8px;width:100%}.le-check{height:38px;font-weight:500}.le-del{width:36px;height:36px}.le-del:hover{color:var(--danger);background:var(--danger-soft)}.le:has(.le-row>:nth-child(3):last-child){--le-cols: 2}.le:has(.le-row>:nth-child(5):last-child){--le-cols: 4}.deploy-list{display:flex;flex-direction:column;gap:8px;padding:12px}.deploy-item{display:flex;align-items:center;gap:14px;padding:10px 12px 10px 14px;background:var(--surface-2);border-radius:var(--radius)}.deploy-item .grow{flex:1;min-width:0;font-weight:500;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.deploy-item code{margin-right:4px}.nowrap{white-space:nowrap;font-size:13px}.deploy-status{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;color:#fff}.deploy-status .ic{width:13px;height:13px}.deploy-status.ok{background:var(--success)}.deploy-status.err{background:var(--danger)}@media (max-width: 760px){.le-head{display:none!important}.le-row{grid-template-columns:1fr 36px}.le-row>:not(.le-del){grid-column:1}.le-row>.le-del{grid-column:2;grid-row:1}.deploy-item{flex-wrap:wrap}}.mon-tabs{margin-top:8px}.mon-table-wrap{border-radius:10px;border:1px solid var(--border)}.mon-table thead th{background:var(--primary);color:#fff;text-transform:uppercase;letter-spacing:.03em;font-size:11.5px}.mon-table td{padding:9px 16px;font-size:13.5px}.mon-table th.num,.mon-table td.num,.table .num{text-align:right;white-space:nowrap}.mon-table tr.lvl0 td{background:var(--surface);font-weight:600;cursor:pointer}.mon-table tr.lvl1 td{cursor:pointer}.mon-table tr.lvl1 td:first-child{padding-left:34px}.mon-table tr.lvl2 td:first-child{padding-left:62px;font-size:12.5px}.mon-table tr.lvl2 td{color:var(--text-2)}.mon-table tr.lvl2 .dot{display:inline-block;width:7px;height:7px;margin-right:8px}.mon-table tr.lvl0:hover td,.mon-table tr.lvl1:hover td{background:var(--surface-hover)}.caret{display:inline-flex;width:16px;height:16px;margin-right:6px;vertical-align:-3px;color:var(--muted);transition:transform .12s}.caret .ic{width:16px;height:16px}.caret.open{transform:rotate(90deg)}.toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:14px}.stat-tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.stat-tile{padding:16px 18px;display:flex;flex-direction:column;gap:4px;align-items:flex-start}.stat-tile .label{font-size:12.5px;color:var(--muted);font-weight:600}.stat-tile .value{font-size:22px;font-weight:700}.stat-tile .sub{font-size:12px;color:var(--muted);margin-bottom:8px}@media (max-width: 960px){.stat-tiles{grid-template-columns:repeat(2,1fr)}}.settings-2col{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}.pw-wrap{position:relative}.pw-wrap input{padding-right:44px}.pw-eye{position:absolute;right:4px;top:50%;transform:translateY(-50%)}.qr-wrap{display:flex}.qr-wrap #qr{background:#fff;padding:10px;border-radius:8px;line-height:0}.qr-wrap #qr img,.qr-wrap #qr canvas{display:block}@media (max-width: 960px){.settings-2col{grid-template-columns:1fr}}:root{--tip-bg: #171717;--tip-fg: #fafafa}:root[data-theme=dark]{--tip-bg: #fafafa;--tip-fg: #0a0a0a}[data-tip]{position:relative}[data-tip]:after,[data-tip]:before{position:absolute;left:50%;pointer-events:none;opacity:0;visibility:hidden;z-index:80;transition:opacity .12s ease,transform .12s ease,visibility 0s linear .12s}[data-tip]:after{content:attr(data-tip);bottom:calc(100% + 9px);transform:translate(-50%,4px);white-space:nowrap;background:var(--tip-bg);color:var(--tip-fg);font-size:12px;font-weight:500;line-height:1.35;letter-spacing:0;padding:6px 12px;border-radius:6px;box-shadow:0 6px 16px #00000047}[data-tip]:before{content:"";bottom:calc(100% + 5px);width:9px;height:9px;border-radius:2px;background:var(--tip-bg);transform:translate(-50%,4px) rotate(45deg)}[data-tip]:hover:after,[data-tip]:hover:before,[data-tip]:focus-visible:after,[data-tip]:focus-visible:before{opacity:1;visibility:visible;transition-delay:.15s,.15s,0s}[data-tip]:hover:after,[data-tip]:focus-visible:after{transform:translate(-50%)}[data-tip]:hover:before,[data-tip]:focus-visible:before{transform:translate(-50%) rotate(45deg)}[data-tip=""]:after,[data-tip=""]:before{display:none}.console-term{height:380px;max-height:none;border-radius:8px;margin:0}.term-input{display:flex;align-items:center;gap:8px;background:var(--code-bg);border-radius:8px;padding:0 12px}.term-input input{background:transparent;border:none;color:var(--code-text);font-family:var(--mono);font-size:13px;box-shadow:none!important;padding:0}.term-prompt{color:var(--success);font-family:var(--mono);font-weight:700}.term-cmdline{color:var(--success)}.term-err{color:var(--danger)}.login{flex-direction:column;display:flex;align-items:center;justify-content:center;gap:18px}.login-card{max-width:380px;padding:36px 24px 22px;border-radius:16px;border:6px solid var(--app-bg);box-shadow:0 0 0 1px var(--border)}.login-brand{justify-content:center;margin-bottom:30px;gap:10px}.login-brand .logo{width:42px;height:42px}.wordmark{font-size:34px;font-weight:700;letter-spacing:-.03em}.req{color:var(--danger);font-style:normal}.remember{font-weight:500;font-size:15px}.remember input{width:18px!important;height:18px!important}.login-btn{height:40px;padding:0 20px;font-size:14.5px}.login-forgot{font-size:14px;color:var(--text-2)}.login-forgot:hover{color:var(--text);text-decoration:underline}.login-foot{color:var(--text-2);font-size:14px}.add-domain{width:100%;height:40px;background:var(--surface);border-color:transparent}.icon-btn.boxed.star-on{color:#facc15}.icon-btn.boxed.star-on svg{fill:#facc15}.icon-btn:disabled{opacity:.4;cursor:not-allowed}.replicas-row{display:grid;grid-template-columns:1fr auto;gap:24px;align-items:end}.replicas-row .switch-row{height:38px;font-size:14px}.switch-row .toggle{margin:0}.nest{padding:16px;background:var(--bg);margin:0 8px 8px;border-radius:8px}.nest.flush{padding:0;overflow:hidden}.nest>p{color:var(--text-2);line-height:1.6}.nest-empty{color:var(--text-2)}.mount-list{display:flex;flex-direction:column;gap:8px}.mount-row{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 10px 10px 12px;background:var(--surface);border:1px solid var(--border);border-radius:8px}.mount-kind{width:38px;height:38px;border-radius:8px;display:grid;place-items:center;background:var(--surface-2);color:var(--text-2)}.mount-kind .ic{width:17px;height:17px}.mount-kind[data-kind=volume]{color:#60a5fa}.mount-kind[data-kind=bind]{color:#f59e0b}.mount-kind[data-kind=file]{color:#a78bfa}.mount-info{min-width:0}.mount-type{font-size:12px;font-weight:600;color:var(--muted);display:flex;gap:8px;align-items:center;margin-bottom:3px}.mount-ro{font-weight:500;padding:1px 6px;border-radius:999px;background:var(--surface-2);font-size:11px}.mount-path{display:flex;align-items:center;gap:8px;min-width:0;font-family:var(--mono);font-size:13px}.mount-path code{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:none;padding:0;color:var(--text)}.mount-chip{color:var(--text-2);white-space:nowrap;font-family:var(--font, inherit);font-size:12.5px}.mount-arrow{color:var(--muted);display:inline-flex;flex-shrink:0}.mount-arrow .ic{width:14px;height:14px}.mount-add{display:flex;gap:8px}.mount-add .btn{flex:1;height:40px;justify-content:center;background:var(--surface);border-color:transparent;font-weight:600}.mount-add .btn:hover{background:var(--surface-hover)}.schedule-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.nest .backup-item{background:var(--surface)}@media (max-width: 900px){.mount-add{flex-direction:column}.schedule-grid{grid-template-columns:1fr 1fr}.mount-row{grid-template-columns:38px minmax(0,1fr)}.mount-row .domain-actions{grid-column:1 / -1;justify-content:flex-end}}.logs-card{display:flex;flex-direction:column}.logs-card .card-head{padding:8px 12px 8px 20px;border-bottom:none}.logs-card .card-head h3{font-weight:600}.logs-title{display:flex;align-items:center;gap:12px}.logs-tools{display:flex;align-items:center;gap:2px}.logs-tools .icon-btn svg{display:block}.term-wrap{margin:0 6px 6px;height:387px;border-radius:12px;background:#000;border:1px solid var(--border);overflow:hidden;padding:10px 4px 10px 14px}.term-host{width:100%;height:100%}.term-host .xterm{height:100%}.term-host .xterm-viewport{background:#000!important;scrollbar-width:thin;scrollbar-color:#3f3f46 transparent}.term-host .xterm-viewport::-webkit-scrollbar{width:8px}.term-host .xterm-viewport::-webkit-scrollbar-thumb{background:#3f3f46;border-radius:8px}.logs-card.fullscreen{position:fixed;top:12px;right:12px;bottom:12px;left:12px;z-index:90;box-shadow:0 20px 60px #00000080}.logs-card.fullscreen .term-wrap{flex:1;height:auto}@media (max-width: 700px){.term-wrap{height:320px;padding-left:8px}.logs-card .card-head{padding-left:14px}}:root{--cm-bg: #ffffff;--cm-gutter: #a1a1aa;--cm-active: rgba(0, 0, 0, .035);--cm-selection: rgba(37, 99, 235, .18);--cm-key: #0550ae;--cm-value: inherit;--cm-comment: #6e7781;--cm-keyword: #8250df;--cm-number: #0a3069}:root[data-theme=dark]{--cm-bg: #0a0a0a;--cm-gutter: #52525b;--cm-active: rgba(255, 255, 255, .04);--cm-selection: rgba(96, 165, 250, .25);--cm-key: #79c0ff;--cm-comment: #8b949e;--cm-keyword: #d2a8ff;--cm-number: #a5d6ff}.code-editor{width:100%}.code-editor .cm-editor{max-height:70vh}.env-card .card-head{padding:8px 16px;border-bottom:none}.env-card .card-head h3{font-weight:600;color:var(--muted);font-size:15px}.env-card .nest{background:var(--cm-bg);border:1px solid var(--border);border-radius:12px;margin:0 6px 6px;padding:16px}.env-form{display:flex;flex-direction:column;gap:16px}.env-editor-frame{border:1px solid #4b5563;border-radius:6px;overflow:hidden}:root:not([data-theme=dark]) .env-editor-frame{border-color:#d4d4d8}.env-hint{margin:-6px 0 0;font-size:13px;color:var(--muted)}.env-switch{display:inline-flex;align-items:center;gap:16px;cursor:pointer;font-size:16px;font-weight:500;-webkit-user-select:none;user-select:none;width:max-content}.ep-switch{display:inline-flex;align-items:center;width:34px;height:20px;padding:2px;border-radius:9999px;background:#d4d4d8;transition:background-color .15s ease;flex-shrink:0;outline:none}:root[data-theme=dark] .ep-switch{background:#ffffff3d}.ep-switch[data-checked]{background:#3182ce}:root[data-theme=dark] .ep-switch[data-checked]{background:#90cdf4}.ep-switch:focus-visible{box-shadow:0 0 0 3px #05966999}.ep-switch-thumb{display:block;width:16px;height:16px;border-radius:9999px;background:#fff;transition:transform .2s ease}.ep-switch[data-checked] .ep-switch-thumb{transform:translate(14px)}.env-save{height:40px;padding:0 16px;font-size:16px;font-weight:600;background:#059669;border-color:#059669;color:#fff;border-radius:4px}.env-save:hover:not(:disabled){background:#047857;border-color:#047857}.env-save:active:not(:disabled){background:#065f46}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}@media (max-width: 700px){.env-card .nest{padding:10px}}.ns-tabs{margin-bottom:16px}.ns-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:16px;align-items:start}.ns-picker{display:flex;flex-direction:column;gap:6px;min-width:0}.ns-group{font-size:12px;font-weight:600;color:var(--muted);margin:10px 0 6px}.ns-picker>div:first-child .ns-group{margin-top:0}.ns-picker>div{display:flex;flex-direction:column;gap:6px}.ns-option{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;text-align:left;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:10px;cursor:pointer}.ns-option:hover{border-color:var(--border-strong)}.ns-option.active{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-soft)}.ns-option>span:last-child{display:flex;flex-direction:column;min-width:0}.ns-option strong{font-size:13.5px}.ns-option small{font-size:12px;color:var(--muted)}.ns-form{display:flex;flex-direction:column;gap:18px;padding:20px;min-width:0}.ns-form-head{display:flex;align-items:center;gap:12px}.ns-form-head h2{margin:0;font-size:17px}.ns-form-head p{margin:2px 0 0;font-size:13px}.ns-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ns-wide{grid-column:1 / -1}.ns-mono{font-family:JetBrains Mono,ui-monospace,Consolas,monospace;font-size:12.5px}.ns-error{color:var(--danger)!important}.ns-secret{display:flex;align-items:center;gap:4px}.ns-secret input{flex:1;min-width:0}.ns-connection{display:flex;flex-direction:column;gap:6px;padding:12px;font-size:12.5px;background:var(--surface-2);border-radius:8px}.ns-connection code{overflow-wrap:anywhere}.ns-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding-top:16px;border-top:1px solid var(--border)}.tile-danger .value{color:var(--danger)}.sched-row{cursor:pointer}.sched-row:hover{background:var(--surface-hover)}.sched-row.off{opacity:.6}.sched-main{display:flex;align-items:flex-start;gap:6px;min-width:0}.sched-main>div{min-width:0}.sched-title{font-weight:600}.sched-cmd{display:block;max-width:460px;margin-top:3px;overflow:hidden;font-size:12px;color:var(--muted);text-overflow:ellipsis;white-space:nowrap;background:none;padding:0}.sched-sub{margin-top:3px;font-size:12px}.sched-detail>td{background:var(--surface-2);white-space:normal}.sched-detail .kv dd{white-space:normal;overflow-wrap:anywhere}.sched-note{margin:10px 0 0;font-size:13px}.sched-pre{margin:12px 0 0;height:auto;max-height:160px;white-space:pre-wrap;overflow-wrap:anywhere}.sched-evidence{display:flex;flex-direction:column;gap:8px;margin-top:12px;font-size:13px}.sched-evidence>div{display:flex;flex-direction:column;gap:3px}.sched-evidence code{overflow-wrap:anywhere}.tcp-hero{padding:20px}.tcp-hero.level-warn{border-color:var(--warning)}.tcp-hero.level-pressure,.tcp-hero.level-critical{border-color:var(--danger)}.tcp-hero-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.tcp-hero .label{font-size:13px;color:var(--muted)}.tcp-value{margin:4px 0;font-size:30px;font-weight:700}.tcp-bar{position:relative;height:10px;margin-top:16px;background:var(--surface-2);border-radius:99px}.tcp-bar>span{display:block;height:100%;background:var(--success);border-radius:99px}.level-warn .tcp-bar>span{background:var(--warning)}.level-pressure .tcp-bar>span,.level-critical .tcp-bar>span{background:var(--danger)}.tcp-bar>i{position:absolute;top:-3px;bottom:-3px;width:2px;background:var(--warning)}.tcp-scale{display:grid;grid-template-columns:1fr 1fr 1fr;margin-top:7px;font-size:12px;color:var(--muted)}.tcp-scale span:nth-child(2){text-align:center}.tcp-scale span:nth-child(3){text-align:right}.tcp-text{margin:12px 0 0;font-size:13.5px}.tcp-head{flex-wrap:wrap;gap:10px}.tcp-head .actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.tcp-chart-wrap{padding:12px 16px 4px}.tcp-chart{display:block;width:100%;height:240px}.tcp-legend{display:flex;gap:16px;flex-wrap:wrap;padding:6px 16px 14px;font-size:12px;color:var(--muted)}.tcp-legend span{display:inline-flex;align-items:center;gap:6px}.tcp-legend i{width:14px;height:3px;border-radius:2px}.alert-info{background:var(--surface-2);color:var(--text)}.ext-row{cursor:pointer}.ext-row:hover,.ext-row.active{background:var(--surface-hover)}.ext-path{overflow:hidden;font-size:15px;text-overflow:ellipsis;white-space:nowrap}.ext-cmd{display:block;overflow-wrap:anywhere}.ext-logs{height:340px;margin:0;border-radius:0 0 var(--radius-sm) var(--radius-sm)}@media (max-width: 860px){.ns-layout,.ns-fields{grid-template-columns:minmax(0,1fr)}.sched-cmd{max-width:190px}}.mon-tabs{max-width:100%;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none}.mon-tabs::-webkit-scrollbar{display:none}.mon-tabs .tab-h{flex:0 0 auto;white-space:nowrap}.stat-tiles>.card{min-width:0}.stat-tiles .sub{overflow-wrap:anywhere}.ext-logs{max-width:100%;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}.stat-tile .value.ext-path{display:block;max-width:100%;font-size:13.5px;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
