.math-preview { margin:12px 0; padding:16px 18px; border:1px solid #d9def1; border-radius:12px; background:#f8f9ff; min-width:0; max-width:100%; }
.math-preview-label { color:#586380; font:600 11px/1.4 system-ui,sans-serif; letter-spacing:.08em; text-transform:uppercase; margin-bottom:10px; }
.math-preview-output { font-size:19px; line-height:1.65; min-height:34px; white-space:pre-wrap; overflow-x:auto; overflow-wrap:anywhere; max-width:100%; }
.math-preview-output .katex-display { margin:.5em 0; }
.math-placeholder { color:#77829c; font:400 14px/1.6 system-ui,sans-serif; }
.math-input-hint { color:#65718c; font:400 12px/1.6 system-ui,sans-serif; margin:8px 0; overflow-wrap:anywhere; }
.math-preview-status { color:#9f430d; font:400 12px/1.6 system-ui,sans-serif; margin:8px 0 0; }
.math-preview-status:empty { display:none; }
.math-preview.has-error { border-color:#d6ad8e; background:#fffaf5; }
.math-answer { display:inline-block; max-width:100%; overflow-x:auto; vertical-align:middle; white-space:pre-wrap; }
.typed-answer .field { min-width:0; }
.test-question { min-width:0; }
