/* Query and evidence explorers use the shared graphite theme. */
.query-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:20px}.query-layout>*{min-width:0}.query-layout label{display:block;margin:14px 0 7px;font-size:12px;color:var(--muted)}.query-layout select,.query-layout input,.query-layout textarea{width:100%;max-width:100%}.query-editor textarea{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;line-height:1.7;color:var(--accent-hover);min-height:190px;resize:vertical}.query-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px}.query-actions a{margin-left:auto;font-size:12px}.query-builder, .query-library details{margin-top:24px;border-top:1px solid var(--line);padding-top:16px}.query-builder summary,.query-library summary{cursor:pointer}.query-builder-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px}.query-checkbox{display:flex!important;align-items:center;gap:8px}.query-checkbox input{width:auto}.query-fields{font-size:11px;overflow-wrap:anywhere;color:var(--muted)}.query-status{margin:22px 0;overflow-wrap:anywhere}.query-partial{display:block;color:var(--amber);margin-top:8px}.query-error{color:var(--red)}.query-results td{max-width:460px;overflow-wrap:anywhere}.query-results pre{max-width:400px;max-height:260px}.query-result-graph{margin-top:24px}.graph-tools{display:flex;gap:12px;align-items:end;flex-wrap:wrap;padding:20px;border-bottom:1px solid var(--line)}.graph-tools label{display:flex;flex-direction:column;gap:6px;font-size:11px;color:var(--muted)}.graph-tools input{width:250px}.graph-tools select{max-width:210px}.graph-zoom{display:flex;gap:6px;flex-wrap:wrap;margin-left:auto}.graph-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;min-width:0}.graph-canvas{min-width:0;overflow:hidden;background:radial-gradient(circle at 35% 40%,#163b3744,transparent 60%),var(--bg);border:1px solid var(--line);border-radius:12px}.graph-canvas svg{width:100%;height:580px;display:block;touch-action:pan-y;cursor:grab}.graph-canvas svg:active{cursor:grabbing}.graph-node{cursor:pointer}.graph-node rect{fill:var(--surface-raised);stroke:var(--line);stroke-width:1.5}.graph-node.potential rect{stroke:var(--amber)}.graph-node.finding-node rect{stroke:var(--red)}.graph-node.selected rect,.graph-node:focus rect{stroke:var(--blue);stroke-width:3}.graph-node:focus{outline:none}.graph-node text{pointer-events:none;font-family:inherit}.node-title{fill:var(--ink);font-size:13px;font-weight:600}.node-kind{fill:var(--blue);font-size:10px}.node-meta{fill:var(--muted);font-size:10px}.graph-edge{cursor:pointer}.graph-edge path{fill:none;stroke:#5c7c8b;stroke-width:2}.graph-edge.candidate path{stroke:var(--amber);stroke-dasharray:7 5}.graph-edge.declared path{stroke:#b4a3ff;stroke-dasharray:3 5}.graph-edge path.edge-hit{stroke:transparent;stroke-width:16;stroke-dasharray:none}.graph-edge:focus path:not(.edge-hit),.graph-edge.highlighted path:not(.edge-hit){stroke:var(--blue);stroke-width:4}.arrow-head{fill:var(--muted)}.graph-inspector{padding:0 0 0 20px;min-width:0;max-height:750px;overflow:auto}.graph-inspector h3{margin-top:0}.graph-inspector h4{margin:20px 0 8px}.graph-inspector pre{max-height:240px;font-size:11px;white-space:pre-wrap;overflow-wrap:anywhere}.graph-id{display:block;overflow-wrap:anywhere;font-size:11px}.graph-inspector p{font-size:12px;color:var(--muted)}.graph-context-controls{display:flex;flex-wrap:wrap;gap:8px}.graph-context-controls label{display:flex;flex-direction:column;gap:5px;font-size:11px}.graph-context-controls select{max-width:100%;font-size:11px}.graph-neighbor,.graph-path{display:block;text-align:left;width:100%;margin:7px 0;overflow-wrap:anywhere;font-size:11px}.graph-neighbor small,.graph-path small{display:block;color:var(--muted);font-size:10px}.graph-legend{display:flex;flex-wrap:wrap;gap:18px;font-size:11px;color:var(--muted);padding:15px 20px 0}.graph-legend span{display:flex;align-items:center;gap:7px}.graph-legend i{display:block;width:24px;border-top:2px solid #5c7c8b}.graph-legend i.candidate{border-color:var(--amber);border-top-style:dashed}.graph-legend i.declared{border-color:#b4a3ff;border-top-style:dotted}.graph-notice{padding:0 20px;color:var(--muted);overflow-wrap:anywhere}.graph-hint{padding:0 16px;font-size:10px;color:var(--muted)}.graph-node-list{padding:0 16px 16px;font-size:12px}.graph-node-list summary{cursor:pointer}.graph-node-list button{display:block;text-align:left;margin:8px 0;max-width:100%;overflow-wrap:anywhere}.graph-explorer{min-width:0}.query-graph .graph-tools{border-top:1px solid var(--line)}
@media(max-width:1200px){.query-layout{grid-template-columns:1fr}.graph-layout{grid-template-columns:1fr}.graph-inspector{padding:20px 0;max-height:none}.graph-canvas svg{height:480px}.graph-context-controls{align-items:end}.graph-inspector pre{max-width:100%}.graph-zoom{margin-left:0}}@media(max-width:600px){.graph-tools{padding:14px;gap:10px}.graph-tools label,.graph-tools input,.graph-tools select{width:100%;max-width:100%}.graph-legend{padding:12px 14px;gap:9px;font-size:10px}.graph-notice{padding:0 14px}.graph-canvas svg{height:380px}.query-builder-fields{grid-template-columns:1fr}.query-layout{gap:0}.query-results pre{max-width:250px}.query-actions a{margin-left:0}.query-library .card-head{flex-wrap:wrap}}
