.kb-review{max-width:1040px;margin:0 auto}.kb-heading{padding:10px 0 22px}.kb-heading h1{font-size:clamp(32px,4.3vw,54px);line-height:1.14;letter-spacing:-1.8px;margin:16px 0}.kb-heading>p{font-size:17px;max-width:580px}.kb-sources{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:4px 0 36px}.kb-sources>div{display:flex;align-items:center;gap:12px;border:1px solid #ddd4e8;border-radius:16px;padding:16px;background:#f1ebf8}.kb-sources strong,.kb-sources small{display:block}.kb-sources small{font-size:12px;margin-top:5px;color:#73657f}.kb-source-icon{font-size:22px;font-weight:750}.kb-source-label{margin-inline-start:auto;font-size:11px;color:#806b97}.kb-section{margin:32px 0 0}.kb-section-heading{display:flex;align-items:center;gap:14px;margin-bottom:20px}.kb-section-heading h2{font-size:25px;margin:0}.kb-section-heading p{font-size:15px;margin:5px 0 0}.kb-section-heading>.tag{margin-inline-start:auto;flex-shrink:0}.kb-step{display:grid;place-items:center;background:#e9def6;border-radius:14px;min-width:44px;height:44px;font-size:17px;font-weight:750;color:#7554a0}.kb-fact-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.kb-fact-card{padding:24px;border:1px solid #ddd5e5;border-radius:22px;background:#fffdf8;min-width:0}.kb-fact-card h3{font-size:19px;margin:0}.kb-fact-card h3>span{color:#9675bd;margin-inline-end:7px}.kb-edit{min-height:44px;padding:8px 10px;background:transparent;color:#7551a1;font-size:14px;font-weight:700}.kb-facts>div{margin-top:20px}.kb-fact-label{font-size:12px;color:#877990}.kb-facts p{font-size:16px;color:#352d40;line-height:1.65;white-space:pre-line;margin:5px 0 0}.kb-answer-card{background:#eef3e4;border-color:#d4dfc2}.kb-answer-card>p{font-size:15px;color:#617054}.kb-example{padding:16px;background:#ffffff9c;border-radius:14px;margin-top:18px}.kb-example>span{font-size:12px;display:block;color:#778465;margin-bottom:8px}.kb-example>strong{font-size:16px}.kb-example>p{font-size:15px;color:#4f6040}.kb-editor label{display:block;margin:14px 0;font-size:13px;font-weight:650}.kb-editor textarea,.kb-supplement>textarea{width:100%;display:block;margin-top:8px;border:1px solid #b7a2cd;border-radius:12px;background:#fffefb;padding:12px;color:#30283e;font:inherit;font-size:16px;line-height:1.6;resize:vertical}.kb-editor[hidden],.kb-facts[hidden]{display:none}.kb-test{border:2px solid #c5aedf;border-radius:24px;background:#f1ebf9;padding:26px}.kb-chat-log{height:320px;overflow:auto;overscroll-behavior:contain;padding:22px;border-radius:18px;background:#fffdf9;display:flex;flex-direction:column;gap:16px}.kb-chat-welcome{display:flex;align-items:flex-start;gap:12px;margin:auto 0}.kb-chat-welcome strong{font-size:16px}.kb-chat-welcome p{font-size:16px;color:#7a6b89}.kb-chat-avatar{display:grid;place-items:center;flex-shrink:0;width:46px;height:46px;border-radius:16px;background:#e8dcf7;font-size:28px;color:#8760b8}.kb-message{max-width:86%;border-radius:16px;background:#ece5f5;padding:14px 18px;align-self:flex-start}.kb-message.kb-user{background:#e6efda;align-self:flex-end}.kb-message>span{font-size:11px;color:#7b6b8c}.kb-message p{white-space:pre-line;overflow-wrap:anywhere;font-size:16px;color:#30283e;margin:6px 0}.kb-message small{font-size:11px;color:#816f96}.kb-prompts{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.kb-prompts button{padding:10px 14px;min-height:44px;border:1px solid #cdbbdf;border-radius:24px;background:#fffdf9;color:#6f538c;font-size:13px}.kb-compose{display:flex;gap:10px}.kb-compose input{min-width:0;flex:1;border:2px solid #ac8fc9;border-radius:14px;padding:14px;background:#fffdf9;color:#30283e;font-size:16px}.kb-compose button{width:56px;min-height:56px;justify-content:center;font-size:24px;flex-shrink:0}.kb-supplement{padding:26px;border:1px solid #c9d8df;border-radius:24px;background:#eef4f6}.kb-upload{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:10px;border:2px dashed #adbdcb;border-radius:18px;background:#ffffffb0;padding:26px 18px;cursor:pointer;min-height:155px}.kb-upload>span:first-child{font-size:28px;color:#6e8296}.kb-upload>strong{font-size:17px}.kb-upload>span:last-of-type{font-size:12px;color:#758492}.kb-upload input{position:absolute;width:1px;height:1px;opacity:0}.kb-upload:focus-within,.kb-upload.dragging{outline:3px solid #8863d3;outline-offset:3px}.kb-file-list{display:grid;gap:10px;margin:14px 0 22px}.kb-file{display:flex;gap:12px;align-items:center;padding:14px;border-radius:14px;background:#fffdf9}.kb-file>div{flex:1;min-width:0}.kb-file strong{display:block;overflow-wrap:anywhere;font-size:14px}.kb-file small{display:block;color:#81909a;margin-top:5px}.kb-file button{width:44px;height:44px;border-radius:12px;background:#f2edf7;color:#7b648e;font-size:22px}.kb-notes-label{font-size:16px;font-weight:650}.kb-note-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}.kb-note-footer>span{font-size:13px;color:#65834e}.kb-publish{display:flex;align-items:center;gap:24px;justify-content:space-between;border-top:1px solid #ded8d0;padding:30px 0 18px;margin-top:38px}.kb-publish h2{font-size:25px}.kb-publish p{font-size:15px}.kb-publish>.btn{min-height:60px;justify-content:center;flex-shrink:0}.kb-bottom{display:flex;align-items:center;justify-content:space-between;margin:12px 0 30px}.kb-bottom>.btn{min-height:48px}.kb-draft-status{color:#978a9e;font-size:12px}.kb-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:650px){.kb-heading{padding-top:4px}.kb-heading h1{font-size:34px;letter-spacing:-1px}.kb-heading>p{font-size:16px}.kb-sources,.kb-fact-grid{grid-template-columns:1fr}.kb-sources{gap:10px;margin-bottom:28px}.kb-sources>div{padding:14px}.kb-section-heading{gap:10px;flex-wrap:wrap}.kb-section-heading>div{flex:1;min-width:180px}.kb-section-heading>.tag{margin-inline-start:54px}.kb-section-heading h2{font-size:22px}.kb-section-heading p{font-size:14px}.kb-fact-card{padding:20px}.kb-test,.kb-supplement{padding:18px}.kb-chat-log{padding:16px;height:300px}.kb-message{max-width:94%;padding:12px 14px}.kb-prompts button{font-size:12px}.kb-note-footer{align-items:flex-start;flex-direction:column}.kb-note-footer button{width:100%;justify-content:center;min-height:48px}.kb-publish{flex-direction:column;align-items:stretch;gap:12px}.kb-publish>.btn{width:100%;min-height:64px;font-size:18px}}
.kg-build{max-width:720px;margin:20px auto 40px}.kg-heading{margin-bottom:22px}.kg-heading h1{font-size:clamp(28px,4vw,42px);line-height:1.2}.kg-heading>p{font-size:17px}.kg-console{border:1px solid #c9b7df;border-radius:22px;background:linear-gradient(135deg,#f4edf9,#eff4fa);padding:22px;box-shadow:0 12px 35px #8062a014;overflow:hidden}.kg-console-top{display:flex;align-items:center;gap:9px;font-size:13px;color:#67517d}.kg-worker{margin-inline-start:auto;display:inline-flex;align-items:center;flex:none;width:60px;height:34px}.kg-worker svg{width:100%;height:100%;overflow:visible}.kg-worker-desk{fill:#c8b2e4}.kg-worker-keyboard{fill:#cdb9e8}.kg-worker-stand{fill:#8d6cc0}.kg-worker-frame{fill:#7c5ab0}.kg-worker-screen{fill:#eef5ff}.kg-worker-code{stroke:#008cff;stroke-width:1.15;stroke-linecap:round;opacity:.7;animation:kg-worker-code 1.5s ease-in-out infinite}.kg-worker-code-2{animation-delay:.22s}.kg-worker-code-3{animation-delay:.44s}.kg-worker-head{fill:#6d4aa3;transform-box:fill-box;transform-origin:center bottom;animation:kg-worker-nod 2.6s ease-in-out infinite}.kg-worker-torso{fill:#7b55b5}.kg-worker-arm{transform-box:fill-box;transform-origin:left center}.kg-worker-arm rect{fill:#553a86}.kg-worker-arm-left{animation:kg-worker-type-l .52s steps(2,end) infinite}.kg-worker-arm-right{animation:kg-worker-type-r .52s steps(2,end) infinite}.kg-worker-spark{fill:#008cff;opacity:0;animation:kg-worker-spark 2.4s ease-in-out infinite}.kg-worker-spark-2{animation-delay:.8s}.kg-worker-spark-3{animation-delay:1.6s}.kg-running-dot{width:7px;height:7px;border-radius:50%;background:#008cff;box-shadow:0 0 14px #008cff;animation:kg-flicker 1s infinite}.kg-main{display:flex;align-items:center;gap:18px;height:180px}.kg-network{width:52%;height:180px;overflow:visible}.kg-network path{fill:none;stroke:#b59bd6;stroke-width:1;stroke-dasharray:4 6;animation:kg-flow 3s linear infinite;animation-delay:var(--delay)}.kg-network circle{fill:#aa85d2;animation:kg-pulse 2.1s ease-in-out infinite;animation-delay:var(--delay);transform-box:fill-box;transform-origin:center}.kg-network circle:first-of-type{fill:#008cff}.kg-network .kg-core-ring{fill:none;stroke:#94c9ff;stroke-width:1}.kg-meter{flex:1;min-width:0}.kg-meter>span{font-size:clamp(42px,8vw,64px);font-weight:850;color:#008cff;font-variant-numeric:tabular-nums;letter-spacing:-2px}.kg-meter p{font-size:13px;line-height:1.5;min-height:40px;color:#6c5c7d}.kg-progress{height:8px;border-radius:10px;background:#e2d8ed;overflow:hidden;margin:0 0 18px}.kg-progress>span{display:block;width:1%;height:100%;border-radius:10px;background:linear-gradient(90deg,#a482dc,#008cff,#56c7ff);transition:width .12s linear;box-shadow:0 0 14px #63bfff}.kg-terminal{height:138px;overflow:hidden;background:#ffffff96;border:1px solid #e1d8ec;border-radius:12px;padding:10px 12px;direction:ltr}.kg-terminal>div{display:flex;align-items:center;gap:8px;height:19px;white-space:nowrap;font:10px/1.6 ui-monospace,monospace}.kg-line-index{color:#b3a4c0}.kg-terminal code{color:#9473b8;overflow:hidden;text-overflow:ellipsis;flex:1;font:inherit}.kg-log-text{color:#6b5a7c}.kg-log-state{color:#65a18b;min-width:12px}.kg-caption{text-align:center;font-size:13px;color:#90839d;margin-top:16px}.kg-ready{display:flex;align-items:center;gap:24px;border:1px solid #d7c8e9;border-radius:24px;background:linear-gradient(115deg,#f1e9fa,#eff5e6);padding:22px;margin:16px 0 28px}.kg-ready>div:first-child{width:32%;flex-shrink:0}.kg-ready .kg-network{width:100%;height:170px}.kg-ready h1{font-size:clamp(27px,4vw,40px);line-height:1.17;margin:12px 0}.kg-ready p{font-size:16px}.kg-ready-sources{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px;font-size:11px}.kg-ready-sources>span{border:1px solid #d6c9e3;padding:6px 9px;border-radius:18px;background:#ffffff80}.kg-ready-sources>button{background:transparent;color:#8566a6;min-height:44px;font-size:12px}.kb-test-language{display:flex;align-items:center;gap:12px;margin:0 0 16px;font-size:14px;color:#6c577f}.kb-test-language select{margin:0;min-height:44px;width:auto;min-width:140px;background:#fffdf9}.kb-translate{display:block;border:0;background:transparent;color:#7754a0;padding:8px 0;min-height:44px;font-size:12px}.kb-translation{border-top:1px solid #cab9dd;margin-top:8px;padding-top:8px;font-size:15px;white-space:pre-line;color:#5e4b72}@keyframes kg-flow{to{stroke-dashoffset:-40}}@keyframes kg-pulse{50%{opacity:.55;transform:scale(.85)}}@keyframes kg-flicker{50%{opacity:.4}}@keyframes kg-worker-type-l{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(1.5px) rotate(5deg)}}@keyframes kg-worker-type-r{0%,100%{transform:translateY(1.5px) rotate(5deg)}50%{transform:translateY(0) rotate(0)}}@keyframes kg-worker-nod{0%,100%{transform:translateY(0)}46%{transform:translateY(1.2px)}72%{transform:translateY(-.4px)}}@keyframes kg-worker-code{0%,100%{opacity:.25}50%{opacity:.95}}@keyframes kg-worker-spark{0%{opacity:0;transform:translateY(2px)}28%{opacity:.9}100%{opacity:0;transform:translateY(-10px)}}@media(max-width:650px){.kg-console{padding:16px}.kg-main{height:150px;gap:8px}.kg-network{height:150px;width:48%}.kg-terminal{padding:8px;height:132px}.kg-terminal>div{font-size:9px}.kg-ready{padding:18px;gap:12px}.kg-ready>div:first-child{width:28%}.kg-ready .kg-network{height:120px}.kg-ready h1{font-size:27px}.kg-ready .tag{font-size:10px}.kb-test-language{flex-wrap:wrap}}@media(prefers-reduced-motion:reduce){.kg-network path,.kg-network circle,.kg-running-dot{animation:none}.kg-worker *{animation:none}.kg-worker-spark{opacity:0}.kg-progress>span{transition:none}}

.kb-supplement .kb-optional{display:inline-flex;margin:0 0 12px;font-size:14px;font-weight:700}
/* Knowledge generation progress, test chat trace and graph (backend ADR 0007) */
.kb-agent-status{display:flex;align-items:center;gap:8px;margin:-6px 0 14px;font-size:14px;color:#5f566b}
.kb-agent-status.ready{color:#5b3f8f}
.kb-pulse{display:inline-block;width:10px;height:10px;border-radius:50%;background:var(--purple);animation:kb-pulse 1.2s ease-in-out infinite}
@keyframes kb-pulse{50%{opacity:.35;transform:scale(.75)}}
.kb-chat-log{height:420px}
.kb-message.kb-ai{max-width:92%}
.kb-message>p{margin:6px 0 0;white-space:pre-wrap;line-height:1.55}
.kb-caret{display:inline-block;width:7px;height:1em;margin-inline-start:2px;vertical-align:-2px;background:var(--purple);animation:kb-caret 1s steps(1) infinite}
@keyframes kb-caret{50%{opacity:0}}
.kb-process-live{display:flex;align-items:center;gap:8px;margin:8px 0 0;color:#5f566b;font-size:14px}
.kb-process{margin:8px 0 4px;border:1px solid #d9cdea;border-radius:12px;background:#f7f2fd}
.kb-process>summary,.kb-refs>summary,.kb-graph-list>summary{cursor:pointer;min-height:40px;display:flex;align-items:center;gap:4px;padding:6px 12px;font-size:13px;font-weight:650;color:#5b3f8f}
.kb-process>summary:focus-visible,.kb-refs>summary:focus-visible,.kb-graph-list>summary:focus-visible,.kb-suggestions button:focus-visible{outline:3px solid #8863d3;outline-offset:2px}
.kb-thinking{margin:0 12px 10px;padding:10px 12px;border-inline-start:3px solid #c5aedf;background:#fffdf9;border-radius:0 10px 10px 0}
.kb-thinking strong{font-size:12px;color:#5f566b}
.kb-thinking p{margin:4px 0 0;font-size:13px;line-height:1.5;color:#3f3650;white-space:pre-wrap;max-height:180px;overflow:auto}
.kb-trace{list-style:none;margin:0;padding:0 12px 10px;display:grid;gap:8px}
.kb-trace-step{padding:10px 12px;border-radius:10px;background:#fffdf9;border:1px solid #e6dcf2}
.kb-trace-step>div{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px;font-size:13px}
.kb-trace-tool{font-weight:700;color:#3f3650}
.kb-trace-step q{color:#5b3f8f}
.kb-trace-step small{display:block;margin-top:4px;color:#665d70;font-size:12px}
.kb-trace-step.running small{color:#5b3f8f}
.kb-trace-step.failed small{color:#a33a3a}
.kb-trace-step ul,.kb-refs ul{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:6px}
.kb-trace-step li,.kb-refs li{display:grid;gap:2px;padding:6px 8px;border-radius:8px;background:#f4eff9;font-size:12px;line-height:1.45;color:#3f3650;overflow-wrap:anywhere}
.kb-trace-step li strong,.kb-refs li strong{font-size:12px}
.kb-refs{margin-top:8px;border-top:1px solid #ddd2ea}
.kb-refs ul{padding:0 0 4px}
.kb-error{margin:6px 0 0;color:#a33a3a;font-size:14px}
.kb-handoff{margin:8px 0 0;font-size:13px;color:#5f566b}
.kb-suggestions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;max-width:92%}
.kb-suggestions>span{width:100%;font-size:12px;font-weight:650;color:#5f566b}
.kb-suggestions button{min-height:40px;padding:8px 14px;border:1px solid #c5aedf;border-radius:999px;background:#fffdf9;color:#4c3479;font-size:14px;text-align:start;cursor:pointer;transition:background-color .15s,border-color .15s}
.kb-suggestions button:hover{background:#eee6fa;border-color:#8863d3}
.kb-graph{padding:26px;border:1px solid #d7c8e9;border-radius:24px;background:#fbf8ff}
.kb-graph h2{margin:0 0 6px}
.kb-graph-meta{margin:0 0 14px;font-size:14px;color:#5f566b}
.kb-graph-pending{display:flex;align-items:center;gap:12px;padding:28px;border-radius:18px;background:#fffdf9;color:#5f566b}
.kb-graph-pending p{margin:0}
.kb-graph-body{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:16px;align-items:start}
.kb-graph-stage{position:relative;min-width:0}
/* One finger scrolls the page; the zoom handler takes two-finger gestures. */
.kb-graph-canvas{display:block;width:100%;height:auto;border-radius:18px;background:radial-gradient(circle at 50% 50%,#fff 0,#f4eefb 72%);touch-action:pan-y;cursor:grab;user-select:none;-webkit-user-select:none}
.kb-graph-canvas:active{cursor:grabbing}
.kb-edge{fill:none;vector-effect:non-scaling-stroke;stroke:#a99bbb;stroke-opacity:.5;stroke-width:1.1;transition:stroke-opacity .15s}
.kb-edge.on{stroke:#6f48b8;stroke-opacity:1;stroke-width:2}
.kb-edge.dim{stroke-opacity:.12}
.kb-hull{fill:var(--node);fill-opacity:.06;stroke:var(--node);stroke-opacity:.16;stroke-width:1.5;pointer-events:none;transition:fill-opacity .25s,stroke-opacity .25s}
.kb-graph.has-selection .kb-hull{fill-opacity:.025;stroke-opacity:.06}
#kb-arrow path{fill:#6f48b8}
.kb-edge-label{font-size:10px;font-weight:650;fill:#4c2c8c;text-anchor:middle;paint-order:stroke;stroke:#fbf8ff;stroke-width:4px;stroke-linejoin:round;pointer-events:none}
.kb-node{cursor:grab;outline:none;touch-action:none}
.kb-node.dragging{cursor:grabbing}
.kb-node.dragging .kb-dot{stroke:#30283e;stroke-width:3}
.kb-node-move{display:flex;gap:6px;margin-top:10px}
.kb-node-move button{width:36px;height:36px;border:1px solid #d7c8e9;border-radius:8px;background:#fffdf9;color:#4c2c8c;font-size:18px;cursor:pointer}
.kb-node-move button:hover{background:#f4eefb}
.kb-node-move button:focus-visible{outline:3px solid #8863d3;outline-offset:2px}
.kb-hit{fill:transparent}
.kb-dot{fill:var(--node);stroke:#fff;stroke-width:2;transition:opacity .15s;transform-box:fill-box;transform-origin:center}
.kb-halo{fill:none;stroke:var(--node);stroke-opacity:.25;stroke-width:4}
.kb-node.selected .kb-dot{stroke:#f2b84b;stroke-width:3.5}
.kb-node:focus-visible .kb-dot{stroke:#30283e;stroke-width:3.5}
.kb-node.dim{opacity:.28}
.kb-node.fresh{animation:kb-node-in .5s ease-out both}
@keyframes kb-node-in{from{opacity:0}}
.kb-node.fresh .kb-dot{animation:kb-dot-in .5s cubic-bezier(.34,1.56,.64,1) both}
@keyframes kb-dot-in{from{transform:scale(.35)}}
.kb-node text{font-size:11px;fill:#30283e;paint-order:stroke;stroke:#fbf8ff;stroke-width:3px;stroke-linejoin:round;opacity:0;pointer-events:none;transition:opacity .15s}
.kb-node.hub text{font-size:13px;font-weight:700}
.kb-node.show text,.kb-node:hover text,.kb-node:focus-visible text{opacity:1}
.kb-graph-zoom{position:absolute;top:10px;right:10px;display:flex;flex-direction:column;gap:4px}
.kb-graph-zoom button{display:grid;place-items:center;width:36px;height:36px;padding:0;border:1px solid #d7c8e9;border-radius:10px;background:#fffdf9;color:#4c2c8c;cursor:pointer}
.kb-graph-zoom button:hover{background:#f4eefb}
.kb-graph-zoom button:focus-visible{outline:3px solid #8863d3;outline-offset:2px}
.kb-graph-zoom svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.kb-graph-gesture{margin:8px 2px 0;font-size:12px;color:#665d70}
.kb-swatch{display:inline-block;width:10px;height:10px;margin-inline-end:6px;border-radius:50%;background:var(--node);vertical-align:baseline}
.kb-graph-detail,.kb-graph-hint{min-width:0;overflow-wrap:anywhere;padding:14px;border-radius:16px;background:#fffdf9;border:1px solid #e6dcf2;font-size:13px;color:#3f3650}
.kb-graph-hint{color:#5f566b;margin:0}
.kb-graph-detail p{margin:6px 0;color:#5f566b}
.kb-graph-detail ul{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:6px;max-height:260px;overflow:auto}
.kb-graph-detail li{overflow-wrap:anywhere}
.kb-graph-detail em{font-style:normal;font-weight:700;color:#5b3f8f}
.kb-graph-list{margin-top:12px}
.kb-graph-list ul{list-style:none;margin:6px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:6px}
.kb-graph-list li{display:flex;flex-wrap:wrap;gap:4px;align-items:baseline;padding:8px 10px;border-radius:10px;background:#fffdf9;font-size:13px}
.kb-graph-list li small{width:100%;color:#665d70}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.kb-progress{padding:24px 26px;border:1px solid #d7c8e9;border-radius:24px;background:#fffdf8}
.kb-progress-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.kb-progress-head h2{margin:0}
.kb-progress-head strong{font-size:24px;font-variant-numeric:tabular-nums;color:#5b3f8f}
.kb-progress-bar{height:10px;margin:14px 0 18px;border-radius:999px;background:#eee6fa;overflow:hidden}
.kb-progress-bar span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#8863d3,#b18fe8);transition:width .6s ease}
.kb-progress-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.kb-progress-steps li{position:relative;display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:14px;background:#f7f2fd;border:1px solid #e6dcf2}
.kb-lane-head{display:flex;align-items:center;gap:8px}
.kb-lane-head strong{flex:1;min-width:0}
.kb-lane-chip{flex-shrink:0;padding:2px 8px;border-radius:999px;font-size:12px;font-weight:650;background:#ece5f5;color:#5b3f8f}
.kb-lane.running .kb-lane-chip{background:#8863d3;color:#fff}
.kb-lane.queued .kb-lane-chip{background:#fbefd5;color:#7a4f00}
.kb-lane.done .kb-lane-chip{background:#e4eed4;color:#3d5a1c}
.kb-lane.waiting .kb-lane-chip{background:#f0ece4;color:#6f6678}
.kb-lane-bar{height:6px;border-radius:999px;background:#ece5f5;overflow:hidden}
.kb-lane-bar span{display:block;height:100%;border-radius:inherit;background:#8863d3;transition:width .6s ease}
.kb-lane.done .kb-lane-bar span{background:#6f9a3a}
.kb-lane.queued .kb-lane-bar span{background:#c9a35a}
.kb-lane.queued .kb-step-dot{border-color:#c9a35a;background:#fff8e8}
.kb-progress-steps li.waiting{background:#fbf9f5;border-color:#ece6dc}
.kb-progress-steps li.waiting strong,.kb-progress-steps li.waiting small{color:#6f6678}
.kb-progress-steps strong{font-size:14px;color:#30283e}
.kb-progress-steps small{display:block;font-size:13px;color:#5f566b;font-variant-numeric:tabular-nums}
.kb-step-dot{flex-shrink:0;width:14px;height:14px;margin-top:3px;border-radius:50%;border:2px solid #c5aedf;background:#fff}
.kb-progress-steps li.running .kb-step-dot{border-color:#8863d3;background:#8863d3;box-shadow:0 0 0 4px #e3d6f6;animation:kb-pulse 1.2s ease-in-out infinite}
.kb-progress-steps li.done .kb-step-dot{border-color:#6f9a3a;background:#6f9a3a}
.kb-progress-note{display:flex;align-items:center;gap:8px;margin:14px 0 0;font-size:13px;color:#5f566b}
.kb-progress.done{padding:14px 20px;background:#eef3e4;border-color:#d4dfc2}
.kb-progress-done{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0;font-size:14px;color:#3d4a2a}
.kb-check{width:16px;height:16px;border-radius:50%;background:#6f9a3a;position:relative}
.kb-check::after{content:"";position:absolute;left:5px;top:2px;width:4px;height:8px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
@media(max-width:650px){.kb-graph{padding:16px}.kb-graph-stage{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:8px}.kb-graph-canvas{grid-column:1/-1}.kb-graph-zoom{position:static;grid-column:2;grid-row:2;flex-direction:row;margin-top:8px}.kb-graph-gesture{grid-column:1;grid-row:2}.kb-graph-zoom button{width:44px;height:44px}.kb-graph-body{grid-template-columns:1fr}.kb-chat-log{height:420px;padding:12px}.kb-message.kb-ai{padding:12px}.kb-message.kb-ai,.kb-suggestions{max-width:100%}.kb-trace{padding:0 8px 8px}.kb-thinking{margin:0 8px 8px}.kb-trace-step{padding:8px}.kb-progress{padding:18px}.kb-progress-steps{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.kb-pulse,.kb-caret,.kb-progress-steps li.running .kb-step-dot{animation:none}.kb-progress-bar span,.kb-lane-bar span{transition:none}.kb-dot,.kb-edge,.kb-node text,.kb-suggestions button{transition:none}.kb-node.fresh,.kb-node.fresh .kb-dot{animation:none}.kb-hull{transition:none}}

.kb-save-result{background:#e8f1dc;border:1px solid #bbd29c;border-radius:16px;padding:16px 20px;margin:16px 0;color:#395b2a;font-weight:650}.kb-save-result[hidden]{display:none}.kb-note-footer [role="status"]:not(:empty){background:#e8f1dc;padding:12px 16px;border-radius:12px;color:#395b2a}

/* Activation sequence: quiet motion and readable, tactile controls. */
.kb-test-mode{display:flex;align-items:center;gap:7px;font-size:12px;color:#276951;margin:0 0 12px}.kb-test-mode>span{width:7px;height:7px;border-radius:50%;background:#34876b;box-shadow:0 0 0 4px #34876b14;animation:kb-status-breathe 2.8s ease-in-out infinite}.kb-publish>.circle-next-button{background:linear-gradient(125deg,#146647,#328650);color:#fff;border:1px solid #236f4b;box-shadow:0 7px 18px #246f4b30,inset 0 1px 0 #ffffff40;transition:transform .18s,box-shadow .18s}.kb-publish>.circle-next-button:hover{transform:translateY(-2px);box-shadow:0 10px 22px #246f4b40}.kb-publish>.circle-next-button:active{transform:translateY(1px);box-shadow:0 2px 7px #246f4b30}.kg-build .kg-console{animation:kb-console-glow 4s ease-in-out infinite}.kg-build .kg-network circle{animation-duration:1.8s}.kg-ready h1{overflow-wrap:anywhere}.kb-test h2{font-size:clamp(23px,3.3vw,32px)}
@keyframes kb-status-breathe{50%{box-shadow:0 0 0 6px #34876b08;opacity:.65}}
@keyframes kb-console-glow{50%{box-shadow:0 10px 30px #9674be28}}
@media(prefers-reduced-motion:reduce){.kb-test-mode>span,.kg-build .kg-console{animation:none}.kb-publish>.circle-next-button{transition:none;transform:none}}

.kb-graph-search{display:flex;align-items:center;gap:12px;margin:14px 0;font-size:13px}.kb-graph-search input{flex:1;min-width:0;max-width:420px;padding:10px 12px;border:1px solid #d8c5ef;border-radius:10px;background:#fff;color:#30283e}.kb-graph-list li button{border:0;background:none;color:#56358b;text-align:start;cursor:pointer;font:inherit;font-weight:600}.kg-crawl-counts{font-size:13px;line-height:1.8;color:#56358b}
.kb-assessment{display:flex;gap:8px;align-items:flex-start;flex-wrap:wrap;margin:0 0 18px;padding:12px 16px;border-radius:14px;border:1px solid #d8c99a;background:#fbf6e6;font-size:14px;line-height:1.55;color:#5c4c1f}.kb-assessment strong{font-weight:750}.kb-assessment.is-blocked{border-color:#e3b4a8;background:#fdf1ee;color:#7a2e1f}.kb-assessment.is-blocked strong{color:#5e2013}
.kb-tag-rejected{background:#fbe9e9;color:#8a3030}
.kb-assessing{position:relative;min-height:62vh;padding:0}
.kb-assessing-word{position:absolute;left:0;right:0;top:calc(50% - 46px);margin:0;text-align:center;font-size:13px;font-weight:500;letter-spacing:.14em;color:#6b6078}
.kb-assess-track{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:280px;height:12px;overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 16%,#000 84%,transparent);mask-image:linear-gradient(90deg,transparent,#000 16%,#000 84%,transparent)}
.kb-assess-track::before{content:"";position:absolute;left:0;right:0;top:50%;height:1px;background:#e3dbe9}
.kb-assess-beads{position:relative;display:flex;align-items:center;gap:14px;width:max-content;animation:kb-beads 2.2s linear infinite}
.kb-assess-beads i{width:9px;height:9px;border-radius:50%;background:#221d28;flex:0 0 auto}
@keyframes kb-beads{from{transform:translate3d(0,0,0)}to{transform:translate3d(-184px,0,0)}}
@media(prefers-reduced-motion:reduce){.kb-assess-beads{animation:none}}
@media(max-width:520px){.kb-assessing{min-height:56vh}.kb-assessing-word{top:calc(50% - 38px);font-size:12px;letter-spacing:.1em}.kb-assess-track{width:min(228px,66vw)}}
