.cluster-chart svg{width:100%;height:auto}
.cluster-controls{padding:1rem;margin:0 0 1rem;border:1px solid rgba(148,163,184,.3);border-radius:.75rem}
.cluster-controls p,.cluster-controls label{margin:.4rem 0}
.cluster-shortcuts{display:flex;gap:.5rem;flex-wrap:wrap;margin:.4rem 0 .6rem}
.cluster-shortcuts button{font:inherit;min-height:44px;border:1px solid #94a3b8;border-radius:.4rem;padding:.5rem .75rem;background:var(--learn-surface,#fff);color:var(--learn-link,#172033)}
.cluster-shortcuts button[aria-pressed="true"]{border-color:var(--learn-accent,#2563eb);background:var(--learn-selected,#dbeafe)}
.cluster-shortcuts button:disabled{opacity:.45}
.cluster-controls [role=status]{font-variant-numeric:tabular-nums;line-height:1.7}
.cluster-metrics{width:100%;border-collapse:collapse;margin:1rem 0}
.cluster-metrics th,.cluster-metrics td{border:1px solid rgba(148,163,184,.45);padding:.55rem .7rem;text-align:left}
.cluster-metrics td:not(:first-child),.cluster-metrics th:not(:first-child){text-align:right;font-variant-numeric:tabular-nums}
.cluster-chart circle,.cluster-chart rect{cursor:pointer}
html[data-learn-theme=dark] .cluster-chart [stroke="#111827"]{stroke:#f8fafc}
html[data-learn-theme=dark] .cluster-shortcuts button[aria-pressed="true"]{background:#1e3a5f}
