:root{color-scheme:dark;--page-bg: #212121;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:var(--page-bg);color:#f4f4f5;font-synthesis:none;line-height:1.5;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}html,body,#root{width:100%;height:100%;min-height:100%;margin:0}body{overflow:hidden;background:var(--page-bg)}button,input,select,textarea{font:inherit}button{cursor:pointer}.app-shell{display:flex;flex-direction:column;width:100vw;height:100vh;margin:0;overflow:hidden;border:0;border-radius:0;background:#fff;box-shadow:none}:root[data-theme=day]{color-scheme:light;--page-bg: #ffffff}.app-body{display:flex;flex:1;min-width:0;min-height:0;gap:0;padding:0}.history-sidebar{position:relative;display:flex;width:330px;flex:0 0 330px;min-width:300px;min-height:0;flex-direction:column;gap:10px;padding:12px;overflow:hidden;background:#f9f9f9;box-shadow:inset -1px 0 #ececec;transition:width .18s ease,flex-basis .18s ease,min-width .18s ease,padding .18s ease}.history-sidebar.is-collapsed{width:56px;flex:0 0 56px;min-width:56px;align-items:center;gap:0;padding:12px 8px}.sidebar-header{display:flex;flex-direction:column;flex:0 0 auto;gap:10px}.sidebar-brand-row{display:flex;min-height:38px;align-items:center;justify-content:space-between;gap:12px;padding:0 2px 0 3px}.sidebar-brand{overflow:hidden;color:#18181b;font-size:20px;font-weight:690;line-height:1.1;text-overflow:ellipsis;white-space:nowrap}.sidebar-collapse-button,.collapsed-sidebar-button{display:grid;width:38px;height:38px;flex:0 0 38px;place-items:center;border:0;border-radius:11px;color:#3f3f46;background:transparent;transition:background .16s ease,color .16s ease}.sidebar-collapse-button:hover:not(:disabled),.collapsed-sidebar-button:hover:not(:disabled){color:#18181b;background:#eee}.collapsed-sidebar-button:disabled{cursor:not-allowed;opacity:.48}.collapsed-sidebar-top,.collapsed-sidebar-bottom{display:flex;width:100%;flex-direction:column;align-items:center;gap:10px}.history-sidebar.is-collapsed .collapsed-sidebar-button{width:36px;height:36px;flex-basis:36px}.collapsed-sidebar-spacer{flex:1}.new-session-button{display:flex;align-items:center;gap:9px;width:100%;min-height:38px;padding:7px 10px;border:0;border-radius:8px;color:#18181b;background:transparent;font-size:14px;font-weight:560;text-align:left;transition:background .16s ease,box-shadow .16s ease}.new-session-button:hover:not(:disabled){background:#eee;box-shadow:none}.new-session-button:disabled{cursor:not-allowed;opacity:.48}.session-list{display:flex;min-height:0;flex:1;flex-direction:column;gap:1px;overflow-y:auto;padding:2px 0 8px}.session-list-item{position:relative;display:flex;width:100%;min-height:34px;align-items:center;gap:4px;padding:1px 2px;border:0;border-radius:8px;color:#3f3f46;background:transparent;transition:background .16s ease,color .16s ease}.session-list-item:hover{color:#18181b;background:#eee}.session-list-item.is-active{color:#18181b;background:#e9e9e9;box-shadow:none}.session-select-button{display:flex;min-width:0;min-height:32px;flex:1;flex-direction:column;align-items:flex-start;justify-content:center;padding:4px 7px;border:0;color:inherit;background:transparent;text-align:left}.session-select-button:disabled,.session-actions-button:disabled,.session-menu-item:disabled{cursor:not-allowed;opacity:.48}.session-actions-button{display:grid;width:26px;height:26px;flex:0 0 26px;place-items:center;border:0;border-radius:7px;color:#a1a1aa;background:transparent;opacity:0;pointer-events:none;transition:background .16s ease,color .16s ease,opacity .16s ease}.session-list-item:hover .session-actions-button,.session-list-item:focus-within .session-actions-button,.session-list-item.is-active .session-actions-button,.session-list-item.is-menu-open .session-actions-button{opacity:1;pointer-events:auto}.session-actions-button:hover:not(:disabled),.session-list-item.is-menu-open .session-actions-button{color:#18181b;background:#e3e3e3}.session-menu-popover{position:absolute;top:31px;right:4px;z-index:30;min-width:128px;padding:6px;border-radius:12px;background:#fff;box-shadow:0 12px 32px #18181b24,0 0 0 1px #18181b0f}.session-menu-item{display:flex;width:100%;min-height:34px;align-items:center;gap:9px;padding:7px 10px;border:0;border-radius:8px;color:#18181b;background:transparent;font-size:13px;font-weight:540;text-align:left}.session-menu-item:hover:not(:disabled){background:#f4f4f4}.session-menu-item.is-danger{color:#d92d20}.session-menu-item.is-danger:hover:not(:disabled){background:#fff1f0}.session-title{display:block;width:100%;overflow:hidden;font-size:13px;font-weight:620;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.sidebar-footer{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:8px;padding-top:4px}.theme-toggle{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:0;width:78px;min-height:32px;padding:3px;overflow:hidden;border-radius:999px;background:#eee;box-shadow:none}.theme-toggle-indicator{position:absolute;top:3px;left:3px;width:calc(50% - 3px);height:calc(100% - 6px);border-radius:999px;background:#18181b;box-shadow:none;transition:transform .22s cubic-bezier(.2,.8,.2,1),background .18s ease,box-shadow .18s ease}.theme-toggle[data-mode=night] .theme-toggle-indicator{transform:translate(100%)}.theme-toggle-button{z-index:1;display:inline-flex;align-items:center;justify-content:center;min-width:0;min-height:28px;padding:4px;border:0;border-radius:999px;color:#71717a;background:transparent;font-size:12px;font-weight:720;transition:color .18s ease,transform .16s ease}.theme-toggle-button:hover{transform:translateY(-1px)}.theme-toggle-button[aria-pressed=true]{color:#fff}.sidebar-icon-button{position:relative;display:grid;width:34px;height:32px;place-items:center;border:0;border-radius:999px;color:#3f3f46;background:#eee;transition:background .16s ease,box-shadow .16s ease,color .16s ease}.sidebar-icon-button:hover{color:#18181b;background:#e3e3e3;box-shadow:none}.settings-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;display:flex;align-items:center;justify-content:center;padding:24px;background:#00000038;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}.settings-panel{display:grid;width:min(820px,calc(100vw - 48px));height:min(560px,calc(100vh - 48px));grid-template-columns:210px minmax(0,1fr);overflow:hidden;border-radius:18px;color:#18181b;background:#fff;box-shadow:0 18px 54px #18181b2e}.settings-nav{display:flex;min-width:0;flex-direction:column;gap:4px;padding:16px 8px;background:#fff;box-shadow:inset -1px 0 #ececec}.settings-close-button{display:grid;width:34px;height:34px;flex:0 0 34px;margin:0 0 10px 8px;place-items:center;border:0;border-radius:10px;color:#18181b;background:transparent;transition:background .16s ease,color .16s ease}.settings-close-button:hover{color:#18181b;background:#f4f4f5}.settings-nav-item{display:flex;width:100%;min-height:38px;align-items:center;gap:10px;padding:8px 12px;border:0;border-radius:10px;color:#18181b;background:transparent;font-size:14px;font-weight:520;text-align:left}.settings-nav-item.is-active{background:#f4f4f4}.settings-nav-item:disabled{cursor:default;opacity:.42}.settings-content{display:flex;position:relative;min-width:0;min-height:0;flex-direction:column;overflow:auto;padding:0 24px 18px}.settings-content-header{position:sticky;top:0;z-index:1;padding:15px 0 10px;background:#fff;box-shadow:inset 0 -1px #ececec}.settings-content-header h2{margin:0;font-size:20px;font-weight:620;line-height:1.2}.settings-form{display:grid;gap:0}.settings-row{display:grid;min-height:52px;grid-template-columns:minmax(120px,1fr) minmax(220px,320px);align-items:center;gap:16px;box-shadow:inset 0 -1px #f0f0f0}.settings-row span{color:#18181b;font-size:14px;font-weight:520;line-height:1.2}.settings-row input,.settings-row select,.settings-row textarea{width:100%;min-height:32px;border:0;border-radius:9px;color:#18181b;background:#f4f4f4;font-size:13px;outline:0;box-shadow:none}.settings-row-textarea{align-items:start;padding:10px 0}.settings-control-stack{display:grid;gap:3px}.settings-inline-control{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px}.settings-row input,.settings-row textarea{padding:7px 11px}.settings-row select{padding:7px 32px 7px 11px}.settings-row input:focus,.settings-row select:focus,.settings-row textarea:focus{background:#eee}.settings-row textarea{min-height:88px;resize:vertical;line-height:1.5}.settings-row input:disabled{cursor:default;color:#8e8e8e;background:#f4f4f4}.settings-row .settings-hint{color:#8e8e8e;font-size:10.5px;font-weight:450;line-height:1.3}.settings-row .settings-env-status.is-configured{color:#16773a}.settings-row .settings-env-status.is-missing{color:#a33a28}.settings-row .settings-env-list{overflow-wrap:anywhere}.settings-row .settings-checkbox{width:18px;min-height:18px;justify-self:end;accent-color:#18181b}.settings-small-button{display:inline-flex;min-height:32px;align-items:center;justify-content:center;gap:6px;padding:0 12px;border:0;border-radius:9px;color:#18181b;background:#e9e9e9;font-size:13px;font-weight:600}.settings-small-button:hover:not(:disabled){background:#dfdfdf}.settings-small-button:disabled{cursor:not-allowed;opacity:.45}.settings-preference-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.settings-capability-list{display:flex;min-width:0;flex-wrap:wrap;justify-content:flex-end;gap:6px}.settings-capability-chip{display:inline-flex;min-height:24px;max-width:100%;align-items:center;overflow-wrap:anywhere;border-radius:999px;padding:4px 8px;color:#52525b;background:#f4f4f4;font-size:11.5px;font-weight:560;line-height:1.25}.settings-capability-chip.is-configured{color:#16773a;background:#e6f4ea}.settings-capability-chip.is-missing{color:#a33a28;background:#fbe9e4}.settings-capability-chip.is-neutral{color:#52525b;background:#e9e9e9}.settings-model-list{display:flex;flex-wrap:wrap;gap:6px;min-width:0}.settings-model-chip{display:inline-flex;max-width:100%;align-items:center;overflow:hidden;border-radius:999px;background:#f4f4f4}.settings-model-chip.is-active{background:#e9e9e9}.settings-model-chip button{display:inline-flex;min-width:0;min-height:30px;align-items:center;border:0;color:#18181b;background:transparent;font-size:12.5px;font-weight:560}.settings-model-chip button:first-child{overflow:hidden;padding:0 6px 0 11px;text-overflow:ellipsis;white-space:nowrap}.settings-model-chip button:last-child{width:28px;justify-content:center;color:#8e8e8e}.settings-model-chip button:hover{background:#0000000d}.settings-empty-state{color:#8e8e8e;font-size:13px;font-weight:450}.settings-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:10px}.settings-secondary-button,.settings-primary-button{display:inline-flex;min-height:34px;align-items:center;justify-content:center;gap:7px;border-radius:8px;font-size:13px;font-weight:690}.settings-secondary-button{border:0;color:#3f3f46;background:#f4f4f4;padding:7px 11px;box-shadow:none}.settings-primary-button{border:0;color:#fff;background:#18181b;padding:7px 12px}.settings-primary-button:disabled{cursor:not-allowed;opacity:.45}.model-import-overlay{position:fixed;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:24px;border-radius:0;background:#f4f4f4b8;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);z-index:80}.model-import-dialog{display:grid;width:min(860px,calc(100vw - 64px));max-height:min(780px,calc(100vh - 64px));grid-template-rows:auto auto minmax(0,1fr) auto;overflow:hidden;border-radius:18px;color:#18181b;background:#fff;box-shadow:0 22px 70px #00000024,0 0 0 1px #0000000f}.model-import-header,.model-import-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px}.model-import-header h3{margin:0;color:#18181b;font-size:17px;font-weight:650}.model-import-header p{margin:4px 0 0;color:#8e8e8e;font-size:12px}.model-import-icon-button{display:grid;width:30px;height:30px;place-items:center;border:0;border-radius:999px;color:#18181b;background:transparent}.model-import-icon-button:hover{background:#f4f4f4}.model-import-search{display:flex;align-items:center;gap:8px;margin:0 18px 10px;padding:0 10px;border-radius:11px;color:#8e8e8e;background:#f4f4f4}.model-import-search input{width:100%;min-height:36px;border:0;outline:0;color:#18181b;background:transparent;font-size:14px}.model-import-list{overflow-y:auto;padding:4px 10px 10px}.model-import-row{display:grid;width:100%;min-height:38px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:0 10px;border:0;border-radius:10px;color:#18181b;background:transparent;text-align:left}.model-import-row span{overflow:hidden;font-size:13.5px;font-weight:520;text-overflow:ellipsis;white-space:nowrap}.model-import-row:hover,.model-import-row.is-selected{background:#f4f4f4}.model-import-empty,.model-import-error{padding:30px 18px;color:#8e8e8e;text-align:center;font-size:13px}.model-import-error{color:#b42318}.model-import-footer{justify-content:flex-end;box-shadow:inset 0 1px #f0f0f0}.chat-workspace{display:flex;flex:1;min-width:0;min-height:0;flex-direction:column;overflow:hidden;background:#fff;box-shadow:none}.app-header{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px;padding:0 24px;border-bottom:1px solid #eceef2;background:#fffffff0}.brand-lockup{display:inline-flex;align-items:center;gap:10px;min-width:0}.brand-dot{display:block;width:18px;height:18px;border:1px solid #18181b;border-radius:6px;background:linear-gradient(90deg,transparent 45%,#18181b 45%,#18181b 55%,transparent 55%),linear-gradient(0deg,transparent 45%,#18181b 45%,#18181b 55%,transparent 55%)}.app-header h1{margin:0;overflow:hidden;font-size:15px;font-weight:680;letter-spacing:0;text-overflow:ellipsis;white-space:nowrap}.preview-header h2{margin:0;font-size:18px;font-weight:720;letter-spacing:0}.header-note{margin:0;color:#71717a;font-size:12px;font-weight:560;letter-spacing:0}.status-pill,.preview-status{display:inline-flex;align-items:center;gap:8px;min-height:30px;padding:5px 10px;border:1px solid #cdd8e7;border-radius:999px;color:#27415f;background:#f8fafc;font-size:13px;font-weight:650;white-space:nowrap}.status-dot{width:8px;height:8px;border-radius:999px;background:#12b76a;box-shadow:0 0 0 3px #12b76a24}.app-shell[data-theme=night]{color:#f4f4f5;background:#212121}.app-shell[data-theme=night] .history-sidebar{background:#171717;box-shadow:inset -1px 0 #2a2a2a}.app-shell[data-theme=night] .session-list-item.is-active,.app-shell[data-theme=night] .sidebar-icon-button{color:#f4f4f5;background:#2f2f2f;box-shadow:none}.app-shell[data-theme=night] .sidebar-brand{color:#f4f4f5}.app-shell[data-theme=night] .sidebar-collapse-button,.app-shell[data-theme=night] .collapsed-sidebar-button{color:#c7c7cc}.app-shell[data-theme=night] .new-session-button{color:#f4f4f5;background:transparent;box-shadow:none}.app-shell[data-theme=night] .new-session-button:hover:not(:disabled),.app-shell[data-theme=night] .session-list-item:hover,.app-shell[data-theme=night] .sidebar-icon-button:hover,.app-shell[data-theme=night] .sidebar-collapse-button:hover:not(:disabled),.app-shell[data-theme=night] .collapsed-sidebar-button:hover:not(:disabled){color:#fff;background:#2a2a2a;box-shadow:none}.app-shell[data-theme=night] .session-list-item{color:#d9d9dd}.app-shell[data-theme=night] .header-note,.app-shell[data-theme=night] .thread-welcome p,.app-shell[data-theme=night] .reasoning-panel,.app-shell[data-theme=night] .reasoning-trigger,.app-shell[data-theme=night] .reasoning-text,.app-shell[data-theme=night] .raw-stream-panel,.app-shell[data-theme=night] .raw-stream-trigger,.app-shell[data-theme=night] .raw-stream-meta,.app-shell[data-theme=night] .raw-stream-text,.app-shell[data-theme=night] .muted{color:#a1a1aa}.app-shell[data-theme=night] .session-actions-button:hover:not(:disabled),.app-shell[data-theme=night] .session-list-item.is-menu-open .session-actions-button{color:#fff;background:#3a3a3a}.app-shell[data-theme=night] .session-menu-popover{background:#2f2f2f;box-shadow:0 12px 32px #00000052,0 0 0 1px #ffffff14}.app-shell[data-theme=night] .session-menu-item{color:#f4f4f5}.app-shell[data-theme=night] .session-menu-item:hover:not(:disabled){background:#3a3a3a}.app-shell[data-theme=night] .session-menu-item.is-danger{color:#f97066}.app-shell[data-theme=night] .session-menu-item.is-danger:hover:not(:disabled){background:#b4231838}.app-shell[data-theme=night] .theme-toggle{background:#2f2f2f;box-shadow:none}.app-shell[data-theme=night] .theme-toggle-indicator{background:#f4f4f5;box-shadow:none}.app-shell[data-theme=night] .theme-toggle-button{color:#a1a1aa}.app-shell[data-theme=night] .theme-toggle-button[aria-pressed=true]{color:#171717}.app-shell[data-theme=night] .settings-overlay,.settings-overlay[data-theme=night]{background:#00000038}.app-shell[data-theme=night] .settings-panel,.settings-overlay[data-theme=night] .settings-panel{color:#f4f4f5;background:#2f2f2f;box-shadow:0 18px 54px #0006}.app-shell[data-theme=night] .settings-nav,.settings-overlay[data-theme=night] .settings-nav{background:#2f2f2f;box-shadow:inset -1px 0 #3d3d3d}.app-shell[data-theme=night] .settings-nav-item,.settings-overlay[data-theme=night] .settings-nav-item{color:#f4f4f5}.app-shell[data-theme=night] .settings-nav-item.is-active,.settings-overlay[data-theme=night] .settings-nav-item.is-active{background:#3a3a3a}.app-shell[data-theme=night] .settings-content-header,.settings-overlay[data-theme=night] .settings-content-header{background:#2f2f2f;box-shadow:inset 0 -1px #3d3d3d}.app-shell[data-theme=night] .settings-row,.settings-overlay[data-theme=night] .settings-row{box-shadow:inset 0 -1px #3a3a3a}.app-shell[data-theme=night] .settings-close-button,.app-shell[data-theme=night] .settings-row span,.settings-overlay[data-theme=night] .settings-close-button,.settings-overlay[data-theme=night] .settings-row span{color:#f4f4f5}.app-shell[data-theme=night] .settings-close-button:hover,.settings-overlay[data-theme=night] .settings-close-button:hover{color:#fff;background:#3a3a3a}.app-shell[data-theme=night] .settings-row input,.app-shell[data-theme=night] .settings-row select,.app-shell[data-theme=night] .settings-row textarea,.app-shell[data-theme=night] .settings-small-button,.app-shell[data-theme=night] .settings-secondary-button,.settings-overlay[data-theme=night] .settings-row input,.settings-overlay[data-theme=night] .settings-row select,.settings-overlay[data-theme=night] .settings-row textarea,.settings-overlay[data-theme=night] .settings-small-button,.settings-overlay[data-theme=night] .settings-secondary-button{color:#f4f4f5;background:#3a3a3a;box-shadow:none}.app-shell[data-theme=night] .settings-row input:focus,.app-shell[data-theme=night] .settings-row select:focus,.app-shell[data-theme=night] .settings-row textarea:focus,.settings-overlay[data-theme=night] .settings-row input:focus,.settings-overlay[data-theme=night] .settings-row select:focus,.settings-overlay[data-theme=night] .settings-row textarea:focus{background:#444}.app-shell[data-theme=night] .settings-row input:disabled,.settings-overlay[data-theme=night] .settings-row input:disabled{color:#8e8e8e;background:#3a3a3a}.app-shell[data-theme=night] .settings-row .settings-hint,.settings-overlay[data-theme=night] .settings-row .settings-hint{color:#a1a1aa}.app-shell[data-theme=night] .settings-row .settings-env-status.is-configured,.settings-overlay[data-theme=night] .settings-row .settings-env-status.is-configured{color:#72c98d}.app-shell[data-theme=night] .settings-row .settings-env-status.is-missing,.settings-overlay[data-theme=night] .settings-row .settings-env-status.is-missing{color:#e38673}.app-shell[data-theme=night] .settings-capability-chip,.settings-overlay[data-theme=night] .settings-capability-chip{color:#d4d4d8;background:#3a3a3a}.app-shell[data-theme=night] .settings-capability-chip.is-configured,.settings-overlay[data-theme=night] .settings-capability-chip.is-configured{color:#9ae6b4;background:#235c367a}.app-shell[data-theme=night] .settings-capability-chip.is-missing,.settings-overlay[data-theme=night] .settings-capability-chip.is-missing{color:#f0a594;background:#7532247a}.app-shell[data-theme=night] .settings-capability-chip.is-neutral,.settings-overlay[data-theme=night] .settings-capability-chip.is-neutral{color:#d4d4d8;background:#444}.app-shell[data-theme=night] .settings-small-button:hover:not(:disabled),.settings-overlay[data-theme=night] .settings-small-button:hover:not(:disabled){background:#444}.app-shell[data-theme=night] .settings-model-chip,.settings-overlay[data-theme=night] .settings-model-chip{background:#3a3a3a}.app-shell[data-theme=night] .settings-model-chip.is-active,.settings-overlay[data-theme=night] .settings-model-chip.is-active{background:#444}.app-shell[data-theme=night] .settings-model-chip button,.settings-overlay[data-theme=night] .settings-model-chip button{color:#f4f4f5}.app-shell[data-theme=night] .settings-model-chip button:last-child,.app-shell[data-theme=night] .settings-empty-state,.settings-overlay[data-theme=night] .settings-model-chip button:last-child,.settings-overlay[data-theme=night] .settings-empty-state{color:#a1a1aa}.app-shell[data-theme=night] .settings-model-chip button:hover,.settings-overlay[data-theme=night] .settings-model-chip button:hover{background:#ffffff14}.app-shell[data-theme=night] .settings-primary-button,.settings-overlay[data-theme=night] .settings-primary-button{border:0;color:#18181b;background:#f4f4f5}.app-shell[data-theme=night] .model-import-overlay,.settings-overlay[data-theme=night] .model-import-overlay{background:#1717179e}.app-shell[data-theme=night] .model-import-dialog,.settings-overlay[data-theme=night] .model-import-dialog{background:#2f2f2f;box-shadow:0 22px 70px #0000006b,0 0 0 1px #ffffff14}.app-shell[data-theme=night] .model-import-header h3,.app-shell[data-theme=night] .model-import-icon-button,.app-shell[data-theme=night] .model-import-row,.app-shell[data-theme=night] .model-import-search input,.settings-overlay[data-theme=night] .model-import-header h3,.settings-overlay[data-theme=night] .model-import-icon-button,.settings-overlay[data-theme=night] .model-import-row,.settings-overlay[data-theme=night] .model-import-search input{color:#f4f4f5}.app-shell[data-theme=night] .model-import-header p,.app-shell[data-theme=night] .model-import-search,.app-shell[data-theme=night] .model-import-empty,.settings-overlay[data-theme=night] .model-import-header p,.settings-overlay[data-theme=night] .model-import-search,.settings-overlay[data-theme=night] .model-import-empty{color:#a1a1aa}.app-shell[data-theme=night] .model-import-icon-button:hover,.app-shell[data-theme=night] .model-import-search,.app-shell[data-theme=night] .model-import-row:hover,.app-shell[data-theme=night] .model-import-row.is-selected,.settings-overlay[data-theme=night] .model-import-icon-button:hover,.settings-overlay[data-theme=night] .model-import-search,.settings-overlay[data-theme=night] .model-import-row:hover,.settings-overlay[data-theme=night] .model-import-row.is-selected{background:#3a3a3a}.app-shell[data-theme=night] .model-import-footer,.settings-overlay[data-theme=night] .model-import-footer{box-shadow:inset 0 1px #3d3d3d}.app-shell[data-theme=night] .chat-workspace,.app-shell[data-theme=night] .thread-root{background:#212121}.app-shell[data-theme=night] .chat-workspace{box-shadow:none}.app-shell[data-theme=night] .thread-welcome h2,.app-shell[data-theme=night] .message-bubble,.app-shell[data-theme=night] .message-bubble.user,.app-shell[data-theme=night] .preview-header h2,.app-shell[data-theme=night] .app-header h1{color:#f4f4f5}.app-shell[data-theme=night] .message-bubble.user{background:#303030;box-shadow:none}.app-shell[data-theme=night] .reasoning-text,.app-shell[data-theme=night] .raw-stream-text{border-left-color:#ffffff1f}.app-shell[data-theme=night] .artifact-export-popover{border-color:#ffffff1f;color:#f4f4f5;background:#343434fa}.app-shell[data-theme=night] .artifact-export-trigger{color:#d4d4d8;background:transparent}.app-shell[data-theme=night] .artifact-export-menu-item{color:#f4f4f5}.app-shell[data-theme=night] .artifact-export-trigger:hover,.app-shell[data-theme=night] .artifact-export-menu.is-open .artifact-export-trigger,.app-shell[data-theme=night] .artifact-export-menu-item:hover:not(:disabled){color:#fff;background:transparent}.app-shell[data-theme=night] .artifact-export-status{color:#b4b4ba}.app-shell[data-theme=night] .artifact-export-status.is-success{color:#7dd3a4}.app-shell[data-theme=night] .artifact-export-status.is-error{color:#fda29b}.app-shell[data-theme=night] .chat-input-dropzone{background:#303030;box-shadow:none}.app-shell[data-theme=night] .chat-input-dropzone:focus-within{background:#303030;box-shadow:none}.app-shell[data-theme=night] .chat-input-dropzone[data-dragging=true]{background:#27272ac7}.app-shell[data-theme=night] .chat-input-textarea{color:#f4f4f5}.app-shell[data-theme=night] .chat-input-textarea::placeholder{color:#a1a1aa}.app-shell[data-theme=night] .attach-button{color:#c7c7cc;background:transparent}.app-shell[data-theme=night] .attach-button:hover:not(:disabled){background:#3a3a3a}.app-shell[data-theme=night] .chat-model-button{color:#d4d4d8}.app-shell[data-theme=night] .chat-model-button-reasoning{color:#a1a1aa}.app-shell[data-theme=night] .chat-model-button:hover:not(:disabled),.app-shell[data-theme=night] .chat-model-button[aria-expanded=true]{background:#3a3a3a}.app-shell[data-theme=night] .chat-model-menu,.app-shell[data-theme=night] .chat-model-submenu{background:#2f2f2f;box-shadow:0 18px 54px #0006,0 0 0 1px #ffffff14}.app-shell[data-theme=night] .chat-model-search{color:#a1a1aa;background:#3a3a3a}.app-shell[data-theme=night] .chat-model-search input,.app-shell[data-theme=night] .chat-model-menu-item,.app-shell[data-theme=night] .chat-model-option{color:#f4f4f5}.app-shell[data-theme=night] .chat-model-menu-title,.app-shell[data-theme=night] .chat-model-empty{color:#a1a1aa}.app-shell[data-theme=night] .chat-model-menu-item:hover,.app-shell[data-theme=night] .chat-model-menu-item.is-selected,.app-shell[data-theme=night] .chat-model-option:hover,.app-shell[data-theme=night] .chat-model-option.is-selected{background:#3a3a3a}.app-shell[data-theme=night] .chat-model-menu-separator{background:#3d3d3d}.app-shell[data-theme=night] .send-button{color:#171717;background:#d9d9dd}.app-shell[data-theme=night] .send-button:hover:not(:disabled){background:#fff}.thread-root{display:flex;flex:1;min-height:0;flex-direction:column;background:#fff}.message-list{display:flex;flex-direction:column;gap:20px;flex:1;min-height:0;padding:0 24px;overflow-y:auto;scroll-behavior:auto}.message-list.is-new{justify-content:center}.message-list.has-messages{padding-top:24px}.chat-row{display:flex;width:min(900px,100%);margin:0 auto;align-items:flex-start}.chat-row.user{justify-content:flex-end}.chat-row.user .avatar{display:none}.chat-row.user .message-bubble{max-width:min(680px,88%)}.avatar{display:none}.assistant-stack{display:flex;width:100%;flex-direction:column;gap:12px;min-width:0}.message-bubble{width:fit-content;max-width:min(760px,100%);padding:12px 14px;border:0;border-radius:14px;background:#f4f4f4;color:#18181b;box-shadow:none}.message-bubble.assistant{width:min(900px,100%);padding:0;border:0;border-radius:0;background:transparent}.message-bubble.user{background:#f4f4f4;color:#18181b;box-shadow:none}.message-bubble p{margin:0}.thread-welcome{display:flex;width:min(760px,100%);margin:0 auto 22px;flex-direction:column;align-items:center;justify-content:center;text-align:center}.thread-welcome p{margin:0 0 8px;color:#71717a;font-size:13px;font-weight:620}.thread-welcome h2{margin:0;color:#18181b;font-size:30px;line-height:1.15;font-weight:660;letter-spacing:0}.message-attachments{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px;margin-top:10px}.message-attachments:first-child{margin-top:0}.message-attachments img{display:block;width:100%;max-height:220px;object-fit:cover;border:1px solid rgba(255,255,255,.28);border-radius:8px}.muted{color:#667085}.inline-error{max-width:100%;margin:10px 0 0;overflow:auto;color:#a03b2d;white-space:pre-wrap}.reasoning-panel{width:min(900px,100%);margin:0 0 2px;color:#71717a}.reasoning-trigger{display:flex;align-items:center;gap:8px;width:fit-content;max-width:75%;padding:5px 0;cursor:pointer;color:#71717a;font-size:13px;font-weight:560;list-style:none;transition:color .16s ease,transform .16s ease}.reasoning-trigger:hover{color:#18181b}.reasoning-trigger:active{transform:scale(.98)}.reasoning-trigger::-webkit-details-marker{display:none}.reasoning-mark{position:relative;display:inline-block;width:15px;height:15px;flex:0 0 auto;border:1.5px solid currentColor;border-radius:999px}.reasoning-mark:before,.reasoning-mark:after{position:absolute;border-radius:999px;background:currentColor;content:""}.reasoning-mark:before{top:4px;left:4px;width:4px;height:4px}.reasoning-mark:after{right:3px;bottom:3px;width:3px;height:3px}.reasoning-panel.is-streaming .reasoning-label{animation:reasoning-pulse 1.2s ease-in-out infinite}.reasoning-chevron{width:7px;height:7px;flex:0 0 auto;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);transition:transform .18s ease}.reasoning-panel[open] .reasoning-chevron{transform:translateY(-2px) rotate(45deg)}.reasoning-content{position:relative;overflow:hidden}.reasoning-text{max-height:260px;margin:0;padding:6px 0 8px 23px;overflow:auto;border-left:1px solid #e4e4e7;color:#71717a;background:transparent;font-family:inherit;font-size:13px;line-height:1.6;white-space:pre-wrap}@keyframes reasoning-pulse{0%,to{opacity:.55}50%{opacity:1}}.assistant-artifact-block{width:min(900px,100%);display:flex;flex-direction:column;gap:4px;align-items:stretch}.assistant-canvas{display:grid;position:relative;width:100%;overflow:hidden;border-radius:8px;background:transparent}.assistant-artifact-actions{display:flex;min-height:24px;align-items:center;justify-content:flex-end;padding-right:2px}.artifact-export-menu{position:relative;z-index:3;display:grid;width:26px;height:26px;flex:0 0 26px;place-items:center}.artifact-export-trigger{display:grid;width:24px;height:24px;flex:0 0 24px;place-items:center;border:0;border-radius:8px;color:#52525b;background:transparent;box-shadow:none;transition:background .15s ease,color .15s ease,opacity .15s ease,box-shadow .15s ease}.artifact-export-trigger:hover,.artifact-export-menu.is-open .artifact-export-trigger{color:#18181b;background:transparent;box-shadow:none}.artifact-export-popover{position:absolute;right:0;top:calc(100% + 6px);display:grid;width:184px;gap:2px;padding:5px;border:1px solid #e4e4e7;border-radius:10px;color:#3f3f46;background:#fffffffa;opacity:0;pointer-events:none;box-shadow:0 12px 32px #18181b24;transform:translateY(-4px) scale(.98);transform-origin:right top;transition:opacity .14s ease,transform .14s ease,visibility .14s ease;visibility:hidden}.artifact-export-menu:hover .artifact-export-popover,.artifact-export-menu.is-open .artifact-export-popover{opacity:1;pointer-events:auto;transform:translateY(0) scale(1);visibility:visible}.artifact-export-menu-item{display:flex;width:100%;min-width:0;min-height:30px;align-items:center;justify-content:flex-start;gap:7px;padding:6px 8px;border:0;border-radius:7px;color:#3f3f46;background:transparent;font-size:12px;font-weight:560;line-height:1.2;text-align:left;white-space:nowrap;transition:background .15s ease,color .15s ease,opacity .15s ease}.artifact-export-menu-item:hover:not(:disabled){color:#18181b;background:transparent}.artifact-export-menu-item:disabled{cursor:wait;opacity:.58}.artifact-export-status{display:inline-flex;min-width:0;width:100%;min-height:24px;align-items:center;gap:5px;padding:3px 8px 1px;color:#71717a;font-size:11px;font-weight:560;line-height:1.25}.artifact-export-status span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.artifact-export-status.is-success{color:#276749}.artifact-export-status.is-error{color:#b42318}.preview-frame{display:block;width:100%;min-height:32px;border:0;border-radius:8px;background:transparent;transition:height .16s ease}.assistant-canvas.streaming .preview-frame{transition:none}.error-panel{display:grid;gap:8px;padding:12px 16px;border-top:1px solid #f1d0cb;color:#7a271a;background:#fff6f3;font-size:13px}.error-panel ul{display:grid;gap:6px;margin:0;padding:0;list-style:none}.error-panel li{display:flex;gap:8px;align-items:baseline}.error-panel span{min-width:58px;color:#b42318;font-weight:760}.raw-stream-panel{width:min(900px,100%);margin:2px 0 0;overflow:hidden;color:#71717a}.raw-stream-trigger{display:flex;align-items:center;gap:8px;width:fit-content;max-width:100%;padding:4px 0;cursor:pointer;color:#a1a1aa;font-size:12px;font-weight:560;list-style:none;transition:color .16s ease,transform .16s ease}.raw-stream-trigger:hover{color:#52525b}.raw-stream-trigger:active{transform:scale(.98)}.raw-stream-trigger::-webkit-details-marker{display:none}.raw-stream-mark{position:relative;display:inline-block;width:15px;height:15px;flex:0 0 auto;border:1.5px solid currentColor;border-radius:4px}.raw-stream-mark:before{position:absolute;top:6px;left:3px;width:7px;height:1.5px;border-radius:999px;background:currentColor;content:""}.raw-stream-meta{color:#a1a1aa;font-variant-numeric:tabular-nums}.raw-stream-chevron{width:7px;height:7px;flex:0 0 auto;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);transition:transform .18s ease}.raw-stream-panel[open] .raw-stream-chevron{transform:translateY(-2px) rotate(45deg)}.raw-stream-text{max-height:260px;margin:0;padding:7px 0 10px 23px;overflow:auto;border-left:1px solid #e4e4e7;color:#52525b;background:transparent;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:12px;line-height:1.45;white-space:pre-wrap}.composer-footer{z-index:2;width:min(760px,100%);margin:0 auto;background:transparent;pointer-events:none}.composer-footer.is-new{position:static;padding:0 0 4px}.composer-footer.has-messages{position:sticky;bottom:0;margin-top:auto;padding:12px 0 20px}.chat-input-bar{display:block;width:100%;border:0;background:transparent;pointer-events:auto}.chat-input-dropzone{display:flex;flex-direction:column;gap:8px;overflow:visible;padding:8px 10px;border:0;border-radius:28px;background:#f4f4f4;box-shadow:none;transition:background .16s ease,box-shadow .16s ease}.chat-input-dropzone:focus-within{background:#f4f4f4;box-shadow:none}.chat-input-dropzone[data-dragging=true]{background:#f4f4f5c7}.chat-input-textarea{width:100%;min-height:42px;max-height:180px;resize:none;padding:9px 8px 6px;border:0;border-radius:0;outline:none;color:#18181b;background:transparent;font-size:15px;line-height:1.45}.chat-input-textarea:focus{box-shadow:none}.chat-input-actions{display:flex;align-items:center;justify-content:space-between;min-height:34px}.chat-input-action-group{display:flex;align-items:center;gap:6px}.chat-model-selector{position:relative}.chat-model-button{display:inline-flex;max-width:220px;min-height:32px;align-items:center;gap:6px;padding:0 9px 0 11px;border:0;border-radius:999px;color:#52525b;background:transparent;font-size:14px;font-weight:620}.chat-model-button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-model-button:hover:not(:disabled),.chat-model-button[aria-expanded=true]{background:#e8e8e8}.chat-model-button:disabled{cursor:not-allowed;opacity:.5}.chat-model-button-reasoning{color:#8e8e8e}.chat-model-menu-shell{position:absolute;bottom:calc(100% + 10px);right:0;display:flex;align-items:flex-end;gap:6px;z-index:20}.chat-model-menu,.chat-model-submenu{display:grid;overflow:hidden;border-radius:14px;background:#fff;box-shadow:0 18px 54px #00000026,0 0 0 1px #00000012}.chat-model-menu{width:216px;padding:8px 7px}.chat-model-submenu{width:min(280px,calc(100vw - 40px));max-height:320px;grid-template-rows:auto auto minmax(0,1fr)}.chat-model-search{display:flex;align-items:center;gap:6px;margin:8px 8px 4px;padding:0 8px;border-radius:9px;color:#8e8e8e;background:#f4f4f4}.chat-model-search input{width:100%;min-height:30px;border:0;outline:0;color:#18181b;background:transparent;font-size:14px}.chat-model-menu-title{padding:6px 8px 5px;color:#8e8e8e;font-size:14px;font-weight:650}.chat-model-menu-list{overflow-y:auto;padding:0 7px 7px}.chat-model-menu-item,.chat-model-option{display:grid;width:100%;min-height:34px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:0 8px;border:0;border-radius:9px;color:#18181b;background:transparent;text-align:left}.chat-model-menu-item span,.chat-model-option span{overflow:hidden;font-size:14px;font-weight:560;text-overflow:ellipsis;white-space:nowrap}.chat-model-menu-item:hover,.chat-model-menu-item.is-selected,.chat-model-option:hover,.chat-model-option.is-selected{background:#f4f4f4}.chat-model-menu-item.is-parent{margin-top:3px}.chat-model-menu-separator{height:1px;margin:6px 0;background:#ececec}.chat-model-empty{padding:18px 8px 22px;color:#8e8e8e;text-align:center;font-size:14px}.attachment-tray{display:flex;gap:8px;max-width:100%;overflow-x:auto;padding-bottom:2px}.attachment-thumb{position:relative;flex:0 0 92px;width:92px;margin:0}.attachment-thumb img{display:block;width:92px;height:68px;object-fit:cover;border:1px solid #cdd8e7;border-radius:8px;background:#fff}.attachment-extension{display:grid;width:92px;height:68px;place-items:center;border:1px solid #cdd8e7;border-radius:8px;color:#526070;background:#fff;font-size:13px;font-weight:760}.attachment-thumb figcaption{margin-top:4px;overflow:hidden;color:#667085;font-size:11px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.attachment-remove{position:absolute;top:4px;right:4px;display:grid;width:22px;height:22px;place-items:center;border:1px solid rgba(15,23,42,.16);border-radius:999px;color:#0f172a;background:#ffffffeb;font-size:13px;font-weight:800}.attachment-error{margin:0;color:#b42318;font-size:12px}.attach-button,.send-button{display:grid;position:relative;width:32px;height:32px;place-items:center;border:0;border-radius:999px;color:#fff;background:#18181b;transition:transform .16s ease,background .16s ease,opacity .16s ease}.attach-button{color:#3f3f46;background:transparent}.attach-button:hover:not(:disabled){transform:translateY(-1px);background:#e8e8e8}.send-button:hover:not(:disabled){transform:translateY(-1px);background:#27272a}.cancel-button{background:#27272a}.attach-button:disabled,.send-button:disabled{cursor:not-allowed;opacity:.42}.plus-icon,.x-icon,.send-arrow-up,.stop-square{display:block;position:relative}.plus-icon,.x-icon{width:16px;height:16px}.plus-icon:before,.plus-icon:after,.x-icon:before,.x-icon:after{position:absolute;top:7px;left:2px;width:12px;height:2px;border-radius:999px;background:currentColor;content:""}.plus-icon:after{transform:rotate(90deg)}.x-icon:before{transform:rotate(45deg)}.x-icon:after{transform:rotate(-45deg)}.send-arrow-up{width:2px;height:16px;border-radius:999px;background:currentColor}.send-arrow-up:after{position:absolute;top:0;left:-4px;width:8px;height:8px;border-top:2px solid currentColor;border-left:2px solid currentColor;transform:rotate(45deg);content:""}.stop-square{width:10px;height:10px;border-radius:2px;background:currentColor}@media(max-width:720px),(orientation:portrait){.app-shell{width:100vw;height:100vh;flex-direction:column;margin:0;border-radius:0}.app-body{position:relative;flex-direction:row;padding:0}.history-sidebar{position:fixed;inset:0 auto 0 0;z-index:50;width:min(76vw,430px);min-width:0;max-width:calc(100vw - 44px);height:100dvh;max-height:none;flex:none;gap:14px;padding:18px 16px 14px;overflow:visible;background:#f9f9f9fa;box-shadow:18px 0 48px #ffffffc2,42px 0 100px #18181b14;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.history-sidebar.is-collapsed{position:fixed;top:22px;left:22px;z-index:45;width:44px;min-width:0;height:44px;max-height:none;flex:0 0 0;flex-direction:column;justify-content:flex-start;padding:0;overflow:visible;background:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;pointer-events:none}.history-sidebar.is-collapsed .collapsed-sidebar-top{width:auto;pointer-events:auto}.history-sidebar.is-collapsed .collapsed-sidebar-button{width:44px;height:44px;flex-basis:44px;border-radius:999px;color:#52525b;background:transparent}.history-sidebar.is-collapsed .collapsed-sidebar-button:hover:not(:disabled){color:#18181b;background:#f4f4f4}.history-sidebar.is-collapsed .collapsed-sidebar-top .collapsed-sidebar-button:not(:first-child),.history-sidebar.is-collapsed .collapsed-sidebar-spacer,.history-sidebar.is-collapsed .collapsed-sidebar-bottom{display:none}.history-sidebar:not(.is-collapsed):after{content:"";position:fixed;top:0;bottom:0;left:min(76vw,430px);width:calc(100vw - min(76vw,430px));background:linear-gradient(90deg,#f9f9f9c7,#f9f9f957);pointer-events:none}.history-sidebar>*{position:relative;z-index:1}.sidebar-brand-row{min-height:46px;padding:0 8px 0 6px}.sidebar-brand{font-size:22px}.sidebar-collapse-button{width:42px;height:42px;flex-basis:42px;border-radius:999px}.new-session-button{min-height:42px;padding:8px 10px;font-size:16px}.session-list{flex-direction:column;gap:4px;overflow-x:hidden;overflow-y:auto;padding:4px 0 12px}.session-list-item{width:100%;min-height:42px;flex:0 0 auto}.sidebar-footer{position:relative;right:auto;bottom:auto;padding-top:8px;box-shadow:inset 0 1px #ececec}.theme-toggle{width:72px;min-height:32px}.sidebar-icon-button{width:32px;height:32px}.settings-overlay{align-items:center;justify-content:center;padding:24px}.settings-panel{width:min(760px,calc(100vw - 48px));height:min(720px,calc(100dvh - 96px));grid-template-columns:1fr;border-radius:22px}.settings-nav{min-height:62px;flex-direction:row;align-items:center;overflow-x:auto;padding:10px;box-shadow:inset 0 -1px #ececec}.app-shell[data-theme=night] .settings-nav{box-shadow:inset 0 -1px #3d3d3d}.settings-close-button{margin:0 6px 0 0}.settings-nav-item{width:auto;min-width:max-content}.settings-content{padding:0 16px 16px}.settings-row{min-height:auto;grid-template-columns:1fr;gap:8px;padding:14px 0}.chat-workspace{flex:1;min-height:0;border-radius:0}.app-header{align-items:flex-start;padding:14px 16px}.status-pill{display:none}.message-list{padding-right:16px;padding-left:16px}.message-list.has-messages{padding-top:18px}.thread-welcome{margin-bottom:20px;align-items:center;text-align:center}.thread-welcome h2{font-size:26px;line-height:1.12}.composer-footer.has-messages{bottom:0;padding:12px 0}.chat-input-dropzone{border-radius:24px}.artifact-export-trigger{width:26px;height:26px;flex-basis:26px}.artifact-export-popover{width:min(184px,calc(100vw - 48px))}}
