.e51-wrap{max-width:1180px;margin:auto;padding:24px}.e51-article{background:#f6f7f5;color:#142028;border-radius:16px;padding:28px;line-height:1.8}.e51-article p,.e51-article li{color:inherit}.e51-article h2{margin-top:1.8em}.e51-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px}.e51-card{display:block;padding:20px;border:1px solid #657b88;border-radius:12px;color:inherit}.e51-card p{color:inherit}.e51-note{padding:18px;background:#e5eee8;border-left:4px solid #39745d;margin:22px 0}.e51-note p,.e51-note li{color:#142028}.e51-actions{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0}.e51-actions a{white-space:normal}.e51-lab{padding:22px;background:#0c1926;color:#eef7fa;border-radius:12px;scroll-margin-top:100px}.e51-lab p,.e51-lab h2,.e51-lab label,.e51-lab math,.e51-lab math *{color:#eef7fa!important}.e51-lab h2{margin-top:0}.e51-controls{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0}.e51-controls label{display:grid;gap:5px;flex:1 1 120px}.e51-lab button,.e51-lab input{font:inherit;min-height:44px;max-width:100%;padding:8px;border:1px solid #7894aa;border-radius:6px;background:#182d3e;color:white}.e51-lab button{cursor:pointer}.e51-lab input[type=range]{width:100%;padding:0}.e51-lab :focus-visible{outline:3px solid #bcf8d1;outline-offset:3px}.e51-lab button:disabled{opacity:.55;cursor:default}.e51-lab svg{display:block;width:100%;max-width:560px;margin:auto}.e51-lab svg text{font:14px system-ui;fill:#eef7fa}.e51-lab [data-result]{min-height:5em}.e51-system math{margin:.2em 0!important}.e51-system{padding:10px 0}.e51-article math{font-size:1.05em}.e51-lab [data-matrix]{min-height:140px}.e51-contact{margin-top:28px}.e51-note details{margin-top:12px}@media(max-width:600px){.e51-wrap{padding:16px}.e51-article{padding:18px}.e51-lab{padding:14px}.e51-note{padding:12px}.e51-lab svg text{font-size:16px}}@media print{.e51-wrap,.e51-article{padding:0;background:white;color:#111}.e51-controls,.e51-contact,.e51-actions{display:none}.e51-lab{background:white;color:#111;border:1px solid #777;break-inside:avoid}.e51-lab p,.e51-lab h2,.e51-lab math,.e51-lab math *{color:#111!important}.e51-lab svg{background:#0c1926;print-color-adjust:exact;max-height:230px}.e51-note{break-inside:avoid}h2,h3{break-after:avoid}}

@media print{.e51-lab button{display:none!important}}

.e51-lab [data-result]{overflow-wrap:anywhere}.e51-lab svg{aspect-ratio:500/280}.e51-lab table{width:100%;border-collapse:collapse}.e51-lab td,.e51-lab th{padding:6px;border-bottom:1px solid #7894aa;text-align:center;color:inherit}.e51-lab output{display:block;color:inherit}

.e51-lab li{color:#eef7fa}.e51-lab h3{margin-top:1.2em}@media(max-width:600px){.e51-lab svg text{font-size:24px}}@media print{.e51-lab li{color:#111}}

@media print{.e51-lab,.e51-lab [data-result],.e51-lab h3,.e51-lab li,.e51-lab caption,.e51-lab td,.e51-lab th{color:#111!important}.e51-lab svg text{fill:#eef7fa!important}}
.e51-lab [hidden]{display:none!important}.e51-lab [data-step]{min-height:150px}.e51-lab svg path{fill:none}

.e51-lab select{font:inherit;background:#182d3e;color:#eef7fa;min-height:44px;padding:8px;max-width:100%}.e51-lab svg{aspect-ratio:500/300}.e51-lab svg text{font-size:19px}.e51-article .e51-system math{margin:.5em 0}

.e51-lab [data-step] math{display:math!important;math-style:normal;text-align:left;margin:12px 0}@media(max-width:600px){.e51-lab svg text{font-size:24px}}

.e51-equation{margin:16px 0}

.e51-lab .e51-equation math{display:math!important;math-style:normal}.e51-equation{margin:16px 0}.e51-lab [data-result]{min-height:7em}

.e51-lab select{font:inherit;background:#182d3e;color:#eef7fa;min-height:44px;padding:8px}.e51-lab [data-formulas]{min-height:32px}
