/* Exponents uses the Practice Guided Division dv-* board and controls. */
.exponent-panel .exponent-base { color: var(--dv-ink); }
.exponent-panel .exponent-index { color: #8b3b08; font-weight: 850; }
.exponent-panel .exponent-notation { display: inline-block; white-space: nowrap; }
.exponent-panel .exponent-progress { width: 100%; height: 10px; accent-color: var(--dv-math); }
.exponent-panel .exponent-work { white-space: pre-line; overflow-wrap: anywhere; padding: 16px 0; font-size: 1.15rem; font-weight: 750; }
.exponent-panel button { min-height: 44px; }
.exponent-panel :focus-visible { outline: 3px solid #296cc2; outline-offset: 3px; }
.exponent-panel .dv-controls { flex-wrap: wrap; }
.exponent-panel .exponent-restart { margin-left: 0; }
/* Guided Fractions "Solve Step by Step" reuses the panel above; input-free proportional diagrams. */
.fraction-walk-visual { display: grid; gap: 8px; margin: 4px 0 12px; }
.fraction-walk-equation { padding: 10px 12px; border: 1px solid #b8c9d8; border-radius: 8px; background: #fff; color: #183b51; font-weight: 750; text-align: center; overflow-wrap: anywhere; }
.fraction-walk-percent-track { height: 28px; border: 2px solid #365f77; border-radius: 6px; overflow: hidden; background: repeating-linear-gradient(90deg,#fff 0,#fff calc(1% - 1px),#9aabba calc(1% - 1px),#9aabba 1%); }
.fraction-walk-percent-fill { display: block; height: 100%; background: #ffd166; border-right: 1px solid #805a12; }
.fraction-walk-bar-row { display: grid; grid-template-columns: minmax(70px, 120px) minmax(0, 1fr); align-items: center; gap: 10px; }
.fraction-walk-label { font-weight: 750; overflow-wrap: anywhere; }
.fraction-walk-bar { display: grid; grid-template-columns: repeat(var(--parts), minmax(0, 1fr)); max-width: 420px; min-height: 34px; border: 2px solid #365f77; border-radius: 6px; overflow: hidden; background: #fff; }
.fraction-walk-part { border-right: 2px solid #365f77; }
.fraction-walk-part:last-child { border-right: 0; }
.fraction-walk-part.is-shaded { background: #8cc8de; }
.fraction-walk-circle svg { width: min(180px, 60vw); height: auto; }
.fraction-walk-sector { fill: #fff; stroke: #234e64; stroke-width: 1.5; }
.fraction-walk-sector.is-shaded { fill: #8cc8de; }
.fraction-walk-line { position: relative; display: grid; grid-template-columns: repeat(var(--parts), minmax(0, 1fr)) 0; max-width: 460px; margin: 10px 8px 22px; border-top: 3px solid #365f77; }
.fraction-walk-tick { position: relative; height: 16px; border-left: 2px solid #365f77; }
.fraction-walk-tick.is-jumped { border-top: 6px solid #2f8f6b; margin-top: -4px; }
.fraction-walk-tick.is-point::after { content: ""; position: absolute; top: -10px; left: -9px; width: 16px; height: 16px; border-radius: 50%; background: #c0571b; }
.fraction-walk-tick small { position: absolute; top: 18px; left: -4px; font-weight: 800; }
.fraction-walk-counters { display: flex; flex-wrap: wrap; gap: 8px; }
.fraction-walk-group { display: flex; flex-wrap: wrap; gap: 5px; max-width: 100%; }
.fraction-walk-group.is-grouped { padding: 5px 6px; border: 2px dashed #6c91aa; border-radius: 10px; }
.fraction-walk-counter { width: 18px; height: 18px; border: 2px solid #365f77; border-radius: 50%; background: #fff; }
.fraction-walk-counter.is-marked { background: #2a7391; }
/* Touch targets for both walkthroughs (Exponents and Fractions share the panel): toggle and Close at least 44px. */
#exponents-toggle, #fractions-walk-toggle, #multiplication-walk-toggle, .exponent-panel .dv-head .dv-close { min-height: 44px; min-width: 44px; }
/* Guided Multiplication walkthrough: progressive array (reuses .dot-array/.array-row) and area model. */
.multiplication-walk-visual { margin: 4px 0 12px; max-width: 100%; overflow-x: auto; }
.multiplication-walk-dots .array-row.ghost-row.is-marked { outline: 2px dashed #c0571b; outline-offset: 2px; border-radius: 6px; }
.multiplication-walk-area { display: grid; grid-template-columns: auto repeat(var(--cols), minmax(56px, 1fr)); gap: 4px; max-width: 520px; }
.multiplication-walk-corner, .multiplication-walk-head { display: grid; place-items: center; padding: 6px; font-weight: 800; }
.multiplication-walk-cell { display: grid; min-height: 48px; place-items: center; padding: 6px; border: 2px solid #547f99; border-radius: 6px; background: #f4f7f9; color: #6a7782; font-weight: 800; overflow-wrap: anywhere; }
.multiplication-walk-cell.is-shown { background: #e3f1f7; color: #12394d; }
.multiplication-walk-dots { display: grid; gap: 4px; justify-items: start; }
.multiplication-walk-dots .array-row { width: max-content; max-width: 100%; }
