: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}:root{--bg: #f6f7f9;--surface: #ffffff;--surface-2: #f1f3f6;--border: #e3e6ea;--text: #1f2733;--muted: #6b7280;--primary: #0f766e;--primary-600: #0d655e;--primary-50: #e6f3f1;--accent: #0ea5a3;--grad: linear-gradient(135deg, #0f766e 0%, #0ea5a3 100%);--danger: #dc2626;--danger-50: #fdeaea;--warn: #b45309;--shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);--shadow-lg: 0 4px 12px rgba(16, 24, 40, .08), 0 18px 40px rgba(16, 24, 40, .1);--radius: 14px;--sidebar-w: 280px;--font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;font-family:var(--font);color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased}a{color:var(--primary);text-decoration:none}a:hover{text-decoration:underline}.muted{color:var(--muted)}.small{font-size:.85rem}.xsmall{font-size:.76rem}.center{text-align:center}.nowrap{white-space:nowrap}.mono{font-family:ui-monospace,Cascadia Code,Consolas,monospace}.w-full{width:100%}.mt-3{margin-top:.75rem}.mt-4{margin-top:1.25rem}.pad{padding:1.25rem}button{font-family:inherit;cursor:pointer}.btn{border:1px solid transparent;border-radius:10px;padding:.55rem .9rem;font-weight:600;font-size:.92rem;transition:background .15s,border-color .15s,opacity .15s}.btn:disabled{opacity:.55;cursor:not-allowed}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover:not(:disabled){background:var(--primary-600)}.btn-light{background:var(--surface);border-color:var(--border);color:var(--text)}.btn-light:hover:not(:disabled){background:var(--surface-2)}.btn-sm{padding:.35rem .7rem;font-size:.85rem}input[type=text],input[type=email],input[type=password],input[type=file],select,textarea{font-family:inherit;font-size:.95rem;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:.55rem .7rem;width:100%}input:focus,select:focus,textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-50)}.field{display:flex;flex-direction:column;gap:.35rem}.field>span{font-size:.82rem;font-weight:600;color:var(--muted)}kbd{background:var(--surface-2);border:1px solid var(--border);border-radius:5px;padding:0 .35rem;font-size:.78rem;font-family:inherit}.alert{border-radius:10px;padding:.7rem .9rem;font-size:.9rem;margin:.5rem 0}.alert.error{background:#fff3da;color:var(--warn);border:1px solid #fed7aa}.err-text{color:var(--warn)}.spinner{display:inline-block;width:16px;height:16px;border:2px solid var(--border);border-top-color:var(--primary);border-radius:50%;animation:spin .7s linear infinite;vertical-align:-3px;margin-right:6px}@keyframes spin{to{transform:rotate(360deg)}}.full-center{height:100%;display:flex;align-items:center;justify-content:center}.toast-wrap{position:fixed;bottom:1.5rem;left:50%;transform:translate(-50%);display:flex;flex-direction:column;gap:.5rem;z-index:1000;align-items:center}.toast-msg{background:#1f2733;color:#fff;padding:.6rem 1rem;border-radius:10px;font-size:.88rem;box-shadow:var(--shadow);animation:rise .2s ease}@keyframes rise{0%{opacity:0;transform:translateY(8px)}}.app-shell{display:flex;height:100%}.sidebar{width:var(--sidebar-w);flex-shrink:0;background:linear-gradient(180deg,#fbfcfd 0%,var(--surface) 38%);border-right:1px solid var(--border);display:flex;flex-direction:column;padding:1rem .85rem}.brand{display:flex;align-items:center;gap:.65rem;padding:.25rem .4rem .9rem}.brand .logo{font-size:1.6rem}.brand b{display:block;font-size:1rem;letter-spacing:-.01em}.brand small{display:block;color:var(--muted);font-size:.76rem}.side-section{margin-bottom:1rem}.side-section .btn-light{border-color:var(--primary-50);color:var(--primary-600);font-weight:600;background:linear-gradient(180deg,#fff,var(--primary-50));transition:box-shadow .15s,border-color .15s,transform .05s}.side-section .btn-light:hover:not(:disabled){border-color:var(--primary);box-shadow:var(--shadow);background:linear-gradient(180deg,#fff,var(--primary-50))}.side-section .btn-light:active{transform:translateY(1px)}.side-label{font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:700;padding:.4rem}.history-list{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:2px}.history-item{display:flex;align-items:center;gap:.5rem;width:100%;border:none;background:transparent;text-align:left;padding:.5rem .55rem;border-radius:9px;color:var(--text);font-size:.9rem}.history-item{position:relative;transition:background .15s}.history-item:hover{background:var(--surface-2)}.history-item.active{background:var(--primary-50);color:var(--primary-600);font-weight:600}.history-item.active:before{content:"";position:absolute;left:0;top:18%;bottom:18%;width:3px;border-radius:0 3px 3px 0;background:var(--grad)}.history-item .label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-item .ico{flex-shrink:0}.foot{display:flex;align-items:center;justify-content:space-between;padding-top:.75rem;margin-top:.5rem;border-top:1px solid var(--border);font-size:.88rem}.link-btn{background:none;border:none;color:var(--muted);font-size:1rem}.backdrop{position:fixed;inset:0;background:#00000059;z-index:30}.main{flex:1;display:flex;flex-direction:column;min-width:0;background:radial-gradient(1100px 520px at 100% -8%,rgba(14,165,163,.07),transparent 60%),radial-gradient(820px 460px at -8% 112%,rgba(15,118,110,.06),transparent 55%),var(--bg)}.topbar{display:flex;align-items:center;gap:.75rem;padding:.7rem 1.1rem;border-bottom:1px solid var(--border);background:#ffffffb8;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.topbar .title{flex:1;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hamburger{display:none;background:none;border:none;font-size:1.3rem}.lang-pick{display:flex;align-items:center;gap:.4rem}.lang-pick select{width:auto;padding:.35rem .5rem;font-size:.85rem}.chat-scroll{flex:1;overflow-y:auto;display:flex;flex-direction:column}.chat-scroll::-webkit-scrollbar,.history-list::-webkit-scrollbar{width:9px}.chat-scroll::-webkit-scrollbar-thumb,.history-list::-webkit-scrollbar-thumb{background:#0f172a24;border-radius:999px;border:2px solid transparent;background-clip:padding-box}.chat-scroll::-webkit-scrollbar-thumb:hover,.history-list::-webkit-scrollbar-thumb:hover{background:#0f172a42;background-clip:padding-box}.chat-inner{max-width:820px;width:100%;margin:0 auto;flex:1 0 auto;min-height:0;padding:1.5rem 1.1rem 2rem;display:flex;flex-direction:column;gap:1.1rem}.empty-state{text-align:center;padding:2.5rem 1rem}.empty-state .hero{font-size:3rem}.empty-state h2{margin:.5rem 0 .3rem}.suggest-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem;margin-top:1.4rem;width:100%;max-width:38rem}.suggest-grid.chips{grid-template-columns:repeat(3,1fr)}.suggest-card{display:flex;align-items:center;gap:.7rem;text-align:left;background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:.75rem .85rem;font-size:.9rem;color:var(--text);transition:border-color .15s,box-shadow .15s,transform .12s}.suggest-card:hover:not(:disabled){border-color:var(--primary);box-shadow:var(--shadow-lg);transform:translateY(-2px)}.suggest-card:disabled{opacity:.6;cursor:default}.sc-ico{flex-shrink:0;width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:1.15rem;background:var(--primary-50)}.sc-text{display:flex;flex-direction:column;gap:.1rem;min-width:0}.sc-title{font-weight:600;font-size:.9rem}.sc-sub{color:var(--muted);font-size:.78rem;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.chip{display:inline-flex;align-items:center;gap:.3rem;background:var(--surface);border:1px solid var(--border);border-radius:999px;padding:.4rem .8rem;font-size:.86rem;color:var(--text);margin:.2rem .2rem 0 0}.chip:hover{border-color:var(--primary);color:var(--primary-600)}.msg-row{display:flex;gap:.7rem;align-items:flex-start}.msg-row.user{flex-direction:row-reverse}.avatar{flex-shrink:0;width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.05rem}.avatar.bot{background:var(--primary-50);box-shadow:0 0 0 1px var(--primary-50)}.avatar.user{background:var(--surface-2)}.avatar.avatar-logo{box-shadow:0 2px 6px #1018281f}.msg-col{min-width:0;max-width:88%}.msg-row.user .msg-col{display:flex;flex-direction:column;align-items:flex-end}.bubble{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:.75rem 1rem;line-height:1.55;word-wrap:break-word;overflow-wrap:anywhere;box-shadow:0 1px 2px #1018280a}.msg-row.bot .bubble{border-top-left-radius:5px}.msg-row.user .bubble{background:var(--grad);color:#fff;border-color:transparent;border-top-right-radius:5px;box-shadow:0 2px 10px #0f766e38}.bubble.unanswered{background:#fff8ec;border-color:#f3dca8}.bubble p:first-child{margin-top:0}.bubble p:last-child{margin-bottom:0}.bubble pre{background:var(--surface-2);padding:.6rem;border-radius:8px;overflow-x:auto}.bubble code{background:var(--surface-2);padding:.1rem .3rem;border-radius:5px}.bubble table{border-collapse:collapse;width:100%}.bubble th,.bubble td{border:1px solid var(--border);padding:.35rem .5rem;text-align:left}.citations{margin-top:.6rem;display:flex;flex-direction:column;gap:.4rem}.citations .lbl,.followups .lbl{font-size:.78rem;font-weight:700;color:var(--muted)}.citation{display:block;width:100%;text-align:left;cursor:pointer;font:inherit;border:1px solid var(--border);border-radius:10px;padding:.5rem .7rem;background:var(--surface);color:var(--text)}.citation:hover{border-color:var(--primary);text-decoration:none}.citation .src{display:block;font-weight:600;font-size:.86rem;color:var(--primary-600)}.citation .snip{display:block;color:var(--muted);font-size:.82rem;margin-top:.2rem}.followups{margin-top:.6rem}.msg-meta{display:flex;align-items:center;gap:.4rem;margin-top:.45rem}.icon-btn{background:none;border:1px solid transparent;border-radius:8px;padding:.25rem .5rem;font-size:.82rem;color:var(--muted)}.icon-btn:hover:not(:disabled){background:var(--surface-2)}.icon-btn:disabled{opacity:.4;cursor:default}.icon-btn.on-up{color:var(--primary)}.icon-btn.on-down{color:var(--danger)}.msg-time{font-size:.76rem;color:var(--muted)}.typing{display:inline-flex;gap:4px}.typing span{width:7px;height:7px;border-radius:50%;background:var(--muted);animation:blink 1.2s infinite both}.typing span:nth-child(2){animation-delay:.2s}.typing span:nth-child(3){animation-delay:.4s}@keyframes blink{0%,80%,to{opacity:.25}40%{opacity:1}}.stage-indicator{display:inline-flex;align-items:center;color:var(--muted);font-size:.92rem}.stage-text{white-space:nowrap}.stage-caret{width:2px;height:1em;margin-left:2px;background:var(--primary);animation:caret-blink .9s step-end infinite}@keyframes caret-blink{0%,to{opacity:1}50%{opacity:0}}.stage-ellipsis{display:inline-flex;gap:3px;margin-left:5px}.stage-ellipsis span{width:4px;height:4px;border-radius:50%;background:var(--muted);animation:blink 1.2s infinite both}.stage-ellipsis span:nth-child(2){animation-delay:.2s}.stage-ellipsis span:nth-child(3){animation-delay:.4s}.composer{border-top:1px solid var(--border);padding:.85rem 1.1rem 1rem;background:linear-gradient(180deg,rgba(255,255,255,0),var(--surface) 45%)}.composer-inner{max-width:820px;margin:0 auto}.composer-box{display:flex;align-items:flex-end;gap:.5rem;border:1px solid var(--border);border-radius:18px;padding:.4rem .4rem .4rem .95rem;background:var(--surface);box-shadow:var(--shadow);transition:border-color .15s,box-shadow .15s}.composer-box:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-50),var(--shadow)}.composer-box textarea{border:none;resize:none;padding:.45rem 0;max-height:160px;background:transparent}.composer-box textarea:focus{box-shadow:none}.send-btn{flex-shrink:0;width:38px;height:38px;border-radius:50%;border:none;background:var(--grad);color:#fff;font-size:1rem;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px #0f766e59;transition:transform .12s,box-shadow .15s,opacity .15s}.send-btn:hover:not(:disabled){transform:scale(1.06);box-shadow:0 4px 12px #0f766e73}.send-btn:active:not(:disabled){transform:scale(.96)}.send-btn:disabled{opacity:.5;box-shadow:none}.composer-hint{text-align:center;color:var(--muted);font-size:.76rem;margin-top:.45rem}.auth-screen{min-height:100%;display:flex;align-items:center;justify-content:center;padding:1.5rem;background:linear-gradient(160deg,var(--primary-50),var(--bg))}.auth-card{position:relative;width:100%;max-width:380px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:1.8rem;display:flex;flex-direction:column;gap:.9rem}.auth-close{position:absolute;top:.85rem;right:1rem;z-index:1;background:none;border:none;font-size:1.1rem;line-height:1;color:var(--muted);cursor:pointer}.auth-close:hover{color:var(--text)}.auth-brand{text-align:center;margin-bottom:.3rem}.auth-brand .logo{font-size:2.2rem}.auth-brand h1{margin:.4rem 0 .2rem;font-size:1.3rem}.auth-brand p{margin:0}.back-link{text-align:center;font-size:.88rem}.admin-shell{display:flex;height:100%}.admin-side{width:var(--sidebar-w);flex-shrink:0;background:var(--surface);border-right:1px solid var(--border);display:flex;flex-direction:column;padding:1rem .85rem}.admin-nav{display:flex;flex-direction:column;gap:2px;margin-top:.5rem;flex:1}.admin-nav a{padding:.6rem .7rem;border-radius:9px;color:var(--text);font-weight:500;font-size:.93rem}.admin-nav a:hover{background:var(--surface-2);text-decoration:none}.admin-nav a.active{background:var(--primary-50);color:var(--primary-600);font-weight:700}.admin-side-foot{border-top:1px solid var(--border);padding-top:.8rem;display:flex;flex-direction:column;gap:.7rem}.open-chat{font-size:.9rem}.who{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.admin-main{flex:1;overflow-y:auto}.admin-mobile-bar{display:none}.page{max-width:1100px;margin:0 auto;padding:1.6rem 1.6rem 3rem}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1.2rem}.page-head h1{margin:0 0 .2rem;font-size:1.5rem}.page-head p{margin:0}.seg{display:inline-flex;border:1px solid var(--border);border-radius:10px;overflow:hidden}.seg button{border:none;background:var(--surface);padding:.45rem .85rem;font-size:.85rem;color:var(--muted)}.seg button.active{background:var(--primary);color:#fff}.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.9rem;margin-bottom:1.2rem}.stat{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1rem 1.1rem;box-shadow:var(--shadow)}.stat-value{font-size:1.5rem;font-weight:700}.stat-label{color:var(--muted);font-size:.84rem;margin-top:.2rem}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.2rem;box-shadow:var(--shadow);margin-bottom:1.2rem}.card.no-pad{padding:0;overflow:hidden}.card h2{margin:0 0 .9rem;font-size:1.1rem}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem}.bars{display:flex;align-items:flex-end;gap:4px;height:180px;padding-top:.5rem}.bar-col{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;min-width:0}.bar{width:70%;background:var(--primary);border-radius:4px 4px 0 0;min-height:2px;transition:height .3s}.bar-x{font-size:.62rem;color:var(--muted);margin-top:4px;transform:rotate(-45deg);white-space:nowrap}.ranked{list-style:none;margin:0;padding:0;counter-reset:rank}.ranked li{display:flex;align-items:center;gap:.6rem;padding:.5rem 0;border-bottom:1px solid var(--border)}.ranked li:last-child{border-bottom:none}.ranked li:before{counter-increment:rank;content:counter(rank);flex-shrink:0;width:22px;height:22px;border-radius:50%;background:var(--surface-2);color:var(--muted);font-size:.75rem;font-weight:700;display:flex;align-items:center;justify-content:center}.ranked .q{flex:1;font-size:.9rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ranked .count{font-weight:700;color:var(--primary-600)}.upload-form .upload-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr auto;gap:.8rem;align-items:end}.upload-form .btn{height:fit-content}.table-wrap{overflow-x:auto}.table{width:100%;border-collapse:collapse;font-size:.88rem}.table th,.table td{text-align:left;padding:.65rem .8rem;border-bottom:1px solid var(--border);vertical-align:top}.table th{background:var(--surface-2);color:var(--muted);font-size:.76rem;text-transform:uppercase;letter-spacing:.04em;position:sticky;top:0}.table tr:last-child td{border-bottom:none}.doc-title{font-weight:600}.badge{display:inline-block;background:var(--surface-2);color:var(--muted);border-radius:999px;padding:.15rem .55rem;font-size:.74rem;font-weight:600}.badge.status-indexed{background:#e6f6ec;color:#157347}.badge.status-processing,.badge.status-pending{background:#fff3da;color:var(--warn)}.badge.status-failed{background:var(--danger-50);color:var(--danger)}.badge.status-disabled{background:var(--surface-2);color:var(--muted)}.progress{display:flex;align-items:center;gap:.4rem;margin-top:.35rem}.progress-track{flex:1;min-width:70px;height:6px;background:var(--surface-2);border-radius:999px;overflow:hidden}.progress-fill{height:100%;background:var(--primary);border-radius:999px;transition:width .4s ease}.progress-pct{font-size:.72rem;font-weight:700;color:var(--primary-600);font-variant-numeric:tabular-nums;min-width:3.2rem;text-align:right}.row-actions{display:flex;flex-wrap:wrap;gap:.3rem}.mini-btn{background:var(--surface);border:1px solid var(--border);border-radius:7px;padding:.25rem .5rem;font-size:.78rem;color:var(--text)}.mini-btn:hover{background:var(--surface-2)}.mini-btn.danger{color:var(--danger);border-color:#f3c4c4}.mini-btn.danger:hover{background:var(--danger-50)}@media(max-width:860px){.sidebar,.admin-side{position:fixed;inset:0 auto 0 0;z-index:40;transform:translate(-100%);transition:transform .25s ease;box-shadow:var(--shadow)}.sidebar.open,.admin-side.open{transform:translate(0)}.hamburger{display:block}.admin-shell{display:block;min-height:100%}.admin-main{min-height:100%;overflow-y:visible}.admin-mobile-bar{position:sticky;top:0;z-index:25;display:flex;align-items:center;gap:.75rem;min-height:52px;padding:.65rem 1rem;background:#ffffffeb;border-bottom:1px solid var(--border);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.admin-backdrop{display:block}.page{padding:1rem .85rem 2rem;max-width:none}.page-head{flex-direction:column;align-items:stretch}.two-col,.upload-form .upload-grid{grid-template-columns:1fr}.msg-col{max-width:100%}.suggest-grid,.suggest-grid.chips{grid-template-columns:1fr}}.brand-logo{width:34px;height:34px;border-radius:9px;flex-shrink:0}.avatar-logo{background:transparent!important;object-fit:contain}.auth-logo{width:56px;height:56px;border-radius:14px}.empty-hero{position:relative;margin:auto 0;padding:1rem 0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.4rem}.empty-glow{position:absolute;top:8%;left:50%;transform:translate(-50%);width:320px;height:320px;border-radius:50%;pointer-events:none;z-index:-1;background:radial-gradient(circle,rgba(14,165,163,.2),transparent 65%);filter:blur(14px)}.empty-logo{width:72px;height:72px;border-radius:18px;margin-bottom:.6rem;box-shadow:var(--shadow-lg);animation:float 4.5s ease-in-out infinite}@keyframes float{0%,to{transform:translateY(0)}50%{transform:translateY(-7px)}}@media(prefers-reduced-motion:reduce){.empty-logo{animation:none}.suggest-card,.send-btn{transition:none}}.empty-hero h2{margin:0;font-size:1.7rem;letter-spacing:-.02em;background:var(--grad);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.empty-hero p{max-width:30rem}.foot-account{align-items:flex-end;gap:.5rem}.account{display:flex;flex-direction:column;gap:.15rem;min-width:0}.account-email{font-weight:600;font-size:.82rem;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.link-btn:hover{color:var(--text);text-decoration:underline}.auth-alt{text-align:center;font-size:.88rem;color:var(--muted);margin:.2rem 0 0}.modal-backdrop{position:fixed;inset:0;background:#0f172a73;z-index:60;display:flex;align-items:center;justify-content:center;padding:1rem}.modal{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow);width:100%;max-width:640px;max-height:85vh;display:flex;flex-direction:column}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1rem 1.2rem;border-bottom:1px solid var(--border)}.modal-title{font-weight:700}.modal-sub{color:var(--muted);font-size:.85rem;margin-top:.15rem}.modal-close{background:none;border:none;font-size:1.05rem;color:var(--muted);cursor:pointer}.modal-close:hover{color:var(--text)}.modal-body{padding:1.2rem;overflow-y:auto}.source-label{font-size:.78rem;font-weight:700;color:var(--muted);margin-bottom:.5rem}.source-context{margin:0;padding:0;border-left:3px solid var(--primary);padding-left:.9rem}.source-modal{max-width:960px;width:min(96vw,960px)}.source-frame{width:100%;height:76vh;border:1px solid var(--border);border-radius:10px;background:var(--surface-2)}.source-loading{display:flex;align-items:center;gap:.6rem;justify-content:center;height:30vh;color:var(--muted);font-size:.92rem}.source-note{background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;border-radius:10px;padding:.7rem .9rem;font-size:.86rem;margin-bottom:.9rem;line-height:1.5}@media(max-width:860px){.modal-backdrop{align-items:stretch;padding:0}.source-modal{width:100%;max-width:none;max-height:none;height:100%;border-radius:0}.modal-head{padding:.85rem 1rem}.modal-body{padding:.9rem;min-height:0}.source-frame{height:calc(100vh - 94px);border-radius:8px}}.feedback-list{display:flex;flex-direction:column}.feedback-item{padding:1rem 1.2rem;border-bottom:1px solid var(--border);border-left:3px solid transparent}.feedback-item.pos{border-left-color:#16a34a}.feedback-item.neg{border-left-color:var(--danger)}.feedback-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:.6rem}.fb-badge{font-size:.78rem;font-weight:700;padding:.2rem .55rem;border-radius:999px}.fb-badge.pos{background:#dcfce7;color:#166534}.fb-badge.neg{background:var(--danger-50);color:var(--danger)}.feedback-qa{display:flex;flex-direction:column;gap:.5rem}.fb-q,.fb-a{display:flex;gap:.6rem;align-items:flex-start;font-size:.9rem}.fb-tag{flex-shrink:0;width:1.4rem;height:1.4rem;border-radius:6px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.75rem;background:var(--surface-2);color:var(--muted)}.fb-q .fb-tag{background:var(--primary-50);color:var(--primary-600)}.fb-comment{font-size:.85rem;padding-left:2rem}
