.math-downloads{background:#edf4f0;flex-wrap:wrap;flex:none;gap:18px;padding:8px 28px;font-size:14px;display:flex}.math-downloads a{color:#176b70;font-weight:700;text-decoration:underline}.lesson-toolbar select{background:#fff;border:1px solid #9eb7ac;border-radius:6px;max-width:300px;padding:8px}.math-number{font-variant-numeric:tabular-nums;font-size:64px}.math-reveal{color:#fff;background:#153e59;border-radius:8px;padding:12px 20px}.math-answer{background:#e2efeb;border-left:5px solid #167c80;margin-top:20px;padding:24px}.math-answer>p{white-space:pre-line;font-size:24px;line-height:1.5}.math-models{grid-template-columns:2fr 1fr;gap:36px;margin-top:24px;display:grid}.math-models figcaption{margin-bottom:15px;font-weight:700}.math-tape{border:2px solid #153e59;align-items:stretch;width:100%;height:60px;display:flex}.math-tape span{border-right:1px solid #153e59;justify-content:center;align-items:center;min-width:18px;font-size:20px;display:flex}.math-tape span:last-child{border:0}.math-tape .remainder{background:#f2cf78}.math-vertical{grid-template-columns:65px 110px;width:175px;font:30px/1.4 monospace;display:grid}.quotient{text-align:right;grid-column:2}.divisor{text-align:right;grid-column:1;padding-right:8px}.dividend{text-align:right;border-top:2px solid;border-left:2px solid}.subtraction{text-align:right;border-bottom:2px solid;grid-column:2}.residue{text-align:right;grid-column:2}@media (max-width:800px){.math-models{grid-template-columns:1fr}.math-downloads{padding:8px 14px}.lesson-toolbar select{max-width:220px}}.math-presentation{background:#fff;flex-direction:column;flex:1;min-width:0;min-height:0;display:flex}.math-presentation-expanded{z-index:80;color:#173044;position:fixed;inset:64px 0 0;box-shadow:0 0 0 100vmax #fff}.math-presentation-header{background:#edf4f0;border-bottom:1px solid #afc5bb;flex:none;align-items:center;gap:16px;min-height:52px;padding:4px 18px;font-size:14px;display:flex}.math-presentation-header span{text-align:center;flex:1}.math-presentation-header a,.math-presentation-header button{background:#fff;border:1px solid #8da79e;border-radius:8px;align-items:center;min-height:44px;padding:8px 12px;font-weight:700;display:inline-flex}.math-presentation-expanded .lesson-content{flex:1;min-height:0;overflow:auto}.math-presentation-expanded .teaching-slide{width:100%;max-width:none;padding:20px clamp(24px,4vw,72px) 32px}.math-presentation-expanded .annotation-page{min-height:0}.math-presentation-expanded .slide-navigation{padding:8px 20px}@media (max-width:700px){.math-presentation-expanded{top:110px}.math-presentation-header{gap:8px;padding:4px 8px}.math-presentation-header span{display:none}.math-presentation-header button{margin-left:auto}.math-presentation-expanded .teaching-slide{padding:16px}.math-presentation-expanded .slide-navigation{padding:7px 4px}}
