:root{--gradient-violet: #833ab4;--gradient-blue: #007bff;--base-white: #ffffff;--base-black: #1c1d1f;--background-primary: var(--base-white);--background-secondary: #f8f9fa;--background-tertiary: #f0f2f5;--text-primary: var(--base-black);--text-secondary: #6c757d;--text-light: var(--base-white);--text-accent: var(--gradient-violet);--border-color: #e0e2e6;--accent-gradient: linear-gradient(135deg, var(--gradient-violet) 0%, var(--gradient-blue) 100%);--accent-primary: var(--gradient-violet);--accent-secondary: #f3e9ff;--accent-secondary-hover: #e9d4ff;--danger-color: #d93025;--danger-background: #fbe9e7;--danger-border: #ffcdd2;--success-color: #1e8e3e;--success-background: #e6f4ea;--success-border: #ceead6;--font-family-body: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--font-family-brand: "Open Sans", sans-serif;--sidebar-width: 280px;--sidebar-width-collapsed: 80px;--right-sidebar-width: 320px}body{font-family:var(--font-family-body);background-color:var(--background-secondary);margin:0;color:var(--text-primary);height:100vh;height:100dvh;overflow:hidden}#root{height:100%}h1,h2,h3,h4,h5,h6{font-weight:600;color:var(--text-primary);font-family:var(--font-family-brand)}*{scrollbar-width:auto;scrollbar-color:var(--gradient-violet) transparent}::-webkit-scrollbar{width:14px;height:14px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background-color:var(--gradient-violet);border-radius:10px;border:3px solid transparent;background-clip:content-box}::-webkit-scrollbar-thumb:hover{background-color:var(--gradient-blue)}::-webkit-scrollbar-button{display:none;width:0;height:0}.app-container,.loading-container{width:100%;height:100%;display:flex;justify-content:center;align-items:center}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes skeleton-shimmer{to{transform:translate(100%)}}@keyframes slide-down{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}@keyframes slide-up-fade{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes blink{0%,to{opacity:1}50%{opacity:0}}.animating-wipe .markdown-output-wrapper{-webkit-mask-image:linear-gradient(135deg,#000 50%,transparent 50%);mask-image:linear-gradient(135deg,#000 50%,transparent 50%);-webkit-mask-size:250% 250%;mask-size:250% 250%;animation:diagonal-wipe-reveal 1s ease-out forwards}@keyframes diagonal-wipe-reveal{0%{-webkit-mask-position:100% 100%;mask-position:100% 100%}to{-webkit-mask-position:0% 0%;mask-position:0% 0%}}@keyframes typing-bounce{0%,80%,to{transform:translateY(0)}40%{transform:translateY(-4px)}}.spinner{animation:spin 1s linear infinite}.app-loading-spinner{width:48px;height:48px;border:5px solid var(--accent-secondary);border-bottom-color:var(--gradient-violet);border-radius:50%;display:inline-block;box-sizing:border-box;animation:spin 1s linear infinite}.workspace-loader{display:flex;width:100%;height:100%;animation:fadeIn .5s ease-in-out}.skeleton-item{position:relative;overflow:hidden;background-color:#f0f2f5}.skeleton-item:after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;transform:translate(-100%);background:linear-gradient(90deg,transparent,rgba(255,255,255,.5),transparent);animation:skeleton-shimmer 2s infinite}.sidebar-left-skeleton{width:var(--sidebar-width);background-color:var(--background-tertiary)}.sidebar-right-skeleton{width:var(--right-sidebar-width);background-color:var(--background-tertiary)}.main-content-skeleton{flex-grow:1;padding:1rem 2rem;background-color:var(--background-primary);display:flex;flex-direction:column}.main-content-skeleton .skeleton-item{margin-bottom:1.5rem;border-radius:4px}.skeleton-header{height:40px;width:60%;margin-bottom:2.5rem;flex-shrink:0}.skeleton-message-user{height:60px;width:65%;margin-left:auto;flex-shrink:0}.skeleton-message-ai{height:100px;width:75%;flex-shrink:0}.skeleton-input{height:50px;border-radius:25px;margin-top:auto;flex-shrink:0}.skeleton-title{height:2.25rem;width:250px;border-radius:6px}.skeleton-response-loader{display:flex;flex-direction:column;gap:.75rem}.skeleton-response-loader .skeleton-item{height:1rem;border-radius:4px;background-color:#f0f2f5}.session-list-item-skeleton{display:flex;align-items:center;gap:.75rem;padding:.75rem 1rem;margin:.25rem 0;opacity:.7;background-color:var(--background-secondary);border-radius:6px;height:48.5px;box-sizing:border-box;cursor:default}.session-list-item-skeleton .skeleton-avatar,.session-list-item-skeleton .skeleton-text{position:relative;overflow:hidden;background-color:#e0e2e6}.session-list-item-skeleton .skeleton-avatar:after,.session-list-item-skeleton .skeleton-text:after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;transform:translate(-100%);background:linear-gradient(90deg,transparent,rgba(255,255,255,.6),transparent);animation:skeleton-shimmer 1.5s infinite}.login-container{display:flex;justify-content:center;align-items:center;width:100%;height:100%;padding:1rem;box-sizing:border-box}.login-box{background-color:var(--background-primary);padding:2rem 2.5rem 2.5rem;border-radius:12px;box-shadow:0 8px 24px #0000001a;width:100%;max-width:420px;text-align:center;position:relative;overflow:hidden}.login-box:before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:var(--accent-gradient)}.login-box h2{margin-top:1.5rem;margin-bottom:1.5rem;font-family:var(--font-family-brand);font-size:2rem}.input-group{margin-bottom:1rem;text-align:left}.input-group label{display:block;margin-bottom:.5rem;font-weight:600;color:#555}.input-group input,.input-group select,.input-group textarea{width:100%;padding:.75rem;border:1px solid #ccc;border-radius:4px;box-sizing:border-box;font-size:1rem;font-family:inherit;background-color:var(--background-primary);color:var(--text-primary);resize:none}.login-box button[type=submit]{width:100%;padding:.75rem;border:none;border-radius:8px;background:var(--accent-gradient);background-size:200% auto;color:var(--text-light);font-size:1.1rem;font-weight:600;cursor:pointer;transition:all .3s ease-in-out;margin-top:1rem;display:flex;justify-content:center;align-items:center;gap:.5rem}.login-box button[type=submit]:hover:not(:disabled){background-position:right center;transform:translateY(-2px);box-shadow:0 4px 10px #833ab440}.login-box button[type=submit]:disabled{background:var(--gradient-blue);opacity:.6;cursor:not-allowed}.error-message{color:var(--danger-color);background-color:var(--danger-background);border:1px solid var(--danger-border);border-radius:4px;padding:.75rem;margin-top:1rem;font-size:.9rem}.success-message{color:var(--success-color);background-color:var(--success-background);border:1px solid var(--success-border);border-radius:4px;padding:.75rem;margin-top:1rem;font-size:.9rem}.otp-info{font-size:.9rem;color:var(--text-secondary);background-color:var(--accent-secondary);padding:.75rem;border-radius:4px;border:1px solid var(--accent-secondary-hover);margin-bottom:1rem}.back-button,.forgot-password-link button,.form-switch button{background:none;border:none;color:var(--text-accent);cursor:pointer;font-size:.9rem;font-weight:600;font-family:inherit;padding:.25rem;transition:color .2s ease-in-out;text-decoration:none}.back-button:hover,.forgot-password-link button:hover,.form-switch button:hover{color:var(--gradient-blue);text-decoration:underline}.back-button{margin-top:1rem;width:100%;text-align:center}.forgot-password-link{text-align:right;margin-top:.75rem;margin-bottom:1rem}.form-switch{margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid var(--border-color);font-size:.9rem;color:var(--text-secondary);display:flex;justify-content:center;align-items:center;gap:.5rem}.otp-input-container{display:flex;justify-content:space-between;gap:8px;margin-top:.5rem}.otp-input-box{width:50px;height:50px;text-align:center;font-size:1.5rem;font-weight:600;border:1px solid #ccc;border-radius:6px;transition:border-color .2s,box-shadow .2s}.otp-input-box:focus{border-color:var(--gradient-violet);outline:none;box-shadow:0 0 0 2px var(--accent-secondary)}.main-app-container{width:100%;height:100%;display:flex;background-color:var(--background-primary)}.left-sidebar{flex-shrink:0;display:flex;flex-direction:column;height:100%;background-color:var(--background-tertiary);position:relative;z-index:10}.error-container{display:flex;flex-direction:column;gap:1rem;text-align:center;color:var(--danger-color);font-weight:500;padding:2rem}.left-sidebar{width:var(--sidebar-width-collapsed);background-color:var(--background-tertiary);border-right:1px solid var(--border-color);display:flex;flex-direction:column;z-index:10;overflow:hidden;position:relative;transition:width .3s cubic-bezier(.4,0,.2,1);cursor:pointer}.left-sidebar.menu-is-open{overflow:visible}.left-sidebar:hover:not(.is-expanded){background-color:#f1f3f5}.left-sidebar.is-expanded,.left-sidebar.is-mobile-open{width:var(--sidebar-width);cursor:default}.left-sidebar.is-expanded:hover{background-color:var(--background-tertiary)}.button-text,.session-content,.sidebar-subheading{opacity:0;visibility:hidden;transform:translate(-10px);transition:opacity .2s ease-out,transform .2s ease-out,visibility 0s .2s;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.left-sidebar:not(.is-expanded):not(.is-mobile-open) .button-text,.left-sidebar:not(.is-expanded):not(.is-mobile-open) .session-content,.left-sidebar:not(.is-expanded):not(.is-mobile-open) .session-actions{width:0;padding:0;margin:0;flex-grow:0;transition:opacity .2s ease-out,transform .2s ease-out,visibility 0s .2s,width .3s cubic-bezier(.4,0,.2,1)}.left-sidebar:not(.is-expanded):not(.is-mobile-open) .session-content,.left-sidebar:not(.is-expanded):not(.is-mobile-open) .workspace-name,.left-sidebar:not(.is-expanded):not(.is-mobile-open) .user-name-text{flex-grow:0}.left-sidebar.is-expanded .button-text,.left-sidebar.is-mobile-open .button-text,.left-sidebar.is-expanded .session-content,.left-sidebar.is-mobile-open .session-content,.left-sidebar.is-expanded .sidebar-subheading,.left-sidebar.is-mobile-open .sidebar-subheading{opacity:1;visibility:visible;transform:translate(0);transition:opacity .2s ease-in .1s,transform .2s ease-in .1s,visibility 0s;width:auto}.sidebar-header,.sidebar-main,.sidebar-bottom{display:flex;flex-direction:column;box-sizing:border-box}.left-sidebar:not(.is-expanded):not(.is-mobile-open) .sidebar-header,.left-sidebar:not(.is-expanded):not(.is-mobile-open) .sidebar-main,.left-sidebar:not(.is-expanded):not(.is-mobile-open) .sidebar-bottom{padding:1rem 0;align-items:center}.left-sidebar.is-expanded .sidebar-header,.left-sidebar.is-mobile-open .sidebar-header,.left-sidebar.is-expanded .sidebar-main,.left-sidebar.is-mobile-open .sidebar-main,.left-sidebar.is-expanded .sidebar-bottom,.left-sidebar.is-mobile-open .sidebar-bottom{padding:1rem;align-items:stretch}.sidebar-header{height:73px;border-bottom:1px solid var(--border-color);flex-shrink:0;justify-content:center}.left-sidebar.is-expanded .sidebar-header,.left-sidebar.is-mobile-open .sidebar-header{justify-content:flex-start}.sidebar-main{flex-grow:1;min-height:0;gap:.5rem}.sidebar-actions-group{display:flex;flex-direction:column;gap:.5rem;align-items:center}.left-sidebar.is-expanded .sidebar-actions-group,.left-sidebar.is-mobile-open .sidebar-actions-group{align-items:stretch}.history-section{flex-grow:1;min-height:0;display:flex;flex-direction:column}.sidebar-subheading{flex-shrink:0;font-family:var(--font-family-body);font-size:.75rem;font-weight:700;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.05em;margin:1.5rem 0 .5rem;padding:0 .75rem;box-sizing:border-box}.sidebar-bottom{margin-top:auto;padding-top:1rem;border-top:1px solid var(--border-color);gap:.5rem}.sidebar-pill-button{display:flex;align-items:center;justify-content:center;width:48px;height:48px;padding:0;border-radius:8px;border:1px solid transparent;background-color:transparent;cursor:pointer;transition:all .2s;font:inherit;font-size:.9rem;font-weight:600;color:var(--text-secondary);overflow:hidden;box-sizing:border-box;text-transform:none}.sidebar-pill-button:hover:not(:disabled){background-color:var(--background-secondary)}.sidebar-pill-button:disabled{opacity:.6;cursor:not-allowed}.left-sidebar.is-expanded .sidebar-pill-button,.left-sidebar.is-mobile-open .sidebar-pill-button{width:100%;height:48px;justify-content:flex-start;border:1px solid var(--border-color);background-color:var(--background-secondary);padding:8px;gap:12px}.left-sidebar.is-expanded .sidebar-pill-button:hover:not(:disabled),.left-sidebar.is-mobile-open .sidebar-pill-button:hover:not(:disabled){background-color:var(--background-tertiary);border-color:#cdd2d8}.sidebar-pill-button .icon-container{width:32px;height:32px;flex-shrink:0;border-radius:6px;display:flex;align-items:center;justify-content:center;transition:background-color .2s,transform .2s}.sidebar-pill-button .icon-container svg{width:20px;height:20px;color:var(--text-secondary)}.workspace-button{padding:0!important;justify-content:space-between}.left-sidebar.is-expanded .workspace-button,.left-sidebar.is-mobile-open .workspace-button{gap:0}.left-sidebar.is-expanded .workspace-button:hover:not(:disabled),.left-sidebar.is-mobile-open .workspace-button:hover:not(:disabled){background-color:var(--background-secondary)}.workspace-button .workspace-main-action,.workspace-button .workspace-toggle-action{display:flex;align-items:center;background:none;border:none;cursor:pointer;height:100%;padding:0;transition:background-color .2s;border-radius:8px;font:inherit;color:inherit}.workspace-button .workspace-main-action{flex-grow:1;min-width:0;justify-content:center}.left-sidebar.is-expanded .workspace-button .workspace-main-action,.left-sidebar.is-mobile-open .workspace-button .workspace-main-action{padding:8px}.left-sidebar.is-expanded .workspace-button .workspace-main-action:hover:not(:disabled),.left-sidebar.is-mobile-open .workspace-button .workspace-main-action:hover:not(:disabled){background-color:var(--background-tertiary)}.workspace-button .workspace-main-action:disabled{cursor:not-allowed}.workspace-button .workspace-toggle-action{flex-shrink:0;padding:8px 12px;color:var(--text-secondary)}.workspace-button .workspace-toggle-action:hover{background-color:var(--background-tertiary);color:var(--text-accent)}.workspace-button .workspace-toggle-action svg{width:20px;height:20px}.workspace-divider{width:1px;height:24px;background-color:var(--border-color);flex-shrink:0}.workspace-button .workspace-name{flex-grow:1;text-align:left;font-weight:600}.workspace-button .workspace-main-action svg{flex-shrink:0;color:var(--text-secondary);transition:transform .2s}.left-sidebar:not(.is-expanded):not(.is-mobile-open) .workspace-button{justify-content:center}.left-sidebar:not(.is-expanded):not(.is-mobile-open) .workspace-main-action{width:100%;height:100%;padding:0;justify-content:center}.left-sidebar:not(.is-expanded):not(.is-mobile-open) .workspace-divider,.left-sidebar:not(.is-expanded):not(.is-mobile-open) .workspace-toggle-action{display:none}.chat-history{overflow-y:auto;position:relative;-ms-overflow-style:none;scrollbar-width:none;flex-grow:1}.chat-history::-webkit-scrollbar{display:none}.chat-history ul{list-style:none;padding:0;margin:0}.left-sidebar:not(.is-expanded):not(.is-mobile-open) .chat-history ul{display:flex;flex-direction:column;align-items:center}.chat-history li{display:flex;align-items:center;border-radius:8px;margin:.25rem 0;cursor:pointer;position:relative;transition:all .2s;height:48.5px;box-sizing:border-box}.left-sidebar:not(.is-expanded):not(.is-mobile-open) .chat-history li{width:48px;height:48px;padding:0;justify-content:center}.left-sidebar.is-expanded .chat-history li,.left-sidebar.is-mobile-open .chat-history li{width:100%;justify-content:flex-start;gap:1rem;padding:.75rem}.chat-history li:hover{background-color:var(--background-secondary)}.chat-history li.has-options-open{z-index:2}.chat-history li.active{background-color:var(--accent-secondary);font-weight:600}.chat-history li.active .session-title{color:var(--text-accent)}.session-avatar{width:32px;height:32px;border-radius:6px;background-color:#e9ecef;color:var(--text-secondary);display:flex;align-items:center;justify-content:center;font-weight:700;flex-shrink:0;text-transform:uppercase}.chat-history li.active .session-avatar{background:var(--accent-gradient);color:var(--text-light)}.session-content{flex-grow:1;min-width:0}.session-title{font-weight:500;font-size:.9rem}.session-actions{position:relative;flex-shrink:0;opacity:0;transition:opacity .2s;margin-left:auto}.left-sidebar.is-expanded .chat-history li:hover .session-actions,.left-sidebar.is-mobile-open .chat-history li:hover .session-actions,.left-sidebar.is-expanded .chat-history li.has-options-open .session-actions,.left-sidebar.is-mobile-open .chat-history li.has-options-open .session-actions{opacity:1}.options-menu-button{background:none;border:none;padding:.5rem;cursor:pointer;border-radius:50%;color:var(--text-secondary);transition:color .2s}.options-menu-button:hover{color:var(--text-accent)}.options-menu-dropdown{position:absolute;right:0;top:100%;margin-top:.25rem;background-color:var(--background-primary);border:1px solid var(--border-color);box-shadow:0 4px 12px #0000001a;border-radius:8px;padding:.5rem;z-index:101;width:180px;display:flex;flex-direction:column;gap:.25rem}.options-menu-dropdown button{display:flex;align-items:center;gap:.75rem;width:100%;padding:.75rem;border:none;background:none;border-radius:6px;cursor:pointer;text-align:left;font-size:.9rem;font-weight:500}.options-menu-dropdown button:hover{background-color:var(--background-secondary)}.options-menu-dropdown button.delete-option{color:var(--danger-color)}.options-menu-dropdown button.delete-option:hover{background-color:var(--danger-background)}.options-menu-dropdown svg{width:16px;height:16px}.session-item-editing{display:flex;align-items:center;gap:.5rem;width:100%}.session-edit-input{flex-grow:1;border:1px solid var(--text-accent);border-radius:4px;padding:.25rem .5rem;font-size:.9rem;box-shadow:0 0 0 2px var(--accent-secondary);outline:none}.session-edit-actions{display:flex;gap:.25rem}.edit-action-button{display:flex;align-items:center;justify-content:center;background-color:transparent;border:1px solid var(--border-color);border-radius:50%;width:28px;height:28px;cursor:pointer;transition:all .2s}.edit-action-button.save:hover{background-color:var(--success-background);border-color:var(--success-color);color:var(--success-color)}.edit-action-button.cancel:hover{background-color:var(--danger-background);border-color:var(--danger-color);color:var(--danger-color)}.chat-history:before,.chat-history:after{content:"";position:absolute;left:0;right:0;height:40px;z-index:2;pointer-events:none;transition:opacity .3s;opacity:0}.chat-history:before{top:0;background:linear-gradient(to bottom,var(--background-tertiary) 20%,transparent)}.chat-history:after{bottom:0;background:linear-gradient(to top,var(--background-tertiary) 20%,transparent)}.chat-history.fade-top:before{opacity:1}.chat-history.fade-bottom:after{opacity:1}.sidebar-user-menu{position:relative;width:100%;display:flex;justify-content:center}.left-sidebar:not(.is-expanded):not(.is-mobile-open) .sidebar-user-menu{width:auto}.left-sidebar.is-expanded .user-menu-button,.left-sidebar.is-mobile-open .user-menu-button{justify-content:space-between!important}.user-menu-button .user-name-text{flex-grow:1;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-menu-button .user-menu-dots svg{color:var(--text-secondary)}.user-menu-popover{position:absolute;bottom:calc(100% + 8px);left:0;right:0;background-color:var(--background-primary);border:1px solid var(--border-color);box-shadow:0 -4px 12px #0000001a;border-radius:8px;padding:.5rem;z-index:20;display:flex;flex-direction:column;gap:.25rem;animation:fadeIn .2s ease-out}.left-sidebar:not(.is-expanded):not(.is-mobile-open) .user-menu-popover{left:calc(100% + 8px);right:auto;bottom:0;transform:none;width:220px;margin-left:0;box-shadow:0 4px 12px #00000026}.user-menu-popover button{display:flex;align-items:center;gap:.75rem;width:100%;padding:.75rem;border:none;background:none;border-radius:6px;cursor:pointer;text-align:left;font-size:.9rem;font-weight:500}.user-menu-popover button:hover{background-color:var(--background-secondary)}.user-menu-popover button svg{width:18px;height:18px;flex-shrink:0}.left-sidebar:not(.is-expanded):not(.is-mobile-open) .sidebar-pill-button .icon-container{background-color:transparent}.left-sidebar:not(.is-expanded):not(.is-mobile-open) .workspace-main-action{width:100%;height:100%;border-radius:8px}.left-sidebar:not(.is-expanded):not(.is-mobile-open) .workspace-button:hover .workspace-main-action:not(:disabled){background-color:var(--background-secondary)}.left-sidebar.is-expanded .workspace-button .workspace-main-action,.left-sidebar.is-mobile-open .workspace-button .workspace-main-action,.left-sidebar.is-expanded .user-menu-button,.left-sidebar.is-mobile-open .user-menu-button{justify-content:flex-start;gap:12px}.workspace-button .icon-container{position:relative}.workspace-button .notification-indicator{position:absolute;top:0;right:0;width:10px;height:10px;background-color:var(--danger-color);border-radius:50%;border:2px solid var(--background-tertiary);pointer-events:none}.coming-soon-button{position:relative;overflow:visible}.coming-soon-button:hover{background-color:transparent!important}.left-sidebar.is-expanded .coming-soon-button:hover,.left-sidebar.is-mobile-open .coming-soon-button:hover{background-color:var(--background-secondary)!important;border-color:var(--border-color)!important}.sidebar-pill-button.coming-soon-button:after{content:"Coming soon";position:absolute;right:1rem;top:50%;transform:translateY(-50%);font-size:.7rem;font-weight:700;color:var(--text-accent);background-color:var(--accent-secondary);padding:2px 6px;border-radius:4px;opacity:0;transition:opacity .2s ease-in .1s}.left-sidebar.is-expanded .coming-soon-button:after,.left-sidebar.is-mobile-open .coming-soon-button:after{opacity:1}@keyframes slideDownAndFade{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.chat-view-container{flex-grow:1;display:flex;flex-direction:column;height:100%;min-width:0}.chat-view,.new-chat-initializer{display:flex;flex-direction:column;flex-grow:1;min-height:0;width:100%;position:relative}.chat-view-content{flex-grow:1;min-height:0;display:flex;flex-direction:column}.chat-actions-menu-container{position:absolute;top:1rem;right:2rem;z-index:10}.messages-list{flex:1 1 auto;min-height:0;overflow-y:auto;padding:2rem 2rem 0;display:flex;flex-direction:column;gap:0}.conversation-turn-wrapper{background-color:transparent;width:100%}.conversation-turn-wrapper:last-child .conversation-turn{border-bottom:none}.conversation-turn{width:100%;max-width:850px;margin:0 auto;display:flex;flex-direction:column;gap:1.5rem;padding:2rem 0;border-bottom:1px solid var(--border-color)}.user-prompt-container,.ai-response-container{display:flex;gap:1rem;align-items:flex-start;max-width:90%}.user-prompt-container,.ai-response-container{align-self:flex-start}.prompt-content .markdown-content>*:first-child,.response-content .markdown-content>*:first-child{margin-top:0}.message-avatar{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:600;flex-shrink:0;text-transform:uppercase}.current-user .user-avatar{background:var(--accent-gradient);color:var(--text-light)}.other-user .user-avatar{background-color:#6c757d;color:#fff}.ai-avatar{background-color:var(--accent-secondary);color:var(--text-accent)}.ai-avatar svg{width:20px;height:20px}.message-avatar-spacer{width:32px;flex-shrink:0}.sender-label{font-size:.9rem;font-weight:700;color:var(--text-primary);margin-bottom:.5rem}.user-prompt-container .sender-label{display:flex;align-items:baseline;gap:.5rem;white-space:nowrap}.message-timestamp{font-weight:400;font-size:.8rem;color:var(--text-secondary);padding-left:.5rem;border-left:1px solid var(--border-color);line-height:1}.prompt-content,.response-content{flex-grow:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start}.prompt-bubble{padding:.75rem 1rem;position:relative;word-break:break-word;border-radius:12px 12px 12px 2px}.current-user .prompt-bubble{background:var(--accent-gradient);color:var(--text-light)}.current-user .prompt-bubble a{color:#e0f2ff;font-weight:600}.other-user .prompt-bubble{background-color:#e9ecef;color:var(--text-primary);border:1px solid var(--border-color)}.turn-footer{display:flex;align-items:center;margin-top:1rem;width:100%}.turn-footer-bar{display:flex;justify-content:space-between;align-items:center;background-color:transparent;padding:0;border-radius:8px;width:100%}@keyframes highlight-fade{0%{background-color:var(--accent-secondary-hover)}to{background-color:transparent}}.user-prompt-container.highlighted-message,.ai-response-container.highlighted-message{animation:highlight-fade 2.5s ease-out;border-radius:8px;padding:.5rem;margin:-.5rem}.turn-footer-actions{display:flex;align-items:center;gap:.25rem;background-color:var(--background-secondary);padding:.25rem;border-radius:6px}.turn-footer-actions .action-button,.edit-prompt-button{background:none;border:1px solid transparent;border-radius:6px;padding:.5rem;cursor:pointer;color:var(--text-secondary);display:flex;align-items:center;justify-content:center;transition:all .2s}.turn-footer-actions .action-button:hover:not(:disabled),.edit-prompt-button:hover:not(:disabled){background-color:var(--background-tertiary);color:var(--text-primary)}.turn-footer-actions .action-button:disabled,.edit-prompt-button:disabled{opacity:.5;cursor:not-allowed}.edit-prompt-button{opacity:0;transition:opacity .2s;align-self:center}.user-prompt-container.current-user:hover .edit-prompt-button{opacity:1}.files-used-button{display:flex;align-items:center;gap:.5rem;background-color:transparent;border:1px solid transparent;border-radius:6px;padding:.5rem .75rem;font-size:.85rem;font-weight:600;color:var(--text-secondary);cursor:pointer;transition:all .2s}.files-used-button:hover{background-color:var(--background-secondary);border-color:var(--border-color);color:var(--text-primary)}.files-used-button svg{width:16px;height:16px}.edit-prompt-form{display:flex;flex-direction:column;gap:.75rem;width:100%}.edit-prompt-form textarea{width:100%;min-height:80px;resize:vertical;padding:.75rem;border-radius:6px;border:1px solid var(--text-accent);outline:none;box-shadow:0 0 0 2px var(--accent-secondary);font-family:inherit;font-size:1rem;line-height:1.6}.edit-prompt-actions{display:flex;justify-content:flex-end;gap:.75rem}.floating-input-container{position:absolute;bottom:1.5rem;left:2rem;right:2rem;max-width:880px;margin:0 auto;z-index:10}.chat-error-message{padding:0 0 .5rem;text-align:center;font-size:.9rem;color:var(--danger-color)}.message-input-form{padding:1rem;border-top:none;background-color:var(--background-primary);flex-shrink:0;border-radius:12px;border:1px solid var(--border-color);box-shadow:0 4px 12px #00000014}.input-wrapper{position:relative;display:flex;align-items:center;border:1px solid var(--border-color);border-radius:12px;padding:.5rem;background-color:var(--background-primary);transition:border-color .2s;gap:.5rem}.input-wrapper:focus-within{border-color:var(--text-accent)}.input-wrapper textarea{flex-grow:1;border:none;outline:none;resize:none;padding:.5rem 1rem;font-family:inherit;font-size:1rem;background:transparent;max-height:150px}.input-wrapper textarea:disabled{background-color:#f9f9f9}.input-wrapper button[type=submit]{background:var(--accent-gradient);background-size:200% auto;border:none;border-radius:8px;width:40px;height:40px;display:flex;justify-content:center;align-items:center;cursor:pointer;color:var(--text-light);transition:background-position .3s ease-in-out,transform .2s,background-color .2s;flex-shrink:0}.input-wrapper button[type=submit]:hover:not(:disabled){background-position:right center;transform:scale(1.05)}.input-wrapper button[type=submit]:disabled{background:var(--gradient-blue);opacity:.6;cursor:not-allowed}.input-wrapper button[type=submit].stop-button{background:var(--danger-color)}.input-wrapper button[type=submit].stop-button:hover{background:#c62828;transform:scale(1.05)}.model-selector{position:relative;flex-shrink:0}.model-selector-button{display:flex;align-items:center;gap:.5rem;background-color:#fff;border:1px solid var(--border-color);padding:.5rem .75rem;border-radius:8px;cursor:pointer;font-weight:500;font-size:.9rem;transition:all .2s;height:40px;box-sizing:border-box;width:auto}.model-selector-button:hover:not(:disabled){background-color:var(--background-secondary);border-color:var(--text-accent)}.model-selector-button:disabled{opacity:.7;cursor:not-allowed}.model-selector-button svg{width:20px;height:20px}.model-selector-button svg:last-child{margin-left:auto;color:var(--text-secondary);transition:transform .2s;width:16px;height:16px}.model-selector-button[aria-expanded=true] svg:last-child{transform:rotate(180deg)}.model-selector-dropdown{position:absolute;bottom:calc(100% + 8px);left:0;background-color:var(--background-primary);border-radius:8px;box-shadow:0 4px 12px #00000026;border:1px solid var(--border-color);list-style:none;padding:.5rem;margin:0;width:250px;z-index:30;display:flex;flex-direction:column;gap:.25rem}.model-selector-option{display:flex;align-items:center;gap:.75rem;padding:.75rem;border-radius:6px;cursor:pointer;font-size:.9rem}.model-selector-option:hover{background-color:var(--background-secondary)}.model-selector-option.selected{background-color:var(--accent-secondary);font-weight:600;color:var(--text-accent)}.model-selector-option svg{width:20px;height:20px}.model-selector-text{display:flex;align-items:center;gap:.4rem;font-family:var(--font-family-body)}.model-version{font-weight:600}.model-separator{color:var(--border-color);font-weight:300;padding-bottom:2px}.model-size{font-weight:400;color:var(--text-secondary)}.active-files-bar-container,.mobile-context-container{margin-bottom:.75rem}.active-files-bar{position:relative;display:flex;align-items:center;gap:.75rem;padding:.5rem;background-color:var(--background-tertiary);border:1px solid var(--border-color);border-radius:8px;min-height:46px;box-sizing:border-box;width:100%}.active-files-bar.empty{border-style:dashed;color:var(--text-secondary);cursor:pointer;justify-content:center;background-color:transparent;font-weight:500}.active-files-bar.empty:hover:not(:disabled){color:var(--text-accent);border-color:var(--text-accent);background-color:var(--accent-secondary)}.bar-title{font-size:.9rem;font-weight:500;color:var(--text-secondary);margin-left:.25rem;white-space:nowrap}.pills-wrapper{position:relative;flex-grow:1;min-width:0;overflow:hidden}.files-pills-container{display:flex;gap:.5rem;flex-wrap:nowrap;overflow-x:auto;padding-bottom:1rem;margin-bottom:-1rem;scrollbar-width:none;-ms-overflow-style:none}.files-pills-container::-webkit-scrollbar{display:none}.scroll-indicator{position:absolute;top:0;bottom:0;width:40px;display:flex;align-items:center;justify-content:center;pointer-events:none;transition:opacity .2s ease-in-out;opacity:0;z-index:2}.scroll-indicator.visible{opacity:1}.scroll-indicator.left{left:0;background:linear-gradient(to right,var(--background-tertiary) 20%,transparent)}.scroll-indicator.right{right:0;background:linear-gradient(to left,var(--background-tertiary) 20%,transparent)}.scroll-indicator svg{color:var(--base-white);filter:drop-shadow(0 1px 1px rgba(0,0,0,.4))}.file-pill{display:flex;align-items:center;gap:0;background-color:#e9ecef;padding:0;border-radius:16px;font-size:.85rem;color:var(--text-secondary);border:1px solid var(--border-color);transition:all .2s ease-in-out;font-family:var(--font-family-body);max-width:200px;overflow:hidden;flex-shrink:0}.file-pill:hover:not(.active){border-color:var(--text-accent)}.file-pill-clickable-area{display:flex;align-items:center;padding:.4rem .8rem;cursor:pointer;flex-grow:1;min-width:0}.file-pill-clickable-area span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-pill.active{background:var(--accent-gradient);color:var(--text-light);border-color:transparent}.file-pill.active .remove-pill-button{color:var(--text-light);border-left-color:#ffffff4d}.remove-pill-button{background:transparent;border:none;height:100%;padding:0 .5rem;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--text-secondary);border-left:1px solid var(--border-color);transition:color .2s,border-color .2s}.remove-pill-button:hover:not(:disabled){color:var(--danger-color)}.remove-pill-button:disabled{cursor:not-allowed;opacity:.7}.add-files-button{background:none;border:1px solid var(--border-color);border-radius:50%;width:32px;height:32px;display:flex;justify-content:center;align-items:center;cursor:pointer;color:var(--text-secondary);transition:all .2s;flex-shrink:0}.add-files-button:hover:not(:disabled){background-color:var(--accent-secondary);color:var(--text-accent);border-color:var(--text-accent)}.add-files-button:disabled{cursor:not-allowed;opacity:.7}.new-chat-flow-container{flex-grow:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1rem 2rem 3rem;gap:1.5rem;overflow-y:auto;position:relative}.new-chat-welcome-area{text-align:center;max-width:600px}.new-chat-welcome-area h1{font-family:var(--font-family-brand);font-size:2.5rem;margin-bottom:.5rem}.new-chat-guidelines{font-size:1.1rem;color:var(--text-secondary);line-height:1.6;margin-top:0}.new-chat-card{background-color:var(--background-primary);border:1px solid var(--border-color);border-radius:12px;box-shadow:0 4px 12px #0000000d;width:100%;max-width:700px;overflow:hidden;transition:opacity .3s ease-in-out,transform .3s ease-in-out}.file-selection-card{display:flex;flex-direction:column;max-height:75vh}.new-chat-card.shrinking{opacity:0;transform:scale(.95)}.new-chat-card.appearing{opacity:1;transform:scale(1)}.new-chat-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.5rem;border-bottom:1px solid var(--border-color);flex-shrink:0}.new-chat-header .header-title{display:flex;align-items:center;gap:.75rem}.new-chat-header .header-icon-wrapper{display:flex;align-items:center;justify-content:center}.new-chat-header h3{margin:0;font-size:1.1rem}.new-chat-footer{padding:1rem 1.5rem;border-top:1px solid var(--border-color);display:flex;justify-content:space-between;align-items:center;background-color:#fcfdff;flex-shrink:0}.new-chat-footer.prompt-footer{justify-content:flex-end}.selection-summary{font-size:.9rem;color:var(--text-secondary)}.selection-summary strong{color:var(--text-primary);font-size:1rem}.new-chat-footer button{font-size:1rem;padding:.75rem 1.5rem;gap:.5rem}.prompt-composer-card{position:relative;overflow:visible}.prompt-composer-card .new-chat-prompt-main{padding:1.5rem;flex-grow:1}.prompt-composer-form{display:flex;flex-direction:column;gap:1rem}.prompt-composer-form textarea{width:100%;min-height:120px;resize:vertical;padding:1rem;border-radius:8px;border:1px solid var(--border-color);font-family:inherit;font-size:1.1rem;line-height:1.6;outline:none;transition:border-color .2s,box-shadow .2s;box-sizing:border-box}.prompt-composer-form textarea:focus{border-color:var(--text-accent);box-shadow:0 0 0 3px var(--accent-secondary)}.prompt-composer-header{background-color:var(--background-secondary)}.prompt-composer-header .selected-files-summary{display:flex;align-items:center;gap:.75rem;background:none;border:none;cursor:pointer;padding:.5rem;margin:-.5rem;border-radius:6px;transition:background-color .2s}.prompt-composer-header .selected-files-summary:hover{background-color:var(--background-tertiary)}.prompt-composer-header .selected-files-summary .chevron-icon{color:var(--text-secondary);transition:transform .2s ease-in-out}.prompt-composer-header .selected-files-summary .chevron-icon.expanded{transform:rotate(180deg)}.summary-icon-stack{position:relative;width:50px;height:32px}.summary-icon{position:absolute;top:0;border:2px solid var(--background-primary);border-radius:8px;box-shadow:0 1px 2px #0000001a}.summary-text{font-weight:600}.prompt-header-container{position:relative;z-index:16}.selected-files-list-details{position:absolute;top:100%;left:0;right:0;z-index:15;max-height:150px;overflow-y:auto;padding:1rem 1.5rem;border-bottom:1px solid var(--border-color);background-color:var(--background-secondary);box-shadow:0 4px 8px #00000014;animation:slideDownAndFade .3s ease-out}.selected-files-list-details ul{list-style:none;padding:0;margin:0}.selected-files-list-details li{display:flex;align-items:center;gap:.75rem;padding:.5rem 0;font-size:.9rem}.selected-files-list-details .file-item-icon{flex-shrink:0}.selected-files-list-details .file-item-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-selection-controls{display:flex;gap:1rem;padding:1rem 1.5rem;border-bottom:1px solid var(--border-color);flex-shrink:0}.search-bar-files{flex-grow:1;display:flex;align-items:center;gap:.75rem;background-color:var(--background-secondary);border-radius:8px;padding:0 1rem;border:1px solid var(--border-color)}.search-bar-files:focus-within{border-color:var(--text-accent);box-shadow:0 0 0 2px var(--accent-secondary)}.search-bar-files input{width:100%;border:none;background:transparent;outline:none;padding:.75rem 0;font-size:1rem}.filter-container{position:relative}.filter-button{display:flex;align-items:center;gap:.5rem;background-color:var(--background-secondary);border:1px solid var(--border-color);padding:.5rem 1rem;border-radius:8px;cursor:pointer;font-weight:600;font-size:.9rem;color:var(--text-secondary);transition:all .2s;white-space:nowrap;height:100%}.filter-button:hover,.filter-button.active{background-color:var(--accent-secondary);border-color:var(--text-accent);color:var(--text-accent)}.filter-count{background-color:var(--text-accent);color:var(--text-light);border-radius:50%;font-size:.75rem;width:20px;height:20px;display:flex;align-items:center;justify-content:center;line-height:1}.filters-panel{position:absolute;top:calc(100% + 8px);right:0;width:280px;background-color:var(--background-primary);border:1px solid var(--border-color);border-radius:8px;box-shadow:0 4px 12px #0000001a;z-index:20;padding:1rem;animation:fadeIn .2s ease-out}.filters-panel h4{margin:0 0 .75rem;font-size:.9rem;color:var(--text-secondary)}.filter-options{display:flex;flex-wrap:wrap;gap:.75rem}.filter-checkbox-group{display:flex;align-items:center;gap:.5rem;background-color:var(--background-secondary);padding:.5rem 1rem;border-radius:16px;border:1px solid var(--border-color);cursor:pointer;font-size:.9rem}.filter-checkbox-group input{cursor:pointer}.new-chat-file-list{flex-grow:1;min-height:0;height:350px;background-color:var(--background-secondary);display:flex;overflow:hidden;position:relative}.collection-card-grid-container,.focused-collection-container{width:100%;flex-shrink:0;height:100%;overflow-y:auto;transition:transform .4s cubic-bezier(.4,0,.2,1)}.collection-card-grid-container{padding:1.5rem;box-sizing:border-box}.new-chat-file-list.is-focused .collection-card-grid-container,.new-chat-file-list.is-focused .focused-collection-container{transform:translate(-100%)}.focused-collection-header{display:flex;align-items:center;padding:1rem 1.5rem;border-bottom:1px solid var(--border-color);background-color:var(--background-primary);flex-shrink:0}.focused-collection-title{margin:0;font-size:1.1rem;flex-grow:1;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 1rem}.focused-files-list{list-style:none;padding:1rem;margin:0;flex-grow:1;overflow-y:auto}.focused-files-list li{display:flex;align-items:center;gap:.75rem;padding:.75rem;border-radius:6px;cursor:pointer;border-bottom:1px solid var(--border-color)}.focused-files-list li:last-child{border-bottom:none}.focused-files-list .focused-list-header{font-weight:600;position:sticky;top:-1rem;background-color:var(--background-secondary);z-index:2;margin:-1rem -1rem .5rem;padding:1rem;border-bottom:1px solid var(--border-color)}.collection-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1rem}.collection-card{border:1px solid var(--border-color);border-radius:8px;background-color:var(--background-primary);transition:all .3s ease-in-out;overflow:hidden}.collection-card:hover{border-color:var(--text-accent);box-shadow:0 4px 12px #00000014}.collection-card-header{display:flex;align-items:center;gap:1rem;padding:1rem;cursor:pointer}.collection-card-chevron{color:var(--text-secondary)}.generating-status-indicator{display:flex;align-items:center;gap:.5rem;font-weight:500;color:var(--text-accent)}.generating-status-indicator .typing-cursor{animation:blink 1s step-end infinite}.mobile-context-container{position:relative;width:100%}.mobile-context-button{width:100%;display:flex;justify-content:space-between;align-items:center;padding:.75rem 1rem;background-color:var(--background-tertiary);border:1px solid var(--border-color);border-radius:8px;font-size:.9rem;font-weight:500;cursor:pointer;color:var(--text-secondary)}.mobile-context-button .chevron-icon{transition:transform .2s ease-in-out}.mobile-context-button .chevron-icon.expanded{transform:rotate(180deg)}.mobile-context-popover{position:absolute;bottom:calc(100% + 8px);left:0;right:0;background-color:var(--background-primary);border:1px solid var(--border-color);border-radius:8px;box-shadow:0 -4px 12px #0000001a;z-index:20;max-height:40vh;display:flex;flex-direction:column;animation:slide-up-fade .3s ease-out}.context-popover-header{display:flex;justify-content:space-between;align-items:center;padding:1rem;border-bottom:1px solid var(--border-color);flex-shrink:0}.context-popover-header strong{font-weight:600}.context-file-list{list-style:none;padding:.5rem;margin:0;overflow-y:auto;flex-grow:1}.context-file-list li{padding:.25rem}.context-file-list li label{display:flex;align-items:center;gap:.75rem;padding:.5rem;border-radius:6px;cursor:pointer;font-size:.9rem;font-weight:500}.context-file-list li label:hover{background-color:var(--background-secondary)}.context-file-list li input[type=checkbox]{width:18px;height:18px;accent-color:var(--text-accent);cursor:pointer;flex-shrink:0}.context-file-list .file-item-icon{flex-shrink:0}.context-file-list .file-item-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.context-popover-footer{padding:1rem;border-top:1px solid var(--border-color);flex-shrink:0}.chat-view-mobile-header{width:100%;display:grid;grid-template-columns:auto 1fr auto;gap:.5rem;align-items:center;padding:.5rem .75rem;border-bottom:1px solid var(--border-color);flex-shrink:0;background-color:var(--background-primary)}.mobile-chat-title{font-size:1.1rem;font-weight:600;text-align:center;margin:0;padding:0rem;min-width:0}.mobile-chat-title span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-view-mobile-header .sidebar-toggle-button,.chat-view-mobile-header .share-button-mobile,.chat-view-mobile-header .pin-button-mobile{background:none;border:none;padding:.5rem;cursor:pointer;color:var(--text-secondary);border-radius:50%;transition:all .2s}.chat-view-mobile-header .sidebar-toggle-button:hover,.chat-view-mobile-header .share-button-mobile:hover,.chat-view-mobile-header .pin-button-mobile:hover{background-color:var(--background-secondary);color:var(--text-primary)}.chat-view-mobile-header .pin-button-mobile{color:var(--text-accent)}.chat-view-mobile-header .pin-button-mobile:hover{background-color:var(--accent-secondary)}.chat-view-mobile-header .sidebar-toggle-button svg,.chat-view-mobile-header .share-button-mobile svg,.chat-view-mobile-header .pin-button-mobile svg{width:24px;height:24px}.mobile-header-actions{display:flex;align-items:center;gap:.5rem;justify-self:end}.pin-button-wrapper{width:40px;height:40px;display:flex;align-items:center;justify-content:center}.new-chat-mobile-header{position:absolute;top:0;left:0;right:0;width:100%;justify-content:flex-start;align-items:center;padding:.5rem .75rem;flex-shrink:0;background-color:var(--background-primary);z-index:5}.new-chat-mobile-header .sidebar-toggle-button{background:none;border:none;padding:.5rem;cursor:pointer;color:var(--text-secondary);border-radius:50%;transition:all .2s}.new-chat-mobile-header .sidebar-toggle-button:hover{background-color:var(--background-secondary);color:var(--text-primary)}.new-chat-mobile-header .sidebar-toggle-button svg{width:24px;height:24px}@media (max-width: 1024px){.input-wrapper .model-selector-button{padding:.5rem;gap:.4rem;min-width:auto}.input-wrapper .model-selector-text .model-separator,.input-wrapper .model-selector-text .model-size{display:none}.input-wrapper .model-selector-button svg:last-child{display:none}}.header-actions-group{display:flex;flex-direction:column;align-items:center;background-color:var(--background-primary);border:1px solid var(--border-color);border-radius:8px;box-shadow:0 1px 2px #0000000d;overflow:hidden}.header-icon-button{display:flex;align-items:center;justify-content:center;width:44px;height:44px;background-color:transparent;color:var(--text-secondary);border:none;border-radius:0;cursor:pointer;transition:all .2s ease-in-out}.header-actions-group .header-icon-button:hover:not(:disabled){background-color:var(--accent-secondary);color:var(--text-accent)}.header-actions-group .header-icon-button:not(:last-child){border-bottom:1px solid var(--border-color)}.conversation-turn-wrapper.is-typing .conversation-turn{padding:1rem 0;border-bottom:none}.typing-indicator{display:flex;align-items:center;gap:.5rem;font-weight:500;color:var(--text-secondary);background-color:transparent;padding:0;border-radius:0}.typing-dots{display:flex;gap:3px;transform:translateY(-2px)}.typing-dots span{display:inline-block;width:6px;height:6px;background-color:currentColor;border-radius:50%;animation:typing-bounce 1.4s infinite ease-in-out both}.typing-dots span:nth-of-type(1){animation-delay:-.32s}.typing-dots span:nth-of-type(2){animation-delay:-.16s}.header-icon-wrapper{display:flex;align-items:center;justify-content:center}.shared-chat-viewer{width:100%;height:100%;display:flex;flex-direction:column;background-color:var(--background-secondary);position:relative}.shared-chat-body{flex-grow:1;overflow-y:auto;padding:2rem 2rem 0;padding-bottom:120px}.shared-chat-body .conversation-turn-wrapper{background-color:var(--background-secondary)}.shared-chat-body .conversation-turn{border-bottom-color:#e9ecef}.shared-chat-body .edit-prompt-button,.shared-chat-body .turn-footer-actions{display:none!important}.shared-chat-body .turn-footer-bar{justify-content:flex-end}.shared-chat-viewer .loading-container,.shared-chat-viewer .error-container{display:flex;flex-direction:column;justify-content:center;align-items:center;height:100%;gap:1rem;padding:2rem;text-align:center}.shared-chat-viewer .error-container h2{font-family:var(--font-family-brand)}.shared-chat-viewer .error-container .button-primary{margin-top:1rem}.shared-chat-footer{position:absolute;bottom:1.5rem;left:2rem;right:2rem;max-width:880px;margin:0 auto;z-index:10;display:flex;align-items:center;gap:1rem;padding:1rem 1.5rem;background-color:var(--background-primary);border-radius:12px;border:1px solid var(--border-color);box-shadow:0 4px 12px #00000014}.shared-footer-title{font-family:var(--font-family-brand);font-size:1.1rem;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex-grow:1}.shared-footer-separator{color:var(--border-color);font-size:1.5rem;font-weight:100}.shared-chat-footer .button-primary{flex-shrink:0;padding:.6rem 1.2rem;gap:.5rem}@media (max-width: 768px){.shared-chat-body{padding:1.5rem 1rem 0;padding-bottom:120px}.shared-chat-footer{left:1rem;right:1rem;bottom:1rem;flex-direction:column;gap:.75rem;padding:.75rem}.shared-footer-title{text-align:center;width:100%}.shared-footer-separator{display:none}.shared-chat-footer .button-primary{width:100%}}.conversation-turn .markdown-content h1,.conversation-turn .markdown-content h2,.conversation-turn .markdown-content h3,.conversation-turn .markdown-content h4{margin-top:1em;margin-bottom:.5em;line-height:1.2}.conversation-turn .markdown-content h1{font-size:1.4em}.conversation-turn .markdown-content h2{font-size:1.2em}.conversation-turn .markdown-content h3{font-size:1.1em}.conversation-turn .markdown-content p{margin-top:0;margin-bottom:1em}.conversation-turn .markdown-content p:last-child{margin-bottom:0}.conversation-turn .markdown-content ul,.conversation-turn .markdown-content ol{padding-left:1.5em;margin-top:0;margin-bottom:1em}.conversation-turn .markdown-content li{margin-bottom:.35em}.conversation-turn .markdown-content a{color:var(--text-accent);text-decoration:underline}.user-prompt-container .markdown-content a{color:#e0f2ff;font-weight:600}.conversation-turn .markdown-content code{background-color:#00000012;padding:.2em .4em;margin:0 .1em;border-radius:4px;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace;font-size:.9em}.user-prompt-container .markdown-content code{background-color:#00000012}.conversation-turn .markdown-content pre{background-color:#2d2d2d;color:#f1f1f1;padding:1em;border-radius:6px;overflow-x:auto;margin-top:0;margin-bottom:1em;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace}.conversation-turn .markdown-content pre code{background-color:transparent;padding:0;margin:0;color:inherit;font-size:1em}.conversation-turn .markdown-content blockquote{border-left:3px solid var(--border-color);padding-left:1em;margin-left:0;color:var(--text-secondary);font-style:italic;margin-bottom:1em}.user-prompt-container .markdown-content blockquote{border-left-color:#0003;color:var(--text-secondary)}.conversation-turn .markdown-content hr{border:none;border-top:1px solid var(--border-color);margin:1.5em 0}.conversation-turn .markdown-content table{width:100%;border-collapse:collapse;margin-bottom:1em;border:1px solid #ced4da;font-size:.9em}.conversation-turn .markdown-content th,.conversation-turn .markdown-content td{border:1px solid #ced4da;padding:.6em .8em;text-align:left}.conversation-turn .markdown-content th{background-color:var(--background-tertiary);font-weight:600}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;display:flex;justify-content:center;align-items:center;z-index:1002}.modal-content{background:var(--background-primary);padding:2rem;border-radius:8px;width:90%;max-width:500px;box-shadow:0 5px 15px #0000004d}.modal-body{padding:1rem 0}.modal-header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--border-color);padding-bottom:1rem;margin-bottom:1.5rem}.modal-header h2{margin:0}.modal-header-actions{display:flex;align-items:center;gap:1rem}.close-button{background:none;border:none;font-size:2rem;cursor:pointer;line-height:1;padding:0}.file-drop-area{border:2px dashed var(--border-color);border-radius:6px;padding:2rem;text-align:center;color:var(--text-secondary);position:relative;cursor:pointer;background-color:var(--background-tertiary)}.file-drop-area:hover{border-color:var(--text-accent);background-color:var(--accent-secondary)}.file-drop-area input[type=file]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer}.file-drop-area.compact{padding:1rem;margin-top:1rem;border-style:solid;border-width:1px}.file-drop-area.compact p{margin:0;font-size:.9rem}.confirmation-usage-warning{background-color:var(--danger-background);border:1px solid var(--danger-color);border-radius:6px;padding:1rem;margin-top:1rem;font-size:.9em}.confirmation-usage-warning h4{margin-top:0;margin-bottom:.5rem;color:var(--danger-color)}.confirmation-usage-warning ul{list-style:square;padding-left:1.5rem;margin:.5rem 0 0;max-height:150px;overflow-y:auto;font-size:.95em;background-color:#00000008;border:1px solid rgba(0,0,0,.07);border-radius:4px;padding:.75rem .75rem .75rem 2.25rem}.confirmation-usage-warning ul ul{list-style-type:circle;margin:.25rem 0 .5rem;padding-left:1.25rem;max-height:none;overflow-y:visible;background-color:transparent;border:none;padding:0 0 0 1.25rem}.confirmation-usage-warning li{margin-bottom:.5rem}.confirmation-usage-warning ul{scrollbar-width:thin;scrollbar-color:var(--danger-color) var(--danger-background)}.confirmation-usage-warning ul::-webkit-scrollbar{width:12px}.confirmation-usage-warning ul::-webkit-scrollbar-track{background:var(--danger-background);border-radius:6px}.confirmation-usage-warning ul::-webkit-scrollbar-thumb{background-color:var(--danger-color);border-radius:6px;border:2px solid var(--danger-background)}.confirmation-usage-warning ul::-webkit-scrollbar-thumb:hover{background-color:#c62828}.confirmation-checkbox-group{display:flex;align-items:center;gap:.75rem;margin-top:1rem}.confirmation-checkbox-group label{cursor:pointer}.modal-actions{display:flex;justify-content:flex-end;gap:1rem;margin-top:2rem}.manage-files-modal .modal-body{display:flex;flex-direction:column;gap:1rem;flex-grow:1;min-height:0}.in-session-files-container{position:relative;z-index:10;border:1px solid var(--border-color);border-radius:8px;background-color:var(--background-secondary);flex-shrink:0}.in-session-files-container .selected-files-list-details{position:absolute;top:100%;left:0;right:0;max-height:150px;overflow-y:auto;padding:.5rem 1rem 1rem;box-shadow:0 4px 8px #0000001a;background-color:var(--background-secondary);border:1px solid var(--border-color);border-top:none;border-radius:0 0 8px 8px;animation:none}.in-session-files-container .prompt-composer-header{background-color:transparent;border-bottom:none;padding:.5rem}.in-session-files-container .selected-files-list-details ul{list-style:none;padding:0;margin:0}.in-session-files-container .selected-files-list-details li{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.5rem;border-radius:4px}.in-session-files-container .selected-files-list-details li:hover{background-color:var(--background-tertiary)}.in-session-files-container .selected-files-list-details li .file-item-icon{flex-shrink:0}.in-session-files-container .selected-files-list-details li .file-item-name{flex-grow:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.in-session-files-container .selected-files-list-details .delete-button{background:none;border:1px solid transparent;border-radius:50%;width:28px;height:28px;display:flex;align-items:center;justify-content:center;color:var(--text-secondary);cursor:pointer;transition:all .2s;opacity:0}.in-session-files-container .selected-files-list-details li:hover .delete-button{opacity:1}.in-session-files-container .selected-files-list-details .delete-button:hover:not(:disabled){background-color:var(--danger-background);color:var(--danger-color);border-color:var(--danger-color)}.modal-content.pinned-message-modal{max-width:700px;max-height:500px;height:auto;width:90vw;display:flex;flex-direction:column}.pinned-message-modal .modal-body{flex-grow:1;overflow-y:auto;padding:1rem 2rem;background-color:var(--background-tertiary);border-radius:6px;border:1px solid var(--border-color)}.settings-modal,.file-management-modal{display:flex;flex-direction:column;height:80vh;max-height:700px;padding:0}.settings-modal{max-width:800px}.file-management-modal{max-width:1200px!important}.settings-modal .modal-header,.team-space-modal .modal-header,.file-management-modal .modal-header{padding:1rem 2rem;margin-bottom:0;flex-shrink:0}.file-management-modal .modal-body{padding:1.5rem 2rem;display:flex;flex-direction:column;gap:1.5rem;flex-grow:1;min-height:0}.settings-modal-body{display:flex;flex-grow:1;overflow:hidden}.settings-tabs{flex-shrink:0;width:200px;padding:1rem;border-right:1px solid var(--border-color);display:flex;flex-direction:column;gap:.5rem;justify-content:flex-start}.settings-tabs button{display:flex;align-items:center;justify-content:flex-start;gap:.75rem;width:100%;padding:.75rem calc(1rem - 3px);border:none;background:none;border-radius:6px;cursor:pointer;text-align:left;font-size:.95rem;font-weight:500;color:var(--text-secondary);transition:all .2s ease-in-out;border-left:3px solid transparent}.settings-tabs button:hover{background-color:var(--background-secondary);color:var(--text-primary)}.settings-tabs button.active{background-color:var(--accent-secondary);color:var(--text-accent);font-weight:600;border-left-color:var(--text-accent)}.settings-content{flex-grow:1;padding:2rem;overflow-y:auto}.settings-section h3{margin-top:0;margin-bottom:1.5rem;padding-bottom:.5rem;border-bottom:1px solid var(--border-color)}.profile-info-grid{display:grid;grid-template-columns:150px 1fr;gap:.75rem 1rem;align-items:center}.profile-info-grid dt{font-weight:600;color:var(--text-secondary)}.danger-zone{border:2px solid var(--danger-border);border-radius:8px;padding:1.5rem;background-color:var(--danger-background)}.danger-zone h4{margin-top:0;color:var(--danger-color)}.danger-zone p{color:#c62828}.danger-zone .button-primary{background:var(--danger-color)}.danger-zone .button-primary:disabled{background:var(--danger-color);opacity:.5}.memory-customization-header{display:flex;align-items:center;gap:1rem;margin-bottom:1rem}.memory-progress-container{flex-grow:1}.progress-bar-label{display:flex;justify-content:space-between;margin-bottom:.5rem;font-size:.9rem}.progress-bar{width:100%;height:8px;background-color:var(--background-tertiary);border-radius:4px;overflow:hidden}.progress-bar-inner{height:100%;background:var(--accent-gradient);transition:width .3s ease-in-out}.add-memory-form{position:relative;margin-bottom:1.5rem;transform:translateZ(0)}.add-memory-form .char-counter{position:absolute;bottom:10px;right:10px;font-size:.8rem;color:var(--text-secondary)}.memory-list-container{max-height:380px;overflow-y:auto;border:1px solid var(--border-color);border-radius:6px;padding:.5rem;margin-top:1rem}.memory-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.75rem}.memory-item{display:flex;align-items:center;gap:1rem;padding:.75rem;border:1px solid var(--border-color);border-radius:6px;background-color:var(--background-secondary)}.memory-content{flex-grow:1;font-size:.95rem;line-height:1.5}.memory-item textarea{height:80px;resize:none;overflow-y:auto}.memory-actions{display:flex;gap:.5rem}.customization-search{margin:1rem 0}.manage-memories-title{font-family:var(--font-family-brand)}.upload-preview-item{display:flex;align-items:center;justify-content:space-between;padding:.5rem;border-bottom:1px solid var(--border-color);transition:background-color .2s;border-radius:4px;gap:.75rem}.upload-preview-item:last-child{border-bottom:none}.upload-preview-item:hover{background-color:var(--background-tertiary)}.upload-preview-item .delete-button{opacity:0}.upload-preview-item:hover .delete-button{opacity:1}.upload-file-details{display:flex;align-items:center;gap:.75rem;min-width:0;flex-grow:1}.upload-file-details>svg{flex-shrink:0}.upload-preview-filename{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.upload-file-meta{display:flex;align-items:center;gap:.5rem;flex-shrink:0}.upload-file-size{color:var(--text-secondary);font-size:.85rem;white-space:nowrap}.integration-card{border:1px solid var(--border-color);border-radius:8px;padding:1.5rem;display:flex;justify-content:space-between;align-items:center}.integration-info{display:flex;align-items:center;gap:1rem}.integration-info svg{width:32px;height:32px}.integration-status{font-size:.9rem;color:var(--text-secondary)}.integration-status.connected{color:var(--success-color);font-weight:600}.modal-content.team-space-modal{max-width:650px;display:flex;flex-direction:column;height:80vh;max-height:700px;padding:0;transition:max-width .3s ease-in-out}.modal-content.team-space-modal.view-edit,.modal-content.team-space-modal.view-create{max-width:800px}.team-space-modal .modal-header{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:1.5rem 2rem;margin-bottom:0;flex-shrink:0}.team-space-modal .modal-header.is-dynamic{grid-template-columns:auto 1fr auto}.team-space-modal .modal-header .back-button{grid-column:1;justify-self:start}.team-space-modal .modal-header .dynamic-title{grid-column:2;justify-self:center;text-align:center;margin:0;font-size:1.25rem;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.modal-header .back-button{display:flex;align-items:center;gap:.5rem;background:none;border:none;font-weight:600;color:var(--text-secondary);cursor:pointer;font-size:.9rem;padding:.75rem;border-radius:6px;margin:0;text-decoration:none;flex-shrink:0}.modal-header .back-button:hover{background-color:var(--background-secondary);color:var(--text-primary);text-decoration:none}.team-space-modal .modal-header h2{grid-column:2;text-align:center;margin:0}.team-space-modal .modal-header .close-button{grid-column:3;justify-self:end}.team-space-tabs{display:flex;border-bottom:1px solid var(--border-color);margin:0;padding:0 2rem;flex-shrink:0}.team-space-tab{position:relative;padding:1rem;border:none;background:none;cursor:pointer;font-size:1rem;font-weight:600;color:var(--text-secondary);border-bottom:3px solid transparent;transition:all .2s}.team-space-tab .notification-indicator{position:absolute;top:.75rem;right:.5rem;width:8px;height:8px;background-color:var(--danger-color);border-radius:50%;border:1px solid var(--background-primary)}.team-space-tab.active{color:var(--text-accent);border-bottom-color:var(--text-accent)}.team-space-content-container{flex-grow:1;min-height:0;overflow-y:auto;padding:1.5rem 2rem}.team-space-view-content{display:flex;flex-direction:column;height:100%}.team-space-view-content.is-editing{height:auto;overflow-y:visible}.team-list-container{flex-grow:1;min-height:0;overflow-y:auto;overflow-x:hidden;margin:1rem 0}.team-switcher-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.5rem}.team-switcher-list .team-item{box-sizing:border-box;width:100%;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.5rem;border-radius:8px;background:none;border:1px solid transparent;text-align:left;transition:background-color .2s,border-color .2s}.team-switcher-list .team-item:hover{background-color:var(--background-secondary)}.team-switcher-list .team-item.active{background-color:var(--accent-secondary);border-color:var(--text-accent)}.team-switcher-list .team-item .team-item-clickable{display:flex;align-items:center;gap:1rem;padding:.5rem;flex-grow:1;cursor:pointer;border-radius:6px;min-width:0}.team-switcher-list .team-item .team-avatar{width:36px;height:36px;border-radius:6px;background:var(--accent-gradient);color:var(--text-light);display:flex;align-items:center;justify-content:center;font-weight:600;flex-shrink:0;text-transform:uppercase}.team-switcher-list .team-item .team-name{font-weight:600;font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex-grow:1;min-width:0}.team-switcher-list .team-item .manage-team-btn,.team-switcher-list .team-item .button-danger{padding:.5rem 1rem;flex-shrink:0}.team-space-modal .modal-footer{padding-top:1.5rem;border-top:1px solid var(--border-color);display:flex;justify-content:center;margin-top:0}.create-team-btn{width:100%}.edit-team-view{display:flex;flex-direction:column}.management-tabs{display:flex;border-bottom:1px solid var(--border-color);margin-bottom:1.5rem}.management-tab{padding:.75rem 1.25rem;border:none;background:none;cursor:pointer;font-size:.95rem;font-weight:600;color:var(--text-secondary);border-bottom:3px solid transparent;margin-bottom:-1px;transition:all .2s}.management-tab:hover{background-color:var(--background-secondary)}.management-tab.active{color:var(--text-accent);border-bottom-color:var(--text-accent)}.management-tab-content{animation:fadeIn .3s ease-out}.team-settings-card,.member-management-card{border:1px solid var(--border-color);border-radius:8px;padding:1.5rem;background-color:var(--background-primary)}.team-settings-card h4,.member-management-card h4{margin-top:0;margin-bottom:1rem;padding-bottom:.75rem;border-bottom:1px solid var(--border-color)}.team-settings-form{display:grid;grid-template-columns:1fr auto;gap:1rem;align-items:end}.team-settings-form .input-group{margin-bottom:0}.member-list{display:flex;flex-direction:column}.member-row{display:grid;grid-template-columns:1fr auto;gap:1rem;align-items:center;padding:.75rem 0;border-bottom:1px solid var(--border-color)}.member-row:last-child{border-bottom:none}.member-details{display:flex;flex-direction:column}.member-details strong{font-weight:600}.member-details span{font-size:.85rem;color:var(--text-secondary)}.member-actions{display:flex;align-items:center;gap:1rem}.role-select{padding:.5rem;border-radius:4px;border:1px solid var(--border-color);background-color:var(--background-primary);font-size:.9rem;font-weight:500}.role-select:focus{outline:none;border-color:var(--text-accent);box-shadow:0 0 0 2px var(--accent-secondary)}.role-select:disabled{background-color:var(--background-tertiary);color:var(--text-secondary);cursor:not-allowed}.member-actions .delete-button{background:none;border:1px solid transparent;border-radius:50%;width:32px;height:32px;display:flex;align-items:center;justify-content:center;color:var(--text-secondary);cursor:pointer;transition:all .2s}.member-actions .delete-button:hover:not(:disabled){background-color:var(--danger-background);color:var(--danger-color)}.add-member-form{display:grid;grid-template-columns:1fr auto auto;gap:1rem;align-items:center;padding-top:1rem;margin-top:1rem;border-top:1px solid var(--border-color)}.add-member-form .input-group{margin:0}.add-member-form label{display:none}.loading-spinner-container{display:flex;justify-content:center;align-items:center;padding:2rem}.empty-list-placeholder{padding:2rem;text-align:center;color:var(--text-secondary);font-style:italic}.invite-list{display:flex;flex-direction:column;gap:.75rem}.invite-list-item{display:flex;justify-content:space-between;align-items:center;padding:1rem;border:1px solid var(--border-color);border-radius:6px;font-weight:600;transition:all .2s ease-in-out}.invite-details{flex-grow:1}.invite-details strong{font-weight:600}.invite-details .inviter-info{font-size:.85rem;color:var(--text-secondary)}.invite-actions{display:flex;gap:.75rem}@media (max-width: 768px){.search-filters{grid-template-columns:1fr;gap:.75rem}.search-filters .input-group{flex-direction:column;align-items:flex-start}.search-filters label{margin-bottom:.25rem}.search-modal .modal-body{padding:0 1rem 1rem}.filter-toggle-button span{display:none}.filter-toggle-button{padding:.5rem}}.destination-tabs{display:flex;border:1px solid var(--border-color);border-radius:8px;overflow:hidden;background-color:var(--background-secondary);padding:4px;margin-top:.5rem}.destination-tabs button{flex:1;padding:.75rem;border:none;background-color:transparent;cursor:pointer;font-weight:600;font-size:.9rem;color:var(--text-secondary);border-radius:6px;transition:all .2s ease-in-out}.destination-tabs button.active{background-color:var(--background-primary);color:var(--text-accent);box-shadow:0 1px 3px #00000014}.destination-tabs button:disabled{color:#ced4da;cursor:not-allowed}.destination-tabs button:disabled:hover{background-color:transparent}.field-note{font-size:.85rem;color:var(--text-secondary);margin-top:.5rem;padding-left:.25rem}.modal-content.file-upload-modal{max-width:650px;height:85vh;max-height:700px;display:flex;flex-direction:column;padding:0}.file-upload-modal .modal-header{padding:1.5rem 2rem;margin-bottom:0;border-bottom:1px solid var(--border-color);flex-shrink:0}.upload-tabs{display:flex;border-bottom:1px solid var(--border-color);padding:0 2rem;flex-shrink:0}.upload-tabs button{padding:1rem;border:none;background:none;cursor:pointer;font-size:1rem;font-weight:600;color:var(--text-secondary);border-bottom:3px solid transparent;transition:all .2s}.upload-tabs button.active{color:var(--text-accent);border-bottom-color:var(--text-accent)}.file-upload-modal form{display:flex;flex-direction:column;flex-grow:1;min-height:0}.file-upload-modal .modal-body{flex-grow:1;min-height:0;display:flex;flex-direction:column;gap:1.5rem;padding:1.5rem 2rem;overflow-y:auto}.file-upload-modal .upload-options-container{flex-shrink:0;display:flex;flex-direction:column;gap:1rem}.file-upload-modal .upload-area-container{flex-grow:1;min-height:0;display:flex;flex-direction:column;gap:1rem}.file-upload-modal .dropzone{flex-grow:1;display:flex;flex-direction:column;border:2px dashed #ced4da;background-color:var(--background-secondary);transition:background-color .2s,border-color .2s;border-radius:12px;padding:1rem;min-height:150px}.file-upload-modal .dropzone.has-files{justify-content:flex-start;padding:1rem;gap:1rem;background-color:transparent;border-style:solid;border-color:var(--border-color)}.file-upload-modal .dropzone:not(.has-files){align-items:center;justify-content:center}.file-upload-modal .dropzone.active{border-color:var(--text-accent);background-color:var(--accent-secondary)}.file-upload-modal .dropzone-content{text-align:center;color:var(--text-secondary)}.file-upload-modal .dropzone-content svg{width:48px;height:48px;color:var(--text-accent);margin-bottom:1rem}.file-upload-modal .dropzone-content p{font-size:1.1rem;font-weight:600;margin:0 0 .25rem;color:var(--text-primary)}.file-upload-modal .dropzone-content em{font-size:.9rem}.file-list-header{display:flex;justify-content:space-between;align-items:center;flex-shrink:0;padding:0 .5rem}.file-list-header h4{margin:0;font-size:1rem}.file-list-header .button-outline{padding:.5rem 1rem}.file-preview-list{max-height:none;flex-grow:1;overflow-y:auto;border:none;border-radius:8px;padding:.5rem;background-color:transparent;display:flex;flex-direction:column;gap:.5rem}.file-upload-modal .file-preview-item{display:flex;align-items:center;gap:.75rem;padding:.75rem;border-radius:6px;background-color:var(--background-primary);border:1px solid var(--border-color)}.file-upload-modal .file-preview-item:hover{background-color:var(--background-tertiary)}.file-upload-modal .file-preview-item .file-name{flex-grow:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.9rem}.file-upload-modal .file-preview-item button{background:none;border:none;cursor:pointer;color:var(--text-secondary);padding:0;line-height:1;font-size:1.2rem;transition:color .2s}.file-upload-modal .file-preview-item button:hover{color:var(--danger-color)}.file-upload-modal .modal-footer{padding:1.5rem 2rem;border-top:1px solid var(--border-color);background-color:#fcfdff;flex-shrink:0}.file-upload-modal .modal-footer .error-message{margin:0 0 1rem;text-align:center}.file-upload-modal .modal-footer .progress-container{margin-bottom:1rem;display:flex;align-items:center;justify-content:center}.file-upload-modal .modal-footer .progress-message{color:var(--text-secondary);font-weight:500}.file-upload-modal .modal-footer .modal-actions{margin-top:0}.cloud-services-container{height:100%;width:100%;display:flex;flex-direction:column}.file-upload-modal .modal-body.cloud-tab{padding:1.5rem;background-color:var(--background-secondary)}.file-upload-modal .collection-card-header .icon-container{width:40px;height:40px;display:flex;align-items:center;justify-content:center}.file-upload-modal .focused-collection-view{padding:0;height:100%}.file-upload-modal .focused-collection-header{background-color:var(--background-primary)}.context-modal{max-width:650px;height:75vh;max-height:600px;display:flex;flex-direction:column}.context-modal .modal-body{flex-grow:1;overflow-y:auto;padding:0;margin-top:-.5rem}.context-list{display:flex;flex-direction:column;gap:.5rem}.context-file-item{border:1px solid var(--border-color);border-radius:8px;overflow:hidden}.context-file-header{display:flex;align-items:center;justify-content:space-between;width:100%;padding:1rem;background-color:var(--background-secondary);border:none;cursor:pointer;font-weight:600}.context-file-header .file-info{display:flex;align-items:center;gap:.75rem}.context-file-header .chunk-count{font-weight:500;font-size:.9rem;color:var(--text-secondary)}.context-file-header .chevron-icon{transition:transform .2s ease-in-out}.context-file-header .chevron-icon.expanded{transform:rotate(180deg)}.context-chunks{padding:1rem;display:flex;flex-direction:column;gap:1rem}.context-chunk{background-color:#f8f9fa;border-left:3px solid var(--text-accent);padding:.75rem 1rem;margin:0;font-size:.9rem;color:var(--text-secondary);border-radius:0 4px 4px 0;white-space:pre-wrap;line-height:1.6}.modal-content.share-chat-modal{max-width:550px}.share-modal-content{display:flex;flex-direction:column;gap:1.5rem}.permission-toggle{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.permission-option{display:flex;align-items:center;gap:1rem;padding:1rem;border:2px solid var(--border-color);border-radius:8px;cursor:pointer;transition:all .2s ease-in-out;background:none;text-align:left}.permission-option:hover{background-color:var(--background-secondary);border-color:var(--text-accent)}.permission-option.active{background-color:var(--accent-secondary);border-color:var(--text-accent);box-shadow:0 0 0 2px var(--accent-secondary)}.permission-option svg{width:24px;height:24px;color:var(--text-secondary);flex-shrink:0}.permission-option.active svg{color:var(--text-accent)}.permission-option div strong{display:block;margin:0 0 .25rem;font-size:1rem}.permission-option div span{display:block;font-size:.85rem;color:var(--text-secondary)}.access-list-management{display:flex;flex-direction:column;gap:.75rem}.access-list-management label{font-weight:600}.input-with-button{display:flex;align-items:center;border:1px solid var(--border-color);border-radius:8px;background-color:var(--background-primary);transition:border-color .2s,box-shadow .2s;overflow:hidden}.input-with-button:focus-within{border-color:var(--text-accent);box-shadow:0 0 0 3px var(--accent-secondary)}.input-with-button input{flex-grow:1;border:none;background:transparent;outline:none;padding:.75rem 1rem;font-size:1rem;color:var(--text-primary)}.input-with-button button{flex-shrink:0;background-color:var(--background-secondary);border:none;border-left:1px solid var(--border-color);padding:.75rem 1.25rem;font-weight:600;cursor:pointer;transition:background-color .2s,color .2s;display:flex;align-items:center;gap:.5rem}.input-with-button button:hover,.add-email-form button{background-color:var(--accent-secondary);color:var(--text-accent)}.add-email-form button:hover{background-color:var(--accent-secondary-hover)}.access-list-container{margin-top:.25rem;padding:1rem;border:1px solid var(--border-color);border-radius:8px;background-color:var(--background-tertiary);max-height:150px;overflow-y:auto}.email-access-list{display:flex;flex-wrap:wrap;gap:.75rem;padding:0;margin:0;list-style:none}.email-access-list li{display:inline-flex;align-items:center;gap:.5rem;background-color:var(--accent-secondary-hover);color:var(--text-accent);padding:.35rem .5rem .35rem .85rem;border-radius:16px;font-size:.9rem;font-weight:500;animation:fadeIn .2s ease-out}.email-access-list button{background-color:#0000001a;border:none;border-radius:50%;width:20px;height:20px;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--text-accent);opacity:.7;transition:opacity .2s,background-color .2s}.email-access-list button:hover{opacity:1;background-color:#0003}.modal-actions-container{padding-top:1.5rem;margin-top:1.5rem;border-top:1px solid var(--border-color)}.share-actions-extra{display:flex;justify-content:space-between;margin-bottom:1rem}.share-actions-extra .button-secondary.danger{color:var(--danger-color)}.share-actions-extra .button-secondary.danger:hover{background-color:var(--danger-background)}.modal-content.manage-session-files-modal-v2{max-width:1200px;height:85vh;max-height:800px;padding:0;display:flex;flex-direction:column}.manage-session-files-modal-v2 .modal-header{padding:1.5rem 2rem;margin-bottom:0;flex-shrink:0}.manage-session-files-modal-v2 .modal-body{display:grid;grid-template-columns:minmax(300px,1fr) 2fr;gap:0;flex-grow:1;min-height:0;border-top:1px solid var(--border-color);border-bottom:1px solid var(--border-color);padding:0}.manage-session-files-panel{display:flex;flex-direction:column;padding:1.5rem;overflow-y:hidden;gap:1rem}.panel-current-files{border-right:1px solid var(--border-color)}.panel-add-files{background-color:var(--background-secondary)}.panel-header{margin:0 0 .5rem;font-size:1.1rem;font-weight:600;flex-shrink:0}.current-files-list{flex-grow:1;overflow-y:auto;min-height:0}.current-files-list ul{list-style:none;padding:0;margin:0}.current-files-list li{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.75rem;border-radius:6px}.current-files-list li:hover{background-color:var(--background-secondary)}.current-files-list .file-details{display:flex;align-items:center;gap:.75rem;min-width:0}.current-files-list .file-details .file-item-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.current-files-list .delete-button{flex-shrink:0;opacity:0}.current-files-list li:hover .delete-button{opacity:1}.manage-session-files-modal-v2 .modal-actions{padding:1rem 2rem;margin-top:0;flex-shrink:0}.panel-add-files .file-browser-container{flex-grow:1;min-height:0;height:auto}.selected-files-summary-container{position:relative;flex-shrink:0;z-index:5}.selected-files-summary-button{display:flex;justify-content:space-between;align-items:center;width:100%;padding:.75rem 1rem;background-color:var(--background-primary);border:1px solid var(--border-color);border-radius:8px;font-weight:600;cursor:pointer;transition:all .2s}.selected-files-summary-button:hover{border-color:var(--text-accent)}.selected-files-summary-button:disabled{cursor:not-allowed;opacity:.6}.selected-files-summary-button .chevron-icon{transition:transform .2s}.selected-files-summary-button .chevron-icon.expanded{transform:rotate(180deg)}.selected-files-list-details{position:absolute;top:100%;left:0;right:0;z-index:4;max-height:200px;overflow-y:auto;background-color:var(--background-primary);border:1px solid var(--border-color);border-top:none;box-shadow:0 4px 8px #0000001a;border-radius:0 0 8px 8px;animation:slideDownAndFade .3s ease-out}.selected-files-list-details ul{list-style:none;padding:.5rem;margin:0}.selected-files-list-details li{display:flex;align-items:center;justify-content:space-between;padding:.5rem;border-radius:4px}.selected-files-list-details li:hover{background-color:var(--background-secondary)}.selected-files-list-details li .delete-button{opacity:1}.modal-content .search-bar{display:flex;align-items:center;gap:.75rem;background-color:var(--background-secondary);border-radius:8px;padding:0 1rem;border:1px solid var(--border-color)}.modal-content .search-bar:focus-within{border-color:var(--text-accent);box-shadow:0 0 0 2px var(--accent-secondary)}.modal-content .search-bar input{width:100%;border:none;background:transparent;outline:none;padding:.75rem 0;font-size:1rem}.file-browser-container{flex-grow:1;min-height:0;height:250px;background-color:var(--background-secondary);display:flex;overflow:hidden;position:relative;border-radius:8px;border:1px solid var(--border-color)}.collection-grid-panel,.focused-file-panel{width:100%;flex-shrink:0;height:100%;overflow-y:auto;transition:transform .4s cubic-bezier(.4,0,.2,1)}.file-browser-container.is-focused .collection-grid-panel,.file-browser-container.is-focused .focused-file-panel{transform:translate(-100%)}.collection-grid-panel{padding:1rem;box-sizing:border-box}.collection-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:1rem}.collection-card{border:1px solid var(--border-color);border-radius:8px;background-color:var(--background-primary);transition:all .2s ease-in-out;position:relative;display:flex;flex-direction:column}.collection-card:hover{border-color:var(--text-accent);box-shadow:0 2px 8px #0000000f}.collection-card-header{display:flex;align-items:center;gap:1rem;padding:1rem;cursor:pointer;flex-grow:1;position:relative}.collection-card-selector input[type=checkbox]{width:20px;height:20px;cursor:pointer;accent-color:var(--text-accent)}.collection-card-info{flex-grow:1;min-width:0}.collection-card-title{margin:0 0 .25rem;font-size:1rem;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.collection-card-meta{font-size:.85rem;color:var(--text-secondary)}.collection-card-chevron{color:var(--text-secondary);margin-left:auto}.focused-collection-view{display:flex;flex-direction:column;height:100%}.focused-collection-header{display:flex;align-items:center;padding:1rem 1.5rem;border-bottom:1px solid var(--border-color);background-color:var(--background-primary);flex-shrink:0;position:relative}.back-to-collections-btn{display:flex;align-items:center;gap:.5rem;background:none;border:none;font-weight:600;color:var(--text-secondary);cursor:pointer;font-size:.9rem;padding:.5rem;margin-left:-.5rem;border-radius:6px}.back-to-collections-btn:hover{background-color:var(--background-tertiary);color:var(--text-primary)}.focused-collection-title{margin:0;font-size:1.1rem;flex-grow:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 1rem}.focused-files-list{list-style:none;padding:.5rem .5rem 7rem;margin:0;flex-grow:1;overflow-y:auto}.focused-files-list li{display:flex;align-items:center;gap:.75rem;padding:.75rem;border-radius:6px;cursor:default;position:relative}.focused-files-list li:hover{background-color:var(--background-primary)}.focused-files-list .focused-list-header{font-weight:600;position:sticky;top:-.5rem;background-color:var(--background-secondary);z-index:2;margin:-.5rem -.5rem .5rem;padding:1rem;border-bottom:1px solid var(--border-color)}.focused-files-list li input[type=checkbox]{width:18px;height:18px;accent-color:var(--text-accent);cursor:pointer;flex-shrink:0}.focused-files-list .file-item-icon{flex-shrink:0}.focused-files-list .file-item-name{flex-grow:1;font-weight:500;font-size:.9rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item-actions{position:absolute;top:50%;right:1rem;transform:translateY(-50%);z-index:2;opacity:0;transition:opacity .2s}.collection-card:hover .item-actions,.focused-files-list li:hover .item-actions{opacity:1}.focused-collection-header .item-actions{position:relative;transform:none;opacity:1;flex-shrink:0;display:flex;align-items:center}.options-menu-button{background:none;border:none;padding:.5rem;cursor:pointer;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--text-secondary);transition:color .2s,background-color .2s}.options-menu-button:hover{background-color:var(--background-tertiary);color:var(--text-primary)}.options-menu-dropdown{position:absolute;right:0;top:100%;margin-top:.25rem;background-color:var(--background-primary);border:1px solid var(--border-color);box-shadow:0 4px 12px #0000001a;border-radius:8px;padding:.5rem;z-index:1005;width:220px;display:flex;flex-direction:column;gap:.25rem}.options-menu-item{display:flex;align-items:center;gap:.75rem;width:100%;padding:.75rem;border:none;background:none;border-radius:6px;cursor:pointer;text-align:left;font-size:.9rem;font-weight:500;text-decoration:none;color:var(--text-primary)}.options-menu-item:hover{background-color:var(--background-secondary)}.options-menu-item.delete{color:var(--danger-color)}.options-menu-item.delete:hover{background-color:var(--danger-background)}.options-menu-item svg{width:16px;height:16px;flex-shrink:0}.file-space-header{font-size:.8rem;font-weight:700;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.05em;padding:1rem 1rem .5rem;border-top:1px solid var(--border-color);margin-top:1rem;position:sticky;top:-1rem;background-color:var(--background-secondary);z-index:1}.collection-grid-panel>.file-space-header:first-of-type{border-top:none;margin-top:0}.modal-content.search-modal{max-width:800px;height:85vh;max-height:800px;display:flex;flex-direction:column;padding:0}.search-modal .modal-header{padding:1.5rem 2rem;margin-bottom:0;flex-shrink:0}.search-modal .modal-body{flex-grow:1;min-height:0;display:flex;flex-direction:column;padding:0 2rem 1.5rem}.search-controls{flex-shrink:0;margin-bottom:1rem}.search-controls .search-bar{display:flex;align-items:center;gap:.75rem;background-color:var(--background-secondary);border-radius:8px;padding:0 .5rem 0 1rem;border:1px solid var(--border-color)}.search-controls .search-bar:focus-within{border-color:var(--text-accent);box-shadow:0 0 0 2px var(--accent-secondary)}.search-controls .search-bar input{width:100%;border:none;background:transparent;outline:none;padding:.85rem 0;font-size:1.1rem}.filter-toggle-button{display:flex;align-items:center;gap:.5rem;background-color:transparent;border:1px solid transparent;padding:.5rem 1rem;border-radius:6px;cursor:pointer;font-weight:600;font-size:.9rem;color:var(--text-secondary);transition:all .2s;white-space:nowrap}.filter-toggle-button:hover,.filter-toggle-button.active{background-color:var(--accent-secondary);color:var(--text-accent)}.search-filters-panel{max-height:0;overflow:hidden;transition:max-height .3s ease-in-out}.search-filters-panel.is-open{max-height:100px}.search-filters{display:grid;grid-template-columns:auto 1fr 1fr;gap:1rem;align-items:center;padding:1rem;margin-top:.5rem;border:1px solid var(--border-color);background-color:var(--background-secondary);border-radius:8px}.search-filters .input-group{margin:0;display:flex;align-items:center;gap:.5rem}.search-filters label{font-weight:600;color:var(--text-secondary);font-size:.9rem;margin:0}.search-filters select,.search-filters input{padding:.5rem;border-radius:4px;border:1px solid var(--border-color);background-color:var(--background-primary);font-size:.9rem}.search-results-container{flex-grow:1;min-height:0;overflow-y:auto;border:1px solid var(--border-color);border-radius:8px;background-color:var(--background-secondary)}.search-results-list{list-style:none;padding:.5rem;margin:0}.search-result-item{padding:1rem 1.5rem;border-radius:6px;cursor:pointer;transition:background-color .2s;border-bottom:1px solid var(--border-color)}.search-result-item:last-child{border-bottom:none}.search-result-item:hover{background-color:var(--background-primary)}.search-result-title{margin:0 0 .75rem;font-size:1.1rem;font-weight:600}.search-result-matches{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.75rem}.search-result-match{background-color:#f8f9fa;padding:.75rem 1rem;border-radius:6px;border:1px solid #e9ecef}.search-result-match-content{font-size:.9rem;color:var(--text-secondary);max-height:80px;overflow:hidden;position:relative;line-height:1.6}.search-result-match-content:after{content:"";position:absolute;bottom:0;left:0;right:0;height:20px;background:linear-gradient(to top,#f8f9fa,transparent)}.search-result-match-content p{margin:0}.search-result-match-content mark{background-color:#fff3cd;color:#664d03;padding:1px 3px;border-radius:3px;font-weight:600}.recent-chats-list .date-group-section{margin-bottom:1rem}.date-group-header{font-size:.8rem;font-weight:700;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.05em;padding:.5rem 1rem;border-bottom:1px solid var(--border-color);margin:0}.date-group-items{list-style:none;padding:0;margin:0}.recent-chat-item{padding:1rem 1.5rem;cursor:pointer;border-bottom:1px solid var(--border-color);transition:background-color .2s}.recent-chat-item:last-child{border-bottom:none}.recent-chat-item:hover{background-color:var(--background-primary)}.recent-chat-title{font-weight:600;margin-bottom:.25rem}.recent-chat-last-message{font-size:.9rem;color:var(--text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.memory-toggle-container{padding-bottom:1.5rem;margin-bottom:1.5rem;border-bottom:1px solid var(--border-color)}.memory-toggle-container p{margin-top:0;margin-bottom:1rem;color:var(--text-secondary);font-size:.9rem;line-height:1.6}.memory-management-section.disabled{opacity:.5;pointer-events:none;transition:opacity .3s ease-in-out}.memory-management-section.disabled .add-memory-form,.memory-management-section.disabled .memory-list-container{background-color:var(--background-tertiary)}.mobile-share-options-modal.modal-content{position:relative;width:90vw;max-width:320px;height:auto;max-height:80vh;border-radius:12px;padding:1.5rem;animation:slide-up-fade .3s ease-out;box-shadow:0 4px 12px #00000026;bottom:auto;left:auto;right:auto;margin:auto}.mobile-share-options-modal .modal-body{padding:0;display:flex;flex-direction:column;gap:.75rem}.mobile-share-options-modal .option-button{display:flex;align-items:center;gap:1rem;padding:1rem;border-radius:8px;border:1px solid var(--border-color);background-color:var(--background-secondary);font-size:1rem;font-weight:600;text-align:left;cursor:pointer;width:100%;color:var(--text-primary)}.mobile-share-options-modal .option-button:hover{background-color:var(--background-tertiary)}.mobile-share-options-modal .option-button svg{width:24px;height:24px;color:var(--text-accent)}.spaces-sub-tabs{display:flex;gap:.5rem;padding:.5rem;background-color:var(--background-secondary);border-radius:8px;margin-top:1rem;margin-bottom:.5rem;flex-shrink:0}.sub-tab-button{flex:1;padding:.75rem;border:none;background-color:transparent;border-radius:6px;font-weight:600;font-size:.9rem;color:var(--text-secondary);cursor:pointer;transition:all .2s ease-in-out}.sub-tab-button.active{background-color:var(--background-primary);color:var(--text-accent);box-shadow:0 1px 3px #00000014}.team-role-group{margin-bottom:1.5rem}.team-role-group:last-child{margin-bottom:0}.role-group-header{font-size:.8rem;font-weight:700;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.05em;padding:.5rem;border-bottom:1px solid var(--border-color);margin:0 0 .5rem}.toast-container{position:fixed;top:20px;left:50%;transform:translate(-50%);z-index:2000;display:flex;flex-direction:column;align-items:center;gap:10px}.toast{display:flex;align-items:center;gap:1rem;padding:1rem 1.5rem;border-radius:8px;box-shadow:0 4px 12px #00000026;min-width:350px;max-width:500px;border:1px solid transparent;animation:slide-down .3s ease-out;background-color:var(--background-primary)}.toast-icon{flex-shrink:0;display:flex;align-items:center}.toast-icon svg{width:24px;height:24px}.toast-message{flex-grow:1;font-weight:500}.toast-close{background:none;border:none;cursor:pointer;color:inherit;opacity:.7;padding:.25rem;line-height:1}.toast-close:hover{opacity:1}.toast.success{background-color:#e8f5e9;color:#2e7d32;border-color:#a5d6a7}.toast.error{background-color:#fbe9e7;color:#c62828;border-color:#ffcdd2}.toast.loading{background-color:#e3f2fd;color:#1565c0;border-color:#90caf9}.button-primary,.button-secondary,.button-outline{padding:.6rem 1.2rem;border-radius:6px;border:1px solid;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:.5rem;transition:all .2s ease-in-out}.button-primary{background:var(--accent-gradient);color:var(--text-light);border:none;background-size:200% auto}.button-primary:hover:not(:disabled){background-position:right center}.button-primary .spinner{margin-right:8px}.button-primary:disabled{background:var(--gradient-blue);opacity:.6;cursor:not-allowed}.button-secondary{background-color:var(--background-tertiary);color:var(--text-primary);border-color:var(--border-color)}.button-secondary:hover:not(:disabled){background-color:#e9ecef}.button-outline{background-color:var(--base-white);color:var(--text-accent);border:1px solid var(--border-color)}.button-outline:hover:not(:disabled){border-color:var(--gradient-violet);background-color:var(--accent-secondary)}.button-danger{background-color:transparent;border:1px solid var(--danger-color);color:var(--danger-color);display:inline-flex;align-items:center;gap:.5rem;padding:.6rem 1.2rem;border-radius:6px;font-weight:600;cursor:pointer}.button-danger:hover:not(:disabled){background-color:var(--danger-background)}.button-danger:disabled{opacity:.6;cursor:not-allowed}.toggle-switch-wrapper{display:flex;align-items:center;gap:1rem;font-weight:600}.toggle-switch-wrapper .spinner{width:1em;height:1em;vertical-align:middle}.toggle-switch{position:relative;display:inline-block;width:50px;height:28px}.toggle-switch input{opacity:0;width:0;height:0}.slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;transition:.4s}.slider:before{position:absolute;content:"";height:20px;width:20px;left:4px;bottom:4px;background-color:#fff;transition:.4s}input:checked+.slider{background-color:var(--gradient-violet)}input:focus+.slider{box-shadow:0 0 1px var(--gradient-violet)}input:checked+.slider:before{transform:translate(22px)}.slider.round{border-radius:28px}.slider.round:before{border-radius:50%}.desktop-only{display:none!important}.mobile-only{display:flex!important}@media (max-width: 1024px){:root{--sidebar-width: 280px}.main-app-container{overflow-x:hidden}.left-sidebar{position:fixed;top:0;bottom:0;height:100%;z-index:1001;transform:translate(-100%);transition:transform .3s ease-in-out;box-shadow:0 0 20px #0003;width:var(--sidebar-width)!important;cursor:default!important}.left-sidebar.is-mobile-open{transform:translate(0)}.chat-view-container{width:100%;flex-grow:1}.sidebar-backdrop{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#0006;z-index:1000;opacity:0;visibility:hidden;transition:opacity .3s,visibility 0s .3s}.sidebar-backdrop.is-visible{opacity:1;visibility:visible;transition-delay:0s}.left-sidebar.is-mobile-open .session-actions{opacity:1}.left-sidebar.is-mobile-open .session-avatar{display:none}.chat-view-mobile-header,.new-chat-mobile-header{top:0;left:0;right:0;position:relative}.new-chat-flow-container{justify-content:flex-start;padding-top:0}.new-chat-flow-container .new-chat-mobile-header{position:static;border-bottom:1px solid var(--border-color);margin-bottom:1rem}.messages-list{padding:1rem 1rem 0}.floating-input-container{bottom:1rem;left:1rem;right:1rem}.message-bubble{max-width:85%}.message-input-form{padding:1rem}.pinned-message-bar{display:none!important}.turn-footer-actions,.user-prompt-container.current-user .edit-prompt-button{opacity:1}.modal-content{width:95vw;height:85vh;max-height:90vh;padding:1rem}.modal-content.settings-modal{display:grid;grid-template-rows:auto 1fr;padding:0;overflow:hidden}.settings-modal .modal-header{padding:1.5rem 1rem 1rem}.settings-modal-body{flex-direction:column;overflow:hidden;min-height:0}.settings-tabs.desktop-only{display:none!important}.settings-tabs-mobile.mobile-only{display:block!important;position:relative;padding:1rem 1rem 0;flex-shrink:0}.settings-dropdown-button{display:flex;align-items:center;justify-content:space-between;width:100%;padding:.75rem 1rem;background-color:var(--background-primary);border:1px solid var(--border-color);border-radius:8px;font-size:1rem;font-weight:600;text-align:left;cursor:pointer;transition:border-color .2s}.settings-dropdown-button:hover{border-color:var(--text-accent)}.settings-dropdown-button .active-tab-info{display:flex;align-items:center;gap:.75rem;color:var(--text-accent)}.settings-dropdown-button svg:last-child{transition:transform .2s}.settings-dropdown-button[aria-expanded=true] svg:last-child{transform:rotate(180deg)}.settings-dropdown-menu{position:absolute;top:calc(100% - .5rem);left:1rem;right:1rem;background-color:var(--background-primary);border:1px solid var(--border-color);border-radius:8px;box-shadow:0 4px 12px #0000001a;z-index:10;margin-top:.5rem;padding:.5rem;animation:fadeIn .2s ease-out}.settings-dropdown-item{display:flex;align-items:center;gap:.75rem;width:100%;padding:.75rem 1rem;border:none;background:none;border-radius:6px;cursor:pointer;text-align:left;font-size:1rem;font-weight:600;color:var(--text-secondary)}.settings-dropdown-item:hover{background-color:var(--background-secondary);color:var(--text-primary)}.settings-dropdown-item.active{background-color:var(--accent-secondary);color:var(--text-accent)}.settings-content{padding:1.5rem 1rem;overflow-y:auto;flex-grow:1}.profile-info-grid{grid-template-columns:100px 1fr}.modal-content.file-management-modal,.modal-content.manage-session-files-modal-v2{width:100vw;height:100vh;height:100dvh;max-width:100%;max-height:100%;border-radius:0}.file-management-modal .modal-header,.manage-session-files-modal-v2 .modal-header{padding:1rem 1rem 1rem 1.5rem}.file-management-modal .modal-body{padding:1rem;gap:1rem}.file-management-modal .collection-card-grid{grid-template-columns:1fr;gap:.75rem}.file-management-modal .focused-collection-header{padding:.75rem 1rem}.file-management-modal .focused-files-list{padding:.5rem}.file-management-modal .options-menu-dropdown{right:.5rem;left:auto}.manage-session-files-modal-v2 .modal-body{display:flex;flex-direction:column;padding:0;gap:0}.manage-session-files-tabs{display:flex;border-bottom:1px solid var(--border-color);padding:0 1rem;flex-shrink:0}.manage-session-files-tabs .tab-button{flex:1;padding:1rem .5rem;border:none;background:none;cursor:pointer;font-size:1rem;font-weight:600;color:var(--text-secondary);border-bottom:3px solid transparent;transition:all .2s}.manage-session-files-tabs .tab-button.active{color:var(--text-accent);border-bottom-color:var(--text-accent)}.manage-session-files-modal-v2 .manage-session-files-panel{display:none;width:100%;flex-grow:1;min-height:0;padding:1rem}.manage-session-files-modal-v2 .manage-session-files-panel.active{display:flex;animation:fadeIn .3s ease-out}.manage-session-files-modal-v2 .panel-current-files{border-right:none}}@media (min-width: 1025px){.desktop-only{display:flex!important}.mobile-only{display:none!important}}
