/* Spot the mistake: a worked column sum whose answer digits can be tapped */
.dr-stage { display: grid; justify-items: center; gap: .875rem; width: 100%; max-width: 40rem; min-width: 0; }
.sm-sum { display: grid; gap: .25rem; padding: .75rem 1.25rem 1rem; border: .1875rem solid var(--ink); border-radius: 1rem; background: #fff; font: 800 clamp(2rem, 9vw, 3rem)/1 var(--f-m); }
.sm-row { display: flex; justify-content: flex-end; gap: .25rem; }
.sm-cell { display: grid; place-items: center; width: 1.25em; height: 1.35em; }
.sm-op .sm-cell:first-child { color: var(--ink2); }
.sm-rule { height: .1875rem; background: var(--ink); margin: .125rem 0; }
.sm-digit { border: .15625rem dashed var(--ink2); border-radius: .5rem; background: #FFF8E1; color: var(--ink); font: inherit; cursor: pointer; touch-action: manipulation; }
.sm-digit:hover, .sm-digit:focus-visible { border-style: solid; }
.sm-digit.bad { border: .1875rem solid var(--tom); background: #FDE7E3; color: var(--tom); text-decoration: line-through; }
.sm-fix { margin: 0; font: 700 1.375rem/1.4 var(--f-d), var(--f-m); text-align: center; }
.sm-fix .ans { display: inline-block; min-width: 4ch; padding: 0 .375rem; border-bottom: .1875rem solid var(--ink); font-family: var(--f-m); }
.sm-why { margin: 0; max-width: 34rem; font-size: 1.0625rem; line-height: 1.5; text-align: center; }
.sm-eq { display: inline-block; margin-top: .375rem; font: 800 1.375rem/1.3 var(--f-m); }
html.calm .sm-digit { background: #fff; }
html.calm .sm-digit.bad { background: #fff; }
/* Paper */
.sm-sheet-how { margin: 0 0 4mm; font-size: 10.5pt; }
.sm-sheet { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8mm 6mm; }
.sm-sheet li { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: start; gap: 1mm 3mm; break-inside: avoid; }
.sm-sheet .sm-write { grid-column: 1 / -1; min-height: 9mm; border-bottom: .3mm solid #999; font: 600 12pt/9mm var(--f-m); }
.sm-tab { border-collapse: collapse; font: 600 15pt/1.15 var(--f-m); }
.sm-tab td { width: 1.1em; padding: 0; text-align: center; }
.sm-tab .sm-res td { border-top: .5mm solid #000; padding-top: .5mm; }
/* Practice screens keep every tap target at least 56 px (phone-pass rule) */
.ho .sm-cell { min-width: 3.5rem; min-height: 3.5rem; }
