@import "https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap";
:root{--bg-primary:#fff;--bg-secondary:#f8fafc;--text-primary:#0f172a;--text-secondary:#64748b;--border-color:#e2e8f0;--toggle-bg:#f1f5f9;--toggle-hover:#e2e8f0;--toggle-shadow:0 2px 8px #00000014}[data-theme=dark]{--bg-primary:#0f172a;--bg-secondary:#1e293b;--text-primary:#f8fafc;--text-secondary:#94a3b8;--border-color:#334155;--toggle-bg:#1e293b;--toggle-hover:#334155;--toggle-shadow:0 2px 8px #0000004d}*{box-sizing:border-box;margin:0;padding:0}html,body{-webkit-overflow-scrolling:touch;height:100%;overflow:auto}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--bg-primary);color:var(--text-primary);font-family:Outfit,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;transition:background-color .2s,color .2s}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#94a3b8}[data-theme=dark] ::-webkit-scrollbar-thumb{background:#475569}[data-theme=dark] ::-webkit-scrollbar-thumb:hover{background:#64748b}*{scrollbar-width:thin;scrollbar-color:#cbd5e1 transparent}[data-theme=dark] *{scrollbar-color:#475569 transparent}.app-container{min-height:100vh;position:relative}.theme-toggle:active{transform:scale(.95)}.theme-toggle svg{transition:transform .3s}.theme-toggle:hover svg{transform:rotate(15deg)}*{font-family:Outfit,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif!important}pre,code,.code,[class*=code],[class*=mono]{font-family:JetBrains Mono,Fira Code,Consolas,monospace!important}[class*=agent],[class*=header] h1,[class*=header] span,[class*=title]{font-size:18px!important}[class*=message],[class*=content],[class*=response],[class*=text],p{font-size:16px!important;line-height:1.6!important}[class*=logo] img,[class*=avatar] img,[class*=header] img,[class*=logo],[class*=avatar]{box-shadow:none!important;background:0 0!important;border:none!important;border-radius:0!important}input,textarea,[class*=input],[class*=composer],[contenteditable=true]{font-size:16px!important}[class*=source],[class*=Source],[class*=citation],[class*=Citation]{display:none!important}.welcome-screen{z-index:100;text-align:center;pointer-events:auto;flex-direction:column;align-items:center;padding:40px;display:flex;position:absolute;top:45%;left:calc(50% + 140px);transform:translate(-50%,-50%)}@media (max-width:768px){.welcome-screen{left:50%}}.welcome-logo{opacity:.9;width:80px;height:80px;margin-bottom:24px}.welcome-screen h1{color:var(--text-primary);margin-bottom:8px;font-size:28px!important;font-weight:600!important}.welcome-screen>p{color:var(--text-secondary);margin-bottom:32px;font-size:16px!important}.starter-prompts{flex-direction:column;align-items:center;gap:12px;display:flex}.starter-label{color:var(--text-secondary);margin-bottom:8px;font-size:14px!important}.starter-prompt{background:var(--bg-secondary);border:1px solid var(--border-color);color:var(--text-primary);cursor:pointer;border-radius:12px;padding:12px 20px;transition:all .2s;display:inline-block;font-size:14px!important}.starter-prompt:hover{background:var(--bg-tertiary,#e5e5e5);border-color:var(--primary-color,#6366f1);transform:translateY(-2px)}.starter-prompt:active{transform:translateY(0)}[data-theme=dark] .starter-prompt:hover{background:#374151}.auth-loading{background:#0a0a0a;flex-direction:column;justify-content:center;align-items:center;min-height:100vh;display:flex}.auth-loading-content{align-items:center;gap:12px;animation:2s ease-in-out infinite pulse;display:flex}.auth-loading-text{color:#fafafa;font-weight:600;font-size:24px!important}@keyframes pulse{0%,to{opacity:1}50%{opacity:.5}}.auth-container{background:#0a0a0a;justify-content:center;align-items:center;min-height:100vh;display:flex;position:relative;overflow:hidden}.auth-container:before{content:"";pointer-events:none;background:radial-gradient(at 80%,#a855f726 0%,#0000 50%),radial-gradient(at 60% 80%,#ec48991a 0%,#0000 40%),radial-gradient(at 90% 30%,#3b82f61a 0%,#0000 40%);width:60%;height:100%;position:absolute;top:0;right:0}.auth-card{text-align:center;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);z-index:1;background:#18181be6;border:1px solid #3f3f4680;border-radius:24px;flex-direction:column;align-items:center;width:90%;max-width:720px;padding:56px 72px;display:flex}.auth-badge{letter-spacing:2px;color:#a1a1aa;background:0 0;border:1px solid #a1a1aa4d;border-radius:20px;margin-bottom:24px;padding:8px 20px;font-weight:600;display:inline-block;font-size:11px!important}.auth-brand{align-items:center;gap:12px;margin-bottom:24px;display:flex}.auth-logo{width:40px;height:40px}.auth-brand-name{color:#fafafa;font-weight:600;font-size:18px!important}.auth-heading{color:#fafafa;margin-bottom:24px;font-size:52px!important;font-weight:700!important;line-height:1.15!important}.auth-subtitle{color:#a1a1aa;max-width:480px;margin-bottom:36px;font-size:18px!important;line-height:1.7!important}.auth-button{color:#18181b;cursor:pointer;background:#fafafa;border:none;border-radius:12px;justify-content:center;align-items:center;gap:8px;margin-bottom:24px;padding:16px 48px;font-weight:600;transition:all .2s;display:flex;font-size:16px!important}.auth-button:hover{background:#e4e4e7;transform:translateY(-1px)}.auth-terms{color:#71717a;margin-bottom:0;font-size:13px!important}.auth-terms a{color:#a1a1aa;text-decoration:none}.auth-terms a:hover{color:#fafafa;text-decoration:underline}.header-controls{flex-direction:row;gap:8px;z-index:99999!important;pointer-events:auto!important;display:flex!important;position:fixed!important;top:16px!important;right:32px!important}.logout-button,.theme-toggle,.share-button,.user-menu-button{justify-content:center;align-items:center;transition:all .2s;color:#000!important;cursor:pointer!important;pointer-events:auto!important;background:#fff!important;border:1px solid #666!important;border-radius:50%!important;width:40px!important;height:40px!important;display:flex!important;box-shadow:0 2px 8px #0003!important}[data-theme=dark] .logout-button,[data-theme=dark] .theme-toggle,[data-theme=dark] .share-button,[data-theme=dark] .user-menu-button{color:#fff!important;background:#1f2937!important;border-color:#374151!important}.share-button:disabled{opacity:.5;cursor:not-allowed!important}.share-button:not(:disabled):hover{color:#fff!important;background:#6366f1!important;border-color:#6366f1!important}.logout-button:hover{color:#fff!important;background:#ef4444!important;border-color:#ef4444!important}.theme-toggle:hover{background:var(--bg-tertiary,#e5e5e5)!important;border-color:var(--primary-color,#6366f1)!important}[data-theme=dark] .theme-toggle:hover{background:#374151!important}.user-menu-container{position:relative}.user-menu-button:hover{color:#fff!important;background:#6366f1!important;border-color:#6366f1!important}.user-menu-dropdown{z-index:99999;background:#fff;border:1px solid #e5e7eb;border-radius:12px;min-width:200px;animation:.15s dropdown-in;position:absolute;top:48px;right:0;overflow:hidden;box-shadow:0 10px 40px #00000026}[data-theme=dark] .user-menu-dropdown{background:#1f2937;border-color:#374151}@keyframes dropdown-in{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.user-menu-email{color:#6b7280;white-space:nowrap;text-overflow:ellipsis;border-bottom:1px solid #e5e7eb;padding:12px 16px;font-size:13px;overflow:hidden}[data-theme=dark] .user-menu-email{color:#9ca3af;border-color:#374151}.user-menu-item{color:#374151;cursor:pointer;text-align:left;background:0 0;border:none;align-items:center;gap:10px;width:100%;padding:12px 16px;font-size:14px;transition:all .15s;display:flex}[data-theme=dark] .user-menu-item{color:#e5e7eb}.user-menu-item:hover{background:#f3f4f6}[data-theme=dark] .user-menu-item:hover{background:#374151}.user-menu-logout:hover{color:#dc2626!important;background:#fee2e2!important}[data-theme=dark] .user-menu-logout:hover{color:#f87171!important;background:#ef444433!important}.shared-loading,.shared-error{color:#fff;text-align:center;background:#0a0a0a;flex-direction:column;justify-content:center;align-items:center;min-height:100vh;padding:20px;display:flex}.shared-loading img,.shared-error img{width:80px;height:80px;margin-bottom:20px}.shared-error h1{margin-bottom:10px;font-size:24px}.shared-error p{color:#888;margin-bottom:20px}.shared-error a{color:#6366f1;text-decoration:none}.shared-error a:hover{text-decoration:underline}.shared-container{color:#fff;background:#0a0a0a;flex-direction:column;min-height:100vh;display:flex}.shared-header{border-bottom:1px solid #222;justify-content:space-between;align-items:center;padding:20px 40px;display:flex}.shared-header-left{align-items:center;gap:16px;display:flex}.shared-header-left img{width:40px;height:40px}.shared-header-left h1{margin:0;font-size:18px;font-weight:600}.shared-header-left p{color:#888;margin:0;font-size:13px}.shared-cta{color:#fff;background:#6366f1;border-radius:8px;padding:10px 20px;font-weight:500;text-decoration:none;transition:background .2s}.shared-cta:hover{background:#4f46e5}.shared-messages{flex:1;width:100%;max-width:800px;margin:0 auto;padding:40px 20px}.shared-message{margin-bottom:24px}.shared-message-role{color:#888;margin-bottom:8px;font-size:13px;font-weight:600}.shared-message-user .shared-message-role{color:#6366f1}.shared-message-content{white-space:pre-wrap;font-size:15px;line-height:1.6}.shared-footer{text-align:center;color:#666;border-top:1px solid #222;padding:20px;font-size:14px}.shared-viewer{-webkit-overflow-scrolling:touch;flex-direction:column;flex:1;display:flex;overflow-y:auto}.shared-viewer>div{flex:1;height:100%}.toast{z-index:999999;border-radius:8px;padding:12px 24px;font-size:14px;font-weight:500;animation:.3s toast-in;position:fixed;bottom:24px;left:50%;transform:translate(-50%);box-shadow:0 4px 20px #0000004d}.toast-success{color:#fff;background:#10b981}.toast-error{color:#fff;background:#ef4444}@keyframes toast-in{0%{opacity:0;transform:translate(-50%)translateY(20px)}to{opacity:1;transform:translate(-50%)translateY(0)}}@media (max-width:768px){.header-controls{gap:8px;z-index:99999!important;flex-direction:column!important;position:fixed!important;top:auto!important;bottom:130px!important;right:16px!important}.user-menu-button,.share-button{width:44px!important;height:44px!important;box-shadow:0 4px 12px #0000004d!important}.user-menu-dropdown{min-width:200px;position:absolute!important;top:auto!important;bottom:0!important;right:52px!important}.user-menu-item,.user-menu-logout{-webkit-tap-highlight-color:transparent;touch-action:manipulation!important;cursor:pointer!important;min-height:48px!important}[class*=composer],[class*=Composer],[class*=input-area]{padding-bottom:env(safe-area-inset-bottom,12px)!important}.auth-card{border-radius:16px;margin:16px;max-width:100%!important;padding:40px 24px!important}.auth-card h1{font-size:28px!important}.auth-card p{font-size:15px!important}.auth-logo{width:60px;height:60px}.auth-button{padding:14px 24px;font-size:16px}.auth-gradient-bg{opacity:.4;width:100%}.welcome-screen{width:90%!important;padding:20px!important;left:50%!important}.welcome-logo{width:60px;height:60px}.welcome-screen h1{font-size:22px!important}.welcome-screen>p{font-size:14px!important}.starter-prompts{flex-direction:column;gap:8px}.starter-prompt{text-align:left;padding:10px 16px;font-size:13px!important}.toast{text-align:center;inset:16px 16px auto;transform:none}@keyframes toast-in{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}.shared-header{text-align:center;flex-direction:column;gap:16px;padding:16px 20px}.shared-header-left{flex-direction:column;gap:12px}.shared-header-left img{width:48px;height:48px}.shared-cta{text-align:center;width:100%}.shared-messages{padding:20px 16px}.app-container{padding-top:0}}@media (max-width:480px){.header-controls{gap:6px;bottom:120px!important;right:12px!important}.user-menu-button,.share-button{width:40px!important;height:40px!important}.user-menu-button svg,.share-button svg{width:16px!important;height:16px!important}.auth-card{padding:32px 20px!important}.auth-card h1{font-size:24px!important}.welcome-screen h1{font-size:20px!important}.starter-prompt{padding:8px 12px;font-size:12px!important}}@media (pointer:coarse){.logout-button,.theme-toggle,.share-button,.user-menu-button{min-width:44px!important;min-height:44px!important}.starter-prompt{align-items:center;min-height:44px;display:flex}.user-menu-logout{min-height:48px}}
