.knowledge-paths{margin-top:20px;padding:22px;border:1px solid var(--border,#2b2d38);border-radius:18px;background:var(--panel,#14151d);min-width:0}
.knowledge-path-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:18px}.knowledge-path-head h2{margin:0;font-size:17px}.knowledge-path-head>span,.knowledge-path-status,.knowledge-path-empty{color:var(--muted,#9b9ba9);font-size:12px}.knowledge-path-status:empty{display:none}
.knowledge-path-form{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:10px;align-items:end}.knowledge-path-form label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:var(--muted,#9b9ba9);min-width:0}.knowledge-path-form input{width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid var(--border,#30323d);border-radius:10px;background:var(--bg,#101116);color:var(--text,#eeeef4);font:inherit;font-size:14px}.knowledge-path-form input:focus-visible{outline:2px solid var(--accent,#b7a4f1);outline-offset:2px}.knowledge-path-form .knowledge-path-swap{min-width:44px;min-height:44px;font-size:21px}
.knowledge-path-result-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin-top:20px;font-size:13px}.knowledge-path-steps{list-style:none;display:flex;gap:0;margin:14px 0;padding:0;overflow:auto;max-height:420px}.knowledge-path-steps>li{display:flex;align-items:center;flex:0 0 auto;max-width:300px}.knowledge-path-edge{flex:0 0 auto;color:var(--accent,#b7a4f1);font-size:11px;text-align:center;width:90px;padding:0 8px}.knowledge-path-edge>span{display:block;font-size:22px;line-height:24px}.knowledge-path-edge.is-parent{color:var(--muted,#9b9ba9)}
.knowledge-path-note{min-width:0;display:flex;flex-direction:column;gap:4px;text-align:left;padding:11px 12px;border:1px solid var(--border,#30323d);border-radius:10px;background:var(--bg,#101116);color:var(--text,#eeeef4);font:inherit;font-size:13px;cursor:pointer;transition:border-color .15s,background .15s}.knowledge-path-note>span{overflow-wrap:anywhere;line-height:1.45}.knowledge-path-note>small{font-size:10px;color:var(--muted,#9b9ba9)}.knowledge-path-note:hover{border-color:var(--accent,#b7a4f1);background:var(--panel-hover,#20212b)}.knowledge-path-note:focus-visible,.knowledge-path-more summary:focus-visible{outline:2px solid var(--accent,#b7a4f1);outline-offset:2px}.knowledge-path-steps .knowledge-path-note{max-width:205px;min-width:100px;max-height:240px;overflow:auto}
.knowledge-path-connections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:18px}.knowledge-path-connections:empty{display:none}.knowledge-path-connections section{min-width:0}.knowledge-path-connections h3{font-size:12px;font-weight:600;margin:0 0 9px}.knowledge-path-connections h3>span{color:var(--muted,#9b9ba9);font-weight:400;margin-left:5px}.knowledge-path-neighbors{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.knowledge-path-more{margin-top:8px}.knowledge-path-more summary{cursor:pointer;font-size:12px;color:var(--muted,#9b9ba9);padding:7px 2px}.knowledge-path-more[open] .knowledge-path-neighbors{max-height:350px;overflow:auto;padding:3px}
@media(max-width:700px){.knowledge-paths{padding:16px}.knowledge-path-head>span{display:none}.knowledge-path-form{grid-template-columns:minmax(0,1fr) 44px}.knowledge-path-form label:first-child{grid-column:1;grid-row:1}.knowledge-path-form label:last-child{grid-column:1;grid-row:2}.knowledge-path-form .knowledge-path-swap{grid-column:2;grid-row:1/span 2;align-self:center}.knowledge-path-connections{grid-template-columns:minmax(0,1fr)}.knowledge-path-steps{flex-direction:column;gap:0;overflow:auto}.knowledge-path-steps>li{flex-direction:column;align-items:stretch;max-width:100%;flex:none}.knowledge-path-steps .knowledge-path-note{min-width:0;max-width:none;max-height:none}.knowledge-path-edge{display:flex;gap:6px;align-items:center;text-align:left;width:auto;padding:8px 12px}.knowledge-path-edge>span{display:inline;font-size:17px}.knowledge-path-result-head .btn{font-size:12px}}
@media(prefers-reduced-motion:reduce){.knowledge-path-note{transition:none}}
