:root{--aui-background: #fff;--aui-surface: #fff;--aui-surface-secondary: #f2f2f4;--aui-primary: #1a1a1c;--aui-text-secondary: #6b6b70;--aui-text-tertiary: #9b9ba0;--aui-accent: #2563eb;--aui-accent-hover: #1d4ed8;--aui-accent-light: #eff4ff;--aui-success: #22c55e;--aui-warning: #f59e0b;--aui-error: #ef4444;--aui-border: #d4d4d8;--aui-border-light: #e5e5ea;--aui-shadow-sm: 0 1px 2px rgba(0, 0, 0, .04);--aui-shadow-md: 0 2px 8px rgba(0, 0, 0, .06), 0 1px 3px rgba(0, 0, 0, .04);--aui-shadow-lg: 0 8px 24px rgba(0, 0, 0, .08);--aui-radius: .5rem;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:var(--aui-primary);background:#f5f6f8;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;overflow:hidden;background:#f5f6f8}button,input,textarea{font:inherit}:where([data-aui]) :where(button,[type=button],[type=reset],[type=submit]){border:none;outline:none;margin:0;font:inherit}h1,h2,h3,p{margin:0}.min-w-0{min-width:0}.mobile-only{display:none!important}.app-shell{height:100vh;min-height:0;display:flex;flex-direction:column;overflow:hidden;background:#f5f6f8}.auth-shell{position:relative;isolation:isolate;width:100%;height:100vh;height:100dvh;min-height:100vh;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(360px,440px);align-items:center;gap:clamp(40px,7vw,112px);overflow-x:hidden;overflow-y:auto;padding:clamp(28px,5vw,72px);color:#f8fafc;background:linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px),radial-gradient(circle at 14% 16%,rgba(37,99,235,.34),transparent 30%),radial-gradient(circle at 86% 84%,rgba(236,72,153,.18),transparent 28%),#080d1a;background-size:42px 42px,42px 42px,auto,auto,auto}.auth-loading{grid-template-columns:1fr;justify-items:center;align-content:center;gap:18px;color:#cbd5e1}.auth-ambient{position:absolute;z-index:-1;width:360px;height:360px;border-radius:50%;filter:blur(16px);opacity:.58;pointer-events:none;animation:auth-ambient-drift 10s ease-in-out infinite alternate}.auth-ambient-one{top:-180px;right:22%;background:#3b82f642}.auth-ambient-two{bottom:-230px;left:8%;width:440px;height:440px;background:#a855f72e;animation-delay:-4s}.auth-stage{position:relative;z-index:1;width:min(100%,760px);min-width:0;display:grid;gap:clamp(26px,4vh,48px)}.auth-stage-brand{display:flex;align-items:center;gap:12px}.auth-stage-brand>div:last-child{display:grid;gap:3px}.auth-stage-brand strong{font-size:12px;letter-spacing:.13em}.auth-stage-brand span{color:#94a3b8;font-size:11px}.auth-brand-mark{width:42px;height:42px;display:grid;place-items:center;color:#eff6ff;border:1px solid rgba(255,255,255,.16);border-radius:13px;background:linear-gradient(145deg,#3b82f6e6,#7c3aede0);box-shadow:0 14px 34px #2563eb47}.auth-live-label{display:inline-flex;align-items:center;gap:8px;color:#93c5fd;font-size:10px;font-weight:750;letter-spacing:.16em}.auth-live-label i,.auth-demo-topline i{width:7px;height:7px;display:inline-block;border-radius:999px;background:#34d399;box-shadow:0 0 0 5px #34d3991f;animation:auth-live-pulse 2.2s ease-in-out infinite}.auth-stage-copy h1{max-width:700px;margin-top:16px;font-size:clamp(42px,5.2vw,72px);line-height:1.02;font-weight:720;letter-spacing:-.055em}.auth-stage-copy>p{max-width:620px;margin-top:20px;color:#b8c2d4;font-size:clamp(15px,1.25vw,18px);line-height:1.75}.auth-proof-list{margin-top:24px;display:flex;flex-wrap:wrap;gap:9px}.auth-proof-list span{min-height:32px;display:inline-flex;align-items:center;gap:7px;padding:0 11px;color:#dbeafe;border:1px solid rgba(147,197,253,.18);border-radius:999px;background:#0f172a8c;font-size:12px;font-weight:620;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.auth-demo{position:relative;overflow:hidden;padding:17px;border:1px solid rgba(148,163,184,.18);border-radius:22px;background:linear-gradient(135deg,#1e293be0,#0f172a99);box-shadow:0 26px 70px #00000038;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.auth-demo-topline{display:flex;align-items:center;justify-content:space-between;color:#94a3b8;font-size:10px;font-weight:700;letter-spacing:.08em}.auth-demo-topline span{display:inline-flex;align-items:center;gap:8px}.auth-demo-topline i{width:6px;height:6px;box-shadow:none}.auth-demo-topline small{color:#60a5fa;font-size:9px}.auth-demo-track{position:absolute;top:74px;left:14%;right:14%;height:1px;overflow:hidden;background:linear-gradient(90deg,transparent,rgba(96,165,250,.5) 16%,rgba(167,139,250,.55) 84%,transparent)}.auth-demo-track i{position:absolute;top:-2px;left:-5%;width:5px;height:5px;border-radius:999px;background:#f8fafc;box-shadow:0 0 12px 3px #60a5fabf;animation:auth-flow-dot 3.6s linear infinite}.auth-demo-track i:nth-child(2){animation-delay:-1.2s}.auth-demo-track i:nth-child(3){animation-delay:-2.4s}.auth-demo-nodes{margin-top:16px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.auth-demo-node{min-width:0;min-height:100px;display:flex;align-items:flex-start;gap:10px;padding:13px;border:1px solid rgba(255,255,255,.08);border-radius:15px;background:#ffffff0e;animation:auth-node-float 5s ease-in-out infinite}.auth-demo-node:nth-child(2){animation-delay:-1.6s}.auth-demo-node:nth-child(3){animation-delay:-3.2s}.auth-demo-node>span{width:30px;height:30px;flex:0 0 auto;display:grid;place-items:center;border-radius:9px}.auth-demo-human>span{color:#67e8f9;background:#06b6d424}.auth-demo-agent>span{color:#c4b5fd;background:#8b5cf629}.auth-demo-local>span{color:#86efac;background:#22c55e24}.auth-demo-node div{min-width:0;display:grid;gap:3px}.auth-demo-node small{color:#64748b;font-size:8px;letter-spacing:.08em}.auth-demo-node strong{color:#f8fafc;font-size:13px}.auth-demo-node p{color:#94a3b8;font-size:10px;line-height:1.45}.auth-card{position:relative;z-index:1;width:min(100%,440px);padding:clamp(30px,3vw,42px);color:#18181b;border:1px solid rgba(255,255,255,.55);border-radius:28px;background:#fffffff5;box-shadow:0 34px 90px #00000052,0 3px 10px #0000001a;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}.auth-copy{margin:0}.auth-eyebrow{font-size:10px;font-weight:780;letter-spacing:.15em;color:#4f46e5}.auth-copy h2{margin-top:10px;font-size:30px;line-height:1.12;letter-spacing:-.04em}.auth-copy p{margin-top:10px;max-width:340px;color:var(--aui-text-secondary);font-size:13px;line-height:1.65}.auth-form{display:grid;gap:13px;margin-top:25px}.auth-panel-content{animation:auth-panel-enter .22s cubic-bezier(.22,1,.36,1) both}.auth-field{display:grid;gap:8px}.auth-field>span{font-size:13px;font-weight:650;color:#3f3f46}.auth-field input{width:100%;height:50px;padding:0 15px;color:var(--aui-primary);border:1px solid #d4d4d8;border-radius:13px;outline:none;background:#fff;transition:border-color .15s ease,box-shadow .15s ease}.auth-field input:focus{border-color:#4f46e5;box-shadow:0 0 0 4px #4f46e51c}.auth-field input::placeholder{color:#a1a1aa}.auth-submit{min-height:50px;display:flex;align-items:center;justify-content:center;gap:9px;padding:0 18px;color:#fff;border-radius:13px;cursor:pointer;background:linear-gradient(135deg,#17171a,#303038);box-shadow:0 10px 22px #18181b2e;transition:transform .15s ease,background .15s ease}.auth-submit:hover:not(:disabled){transform:translateY(-1px);background:#27272a}.auth-submit:disabled{cursor:wait;opacity:.68}.auth-submit-secondary{color:#27272a;background:#f4f4f5;box-shadow:none}.auth-account{display:flex;align-items:center;justify-content:space-between;padding:0;color:#52525b;background:transparent;cursor:pointer;font-size:13px}.auth-account svg{order:-1}.auth-unavailable{display:flex;gap:12px;padding:14px;border-radius:12px;color:#854d0e;background:#fefce8}.auth-unavailable strong{display:block;font-size:13px}.auth-unavailable p{margin-top:4px;font-size:12px;line-height:1.5}.auth-error{padding:10px 12px;color:#b91c1c;border-radius:10px;background:#fef2f2;font-size:13px;line-height:1.5}.auth-footnote{margin-top:20px;display:flex;align-items:center;justify-content:center;gap:5px;text-align:center;color:#a1a1aa;font-size:10px}@keyframes auth-flow-dot{0%{transform:translate(0);opacity:0}10%,90%{opacity:1}to{transform:translate(620px);opacity:0}}@keyframes auth-node-float{0%,to{transform:translateY(0)}50%{transform:translateY(-3px)}}@keyframes auth-panel-enter{0%{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}@keyframes auth-live-pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.62;transform:scale(.78)}}@keyframes auth-ambient-drift{0%{transform:translate3d(-2%,-2%,0) scale(.96)}to{transform:translate3d(5%,4%,0) scale(1.08)}}@media(max-width:600px){.auth-shell{min-height:100dvh;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;align-items:stretch;gap:0;overflow-x:hidden;overflow-y:auto;padding:0;background:radial-gradient(circle at 20% 4%,rgba(37,99,235,.42),transparent 32%),radial-gradient(circle at 90% 40%,rgba(168,85,247,.2),transparent 30%),#080d1a}.auth-ambient-one{top:-220px;right:-170px}.auth-ambient-two{bottom:16%;left:-300px}.auth-stage{width:100%;min-height:0;align-content:space-between;gap:13px;padding:calc(16px + env(safe-area-inset-top)) 20px 16px}.auth-stage-brand{gap:10px}.auth-stage-brand .auth-brand-mark{width:36px;height:36px;border-radius:11px}.auth-stage-brand strong{font-size:10px}.auth-stage-brand span{display:none}.auth-live-label{font-size:8px}.auth-stage-copy h1{max-width:350px;margin-top:9px;font-size:clamp(27px,8vw,34px);line-height:1.05}.auth-stage-copy>p{max-width:350px;margin-top:10px;font-size:12px;line-height:1.55}.auth-proof-list{margin-top:12px;gap:6px}.auth-proof-list span{min-height:27px;padding:0 8px;font-size:10px}.auth-demo{padding:11px;border-radius:17px}.auth-demo-topline{font-size:9px}.auth-demo-track{top:57px;left:12%;right:12%}.auth-demo-nodes{margin-top:10px;gap:6px}.auth-demo-node{min-height:67px;display:grid;justify-items:center;gap:4px;padding:7px 4px;text-align:center;border-radius:11px}.auth-demo-node>span{width:26px;height:26px;border-radius:8px}.auth-demo-node div{justify-items:center;gap:1px}.auth-demo-node small,.auth-demo-node p{display:none}.auth-demo-node strong{font-size:11px}.auth-card{width:100%;max-width:none;padding:20px 20px calc(15px + env(safe-area-inset-bottom));border:0;border-radius:26px 26px 0 0;box-shadow:0 -18px 60px #00000047}.auth-copy h2{margin-top:6px;font-size:22px}.auth-copy p{margin-top:6px;font-size:11px;line-height:1.45}.auth-form{margin-top:15px;gap:10px}.auth-field{gap:6px}.auth-field>span{font-size:11px}.auth-field input,.auth-submit{min-height:52px}.auth-footnote{margin-top:11px}}@media(max-width:600px)and (max-height:700px){.auth-shell{height:auto;min-height:100dvh;overflow-y:auto}.auth-stage{gap:9px;padding-top:calc(10px + env(safe-area-inset-top));padding-bottom:10px}.auth-stage-copy h1{font-size:25px}.auth-stage-copy>p{display:none}.auth-proof-list{margin-top:8px}.auth-demo-node{min-height:56px}.auth-card{padding-top:17px}}@media(prefers-reduced-motion:reduce){.auth-ambient,.auth-live-label i,.auth-demo-topline i,.auth-demo-track i,.auth-demo-node,.auth-panel-content{animation:none!important;transition:none!important}}.topbar{flex:0 0 64px;height:64px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 24px;background:#fffffff5;border-bottom:1px solid #e5e7eb}.brand-block,.topbar-actions,.panel-title,.thread-header,.drawer-header,.drawer-actions,.decision-topline,.runtime-error,.typing-row,.inline-error,.test-result,.secondary-button,.primary-button,.ghost-button,.composer-footer,.composer-sender,.canvas-section-title{display:flex;align-items:center}.brand-block{min-width:0;gap:12px}.brand-copy{min-width:0;padding:0;border:0;outline:0;color:inherit;background:transparent;cursor:pointer;text-align:left}.topic-trigger h1,.topic-trigger p{transition:color .15s ease}.topic-trigger:hover h1{color:var(--aui-accent)}.brand-mark{width:34px;height:34px;display:grid;place-items:center;color:#fff;background:#1f2937;border-radius:8px}.brand-block h1{overflow:hidden;font-size:17px;line-height:1.2;font-weight:650;text-overflow:ellipsis;white-space:nowrap}.brand-block p,.thread-title p,.drawer-header p{margin-top:3px;font-size:12px;color:var(--aui-text-secondary)}.topbar-actions{flex:0 0 auto;gap:10px}.identity-pill{height:34px;display:inline-flex;align-items:center;gap:7px;padding:0 9px 0 5px;border:1px solid var(--aui-border-light);border-radius:999px;background:#fff}.identity-pill>span{width:24px;height:24px;display:grid;place-items:center;border-radius:999px;color:#fff;background:#334155;font-size:11px;font-weight:700}.identity-pill small{max-width:88px;overflow:hidden;color:var(--aui-text-secondary);font-size:11px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}.identity-pill.super-admin>span{background:linear-gradient(135deg,#7c3aed,#2563eb)}.invite-toast{position:fixed;z-index:80;top:70px;left:50%;transform:translate(-50%);padding:9px 14px;border:1px solid #bbf7d0;border-radius:999px;color:#166534;background:#f0fdf4f5;box-shadow:var(--aui-shadow-md);font-size:12px;font-weight:650}.topbar-topic-button{height:34px;display:inline-flex;align-items:center;gap:6px;padding:0 11px;border:1px solid color-mix(in srgb,var(--aui-accent) 24%,var(--aui-border-light));border-radius:9px;color:var(--aui-accent);background:color-mix(in srgb,var(--aui-accent) 7%,white);font-size:12px;font-weight:650;cursor:pointer}.topbar-topic-button:hover{background:color-mix(in srgb,var(--aui-accent) 11%,white)}.mobile-panel-header{flex:0 0 auto;padding:8px 16px 12px;border-bottom:1px solid var(--aui-border-light);background:#fffffff5}.mobile-drag-handle{width:36px;height:4px;display:block;margin:0 auto 9px;border-radius:999px;background:#d4d4d8}.mobile-panel-title-row,.mobile-panel-actions{display:flex;align-items:center}.mobile-panel-title-row{justify-content:space-between;gap:12px}.mobile-panel-title-row h2{font-size:16px;line-height:1.25}.mobile-panel-title-row p{margin-top:3px;overflow:hidden;color:var(--aui-text-secondary);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.mobile-panel-actions{gap:2px}.icon-button{width:34px;height:34px;display:grid;place-items:center;border-radius:8px;color:var(--aui-text-secondary);background:transparent;cursor:pointer;transition:background .15s ease,color .15s ease}.icon-button:hover{color:var(--aui-primary);background:var(--aui-surface-secondary)}.workspace-grid{flex:1;min-height:0;height:calc(100vh - 64px);display:grid;grid-template-columns:252px minmax(420px,1fr) 380px;overflow:hidden}.side-panel,.chat-panel,.canvas-panel{min-height:0;height:100%;background:var(--aui-surface)}.topic-dialog{width:min(520px,calc(100vw - 32px))}.topic-dialog .dialog-header p{margin-top:4px;color:var(--aui-text-secondary);font-size:12px;line-height:1.4}.side-panel{padding:16px 14px;overflow-y:auto;border-right:1px solid #e5e7eb}.panel-title{gap:8px;font-size:13px;color:#4b5563;font-weight:650}.member-list{margin-top:12px;display:grid;gap:6px}.member-row{width:100%;min-height:42px;display:flex;align-items:center;gap:10px;padding:7px 8px;border-radius:8px;color:var(--aui-primary);background:transparent;cursor:pointer;text-align:left;transition:background .15s ease}.member-row:disabled{cursor:default}.member-row:not(:disabled):hover,.member-row.active{background:color-mix(in srgb,var(--aui-surface-secondary) 72%,transparent)}.member-row.active{box-shadow:inset 3px 0 0 var(--aui-accent)}.member-copy{min-width:0;display:grid;gap:1px}.member-copy strong,.message-meta strong{overflow:hidden;display:block;font-size:13px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.member-copy small,.message-meta span,.message-meta small{font-size:11px;color:var(--aui-text-tertiary)}.avatar{width:30px;height:30px;flex:0 0 auto;display:inline-grid;place-items:center;border-radius:999px}.avatar.human{color:#0f766e;background:#ccfbf1}.avatar.agent{color:#6d28d9;background:#ede9fe}.avatar.mini{width:22px;height:22px}.avatar.tiny{width:18px;height:18px}.panel-divider{height:1px;margin:16px 0;background:var(--aui-border-light)}.policy-list{margin-top:10px;display:grid}.policy-item{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:34px;font-size:12px;border-bottom:1px solid color-mix(in srgb,var(--aui-border-light) 70%,transparent)}.policy-item span{color:var(--aui-text-secondary)}.policy-item strong{color:var(--aui-primary);font-weight:600}.stats-strip{margin-top:16px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.stats-strip div{padding:10px;border-radius:8px;background:color-mix(in srgb,var(--aui-surface-secondary) 72%,transparent)}.stats-strip strong{display:block;font-size:18px;line-height:1.1}.stats-strip span{margin-top:3px;display:block;font-size:12px;color:var(--aui-text-secondary)}.chat-panel{display:flex;flex-direction:column;overflow:hidden}.thread-header{flex:0 0 auto;justify-content:space-between;gap:12px;min-height:64px;padding:14px 24px;border-bottom:1px solid #e5e7eb}.thread-title{min-width:0}.thread-title h2,.drawer-header h2,.canvas-header h2{overflow:hidden;font-size:16px;line-height:1.25;font-weight:650;text-overflow:ellipsis;white-space:nowrap}.ghost-button,.secondary-button,.primary-button{justify-content:center;gap:7px;border-radius:8px;cursor:pointer}.ghost-button{flex:0 0 auto;height:32px;padding:0 10px;color:var(--aui-text-secondary);background:transparent;transition:background .15s ease,color .15s ease}.ghost-button:hover{color:var(--aui-primary);background:var(--aui-surface-secondary)}.message-list{flex:1;min-height:0;height:0;overflow-y:auto;padding:22px 24px;display:flex;flex-direction:column;gap:18px;background:#fff}.space-opening{margin:auto;display:inline-flex;align-items:center;align-self:center;gap:10px;color:var(--aui-text-tertiary);font-size:13px}.space-opening-orbit{width:34px;height:34px;display:grid;place-items:center;border-radius:999px;color:var(--aui-accent);background:color-mix(in srgb,var(--aui-accent) 10%,white);animation:space-orbit 1.8s ease-in-out infinite}.conversation-starters{display:flex;flex-wrap:wrap;gap:8px;padding-left:34px}.conversation-starters button{min-height:34px;padding:7px 11px;border:1px solid var(--aui-border-light);border-radius:999px;color:var(--aui-text-secondary);background:#fff;font-size:12px;cursor:pointer;transition:border-color .15s ease,color .15s ease,transform .15s ease}.conversation-starters button:hover{color:var(--aui-accent);border-color:color-mix(in srgb,var(--aui-accent) 35%,var(--aui-border-light));transform:translateY(-1px)}@keyframes space-orbit{0%,to{transform:rotate(-5deg) scale(.96)}50%{transform:rotate(7deg) scale(1.05)}}.message-row{width:100%;display:flex}.message-row.agent{justify-content:flex-start}.message-row.human{justify-content:flex-end}.bubble-wrap{min-width:0;max-width:min(80%,680px);display:flex;flex-direction:column;gap:6px}.message-row.human .bubble-wrap{align-items:flex-end}.message-row.agent .bubble-wrap{align-items:flex-start}.message-meta{max-width:100%;gap:6px;min-height:22px;color:var(--aui-text-secondary)}.message-row.human .message-meta{justify-content:flex-end}.message-meta small{flex:0 0 auto;padding:1px 6px;border-radius:999px;background:color-mix(in srgb,var(--aui-surface-secondary) 75%,transparent)}.bubble{max-width:100%;white-space:pre-wrap;word-break:break-word;border-radius:16px;background:var(--aui-surface-secondary);padding:10px 14px;color:var(--aui-primary);font-size:14px;line-height:1.65}.message-row.agent .bubble{padding:2px 4px;border-radius:0;background:transparent;line-height:1.7}.message-card-list{width:min(100%,520px);display:grid;gap:8px}.message-card{display:grid;gap:6px;padding:12px;border:1px solid var(--aui-border-light);border-left:3px solid #2563eb;border-radius:8px;background:#fff;box-shadow:var(--aui-shadow-sm)}.message-card.notice{border-left-color:#f59e0b}.message-card.result{border-left-color:#22c55e}.message-card-topline{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--aui-text-tertiary);font-size:11px}.message-card strong{color:var(--aui-primary);font-size:13px;font-weight:650;line-height:1.35}.message-card p{color:var(--aui-text-secondary);font-size:12px;line-height:1.5}.message-card a{width:fit-content;color:var(--aui-accent);font-size:12px;font-weight:600;text-decoration:none}.message-card.artifact{border-left-color:#7c3aed;background:linear-gradient(135deg,#fff,#faf8ff)}.artifact-download{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border-radius:7px;background:color-mix(in srgb,var(--aui-accent) 8%,white)}.mention-token{color:var(--aui-accent);font-weight:600}.stream-caret{display:inline-block;width:6px;height:17px;margin-left:2px;vertical-align:-3px;border-radius:4px;background:color-mix(in srgb,var(--aui-accent) 62%,transparent);animation:caret-blink .9s ease-in-out infinite}.typing-row,.runtime-error,.inline-error,.streaming-indicator{gap:7px;color:var(--aui-text-tertiary);font-size:12px}.streaming-indicator{display:inline-flex;align-items:center}.dot{width:3px;height:3px;border-radius:999px;background:color-mix(in srgb,var(--aui-accent) 60%,transparent)}.runtime-error,.inline-error{color:#b42318}.runtime-error{flex:0 0 auto;margin:0 24px 12px;padding:9px 12px;border:1px solid #fecaca;background:#fff1f2;border-radius:8px}.composer{flex:0 0 auto;position:relative;z-index:2;padding:14px 24px 18px;border-top:1px solid #e5e7eb;background:#fff}.composer-shell{position:relative;display:flex;width:100%;flex-direction:column;gap:8px;border:1px solid var(--aui-border-light);border-radius:16px;background:var(--aui-surface);padding:10px 12px;box-shadow:0 10px 30px #0f172a0a;transition:border-color .15s ease,box-shadow .15s ease}.composer-shell:focus-within{border-color:var(--aui-border);box-shadow:0 16px 40px #0f172a12}.composer-input-shell{position:relative;min-width:0}.composer textarea{width:100%;min-height:48px;max-height:150px;resize:none;display:block;padding:0;border:0;outline:none;background:transparent;color:var(--aui-primary);font-size:14px;line-height:24px}.composer textarea::placeholder{color:color-mix(in srgb,var(--aui-text-tertiary) 75%,transparent)}.composer-footer{justify-content:space-between;gap:10px}.composer-sender{min-width:0;gap:6px;color:var(--aui-text-tertiary);font-size:12px}.sender-dot{width:6px;height:6px;flex:0 0 auto;border-radius:999px;background:var(--aui-success)}.send-button{width:28px;height:28px;flex:0 0 auto;display:inline-grid;place-items:center;border-radius:999px;color:var(--aui-text-secondary);background:var(--aui-surface-secondary);cursor:pointer;transition:background .15s ease,color .15s ease,opacity .15s ease}.send-button:hover:not(:disabled){color:var(--aui-primary);background:var(--aui-border)}.send-button:disabled{opacity:.42;cursor:not-allowed}.history-layer{position:fixed;inset:0;z-index:60}.history-backdrop{position:absolute;inset:0;width:100%;height:100%;padding:0;border-radius:0;background:#0f172a47;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);animation:mobile-backdrop-in .16s ease-out}.history-drawer{position:absolute;inset:0 auto 0 0;width:340px;max-width:calc(100vw - 24px);display:flex;flex-direction:column;gap:14px;padding:18px;padding-top:max(18px,env(safe-area-inset-top));padding-bottom:max(18px,env(safe-area-inset-bottom));border-right:1px solid var(--aui-border-light);background:color-mix(in srgb,var(--aui-surface) 96%,transparent);box-shadow:24px 0 60px #0f172a29;animation:history-drawer-in .18s ease-out}.history-header,.history-header>div,.history-sync-state,.history-new-button,.history-item,.history-item-actions{display:flex;align-items:center}.history-header{justify-content:space-between;gap:12px}.history-header>div{min-width:0;align-items:flex-start;flex-direction:column;gap:3px}.history-header h2{margin:0;color:var(--aui-primary);font-size:19px}.history-header .section-kicker{display:inline-flex;align-items:center;gap:5px}.history-new-button{min-height:44px;justify-content:center;gap:8px;border-radius:12px;color:#fff;background:var(--aui-primary);cursor:pointer}.history-sync-state{min-height:18px;gap:6px;color:var(--aui-text-tertiary);font-size:11px}.history-error{overflow:hidden;color:#b45309;text-overflow:ellipsis;white-space:nowrap}.history-list{min-height:0;flex:1;display:flex;flex-direction:column;gap:7px;overflow-y:auto;overscroll-behavior:contain}.history-empty{margin:28px 0;color:var(--aui-text-tertiary);text-align:center}.history-item{min-height:62px;gap:4px;padding:5px;border:1px solid transparent;border-radius:12px;background:transparent}.history-item:hover{background:var(--aui-surface-secondary)}.history-item.active{border-color:color-mix(in srgb,var(--aui-accent) 22%,transparent);background:var(--aui-accent-light)}.history-select{min-width:0;flex:1;display:flex;align-items:flex-start;flex-direction:column;gap:4px;padding:7px 8px;border-radius:8px;color:var(--aui-primary);background:transparent;cursor:pointer;text-align:left}.history-select strong,.history-select span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-select strong{font-size:13px}.history-select span{color:var(--aui-text-tertiary);font-size:11px}.history-item-actions{flex:0 0 auto;gap:1px}.history-item-actions button{width:34px;height:34px;display:inline-grid;place-items:center;border-radius:8px;color:var(--aui-text-tertiary);background:transparent;cursor:pointer}.history-item-actions button:hover{color:var(--aui-primary);background:var(--aui-surface)}.history-title-input{min-width:0;height:40px;flex:1;padding:0 9px;border:1px solid var(--aui-accent);border-radius:9px;outline:none;color:var(--aui-primary);background:var(--aui-surface)}.mention-menu{position:absolute;left:0;bottom:calc(100% + 10px);z-index:5;width:min(360px,100%);max-height:260px;overflow-y:auto;padding:6px;border:1px solid var(--aui-border-light);border-radius:12px;background:var(--aui-surface);box-shadow:0 10px 40px #0f172a1f}.mention-menu button{width:100%;min-height:42px;display:flex;align-items:center;gap:10px;padding:7px 8px;border-radius:8px;color:var(--aui-primary);background:transparent;cursor:pointer;text-align:left;transition:background .15s ease}.mention-menu button:hover,.mention-menu button.active{background:color-mix(in srgb,var(--aui-surface-secondary) 66%,transparent)}.mention-menu strong{display:block;font-size:13px;font-weight:600}.mention-menu small{display:block;margin-top:1px;font-size:11px;color:var(--aui-text-tertiary)}.status-pill{display:inline-flex;align-items:center;height:24px;padding:0 8px;border-radius:999px;font-size:12px;font-weight:650;white-space:nowrap}.status-pill.ok{color:#047857;background:#d1fae5}.status-pill.warn{color:#a16207;background:#fef3c7}.canvas-panel{overflow:hidden;display:flex;flex-direction:column;border-left:1px solid #e5e7eb;background:#f7f8fb}.canvas-header{flex:0 0 auto;border-bottom:1px solid #e5e7eb;background:#fffffff5;padding:16px 18px}.canvas-meta{margin-top:6px;display:flex;flex-wrap:wrap;gap:8px;color:#6b7280;font-size:12px}.runtime-canvas-stage{flex:1;min-height:0;overflow-y:auto;padding:0}.runtime-monitor-canvas{display:block;width:100%;background:#f7f8fb}.canvas-a11y-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.drawer-backdrop{position:fixed;inset:0;z-index:20;display:flex;justify-content:flex-end;background:#0f172a52}.settings-drawer{width:min(440px,100vw);height:100%;border-left:1px solid #e5e7eb;padding:18px;overflow-y:auto;background:#fff;box-shadow:var(--aui-shadow-lg)}.drawer-header{justify-content:space-between;gap:12px;margin-bottom:18px}.drawer-header .icon-button{font-size:24px}.form-stack{display:grid;gap:14px}.field{display:grid;gap:7px}.field span,.toggle-row{font-size:13px;color:var(--aui-text-secondary);font-weight:650}.field small{color:var(--aui-text-tertiary);font-size:12px;line-height:1.45}.field input,.field select,.password-field input{width:100%;height:38px;padding:0 11px;border-radius:8px;border:1px solid var(--aui-border);outline:none;background:#fff;color:var(--aui-primary)}.field input:focus,.field select:focus,.password-field input:focus{border-color:var(--aui-accent);box-shadow:0 0 0 3px #2563eb1f}.field select{appearance:none;background:linear-gradient(45deg,transparent 50%,var(--aui-text-tertiary) 50%) calc(100% - 16px) 16px / 6px 6px no-repeat,linear-gradient(135deg,var(--aui-text-tertiary) 50%,transparent 50%) calc(100% - 10px) 16px / 6px 6px no-repeat,#fff}.runtime-config-block{display:grid;gap:12px;padding-top:4px}.runtime-note{border:1px solid var(--aui-border-light);border-radius:8px;background:color-mix(in srgb,var(--aui-surface-secondary) 58%,transparent);padding:9px 10px;color:var(--aui-text-secondary);font-size:12px;line-height:1.5}.local-runtime-panel{padding:12px;border:1px solid #bfdbfe;border-radius:10px;background:#f8fbff}.local-runtime-panel .secondary-button{flex:0 0 auto;width:auto;height:34px;padding:0 10px;font-size:12px}.local-runtime-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px}.pairing-command{display:grid;gap:8px}.pairing-command code{overflow:auto;max-height:120px;padding:10px;border-radius:8px;color:#dbeafe;background:#172033;font-size:11px;line-height:1.55;white-space:pre-wrap;word-break:break-all}.pairing-command button{justify-self:end;padding:5px 9px;border-radius:7px;color:#1d4ed8;background:#dbeafe;cursor:pointer}.local-runtime-list{display:grid;gap:7px}.local-runtime-row{display:grid;gap:8px;min-width:0;padding:8px 9px;border:1px solid var(--aui-border-light);border-radius:8px;background:#fff}.local-runtime-summary{display:flex;align-items:center;gap:9px}.local-runtime-summary>span:last-child{min-width:0;display:grid;gap:2px}.local-runtime-summary strong,.local-runtime-summary small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.local-runtime-summary strong{font-size:12px}.local-runtime-summary small{color:var(--aui-text-tertiary);font-size:11px}.local-provider-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.local-provider-grid.pending{padding:2px 0}.local-provider-card{display:grid;gap:2px;min-width:0;padding:7px 8px;border:1px solid var(--aui-border-light);border-radius:7px;background:var(--aui-surface-secondary)}.local-provider-card.available{border-color:#bbf7d0;background:#f0fdf4}.local-provider-card strong,.local-provider-card small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.local-provider-card strong{font-size:11px}.local-provider-card small{color:var(--aui-text-tertiary);font-size:10px}.runtime-presence{width:8px;height:8px;flex:0 0 auto;border-radius:999px;background:var(--aui-success)}.local-runtime-row.busy .runtime-presence{background:var(--aui-warning)}.local-runtime-row.offline .runtime-presence{background:var(--aui-text-tertiary)}.field .field-error{color:var(--aui-error)}.skill-panel{display:grid;gap:10px;padding:12px;border:1px solid var(--aui-border-light);border-radius:8px;background:#fbfbfc}.skill-panel-header,.skill-upload-row,.skill-bind-row,.skill-chip,.skill-empty,.skill-row{display:flex;align-items:center}.skill-panel-header{justify-content:space-between;gap:10px}.skill-panel-header span{display:block;color:var(--aui-primary);font-size:13px;font-weight:650}.skill-panel-header small{display:block;margin-top:2px;color:var(--aui-text-tertiary);font-size:12px}.skill-upload-row{gap:8px}.skill-upload-row .secondary-button{min-width:0;height:36px;font-size:12px}.file-button{position:relative}.file-button input{position:absolute;inset:0;opacity:0;cursor:pointer}.skill-bind-row{gap:8px}.skill-bind-row input{min-width:0;flex:1;height:34px;padding:0 10px;border:1px solid var(--aui-border);border-radius:8px;outline:none;background:#fff}.skill-bind-row button,.skill-chip button{flex:0 0 auto;display:grid;place-items:center;border-radius:7px;color:var(--aui-text-secondary);background:var(--aui-surface-secondary);cursor:pointer}.skill-bind-row button{width:34px;height:34px}.skill-selected-list{display:flex;flex-wrap:wrap;gap:6px;min-height:28px}.skill-chip{max-width:100%;gap:6px;padding:4px 5px 4px 8px;border:1px solid #bfdbfe;border-radius:999px;color:#1d4ed8;background:#eff6ff;font-size:12px;font-weight:600}.skill-chip button{width:20px;height:20px;color:#1d4ed8;background:#2563eb14}.skill-empty{min-height:30px;gap:6px;color:var(--aui-text-tertiary);font-size:12px}.skill-list{display:grid;gap:6px;max-height:250px;overflow-y:auto}.skill-row{width:100%;justify-content:space-between;gap:8px;min-height:44px;padding:7px 8px;border-radius:8px;color:var(--aui-primary);background:#fff;border:1px solid var(--aui-border-light);cursor:pointer;text-align:left}.skill-row.selected{border-color:#bfdbfe;background:#eff6ff}.skill-row span{min-width:0;display:grid;gap:2px}.skill-row strong,.skill-row small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.skill-row strong{font-size:12px;font-weight:650}.skill-row small{color:var(--aui-text-tertiary);font-size:11px}.skill-message{padding:8px 9px;border-radius:8px;font-size:12px;line-height:1.45}.skill-message.success{color:#047857;background:#ecfdf5}.skill-message.error{color:#b42318;background:#fff1f2}.skill-message.uploading,.skill-message.syncing{color:#1d4ed8;background:#eff6ff}.password-field{position:relative}.password-field input{padding-right:42px}.password-field button{position:absolute;right:6px;top:50%;width:28px;height:28px;display:grid;place-items:center;transform:translateY(-50%);border-radius:7px;color:var(--aui-text-secondary);background:var(--aui-surface-secondary);cursor:pointer}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:10px}.toggle-row{display:flex;align-items:center;gap:8px}.toggle-row input{width:16px;height:16px}.test-result{margin-top:16px;min-height:38px;gap:8px;padding:9px 11px;border-radius:8px;font-size:13px}.test-result.testing{color:#1d4ed8;background:#eff6ff}.test-result.success{color:#047857;background:#ecfdf5}.test-result.error{color:#b42318;background:#fff1f2}.drawer-actions{gap:10px;margin-top:18px}.secondary-button,.primary-button{flex:1;height:40px}.secondary-button{color:#344054;background:#fff;border:1px solid var(--aui-border)}.primary-button{color:#fff;background:var(--aui-accent)}.spin{animation:spin .9s linear infinite}.aui-canvas-panel-enter{animation:aui-canvas-panel-enter .18s ease-out both}.aui-dot-1{animation:aui-pulse-dot 2s cubic-bezier(.4,0,.6,1) infinite}.aui-dot-2{animation:aui-pulse-dot 2s cubic-bezier(.4,0,.6,1) infinite .15s}.aui-dot-3{animation:aui-pulse-dot 2s cubic-bezier(.4,0,.6,1) infinite .3s}@keyframes spin{to{transform:rotate(360deg)}}@keyframes caret-blink{0%,to{opacity:1}50%{opacity:.25}}@keyframes aui-pulse-dot{0%,to{opacity:1}50%{opacity:.45}}@keyframes aui-canvas-panel-enter{0%{opacity:0;transform:translate(16px)}to{opacity:1;transform:translate(0)}}.add-agent-dialog{width:min(520px,90vw);max-height:85vh;margin:auto;border-radius:12px;background:#fff;box-shadow:var(--aui-shadow-lg);display:flex;flex-direction:column;overflow:hidden}.dialog-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--aui-border-light)}.dialog-header h3{margin:0;font-size:16px;font-weight:650}.dialog-body{padding:20px;overflow-y:auto;display:grid;gap:14px}.dialog-body textarea{resize:vertical;min-height:72px;font-family:inherit}.add-agent-dialog .drawer-actions{padding:14px 20px;border-top:1px solid var(--aui-border-light)}.member-row.custom-agent{position:relative}.member-row.custom-agent:not(:disabled){cursor:pointer}.member-actions{margin-left:auto;opacity:0;color:var(--aui-text-tertiary);padding:4px;border-radius:4px;display:flex;align-items:center;cursor:pointer;transition:opacity .15s ease,color .15s ease}.member-row:hover .member-actions{opacity:1}.member-actions:hover{color:var(--aui-error)}.add-agent-row{border:1px dashed var(--aui-border);margin-top:4px;opacity:.7;transition:opacity .15s ease,border-color .15s ease}.add-agent-row:hover{opacity:1;border-color:var(--aui-accent)}.add-agent-row .avatar{background:var(--aui-accent-light)!important;color:var(--aui-accent)!important}@media(max-width:1180px){.workspace-grid{grid-template-columns:232px minmax(360px,1fr);grid-template-rows:minmax(0,1fr) 360px}.canvas-panel{grid-column:1 / -1;border-top:1px solid #e5e7eb;border-left:0}}@media(max-width:820px),(max-width:960px)and (max-height:600px){body{overflow:hidden}.app-shell{width:100%;height:100vh;height:100dvh;min-height:0}.topbar{position:relative;z-index:10;flex:0 0 60px;height:60px;gap:8px;padding:0 10px 0 12px;box-shadow:0 1px #0f172a0a}.topbar .status-pill{display:none}.brand-block{flex:1;gap:9px;overflow:hidden}.brand-mark{width:30px;height:30px;flex:0 0 auto}.brand-copy{display:block;overflow:hidden}.brand-block h1{font-size:15px}.brand-block p{display:block;overflow:hidden;max-width:34vw;text-overflow:ellipsis;white-space:nowrap}.topbar-actions{gap:1px}.identity-pill small,.invite-button{display:none}.identity-pill{height:40px;padding:0;border-color:transparent;background:transparent}.identity-pill>span{width:30px;height:30px}.topbar-topic-button{width:40px;height:40px;justify-content:center;padding:0;border-color:transparent;background:transparent}.topbar-topic-button span{display:none}.topbar-actions .icon-button{width:40px;height:40px}.mobile-only{display:flex!important}.topbar-actions .mobile-only{display:grid!important}.mobile-panel-header.mobile-only,.mobile-panel-backdrop.mobile-only{display:block!important}.workspace-grid{height:calc(100vh - 60px);height:calc(100dvh - 60px);min-height:0;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr);overflow:hidden}.chat-panel{grid-column:1;grid-row:1;width:100%;height:100%;min-height:0}.thread-header{display:none}.message-list{height:0;padding:16px 14px 12px;gap:16px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.message-card-list,.message-card{width:100%}.composer{padding:10px 12px calc(10px + env(safe-area-inset-bottom));box-shadow:0 -8px 30px #0f172a09}.composer-shell{border-radius:18px;padding:9px 10px}.composer textarea{min-height:42px;max-height:112px}.send-button{width:40px;height:40px}.bubble-wrap{max-width:92%}.conversation-starters{padding-left:0}.conversation-starters button{min-height:40px}.history-drawer{width:min(88vw,360px);max-width:none;padding-left:14px;padding-right:14px}.history-item-actions button{width:44px;height:44px}.runtime-error{margin:0 12px 8px}.mobile-panel-backdrop{position:fixed;inset:0;z-index:19;width:100%;height:100%;padding:0;background:#0f172a47;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);cursor:default;animation:mobile-backdrop-in .18s ease-out both}.side-panel,.canvas-panel{position:fixed;left:0;right:0;bottom:0;z-index:20;width:100%;height:min(82dvh,720px);max-height:calc(100dvh - 44px);border:0;border-radius:22px 22px 0 0;box-shadow:0 -18px 52px #0f172a2e;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(calc(100% + 24px));transition:transform .2s cubic-bezier(.22,1,.36,1),opacity .16s ease,visibility 0s linear .2s}.side-panel{display:block;padding:0 14px calc(20px + env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain}.canvas-panel{display:flex;overflow:hidden;animation:none}.side-panel.mobile-panel-open,.canvas-panel.mobile-panel-open{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0);transition:transform .2s cubic-bezier(.22,1,.36,1),opacity .16s ease}.side-panel .mobile-panel-header{position:sticky;top:0;z-index:2;margin:0 -14px 14px}.side-panel>.panel-title:first-of-type,.canvas-panel>.canvas-header{display:none}.canvas-panel .mobile-panel-header{display:block}.runtime-canvas-stage{min-height:0;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.settings-drawer{top:auto;bottom:0;width:100%;max-width:none;height:min(92dvh,840px);border-radius:22px 22px 0 0;padding-bottom:env(safe-area-inset-bottom)}.add-agent-dialog,.topic-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:20px}.two-col{grid-template-columns:1fr}}@media(max-width:480px){.topbar{padding-left:10px;padding-right:6px}.brand-mark{display:none}.brand-block h1{font-size:14px}.brand-block p{max-width:37vw;font-size:11px}.topbar-actions .icon-button{width:44px;height:44px}.message-list{padding-left:12px;padding-right:12px}.bubble-wrap{max-width:94%}.message-meta span:not(.avatar),.message-meta small{font-size:10px}.composer{padding-left:8px;padding-right:8px}.send-button{width:44px;height:44px}}@media(prefers-reduced-motion:reduce){.mobile-panel-backdrop,.side-panel,.canvas-panel,.history-backdrop,.history-drawer{animation:none!important;transition:none!important}}@keyframes mobile-backdrop-in{0%{opacity:0}to{opacity:1}}@keyframes history-drawer-in{0%{transform:translate(-24px);opacity:0}to{transform:translate(0);opacity:1}}
