.chat-sidebar{width:280px;height:100%;background:#f8f9fa;border-right:1px solid #e0e0e0;display:flex;flex-direction:column;position:relative;transition:width .3s ease}.chat-sidebar.collapsed{width:50px}.sidebar-header{padding:1.25rem 1rem;border-bottom:1px solid #e0e0e0}.sidebar-header h2{margin:0;font-size:1.1rem;font-weight:700;background:linear-gradient(135deg,#667eea,#764ba2);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.sidebar-actions{padding:1rem;border-bottom:1px solid #e0e0e0}.sidebar-btn{width:100%;display:flex;align-items:center;gap:.75rem;padding:.75rem 1rem;background:#fff;border:1px solid #e0e0e0;border-radius:8px;color:#333;font-size:.95rem;font-weight:500;cursor:pointer;transition:all .2s ease}.sidebar-btn.primary{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none}.sidebar-btn:hover{transform:translateY(-2px);box-shadow:0 4px 12px #667eea33}.sidebar-btn.primary:hover{opacity:.95}.btn-icon{font-size:1.1rem}.sidebar-section{flex:1;display:flex;flex-direction:column;overflow:hidden}.section-title{padding:1rem 1rem .5rem;margin:0;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:#666}.conversations-list{flex:1;overflow-y:auto;padding:0 .5rem 1rem}.conversation-item{display:flex;align-items:center;gap:.5rem;padding:.75rem;margin:.25rem 0;background:#fff;border:1px solid #e0e0e0;border-radius:8px;cursor:pointer;transition:all .2s ease}.conversation-item:hover{background:#f0f4ff;border-color:#667eea;transform:translate(2px)}.conversation-item.active{background:linear-gradient(135deg,#667eea1a,#764ba21a);border-color:#667eea;border-width:2px}.conversation-content{flex:1;min-width:0}.conversation-title{font-size:.9rem;font-weight:500;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:.25rem}.conversation-meta{font-size:.75rem;color:#999}.conversation-actions{display:flex;gap:.25rem;opacity:0;transition:opacity .2s ease}.conversation-item:hover .conversation-actions{opacity:1}.action-btn{background:none;border:none;padding:.25rem .5rem;cursor:pointer;font-size:1rem;color:#666;transition:all .2s ease;border-radius:4px}.action-btn:hover{background:#0000000d;color:#333}.action-btn.delete:hover{background:#ff44441a;color:#f44}.empty-state{padding:2rem 1rem;text-align:center;color:#999;font-size:.9rem}.collapse-toggle{position:absolute;top:1.5rem;right:-12px;width:24px;height:24px;background:#fff;border:1px solid #e0e0e0;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:.7rem;color:#666;transition:all .2s ease;z-index:10}.collapse-toggle:hover{background:#667eea;color:#fff;border-color:#667eea;transform:scale(1.1)}.conversations-list::-webkit-scrollbar{width:6px}.conversations-list::-webkit-scrollbar-track{background:transparent}.conversations-list::-webkit-scrollbar-thumb{background:#e0e0e0;border-radius:3px}.conversations-list::-webkit-scrollbar-thumb:hover{background:#ccc}@media (max-width: 768px){.chat-sidebar{position:fixed;left:0;top:0;z-index:1000;transform:translate(-100%);box-shadow:2px 0 12px #0000001a}.chat-sidebar:not(.collapsed){transform:translate(0)}.collapse-toggle{right:-40px;width:32px;height:32px;font-size:.9rem}}.chat-layout{display:flex;height:100%;overflow:hidden}.chat-interface{display:flex;flex-direction:column;flex:1;height:100%;background-color:#fff;overflow:hidden}.messages-container{flex:1;overflow-y:auto;padding:2rem 1.5rem 1.5rem;display:flex;flex-direction:column;gap:1rem;min-height:0}.welcome-message{text-align:center;padding:2rem 2rem 3rem;color:#666;margin-top:auto;margin-bottom:auto}.welcome-message h2{color:#333;margin-bottom:.5rem}.example-queries{margin-top:2rem;text-align:left;max-width:700px;margin-left:auto;margin-right:auto}.example-queries-label{font-size:.95rem;color:#666;margin-bottom:1rem;font-weight:500}.example-queries-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1rem}.example-query-card{display:flex;align-items:center;gap:.75rem;padding:1rem 1.25rem;background:linear-gradient(135deg,#f5f7fa,#fff);border:2px solid #e8e8e8;border-radius:12px;cursor:pointer;transition:all .25s ease;text-align:left;font-size:.95rem;color:#333;box-shadow:0 2px 4px #0000000d}.example-query-card:hover{background:linear-gradient(135deg,#fff,#f5f7fa);border-color:#667eea;transform:translateY(-3px);box-shadow:0 4px 12px #667eea26}.example-query-card:active{transform:translateY(-1px)}.example-icon{font-size:1.5rem;flex-shrink:0;filter:drop-shadow(0 1px 2px rgba(0,0,0,.1))}.example-text{flex:1;line-height:1.4}@media (max-width: 768px){.example-queries-grid{grid-template-columns:1fr}.example-query-card{padding:.875rem 1rem;font-size:.9rem}.example-icon{font-size:1.3rem}}.message{display:flex;flex-direction:column;max-width:80%;animation:slideIn .3s ease-out}.message.user{align-self:flex-end}.message.assistant{align-self:flex-start}.message-content{padding:1rem;border-radius:12px;word-wrap:break-word}.message.user .message-content{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.message.assistant .message-content{background-color:#f0f0f0;color:#333}.message-content.loading{font-style:italic;opacity:.7}.message-timestamp{font-size:.75rem;color:#999;margin-top:.25rem;padding:0 .5rem}.citation-link{color:#667eea;font-weight:700;cursor:pointer;text-decoration:none;font-size:.75em;vertical-align:super;line-height:0;padding:.15rem .35rem;border-radius:4px;transition:all .15s;display:inline-block;margin:0 .15rem;background-color:#667eea1a}.citation-link:hover{background-color:#667eea;color:#fff;transform:translateY(-2px);box-shadow:0 2px 4px #667eea4d}.input-form{display:flex;gap:.5rem;padding:1rem 1.5rem;border-top:1px solid #e0e0e0;background-color:#fff}.chat-input{flex:1;padding:.75rem 1rem;border:1px solid #e0e0e0;border-radius:24px;font-size:1rem;outline:none;transition:border-color .2s}.chat-input:focus{border-color:#667eea}.send-button{padding:.75rem 1.5rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:24px;font-size:1rem;cursor:pointer;transition:opacity .2s}.send-button:hover:not(:disabled){opacity:.9}.send-button:disabled{opacity:.5;cursor:not-allowed}@keyframes slideIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.message-content{overflow-x:auto;max-width:100%}.message-content .markdown-table{width:100%;min-width:450px;border-collapse:separate;border-spacing:0;margin:1rem 0;background-color:#fff;border-radius:8px;box-shadow:0 2px 8px #00000014;border:1px solid #e5e7eb}.message-content .markdown-thead{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.message-content .markdown-th{padding:.875rem 1rem;text-align:left;font-weight:600;font-size:.8125rem;text-transform:uppercase;letter-spacing:.05em;border:none;white-space:nowrap}.message-content .markdown-tbody .markdown-tr{border-bottom:1px solid #e5e7eb;transition:background-color .15s ease}.message-content .markdown-tbody .markdown-tr:last-child{border-bottom:none}.message-content .markdown-tbody .markdown-tr:hover{background-color:#f3f4f6}.message-content .markdown-td{padding:.75rem 1rem;font-size:.875rem;color:#1f2937;border:none;line-height:1.5}.message-content .markdown-tbody .markdown-tr:nth-child(odd){background-color:#fff}.message-content .markdown-tbody .markdown-tr:nth-child(2n){background-color:#f9fafb}.message-content .markdown-tbody .markdown-tr:nth-child(2n):hover{background-color:#f3f4f6}.message-content h2{font-size:1.25rem;font-weight:600;margin-top:1rem;margin-bottom:.75rem;color:#1f2937}.message-content h3{font-size:1.1rem;font-weight:600;margin-top:.875rem;margin-bottom:.5rem;color:#374151}.message-content ul,.message-content ol{margin:.75rem 0;padding-left:1.5rem}.message-content li{margin:.25rem 0;line-height:1.6}.message-content blockquote{border-left:4px solid #667eea;padding-left:1rem;margin:1rem 0;font-style:italic;color:#6b7280}.message-content code{background-color:#f3f4f6;padding:.2rem .4rem;border-radius:3px;font-family:Courier New,monospace;font-size:.875rem}.message-content p{margin:.75rem 0;line-height:1.6}.document-viewer{display:flex;flex-direction:column;height:100%;background-color:#fff}.document-header{display:flex;justify-content:space-between;align-items:flex-start;padding:1.5rem;border-bottom:1px solid #e0e0e0;background-color:#fafafa}.citation-badge{display:flex;gap:.5rem;margin-bottom:.75rem;flex-wrap:wrap}.badge-label,.badge-page{padding:.25rem .75rem;border-radius:12px;font-size:.75rem;font-weight:600}.badge-label{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.badge-page{background-color:#f0f0f0;color:#666}.document-info h2{font-size:1.15rem;margin-bottom:.5rem;color:#333}.document-title{font-size:.9rem;color:#666;margin-bottom:.75rem}.document-meta{display:flex;gap:1rem;flex-wrap:wrap}.document-meta span{font-size:.85rem;padding:.25rem .75rem;border-radius:12px;background-color:#fff;border:1px solid #e0e0e0}.asx-code{color:#667eea;font-weight:600}.category{color:#666}.date{color:#999}.close-button{background:none;border:none;font-size:1.5rem;cursor:pointer;color:#666;padding:.5rem;line-height:1;transition:color .2s}.close-button:hover{color:#333}.chunk-preview{padding:1.25rem 1.5rem;background:linear-gradient(135deg,#fff9e6,#fffbf0);border-bottom:2px solid #f0e68c;max-height:180px;overflow-y:auto}.chunk-label{font-size:.8rem;font-weight:700;color:#666;text-transform:uppercase;letter-spacing:.5px;margin-bottom:.75rem;display:flex;align-items:center}.chunk-label:before{content:"📝";margin-right:.5rem;font-size:1rem}.chunk-hint{font-size:.7rem;font-weight:400;color:#999;text-transform:none;letter-spacing:normal;margin-left:.5rem}.chunk-text{font-size:.925rem;line-height:1.6;color:#2c3e50;padding:1rem;background-color:#fff;border-left:4px solid #667eea;border-radius:6px;box-shadow:0 1px 3px #00000014}.document-content{flex:1;display:flex;flex-direction:column;overflow:hidden}.loading-state,.error-state{text-align:center;color:#666;padding:2rem}.error-state{color:#d32f2f}.document-iframe{width:100%;height:100%;border:none}.pdf-controls{display:flex;align-items:center;justify-content:center;gap:1rem;padding:1rem;background-color:#f5f5f5;border-bottom:1px solid #e0e0e0}.page-nav-button{padding:.5rem 1rem;background-color:#667eea;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:.875rem;transition:all .2s}.page-nav-button:hover:not(:disabled){background-color:#5568d3;transform:translateY(-1px)}.page-nav-button:disabled{background-color:#ccc;cursor:not-allowed;opacity:.6}.page-info{font-size:.875rem;color:#666;font-weight:500;min-width:120px;text-align:center}.pdf-container{flex:1;overflow-y:auto;overflow-x:auto;display:flex;justify-content:center;padding:1rem;background-color:#f9f9f9}.pdf-page{box-shadow:0 2px 8px #0000001a;background-color:#fff}.pdf-page mark{background-color:#ffeb3b!important;padding:2px!important;border-radius:2px}:root{--react-pdf-annotation-layer: 1;--annotation-unfocused-field-background: url("data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>");--input-focus-border-color: Highlight;--input-focus-outline: 1px solid Canvas;--input-unfocused-border-color: transparent;--input-disabled-border-color: transparent;--input-hover-border-color: black;--link-outline: none}@media screen and (forced-colors: active){:root{--input-focus-border-color: CanvasText;--input-unfocused-border-color: ActiveText;--input-disabled-border-color: GrayText;--input-hover-border-color: Highlight;--link-outline: 1.5px solid LinkText}.annotationLayer .textWidgetAnnotation :is(input,textarea):required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:required{outline:1.5px solid selectedItem}.annotationLayer .linkAnnotation:hover{-webkit-backdrop-filter:invert(100%);backdrop-filter:invert(100%)}}.annotationLayer{position:absolute;top:0;left:0;pointer-events:none;transform-origin:0 0;z-index:3}.annotationLayer[data-main-rotation="90"] .norotate{transform:rotate(270deg) translate(-100%)}.annotationLayer[data-main-rotation="180"] .norotate{transform:rotate(180deg) translate(-100%,-100%)}.annotationLayer[data-main-rotation="270"] .norotate{transform:rotate(90deg) translateY(-100%)}.annotationLayer canvas{position:absolute;width:100%;height:100%}.annotationLayer section{position:absolute;text-align:initial;pointer-events:auto;box-sizing:border-box;margin:0;transform-origin:0 0}.annotationLayer .linkAnnotation{outline:var(--link-outline)}.annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton)>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}.annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton)>a:hover{opacity:.2;background:#ff0;box-shadow:0 2px 10px #ff0}.annotationLayer .textAnnotation img{position:absolute;cursor:pointer;width:100%;height:100%;top:0;left:0}.annotationLayer .textWidgetAnnotation :is(input,textarea),.annotationLayer .choiceWidgetAnnotation select,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input{background-image:var(--annotation-unfocused-field-background);border:2px solid var(--input-unfocused-border-color);box-sizing:border-box;font:calc(9px * var(--scale-factor)) sans-serif;height:100%;margin:0;vertical-align:top;width:100%}.annotationLayer .textWidgetAnnotation :is(input,textarea):required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:required{outline:1.5px solid red}.annotationLayer .choiceWidgetAnnotation select option{padding:0}.annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}.annotationLayer .textWidgetAnnotation textarea{resize:none}.annotationLayer .textWidgetAnnotation :is(input,textarea)[disabled],.annotationLayer .choiceWidgetAnnotation select[disabled],.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input[disabled]{background:none;border:2px solid var(--input-disabled-border-color);cursor:not-allowed}.annotationLayer .textWidgetAnnotation :is(input,textarea):hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input:hover{border:2px solid var(--input-hover-border-color)}.annotationLayer .textWidgetAnnotation :is(input,textarea):hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .buttonWidgetAnnotation.checkBox input:hover{border-radius:2px}.annotationLayer .textWidgetAnnotation :is(input,textarea):focus,.annotationLayer .choiceWidgetAnnotation select:focus{background:none;border:2px solid var(--input-focus-border-color);border-radius:2px;outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) :focus{background-image:none;background-color:transparent}.annotationLayer .buttonWidgetAnnotation.checkBox :focus{border:2px solid var(--input-focus-border-color);border-radius:2px;outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation.radioButton :focus{border:2px solid var(--input-focus-border-color);outline:var(--input-focus-outline)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:CanvasText;content:"";display:block;position:absolute}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{height:80%;left:45%;width:1px}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}.annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}.annotationLayer .textWidgetAnnotation input.comb:focus{width:103%}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input{-webkit-appearance:none;-moz-appearance:none;appearance:none}.annotationLayer .popupTriggerArea{height:100%;width:100%}.annotationLayer .fileAttachmentAnnotation .popupTriggerArea{position:absolute}.annotationLayer .popupWrapper{position:absolute;font-size:calc(9px * var(--scale-factor));width:100%;min-width:calc(180px * var(--scale-factor));pointer-events:none}.annotationLayer .popup{position:absolute;max-width:calc(180px * var(--scale-factor));background-color:#ff9;box-shadow:0 calc(2px * var(--scale-factor)) calc(5px * var(--scale-factor)) #888;border-radius:calc(2px * var(--scale-factor));padding:calc(6px * var(--scale-factor));margin-left:calc(5px * var(--scale-factor));cursor:pointer;font:message-box;white-space:normal;word-wrap:break-word;pointer-events:auto}.annotationLayer .popup>*{font-size:calc(9px * var(--scale-factor))}.annotationLayer .popup h1{display:inline-block}.annotationLayer .popupDate{display:inline-block;margin-left:calc(5px * var(--scale-factor))}.annotationLayer .popupContent{border-top:1px solid rgba(51,51,51,1);margin-top:calc(2px * var(--scale-factor));padding-top:calc(2px * var(--scale-factor))}.annotationLayer .richText>*{white-space:pre-wrap;font-size:calc(9px * var(--scale-factor))}.annotationLayer .highlightAnnotation,.annotationLayer .underlineAnnotation,.annotationLayer .squigglyAnnotation,.annotationLayer .strikeoutAnnotation,.annotationLayer .freeTextAnnotation,.annotationLayer .lineAnnotation svg line,.annotationLayer .squareAnnotation svg rect,.annotationLayer .circleAnnotation svg ellipse,.annotationLayer .polylineAnnotation svg polyline,.annotationLayer .polygonAnnotation svg polygon,.annotationLayer .caretAnnotation,.annotationLayer .inkAnnotation svg polyline,.annotationLayer .stampAnnotation,.annotationLayer .fileAttachmentAnnotation{cursor:pointer}.annotationLayer section svg{position:absolute;width:100%;height:100%;top:0;left:0}.annotationLayer .annotationTextContent{position:absolute;width:100%;height:100%;opacity:0;color:transparent;-webkit-user-select:none;user-select:none;pointer-events:none}.annotationLayer .annotationTextContent span{width:100%;display:inline-block}:root{--react-pdf-text-layer: 1;--highlight-bg-color: rgba(180, 0, 170, 1);--highlight-selected-bg-color: rgba(0, 100, 0, 1)}@media screen and (forced-colors: active){:root{--highlight-bg-color: Highlight;--highlight-selected-bg-color: ButtonText}}[data-main-rotation="90"]{transform:rotate(90deg) translateY(-100%)}[data-main-rotation="180"]{transform:rotate(180deg) translate(-100%,-100%)}[data-main-rotation="270"]{transform:rotate(270deg) translate(-100%)}.textLayer{position:absolute;text-align:initial;top:0;right:0;bottom:0;left:0;overflow:hidden;line-height:1;text-size-adjust:none;forced-color-adjust:none;transform-origin:0 0;z-index:2}.textLayer :is(span,br){color:transparent;position:absolute;white-space:pre;cursor:text;margin:0;transform-origin:0 0}.textLayer span.markedContent{top:0;height:0}.textLayer .highlight{margin:-1px;padding:1px;background-color:var(--highlight-bg-color);border-radius:4px}.textLayer .highlight.appended{position:initial}.textLayer .highlight.begin{border-radius:4px 0 0 4px}.textLayer .highlight.end{border-radius:0 4px 4px 0}.textLayer .highlight.middle{border-radius:0}.textLayer .highlight.selected{background-color:var(--highlight-selected-bg-color)}.textLayer br::selection{background:transparent}.textLayer .endOfContent{display:block;position:absolute;top:100%;right:0;bottom:0;left:0;z-index:-1;cursor:default;-webkit-user-select:none;user-select:none}.textLayer .endOfContent.active{top:0}.app{display:flex;flex-direction:column;height:100vh;background-color:#fff}.app-header{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:1.5rem 2rem;box-shadow:0 2px 4px #0000001a}.app-header h1{font-size:1.8rem;margin-bottom:.25rem}.app-header p{font-size:.9rem;opacity:.9}.app-content{display:flex;flex:1;overflow:hidden;position:relative}.chat-section{flex:1;min-width:400px;display:flex;flex-direction:column;transition:all .3s ease}.document-section{display:none}.app-content.document-open{flex-direction:row}.app-content.document-open .document-section{display:flex;flex-shrink:0;background-color:#fafafa;overflow:hidden}.app-content.document-open .chat-section{flex-shrink:0;overflow:hidden}.resize-handle{width:8px;background-color:#e0e0e0;cursor:col-resize;position:relative;flex-shrink:0;transition:background-color .2s;display:flex;align-items:center;justify-content:center}.resize-handle:hover{background-color:#667eea}.resize-handle:active{background-color:#5568d3}.resize-handle-line{width:2px;height:40px;background-color:#ffffff80;border-radius:2px;pointer-events:none}@media (max-width: 768px){.app-content.document-open{flex-direction:column}.app-content.document-open .document-section{width:100%!important;height:60%;border-bottom:1px solid #e0e0e0}.resize-handle{display:none}.app-content.document-open .chat-section{width:100%!important;height:40%;order:2}}*{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-color:#f5f5f5}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}#root{width:100%;height:100vh}
