:root{color-scheme:dark;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.5;--bg: #0a0a0a;--bg-raised: #141414;--bg-card: #1a1a1a;--border: rgba(255, 255, 255, .08);--border-light: rgba(255, 255, 255, .12);--text: #fafafa;--text-muted: rgba(255, 255, 255, .55);--text-secondary: rgba(255, 255, 255, .65);--green: #22c55e;--yellow: #eab308;--red: #ef4444;--blue: #3b82f6;--purple: #a78bfa;--radius: .5rem;--radius-sm: .375rem}*{box-sizing:border-box;margin:0;padding:0}html,body,#root{min-height:100vh;background:var(--bg);color:var(--text)}.app{display:flex;flex-direction:column;height:100vh;overflow:hidden}.app-header{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1.5rem;border-bottom:1px solid var(--border);background:var(--bg-raised);flex-shrink:0}.app-header h1{font-size:1.1rem;font-weight:600;letter-spacing:-.02em}.app-layout{display:flex;flex:1;overflow:hidden}.sidebar{width:320px;min-width:320px;border-right:1px solid var(--border);display:flex;flex-direction:column;overflow-y:auto;background:var(--bg-raised)}.sidebar-section{padding:1rem;border-bottom:1px solid var(--border)}.sidebar-section:last-child{border-bottom:none}.section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.75rem}.section-header h2,.server-list h2,.tool-panel h2{font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.1em;color:var(--text-muted)}.add-btn{width:24px;height:24px;border:1px solid var(--border-light);border-radius:var(--radius-sm);background:transparent;color:var(--text-muted);font-size:1rem;cursor:pointer;display:grid;place-items:center;transition:all .15s}.add-btn:hover{background:#ffffff0f;color:var(--text);border-color:#fff3}.server-list{display:flex;flex-direction:column;gap:.5rem}.server-card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:.75rem;transition:border-color .15s}.server-card:hover{border-color:var(--border-light)}.server-card.disabled{opacity:.5}.server-header{display:flex;align-items:center;justify-content:space-between}.server-info{display:flex;align-items:center;gap:.5rem}.status-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0}.server-name{font-size:.85rem;font-weight:500}.server-transport{font-size:.65rem;color:var(--text-muted);background:#ffffff0a;padding:.1rem .4rem;border-radius:.25rem;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.server-actions{display:flex;align-items:center;gap:.4rem}.toggle-btn{font-size:.6rem;font-weight:700;letter-spacing:.08em;padding:.2rem .5rem;border-radius:.25rem;border:1px solid var(--border-light);background:transparent;cursor:pointer;transition:all .15s}.toggle-btn.on{color:var(--green);border-color:#22c55e4d}.toggle-btn.off{color:var(--text-muted)}.toggle-btn:hover{background:#ffffff0f}.remove-btn{width:22px;height:22px;display:grid;place-items:center;border:none;background:transparent;color:var(--text-muted);font-size:1.1rem;cursor:pointer;border-radius:.25rem;transition:all .15s}.remove-btn:hover{background:#ef444426;color:var(--red)}.server-detail{margin-top:.5rem;font-size:.7rem}.server-detail code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--text-muted);background:#ffffff0a;padding:.15rem .4rem;border-radius:.2rem;word-break:break-all}.server-error{margin-top:.4rem;font-size:.7rem;color:var(--red)}.tool-panel h2{display:flex;align-items:center;gap:.5rem;margin-bottom:.75rem}.tool-count{font-size:.65rem;background:#ffffff0f;padding:.1rem .4rem;border-radius:.25rem;color:var(--text-secondary)}.tool-grid{display:flex;flex-direction:column;gap:.5rem}.tool-card{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:.65rem .75rem;transition:border-color .15s}.tool-card:hover{border-color:var(--border-light)}.tool-name{font-size:.8rem;font-weight:600;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--purple)}.tool-desc{font-size:.7rem;color:var(--text-secondary);margin-top:.2rem}.tool-server{font-size:.6rem;color:var(--text-muted);margin-top:.3rem}.tool-params{display:flex;flex-wrap:wrap;gap:.3rem;margin-top:.4rem}.param-badge{font-size:.6rem;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--blue);background:#3b82f614;border:1px solid rgba(59,130,246,.15);padding:.1rem .4rem;border-radius:.2rem}.main-content{flex:1;display:flex;overflow:hidden}.chat-panel{flex:1;display:flex;flex-direction:column;overflow:hidden}.chat-panel h2{font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.1em;color:var(--text-muted);padding:.75rem 1.25rem;border-bottom:1px solid var(--border)}.chat-messages{flex:1;overflow-y:auto;padding:1.25rem;display:flex;flex-direction:column;gap:1rem}.chat-msg{max-width:48rem}.msg-role{font-size:.6rem;font-weight:600;text-transform:uppercase;letter-spacing:.1em;margin-bottom:.25rem}.chat-msg.user .msg-role{color:var(--blue)}.chat-msg.assistant .msg-role{color:var(--purple)}.chat-msg.system .msg-role{color:var(--text-muted)}.chat-msg.tool .msg-role{color:var(--green)}.msg-content{font-size:.875rem;color:var(--text-secondary);line-height:1.6}.msg-content strong,.msg-content b{color:var(--text);font-weight:600}.chat-msg.system .msg-content{font-size:.75rem;color:var(--text-muted);font-style:italic}.tool-call-block{margin-top:.5rem;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:.6rem .75rem}.tc-header{display:flex;align-items:center;gap:.5rem;margin-bottom:.4rem}.tc-status{font-size:.55rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;padding:.15rem .4rem;border-radius:.2rem}.tc-status.completed{color:var(--green);background:#22c55e1a}.tc-status.running{color:var(--yellow);background:#eab3081a}.tc-status.pending{color:var(--text-muted);background:#ffffff0a}.tc-status.error{color:var(--red);background:#ef44441a}.tc-tool{font-size:.75rem;font-weight:600;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--purple)}.tc-server{font-size:.6rem;color:var(--text-muted)}.tc-input code,.tc-output code{font-size:.7rem;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:var(--text-muted);word-break:break-all}.tc-output{margin-top:.35rem;padding-top:.35rem;border-top:1px solid var(--border)}.tc-output code{color:var(--green)}.chat-input{display:flex;gap:.5rem;padding:.75rem 1.25rem;border-top:1px solid var(--border);background:var(--bg-raised)}.chat-input input{flex:1;background:var(--bg-card);border:1px solid var(--border-light);border-radius:var(--radius);padding:.6rem .85rem;font-size:.85rem;color:var(--text);outline:none;transition:border-color .15s}.chat-input input::placeholder{color:var(--text-muted)}.chat-input input:focus{border-color:#a78bfa66}.chat-input button{background:var(--purple);color:#0a0a0a;border:none;border-radius:var(--radius);padding:.6rem 1.2rem;font-size:.8rem;font-weight:600;cursor:pointer;transition:opacity .15s}.chat-input button:hover{opacity:.85}.status-bar{display:flex;align-items:center;gap:1rem}.status-item{display:flex;align-items:center;gap:.35rem;font-size:.7rem;color:var(--text-muted)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;display:grid;place-items:center;z-index:100;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.modal{background:var(--bg-raised);border:1px solid var(--border-light);border-radius:.75rem;padding:1.5rem;width:28rem;max-width:90vw}.modal h3{font-size:1rem;font-weight:600;margin-bottom:1.25rem}.modal label{display:flex;flex-direction:column;gap:.3rem;font-size:.75rem;color:var(--text-muted);margin-bottom:.85rem}.modal input,.modal select{background:var(--bg-card);border:1px solid var(--border-light);border-radius:var(--radius-sm);padding:.5rem .7rem;font-size:.8rem;color:var(--text);outline:none}.modal input:focus,.modal select:focus{border-color:#a78bfa66}.modal-actions{display:flex;justify-content:flex-end;gap:.5rem;margin-top:1.25rem}.btn-secondary{background:transparent;border:1px solid var(--border-light);border-radius:var(--radius-sm);padding:.5rem 1rem;font-size:.8rem;color:var(--text-secondary);cursor:pointer}.btn-secondary:hover{background:#ffffff0a}.btn-primary{background:var(--purple);color:#0a0a0a;border:none;border-radius:var(--radius-sm);padding:.5rem 1rem;font-size:.8rem;font-weight:600;cursor:pointer}.btn-primary:hover{opacity:.85}::-webkit-scrollbar{width:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#ffffff1a;border-radius:3px}::-webkit-scrollbar-thumb:hover{background:#ffffff2e}
