.emc-more-lab .emc-lab-reveal{background:#e4f1f8;color:#174568!important;margin:8px 12px 12px 0}
.emc-more-lab input[type=number],.emc-more-lab input[type=text]{max-width:300px}
.emc-model-equation,.emc-expression{font-size:1.35rem;font-weight:800;color:#173e5c}
.emc-decimal-grid{display:grid;grid-template-columns:repeat(10,1fr);width:min(100%,360px);aspect-ratio:1;gap:2px;border:2px solid #9ebbd0;background:#9ebbd0;border-radius:8px;overflow:hidden}
.emc-decimal-cell{background:#fff}.emc-decimal-cell.is-first{background:#2c82ba}.emc-decimal-cell.is-second{background:#ecaa4b}.emc-decimal-cell.is-removed{background:repeating-linear-gradient(135deg,#f5d9d0 0,#f5d9d0 5px,#9a4d3a 6px,#9a4d3a 8px)}.emc-decimal-cell.is-overlap{background:#8b58ad}
.emc-place-trade{background:#e8f3fb;border-left:4px solid #3189ba;padding:10px 14px;max-width:620px;font-weight:700}
.emc-decimal-groups{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;width:min(100%,500px);height:70px;border:2px solid #83aeca;border-radius:8px;padding:4px}.emc-decimal-groups span{display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid #bdd1de;font-weight:800}.emc-decimal-divide.is-revealed .emc-decimal-groups span{background:#9bd0ee}
.emc-fraction-bar{display:flex;align-items:center;gap:10px;margin:14px 0;max-width:580px}.emc-fraction-bar>span{width:80px;font-weight:800}.emc-fraction-pieces{display:grid;grid-template-columns:repeat(var(--parts),1fr);gap:2px;flex:1;background:#96b6cb;border:2px solid #96b6cb;border-radius:8px;height:44px;overflow:hidden}.emc-fraction-pieces span{background:#fff}.emc-fraction-pieces span.is-filled{background:#4f97c3}
.emc-fraction-area-grid{display:grid;grid-template-columns:repeat(var(--cols),1fr);width:min(100%,370px);aspect-ratio:1;gap:2px;background:#9ebbd0;border:2px solid #9ebbd0;border-radius:8px;overflow:hidden}.emc-fraction-area-cell{background:#fff}.emc-fraction-area-cell.is-column{background:#d5ebf9}.emc-fraction-area-cell.is-row{background:#fce8c8}.emc-fraction-area-cell.is-column.is-row{background:#bca9d6}.emc-fraction-area.is-revealed .emc-fraction-area-cell.is-column.is-row{background:#8656ae;box-shadow:inset 0 0 0 2px #60328a}
.emc-unit-pieces{display:grid;grid-template-columns:repeat(var(--parts),minmax(4px,1fr));max-width:580px;height:58px;border:2px solid #8ab3ce;border-radius:7px;overflow:hidden}.emc-unit-pieces span{border-right:1px solid #8ab3ce;background:#fff}.emc-unit-pieces span:last-child{border:0}.emc-unit-fraction.is-revealed .emc-unit-pieces span{background:#d7edfb}.emc-unit-fraction.is-revealed .emc-unit-pieces span:nth-child(odd){background:#8dc6e9}
.emc-measure-track{display:flex;align-items:center;gap:12px;flex-wrap:wrap;max-width:540px}.emc-measure-track strong{display:block;background:#dff0fb;border:2px solid #87b9d8;border-radius:10px;padding:20px}.emc-measure-track small{font-weight:700}.emc-measure-rule{font-weight:700}
.emc-plot-ticks{display:grid;grid-template-columns:repeat(var(--emc-ticks,5),minmax(0,1fr));gap:5px;max-width:620px;border-bottom:3px solid #317bab}.emc .emc-plot-ticks button{background:#eaf4fa;color:#174568!important;border:1px solid #a8c9dd;border-radius:7px 7px 0 0;padding:5px;min-height:128px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center}.emc-plot-marks{display:flex;flex-direction:column-reverse;min-height:80px;line-height:1;color:#144e7c;font-size:1.3rem;font-weight:900}.emc-plot-ticks strong{font-size:.9rem}.emc-plot-count{font-weight:700}
.emc-volume-layer{display:grid;grid-template-columns:repeat(var(--cols),1fr);gap:3px;width:min(100%,300px);aspect-ratio:1;background:#8fb2cb;border:2px solid #8fb2cb;border-radius:8px;overflow:hidden}.emc-volume-layer span{background:#fff}.emc-volume-layer.is-filled span{background:#85bbe0;box-shadow:inset -4px -4px 0 #5a9aca}.emc-volume-count{font-weight:700}
.emc-choice-row{display:flex;flex-wrap:wrap;gap:9px}.emc .emc-choice-row button{background:#e4f1f8;color:#174568!important;border:1px solid #a8c9dd}.emc .emc-choice-row button:hover{background:#cae5f5}
.emc-pattern-table{border-collapse:collapse;margin:12px 0;width:min(100%,540px)}.emc-pattern-table th,.emc-pattern-table td{border:1px solid #b9cbd8;padding:7px 10px;text-align:center}
.emc-coordinate-grid{position:relative;width:min(100%,360px);aspect-ratio:1;margin:20px 20px 25px 0;border-left:3px solid #245f8b;border-bottom:3px solid #245f8b;background-image:linear-gradient(to right,#d4e4ee 1px,transparent 1px),linear-gradient(to top,#d4e4ee 1px,transparent 1px);background-size:10% 10%}.emc-coordinate-marker{position:absolute;left:0;bottom:0;width:17px;height:17px;border-radius:100%;background:#d65f3e;border:3px solid #fff;box-shadow:0 0 0 2px #a0412a;transform:translate(-50%,50%)}.emc-coordinate-controls{display:flex;gap:20px;flex-wrap:wrap}.emc-coordinate-controls label{flex:1;min-width:180px}
.emc-shape-card{display:flex;align-items:center;gap:20px;margin-bottom:18px;font-size:1.1rem}.emc-square{width:100px;height:100px;border:4px solid #2a79a8;background:#d4ebfa}
.emc-upgrade-bars{display:grid;gap:10px;margin:15px 0;max-width:620px}.emc-upgrade-bar{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.emc-upgrade-bar>strong{min-width:105px}.emc-upgrade-ten{display:grid;grid-template-columns:repeat(10,minmax(8px,1fr));gap:2px;flex:1;max-width:360px;height:36px;background:#98b8cc;border:2px solid #98b8cc;border-radius:6px;overflow:hidden}.emc-upgrade-ten i{background:#fff}.emc-upgrade-ten i.is-filled{background:#64a9d5}.emc-decimal-whole.is-revealed .emc-upgrade-ten i.is-filled{background:#297daf}.emc-upgrade-wholes{display:block;background:#e8f3fb;border:1px solid #a9cee4;border-radius:8px;padding:10px 14px;font-weight:700}.emc-upgrade-step{font-weight:700;color:#174568;background:#e8f3fb;border-left:4px solid #4d9bcb;padding:10px 14px}.emc-upgrade-groups{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.emc .emc-upgrade-groups button{display:flex;gap:3px;padding:10px;color:#174568!important;background:#e8f3fb;border:2px solid #a9cee4}.emc .emc-upgrade-groups button.is-selected{background:#abd6f0;border-color:#226f9b}.emc-upgrade-count{font-weight:700}.emc-upgrade-steps{margin:12px 0;padding-left:28px}.emc-upgrade-tree{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.emc .emc-upgrade-tree button{background:#e8f3fb;color:#174568!important;border:2px solid #a9cee4}.emc .emc-upgrade-tree button.is-selected{background:#abd6f0;border-color:#226f9b}
.emc-mixed-tiles{display:flex;gap:5px;align-items:center;flex-wrap:wrap}.emc-mixed-tile{width:48px;height:38px;border:2px solid #4287ae;border-radius:5px;background:#80bfe4;display:grid;place-items:center;font-weight:800;color:#123f5b}.emc-mixed-tile.is-quarter{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:#a6c6d8;padding:1px}.emc-mixed-tile.is-quarter i{height:100%;background:#fff}.emc-mixed-tile.is-quarter i.is-filled{background:#80bfe4}.emc-upgrade-cubes{display:grid;grid-template-columns:repeat(var(--cols),28px);gap:2px;background:#96bad0;padding:3px;border-radius:6px}.emc-upgrade-cubes i{width:28px;height:28px;background:#81bee3;box-shadow:inset -4px -4px 0 #5398c2}.emc-division-area-wrap{display:flex;width:min(100%,560px);height:110px;border:2px solid #397da7;margin:14px 0}.emc-division-area-wrap>div{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;padding:6px}.emc-division-area-main{flex:10;background:#b8dced}.emc-division-area-rest{flex:2;background:#f1d5a4;border-left:2px solid #397da7;min-width:90px}.emc-division-area-wrap span{font-size:.85rem}
@media(max-width:600px){.emc-plot-ticks strong{font-size:.7rem}.emc .emc-plot-ticks button{padding:2px;min-height:112px}.emc-fraction-bar>span{width:55px}.emc-coordinate-grid{width:min(100%,300px)}}
