:root{color:#1f1f1f;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif}*{box-sizing:border-box}html,body,#root{background:#f0f2f5;height:100%;margin:0}.kh-root{height:100%;min-height:100%}.kh-root>.ant-layout{flex:1;height:calc(100% - 56px);min-height:0;overflow:hidden}.kh-header{z-index:20;border-bottom:1px solid #f0f0f0;align-items:center;display:flex;position:sticky;top:0;height:56px!important;padding:0 20px!important;line-height:56px!important}.kh-logo{cursor:pointer;flex-shrink:0;align-items:center;gap:8px;margin-right:24px;display:flex}.kh-logo-mark{color:#fff;background:#1677ff;border-radius:6px;justify-content:center;align-items:center;width:28px;height:28px;font-size:16px;font-weight:700;display:inline-flex}.kh-logo-text{color:#1f1f1f;white-space:nowrap;font-size:16px;font-weight:600}.kh-top-menu{flex:1;min-width:0;border-bottom:none!important}.kh-header-right{align-items:center;gap:16px;margin-left:12px;display:flex}.kh-user{cursor:pointer;align-items:center;gap:8px;display:flex}.kh-sider{border-right:1px solid #f0f0f0;flex-direction:column;display:flex}.kh-sider .ant-layout-sider-children{flex-direction:column;height:100%;display:flex}.kh-sider-title{color:#8c8c8c;padding:16px 20px 8px;font-size:13px}.kh-sider-bottom{color:#595959;cursor:pointer;align-items:center;gap:8px;margin-top:auto;padding:12px 20px 16px;display:flex}.kh-content{height:100%;min-height:0;padding:16px 20px 24px;overflow:auto}:is(.kh-content:has(.kh-graph-layout),.kh-content:has(.kh-chat-layout)){overflow:hidden}.kh-page{background:#fff;border-radius:8px;min-height:calc(100vh - 88px);padding:20px 24px 24px}.kh-access-hint{color:#8c8c8c;margin:0 0 16px;font-size:13px;line-height:1.6}.kh-search-bar{align-items:center;gap:12px;display:flex}.kh-search-bar .ant-input-affix-wrapper{flex:1}.kh-filters{flex-wrap:wrap;gap:12px;margin:16px 0 8px;display:flex}.kh-result-meta{color:#8c8c8c;justify-content:space-between;margin:16px 0 8px;font-size:13px;display:flex}.kh-hit{border-bottom:1px solid #f5f5f5;gap:12px;padding:16px 0;display:flex}.kh-hit-icon{flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;margin-top:2px;display:flex}.kh-hit-title{color:#1677ff;cursor:pointer;font-size:16px;font-weight:600}.kh-hit-title em,.kh-hit-snippet em{color:inherit;background:#fff1b8;font-style:normal}.kh-hit-snippet{color:#595959;margin:6px 0 8px;line-height:1.6}.kh-hit-meta{color:#8c8c8c;flex-wrap:wrap;gap:16px;font-size:12px;display:flex}.kh-page.kh-chat-layout{gap:16px;height:calc(100vh - 96px);min-height:0;padding:16px 20px 20px;display:flex}.kh-chat-sessions{border-right:1px solid #f0f0f0;flex-direction:column;flex-shrink:0;width:240px;min-height:0;padding-right:12px;display:flex}.kh-chat-session-list{flex:1;min-height:0;margin-top:12px;overflow:auto}.kh-chat-session-item{cursor:pointer;border-radius:8px;margin-bottom:4px;padding:10px 10px 8px}.kh-chat-session-item:hover,.kh-chat-session-item.active{background:#f5f7fa}.kh-chat-session-item.active{background:#e6f4ff}.kh-chat-session-title{text-overflow:ellipsis;white-space:nowrap;font-size:13px;line-height:1.4;overflow:hidden}.kh-chat-session-meta{color:#8c8c8c;justify-content:space-between;align-items:center;margin-top:4px;font-size:12px;display:flex}.kh-chat-main{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex}.kh-chat-log-wrap{flex-direction:column;flex:1;min-height:0;display:flex;position:relative}.kh-chat-log{flex:1;min-height:0;padding:8px 0 16px;overflow:auto}.kh-chat-jump{z-index:2;position:absolute;bottom:12px;right:12px;box-shadow:0 2px 8px #0000001f}.kh-bubble{border-radius:10px;max-width:780px;margin-bottom:16px;padding:12px 14px;line-height:1.7}.kh-bubble.user{color:#fff;white-space:pre-wrap;background:#1677ff;margin-left:auto}.kh-bubble.assistant{background:#f5f7fa}.kh-bubble-text{white-space:pre-wrap}.kh-bubble-md{min-width:0}.kh-md>:first-child{margin-top:0}.kh-md>:last-child{margin-bottom:0}.kh-md h3,.kh-md h4{margin:14px 0 8px;font-size:15px;font-weight:600;line-height:1.4}.kh-md p{margin:0 0 10px}.kh-md ul,.kh-md ol{margin:0 0 10px;padding-left:1.4em}.kh-md li{margin:4px 0}.kh-md code{background:#fff;border-radius:4px;padding:1px 5px;font-size:12px}.kh-md pre{background:#fff;border-radius:8px;padding:10px 12px;overflow:auto}.kh-md pre code{background:0 0;padding:0}.kh-md table{border-collapse:collapse;background:#fff;width:100%;margin:0 0 10px;font-size:13px}.kh-md th,.kh-md td{text-align:left;border:1px solid #f0f0f0;padding:6px 8px}.kh-chat-session-item.disabled{opacity:.55;cursor:not-allowed}.kh-chat-status{color:#1677ff;margin-bottom:8px;font-size:12px}.kh-chat-error{color:#ff4d4f;margin-top:8px;font-size:13px}.kh-trace{margin:0 0 14px;padding-left:16px;position:relative}.kh-trace:before{content:"";background:#e8e8e8;width:1px;position:absolute;top:10px;bottom:10px;left:4px}.kh-trace-item{margin-bottom:8px;position:relative}.kh-trace-item:last-child{margin-bottom:0}.kh-trace-node{background:#fff;border:2px solid #bfbfbf;border-radius:50%;width:8px;height:8px;position:absolute;top:16px;left:-15px;box-shadow:0 0 0 3px #f5f7fa}.kh-trace-intent .kh-trace-node{background:#1677ff;border-color:#1677ff}.kh-trace-kb .kh-trace-node{border-color:#1677ff}.kh-trace-eval.ok .kh-trace-node{background:#52c41a;border-color:#52c41a}.kh-trace-eval.warn .kh-trace-node{background:#faad14;border-color:#faad14}.kh-trace-eval.failed .kh-trace-node,.kh-trace-kb.failed .kh-trace-node,.kh-trace-graph.failed .kh-trace-node,.kh-trace-web.failed .kh-trace-node{background:#ff4d4f;border-color:#ff4d4f}.kh-trace-graph .kh-trace-node{border-color:#2f54eb}.kh-trace-web .kh-trace-node{border-color:#13c2c2}.kh-trace-rewrite .kh-trace-node{background:#722ed1;border-color:#722ed1}.kh-trace-rewrite.failed .kh-trace-node{background:#ff4d4f;border-color:#ff4d4f}.kh-trace-think .kh-trace-node{border-color:#8c8c8c}.kh-trace-card{background:#fff;border:1px solid #f0f0f0;border-radius:8px}.kh-trace-status{color:#8c8c8c;padding:10px 12px;font-size:12px}.kh-panel{padding:10px 12px 12px}.kh-panel-head,.kh-sheet summary,.kh-links summary,.kh-note summary{-webkit-user-select:none;user-select:none;align-items:center;gap:8px;min-width:0;list-style:none;display:flex}.kh-sheet summary,.kh-links summary,.kh-note summary{cursor:pointer;padding:10px 12px}.kh-sheet summary::-webkit-details-marker{display:none}.kh-links summary::-webkit-details-marker{display:none}.kh-note summary::-webkit-details-marker{display:none}.kh-panel-type{color:#1677ff;background:#f0f5ff;border-radius:2px;flex-shrink:0;padding:0 6px;font-size:12px;line-height:20px}.kh-trace-kb .kh-panel-type{background:#e6f4ff}.kh-trace-graph .kh-panel-type{color:#2f54eb;background:#f0f5ff}.kh-trace-web .kh-panel-type{color:#08979c;background:#e6fffb}.kh-trace-eval .kh-panel-type{color:#d48806;background:#fff7e6}.kh-trace-rewrite .kh-panel-type{color:#531dab;background:#f9f0ff}.kh-trace-think .kh-panel-type{color:#595959;background:#f5f5f5}.kh-panel-title{color:#1f1f1f;flex-shrink:0;font-size:13px;font-weight:600}.kh-panel-sub{text-overflow:ellipsis;white-space:nowrap;color:#8c8c8c;min-width:0;font-size:12px;overflow:hidden}.kh-panel-n{font-variant-numeric:tabular-nums;color:#8c8c8c;margin-left:auto;font-size:12px;font-weight:500}.kh-badge{border-radius:2px;flex-shrink:0;padding:0 6px;font-size:12px;line-height:20px}.kh-badge.ok{color:#389e0d;background:#f6ffed}.kh-badge.warn{color:#d48806;background:#fffbe6}.kh-badge.failed{color:#cf1322;background:#fff2f0}.kh-meta{margin:8px 0 0}.kh-meta>div{grid-template-columns:52px 1fr;align-items:start;gap:8px;margin-top:6px;font-size:12px;display:grid}.kh-meta dt{color:#8c8c8c}.kh-meta dd{color:#434343;word-break:break-all;min-width:0;margin:0}.kh-meta dd span{margin-right:8px;display:inline-block}.kh-meta dd span.on{color:#1677ff}.kh-meta dd span.off{color:#bfbfbf}.kh-sheet-docs{border-top:1px solid #f5f5f5;margin:0;padding:0 12px 10px;list-style:none}.kh-sheet-docs li{border-bottom:1px solid #f5f5f5;align-items:baseline;gap:8px;padding:7px 0;font-size:13px;display:flex}.kh-sheet-docs li:last-child{border-bottom:0}.kh-sheet-docs em{color:#8c8c8c;font-variant-numeric:tabular-nums;flex-shrink:0;width:22px;font-size:12px;font-style:normal}.kh-sheet-docs span{text-overflow:ellipsis;white-space:nowrap;color:#262626;min-width:0;overflow:hidden}.kh-sheet-docs small{text-overflow:ellipsis;color:#8c8c8c;font-size:12px;display:block;overflow:hidden}.kh-sheet-kicker{color:#8c8c8c;padding:8px 12px 0;font-size:12px}.kh-trace-graph-canvas{background:#fafafa;border:1px solid #f5f5f5;border-radius:6px;height:460px;margin:0 8px 10px;position:relative;overflow:hidden}.kh-trace-graph-canvas .kh-force-wrap{min-height:0;position:absolute;inset:0}.kh-sheet-kicker+.kh-sheet-docs,.kh-sheet-kicker+.kh-sheet-rels{padding-top:2px}.kh-sheet-rels{border-top:1px solid #f5f5f5;margin:0;padding:0 12px 10px;list-style:none}.kh-sheet-rels li{color:#262626;border-bottom:1px solid #f5f5f5;flex-wrap:wrap;align-items:baseline;gap:6px;padding:7px 0;font-size:13px;display:flex}.kh-sheet-rels li:last-child{border-bottom:0}.kh-sheet-rels code{color:#2f54eb;background:#f0f5ff;border-radius:2px;padding:0 6px;font-size:12px}.kh-link-grid{border-top:1px solid #f5f5f5;padding:0 12px 10px}.kh-link-tile{color:inherit;border-bottom:1px solid #f5f5f5;align-items:baseline;gap:10px;padding:7px 0;display:flex}.kh-link-tile:last-child{border-bottom:0}.kh-link-tile:hover .kh-link-title{color:#1677ff}.kh-link-fav{display:none}.kh-link-title{text-overflow:ellipsis;white-space:nowrap;color:#262626;min-width:0;font-size:13px;overflow:hidden}.kh-link-host{color:#8c8c8c;flex-shrink:0;margin-left:auto;font-size:12px}.kh-note-body{white-space:pre-wrap;color:#595959;border-top:1px solid #f5f5f5;margin:0;padding:0 12px 12px;font-size:13px;line-height:1.7}.kh-step-err{color:#cf1322;border-top:1px solid #f5f5f5;padding:8px 12px 10px;font-size:12px}.kh-trace-item.pending .kh-trace-node,.kh-trace-status .kh-trace-node{animation:1.1s ease-in-out infinite kh-step-pulse}@keyframes kh-step-pulse{0%,to{opacity:1}50%{opacity:.35}}.kh-web-link{margin:4px 8px 4px 0;font-size:12px;display:inline-block}.kh-cite-list{margin:12px 0 0}.kh-cite-list-title{color:#595959;margin-bottom:6px;font-size:12px;font-weight:600}.kh-cite-rail{scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;gap:8px;padding:2px 0 8px;display:flex;overflow-x:auto}.kh-cite-rail::-webkit-scrollbar{height:4px}.kh-cite-rail::-webkit-scrollbar-thumb{background:#d9d9d9;border-radius:2px}.kh-cite{width:220px;min-height:132px;color:inherit;scroll-snap-align:start;cursor:pointer;background:#fff;border:1px solid #f0f0f0;border-radius:8px;flex:0 0 220px;align-items:flex-start;gap:8px;padding:10px;scroll-margin-inline:8px;display:flex}.kh-cite-body{flex:1;min-width:0}.kh-cite:hover,.kh-cite.active{border-color:#91caff}.kh-cite.flash,.kh-cite.active{background:#e6f4ff;box-shadow:0 0 0 2px #1677ff29}.kh-cite-title,.kh-cite-heading,.kh-cite-meta{-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.kh-cite-title{-webkit-line-clamp:2;font-size:12px;font-weight:500;line-height:1.4}.kh-cite-heading{-webkit-line-clamp:1;color:#595959;margin-top:2px;font-size:11px}.kh-cite-meta{-webkit-line-clamp:4;color:#8c8c8c;margin-top:4px;font-size:11px;line-height:1.45}.kh-cite-open{margin-top:4px;font-size:11px;display:inline-block}.kh-cite-inline{color:#1677ff;font:inherit;cursor:pointer;background:0 0;border:0;padding:0 1px;font-weight:600;display:inline}.kh-cite-inline:hover{text-decoration:underline}.kh-login{background:linear-gradient(#e8f3ff 0%,#f0f2f5 40%);justify-content:center;align-items:center;min-height:100vh;display:flex}.kh-login-card{width:400px}.kh-login-title{text-align:center;flex-direction:column;align-items:center;gap:8px;margin-bottom:24px;display:flex}.kh-login-title h1{margin:4px 0 0;font-size:22px}.kh-login-title p{color:#8c8c8c;margin:0}.kh-graph-layout{align-items:stretch;gap:16px;height:calc(100vh - 96px);min-height:0;max-height:calc(100vh - 96px);display:flex;overflow:hidden}.kh-graph-main{background:#fff;border-radius:8px;flex-direction:column;flex:1;min-width:0;height:100%;min-height:0;display:flex;overflow:hidden}.kh-graph-toolbar{border-bottom:1px solid #f0f0f0;flex-wrap:wrap;flex-shrink:0;align-items:center;gap:8px;padding:16px 16px 12px;display:flex}.kh-graph-canvas{background:#fafafa;flex:1;min-height:0;position:relative}.kh-force-wrap{cursor:grab;width:100%;height:100%;min-height:0;overflow:hidden}.kh-graph-legend,.kh-graph-hint{pointer-events:none}.kh-graph-loading{z-index:3;background:#ffffff8c;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.kh-type-pie{width:100%;height:180px}.kh-edge-label{fill:#8c8c8c;text-anchor:middle;pointer-events:none;font-size:10px}.kh-graph-empty{justify-content:center;align-items:center;height:100%;min-height:0;display:flex}.kh-graph-legend{color:#595959;background:#ffffffeb;border:1px solid #f0f0f0;border-radius:6px;flex-wrap:wrap;align-items:center;gap:12px;padding:8px 12px;font-size:12px;display:flex;position:absolute;bottom:16px;left:16px}.kh-graph-legend i{vertical-align:middle;border-radius:50%;width:10px;height:10px;margin-right:4px;display:inline-block}.kh-legend-line,.kh-legend-dash{vertical-align:middle;border-top:2px solid #8c8c8c;width:22px;height:0;margin:0 4px 0 2px;display:inline-block}.kh-legend-dash{border-top-style:dashed}.kh-legend-blue{border-top-color:#1677ff}.kh-legend-grey{border-top-color:#8c8c8c}.kh-legend-purple{border-top-color:#722ed1}.kh-graph-zoom{z-index:2;flex-direction:column;gap:6px;display:flex;position:absolute;bottom:40px;right:16px}.kh-graph-hint{color:#bfbfbf;font-size:12px;position:absolute;bottom:12px;right:16px}.kh-graph-side{flex-direction:column;flex-shrink:0;gap:12px;width:300px;height:100%;min-height:0;display:flex;overflow:hidden auto}.kh-graph-card{background:#fff;border-radius:8px;padding:16px}.kh-graph-card h4{margin:0 0 12px;font-size:14px}.kh-graph-stats{grid-template-columns:1fr 1fr;gap:10px;display:grid}.kh-graph-stats div{text-align:center;background:#fafafa;border-radius:6px;padding:10px 8px}.kh-graph-stats b{color:#1677ff;font-size:18px;display:block}.kh-graph-stats span{color:#8c8c8c;font-size:12px}.kh-graph-rank{margin:0;padding:0;list-style:none}.kh-graph-rank li{border-bottom:1px solid #f5f5f5;align-items:center;gap:8px;padding:6px 0;display:flex}.kh-rank{color:#1677ff;text-align:center;background:#e6f4ff;border-radius:4px;width:18px;height:18px;font-size:12px;line-height:18px}.kh-rank-name{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.kh-rank-n{color:#8c8c8c;font-size:12px}.kh-graph-recent{border-bottom:1px solid #f5f5f5;padding:8px 0}.kh-graph-recent small{color:#8c8c8c}
