:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;color-scheme:dark;--bg: #0d1117;--bg-elevated: #161b22;--bg-input: #0d1117;--border: #30363d;--border-strong:#444c56;--text: #e6edf3;--text-muted: #8b949e;--accent: #58a6ff;--success: #3fb950;--warning: #d29922;--danger: #f85149;--radius: 8px;--radius-lg: 12px;background:var(--bg);color:var(--text)}*,*:before,*:after{box-sizing:border-box}body{margin:0;min-height:100vh;-webkit-font-smoothing:antialiased}#app{width:100%;min-height:100vh;padding:20px 16px}@media(min-width:768px){body{display:grid;place-items:center;padding:24px 0}#app{width:min(640px,92vw);min-height:auto;padding:32px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--bg-elevated);box-shadow:0 8px 24px #0006}#app.live{width:min(1280px,96vw);display:grid;grid-template-columns:260px 1fr;gap:24px;padding:24px;align-items:start}#app.live>h1,#app.live>.subtitle{grid-column:1 / -1}}h1{margin:0 0 8px;font-size:1.5rem;font-weight:600}.subtitle{margin:0 0 24px;color:var(--text-muted);font-size:.95rem}@media(max-width:767px){h1{font-size:1.25rem}.subtitle{margin-bottom:16px;font-size:.85rem}}.status{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:var(--radius);background:var(--bg);border:1px solid var(--border);margin-bottom:16px}.status .dot{width:10px;height:10px;border-radius:50%;background:#6e7681;flex-shrink:0}.status.ok .dot{background:var(--success);box-shadow:0 0 0 4px #3fb95026}.status.error .dot{background:var(--danger);box-shadow:0 0 0 4px #f8514926}.status.loading .dot{background:var(--warning);animation:pulse 1.2s ease-in-out infinite}@keyframes pulse{0%,to{opacity:.4}50%{opacity:1}}pre{background:var(--bg);border:1px solid var(--border);border-radius:6px;padding:12px;font-size:.85rem;overflow-x:auto;color:#c9d1d9}code{font-family:SF Mono,Menlo,monospace}.hint{margin:16px 0;color:var(--text-muted);font-size:.9rem;line-height:1.6}.hint code{background:var(--bg);padding:2px 6px;border-radius:4px;border:1px solid var(--border);font-size:.85rem}.pair-form{display:flex;flex-direction:column;gap:12px;margin-top:8px}.pair-form input{width:100%;padding:12px 14px;border-radius:6px;border:1px solid var(--border);background:var(--bg-input);color:var(--text);font-family:SF Mono,Menlo,monospace;font-size:1rem}.pair-form input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px #58a6ff33}button{padding:10px 16px;border-radius:6px;border:1px solid #2ea043;background:#238636;color:#fff;font-weight:500;cursor:pointer;font-size:.95rem;transition:background-color .15s ease,border-color .15s ease}button:hover{background:#2ea043}button:active{transform:translateY(1px)}button#unpair-btn,button#reset-btn,button.danger{background:transparent;border-color:var(--danger);color:var(--danger);margin-top:12px}button#unpair-btn:hover,button#reset-btn:hover,button.danger:hover{background:#f851491a}.session-list{display:flex;flex-direction:column;gap:8px;margin:16px 0}.pane-btn{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:12px 14px;background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);color:var(--text);text-align:left;cursor:pointer;font-family:inherit;font-size:.9rem;font-weight:400;width:100%}.pane-btn:hover{border-color:var(--accent);background:var(--bg-elevated)}.pane-btn.active{border-color:var(--accent);background:#58a6ff14}.pane-btn .cmd{color:var(--text-muted);font-family:SF Mono,Menlo,monospace;font-size:.8rem}#app.live .live-main{display:flex;flex-direction:column}.term{margin:0 0 12px;background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);padding:6px;overflow:hidden;flex:1;min-height:280px}@media(min-width:768px){.term{height:70vh;min-height:480px;padding:10px}}.term .xterm{height:100%}.live-actions{display:flex;gap:8px;flex-wrap:wrap}.live-actions button{margin-top:0}@media(max-width:767px){.term{min-height:50vh}#app.live{padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))}}.live-sidebar{display:none}@media(min-width:768px){.live-sidebar{display:flex;flex-direction:column;gap:4px;max-height:calc(70vh + 80px);overflow-y:auto}.live-sidebar h3{margin:0 0 8px;font-size:.75rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.06em;font-weight:600}.live-sidebar .pane-btn{padding:10px 12px;font-size:.85rem}.live-sidebar .sidebar-actions{display:flex;gap:6px;margin-top:12px;padding-top:12px;border-top:1px solid var(--border)}.live-sidebar .sidebar-actions button{padding:6px 10px;font-size:.8rem;flex:1;background:transparent;color:var(--text-muted);border-color:var(--border)}.live-sidebar .sidebar-actions button:hover{color:var(--text);border-color:var(--accent);background:#58a6ff0f}#back-btn{display:none}}.soft-key-bar{position:fixed;left:0;right:0;bottom:0;z-index:10;display:flex;gap:6px;padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px));background:var(--bg-elevated);border-top:1px solid var(--border);overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}.soft-key-bar::-webkit-scrollbar{display:none}.soft-key-bar button{flex-shrink:0;min-width:46px;height:38px;padding:0 10px;background:var(--bg-input);border:1px solid var(--border);color:var(--text);font-family:SF Mono,Menlo,monospace;font-size:.95rem;font-weight:500;margin:0;border-radius:6px}.soft-key-bar button:hover{background:var(--bg)}.soft-key-bar button:active{background:#58a6ff2e;border-color:var(--accent)}@media(min-width:768px){.soft-key-bar{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,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.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}
