/* Inherit Arena's themes, buttons, panels and typography. */
.dv2{max-width:880px;margin-inline:auto;overflow-wrap:anywhere}
.dv2 h2,.dv2 h3{line-height:1.4}.dv2 label{display:block;margin-block:14px 7px;font-weight:600}
.dv2 select{width:100%;min-height:48px;max-width:100%;font:inherit;color:inherit;background:var(--panel,#171d32);border:1px solid var(--line,#69728b);border-radius:12px;padding:12px}
.dv2 progress{width:100%;height:14px;accent-color:var(--accent,#c59aff);margin-block:8px 20px}
.dv2 button{min-height:48px;white-space:normal;max-width:100%;margin-block:4px}
.dv2 button:focus-visible,.dv2 select:focus-visible{outline:3px solid currentColor;outline-offset:3px}
.dv2-answers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;border:0;padding:0;margin-block:20px}
.dv2-answers legend{margin-bottom:10px}.dv2-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-block:18px}
.dv2-totals span{border:1px solid var(--line,#69728b);border-radius:12px;padding:14px;line-height:1.5}
.dv2-totals b{display:block;font-size:1.5em}.dv2 figure{margin:18px auto;max-width:420px}.dv2 svg{display:block;width:100%;height:auto;max-height:220px}.dv2 figcaption{font-size:.85em;text-align:center}
.dv2 figure.dv2-model-visual{max-width:560px;background:#171d32;color:#edf3ff;border-radius:12px}.dv2 .dv2-model-visual svg{max-height:420px}.dv2 .dv2-model-visual text{font-family:inherit}.dv2 figcaption{line-height:1.5;margin-top:8px}
.dv2-table{overflow-x:auto;margin-block:16px}.dv2 table{border-collapse:collapse;width:100%;font-size:clamp(.85rem,3vw,1rem)}
.dv2 th,.dv2 td{padding:10px;border:1px solid var(--line,#69728b);text-align:center}.dv2 caption{text-align:start;padding-bottom:8px}.dv2 details{margin-block:20px}.dv2 summary{cursor:pointer;min-height:40px}
@media(max-width:480px){.dv2-answers,.dv2-totals{grid-template-columns:1fr}.dv2 .controls{display:flex;flex-wrap:wrap}.dv2 .controls button{width:100%}.dv2 .question{font-size:1.15rem}.dv2-quota{line-height:1.8}}

/* Tall mathematical flow/tree SVGs retain legibility; existing cards stay unchanged. */
.dv2 .dv2-model-visual.dv2-natural-height svg{max-height:none}
