*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:#0b0f17;color:#d6deeb}.muted{color:#6b7a99}.err{color:#ff6b6b;margin-top:8px;font-size:13px}.pad{padding:12px}.login{height:100%;display:flex;align-items:center;justify-content:center}.login-box{background:#111824;padding:32px;border-radius:12px;width:320px;text-align:center;border:1px solid #1f2a3a}.login-box h1{margin:0;font-size:28px;letter-spacing:1px}.login-box input{width:100%;padding:10px;margin:14px 0;border-radius:8px;border:1px solid #2a3550;background:#0b0f17;color:#d6deeb}.login-box button{width:100%;padding:10px;border:none;border-radius:8px;background:#3b82f6;color:#fff;font-weight:600;cursor:pointer}.app{display:flex;height:100%}.sidebar{width:280px;background:#0e1420;border-right:1px solid #1b2434;display:flex;flex-direction:column;height:100%;overflow-x:hidden}.brand{padding:0;border-bottom:1px solid #1b2434}.brand-row{display:flex;align-items:center;gap:10px;padding:14px 16px}.logo{color:#3b82f6;flex:0 0 auto;font-size:20px}.brand-title{font-size:18px;font-weight:700;flex:1 1 auto;white-space:nowrap}.icon-btn{background:none;border:none;color:#6b7a99;cursor:pointer;font-size:18px;line-height:1;padding:4px 8px;border-radius:6px;flex:0 0 auto}.icon-btn:hover{color:#7fdbff;background:#16203280}.add-btn{margin:12px;padding:10px;border:1px dashed #2a3550;border-radius:8px;background:#111824;color:#7fdbff;cursor:pointer;font-weight:600;text-align:center}.add-btn:hover{background:#16203200;border-color:#3b82f6}.server-list{flex:1;overflow-y:auto;padding:0 8px 12px}.server-item{display:flex;align-items:center;padding:8px 10px;border-radius:8px;margin-bottom:4px}.server-item:hover{background:#16203280}.srv-main{flex:1;cursor:pointer;overflow:hidden}.srv-name{font-weight:600;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.srv-meta{font-size:11px;color:#6b7a99;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.srv-actions{display:flex;gap:2px;opacity:0}.server-item:hover .srv-actions{opacity:1}.srv-actions button{background:none;border:none;color:#6b7a99;cursor:pointer;font-size:13px;padding:2px 4px}.srv-actions button:hover{color:#7fdbff}.main{flex:1;display:flex;flex-direction:column;min-width:0}.tabs{display:flex;background:#0e1420;border-bottom:1px solid #1b2434;min-height:38px;overflow-x:auto}.tab{padding:9px 14px;font-size:13px;color:#6b7a99;cursor:pointer;border-right:1px solid #1b2434;display:flex;align-items:center;gap:8px;white-space:nowrap}.tab.active{background:#0b0f17;color:#d6deeb;border-bottom:2px solid #3b82f6}.tab-close{color:#44506b;font-size:16px}.tab-close:hover{color:#ff6b6b}.term-area{flex:1;position:relative;background:#0b0f17}.term-wrap{position:absolute;top:0;right:0;bottom:0;left:0;padding:6px}.empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px}.empty h2{color:#3b82f6;font-size:32px}.modal-bg{position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:50}.modal{background:#111824;border:1px solid #1f2a3a;border-radius:12px;padding:22px;width:420px;max-height:90vh;overflow-y:auto}.modal h3{margin:0 0 16px}.modal label{display:block;font-size:12px;color:#6b7a99;margin:10px 0 4px}.modal input,.modal select,.modal textarea{width:100%;padding:9px;border-radius:8px;border:1px solid #2a3550;background:#0b0f17;color:#d6deeb;font-family:inherit}.modal textarea{font-family:monospace;font-size:12px}.modal .checkbox{display:flex;align-items:center;gap:8px;font-size:13px;color:#d6deeb;margin-top:6px}.modal .checkbox input{width:auto}.modal .auth-toggle{margin:4px 0 10px;padding:10px;background:#0b0f17;border:1px solid #2a3550;border-radius:8px}.modal .row{display:flex;gap:10px}.modal .row>div{flex:1}.modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:18px}.modal-actions button{padding:9px 16px;border-radius:8px;border:none;cursor:pointer;font-weight:600}.modal-actions button:not(.ghost){background:#3b82f6;color:#fff}.modal-actions .ghost{background:#1b2434;color:#d6deeb}.err-toast{position:fixed;bottom:20px;left:50%;transform:translate(-50%);background:#3a1212;color:#ff9b9b;padding:10px 18px;border-radius:8px;border:1px solid #ff6b6b55;cursor:pointer;z-index:60}.hamburger{display:none;position:fixed;top:8px;left:8px;z-index:60;background:#162032;border:1px solid #2a3550;color:#d6deeb;font-size:20px;width:44px;height:44px;border-radius:10px;cursor:pointer}.drawer-overlay,.mobile-bar{display:none}@media (max-width: 720px){html,body,#root{height:100%}.hamburger{display:block}.sidebar{position:fixed;top:0;left:0;bottom:0;z-index:55;width:84%;max-width:340px;transform:translate(-100%);transition:transform .22s ease;box-shadow:4px 0 24px #000a;height:100%;padding-top:env(safe-area-inset-top);max-height:100vh;max-height:100dvh}.sidebar.open{transform:translate(0)}.drawer-overlay{display:block;position:fixed;top:0;right:0;bottom:0;left:0;background:#000b;z-index:54}.main{width:100%;padding-top:56px}.server-list{flex:1;overflow-y:auto;padding:0 8px 12px}.server-item{flex-wrap:wrap}.srv-main{min-width:0;flex:1 1 100%}.srv-actions{opacity:1;width:100%;justify-content:flex-end;padding-top:4px}.hamburger{top:8px}.mobile-bar{padding-top:2px}.tabs{padding-top:4px}.term-area{flex:1}.term-wrap{padding:6px 4px}.empty h2{font-size:22px}.empty p{font-size:12px;padding:0 12px}.modal{width:94vw;max-height:92vh}.mobile-bar{display:block;background:#0e1420;border-bottom:1px solid #1b2434;padding:6px 6px 8px}.mb-group{display:flex;gap:5px;overflow-x:auto;padding-bottom:5px}.mb-group::-webkit-scrollbar{height:0}.mobile-bar button{flex:0 0 auto;background:#162032;color:#cfe3ff;border:1px solid #2a3550;border-radius:7px;padding:8px 11px;font-size:12px;font-family:monospace;cursor:pointer}.mobile-bar button:active{background:#1f2d44}.mb-fkeys button{color:#ffd9a0}.mb-ctrl button{color:#b6f0c2}.xterm textarea{position:absolute!important;opacity:1!important;left:-9999px}.term-wrap,.xterm{touch-action:manipulation}}@media (min-width: 721px){.icon-btn.close-drawer{display:none}}/**
 * 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}
