.app{display:flex;min-height:100vh;max-height:100vh;overflow:hidden;background:linear-gradient(180deg,#fff,#f8fafc)}.sidebar{width:280px;background:#fff;border-left:1px solid var(--border-light);display:flex;flex-direction:column;flex-shrink:0}.sidebar-header{padding:1.25rem;border-bottom:1px solid var(--border-light)}.logo{display:flex;align-items:center;gap:.75rem}.logo-icon{width:42px;height:42px;background:var(--gradient-primary);border-radius:12px;display:flex;align-items:center;justify-content:center;color:#fff;box-shadow:0 4px 14px #25d36666;flex-shrink:0}.logo-icon svg{width:22px;height:22px}.logo-text h1{font-size:1.25rem;font-weight:700;color:var(--text-primary);letter-spacing:-.02em}.logo-text span{font-size:.7rem;color:var(--text-muted);font-weight:500}.upload-btn{display:flex;align-items:center;justify-content:center;gap:.5rem;margin:1rem;padding:.875rem 1rem;background:var(--gradient-primary);border:none;border-radius:12px;color:#fff;font-family:inherit;font-size:.9rem;font-weight:600;cursor:pointer;transition:all .2s ease;box-shadow:0 4px 14px #25d3664d}.upload-btn:hover{transform:translateY(-2px);box-shadow:0 6px 20px #25d36666}.upload-btn svg{width:20px;height:20px}.chat-list{flex:1;overflow-y:auto;padding:0 .75rem 1rem}.chat-list-header{font-size:.75rem;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;padding:.75rem .5rem}.no-chats{text-align:center;padding:2rem 1rem;color:var(--text-muted);font-size:.875rem;line-height:1.6}.chat-item{display:flex;align-items:center;justify-content:space-between;padding:.875rem 1rem;border-radius:10px;cursor:pointer;transition:all .2s ease;margin-bottom:.25rem}.chat-item:hover{background:var(--bg-tertiary)}.chat-item.active{background:var(--accent-light);border-right:3px solid var(--accent)}.chat-item.processing{opacity:.6;cursor:default}.chat-item-info{display:flex;flex-direction:column;gap:.25rem;overflow:hidden}.chat-name{font-size:.9rem;font-weight:600;color:var(--text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:default}.chat-name-input{font-size:.9rem;font-weight:600;color:var(--text-primary);background:var(--bg-primary);border:1px solid var(--accent);border-radius:6px;padding:.25rem .5rem;width:100%;outline:none;font-family:inherit}.chat-name-input:focus{box-shadow:0 0 0 2px var(--accent-light)}.chat-count{font-size:.75rem;color:var(--text-muted)}.chat-item-actions{display:flex;gap:.25rem;opacity:0;transition:opacity .2s ease}.chat-item:hover .chat-item-actions{opacity:1}.edit-btn,.delete-btn{width:28px;height:28px;display:flex;align-items:center;justify-content:center;background:transparent;border:none;border-radius:6px;color:var(--text-muted);cursor:pointer;transition:all .2s ease;flex-shrink:0}.edit-btn:hover{background:var(--accent-light);color:var(--accent)}.delete-btn:hover{background:#fee2e2;color:#ef4444}.edit-btn svg,.delete-btn svg{width:14px;height:14px}.main-content{flex:1;display:flex;flex-direction:column;min-width:0}.header{background:#fffc;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-bottom:1px solid var(--border-light);padding:1rem 2rem;flex-shrink:0}.header-content{max-width:900px;margin:0 auto;display:flex;justify-content:space-between;align-items:center}.chat-title h2{font-size:1.25rem;font-weight:700;color:var(--text-primary)}.stats{display:flex;gap:1.5rem}.stat{display:flex;flex-direction:column;align-items:flex-start;padding:.5rem 1rem;background:var(--bg-tertiary);border-radius:12px;transition:all .2s ease}.stat:hover{background:var(--accent-light)}.stat-value{font-size:1.25rem;font-weight:700;color:var(--accent)}.stat-label{font-size:.7rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;font-weight:600}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.modal{background:#fff;border-radius:20px;width:90%;max-width:480px;box-shadow:0 25px 50px -12px #00000040;animation:modalIn .3s ease-out}@keyframes modalIn{0%{opacity:0;transform:scale(.95) translateY(10px)}to{opacity:1;transform:scale(1) translateY(0)}}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem;border-bottom:1px solid var(--border-light)}.modal-header h2{font-size:1.25rem;font-weight:700;color:var(--text-primary)}.close-btn{width:36px;height:36px;display:flex;align-items:center;justify-content:center;background:var(--bg-tertiary);border:none;border-radius:10px;color:var(--text-secondary);cursor:pointer;transition:all .2s ease}.close-btn:hover{background:var(--border-color);color:var(--text-primary)}.close-btn svg{width:18px;height:18px}.drop-zone{padding:3rem 2rem;margin:1.5rem;border:2px dashed var(--border-color);border-radius:16px;text-align:center;cursor:pointer;transition:all .2s ease}.drop-zone:hover,.drop-zone.dragging{border-color:var(--accent);background:var(--accent-light)}.drop-icon{width:64px;height:64px;margin:0 auto 1rem;background:var(--accent-light);border-radius:16px;display:flex;align-items:center;justify-content:center;color:var(--accent);transition:all .2s ease}.drop-zone:hover .drop-icon,.drop-zone.dragging .drop-icon{background:var(--accent);color:#fff;transform:scale(1.1)}.drop-icon svg{width:28px;height:28px}.drop-text{font-size:1rem;font-weight:600;color:var(--text-primary);margin-bottom:.5rem}.drop-hint{font-size:.875rem;color:var(--text-muted)}.upload-progress{padding:2rem 1.5rem}.progress-complete{text-align:center;padding:2rem 0}.complete-icon{width:64px;height:64px;margin:0 auto 1rem;background:var(--accent-light);border-radius:50%;display:flex;align-items:center;justify-content:center;animation:scaleIn .3s ease-out}.complete-icon svg{width:32px;height:32px;color:var(--accent)}.complete-message{font-size:1.125rem;font-weight:600;color:var(--accent)}.progress-error{text-align:center;padding:2rem 0}.error-icon{width:64px;height:64px;margin:0 auto 1rem;background:#fee2e2;border-radius:50%;display:flex;align-items:center;justify-content:center}.error-icon svg{width:32px;height:32px;color:#ef4444}.error-message{font-size:.95rem;color:#ef4444;max-width:300px;margin:0 auto}.progress-steps{display:flex;flex-direction:column;gap:.5rem}.progress-step{display:flex;align-items:flex-start;gap:1rem;padding:1rem;border-radius:12px;transition:all .2s ease}.progress-step.pending{opacity:.5}.progress-step.in_progress{background:var(--accent-light)}.progress-step.completed{opacity:1}.progress-step.error{background:#fee2e2}.step-indicator{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;background:var(--bg-tertiary);color:var(--text-muted);font-weight:600;font-size:.875rem;transition:all .2s ease}.progress-step.in_progress .step-indicator,.progress-step.completed .step-indicator{background:var(--accent);color:#fff}.progress-step.completed .step-indicator svg{width:18px;height:18px}.progress-step.error .step-indicator{background:#ef4444;color:#fff}.step-spinner{width:20px;height:20px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@keyframes scaleIn{0%{transform:scale(.8);opacity:0}to{transform:scale(1);opacity:1}}.step-content{flex:1;min-width:0}.step-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.step-title{font-weight:600;color:var(--text-primary);font-size:.95rem}.progress-step.pending .step-title{color:var(--text-muted)}.step-status{font-size:.8rem;color:var(--accent);font-weight:500}.step-progress-bar{height:6px;background:#0000001a;border-radius:100px;overflow:hidden}.step-progress-fill{height:100%;background:var(--accent);border-radius:100px;transition:width .3s ease}.chat-container{flex:1;overflow-y:auto;padding:2rem;background:linear-gradient(180deg,transparent 0%,rgba(248,250,252,.5) 100%)}.messages{max-width:800px;margin:0 auto;display:flex;flex-direction:column;gap:1.25rem}.welcome{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:5rem 2rem;animation:slideUp .6s ease-out}.welcome-icon{width:100px;height:100px;background:var(--gradient-primary);border-radius:28px;display:flex;align-items:center;justify-content:center;margin-bottom:2rem;color:#fff;box-shadow:0 8px 30px #25d36659;animation:float 4s ease-in-out infinite}.welcome-icon svg{width:50px;height:50px}.welcome h2{font-size:2rem;font-weight:700;margin-bottom:.75rem;background:var(--gradient-primary);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;letter-spacing:-.02em}.welcome p{color:var(--text-secondary);max-width:420px;line-height:1.7;margin-bottom:2rem;font-size:1rem}.cta-btn{padding:1rem 2rem;background:var(--gradient-primary);border:none;border-radius:100px;color:#fff;font-family:inherit;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 14px #25d36666}.cta-btn:hover{transform:translateY(-3px);box-shadow:0 8px 25px #25d36680}.suggestions{display:flex;flex-wrap:wrap;gap:.75rem;justify-content:center;max-width:600px}.suggestions button{padding:.75rem 1.25rem;background:var(--bg-primary);border:1px solid var(--border-color);border-radius:100px;color:var(--text-secondary);font-size:.9rem;font-weight:500;cursor:pointer;transition:all .25s ease;box-shadow:var(--shadow-sm)}.suggestions button:hover{background:var(--accent-light);border-color:var(--accent);color:var(--accent);transform:translateY(-2px);box-shadow:var(--shadow-md)}.message{animation:fadeIn .4s ease-out both}.message-content{display:flex;gap:1rem;align-items:flex-end}.message.user .message-content{flex-direction:row-reverse}.avatar{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:var(--shadow-sm)}.avatar svg{width:22px;height:22px}.user-avatar{background:var(--gradient-primary);color:#fff}.assistant-avatar{background:var(--bg-primary);border:2px solid var(--border-color);color:var(--accent)}.message-bubble{max-width:70%;padding:1rem 1.25rem;border-radius:20px;line-height:1.6;font-size:.95rem}.message.user .message-bubble{background:var(--gradient-primary);color:#fff;border-bottom-left-radius:6px;box-shadow:0 4px 14px #25d3664d}.sender-badge{display:inline-flex;align-items:center;gap:.375rem;background:#fff3;padding:.25rem .625rem;border-radius:100px;font-size:.75rem;margin-bottom:.5rem}.sender-badge svg{width:12px;height:12px;opacity:.9}.message.assistant .message-bubble{background:var(--bg-primary);border:1px solid var(--border-color);border-bottom-right-radius:6px;box-shadow:var(--shadow-md);color:var(--text-primary)}.message-bubble p{margin:0;white-space:pre-wrap}.message-bubble p.error{color:#ef4444}.markdown-content{line-height:1.7}.markdown-content p{margin:0 0 .75rem}.markdown-content p:last-child{margin-bottom:0}.markdown-content strong{font-weight:700;color:var(--text-primary)}.markdown-content em{font-style:italic}.markdown-content ul,.markdown-content ol{margin:.5rem 0;padding-right:1.5rem}.markdown-content li{margin:.25rem 0}.markdown-content code{background:var(--bg-tertiary);padding:.125rem .375rem;border-radius:4px;font-family:Monaco,Menlo,monospace;font-size:.85em}.markdown-content pre{background:var(--bg-tertiary);padding:.75rem 1rem;border-radius:8px;overflow-x:auto;margin:.75rem 0}.markdown-content pre code{background:none;padding:0}.markdown-content blockquote{border-right:3px solid var(--accent);padding-right:1rem;margin:.75rem 0;color:var(--text-secondary)}.markdown-content h1,.markdown-content h2,.markdown-content h3{margin:1rem 0 .5rem;color:var(--text-primary)}.markdown-content h1{font-size:1.25rem}.markdown-content h2{font-size:1.125rem}.markdown-content h3{font-size:1rem}.markdown-content .citation{display:inline-flex;align-items:center;justify-content:center;background:var(--accent-light);color:var(--accent);border:none;border-radius:4px;padding:.1rem .35rem;font-size:.75rem;font-weight:600;font-family:inherit;cursor:pointer;transition:all .2s ease;vertical-align:middle;margin:0 .1rem;line-height:1}.markdown-content .citation:hover{background:var(--accent);color:#fff;transform:scale(1.1)}.citation-popup{position:fixed;z-index:1001;background:var(--bg-primary);border:1px solid var(--border-color);border-radius:12px;box-shadow:0 10px 40px #00000026;width:300px;max-width:calc(100vw - 2rem);animation:popupIn .2s ease-out;transform:translate(-50%)}@keyframes popupIn{0%{opacity:0;transform:translate(-50%) translateY(-8px)}to{opacity:1;transform:translate(-50%) translateY(0)}}.citation-popup:before{content:"";position:absolute;top:-8px;left:50%;transform:translate(-50%);border:8px solid transparent;border-bottom-color:var(--border-color);border-top:none}.citation-popup:after{content:"";position:absolute;top:-6px;left:50%;transform:translate(-50%);border:6px solid transparent;border-bottom-color:var(--bg-primary);border-top:none}.citation-popup-header{display:flex;align-items:center;gap:.5rem;padding:.75rem 1rem;border-bottom:1px solid var(--border-light);background:var(--bg-tertiary);border-radius:12px 12px 0 0}.citation-popup-ref{font-weight:700;color:var(--accent);background:var(--accent-light);padding:.125rem .5rem;border-radius:4px;font-size:.85rem}.citation-popup-sender{font-weight:600;color:var(--text-primary);flex:1;font-size:.9rem}.citation-popup-time{font-size:.75rem;color:var(--text-muted)}.citation-popup-close{width:24px;height:24px;display:flex;align-items:center;justify-content:center;background:transparent;border:none;border-radius:6px;color:var(--text-muted);cursor:pointer;transition:all .2s ease;margin-right:-.25rem}.citation-popup-close:hover{background:var(--border-color);color:var(--text-primary)}.citation-popup-close svg{width:14px;height:14px}.citation-popup-message{padding:1rem;margin:0;font-size:.9rem;line-height:1.6;color:var(--text-secondary);max-height:200px;overflow-y:auto;white-space:pre-wrap}.citation-popup.above{transform:translate(-50%) translateY(-100%)}.citation-popup.above:before{top:auto;bottom:-8px;border-bottom:none;border-top:8px solid var(--border-color)}.citation-popup.above:after{top:auto;bottom:-6px;border-bottom:none;border-top:6px solid var(--bg-primary)}@keyframes popupInAbove{0%{opacity:0;transform:translate(-50%) translateY(-100%) translateY(8px)}to{opacity:1;transform:translate(-50%) translateY(-100%)}}.citation-popup.above{animation:popupInAbove .2s ease-out}.sources-toggle{display:inline-flex;align-items:center;gap:.5rem;margin-top:1rem;padding:.5rem 1rem;background:var(--bg-tertiary);border:1px solid var(--border-color);border-radius:100px;color:var(--text-secondary);font-size:.8rem;font-weight:500;cursor:pointer;transition:all .2s ease}.sources-toggle svg{width:16px;height:16px}.sources-toggle:hover{background:var(--accent-light);border-color:var(--accent);color:var(--accent)}.sources{margin-top:1rem;display:flex;flex-direction:column;gap:.625rem;animation:fadeIn .25s ease-out}.source{padding:.875rem 1rem;background:var(--bg-tertiary);border-radius:12px;font-size:.875rem;border-right:3px solid var(--accent);transition:all .2s ease}.source:hover{background:var(--accent-light)}.source-header{display:flex;gap:.5rem;align-items:center;margin-bottom:.5rem}.source-ref{font-weight:700;color:var(--accent);background:var(--accent-light);padding:.125rem .375rem;border-radius:4px;font-size:.8rem}.source-sender{font-weight:600;color:var(--accent);flex:1}.source-time{font-size:.75rem;color:var(--text-muted);font-weight:500}.source-message{color:var(--text-secondary);margin:0;line-height:1.5}.message-bubble.loading{padding:1.25rem 1.5rem}.typing-indicator{display:flex;gap:6px;align-items:center}.typing-indicator span{width:10px;height:10px;background:var(--accent);border-radius:50%;animation:bounce 1.4s infinite ease-in-out}.typing-indicator span:nth-child(1){animation-delay:-.32s}.typing-indicator span:nth-child(2){animation-delay:-.16s}.input-container{background:#ffffffe6;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-top:1px solid var(--border-light);padding:1.25rem 2rem 1.5rem;flex-shrink:0}.input-wrapper{max-width:800px;margin:0 auto;display:flex;gap:.75rem;align-items:stretch}.sender-selector{position:relative;flex-shrink:0}.sender-selector select{-moz-appearance:none;appearance:none;-webkit-appearance:none;background:var(--bg-primary);border:2px solid var(--border-color);border-radius:100px;padding:.875rem 2.5rem .875rem 1rem;font-family:inherit;font-size:.9rem;color:var(--text-primary);cursor:pointer;transition:all .3s ease;min-width:140px;height:100%}.sender-selector select:hover{border-color:var(--accent)}.sender-selector select:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-light)}.sender-selector select:disabled{opacity:.6;cursor:not-allowed}.sender-selector .select-arrow{position:absolute;left:.75rem;top:50%;transform:translateY(-50%);width:18px;height:18px;color:var(--text-muted);pointer-events:none}.input-form{flex:1;display:flex;gap:1rem;background:var(--bg-primary);border:2px solid var(--border-color);border-radius:100px;padding:.375rem 1.5rem .375rem .375rem;transition:all .3s ease;box-shadow:var(--shadow-sm)}.input-form:focus-within{border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-light),var(--shadow-md)}.input-form input{flex:1;padding:.875rem 0;background:transparent;border:none;color:var(--text-primary);font-size:1rem;font-family:inherit;outline:none}.input-form input::placeholder{color:var(--text-muted)}.input-form input:disabled{opacity:.6;cursor:not-allowed}.input-form button{width:52px;height:52px;background:var(--gradient-primary);border:none;border-radius:50%;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .3s ease;flex-shrink:0;box-shadow:0 4px 14px #25d36666}.input-form button svg{width:22px;height:22px;transform:scaleX(-1)}.input-form button:hover:not(:disabled){transform:scale(1.08);box-shadow:0 6px 20px #25d36680}.input-form button:active:not(:disabled){transform:scale(.98)}.input-form button:disabled{opacity:.5;cursor:not-allowed;transform:none;box-shadow:none}.disclaimer{text-align:center;font-size:.75rem;color:var(--text-muted);margin-top:1rem}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes float{0%,to{transform:translateY(0)}50%{transform:translateY(-10px)}}@keyframes bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.mobile-header,.sidebar-close{display:none}@media (max-width: 900px){.app{flex-direction:column}.sidebar{position:fixed;top:0;right:-300px;width:280px;height:100vh;z-index:1001;transition:right .3s ease;border-left:none;box-shadow:-5px 0 25px #00000026}.sidebar.open{right:0}.sidebar-close{display:flex;width:36px;height:36px;align-items:center;justify-content:center;background:var(--bg-tertiary);border:none;border-radius:10px;color:var(--text-secondary);cursor:pointer;flex-shrink:0}.sidebar-close svg{width:18px;height:18px}.sidebar-header{display:flex;justify-content:space-between;align-items:center}.mobile-header{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;background:#fff;border-bottom:1px solid var(--border-light);position:sticky;top:0;z-index:100}.menu-btn,.mobile-upload-btn{width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:var(--bg-tertiary);border:none;border-radius:10px;color:var(--text-secondary);cursor:pointer;transition:all .2s ease}.menu-btn:hover,.mobile-upload-btn:hover{background:var(--accent-light);color:var(--accent)}.menu-btn svg,.mobile-upload-btn svg{width:20px;height:20px}.mobile-title{font-weight:600;font-size:1rem;color:var(--text-primary);text-align:center;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 .5rem}.mobile-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;z-index:1000;animation:fadeIn .2s ease}.main-content{flex:1;min-height:0;display:flex;flex-direction:column}.header{display:none}}@media (max-width: 640px){.chat-container{padding:.75rem}.messages{gap:1rem}.message-bubble{max-width:88%;padding:.875rem 1rem;font-size:.9rem}.avatar{width:32px;height:32px}.avatar svg{width:18px;height:18px}.message-content{gap:.5rem}.welcome{padding:2rem 1rem}.welcome-icon{width:70px;height:70px;border-radius:20px;margin-bottom:1.5rem}.welcome-icon svg{width:35px;height:35px}.welcome h2{font-size:1.5rem}.welcome p{font-size:.9rem;margin-bottom:1.5rem}.cta-btn{padding:.875rem 1.5rem;font-size:.9rem}.suggestions{flex-direction:column;width:100%;gap:.5rem}.suggestions button{width:100%;padding:.625rem 1rem;font-size:.85rem}.input-container{padding:.75rem;padding-bottom:calc(.75rem + env(safe-area-inset-bottom,0px))}.input-wrapper{gap:.5rem}.sender-selector{display:none}.input-form{padding:.25rem .75rem .25rem .25rem}.input-form input{padding:.75rem 0;font-size:.95rem}.input-form button{width:44px;height:44px}.input-form button svg{width:20px;height:20px}.disclaimer{display:none}.sources{gap:.5rem}.source{padding:.75rem;font-size:.8rem}.sources-toggle{padding:.4rem .75rem;font-size:.75rem}.citation-popup{width:calc(100vw - 2rem);max-width:320px}.citation-popup-message{max-height:150px;font-size:.85rem}.modal{width:95%;max-height:90vh;overflow-y:auto}.modal-header{padding:1rem}.drop-zone{padding:2rem 1rem;margin:1rem}.drop-icon{width:50px;height:50px}.drop-icon svg{width:24px;height:24px}.drop-text{font-size:.9rem}.drop-hint{font-size:.8rem}.upload-progress{padding:1.5rem 1rem}.progress-step{padding:.75rem}.step-indicator{width:32px;height:32px;font-size:.8rem}.step-title{font-size:.875rem}.login-card{padding:2rem 1.5rem}.login-card h1{font-size:1.75rem}}.login-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#fff,#f8fafc)}.login-card{background:#fff;padding:3rem;border-radius:20px;text-align:center;box-shadow:0 10px 40px #0000001a;max-width:400px;width:90%;animation:modalIn .3s ease-out}.login-card h1{font-size:2rem;font-weight:700;background:var(--gradient-primary);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;margin-bottom:.5rem}.login-subtitle{color:var(--text-muted);margin-bottom:2rem;font-size:.95rem}.login-card form{display:flex;flex-direction:column;gap:1rem}.login-card input{width:100%;padding:1rem;border:2px solid var(--border-color);border-radius:100px;text-align:center;font-size:1rem;font-family:inherit;transition:all .2s ease;box-sizing:border-box}.login-card input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-light)}.login-card button{width:100%;padding:1rem;background:var(--gradient-primary);border:none;border-radius:100px;color:#fff;font-weight:600;font-size:1rem;font-family:inherit;cursor:pointer;transition:all .2s ease;box-shadow:0 4px 14px #25d36666}.login-card button:hover{transform:translateY(-2px);box-shadow:0 6px 20px #25d36680}.login-card .error{color:#ef4444;margin-top:.5rem;font-size:.9rem}.loading-spinner{width:40px;height:40px;border:3px solid var(--border-color);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite;margin:2rem auto 0}*{margin:0;padding:0;box-sizing:border-box}:root{--bg-primary: #ffffff;--bg-secondary: #f0f2f5;--bg-tertiary: #e9edef;--bg-message-user: linear-gradient(135deg, #25d366 0%, #128c7e 100%);--bg-message-assistant: #ffffff;--text-primary: #111b21;--text-secondary: #54656f;--text-muted: #8696a0;--border-color: #d1d7db;--border-light: #e9edef;--accent: #25d366;--accent-dark: #128c7e;--accent-light: #dcf8c6;--accent-hover: #1da851;--shadow-sm: 0 1px 2px rgba(0, 0, 0, .06);--shadow-md: 0 4px 12px rgba(0, 0, 0, .1);--shadow-lg: 0 12px 40px rgba(0, 0, 0, .15);--gradient-primary: linear-gradient(135deg, #25d366 0%, #128c7e 100%);--gradient-secondary: linear-gradient(135deg, #dcf8c6 0%, #25d366 100%)}body{font-family:Secular One,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:var(--bg-secondary);color:var(--text-primary);min-height:100vh;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;direction:rtl;text-align:right}#root{min-height:100vh;display:flex;flex-direction:column}::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--border-color);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--text-muted)}@keyframes fadeIn{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(.95)}}@keyframes bounce{0%,to{transform:translateY(0)}50%{transform:translateY(-4px)}}@keyframes shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}@keyframes float{0%,to{transform:translateY(0) rotate(0)}50%{transform:translateY(-10px) rotate(2deg)}}
