/* New-page-only safeguards; shared styles and existing tools are untouched. */
.math-expansion .field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.math-expansion .field,.math-expansion .input-wrap{min-width:0}.math-expansion .field-grid .full{grid-column:1/-1}.math-expansion [hidden]{display:none!important}.math-expansion .result-number{font-size:clamp(28px,4vw,56px);line-height:1.4;white-space:pre-wrap;overflow-wrap:anywhere}.math-expansion .fact strong,.math-expansion .result-sentence,.math-expansion .step-equation,.math-expansion .step-solution li{min-width:0;overflow-wrap:anywhere}.math-expansion .step-equation{white-space:pre-wrap;font-size:13px;line-height:1.8}.math-expansion.long-result .result-number{font-size:24px}@media(max-width:560px){.math-expansion .field-grid{grid-template-columns:minmax(0,1fr)}.math-expansion .result-number{font-size:32px}body[data-calculator="inequality"] .result-number,.math-expansion.long-result .result-number{font-size:20px}}
.math-expansion .point-row{grid-column:1/-1;min-width:0;margin:0;padding:16px;border:1px solid var(--line,rgba(255,255,255,.1));border-radius:12px}.math-expansion .point-row legend{padding:0 8px;color:var(--gold,#f4bd46);font-weight:700;font-size:14px}.math-expansion .coordinate-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.math-expansion .coordinate-grid .full{grid-column:auto}.math-expansion .coordinate-grid .field{margin:0}html[data-theme="light"] .math-expansion .point-row legend{color:#9b6800}@media(max-width:560px){.math-expansion .coordinate-grid{grid-template-columns:minmax(0,1fr)}.math-expansion .point-row{padding:12px}}