/* Mathzem 1.0.123 Fix My Mistake — compact IB Practice-style workspace.
 * Loaded AFTER original Tutor styles. All selectors scoped to this page.
 */
.mz-fmm-page{--fmm-ink:#142b48;--fmm-muted:#65788e;--fmm-line:#dce6f1;--fmm-blue:#285fdb;background:#f4f7fc;color:var(--fmm-ink);font-family:Inter,"Plus Jakarta Sans",system-ui,sans-serif;font-size:13px;padding:12px 18px 14px;box-sizing:border-box}
.mz-fmm-page *, .mz-fmm-page *::before,.mz-fmm-page *::after{box-sizing:border-box}
.mz-fmm-page [hidden]{display:none!important}
.mz-fmm-page .mz-fmm-wrap{max-width:1540px;margin:0 auto;min-width:0}
.mz-fmm-page .mz-fmm-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 10px;padding:0 3px;min-height:62px}
.mz-fmm-page .mz-fmm-heading-top{display:flex;align-items:center;gap:16px;margin-bottom:4px}
.mz-fmm-page .mz-fmm-eyebrow{font-size:10px;font-weight:800;letter-spacing:.1em;color:#647d9d}
.mz-fmm-page .mz-fmm-back{display:inline;font-size:11px;margin:0;text-decoration:none!important;font-weight:750;color:#2962c5!important}
.mz-fmm-page .mz-fmm-heading h1{margin:0;color:#132c4b;font-size:clamp(22px,2.1vw,29px);font-weight:850;letter-spacing:-.04em;line-height:1.12}
.mz-fmm-page .mz-fmm-heading p{margin:3px 0 0;font-size:11px;line-height:1.4;color:#64758e}
.mz-fmm-page .mz-fmm-header-badge{padding:8px 12px;white-space:nowrap;border-radius:999px;background:#eaf2ff;color:#285ab0;font-weight:750;font-size:11px;border:1px solid #d4e5ff}
.mz-fmm-page .mz-fmm-notice{margin:3px 0 8px;padding:11px 14px;border-radius:11px;background:#e9f2ff;border:1px solid #bcd6fd;color:#285197;font-size:12px}
.mz-fmm-page .mz-fmm-notice[data-error="true"]{background:#fff4ed;border-color:#f5d2b8;color:#9a4d19}
.mz-fmm-page .mz-fmm-account{display:flex;align-items:center;flex-wrap:nowrap;gap:6px;justify-content:space-between;margin:0 0 2px;border:1px solid var(--fmm-line);background:#fff;box-shadow:0 2px 8px #152b4a05;border-radius:12px;padding:6px 10px;min-height:45px}
.mz-fmm-page .mz-fmm-account-item{min-width:0;flex:1;padding:3px 9px;border-right:1px solid #eaf0f6}
.mz-fmm-page .mz-fmm-account-student{flex:1.7;min-width:0}
.mz-fmm-page .mz-fmm-account-item:nth-child(4){border-right:0}
.mz-fmm-page .mz-fmm-account .mz-fmm-label{display:block;font-size:9px;letter-spacing:.03em;color:#8290a4;margin:0 0 2px}
.mz-fmm-page .mz-fmm-account strong{font-size:11px;color:#254264;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:750}
.mz-fmm-page .mz-fmm-refresh{font-size:11px;font-weight:750;background:#f0f5ff;color:#2a5db2;border:1px solid #d5e3f8;padding:6px 10px;border-radius:8px;white-space:nowrap}
.mz-fmm-page .mz-fmm-access-note{font-size:10px;line-height:1.35;min-height:13px;margin:4px 10px 7px;color:#73849b;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.mz-fmm-page .mz-fmm-payment-status{font-size:11px;line-height:1.45;margin:3px 10px 8px;padding:7px 10px;border-radius:8px;background:#e5f7ee;color:#176c45;border:1px solid #b9e7d0}
.mz-fmm-page .mz-fmm-payment-status[data-error="true"]{background:#fff4e5;border-color:#f0d5a6;color:#9a531c}
.mz-fmm-page .mz-fmm-grid{display:grid;grid-template-columns:minmax(0,1.67fr) minmax(320px,1fr);gap:12px;align-items:stretch;min-width:0}
.mz-fmm-page .mz-fmm-workspace{display:flex;flex-direction:column;min-width:0;min-height:0;gap:8px;overflow:hidden}
.mz-fmm-page .mz-fmm-card,.mz-fmm-page .mz-fmm-mistake-brief{background:#fff;border:1px solid var(--fmm-line);box-shadow:0 5px 22px #1d39610b;border-radius:15px;min-width:0}
.mz-fmm-page .mz-fmm-mistake-brief{flex:0 0 auto;max-height:46%;overflow:auto;scrollbar-width:thin}
.mz-fmm-page .mz-fmm-mistake-summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px;min-height:56px;padding:10px 13px}
.mz-fmm-page .mz-fmm-mistake-summary::-webkit-details-marker{display:none}
.mz-fmm-page .mz-fmm-original-icon{display:grid;place-items:center;background:#ffedef;color:#be4557;font-weight:900;width:27px;height:27px;border-radius:9px;flex:0 0 auto}
.mz-fmm-page .mz-fmm-mistake-titles{display:block;min-width:0;flex:1}
.mz-fmm-page .mz-fmm-mistake-titles strong{display:block;font-size:12px;font-weight:850;color:#223d60;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.mz-fmm-page .mz-fmm-mistake-titles small{display:block;font-size:10px;color:#7b8a9c;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-top:2px}
.mz-fmm-page .mz-fmm-expand-hint{font-size:19px;font-weight:700;color:#7e94ac;transform:rotate(0);transition:transform .15s}
.mz-fmm-page .mz-fmm-mistake-brief[open] .mz-fmm-expand-hint{transform:rotate(180deg)}
.mz-fmm-page .mz-fmm-pill{display:inline-block;padding:5px 9px;border-radius:99px;background:#eef5ff;border:1px solid #dce8fb;color:#3360a4;font-weight:800;font-size:10px;white-space:nowrap}
.mz-fmm-page .mz-fmm-mistake-body{padding:0 13px 13px}
.mz-fmm-page .mz-fmm-comparison{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0}
.mz-fmm-page .mz-fmm-error-block{margin:0;min-width:0;background:#fff8f7;border:1px solid #f5d9d4;border-radius:10px;padding:10px}
.mz-fmm-page .mz-fmm-correct-block{background:#f0fbf8;border-color:#d0eee4}
.mz-fmm-page .mz-fmm-error-block .mz-fmm-label{margin:0 0 5px;font-size:10px;color:#aa4b52}
.mz-fmm-page .mz-fmm-correct-block .mz-fmm-label{color:#17856f}
.mz-fmm-page .mz-fmm-math{font-size:14px;color:#243c55;line-height:1.6;overflow-wrap:anywhere}
.mz-fmm-page .mz-fmm-explanation{font-size:11px;line-height:1.55;color:#637892;margin:8px 0 0;white-space:pre-wrap}
.mz-fmm-page .mz-fmm-questions{padding:14px 16px 12px;display:flex;flex:1;flex-direction:column;min-height:0;overflow:auto;scrollbar-width:thin}
.mz-fmm-page .mz-fmm-card-head{display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:10px;margin:0 0 8px}
.mz-fmm-page .mz-fmm-overline{display:block;color:#718bad;letter-spacing:.1em;font-size:9px;font-weight:850}
.mz-fmm-page .mz-fmm-question-heading{min-width:0}
.mz-fmm-page .mz-fmm-questions h2{margin:2px 0 0;color:#182f50;letter-spacing:-.035em;font-size:18px;font-weight:850;line-height:1.25}
.mz-fmm-page .mz-fmm-progress{display:flex;gap:8px;margin:2px 0 10px;width:100%}
.mz-fmm-page .mz-fmm-progress-step{height:30px;flex:1;min-width:0;border-radius:9px;background:#f3f6fb;border:1px solid #e0e8f2;color:#6d819c;font-size:11px;font-weight:850;padding:0;position:relative;cursor:pointer}
.mz-fmm-page .mz-fmm-progress-step.is-current{color:#fff;background:#245fd2;border-color:#245fd2;box-shadow:0 3px 9px #275dd92b}
.mz-fmm-page .mz-fmm-progress-step[data-progress="completed"]:not(.is-current){background:#e4f7ee;border-color:#b9e4d0;color:#13865c}
.mz-fmm-page .mz-fmm-progress-step:disabled{cursor:default;opacity:.6}
.mz-fmm-page .mz-fmm-context{font-size:11px;color:#73849a;line-height:1.4;margin:0 0 7px}
.mz-fmm-page .mz-fmm-generation-status{font-size:11px;color:#2662c1;padding:8px 10px;background:#eaf3ff;border:1px solid #c8ddfa;border-radius:9px;margin:0 0 8px}
/* Progressive recovery: five stable ordinal slots, first question shown upon verification. */
.mz-fmm-page .mz-fmm-progress-step[data-progress="preparing"]{color:#8799ae;background:#f5f7fb;border-style:dashed;border-color:#dce6ef;opacity:.65}
.mz-fmm-page .mz-fmm-progress-step[data-progress="unavailable"]{color:#988d87;background:#faf7f5;border-color:#ebdfd8;opacity:.7}
.mz-fmm-page .mz-fmm-progress-step:disabled{cursor:not-allowed}
.mz-fmm-page .mz-fmm-question-skeleton{display:flex;flex-direction:column;justify-content:center;gap:14px;flex:1 1 120px;min-height:108px;margin:0 0 9px;padding:26px 24px;border:1px solid #e4ebf5;border-radius:12px;background:#f8faff;overflow:hidden}
.mz-fmm-page .mz-fmm-skeleton-line{display:block;height:15px;border-radius:6px;background:linear-gradient(90deg,#e7edf6 15%,#f6f8fc 45%,#e7edf6 75%);background-size:220% 100%;animation:mz-fmm-skeleton-shimmer 2.2s ease-in-out infinite}
.mz-fmm-page .mz-fmm-skeleton-wide{width:85%}
.mz-fmm-page .mz-fmm-skeleton-medium{width:66%}
.mz-fmm-page .mz-fmm-skeleton-short{width:38%}
.mz-fmm-page .mz-fmm-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.mz-fmm-page .mz-fmm-partial-notice{margin:0 0 8px;padding:8px 10px;border:1px solid #f0dfc9;border-radius:9px;background:#fffaf2;color:#835a30;font-size:11px;line-height:1.5}
@keyframes mz-fmm-skeleton-shimmer{0%{background-position:100% 0}100%{background-position:-100% 0}}

.mz-fmm-page .mz-fmm-question-text{display:flex;flex-direction:column;justify-content:center;background:#f8faff;border:1px solid #e2eaf7;border-radius:12px;padding:22px 23px;color:#162c49;font-size:clamp(17px,1.65vw,23px);font-weight:550;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 9px;flex:1 1 120px;min-height:108px;overflow:auto}
.mz-fmm-page .mz-fmm-question-text mjx-container{max-width:100%;overflow-x:auto;overflow-y:hidden}
.mz-fmm-page .mz-fmm-empty{margin:0 0 9px;border:1px solid #dee9f6;background:#f7faff;color:#4f6888;border-radius:12px;padding:14px 16px;font-size:12px;line-height:1.6}
.mz-fmm-page .mz-fmm-retry{display:block;margin:9px 0 0;padding:8px 12px;border-radius:8px;background:#245fd2;color:white;border:0;font-size:11px;font-weight:750;cursor:pointer}
.mz-fmm-page .mz-fmm-nav{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:0 0 9px}
.mz-fmm-page .mz-fmm-nav button{flex:0 0 auto;min-width:98px;padding:8px 11px;font-size:11px;font-weight:800;color:#315785;background:#f4f8ff;border:1px solid #d6e3f5;border-radius:9px}
.mz-fmm-page .mz-fmm-nav button:last-child:not(:disabled){color:white;background:#245fd2;border-color:#245fd2}
.mz-fmm-page .mz-fmm-nav button:disabled{opacity:.4;cursor:not-allowed}
.mz-fmm-page .mz-fmm-question-stage{font-size:10px;color:#667e98;text-align:center;min-width:0;line-height:1.2;font-weight:750}
.mz-fmm-page .mz-fmm-submission{padding:10px 0 0;margin:0;border-top:1px solid #e5edf6;flex:0 0 auto}
.mz-fmm-page .mz-fmm-upload-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 0 8px}
.mz-fmm-page .mz-fmm-upload-head strong{font-size:12px;color:#1e3d62;font-weight:850}
.mz-fmm-page .mz-fmm-upload-head span{color:#7f8ea2;font-size:10px}
.mz-fmm-page .mz-fmm-upload-actions{display:flex;gap:7px;margin:0 0 8px}
.mz-fmm-page .mz-fmm-upload-choice{flex:1;flex-direction:row;min-width:0;min-height:38px;gap:6px;padding:7px 9px;border-radius:9px;background:#f6f9fd;border:1px solid #dce6f2;color:#395777;font-size:11px;font-weight:750;white-space:nowrap}
.mz-fmm-page .mz-fmm-upload-choice span{font-size:16px;background:none;width:auto;height:auto}
.mz-fmm-page .mz-fmm-upload-preview{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-height:32px;padding:6px 10px;margin:0 0 7px;background:#fbfcff;border:1px dashed #dce5f1;border-radius:9px;color:#8393a8;font-size:10px}
.mz-fmm-page .mz-fmm-upload-preview img{max-height:75px;max-width:180px;object-fit:contain}
.mz-fmm-page .mz-fmm-upload-preview button{padding:4px 7px;font-size:10px;margin-left:auto}
.mz-fmm-page .mz-fmm-check-button{width:100%;min-height:37px;padding:8px 13px;border-radius:9px;font-size:12px;font-weight:850;background:#245fd2;color:#fff;border:0;box-shadow:none}
.mz-fmm-page .mz-fmm-check-button:hover:not(:disabled){background:#1a4db6}
.mz-fmm-page .mz-fmm-check-status{min-height:0;margin:5px 0 0;line-height:1.4;font-size:10px;color:#4f6784}
.mz-fmm-page .mz-fmm-check-status:empty{display:none}
.mz-fmm-page .mz-fmm-check-status[data-error="true"]{color:#b44934}
.mz-fmm-page .mz-feedback-panel,.mz-fmm-page .mz-feedback-panel.mz-tutor-ui-active{position:relative!important;top:auto!important;margin:0;display:flex;flex-direction:column;height:100%;min-height:0;max-height:none;min-width:0;overflow:hidden;padding:0!important;border-radius:15px;border:1px solid var(--fmm-line);background:#fff;box-shadow:0 5px 22px #1d39610b}
.mz-fmm-page .mz-feedback-panel:not(.mz-tutor-ui-active){padding:0!important}
.mz-fmm-page .mz-feedback-panel>.mz-panel-header{display:flex;align-items:center;padding:16px 17px 7px}
.mz-fmm-page .mz-feedback-panel>.mz-panel-header h2{font-size:17px;margin:2px 0 0;color:#17365c}
.mz-fmm-page .mz-fmm-feedback-empty{padding:10px 17px;color:#586f89;font-size:12px;line-height:1.6}
.mz-fmm-page .mz-fmm-feedback-empty strong{color:#21466e}
.mz-fmm-page .mz-fmm-examiner-feedback{overflow:auto;max-height:100%;padding:10px}
.mz-fmm-page .mz-tutor-panel{display:flex;flex:1;flex-direction:column;height:100%;min-height:0;max-height:100%}
.mz-fmm-page .mz-tutor-topbar{padding:9px 12px 7px;background:#fcfdff;gap:9px}
.mz-fmm-page .mz-tutor-brandline{font-size:13px;color:#17365b}
.mz-fmm-page .mz-tutor-question-label{font-size:10px}
.mz-fmm-page .mz-tutor-score{padding:6px 8px;min-width:77px;border-radius:10px}
.mz-fmm-page .mz-tutor-score-value{font-size:15px}
.mz-fmm-page .mz-tutor-messages{flex:1;overflow:auto;min-height:0;padding:10px}
.mz-fmm-page .mz-tutor-quick-actions{padding:7px 9px;gap:5px}
.mz-fmm-page .mz-tutor-composer{padding:8px 9px;gap:6px}
.mz-fmm-page .mz-tutor-composer textarea{min-height:35px;font-size:12px}
.mz-fmm-page .mz-tutor-composer-status{font-size:10px}
.mz-fmm-page .mz-fmm-mobile-tutor,.mz-fmm-page .mz-fmm-mobile-tutor-close,.mz-fmm-page .mz-fmm-tutor-backdrop{display:none}
.mz-fmm-page :is(button,a,summary):focus-visible{outline:3px solid #7bc5ff!important;outline-offset:2px}
@media(min-width:1021px) and (min-height:670px){
  .mz-fmm-page{height:calc(100dvh - 105px);min-height:540px;overflow:hidden}
  .mz-fmm-page .mz-fmm-wrap{display:flex;flex-direction:column;height:100%;min-height:0}
  .mz-fmm-page #mzFmmPrivate:not([hidden]){display:flex;flex-direction:column;flex:1;min-height:0}
  .mz-fmm-page .mz-fmm-grid{flex:1;min-height:0}
}
@media(min-width:1021px) and (max-height:669px){
  .mz-fmm-page .mz-fmm-grid{min-height:540px}
}
@media(max-width:1180px) and (min-width:921px){
  .mz-fmm-page .mz-fmm-grid{grid-template-columns:minmax(0,1.5fr) minmax(295px,1fr);gap:9px}
  .mz-fmm-page .mz-fmm-question-text{padding:15px}
  .mz-fmm-page .mz-fmm-upload-head span{display:none}
}
@media(max-width:1020px){
  .mz-fmm-page{height:auto;overflow:visible}
  .mz-fmm-page .mz-fmm-grid{grid-template-columns:minmax(0,1fr);gap:10px}
  .mz-fmm-page .mz-fmm-workspace{overflow:visible}
  .mz-fmm-page .mz-fmm-questions{min-height:410px;overflow:visible}
  .mz-fmm-page .mz-feedback-panel,.mz-fmm-page .mz-feedback-panel.mz-tutor-ui-active{height:460px;min-height:0}
  .mz-fmm-page .mz-fmm-mistake-brief{max-height:none}
  .mz-fmm-page .mz-fmm-question-text{min-height:120px}
}
@media(max-width:700px){
  .mz-fmm-page{padding:9px 9px 89px}
  .mz-fmm-page .mz-fmm-heading{padding:2px;min-height:61px;margin-bottom:8px}
  .mz-fmm-page .mz-fmm-heading h1{font-size:23px}
  .mz-fmm-page .mz-fmm-heading p{font-size:10px}
  .mz-fmm-page .mz-fmm-eyebrow{display:none}
  .mz-fmm-page .mz-fmm-header-badge{display:none}
  .mz-fmm-page .mz-fmm-account{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:7px}
  .mz-fmm-page .mz-fmm-account-item{padding:6px 9px;border-right:0;border-bottom:1px solid #edf1f5}
  .mz-fmm-page .mz-fmm-account .mz-fmm-label{font-size:9px}
  .mz-fmm-page .mz-fmm-account strong{font-size:10px}
  .mz-fmm-page .mz-fmm-refresh{grid-column:1/-1;justify-self:end}
  .mz-fmm-page .mz-fmm-access-note{white-space:normal;max-height:32px}
  .mz-fmm-page .mz-fmm-comparison{grid-template-columns:1fr}
  .mz-fmm-page .mz-fmm-questions{padding:13px 12px;min-height:390px}
  .mz-fmm-page .mz-fmm-question-text{padding:18px 14px;font-size:18px}
  .mz-fmm-page .mz-fmm-upload-choice{font-size:10px;padding:7px 4px}
  .mz-fmm-page .mz-fmm-question-stage{font-size:9px}
  .mz-fmm-page .mz-fmm-nav button{min-width:82px}
  .mz-fmm-page .mz-fmm-mobile-tutor{display:flex;position:fixed;left:50%;bottom:12px;transform:translateX(-50%);z-index:1995;min-width:min(92vw,320px);align-items:center;justify-content:space-between;gap:16px;padding:12px 16px;border:1px solid #1f4dad;border-radius:50px;background:#1948ae;color:white;font-size:12px;font-weight:850;box-shadow:0 12px 28px #18356850}
  .mz-fmm-page .mz-fmm-mobile-tutor-close{display:block;flex:0 0 auto;width:100%;text-align:left;border:0;border-bottom:1px solid #e5eaf4;background:#f7f9fd;color:#2a5594;padding:13px 16px;font-size:12px;font-weight:800}
  .mz-fmm-page .mz-feedback-panel,.mz-fmm-page .mz-feedback-panel.mz-tutor-ui-active{display:none!important;position:fixed!important;inset:0!important;z-index:2001;width:100%;height:100dvh!important;max-height:100dvh!important;border:0;border-radius:0}
  .mz-fmm-page.is-tutor-open .mz-feedback-panel,.mz-fmm-page.is-tutor-open .mz-feedback-panel.mz-tutor-ui-active{display:flex!important;flex-direction:column}
  .mz-fmm-page.is-tutor-open .mz-fmm-mobile-tutor{display:none}
  .mz-fmm-page.is-tutor-open .mz-fmm-tutor-backdrop:not([hidden]){display:block;position:fixed;inset:0;z-index:1999;background:#0b1b3359}
  .mz-fmm-page .mz-tutor-panel{flex:1;height:auto;min-height:0}
}
@media(max-width:360px){.mz-fmm-page .mz-fmm-upload-choice{font-size:9px}.mz-fmm-page .mz-fmm-question-stage{display:none}}
@media(prefers-reduced-motion:reduce){.mz-fmm-page *{transition:none!important;scroll-behavior:auto!important}.mz-fmm-page .mz-fmm-skeleton-line{animation:none!important}}