:root{--bg: #212121;--bg-main: #212121;--bg-sidebar: #171717;--bg-elev: #2f2f2f;--bg-elev-2: #383838;--bg-hover: #2a2a2a;--bg-active: #303030;--border: #3a3a3a;--border-soft: #2f2f2f;--text: #ececec;--text-dim: #b4b4b4;--text-faint: #8e8e8e;--accent: #4f8bff;--accent-soft: #1d2f4d;--accent-strong: #3b82f6;--ok: #4ade80;--warn: #fbbf24;--danger: #f87171;--radius: 14px;--radius-sm: 10px;--sidebar-w: 264px;--mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;--sans: "Söhne", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif}*{box-sizing:border-box}html,body{margin:0;padding:0;height:100%;background:var(--bg);color:var(--text);font-family:var(--sans);font-size:15px;line-height:1.55;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}button,input,textarea,select{font:inherit;color:inherit}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}button{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;cursor:pointer;border:1px solid transparent;background:var(--bg-elev);border-radius:var(--radius-sm);padding:.45rem .8rem;transition:background .14s ease,border-color .14s ease,color .14s ease,opacity .14s ease}button:hover:not(:disabled){background:var(--bg-elev-2)}button:disabled{opacity:.45;cursor:not-allowed}button.primary{background:var(--accent-strong);color:#fff;font-weight:600}button.primary:hover:not(:disabled){background:#5292ff}button.ghost{background:transparent;color:var(--text-dim);border-color:transparent;padding:.35rem .5rem}button.ghost:hover:not(:disabled){background:var(--bg-hover);color:var(--text)}button.danger{border-color:#5a2626;color:#ffb4b4;background:#2a1616}button.icon{padding:0;width:34px;height:34px;border-radius:9px;background:transparent;color:var(--text-dim)}button.icon:hover:not(:disabled){background:var(--bg-hover);color:var(--text)}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}input[type=text],input[type=url],input[type=search],textarea,select{width:100%;background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-sm);padding:.55rem .7rem;outline:none;transition:border-color .14s ease}input:focus,textarea:focus,select:focus{border-color:#4a4a4a}pre,code{font-family:var(--mono);font-size:.86rem}pre{background:#0f0f0f;border:1px solid var(--border-soft);border-radius:var(--radius-sm);padding:.75rem .85rem;overflow-x:auto;margin:.6rem 0}:not(pre)>code{background:#2b2b2b;padding:.1rem .35rem;border-radius:5px}.spinner{width:14px;height:14px;border:2px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:spin .7s linear infinite;display:inline-block}@keyframes spin{to{transform:rotate(360deg)}}.badge{display:inline-flex;align-items:center;gap:.3rem;font-size:.72rem;padding:.08rem .45rem;border-radius:999px;border:1px solid var(--border);color:var(--text-dim);white-space:nowrap}.badge.ok{color:var(--ok);border-color:#24452f;background:#10231a}.badge.warn{color:var(--warn);border-color:#4a3a12;background:#221c0c}.badge.err{color:var(--danger);border-color:#4a2424;background:#231010}.dot{width:7px;height:7px;border-radius:50%;background:var(--text-faint)}.dot.live{background:var(--ok);box-shadow:0 0 0 3px #4ade8024}.muted{color:var(--text-dim)}.faint{color:var(--text-faint);font-size:.85rem}.row{display:flex;align-items:center;gap:.6rem}.grow{flex:1;min-width:0}.mono{font-family:var(--mono)}.ellipsis{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.markdown p{margin:.45rem 0}.markdown ul,.markdown ol{margin:.45rem 0;padding-left:1.35rem}.markdown h1,.markdown h2,.markdown h3{line-height:1.25;margin:1.1rem 0 .45rem;font-weight:600}.markdown h1{font-size:1.35rem}.markdown h2{font-size:1.18rem}.markdown h3{font-size:1.05rem}.markdown table{border-collapse:collapse;margin:.65rem 0;font-size:.9rem}.markdown th,.markdown td{border:1px solid var(--border);padding:.35rem .55rem}.markdown blockquote{margin:.55rem 0;padding-left:.85rem;border-left:3px solid var(--border);color:var(--text-dim)}.markdown a{text-decoration:underline;text-underline-offset:2px}.markdown img{max-width:100%;border-radius:var(--radius-sm)}*{scrollbar-width:thin;scrollbar-color:#3d3d3d transparent}*::-webkit-scrollbar{width:10px;height:10px}*::-webkit-scrollbar-thumb{background:#3d3d3d;border-radius:999px;border:3px solid transparent;background-clip:content-box}*::-webkit-scrollbar-thumb:hover{background:#4d4d4d;background-clip:content-box}.shell.svelte-12qhfyh{display:flex;height:100vh;overflow:hidden;background:var(--bg)}.sidebar.svelte-12qhfyh{width:var(--sidebar-w);flex:0 0 var(--sidebar-w);display:flex;flex-direction:column;min-height:0;background:var(--bg-sidebar);border-right:1px solid #242424;transition:margin-left .22s cubic-bezier(.2,0,0,1),opacity .16s ease}.sidebar.closed.svelte-12qhfyh{margin-left:calc(-1 * var(--sidebar-w));opacity:0;pointer-events:none}.sb-top.svelte-12qhfyh{display:flex;align-items:center;gap:.4rem;padding:.55rem .6rem}.wordmark.svelte-12qhfyh{flex:1;font-size:1.02rem;font-weight:650;letter-spacing:-.015em;padding-left:.3rem}.wordmark.big.svelte-12qhfyh{font-size:1.6rem;padding:0;margin-bottom:.6rem}.new-chat.svelte-12qhfyh{margin:.15rem .6rem .4rem;justify-content:flex-start;gap:.55rem;background:transparent;padding:.5rem .55rem;color:var(--text);font-size:.92rem;border-radius:10px}.new-chat.svelte-12qhfyh:hover{background:var(--bg-hover)}.nav.svelte-12qhfyh{display:flex;flex-direction:column;gap:1px;padding:0 .6rem}.nav-item.svelte-12qhfyh{display:flex;align-items:center;gap:.65rem;padding:.46rem .55rem;border-radius:10px;color:var(--text);font-size:.92rem;transition:background .12s ease}.nav-item.svelte-12qhfyh:hover{background:var(--bg-hover);text-decoration:none}.nav-item.active.svelte-12qhfyh{background:var(--bg-active)}.nav-item.svelte-12qhfyh svg{color:var(--text-dim);flex:0 0 auto}.section.svelte-12qhfyh{flex:1;min-height:0;display:flex;flex-direction:column;padding:.9rem .6rem .3rem}.section-title.svelte-12qhfyh{font-size:.72rem;font-weight:550;color:var(--text-faint);padding:0 .55rem .35rem;letter-spacing:.01em}.thread-list.svelte-12qhfyh{overflow-y:auto;min-height:0;padding-bottom:.4rem}.thread.svelte-12qhfyh{display:flex;align-items:center;border-radius:10px;color:var(--text-dim)}.thread.svelte-12qhfyh:hover{background:var(--bg-hover);color:var(--text)}.thread.active.svelte-12qhfyh{background:var(--bg-active);color:var(--text)}.pulse.svelte-12qhfyh{width:6px;height:6px;border-radius:50%;background:var(--accent);margin-right:7px;flex:0 0 auto;animation:svelte-12qhfyh-pulse 1.4s ease-in-out infinite}@keyframes svelte-12qhfyh-pulse{50%{opacity:.25}}.thread-btn.svelte-12qhfyh{display:flex;align-items:center;flex:1;min-width:0;justify-content:flex-start;background:transparent;border:none;padding:.45rem .55rem;font-size:.88rem;color:inherit;text-align:left;border-radius:10px}.thread-btn.svelte-12qhfyh:hover:not(:disabled){background:transparent}.thread-del.svelte-12qhfyh{opacity:0;width:26px;height:26px;padding:0;border-radius:7px;background:transparent;color:var(--text-faint);margin-right:.25rem;flex:0 0 auto}.thread.svelte-12qhfyh:hover .thread-del:where(.svelte-12qhfyh){opacity:1}.confirm.svelte-12qhfyh{display:flex;gap:.2rem;padding-right:.3rem}.mini.svelte-12qhfyh{font-size:.68rem;padding:.15rem .4rem;border-radius:6px;background:var(--bg-elev)}.mini.danger.svelte-12qhfyh{background:#3a1c1c;color:#ffb4b4}.thread-empty.svelte-12qhfyh{font-size:.82rem;color:var(--text-faint);padding:.4rem .55rem;margin:0}.sb-foot.svelte-12qhfyh{border-top:1px solid #242424;padding:.55rem .6rem}.account.svelte-12qhfyh{display:flex;align-items:center;gap:.55rem;padding:.35rem .4rem;border-radius:10px}.account.svelte-12qhfyh:hover{background:var(--bg-hover)}.avatar.svelte-12qhfyh{width:30px;height:30px;border-radius:50%;object-fit:cover;flex:0 0 auto}.avatar.placeholder.svelte-12qhfyh{display:grid;place-items:center;background:#333;font-size:.8rem;font-weight:600}.account-text.svelte-12qhfyh{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25;font-size:.86rem}.account-text.svelte-12qhfyh .faint:where(.svelte-12qhfyh){font-size:.74rem}.main.svelte-12qhfyh{position:relative;flex:1;min-width:0;display:flex;flex-direction:column;min-height:0}.reopen.svelte-12qhfyh{position:absolute;top:10px;left:10px;z-index:20;width:34px;height:34px;padding:0;border-radius:9px;background:transparent;color:var(--text-dim)}.reopen.svelte-12qhfyh:hover{background:var(--bg-hover);color:var(--text)}.backdrop.svelte-12qhfyh{display:none}.login.svelte-12qhfyh{min-height:100vh;display:grid;place-items:center;padding:1.5rem}.login-card.svelte-12qhfyh{max-width:420px;text-align:left}.login-card.svelte-12qhfyh p:where(.svelte-12qhfyh){margin:0 0 .9rem}.cta.svelte-12qhfyh{display:inline-flex;align-items:center;justify-content:center;height:44px;padding:0 1.2rem;border-radius:999px;background:#fff;color:#0d0d0d;font-weight:600;margin-bottom:.7rem}.cta.svelte-12qhfyh:hover{text-decoration:none;background:#e6e6e6}@media(max-width:900px){.sidebar.svelte-12qhfyh{position:fixed;inset:0 auto 0 0;z-index:30;box-shadow:0 20px 50px #00000080}.sidebar.closed.svelte-12qhfyh{margin-left:0;transform:translate(-100%);transition:transform .2s ease}.backdrop.svelte-12qhfyh{display:block;position:fixed;top:0;right:0;bottom:0;left:0;z-index:25;background:#00000073;opacity:0;pointer-events:none;transition:opacity .16s ease}.backdrop.show.svelte-12qhfyh{opacity:1;pointer-events:auto}}
