:root{--bg: #0f1117;--bg-soft: #161a23;--bg-card: #1b2030;--bg-hover: #232a3d;--border: #2a3247;--text: #e5e9f2;--text-dim: #8b93a7;--primary: #6366f1;--primary-hover: #7c7ff5;--success: #34d399;--danger: #f87171;--warning: #fbbf24;--radius: 10px;font-family:Segoe UI,system-ui,-apple-system,sans-serif}*{box-sizing:border-box}html,body,#root{margin:0;height:100%}body{background:var(--bg);color:var(--text);font-size:14px}a{color:var(--primary-hover);text-decoration:none}.layout{display:flex;height:100vh;overflow:hidden}.sidebar{width:230px;min-width:230px;background:var(--bg-soft);border-right:1px solid var(--border);display:flex;flex-direction:column;padding:16px 10px}.sidebar .brand{font-size:16px;font-weight:700;padding:6px 12px 18px;letter-spacing:.3px}.sidebar .brand span{color:var(--primary-hover)}.sidebar nav{flex:1;display:flex;flex-direction:column;gap:2px;overflow-y:auto}.sidebar nav a{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:8px;color:var(--text-dim);font-weight:500}.sidebar nav a:hover{background:var(--bg-hover);color:var(--text)}.sidebar nav a.active{background:var(--primary);color:#fff}.sidebar .nav-section{font-size:11px;text-transform:uppercase;color:var(--text-dim);padding:14px 12px 4px;letter-spacing:.8px}.sidebar .user-box{border-top:1px solid var(--border);padding:12px;font-size:13px}.sidebar .user-box .role{color:var(--text-dim);font-size:12px}.sidebar .user-box button{margin-top:8px;width:100%}.content{flex:1;overflow-y:auto;padding:24px 28px}.page-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:12px;flex-wrap:wrap}.page-header h1{font-size:20px;margin:0}.page-header .sub{color:var(--text-dim);font-size:13px;margin-top:4px}.card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:18px}.grid{display:grid;gap:14px}button,.btn{background:var(--primary);color:#fff;border:none;border-radius:8px;padding:8px 14px;font-size:13px;font-weight:600;cursor:pointer;font-family:inherit}button:hover,.btn:hover{background:var(--primary-hover)}button:disabled{opacity:.5;cursor:not-allowed}button.secondary{background:var(--bg-hover);color:var(--text);border:1px solid var(--border)}button.secondary:hover{background:var(--border)}button.danger{background:transparent;color:var(--danger);border:1px solid var(--danger)}button.danger:hover{background:#f871711f}button.small{padding:4px 10px;font-size:12px}input,select,textarea{background:var(--bg-soft);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:8px 10px;font-size:13px;font-family:inherit;width:100%}input:focus,select:focus,textarea:focus{outline:2px solid var(--primary);outline-offset:-1px}label{display:block;font-size:12px;color:var(--text-dim);margin-bottom:4px;font-weight:600}.field{margin-bottom:12px}.row{display:flex;gap:12px}.row>*{flex:1}table{width:100%;border-collapse:collapse}th{text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.5px;color:var(--text-dim);padding:8px 10px;border-bottom:1px solid var(--border)}td{padding:10px;border-bottom:1px solid var(--border);vertical-align:middle}tr:hover td{background:var(--bg-hover)}td .actions{display:flex;gap:6px;justify-content:flex-end}.badge{display:inline-block;padding:2px 9px;border-radius:20px;font-size:11px;font-weight:700}.badge.ssh{background:#34d39926;color:var(--success)}.badge.telnet{background:#fbbf242e;color:var(--warning)}.badge.gray{background:var(--bg-hover);color:var(--text-dim)}.badge.green{background:#34d39926;color:var(--success)}.badge.red{background:#f8717126;color:var(--danger)}.badge.yellow{background:#fbbf242e;color:var(--warning)}.badge.blue{background:#6366f133;color:#a5b4fc}.tag-chip{display:inline-flex;align-items:center;gap:5px;padding:2px 9px;border-radius:20px;font-size:11px;font-weight:600;background:var(--bg-hover)}.tag-chip .dot{width:8px;height:8px;border-radius:50%}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:100;padding:20px}.modal{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);width:100%;max-width:560px;max-height:90vh;overflow-y:auto;padding:22px}.modal.wide{max-width:900px}.modal h2{margin:0 0 16px;font-size:17px}.modal .modal-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.login-wrap{height:100vh;display:flex;align-items:center;justify-content:center}.login-card{width:360px}.login-card h1{font-size:20px;text-align:center;margin-bottom:4px}.login-card .sub{text-align:center;color:var(--text-dim);margin-bottom:22px;font-size:13px}.terminal-wrap{background:#000;border-radius:var(--radius);border:1px solid var(--border);padding:8px;height:calc(100vh - 150px)}.terminal-wrap .xterm{height:100%}.output-box{background:#0a0c10;border:1px solid var(--border);border-radius:8px;padding:12px;font-family:Cascadia Mono,Consolas,monospace;font-size:12.5px;white-space:pre-wrap;word-break:break-all;max-height:320px;overflow-y:auto;color:#c8ceda}.tree ul{list-style:none;padding-left:20px;margin:4px 0}.tree>ul{padding-left:0}.tree .node{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:6px}.tree .node:hover{background:var(--bg-hover)}.tree .node .name{font-weight:600}.tree .node .meta{color:var(--text-dim);font-size:12px}.tree .node .actions{margin-left:auto;display:flex;gap:6px;visibility:hidden}.tree .node:hover .actions{visibility:visible}.muted{color:var(--text-dim)}.error-text{color:var(--danger);font-size:13px;margin-top:8px}.success-text{color:var(--success);font-size:13px;margin-top:8px}.warning-banner{background:#fbbf241a;border:1px solid rgba(251,191,36,.4);color:var(--warning);border-radius:8px;padding:10px 14px;font-size:13px;margin-bottom:12px}.toolbar{display:flex;gap:10px;margin-bottom:16px;flex-wrap:wrap}.toolbar input,.toolbar select{width:auto;min-width:160px}.empty{text-align:center;color:var(--text-dim);padding:40px 0}.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin-bottom:20px}.stat{text-align:center}.stat .value{font-size:28px;font-weight:700;color:var(--primary-hover)}.stat .label{color:var(--text-dim);font-size:13px;margin-top:4px}.checkbox-list{display:flex;flex-direction:column;gap:6px;max-height:180px;overflow-y:auto;border:1px solid var(--border);border-radius:8px;padding:10px}.checkbox-list label{display:flex;align-items:center;gap:8px;margin:0;font-weight:400;color:var(--text);font-size:13px;cursor:pointer}.checkbox-list input{width:auto}.switch{position:relative;width:42px;height:24px;display:inline-block}.switch input{opacity:0;width:0;height:0}.switch .slider{position:absolute;top:0;right:0;bottom:0;left:0;background:var(--bg-hover);border:1px solid var(--border);border-radius:24px;cursor:pointer;transition:.2s}.switch .slider:before{content:"";position:absolute;width:16px;height:16px;border-radius:50%;background:var(--text-dim);left:3px;top:3px;transition:.2s}.switch input:checked+.slider{background:var(--primary);border-color:var(--primary)}.switch input:checked+.slider:before{transform:translate(18px);background:#fff}.switch input:disabled+.slider{opacity:.4;cursor:not-allowed}/**
 * 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}
