/* Reuse the tutor's card colors and the original animation player in every result view. */
html body .cogo-explanation-card{margin:0!important;min-width:0;color:var(--ink,#18304f);font-size:15px;line-height:1.85}
html body .cogo-explanation-card>.help-text26{padding:16px!important;border-radius:14px!important;background:var(--blue-soft)!important;color:var(--ink)!important;font-size:14px!important;min-width:0;overflow-wrap:anywhere}
html body .cogo-explanation-card h3{font-size:15px!important;line-height:1.5!important;margin:0 0 10px!important;font-weight:750}
html body[data-view="solve"] #main .cogo-split-reading .cogo-explanation-card :is(p,li),html body #answerFeedback .cogo-explanation-card :is(p,li){font-size:15px!important;line-height:1.85!important;margin:7px 0 12px}
html body .cogo-explanation-card>.help-answer295{font-size:13px!important;color:var(--muted)!important;margin:12px 0!important}
html body[data-view="solve"] #main .cogo-split-reading .cogo-explanation-card .cma-player .cma-description,html body #answerFeedback .cogo-explanation-card .cma-player .cma-description{font-size:13px!important;line-height:1.7!important}
html body .cogo-explanation-card .cma-player>svg{aspect-ratio:1.8;width:100%;height:auto;max-height:none!important}
html body .cogo-explain-speech{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:8px}
html body .cogo-explain-speech button{font:inherit;font-size:12px;color:var(--blue);padding:8px;border:0;background:transparent;min-height:40px;cursor:pointer}
html body .cogo-explain-speech select{margin-left:auto;min-height:40px;padding:7px;border:1px solid var(--line);border-radius:9px;max-width:100%;font-size:12px;background:var(--surface,#fff);color:var(--ink)}
html body .cogo-explanation-card [hidden]{display:none!important}
html body .cogo-explanation-card :is(img,svg,math,table){max-width:100%}
html body .cogo-explanation-card pre{max-width:100%;overflow:auto}
html body #answerFeedback .reward-detail285[hidden]{display:none!important}
html body .cogo-explain-jumps{display:none}
/* A fixed continuation panel must never cover the explanation on a phone. */
@media(max-width:760px),(max-height:600px){
 html body #answerFeedback[open]{display:block!important;overflow-y:auto!important;overflow-x:hidden!important;max-height:calc(100dvh - 16px)!important;overscroll-behavior:contain;scroll-padding-top:130px}
 html body #answerFeedback>header{position:sticky!important;top:0;z-index:3;background:var(--surface,#fff);display:flex!important;flex-wrap:wrap;gap:10px;padding:14px 16px!important;border-bottom:1px solid var(--line);margin:0!important}
 html body #answerFeedback>header .cogo-split-alongside{display:none!important}
 html body #answerFeedback #feedbackBody{overflow:visible!important;max-height:none!important;height:auto!important;min-height:0!important;flex:none!important}
 html body #answerFeedback #answerNextFooter15,html body #answerFeedback .cr-result-flow{position:static!important;inset:auto!important;height:auto!important;max-height:none!important;overflow:visible!important;flex:none!important}
 html body #answerFeedback #answerNextFooter15{padding-bottom:max(16px,env(safe-area-inset-bottom))!important}
 html body #answerFeedback .cogo-explain-jumps{display:flex;gap:8px;width:100%;flex:0 0 100%}
 html body #answerFeedback .cogo-explain-jumps button{flex:1;min-width:0;min-height:42px;border:1px solid var(--line);border-radius:10px;background:var(--surface,#fff);color:var(--ink);font-size:13px;font-weight:650;cursor:pointer;padding:8px}
 html body #answerFeedback .cogo-explain-jumps [data-explain-jump="explanation"]{background:var(--blue-soft);color:var(--blue);border-color:var(--blue-soft)}
 html body #answerFeedback .cogo-explain-jumps button:disabled{opacity:.5;cursor:default}
 html body #answerFeedback .cogo-explanation-card{scroll-margin-top:140px;margin:18px 0!important}
 html body #answerFeedback .cogo-explanation-card>.help-text26{padding:12px!important}
 html body #answerFeedback .cogo-explanation-card .cma-controls button,html body #answerFeedback .cogo-explanation-card .cma-controls select{min-height:40px}
}

/* Match the tutor rich-text scale; solve-panel formula rules must not enlarge it. */
html body[data-view="solve"] #main .cogo-split-reading .cogo-explanation-card math,html body #answerFeedback .cogo-explanation-card math{font-size:14px!important}
