:root{color-scheme:light;--page-bg: #f5f7fb;--shell-bg: #ffffff;--text: #1f2937;--muted: #667085;--line: #dde5ef;--brand: #0066a4;--success: #1d7f51;--warning: #b76b00;--danger: #b42318}*{box-sizing:border-box}body{margin:0;background:var(--page-bg);color:var(--text);font-family:Segoe UI,Microsoft YaHei,Arial,sans-serif}.app-shell{min-height:100vh}.app-header{position:sticky;top:0;z-index:20;border-bottom:1px solid var(--line);background:#fffffff0;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.header-inner{display:flex;align-items:center;justify-content:space-between;width:min(1280px,calc(100vw - 32px));margin:0 auto;padding:16px 0;gap:16px}.brand-title{margin:0;color:#102a43;font-size:22px;font-weight:800;letter-spacing:0}.brand-subtitle{margin:4px 0 0;color:var(--muted);font-size:13px}.app-main{width:min(1280px,calc(100vw - 32px));margin:0 auto;padding:24px 0 42px}.login-shell{display:grid;min-height:100vh;place-items:center;padding:24px;background:var(--page-bg)}.login-card{width:min(440px,calc(100vw - 32px));border-radius:8px}.workspace-card{border-radius:8px}.tab-content{padding-top:18px;display:flex;flex-direction:column;gap:16px}.answer-text{min-height:260px;white-space:pre-wrap;line-height:1.8}.markdown-content{white-space:normal;word-break:break-word}.markdown-content>:first-child{margin-top:0}.markdown-content>:last-child{margin-bottom:0}.markdown-content p,.markdown-content ul,.markdown-content ol,.markdown-content blockquote,.markdown-content table,.markdown-content pre{margin:0 0 14px}.markdown-content ul,.markdown-content ol{padding-left:24px}.markdown-content li{margin:4px 0}.markdown-content li>p{margin:0}.markdown-content strong{font-weight:700}.markdown-content code{padding:2px 5px;border-radius:4px;background:#f3f6f9;font-family:Consolas,Courier New,Microsoft YaHei,monospace;font-size:.92em}.markdown-content pre{overflow:auto;padding:12px;border:1px solid var(--line);border-radius:8px;background:#f8fafc}.markdown-content pre code{padding:0;background:transparent}.markdown-content table{width:100%;border-collapse:collapse;font-size:13px}.markdown-content th,.markdown-content td{border:1px solid var(--line);padding:8px 10px;vertical-align:top}.markdown-content th{background:#f7f9fc;font-weight:700}.markdown-content blockquote{padding:8px 12px;border-left:3px solid #91caff;background:#f7fbff;color:#4b5563}.source-content,.pre-wrap{white-space:pre-wrap;word-break:break-word;font-family:Consolas,Courier New,Microsoft YaHei,monospace;font-size:12px;line-height:1.65}.source-content{max-height:220px;overflow:auto;border:1px solid var(--line);border-radius:8px;padding:10px;background:#fbfdff}.source-list{display:grid;gap:8px}.source-list-item{position:relative;scroll-margin-top:96px;border:1px solid var(--line);border-radius:8px;padding:10px 12px;background:#fff;transition:border-color .16s ease,box-shadow .16s ease}.source-anchor{position:absolute;top:0;left:0;width:1px;height:1px;overflow:hidden;scroll-margin-top:96px}.source-list-item-active{border-color:#1677ff;box-shadow:0 0 0 2px #1677ff2e}.source-list-row{width:100%}.source-title-link,.source-title-text{max-width:min(100%,720px);min-height:24px;padding:0;white-space:normal;text-align:left;word-break:break-word}.history-answer{white-space:pre-wrap;line-height:1.7}.history-pagination{display:flex;justify-content:flex-end;margin-top:16px}.metric-card .ant-statistic-title{color:var(--muted);font-weight:700}.muted{color:var(--muted)}.documents-table{max-width:100%}.documents-table .ant-table{width:100%}.documents-table .ant-table-cell{overflow-wrap:anywhere;vertical-align:top}.document-cell{min-width:0;overflow-wrap:anywhere;word-break:break-word}.document-cell strong{display:block;margin-bottom:4px}.document-status-tag{max-width:100%;height:auto;white-space:normal;line-height:1.45;overflow-wrap:anywhere}.document-size{display:inline-block;min-width:64px;white-space:normal}.document-search-row{display:flex;align-items:center;gap:12px;margin:0 0 12px}.document-search-row .ant-input-affix-wrapper{width:min(420px,100%)}.document-bulk-row{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:0 0 12px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.toolbar-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.request-form{display:flex;gap:8px}.request-form .ant-form-item{margin-bottom:8px}.request-feedback{margin-top:8px}.knowledge-entry-card{max-width:900px}.knowledge-entry-form{margin-top:20px}.knowledge-entry-result{margin-bottom:16px}.knowledge-rich-preview{max-height:22vh;overflow:auto;padding:12px 16px;border:1px solid #d9e2ec;border-radius:8px;background:#f8fafc;line-height:1.7;overflow-wrap:anywhere}.knowledge-rich-preview p{margin:0 0 10px}.knowledge-rich-preview p:last-child{margin-bottom:0}.knowledge-rich-preview img{display:block;max-width:min(100%,680px);max-height:20vh;width:auto;height:auto;object-fit:contain;border-radius:6px}.knowledge-preview-button{min-width:68px;padding-inline:8px!important}.knowledge-batch-actions{display:flex;justify-content:flex-end;margin-bottom:12px}.knowledge-preview-modal .ant-modal-content{display:flex;max-height:calc(100vh - 64px);flex-direction:column}.knowledge-preview-modal .ant-modal-body{min-height:0;overflow-y:auto;overscroll-behavior:contain}@media(max-height:700px){.knowledge-rich-preview{max-height:18vh}.knowledge-rich-preview img{max-height:16vh}}.rich-text-editor{overflow:hidden;border:1px solid #d9d9d9;border-radius:8px;background:#fff;transition:border-color .2s,box-shadow .2s}.rich-text-editor:focus-within{border-color:#4096ff;box-shadow:0 0 0 2px #0591ff1a}.rich-text-toolbar{display:flex;align-items:center;min-height:40px;padding:4px 8px;border-bottom:1px solid #f0f0f0;background:#fafafa}.rich-text-file-input-wrapper{display:none!important}.rich-text-content{padding:10px 12px;overflow-y:auto;outline:none;line-height:1.65}.rich-text-content:empty:before{color:#bfbfbf;content:attr(data-placeholder);pointer-events:none}.rich-text-content p,.rich-text-content div{margin:0 0 8px}.rich-text-content img{display:block;max-width:min(100%,720px);max-height:480px;margin:10px 0;border:1px solid #e5e7eb;border-radius:6px;object-fit:contain}.rich-text-count{padding:0 10px 6px;color:#8c8c8c;text-align:right;font-size:12px}.rich-text-count-error{color:#ff4d4f}.audit-json{max-height:180px;margin:0;overflow:auto}.json-editor{overflow:hidden;border:1px solid var(--line);border-radius:8px}.trend-legend{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 8px}.trend-legend span{display:inline-flex;align-items:center;gap:6px;border:1px solid #dceaf2;border-radius:999px;padding:4px 8px;background:#fff;color:#425466;font-size:12px;font-weight:700;white-space:nowrap}.trend-legend i{width:18px;height:3px;border-radius:999px}.benchmark-trend-chart{overflow-x:auto}.benchmark-trend-loading{display:flex;align-items:center;justify-content:center;min-height:300px;gap:10px;border:1px dashed #dceaf2;border-radius:8px;background:#fbfdff}.trend-svg{display:block;min-width:720px;width:100%;height:auto}.trend-svg text{fill:#667085;font-size:12px;font-weight:700}.trend-grid-line,.trend-axis-line{stroke:#dceaf2;stroke-width:1}.trend-line{fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.trend-pass{stroke:#0066a4;background:#0066a4}.trend-score{stroke:#1f7a4d;background:#1f7a4d}.trend-source{stroke:#9a5b00;background:#9a5b00}.trend-latency{stroke:#7c3aed;stroke-dasharray:8 6;background:#7c3aed}.ant-card,.ant-table-wrapper,.ant-alert,.ant-collapse{border-radius:8px}@media(max-width:760px){.header-inner,.toolbar{align-items:stretch;flex-direction:column}.toolbar-actions{justify-content:flex-start}.document-search-row{align-items:stretch;flex-direction:column}.document-search-row .ant-input-affix-wrapper{width:100%}.document-bulk-row,.request-form{align-items:stretch;flex-direction:column}}
