#root{margin:0;padding:0;box-sizing:border-box;font-family:Inter,sans-serif}body{margin:0;min-height:100vh;background:linear-gradient(135deg,#fafaf9,#f5f5f4,#e7e5e4)}*::-webkit-scrollbar{width:10px;height:10px}*::-webkit-scrollbar-track{background:transparent}*::-webkit-scrollbar-thumb{background-color:#0000001a;border-radius:8px;border:2px solid transparent;background-clip:padding-box}*::-webkit-scrollbar-thumb:hover{background-color:#0000001a}*::-webkit-scrollbar-thumb:active{background-color:#00000024}*::-webkit-scrollbar-button{display:none;width:0;height:0}*{scrollbar-width:thin;scrollbar-color:rgba(0,0,0,.16) transparent}a{all:unset;cursor:pointer;text-decoration:none;color:inherit}h1,h2,h3,h4,h5,h6,p{margin:0}button{all:unset;cursor:pointer}.app{min-height:100vh;display:flex;flex-direction:column}.navbar{background:#fffc;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);padding:.75rem 1rem;margin:1rem 1rem 0;border-radius:1rem;display:flex;justify-content:space-between;align-items:center;border:1px solid rgba(0,0,0,.1);position:sticky;top:1rem;z-index:50}.nav-brand{display:flex;align-items:center}.nav-links{display:flex;gap:1rem}.nav-link{text-decoration:none;color:#213547;font-weight:500;transition:color .3s;padding:.5rem 1.25rem;border-radius:1rem}.nav-link:hover{color:#ea580c}.nav-link.active{color:#ea580c;background-color:#ea580c1a}.search-page{flex:1;padding:2rem;max-width:1200px;margin:0 auto;width:100%}.search-container{background:#fffc;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);padding:2rem;border-radius:1rem;border:1px solid rgba(0,0,0,.1)}.search-page h1{font-size:2rem;font-weight:600;margin-bottom:1.5rem;color:#0f172a;letter-spacing:-.025em}.search-form{display:flex;gap:.75rem;margin-bottom:2rem}.search-input{flex:1;padding:.75rem 1rem;font-size:.875rem;border:1px solid #eb853d;box-shadow:0 1px 2px #ee060626;border-radius:8px;outline:none;transition:all .2s ease-in-out;background:#fff;color:#0f172a}.search-input:focus{border-color:#ea580c;box-shadow:0 0 0 3px #ea580c1a}.search-input::placeholder{color:#64748b}.search-button{padding:.75rem 1.5rem;font-size:.875rem;font-weight:500;background-color:#ea580c;color:#fff;border:none;border-radius:8px;cursor:pointer;transition:all .2s ease-in-out;box-shadow:0 1px 2px #0000000d}.search-button:hover{background-color:#c2410c;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.search-button:disabled{background-color:#94a3b8;cursor:not-allowed;box-shadow:none}.default-status{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem 2rem;text-align:center;color:#64748b}.status-icon{margin-bottom:1rem;color:#cbd5e1}.status-title{font-size:1.25rem;font-weight:600;color:#475569;margin-bottom:.5rem}.status-description{font-size:.875rem;color:#64748b;max-width:400px;line-height:1.5}.results-container{margin-top:2rem}.results-container h2{font-size:1.25rem;font-weight:600;margin-bottom:1.5rem;color:#0f172a;letter-spacing:-.025em}.results-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}@media (max-width: 1024px){.results-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width: 768px){.results-grid{grid-template-columns:1fr}}.result-card{background:#fff;border-radius:8px;cursor:pointer;transition:all .2s ease-in-out;border:1px solid #e2e8f0;overflow:hidden}.result-card:hover{box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;border-color:#ea580c}.result-thumbnail{width:100%;height:200px;background:#f8fafc;display:flex;align-items:center;justify-content:center;overflow:hidden;border-bottom:1px solid #e2e8f0}.result-thumbnail .pdf-thumbnail{width:100%;height:100%;border-radius:0;border:none;background:transparent}.result-content{padding:1rem}.result-title{font-size:.875rem;font-weight:500;color:#ea580c;margin-bottom:.5rem;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.result-preview{margin-bottom:.75rem;font-size:.75rem;color:#64748b;line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.result-preview img{max-width:100%;height:auto;border-radius:4px;margin:.5rem 0}.result-footer{margin-top:auto}.result-score{font-size:.75rem;color:#64748b;font-weight:500}.pdf-thumbnail{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#f8fafc;border-radius:0;overflow:hidden;border:none}.pdf-thumbnail img{width:100%;height:100%;object-fit:contain}.pdf-thumbnail.loading,.pdf-thumbnail.error{background:#f8fafc}.pdf-thumbnail.error span{font-size:1.5rem;opacity:.5;color:#94a3b8}.thumbnail-spinner{width:20px;height:20px;border:2px solid #e2e8f0;border-top:2px solid #ea580c;border-radius:50%;animation:thumbnail-spin 1s linear infinite}@keyframes thumbnail-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.pagination{display:flex;justify-content:center;align-items:center;gap:.5rem;margin-top:2rem;padding:1rem;background:#f8fafc;border-radius:8px;border:1px solid #e2e8f0}.pagination-btn{padding:.5rem 1rem;font-size:.875rem;font-weight:500;background-color:#ea580c;color:#fff;border:none;border-radius:6px;cursor:pointer;transition:all .2s ease-in-out;min-width:80px;box-shadow:0 1px 2px #0000000d;text-align:center}.pagination-btn:hover:not(:disabled){background-color:#c2410c;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.pagination-btn:disabled{background-color:#94a3b8;cursor:not-allowed;box-shadow:none}.pagination-info{font-size:.875rem;color:#64748b;font-weight:500;min-width:120px;text-align:center}.documents-page{flex:1;padding:2rem;max-width:1200px;margin:0 auto;width:100%}.documents-container{background:#fffc;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);padding:2rem;border-radius:1rem;border:1px solid rgba(0,0,0,.1)}.documents-page h1{font-size:2rem;font-weight:600;margin-bottom:1.5rem;color:#0f172a;letter-spacing:-.025em}.upload-form{display:flex;flex-direction:column;gap:1rem;margin-bottom:2rem;padding:1.5rem;background:#ffffff80;border-radius:12px;border:1px solid rgba(0,0,0,.05)}.file-input-container{width:100%}.file-input{display:none}.file-label{display:flex;flex-direction:column;align-items:center;gap:.75rem;padding:2rem 1rem;background:#fffc;border:2px dashed #d1d5db;border-radius:8px;cursor:pointer;transition:all .2s ease-in-out;text-align:center;font-size:.875rem;color:#64748b;font-weight:500}.upload-icon{color:#94a3b8;transition:color .2s ease-in-out}.upload-text{font-weight:500}.file-label:hover{border-color:#ea580c;background:#ea580c0d;color:#ea580c}.file-label:hover .upload-icon{color:#ea580c}.file-label.drag-over{border-color:#ea580c;background:#ea580c1a;color:#ea580c;border-style:solid;transform:scale(1.02);box-shadow:0 4px 12px #ea580c33}.file-label.drag-over .upload-icon{color:#ea580c;transform:scale(1.1)}.selected-files{display:flex;flex-direction:column;gap:.5rem;padding:1rem;background:#fff9;border-radius:8px;border:1px solid rgba(0,0,0,.05);max-height:200px;overflow-y:auto}.selected-file{display:flex;justify-content:space-between;align-items:center;padding:.75rem;background:#fff;border-radius:6px;font-size:.875rem;color:#0f172a;border:1px solid rgba(0,0,0,.05);font-weight:500}.file-info{display:flex;align-items:center;gap:.5rem}.file-info svg{color:#ea580c;flex-shrink:0}.file-actions{display:flex;align-items:center;gap:.75rem}.file-size{color:#64748b;font-size:.75rem;font-weight:500}.remove-file-btn{display:flex;align-items:center;justify-content:center;width:24px;height:24px;background:#ef44441a;border:none;border-radius:4px;cursor:pointer;transition:all .2s ease-in-out;color:#ef4444}.remove-file-btn:hover{background:#ef444433;transform:scale(1.1)}.upload-button{align-self:flex-center;min-width:150px;padding:.75rem 1.5rem;font-size:.875rem;font-weight:500;background-color:#ea580c;color:#fff;border:none;border-radius:8px;cursor:pointer;transition:all .2s ease-in-out;box-shadow:0 1px 2px #0000000d;text-align:center}.upload-button:hover{background-color:#c2410c;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.upload-button:disabled{background-color:#94a3b8;cursor:not-allowed;box-shadow:none}.documents-list{margin-top:2rem}.documents-list h2{font-size:1.25rem;font-weight:600;margin-bottom:1rem;color:#0f172a;letter-spacing:-.025em}.document-items{list-style:none;padding:0;margin:0}.document-item{display:flex;justify-content:space-between;align-items:center;padding:1rem;background:#fff9;border-radius:8px;margin-bottom:.5rem;border:1px solid rgba(0,0,0,.05);transition:all .2s ease-in-out}.document-item:hover{background:#fffc;border-color:#ea580c;transform:translateY(-1px);box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.document-info{display:flex;align-items:center;gap:.75rem}.document-icon{font-size:1.25rem;flex-shrink:0}.document-name{font-weight:500;color:#0f172a;font-size:.875rem}.document-actions{display:flex;align-items:center;gap:1rem}.document-date{color:#64748b;font-size:.75rem;font-weight:500}.delete-document-btn{display:flex;align-items:center;justify-content:center;width:28px;height:28px;background:#ef44441a;border:none;border-radius:6px;cursor:pointer;transition:all .2s ease-in-out;color:#ef4444}.delete-document-btn:hover{background:#ef444433;transform:scale(1.1)}.clickable{cursor:pointer}.documents-list p{color:#64748b;font-size:.875rem;text-align:center;padding:2rem;background:#ffffff80;border-radius:8px;border:1px solid rgba(0,0,0,.05)}.modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.modal-content{background:#fffffff2;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px);border-radius:12px;border:1px solid rgba(0,0,0,.1);max-width:400px;width:90%;box-shadow:0 20px 25px -5px #0000001a,0 10px 10px -5px #0000000a}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem 1.5rem 0}.modal-header h3{font-size:1.25rem;font-weight:600;color:#0f172a;margin:0}.modal-close-btn{display:flex;align-items:center;justify-content:center;width:32px;height:32px;background:#0000000d;border:none;border-radius:6px;cursor:pointer;transition:all .2s ease-in-out;color:#64748b}.modal-close-btn:hover{background:#0000001a;color:#0f172a}.modal-body{padding:1rem 1.5rem}.modal-body p{margin:0 0 1rem;color:#64748b;font-size:.875rem;line-height:1.5}.document-to-delete{display:flex;align-items:center;gap:.75rem;padding:.75rem;background:#fffc;border-radius:8px;border:1px solid rgba(0,0,0,.05);margin-bottom:1rem}.document-to-delete .document-icon{font-size:1.25rem}.document-to-delete .document-name{font-weight:500;color:#0f172a;font-size:.875rem}.warning-text{color:#ef4444!important;font-size:.75rem!important;font-weight:500}.modal-footer{display:flex;gap:.75rem;padding:0 1.5rem 1.5rem;justify-content:flex-end}.modal-btn{padding:.75rem 1.5rem;font-size:.875rem;font-weight:500;border:none;border-radius:8px;cursor:pointer;transition:all .2s ease-in-out;min-width:80px}.cancel-btn{background:#0000000d;color:#64748b;text-align:center}.cancel-btn:hover{background:#0000001a;color:#0f172a}.delete-btn{background:#ef4444;color:#fff;text-align:center}.delete-btn:hover{background:#dc2626}.pagination{display:flex;justify-content:space-between;align-items:center;margin-top:1.5rem;padding:1rem;background:#fff9;border-radius:8px;border:1px solid rgba(0,0,0,.05)}.pagination-btn{display:flex;align-items:center;gap:.5rem;padding:.75rem 1rem;background:#ea580c;color:#fff;border:none;border-radius:6px;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s ease-in-out}.pagination-btn:hover:not(:disabled){background:#c2410c;transform:translateY(-1px);box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f}.pagination-btn:disabled{background:#94a3b8;cursor:not-allowed;transform:none;box-shadow:none}.pagination-info{display:flex;flex-direction:column;align-items:center;gap:.25rem;text-align:center}.pagination-info span:first-child{font-size:.875rem;font-weight:600;color:#0f172a}.pagination-count{font-size:.75rem;color:#64748b;font-weight:500}@media (max-width: 768px){.pagination{flex-direction:column;gap:1rem;text-align:center}.pagination-btn{width:100%;justify-content:center}.pagination-info{order:-1}}: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)}.textLayer.selecting~.annotationLayer section{pointer-events:none}.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(--total-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{appearance:none}.annotationLayer .popupTriggerArea{height:100%;width:100%}.annotationLayer .fileAttachmentAnnotation .popupTriggerArea{position:absolute}.annotationLayer .popupWrapper{position:absolute;font-size:calc(9px * var(--total-scale-factor));width:100%;min-width:calc(180px * var(--total-scale-factor));pointer-events:none}.annotationLayer .popup{position:absolute;max-width:calc(180px * var(--total-scale-factor));background-color:#ff9;box-shadow:0 calc(2px * var(--total-scale-factor)) calc(5px * var(--total-scale-factor)) #888;border-radius:calc(2px * var(--total-scale-factor));padding:calc(6px * var(--total-scale-factor));margin-left:calc(5px * var(--total-scale-factor));cursor:pointer;font:message-box;white-space:normal;word-wrap:break-word;pointer-events:auto}.annotationLayer .popup>*{font-size:calc(9px * var(--total-scale-factor))}.annotationLayer .popup h1{display:inline-block}.annotationLayer .popupDate{display:inline-block;margin-left:calc(5px * var(--total-scale-factor))}.annotationLayer .popupContent{border-top:1px solid rgba(51,51,51,1);margin-top:calc(2px * var(--total-scale-factor));padding-top:calc(2px * var(--total-scale-factor))}.annotationLayer .richText>*{white-space:pre-wrap;font-size:calc(9px * var(--total-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;inset: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;inset:100% 0 0;z-index:-1;cursor:default;-webkit-user-select:none;user-select:none}.textLayer.selecting .endOfContent{top:0}.hiddenCanvasElement{position:absolute;top:0;left:0;width:0;height:0;display:none}.pdf-viewer-container{display:flex;flex-direction:column;height:100vh;background-color:#f8fafc;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.pdf-viewer-header{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.5rem;background-color:#fff;border-bottom:1px solid #e2e8f0;box-shadow:0 1px 3px #0000001a}.header-left{display:flex;align-items:center;gap:.75rem;flex:1}.header-center{display:flex;justify-content:center;flex:1}.header-right{display:flex;align-items:center;justify-content:flex-end;flex:1}.header-icon{color:#ea580c;width:24px;height:24px}.document-title{font-size:1.25rem;font-weight:600;color:#1f2937;margin:0;line-height:1.4;text-align:left}.close-button{display:flex;align-items:center;justify-content:center;padding:.5rem;background-color:#f3f4f6;border:none;border-radius:.375rem;color:#6b7280;cursor:pointer;transition:all .2s}.close-button:hover{background-color:#e5e7eb;color:#374151}.pdf-viewer-content{display:flex;flex:1;overflow:hidden}.page-navigation{display:flex;align-items:center;justify-content:center;gap:1rem}.zoom-controls{display:flex;align-items:center;justify-content:center;gap:.5rem;margin-left:2rem}.zoom-hint{font-size:.75rem;color:#6b7280;background-color:#f3f4f6;padding:.25rem .5rem;border-radius:.25rem;border:1px solid #d1d5db;cursor:help;white-space:nowrap}.nav-button{display:flex;align-items:center;justify-content:center;padding:.5rem;background-color:#f3f4f6;border:none;border-radius:.375rem;color:#374151;cursor:pointer;transition:all .2s}.nav-button:hover:not(:disabled){background-color:#e5e7eb}.nav-button:disabled{opacity:.5;cursor:not-allowed}.page-info{font-size:.875rem;font-weight:500;color:#374151;min-width:100px;text-align:center}.zoom-info{font-size:.875rem;font-weight:500;color:#374151;min-width:50px;text-align:center}.pdf-viewer-main{flex:1;display:flex;flex-direction:column;background-color:#e2e8f0;overflow:hidden}.pdf-container{flex:1;display:flex;justify-content:flex-start;align-items:flex-start;padding:2rem;overflow:auto;min-width:0}.pdf-container.centered{justify-content:center}.pdf-container.allow-full-scroll{justify-content:flex-start}.pdf-wrapper{position:relative;background-color:#fff;box-shadow:0 10px 25px -5px #0000001a,0 10px 10px -5px #0000000a;border-radius:.5rem;display:inline-block}.pdf-wrapper-vertical{position:relative;border-radius:.5rem;display:flex;flex-direction:column;align-items:center;gap:20px;width:100%;max-width:800px;min-width:max-content;margin:0 auto}.pdf-container.allow-full-scroll .pdf-wrapper-vertical{align-items:flex-start;max-width:none;margin:0}.pdf-page-container{position:relative;box-shadow:0 4px 12px #0000001a;border-radius:8px;overflow:visible;margin-bottom:20px;width:max-content;display:flex;justify-content:center}.pdf-container.allow-full-scroll .pdf-page-container{justify-content:flex-start}.react-pdf__Page,.react-pdf__Page canvas{transition:none!important;image-rendering:-webkit-optimize-contrast;image-rendering:crisp-edges;backface-visibility:hidden;transform:translateZ(0);will-change:transform;contain:layout style paint}.pdf-page-container{will-change:transform;contain:layout style paint;transform:translateZ(0)}.pdf-container{will-change:scroll-position;contain:layout style paint;scroll-behavior:auto!important}.pdf-wrapper-vertical{transform:translateZ(0);backface-visibility:hidden;will-change:contents}.pdf-viewer-loading,.pdf-viewer-error{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh;text-align:center;padding:2rem}.loading-spinner{width:40px;height:40px;border:4px solid #e2e8f0;border-top:4px solid #ea580c;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:1rem}.error-icon{width:48px;height:48px;color:#ff1e1e;margin-bottom:1rem}.pdf-loading,.page-loading{display:flex;align-items:center;justify-content:center;padding:2rem}.pdf-loading .loading-spinner,.page-loading .loading-spinner{width:32px;height:32px;border-width:3px}.pdf-error{color:#ef4444;text-align:center;padding:2rem;font-weight:500}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.pdf-viewer-sidebar{width:16rem;max-width:16rem;display:flex;flex-direction:column;background-color:#fff;border-right:1px solid #e2e8f0;overflow:hidden}@media (max-width: 768px){.pdf-viewer-sidebar{width:280px;min-width:280px;max-width:280px}.pdf-container{padding:1rem}.document-title{font-size:1rem}.zoom-controls{margin-left:1rem}.header-center{flex-direction:column;gap:.5rem}}.error-actions{display:flex;gap:.75rem;justify-content:center;margin-top:1.5rem}.retry-button{display:flex;align-items:center;gap:.5rem;padding:.75rem 1.5rem;background-color:#ea580c;color:#fff;border:none;border-radius:.5rem;font-weight:500;cursor:pointer;transition:background-color .2s}.retry-button:hover{background-color:#c2410c}.close-button{padding:.75rem 1.5rem;background-color:#f3f4f6;color:#374151;border:none;border-radius:.5rem;font-weight:500;cursor:pointer;transition:background-color .2s}.close-button:hover{background-color:#e5e7eb}.refit-button{display:flex;align-items:center;justify-content:center;gap:.5rem;padding:.5rem 1rem;background-color:#f3f4f6;border:none;border-radius:.375rem;color:#6b7280;cursor:pointer;transition:all .2s;font-size:.875rem;font-weight:500}.refit-button:hover{background-color:#e5e7eb;color:#374151}.search-section{flex:1;display:flex;flex-direction:column;overflow:hidden;padding:1rem}.sidebar-search-form{display:flex;flex-direction:column;gap:.75rem;margin-bottom:1rem}.sidebar-search-input{width:calc(100% - 1.5rem);padding:.75rem;border:1px solid #e2e8f0;border-radius:.5rem;font-size:.875rem;outline:none;transition:all .2s}.sidebar-search-input:focus{border-color:#ea580c;box-shadow:0 0 0 3px #ea580c1a}.sidebar-search-button{width:calc(100% - 1.5rem);padding:.75rem;background-color:#ea580c;color:#fff;border:none;border-radius:.5rem;font-weight:500;cursor:pointer;transition:background-color .2s;font-size:.875rem;text-align:center}.sidebar-search-button:hover:not(:disabled){background-color:#c2410c}.sidebar-search-button:disabled{opacity:.6;cursor:not-allowed}.search-results-list{flex:1;overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;gap:.75rem;min-height:0;max-height:calc(100vh - 14rem);width:100%}.results-header{display:flex;justify-content:center;align-items:center;padding:.5rem 0;border-bottom:1px solid #e2e8f0;margin-bottom:.25rem;position:sticky;top:0;background-color:#fff;z-index:5}.results-navigation{display:flex;align-items:center;gap:.5rem}.nav-arrow-button{display:flex;align-items:center;justify-content:center;padding:.25rem;background-color:#f3f4f6;border:none;border-radius:.25rem;color:#374151;cursor:pointer;transition:all .2s;width:24px;height:24px}.nav-arrow-button:hover{background-color:#e5e7eb;color:#1f2937}.nav-arrow-button:disabled{opacity:.5;cursor:not-allowed}.result-counter{font-size:.75rem;font-weight:500;color:#6b7280;min-width:40px;text-align:center}.search-result-item{padding:.75rem;background-color:#f8fafc;border:1px solid #e2e8f0;border-radius:.5rem;cursor:pointer;transition:all .2s;flex-shrink:0;width:100%;box-sizing:border-box;word-wrap:break-word;overflow-wrap:break-word;position:relative}.search-result-item:hover{background-color:#f1f5f9;border-color:#cbd5e1;box-shadow:0 2px 4px #0000000d}.search-result-item.active{background-color:#ea580c1a;border-color:#ea580c;box-shadow:0 0 0 1px #ea580c}.search-result-item.selected,.search-result-item.selected.active{background-color:#dbeafe;border-color:#3b82f6;box-shadow:0 0 0 1px #3b82f6}.result-number{font-weight:600;font-size:.75rem;color:#ea580c;margin-bottom:.5rem}.result-text{font-size:.875rem;color:#1f2937;line-height:1.4;margin-bottom:.5rem;word-wrap:break-word;overflow-wrap:break-word;overflow:hidden}.result-page{font-size:.75rem;color:#6b7280;font-weight:500}.result-meta{display:flex;justify-content:space-between;gap:.75rem;align-items:baseline}.result-match{font-size:.75rem;color:#6b7280;font-weight:500;white-space:nowrap}.result-match.low{color:#ef4444;font-weight:600}.result-match.high{color:#2563eb;font-weight:600}.result-substring-tick{position:absolute;top:8px;right:8px;width:16px;height:16px;border-radius:9999px;display:flex;align-items:center;justify-content:center;background:#00cb33f2;color:#fff;pointer-events:none}.search-highlight{background-color:#ffbf001a;border:2px solid rgba(255,140,0,1);cursor:pointer;pointer-events:auto;border-radius:3px;box-sizing:border-box;z-index:10;box-shadow:0 0 0 2px #ffa500cc,0 0 #ffd70080 inset;animation:pulse-fade 1.5s ease-in-out infinite}.search-highlight:hover{background-color:#ffbf008c;border-color:#ff8c00;box-shadow:0 0 12px #ffa500d9,0 0 0 2px #ffd70073 inset}.search-highlight.active{background-color:#3b82f64d;border:1px solid rgba(37,99,235,.95);box-shadow:0 0 0 3px #3b82f673,0 0 28px #3b82f699;animation:pulse-active 1.6s ease-in-out infinite}.search-highlight.active:hover{background-color:#3b82f673;border-color:#1d4ed8}@keyframes pulse-fade{0%,to{opacity:.8;box-shadow:0 0 0 2px #ffa500cc,0 0 #ffd70080 inset;transform:scale(1)}50%{opacity:1;box-shadow:0 0 0 4px orange,0 0 20px #ff8c00e6,0 0 0 1px #ffd700b3 inset;transform:scale(1.02)}}@keyframes pulse-active{0%,to{opacity:.9;box-shadow:0 0 0 3px #3b82f673,0 0 22px #3b82f68c}50%{opacity:1;box-shadow:0 0 0 4px #3b82f699,0 0 34px #3b82f6bf}}.pdf-container{cursor:grab}.pdf-container.panning{cursor:grabbing;-webkit-user-select:none;user-select:none}.search-results-list::-webkit-scrollbar{width:6px}.search-results-list::-webkit-scrollbar-track{background:#f1f5f9;border-radius:3px}.search-results-list::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:3px}.search-results-list::-webkit-scrollbar-thumb:hover{background:#94a3b8}
