.flow-status-bar{background:#fff;border-bottom:1px solid #cbd5e1;padding:8px 0;display:flex;justify-content:center;align-items:center;margin:0;width:100%}.status-content{display:flex;justify-content:center;align-items:center;max-width:500px;margin:0 auto;padding:0 40px}.status-steps{display:flex;align-items:flex-start;gap:16px;flex-shrink:0}.status-step-container{display:flex;flex-direction:column;align-items:center;gap:8px;position:relative}.status-step{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;transition:all .3s cubic-bezier(.4,0,.2,1);cursor:pointer;position:relative;box-shadow:0 2px 8px #0000001a}.status-step.completed{background:#3b82f6;border:none;color:#fff}.status-step.completed svg{width:24px;height:24px;color:#fff}.status-step.active{background:#3b82f61a;border:3px solid #3b82f6;color:#3b82f6}.status-step.active svg{width:24px;height:24px;color:#3b82f6}.status-step.pending{background:transparent;border:2px solid #d1d5db;color:#9ca3af}.status-step.pending svg{width:24px;height:24px;color:#9ca3af}.status-label{font-size:12px;font-weight:500;text-align:center;transition:all .3s ease;white-space:nowrap}.status-label.completed{color:#3b82f6;font-weight:600}.status-label.active{color:#3b82f6;font-weight:700}.status-label.pending{color:#9ca3af;font-weight:500}.status-connector{display:flex;align-items:center;justify-content:center;width:32px;height:42px;position:relative;transition:all .4s ease;align-self:flex-start}.connector-arrow{transition:all .4s ease}.status-connector.completed .connector-arrow{color:#3b82f6}.status-connector.pending .connector-arrow{color:#d1d5db}.status-step.completed:hover{background:#2563eb;transform:translateY(-1px);box-shadow:0 4px 12px #3b82f64d}.status-step.active:hover{border-color:#2563eb;transform:translateY(-1px);box-shadow:0 4px 12px #3b82f633}.status-step.pending:hover{border-color:#9ca3af;transform:translateY(-1px)}@media (max-width: 768px){.flow-status-bar{padding:12px 16px}.status-steps{gap:16px}.status-step{width:40px;height:40px}.status-step svg{width:20px!important;height:20px!important}.status-connector{width:24px;margin-top:19px}.status-label{font-size:11px}}@media (max-width: 480px){.status-steps{gap:12px}.status-step{width:36px;height:36px}.status-step svg{width:18px!important;height:18px!important}.status-connector{width:20px;height:2px;margin-top:17px}.status-label{font-size:10px}.tooltip{font-size:10px!important;padding:4px 6px!important;max-width:250px!important;bottom:calc(100% + 12px)!important}}.tooltip{position:absolute;bottom:calc(100% + 16px);left:50%;transform:translate(-50%);background:#374151;color:#fff;padding:6px 10px;border-radius:6px;font-size:11px;font-weight:500;white-space:nowrap;box-shadow:0 4px 12px #00000040;z-index:1000;animation:tooltipFadeIn .15s ease-out;pointer-events:none;max-width:280px;text-align:center;line-height:1.2}.status-step-container:first-child .tooltip{left:0;transform:translate(0)}.status-step-container:first-child .tooltip:before{left:20px;border-top-color:#374151}.status-step-container:last-child .tooltip{right:0;left:auto;transform:translate(0)}.status-step-container:last-child .tooltip:before{right:20px;left:auto;border-top-color:#374151}.tooltip:before{content:"";position:absolute;top:100%;left:50%;transform:translate(-50%);border:4px solid transparent;border-top-color:#374151}@keyframes tooltipFadeIn{0%{opacity:0;transform:translate(-50%) translateY(2px)}to{opacity:1;transform:translate(-50%) translateY(0)}}.flow-status-bar.vertical{background:none;border:none;padding:0;width:auto;height:auto;flex-direction:column;justify-content:flex-start}.flow-status-bar.vertical .status-content{max-width:none;padding:0;width:auto}.flow-status-bar.vertical .status-steps{flex-direction:column;gap:8px;align-items:center}.flow-status-bar.vertical .status-step-container{gap:0;position:relative}.flow-status-bar.vertical .status-step{width:28px;height:28px;box-shadow:0 1px 3px #0000001a}.flow-status-bar.vertical .status-step svg{width:14px!important;height:14px!important}.flow-status-bar.vertical .status-connector{width:28px;height:16px;margin:0;display:flex;align-items:center;justify-content:center}.flow-status-bar.vertical .status-connector.completed .connector-arrow{color:#3b82f6}.flow-status-bar.vertical .status-connector.pending .connector-arrow{color:#d1d5db}.flow-status-bar.vertical .status-label{display:none}.flow-status-bar.vertical .tooltip{display:flex!important;position:fixed;top:50%;left:64px;transform:translateY(-50%);white-space:nowrap;z-index:9999;animation:tooltipFadeInVertical .15s ease-out;background:#374151;color:#fff;padding:10px 16px;border-radius:0;font-size:12px;font-weight:500;box-shadow:0 4px 16px #0006;min-width:220px;width:auto;text-align:left;line-height:1;pointer-events:none;visibility:visible!important;opacity:1!important;border:1px solid #4B5563;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;align-items:center;justify-content:flex-start}.flow-status-bar.vertical .tooltip:before{content:"";position:absolute;left:-6px;top:50%;transform:translateY(-50%);width:0;height:0;border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:6px solid #374151}@keyframes tooltipFadeInVertical{0%{opacity:0;transform:translateY(-50%) translate(-12px) scale(.95);visibility:hidden}to{opacity:1;transform:translateY(-50%) translate(0) scale(1);visibility:visible}}.document-library{display:flex;flex-direction:column;height:100%;background:#fafafa;border-right:1px solid #e1e5e9;width:100%;max-width:100%;overflow-x:visible;overflow-y:hidden;transition:all .3s cubic-bezier(.4,0,.2,1)}.document-library.collapsed{overflow:visible}.icon-rail{display:flex;flex-direction:column;height:100%;width:56px;background:#fafafa;border-right:1px solid #e1e5e9;align-items:center;padding:8px 0;justify-content:space-between}.vertical-flow-status{flex-shrink:0;margin-bottom:8px;width:100%;max-width:56px;overflow:hidden}.rail-icons{display:flex;flex-direction:column;gap:12px;flex:1;align-items:center;padding:20px 0}.rail-icon{display:flex;align-items:center;justify-content:center;width:40px;height:40px;background:#fff;border:1px solid #e1e5e9;border-radius:8px;cursor:pointer;color:#6b7280;transition:all .2s ease;position:relative}.rail-icon:hover{background:#f3f4f6;color:#374151;border-color:#d1d5db;transform:translateY(-1px)}.rail-icon.upload-icon:hover{color:#3b82f6;border-color:#3b82f6;background:#eff6ff}.rail-icon.files-icon:hover{color:#10b981;border-color:#10b981;background:#ecfdf5}.rail-icon.synapse-icon:hover{color:#667eea;border-color:#667eea;background:#f0f4ff}.doc-count{position:absolute;top:-6px;right:-6px;background:#3b82f6;color:#fff;font-size:10px;font-weight:600;padding:2px 6px;border-radius:10px;min-width:16px;text-align:center;line-height:1.2}.expand-button{background:#fff;border:1px solid #e1e5e9;border-radius:6px;width:40px;height:32px;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#6b7280;transition:all .2s ease;margin-top:4px}.expand-button:hover{background:#f3f4f6;color:#374151;border-color:#d1d5db}.rail-icon:hover{background:#f3f4f6;color:#3b82f6;transform:translateY(-1px);box-shadow:0 2px 6px #00000026}.rail-icon.upload-icon:hover{background:#eff6ff;color:#2563eb}.rail-icon.files-icon:hover{background:#f0fdf4;color:#16a34a}.expand-button{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:none;border-radius:6px;background:#3b82f6;color:#fff;cursor:pointer;transition:all .2s ease;margin-top:auto}.expand-button:hover{background:#2563eb;transform:translateY(-1px)}.title-with-collapse{display:flex;align-items:center;justify-content:space-between;width:100%;margin-bottom:8px}.collapse-button{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border:none;border-radius:4px;background:transparent;color:#6b7280;cursor:pointer;transition:all .2s ease}.collapse-button:hover{background:#f3f4f6;color:#3b82f6}.library-header{padding:16px 20px 12px;border-bottom:1px solid #e1e5e9;background:#fff}.synapse-view-section{margin:8px 20px 16px;display:flex;width:calc(100% - 40px)}.synapse-view-section .synapse-view-button{width:100%;justify-content:center;padding:14px 20px;background:linear-gradient(135deg,#1e293b,#334155);color:#60a5fa;border:1px solid #475569;border-radius:10px;font-weight:600;font-size:16px;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;gap:10px;box-shadow:0 4px 12px #1e293b66;position:relative}.synapse-view-section .synapse-view-button .keyboard-shortcut{position:absolute;right:16px;background:#60a5fa26;color:#60a5fa;padding:4px 8px;border-radius:4px;font-size:12px;font-weight:500;font-family:SF Mono,Monaco,Inconsolata,Fira Code,monospace;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);border:1px solid rgba(96,165,250,.2)}.synapse-view-section .synapse-view-button:hover{background:linear-gradient(135deg,#334155,#475569);transform:translateY(-2px);box-shadow:0 6px 16px #60a5fa4d;border-color:#60a5fa;color:#93c5fd}.library-title-section{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.library-title{display:flex;align-items:center;gap:8px;margin:0;font-size:18px;font-weight:600;color:#1a1a1a;line-height:1.2}.collapse-button{background:#fff;border:1px solid #d1d5db;border-radius:6px;padding:6px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease;color:#6b7280}.collapse-button:hover{background:#f3f4f6;border-color:#9ca3af;color:#374151}.library-search{position:relative}.search-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#6b7280}.search-input{width:100%;padding:8px 12px 8px 36px;border:1px solid #d1d5db;border-radius:6px;font-size:14px;background:#fff;transition:all .2s ease}.search-input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.upload-zone{margin:8px 20px 12px;padding:16px;border:2px dashed #d1d5db;border-radius:8px;text-align:center;cursor:pointer;transition:all .2s ease;position:relative;background:#fff}.upload-zone:hover{border-color:#3b82f6;background:#f8faff}.upload-zone.drag-over{border-color:#3b82f6;background:#eff6ff;transform:scale(1.02)}.upload-icon{color:#6b7280;margin-bottom:6px}.upload-text{display:flex;flex-direction:column;gap:2px}.upload-text strong{font-weight:600;color:#1a1a1a;font-size:14px}.upload-text span{font-size:12px;color:#6b7280}.file-input{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;cursor:pointer}.upload-progress{margin:0 20px 16px;padding:16px;background:#fff;border-radius:8px;border:1px solid #e1e5e9}.progress-item{margin-bottom:12px}.progress-item:last-child{margin-bottom:0}.progress-info{display:flex;justify-content:space-between;margin-bottom:4px;font-size:12px}.progress-name{font-weight:500;color:#1a1a1a}.progress-status{color:#6b7280;text-transform:capitalize}.progress-bar{height:4px;background:#f3f4f6;border-radius:2px;overflow:hidden}.progress-fill{height:100%;background:linear-gradient(90deg,#3b82f6,#1d4ed8);transition:width .3s ease;position:relative}.progress-fill:not(.completed):not(.error):after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;background-image:linear-gradient(-45deg,rgba(255,255,255,.2) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.2) 50%,rgba(255,255,255,.2) 75%,transparent 75%,transparent);background-size:20px 20px;animation:progress-stripes 1s linear infinite}@keyframes progress-stripes{0%{background-position:0 0}to{background-position:20px 0}}.progress-fill.completed{background:linear-gradient(90deg,#10b981,#059669)}.progress-fill.error{background:linear-gradient(90deg,#ef4444,#dc2626)}.document-upload-progress{margin-top:4px}.upload-status-info{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}.upload-status-text{font-size:11px;color:#6b7280;font-weight:500}.inline-progress-bar{height:3px;background:#f3f4f6;border-radius:2px;overflow:hidden;width:100%}.inline-progress-fill{height:100%;background:linear-gradient(90deg,#3b82f6,#1d4ed8);transition:width .3s ease;position:relative}.inline-progress-fill:not(.completed):not(.error):after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;background-image:linear-gradient(-45deg,rgba(255,255,255,.3) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.3) 50%,rgba(255,255,255,.3) 75%,transparent 75%,transparent);background-size:12px 12px;animation:progress-stripes 1s linear infinite}.inline-progress-fill.completed{background:linear-gradient(90deg,#10b981,#059669)}.inline-progress-fill.error{background:linear-gradient(90deg,#ef4444,#dc2626)}.document-item.uploading{opacity:.8;cursor:default}.document-item.uploading:hover{background:#fff;transform:none}.document-list{flex:1;overflow-y:auto;overflow-x:visible;padding:0;width:100%;max-width:100%}.document-item{padding:12px 20px;margin:0;background:#fff;border-radius:0;cursor:pointer;transition:all .2s ease;border:none;border-bottom:1px solid #f1f5f9;width:100%;max-width:100%;overflow:hidden;position:relative;z-index:1}.document-item.menu-open{z-index:1001;overflow:visible}.document-item:hover{background:#f8faff;border-color:transparent;transform:none;box-shadow:inset 3px 0 #3b82f6}.document-item.selected{background:#eff6ff;border-color:transparent;box-shadow:inset 3px 0 #3b82f6}.document-info{display:flex;flex-direction:column;gap:4px}.document-main{display:flex;align-items:center;gap:12px}.document-icon{flex-shrink:0;color:#ef4444;display:flex;align-items:center;justify-content:center;width:20px;height:20px}.document-details{flex:1;min-width:0}.document-name{font-weight:500;color:#1a1a1a;font-size:14px;line-height:1.4;display:flex;align-items:center;gap:8px;width:100%;min-width:0}.document-name span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}.document-metadata{display:flex;align-items:center;gap:12px;font-size:12px;color:#6b7280;margin-top:4px;flex-wrap:wrap}.document-date{color:#9ca3af;font-size:11px}.document-status-indicator{display:flex;align-items:center;gap:4px}.new-badge{background:#10b981;color:#fff;padding:2px 8px;border-radius:12px;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.5px;flex-shrink:0}.document-meta{display:flex;align-items:center;gap:6px;font-size:12px;color:#6b7280;margin-top:2px}.status-icon{flex-shrink:0}.status-icon.status-ready{color:#10b981;filter:drop-shadow(0 0 2px rgba(16,185,129,.4))}.document-item:has(.status-ready){position:relative}.document-item:has(.status-ready):before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;background:linear-gradient(90deg,#10b9810d,#10b98105);border-radius:6px;pointer-events:none}.status-icon.status-processing{color:#f59e0b}.status-icon.status-error{color:#ef4444}.document-status{font-size:11px}.empty-state{padding:32px 20px;text-align:center;color:#64748b;font-size:14px}.getting-started{max-width:280px;margin:0 auto}.welcome-content h3{color:#1e293b;font-size:18px;font-weight:600;margin:0 0 12px}.welcome-content p{color:#64748b;font-size:14px;line-height:1.5;margin:0 0 24px}.next-steps{text-align:left}.step{display:flex;align-items:center;gap:12px;margin-bottom:16px;font-size:13px;color:#475569}.step:last-child{margin-bottom:0}.step-number{background:#3b82f6;color:#fff;width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:12px;flex-shrink:0}.no-matches p{color:#64748b;font-size:14px;margin:0 0 16px}.clear-search-btn{background:#3b82f6;color:#fff;border:none;padding:8px 16px;border-radius:6px;font-size:13px;cursor:pointer;transition:background-color .2s}.clear-search-btn:hover{background:#2563eb}.animate-spin{animation:spin 1s linear infinite}.library-title-section{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;min-height:24px}.header-actions{display:flex;align-items:center;gap:8px;margin-left:auto}.synapse-view-button{display:flex;align-items:center;gap:6px;padding:5px 10px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:6px;font-size:12px;font-weight:600;cursor:pointer;transition:all .2s ease;line-height:1.2;height:26px;box-shadow:0 2px 4px #667eea33}.synapse-view-button:hover{transform:translateY(-1px);box-shadow:0 4px 8px #667eea4d;background:linear-gradient(135deg,#5a67d8,#6b46c1)}.synapse-view-button:active{transform:translateY(0)}.clear-all-button{display:flex;align-items:center;gap:4px;padding:4px 8px;background:transparent;color:#6b7280;border:1px solid #e5e7eb;border-radius:4px;font-size:11px;font-weight:500;cursor:pointer;transition:all .2s ease;line-height:1.2;height:24px}.clear-all-button:hover:not(:disabled){background:#fef2f2;border-color:#fecaca;color:#dc2626;transform:translateY(-1px)}.clear-all-button:disabled{background:#f9fafb;color:#9ca3af;cursor:not-allowed;transform:none}.clear-confirm{display:flex;align-items:center;gap:8px;font-size:12px}.confirm-text{color:#dc2626;font-weight:500}.confirm-yes,.confirm-no{padding:4px 8px;border:none;border-radius:4px;font-size:11px;font-weight:500;cursor:pointer;transition:all .2s ease}.confirm-yes{background:#ef4444;color:#fff}.confirm-yes:hover{background:#dc2626}.confirm-no{background:#f3f4f6;color:#374151}.confirm-no:hover{background:#e5e7eb}.document-sections{display:flex;flex-direction:column}.document-section{margin-bottom:8px}.section-heading{margin:0 0 12px;padding:0 20px;font-size:12px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:#6b7280;border:none}.section-documents{display:flex;flex-direction:column}.section-separator{margin:16px 20px;border:none;border-top:1px solid #e5e7eb;opacity:.6}.tab-container{display:flex;justify-content:center;align-items:center;padding:0 20px;margin-bottom:0;border-bottom:1px solid #e5e7eb;background:#fff;position:sticky;top:0;z-index:5}.tab-button-wrapper{position:relative}.tab-button{display:flex;align-items:center;gap:6px;padding:12px 0 8px 16px;background:none;border:none;cursor:pointer;font-size:13px;font-weight:600;letter-spacing:.5px;text-transform:uppercase;color:#6b7280;position:relative;transition:all .2s ease;border-bottom:2px solid transparent;border-radius:4px 4px 0 0}.tab-button:hover{color:#374151;background:#f9fafb}.tab-button.active{color:#3b82f6;border-bottom-color:#3b82f6;font-weight:700}.tab-button.active:hover{background:none}.tab-tooltip{position:absolute;top:calc(100% + 12px);left:50%;transform:translate(-50%);background:#374151;color:#fff;padding:12px 16px;border-radius:8px;font-size:12px;font-weight:400;max-width:320px;min-width:280px;text-align:center;text-transform:none;letter-spacing:normal;white-space:normal;z-index:1000;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d;animation:tooltipFadeIn .15s ease-out;line-height:1.45;margin-left:16px;margin-right:16px}.tab-button-wrapper:first-child .tab-tooltip{left:0;transform:translate(0);margin-left:16px}.tab-button-wrapper:first-child .tab-tooltip:before{left:40px;transform:translate(0)}.tab-button-wrapper:last-child .tab-tooltip{right:0;left:auto;transform:translate(0);margin-right:16px}.tab-button-wrapper:last-child .tab-tooltip:before{right:40px;left:auto;transform:translate(0)}.tab-tooltip:before{content:"";position:absolute;bottom:100%;left:50%;transform:translate(-50%);border:6px solid transparent;border-bottom-color:#374151}@keyframes tooltipFadeIn{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.tab-info-icon{opacity:.6;transition:opacity .2s ease}.tab-button:hover .tab-info-icon{opacity:1}.tab-content{flex:100;display:flex;flex-direction:column;animation:fadeInContent .15s ease-out;padding-top:16px;background:#f9fafb}@keyframes fadeInContent{0%{opacity:0;transform:translateY(2px)}to{opacity:1;transform:translateY(0)}}.tab-document-list .document-item{padding:16px 20px;margin-bottom:2px}.tab-document-list .document-item:hover{background:#f8fafc;transform:translateY(-1px);box-shadow:0 2px 4px #0000000a}.search-results-header{padding:0 20px 12px}.search-results-title{margin:0;font-size:12px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:#3b82f6}.tab-document-list{display:flex;flex-direction:column;flex:1;overflow:visible}.tab-empty-state{padding:24px 20px;text-align:center;color:#6b7280}.tab-empty-state p{margin:0 0 8px;font-size:14px;font-weight:500}.empty-hint{font-size:12px;color:#9ca3af}.tab-document-list .document-item{position:relative;padding:10px 20px;border-bottom:1px solid #f3f4f6;cursor:pointer;transition:all .15s ease;background:#fff}.tab-document-list .document-item:hover{background:#f8fafc}.tab-document-list .document-item.selected{background:#eff6ff;border-left:3px solid #3b82f6;padding-left:17px}.tab-document-list .document-item:first-child{border-top:none}.tab-document-list .document-item:last-child{border-bottom:none}.tab-content{animation:fadeIn .2s ease-in-out}@keyframes fadeIn{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.new-badge{margin-left:8px;padding:2px 6px;font-size:10px;font-weight:600;color:#059669;background:#d1fae5;border-radius:4px;letter-spacing:.5px}.document-section .document-item{position:relative}.document-section .document-item:first-child{border-top:none}.document-section .document-name{display:flex;align-items:center;flex-wrap:wrap;gap:4px}.document-list::-webkit-scrollbar{width:6px}.document-list::-webkit-scrollbar-track{background:transparent}.document-list::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:3px}.document-list::-webkit-scrollbar-thumb:hover{background:#9ca3af}.document-actions{position:relative;display:flex;align-items:center;margin-left:auto;z-index:1000}.document-menu-button{background:none;border:none;cursor:pointer;padding:4px;border-radius:4px;display:flex;align-items:center;justify-content:center;color:#6b7280;transition:all .15s ease;opacity:1}.document-menu-button:hover{background:#f3f4f6;color:#374151}.document-menu-button:disabled{opacity:.5;cursor:not-allowed}.document-menu-dropdown{position:absolute;top:100%;right:0;background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d;z-index:9999;min-width:140px;margin-top:4px;white-space:nowrap}.menu-item{display:flex;align-items:center;gap:8px;width:100%;padding:10px 12px;background:none;border:none;cursor:pointer;font-size:13px;color:#374151;transition:background-color .15s ease;text-align:left}.menu-item:hover{background:#f9fafb}.menu-item:disabled{opacity:.5;cursor:not-allowed}.download-item:hover{background:#eff6ff;color:#2563eb}.delete-item:hover{background:#fef2f2;color:#dc2626}.bottom-flow-status{margin-top:auto;padding:12px 20px;border-top:1px solid #e1e5e9;background:#fff;flex-shrink:0}.document-workbench{display:flex;flex-direction:column;height:100%;background:#fff;position:relative;overflow:auto}.document-workbench [title]{position:relative}.document-workbench [title]:hover:after,.document-workbench [title]:hover:before{display:none!important}.trail-info-icon{cursor:pointer;display:flex;align-items:center;justify-content:center;width:14px;height:14px;border-radius:50%;background-color:#e5e7eb;transition:all .2s ease;position:relative}.trail-info-icon:hover{background-color:#d1d5db}.trail-info-icon:focus{outline:none}.navigation-breadcrumb{background:#f8fafc;border-bottom:1px solid #e2e8f0;padding:4px 20px;flex-shrink:0;z-index:10}.trail-items-simple{display:flex;align-items:center;gap:6px;flex:1;min-width:0;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none}.trail-items-simple::-webkit-scrollbar{display:none}.trail-item-wrapper-simple{display:flex;align-items:center;gap:6px;flex-shrink:0}.trail-item-simple{display:flex;flex-direction:column;align-items:flex-start;gap:0px;padding:4px 8px;background:#fff;border:1px solid #d1d5db;border-radius:4px;color:#374151;font-size:10px;cursor:pointer;transition:all .2s ease;min-width:100px;max-width:160px;width:auto;box-shadow:0 1px 2px #0000000d;height:auto;min-height:32px;max-height:32px}.trail-item-simple:hover{background:#f3f4f6;border-color:#9ca3af;transform:translateY(-1px);box-shadow:0 2px 4px #0000001a}.trail-item-simple:active{transform:translateY(0);box-shadow:0 1px 2px #0000000d}.trail-document-simple{font-weight:600;line-height:1;max-width:140px;color:#1f2937;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.trail-page-simple{font-weight:400;opacity:.7;white-space:nowrap;line-height:1;color:#6b7280;font-size:9px}.trail-separator-simple{color:#9ca3af;font-size:14px;font-weight:600;flex-shrink:0}.trail-actions-simple{flex-shrink:0}.clear-trail-btn-simple{padding:3px 8px;background:#f9fafb;border:1px solid #d1d5db;border-radius:4px;color:#6b7280;font-size:10px;font-weight:500;cursor:pointer;transition:all .2s ease}.clear-trail-btn-simple:hover{background:#f3f4f6;border-color:#9ca3af;color:#374151}.clear-trail-btn-simple:active{transform:translateY(0)}.breadcrumb-content{display:flex;flex-direction:column;gap:4px;max-width:100%}.breadcrumb-header{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:16px}.trail-info{flex-shrink:0;display:flex;align-items:center;gap:4px}.trail-label{font-size:12px;font-weight:600;color:#374151;cursor:help;position:relative}.info-icon{font-size:9px;font-weight:700;color:#6b7280;line-height:1;pointer-events:none}.current-document{display:flex;align-items:center;gap:8px;min-width:0;flex:1}.document-icon{font-size:16px;flex-shrink:0}.document-name{font-size:14px;font-weight:600;color:#1a1a1a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.document-meta{flex-shrink:0}.page-info{font-size:12px;color:#64748b;font-weight:500}.workbench-empty,.document-workbench-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh;padding:40px;text-align:center;color:#6b7280}.empty-content h3,.workbench-empty h3{margin:0 0 8px;font-size:18px;font-weight:600;color:#1a1a1a}.empty-content p,.workbench-empty p{margin:0 0 24px;font-size:14px;max-width:300px;line-height:1.5;color:#64748b}.empty-features{display:flex;flex-direction:column;gap:12px;text-align:left;max-width:280px}.feature-item{display:flex;align-items:center;gap:10px;font-size:13px;color:#475569}.feature-icon{font-size:16px;width:20px;flex-shrink:0}.workbench-content{position:relative;height:100%;width:100%}.pdf-viewer-container{flex:1;height:calc(100% - 49px);width:100%;position:relative;background:#f5f5f5}.pdf-viewer-container.loading{display:flex;align-items:center;justify-content:center;background:#f5f5f5}.context-lens{position:absolute;pointer-events:none;background:#3b82f61a;border:2px solid rgba(59,130,246,.3);border-radius:4px;z-index:10;animation:contextLensFadeIn .3s ease-out;box-shadow:0 0 20px #3b82f633}@keyframes contextLensFadeIn{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.text-selection-indicator{position:absolute;top:15px;left:20px;z-index:25;background:#3b82f6f2;color:#fff;border-radius:20px;padding:6px 10px;font-size:11px;font-weight:500;box-shadow:0 2px 8px #3b82f640;animation:slideInFromTop .3s ease-out;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.2)}.selection-status{display:flex;align-items:center;gap:6px}.status-icon{font-size:10px}.status-text{font-weight:500;font-size:10px}.deselect-btn{background:#fff3;border:1px solid rgba(255,255,255,.3);color:#fff;border-radius:12px;padding:2px 8px;font-size:9px;cursor:pointer;transition:all .2s ease;margin-left:2px}.deselect-btn:hover{background:#ffffff4d;border-color:#ffffff80;transform:scale(1.05)}@keyframes slideInFromTop{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.connections-notification{position:absolute;background:linear-gradient(135deg,#16a34a,#15803d);color:#fff;border-radius:12px;padding:8px 16px;font-size:14px;font-weight:500;box-shadow:0 8px 25px #16a34a4d,0 0 0 1px #ffffff1a;z-index:30;animation:notificationFadeIn .3s ease-out;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.notification-content{display:flex;align-items:center;gap:8px}@keyframes notificationFadeIn{0%{opacity:0;transform:translateY(-10px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}.action-halo{position:absolute;background:#fff;border-radius:16px;box-shadow:0 20px 40px #00000026,0 0 0 1px #0000000d;padding:16px;min-width:280px;z-index:20;animation:haloFadeIn .3s ease-out;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.action-halo-header{margin-bottom:16px;text-align:center}.selected-text-preview{display:block;font-size:13px;color:#64748b;font-style:italic;margin-bottom:8px;line-height:1.4}.action-prompt{display:block;font-size:14px;font-weight:600;color:#1a1a1a}.action-buttons{display:flex;flex-direction:column;gap:8px}.action-btn{display:flex;align-items:center;gap:12px;padding:12px 16px;border:none;border-radius:10px;cursor:pointer;transition:all .2s ease;text-align:left;width:100%;font-size:14px}.action-btn span{display:flex;flex-direction:column;gap:2px;flex:1}.action-btn strong{font-weight:600;color:#fff}.action-btn small{font-size:12px;opacity:.8;color:#fff}.action-btn:hover{transform:translateY(-1px);box-shadow:0 8px 16px #00000026}.action-btn:active{transform:translateY(0)}.action-btn:disabled{cursor:not-allowed;opacity:.7;transform:none}.connections-btn{background:linear-gradient(135deg,#3b82f6,#1d4ed8)}.connections-btn:hover{background:linear-gradient(135deg,#1d4ed8,#1e40af)}.insights-btn{background:linear-gradient(135deg,#fbbf24,#f59e0b)}.insights-btn:hover{background:linear-gradient(135deg,#f59e0b,#d97706)}.podcast-btn{background:linear-gradient(135deg,#8b5cf6,#7c3aed)}.podcast-btn:hover{background:linear-gradient(135deg,#7c3aed,#6d28d9)}@keyframes haloFadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.halo-button{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border:none;border-radius:50%;cursor:pointer;transition:all .2s ease;box-shadow:0 4px 12px #00000026;position:relative;overflow:hidden}.halo-button:hover{transform:scale(1.1);box-shadow:0 6px 16px #0003}.halo-button:active{transform:scale(.95)}.halo-button.loading{cursor:not-allowed}.insights-button{background:linear-gradient(135deg,#fbbf24,#f59e0b);color:#fff}.insights-button:hover{background:linear-gradient(135deg,#f59e0b,#d97706)}.podcast-button{background:linear-gradient(135deg,#8b5cf6,#7c3aed);color:#fff}.podcast-button:hover{background:linear-gradient(135deg,#7c3aed,#6d28d9)}.button-spinner{position:absolute;top:0;right:0;bottom:0;left:0;background:#fff3;border-radius:50%}.button-spinner:after{content:"";position:absolute;top:50%;left:50%;width:16px;height:16px;margin:-8px 0 0 -8px;border:2px solid transparent;border-top:2px solid white;border-radius:50%;animation:spin 1s linear infinite}.viewer-loading{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#f9fafb;z-index:5}.loading-spinner{width:32px;height:32px;border:3px solid #e5e7eb;border-top:3px solid #3b82f6;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:16px}.viewer-loading p{color:#6b7280;font-size:14px;margin:0}.search-highlight{position:absolute;background:#fbbf244d;border:1px solid rgba(251,191,36,.6);border-radius:2px;pointer-events:none;animation:highlightPulse 2s ease-in-out}@keyframes highlightPulse{0%,to{opacity:.3}50%{opacity:.7}}@media (max-width: 768px){.action-halo{flex-direction:column;gap:4px}.halo-button{width:32px;height:32px}.context-lens{border-width:1px}}#adobe-dc-view{height:100%!important;width:100%!important;min-height:500px!important;background:#f5f5f5}.adobe-dc-view-iframe{border:none!important;background:#f5f5f5!important}.insights-bulb{background:#4f46e5;border-radius:50%;width:60px;height:60px;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 12px #4f46e54d;transition:all .3s ease;position:relative;overflow:visible}.insights-bulb:hover{transform:translateY(-50%) scale(1.1);box-shadow:0 6px 20px #4f46e566}.bulb-container{position:relative;display:flex;align-items:center;justify-content:center}.bulb-icon{font-size:28px;color:#fff;filter:drop-shadow(0 1px 2px rgba(0,0,0,.2))}.bulb-badge{position:absolute;top:-8px;right:-8px;background:#ef4444;color:#fff;border-radius:50%;width:20px;height:20px;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:600;border:2px solid white}.bulb-pulse{position:absolute;top:0;left:0;right:0;bottom:0;border-radius:50%;border:2px solid #4f46e5;animation:pulse 2s infinite;opacity:.6}.bulb-tooltip{position:absolute;top:50%;right:70px;transform:translateY(-50%);background:#1a1a1a;color:#fff;padding:8px 12px;border-radius:6px;font-size:12px;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .3s ease}.insights-bulb:hover .bulb-tooltip{opacity:1}.bulb-tooltip:after{content:"";position:absolute;top:50%;left:100%;transform:translateY(-50%);border:6px solid transparent;border-left-color:#1a1a1a}@keyframes pulse{0%{transform:scale(1);opacity:.6}50%{transform:scale(1.2);opacity:.3}to{transform:scale(1);opacity:.6}}.manual-connections-trigger{position:absolute;bottom:20px;right:60px;z-index:100}.generate-connections-btn{display:flex;align-items:center;gap:6px;padding:8px 12px;background:#3b82f6;color:#fff;border:none;border-radius:6px;font-size:12px;font-weight:500;cursor:pointer;box-shadow:0 2px 8px #3b82f640;transition:all .2s ease}.generate-connections-btn:hover{background:#2563eb;transform:translateY(-1px);box-shadow:0 4px 12px #3b82f659}.generate-connections-btn:active{transform:translateY(0);box-shadow:0 1px 4px #3b82f640}.generate-connections-btn svg{flex-shrink:0}@keyframes pulse{0%,to{opacity:1}50%{opacity:.6}}.icon-rail{position:absolute;top:0;right:0;width:56px;height:100%;display:flex;flex-direction:column;align-items:center;z-index:10;overflow:visible}.rail-background{position:absolute;top:0;left:0;right:0;bottom:0;background:linear-gradient(135deg,#fafafa,#f0f9ff);border-left:1px solid #e1e5e9}.expand-button{position:absolute;top:16px;left:50%;transform:translate(-50%);width:32px;height:32px;background:#3b82f61a;border:1px solid rgba(59,130,246,.2);border-radius:8px;color:#3b82f6;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:3}.expand-button:hover{transform:translate(-50%)}.icon-rail.pulse .rail-background{animation:railPulse 2s ease-in-out}.rail-icons{position:relative;display:flex;flex-direction:column;gap:16px;padding:24px 0;margin-top:60px;z-index:2}.rail-icon{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:12px;cursor:pointer;position:relative;margin:0 auto}.rail-icon.enabled{background:#3b82f61a;color:#3b82f6;border:1px solid rgba(59,130,246,.2)}.rail-icon.disabled{background:#6b72801a;color:#9ca3af;border:1px solid rgba(107,114,128,.2);cursor:not-allowed}.rail-icon.insights-icon.enabled{background:linear-gradient(135deg,#fbbf2426,#f59e0b26);color:#f59e0b;border:1px solid rgba(245,158,11,.3)}.rail-icon.loading{animation:iconPulse 1.5s ease-in-out infinite}.icon-spinner{position:absolute;top:-2px;right:-2px;width:12px;height:12px;border:2px solid rgba(59,130,246,.3);border-top:2px solid #3b82f6;border-radius:50%;animation:spin 1s linear infinite}.rail-tooltip{position:absolute;top:60px;left:60px;min-width:180px;background:#fff;border:1px solid #e1e5e9;border-radius:12px;box-shadow:0 8px 32px #0000001a;padding:16px;z-index:20;opacity:0;animation:tooltipSlideIn .3s ease forwards}.tooltip-content{display:flex;flex-direction:column;gap:12px}.tooltip-instruction{display:flex;align-items:center;gap:8px;color:#6b7280;font-size:14px;font-weight:500;padding:8px;background:#f9fafb;border-radius:8px}.tooltip-status{display:flex;flex-direction:column;gap:8px}.status-item{display:flex;align-items:center;gap:8px;font-size:13px;color:#4b5563;padding:4px 0}.status-item svg{color:#9ca3af}.icon-tooltip{position:absolute;top:50%;left:-12px;transform:translateY(-50%) translate(-100%);background:#000c;color:#fff;padding:8px 12px;border-radius:6px;font-size:12px;font-weight:500;white-space:nowrap;z-index:30;opacity:0;animation:tooltipFadeIn .2s ease forwards}.icon-tooltip:after{content:"";position:absolute;top:50%;right:-4px;transform:translateY(-50%);width:0;height:0;border-left:4px solid rgba(0,0,0,.8);border-top:4px solid transparent;border-bottom:4px solid transparent}@keyframes railPulse{0%,to{background:linear-gradient(135deg,#fafafa,#f0f9ff)}50%{background:linear-gradient(135deg,#dbeafe,#bfdbfe)}}@keyframes iconPulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.7;transform:scale(.95)}}@keyframes tooltipSlideIn{0%{opacity:0;transform:translate(-8px)}to{opacity:1;transform:translate(0)}}@keyframes tooltipFadeIn{0%{opacity:0}to{opacity:1}}@media (max-width: 1200px){.icon-rail.expanded{width:160px}.rail-tooltip{left:50px;min-width:150px}}@media (max-width: 768px){.icon-rail{display:none}}.synapse-panel{display:flex;flex-direction:column;height:100%;background:#fafafa;border-left:1px solid #e1e5e9;position:relative;transition:all .3s cubic-bezier(.4,0,.2,1)}.synapse-panel.collapsed{width:56px!important;min-width:56px!important;max-width:56px!important;background:transparent;border-left:none}.synapse-header{padding:20px 20px 0;background:#fff;border-bottom:1px solid #e1e5e9}.synapse-title-section{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.synapse-title{display:flex;align-items:center;gap:8px;margin:0;color:#1a1a1a;font-size:18px;font-weight:600}.header-buttons{display:flex;align-items:center;gap:8px}.collapse-button{width:32px;height:32px;background:#6b72801a;border:1px solid rgba(107,114,128,.2);border-radius:6px;color:#6b7280;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center}.collapse-button:hover{background:#6b728026;color:#1a1a1a;transform:translateY(-1px)}.tab-navigation{display:flex;gap:4px;align-items:center;padding-bottom:20px}.tab-button{display:flex;align-items:center;gap:6px;padding:10px 16px;border:none;border-radius:6px 6px 0 0;background:transparent;color:#6b7280;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease;position:relative;min-width:120px;justify-content:center;white-space:nowrap}.tab-button:hover{background:#f3f4f6;color:#1a1a1a}.tab-button.active{background:#fff;color:#3b82f6;border:1px solid #e1e5e9;border-bottom:1px solid white;margin-bottom:-1px}.tab-badge{position:absolute;top:-2px;right:-2px;background:#3b82f6;color:#fff;font-size:10px;padding:2px 5px;border-radius:10px;min-width:16px;height:16px;text-align:center;line-height:12px;font-weight:600}.tab-button.insights-bulb-button{background:linear-gradient(135deg,#fbbf24,#f59e0b);color:#fff;border:none}.tab-button.insights-bulb-button:hover:not(:disabled){background:linear-gradient(135deg,#f59e0b,#d97706)}.tab-button.insights-bulb-button:disabled{background:#f3f4f6;color:#9ca3af;cursor:not-allowed;border:1px solid #e5e7eb}.tab-button.insights-bulb-button:disabled .insights-bulb-icon{opacity:.5}.tab-button.insights-bulb-button.active{background:linear-gradient(135deg,#f59e0b,#d97706);border:1px solid #f59e0b;border-bottom:1px solid white}.insights-button-content{display:flex;align-items:center;gap:6px}.insights-bulb-icon{color:inherit}.tab-button.insights-bulb-button.loading{opacity:.9;cursor:not-allowed}.insights-bulb-nav{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border:none;border-radius:50%;background:linear-gradient(135deg,#fbbf24,#f59e0b);color:#fff;cursor:pointer;transition:all .2s ease;margin-left:8px;position:relative;box-shadow:0 2px 8px #f59e0b4d}.insights-bulb-nav:hover:not(:disabled){background:linear-gradient(135deg,#f59e0b,#d97706);transform:translateY(-1px) scale(1.05);box-shadow:0 4px 12px #f59e0b66}.insights-bulb-nav:disabled{opacity:.7;cursor:not-allowed;transform:none}.bulb-icon{display:flex;align-items:center;justify-content:center}.bulb-icon.loading{animation:pulse 1.5s ease-in-out infinite}.bulb-spinner{width:14px;height:14px;border:2px solid rgba(255,255,255,.3);border-top:2px solid white;border-radius:50%;animation:spin 1s linear infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.7}}.synapse-content{flex:1;overflow-y:auto;background:#fff}.connections-tab{height:100%}.connections-header{padding:16px 16px 12px;border-bottom:1px solid #f3f4f6}.header-content h4{margin:0 0 4px;font-size:16px;font-weight:600;color:#1a1a1a}.header-subtitle{margin:4px 0 8px;font-size:12px;color:#6b7280;font-weight:500}.connections-source-info{margin-top:8px;padding:8px 12px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;border-left:3px solid #3b82f6}.context-source{margin:0;font-size:11px;color:#475569;font-weight:500;display:flex;align-items:center;gap:4px}.source-page{color:#3b82f6;font-weight:600;background:#eff6ff;padding:2px 6px;border-radius:10px;font-size:10px}.context-source{font-size:12px;color:#3b82f6;margin:4px 0 0;font-weight:600}.insights-page-info{margin-top:8px}.insights-page-info .context-source{display:flex;align-items:center;gap:4px}.insights-source-info{margin-top:8px}.sources-compact{position:relative;width:100%}.sources-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;padding:6px 10px;border:1px solid #e2e8f0;border-radius:6px;background:#fff;cursor:pointer;transition:all .2s ease;font-size:11px;color:#64748b;box-shadow:0 1px 2px #0000000a}.sources-toggle:hover{border-color:#cbd5e1;color:#475569;box-shadow:0 1px 3px #0000000f}.sources-label{font-weight:500;font-size:11px}.sources-popup{position:absolute;top:100%;left:0;right:0;background:#fff;border:1px solid #e2e8f0;border-radius:6px;box-shadow:0 4px 12px #0000001f;z-index:1000;margin-top:2px;max-height:200px;overflow-y:auto;padding:8px}.source-group{margin-bottom:8px}.source-group:last-child{margin-bottom:0}.source-doc-name{font-size:11px;font-weight:600;color:#1e293b;margin-bottom:4px;padding-left:2px}.source-pages{display:flex;flex-wrap:wrap;gap:4px}.page-tag{display:inline-block;background:#f1f5f9;color:#475569;font-size:10px;font-weight:500;padding:2px 6px;border-radius:4px;border:1px solid #e2e8f0;transition:all .2s ease}.page-tag:hover{background:#e2e8f0;color:#334155}.sources-summary-text{font-size:10px;color:#64748b;font-weight:500;line-height:1.4}.source-documents{display:flex;align-items:center;gap:4px;flex-wrap:wrap}.source-docs-label{font-size:11px;color:#6b7280;font-weight:500}.source-doc{font-size:11px;color:#3b82f6;font-weight:600;background:#eff6ff;padding:2px 6px;border-radius:10px;border:1px solid #dbeafe}.page-indicator{color:#6b7280;font-weight:500;background:#f1f5f9;padding:2px 6px;border-radius:10px;font-size:10px}.podcast-header{margin-bottom:12px}.podcast-page-info{margin-top:6px}.podcast-source{font-size:11px;color:#6b7280;margin:0;font-weight:500;background:#f8fafc;padding:4px 8px;border-radius:6px;border-left:3px solid #e2e8f0}.insights-header{margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid #e2e8f0}.insights-header h4{margin:0 0 6px;color:#1a1a1a;font-size:15px;font-weight:600}.insights-context{font-size:12px;color:#64748b;margin:4px 0 0;font-weight:500}.next-step-actions{margin-top:12px;padding-top:12px;border-top:1px solid #e2e8f0}.next-step-label{font-size:12px;color:#475569;margin:0 0 8px;font-weight:500}.action-buttons-row{display:flex;gap:8px}.next-step-btn{display:flex;align-items:center;gap:6px;padding:8px 14px;border:none;border-radius:6px;font-size:12px;font-weight:500;cursor:pointer;transition:all .2s ease;flex:1;justify-content:center}.next-step-btn:disabled{opacity:.6;cursor:not-allowed}.next-step-btn.insights-btn{background:linear-gradient(135deg,#fbbf24,#f59e0b);color:#fff}.next-step-btn.insights-btn:hover:not(:disabled){background:linear-gradient(135deg,#f59e0b,#d97706);transform:translateY(-1px);box-shadow:0 4px 12px #f59e0b4d}.next-step-btn.podcast-btn{background:linear-gradient(135deg,#8b5cf6,#7c3aed);color:#fff}.next-step-btn.podcast-btn:hover:not(:disabled){background:linear-gradient(135deg,#7c3aed,#6d28d9);transform:translateY(-1px);box-shadow:0 4px 12px #7c3aed4d}.next-step-btn.loading{opacity:.8}.connection-count{font-size:12px;color:#6b7280;background:#f3f4f6;padding:4px 8px;border-radius:12px}.connections-list{padding-bottom:12px}.connection-card{margin:8px 16px;padding:0;background:#fff;border:1px solid #e5e7eb;border-radius:10px;cursor:pointer;transition:all .2s ease;position:relative;overflow:hidden}.connection-card:hover:not(.navigating){border-color:#3b82f6;box-shadow:0 4px 12px #3b82f61a;transform:translateY(-1px)}.connection-card.navigating{border-color:#f59e0b;background:#fffbeb;cursor:default;box-shadow:0 2px 8px #f59e0b33}.connection-card.same-document{border-left:4px solid #10b981}.connection-card.different-document{border-left:4px solid #3b82f6}.connection-header{padding:12px 14px 0;border-bottom:1px solid #f3f4f6}.connection-source-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.source-document-header{display:flex;align-items:center;gap:6px;flex:1;min-width:0}.document-icon{color:#ef4444;flex-shrink:0}.document-name-header{font-size:12px;font-weight:600;color:#1a1a1a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}.source-context{font-size:10px;color:#3b82f6;background:#eff6ff;padding:4px 8px;border-radius:12px;white-space:nowrap;flex-shrink:0;font-weight:600;border:1px solid #dbeafe}.connection-content{padding:12px 14px}.connection-snippet{margin:0;font-size:13px;line-height:1.4;color:#1a1a1a;font-weight:400;word-wrap:break-word}.snippet-expand-toggle{margin-top:8px;padding:4px 8px;border:none;background:#f1f5f9;color:#3b82f6;font-size:11px;font-weight:500;border-radius:4px;cursor:pointer;transition:all .2s ease;align-self:flex-start}.snippet-expand-toggle:hover{background:#e2e8f0;color:#2563eb}.connection-footer{padding:0 14px 12px}.connection-actions-full{display:flex;justify-content:space-between;align-items:center;gap:12px}.similarity-indicator{font-size:10px;font-weight:600;color:#6b7280;background:#f3f4f6;padding:3px 6px;border-radius:10px;white-space:nowrap}.jump-section-button{display:flex;align-items:center;gap:4px;padding:6px 12px;border:1px solid #3b82f6;border-radius:6px;background:#3b82f6;color:#fff;font-size:11px;font-weight:600;cursor:pointer;transition:all .2s ease;white-space:nowrap;min-width:110px;justify-content:center}.jump-section-button:hover:not(:disabled){background:#2563eb;border-color:#2563eb;transform:translateY(-1px);box-shadow:0 2px 8px #2563eb4d}.jump-section-button:disabled{cursor:not-allowed;opacity:.8;background:#fed7aa;border-color:#fed7aa;color:#ea580c}.similarity-visual{font-family:Courier New,monospace;font-size:11px;color:#6b7280;background:#f9fafb;padding:4px 8px;border-radius:4px;border:1px solid #e5e7eb}.accuracy-badge{font-size:11px;font-weight:600;padding:2px 6px;border-radius:10px;background:#eff6ff;color:#1d4ed8;border:1px solid #dbeafe}.connection-content{margin-bottom:12px}.connection-snippet{margin:0 0 8px;font-size:14px;line-height:1.5;color:#1a1a1a;font-weight:400}.navigation-feedback{margin-top:8px;padding:8px 12px;background:#fff7ed;border:1px solid #fed7aa;border-radius:6px}.navigation-progress{display:flex;align-items:center;gap:8px;font-size:12px;color:#ea580c;font-weight:500}.progress-spinner{width:12px;height:12px;border:2px solid #fed7aa;border-top:2px solid #ea580c;border-radius:50%;animation:spin 1s linear infinite}.relevance-explanation{margin:0;font-size:12px;line-height:1.4;color:#6b7280;font-style:italic;background:#f8fafc;padding:6px 8px;border-radius:4px;border-left:3px solid #3b82f6}.jump-text{font-weight:500}.button-spinner{width:12px;height:12px;border:2px solid #fed7aa;border-top:2px solid #ea580c;border-radius:50%;animation:spin 1s linear infinite}.connections-empty,.insights-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;height:300px;padding:40px;text-align:center;color:#6b7280}.empty-icon{margin-bottom:16px;opacity:.5}.empty-content h3,.connections-empty h3,.insights-empty h3{margin:0 0 8px;font-size:16px;font-weight:600;color:#1a1a1a}.empty-content p,.connections-empty p,.insights-empty p{margin:0 0 20px;font-size:14px;max-width:250px;line-height:1.5;color:#64748b}.empty-tip{display:flex;align-items:center;gap:8px;background:#f0f9ff;border:1px solid #bae6fd;border-radius:8px;padding:12px;font-size:13px;color:#0369a1;margin-top:16px}.tip-icon{font-size:16px;flex-shrink:0}.empty-steps{display:flex;flex-direction:column;gap:12px;text-align:left;margin-top:20px}.step-item{display:flex;align-items:center;gap:12px;font-size:13px;color:#475569}.step-number{background:#3b82f6;color:#fff;width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:11px;flex-shrink:0}.connections-loading,.insights-loading{padding:20px}.skeleton-loader{display:flex;flex-direction:column;gap:12px}.skeleton-card{padding:16px;border:1px solid #e5e7eb;border-radius:8px}.skeleton-line{height:12px;background:linear-gradient(90deg,#f3f4f6 25%,#e5e7eb,#f3f4f6 75%);background-size:200% 100%;animation:shimmer 1.5s infinite;border-radius:6px;margin-bottom:8px}.skeleton-line.skeleton-header{width:60%;height:10px}.skeleton-line.skeleton-content{width:100%}.skeleton-line.skeleton-content.short{width:75%}.skeleton-line.skeleton-footer{width:40%;height:10px}@keyframes shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.insights-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;height:200px}.loading-spinner{width:24px;height:24px;border:3px solid #e5e7eb;border-top:3px solid #3b82f6;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:12px}.insights-loading p{margin:0;font-size:14px;color:#6b7280}.insights-content{padding:16px}.insights-cards{display:flex;flex-direction:column;gap:12px;margin-bottom:20px}.insight-card{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:16px;transition:all .2s ease}.insight-card.compact{padding:12px}.insight-card:hover{box-shadow:0 2px 8px #0000000d;border-color:#cbd5e1}.insight-card-title{margin:0 0 12px;font-size:14px;font-weight:600;color:#1a1a1a;display:flex;align-items:center;gap:6px}.insight-list{margin:0;padding-left:0;list-style-type:none}.insight-list.compact li{margin-bottom:8px;font-size:13px;line-height:1.5}.insight-list li{position:relative;padding-left:16px;margin-bottom:10px;font-size:13px;line-height:1.5;color:#1a1a1a}.insight-list li:last-child{margin-bottom:0}.insight-list li:before{content:"•";position:absolute;left:0;color:#3b82f6;font-weight:700;font-size:14px}.expand-toggle{margin-top:8px;padding:4px 8px;border:none;background:#f1f5f9;color:#3b82f6;font-size:11px;font-weight:500;border-radius:6px;cursor:pointer;transition:all .2s ease}.insight-content{display:flex;flex-direction:column;gap:4px}.insight-text{color:#1a1a1a;line-height:1.5}.insight-source{font-size:11px;color:#6b7280;font-style:italic;font-weight:500}.insight-explanation{font-size:11px;color:#6b7280;margin-top:4px;padding-left:8px;border-left:2px solid #e5e7eb;font-style:italic;line-height:1.4}.expand-toggle:hover{background:#e2e8f0;color:#2563eb}.integrated-podcast-section{border-top:2px solid #e2e8f0;padding-top:16px;margin-top:16px}.podcast-section-title{margin:0 0 12px;font-size:14px;font-weight:600;color:#1a1a1a}.integrated-podcast-btn{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;padding:10px 16px;border:none;border-radius:8px;background:linear-gradient(135deg,#8b5cf6,#7c3aed);color:#fff;font-size:13px;font-weight:600;cursor:pointer;transition:all .2s ease;position:relative;overflow:hidden}.integrated-podcast-btn:hover:not(:disabled){background:linear-gradient(135deg,#7c3aed,#6d28d9);transform:translateY(-1px);box-shadow:0 4px 16px #7c3aed4d}.integrated-podcast-btn:disabled{cursor:not-allowed;opacity:.7}.podcast-spinner{width:14px;height:14px;border:2px solid rgba(255,255,255,.3);border-top:2px solid white;border-radius:50%;animation:spin 1s linear infinite;margin-right:4px}.integrated-podcast-btn.loading{opacity:.9;cursor:not-allowed}.integrated-podcast-player{display:flex;flex-direction:column;gap:12px}.podcast-status{text-align:center}.status-ready{color:#10b981;font-weight:600;font-size:12px}.status-script{color:#f59e0b;font-weight:600;font-size:12px}.minimalist-player{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:12px;display:flex;flex-direction:column;gap:8px}.integrated-play-button{display:flex;align-items:center;gap:8px;width:100%;padding:8px 12px;border:none;border-radius:6px;background:#3b82f6;color:#fff;font-size:13px;font-weight:600;cursor:pointer;transition:all .2s ease;justify-content:center}.integrated-play-button:hover{background:#2563eb;transform:translateY(-1px)}.play-text{font-weight:500}.audio-controls{display:flex;flex-direction:column;gap:8px}.audio-time-display{display:flex;justify-content:space-between;font-size:11px;color:#6b7280;font-weight:500}.current-time{color:#3b82f6}.audio-time-display{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#6b7280;margin-bottom:8px}.current-time,.duration{font-weight:600;color:#374151}.playback-speed-btn{background:#f8fafc;border:1px solid #e2e8f0;border-radius:4px;padding:2px 6px;font-size:11px;font-weight:600;color:#3b82f6;cursor:pointer;transition:all .2s ease;line-height:1;min-width:28px}.playback-speed-btn:hover{background:#3b82f6;color:#fff;border-color:#3b82f6;transform:scale(1.05)}.playback-speed-btn:active{transform:scale(.95)}.audio-progress-bar{height:6px;background:#e2e8f0;border-radius:3px;overflow:hidden;position:relative;cursor:pointer;margin-bottom:8px}.audio-progress-bar:hover{height:8px}.progress-indicator{height:100%;background:linear-gradient(90deg,#3b82f6,#1d4ed8);transition:width .1s ease;border-radius:3px;position:relative}.progress-indicator.playing{background:linear-gradient(90deg,#10b981,#059669)}.progress-indicator:after{content:"";position:absolute;right:-6px;top:50%;transform:translateY(-50%);width:12px;height:12px;background:#fff;border:2px solid #3b82f6;border-radius:50%;opacity:0;transition:opacity .2s ease}.audio-progress-bar:hover .progress-indicator:after{opacity:1}.audio-action-buttons{display:flex;gap:8px;align-items:center;margin-top:8px}.download-audio-btn,.generate-new-audio-btn{display:flex;align-items:center;gap:6px;padding:8px 12px;border:1px solid #e2e8f0;border-radius:6px;background:#fff;color:#6b7280;cursor:pointer;transition:all .2s ease;font-size:12px;font-weight:500;flex:1;justify-content:center}.download-audio-btn:hover,.generate-new-audio-btn:hover{background:#f3f4f6;color:#1a1a1a;border-color:#cbd5e1}.generate-new-audio-btn{background:linear-gradient(135deg,#f59e0b,#d97706);color:#fff;border-color:#f59e0b}.generate-new-audio-btn:hover:not(:disabled){background:linear-gradient(135deg,#d97706,#b45309);border-color:#d97706}.generate-new-audio-btn:disabled{background:#f3f4f6;color:#9ca3af;border-color:#e5e7eb;cursor:not-allowed}.insights-error,.podcast-error{padding:16px;background:#fef2f2;border:1px solid #fecaca;border-radius:6px;color:#dc2626;font-size:14px;text-align:center}.retry-insights-btn{margin-top:12px;padding:8px 16px;background:#3b82f6;color:#fff;border:none;border-radius:6px;font-size:13px;font-weight:500;cursor:pointer;transition:all .2s ease}.retry-insights-btn:hover:not(:disabled){background:#2563eb;transform:translateY(-1px)}.retry-insights-btn:disabled{background:#9ca3af;cursor:not-allowed;transform:none}.podcast-error strong{display:block;margin-bottom:8px;font-size:14px}.podcast-error p{margin:8px 0;color:#7f1d1d;font-size:12px}.podcast-error ul{margin:8px 0 12px 16px;font-size:11px;color:#7f1d1d}.podcast-error li{margin-bottom:4px}.retry-podcast-btn{padding:8px 16px;background:#dc2626;color:#fff;border:none;border-radius:6px;font-size:12px;font-weight:500;cursor:pointer;transition:all .2s ease}.retry-podcast-btn:hover{background:#b91c1c;transform:translateY(-1px)}.button-spinner{position:absolute;width:16px;height:16px;border:2px solid transparent;border-top:2px solid currentColor;border-radius:50%;animation:spin 1s linear infinite}.synapse-content::-webkit-scrollbar{width:6px}.synapse-content::-webkit-scrollbar-track{background:transparent}.synapse-content::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:3px}.synapse-content::-webkit-scrollbar-thumb:hover{background:#9ca3af}.insights-tab-container{position:relative;height:100%;width:100%;display:flex;flex-direction:column}.insights-tab-container.overlay-active .insights-content-wrapper{filter:blur(.5px);pointer-events:none}.insights-content-wrapper{flex:1;overflow-y:auto;overflow-x:hidden;position:relative;transition:filter .2s ease;padding-bottom:20px}.insights-podcast-footer{background:#fff;border-top:2px solid #e2e8f0;padding:16px 20px;max-height:40vh;overflow-y:auto;transition:all .3s ease}.insights-podcast-footer .integrated-podcast-section{border-top:none;padding-top:0;margin-top:0}.insights-podcast-footer .integrated-podcast-player{max-height:30vh;overflow-y:auto}.insights-podcast-footer .podcast-error{max-height:25vh;overflow-y:auto}.confirmation-overlay{position:absolute;top:0;left:0;right:0;bottom:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:20px}.confirmation-backdrop{position:absolute;top:0;left:0;right:0;bottom:0;background:#00000014;cursor:pointer}.confirmation-dialog{position:relative;background:#fff;border-radius:12px;box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a;border:1px solid #e5e7eb;max-width:400px;width:100%;max-height:90%;overflow:hidden;animation:confirmationSlideIn .2s ease-out}@keyframes confirmationSlideIn{0%{opacity:0;transform:translateY(-10px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}.confirmation-content{padding:24px 24px 20px;display:flex;gap:16px;align-items:flex-start}.confirmation-icon{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:10px;background:linear-gradient(135deg,#fbbf24,#f59e0b);color:#fff;flex-shrink:0}.confirmation-text{flex:1;min-width:0}.confirmation-text h4{margin:0 0 8px;font-size:16px;font-weight:600;color:#1a1a1a;line-height:1.2}.confirmation-text p{margin:0;font-size:14px;color:#6b7280;line-height:1.4}.confirmation-actions{display:flex;gap:12px;padding:0 24px 24px;justify-content:flex-end}.confirmation-btn{padding:10px 20px;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease;border:1px solid transparent;min-width:80px;display:flex;align-items:center;justify-content:center}.confirmation-btn.cancel-btn{background:#f3f4f6;color:#6b7280;border-color:#e5e7eb}.confirmation-btn.cancel-btn:hover{background:#e5e7eb;color:#374151}.confirmation-btn.continue-btn{background:linear-gradient(135deg,#f59e0b,#d97706);color:#fff;border-color:#f59e0b}.confirmation-btn.continue-btn:hover{background:linear-gradient(135deg,#d97706,#b45309);border-color:#d97706;transform:translateY(-1px);box-shadow:0 4px 12px #f59e0b4d}.confirmation-btn:active{transform:translateY(0)}@media (max-width: 768px){.synapse-header{padding:16px}.connection-card{margin:8px 16px;padding:12px}.insights-content{padding:16px}.tab-button{padding:8px 12px;font-size:13px}}.quick-start-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)}.quick-start-modal{background:#fff;border-radius:16px;box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a;width:85vw;height:80vh;max-width:1100px;overflow:hidden;display:flex;flex-direction:column}.quick-start-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px 12px;border-bottom:1px solid #e2e8f0;flex-shrink:0}.quick-start-header h2{margin:0;font-size:24px;font-weight:700;color:#1a1a1a}.close-button{background:none;border:none;color:#64748b;cursor:pointer;padding:4px;border-radius:6px;transition:all .2s}.close-button:hover{background:#f1f5f9;color:#1a1a1a}.quick-start-content{padding:24px;flex:1;display:flex;flex-direction:column;overflow:hidden}.step-indicator{text-align:center;margin-bottom:20px;flex-shrink:0;display:flex;align-items:center;justify-content:center;gap:16px}.step-count{background:#f1f5f9;color:#475569;padding:6px 16px;border-radius:12px;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.step-loading-indicator{display:flex;align-items:center;gap:8px;color:#64748b;font-size:12px;padding:4px 12px;background:#3b82f61a;border-radius:12px;border:1px solid rgba(59,130,246,.2)}.loading-spinner{width:12px;height:12px;border:2px solid #e2e8f0;border-top:2px solid #3b82f6;border-radius:50%;animation:spin 1s linear infinite}.step-content{flex:1;display:flex;gap:24px;overflow:hidden}.step-main{flex:1;display:flex;flex-direction:column;min-width:0}.step-sidebar{width:320px;flex-shrink:0;display:flex;flex-direction:column;gap:16px}.step-header{display:flex;align-items:center;gap:16px;margin-bottom:16px;flex-shrink:0}.step-icon{flex-shrink:0;width:48px;height:48px;background:#f0f9ff;border-radius:12px;display:flex;align-items:center;justify-content:center}.step-icon svg{color:#3b82f6}.step-content h3{margin:0;font-size:20px;font-weight:600;color:#1a1a1a}.step-visual{flex:1;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:12px;background:#f8fafc;padding:16px;position:relative}.step-image{border-radius:8px;box-shadow:0 10px 25px -5px #0000001a,0 4px 6px -2px #0000000d;border:1px solid #e2e8f0;transition:transform .2s,opacity .3s ease-in-out;display:block}.step-image:hover{transform:scale(1.02)}.image-loading{opacity:0}.image-loaded{opacity:1}.image-container{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.image-loading-skeleton{position:absolute;top:0;left:0;right:0;bottom:0;background:#f1f5f9;border-radius:8px;overflow:hidden;border:1px solid #e2e8f0;display:flex;align-items:center;justify-content:center}.skeleton-shimmer{position:absolute;top:0;left:0;right:0;bottom:0;background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.6) 50%,transparent 100%);animation:shimmer 2s infinite}.skeleton-content{display:flex;flex-direction:column;align-items:center;gap:12px;color:#94a3b8;z-index:1}.skeleton-icon{opacity:.5}.skeleton-text{font-size:14px;font-weight:500}@keyframes shimmer{0%{transform:translate(-100%)}to{transform:translate(100%)}}.step-visual.step-0 .step-image{width:100%;height:auto;max-height:100%;object-fit:contain}.step-visual.step-1 .step-image{height:100%;width:auto;max-width:100%;object-fit:contain}.step-visual.step-2 .step-image{width:100%;height:auto;max-height:100%;object-fit:contain}.step-visual.step-3 .step-image{height:100%;width:auto;max-width:100%;object-fit:contain}.step-visual.step-4 .step-image{width:100%;height:auto;max-height:100%;object-fit:contain}.step-visual.step-5{height:120px;align-items:center;padding:8px 16px}.step-visual.step-5 .step-image{width:100%;height:auto;max-height:100px;object-fit:contain}.image-placeholder{width:100%;height:100%;background:#f8fafc;border:2px dashed #cbd5e1;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#64748b;min-height:200px}.image-placeholder svg{color:#94a3b8}.step-visual.step-0 .image-container,.step-visual.step-2 .image-container,.step-visual.step-4 .image-container{background:linear-gradient(135deg,#f1f5f9,#e2e8f0)}.step-visual.step-1 .image-container,.step-visual.step-3 .image-container{background:linear-gradient(45deg,#f8fafc,#f1f5f9)}.step-content{transition:opacity .2s ease-in-out}.step-content.loading{opacity:.7}.step-description{flex-shrink:0}.step-description p{margin:0 0 16px;font-size:16px;line-height:1.6;color:#64748b}.step-features{margin-bottom:20px}.step-features h4{margin:0 0 12px;font-size:14px;font-weight:600;color:#374151;text-transform:uppercase;letter-spacing:.5px}.step-features ul{margin:0;padding:0;list-style:none}.step-features li{font-size:14px;color:#64748b;position:relative;padding:6px 0 6px 20px}.step-features li:before{content:"✓";position:absolute;left:0;color:#059669;font-weight:600}.step-highlight{display:flex;align-items:center;gap:8px;background:#f0f9ff;border:1px solid #bae6fd;border-radius:10px;padding:12px 16px;font-size:14px;color:#0369a1;font-weight:500}.highlight-icon{flex-shrink:0}.step-navigation{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:20px;border-top:1px solid #e2e8f0;flex-shrink:0}.nav-button{display:flex;align-items:center;gap:6px;padding:12px 20px;border-radius:8px;border:none;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s}.nav-button:disabled{opacity:.5;cursor:not-allowed}.nav-button.prev{background:#f8fafc;color:#64748b;border:1px solid #e2e8f0}.nav-button.prev:hover:not(:disabled){background:#f1f5f9;color:#475569}.nav-button.next,.nav-button.get-started{background:#3b82f6;color:#fff}.nav-button.next:hover,.nav-button.get-started:hover{background:#2563eb}.step-dots{display:flex;gap:8px}.step-dot{width:10px;height:10px;border-radius:50%;border:none;background:#d1d5db;cursor:pointer;transition:all .2s}.step-dot.active{background:#3b82f6;transform:scale(1.2)}.step-dot.completed{background:#10b981}.step-dot:hover{transform:scale(1.1)}@media (max-width: 1024px){.step-content{flex-direction:column;gap:24px}.step-sidebar{width:100%;order:-1}.step-visual{height:300px}.step-visual.step-5{height:100px}}@media (max-width: 768px){.quick-start-modal{width:95vw;height:95vh;margin:0}.quick-start-content{padding:20px}.step-visual{height:250px}.step-visual.step-5{height:80px}.step-visual.step-1 .step-image,.step-visual.step-3 .step-image{max-width:200px}}@media (max-width: 640px){.quick-start-header,.quick-start-content{padding:16px}.step-header{gap:12px}.step-icon{width:40px;height:40px}.step-content h3{font-size:18px}.step-visual{height:200px}.step-visual.step-5{height:60px}.step-navigation{flex-direction:column;gap:12px}.nav-button{width:100%;justify-content:center}.step-dots{order:-1;justify-content:center}}.knowledge-graph-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000bf;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);z-index:1000;display:flex;align-items:center;justify-content:center;padding:20px;animation:fadeIn .3s ease-out}.knowledge-graph-modal{background:#0f172a;color:#e2e8f0;border-radius:16px;box-shadow:0 25px 50px -12px #00000080;width:90vw;max-width:1200px;height:85vh;max-height:800px;display:flex;flex-direction:column;overflow:hidden;animation:slideIn .3s ease-out}.knowledge-graph-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid #334155;background:linear-gradient(135deg,#1e293b,#334155);color:#fff;min-height:80px}.knowledge-graph-title{display:flex;align-items:center;gap:12px;flex:1}.knowledge-graph-title>div{display:flex;flex-direction:column;gap:2px;justify-content:center}.knowledge-graph-controls{display:flex;gap:8px;margin-right:12px;align-items:center}.control-button{display:flex;align-items:center;justify-content:center;padding:8px;background:#ffffff1a;border:1px solid rgba(255,255,255,.2);border-radius:6px;color:#e5e7eb;cursor:pointer;transition:all .2s ease;min-width:36px;height:36px}.control-button:hover{background:#ffffff26;border-color:#ffffff4d;transform:translateY(-1px)}.control-button:active{transform:translateY(0);background:#fff3}.knowledge-graph-icon{opacity:.9}.knowledge-graph-title h2{margin:0;font-size:22px;font-weight:700;line-height:1.2;color:#60a5fa}.knowledge-graph-subtitle{font-size:13px;opacity:.9;margin-left:0;color:#cbd5e1;line-height:1.2}.knowledge-graph-close{background:#ffffff1a;border:1px solid rgba(255,255,255,.2);border-radius:8px;color:#fff;padding:8px;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center;min-width:40px;height:40px}.knowledge-graph-close:hover{background:#fff3;transform:scale(1.05)}.knowledge-graph-content{flex:1;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}.knowledge-graph-loading{display:flex;flex-direction:column;align-items:center;gap:20px;color:#94a3b8}.knowledge-graph-loading .spin{animation:spin 1s linear infinite;color:#60a5fa}.knowledge-graph-loading p{font-size:16px;font-weight:500}.knowledge-graph-error{display:flex;flex-direction:column;align-items:center;gap:16px;color:#ef4444;text-align:center;max-width:400px}.knowledge-graph-error h3{margin:0;font-size:20px;font-weight:600}.knowledge-graph-error p{margin:0;color:#6b7280}.knowledge-graph-retry{background:#3b82f6;color:#fff;border:none;border-radius:8px;padding:12px 24px;font-weight:500;cursor:pointer;transition:background .2s ease}.knowledge-graph-retry:hover{background:#2563eb}.knowledge-graph-empty,.knowledge-graph-no-connections{display:flex;flex-direction:column;align-items:center;gap:16px;color:#6b7280;text-align:center;max-width:400px}.knowledge-graph-empty h3,.knowledge-graph-no-connections h3{margin:0;font-size:20px;font-weight:600;color:#374151}.knowledge-graph-empty p,.knowledge-graph-no-connections p{margin:0;color:#6b7280}.knowledge-graph-isolated-docs{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px;max-width:500px}.isolated-doc{background:#f3f4f6;border:1px solid #d1d5db;border-radius:6px;padding:8px 12px;font-size:14px;cursor:pointer;transition:all .2s ease}.isolated-doc:hover{background:#e5e7eb;border-color:#9ca3af;transform:translateY(-1px)}.knowledge-graph-container{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.knowledge-graph-legend{position:absolute;bottom:20px;right:20px;background:#0f172ae6;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid rgba(71,85,105,.5);border-radius:12px;padding:16px;box-shadow:0 8px 32px #00000080;z-index:15;max-width:250px}.knowledge-graph-legend h4{margin:0 0 12px;font-size:16px;font-weight:600;color:#e2e8f0;display:flex;align-items:center;gap:8px}.legend-item{display:flex;align-items:center;gap:10px;margin-bottom:10px;font-size:14px;color:#cbd5e1;padding:4px 0;transition:all .2s ease}.legend-item:last-child{margin-bottom:0}.legend-item:hover{background:#60a5fa1a;border-radius:6px;padding:4px 8px;margin:6px -8px}.legend-node{width:14px;height:14px;border-radius:50%;flex-shrink:0;border:2px solid rgba(255,255,255,.8);box-shadow:0 1px 3px #0000001a}.legend-node.current-doc{background:#3b82f6;border:2px solid #1e40af}.legend-node.breakfast{background:#f59e0b}.legend-node.lunch{background:#10b981}.legend-node.dinner-mains{background:#ef4444}.legend-node.dinner-sides{background:#8b5cf6}.legend-line.very-strong{background:#d1d5db;height:3px}.legend-line.strong{background:#d1d5db;height:2px}.legend-line.medium{background:#d1d5db;height:1px}.legend-line.thickness-very-strong{background:#6b7280;height:4px;width:30px}.legend-line.thickness-strong{background:#6b7280;height:3px;width:30px}.legend-line.thickness-medium{background:#6b7280;height:2px;width:30px}.legend-line.thickness-weak{background:#6b7280;height:1px;width:30px}.legend-line.color-very-strong{background:#ef4444;height:3px;width:30px}.legend-line.color-strong{background:#f97316;height:3px;width:30px}.legend-line.color-medium{background:#eab308;height:3px;width:30px}.legend-line.color-weak{background:#10b981;height:3px;width:30px}.legend-line.color-strong-new{background:#000;height:3px}.legend-line.color-medium-new{background:#6b7280;height:3px}.legend-line.color-low-new{background:#d1d5db;height:3px}.legend-node.ready-doc{background:#10b981}.legend-line{width:20px;height:3px;border-radius:2px;flex-shrink:0}.legend-line.strong{background:#ef4444}.legend-line.medium{background:#f59e0b}.knowledge-graph-stats{position:absolute;top:20px;right:20px;display:flex;gap:16px}.stat{background:#0f172ae6;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid #475569;border-radius:8px;padding:12px 16px;text-align:center;box-shadow:0 4px 6px -1px #0000004d}.stat-value{display:block;font-size:20px;font-weight:700;color:#e2e8f0}.stat-label{display:block;font-size:12px;color:#94a3b8;text-transform:uppercase;letter-spacing:.05em}.stat.hovered{background:#60a5fa1a;border-color:#60a5fa}.stat.hovered .stat-value{color:#60a5fa;font-weight:600}.knowledge-graph-viewing-status{position:absolute;top:120px;right:20px;z-index:10}.knowledge-graph-viewing-status .stat{background:#60a5fa26;border-color:#60a5fa;box-shadow:0 4px 6px -1px #3b82f64d}.knowledge-graph-viewing-status .stat-value{color:#60a5fa;font-weight:600;font-size:16px}.knowledge-graph-instructions{padding:20px 24px;background:linear-gradient(135deg,#1e293b,#334155);border-top:1px solid #475569;color:#e2e8f0;font-size:14px;line-height:1.6;text-align:center;position:relative;box-shadow:inset 0 1px #ffffff1a}.knowledge-graph-instructions p{margin:0 0 8px;color:#cbd5e1;transition:color .2s ease}.knowledge-graph-instructions p:last-child{margin-bottom:0}.knowledge-graph-instructions p:hover{color:#e2e8f0}.knowledge-graph-instructions strong{color:#60a5fa;font-weight:600;text-shadow:0 0 8px rgba(96,165,250,.3)}.knowledge-graph-instructions .shortcuts{font-size:13px;color:#94a3b8;font-weight:500;opacity:.9;transition:opacity .2s ease}.knowledge-graph-instructions .shortcuts:hover{opacity:1;color:#cbd5e1}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideIn{0%{opacity:0;transform:scale(.95) translateY(20px)}to{opacity:1;transform:scale(1) translateY(0)}}@media (max-width: 768px){.knowledge-graph-modal-overlay{padding:10px}.knowledge-graph-modal{width:95vw;height:90vh}.knowledge-graph-header{padding:16px}.knowledge-graph-title h2{font-size:20px}.knowledge-graph-subtitle{display:none}.knowledge-graph-legend,.knowledge-graph-stats{position:static;margin:10px}.knowledge-graph-stats{justify-content:center}}.knowledge-graph-modal ::-webkit-scrollbar{width:6px}.knowledge-graph-modal ::-webkit-scrollbar-track{background:#f1f5f9}.knowledge-graph-modal ::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:3px}.knowledge-graph-modal ::-webkit-scrollbar-thumb:hover{background:#94a3b8}.knowledge-graph-node-list{position:absolute;left:20px;top:20px;bottom:20px;width:280px;background:#0f172ae6;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-radius:12px;padding:16px;box-shadow:0 8px 32px #00000080;display:flex;flex-direction:column;z-index:15;border:1px solid rgba(71,85,105,.5)}.knowledge-graph-container canvas{outline:none}.knowledge-graph-container .scene-tooltip{display:none!important}.graph-hover-tooltip{animation:fadeIn .2s ease-out;box-shadow:0 4px 12px #0000004d}.knowledge-graph-node-list h4{margin:0 0 16px;font-size:16px;font-weight:600;color:#e2e8f0;display:flex;align-items:center;gap:8px}.node-list-items{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:8px}.node-list-item{display:flex;align-items:center;gap:12px;padding:12px;border-radius:8px;cursor:pointer;transition:all .2s ease;border:1px solid transparent}.node-list-item:hover{background:#60a5fa1a;border-color:#60a5fa33;transform:translate(4px)}.node-list-item.hovered{background:#60a5fa33;border-color:#60a5fa66;transform:translate(8px);box-shadow:0 2px 8px #60a5fa33}.node-list-item.current{background:#60a5fa1a;border-color:#60a5fa4d;font-weight:600}.node-color-indicator{width:12px;height:12px;border-radius:50%;flex-shrink:0;border:2px solid rgba(226,232,240,.8);box-shadow:0 1px 3px #0000004d}.node-name{flex:1;font-size:14px;color:#cbd5e1;line-height:1.4;word-break:break-word}.current-badge{background:#60a5fa;color:#0f172a;padding:2px 8px;border-radius:12px;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.tooltip-guide-overlay{position:fixed;top:0;left:0;right:0;bottom:0;z-index:9999;pointer-events:auto;background:transparent}.tooltip-guide{position:absolute;top:100px;right:80px;width:260px;background:#fff;border-radius:8px;box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d,0 0 0 1px #0000000d;border:1px solid #e5e7eb;overflow:hidden;animation:tooltipSlideIn .4s cubic-bezier(.4,0,.2,1);transform-origin:right top}.tooltip-arrow{position:absolute;top:24px;right:-8px;width:16px;height:16px;background:#fff;border:1px solid #e5e7eb;border-left:none;border-bottom:none;transform:rotate(45deg);z-index:-1}.tooltip-header{display:flex;align-items:center;justify-content:between;padding:12px 16px 8px;border-bottom:1px solid #f3f4f6}.tooltip-icon{display:flex;align-items:center;justify-content:center;width:28px;height:28px;background:linear-gradient(135deg,#3b82f6,#1d4ed8);border-radius:6px;color:#fff;margin-right:auto}.tooltip-close{background:none;border:none;color:#6b7280;cursor:pointer;padding:4px;border-radius:4px;transition:all .2s ease;display:flex;align-items:center;justify-content:center}.tooltip-close:hover{background:#f3f4f6;color:#374151}.tooltip-content{padding:12px 16px}.tooltip-content h4{margin:0 0 6px;font-size:15px;font-weight:600;color:#111827;line-height:1.3}.tooltip-content p{margin:0 0 12px;font-size:13px;color:#6b7280;line-height:1.4}.tooltip-expand-hint{display:flex;align-items:center;gap:5px;padding:6px 10px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:4px;font-size:11px;color:#64748b;font-style:italic}.tooltip-expand-hint svg{color:#94a3b8}.tooltip-footer{padding:12px 16px;border-top:1px solid #f3f4f6;background:#fafafa}.tooltip-dismiss-btn{width:100%;padding:8px 14px;background:linear-gradient(135deg,#3b82f6,#1d4ed8);color:#fff;border:none;border-radius:5px;font-size:13px;font-weight:500;cursor:pointer;transition:all .2s ease}.tooltip-dismiss-btn:hover{transform:translateY(-1px);box-shadow:0 4px 12px #3b82f64d}.tooltip-dismiss-btn:active{transform:translateY(0)}@keyframes tooltipSlideIn{0%{opacity:0;transform:scale(.95) translate(20px)}to{opacity:1;transform:scale(1) translate(0)}}@media (max-width: 768px){.tooltip-guide{right:20px;width:240px;top:80px}.tooltip-arrow{right:-8px}}@media (prefers-contrast: high){.tooltip-guide{border:2px solid #000}.tooltip-icon,.tooltip-dismiss-btn{background:#000}}@media (prefers-reduced-motion: reduce){.tooltip-guide{animation:none}.tooltip-dismiss-btn,.tooltip-close{transition:none}}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#f8fafc;color:#1a1a1a;line-height:1.6}.app{height:100vh;display:flex;flex-direction:column;overflow:hidden}.app-layout{display:flex;height:100vh;flex:1}.panel{display:flex;flex-direction:column;overflow:hidden;background:#fff}.panel-left{width:320px;min-width:280px;max-width:400px;border-right:1px solid #e1e5e9;background:#fafafa;position:relative;transition:all .3s cubic-bezier(.4,0,.2,1)}.panel-left.collapsed{width:56px;min-width:56px;max-width:56px}.panel-center{flex:1;min-width:400px;background:#fff;position:relative;overflow:visible}.panel-right{width:360px;min-width:320px;max-width:450px;border-left:1px solid #e1e5e9;background:#fafafa;position:relative;transition:all .3s cubic-bezier(.4,0,.2,1)}.panel-right.collapsed{width:56px;min-width:56px;max-width:56px;background:transparent;border-left:none}@media (max-width: 1200px){.panel-left{width:280px;min-width:250px}.panel-right{width:320px;min-width:300px}}@media (max-width: 768px){.app-layout{flex-direction:column}.panel-left,.panel-right{width:100%;min-width:unset;max-width:unset;height:200px;border:none;border-bottom:1px solid #e1e5e9}.panel-center{flex:1;min-width:unset}}h1,h2,h3,h4,h5,h6{font-weight:600;color:#1a1a1a;margin:0}h1{font-size:24px}h2{font-size:20px}h3{font-size:18px}h4{font-size:16px}p{margin:0;color:#4a4a4a}button{border:none;border-radius:6px;cursor:pointer;font-family:inherit;font-size:14px;font-weight:500;transition:all .2s ease;display:inline-flex;align-items:center;justify-content:center;gap:6px}button:disabled{opacity:.6;cursor:not-allowed}.btn-primary{background:linear-gradient(135deg,#3b82f6,#1d4ed8);color:#fff;padding:10px 16px}.btn-primary:hover:not(:disabled){background:linear-gradient(135deg,#1d4ed8,#1e40af);transform:translateY(-1px);box-shadow:0 4px 12px #3b82f64d}.btn-secondary{background:#fff;color:#6b7280;border:1px solid #e5e7eb;padding:8px 12px}.btn-secondary:hover:not(:disabled){background:#f9fafb;border-color:#d1d5db;color:#1a1a1a}input{border:1px solid #d1d5db;border-radius:6px;padding:8px 12px;font-family:inherit;font-size:14px;background:#fff;transition:all .2s ease}input:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 3px #3b82f61a}.loading-spinner{width:20px;height:20px;border:2px solid #e5e7eb;border-top:2px solid #3b82f6;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.text-center{text-align:center}.text-muted{color:#6b7280}.text-error{color:#dc2626}.text-success{color:#10b981}.mb-2{margin-bottom:8px}.mb-3{margin-bottom:12px}.mb-4{margin-bottom:16px}.mb-6{margin-bottom:24px}.mt-2{margin-top:8px}.mt-3{margin-top:12px}.mt-4{margin-top:16px}.mt-6{margin-top:24px}.shadow-sm{box-shadow:0 1px 2px #0000000d}.shadow{box-shadow:0 1px 3px #0000001a,0 1px 2px #0000000f}.shadow-lg{box-shadow:0 10px 15px -3px #0000001a,0 4px 6px -2px #0000000d}.fade-in{animation:fadeIn .3s ease-out}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.slide-up{animation:slideUp .3s ease-out}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.focus-outline{outline:2px solid #3b82f6;outline-offset:2px}@media (prefers-contrast: high){.panel{border-width:2px}button{border:1px solid currentColor}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}@media print{.app-layout{display:block}.panel-left,.panel-right{display:none}.panel-center{width:100%;height:auto}}
