/* قرارداد نمایش: متن فارسی RTL، مسیر محاسبه LTR. */
.machine-flow,.machine-labels,.machine-table,.pattern-visual,.math-sequence{direction:ltr!important}
.machine-labels{display:flex;justify-content:space-between}
.machine-table th,.machine-table td{text-align:center;direction:ltr}
.math-instruction{display:block;text-align:right;line-height:1.9;font-size:.88em}
.math-sequence{display:flex;align-items:center;justify-content:center;gap:clamp(3px,1.5vw,12px);flex-wrap:wrap;margin-top:12px;unicode-bidi:isolate}
.math-term{background:white;border:2px solid #d4c4ff;border-radius:12px;padding:7px 10px;min-width:42px;text-align:center;font-variant-numeric:tabular-nums}
.math-term--unknown{background:#fff1c7;border-style:dashed}
.math-step-arrow{font-size:1.05rem;color:#6654ad}
@media(max-width:420px){.math-term{min-width:29px;padding:6px;font-size:.82em}.math-step-arrow{font-size:.7rem}}
