.confirm-dialog-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#0009;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:10000;animation:fadeIn .2s ease}.confirm-dialog{background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:12px;padding:24px;max-width:400px;width:90%;box-shadow:0 8px 32px #0006;animation:slideUp .2s ease}.confirm-dialog-header{display:flex;align-items:center;gap:12px;margin-bottom:16px}.confirm-dialog-icon{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}.confirm-dialog-icon.danger{background:#ef444426;color:#ef4444}.confirm-dialog-icon.success{background:#10a37f26;color:var(--accent-color)}.confirm-dialog-icon.warning{background:#fbbf2426;color:#fbbf24}.confirm-dialog-title{font-size:18px;font-weight:600;color:var(--text-primary);margin:0}.confirm-dialog-body{margin-bottom:24px}.confirm-dialog-message{font-size:14px;line-height:1.5;color:var(--text-secondary);margin:0}.confirm-dialog-footer{display:flex;gap:12px;justify-content:flex-end}.confirm-dialog-btn{padding:10px 20px;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s;border:1px solid transparent}.confirm-dialog-btn.cancel{background:transparent;color:var(--text-secondary);border-color:var(--border-color)}.confirm-dialog-btn.cancel:hover{background:var(--bg-tertiary);color:var(--text-primary)}.confirm-dialog-btn.confirm{color:#fff}.confirm-dialog-btn.confirm.danger{background:#ef4444;border-color:#ef4444}.confirm-dialog-btn.confirm.danger:hover{background:#dc2626;border-color:#dc2626}.confirm-dialog-btn.confirm.success{background:var(--accent-color);border-color:var(--accent-color)}.confirm-dialog-btn.confirm.success:hover{background:var(--accent-hover);border-color:var(--accent-hover)}.confirm-dialog-btn.confirm.warning{background:#fbbf24;border-color:#fbbf24;color:#1a1a1a}.confirm-dialog-btn.confirm.warning:hover{background:#f59e0b;border-color:#f59e0b}.confirm-dialog-btn:disabled{opacity:.5;cursor:not-allowed}.admin-panel{display:flex;flex-direction:column;height:100vh;background:#fff}.admin-header{display:flex;align-items:center;gap:1rem;padding:1rem 1.5rem;border-bottom:1px solid #e5e7eb;background:#f9fafb}.admin-header h1{flex:1}.back-btn{display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;background:#fff;border:1px solid #d1d5db;border-radius:.5rem;cursor:pointer;font-size:.875rem;color:#374151;transition:all .2s}.back-btn:hover{background:#f3f4f6;border-color:#9ca3af}.admin-header h1{margin:0;font-size:1.5rem;font-weight:600;color:#111827}.admin-tabs{display:flex;gap:.5rem;padding:1rem 1.5rem;border-bottom:1px solid #e5e7eb;background:#f9fafb}.admin-tab{padding:.75rem 1.5rem;background:transparent;border:none;border-bottom:2px solid transparent;cursor:pointer;font-size:.875rem;font-weight:500;color:#6b7280;transition:all .2s;position:relative;top:1px}.admin-tab:hover{color:#374151;background:#f3f4f6;border-radius:.375rem .375rem 0 0}.admin-tab.active{color:#2563eb;border-bottom-color:#2563eb;background:#fff;border-radius:.375rem .375rem 0 0}.admin-content{flex:1;overflow-y:auto;padding:2rem;max-width:900px;margin:0 auto;width:100%}.upload-section{background:#fff;border:1px solid #e5e7eb;border-radius:.75rem;padding:2rem}.upload-section h2{margin:0 0 .5rem;font-size:1.25rem;font-weight:600;color:#111827}.description{margin:0 0 1.5rem;color:#6b7280;font-size:.875rem;line-height:1.5}.file-input-container{margin-bottom:1.5rem}.file-input{display:none}.file-input-label{display:flex;align-items:center;justify-content:center;gap:.5rem;padding:1.5rem;border:2px dashed #d1d5db;border-radius:.5rem;cursor:pointer;transition:all .2s;background:#f9fafb;color:#374151;font-weight:500}.file-input-label:hover{border-color:#9ca3af;background:#f3f4f6}.files-list{margin-bottom:1.5rem}.files-list h3{margin:0 0 1rem;font-size:1rem;font-weight:600;color:#374151}.files-grid{display:flex;flex-direction:column;gap:.75rem}.file-item{display:flex;justify-content:space-between;align-items:center;padding:1rem;background:#f9fafb;border:1px solid #e5e7eb;border-radius:.5rem}.file-info{display:flex;flex-direction:column;gap:.25rem;flex:1}.file-name{font-weight:500;color:#111827;font-size:.875rem}.file-size{font-size:.75rem;color:#6b7280}.file-actions{display:flex;align-items:center;gap:.75rem}.upload-status{font-size:.75rem;font-weight:500}.upload-status.uploading{color:#2563eb}.upload-status.success{color:#059669}.upload-status.error{color:#dc2626}.remove-btn{padding:.25rem .5rem;background:transparent;border:1px solid var(--border-color);border-radius:.25rem;cursor:pointer;color:var(--text-secondary);font-size:.875rem;transition:all .2s}.remove-btn:hover:not(:disabled){background:var(--bg-tertiary);border-color:var(--border-color);color:var(--text-primary)}.remove-btn:disabled{opacity:.5;cursor:not-allowed}.message{padding:.75rem 1rem;border-radius:.5rem;margin-bottom:1rem;font-size:.875rem}.message.success{background:#d1fae5;color:#065f46;border:1px solid #a7f3d0}.message.error{background:#fee2e2;color:#991b1b;border:1px solid #fecaca}.message.warning{background:#fef3c7;color:#92400e;border:1px solid #fde68a}.upload-btn{padding:.75rem 1.5rem;background:#2563eb;color:#fff;border:none;border-radius:.5rem;font-size:1rem;font-weight:500;cursor:pointer;transition:all .2s}.upload-btn:hover:not(:disabled){background:#1d4ed8}.upload-btn:disabled{opacity:.5;cursor:not-allowed}.documents-section{margin-top:3rem;background:#fff;border:1px solid #e5e7eb;border-radius:.75rem;padding:2rem}.documents-section h2{margin:0 0 1.5rem;font-size:1.25rem;font-weight:600;color:#111827}.no-documents{color:#6b7280;font-size:.875rem;text-align:center;padding:2rem;margin:0}.documents-list{display:flex;flex-direction:column;gap:1rem}.document-item{display:flex;justify-content:space-between;align-items:center;padding:1rem;background:#f9fafb;border:1px solid #e5e7eb;border-radius:.5rem;transition:all .2s}.document-item:hover{border-color:#d1d5db;background:#f3f4f6}.document-info{display:flex;flex-direction:column;gap:.5rem;flex:1}.document-name{font-weight:600;color:#111827;font-size:.875rem}.document-meta{display:flex;gap:1rem;font-size:.75rem;color:#6b7280}.document-size,.document-type,.document-chars{padding:.25rem .5rem;background:#e5e7eb;border-radius:.25rem}.document-date{font-size:.75rem;color:#9ca3af}.view-btn{display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;background:#2563eb;color:#fff;border:none;border-radius:.5rem;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s}.view-btn:hover{background:#1d4ed8}.document-viewer-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:2rem}.document-viewer{background:#fff;border-radius:.75rem;width:100%;max-width:900px;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a}.viewer-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem;border-bottom:1px solid #e5e7eb}.viewer-header h3{margin:0;font-size:1.125rem;font-weight:600;color:#111827}.close-btn{padding:.5rem;background:transparent;border:none;border-radius:.375rem;cursor:pointer;color:#6b7280;transition:all .2s}.close-btn:hover{background:#f3f4f6;color:#111827}.viewer-content{flex:1;overflow:auto;padding:1.5rem}.loading-content{text-align:center;padding:3rem;color:#6b7280}.document-content{margin:0;padding:0;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:.875rem;line-height:1.6;color:#111827;white-space:pre-wrap;word-wrap:break-word;background:#f9fafb;padding:1rem;border-radius:.5rem;border:1px solid #e5e7eb;max-height:60vh;overflow:auto}.login-container{position:relative;width:100%;height:100vh;display:flex;align-items:center;justify-content:center;overflow-y:auto;overflow-x:hidden;background:#0a0a0a;isolation:isolate}.login-background{position:absolute;top:0;left:0;width:100%;height:100%;z-index:0}.login-gradient{position:absolute;top:-50%;left:-50%;width:200%;height:200%;background:radial-gradient(circle at 30% 50%,rgba(99,102,241,.15) 0%,rgba(139,92,246,.1) 30%,transparent 60%);animation:gradientShift 20s ease infinite}@keyframes gradientShift{0%,to{transform:translate(0) scale(1)}50%{transform:translate(5%,5%) scale(1.1)}}.login-content{position:relative;z-index:1;width:100%;max-width:440px;padding:24px;min-height:100vh;display:flex;align-items:center;justify-content:center}.login-card{background:#ffffff08;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.1);border-radius:16px;padding:40px;box-shadow:0 8px 32px #0006,inset 0 1px #ffffff1a;width:100%;max-height:calc(100vh - 48px);overflow-y:auto;margin:24px 0}.login-card::-webkit-scrollbar{width:8px}.login-card::-webkit-scrollbar-track{background:#ffffff0d;border-radius:4px}.login-card::-webkit-scrollbar-thumb{background:#fff3;border-radius:4px}.login-card::-webkit-scrollbar-thumb:hover{background:#ffffff4d}.login-header{text-align:center;margin-bottom:32px}.login-logo{display:inline-flex;align-items:center;justify-content:center;margin-bottom:16px;filter:drop-shadow(0 4px 12px rgba(99,102,241,.3))}.logo-image{max-width:120px;height:auto;object-fit:contain}.login-title{font-size:28px;font-weight:600;color:#fff;margin:0 0 8px;letter-spacing:-.5px}.login-subtitle{font-size:15px;color:#fff9;margin:0;font-weight:400}.login-form{display:flex;flex-direction:column;gap:20px}.login-error{display:flex;align-items:center;gap:8px;padding:12px 16px;background:#ef44441a;border:1px solid rgba(239,68,68,.3);border-radius:8px;color:#fca5a5;font-size:14px}.form-group{display:flex;flex-direction:column;gap:8px}.form-label{font-size:14px;font-weight:500;color:#ffffffe6;letter-spacing:-.2px}.input-wrapper{position:relative;display:flex;align-items:center}.input-icon{left:14px;color:#fff6;pointer-events:none;z-index:1}.form-input{width:100%;padding:12px 14px;background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:8px;color:#fff;font-size:15px;font-family:inherit;transition:all .2s ease;outline:none}.form-input::placeholder{color:#ffffff4d}.form-input:hover:not(:disabled){border-color:#fff3;background:#ffffff12}.form-input:focus{border-color:#6366f199;background:#ffffff14;box-shadow:0 0 0 3px #6366f11a}.form-input:disabled{opacity:.5;cursor:not-allowed}.password-toggle{position:absolute;right:12px;background:none;border:none;color:#fff6;cursor:pointer;padding:4px;display:flex;align-items:center;justify-content:center;transition:color .2s ease;z-index:1}.password-toggle:hover:not(:disabled){color:#ffffffb3}.password-toggle:disabled{opacity:.5;cursor:not-allowed}.form-options{display:flex;align-items:center;justify-content:space-between;font-size:14px}.checkbox-wrapper{display:flex;align-items:flex-start;gap:12px;cursor:pointer;-webkit-user-select:none;user-select:none;padding:12px;border-radius:8px;transition:background-color .2s ease;position:relative}.checkbox-wrapper:hover{background-color:#ffffff08}.checkbox-input{position:absolute;opacity:0;width:0;height:0;margin:0;padding:0}.checkbox-custom{position:relative;flex-shrink:0;width:20px;height:20px;min-width:20px;min-height:20px;border:2px solid rgba(255,255,255,.3);border-radius:4px;background:transparent;transition:all .2s ease;cursor:pointer;display:flex;align-items:center;justify-content:center}.checkbox-wrapper:hover .checkbox-custom{border-color:#6366f180}.checkbox-input:checked+.checkbox-custom{background:linear-gradient(135deg,#6366f1,#8b5cf6);border-color:#6366f1;box-shadow:0 0 0 3px #6366f133}.checkbox-input:checked+.checkbox-custom:after{content:"";position:absolute;left:6px;top:2px;width:5px;height:10px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg);opacity:1}.checkbox-input:disabled+.checkbox-custom{opacity:.5;cursor:not-allowed}.checkbox-label{color:#fffc;font-size:14px;line-height:1.5;flex:1;cursor:pointer}.forgot-password{color:#6366f1e6;text-decoration:none;font-size:14px;font-weight:500;transition:color .2s ease}.forgot-password:hover{color:#818cf8;text-decoration:underline}.login-button{width:100%;padding:14px 20px;background:linear-gradient(135deg,#6366f1,#8b5cf6);border:none;border-radius:8px;color:#fff;font-size:15px;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:8px;transition:all .2s ease;box-shadow:0 4px 12px #6366f14d;margin-top:4px}.login-button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 6px 16px #6366f166;background:linear-gradient(135deg,#7c3aed,#a855f7)}.login-button:active:not(:disabled){transform:translateY(0)}.login-button:disabled{opacity:.6;cursor:not-allowed;transform:none}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.login-divider{position:relative;text-align:center;margin:8px 0}.login-divider:before{content:"";position:absolute;top:50%;left:0;right:0;height:1px;background:#ffffff1a}.login-divider span{position:relative;background:#ffffff08;padding:0 12px;color:#ffffff80;font-size:14px}.social-button{width:100%;padding:12px 20px;background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:8px;color:#ffffffe6;font-size:15px;font-weight:500;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px;transition:all .2s ease}.social-button:hover{background:#ffffff14;border-color:#ffffff26;transform:translateY(-1px)}.login-footer{margin-top:24px;text-align:center;font-size:14px;color:#fff9}.signup-link{color:#6366f1e6;text-decoration:none;font-weight:500;transition:color .2s ease}.signup-link:hover{color:#818cf8;text-decoration:underline}.terms-link{color:#818cf8;text-decoration:none;transition:color .2s ease}.terms-link:hover{color:#a5b4fc;text-decoration:underline}.back-button{width:100%;padding:12px;background:transparent;border:1px solid rgba(255,255,255,.2);border-radius:8px;color:#ffffffb3;cursor:pointer;font-size:14px;margin-top:12px;transition:all .2s ease}.back-button:hover:not(:disabled){background:#ffffff0d;border-color:#ffffff4d;color:#ffffffe6}.back-button:disabled{opacity:.5;cursor:not-allowed}.login-success{display:flex;align-items:center;gap:8px;padding:12px 16px;background:#10b9811a;border:1px solid rgba(16,185,129,.3);border-radius:8px;color:#6ee7b7;font-size:14px;margin-bottom:20px}.org-option-button:hover:not(:disabled){background:#ffffff1a!important;transform:translateY(-2px)}@media (max-width: 480px){.login-content{padding:16px}.login-card{padding:32px 24px}.login-title{font-size:24px}.login-subtitle{font-size:14px}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.login-card{animation:fadeInUp .5s ease-out}.forgot-password-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000b3;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px;animation:fadeIn .2s ease-out}.forgot-password-modal{background:#ffffff08;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.1);border-radius:16px;padding:40px;max-width:440px;width:100%;position:relative;box-shadow:0 8px 32px #0006,inset 0 1px #ffffff1a;animation:fadeInUp .3s ease-out;max-height:90vh;overflow-y:auto}.forgot-password-close{position:absolute;top:16px;right:16px;background:transparent;border:none;color:#fff9;cursor:pointer;padding:8px;display:flex;align-items:center;justify-content:center;border-radius:6px;transition:all .2s ease}.forgot-password-close:hover{background:#ffffff1a;color:#ffffffe6}.forgot-password-title{font-size:24px;font-weight:600;color:#fff;margin:0 0 8px;letter-spacing:-.5px}.forgot-password-description{font-size:14px;color:#fff9;margin:0 0 24px;line-height:1.5}.forgot-password-form{display:flex;flex-direction:column;gap:20px}.forgot-password-error{display:flex;align-items:center;gap:8px;padding:12px 16px;background:#ef44441a;border:1px solid rgba(239,68,68,.3);border-radius:8px;color:#fca5a5;font-size:14px}.forgot-password-success{display:flex;align-items:center;gap:8px;padding:12px 16px;background:#10b9811a;border:1px solid rgba(16,185,129,.3);border-radius:8px;color:#6ee7b7;font-size:14px}.forgot-password-back{background:transparent;border:none;color:#ffffffb3;cursor:pointer;font-size:14px;padding:8px;text-align:center;transition:color .2s ease;margin-top:8px}.forgot-password-back:hover:not(:disabled){color:#ffffffe6}.forgot-password-back:disabled{opacity:.5;cursor:not-allowed}@media (max-width: 480px){.forgot-password-modal{padding:32px 24px;margin:10px}.forgot-password-title{font-size:20px}}.privacy-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000b3;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:10000;animation:fadeIn .2s ease;padding:20px}.privacy-modal{background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:16px;max-width:800px;width:100%;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 8px 32px #00000080;animation:slideUp .3s ease;overflow:hidden}@keyframes slideUp{0%{transform:translateY(30px);opacity:0}to{transform:translateY(0);opacity:1}}.privacy-header{display:flex;align-items:center;justify-content:space-between;padding:24px;border-bottom:1px solid var(--border-color);flex-shrink:0}.privacy-header h2{font-size:24px;font-weight:600;color:var(--text-primary);margin:0}.privacy-close{background:transparent;border:none;color:var(--text-secondary);cursor:pointer;padding:8px;border-radius:6px;display:flex;align-items:center;justify-content:center;transition:all .2s;width:36px;height:36px}.privacy-close:hover{background:var(--bg-tertiary);color:var(--text-primary)}.privacy-content{padding:24px;overflow-y:auto;flex:1;scrollbar-width:thin;scrollbar-color:var(--border-color) transparent}.privacy-content::-webkit-scrollbar{width:8px}.privacy-content::-webkit-scrollbar-track{background:transparent}.privacy-content::-webkit-scrollbar-thumb{background:var(--border-color);border-radius:4px}.privacy-content::-webkit-scrollbar-thumb:hover{background:var(--text-secondary)}.privacy-content p{font-size:15px;line-height:1.7;color:var(--text-secondary);margin-bottom:16px}.privacy-content h3{font-size:18px;font-weight:600;color:var(--text-primary);margin-top:24px;margin-bottom:12px}.privacy-content h3:first-child{margin-top:0}.privacy-content ul{margin-left:24px;margin-bottom:16px;color:var(--text-secondary)}.privacy-content li{font-size:15px;line-height:1.7;margin-bottom:8px}.privacy-link{color:var(--accent-color);text-decoration:none;transition:color .2s}.privacy-link:hover{color:var(--accent-hover);text-decoration:underline}.privacy-footer{padding:20px 24px;border-top:1px solid var(--border-color);display:flex;justify-content:flex-end;flex-shrink:0}.privacy-accept{padding:12px 24px;background:var(--accent-color);color:#fff;border:none;border-radius:8px;font-size:15px;font-weight:500;cursor:pointer;transition:all .2s}.privacy-accept:hover{background:var(--accent-hover);transform:translateY(-1px);box-shadow:0 4px 12px #4d3fff4d}.privacy-accept:active{transform:translateY(0)}@media (max-width: 768px){.privacy-modal{max-width:100%;max-height:95vh;border-radius:12px}.privacy-header{padding:20px}.privacy-header h2{font-size:20px}.privacy-content{padding:20px}.privacy-content p,.privacy-content li{font-size:14px}.privacy-footer{padding:16px 20px}.privacy-accept{width:100%}}.resources-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);animation:fadeIn .2s ease-in}.resources-modal{background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:12px;width:90%;max-width:900px;max-height:90vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 20px 60px #0000004d;animation:slideUp .3s ease-out}.resources-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--border-color);background-color:var(--bg-secondary);flex-shrink:0}.resources-header h1{font-size:24px;font-weight:600;color:var(--text-primary);margin:0}.resources-search-container{padding:16px 24px;border-bottom:1px solid var(--border-color);background-color:var(--bg-secondary);flex-shrink:0}.resources-search-input-wrapper{position:relative;display:flex;align-items:center}.resources-search-icon{position:absolute;left:12px;color:var(--text-secondary);pointer-events:none;z-index:1}.resources-search-input{width:100%;padding:10px 12px 10px 40px;background-color:var(--bg-primary);border:1px solid var(--border-color);border-radius:8px;color:var(--text-primary);font-size:14px;outline:none;transition:all .2s}.resources-search-input:focus{border-color:var(--accent-color);box-shadow:0 0 0 3px #4d3fff1a}.resources-search-input::placeholder{color:var(--text-secondary)}.resources-search-clear{position:absolute;right:8px;background:transparent;border:none;color:var(--text-secondary);cursor:pointer;padding:4px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:all .2s}.resources-search-clear:hover{background-color:var(--bg-tertiary);color:var(--text-primary)}.close-resources-btn{background:transparent;border:none;color:var(--text-primary);cursor:pointer;padding:8px;border-radius:4px;transition:background-color .2s;display:flex;align-items:center;justify-content:center}.close-resources-btn:hover{background-color:var(--bg-tertiary)}.resources-content{flex:1;overflow-y:auto;padding:24px;min-height:0}.resources-loading,.resources-empty{text-align:center;padding:60px 20px;color:var(--text-secondary)}.resources-list{display:flex;flex-direction:column;gap:12px}.resource-item{display:flex;align-items:center;gap:16px;padding:16px;background-color:var(--bg-secondary);border:1px solid var(--border-color);border-radius:8px;transition:all .2s}.resource-item:hover{background-color:var(--bg-tertiary);border-color:var(--accent-color)}.resource-icon{font-size:32px;flex-shrink:0}.resource-info{flex:1;min-width:0}.resource-name{font-size:16px;font-weight:500;color:var(--text-primary);margin-bottom:8px;word-break:break-word}.resource-meta{display:flex;gap:12px;font-size:13px;color:var(--text-secondary);flex-wrap:wrap}.resource-size,.resource-date,.resource-uploader{display:flex;align-items:center}.resource-actions{flex-shrink:0;text-align:right}.view-btn{display:inline-flex;align-items:center;gap:.5rem;margin-bottom:2px;padding:.5rem 1rem;background-color:var(--accent-color);color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:.875rem;transition:all .2s}.view-btn:hover{background-color:var(--accent-hover);transform:translateY(-1px)}.download-btn{display:flex;align-items:center;gap:8px;padding:8px 16px;background-color:var(--accent-color);color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:14px;transition:all .2s}.download-btn .spinner{animation:spin 1s linear infinite}.no-download{padding:8px 16px;color:var(--text-secondary);font-size:14px;font-style:italic}@media (max-width: 768px){.resource-item{flex-direction:column;align-items:flex-start}.resource-actions{width:100%}.download-btn{width:100%;justify-content:center}}.file-viewer-overlay{animation:fadeIn .2s ease-in}.file-viewer-container{animation:slideUp .3s ease-out}@media (max-width: 768px){.file-viewer-container{width:100%!important;height:100%!important;border-radius:0!important}}.cloud-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);animation:fadeIn .2s ease-in}.cloud-modal{background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:12px;width:90%;max-width:1000px;max-height:90vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 20px 60px #0000004d;animation:slideUp .3s ease-out}.cloud-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--border-color);background-color:var(--bg-secondary);flex-shrink:0}.cloud-header h1{font-size:24px;font-weight:600;color:var(--text-primary);margin:0}.close-cloud-btn{background:transparent;border:none;color:var(--text-primary);cursor:pointer;padding:8px;border-radius:4px;transition:background-color .2s;display:flex;align-items:center;justify-content:center}.close-cloud-btn:hover{background-color:var(--bg-tertiary)}.cloud-tabs{display:flex;border-bottom:1px solid var(--border-color);background-color:var(--bg-secondary);flex-shrink:0}.cloud-tabs button{flex:1;padding:12px 24px;background:transparent;border:none;color:var(--text-secondary);cursor:pointer;font-size:14px;font-weight:500;transition:all .2s;border-bottom:2px solid transparent}.cloud-tabs button:hover{color:var(--text-primary);background-color:var(--bg-tertiary)}.cloud-tabs button.active{color:var(--accent-color);border-bottom-color:var(--accent-color);background-color:var(--bg-primary)}.cloud-toolbar{display:flex;align-items:center;gap:12px;padding:16px 24px;border-bottom:1px solid var(--border-color);background-color:var(--bg-secondary);flex-shrink:0}.upload-btn{display:inline-flex;align-items:center;gap:8px;padding:8px 16px;background-color:var(--accent-color);color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:14px;font-weight:500;transition:all .2s}.upload-btn:hover:not(:disabled){background-color:var(--accent-hover);transform:translateY(-1px)}.upload-btn:disabled{opacity:.6;cursor:not-allowed}.cloud-search{flex:1;position:relative;display:flex;align-items:center}.cloud-search-icon{position:absolute;left:12px;color:var(--text-secondary);pointer-events:none;z-index:1}.cloud-search-input{width:100%;padding:10px 12px 10px 40px;background-color:var(--bg-primary);border:1px solid var(--border-color);border-radius:8px;color:var(--text-primary);font-size:14px;outline:none;transition:all .2s}.cloud-search-input:focus{border-color:var(--accent-color);box-shadow:0 0 0 3px #4d3fff1a}.cloud-search-input::placeholder{color:var(--text-secondary)}.cloud-content{flex:1;overflow-y:auto;padding:24px;min-height:0}.cloud-loading,.cloud-empty{text-align:center;padding:60px 20px;color:var(--text-secondary)}.cloud-list{display:flex;flex-direction:column;gap:12px}.cloud-item{display:flex;align-items:center;gap:16px;padding:16px;background-color:var(--bg-secondary);border:1px solid var(--border-color);border-radius:8px;transition:all .2s}.cloud-item:hover{background-color:var(--bg-tertiary);border-color:var(--accent-color)}.cloud-icon{font-size:32px;flex-shrink:0}.cloud-info{flex:1;min-width:0}.cloud-name{font-size:16px;font-weight:500;color:var(--text-primary);margin-bottom:8px;word-break:break-word}.cloud-meta{display:flex;gap:12px;font-size:13px;color:var(--text-secondary);flex-wrap:wrap}.cloud-actions{display:flex;gap:8px;flex-shrink:0}.share-btn,.download-btn,.delete-btn{display:flex;align-items:center;gap:6px;padding:8px 12px;border:none;border-radius:6px;cursor:pointer;font-size:13px;transition:all .2s}.share-btn{background-color:var(--accent-color);color:#fff}.share-btn:hover:not(:disabled){background-color:var(--accent-hover);transform:translateY(-1px)}.download-btn{background-color:var(--accent-color);color:#fff}.download-btn:hover:not(:disabled){background-color:var(--accent-hover);transform:translateY(-1px)}.download-btn:disabled{opacity:.6;cursor:not-allowed}.delete-btn{background-color:transparent;color:var(--error);border:1px solid var(--error)}.delete-btn:hover:not(:disabled){background-color:var(--error);color:#fff}.delete-btn:disabled{opacity:.6;cursor:not-allowed}.share-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:2000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);animation:fadeIn .2s ease-in}.share-modal{background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:12px;width:90%;max-width:500px;max-height:90vh;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 20px 60px #0000004d;animation:slideUp .3s ease-out}.share-modal-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--border-color)}.share-modal-header h2{font-size:18px;font-weight:600;color:var(--text-primary);margin:0}.share-modal-header button{background:transparent;border:none;color:var(--text-primary);cursor:pointer;padding:4px;border-radius:4px;transition:background-color .2s}.share-modal-header button:hover{background-color:var(--bg-tertiary)}.share-modal-content{padding:24px;overflow-y:auto;flex:1}.share-type-selector{display:flex;flex-direction:column;gap:12px;margin-bottom:24px}.share-type-selector label{display:flex;align-items:center;gap:8px;color:var(--text-primary);cursor:pointer;padding:8px;border-radius:6px;transition:background-color .2s}.share-type-selector label:hover{background-color:var(--bg-tertiary)}.share-type-selector input[type=radio]{cursor:pointer}.share-field{margin-bottom:16px}.share-field label{display:block;margin-bottom:8px;color:var(--text-primary);font-weight:500;font-size:14px}.share-field select,.share-field input[type=text]{width:100%;padding:10px 12px;background-color:var(--bg-primary);border:1px solid var(--border-color);border-radius:8px;color:var(--text-primary);font-size:14px;outline:none;transition:all .2s}.share-field select:focus,.share-field input[type=text]:focus{border-color:var(--accent-color);box-shadow:0 0 0 3px #4d3fff1a}.share-modal-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:24px;padding-top:24px;border-top:1px solid var(--border-color)}.share-modal-actions button{padding:10px 20px;border:none;border-radius:6px;cursor:pointer;font-size:14px;font-weight:500;transition:all .2s}.share-modal-actions button:first-child{background-color:transparent;color:var(--text-primary);border:1px solid var(--border-color)}.share-modal-actions button:first-child:hover{background-color:var(--bg-tertiary)}.share-modal-actions button:last-child{background-color:var(--accent-color);color:#fff}.share-modal-actions button:last-child:hover:not(:disabled){background-color:var(--accent-hover);transform:translateY(-1px)}.share-modal-actions button:disabled{opacity:.6;cursor:not-allowed}.spinner{animation:spin 1s linear infinite}@media (max-width: 768px){.cloud-modal{width:100%;max-width:100%;max-height:100vh;border-radius:0}.cloud-item{flex-direction:column;align-items:flex-start}.cloud-actions{width:100%;flex-wrap:wrap}.share-btn,.download-btn,.delete-btn{flex:1;justify-content:center}.share-modal{width:100%;max-width:100%;border-radius:0}}.message-dialog-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#0009;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:10000;animation:fadeIn .2s ease}.message-dialog{background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:12px;padding:24px;max-width:400px;width:90%;box-shadow:0 8px 32px #0006;animation:slideUp .2s ease}@keyframes slideUp{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}.message-dialog-header{display:flex;align-items:center;gap:12px;margin-bottom:16px}.message-dialog-icon{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}.message-dialog-icon.success{background:#10a37f26;color:var(--accent-color)}.message-dialog-icon.error{background:#ef444426;color:#ef4444}.message-dialog-title{font-size:18px;font-weight:600;color:var(--text-primary);margin:0}.message-dialog-body{margin-bottom:24px}.message-dialog-message{font-size:14px;line-height:1.5;color:var(--text-secondary);margin:0}.message-dialog-footer{display:flex;gap:12px;justify-content:flex-end}.message-dialog-btn{padding:10px 20px;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s;border:1px solid transparent;color:#fff}.message-dialog-btn.success{background:var(--accent-color);border-color:var(--accent-color)}.message-dialog-btn.success:hover{background:var(--accent-hover);border-color:var(--accent-hover)}.message-dialog-btn.error{background:#ef4444;border-color:#ef4444}.message-dialog-btn.error:hover{background:#dc2626;border-color:#dc2626}.message-dialog-btn:disabled{opacity:.5;cursor:not-allowed}.organization-panel{display:flex;flex-direction:column;height:100vh;background:var(--bg-primary);color:var(--text-primary)}.organization-header{display:flex;align-items:center;gap:1rem;padding:1.5rem 2rem;border-bottom:1px solid var(--border-color);background:var(--bg-secondary);flex-shrink:0}.organization-header h1{flex:1;margin:0;font-size:1.75rem;font-weight:600;color:var(--text-primary)}.organization-back-btn{display:flex;align-items:center;gap:.5rem;padding:.625rem 1rem;background:var(--bg-primary);border:1px solid var(--border-color);border-radius:8px;cursor:pointer;font-size:.875rem;font-weight:500;color:var(--text-primary);transition:all .2s}.organization-back-btn:hover{background:var(--bg-tertiary);border-color:var(--accent-color);color:var(--accent-color)}.organization-selector{padding:1.25rem 2rem;border-bottom:1px solid var(--border-color);background:var(--bg-secondary)}.organization-selector label{display:block;margin-bottom:.75rem;font-weight:500;font-size:.875rem;color:var(--text-secondary)}.organization-select{width:100%;max-width:400px;padding:.75rem 1rem;background:var(--bg-primary);border:1px solid var(--border-color);border-radius:8px;color:var(--text-primary);font-size:.875rem;cursor:pointer;transition:all .2s;margin-right:12px}.organization-select:focus{outline:none;border-color:var(--accent-color);box-shadow:0 0 0 3px #4d3fff1a}.organization-tabs{display:flex;gap:.5rem;padding:0 2rem;border-bottom:1px solid var(--border-color);background:var(--bg-secondary);overflow-x:auto}.organization-tab{padding:1rem 1.5rem;background:transparent;border:none;border-bottom:2px solid transparent;cursor:pointer;font-size:.875rem;font-weight:500;color:var(--text-secondary);transition:all .2s;white-space:nowrap;position:relative;top:1px}.organization-tab:hover{color:var(--text-primary);background:var(--bg-primary)}.organization-tab.active{color:var(--accent-color);border-bottom-color:var(--accent-color);background:var(--bg-primary)}.organization-content{flex:1;overflow-y:auto;padding:2rem;background:var(--bg-primary)}.organization-error{padding:1rem 1.5rem;margin-bottom:1.5rem;background:#ef44441a;border:1px solid rgba(239,68,68,.3);border-radius:8px;color:var(--error);font-size:.875rem}.org-info-card{background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:12px;padding:2rem;margin-bottom:1.5rem}.org-info-row{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:1.5rem;padding-bottom:1.5rem;border-bottom:1px solid var(--border-color)}.org-info-row:last-child{margin-bottom:0;padding-bottom:0;border-bottom:none}.org-info-label{font-size:.875rem;font-weight:500;color:var(--text-secondary);margin-bottom:.5rem;display:block}.org-info-value{font-size:1rem;color:var(--text-primary);font-weight:500;margin:0}.org-info-value-small{font-size:.875rem;color:var(--text-secondary);margin:0}.org-name-container{display:flex;align-items:center;gap:1rem;flex:1}.org-name-input{flex:1;max-width:400px;padding:.75rem 1rem;background:var(--bg-primary);border:1px solid var(--border-color);border-radius:8px;color:var(--text-primary);font-size:1rem;font-weight:500;transition:all .2s}.org-name-input:focus{outline:none;border-color:var(--accent-color);box-shadow:0 0 0 3px #4d3fff1a}.org-edit-btn,.org-save-btn,.org-cancel-btn{padding:.625rem 1.25rem;border:none;border-radius:8px;cursor:pointer;font-size:.875rem;font-weight:500;transition:all .2s}.org-edit-btn{background:var(--bg-primary);border:1px solid var(--border-color);color:var(--text-primary)}.org-edit-btn:hover{background:var(--bg-tertiary);border-color:var(--accent-color);color:var(--accent-color)}.org-save-btn{background:var(--accent-color);color:#fff}.org-save-btn:hover:not(:disabled){background:var(--accent-hover, #3d2fff);transform:translateY(-1px);box-shadow:0 4px 12px #4d3fff4d}.org-save-btn:disabled{opacity:.6;cursor:not-allowed}.org-cancel-btn{background:var(--bg-primary);border:1px solid var(--border-color);color:var(--text-secondary)}.org-cancel-btn:hover{background:var(--bg-tertiary);color:var(--text-primary)}.org-invitation-code{display:flex;align-items:center;gap:1rem;padding:1rem 1.25rem;background:var(--bg-primary);border:1px solid var(--border-color);border-radius:8px;max-width:500px}.org-invitation-code code{flex:1;font-size:1.125rem;font-weight:600;letter-spacing:2px;color:var(--text-primary);font-family:Monaco,Courier New,monospace}.org-copy-btn{padding:.625rem 1.25rem;background:var(--accent-color);color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:.875rem;font-weight:500;transition:all .2s;white-space:nowrap}.org-copy-btn:hover{background:var(--accent-hover, #3d2fff);transform:translateY(-1px);box-shadow:0 4px 12px #4d3fff4d}.org-users-list{display:flex;flex-direction:column;gap:1rem}.org-user-card{background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:12px;padding:1.25rem 1.5rem;display:flex;justify-content:space-between;align-items:center;transition:all .2s}.org-user-card:hover{border-color:var(--accent-color);box-shadow:0 2px 8px #0000000d}.org-user-info{display:flex;align-items:center;gap:1rem;flex:1}.org-user-avatar{width:48px;height:48px;border-radius:50%;object-fit:cover;border:2px solid var(--border-color)}.org-user-avatar-placeholder{width:48px;height:48px;border-radius:50%;background:var(--accent-color);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:1.125rem;border:2px solid var(--border-color)}.org-user-details{flex:1}.org-user-name{margin:0;font-size:1rem;font-weight:500;color:var(--text-primary);margin-bottom:.25rem}.org-user-email{margin:0;font-size:.875rem;color:var(--text-secondary);margin-bottom:.25rem}.org-user-role{margin:0;font-size:.75rem;color:var(--text-secondary)}.org-user-actions{display:flex;gap:.5rem}.org-action-btn{padding:.5rem 1rem;background:transparent;border:1px solid var(--border-color);border-radius:8px;cursor:pointer;font-size:.875rem;font-weight:500;color:var(--text-primary);transition:all .2s}.org-action-btn:hover{background:var(--bg-tertiary);border-color:var(--accent-color);color:var(--accent-color)}.org-action-btn.danger{color:var(--text-secondary)}.org-action-btn.danger:hover{border-color:var(--error);color:var(--error);background:#ef44441a}.org-action-btn:disabled{opacity:.5;cursor:not-allowed}.org-privileges-modal{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);animation:fadeIn .2s ease-in}.org-privileges-modal-content{background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:12px;padding:2rem;max-width:500px;width:90%;max-height:90vh;overflow:auto;box-shadow:0 20px 60px #0000004d;animation:slideUp .3s ease-out}.org-privileges-modal-content h3{margin:0 0 1.5rem;font-size:1.25rem;font-weight:600;color:var(--text-primary)}.org-privilege-item{display:flex;align-items:center;gap:.75rem;padding:.75rem 0;border-bottom:1px solid var(--border-color)}.org-privilege-item:last-child{border-bottom:none}.org-privilege-checkbox{width:18px;height:18px;cursor:pointer;accent-color:var(--accent-color)}.org-privilege-label{flex:1;font-size:.875rem;color:var(--text-primary);cursor:pointer}.org-privileges-modal-actions{display:flex;gap:.75rem;justify-content:flex-end;margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid var(--border-color)}.org-empty-state{text-align:center;padding:3rem 2rem;color:var(--text-secondary)}.org-empty-state p{margin:0;font-size:.875rem}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@media (max-width: 768px){.organization-header{padding:1rem 1.5rem}.organization-header h1{font-size:1.5rem}.organization-content,.org-info-card{padding:1.5rem}.org-user-card{flex-direction:column;align-items:flex-start;gap:1rem}.org-user-actions{width:100%;justify-content:flex-end}}.app-container{display:flex;height:100vh}.sidebar{width:var(--sidebar-width);background-color:var(--bg-secondary);display:flex;flex-direction:column;border-right:1px solid var(--border-color)}.sidebar-header{padding:16px 16px 8px;border-bottom:1px solid var(--border-color)}.sidebar-logo{display:flex;align-items:center;justify-content:center;margin-bottom:10px}.sidebar-logo-image{max-width:120px;height:auto;object-fit:contain;transition:all .3s ease}[data-theme=dark] .sidebar-logo-image{filter:drop-shadow(0 4px 12px rgba(99,102,241,.4))}[data-theme=light] .sidebar-logo-image{filter:drop-shadow(0 2px 8px rgba(0,0,0,.1))}.sidebar-user-info{display:flex;flex-direction:column;align-items:center;margin:16px 0;gap:8px}.sidebar-avatar{width:64px;height:64px;border-radius:50%;overflow:hidden;border:2px solid var(--border-color);background:var(--bg-tertiary);display:flex;align-items:center;justify-content:center;flex-shrink:0}.sidebar-avatar-image{width:100%;height:100%;object-fit:cover;border-radius:50%}.sidebar-avatar-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:600;color:var(--text-primary);background:var(--accent-color);border-radius:50%}.sidebar-user-name{font-size:14px;font-weight:500;color:var(--text-primary);text-align:center;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 8px}.new-chat-btn{width:100%;padding:12px;background:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:999px;color:var(--text-primary);cursor:pointer;display:flex;align-items:center;gap:8px;font-size:14px;transition:all .2s ease;margin-bottom:12px}.new-chat-btn:hover{background:var(--accent-color);border-color:var(--accent-color);color:#fff;transform:translateY(-1px);box-shadow:0 4px 12px #10a37f4d}.search-container{margin-bottom:10px;position:relative;z-index:10;pointer-events:auto}.search-input-wrapper{position:relative;display:flex;align-items:center;background:var(--input-bg);border:1px solid var(--border-color);border-radius:8px;padding:8px 12px;transition:all .2s ease;pointer-events:auto;z-index:1}.search-input-wrapper:focus-within{border-color:var(--accent-color);box-shadow:0 0 0 3px #10a37f1a}.search-icon{color:var(--text-secondary);margin-right:8px;flex-shrink:0}.chat-search-input{flex:1;background:transparent;border:none;outline:none;color:var(--text-primary);font-size:14px;padding:0;pointer-events:auto;cursor:text;-webkit-user-select:text;user-select:text;z-index:1;position:relative}.chat-search-input::placeholder{color:var(--text-secondary)}.clear-search-btn{background:transparent;border:none;color:#ffffff80;cursor:pointer;padding:4px;display:flex;align-items:center;justify-content:center;margin-left:8px;border-radius:4px;transition:all .2s ease;flex-shrink:0}.clear-search-btn:hover{background:#ffffff1a;color:#ffffffe6}.conversations-list{flex:1;overflow-y:auto;padding:8px}.sidebar-footer{padding:12px 16px 16px;border-top:1px solid var(--border-color)}.admin-btn{width:100%;padding:12px;background:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:999px;color:var(--text-primary);cursor:pointer;display:flex;align-items:center;gap:8px;font-size:14px;transition:all .2s ease}.admin-btn:hover{background:var(--bg-primary);border-color:var(--accent-color);transform:translateY(-1px)}.conversation-item{padding:12px;border-radius:6px;cursor:pointer;margin-bottom:4px;font-size:14px;color:var(--text-secondary);transition:background-color .2s;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;align-items:center;justify-content:space-between;gap:8px;position:relative}.conversation-title{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-item:hover{background-color:var(--bg-tertiary)}.conversation-item.active{background-color:var(--bg-tertiary);color:var(--text-primary)}.delete-chat-btn{background:transparent;border:none;color:var(--text-secondary);cursor:pointer;padding:4px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:all .2s;flex-shrink:0}.delete-chat-btn:hover{background:var(--bg-tertiary);color:var(--text-primary)}.delete-chat-btn:disabled{opacity:.5;cursor:not-allowed}.main-content{flex:1;display:flex;flex-direction:column;overflow:hidden}.chat-container{flex:1;overflow-y:auto;position:relative}.welcome-screen{display:flex;align-items:center;justify-content:center;height:100%;padding:20px}.welcome-content{text-align:center;max-width:600px}.welcome-logo{display:flex;align-items:center;justify-content:center;margin-bottom:24px}.welcome-logo-image{max-width:160px;height:auto;object-fit:contain;transition:all .3s ease}[data-theme=dark] .welcome-logo-image{filter:drop-shadow(0 4px 16px rgba(99,102,241,.5))}[data-theme=light] .welcome-logo-image{filter:drop-shadow(0 2px 8px rgba(0,0,0,.1))}.welcome-content h1{font-size:32px;margin-bottom:16px;font-weight:600}.welcome-content p{font-size:18px;color:var(--text-secondary)}.messages-container{padding:24px;max-width:768px;margin:0 auto;width:100%}.message{padding:24px 12px;display:flex;gap:24px;position:relative}.message.user{background-color:var(--message-user-bg)}.message.assistant{background-color:var(--message-assistant-bg)}.message:hover .message-edit-button{opacity:1}.message-avatar{width:40px;height:40px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:14px;overflow:hidden;position:relative}.message.user .message-avatar{background-color:var(--accent-color)}.message.assistant .message-avatar{background-color:#19c37d}.avatar-image-circular{width:100%;height:100%;object-fit:cover;border-radius:50%}.avatar-placeholder-circular{width:100%;height:100%;display:flex;align-items:center;justify-content:center;border-radius:50%;color:#fff;font-size:16px;font-weight:600}.avatar-logo-container{width:100%;height:100%;display:flex;align-items:center;justify-content:center;border-radius:50%;background-color:transparent;overflow:hidden;padding:4px}.avatar-logo{width:100%;height:100%;object-fit:contain;border-radius:50%}.message-content-wrapper{flex:1;position:relative}.message-content{line-height:1.75;font-size:16px;word-wrap:break-word}.message-files{display:flex;flex-direction:column;gap:8px;margin-bottom:12px}.message-file{display:flex;align-items:center;gap:8px;padding:8px 12px;background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:6px;font-size:14px;color:var(--text-primary)}.message-file svg{flex-shrink:0;color:var(--accent-color)}.file-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-size{color:var(--text-secondary);font-size:12px}.message-edit-button{position:absolute;top:0;right:0;background:#ffffff1a;border:1px solid rgba(255,255,255,.2);border-radius:4px;color:#fff9;cursor:pointer;padding:4px 6px;display:flex;align-items:center;justify-content:center;opacity:0;transition:all .2s;font-size:12px}.message-edit-button:hover{background:#ffffff26;color:#ffffffe6}.message-edit{display:flex;flex-direction:column;gap:8px}.message-edit-textarea{width:100%;min-height:80px;padding:12px;background:var(--input-bg);border:1px solid var(--border-color);border-radius:6px;color:var(--text-primary);font-size:16px;font-family:inherit;resize:vertical;outline:none;line-height:1.5}.message-edit-textarea:focus{border-color:var(--accent-color);background:var(--bg-tertiary)}.message-edit-actions{display:flex;gap:8px;justify-content:flex-end}.message-edit-btn{padding:6px 12px;border-radius:4px;border:1px solid rgba(255,255,255,.2);cursor:pointer;font-size:13px;transition:all .2s}.message-edit-btn.save{background:var(--accent-color);border-color:var(--accent-color);color:#fff}.message-edit-btn.save:hover:not(:disabled){background:var(--accent-hover)}.message-edit-btn.save:disabled{opacity:.5;cursor:not-allowed}.message-edit-btn.cancel{background:transparent;color:var(--text-secondary);border-color:var(--border-color)}.message-edit-btn.cancel:hover:not(:disabled){background:var(--bg-tertiary);color:var(--text-primary)}.message-edit-btn:disabled{opacity:.5;cursor:not-allowed}.message-content pre{background-color:var(--bg-tertiary);padding:12px;border-radius:6px;overflow-x:auto;margin:12px 0;border:1px solid var(--border-color)}.message-content code{font-family:Courier New,monospace;font-size:14px}.message-content p{margin-bottom:12px}.message-content p:last-child{margin-bottom:0}.input-container{padding:24px;background-color:var(--bg-primary);border-top:1px solid var(--border-color)}.input-wrapper{max-width:768px;margin:0 auto;position:relative;display:flex;align-items:flex-end;gap:12px;border:1px solid var(--border-color);border-radius:12px;padding:12px;transition:border-color .2s}.input-wrapper-2{max-width:768px;margin:0 auto;position:relative;display:flex;align-items:flex-end;gap:12px;border-radius:12px;padding:12px;transition:border-color .2s}.input-buttons{display:flex;align-items:center;gap:8px;flex-shrink:0}.input-wrapper:focus-within{border-color:var(--accent-color)}.input-wrapper textarea{flex:1;background:transparent;border:none;color:var(--text-primary);font-size:16px;font-family:inherit;resize:none;max-height:200px;overflow-y:auto;outline:none;line-height:1.5}.input-wrapper textarea::placeholder{color:var(--text-secondary)}.attach-button{background-color:transparent;border:1px solid var(--border-color);border-radius:6px;width:36px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--text-primary);transition:all .2s;flex-shrink:0}.attach-button:hover:not(:disabled){background-color:var(--bg-tertiary);border-color:var(--accent-color)}.attach-button:disabled{opacity:.5;cursor:not-allowed}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.8;transform:scale(1.05)}}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.send-button{background-color:var(--accent-color);border:none;border-radius:6px;width:36px;height:36px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#fff;transition:background-color .2s;flex-shrink:0}.send-button:hover:not(:disabled){background-color:var(--accent-hover)}.send-button:disabled{opacity:.5;cursor:not-allowed}.selected-files{max-width:768px;margin:0 auto 12px;display:flex;flex-wrap:wrap;gap:8px}.file-preview{display:flex;align-items:center;gap:8px;padding:6px 10px;background:#6366f11a;border:1px solid rgba(99,102,241,.3);border-radius:6px;font-size:13px;color:var(--text-primary)}.file-preview .file-name{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-preview .file-size{color:var(--text-secondary);font-size:11px}.remove-file-btn{background:transparent;border:none;color:var(--text-secondary);cursor:pointer;padding:2px 4px;border-radius:4px;font-size:14px;line-height:1;transition:all .2s}.remove-file-btn:hover:not(:disabled){background:#ffffff1a;color:var(--text-primary)}.remove-file-btn:disabled{opacity:.5;cursor:not-allowed}.input-footer{text-align:center;margin-top:12px}.input-footer p{font-size:12px;color:var(--text-secondary)}.typing-indicator{display:flex;gap:4px;padding:4px 0}.typing-indicator span{width:8px;height:8px;border-radius:50%;background-color:var(--text-secondary);animation:typing 1.4s infinite}.typing-indicator span:nth-child(2){animation-delay:.2s}.typing-indicator span:nth-child(3){animation-delay:.4s}@keyframes typing{0%,60%,to{transform:translateY(0);opacity:.7}30%{transform:translateY(-10px);opacity:1}}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--border-color);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--text-secondary)}.account-settings-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.account-settings-modal{background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:12px;width:90%;max-width:600px;max-height:90vh;overflow-y:auto;box-shadow:0 20px 60px #0000004d}.account-settings-header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--border-color)}.account-settings-header h2{margin:0;font-size:20px;font-weight:600;color:var(--text-primary)}.close-btn{background:transparent;border:none;color:var(--text-secondary);cursor:pointer;padding:4px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:all .2s ease}.close-btn:hover{background:var(--bg-tertiary);color:var(--text-primary)}.account-settings-content{padding:24px}.account-settings-content .message{padding:12px 16px;border-radius:8px;margin-bottom:20px;font-size:14px}.account-settings-content .message.success{background:#10a37f1a;color:var(--accent-color);border:1px solid rgba(16,163,127,.2)}.account-settings-content .message.error{background:#ef44441a;color:#ef4444;border:1px solid rgba(239,68,68,.2)}.settings-section{margin-bottom:32px}.settings-section:last-child{margin-bottom:0}.settings-section h3{margin:0 0 16px;font-size:16px;font-weight:600;color:var(--text-primary)}.avatar-section{display:flex;flex-direction:column;align-items:center;gap:16px}.avatar-preview{position:relative;width:120px;height:120px;border-radius:50%;overflow:hidden;border:3px solid var(--border-color);background:var(--bg-tertiary);display:flex;align-items:center;justify-content:center}.avatar-image{width:100%;height:100%;object-fit:cover}.avatar-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:48px;font-weight:600;color:var(--text-primary);background:var(--accent-color);border-radius:50%}.avatar-upload-label{padding:10px 20px;background:var(--accent-color);color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:14px;font-weight:500;display:inline-flex;align-items:center;gap:8px;transition:background .2s ease}.avatar-upload-label:hover:not(:disabled){background:var(--accent-hover)}.avatar-upload-label:disabled{opacity:.6;cursor:not-allowed}.form-group{margin-bottom:16px}.form-group label{display:block;margin-bottom:8px;font-size:14px;font-weight:500;color:#fff}.form-group input{width:100%;padding:10px 12px;border:1px solid var(--border-color);border-radius:8px;font-size:14px;transition:all .2s ease}.form-group input:focus{outline:none;border-color:var(--accent-color);box-shadow:0 0 0 3px #10a37f1a}.form-group input:disabled{opacity:.6;cursor:not-allowed}.btn-primary{padding:10px 20px;background:var(--accent-color);border:none;border-radius:8px;color:#fff;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease}.btn-primary:hover:not(:disabled){background:var(--accent-hover);transform:translateY(-1px);box-shadow:0 4px 12px #10a37f4d}.btn-primary:disabled{opacity:.6;cursor:not-allowed;transform:none}.theme-selector{display:flex;gap:12px}.theme-option{flex:1;padding:16px;background:var(--bg-tertiary);border:2px solid var(--border-color);border-radius:8px;color:var(--text-primary);cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:8px;transition:all .2s ease}.theme-option:hover:not(:disabled){border-color:var(--accent-color);background:var(--bg-secondary)}.theme-option.active{border-color:var(--accent-color);background:#10a37f1a}.theme-option:disabled{opacity:.6;cursor:not-allowed}.theme-option span{font-size:14px;font-weight:500}.account-btn{margin-bottom:8px}.mobile-menu-btn{display:none;position:fixed;top:16px;left:16px;z-index:1001;background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:8px;padding:10px;cursor:pointer;color:var(--text-primary);box-shadow:0 2px 8px #0000001a;transition:all .3s ease}.mobile-menu-btn:hover{background:var(--bg-tertiary);border-color:var(--accent-color)}.mobile-menu-btn svg{width:24px;height:24px}.sidebar-overlay{display:none;position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;z-index:999;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.sidebar-close-btn{display:none;position:absolute;top:16px;right:16px;background:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:8px;padding:8px;cursor:pointer;color:var(--text-primary);z-index:1002;transition:all .3s ease}.sidebar-close-btn:hover{background:var(--bg-primary);border-color:var(--accent-color)}.sidebar-close-btn svg{width:20px;height:20px}@media (max-width: 768px){.mobile-menu-btn,.sidebar-overlay{display:block}.sidebar{position:fixed;left:-100%;top:0;height:100vh;z-index:1000;transition:left .3s ease;box-shadow:2px 0 8px #0000001a}.sidebar.sidebar-open{left:0}.sidebar-close-btn{display:block}.messages-container,.input-container{padding:16px}.account-settings-modal{width:95%;max-height:95vh}.theme-selector{flex-direction:column}}*{margin:0;padding:0;box-sizing:border-box}:root{--bg-primary: #0F0F0F;--bg-secondary: #1A1A1A;--text-primary: #FFFFFF;--text-secondary: #A1A1AA;--color-primary: #4D3FFF;--color-secondary: #FFFFFF;--accent-violet: #8B7FFF;--accent-cyan: #22D3EE;--border-color: #2E2E2E;--success: #34D399;--error: #F87171;--warning: #FBBF24;--bg-tertiary: #2E2E2E;--accent-color: #4D3FFF;--accent-hover: #6B4FFF;--message-user-bg: #1A1A1A;--message-assistant-bg: #0F0F0F;--input-bg: #1A1A1A;--sidebar-width: 260px;--shadow-color: rgba(0, 0, 0, .3)}[data-theme=light]{--bg-primary: #E8E8E8;--bg-secondary: #FFFFFF;--text-primary: #000000;--text-secondary: #6B7280;--color-primary: #0D00FF;--color-secondary: #0A0A0A;--accent-violet: #6B4FFF;--accent-cyan: #00D4FF;--border-color: #D1D5DB;--success: #10B981;--error: #EF4444;--warning: #F59E0B;--bg-tertiary: #F7F7F7;--accent-color: #0D00FF;--accent-hover: #1A0AFF;--message-user-bg: #FFFFFF;--message-assistant-bg: #E8E8E8;--input-bg: #FFFFFF;--shadow-color: rgba(0, 0, 0, .1)}[data-theme=dark]{--bg-primary: #0F0F0F;--bg-secondary: #1A1A1A;--text-primary: #FFFFFF;--text-secondary: #A1A1AA;--color-primary: #4D3FFF;--color-secondary: #FFFFFF;--accent-violet: #8B7FFF;--accent-cyan: #22D3EE;--border-color: #2E2E2E;--success: #34D399;--error: #F87171;--warning: #FBBF24;--bg-tertiary: #2E2E2E;--accent-color: #4D3FFF;--accent-hover: #6B4FFF;--message-user-bg: #1A1A1A;--message-assistant-bg: #0F0F0F;--input-bg: #1A1A1A;--shadow-color: rgba(0, 0, 0, .3)}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;background-color:var(--bg-primary);color:var(--text-primary);height:100vh;overflow:hidden}#root{height:100vh}
