.math-model { color:#294a3f; }
.math-model h4 { line-height:1.55; }
.math-model button { min-height:42px; }
.math-model .widget-reading,.math-model .widget-foot { color:#36564b; line-height:1.75; }
.math-count-tray { display:flex; flex-wrap:wrap; gap:12px; padding:20px; border-radius:16px; background:#edf4e7; }
.math-dot { display:grid; place-items:center; width:42px; height:42px; color:#55783c; font-size:30px; }
.math-dot.marked { border:2px solid #4d7354; border-radius:50%; background:white; font-size:20px; }
.math-frame-pair { display:flex; flex-wrap:wrap; gap:14px; align-items:center; justify-content:center; }
.math-ten-frame { display:grid; grid-template-columns:repeat(5,32px); border:2px solid #5b7d54; }
.math-ten-frame i { width:32px; height:32px; border:1px solid #9ab490; position:relative; }
.math-ten-frame .filled:after { content:''; position:absolute; inset:6px; border-radius:50%; background:#4c7957; }
.math-ten-frame .moved:after { background:#b06e29; }
.math-pair-row { display:flex; align-items:center; gap:12px; margin:12px 0; }
.math-pair-row strong { flex:0 0 65px; }
.math-pair-row>div { display:grid; grid-template-columns:repeat(9,minmax(15px,32px)); gap:3px; width:100%; }
.math-pair-cell { display:grid; place-items:center; min-height:32px; color:#395f45; }
.math-pair-cell.paired { background:#e2eddb; border:1px solid #7fa16c; border-radius:7px; }
.math-pair-cell.extra { background:#ffe5bb; border:1px solid #b78032; border-radius:7px; }
.math-column-wrap { display:flex; flex-wrap:wrap; gap:24px; align-items:center; justify-content:center; }
.math-column-table { border-collapse:collapse; font-variant-numeric:tabular-nums; min-width:220px; text-align:center; background:white; }
.math-column-table td,.math-column-table th { min-width:44px; padding:7px; font-size:24px; color:#2f5146; }
.math-column-table .column-head th { font-size:15px; background:#e8f1e1; }
.math-column-table .column-result { border-top:2px solid #406252; }
.math-column-table .column-carry td { padding:2px 7px; font-size:15px; color:#885a1f; }
.math-step-explanation { flex:1 1 210px; max-width:350px; line-height:1.8; font-size:16px; }
.math-wholes { display:flex; flex-wrap:wrap; gap:14px; }
.math-wholes>div { flex:1 1 145px; min-width:135px; }
.math-wholes>div>span { display:block; margin-bottom:7px; font-size:14px; }
.math-whole-grid { display:grid; gap:3px; border:2px solid #496d52; padding:4px; border-radius:7px; }
.math-whole-grid button { border:1px solid #b2c8aa; border-radius:3px; background:white; color:#355a42; padding:6px 2px; font-size:15px; }
.math-whole-grid button.colored { color:white; background:#527b49; border-color:#527b49; }
.math-area-grid { display:grid; grid-template-columns:repeat(4,1fr); width:min(100%,360px); aspect-ratio:4/3; margin:16px auto; border:2px solid #406877; }
.math-area-grid span { display:grid; place-items:center; border:1px solid #7897a2; background:white; color:#173e50; font-size:24px; }
.math-area-grid .first-part { background:#c6e0ec; }
.math-area-grid .overlap { background:repeating-linear-gradient(135deg,#8fbfca 0,#8fbfca 7px,#d5e8d1 7px,#d5e8d1 14px); }
.math-model-key { color:#36584e; font-size:14px; line-height:1.6; }
.math-model input[type=range] { accent-color:#4b7656; }
@media(max-width:540px) { .math-pair-row { gap:5px; } .math-pair-row strong { flex-basis:56px; font-size:14px; } .math-pair-cell { min-height:25px; font-size:13px; } .math-frame-pair { gap:7px; } .math-ten-frame { grid-template-columns:repeat(5,24px); } .math-ten-frame i { width:24px; height:24px; } .math-ten-frame .filled:after { inset:4px; } }
