.login-container{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;padding:20px}.login-title{font-size:28px;margin-bottom:32px;color:#4ec9b0}.login-form{width:100%;max-width:320px;display:flex;flex-direction:column;gap:12px}.login-input{padding:12px;border:1px solid #3c3c3c;border-radius:6px;background:#3c3c3c;color:#d4d4d4;font-size:16px;outline:none}.login-input:focus{border-color:#4ec9b0}.login-error{color:#f44747;font-size:14px}.login-buttons{display:flex;gap:8px}.login-btn{flex:1;padding:12px;border:1px solid #3c3c3c;border-radius:6px;background:#3c3c3c;color:#d4d4d4;font-size:16px;cursor:pointer}.login-btn.primary{background:#0e639c;border-color:#0e639c}.login-btn:disabled{opacity:.5}.login-tabs{display:flex;gap:0;margin-bottom:16px;border-radius:8px;overflow:hidden;border:1px solid #444}.login-tab{flex:1;padding:10px;background:#2d2d2d;border:none;color:#999;font-size:14px;cursor:pointer}.login-tab.active{background:#1e90ff;color:#fff}.login-mode{display:flex;gap:8px;margin-bottom:16px}.login-mode button{flex:1;padding:8px;background:#2d2d2d;border:1px solid #444;border-radius:6px;color:#999;cursor:pointer}.login-mode button.active{background:#3d3d3d;color:#fff;border-color:#1e90ff}.sms-row{display:flex;gap:8px}.sms-code{flex:1}.sms-send-btn{padding:0 16px;background:#1e90ff;border:none;border-radius:6px;color:#fff;font-size:13px;cursor:pointer;white-space:nowrap}.sms-send-btn:disabled{background:#555;cursor:not-allowed}.sms-message{font-size:12px;color:#4caf50;margin-top:4px}.forgot-link{background:none;border:none;color:#1e90ff;font-size:13px;cursor:pointer;padding:8px 0;margin-top:4px}.admin-panel{height:100%;display:flex;flex-direction:column;background:#1e1e1e;color:#d4d4d4}.admin-header{display:flex;align-items:center;gap:12px;padding:12px 16px;border-bottom:1px solid #333}.admin-back{background:none;border:1px solid #444;color:#1e90ff;padding:6px 12px;border-radius:6px;cursor:pointer;font-size:13px}.admin-header h2{margin:0;font-size:18px}.admin-tabs{display:flex;border-bottom:1px solid #333}.admin-tabs button{flex:1;padding:10px;background:none;border:none;border-bottom:2px solid transparent;color:#999;font-size:14px;cursor:pointer}.admin-tabs button.active{color:#1e90ff;border-bottom-color:#1e90ff}.admin-dashboard{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;padding:16px}.stat-card{background:#2d2d2d;border-radius:8px;padding:16px;display:flex;flex-direction:column;align-items:center}.stat-value{font-size:28px;font-weight:700;color:#1e90ff}.stat-label{font-size:12px;color:#999;margin-top:4px}.admin-users{flex:1;overflow-y:auto;padding:16px}.user-count{font-size:13px;color:#999;margin-bottom:12px}.user-row{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid #2d2d2d}.user-row.disabled{opacity:.5}.user-info{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.user-name{font-weight:600}.user-phone{font-size:12px;color:#999}.role-badge{font-size:10px;padding:2px 6px;border-radius:4px;text-transform:uppercase}.role-badge.admin{background:#1e90ff33;color:#1e90ff}.role-badge.user{background:#666;color:#ccc}.disabled-badge{font-size:10px;padding:2px 6px;border-radius:4px;background:#f443;color:#f44}.user-actions{display:flex;gap:4px}.admin-btn.sm{padding:4px 8px;font-size:11px;background:#3d3d3d;border:1px solid #555;border-radius:4px;color:#ccc;cursor:pointer}.admin-btn.danger{color:#f44}.loading{text-align:center;color:#999;padding:40px}.tab-bar{display:flex;overflow-x:auto;flex:1;scrollbar-width:none;-ms-overflow-style:none}.tab-bar::-webkit-scrollbar{display:none}.tab{display:flex;align-items:center;gap:4px;padding:8px 12px;border:none;background:#2d2d2d;color:#888;font-size:12px;cursor:pointer;white-space:nowrap;border-right:1px solid #3c3c3c;flex-shrink:0}.tab.active{background:#1e1e1e;color:#d4d4d4}.tab-dot{width:6px;height:6px;border-radius:50%;flex-shrink:0}.tab-dot-running{background:#4ec9b0}.tab-dot-disconnected{background:#dcdcaa}.tab-dot-dead{background:#888}.tab-label{max-width:80px;overflow:hidden;text-overflow:ellipsis}.tab-add-group{display:flex}.tab-add{color:#4ec9b0}.terminal-view{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:column}.terminal-container{flex:1;overflow:hidden}.terminal-container .xterm{height:100%;padding:4px}.terminal-overlay{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);background:#000c;padding:12px 24px;border-radius:8px;z-index:10;font-size:14px;color:#dcdcaa}*{margin:0;padding:0;box-sizing:border-box}html,body,#root{height:100%;overflow:hidden}body{background:#1e1e1e;color:#d4d4d4;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;-webkit-user-select:none;user-select:none}.app{display:flex;flex-direction:column;height:100%}.app-header{display:flex;background:#252526;border-bottom:1px solid #3c3c3c;align-items:center;flex-shrink:0}.app-body{flex:1;overflow:hidden;position:relative}.app-loading,.no-tabs{display:flex;align-items:center;justify-content:center;height:100%;color:#888;font-size:16px}.logout-btn{background:none;border:none;color:#888;padding:8px 12px;font-size:13px;cursor:pointer;white-space:nowrap}.logout-btn:hover{color:#d4d4d4}.header-actions{display:flex;align-items:center;gap:4px}.admin-gear-btn{background:none;border:1px solid #444;color:orange;font-size:18px;padding:4px 8px;border-radius:6px;cursor:pointer;line-height:1}/**
 * 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}
