:root{--text:#6b6375;--text-h:#08060d;--bg:#fff;--border:#e5e4e7;--code-bg:#f4f3ec;--accent:#aa3bff;--accent-bg:#aa3bff1a;--accent-border:#aa3bff80;--social-bg:#f4f3ec80;--shadow:#0000001a 0 10px 15px -3px, #0000000d 0 4px 6px -2px;--sans:system-ui, "Segoe UI", Roboto, sans-serif;--heading:system-ui, "Segoe UI", Roboto, sans-serif;--mono:ui-monospace, Consolas, monospace;font:14px/145% var(--sans);letter-spacing:.18px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}@media (width<=1024px){:root{font-size:16px}}: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();backdrop-filter:invert()}}.annotationLayer{pointer-events:none;transform-origin:0 0;z-index:3;position:absolute;top:0;left:0}.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{width:100%;height:100%;position:absolute}.annotationLayer section{text-align:initial;pointer-events:auto;box-sizing:border-box;transform-origin:0 0;margin:0;position:absolute}.annotationLayer .linkAnnotation{outline:var(--link-outline)}.textLayer.selecting~.annotationLayer section{pointer-events:none}.annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton)>a{width:100%;height:100%;font-size:1em;position:absolute;top:0;left:0}.annotationLayer :is(.linkAnnotation,.buttonWidgetAnnotation.pushButton)>a:hover{opacity:.2;background:#ff0;box-shadow:0 2px 10px #ff0}.annotationLayer .textAnnotation img{cursor:pointer;width:100%;height:100%;position:absolute;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;vertical-align:top;width:100%;height:100%;margin:0}.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]{border:2px solid var(--input-disabled-border-color);cursor:not-allowed;background:0 0}.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{border:2px solid var(--input-focus-border-color);outline:var(--input-focus-outline);background:0 0;border-radius:2px}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) :focus{background-color:#0000;background-image:none}.annotationLayer .buttonWidgetAnnotation.checkBox :focus{border:2px solid var(--input-focus-border-color);outline:var(--input-focus-outline);border-radius:2px}.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{content:"";background-color:canvastext;display:block;position:absolute}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{width:1px;height:80%;left:45%}.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%;width:50%;height:50%;top:20%;left:30%}.annotationLayer .textWidgetAnnotation input.comb{padding-left:2px;padding-right:0;font-family:monospace}.annotationLayer .textWidgetAnnotation input.comb:focus{width:103%}.annotationLayer .buttonWidgetAnnotation:is(.checkBox,.radioButton) input{appearance:none}.annotationLayer .popupTriggerArea{width:100%;height:100%}.annotationLayer .fileAttachmentAnnotation .popupTriggerArea{position:absolute}.annotationLayer .popupWrapper{font-size:calc(9px * var(--total-scale-factor));width:100%;min-width:calc(180px * var(--total-scale-factor));pointer-events:none;position:absolute}.annotationLayer .popup{max-width:calc(180px * var(--total-scale-factor));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;background-color:#ff9;position:absolute}.annotationLayer .popup>*{font-size:calc(9px * var(--total-scale-factor))}.annotationLayer .popup h1{display:inline-block}.annotationLayer .popupDate{margin-left:calc(5px * var(--total-scale-factor));display:inline-block}.annotationLayer .popupContent{margin-top:calc(2px * var(--total-scale-factor));padding-top:calc(2px * var(--total-scale-factor));border-top:1px solid #333}.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{width:100%;height:100%;position:absolute;top:0;left:0}.annotationLayer .annotationTextContent{opacity:0;color:#0000;-webkit-user-select:none;user-select:none;pointer-events:none;width:100%;height:100%;position:absolute}.annotationLayer .annotationTextContent span{width:100%;display:inline-block}:root{--react-pdf-text-layer:1;--highlight-bg-color:#b400aa;--highlight-selected-bg-color:#006400}@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{text-align:initial;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;text-size-adjust:none;forced-color-adjust:none;transform-origin:0 0;z-index:2;line-height:1;position:absolute;inset:0;overflow:hidden}.textLayer :is(span,br){color:#0000;white-space:pre;cursor:text;transform-origin:0 0;margin:0;position:absolute}.textLayer span.markedContent{height:0;top:0}.textLayer .highlight{background-color:var(--highlight-bg-color);border-radius:4px;margin:-1px;padding:1px}.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:0 0}.textLayer .endOfContent{z-index:-1;cursor:default;-webkit-user-select:none;user-select:none;display:block;position:absolute;inset:100% 0 0}.textLayer.selecting .endOfContent{top:0}.hiddenCanvasElement{width:0;height:0;display:none;position:absolute;top:0;left:0}:root{--bg:#fff;--header-bg:#fff;--settings-bg:#f9f9f9;--border:#e5e7eb;--text:#374151;--text-h:#111827;--social-bg:#f3f4f6;--accent-bg:#e0f7fa;--accent-border:#00bcd4;--accent:#006064;--code-bg:#f9fafb;--btn-bg:#007bff;--btn-text:#fff;--btn-disabled:#ccc;--human-bg:#007bff;--select-bg:#fff}@media (prefers-color-scheme:dark){:root{--bg:#121212;--header-bg:#1e1e1e;--settings-bg:#1e1e1e;--border:#333;--text:#e0e0e0;--text-h:#fff;--social-bg:#2d2d2d;--accent-bg:#004d40;--accent-border:#00897b;--accent:#80cbc4;--code-bg:#1e1e1e;--btn-bg:#3b82f6;--btn-text:#fff;--btn-disabled:#555;--human-bg:#2563eb;--select-bg:#2d2d2d}}.app-container{background-color:var(--bg);height:100vh;color:var(--text);flex-direction:column;display:flex}.main-content{flex:1;position:relative;overflow:hidden}.chat-wrapper{text-align:left;width:100%;height:100%;min-height:80vh;display:flex}.app-header{background-color:var(--header-bg);border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:15px 20px;display:flex}.app-header h2{color:var(--text-h);margin:0}.user-controls{align-items:center;gap:15px;display:flex}.username{color:var(--text-h);font-weight:500}.sign-out-btn{background-color:var(--btn-bg);color:var(--btn-text);cursor:pointer;border:none;border-radius:4px;padding:8px 16px}.sidebar{border-right:1px solid var(--border);background-color:var(--bg);flex-direction:column;flex-shrink:0;width:250px;display:flex}.sidebar-header{padding:15px}.new-chat-btn{cursor:pointer;background-color:var(--social-bg);color:var(--text-h);border:1px solid var(--border);border-radius:6px;padding:10px;font-weight:700;transition:all .2s ease-in-out}.sidebar-divider{border-color:var(--border);border-style:solid;width:100%;margin:0}.chat-history-title{color:var(--text);padding:15px 15px 5px;font-size:.9em;font-weight:700}.thread-list{flex-direction:column;flex:1;gap:5px;padding:15px;display:flex;overflow-y:auto}.loading-threads,.no-chats{color:var(--text);text-align:center;margin-top:10px;font-size:.85em}.thread-item{background-color:#0000;border:1px solid #0000;border-radius:6px;align-items:center;margin-bottom:8px;transition:all .2s;display:flex;overflow:hidden}.thread-item.active{background-color:var(--accent-bg);border:1px solid var(--accent-border)}.thread-btn{text-align:left;color:var(--text);cursor:pointer;white-space:nowrap;text-overflow:ellipsis;background-color:#0000;border:none;flex-grow:1;padding:10px;overflow:hidden}.thread-item.active .thread-btn{color:var(--accent)}.delete-btn{color:#ff4d4f;cursor:pointer;opacity:.5;background-color:#0000;border:none;margin-left:5px;padding:10px;transition:opacity .2s}.delete-btn:hover{opacity:1}.chat-area{flex-direction:column;flex-grow:1;min-width:400px;display:flex}.messages-container{flex-direction:column;flex-grow:1;padding:20px;display:flex;overflow-y:auto}.message-row{width:100%;margin-bottom:20px;display:flex}.message-row.human{justify-content:flex-end}.message-row.ai{justify-content:flex-start}.message-bubble{word-break:break-word;border-radius:8px;padding:15px;line-height:1.5}.message-bubble.human{background-color:var(--human-bg);color:#fff;white-space:pre-wrap;text-align:left;border-bottom-right-radius:4px;max-width:80%;display:inline-block}.message-bubble.ai{background-color:var(--code-bg);max-width:100%;color:var(--text-h);border:1px solid var(--border);border-bottom-left-radius:4px;overflow-x:auto}.markdown-content{width:100%}.message-bubble.ai .markdown-content>:first-child{margin-top:0}.message-bubble.ai .markdown-content>:last-child{margin-bottom:0}.markdown-content pre{background-color:var(--bg);border:1px solid var(--border);border-radius:8px;max-width:100%;padding:1rem;overflow-x:auto}.empty-chat{text-align:center;color:var(--text);margin:auto}.source-badges{border-top:1px solid var(--border);margin-top:15px;padding-top:10px}.source-badges-title{color:var(--text);font-size:13px;font-weight:700}.source-badges-list{flex-wrap:wrap;gap:8px;margin-top:8px;display:flex}.source-badge-btn{background-color:var(--accent-bg);color:var(--accent);border:1px solid var(--accent-border);cursor:pointer;border-radius:12px;padding:4px 10px;font-size:12px;transition:all .2s}.source-badge-btn:hover{filter:brightness(.9)}@media (prefers-color-scheme:dark){.source-badge-btn:hover{filter:brightness(1.2)}}.input-area{border-top:1px solid var(--border);align-items:flex-end;gap:10px;padding:20px;display:flex}.chat-input{resize:none;border:1px solid var(--border);background-color:var(--code-bg);color:var(--text-h);border-radius:4px;flex-grow:1;padding:10px;font-family:inherit}.send-btn{cursor:pointer;background-color:var(--btn-bg);height:fit-content;color:var(--btn-text);border:none;border-radius:4px;padding:12px 24px;font-weight:700}.send-btn:disabled{cursor:not-allowed;background-color:var(--btn-disabled);color:var(--text)}.sidebar-settings{border-top:1px solid var(--border);background-color:var(--settings-bg);flex-direction:column;gap:12px;margin-top:auto;padding:15px;font-size:.9rem;display:flex}.setting-item label{color:var(--text);margin-bottom:4px;font-size:12px;font-weight:700;display:block}.setting-select{background-color:var(--select-bg);width:100%;color:var(--text-h);border:1px solid var(--border);border-radius:4px;padding:4px}.pdf-panel{border-left:1px solid var(--border);background-color:var(--pdf-bg,#525659);flex-direction:column;width:45%;display:flex}.pdf-header{color:#fff;background-color:#323639;justify-content:space-between;align-items:center;padding:10px 20px;display:flex}.pdf-content{flex:1;justify-content:center;padding:20px;display:flex;overflow-y:auto}.sign-in-container,.loading-fallback{height:100%;color:var(--text);justify-content:center;align-items:center;padding:50px;display:flex}
