:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;font-synthesis:none;--rail:#121316;--sidebar:#1b1d21;--surface:#202329;--surface-raised:#292d35;--surface-hover:#313640;--border:#343943;--text:#f2f3f5;--muted:#aeb3bd;--faint:#7d838f;--accent:#7db7ff;--accent-strong:#5a9ff5;--accent-wash:#163653;--agent:#8ed6c1;--agent-wash:#173c36;--danger:#ff9f9f;--danger-wash:#512a30;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}html,body,#root{min-width:320px;min-height:100%;margin:0}body{background:var(--rail);min-height:100dvh;color:var(--text);overflow:hidden}button,textarea,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{color:inherit}button:focus-visible,a:focus-visible,textarea:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.app-loading{min-height:100dvh;color:var(--muted);background:var(--surface);align-content:center;justify-items:center;gap:12px;display:grid}.auth-page{background:radial-gradient(circle at 20% 10%, #5a9ff529, transparent 35%), radial-gradient(circle at 80% 90%, #8ed6c11a, transparent 32%), var(--rail);place-items:center;min-height:100dvh;padding:28px;display:grid;overflow-y:auto}.auth-card{border:1px solid var(--border);background:#202329f5;border-radius:18px;width:min(440px,100%);padding:36px;box-shadow:0 26px 90px #0000006b}.auth-mark{background:var(--accent-strong);color:#07182c;border-radius:16px;place-items:center;width:52px;height:52px;margin-bottom:24px;display:grid}.auth-mark svg{width:27px}.auth-card h1{letter-spacing:-.025em;margin:0;font-size:29px}.auth-intro{color:var(--muted);margin:12px 0 24px;line-height:1.55}.auth-form{gap:9px;display:grid}.auth-form label{color:var(--muted);font-size:12px;font-weight:750}.auth-form input{width:100%;height:46px;color:var(--text);background:#17191e;border:1px solid #4a5260;border-radius:9px;outline:0;padding:0 13px}.auth-form input:focus{border-color:var(--accent)}.auth-form .primary-button,.auth-card>.primary-button{width:100%}.auth-alert,.auth-confirmation{border-radius:9px;padding:13px}.auth-alert{background:var(--danger-wash);color:#ffd5d5;border:1px solid #76525a;line-height:1.45}.auth-confirmation{color:#c9e7f7;background:#192b37;border:1px solid #395568;grid-template-columns:28px minmax(0,1fr);gap:11px;display:grid}.auth-confirmation>svg{width:22px}.auth-confirmation strong{margin-bottom:4px;display:block}.auth-confirmation p{color:#b7d0de;margin:0;line-height:1.45}.secondary-button{min-height:38px;color:var(--text);cursor:pointer;background:0 0;border:1px solid #4d6070;border-radius:8px;padding:0 13px}.auth-confirmation .secondary-button{grid-column:1/-1;margin-top:4px}.auth-footnote{color:var(--faint);margin:20px 0 0;font-size:12px;line-height:1.45}.app-shell{isolation:isolate;background:var(--surface);grid-template-columns:76px 252px minmax(0,1fr);width:100vw;height:100dvh;display:grid;position:relative;overflow:hidden}.empty-workspace-shell{background:var(--surface);grid-template-columns:76px minmax(0,1fr);width:100vw;height:100dvh;display:grid}.empty-workspace{place-self:center;justify-items:start;width:min(520px,100% - 48px);display:grid}.empty-workspace h1{margin:4px 0 9px}.empty-workspace p{color:var(--muted);margin:0;line-height:1.5}.workspace-rail,.channel-sidebar{min-height:0}.workspace-rail{z-index:3;background:var(--rail);flex-direction:column;justify-content:space-between;padding:14px 10px 10px;display:flex;overflow:hidden}.workspace-list,.account-controls{flex-direction:column;align-items:center;gap:10px;display:flex}.workspace-list{scrollbar-width:none;min-height:0;overflow-y:auto}.workspace-list::-webkit-scrollbar{display:none}.workspace-button{width:48px;height:48px;color:var(--text);cursor:pointer;background:#292c32;border:0;border-radius:50%;flex:none;place-items:center;padding:0;transition:border-radius .14s,background .14s,color .14s;display:grid;position:relative}.workspace-button:hover,.workspace-button[data-active=true]{background:var(--accent-strong);color:#07182c;border-radius:15px}.workspace-button[data-active=true]:before{background:var(--text);content:"";border-radius:0 4px 4px 0;width:4px;height:34px;position:absolute;left:-12px}.workspace-button svg{width:21px}.workspace-create{color:#81d9af}.workspace-create:hover{color:#fff;background:#2da36e}.account-controls{border-top:1px solid var(--border);padding-top:10px}.account-avatar{background:#4a3b34}.icon-button{width:34px;height:34px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:8px;place-items:center;padding:0;display:inline-grid}.icon-button:hover{background:var(--surface-hover);color:var(--text)}.icon-button svg{width:19px;height:19px}.channel-sidebar{z-index:2;border-right:1px solid var(--border);background:var(--sidebar);grid-template-rows:64px minmax(0,1fr) auto;display:grid}.workspace-heading{border:0;border-bottom:1px solid var(--border);cursor:pointer;background:0 0;justify-content:space-between;align-items:center;padding:0 18px;font-size:17px;font-weight:700;display:flex}.workspace-heading:hover{background:#ffffff09}.workspace-heading svg{width:17px}.channel-section{min-height:0;padding:22px 10px 12px;overflow-y:auto}.channel-section-heading{color:var(--faint);letter-spacing:.06em;text-transform:uppercase;justify-content:space-between;align-items:center;padding:0 8px 8px;font-size:12px;font-weight:800;display:flex}.channel-section-heading .icon-button{width:28px;height:28px}.channel-list{gap:3px;display:grid}.channel-link{min-width:0;color:var(--muted);border-radius:7px;align-items:center;gap:9px;padding:8px 10px;font-size:16px;text-decoration:none;display:flex}.channel-link>span:last-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.channel-link:hover{color:var(--text);background:#ffffff0b}.channel-link[data-active=true]{background:var(--accent-wash);color:#e8f3ff}.workspace-actions{border-top:1px solid var(--border);grid-template-columns:1fr;gap:3px;padding:10px;display:grid}.workspace-actions button{min-height:39px;color:var(--muted);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:7px;align-items:center;gap:10px;padding:8px 10px;display:flex}.workspace-actions button:hover{background:var(--surface-hover);color:var(--text)}.workspace-actions svg{flex:none;width:18px}.conversation{background:var(--surface);grid-template-rows:64px minmax(0,1fr) auto;min-width:0;min-height:0;display:grid;position:relative}.channel-header{z-index:1;border-bottom:1px solid var(--border);background:#202329f5;justify-content:space-between;align-items:center;padding:0 18px;display:flex;box-shadow:0 1px 8px #00000029}.channel-title,.members-button{align-items:center;display:flex}.channel-title{gap:8px;min-width:0}.channel-title svg{width:22px;color:var(--faint)}.channel-title h1{text-overflow:ellipsis;white-space:nowrap;margin:0;font-size:18px;overflow:hidden}.members-button{border:1px solid var(--border);background:var(--surface-raised);min-height:38px;color:var(--muted);cursor:pointer;border-radius:10px;gap:8px;padding:0 12px}.members-button:hover,.members-button[aria-expanded=true]{color:var(--text);border-color:#596170}.members-button svg{width:19px}.message-timeline{scrollbar-color:#4a505b transparent;min-height:0;padding:28px 26px;overflow-y:auto}.message{border-radius:8px;grid-template-columns:42px minmax(0,1fr);gap:13px;max-width:960px;margin:0 auto 7px;padding:9px 8px;display:grid}.message:hover{background:#00000017}.message-avatar,.member-avatar{color:#fff;background:#40454f;border-radius:50%;place-items:center;font-weight:700;display:grid}.message-avatar{width:42px;height:42px}.message-avatar[data-kind=agent],.member-avatar[data-kind=agent]{background:#355269}.message-content{min-width:0}.message-meta{flex-wrap:wrap;align-items:center;gap:7px;min-height:22px;display:flex}.message-meta strong{font-size:15px}.message-meta time{color:var(--faint);font-size:12px}.agent-badge{background:var(--accent);color:#092039;letter-spacing:.04em;border-radius:4px;align-items:center;height:19px;padding:0 6px;font-size:10px;font-weight:900;display:inline-flex}.message-content p{color:#e3e5e9;overflow-wrap:anywhere;margin:4px 0 0;line-height:1.5}.message-content .message-tombstone{color:var(--faint);font-style:italic}.load-older-button{border:1px solid var(--border);background:var(--surface-raised);min-height:34px;color:var(--muted);cursor:pointer;border-radius:8px;margin:0 auto 18px;padding:0 13px;display:block}.message-delete-button{color:var(--faint);cursor:pointer;background:0 0;border:0;border-radius:5px;padding:2px 7px;font-size:11px}.message-delete-button:hover{color:#ffb4b4;background:#493034}.message-delete-confirm{align-items:center;gap:6px;margin-top:7px;display:inline-flex}.message-delete-confirm button{border:1px solid var(--border);background:var(--surface-raised);color:var(--text);cursor:pointer;border-radius:5px;padding:4px 8px}.message-content .message-action-error{color:#f0a0a0;font-size:12px}.empty-channel{align-content:end;justify-items:start;max-width:760px;min-height:100%;margin:0 auto;padding:0 8px 40px;display:grid}.empty-channel-icon{background:var(--surface-raised);border-radius:50%;place-items:center;width:68px;height:68px;margin-bottom:18px;display:grid}.empty-channel-icon svg{width:34px}.empty-channel h2{margin:0 0 8px;font-size:25px}.empty-channel p{color:var(--muted);margin:0}.composer{width:calc(100% - 44px);max-width:976px;margin:0 auto;padding:0 0 24px;position:relative}.composer textarea{resize:vertical;width:100%;min-height:50px;max-height:180px;color:var(--text);background:#30343c;border:1px solid #0000;border-radius:10px;outline:none;padding:14px 116px 12px 16px;line-height:1.4;display:block}.composer textarea::placeholder{color:#9298a4}.composer textarea:focus{border-color:#64758a}.composer-hint,.send-error{position:absolute;bottom:39px;right:12px}.composer-hint{color:var(--faint);font-size:11px}.send-error{color:var(--danger);align-items:center;gap:8px;font-size:12px;display:flex}.send-error button{background:var(--danger-wash);color:#ffd8d8;cursor:pointer;border:0;border-radius:5px;align-items:center;gap:4px;padding:4px 7px;display:flex}.send-error svg{width:13px;height:13px}.drawer-backdrop{z-index:4;position:fixed;inset:0}.member-drawer{background:#191b20fa;border:1px solid #444a56;border-radius:13px;width:min(320px,100vw - 24px);padding:0 12px 18px;position:absolute;top:12px;bottom:12px;right:12px;overflow-y:auto;box-shadow:-14px 0 42px #00000057}.member-drawer>header{background:inherit;justify-content:space-between;align-items:center;height:54px;padding:0 4px;display:flex;position:sticky;top:0}.member-group{margin-top:20px}.member-group h2{color:var(--faint);letter-spacing:.06em;text-transform:uppercase;margin:0 8px 8px;font-size:12px}.member-group ul{margin:0;padding:0;list-style:none}.member-row{border-radius:8px;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:9px;min-height:48px;padding:6px 8px;display:grid}.member-row:hover{background:var(--surface-hover)}.member-avatar{grid-row:1/span 2;width:34px;height:34px}.member-name{text-overflow:ellipsis;white-space:nowrap;font-weight:650;overflow:hidden}.member-row .agent-badge{grid-column:3}.member-role{color:var(--faint);text-transform:capitalize;grid-column:2/span 2;font-size:11px}.modal-backdrop{z-index:20;background:#040609bd;place-items:center;padding:20px;display:grid;position:fixed;inset:0;overflow-y:auto}.modal{background:#202329;border:1px solid #454b57;border-radius:16px;outline:none;width:min(540px,100%);padding:24px;box-shadow:0 24px 80px #00000080}.modal-header{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.eyebrow{color:var(--accent);letter-spacing:.08em;text-transform:uppercase;margin-bottom:5px;font-size:11px;font-weight:800;display:block}.modal-title-row{align-items:center;gap:9px;display:flex}.modal h2{margin:0;font-size:23px}.back-button{background:var(--surface-raised);cursor:pointer;border:0;border-radius:7px;place-items:center;width:30px;height:30px;padding:0;display:inline-grid}.back-button svg{width:18px}.modal-intro{color:var(--muted);margin:18px 0 22px;line-height:1.5}.member-choice-list{gap:10px;display:grid}.member-choice{border:1px solid var(--border);text-align:left;cursor:pointer;background:#282c33;border-radius:11px;grid-template-columns:44px minmax(0,1fr) 24px;align-items:center;gap:13px;width:100%;padding:13px;display:grid}.member-choice:hover{background:#30353e;border-color:#596475}.member-choice>span:nth-child(2){gap:4px;display:grid}.member-choice small{color:var(--muted);line-height:1.35}.choice-icon,.credential-icon{background:var(--accent-wash);color:var(--accent);border-radius:10px;place-items:center;display:grid}.choice-icon{width:44px;height:44px}.choice-icon svg{width:21px}.agent-choice{background:var(--agent-wash);color:var(--agent)}.agent-form,.credential-view{margin-top:24px}.agent-form{gap:10px;display:grid}.agent-form label,.copy-field>span{color:var(--muted);font-size:12px;font-weight:700}.agent-form input{width:100%;height:44px;color:var(--text);background:#17191e;border:1px solid #4a5260;border-radius:8px;outline:0;padding:0 12px}.agent-form input:focus{border-color:var(--accent)}.handle-input{background:#17191e;border:1px solid #4a5260;border-radius:8px;grid-template-columns:auto minmax(0,1fr);align-items:center;display:grid}.handle-input:focus-within{border-color:var(--accent)}.handle-input>span{color:var(--muted);padding-left:12px}.agent-form .handle-input input{background:0 0;border:0}.form-callout{color:#c9e7f7;background:#192b37;border:1px solid #395568;border-radius:9px;grid-template-columns:24px 1fr;gap:10px;margin-bottom:8px;padding:13px;display:grid}.form-callout svg{width:20px}.form-callout p{margin:0;line-height:1.45}.primary-button{background:var(--accent-strong);color:#07182c;cursor:pointer;border:0;border-radius:8px;justify-content:center;align-items:center;gap:8px;min-height:42px;margin-top:10px;padding:0 16px;font-weight:800;display:inline-flex}.primary-button:disabled{cursor:not-allowed;opacity:.48}.primary-button svg{width:18px}.credential-view{justify-items:stretch;gap:13px;display:grid}.credential-icon{width:48px;height:48px}.credential-icon.warning{color:#ffd28c;background:#4d3920}.credential-view h3{margin:2px 0 0;font-size:20px}.credential-view>p{color:var(--muted);margin:0 0 4px;line-height:1.45}.copy-field{gap:6px;display:grid}.copy-field>span:has(input){grid-template-columns:minmax(0,1fr) 36px;align-items:center;gap:4px;display:grid}.copy-field input{border:1px solid var(--border);color:#d9e8fa;background:#16181c;border-radius:7px;min-width:0;height:40px;padding:0 10px;font-size:12px}.copy-field>div{border:1px solid var(--border);background:#16181c;border-radius:8px;grid-template-columns:minmax(0,1fr) 36px;align-items:center;min-height:44px;padding:4px 4px 4px 11px;display:grid}.copy-field code{color:#d9e8fa;text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.inline-loading{background:var(--surface-raised);color:var(--muted);text-align:center;border-radius:8px;padding:20px}.settings-modal{width:min(680px,100%);max-height:min(780px,100dvh - 40px);overflow-y:auto}.settings-section{margin-top:24px}.settings-section h3{color:var(--muted);letter-spacing:.06em;text-transform:uppercase;margin:0 0 9px;font-size:12px}.settings-list{border:1px solid var(--border);background:#1a1d22;border-radius:10px;overflow:hidden}.settings-row{justify-content:space-between;align-items:center;gap:12px;min-height:52px;padding:9px 12px;display:flex}.settings-row+.settings-row{border-top:1px solid var(--border)}.settings-row small{color:var(--faint);text-transform:capitalize}.member-settings-row>span:first-child{align-items:center;gap:8px;min-width:0;display:flex}.member-settings-row>span:first-child svg{width:17px;color:var(--agent)}.settings-actions,.confirm-actions{flex-wrap:wrap;justify-content:flex-end;gap:6px;display:flex}.settings-actions button,.confirm-actions button,.danger-text-button{border:1px solid var(--border);background:var(--surface-raised);min-height:30px;color:var(--muted);cursor:pointer;border-radius:6px;padding:0 9px}.danger-text-button{color:#e78d8d;background:0 0;border-color:#0000;align-items:center;gap:5px;display:inline-flex}.danger-text-button svg{width:15px}.confirm-actions .danger-button{color:#ffd8d8;background:#5a3034;border-color:#75464a}.form-error{color:#ffd4d4;background:#492c30;border:1px solid #75464a;border-radius:8px;margin:16px 0 0;padding:10px 12px}.credential-view .secondary-button{justify-content:center;align-items:center;gap:7px;display:inline-flex}.credential-view .secondary-button svg{width:17px}@media (width<=920px){.app-shell{grid-template-columns:68px 220px minmax(0,1fr)}.members-button span{display:none}}@media (width<=680px){body{overflow:auto}.app-shell{grid-template-rows:66px 86px minmax(480px,calc(100dvh - 152px));grid-template-columns:minmax(0,1fr);height:auto;min-height:100dvh;overflow:visible}.workspace-rail{border-bottom:1px solid var(--border);flex-direction:row;padding:9px 10px}.workspace-list,.account-controls{flex-direction:row}.workspace-list{overflow:auto hidden}.workspace-button{width:44px;height:44px}.workspace-button[data-active=true]:before{display:none}.account-controls{border-top:0;border-left:1px solid var(--border);padding-top:0;padding-left:10px}.channel-sidebar{border-right:0;border-bottom:1px solid var(--border);grid-template-rows:86px;grid-template-columns:150px minmax(0,1fr) auto;display:grid}.workspace-heading{border-right:1px solid var(--border);border-bottom:0;height:86px;padding:0 13px}.channel-section{align-items:center;padding:8px;display:flex;overflow:auto hidden}.channel-section-heading{display:none}.channel-list{gap:4px;display:flex}.channel-link{white-space:nowrap}.workspace-actions{border-top:0;border-left:1px solid var(--border);padding:8px;display:flex}.workspace-actions button{justify-content:center;padding:8px}.workspace-actions button span{clip:rect(0, 0, 0, 0);width:1px;height:1px;position:absolute;overflow:hidden}.message-timeline{padding:20px 12px}.composer{width:calc(100% - 24px);padding-bottom:12px}.composer-hint,.send-error{bottom:27px}.modal-backdrop{align-items:end;padding:10px}.modal{max-height:calc(100dvh - 20px);padding:20px;overflow-y:auto}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
