.rules-math{min-width:0;margin:16px 0;padding:16px 18px;background:var(--sf2);border:1px solid var(--bd);border-radius:12px;color:var(--tx);break-inside:avoid}
.rules-math-label{font-family:inherit;font-size:12px;font-weight:600;line-height:1.5;color:var(--tx2);margin-bottom:10px}
.rules-math-scroll{max-width:100%;overflow-x:auto;overflow-y:hidden;padding:8px 2px;scrollbar-width:thin;outline-offset:3px}
.rules-math-scroll:focus-visible{outline:2px solid var(--ac);border-radius:4px}
.rules-math math{width:max-content;min-width:0;margin:0;font-size:1.12rem;line-height:1.5;text-align:left;white-space:nowrap}
.rules-math math msup>mfrac{math-depth:0;font-size:.85em}
.rules-math math msup>mfrac>mrow{math-depth:0}
.rules-math math mtext{font-family:inherit;font-size:.85em}
.rules-math math msup>mfrac>mrow{math-depth:0}
@media(max-width:520px){.rules-math{padding:12px 10px;margin:14px 0}.rules-math math{font-size:1rem}}
@media print{.rules-math{background:transparent;color:#000;border-color:#bbb}.rules-math-label{color:#333}.rules-math-scroll{overflow:visible}}
