:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--background:#fff;--foreground:#0d0d0d;--surface:#fff;--surface-raised:#fffffff2;--card:#fff;--popover:#fff;--sidebar:#f9f9f9;--sidebar-accent:#ececec;--accent:#f2f2f2;--accent-hover:#eee;--muted:#f9f9f9;--muted-foreground:#676767;--placeholder-text:#676767;--border:#e3e3e3;--border-strong:#0d0d0d40;--input:#e3e3e3;--primary:#0d0d0d;--primary-foreground:#fff;--destructive:#676767;--destructive-foreground:#fff;--focus-border:#0d0d0d40;--scrim:#0000004d;--shadow:#00000014;--header-backdrop:#ffffffe0;--header-icon-background:#0d0d0d0a;--header-icon-pressed-background:#0d0d0d14;--user-bubble:#f2f2f2;--user-bubble-foreground:#0d0d0d;--pill-background:#fffffff2;--composer-glass-tint:#ffffffb8;--send-active-background:#0d0d0d;--send-active-icon:#fff;--send-inactive-background:#e3e3e3;--send-inactive-icon:#a0a0a0;--remove-button-background:#0000008c;--link-foreground:#0969da;--source-chip-background:#f7f7f7;--source-chip-border:#0d0d0d14;--source-chip-pressed:#eee;--source-chip-text:#0d0d0dd1;--source-chip-muted:#0d0d0d94;--favicon-fallback:#e5e5e5;--code-background:#fff;--code-header-background:#f8fafc;--code-border:#e3e3e3;--code-inline-background:#f2f2f2;--code-text:#24292f;--code-label:#57606a;--reasoning-label:#676767;--reasoning-border:#0000001f;--reasoning-content:#676767;--tool-content-background:#fafafa;--tool-call-id-label:#9b9b9b;--tool-running-background:#eff6ff;--tool-running-border:#bfdbfe;--tool-running-text:#3b82f6;--tool-completed-background:#f0fdf4;--tool-completed-border:#bbf7d0;--tool-completed-text:#16a34a;color:var(--foreground);background:var(--background);font-family:-apple-system,BlinkMacSystemFont,SF Pro Text,SF Pro Display,Helvetica Neue,Arial,sans-serif}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--background:#212121;--foreground:#ececec;--surface:#212121;--surface-raised:#2f2f2ff2;--card:#212121;--popover:#2f2f2f;--sidebar:#171717;--sidebar-accent:#212121;--accent:#2f2f2f;--accent-hover:#343434;--muted:#2f2f2f;--muted-foreground:#b4b4b4;--placeholder-text:#ececec66;--border:#2f2f2f;--border-strong:#ececec73;--input:#2f2f2f;--primary:#ececec;--primary-foreground:#212121;--destructive:#b4b4b4;--focus-border:#ececec73;--scrim:#0000004d;--shadow:#0000004d;--header-backdrop:#212121e0;--header-icon-background:#ececec0f;--header-icon-pressed-background:#ececec1a;--user-bubble:#2f2f2f;--user-bubble-foreground:#ececec;--pill-background:#2f2f2ff2;--composer-glass-tint:#2f2f2fb3;--send-active-background:#ececec;--send-active-icon:#212121;--send-inactive-background:#2f2f2f;--send-inactive-icon:#676767;--remove-button-background:#212121d9;--link-foreground:#58a6ff;--source-chip-background:#2a2a2a;--source-chip-border:#ececec1a;--source-chip-pressed:#343434;--source-chip-text:#ecececdb;--source-chip-muted:#ececec94;--favicon-fallback:#3a3a3a;--code-background:#111827;--code-header-background:#1f2937;--code-border:#30363d;--code-inline-background:#2f2f2f;--code-text:#c9d1d9;--code-label:#8b949e;--reasoning-label:#ececec99;--reasoning-border:#ececec26;--reasoning-content:#ececec99;--tool-content-background:#1a1a1a;--tool-call-id-label:#ececec59;--tool-running-background:#3b82f626;--tool-running-border:#3b82f64d;--tool-running-text:#60a5fa;--tool-completed-background:#16a34a26;--tool-completed-border:#16a34a4d;--tool-completed-text:#4ade80}}*{box-sizing:border-box}html,body,#root{width:100%;height:100%;margin:0}html{-webkit-text-size-adjust:100%;text-rendering:optimizelegibility}body{background:var(--background);color:var(--foreground);overflow:hidden}button,textarea,input{font:inherit}button{cursor:pointer;border:0}button:disabled{cursor:default;opacity:.58}a{color:inherit}.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}.ui-button{appearance:none;-webkit-tap-highlight-color:transparent;color:inherit;border:0;justify-content:center;align-items:center;gap:8px;text-decoration:none;transition:background-color .14s,color .14s,transform .14s,border-color .14s,opacity .14s;display:inline-flex}.ui-button:not(:disabled):active{transform:scale(.985)}.ui-button:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,a:focus-visible{outline:2px solid var(--focus-border);outline-offset:2px}.ui-button-default,.ui-button-pill{background:var(--primary);color:var(--primary-foreground)}.ui-button-secondary{background:var(--accent);color:var(--foreground)}.ui-button-ghost,.ui-button-icon{background:0 0}.ui-button-destructive{background:var(--accent);color:var(--foreground)}.ui-button-size-default{border-radius:10px;min-height:40px;padding:0 14px}.ui-button-size-sm{border-radius:9px;min-height:34px;padding:0 12px}.ui-button-size-icon{border-radius:10px;width:36px;height:36px;padding:0}.ui-button-size-pill{border-radius:10px;height:40px;padding:0 14px}.ui-input,.ui-textarea{color:inherit;font:inherit;background:0 0;border:0;outline:0}.ui-input::placeholder,.ui-textarea::placeholder{color:var(--muted-foreground)}.app-shell{background:var(--background);width:100%;height:100svh;color:var(--foreground);display:flex;position:relative;overflow:hidden}.pixel-mist{display:none}.main-pane{background:var(--background);flex-direction:column;flex:1;min-width:0;display:flex;position:relative}.chat-header{z-index:50;pointer-events:none;height:56px;transition:transform .16s;position:absolute;top:0;left:0;right:0}.chat-header-backdrop{background:var(--header-backdrop);border-bottom:1px solid #0000;position:absolute;inset:0;box-shadow:0 2px 8px #00000009}.chat-header-inner{pointer-events:none;grid-template-columns:44px 1fr 44px;align-items:center;gap:8px;height:56px;padding:6px 14px;display:grid;position:relative}.header-title{letter-spacing:0;white-space:nowrap;text-overflow:ellipsis;min-width:0;max-width:min(340px,100vw - 136px);color:var(--foreground);justify-self:center;padding:0 8px;font-size:18px;font-weight:600;line-height:24px;overflow:hidden}.header-icon-button{width:44px;height:44px;color:var(--foreground);background:var(--header-icon-background);pointer-events:auto;border-radius:22px;place-items:center;transition:background-color .14s,transform .14s,opacity .14s;display:grid}.header-icon-button:hover{background:var(--header-icon-pressed-background)}.header-icon-button:active{transform:scale(.985)}.header-placeholder{visibility:hidden}.header-menu-empty{display:none}.menu-glyph{flex-direction:column;justify-content:center;align-items:flex-start;gap:4px;width:19px;height:16px;display:flex}.menu-glyph span{background:currentColor;border-radius:999px;height:1.7px;display:block}.menu-glyph span:first-child{width:19px}.menu-glyph span:nth-child(2){align-self:center;width:12px}.sidebar-shell{z-index:3;background:var(--sidebar);border-right:1px solid var(--border);flex-shrink:0;width:300px;height:100svh;padding:0;transition:width .18s cubic-bezier(.16,1,.3,1);display:none;position:relative;overflow:hidden}.sidebar-shell.collapsed{width:64px}.sidebar{background:var(--sidebar);height:100%;color:var(--foreground);box-shadow:none;border:0;border-radius:0;flex-direction:column;display:flex;overflow:hidden}.sidebar.collapsed{align-items:center}.sidebar-top{align-items:center;gap:6px;min-height:58px;padding:8px;display:flex}.sidebar.collapsed .sidebar-top{justify-content:center;width:100%;padding:8px}.sidebar-brand{min-width:0;color:var(--foreground);text-align:left;background:0 0;border-radius:10px;flex:1;align-items:center;gap:10px;padding:6px;display:flex}.sidebar-brand:hover{background:var(--accent)}.sidebar-brand svg{color:var(--foreground);flex:none}.sidebar-brand-text{text-overflow:ellipsis;white-space:nowrap;letter-spacing:-.01em;min-width:0;color:var(--foreground);font-size:16px;font-weight:600;line-height:22px;overflow:hidden}.sidebar-icon-button{color:var(--muted-foreground);background:0 0;border-radius:10px;place-items:center;display:grid}.sidebar-icon-button:hover{background:var(--accent);color:var(--foreground)}.sidebar-collapse-button{margin-right:0}.collapsed-sidebar-actions{justify-items:center;gap:6px;width:100%;padding-top:4px;display:grid}.sidebar-search-wrap{gap:6px;padding:2px 8px 8px;display:grid}.sidebar-search{background:var(--accent);height:38px;color:var(--muted-foreground);border-radius:10px;align-items:center;gap:8px;padding:0 11px;display:flex}.sidebar-search input{flex:1;width:100%;min-width:0;font-size:14px}.sidebar-search input::placeholder{color:var(--muted-foreground)}.new-chat-row{min-height:38px;color:var(--foreground);border-radius:10px;justify-content:flex-start;padding:0 11px}.new-chat-row:hover{background:var(--accent)}.sidebar-section-label{color:var(--muted-foreground);padding:12px 20px 4px;font-size:12px;font-weight:600;line-height:16px}.sidebar-list{scrollbar-width:none;flex:1;padding:0 8px 12px;overflow:auto}.sidebar-list::-webkit-scrollbar{display:none}.sidebar-empty{min-height:120px;color:var(--muted-foreground);text-align:center;place-items:center;padding:24px 12px;font-size:14px;display:grid}.sidebar-skeletons{gap:6px;padding:10px 0;display:grid}.sidebar-skeleton{background:var(--accent);border-radius:10px;height:38px;animation:1.2s ease-in-out infinite skeleton-pulse}@keyframes skeleton-pulse{0%,to{opacity:.55}50%{opacity:1}}.sidebar-group{margin:0 0 12px}.sidebar-group-title{color:var(--muted-foreground);padding:11px 8px 7px;font-size:12px;font-weight:600;line-height:16px}.chat-row{width:100%;min-height:38px;color:var(--foreground);text-align:left;background:0 0;border-radius:10px;justify-content:space-between;align-items:center;gap:6px;padding:6px 6px 6px 10px;transition:background-color .14s,color .14s;display:flex}.chat-row:hover,.chat-row.active{background:var(--accent);color:var(--foreground)}.chat-row-title{white-space:nowrap;text-overflow:ellipsis;min-width:0;color:inherit;text-align:left;background:0 0;flex:1;font-size:14px;font-weight:400;line-height:20px;overflow:hidden}.chat-row.active .chat-row-title{font-weight:500}.chat-row-delete{opacity:0;width:30px;height:30px;color:var(--muted-foreground);background:0 0;border-radius:8px;place-items:center;display:grid}.chat-row:hover .chat-row-delete,.chat-row:focus-within .chat-row-delete{opacity:1}.chat-row-delete:hover{background:var(--accent-hover);color:var(--foreground)}.sidebar-bottom,.sidebar-chat-cta{display:none}.sheet-overlay{z-index:80;background:var(--scrim);position:fixed;inset:0}.sheet-overlay[data-state=open]{animation:.16s overlay-in}.sheet-overlay[data-state=closed]{animation:.16s overlay-out}.sheet-content.drawer-panel{z-index:81;background:var(--sidebar);border-right:1px solid var(--border);outline:none;width:min(320px,86vw);position:fixed;inset:0 auto 0 0}.sheet-content.drawer-panel[data-state=open]{animation:.19s cubic-bezier(.16,1,.3,1) drawer-in}.sheet-content.drawer-panel[data-state=closed]{animation:.17s cubic-bezier(.7,0,.84,0) drawer-out}.drawer-panel .sidebar-shell{border-right:0;width:100%;height:100%;padding:0;display:block}.drawer-panel .sidebar{border-radius:0}.drawer-panel .sidebar-top{min-height:58px}@keyframes overlay-in{0%{opacity:0}to{opacity:1}}@keyframes overlay-out{0%{opacity:1}to{opacity:0}}@keyframes drawer-in{0%{transform:translate(-100%)}to{transform:translate(0)}}@keyframes drawer-out{0%{transform:translate(0)}to{transform:translate(-100%)}}.home-content{flex:1;justify-content:center;align-items:center;padding:56px 24px 128px;display:flex}.home-mode .main-pane{justify-content:center;padding-bottom:96px}.home-mode .home-content{flex:none;padding:0 24px 24px}.home-mode .composer-wrap{pointer-events:auto;background:0 0;padding-bottom:0;position:static}.home-mode .composer{padding-top:0}.home-heading{text-align:center;letter-spacing:-.025em;text-wrap:balance;max-width:680px;margin:0 auto;font-size:clamp(28px,3.2vw,34px);font-weight:500;line-height:1.15}.chat-content{flex:1;min-height:0}.message-scroll{scrollbar-width:thin;scrollbar-color:var(--border-strong) transparent;height:100%;overflow-y:auto}.message-inner{width:100%;max-width:768px;margin:0 auto;padding:80px 0 150px}.message-row{padding:0 24px 16px;display:flex}.message-row.user{justify-content:flex-end}.message-row.assistant{justify-content:flex-start}.user-stack{flex-direction:column;align-items:flex-end;gap:0;max-width:min(70%,520px);display:flex}.user-bubble{background:var(--user-bubble);max-width:100%;color:var(--user-bubble-foreground);white-space:pre-wrap;border-radius:24px;padding:10px 20px;font-size:15px;line-height:22px}.assistant-inner{width:100%;max-width:680px;color:var(--foreground);font-size:15px;line-height:24px}.assistant-inner p{text-wrap:pretty;margin:0 0 12px}.assistant-inner p:last-child{margin-bottom:0}.assistant-inner pre{border:1px solid var(--code-border);background:var(--code-background);color:var(--code-text);box-shadow:none;border-radius:12px;padding:13px 14px;overflow-x:auto}.assistant-inner code{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,monospace;font-size:.92em}.assistant-inner :not(pre)>code{background:var(--code-inline-background);border-radius:3px;padding:1px 3px}.assistant-inner a{color:var(--link-foreground);text-underline-offset:2px}.placeholder-text{color:var(--placeholder-text);font-size:15px}.uploading-text{color:var(--muted-foreground);margin-top:6px;font-size:12px}.image-strip{gap:8px;max-width:100%;margin-bottom:8px;display:flex;overflow-x:auto}.image-strip img{object-fit:cover;background:var(--muted);border:1px solid var(--border);border-radius:12px;width:88px;height:88px}.file-chip{background:var(--muted);border:1px solid var(--border);max-width:230px;color:var(--foreground);border-radius:10px;align-items:center;gap:6px;margin-bottom:6px;padding:7px 10px;font-size:12px;text-decoration:none;display:inline-flex}.action-bar{background:0 0;flex-wrap:wrap;align-items:center;gap:4px;margin-top:5px;display:flex}.user-stack .action-bar{justify-content:flex-end}.action-button{width:28px;height:28px;color:var(--muted-foreground);background:0 0;border-radius:8px;place-items:center;padding:6px;transition:background-color .14s,color .14s;display:inline-grid}.action-button:hover{background:var(--accent);color:var(--foreground)}.loader-dots{align-items:center;gap:4px;padding:8px 0;display:inline-flex}.loader-dots span{background:var(--muted-foreground);opacity:.3;border-radius:50%;width:8px;height:8px;animation:1.2s linear infinite loader-pulse}.loader-dots span:nth-child(2){animation-delay:.4s}.loader-dots span:nth-child(3){animation-delay:.8s}@keyframes loader-pulse{0%{opacity:.3}16.666%{opacity:1}33.333%{opacity:1}50%{opacity:.3}to{opacity:.3}}.sources{width:100%;margin-top:8px;margin-bottom:2px}.action-bar .sources{width:auto;margin:0}.sources-action-button{min-height:30px;color:var(--muted-foreground);background:0 0;align-items:center;gap:7px;padding:0 2px;font-size:13px;font-weight:500;line-height:18px;display:inline-flex}.sources-action-button:hover{color:var(--foreground)}.source-stack{align-items:center;min-width:18px;height:18px;padding-left:0;display:inline-flex}.source-stack-item{background:var(--surface);width:18px;height:18px;box-shadow:0 0 0 1.5px var(--background);border-radius:50%;margin-left:-6px;display:inline-flex;position:relative;overflow:hidden}.source-stack-item:first-child{margin-left:0}.source-stack-item .source-favicon{border-radius:50%;width:18px;height:18px;margin-top:0}.source-stack-count{z-index:0;background:var(--accent);min-width:18px;height:18px;color:var(--muted-foreground);box-shadow:0 0 0 1.5px var(--background);border-radius:999px;justify-content:center;align-items:center;margin-left:-6px;padding:0 4px;font-size:10px;font-weight:700;line-height:18px;display:inline-flex;position:relative}.source-card{border:1px solid var(--source-chip-border);background:var(--card);box-shadow:none;border-radius:14px;margin-top:8px;padding:8px 12px;overflow:hidden}.source-item{border-bottom:1px solid var(--border);align-items:flex-start;gap:8px;padding:8px 0;text-decoration:none;display:flex}.source-item:last-child{border-bottom:0}.source-text{flex:1;gap:1px;min-width:0;display:grid}.source-title-row{min-width:0;color:var(--foreground);align-items:center;gap:4px;display:flex}.source-title{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:13px;font-weight:500;overflow:hidden}.source-description{text-overflow:ellipsis;white-space:nowrap;color:var(--source-chip-muted);font-size:12px;line-height:17px;overflow:hidden}.source-url{text-overflow:ellipsis;white-space:nowrap;color:var(--source-chip-muted);font-size:11px;overflow:hidden}.source-favicon{background:var(--favicon-fallback);object-fit:cover;border-radius:4px;flex:none;width:15px;height:15px;margin-top:1px}.source-favicon.fallback{display:inline-block}.composer-wrap{z-index:40;padding-bottom:max(14px, env(safe-area-inset-bottom));pointer-events:none;background:var(--background);position:absolute;bottom:0;left:0;right:0}.composer{pointer-events:auto;width:100%;max-width:768px;margin:0 auto;padding:22px 12px 0}.connector-pills{align-items:center;gap:8px;margin:0 0 8px 54px;display:flex}.connector-pill{border:1px solid var(--border);background:var(--surface);height:30px;color:var(--muted-foreground);box-shadow:none;border-radius:999px;align-items:center;gap:7px;padding:0 10px;font-size:13px;font-weight:500;display:inline-flex}.search-pill.active{color:var(--foreground);background:var(--accent);border-color:var(--border)}.connector-pill:hover{background:var(--accent);color:var(--foreground)}.connector-pill-close{width:18px;height:18px;color:inherit;background:0 0;border-radius:50%}.desktop-composer-row{align-items:flex-end;gap:8px;display:flex}.composer-plus,.mobile-plus{width:40px;height:40px;color:var(--muted-foreground);box-shadow:none;background:0 0;border:0;border-radius:10px;flex:none;place-items:center;margin-bottom:0;display:grid}.composer-plus:hover,.mobile-plus:hover{background:var(--accent);color:var(--foreground)}.web-pill{border:1px solid var(--border);background:var(--pill-background);border-radius:26px;flex:1;min-width:0;transition:border-color .14s,background-color .14s,box-shadow .14s;overflow:hidden;box-shadow:0 1px 3px #0000000f}.web-pill.focused{border-color:var(--focus-border);box-shadow:0 0 8px var(--shadow)}.composer-input-row{align-items:center;gap:10px;min-height:52px;padding:5px 7px 5px 16px;display:flex}.composer-bottom-row{justify-content:space-between;align-items:center;padding:0 12px 10px;display:flex}.composer-attachment-row{margin-bottom:8px}.attachment-strip{scrollbar-width:none;gap:10px;padding:10px 12px 4px;display:flex;overflow-x:auto}.attachment-strip::-webkit-scrollbar{display:none}.mobile-attachment-strip{display:none}.attachment-thumb{background:var(--accent);border-radius:12px;flex:none;width:78px;height:78px;position:relative}.attachment-thumb img{object-fit:cover;border:1px solid var(--border);border-radius:12px;width:100%;height:100%}.remove-attachment{background:var(--foreground);width:22px;height:22px;color:var(--background);border-radius:50%;place-items:center;display:grid;position:absolute;top:-7px;right:-7px}.composer-textarea{resize:none;width:100%;min-height:52px;max-height:160px;padding:14px 20px 8px;font-size:16px;line-height:22px;display:block}.send-button{background:var(--send-inactive-background);width:32px;height:32px;color:var(--send-inactive-icon);border-radius:50%;flex:none;place-items:center;display:grid}.send-button.active{background:var(--send-active-background);color:var(--send-active-icon)}.send-button.active:hover{background:var(--send-active-background);color:var(--send-active-icon);opacity:.92}.mobile-composer-row{align-items:center;gap:8px;display:none}.mobile-pill{border:1px solid var(--border);background:var(--pill-background);border-radius:26px;flex:1;align-items:center;min-width:0;min-height:44px;padding-left:16px;padding-right:6px;display:flex;overflow:hidden;box-shadow:0 1px 3px #0000000f}.mobile-input{flex:1;min-width:0;min-height:44px;padding:10px 0;font-size:16px;line-height:22px}.app-store-banner{z-index:90;background:var(--background);border-bottom:1px solid var(--border);padding:8px 10px;position:absolute;top:0;left:0;right:0}.app-store-inner{border:1px solid var(--border);background:var(--surface);min-height:58px;box-shadow:none;border-radius:12px;align-items:center;gap:10px;padding:8px 10px;display:flex}.app-store-icon{border:1px solid var(--border);background:var(--accent);width:42px;height:42px;color:var(--foreground);border-radius:10px;place-items:center;display:grid}.app-store-copy{flex:1;min-width:0}.app-store-title{white-space:nowrap;text-overflow:ellipsis;font-size:14px;font-weight:600;line-height:19px;overflow:hidden}.app-store-subtitle{color:var(--muted-foreground);white-space:nowrap;text-overflow:ellipsis;font-size:12px;line-height:17px;overflow:hidden}.app-store-open{background:var(--primary);min-width:62px;height:34px;color:var(--primary-foreground);border-radius:10px;padding:0 14px;font-size:14px;font-weight:600}.app-store-close{width:30px;height:30px;color:var(--muted-foreground);background:0 0;border-radius:8px;place-items:center;display:grid}.app-store-close:hover{background:var(--accent);color:var(--foreground)}.chat-error{z-index:70;color:var(--muted-foreground);text-align:center;font-size:13px;position:absolute;bottom:128px;left:16px;right:16px}.privacy-page{background:var(--background);height:100svh;color:var(--foreground);overflow-y:auto}.privacy-shell{width:min(900px,100% - 32px);margin:0 auto;padding:56px 0 88px}.privacy-back{background:var(--accent);border:1px solid var(--border);min-height:38px;color:var(--muted-foreground);box-shadow:none;border-radius:10px;align-items:center;gap:7px;margin-bottom:36px;padding:0 14px;display:inline-flex}.privacy-back:hover{color:var(--foreground);background:var(--accent-hover)}.privacy-title{letter-spacing:-.04em;text-wrap:balance;margin:0 0 10px;font-size:clamp(34px,5vw,52px);font-weight:650;line-height:1.04}.privacy-date{color:var(--muted-foreground);margin-bottom:30px}.privacy-section{border-top:1px solid var(--border);padding:28px 0}.privacy-section h2{letter-spacing:-.02em;margin:0 0 12px;font-size:20px}.privacy-section p,.privacy-section li{color:var(--muted-foreground);line-height:1.7}.privacy-section a{color:var(--foreground);text-underline-offset:3px;text-decoration-thickness:1px}@media (width>=768px){.sidebar-shell{display:block}.header-menu-button{display:grid}}@media (width<=767px){.app-shell{display:block}.main-pane{height:100svh}.chat-header{height:56px}.chat-header-inner{grid-template-columns:44px 1fr 44px;padding:6px 10px}.header-title{max-width:calc(100vw - 124px)}.home-content{padding:56px 20px 118px}.home-mode .main-pane{justify-content:center;padding-bottom:96px}.home-mode .home-content{padding:0 20px 22px}.home-heading{max-width:340px;font-size:28px;line-height:1.15}.message-inner{padding-top:72px;padding-bottom:132px}.message-row{padding-bottom:16px;padding-left:18px;padding-right:18px}.user-stack{max-width:82%}.assistant-inner{max-width:100%}.desktop-composer-row{display:none}.connector-pills{margin-bottom:8px;margin-left:0;padding-left:52px}.mobile-composer-row{display:flex}.composer-attachment-row{margin-bottom:8px}.composer-attachment-row .attachment-strip{max-height:88px;padding:0 0 0 52px}.composer-attachment-row .attachment-thumb{width:64px;height:64px}.composer{padding:18px 8px 0}.home-mode .composer{padding-top:0}.mobile-plus{background:var(--surface-raised);border:1px solid var(--border);width:40px;height:40px;box-shadow:0 2px 8px var(--shadow);border-radius:50%}.sheet-content.drawer-panel{width:min(320px,86vw);inset:0 auto 0 0}}.sheet-content.sources-sheet{z-index:82;border:1px solid var(--border);background:var(--surface-raised);width:min(620px,100vw - 24px);max-height:min(72svh,680px);box-shadow:0 8px 28px var(--shadow);border-radius:14px;outline:none;padding:20px;animation:.19s cubic-bezier(.16,1,.3,1) sources-sheet-in;position:fixed;inset:auto auto 12px 50%;overflow:auto;transform:translate(-50%)}.sources-sheet-title{color:var(--muted-foreground);letter-spacing:.02em;margin:0 0 16px;font-size:12px;font-weight:600;line-height:16px}.sources-sheet-list{gap:0;display:grid}.sources-sheet .source-item{gap:10px;padding:14px 0}.source-host-row{color:var(--muted-foreground);align-items:center;gap:6px;font-size:12px;font-weight:500;display:flex}.source-host{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.sources-sheet .source-title{white-space:normal;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-top:6px;font-size:16px;font-weight:600;line-height:21px;display:-webkit-box}.sources-sheet .source-description{white-space:normal;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-top:5px;font-size:13px;line-height:18px;display:-webkit-box}.sources-sheet .source-url{white-space:normal;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-top:6px;font-size:13px;line-height:18px;display:-webkit-box}.sources-sheet .source-favicon{border-radius:50%;width:18px;height:18px;margin-top:0}@keyframes sources-sheet-in{0%{opacity:.85;transform:translate(-50%)translateY(16px)}to{opacity:1;transform:translate(-50%)translateY(0)}}@media (width>=768px){.desktop-composer .composer-plus{border:1px solid var(--border);border-radius:16px;width:32px;height:32px}}.web-pill,.mobile-pill,.composer-textarea,.mobile-input,.connector-pill,.composer-plus,.mobile-plus,.send-button{-webkit-tap-highlight-color:transparent}.web-pill:hover,.web-pill.focused,.mobile-pill:focus-within{border-color:var(--border);box-shadow:0 2px 10px var(--shadow)}.web-pill:focus,.web-pill:focus-within,.composer-textarea:focus,.composer-textarea:focus-visible,.mobile-input:focus,.mobile-input:focus-visible{outline:0!important}.connector-pills{width:100%;max-width:768px;margin-left:auto;margin-right:auto;padding:0 12px}.composer-plus,.mobile-plus{background:var(--primary);color:var(--primary-foreground);border:1px solid var(--primary)}.composer-plus:hover,.mobile-plus:hover{background:var(--primary);color:var(--primary-foreground);opacity:.88}.header-menu-button{color:var(--muted-foreground);background:0 0!important}.header-menu-button:hover{background:0 0!important}.home-heading,.home-mode .composer,.message-row,.sidebar-shell,.app-store-banner{animation:.36s cubic-bezier(.16,1,.3,1) both quiet-rise}.home-mode .composer{animation-delay:70ms}.message-row{animation-duration:.26s}@keyframes quiet-rise{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.001ms!important;animation-duration:.001ms!important;animation-iteration-count:1!important}}@media (width<=767px){.home-mode .main-pane{justify-content:flex-start;padding-bottom:0}.home-mode .home-content{flex:1;justify-content:center;align-items:center;padding:56px 20px 136px;display:flex}.home-mode .composer-wrap{padding-bottom:max(14px, env(safe-area-inset-bottom));background:var(--background);pointer-events:none;position:absolute;bottom:0;left:0;right:0}.home-mode .composer{pointer-events:auto;padding:18px 8px 0}.connector-pills{padding-left:60px;padding-right:8px}.mobile-plus{background:var(--primary);color:var(--primary-foreground);border-color:var(--primary)}}.composer-plus,.mobile-plus{background:var(--surface-raised);color:var(--foreground);border:1px solid var(--border);box-shadow:none}.composer-plus:hover,.mobile-plus:hover,.desktop-composer .composer-plus:hover{background:var(--accent);color:var(--foreground);border-color:var(--border);opacity:1}.composer-plus:active,.mobile-plus:active{transform:scale(.96)}@media (width>=768px){.desktop-composer .composer-plus{background:var(--surface-raised);width:32px;height:32px;color:var(--foreground);border:1px solid var(--border);border-radius:50%}}@media (width<=767px){.mobile-plus,.home-mode .mobile-plus{background:var(--surface-raised);width:40px;height:40px;color:var(--foreground);border:1px solid var(--border);box-shadow:0 1px 5px var(--shadow);border-radius:50%}}.chat-row-delete:hover{color:#ff3b30;background:#ff3b301a}@media (prefers-color-scheme:dark){.chat-row-delete:hover{color:#ff453a;background:#ff453a29}}.sidebar-search{text-align:left;border:0;width:100%}.sidebar-search span{color:var(--muted-foreground);font-size:14px}.history-search-overlay{z-index:120;background:var(--scrim);place-items:center;padding:24px;animation:.15s both overlay-in;display:grid;position:fixed;inset:0}.history-search-panel{border:1px solid var(--border);background:var(--surface-raised);width:min(900px,100vw - 48px);max-height:min(72svh,720px);box-shadow:0 18px 48px var(--shadow);border-radius:18px;flex-direction:column;animation:.22s cubic-bezier(.16,1,.3,1) both quiet-rise;display:flex;overflow:hidden}.history-search-row{border-bottom:1px solid var(--border);align-items:center;gap:12px;padding:12px;display:flex}.history-search-input-wrap{background:var(--accent);min-width:0;height:42px;color:var(--muted-foreground);border-radius:12px;flex:1;align-items:center;gap:9px;padding:0 12px;display:flex}.history-search-input-wrap input{flex:1;width:100%;min-width:0;font-size:15px}.history-search-input-wrap input:focus,.history-search-input-wrap input:focus-visible{outline:0!important}.history-search-clear,.history-search-cancel{color:var(--foreground);background:0 0}.history-search-clear{border-radius:8px;place-items:center;width:28px;height:28px;display:grid}.history-search-clear:hover{background:var(--accent-hover)}.history-search-cancel{font-size:15px;font-weight:500}.history-search-list{padding:8px 12px 14px;overflow:auto}.history-row{min-height:44px}@media (width<=767px){.history-search-overlay{align-items:end;padding:0}.history-search-panel{border-bottom:0;border-left:0;border-right:0;border-radius:18px 18px 0 0;width:100%;max-height:88svh;animation-name:search-sheet-up}@keyframes search-sheet-up{0%{opacity:.92;transform:translateY(36px)}to{opacity:1;transform:translateY(0)}}}@media (width>=768px){.sidebar.collapsed .collapsed-sidebar-actions{display:none}}@media (width<=767px){.chat-header-inner{justify-content:flex-start;gap:8px;display:flex}.header-menu-button{flex:0 0 44px}.header-title{text-align:left;justify-self:auto;max-width:none;padding:0}.chat-header-inner>.header-icon-button:last-child,.chat-header-inner>.header-placeholder:last-child{flex:0 0 44px;margin-left:auto}}.chat-content{position:relative}.image-thumb-button{cursor:zoom-in;background:0 0;border:0;border-radius:12px;padding:0;display:block}.image-thumb-button:focus-visible{outline:2px solid var(--focus-border);outline-offset:2px}.scroll-bottom-button{z-index:30;border:1px solid var(--border);background:var(--surface-raised);width:36px;height:36px;color:var(--foreground);box-shadow:0 2px 10px var(--shadow);border-radius:50%;place-items:center;animation:.18s cubic-bezier(.16,1,.3,1) both quiet-rise;display:grid;position:absolute;bottom:122px;left:50%;transform:translate(-50%)}.scroll-bottom-button:hover{background:var(--accent)}.image-lightbox{z-index:160;cursor:zoom-out;background:#000000d1;place-items:center;padding:28px;animation:.15s both overlay-in;display:grid;position:fixed;inset:0}.image-lightbox img{object-fit:contain;cursor:default;border-radius:14px;max-width:min(1120px,94vw);max-height:88svh;box-shadow:0 18px 70px #0000006b}.lightbox-close{top:max(14px, env(safe-area-inset-top));right:max(14px, env(safe-area-inset-right));color:#fff;background:#ffffff1f;border-radius:50%;place-items:center;width:38px;height:38px;display:grid;position:fixed}.lightbox-close:hover{background:#fff3}.reasoning-section{margin-bottom:10px}.reasoning-toggle{color:var(--reasoning-label);background:0 0;align-items:center;gap:5px;padding:2px 0;font-size:13px;font-weight:500;display:inline-flex}.reasoning-toggle:hover{color:var(--foreground)}.reasoning-content{border-left:2px solid var(--reasoning-border);color:var(--reasoning-content);margin-top:8px;padding-left:12px;font-size:13px;line-height:20px;animation:.18s cubic-bezier(.16,1,.3,1) both quiet-rise}.reasoning-content p{margin-bottom:8px}.tool-cards{gap:7px;margin-bottom:12px;display:grid}.tool-card{border:1px solid var(--border);background:0 0;border-radius:8px;overflow:hidden}.tool-card-header{width:100%;min-height:40px;color:var(--foreground);text-align:left;background:0 0;align-items:center;gap:8px;padding:8px 11px;display:flex}.tool-card-header:hover{background:var(--accent)}.tool-title{text-overflow:ellipsis;white-space:nowrap;flex:1;align-items:center;gap:7px;min-width:0;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,monospace;font-size:13px;display:inline-flex;overflow:hidden}.tool-status{border:1px solid var(--border);color:var(--muted-foreground);border-radius:999px;flex:none;padding:2px 7px;font-size:11px;font-weight:600}.tool-status.done{border-color:var(--tool-completed-border);background:var(--tool-completed-background);color:var(--tool-completed-text)}.tool-status.running{border-color:var(--tool-running-border);background:var(--tool-running-background);color:var(--tool-running-text)}.tool-card-body{gap:7px;padding:2px 11px 11px;animation:.18s cubic-bezier(.16,1,.3,1) both quiet-rise;display:grid}.tool-label{color:var(--muted-foreground);letter-spacing:.04em;text-transform:uppercase;margin-top:5px;font-size:11px;font-weight:650}.tool-card pre{border:1px solid var(--border);background:var(--tool-content-background);max-height:260px;color:var(--foreground);white-space:pre-wrap;border-radius:6px;margin:0;padding:8px;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,monospace;font-size:12px;line-height:18px;overflow:auto}.tool-call-id{color:var(--tool-call-id-label);font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,monospace;font-size:11px}.math-inline{display:inline}.math-block{margin:12px 0;padding:2px 0;display:block;overflow-x:auto}.assistant-inner .katex{font-size:1.04em}@media (width<=767px){.scroll-bottom-button{bottom:108px}.image-lightbox{padding:16px}.image-lightbox img{border-radius:10px;max-width:96vw;max-height:86svh}}@media (width>=768px){.header-menu-button{visibility:hidden;pointer-events:none}.sidebar-shell{transform-origin:0}.sidebar-shell:not(.collapsed){animation:.22s cubic-bezier(.16,1,.3,1) both sidebar-slide-in}.sidebar-shell.collapsed{animation:.22s cubic-bezier(.16,1,.3,1) both sidebar-slide-out}.sidebar-shell.collapsed .sidebar{animation:.18s cubic-bezier(.16,1,.3,1) both sidebar-content-out}@keyframes sidebar-slide-in{0%{width:64px;transform:translate(-10px)}to{width:300px;transform:translate(0)}}@keyframes sidebar-slide-out{0%{width:300px;transform:translate(0)}to{width:64px;transform:translate(-6px)}}@keyframes sidebar-content-out{0%{opacity:1;transform:translate(0)}to{opacity:.92;transform:translate(-10px)}}.sidebar-shell.collapsed .sidebar{align-items:center;width:64px;opacity:1!important;transform:none!important}.sidebar.collapsed .sidebar-top,.sidebar.collapsed .collapsed-sidebar-actions{flex-direction:column;justify-content:flex-start;align-items:center;width:100%;padding-left:0;padding-right:0;display:flex}.sidebar.collapsed .sidebar-brand{border-radius:12px;flex:none;place-items:center;width:44px;height:44px;margin:0 auto;padding:0;display:grid}.sidebar.collapsed .sidebar-brand svg{margin:0;display:block}.sidebar.collapsed .sidebar-icon-button{border-radius:12px;width:44px;height:44px;margin:0 auto}.sidebar-shell{transition:width .24s cubic-bezier(.16,1,.3,1),transform .24s cubic-bezier(.16,1,.3,1);animation:none!important}.sidebar-shell:not(.collapsed){width:300px!important;transform:translate(0)!important}.sidebar-shell.collapsed{width:64px!important;transform:translate(0)!important}.sidebar-shell .sidebar{opacity:1!important;animation:none!important;transform:none!important}.sidebar-shell:not(.collapsed) .sidebar{transition:opacity .18s 70ms;opacity:1!important}}.web-pill,.mobile-composer-row{position:relative}.web-pill.drag-target,.mobile-pill.drag-target{border-color:var(--border-strong)}.composer-drop-overlay{z-index:10;border:1px dashed var(--border-strong);background:var(--surface-raised);color:var(--muted-foreground);pointer-events:none;border-radius:26px;place-items:center;font-size:13px;font-weight:650;display:grid;position:absolute;inset:0}.composer-drop-overlay.mobile{border-radius:22px}.attachment-thumb.file{width:150px;height:78px}.pdf-thumb{border:1px solid var(--border);background:var(--accent);width:100%;height:100%;color:var(--foreground);border-radius:12px;align-items:center;gap:8px;padding:10px;display:flex}.pdf-thumb span{-webkit-line-clamp:2;word-break:break-word;-webkit-box-orient:vertical;min-width:0;font-size:12px;line-height:16px;display:-webkit-box;overflow:hidden}@media (width<=767px){.attachment-thumb.file{width:132px;height:64px}.pdf-thumb{border-radius:12px;padding:8px}}
