:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--background:var(--lightningcss-light,#f7f7f5)var(--lightningcss-dark,#171817);--surface:var(--lightningcss-light,#fff)var(--lightningcss-dark,#202120);--surface-subtle:var(--lightningcss-light,#f0f0ed)var(--lightningcss-dark,#292a29);--surface-hover:var(--lightningcss-light,#e8e8e4)var(--lightningcss-dark,#333432);--border:var(--lightningcss-light,#deded9)var(--lightningcss-dark,#3d3e3b);--foreground:var(--lightningcss-light,#20201f)var(--lightningcss-dark,#f4f4f2);--muted:var(--lightningcss-light,#6f6f69)var(--lightningcss-dark,#a4a49e);--accent:var(--lightningcss-light,#1f1f1e)var(--lightningcss-dark,#f2f2ee);--accent-foreground:var(--lightningcss-light,#fff)var(--lightningcss-dark,#1a1a19);--sidebar-width:278px;--sidebar-collapsed-width:72px}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}*{box-sizing:border-box}html,body{min-height:100%;margin:0}body{background:var(--background);color:var(--foreground);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.login-page{place-items:center;min-height:100vh;padding:24px;display:grid}.login-card{border:1px solid var(--border);background:var(--surface);border-radius:24px;width:min(100%,430px);padding:42px;box-shadow:0 24px 70px #0000001a}.eyebrow{color:var(--muted);letter-spacing:.08em;text-transform:uppercase;margin:0;font-size:13px}h1{letter-spacing:-.035em;margin:10px 0 14px;font-size:clamp(32px,5vw,48px);line-height:1.05}.login-copy,.page-header>p:last-child,.empty-state p{color:var(--muted);line-height:1.55}button,a{font:inherit}button{color:inherit}a{color:inherit;text-decoration:none}.brand-mark{background:var(--accent);width:46px;height:46px;color:var(--accent-foreground);letter-spacing:-.04em;border-radius:14px;place-items:center;margin-bottom:26px;font-size:13px;font-weight:750;display:grid}.brand-mark-small{border-radius:10px;flex:none;width:34px;height:34px;margin:0;font-size:11px}.google-sign-in{background:var(--accent);width:100%;color:var(--accent-foreground);cursor:pointer;border:0;border-radius:12px;justify-content:space-between;align-items:center;margin-top:28px;padding:14px 16px;font-weight:650;display:flex}.app-shell{background:var(--background);min-height:100vh}.sidebar{z-index:20;width:var(--sidebar-width);border-right:1px solid var(--border);background:var(--surface);flex-direction:column;transition:width .18s,transform .18s;display:flex;position:fixed;inset:0 auto 0 0;overflow:hidden}.sidebar-header{justify-content:space-between;align-items:center;gap:12px;min-height:72px;padding:16px;display:flex}.sidebar-brand,.nav-link,.project-link,.user-card{align-items:center;gap:12px;display:flex}.sidebar-brand{min-width:0}.brand-name{white-space:nowrap;font-weight:680;overflow:hidden}.icon-button{cursor:pointer;background:0 0;border:0;border-radius:9px;flex:none;place-items:center;width:36px;height:36px;display:grid}.icon-button:hover,.nav-link:hover,.project-link:hover{background:var(--surface-hover)}.sidebar-navigation{flex-direction:column;flex:1;min-height:0;padding:4px 10px 14px;display:flex}.nav-link,.project-link{white-space:nowrap;border-radius:10px;min-height:42px;padding:0 12px}.nav-link svg,.project-link svg{flex:none}.nav-link.is-active{background:var(--surface-subtle);font-weight:620}.projects-section{min-height:0;margin-top:24px;overflow:auto}.section-title{color:var(--muted);letter-spacing:.08em;text-transform:uppercase;margin:0 12px 8px;font-size:12px;font-weight:620}.project-section-heading{justify-content:space-between;align-items:center;padding-right:8px;display:flex}.project-section-heading .section-title{margin-bottom:0}.project-tree{margin:0;padding:0;list-style:none}.project-tree-item,.folder-group{list-style:none}.project-tree-row,.folder-tree-row{align-items:center;min-width:0;display:flex}.project-tree-row .project-link{flex:1;min-width:0}.tree-actions{opacity:0;flex:none;transition:opacity .12s;display:flex}.project-tree-row:hover .tree-actions,.project-tree-row:focus-within .tree-actions,.folder-tree-row:hover .tree-actions,.folder-tree-row:focus-within .tree-actions{opacity:1}.tree-action-button{cursor:pointer;background:0 0;border:0;border-radius:7px;place-items:center;width:27px;height:27px;padding:0;display:grid}.tree-action-button:hover{background:var(--surface-hover)}.folder-group{border-left:1px solid var(--border);margin:0 0 0 20px;padding:0 0 0 8px}.folder-tree-row{gap:4px;min-height:34px}.folder-label{min-width:0;color:var(--muted);flex:1;align-items:center;gap:8px;font-size:13px;display:flex}.folder-label span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chat-tree-list{margin:0 0 2px 20px;padding:0;list-style:none}.chat-tree-link{min-height:32px;color:var(--muted);border-radius:8px;align-items:center;gap:8px;padding:0 8px;font-size:13px;display:flex}.chat-tree-link:hover{background:var(--surface-hover);color:var(--foreground)}.chat-tree-link span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.muted-project{color:var(--muted)}.empty-projects{color:var(--muted);padding:10px 12px;font-size:13px;display:block}.sidebar-bottom{border-top:1px solid var(--border);gap:8px;margin-top:auto;padding-top:14px;display:grid}.user-card{min-height:52px;padding:7px 10px}.user-avatar{background:var(--surface-subtle);border-radius:50%;flex:none;place-items:center;width:32px;height:32px;font-size:13px;font-weight:700;display:grid}.user-card strong,.user-card small{text-overflow:ellipsis;white-space:nowrap;max-width:176px;display:block;overflow:hidden}.user-card small{color:var(--muted);margin-top:3px;font-size:12px}.portal-content{min-height:100vh;margin-left:var(--sidebar-width);transition:margin-left .18s}.sidebar-collapsed .sidebar{width:var(--sidebar-collapsed-width)}.sidebar-collapsed .sidebar-label{display:none}.sidebar-collapsed .sidebar-header{flex-direction:column;padding-inline:10px}.sidebar-collapsed .portal-content{margin-left:var(--sidebar-collapsed-width)}.dashboard-page{padding:clamp(28px,5vw,72px)}.page-header{max-width:720px}.page-header h1{font-size:clamp(36px,5vw,56px)}.empty-state{border:1px dashed var(--border);background:color-mix(in srgb, var(--surface) 68%, transparent);text-align:center;border-radius:18px;align-content:center;place-items:center;max-width:680px;min-height:300px;margin-top:48px;padding:42px;display:grid}.empty-state-icon{background:var(--surface-subtle);border-radius:15px;place-items:center;width:52px;height:52px;display:grid}.empty-state h2{margin:18px 0 4px;font-size:20px}.empty-state p{max-width:450px;margin:6px 0 0}.mobile-topbar,.drawer-backdrop{display:none}.dialog-layer{z-index:50;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.dialog-backdrop{background:#0000007a;border:0;width:100%;height:100%;position:absolute;inset:0}.project-dialog{z-index:1;border:1px solid var(--border);background:var(--surface);border-radius:18px;gap:20px;width:min(100%,460px);padding:24px;display:grid;position:relative;box-shadow:0 24px 80px #0000003d}.project-dialog header,.project-dialog footer{justify-content:space-between;align-items:center;gap:10px;display:flex}.project-dialog h2,.project-dialog p{margin:0}.project-dialog label{color:var(--muted);gap:8px;font-size:13px;font-weight:620;display:grid}.project-dialog input,.project-dialog select{border:1px solid var(--border);background:var(--background);width:100%;min-height:42px;color:var(--foreground);font:inherit;border-radius:10px;padding:0 12px}.project-dialog footer{justify-content:flex-end}.primary-button,.secondary-button{border:1px solid var(--border);cursor:pointer;border-radius:10px;min-height:40px;padding:0 16px}.primary-button{border-color:var(--accent);background:var(--accent);color:var(--accent-foreground)}.secondary-button{background:0 0}.form-error{color:#c43b3b;font-size:13px}.settings-page{padding:clamp(28px,5vw,64px)}.integrations-panel{gap:18px;width:min(100%,720px);margin-top:36px;display:grid}.integration-card,.integration-form,.integration-empty{border:1px solid var(--border);background:var(--surface);border-radius:16px;padding:22px}.integration-card header,.integration-actions,.integration-form{align-items:center;gap:12px;display:flex}.integration-card header{justify-content:space-between}.integration-card h2,.integration-card p,.integration-empty h2,.integration-empty p{margin:0}.integration-card p,.integration-empty p{color:var(--muted);margin-top:5px}.integration-card code{letter-spacing:.12em;margin:18px 0;font-size:18px;display:block}.status-enabled,.status-disabled{border-radius:999px;padding:5px 9px;font-size:12px;font-weight:650}.status-enabled{color:#18834b;background:#269d5b1f}.status-disabled{background:var(--surface-subtle);color:var(--muted)}.integration-form{flex-wrap:wrap;align-items:end}.integration-form label{min-width:min(100%,360px);color:var(--muted);flex:1;gap:7px;font-size:13px;display:grid}.integration-form input{border:1px solid var(--border);background:var(--background);min-height:42px;color:var(--foreground);font:inherit;border-radius:10px;padding:0 12px}.integration-form .form-error{width:100%;margin:0}.danger-button{color:#c43b3b}.dialog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.chat-page{grid-template-rows:auto 1fr auto;min-height:100vh;display:grid}.chat-header{z-index:5;border-bottom:1px solid var(--border);background:color-mix(in srgb, var(--background) 92%, transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);justify-content:space-between;align-items:center;gap:20px;min-height:76px;padding:14px clamp(20px,4vw,48px);display:flex;position:sticky;top:0}.chat-title-row,.chat-settings{align-items:center;gap:10px;display:flex}.chat-title-row h1{letter-spacing:-.02em;margin:0;font-size:22px}.chat-title-row form,.chat-title-row input{min-width:0}.chat-title-row input,.chat-settings select{border:1px solid var(--border);background:var(--surface);min-height:36px;color:var(--foreground);font:inherit;border-radius:9px}.chat-title-row input{width:min(48vw,440px);padding:0 10px;font-size:18px;font-weight:650}.chat-settings label{gap:3px;display:grid}.chat-settings label>span{color:var(--muted);letter-spacing:.06em;text-transform:uppercase;font-size:10px;font-weight:650}.chat-settings select{padding:0 28px 0 9px;font-size:13px}.chat-timeline,.chat-empty-state{width:min(100%,860px);margin:0 auto;padding:42px clamp(18px,4vw,42px) 190px}.chat-empty-state{text-align:center;place-content:center;display:grid}.chat-empty-state h2,.chat-empty-state p{margin:0}.chat-empty-state p{color:var(--muted);margin-top:8px}.chat-message{max-width:78%;margin-bottom:24px}.chat-message.role-user{background:var(--surface-subtle);border-radius:16px 16px 4px;margin-left:auto;padding:14px 16px}.message-role{color:var(--muted);letter-spacing:.06em;text-transform:uppercase;font-size:11px;font-weight:700}.chat-message p{white-space:pre-wrap;margin:6px 0 0;line-height:1.55}.streaming-message{min-height:72px}.run-event-list{color:var(--muted);gap:6px;margin:12px 0 0;padding:0;font-size:12px;list-style:none;display:grid}.run-event-list li{padding-left:14px;position:relative}.run-event-list li:before{content:"·";position:absolute;left:0}.run-event-list .run-event-error{color:#c43b3b}.chat-composer{z-index:6;bottom:0;right:0;left:var(--sidebar-width);width:min(calc(100% - var(--sidebar-width) - 36px), 820px);border:1px solid var(--border);background:var(--surface);border-radius:18px;margin:0 auto 20px;padding:10px;transition:left .18s;position:fixed;box-shadow:0 14px 50px #00000024}.sidebar-collapsed .chat-composer{left:var(--sidebar-collapsed-width);width:min(calc(100% - var(--sidebar-collapsed-width) - 36px), 820px)}.chat-composer textarea{resize:vertical;width:100%;min-height:72px;color:var(--foreground);font:inherit;background:0 0;border:0;outline:0;padding:8px 10px;line-height:1.5}.chat-composer footer{justify-content:space-between;align-items:center;display:flex}.attachment-button,.send-button{cursor:pointer;border:0;border-radius:10px;place-items:center;width:38px;height:38px;display:grid}.attachment-button{background:0 0}.attachment-button input{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.send-button{background:var(--accent);color:var(--accent-foreground)}.send-button:disabled{cursor:wait;opacity:.45}.selected-files{flex-wrap:wrap;gap:6px;margin:0;padding:0 6px 4px;list-style:none;display:flex}.selected-files li{background:var(--surface-subtle);border-radius:8px;align-items:center;gap:5px;padding:5px 8px;font-size:12px;display:flex}.selected-files button{cursor:pointer;background:0 0;border:0;padding:0;display:grid}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}@media (max-width:720px){.mobile-topbar{z-index:15;border-bottom:1px solid var(--border);background:color-mix(in srgb, var(--surface) 92%, transparent);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);align-items:center;gap:8px;height:58px;padding:0 12px;display:flex;position:sticky;top:0}.mobile-brand{font-weight:680}.mobile-menu-button,.attachment-button,.send-button{width:44px;height:44px}.collapse-button{display:none}.sidebar,.sidebar-collapsed .sidebar{width:min(86vw,310px);transform:translate(-102%)}.drawer-open .sidebar{transform:translate(0)}.sidebar-collapsed .sidebar-label{display:initial}.sidebar-collapsed .sidebar-header{flex-direction:row;padding-inline:16px}.portal-content,.sidebar-collapsed .portal-content{margin-left:0}.drawer-backdrop{z-index:19;background:#00000061;border:0;width:100%;height:100%;display:block;position:fixed;inset:0}.dashboard-page{padding:28px 20px}.empty-state{min-height:250px;margin-top:30px;padding:28px 20px}.login-card{border-radius:18px;padding:30px 24px}.chat-header{flex-direction:column;align-items:flex-start;padding:16px 20px;position:static}.chat-settings{width:100%}.chat-settings label{flex:1;min-width:0}.chat-settings select{width:100%}.chat-message{max-width:92%}.chat-composer,.sidebar-collapsed .chat-composer{width:auto;margin:0;bottom:10px;left:12px;right:12px}.dialog-grid{grid-template-columns:1fr}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important}}
