/* HUBMAT Visual — 8º ano · Grandezas, Probabilidade e Estatística */
.g8m-controls{display:flex;gap:7px;flex-wrap:wrap;justify-content:center}.g8m-controls .btn{flex:1 1 96px}
.g8m-readout{text-align:center;font-size:clamp(21px,4vw,32px);font-weight:850;margin:10px 0}
.g8m-shape svg,.g8m-sample svg{width:100%;height:auto;display:block;max-width:640px;margin:auto}
.g8m-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.g8m-stats div{background:#fff;border:1px solid var(--line);border-radius:10px;padding:9px;text-align:center}.g8m-stats strong{display:block;font-size:23px}
.g8m-area-shape{fill:#d8e9f755;stroke:#235f9b;stroke-width:4}.g8m-circle{fill:#f2c25755;stroke:#9a711b;stroke-width:4}
.g8m-convert{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-width:650px;margin:auto}.g8m-convert>div{background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px;text-align:center}.g8m-convert strong{display:block;font-size:27px}
.g8m-space{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}.g8m-outcome{padding:7px 9px;border:1px solid var(--line);border-radius:8px;background:#fff}.g8m-outcome.fav{background:var(--gold);border-color:#936b18}
.g8m-graphs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.g8m-graphs button{min-height:86px;border:1px solid var(--line);border-radius:12px;background:#fff;font-weight:800}.g8m-graphs button[aria-pressed=true]{background:#eaf4e7;border-color:var(--green)}
.g8m-hist{display:flex;align-items:end;gap:5px;height:230px;border-left:2px solid #607584;border-bottom:2px solid #607584;padding:10px}.g8m-bin{flex:1;text-align:center}.g8m-bin b{display:block;background:#bcd6ed;border:2px solid #235f9b;border-bottom:0;border-radius:6px 6px 0 0;min-height:3px}.g8m-bin span{font-size:11px}.g8m-pop{display:grid;grid-template-columns:repeat(10,1fr);gap:4px;max-width:520px;margin:auto}.g8m-person{aspect-ratio:1;border-radius:50%;background:#e6ece7;border:1px solid #94a497}.g8m-person.a{background:#d8e9f7}.g8m-person.b{background:#f8df9f}.g8m-person.c{background:#e8d9f4}.g8m-person.on{outline:3px solid #146348;outline-offset:1px}
.g8m-flow{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}.g8m-flow span{padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:#fff;font-weight:700}.g8m-flow .current{background:var(--gold);border-color:#936b18}
@media(max-width:560px){.g8m-stats,.g8m-convert,.g8m-graphs{grid-template-columns:1fr}.g8m-controls .btn{flex-basis:42%}}
