*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--bg: #0d0d0d;--surface: #1a1a2e;--text: #ffffff;--muted: rgba(255, 255, 255, .54);--border: rgba(255, 255, 255, .08);--accent: #4ee44e;--mono: "Noto Sans Mono", "Noto Sans Thai", "Menlo", monospace}html,body,#app{height:100%;background:var(--bg);color:var(--text);font-family:var(--mono);font-size:14px;-webkit-font-smoothing:antialiased}#app{display:flex;flex-direction:column}.screen{flex:1;display:flex;flex-direction:column;height:100%;overflow:hidden}.login-screen{align-items:center;justify-content:center;padding:24px}.login-card{width:100%;max-width:360px;display:flex;flex-direction:column;gap:16px}.login-card form{display:flex;flex-direction:column;gap:12px}.login-card input{background:var(--surface);border:1px solid var(--border);border-radius:6px;color:var(--text);font-family:var(--mono);font-size:14px;padding:10px 12px;outline:none;width:100%;text-align:center;letter-spacing:2px}.login-card input:focus{border-color:#ffffff40}.error{color:#f66;font-size:12px;text-align:center;min-height:16px}.connect-screen{align-items:center;justify-content:center;padding:24px}.connect-card{width:100%;max-width:480px;display:flex;flex-direction:column;gap:12px}.logo{font-size:32px;font-weight:700;text-align:center;letter-spacing:-1px}.subtitle{color:var(--muted);font-size:12px;text-align:center}#connect-form{display:flex;flex-direction:column;gap:12px}#relay-url{background:var(--surface);border:1px solid var(--border);border-radius:6px;color:var(--text);font-family:var(--mono);font-size:12px;padding:10px 12px;outline:none;width:100%}#relay-url:focus{border-color:#ffffff40}button[type=submit]{background:var(--accent);border:none;border-radius:6px;color:#000;cursor:pointer;font-family:var(--mono);font-size:14px;font-weight:600;padding:10px;transition:opacity .15s}button[type=submit]:hover{opacity:.85}.app-header{background:var(--surface);display:flex;align-items:center;gap:12px;padding:10px 16px;border-bottom:1px solid var(--border);min-height:44px;flex-shrink:0}.back-btn{background:none;border:none;color:var(--muted);cursor:pointer;font-family:var(--mono);font-size:13px;padding:4px 8px;border-radius:4px;transition:color .15s,background .15s;white-space:nowrap}.back-btn:hover{color:var(--text);background:var(--border)}.header-title{flex:1;font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status-dot{width:8px;height:8px;border-radius:50%;background:var(--muted);flex-shrink:0}.status-dot.status-connecting{background:#da0}.status-dot.status-connected{background:var(--accent)}.status-dot.status-error{background:#c00}.status-dot.status-closed{background:#555}.status-banner{display:none;padding:6px 16px;font-size:12px;color:#fffc;flex-shrink:0}.status-banner.visible{display:block}.status-banner[data-status=connecting]{background:#4a3800}.status-banner[data-status=error]{background:#5a0000}.status-banner[data-status=closed]{background:#2a2a2a}.sessions-list{flex:1;overflow-y:auto;padding:8px 0}.empty-msg{color:var(--muted);text-align:center;padding:48px 16px}.session-item{width:100%;display:flex;align-items:center;gap:12px;padding:14px 16px;border:none;border-bottom:1px solid var(--border);background:none;color:var(--text);cursor:pointer;font-family:var(--mono);text-align:left;transition:background .1s}.session-item:hover{background:var(--surface)}.session-icon{color:var(--accent);font-size:11px;flex-shrink:0}.session-chevron{color:var(--muted);flex-shrink:0;font-size:18px}.session-info{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}.session-name{font-weight:600;font-size:14px}.session-meta{color:var(--muted);font-size:12px}.terminal-screen{overflow:hidden}#xterm-host{flex:1;min-height:0;overflow:hidden}#xterm-host .xterm{height:100%}#xterm-host .xterm-viewport{overflow-y:hidden!important}/**
 * 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;inset: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;inset:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{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}
