.math2-workbench .math2-editor > .math2-field:has(> .math2-matrix) {
    grid-column: 1 / -1;
}

.math2-workbench .math2-plot figure {
    margin: 1rem 0;
    overflow-x: auto;
    max-width: 100%;
}

.math2-workbench .math2-plot figcaption {
    margin-bottom: .65rem;
    font-weight: 600;
    color: var(--calc-text-primary);
}

.math2-workbench .math2-plot svg {
    min-width: 36rem;
    max-height: none;
    color: var(--calc-text-primary);
}

.math2-workbench .math2-tables table {
    min-width: 24rem;
}

.math2-workbench .hero-value {
    overflow-wrap: anywhere;
    overflow: auto;
    max-height: 12rem;
    font-size: clamp(1.3rem, 4vw, 2rem);
    line-height: 1.4;
}

@media print {
    .math2-workbench .math2-plot figure { overflow: visible; }
    .math2-workbench .math2-plot svg { min-width: 0; }
}
