.question-graph {
  overflow: hidden;
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  background: #fff;
}
.question-graph-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 8px 14px; border-bottom: 1px solid #e7eaf0; }
.question-graph-legend, .question-graph-controls { display: flex; align-items: center; gap: 14px; }
.question-graph-legend { flex-wrap: wrap; font-size: 11px; color: #848b97; }
.question-graph-legend > span { display: inline-flex; align-items: center; gap: 6px; position: relative; white-space: nowrap; }
.question-graph-legend > span::before { content: ''; display: block; width: 6px; height: 6px; border-radius: 50%; background: #8d98a8; }
.question-graph-legend > .ruled-out::before { width: 9px; height: 9px; border: 1px solid #a2aab6; background: none; }
.question-graph-legend > .ruled-out::after { content: ''; position: absolute; left: 3px; top: 50%; width: 5px; height: 1px; background: #a2aab6; }
.question-graph-legend > .focus::before { width: 7px; height: 7px; border-radius: 0; background: #536074; transform: rotate(45deg); }
.question-graph-controls { gap: 3px; flex-shrink: 0; }
.question-graph-controls button { min-width: 29px; height: 29px; padding: 0 7px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #707a89; font: 13px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; cursor: pointer; }
.question-graph-controls button:hover:not(:disabled) { border-color: #d6dce5; background: #f5f7f9; color: #303b4b; }
.question-graph-controls button:focus-visible { outline: 2px solid #707d91; outline-offset: 2px; }
.question-graph-controls button:disabled { opacity: .35; cursor: default; }
.question-graph-controls button:last-child { margin-left: 4px; border-color: #e0e5ec; }
.question-graph-zoom { min-width: 35px; text-align: center; font-size: 11px; color: #9299a5; font-variant-numeric: tabular-nums; }
.question-graph-viewport { overflow: auto; max-height: 650px; overscroll-behavior: contain; background-color: #fbfcfd; background-image: radial-gradient(#d7dbe1 .8px, transparent .8px); background-size: 18px 18px; }
.question-graph-viewport:focus-visible { outline: 2px solid #656d79; outline-offset: -3px; }
.question-graph-viewport > svg { display: block; width: 100%; min-width: 820px; height: auto; }
.question-graph text { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.question-graph-node { cursor: pointer; outline: none; transition: opacity .22s ease; transform-box: fill-box; transform-origin: center; }
.question-graph[data-entry="true"] .question-graph-node { animation: question-node-enter .55s cubic-bezier(.2,.7,.2,1) var(--question-entry-delay) both; }
.question-graph-card { fill: #fff; stroke: #d1d6df; stroke-width: 1.2; transition: fill .22s ease, stroke .22s ease; }
.question-graph-name { fill: #333740; font-size: 17px; font-weight: 500; pointer-events: none; }
.question-graph-detail { fill: #858b96; font-size: 13px; pointer-events: none; }
.question-graph-kind { fill: #9298a2; font-size: 9.5px; font-weight: 600; letter-spacing: 1.1px; pointer-events: none; }
.question-graph-kind-icon { fill: none; stroke: #8a929e; stroke-width: 1.15; stroke-linejoin: round; stroke-linecap: round; pointer-events: none; }
.question-graph-node:hover .question-graph-card,
.question-graph-node:focus-visible .question-graph-card { stroke: #3f4855; stroke-width: 2; }
.question-graph-node:focus-visible .question-graph-card { stroke-dasharray: 5 3; }
.question-graph-node.muted { opacity: .48; --question-node-opacity: .48; }
.question-graph-node.muted:hover,
.question-graph-node.muted:focus-visible { opacity: 1; }
.question-graph-node.visited .question-graph-card { fill: #f2f4f6; stroke: #7e8794; }
.question-graph-node.visited .question-graph-kind { fill: #676f7c; }
.question-graph-node.active { animation: question-node-arrive .55s cubic-bezier(.18,.7,.25,1) var(--question-arrival) both; }
.question-graph-node.arriving { animation: question-node-enter .6s cubic-bezier(.2,.7,.2,1) var(--question-entry-delay) both; }
.question-graph-edge.arriving { animation: question-edge-enter .65s ease-out both; }
.question-graph-node.ruled-out { opacity: .64; --question-node-opacity: .64; }
.question-graph-node.ruled-out .question-graph-card { fill: #f8f9fa; stroke: #c8cfd8; stroke-dasharray: 3 3; }
.question-graph-node.ruled-out:hover, .question-graph-node.ruled-out:focus-visible { opacity: 1; }
.question-graph-node.focus .question-graph-card { fill: #e9edf3; stroke: #57667b; stroke-width: 2; }
.question-graph-node.focus .question-graph-name { fill: #2c3a4e; }
.question-graph-node.focus .question-graph-kind { fill: #647188; }
.question-graph-node.active .question-graph-card { fill: #30343c; stroke: #30343c; stroke-width: 2; }
.question-graph-node.active .question-graph-kind-icon { stroke: #c2cad6; }
.question-graph-node.active .question-graph-name { fill: #fff; }
.question-graph-node.active .question-graph-detail { fill: #d4d8df; }
.question-graph-node.active .question-graph-kind { fill: #b5bdc9; }
.question-graph-node.active:hover .question-graph-card,
.question-graph-node.active:focus-visible .question-graph-card { stroke: #9299a7; }
.question-graph-examined { fill: #8794a7; }
.question-graph-ruled-ring { fill: none; stroke: #a1aaba; stroke-width: 1; }
.question-graph-ruled-line { fill: none; stroke: #9aa5b6; stroke-width: 1; }
.question-graph-focus-mark { fill: #56677f; }
.question-graph-halo { fill: none; stroke: #a1acbe; stroke-width: 1.25; pointer-events: none; transform-box: fill-box; transform-origin: center; animation: question-halo 2.2s ease-in-out var(--question-arrival) infinite; }
.question-graph-current { fill: #f2f5fa; animation: question-current 1.6s ease-in-out infinite; }
.question-graph-wire { fill: none; stroke: #b9c0cb; stroke-width: 1.5; stroke-linejoin: round; }
.question-graph-edge.visited .question-graph-wire { stroke: #a3adba; stroke-width: 1.4; }
.question-graph-edge.path .question-graph-wire { stroke: #737e8f; stroke-width: 2; }
.question-graph-edge.focus .question-graph-wire { stroke: #52637b; stroke-width: 2.4; }
.question-graph-edge.active .question-graph-wire { stroke: #4c5665; stroke-width: 2; }
.question-graph-edge.active .question-graph-track { stroke: #c9d0da; stroke-width: 1.5; }
.question-graph-edge.active .question-graph-reveal { stroke-dasharray: 1; stroke-dashoffset: 0; animation: question-wire-enter .72s cubic-bezier(.32,.05,.3,1) both; }
.question-graph-beam { fill: none; stroke: #273240; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: .075 .925; stroke-dashoffset: 1; opacity: .48; filter: drop-shadow(0 0 2px #a6b3c8); animation: question-beam 2.2s linear .72s infinite; }
.question-graph-edge.muted { opacity: .4; }
.question-graph-arrow { fill: #b9c0cb; }
.question-graph-arrow.visited { fill: #a3adba; }
.question-graph-arrow.path { fill: #737e8f; }
.question-graph-arrow.focus { fill: #52637b; }
.question-graph-arrow.active { fill: #4c5665; }
.question-graph-pulse { pointer-events: none; opacity: 0; animation: question-pulse-appear .15s linear .72s forwards; }
.question-graph-pulse-glow { fill: #64758f; opacity: .16; }
.question-graph-pulse-core { fill: #26354b; stroke: #fff; stroke-width: 1.2; }
.question-graph-caption { pointer-events: none; }
.question-graph-caption rect { fill: #fbfcfd; stroke: #edf0f4; stroke-width: 1; }
.question-graph-caption text { fill: #737c8b; font-size: 13px; font-weight: 500; }
.question-graph-caption.active text,
.question-graph-caption.path text, .question-graph-caption.focus text { fill: #465263; }
.question-graph-caption.active rect { stroke: #cbd2de; }
.question-graph-caption.muted { opacity: .55; }
.question-graph-empty { fill: #858b96; font-size: 16px; }
.question-graph[data-compact="true"] .question-graph-name { font-size: 16px; }
.question-graph[data-compact="true"] .question-graph-detail { font-size: 12px; }
.question-graph[data-compact="true"] .question-graph-kind { font-size: 8.5px; letter-spacing: .7px; }
.question-graph[data-compact="true"] .question-graph-caption text { font-size: 12px; }
.question-graph[data-density="compact"] .question-graph-toolbar { min-height: 40px; padding: 5px 12px; }
.question-graph[data-density="compact"] .question-graph-name { font-size: 13px; }
.question-graph[data-density="compact"] .question-graph-caption text { font-size: 10.5px; }
.question-graph[data-density="compact"] .question-graph-caption rect { stroke: none; }
.question-graph[data-density="compact"] .question-graph-card { stroke-width: 1; }
.question-graph[data-density="compact"] .question-graph-viewport { max-height: 520px; }
.question-graph[data-density="compact"] .question-graph-empty { font-size: 13px; }
@keyframes question-current { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }
@keyframes question-node-enter { from { opacity: 0; transform: translateY(9px) scale(.975); } to { opacity: var(--question-node-opacity, 1); transform: translateY(0) scale(1); } }
@keyframes question-edge-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes question-node-arrive { 0% { transform: scale(.987); } 55% { transform: scale(1.013); } 100% { transform: scale(1); } }
@keyframes question-wire-enter { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes question-beam { 0% { stroke-dashoffset: 1; opacity: 0; } 8% { opacity: .55; } 70% { opacity: .55; } 78%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes question-pulse-appear { to { opacity: 1; } }
@keyframes question-halo { 0%, 100% { opacity: .28; transform: scale(1); } 50% { opacity: .7; transform: scale(1.018); } }
@media (max-width: 620px) { .question-graph-toolbar { align-items: flex-start; flex-wrap: wrap; } .question-graph-legend { gap: 10px; } .question-graph-viewport { max-height: 520px; } }
@media (prefers-reduced-motion: reduce) {
  .question-graph *, .question-graph *::before, .question-graph *::after { animation: none !important; transition: none !important; }
  .question-graph-pulse, .question-graph-beam { display: none; }
  .question-graph-halo { opacity: .4; }
  .question-graph-reveal { stroke-dashoffset: 0; }
}
