.mathematics{--ink:#303954}.mathematics .primary{background:#504d87}.mathematics .node strong{font-size:13px;line-height:1.23}.mathematics aside.booknav{overflow-y:auto;max-height:calc(100dvh - 110px)}.mathematics #chapters small{display:block;font-size:10px;color:#657087;margin-top:3px}.mathematics #preview{display:block}.math-branches{list-style:none;padding:0}.math-branches button{border:0;border-bottom:1px solid #dddfea;background:none;color:#343d64;text-align:left;padding:12px 0;width:100%;font:inherit;cursor:pointer}.math-branches small{display:block;margin-top:5px;color:#687089;font-size:12px}.math-example,.math-lab{padding:20px;border:1px solid #d9ddeb;border-radius:12px;margin:20px 0;background:#f9faff}.math-example li{padding:5px 0}.mathematics #lesson p,.mathematics #lesson li{line-height:1.75}.mathematics math{font:19px/1.65 Georgia,serif;overflow-x:auto;max-width:100%;text-align:left}.mathematics math mtext{white-space:normal;overflow-wrap:anywhere}.math-lab svg{width:100%;height:auto;display:block}.math-lab textarea{width:100%;padding:10px;display:block;margin:10px 0;font:inherit}.math-controls{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.math-controls input,.math-controls select{display:block;width:100%;min-height:44px}.math-controls output{float:right}.mathematics #lesson button:not(.primary){padding:10px 14px;min-height:44px;border:1px solid #bbbfd5;border-radius:6px;background:white;color:#343d64;font:inherit;margin:8px 0;cursor:pointer}.mathematics details{margin:10px 0}.mathematics .chapter-picker{display:none}.mathematics .exam{margin:20px 0}.mathematics .node small{font-size:11px}
@media(max-width:720px){.mathematics .chapter-picker{display:block;margin:10px 0}.chapter-picker select{display:block;max-width:100%;width:100%;min-height:44px;font:inherit}.mathematics .subject-switcher{max-width:100%;overflow-x:auto;flex-wrap:nowrap}.math-controls{grid-template-columns:1fr}.math-example,.math-lab{padding:13px}.mathematics math{font-size:17px}.mathematics #panel{width:100%;max-width:100%;box-sizing:border-box}.mathematics #lesson{min-width:0;overflow-wrap:anywhere}}

.mathematics #crumbs button{width:auto}.mathematics #chapters button{display:grid;grid-template-columns:23px 1fr;gap:4px 8px}.mathematics #chapters small{grid-column:2}.math-lab>label{display:block}.mathematics .formula math{white-space:normal}
@media(max-width:720px){.mathematics #viewport{display:none}.mathematics .explorer{min-height:0}.mathematics #preview{margin-top:0}.mathematics .heading{padding-bottom:0}}

.polynomial-prototype{margin:20px 0}.polynomial-prototype section{padding:18px;border:1px solid #d9ddeb;border-radius:12px;background:#f9faff;margin:16px 0}.polynomial-prototype label{display:block;padding:6px 0}.polynomial-prototype textarea{display:block;width:100%;box-sizing:border-box;margin:8px 0;font:inherit}.prototype-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(220px,1fr);gap:14px;align-items:start}.prototype-grid svg{width:100%;height:auto;display:block}.prototype-grid table{width:100%;border-collapse:collapse}.prototype-grid th,.prototype-grid td{padding:7px;border:1px solid #d9ddeb;text-align:center}.polynomial-prototype [role=status]{line-height:1.6;font-weight:600}
@media(max-width:720px){.prototype-grid{grid-template-columns:1fr}.polynomial-prototype button{width:100%;margin:5px 0}}
@media(prefers-reduced-motion:reduce){.polynomial-prototype *{transition:none!important;animation:none!important}}

.math-table-scroll{overflow-x:auto}.math-table-scroll table{width:100%;border-collapse:collapse;font-size:14px}.math-table-scroll th,.math-table-scroll td{text-align:center;padding:9px;border:1px solid #d9ddeb}.math-table-scroll caption{text-align:left;line-height:1.6;margin:12px 0}.math-controls input[type=number]{border:1px solid #b9bfd3;border-radius:5px;padding:8px;font:inherit}.math-controls small{font-size:11px}.math-lab [data-input-error]{color:#9d362b}

.mathematics .math-equation{font:19px/1.7 Georgia,serif;overflow-wrap:anywhere}.mathematics .math-equation math{display:inline-block;overflow:visible;vertical-align:baseline;white-space:nowrap}.mathematics .math-controls{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:720px){.mathematics .math-controls{grid-template-columns:1fr}.mathematics .math-equation,.mathematics .math-equation math{font-size:17px}}
