.math-section{padding:28px 0 40px;scroll-margin-top:1.5rem}.math-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px}.math-grid>*{min-width:0}.math-page fieldset{border:1px solid var(--line);border-radius:12px;padding:20px;margin:0;min-width:0}.math-page legend{font:24px Georgia,serif;padding:0 8px}.math-page .field-help{color:#52645b;font-size:13px;line-height:1.7;margin:14px 0 22px}.math-page .fields{align-items:start}.math-page .form-actions{flex-wrap:wrap}.math-page button{min-height:44px}.math-result:not(:empty){margin-top:24px;padding:20px;border-radius:10px;background:#eaf1e5;color:#183d36;font-variant-numeric:tabular-nums;white-space:pre-line;overflow-wrap:anywhere;line-height:1.8}.math-page .explain-grid p{line-height:1.8;color:#52645b}.math-page input{min-width:0;width:100%}@media(max-width:850px){.math-grid{grid-template-columns:minmax(0,1fr)}}@media(max-width:760px){.math-page .fields{grid-template-columns:minmax(0,1fr)}.math-page fieldset{padding:16px}.math-section .section-heading h2{font-size:34px}}@media print{.math-page .math-grid{display:block}.math-page fieldset{break-inside:avoid}.math-page .content-section{display:block!important}}
