#mathpanel{padding-top:0}
/* Navigation stays at the top of the panel while problem details scroll beneath it. */
#mathpanel .math-step-pinned-head{position:sticky;top:0;z-index:12;background:#f6f9ff;border-bottom:1px solid #bccde1;margin:0 0 10px;padding:8px 0 7px}
#mathpanel .math-step-pinned-head .workspace-math-head{position:static;top:auto;margin:0;min-height:32px;align-items:center}
#mathStepPinned .math-step-nav-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:4px}
#mathStepPinned button{width:100%;min-width:0;min-height:28px;margin:0;padding:5px 6px;font-size:12px;line-height:1.2;border-radius:5px;white-space:normal}
#mathStepPinned #mathPanel-next{background:#184fc4;color:white;border-color:#184fc4;font-weight:600}
#mathStepStatus{margin:5px 0 0;font-size:12px!important;line-height:1.3;color:#4c627c}
#workspacesteps{z-index:36;box-sizing:border-box;max-width:calc(100% - 16px)}
#workspacesteps #next{background:#184fc4;color:white;border-color:#184fc4;font-weight:600}
@media(pointer:coarse){#mathStepPinned button{min-height:42px;font-size:13px}}
@media(max-width:450px){#mathStepPinned .math-step-nav-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}#mathPanel-restart{grid-column:1/-1}}
#mathpanel .math-step-buttons #restart{display:none}
