.question-math { display:inline-block; max-width:100%; vertical-align:middle; overflow-x:auto; overflow-y:hidden; padding:4px 1px; }
.question-math-display { display:block; margin:12px 0; padding:8px 2px; }
.question-math .katex-display { margin:0; }
.question-math .katex { white-space:nowrap; font-size:1.15em; }
.question-math-editor { min-width:0; margin:10px 0 18px; }
.question-math-preview { padding:12px; margin-top:6px; border:1px solid #ccd8d1; border-radius:8px; background:#f7faf8; white-space:pre-wrap; overflow-wrap:anywhere; min-width:0; }
.question-math-status,.question-math-error { color:#a22c24; }
.question-math-error { white-space:pre-wrap; overflow-wrap:anywhere; text-decoration:underline wavy; }
.question-math-status { white-space:pre-wrap; overflow-wrap:anywhere; }
@media print { .question-math { overflow:visible; } }
