.tdm-lesson{color:#132f44;max-width:1100px;margin:auto}.tdm-lesson [hidden]{display:none!important}.tdm-lesson h1{font-size:1.25rem;margin:2px}.tdm-board{padding:3px 8px}.tdm-problem,.tdm-equation,.tdm-result,.tdm-parts button{display:flex;direction:rtl;justify-content:center;align-items:center;gap:10px;font-weight:900}.tdm-problem{font-size:clamp(25px,3vw,36px);color:#064f9e}.tdm-caption{font-weight:800;text-align:center;margin:4px 0;min-height:24px}.tdm-work{display:flex;justify-content:center;align-items:center;gap:14px;min-width:0}.tdm-area{flex:1;min-width:0;max-width:460px}.tdm-lesson .tdm-area svg.mv-diagram,.tdm-area svg{width:100%;height:auto!important;max-height:31svh!important;display:block;overflow:visible}.tdm-area svg text{font-size:27px;font-weight:900}.tdm-area svg>text{fill:#132f44}.tdm-area [data-band]{transition:transform .8s ease,opacity .4s}.tdm-parts{display:flex;justify-content:center;gap:6px}.tdm-parts button{font-size:20px!important;padding:5px!important;border:2px solid #132f44!important;color:white!important;background:#ae174d!important}.tdm-parts button+button{background:#0757ac!important}.tdm-parts button[aria-pressed=true]{outline:3px solid #9b6100;outline-offset:2px}.tdm-area-note{text-align:center;font-size:14px;font-weight:700;margin:4px}.tdm-calculation{flex:1;min-width:210px;max-width:430px}.tdm-columns{padding:2px 24px 2px 2px}.tdm-row{display:grid;grid-template-columns:repeat(var(--columns),minmax(25px,1fr));position:relative;text-align:center;font-size:clamp(24px,3.2vw,35px);font-weight:900;line-height:1.22;min-height:31px;gap:2px}.tdm-place{font-size:12px;line-height:1.2;min-height:22px;align-items:center}.tdm-carry{font-size:17px;min-height:25px}.tdm-carry span{width:24px;height:24px;margin:auto}.tdm-carry-visible{border:2px solid #973d00;border-radius:50%;color:#853500;background:#fff1bf}.tdm-sign{position:absolute;right:-25px;top:0;color:#132f44}.tdm-b{border-bottom:3px solid #132f44}.tdm-p0{color:#a60c42}.tdm-p1{color:#064f9e;border-bottom:3px solid #132f44}.tdm-sum{color:#00633e}.tdm-row span{transition:background-color .3s}.tdm-active{background:#ffe047;outline:2px solid #895300}.tdm-row-label{text-align:center;font-weight:800;min-height:24px;margin-top:4px}.tdm-equation{font-size:24px;min-height:34px}.tdm-result{font-size:25px;background:#e0fff0;color:#005332;border:2px solid #00633e;padding:4px}.tdm-navigation{display:flex;align-items:center;justify-content:center;gap:5px;flex-wrap:wrap;margin:4px 0}.tdm-navigation button{min-height:34px!important;padding:4px 10px!important;font-weight:800!important}.tdm-navigation [data-next],.tdm-navigation [data-auto]{background:#0757ac!important;color:white!important}.tdm-lesson button:disabled{opacity:.4!important;cursor:default!important}.tdm-question{border:3px solid #955100;background:#fff5cf;padding:6px;text-align:center}.tdm-question h2{font-size:19px;margin:3px}.tdm-choices{display:flex;gap:6px;justify-content:center;flex-wrap:wrap}.tdm-choices button{font-size:23px!important;min-width:65px;background:#fff!important;color:#12344c!important;border:2px solid #0757ac!important}.tdm-choices .tdm-correct{background:#00623d!important;color:white!important}.tdm-choices .tdm-wrong{border:3px solid #b20d37!important}.tdm-question p{margin:4px;min-height:24px;font-weight:800}.tdm-options{display:flex;gap:10px;flex-wrap:wrap}.tdm-options label{display:flex;align-items:center;gap:5px}.tdm-options input:not([type=checkbox]){width:100px}.tdm-asking .tdm-calculation,.tdm-asking .tdm-area-note{display:none}.tdm-asking .tdm-area{max-width:290px}.tdm-lesson.tdm-asking .tdm-area svg.mv-diagram{max-height:19svh!important}.tdm-asking .tdm-equation{display:none}.mv-focus .tdm-area svg.mv-diagram{max-height:65svh!important}.mv-focus .tdm-work{flex:1}.mv-focus .tdm-board{display:flex;flex-direction:column;height:100%}
@media(max-width:600px){.tdm-work{gap:5px}.tdm-calculation{min-width:160px}.tdm-row{font-size:25px;grid-template-columns:repeat(var(--columns),minmax(19px,1fr))}.tdm-place{font-size:10px}.tdm-carry{font-size:15px}.tdm-area-note{display:none}.tdm-parts{flex-wrap:wrap}.tdm-parts button{font-size:17px!important}.tdm-caption{font-size:15px}.tdm-equation{font-size:20px;gap:6px}.tdm-area svg text{font-size:31px}.tdm-board{padding:2px}.tdm-row-label{font-size:13px}.tdm-navigation{gap:4px}.tdm-navigation button{padding:4px 7px!important}.tdm-columns{padding-right:20px}.tdm-sign{right:-19px}.tdm-lesson h1{font-size:19px}}
@media(prefers-reduced-motion:reduce){.tdm-lesson *{transition:none!important}}
.mv-experience .tdm-lesson .tdm-parts button{background:#ae174d!important;color:#fff!important;border:2px solid #132f44!important}.mv-experience .tdm-lesson .tdm-parts button+button{background:#0757ac!important}.mv-experience .tdm-lesson .tdm-choices .tdm-correct{background:#00623d!important;color:#fff!important}.mv-experience .tdm-lesson .tdm-navigation [data-next],.mv-experience .tdm-lesson .tdm-navigation [data-auto]{background:#0757ac!important;color:#fff!important}
