:root{--bg: #0f0f0f;--surface: #1a1a1a;--surface2: #252525;--border: #2e2e2e;--text: #e4e4e4;--text-muted: #777;--primary: #5b8dee;--primary-dim: #2a4a8c;--success: #4caf50;--danger: #ef5350;--warning: #ff9800;--radius: 8px;--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;--mono: "Fira Code", "JetBrains Mono", "Cascadia Code", monospace}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}html,body,#root{height:100%;overflow:hidden}body{font-family:var(--font);background:var(--bg);color:var(--text);font-size:14px}a{color:var(--primary);text-decoration:none}button{cursor:pointer;font-family:inherit;font-size:14px;border:none;border-radius:var(--radius)}input,textarea{font-family:inherit;font-size:14px;background:var(--surface2);color:var(--text);border:1px solid var(--border);border-radius:var(--radius);padding:8px 12px;width:100%;outline:none}input:focus,textarea:focus{border-color:var(--primary)}.auth-page{display:flex;align-items:center;justify-content:center;height:100%;background:var(--bg)}.auth-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:40px 36px;width:380px;display:flex;flex-direction:column;gap:20px}.auth-card h1{font-size:22px;font-weight:600}.auth-card p{color:var(--text-muted);font-size:13px}.field{display:flex;flex-direction:column;gap:6px}.field label{font-size:13px;color:var(--text-muted)}.server-row{display:flex;gap:8px;align-items:flex-end}.server-row input{flex:1}.btn{padding:9px 18px;border-radius:var(--radius);font-weight:500;transition:opacity .15s}.btn:disabled{opacity:.4;cursor:default}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover:not(:disabled){opacity:.85}.btn-danger{background:var(--danger);color:#fff}.btn-danger:hover:not(:disabled){opacity:.85}.btn-outline{background:transparent;border:1px solid var(--border);color:var(--text)}.btn-outline:hover:not(:disabled){border-color:var(--primary);color:var(--primary)}.btn-ghost{background:transparent;color:var(--text-muted)}.btn-ghost:hover:not(:disabled){color:var(--text)}.btn-full{width:100%}.btn-sm{padding:5px 12px;font-size:13px}.projects-page{height:100%;display:flex;flex-direction:column;overflow:hidden}.page-header{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;border-bottom:1px solid var(--border);background:var(--surface)}.page-header h2{font-size:16px;font-weight:600}.header-actions{display:flex;align-items:center;gap:12px}.user-name{font-size:13px;color:var(--text-muted)}.projects-list{flex:1;overflow-y:auto;padding:20px 24px;display:flex;flex-direction:column;gap:12px}.project-card{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:16px 20px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;transition:border-color .15s}.project-card:hover{border-color:var(--primary)}.project-card-info h3{font-size:15px;font-weight:500;margin-bottom:4px}.project-card-info span{font-size:12px;color:var(--text-muted)}.project-card-meta{display:flex;align-items:center;gap:10px}.badge{font-size:11px;font-weight:500;padding:3px 8px;border-radius:100px;border:1px solid transparent}.badge-online{background:#4caf5026;color:var(--success);border-color:#4caf504d}.badge-offline{background:#ef53501a;color:var(--danger);border-color:#ef535033}.badge-relay{background:#ff98001a;color:var(--warning);border-color:#ff980033}.badge-owner{background:#5b8dee1a;color:var(--primary);border-color:#5b8dee33}.create-project-form{background:var(--surface);border:1px dashed var(--border);border-radius:10px;padding:16px 20px;display:flex;gap:10px;align-items:center}.create-project-form input{flex:1}.join-row{display:flex;gap:10px;align-items:center;margin-top:8px}.join-row input{flex:1}.dashboard{height:100%;display:flex;flex-direction:column;overflow:hidden}.dash-header{display:flex;align-items:center;gap:12px;padding:10px 16px;border-bottom:1px solid var(--border);background:var(--surface);flex-shrink:0}.dash-header h2{font-size:15px;font-weight:600;flex:1}.tab-bar{display:flex;border-bottom:1px solid var(--border);background:var(--surface);flex-shrink:0}.tab-btn{padding:10px 20px;background:transparent;color:var(--text-muted);border-bottom:2px solid transparent;border-radius:0;font-size:13px;transition:color .15s,border-color .15s}.tab-btn:hover{color:var(--text)}.tab-btn.active{color:var(--primary);border-bottom-color:var(--primary)}.tab-content{flex:1;overflow:hidden;display:flex;flex-direction:column}.tab-pane{flex:1;overflow-y:auto;padding:16px}.tab-pane.hidden{display:none}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;color:var(--text-muted);gap:8px}.approvals-list{display:flex;flex-direction:column;gap:12px}.approval-card{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:16px;display:flex;flex-direction:column;gap:12px}.approval-card-header{display:flex;align-items:center;gap:10px}.tool-name{font-weight:600;font-size:14px}.tool-ts{font-size:11px;color:var(--text-muted);margin-left:auto}.tool-input{background:var(--bg);border:1px solid var(--border);border-radius:6px;padding:10px 12px;font-family:var(--mono);font-size:12px;line-height:1.5;white-space:pre-wrap;word-break:break-all;max-height:200px;overflow-y:auto}.approval-actions{display:flex;gap:8px}.approval-actions .btn{flex:1}.feedback-input{margin-top:4px}.terminal-pane{flex:1;display:flex;flex-direction:column;overflow:hidden;background:#0f0f0f}.terminal-pane.hidden{display:none}.xterm-container{flex:1;padding:8px;overflow:hidden}.xterm-container .xterm{height:100%!important}.input-bar{display:flex;align-items:flex-end;gap:8px;padding:10px 12px;border-top:1px solid var(--border);background:var(--surface);flex-shrink:0}.input-bar textarea{flex:1;resize:none;min-height:36px;max-height:120px;line-height:1.5;padding:7px 10px}.mic-btn.recording{color:var(--danger)!important}.monitor-grid{display:flex;flex-direction:column;gap:10px}.stat-row{display:flex;justify-content:space-between;align-items:center;background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:14px 18px}.stat-label{color:var(--text-muted);font-size:13px}.stat-value{font-size:16px;font-weight:600;font-variant-numeric:tabular-nums}.members-list{display:flex;flex-direction:column;gap:8px;margin-bottom:20px}.member-row{display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:10px 14px}.member-name{font-weight:500}.member-email{font-size:12px;color:var(--text-muted);flex:1}.invite-box{margin-top:8px;display:flex;flex-direction:column;gap:8px}.invite-code{font-family:var(--mono);font-size:20px;letter-spacing:4px;text-align:center;padding:14px;background:var(--bg);border:1px solid var(--border);border-radius:8px;color:var(--primary)}.token-box{font-family:var(--mono);font-size:12px;word-break:break-all;padding:10px;background:var(--bg);border:1px solid var(--border);border-radius:8px;color:var(--text-muted)}.error-msg{color:var(--danger);font-size:13px;text-align:center}.info-msg{color:var(--text-muted);font-size:13px}/**
 * 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}
