:root{--bg: #f5f7fb;--panel: #ffffff;--border: #e7e9ef;--text: #1f2430;--muted: #6b7280;--ai: #5a6cff;--user: #e9ecef;--shadow: 0 8px 30px rgba(0,0,0,.06)}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;color:var(--text);background:#e5e7eb}.app{height:100vh;display:grid;grid-template-columns:320px 280px 1fr 280px;gap:0;background:var(--bg)}.app.left-collapsed{grid-template-columns:56px 280px 1fr 280px}.leftbar{background:var(--panel);border-right:2px solid var(--border);border-color:#dde0fb;display:flex;flex-direction:column;position:relative;box-shadow:2px 0 8px #00000014}.leftbar.collapsed .brand,.leftbar.collapsed .search,.leftbar.collapsed .folders-help,.leftbar.collapsed .leftbar-list,.brand-logo{display:none}.leftbar.collapsed .brand-logo{display:flex;font-size:20px;font-weight:700;justify-content:center;align-items:center;width:40px;height:40px;background:#2d3748;color:#fff;border-radius:8px}.leftbar-header{display:flex;align-items:center;justify-content:space-between;padding:14px 12px}.leftbar.collapsed .leftbar-header{flex-direction:column;gap:12px;padding:12px 8px}.brand{font-weight:700;letter-spacing:.18em;color:#111827}.collapse-btn{border:none;background:transparent;cursor:pointer;color:#586079;padding:6px;border-radius:8px}.collapse-btn:hover{background:#eef0f6}.search{margin:8px 12px;display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--border);border-radius:10px;background:#fafbfe}.search input{border:none;outline:none;flex:1;background:transparent;color:var(--text);font-size:14px}.folders-help{font-size:11px;color:var(--muted);padding:0 14px 6px}.leftbar-list{overflow:auto;padding:6px 8px 12px}.group{margin-bottom:14px}.group-title{font-size:12px;color:#889;padding:8px;text-transform:uppercase;letter-spacing:.06em}.question-item{display:flex;align-items:center;gap:8px;padding:6px 8px;border-radius:10px;min-width:0}.num{flex-shrink:0;min-width:24px}.checkbox{position:relative;display:inline-flex;flex-shrink:0}.checkbox input{position:absolute;inset:0;opacity:0}.checkbox span{width:16px;height:16px;border:1px solid var(--border);border-radius:4px;display:inline-block;background:#fff}.checkbox input:checked+span{background:#4f46e5;border-color:#4f46e5;box-shadow:inset 0 0 0 2px #fff}.question-content-wrapper{display:flex;align-items:center;flex:1;min-width:0;gap:4px}.question-title{border:none;background:transparent;text-align:left;padding:4px 0;font-size:14px;cursor:pointer;flex:1;min-width:0;color:var(--text);overflow:hidden}.question-title-text{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.question-menu-container{position:relative;flex-shrink:0;display:flex;align-items:center}.dots-menu-btn{border:none;background:transparent;padding:4px;border-radius:6px;cursor:pointer;color:#6b7280;font-size:16px;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.dots-menu-btn:hover{background:#e5e7eb;color:#374151}.question-dropdown-menu{position:absolute;top:calc(100% + 2px);right:0;background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 4px 12px #00000026;min-width:140px;z-index:1000;overflow:hidden}.dropdown-menu-item{width:100%;display:flex;align-items:center;gap:10px;padding:10px 14px;border:none;background:transparent;color:var(--text);font-size:14px;text-align:left;cursor:pointer;transition:background .2s ease}.dropdown-menu-item:hover{background:#4f46e51a}.dropdown-menu-item.delete-item:hover{background:#ef44441a;color:#ef4444}.dropdown-menu-item svg{font-size:16px}.rename-input{flex:1;min-width:0;padding:4px 8px;border:1px solid #5a6cff;border-radius:6px;font-size:14px;outline:none;background:#fff;color:var(--text)}.sidebar-actions{display:flex;flex-direction:column;gap:6px;padding:0 12px;margin-bottom:12px}.leftbar.collapsed .sidebar-actions{display:none}.sidebar-action-btn{display:flex;align-items:center;gap:10px;padding:10px 14px;border:1px solid var(--border);background:#fff;border-radius:10px;cursor:pointer;font-size:14px;font-weight:500;color:var(--text);transition:all .2s ease}.sidebar-action-btn:hover{background:#f7f8fa;border-color:#d1d5db}.sidebar-action-btn .action-icon{font-size:18px;color:#6b7280}.sidebar-action-btn .action-text{flex:1;text-align:left}.project-modal-content{padding:20px 24px}.project-input-wrapper{margin-bottom:20px}.project-name-input{width:100%;padding:12px 16px;border:2px solid var(--border);border-radius:10px;font-size:15px;outline:none;transition:border-color .2s ease}.project-name-input:focus{border-color:#5a6cff}.project-categories{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}.project-category-btn{display:flex;align-items:center;gap:6px;padding:8px 14px;border:1px solid var(--border);background:#fff;border-radius:8px;cursor:pointer;font-size:14px;transition:all .2s ease}.project-category-btn:hover{background:#f7f8fa;border-color:#5a6cff}.project-category-btn span{color:var(--text)}.project-description{padding:16px;background:#f9fafb;border-radius:10px;margin-bottom:20px}.project-description p{margin:0;font-size:13px;line-height:1.5;color:var(--muted)}.project-modal-footer{display:flex;justify-content:flex-end}.create-project-btn{padding:10px 24px;border:none;background:#5a6cff;color:#fff;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s ease}.create-project-btn:hover:not(:disabled){background:#4a5cd5;transform:translateY(-1px);box-shadow:0 4px 12px #5a6cff4d}.create-project-btn:disabled{opacity:.5;cursor:not-allowed}.chat-root{display:flex;flex-direction:column;height:100vh;background:var(--bg)}.chat-header{height:56px;display:flex;align-items:center;padding:0 16px;gap:10px;border-bottom:2px solid var(--border);border-color:#dde0fb;background:var(--panel)}.chat-title{font-weight:700;letter-spacing:.18em}.chat-right-tools{margin-left:auto}.pill-btn{border:1px solid var(--border);background:#fff;border-radius:999px;padding:6px 12px;font-size:13px;display:flex;align-items:center;gap:6px;cursor:pointer}.pill-btn:hover{background:#f7f7fb}.chat-scroll{flex:1;overflow:auto;padding:16px 18px 90px}.msg-row{display:grid;grid-template-columns:36px minmax(0,1fr) 24px;align-items:flex-start;gap:8px;margin:10px 0}.msg-index{font-weight:700;color:#5a67d8;padding-top:8px;text-align:right}.msg-ellipsis{color:#9aa0ab;padding-top:10px}.bubble{position:relative;border-radius:12px;padding:8px 10px;box-shadow:var(--shadow)}.bubble.ai{background:var(--ai);color:#fff}.bubble.user{background:var(--user);color:#111}.bubble-header{display:flex;align-items:center;gap:6px}.spacer{flex:1}.icon-btn{border:none;background:transparent;color:inherit;padding:4px;border-radius:8px;cursor:pointer}.icon-btn:hover{background:#ffffff26}.bubble.user .icon-btn:hover{background:#0000000d}.pin.active{color:#ff2d55}.menu{position:absolute;right:8px;top:30px;background:#fff;color:#111;border:1px solid var(--border);box-shadow:var(--shadow);border-radius:10px;z-index:10;display:flex;gap:4px;padding:6px}.menu button{display:flex;align-items:center;justify-content:center;border:none;background:transparent;padding:8px;cursor:pointer;border-radius:6px}.menu button:hover{background:#f7f7fb}.menu button svg{font-size:18px;color:#586079}.caret{opacity:.8}.caret-icon{transition:transform .18s ease}.caret-icon.rotated{transform:rotate(180deg)}.bubble-text{font-size:14px;line-height:1.5;margin-top:2px;white-space:pre-wrap;word-wrap:break-word}.clamped .bubble-text{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.chat-input{position:sticky;bottom:0;background:var(--panel);border-top:1px solid var(--border);display:flex;gap:8px;align-items:center;padding:10px 12px}.input-left{display:flex;gap:8px;align-items:center}.circle-btn{width:34px;height:34px;border-radius:50%;border:1px solid var(--border);background:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:18px;color:#586079;transition:all .3s ease}.circle-btn:hover{background:#f7f7fb}.circle-btn.recording-active{background:#ef4444;border-color:#dc2626;color:#fff;animation:recordingPulse 1.5s ease-in-out infinite}@keyframes recordingPulse{0%,to{box-shadow:0 0 #ef4444b3}50%{box-shadow:0 0 0 8px #ef444400}}.text-input-wrapper{flex:1;display:flex;flex-direction:column;border:1px solid var(--border);background:#fff;border-radius:12px;padding:6px}.text-input-wrapper:focus-within{border-color:#aab1ff;box-shadow:0 0 0 3px #5a6cff26}.file-previews{display:flex;gap:8px;padding:6px;flex-wrap:wrap}.file-preview-item{position:relative;width:80px;height:80px;border-radius:8px;overflow:hidden;background:#f3f4f6;display:flex;align-items:center;justify-content:center}.file-preview-image{width:100%;height:100%;object-fit:cover}.file-preview-icon{font-size:32px}.file-preview-remove{position:absolute;top:4px;right:4px;width:20px;height:20px;border-radius:50%;background:#000000b3;color:#fff;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:12px;transition:all .2s ease}.file-preview-remove:hover{background:#000000e6;transform:scale(1.1)}.text-input-row{display:flex;align-items:center;gap:8px;padding:0 6px}.recording-indicator{display:flex;align-items:center;gap:12px;padding:12px;background:#fef2f2;border-radius:8px;margin-bottom:6px}.recording-pulse{width:12px;height:12px;border-radius:50%;background:#ef4444;animation:pulse 1.5s ease-in-out infinite}@keyframes pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(.8)}}.recording-text{font-size:14px;font-weight:500;color:#991b1b;flex:1}.recording-time{font-size:14px;font-weight:600;color:#dc2626;font-variant-numeric:tabular-nums}.recording-stop{padding:6px 16px;border-radius:6px;background:#dc2626;color:#fff;border:none;cursor:pointer;font-size:13px;font-weight:500;transition:all .2s ease}.recording-stop:hover{background:#b91c1c}.recording-stop:active{transform:scale(.95)}.input-icon-btn{border:none;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:18px;color:#586079;padding:4px}.input-icon-btn:hover{color:#5865f2}.input-icon-btn.close-reply:hover{color:#dc2626}.text-input{flex:1;border:none;background:transparent;padding:6px 8px;font-size:14px;outline:none;font-family:inherit;resize:none;line-height:1.5;min-height:24px;max-height:120px;overflow-y:auto}.send-btn{border:none;background:#5865f2;color:#fff;border-radius:8px;font-weight:600;cursor:pointer;width:36px;height:36px;display:flex;align-items:center;justify-content:center;font-size:18px}.send-btn:hover{background:#4752c4}.send-btn:disabled{opacity:.5;cursor:not-allowed}.loading-spinner{width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .6s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.loading-message{display:flex;align-items:center;gap:12px;padding:16px;margin:8px 0}.loading-avatar{width:32px;height:32px;border-radius:50%;background:var(--ai);color:#fff;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:600;flex-shrink:0}.loading-dots{display:flex;gap:4px;padding:12px 16px;background:#f0f2f5;border-radius:18px}.loading-dots span{width:8px;height:8px;background:#90949c;border-radius:50%;animation:bounce 1.4s infinite ease-in-out both}.loading-dots span:nth-child(1){animation-delay:-.32s}.loading-dots span:nth-child(2){animation-delay:-.16s}@keyframes bounce{0%,80%,to{transform:scale(0);opacity:.5}40%{transform:scale(1);opacity:1}}.selection-popover{position:absolute;transform:translate(-50%,-6px);background:#111;color:#fff;padding:4px 8px;border-radius:8px;font-size:12px}.selection-action{border:none;background:transparent;color:#fff;cursor:pointer}.chatbot-sidebar{background:var(--panel);border-right:1px solid var(--border);display:flex;flex-direction:column;box-shadow:2px 0 8px #00000014,-2px 0 8px #00000014}.chatbot-header{height:56px;display:flex;align-items:center;gap:8px;padding:0 14px;border-bottom:2px solid var(--border);border-color:#dde0fb;background:var(--panel)}.chatbot-title{font-size:12px;color:#556;padding:0 14px 6px;font-weight:700}.chatbot-list{margin:10px;border:1px solid var(--border);border-radius:12px;overflow-y:auto;overflow-x:hidden;flex:1;min-height:0;background:#fff}.chatbot-list::-webkit-scrollbar{width:6px}.chatbot-list::-webkit-scrollbar-track{background:transparent}.chatbot-list::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:3px}.chatbot-list::-webkit-scrollbar-thumb:hover{background:#9ca3af}.chatbot-item{display:flex;align-items:flex-start;gap:10px;text-align:left;width:100%;border:none;background:transparent;padding:10px 12px;cursor:pointer;border-bottom:1px solid var(--border)}.chatbot-item:last-child{border-bottom:none}.chatbot-item:hover{background:#f9fafb}.chatbot-number{font-weight:700;width:24px;text-align:right;padding-top:2px;color:#5a67d8}.chatbot-text{font-size:13px;color:#374151}.chatbot-sidebar .pin-button-container{display:flex;justify-content:flex-end;padding:10px;margin-top:auto}.chatbot-sidebar .pin-button{width:48px;height:48px;border-radius:50%;background:#000;color:#fff;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:20px;transition:all .2s ease}.chatbot-sidebar .pin-button:hover{transform:scale(1.1);box-shadow:0 4px 12px #0000004d}.rightbar{background:#eaf1ff;border-left:1px solid var(--border);display:flex;flex-direction:column;box-shadow:-2px 0 8px #00000014}.rightbar-header{height:56px;display:flex;align-items:center;gap:8px;padding:0 14px;border-bottom:2px solid var(--border);border-color:#dde0fb;background:var(--panel)}.avatar{width:28px;height:28px;display:grid;place-items:center;background:#fff;border-radius:50%;border:1px solid var(--border)}.who{font-weight:700}.rightbar-title{font-size:12px;color:#556;padding:0 14px 6px}.rightbar-sub{font-size:11px;color:#7b8191;padding:0 14px}.rightbar-list{margin:10px;border:1px solid var(--border);border-radius:12px;overflow-y:auto;overflow-x:hidden;flex:1;min-height:0;background:#cdd9ff}.rightbar-list::-webkit-scrollbar{width:6px}.rightbar-list::-webkit-scrollbar-track{background:transparent}.rightbar-list::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:3px}.rightbar-list::-webkit-scrollbar-thumb:hover{background:#9ca3af}.right-item{display:flex;align-items:flex-start;gap:10px;text-align:left;width:100%;border:none;background:transparent;padding:10px 12px;cursor:pointer;border-bottom:1px solid #b5c5ff}.right-item:last-child{border-bottom:none}.right-item:hover{background:#b5c5ff}.right-number{font-weight:700;width:24px;text-align:right;padding-top:2px}.right-text{font-size:13px}.rightbar .pin-button-container{display:flex;justify-content:flex-end;padding:10px;margin-top:auto}.rightbar .pin-button{width:48px;height:48px;border-radius:50%;background:#5865f2;color:#fff;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:20px;transition:all .2s ease}.rightbar .pin-button:hover{transform:scale(1.1);box-shadow:0 4px 12px #5865f266}.modal-backdrop{position:fixed;inset:0;background:#11182773;display:flex;align-items:center;justify-content:center;padding:24px;z-index:100}.modal{background:#fff;border-radius:14px;box-shadow:var(--shadow);max-height:80vh;overflow:auto}.modal-title{padding:14px 16px;font-weight:700;border-bottom:1px solid var(--border)}.modal-body{padding:0;position:relative}.preview-hint{color:#666;font-size:12px;margin-bottom:10px}.preview-block{background:#f7f7fb;padding:10px;border-radius:8px;margin-bottom:8px}.preview-modal-content{display:flex;flex-direction:column;height:250px;position:relative}.preview-scrollable{flex:1;overflow-y:auto;overflow-x:hidden;padding:16px;min-height:0}.preview-scrollable::-webkit-scrollbar{width:8px}.preview-scrollable::-webkit-scrollbar-track{background:#f1f1f1}.preview-scrollable::-webkit-scrollbar-thumb{background:#888;border-radius:4px}.preview-scrollable::-webkit-scrollbar-thumb:hover{background:#555}.preview-text{color:#374151;line-height:1.6;font-size:14px;margin-bottom:16px}.preview-sub-messages{display:flex;flex-direction:column;gap:12px;margin-top:8px}.preview-sub-message{display:flex;gap:8px;align-items:flex-start}.preview-sub-number{font-weight:600;color:#1f2430;flex-shrink:0;min-width:20px}.preview-sub-text{color:#374151;line-height:1.6;font-size:14px;flex:1}.preview-new-window-btn{position:absolute;bottom:16px;left:16px;width:40px;height:40px;border-radius:50%;background:#5865f2;color:#fff;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:20px;box-shadow:0 2px 8px #5865f266;transition:all .2s ease;z-index:10}.preview-new-window-btn:hover{background:#4752c4;transform:scale(1.1);box-shadow:0 4px 12px #5865f299}.preview-new-window-btn:active{transform:scale(.95)}.detail-modal-wrapper{display:flex;flex-direction:column;height:100%}.detail-modal-content{padding:16px;max-height:400px;overflow-y:auto;flex:1}.detail-scrollable{display:flex;flex-direction:column;gap:16px}.detail-scrollable::-webkit-scrollbar{width:6px}.detail-scrollable::-webkit-scrollbar-track{background:transparent}.detail-scrollable::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:3px}.detail-scrollable::-webkit-scrollbar-thumb:hover{background:#9ca3af}.detail-main-text{color:#374151;line-height:1.6;font-size:14px;padding-bottom:12px;border-bottom:1px solid var(--border);white-space:pre-wrap;word-wrap:break-word}.detail-sub-messages{display:flex;flex-direction:column;gap:16px}.detail-sub-thread{display:flex;flex-direction:column;gap:12px}.detail-sub-item{display:flex;gap:8px;align-items:flex-start}.detail-sub-number{font-weight:600;color:#1f2430;flex-shrink:0;min-width:20px;margin-top:2px}.detail-sub-content{flex:1;background:#fef3c7;border-radius:6px;padding:10px 12px;position:relative;display:flex;align-items:center;gap:8px}.detail-sub-text{flex:1;color:#374151;line-height:1.6;font-size:14px;white-space:pre-wrap;word-wrap:break-word}.detail-reply-btn{flex-shrink:0;width:28px;height:28px;border-radius:4px;background:transparent;border:1px solid #d1d5db;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:16px;color:#6b7280;transition:all .2s ease}.detail-reply-btn:hover{background:#fff;border-color:#9ca3af;color:#374151}.detail-reply-btn:active{transform:scale(.95)}.detail-thread-replies{display:flex;flex-direction:column;gap:8px;margin-left:28px}.detail-thread-reply{padding:12px;border-radius:8px;display:flex;flex-direction:column;gap:6px}.detail-thread-reply.ai-reply{background:#5865f2;color:#fff}.detail-thread-reply.user-reply{background:#f3f4f6;color:#374151}.detail-thread-number{font-weight:700;font-size:13px}.detail-thread-reply.ai-reply .detail-thread-number{color:#fff}.detail-thread-reply.user-reply .detail-thread-number{color:#1f2430}.detail-thread-text{line-height:1.6;font-size:14px}.detail-thread-reply.ai-reply .detail-thread-text{color:#fff}.detail-thread-reply.user-reply .detail-thread-text{color:#374151}.detail-input-area{padding:12px 16px;border-top:1px solid var(--border);background:#fff;display:flex;gap:8px;align-items:center}.detail-input-left{display:flex;gap:6px}.detail-circle-btn{width:40px;height:40px;border-radius:50%;border:1px solid var(--border);background:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:18px;color:#586079;transition:all .2s ease}.detail-circle-btn:hover{background:#f9fafb;border-color:#aab1ff}.detail-circle-btn.recording-active{background:#ef4444;border-color:#dc2626;color:#fff;animation:recordingPulse 1.5s ease-in-out infinite}.detail-text-input-wrapper{flex:1;display:flex;flex-direction:column;border:1px solid var(--border);background:#fff;border-radius:12px;padding:6px}.detail-text-input-wrapper:focus-within{border-color:#aab1ff;box-shadow:0 0 0 3px #5a6cff26}.detail-text-input-row{display:flex;align-items:center;gap:8px;padding:0 6px}.detail-icon-btn{border:none;background:transparent;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:18px;color:#586079;padding:4px}.detail-icon-btn:hover{color:#5865f2}.detail-text-input{flex:1;border:none;background:transparent;padding:6px 8px;font-size:14px;outline:none;font-family:inherit}.detail-send-btn{width:36px;height:36px;border-radius:8px;font-size:18px;border:none;background:#5865f2;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.detail-send-btn:hover{background:#4752c4}.detail-send-btn:active{transform:scale(.95)}.pin-list{list-style:none;margin:0;padding:0}.pin-list li{padding:6px 0}.pin-jump{border:none;background:transparent;text-align:left;cursor:pointer;color:#374151}.pin-jump:hover{text-decoration:underline}.empty{color:#6b7280}.pinned-toggle{background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:0 4px 12px #00000026;margin:10px;height:400px;display:flex;flex-direction:column;animation:slideDown .3s ease-out}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.pinned-toggle-header{display:flex;justify-content:center;align-items:center;padding:8px;border-bottom:1px solid var(--border);flex-shrink:0}.pinned-toggle-close{width:32px;height:32px;border-radius:50%;background:#f7f7fb;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#5865f2;font-size:16px;transition:all .2s ease}.pinned-toggle-close:hover{background:#eef0f6;transform:rotate(15deg)}.pinned-toggle-body{padding:12px;overflow-y:auto;overflow-x:hidden;flex:1;min-height:0}.pinned-toggle-body::-webkit-scrollbar{width:6px}.pinned-toggle-body::-webkit-scrollbar-track{background:transparent}.pinned-toggle-body::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:3px}.pinned-toggle-body::-webkit-scrollbar-thumb:hover{background:#9ca3af}.pin-button.rotating{animation:rotatePin .3s ease-out}@keyframes rotatePin{0%{transform:rotate(0)}to{transform:rotate(45deg)}}.pinned-empty{color:#6b7280;text-align:center;padding:24px;font-size:14px}.pinned-list{display:flex;flex-direction:column;gap:12px}.pinned-card{background:#fff;border:1px solid var(--border);border-radius:8px;padding:12px;cursor:pointer;transition:all .2s ease}.pinned-card:hover{background:#f9fafb;box-shadow:0 2px 8px #0000001a}.pinned-card-header{display:flex;align-items:center;gap:6px;margin-bottom:8px}.pinned-card-icon{color:#5865f2;font-size:14px}.pinned-card-number{font-weight:700;color:#1f2430;font-size:14px}.pinned-card-text{color:#374151;font-size:13px;line-height:1.5}.group{margin-bottom:10px}.group-header{display:flex;align-items:center;gap:8px;padding:8px;width:100%;border:none;background:transparent;cursor:pointer;border-radius:10px}.group-header:hover{background:#f6f7fb}.document-icon{color:#6b7280;flex-shrink:0}.group-list{margin:0;padding:0 4px 0 6px}.question-item{display:grid;grid-template-columns:22px 1fr;align-items:center;gap:8px;padding:6px 8px;border-radius:10px}.question-item:hover{background:#f6f7fb}.num{width:22px;text-align:right;font-weight:700;color:#9aa0ab}@media(max-width:1400px){.app{grid-template-columns:320px 1fr 280px}.app.left-collapsed{grid-template-columns:56px 1fr 280px}.chatbot-sidebar{display:none}}@media(max-width:1024px){.app{grid-template-columns:280px 1fr}.app.left-collapsed{grid-template-columns:56px 1fr}.rightbar{display:none}.chat-input{grid-template-columns:120px 1fr 48px;padding:8px 10px}.circle-btn{width:30px;height:30px;font-size:14px}}@media(max-width:768px){.app{grid-template-columns:56px 1fr}.app.left-collapsed{grid-template-columns:0 1fr}.leftbar{position:fixed;left:0;top:0;bottom:0;width:280px;z-index:1000;transform:translate(-100%);transition:transform .3s ease;box-shadow:2px 0 10px #0000001a}.leftbar:not(.collapsed){transform:translate(0)}.chat-header{padding:0 12px}.chat-title{font-size:14px}.msg-row{grid-template-columns:28px minmax(0,1fr) 20px;gap:6px}.msg-index{font-size:13px}.bubble{padding:8px 10px;font-size:14px}.chat-input{grid-template-columns:1fr 48px}.input-left{display:none}}@media(max-width:480px){.app{grid-template-columns:1fr}.chatbot-sidebar,.rightbar{display:none!important}.chat-root{width:100%}.chat-header{padding:0 10px;height:48px}.chat-scroll{padding:12px 10px 80px}.msg-row{grid-template-columns:24px minmax(0,1fr) 18px;gap:4px;margin:6px 0}.msg-index{font-size:12px;padding-top:6px}.bubble{padding:8px 10px;font-size:13px;border-radius:10px}.bubble-header{gap:4px}.icon-btn{padding:3px}.chat-input{grid-template-columns:1fr 44px;padding:8px}.text-input{padding:8px 10px;font-size:14px}.send-btn{width:44px;font-size:16px}.modal{margin:10px;max-height:90vh;width:calc(100% - 20px)}.modal-title{font-size:14px;padding:12px}.modal-body{padding:12px}.selection-popover{font-size:11px;padding:3px 6px}}@media(max-width:360px){.chat-header{padding:0 8px}.chat-scroll{padding:10px 8px 70px}.msg-row{grid-template-columns:20px minmax(0,1fr) 16px}.bubble{padding:6px 8px;font-size:12px}.text-input{font-size:13px}}.auth-container{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#667eea,#764ba2);padding:20px}.auth-card{background:#fff;border-radius:16px;box-shadow:0 20px 60px #0000004d;padding:48px 40px;width:100%;max-width:440px}.auth-logo{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:32px}.auth-logo-circle{width:48px;height:48px;border-radius:50%;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:700}.auth-title{font-size:28px;font-weight:700;color:#1f2937;margin:0;letter-spacing:1px}.auth-heading{font-size:24px;font-weight:600;color:#111827;margin:0 0 8px;text-align:center}.auth-subtitle{font-size:14px;color:#6b7280;margin:0 0 32px;text-align:center}.auth-form{display:flex;flex-direction:column;gap:20px}.form-group{display:flex;flex-direction:column;gap:8px}.form-label{font-size:14px;font-weight:500;color:#374151}.form-input{width:100%;padding:12px 16px;border:1px solid #d1d5db;border-radius:8px;font-size:14px;transition:all .2s ease;box-sizing:border-box}.form-input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.form-input::placeholder{color:#9ca3af}.form-options{display:flex;align-items:center;justify-content:space-between;margin-top:-8px}.checkbox-label{display:flex;align-items:center;gap:8px;font-size:14px;color:#374151;cursor:pointer}.checkbox-input{width:16px;height:16px;cursor:pointer}.forgot-link{font-size:14px;color:#667eea;text-decoration:none;font-weight:500}.forgot-link:hover{color:#764ba2;text-decoration:underline}.auth-button{width:100%;padding:14px 24px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;font-size:16px;font-weight:600;cursor:pointer;transition:all .3s ease;margin-top:8px}.auth-button:hover{transform:translateY(-2px);box-shadow:0 8px 16px #667eea4d}.auth-button:active{transform:translateY(0)}.auth-footer{margin-top:24px;text-align:center}.auth-footer p{font-size:14px;color:#6b7280;margin:0}.auth-link{color:#667eea;text-decoration:none;font-weight:600}.auth-link:hover{color:#764ba2;text-decoration:underline}.logout-button{position:fixed;top:16px;right:16px;padding:8px 16px;background:#ef4444;color:#fff;border:none;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease;z-index:1000}.logout-button:hover{background:#dc2626}.logout-button:active{transform:scale(.95)}
