/* Scoped additions only; original shared design retained. */
.math-expansion .field textarea{display:block;width:100%;min-width:0;min-height:128px;border:1px solid var(--line,rgba(255,255,255,.12));border-radius:12px;background:rgba(0,0,0,.16);color:inherit;padding:14px;font:15px/1.7 ui-monospace,Consolas,monospace;resize:vertical;outline-offset:2px}.math-expansion .field textarea::placeholder{color:var(--muted,#85929f)}.math-expansion .result-number{font-size:clamp(48px,6vw,72px);white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.35}.math-expansion .result-category{margin-left:8px}.math-expansion .step-equation{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.8}.math-expansion .step-solution li{min-width:0;overflow-wrap:anywhere}body[data-calculator="matrix"] .result-number{font-family:ui-monospace,Consolas,monospace;font-size:clamp(17px,2vw,24px);letter-spacing:0}body[data-calculator="sequence"].long-result .result-number{font-size:24px}body[data-calculator="sequence"] .result-sentence,body[data-calculator="sequence"] .fact strong{overflow-wrap:anywhere}html[data-theme="light"] .math-expansion .field textarea{background:rgba(255,255,255,.8)}@media(max-width:560px){.math-expansion .result-number{font-size:48px}body[data-calculator="matrix"] .result-number{font-size:17px}body[data-calculator="sequence"].long-result .result-number{font-size:22px}}