.math-repair-host[hidden]{display:none!important}.math-repair-host{margin-top:24px}.math-repair-panel{padding:28px;border:1px solid rgba(255,255,255,.17);border-radius:24px;background:linear-gradient(145deg,rgba(5,48,65,.97),rgba(8,35,58,.97));box-shadow:0 24px 60px rgba(0,0,0,.27);color:#f7fbff}.math-repair-head{display:flex;justify-content:space-between;gap:22px;align-items:flex-start}.math-repair-head h2{font-size:clamp(30px,4vw,46px);margin:5px 0 8px}.math-repair-head p{margin:0;color:#cfe1ea}.math-repair-eyebrow{font-size:11px;letter-spacing:.16em;font-weight:1000;color:#ffd24b}.math-repair-count{text-align:right;padding:11px 14px;border:1px solid rgba(255,255,255,.14);border-radius:15px;background:rgba(255,255,255,.06)}.math-repair-count small,.math-repair-stage-copy small{display:block;font-size:9px;letter-spacing:.13em;font-weight:1000;color:#a9cad9}.math-repair-count strong{font-size:24px}.math-repair-grid{display:grid;grid-template-columns:minmax(240px,.72fr) minmax(0,1.45fr);gap:24px;margin-top:24px}.math-repair-beaver-zone{padding:18px;border-radius:20px;background:radial-gradient(circle at 50% 25%,rgba(74,233,190,.18),rgba(255,255,255,.04) 58%);border:1px solid rgba(255,255,255,.1)}.math-repair-stage-copy{text-align:center}.math-repair-stage-copy strong{display:block;margin-top:4px;font-size:18px}.math-repair-beaver-shell{position:relative;height:285px;display:grid;place-items:center;transition:filter .25s ease,transform .25s ease}.math-repair-beaver-shell img{max-width:100%;max-height:270px;object-fit:contain;filter:drop-shadow(0 16px 16px rgba(0,0,0,.33));transition:transform .25s ease}.math-repair-beaver-shell.stage-2 img{transform:scale(1.02)}.math-repair-beaver-shell.stage-3 img{transform:scale(1.04)}.math-repair-beaver-shell.stage-4 img{transform:scale(1.06)}.math-repair-beaver-shell.stage-5 img{transform:scale(1.08)}.math-repair-beaver-shell.stage-6 img{transform:scale(1.1)}.math-repair-beaver-shell.repair-hit{animation:rb-hit .55s ease}.math-repair-beaver-shell.stage-up{filter:drop-shadow(0 0 18px rgba(100,255,207,.5))}.math-repair-spark{position:absolute;width:12px;height:12px;border-radius:50%;background:#ffd24b;opacity:0}.math-repair-beaver-shell.repair-hit .math-repair-spark{animation:rb-spark .6s ease}.spark-a{left:18%;top:36%}.spark-b{right:17%;top:26%;animation-delay:.08s!important}.spark-c{right:25%;bottom:22%;animation-delay:.14s!important}.math-repair-progress-wrap{margin-top:8px}.math-repair-progress-line{height:13px;border-radius:999px;background:rgba(255,255,255,.11);overflow:hidden}.math-repair-progress-line span{display:block;height:100%;width:0;background:linear-gradient(90deg,#5ecf92,#43dcb3,#9fffdc);box-shadow:0 0 18px rgba(67,220,179,.6);transition:width .42s cubic-bezier(.2,.8,.2,1)}.math-repair-progress-lights{display:flex;justify-content:space-between;margin-top:8px}.math-repair-progress-lights i{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:11px;font-weight:1000;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);opacity:.45}.math-repair-progress-lights i.on{opacity:1;background:#1fbb7c;box-shadow:0 0 14px rgba(64,236,174,.45)}.math-repair-progress-copy{text-align:center;margin-top:7px;font-size:12px;color:#b9d3df}.math-repair-progress-wrap.progress-hit .math-repair-progress-line{box-shadow:0 0 20px rgba(95,255,199,.45)}.math-repair-work{min-width:0}.math-repair-diagnosis{display:grid;gap:5px;padding:14px 16px;border-radius:16px;border:1px solid rgba(255,211,75,.25);background:rgba(255,211,75,.07)}.math-repair-diagnosis b{font-size:17px}.math-repair-diagnosis span{color:#d1e2e9;line-height:1.45}.math-repair-diagnosis small{color:#ffd978;font-weight:900}.math-repair-worked{margin-top:14px;padding:16px;border-radius:16px;background:rgba(0,0,0,.18);border:1px solid rgba(255,255,255,.1)}.math-repair-worked-label{font-size:10px;letter-spacing:.13em;font-weight:1000;color:#8edcff}.math-repair-worked-prompt{font-size:20px;font-weight:900;margin:8px 0 12px}.math-repair-worked-row{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-top:1px solid rgba(255,255,255,.08)}.math-repair-worked-row small{color:#a7c4d1;font-weight:900}.math-repair-worked p{margin:10px 0 0;color:#cfe0e7;line-height:1.5}.math-repair-problem-meta{display:flex;gap:10px;align-items:center;margin-top:18px;font-size:11px;font-weight:1000;letter-spacing:.08em;color:#a9cad9}.math-repair-support-chip{padding:5px 8px;border-radius:999px;background:#ffd24b;color:#183247}.math-repair-problem{min-height:92px;display:grid;place-items:center;text-align:center;font-size:clamp(27px,4vw,45px);font-weight:1000;padding:10px}.math-repair-numeric{display:grid;grid-template-columns:1fr 120px;gap:9px}.math-repair-numeric input{min-height:62px;border-radius:15px;border:2px solid rgba(255,255,255,.18);background:#031d30;color:#fff;text-align:center;font-size:28px;font-weight:900}.math-repair-numeric button,.math-repair-choices button,.math-repair-retry{border:0;border-radius:14px;background:#ffd24b;color:#05243a;font-weight:1000;cursor:pointer}.math-repair-choices{display:grid;grid-template-columns:1fr 1fr;gap:9px}.math-repair-choices button{min-height:58px;padding:10px;font-size:16px}.math-repair-feedback{min-height:34px;text-align:center;margin-top:10px;font-weight:1000}.math-repair-feedback.good{color:#7ef0a8}.math-repair-feedback.miss{color:#ffc1bd}.math-repair-hint{display:grid;gap:4px;margin-top:8px;padding:12px 14px;border-radius:14px;background:rgba(142,220,255,.08);border:1px solid rgba(142,220,255,.17)}.math-repair-hint b{font-size:10px;letter-spacing:.13em;color:#8edcff}.math-repair-hint span{color:#d5e7ee}.math-repair-complete{text-align:center;padding:24px 10px}.math-repair-complete h3{font-size:clamp(35px,5vw,62px);margin:7px 0;color:#fff}.math-repair-complete p{color:#cfe2ea;font-size:17px}.math-repair-retry{min-height:56px;padding:0 24px;font-size:16px;letter-spacing:.06em}.math-repair-host button:focus-visible,.math-repair-host input:focus-visible{outline:3px solid #8edcff;outline-offset:2px}@keyframes rb-hit{0%{transform:scale(1)}40%{transform:scale(1.045)}100%{transform:scale(1)}}@keyframes rb-spark{0%{opacity:0;transform:scale(.2)}45%{opacity:1;transform:scale(1.8)}100%{opacity:0;transform:translateY(-18px) scale(.5)}}@media(max-width:780px){.math-repair-panel{padding:20px}.math-repair-head{display:grid}.math-repair-count{text-align:left}.math-repair-grid{grid-template-columns:1fr}.math-repair-beaver-shell{height:230px}.math-repair-beaver-shell img{max-height:220px}.math-repair-numeric{grid-template-columns:1fr}.math-repair-numeric button{min-height:52px}.math-repair-choices{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){.math-repair-beaver-shell,.math-repair-beaver-shell img,.math-repair-progress-line span{transition:none}.math-repair-beaver-shell.repair-hit,.math-repair-beaver-shell.repair-hit .math-repair-spark{animation:none}}

/* v26.7.1 — targeted teaching + visual repair */
.math-repair-worked-rule{margin:10px 0 12px;padding:12px 14px;border-radius:13px;background:rgba(126,240,168,.08);border:1px solid rgba(126,240,168,.22);color:#e8fff0;line-height:1.5;font-size:14px;font-weight:750}
.math-repair-worked-why{margin-top:12px;padding-top:10px;border-top:1px solid rgba(255,255,255,.08)}
.math-repair-worked-why small{display:block;font-size:9px;letter-spacing:.12em;color:#ffd24b;font-weight:1000;margin-bottom:5px}
.math-repair-worked-why p{margin:0;color:#e4f0f5;line-height:1.55}
.math-repair-worked-visual,.math-repair-hint-visual{margin:13px 0 10px}
.math-repair-problem{font-size:clamp(19px,2.05vw,29px);line-height:1.16;min-height:82px;padding:10px 8px}
.math-repair-problem.comparison-prompt,.math-repair-worked-prompt.comparison-prompt{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center}
.math-repair-problem .problem-instruction,.math-repair-worked-prompt .problem-instruction{font-size:clamp(15px,1.35vw,19px);line-height:1.22;font-weight:850;letter-spacing:-.01em;color:#dcebf2}
.math-repair-problem .problem-expression,.math-repair-worked-prompt .problem-expression{font-size:clamp(28px,3vw,40px);line-height:1;font-weight:1000;letter-spacing:-.025em;color:#fff}
.math-repair-worked-prompt{font-size:17px;line-height:1.3}
.math-repair-choices button.math-symbol-choice{font-size:clamp(32px,4.2vw,44px);line-height:1;min-height:76px;padding:8px 12px;font-family:Georgia,"Times New Roman",serif;font-weight:900}
.math-repair-number-line{padding:13px 12px 14px;border-radius:15px;background:rgba(3,29,46,.72);border:1px solid rgba(255,255,255,.1)}
.math-repair-number-line-direction{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;margin-bottom:11px;font-size:9px;font-weight:1000;letter-spacing:.08em;color:#9fc6d5}
.math-repair-number-line-direction span:last-child{text-align:right}.math-repair-number-line-direction strong{color:#ffd24b;font-size:10px;letter-spacing:.12em}
.math-repair-number-line-axis{height:108px;position:relative;margin:0 12px 5px}.math-repair-number-line-track{position:absolute;left:0;right:0;top:51px;height:4px;border-radius:999px;background:linear-gradient(90deg,#85b4c5,#eaf7fb,#85b4c5);box-shadow:0 0 12px rgba(132,204,229,.22)}
.math-repair-number-line-track::before,.math-repair-number-line-track::after{content:"";position:absolute;top:50%;width:0;height:0;border-top:8px solid transparent;border-bottom:8px solid transparent;transform:translateY(-50%)}.math-repair-number-line-track::before{left:-9px;border-right:12px solid #b9dce8}.math-repair-number-line-track::after{right:-9px;border-left:12px solid #b9dce8}
.math-repair-number-line-tick{position:absolute;top:-5px;width:2px;height:14px;background:rgba(225,244,250,.48);transform:translateX(-1px)}
.math-repair-number-line-zero{position:absolute;top:36px;transform:translateX(-50%);text-align:center;color:#b9dce8}.math-repair-number-line-zero i{display:block;width:2px;height:32px;background:rgba(255,255,255,.35);margin:0 auto 2px}.math-repair-number-line-zero b{font-size:12px}
.math-repair-number-line-point{position:absolute;transform:translateX(-50%);text-align:center;z-index:2}.math-repair-number-line-point span{display:block;width:18px;height:18px;border-radius:50%;background:#ffd24b;border:3px solid #fff;box-shadow:0 0 0 5px rgba(255,210,75,.16),0 0 16px rgba(255,210,75,.45);margin:0 auto}.math-repair-number-line-point b{display:block;min-width:44px;font-size:20px;color:white;text-shadow:0 2px 3px rgba(0,0,0,.5)}
.math-repair-number-line-point.above{top:13px;display:flex;flex-direction:column}.math-repair-number-line-point.above b{order:0}.math-repair-number-line-point.above span{order:1;margin-top:4px}.math-repair-number-line-point.below{top:44px}.math-repair-number-line-point.below span{margin-bottom:4px}.math-repair-number-line-point.point-b span{background:#72e8c0;box-shadow:0 0 0 5px rgba(114,232,192,.16),0 0 16px rgba(114,232,192,.4)}
.math-repair-number-line-conclusion{margin-top:2px;padding:10px 11px;border-radius:12px;background:rgba(16,82,106,.5);color:#dcecf2;line-height:1.45;font-size:13px}.math-repair-number-line-conclusion strong{color:#ffd24b}.math-repair-number-line-conclusion b{display:inline-block;margin-top:4px;font-size:20px;color:white}
@media(max-width:720px){.math-repair-problem{font-size:21px;min-height:76px}.math-repair-problem .problem-instruction,.math-repair-worked-prompt .problem-instruction{font-size:15px}.math-repair-problem .problem-expression,.math-repair-worked-prompt .problem-expression{font-size:29px}.math-repair-worked-prompt{font-size:16px}.math-repair-choices button.math-symbol-choice{font-size:36px}.math-repair-number-line-direction{grid-template-columns:1fr 1fr}.math-repair-number-line-direction strong{display:none}.math-repair-number-line-axis{margin-left:8px;margin-right:8px}.math-repair-number-line-point b{font-size:18px}}
