.graph-figure { padding: 1.2rem; }
.graph-controls { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; margin: .8rem 0; }
.graph-controls button { font: inherit; line-height: 1.35; color: #21483e; background: #fffdf7; border: 1px solid #a7b9aa; border-radius: .65rem; padding: .55rem .85rem; cursor: pointer; }
.graph-controls button[aria-pressed="true"] { background: #214f42; color: #fffdf7; border-color: #214f42; }
.graph-controls button:disabled { opacity: .5; cursor: default; }
.graph-controls button:focus-visible, .graph-svg [role="button"]:focus-visible { outline: 3px solid #b17816; outline-offset: 3px; }
.graph-svg { display: block; width: 100%; max-width: 540px; height: auto; margin: .8rem auto; font-family: Manrope, sans-serif; overflow: visible; }
.graph-svg text { fill: #183e34; }
.graph-svg .graph-edge { stroke: #b8c5bc; stroke-width: 2; }
.graph-svg .graph-edge.active { stroke: #28745b; stroke-width: 4; }
.graph-svg .graph-node { fill: #fffdf7; stroke: #90ab9a; stroke-width: 1.5; }
.graph-svg .graph-node.selected { fill: #d9eadc; stroke: #28745b; stroke-width: 3; }
.graph-svg [role="button"] { cursor: pointer; }
.graph-stat-grid, .graph-stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: .8rem; margin: 1rem 0; }
.graph-card { border: 1px solid #cbd6c9; border-radius: .75rem; padding: 1rem; background: #fffdf7; min-width: 0; }
.graph-card strong, .graph-card small { display: block; }
.graph-card strong { line-height: 1.45; }
.graph-card small { margin-top: .45rem; line-height: 1.55; color: #485c53; font-size: .9rem; }
.graph-card .graph-number { font-size: 1.6rem; font-weight: 800; color: #205342; overflow-wrap: anywhere; }
.graph-result { padding: .9rem 1rem; border-left: 3px solid #398066; background: #eef4e9; margin: 1rem 0; line-height: 1.7; }
.graph-facts { display: grid; gap: .8rem; margin: 1rem 0; }
.graph-fact { padding: .9rem; border: 1px solid #cbd6c9; border-radius: .6rem; }
.graph-fact[data-eligible="true"] { border-left: 5px solid #398066; background: #eef4e9; }
.graph-fact strong { display: block; }
.graph-fact small { display: block; margin: .35rem 0; font-size: .9rem; }
.graph-label { display: block; font-weight: 700; margin-bottom: .4rem; }
.graph-bar { height: .65rem; border-radius: 1rem; background: #e2e9dd; margin: .65rem 0; overflow: hidden; }
.graph-bar span { display: block; height: 100%; background: #347459; }
.graph-example-code { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 480px) { .graph-figure { padding: .9rem; } .graph-controls button { padding: .5rem .7rem; } }
