:root{--text:#6b6375;--text-h:#08060d;--bg:#fff;--border:#e5e4e7;--code-bg:#f4f3ec;--accent:#aa3bff;--accent-bg:#aa3bff1a;--accent-border:#aa3bff80;--social-bg:#f4f3ec80;--shadow:#0000001a 0 10px 15px -3px, #0000000d 0 4px 6px -2px;--sans:system-ui, "Segoe UI", Roboto, sans-serif;--heading:system-ui, "Segoe UI", Roboto, sans-serif;--mono:ui-monospace, Consolas, monospace;font:18px/145% var(--sans);letter-spacing:.18px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}@media (width<=1024px){:root{font-size:16px}}@media (prefers-color-scheme:dark){:root{--text:#9ca3af;--text-h:#f3f4f6;--bg:#16171d;--border:#2e303a;--code-bg:#1f2028;--accent:#c084fc;--accent-bg:#c084fc26;--accent-border:#c084fc80;--social-bg:#2f303a80;--shadow:#0006 0 10px 15px -3px, #00000040 0 4px 6px -2px}#social .button-icon{filter:invert()brightness(2)}}#root{text-align:center;border-inline:1px solid var(--border);box-sizing:border-box;flex-direction:column;width:1126px;max-width:100%;min-height:100svh;margin:0 auto;display:flex}body{margin:0}h1,h2{font-family:var(--heading);color:var(--text-h);font-weight:500}h1{letter-spacing:-1.68px;margin:32px 0;font-size:56px}@media (width<=1024px){h1{margin:20px 0;font-size:36px}}h2{letter-spacing:-.24px;margin:0 0 8px;font-size:24px;line-height:118%}@media (width<=1024px){h2{font-size:20px}}p{margin:0}code,.counter{font-family:var(--mono);color:var(--text-h);border-radius:4px;display:inline-flex}code{background:var(--code-bg);padding:4px 8px;font-size:15px;line-height:135%}.auth{box-sizing:border-box;place-items:center;min-height:100vh;padding:24px;display:grid}.card{background:#fff;border:1px solid #e4e4e7;border-radius:16px;width:min(380px,100%);padding:32px;box-shadow:0 12px 40px #18181b14}.card h1{letter-spacing:-.01em;margin:0 0 4px;font-size:22px}.hint{color:#71717a;margin:0 0 24px;font-size:14px}.card form{gap:16px;display:grid}.card label{color:#3f3f46;gap:6px;font-size:14px;display:grid}.card input{box-sizing:border-box;background:#fafafa;border:1px solid #d4d4d8;border-radius:8px;width:100%;padding:10px 12px;font-size:15px}.card input:focus-visible{outline-offset:1px;background:#fff;outline:2px solid #2563eb}.card button{color:#fafafa;cursor:pointer;background:#18181b;border:none;border-radius:8px;padding:10px 14px;font-size:15px}.card button:disabled{opacity:.6;cursor:progress}.error{color:#b42318;margin:0;font-size:14px}.details{gap:12px;margin:0 0 20px;display:grid}.details dt{color:#71717a;font-size:12px}.details dd{color:#18181b;margin:2px 0 0;font-size:15px}.card.wide{width:min(720px,100%)}.bar{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px;display:flex}.actions{align-items:center;gap:12px;display:flex}.badge{color:#52525b;white-space:nowrap;background:#f4f4f5;border-radius:999px;padding:4px 10px;font-size:12px;display:inline-block}.card textarea{box-sizing:border-box;resize:vertical;background:#fafafa;border:1px solid #d4d4d8;border-radius:8px;width:100%;padding:10px 12px;font-family:inherit;font-size:15px;line-height:1.5}.card textarea:focus-visible{outline-offset:1px;background:#fff;outline:2px solid #2563eb}.projects{gap:8px;margin:0 0 8px;padding:0;list-style:none;display:grid}.card button.link{color:#18181b;text-align:left;background:0 0;border-radius:8px;justify-content:space-between;align-items:baseline;gap:12px;width:100%;padding:10px 12px;display:flex}.card button.link:hover{background:#f4f4f5}.card button.link .hint{margin:0}.stack{gap:12px;margin-top:20px;display:grid}.stack h2{margin:0;font-size:16px}.messages{gap:10px;margin:0 0 8px;padding:0;list-style:none;display:grid}.message{background:#f4f4f5;border-radius:10px;padding:10px 12px}.message.user{background:#eef2ff}.message p{white-space:pre-wrap;margin:4px 0 0;line-height:1.5}.card select{box-sizing:border-box;background:#fafafa;border:1px solid #d4d4d8;border-radius:8px;width:100%;padding:10px 12px;font-size:15px}.shell{color:#1c1f23;background:#fff;flex-direction:column;min-height:100vh;display:flex}.topbar{border-bottom:1px solid #e5e7eb;align-items:center;gap:24px;padding:12px 24px;display:flex}.brand{align-items:center;gap:8px;font-weight:600;display:flex}.brand-mark{background:#2563eb;border-radius:4px;width:18px;height:18px}.topnav{gap:16px;display:flex}.topnav-item{color:#6b7280;font-size:14px}.topnav-item.active{color:#111827;font-weight:600}.topbar-right{align-items:center;gap:12px;margin-left:auto;display:flex}.stagebar{border-bottom:1px solid #eef0f3;gap:0;padding:14px 24px;display:flex;overflow-x:auto}.stage{color:#9ca3af;white-space:nowrap;align-items:center;gap:8px;min-width:150px;font-size:13px;display:flex}.stage.active{color:#1d4ed8;font-weight:600}.stage-index{border:1px solid;border-radius:50%;place-items:center;width:22px;height:22px;font-size:12px;display:grid}.workspace{flex:1;grid-template-columns:minmax(0,1fr) minmax(360px,42%);align-items:start;gap:20px;padding:20px 24px;display:grid}.doc-card,.chat-card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;flex-direction:column;min-height:0;display:flex}.doc-card{max-height:calc(100vh - 180px)}.doc-head{border-bottom:1px solid #f0f1f3;justify-content:space-between;align-items:flex-start;gap:16px;padding:18px 20px;display:flex}.doc-head h1{margin:0 0 4px;font-size:20px}.doc-body{padding:18px 20px;overflow-y:auto}.doc-foot{background:#fafafa;border-top:1px solid #f0f1f3;border-radius:0 0 12px 12px;justify-content:space-between;align-items:center;gap:12px;padding:14px 20px;display:flex}.chat-card{height:calc(100vh - 180px);position:sticky;top:20px}.chat-head{border-bottom:1px solid #f0f1f3;justify-content:space-between;gap:12px;padding:16px 18px;display:flex}.chat-head h2{margin:0 0 4px;font-size:16px}.chat-body{flex:1;padding:16px 18px;overflow-y:auto}.bubbles{flex-direction:column;gap:12px;margin:0;padding:0;list-style:none;display:flex}.bubble{background:#f3f4f6;border-radius:10px;max-width:92%;padding:10px 12px}.bubble.user{background:#eef2ff;align-self:flex-end}.bubble p{white-space:pre-wrap;margin:6px 0 0}.bubble-meta{color:#6b7280;font-size:11px}.composer{border-top:1px solid #f0f1f3;flex-direction:column;gap:8px;padding:12px 18px 16px;display:flex}.composer textarea{resize:vertical;box-sizing:border-box;width:100%}.composer-tabs{gap:6px;display:flex}.tab{color:#4b5563;cursor:pointer;background:#fff;border:1px solid #e5e7eb;border-radius:999px;padding:4px 12px;font-size:12px}.tab.active{color:#1d4ed8;background:#eef2ff;border-color:#c7d2fe;font-weight:600}.composer-actions{justify-content:space-between;align-items:center;gap:12px;display:flex}.candidate h3{color:#374151;margin:16px 0 6px;font-size:14px}.candidate-head{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.badge.warn{color:#92400e;background:#fef3c7}.badge.ok{color:#166534;background:#dcfce7}@media (width<=900px){.workspace{grid-template-columns:1fr}.doc-card{max-height:none}.chat-card{height:70vh;position:static}.stage{min-width:130px}}.shell{color:#1c1f23}.shell h1,.shell h2,.shell h3,.shell p,.shell li,.shell span{color:inherit}.shell .hint{color:#6b7280}.shell input,.shell textarea,.shell select{color:#1c1f23;box-sizing:border-box;background:#fff;border:1px solid #d4d4d8;border-radius:8px;padding:10px 12px;font-size:15px}.shell button{color:#1c1f23;cursor:pointer;background:#fff;border:1px solid #d4d4d8;border-radius:8px;padding:8px 14px;font-size:14px}.shell button.link{color:#2563eb;background:0 0;border:none;padding:0}.shell button[type=submit]{color:#fff;background:#2563eb;border-color:#2563eb;font-weight:600}.shell button:disabled{opacity:.6;cursor:not-allowed}.shell .badge{color:#374151;background:#f3f4f6}.shell .badge.ok{color:#166534;background:#dcfce7}.shell .badge.warn{color:#92400e;background:#fef3c7}.shell .error{color:#b91c1c}.shell .bubble p{color:#1c1f23}.shell .bubble-meta{color:#6b7280}.shell .bubble{text-align:left;align-self:flex-start}.shell .bubble.user{align-self:flex-end}.shell .bubble p{text-align:left}.run-banner{background:#f9fafb;border-bottom:1px solid #f0f1f3;flex-direction:column;gap:8px;padding:10px 20px;display:flex}.run-line{align-items:center;gap:12px;display:flex}.run-line button{margin-left:auto}.partial{white-space:pre-wrap;color:#4b5563;background:#fff;border:1px dashed #e5e7eb;border-radius:8px;max-height:120px;margin:0;padding:8px;font-size:12px;overflow:auto}.stage-placeholder{max-width:720px}.chat-card.floating{z-index:30;resize:both;height:680px;position:fixed;overflow:hidden;box-shadow:0 18px 48px #0f172a2e}.chat-head{cursor:move;touch-action:none}.chat-actions{align-items:center;gap:8px;display:flex}.dock-handle{cursor:col-resize;z-index:5;background:0 0;border-radius:4px;width:8px;position:absolute;top:20px;bottom:20px}.dock-handle:hover{background:#e0e7ff}@media (width<=900px){.dock-handle{display:none}.chat-card.floating{resize:none;width:auto;height:70vh;box-shadow:none;position:static}}@media (width<=640px){.topbar{flex-wrap:wrap;gap:8px 12px;padding:10px 12px}.brand{white-space:nowrap;flex-shrink:0}.topnav{white-space:nowrap}.topbar-right{justify-content:space-between;width:100%}.topbar-right .hint{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.stagebar{padding:10px 12px}.stage{flex-shrink:0}.workspace{padding:12px}.doc-head,.doc-foot{flex-direction:column;align-items:flex-start}.shell{overflow-x:hidden}.workspace{flex-direction:column;gap:12px;display:flex}.doc-card,.chat-card{width:100%;min-width:0;max-width:100%}.chat-body{overflow-x:hidden}.bubble{max-width:100%}.shell .bubble p,.partial{overflow-wrap:anywhere;word-break:break-word}}
