.graph-visualizer-container{background-color:#f8f9fa;border:1px solid #e9ecef;border-radius:8px;padding:20px;margin:20px 0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}.graph-controls{display:flex;gap:10px;margin-bottom:20px;justify-content:center}.graph-controls button{padding:10px 20px;border:2px solid #ced4da;background-color:#fff;border-radius:6px;cursor:pointer;font-weight:600;transition:all .2s ease}.graph-controls button.active{background-color:#0d6efd;color:#fff;border-color:#0d6efd}.graph-canvas-wrapper{display:flex;justify-content:center;overflow-x:auto;background-color:#fff;border-radius:6px;border:1px solid #dee2e6}.graph-svg{max-width:100%;height:auto}.graph-node{fill:#fff;stroke-width:3px;transition:all .3s ease}.graph-node.query{stroke:#6c757d;fill:#e9ecef}.graph-node.entity{stroke:#adb5bd}.graph-node.active.entity{stroke:#0d6efd;fill:#e7f1ff}.graph-node.active.query{stroke:#198754;fill:#d1e7dd}.graph-edge{stroke-width:2px;stroke-dasharray:5,5;transition:all .3s ease}.graph-edge.inactive{stroke:#dee2e6}.graph-edge.active{stroke:#0d6efd;stroke-dasharray:none;stroke-width:3px}.graph-edge.vector.active{stroke:#198754;stroke-dasharray:5,5}.node-label{font-size:14px;font-weight:500;fill:#495057;transition:all .3s ease}.node-label.active{fill:#212529;font-weight:700}.edge-label{font-size:12px;fill:#6c757d;background-color:#fff;transition:all .3s ease}.edge-label.active{fill:#0d6efd;font-weight:600}.graph-description{margin-top:15px;text-align:center;font-size:15px;color:#495057;font-weight:500;min-height:45px}.hnsw-container{background:#fff;border:1px solid #e2e8f0;border-radius:8px;padding:20px;margin:20px 0;font-family:system-ui,-apple-system,sans-serif;box-shadow:0 4px 6px -1px #0000001a}.hnsw-header{margin-bottom:20px}.hnsw-header h4{margin:0 0 5px;color:#1e293b;font-size:1.1rem}.hnsw-header p{margin:0;color:#64748b;font-size:.9rem}.hnsw-canvas{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;display:block;margin:0 auto;cursor:pointer}.hnsw-node{transition:fill .2s}.hnsw-node:hover{fill:#0f172a}.hnsw-legend{display:flex;justify-content:center;gap:20px;margin-top:20px;font-size:13px;color:#64748b}.legend-item{display:flex;align-items:center;gap:8px}.dot{width:12px;height:12px;border-radius:50%;display:inline-block}.dot.l2{background-color:#1e293b}.dot.l1{background-color:#64748b}.dot.l0{background-color:#cbd5e1}.dot.query{background-color:#ef4444}@keyframes pulse{0%{opacity:.4}to{opacity:1}}.hnsw-drop-anim{animation:pulse .5s infinite alternate}.crag-container{background-color:#f8f9fa;border:1px solid #e9ecef;border-radius:8px;padding:20px;margin:20px 0;font-family:system-ui,-apple-system,sans-serif}.crag-title{margin-top:0;text-align:center;color:#212529}.crag-desc{text-align:center;color:#6c757d;margin-bottom:20px}.crag-flow{display:flex;flex-direction:column;align-items:center;gap:10px}.crag-node{background-color:#fff;border:2px solid #ced4da;border-radius:6px;padding:12px 20px;width:80%;max-width:400px;text-align:center;font-weight:500;transition:all .3s ease}.crag-node.active{border-color:#0d6efd;background-color:#e7f1ff;color:#0d6efd;font-weight:600}.crag-node.evaluator.active{border-color:#ffc107;background-color:#fff3cd;color:#856404}.crag-node.generator.active{border-color:#198754;background-color:#d1e7dd;color:#0f5132}.crag-arrow{font-size:20px;color:#6c757d;font-weight:700}.crag-evaluation-result{font-weight:700;padding:8px 16px;border-radius:4px;text-align:center}.crag-evaluation-result.correct{background-color:#d1e7dd;color:#0f5132}.crag-evaluation-result.ambiguous{background-color:#fff3cd;color:#856404}.crag-evaluation-result.incorrect{background-color:#f8d7da;color:#842029}.crag-branches{width:80%;max-width:400px}.crag-branch{background-color:#fff;border:1px solid #ced4da;border-radius:6px;padding:15px;margin-top:10px}.crag-branch h4{margin-top:0;color:#212529}.crag-branch p{margin-bottom:0;font-size:14px;color:#495057}.crag-branch.correct{border-left:4px solid #198754}.crag-branch.ambiguous{border-left:4px solid #ffc107}.crag-branch.incorrect{border-left:4px solid #dc3545}.crag-controls{display:flex;justify-content:center;margin-top:20px}.crag-btn{padding:10px 20px;background-color:#0d6efd;color:#fff;border:none;border-radius:6px;cursor:pointer;font-weight:600;transition:background-color .2s}.crag-btn:hover{background-color:#0b5ed7}.hnsw-container{min-width:0;max-width:100%;box-sizing:border-box}.hnsw-container h4{margin-top:0}.hnsw-canvas{width:100%;height:auto;box-sizing:border-box}.hnsw-canvas text{fill:#0c4a6e;stroke:#fff;stroke-width:4px;paint-order:stroke;font:700 19px system-ui,sans-serif}.hnsw-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr));gap:.75rem}.hnsw-controls label,.hnsw-budget{display:block}.hnsw-container input{display:block;width:100%;margin:.25rem 0 .75rem;accent-color:#075985}.hnsw-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin:.75rem 0}.hnsw-actions button{padding:.45rem .65rem;font:inherit;line-height:1.3;border:1px solid #94a3b8;border-radius:.3rem;color:#1e293b;background:#fff;cursor:pointer}.hnsw-actions button[aria-pressed=true]{background:#075985;border-color:#075985;color:#fff}.hnsw-actions button:disabled{background:#f1f5f9;color:#64748b;cursor:default}.hnsw-container :is(input,button):focus-visible{outline:3px solid #2563eb;outline-offset:3px}.hnsw-key{color:#475569;font-size:.9rem}.hnsw-table{width:100%;table-layout:fixed;font-size:.9rem;font-variant-numeric:tabular-nums}.hnsw-table thead th:first-child{width:18%}.hnsw-table th{overflow-wrap:anywhere}.hnsw-table caption{text-align:start;margin:.5rem 0;font-weight:600}.hnsw-container .hnsw-table :is(td,th){padding:.4rem;text-align:start}.hnsw-table tr[aria-current=step]{background:#e0f2fe}@media(max-width:600px){.hnsw-container{padding:.85rem}.hnsw-canvas text{font-size:28px}}
