:root{color-scheme:dark;--side-w: 300px;--gutter-w: 5px;--bg: #0b0d10;--bg-panel: #10141a;--bg-input: #0b0d10;--bg-btn: #1c2128;--border: #1e2329;--border-2: #30363d;--fg: #e6e8eb;--fg-dim: #8b949e;--fg-dimmer: #57606a;--accent: #1f6feb;--ok: #4ade80;--err: #f87171}*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden;background:var(--bg);color:var(--fg);font:13px/1.45 -apple-system,Segoe UI,system-ui,sans-serif}[hidden]{display:none!important}#shell{display:flex;flex-direction:column;height:100%;align-items:stretch}#tabbar{flex:0 0 auto;display:flex;align-items:center;gap:4px;height:44px;padding:0 12px;background:var(--bg-panel);border-bottom:1px solid var(--border)}#tabbar .brand{font-weight:650;font-size:14px;margin-right:12px;white-space:nowrap}#tabbar .tab{border:none;background:none;color:var(--fg-dim);font:inherit;font-weight:550;padding:6px 14px;border-radius:8px;cursor:pointer;white-space:nowrap}#tabbar .tab:hover{color:var(--fg);background:var(--bg-hover, rgba(127,127,127,.12))}#tabbar .tab.active{color:var(--fg);background:var(--accent);color:#fff}#tabbar .tab-status{margin-left:auto;font-size:12px;color:var(--fg-dimmer);white-space:nowrap}#tabbar .tab-status.ok{color:#3fb950}#tabbar .tab-status.err{color:#f85149}#tabbar .lang-switch{margin-left:auto;width:auto;font:inherit;font-size:12px;color:var(--fg-dim);background:var(--bg-btn);border:1px solid var(--border);border-radius:7px;padding:4px 6px;cursor:pointer}#tabbar .lang-switch:hover{color:var(--fg);border-color:var(--border-2)}#tabbar .lang-switch~.tab-status{margin-left:0}.page{display:none;width:100%;height:100%;min-height:0}.page.active{display:flex;flex-direction:column}#page-connect,#page-help{overflow-y:auto}.help-inner{max-width:720px}.help-h3{margin:14px 0 6px;font-size:12px;font-weight:650;color:var(--fg)}.help-h3:first-of-type{margin-top:4px}.help-pre{margin:0 0 6px;padding:10px 12px;background:var(--bg-input);border:1px solid var(--border);border-radius:8px;font:11.5px/1.6 SF Mono,Menlo,Consolas,monospace;color:var(--fg);white-space:pre-wrap;word-break:break-all;overflow-x:auto}.help-inner code{font:11px/1.4 SF Mono,Menlo,Consolas,monospace;background:var(--bg-input);border:1px solid var(--border);border-radius:4px;padding:1px 5px;color:var(--fg)}.help-inner b{color:var(--fg);font-weight:650}.help-kv{margin-top:8px}.help-kv dd{text-align:left}.page-inner{padding:20px}.page-idle{flex:1 1 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:var(--fg-dimmer);font-size:12.5px;padding:20px;text-align:center}.page-idle .big{margin:0;font-size:15px;color:var(--fg-dim);font-weight:600}.page-idle p{margin:0}#sidebar{width:var(--side-w);flex:0 0 auto;min-width:0;display:flex;flex-direction:column;background:var(--bg-panel);border-right:1px solid var(--border);overflow:hidden}body.collapsed #sidebar{width:0;border-right:none}body.collapsed #gutter{display:none}body:not(.dragging) #sidebar{transition:width .18s ease}#side-head{flex:0 0 auto;display:flex;align-items:center;gap:8px;height:44px;padding:0 8px 0 14px;border-bottom:1px solid var(--border)}#side-head .brand{font-weight:650;font-size:14px;flex:1;white-space:nowrap;overflow:hidden}#side-body{flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;padding:4px 0 14px}.panel{padding:14px;border-bottom:1px solid var(--border)}.panel:last-of-type{border-bottom:none}.panel h2{margin:0 0 11px;font-size:11px;font-weight:700;color:var(--fg-dim);text-transform:uppercase;letter-spacing:.06em}.hint{margin:0 0 9px;color:var(--fg-dimmer);font-size:11px;line-height:1.5}.hint:empty{display:none}.foot{margin:14px 14px 0;color:var(--fg-dimmer);font-size:10.5px;line-height:1.6}.row{margin-bottom:10px}.row.split{display:flex;gap:8px}.row.split>div{min-width:0;flex:1}.row.split>div.port{flex:0 0 82px}label{display:block;margin-bottom:4px;font-size:10.5px;font-weight:600;color:var(--fg-dim);text-transform:uppercase;letter-spacing:.04em}input[type=text],input[type=number],input[type=password],select{width:100%;padding:7px 9px;background:var(--bg-input);color:var(--fg);border:1px solid var(--border-2);border-radius:6px;font:inherit;font-size:12.5px}select{cursor:pointer}input:focus,select:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px #1f6feb40}input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none}input[type=number]{-moz-appearance:textfield}.field{position:relative}.field input{padding-right:34px}button.eye{position:absolute;top:50%;right:4px;transform:translateY(-50%);width:26px;height:26px;padding:0;display:grid;place-items:center;background:none;border:none;border-radius:5px;color:var(--fg-dimmer);cursor:pointer}button.eye:hover{background:#ffffff0f;color:var(--fg-dim)}button.eye:active{background:#ffffff1a}button.eye:focus-visible{outline:2px solid var(--accent);outline-offset:-1px}button.eye[aria-pressed=true]{color:var(--accent)}button.eye svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}button.eye .eye-off,button.eye[aria-pressed=true] .eye-open{display:none}button.eye[aria-pressed=true] .eye-off{display:block}button.eye .slash{stroke-width:1.7}.check{display:flex;align-items:flex-start;gap:7px;margin:0 0 11px;color:var(--fg-dim);font-size:11.5px;cursor:pointer;text-transform:none;letter-spacing:0;font-weight:400}.check input{width:auto;margin:1px 0 0;flex:0 0 auto;cursor:pointer;accent-color:var(--accent)}button{background:var(--bg-btn);color:var(--fg);border:1px solid var(--border-2);border-radius:6px;padding:6px 11px;cursor:pointer;font:inherit;font-size:12px;white-space:nowrap}button:hover:not(:disabled){background:#262c36;border-color:#444c56}button:active:not(:disabled){background:#161b22}button:disabled{opacity:.5;cursor:default}button.primary{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}button.primary:hover:not(:disabled){background:#388bfd;border-color:#388bfd}button.danger{border-color:#6e2020;color:var(--err)}button.wide{width:100%}.btn-row{display:flex;gap:8px}.btn-row button{flex:1;padding:8px}.seg{display:flex;gap:6px}.seg-btn{flex:1;padding:6px 8px;background:var(--bg-btn);color:var(--fg-dim);border:1px solid var(--border-2);border-radius:6px;font-size:12px;cursor:pointer}.seg-btn:hover{background:#262c36}.seg-btn.active{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600}button.icon{width:26px;height:26px;padding:0;display:grid;place-items:center;font-size:17px;line-height:1;color:var(--fg-dim);flex:0 0 auto}button.icon.float{position:absolute;top:10px;left:10px;z-index:5;width:30px;height:30px;background:#101318e6;backdrop-filter:blur(10px)}.chips{display:flex;flex-wrap:wrap;gap:6px}.chips:empty{display:none}.chips button{font-size:11px;padding:4px 9px;color:var(--fg-dim)}.chips.keys{margin-bottom:11px}.conn-layout{display:flex;gap:20px;align-items:flex-start;max-width:760px;margin:0 auto}#history-col{flex:0 0 220px;min-width:0;position:sticky;top:20px}#history-col .col-title{margin:0 0 10px;font-size:11px;font-weight:700;color:var(--fg-dim);text-transform:uppercase;letter-spacing:.06em}.side-block{margin-bottom:22px}.side-block:last-child{margin-bottom:0}.side-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.side-head .col-title{margin:0}.side-add{flex:0 0 auto;width:20px;height:20px;padding:0;line-height:1;font-size:14px;color:var(--fg-dimmer);background:none;border:1px solid var(--border);border-radius:6px;cursor:pointer}.side-add:hover{color:var(--accent);border-color:var(--accent)}.add-relay-btn{display:flex;align-items:center;justify-content:center;gap:5px;width:100%;margin-top:6px;padding:7px 0;font-size:12px;color:var(--fg-dimmer);background:none;border:1px dashed var(--border);border-radius:8px;cursor:pointer;transition:color .15s,border-color .15s,background .15s}.add-relay-btn .add-plus{font-size:14px;line-height:1}.add-relay-btn:hover{color:var(--accent);border-color:var(--accent);background:#60a5fa0f}.relay-add{display:flex;flex-direction:column;gap:6px;margin-top:8px;padding:8px;background:var(--bg-panel);border:1px solid var(--border);border-radius:8px}.relay-add .ra-title{font-size:12px;font-weight:600;color:var(--fg);margin-bottom:2px}.relay-add .ra-field{display:flex;flex-direction:column;gap:3px;font-size:11px;color:var(--fg-dimmer)}.relay-add .ra-field>span{padding-left:1px}.relay-add .tok-field{display:block;width:100%;padding-left:0}.relay-add .tok-field input{padding-right:34px}.relay-add input[type=text],.relay-add input[type=password],.relay-add input:not([type]){width:100%;padding:5px 7px;font-size:12px;background:var(--bg);border:1px solid var(--border);border-radius:6px;color:var(--fg)}.relay-add .ra-row{display:flex;gap:6px}.relay-add .ra-row .ra-field{flex:1;min-width:0}.relay-add .check{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--fg-dim)}.relay-add .ra-btns{display:flex;gap:6px}.relay-add .ra-btns button{flex:1;padding:5px 0;font-size:12px}.hist-edit{flex:0 0 auto;width:22px;height:22px;padding:0;line-height:1;font-size:12px;color:var(--fg-dimmer);border-color:transparent;background:none;border-radius:6px}.hist-edit:hover:not(:disabled){color:var(--accent);background:#60a5fa1f;border-color:transparent}.online-room{flex:1;min-width:0;font-size:12px;color:var(--fg);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.online-via{flex:0 0 auto;font-size:10.5px;color:var(--fg-dimmer)}.online-dot{flex:0 0 auto;width:7px;height:7px;border-radius:50%;background:var(--ok, #4ade80);box-shadow:0 0 4px currentColor}.hist-list{display:flex;flex-direction:column;gap:4px}.hist-item{display:flex;align-items:center;gap:8px;padding:7px 9px;background:var(--bg-panel);border:1px solid var(--border);border-radius:8px;cursor:pointer;user-select:none}.hist-item:hover{border-color:var(--border-2);background:#151a21}.hist-addr{flex:1;min-width:0;font-size:12px;color:var(--fg);font-variant-numeric:tabular-nums;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hist-go{flex:0 0 auto;font-size:11px;padding:3px 10px;color:var(--accent);border-color:var(--accent)}.hist-go:hover:not(:disabled){background:var(--accent);color:#fff;border-color:var(--accent)}.hist-del{flex:0 0 auto;width:22px;height:22px;padding:0;line-height:1;font-size:14px;color:var(--fg-dimmer);border-color:transparent;background:none;border-radius:6px}.hist-del:hover:not(:disabled){color:var(--err);background:#f871711f;border-color:transparent}.hist-empty{margin:0;font-size:11.5px;color:var(--fg-dimmer);line-height:1.5}.conn-main{flex:1;min-width:0;max-width:480px}@media (max-width: 640px){.conn-layout{flex-direction:column;max-width:480px}#history-col{flex:none;width:100%;position:static}.conn-main{max-width:none;width:100%}}#panel-downloads .dl-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}@media (max-width: 560px){#panel-downloads .dl-grid{grid-template-columns:1fr}}.dl-card{background:var(--bg-input);border:1px solid var(--border);border-radius:10px;padding:12px}.dl-head{margin-bottom:10px}.dl-name{display:block;font-size:13px;font-weight:650;color:var(--fg)}.dl-desc{display:block;margin-top:2px;font-size:11px;color:var(--fg-dimmer);line-height:1.4}.dl-links{display:flex;flex-wrap:wrap;gap:6px}.dl-link{font-size:11.5px;padding:5px 11px;color:var(--fg-dim);text-decoration:none;background:var(--bg-btn);border:1px solid var(--border);border-radius:7px;transition:background .12s,color .12s,border-color .12s}.dl-link:hover{background:#262c36;color:var(--fg);border-color:var(--border-2)}.dl-link.mine{color:var(--accent);border-color:var(--accent);font-weight:600}.dl-hint{margin:10px 2px 0;font-size:10.5px;color:var(--fg-dimmer)}.dl-hint:empty{display:none}.kv{display:grid;grid-template-columns:auto 1fr;gap:5px 12px;margin:0;font-size:12px}.kv dt{color:var(--fg-dim);white-space:nowrap}.kv dd{margin:0;text-align:right;font-variant-numeric:tabular-nums;overflow:hidden;text-overflow:ellipsis}.kv dd.ok{color:var(--ok)}.kv dd.err{color:var(--err)}.alert{display:none;margin-bottom:11px;padding:8px 10px;background:#f871711a;border:1px solid rgba(248,113,113,.3);border-radius:6px;color:var(--err);font-size:11.5px;line-height:1.5}.alert.show{display:block}#gutter{flex:0 0 var(--gutter-w);cursor:col-resize;background:transparent;border-left:1px solid transparent;transition:background .15s}#gutter:hover,body.dragging #gutter{background:var(--accent)}#gutter:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}#stage{flex:1 1 auto;min-width:0;position:relative;display:flex;flex-direction:column;background:var(--bg);overflow:hidden}#page-desktop{background:#000}#viewport{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#000}body.fit-actual #viewport{overflow:auto;align-items:flex-start;justify-content:flex-start}#screen{display:block;outline:none;cursor:crosshair;background:#000;touch-action:none;image-rendering:-webkit-optimize-contrast;image-rendering:crisp-edges}body.smooth #screen{image-rendering:auto}body:not(.live) #screen{display:none}body.live #idle{display:none}#idle{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:var(--fg-dimmer);font-size:12.5px;pointer-events:none;padding:20px;text-align:center}#idle .big{margin:0;font-size:15px;color:var(--fg-dim);font-weight:600}#idle p{margin:0}#desk-tools{position:absolute;top:10px;right:10px;z-index:10;display:flex;flex-direction:column;align-items:flex-end;gap:8px}#desk-tools-toggle{width:34px;height:34px;border-radius:50%;border:1px solid var(--border);background:#141414b3;color:var(--fg);font-size:16px;cursor:pointer;backdrop-filter:blur(6px)}#desk-tools-toggle:hover{background:#282828d9}#desk-tools-body{width:260px;max-height:70vh;overflow-y:auto;background:#181818eb;border:1px solid var(--border);border-radius:10px;padding:4px;backdrop-filter:blur(10px);box-shadow:0 8px 30px #00000080}#term-wrap{position:relative;flex:1 1 auto;min-height:0;display:flex;flex-direction:column;background:#0c0c0c}#term-container{flex:1 1 auto;min-height:0;padding:6px;box-sizing:border-box}#term-wrap.live #term-idle{display:none}#fs-wrap{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;background:var(--bg)}#fs-toolbar{flex:0 0 auto;display:flex;align-items:center;gap:6px;padding:8px 10px;background:var(--bg-panel);border-bottom:1px solid var(--border)}#fs-crumbs{flex:1 1 auto;min-width:0;display:flex;align-items:center;flex-wrap:wrap;font-size:12.5px;overflow:hidden}#fs-crumbs .crumb{border:none;background:none;color:var(--accent);font:inherit;cursor:pointer;padding:2px 4px;border-radius:4px;white-space:nowrap}#fs-crumbs .crumb:hover{background:#7f7f7f26}#fs-toolbar .icon{width:28px;height:28px;border-radius:6px;border:1px solid var(--border);background:none;color:var(--fg);cursor:pointer;font-size:14px}#fs-toolbar .icon:hover{background:#7f7f7f1f}#fs-toolbar .primary{border:none;border-radius:6px;padding:6px 14px;background:var(--accent);color:#fff;font:inherit;cursor:pointer}#fs-status{flex:0 0 auto;min-height:18px;padding:2px 12px;font-size:12px;color:var(--fg-dimmer)}#fs-status.ok{color:#3fb950}#fs-status.err{color:#f85149}#fs-list-wrap{flex:1 1 auto;min-height:0;overflow-y:auto;position:relative}#fs-table{width:100%;border-collapse:collapse;font-size:13px}#fs-table thead th{position:sticky;top:0;z-index:1;background:var(--bg-panel);text-align:left;font-weight:600;color:var(--fg-dim);padding:6px 12px;border-bottom:1px solid var(--border);font-size:12px}#fs-table td{padding:5px 12px;border-bottom:1px solid var(--border);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#fs-table .c-name{max-width:0;width:100%}#fs-table .c-size,#fs-table .c-time{color:var(--fg-dimmer);font-variant-numeric:tabular-nums}#fs-table .c-ops{text-align:right}#fs-table tr:hover td{background:#7f7f7f12}.fs-link{cursor:pointer;color:var(--fg)}#fs-table tr.dir .fs-link{color:var(--accent);font-weight:550}.fs-link:hover{text-decoration:underline}#fs-table .op{border:1px solid var(--border);background:none;color:var(--fg-dim);font:inherit;font-size:12px;padding:3px 10px;border-radius:6px;cursor:pointer;margin-left:4px}#fs-table .op:hover{color:var(--fg);background:#7f7f7f1f}#fs-table .op.danger:hover{color:#f85149;border-color:#f85149}@media (max-width: 640px){#sidebar{position:fixed;inset:0 auto 0 0;z-index:20;width:min(86vw,320px);box-shadow:0 0 40px #0009}body.collapsed #sidebar{width:0;box-shadow:none}#gutter{display:none}}button.icon.float[hidden]{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;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}
