pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
  Theme: GitHub Dark
  Description: Dark theme as seen on github.com
  Author: github.com
  Maintainer: @Hirse
  Updated: 2021-05-15

  Outdated base version: https://github.com/primer/github-syntax-dark
  Current colors taken from GitHub's CSS
*/.hljs{color:#c9d1d9;background:#0d1117}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#ff7b72}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#d2a8ff}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-variable,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id{color:#79c0ff}.hljs-regexp,.hljs-string,.hljs-meta .hljs-string{color:#a5d6ff}.hljs-built_in,.hljs-symbol{color:#ffa657}.hljs-comment,.hljs-code,.hljs-formula{color:#8b949e}.hljs-name,.hljs-quote,.hljs-selector-tag,.hljs-selector-pseudo{color:#7ee787}.hljs-subst{color:#c9d1d9}.hljs-section{color:#1f6feb;font-weight:700}.hljs-bullet{color:#f2cc60}.hljs-emphasis{color:#c9d1d9;font-style:italic}.hljs-strong{color:#c9d1d9;font-weight:700}.hljs-addition{color:#aff5b4;background-color:#033a16}.hljs-deletion{color:#ffdcd7;background-color:#67060c}:root{--bg: #0b1020;--bg-elev: #131a30;--bg-elev2: #1a2240;--line: #243057;--text: #e8ecf7;--text-dim: #9aa3c7;--accent: #7c8cff;--accent-soft: rgba(124, 140, 255, .15);--danger: #ff6b6b;--ok: #4dd599;--warn: #f5b455;--tool: #b18bff;--radius: 10px;--radius-sm: 6px;font-family:-apple-system,BlinkMacSystemFont,Inter,Segoe UI,Roboto,sans-serif;color-scheme:dark}*{box-sizing:border-box}html,body,#app{margin:0;height:100%;background:var(--bg);color:var(--text);font-size:14.5px;-webkit-font-smoothing:antialiased}button{font:inherit;color:inherit;cursor:pointer;background:transparent;border:none}input,textarea{font:inherit;color:inherit}.shell{display:grid;grid-template-columns:260px 1fr;height:100vh}.shell.with-artifact{grid-template-columns:240px 1fr 420px}.side{background:var(--bg-elev);border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0}.side header{padding:14px 14px 10px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:8px}.brand{font-weight:700;letter-spacing:.3px;background:linear-gradient(90deg,#7c8cff,#b18bff);-webkit-background-clip:text;background-clip:text;color:transparent}.side .new{margin:10px;padding:9px 12px;border-radius:var(--radius);background:var(--accent);color:#0b1020;font-weight:600}.side .new:hover{filter:brightness(1.08)}.search{margin:0 10px 8px;padding:7px 10px;border-radius:var(--radius-sm);background:var(--bg-elev2);border:1px solid var(--line);width:calc(100% - 20px);outline:none}.session-list{flex:1;overflow-y:auto;padding:4px 6px 12px}.session-list::-webkit-scrollbar{width:6px}.session-list::-webkit-scrollbar-thumb{background:#2a345c;border-radius:6px}.s-item{padding:8px 10px;margin:2px 4px;border-radius:8px;display:flex;flex-direction:column;gap:2px;position:relative;cursor:pointer}.s-item:hover{background:var(--bg-elev2)}.s-item.active{background:var(--accent-soft)}.s-item.running,.s-item.running.active{box-shadow:inset 2px 0 0 var(--accent)}.s-title{font-weight:500;font-size:13.5px}.s-title.placeholder{color:var(--text-dim);font-style:italic}.s-meta{color:var(--text-dim);font-size:11.5px}.s-running{display:inline-flex;align-items:center;gap:3px;margin-right:6px;vertical-align:middle}.s-running-dot{width:4px;height:4px;border-radius:50%;background:var(--accent);animation:thinking-bounce 1.2s ease-in-out infinite}.s-running-dot:nth-child(2){animation-delay:.18s}.s-running-dot:nth-child(3){animation-delay:.36s}.s-actions{position:absolute;right:6px;top:6px;display:none;gap:4px}.s-item:hover .s-actions{display:flex}.s-actions button{padding:2px 5px;border-radius:4px;color:var(--text-dim);font-size:12px}.s-actions button:hover{background:var(--bg);color:var(--text)}.main{display:flex;flex-direction:column;min-height:0;min-width:0}.topbar{padding:10px 16px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:12px}.topbar h2{margin:0;font-size:14px;font-weight:500;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pill{font-size:11.5px;padding:3px 8px;border-radius:999px;background:var(--bg-elev2);color:var(--text-dim);border:1px solid var(--line)}.pill.ok{color:var(--ok);border-color:#4dd5994d}.pill.warn{color:var(--warn);border-color:#f5b4554d}.pill.err{color:var(--danger);border-color:#ff6b6b4d}.thread{flex:1;overflow-y:auto;padding:22px clamp(16px,5vw,64px);display:flex;flex-direction:column;gap:18px}.thread::-webkit-scrollbar{width:8px}.thread::-webkit-scrollbar-thumb{background:#2a345c;border-radius:8px}.empty{margin:auto;text-align:center;color:var(--text-dim);max-width:480px}.empty h1{font-size:28px;margin-bottom:12px;background:linear-gradient(90deg,#7c8cff,#b18bff);-webkit-background-clip:text;background-clip:text;color:transparent}.empty .hint{font-size:13px}.msg{display:flex;gap:14px;max-width:900px;width:100%}.msg.role-user{align-self:flex-end;flex-direction:row-reverse}.msg.role-user .bubble{margin-left:auto}.avatar{width:30px;height:30px;border-radius:50%;flex-shrink:0;display:grid;place-items:center;font-weight:700;font-size:12px}.avatar.user{background:linear-gradient(135deg,#7c8cff,#5a6dff);color:#0b1020}.avatar.assistant{background:linear-gradient(135deg,#b18bff,#7c8cff);color:#0b1020}.bubble{padding:12px 14px;border-radius:14px;background:var(--bg-elev);border:1px solid var(--line);max-width:min(720px,calc(100% - 60px));line-height:1.55;word-wrap:break-word}.msg.role-user .bubble{background:var(--accent-soft);border-color:#7c8cff59}.bubble .imgs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:6px}.bubble .imgs img{max-height:160px;max-width:220px;border-radius:8px;cursor:pointer}.bubble.streaming:after{content:"";display:inline-block;width:7px;height:14px;background:var(--accent);margin-left:2px;vertical-align:-2px;animation:blink 1s steps(2) infinite}@keyframes blink{50%{opacity:0}}.tools{display:flex;flex-direction:column;gap:6px;margin-top:8px;padding-top:8px;border-top:1px dashed var(--line)}.tool{font-size:12.5px;color:var(--text-dim);border-radius:6px;background:#b18bff14;border:1px solid rgba(177,139,255,.12);overflow:hidden}.tool.failed{background:#ff50500f;border-color:#ff505040}.tool.completed{background:#50c8780d;border-color:#50c8782e}.tool-head{display:flex;align-items:center;gap:8px;padding:6px 10px;cursor:pointer;user-select:none}.tool-head:hover{background:#ffffff08}.tool-caret{color:var(--text-dim);font-size:10px;width:10px;flex:0 0 10px}.tool-name{color:var(--tool);font-weight:600}.tool.failed .tool-name{color:var(--danger)}.tool.completed .tool-name{color:var(--ok)}.tool-status{font-size:10.5px;padding:1px 6px;border-radius:10px;background:#ffffff0f;color:var(--text-dim);text-transform:uppercase;letter-spacing:.4px;font-weight:600}.tool-status.ok{color:#6fd28d;background:#50c8781a}.tool-status.failed{color:#ff8a8a;background:#ff50501f}.tool-status.running{color:#e6c46c;background:#e6c46c1a}.tool-preview{color:var(--text-dim);font-family:ui-monospace,monospace;font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}.tool-body{padding:6px 10px 10px;border-top:1px solid rgba(255,255,255,.05);background:#0003}.tool-section-label{font-size:10px;text-transform:uppercase;letter-spacing:.5px;color:var(--text-dim);margin:6px 0 3px}.tool-pre{margin:0;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11.5px;line-height:1.45;color:var(--text);background:#00000040;padding:8px 10px;border-radius:4px;white-space:pre-wrap;word-break:break-word;max-height:360px;overflow:auto}.bubble h1,.bubble h2,.bubble h3{margin:.6em 0 .3em}.bubble p{margin:.4em 0}.bubble ul,.bubble ol{margin:.4em 0;padding-left:1.4em}.bubble code{background:var(--bg);padding:1px 5px;border-radius:4px;font-family:ui-monospace,JetBrains Mono,monospace;font-size:12.5px}.bubble pre{background:#0a0f23;border:1px solid var(--line);border-radius:8px;padding:12px 14px;margin:8px 0;overflow-x:auto;position:relative}.bubble pre code{background:none;padding:0;font-size:12.5px;line-height:1.45}.bubble pre .codebar{position:absolute;top:6px;right:6px;display:flex;gap:4px}.bubble pre .codebar button{font-size:11px;padding:2px 7px;border-radius:4px;background:var(--bg-elev2);color:var(--text-dim);border:1px solid var(--line)}.bubble pre .codebar button:hover{color:var(--text)}.bubble a{color:var(--accent)}.bubble blockquote{border-left:3px solid var(--accent);margin:6px 0;padding:2px 12px;background:var(--bg-elev2);border-radius:0 6px 6px 0}.bubble table{border-collapse:collapse;margin:6px 0}.bubble th,.bubble td{border:1px solid var(--line);padding:4px 10px}.bubble th{background:var(--bg-elev2)}.composer{border-top:1px solid var(--line);padding:8px clamp(12px,4vw,48px) 14px;background:linear-gradient(to top,var(--bg) 60%,transparent)}.composer-inner{max-width:760px;margin:0 auto;background:var(--bg-elev);border:1px solid var(--line);border-radius:22px;padding:8px 10px 6px 14px;display:flex;flex-direction:column;gap:4px;box-shadow:0 4px 18px #00000040;transition:border-color .14s ease,box-shadow .14s ease}.composer-inner:focus-within{border-color:#8c82ff8c;box-shadow:0 4px 24px #8c82ff2e}.composer-inner.dragover{border-color:var(--accent);box-shadow:0 4px 24px #8c82ff4d}.attached{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:4px}.attached .att{position:relative;border-radius:8px;overflow:hidden;width:56px;height:56px;background:var(--bg-elev2)}.attached .att img{width:100%;height:100%;object-fit:cover}.attached .att .x{position:absolute;top:2px;right:2px;width:16px;height:16px;background:#0009;color:#fff;border-radius:50%;display:grid;place-items:center;font-size:10px}.attached .att .uploading{position:absolute;inset:0;display:grid;place-items:center;background:#00000080;color:#fff;font-size:10px}.composer-inner textarea{background:transparent;border:none;outline:none;resize:none;width:100%;min-height:26px;max-height:200px;font-size:14.5px;line-height:1.45;padding:4px 2px 2px;color:var(--text)}.composer-inner textarea::placeholder{color:var(--text-dim);opacity:.85}.composer-row{display:flex;align-items:center;gap:8px}.composer-row .meta{color:var(--text-dim);font-size:11.5px;flex:1;min-height:1em}.icon-btn.attach-btn{width:28px;height:28px;display:inline-grid;place-items:center;padding:0;border-radius:50%;color:var(--text-dim);font-size:18px;line-height:1;cursor:pointer;transition:background .12s ease,color .12s ease}.icon-btn.attach-btn:hover{background:var(--bg-elev2);color:var(--text)}.send-btn{width:30px;height:30px;display:inline-grid;place-items:center;padding:0;border-radius:50%;background:var(--accent);color:#0b1020;font-weight:700;font-size:15px;line-height:1;cursor:pointer;transition:background .12s ease,transform 80ms ease,opacity .12s ease}.send-btn:hover{transform:translateY(-1px)}.send-btn:active{transform:translateY(0)}.send-btn:disabled{opacity:.35;cursor:not-allowed;transform:none}.send-btn.stop{background:var(--danger);color:#fff}.icon-btn:not(.attach-btn){padding:6px 8px;border-radius:6px;color:var(--text-dim)}.icon-btn:not(.attach-btn):hover{background:var(--bg-elev2);color:var(--text)}.artifact-panel{background:var(--bg-elev);border-left:1px solid var(--line);display:flex;flex-direction:column;min-height:0}.artifact-panel header{padding:10px 14px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:10px}.artifact-panel header h3{margin:0;font-size:13px;font-weight:500;flex:1}.artifact-tabs{display:flex;gap:4px;padding:6px 8px;border-bottom:1px solid var(--line);overflow-x:auto}.artifact-tabs button{padding:5px 10px;border-radius:6px;font-size:12px;color:var(--text-dim);white-space:nowrap}.artifact-tabs button.active{background:var(--accent-soft);color:var(--text)}.artifact-body{flex:1;overflow:auto;padding:12px 14px}.artifact-body pre{margin:0}.artifact-body iframe{width:100%;height:100%;border:0;background:#fff;border-radius:6px}.lightbox{position:fixed;inset:0;background:#000000d9;display:grid;place-items:center;z-index:999;padding:30px}.lightbox img{max-width:90vw;max-height:90vh;border-radius:8px}.toast{position:fixed;bottom:20px;left:50%;transform:translate(-50%);padding:10px 16px;border-radius:8px;background:var(--bg-elev2);border:1px solid var(--line);z-index:50;font-size:13px}.toast.err{border-color:#ff6b6b80;color:var(--danger)}.login-shell{min-height:100vh;display:grid;place-items:center;background:var(--bg, #0e1116)}.login-card{background:var(--panel, #161a22);border:1px solid var(--border, #262b36);border-radius:14px;padding:28px 28px 22px;width:min(360px,92vw);box-shadow:0 20px 60px #00000073;display:flex;flex-direction:column;gap:14px;color:var(--text, #e6e9ef)}.login-brand{font-size:18px;font-weight:600;letter-spacing:.2px;margin-bottom:4px}.login-card label{display:flex;flex-direction:column;font-size:12px;color:var(--text-dim, #97a0b1);gap:6px}.login-card input{background:#0c0f15;border:1px solid var(--border, #262b36);color:var(--text, #e6e9ef);border-radius:8px;padding:10px 12px;font-size:14px;outline:none}.login-card input:focus{border-color:#4c6ef5}.login-card button{margin-top:6px;background:linear-gradient(180deg,#4c6ef5,#3b5bdb);border:0;color:#fff;border-radius:8px;padding:10px 14px;font-size:14px;cursor:pointer;font-weight:500}.login-card button:disabled{opacity:.6;cursor:progress}.login-error{color:#ff8a8a;font-size:12.5px;background:#ff505014;border:1px solid rgba(255,80,80,.3);padding:8px 10px;border-radius:8px}.thinking-badge{display:inline-flex;align-items:center;gap:6px;margin:4px 0 2px;padding:4px 10px;background:#b18bff1a;border:1px solid rgba(177,139,255,.22);border-radius:999px;color:var(--text-dim);font-size:12px;line-height:1;width:fit-content}.thinking-badge .dot{width:5px;height:5px;border-radius:50%;background:var(--accent);animation:thinking-bounce 1.2s ease-in-out infinite}.thinking-badge .dot:nth-child(2){animation-delay:.18s}.thinking-badge .dot:nth-child(3){animation-delay:.36s}.thinking-badge .label{margin-left:2px}@keyframes thinking-bounce{0%,80%,to{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-2px)}}.sd-pill{position:fixed;left:16px;bottom:76px;z-index:200;display:inline-flex;align-items:center;gap:10px;padding:8px 12px 8px 10px;border-radius:999px;background:var(--bg-elev2, rgba(28, 28, 32, .92));color:var(--text, #e8e8ec);border:1px solid rgba(255,255,255,.08);box-shadow:0 6px 24px #00000059;font-size:12.5px;line-height:1;user-select:none;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}.sd-pill .sd-icon{font-size:14px}.sd-pill .sd-text{white-space:nowrap}.sd-pill .sd-time{font-variant-numeric:tabular-nums;font-weight:600;margin-left:2px}.sd-pill .sd-detonate{appearance:none;background:#ffffff0f;color:inherit;border:1px solid rgba(255,255,255,.12);border-radius:999px;padding:4px 10px;font-size:11.5px;cursor:pointer;transition:background .12s ease,transform 80ms ease}.sd-pill .sd-detonate:hover{background:#ff505038}.sd-pill .sd-detonate:active{transform:translateY(1px)}.sd-pill .sd-detonate:disabled{opacity:.5;cursor:default}.sd-pill.sd-warning{border-color:#ffaa3c73}.sd-pill.sd-warning .sd-time{color:#ffb547}.sd-pill.sd-critical{border-color:#ff505099;animation:sd-pulse 1s ease-in-out infinite}.sd-pill.sd-critical .sd-time{color:#ff6b6b}@keyframes sd-pulse{0%,to{box-shadow:0 6px 24px #ff505040}50%{box-shadow:0 6px 32px #ff50508c}}.sd-overlay{position:fixed;inset:0;z-index:9999;background:radial-gradient(circle at 50% 35%,#280000eb,#000000f5 70%);display:flex;align-items:center;justify-content:center;padding:24px;animation:sd-overlay-in .22s ease-out}@keyframes sd-overlay-in{0%{opacity:0}to{opacity:1}}.sd-overlay-card{max-width:480px;width:100%;background:#141418f2;border:1px solid rgba(255,80,80,.35);border-radius:16px;padding:32px 28px 28px;text-align:center;color:#f0f0f4;box-shadow:0 20px 80px #ff1e1e33}.sd-overlay-icon{font-size:56px;margin-bottom:8px;line-height:1}.sd-overlay-title{font-size:22px;font-weight:600;margin:4px 0 6px;letter-spacing:.2px}.sd-overlay-sub{font-size:14px;color:#f0f0f4a6;margin:0 0 22px}.sd-help-toggle{appearance:none;display:inline-flex;align-items:center;gap:8px;background:#ffffff0f;color:inherit;border:1px solid rgba(255,255,255,.14);border-radius:999px;padding:8px 14px;font-size:13px;cursor:pointer;transition:background .12s ease}.sd-help-toggle:hover{background:#ffffff1f}.sd-help-icon{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;background:#ffffff2e;font-size:12px;font-weight:700}.sd-help-body{margin-top:18px;padding:16px;border-radius:12px;background:#ffffff0a;border:1px solid rgba(255,255,255,.08);text-align:left;font-size:13.5px;line-height:1.55;color:#f0f0f4e0}.sd-help-body p{margin:0 0 10px}.sd-help-body p:last-child{margin-bottom:0}.sd-help-cmd{margin:8px 0 12px;padding:10px 12px;background:#00000073;border:1px solid rgba(255,255,255,.1);border-radius:8px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;color:#ffd47a;white-space:pre;overflow-x:auto}.thoughts-panel{margin:10px 0 6px;border:1px solid rgba(255,255,255,.06);border-radius:10px;background:#ffffff05;overflow:hidden;transition:border-color .16s ease,background .16s ease}.thoughts-panel.open{border-color:#ffffff1a;background:#ffffff09}.thoughts-panel.running{border-color:#8c82ff4d}.thoughts-summary{appearance:none;width:100%;display:inline-flex;align-items:center;gap:8px;background:transparent;color:var(--text-dim, #a8a8b3);border:0;padding:8px 12px;font-size:12.5px;line-height:1.4;cursor:pointer;text-align:left;transition:color .12s ease,background .12s ease}.thoughts-summary:hover{background:#ffffff08;color:var(--text, #e8e8ec)}.thoughts-panel.open .thoughts-summary{color:var(--text, #e8e8ec);border-bottom:1px solid rgba(255,255,255,.06)}.thoughts-caret{display:inline-block;width:12px;font-size:10px;color:var(--text-dim, #888)}.thoughts-icon{font-size:13px}.thoughts-text{font-weight:500}.thoughts-spinner{margin-left:4px;width:10px;height:10px;border-radius:50%;border:1.5px solid rgba(140,130,255,.3);border-top-color:#8c82fff2;animation:thoughts-spin .85s linear infinite}@keyframes thoughts-spin{to{transform:rotate(360deg)}}.thoughts-body{padding:8px 10px 10px}.thoughts-body.tools{margin:0}
