/* Phase 2 scoped scaffold. Final premium visual treatment belongs to Phase 4. */
.mz-fmm-page{font-family:Inter,"Plus Jakarta Sans",system-ui,sans-serif;color:#14263a;background:#f8fafc;min-height:75vh;padding:40px 18px 72px;font-size:14px}
.mz-fmm-page *{box-sizing:border-box}
.mz-fmm-wrap{max-width:1240px;margin:0 auto}
.mz-fmm-heading{margin-bottom:24px}
.mz-fmm-back{display:inline-block;margin-bottom:22px;color:#2563eb!important;font-size:13px;font-weight:700;text-decoration:none!important}
.mz-fmm-back:hover{text-decoration:underline!important}
.mz-fmm-eyebrow,.mz-fmm-overline{font-size:11px;letter-spacing:.07em;color:#64748b;font-weight:800}
.mz-fmm-heading h1{font-size:clamp(28px,3vw,40px);letter-spacing:-.04em;line-height:1.1;margin:10px 0 8px;color:#102b42}
.mz-fmm-heading p{margin:0;color:#64748b;line-height:1.7}
.mz-fmm-notice{padding:14px 18px;background:#edf4ff;border:1px solid #bfdbfe;color:#1e40af;border-radius:12px;margin-bottom:18px;font-weight:600}
.mz-fmm-notice[hidden],.mz-fmm-page [hidden]{display:none!important}
.mz-fmm-account{display:flex;flex-wrap:wrap;gap:15px;align-items:center;justify-content:space-between;background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:17px 20px;margin-bottom:12px}
.mz-fmm-account>div{min-width:130px;overflow-wrap:anywhere}
.mz-fmm-label{display:block;color:#64748b;font-size:11px;font-weight:700;margin-bottom:5px}
.mz-fmm-account strong{font-size:13px}
.mz-fmm-refresh,.mz-fmm-nav button{font-family:inherit;font-size:13px;font-weight:750;border-radius:10px;padding:10px 13px;cursor:pointer;border:1px solid #cbd5e1;background:#fff;color:#1e3a5f}
.mz-fmm-refresh:hover,.mz-fmm-nav button:hover:not(:disabled){border-color:#2563eb;color:#1d4ed8}
.mz-fmm-refresh:focus-visible,.mz-fmm-nav button:focus-visible,.mz-fmm-back:focus-visible{outline:3px solid #60a5fa;outline-offset:3px}
.mz-fmm-nav button:disabled{opacity:.4;cursor:not-allowed}
.mz-fmm-access-note{margin:5px 0 20px;color:#475569;font-size:13px}
.mz-fmm-grid{display:grid;grid-template-columns:minmax(310px,.9fr) minmax(0,1.2fr);gap:18px;align-items:start}
.mz-fmm-card{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:26px;box-shadow:0 8px 20px rgba(15,23,42,.025);min-width:0}
.mz-fmm-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:15px}
.mz-fmm-card h2{font-size:20px;margin:0 0 10px;letter-spacing:-.02em;color:#172d45}
.mz-fmm-context{font-size:12px;color:#64748b;line-height:1.65;margin:0 0 16px}
.mz-fmm-pill{font-size:11px;font-weight:750;border-radius:20px;padding:5px 9px;color:#475569;background:#f1f5f9}
.mz-fmm-error-block{border:1px solid #fee2e2;background:#fff7f7;border-radius:11px;padding:15px;margin:13px 0}
.mz-fmm-correct-block{border-color:#bbf7d0;background:#f3fff7}
.mz-fmm-math{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;font-size:14px;color:#1e293b}
.mz-fmm-explanation{font-size:13px;line-height:1.7;color:#475569;margin:17px 0 0;white-space:pre-wrap}
.mz-fmm-question-text{white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid #e2e8f0;border-radius:12px;padding:26px 19px;min-height:148px;font-size:17px;line-height:1.8;margin:18px 0 15px}
.mz-fmm-empty{padding:15px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;border-radius:10px;margin-bottom:14px;line-height:1.6}
.mz-fmm-nav{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:16px 0 26px}
.mz-fmm-stage-note{border-top:1px solid #e2e8f0;padding-top:16px;color:#475569;font-size:12px;line-height:1.6}
.mz-fmm-stage-note strong{color:#1f3a56}
.mz-fmm-stage-note p{margin:4px 0 0}
@media(max-width:860px){.mz-fmm-grid{grid-template-columns:1fr}.mz-fmm-page{padding:24px 13px 40px}.mz-fmm-card{padding:19px}.mz-fmm-account{gap:18px}}
@media(max-width:460px){.mz-fmm-nav button{flex:1}.mz-fmm-account>div{min-width:42%}}

/* Phase 3 functional layout. Premium visual redesign follows in Phase 4. */
.mz-fmm-page{--mz-border:#d5dfeb;--mz-primary:#2563eb;--mz-muted:#475467}
@media (min-width:1150px){.mz-fmm-wrap{max-width:1510px}.mz-fmm-grid{grid-template-columns:minmax(230px,.85fr) minmax(370px,1.25fr) minmax(330px,1fr);gap:14px}.mz-fmm-card{padding:22px}}
.mz-fmm-submission{border-top:1px solid #e2e8f0;padding-top:22px;margin-top:18px}
.mz-fmm-submission h3{margin:0 0 8px;color:#142b44;font-size:19px}
.mz-fmm-submission>p{font-size:13px;color:#64748b;line-height:1.55}
.mz-fmm-upload-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:15px 0 13px}
.mz-fmm-upload-choice{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;min-height:85px;background:#f8fafc;border:1px solid #d7e4f3;border-radius:13px;color:#1e3a5f;font-size:12px;font-weight:800;padding:10px 6px;cursor:pointer;line-height:1.25}
.mz-fmm-upload-choice span{font-size:23px}.mz-fmm-upload-choice:hover{background:#eff6ff;border-color:#2563eb}
.mz-fmm-upload-preview{border:1px dashed #cbd5e1;background:#fafcff;padding:13px;border-radius:12px;margin:10px 0 16px;display:flex;flex-wrap:wrap;gap:10px;align-items:center;color:#64748b;font-size:12px}
.mz-fmm-upload-preview img{width:100%;max-height:225px;object-fit:contain;background:#fff;border-radius:7px}
.mz-fmm-upload-preview button{margin-left:auto;border:0;background:#fee2e2;color:#991b1b;border-radius:8px;cursor:pointer;padding:5px 10px;font-size:12px}
.mz-fmm-check-button{width:100%;min-height:49px;padding:12px 16px;background:#2563eb;border:0;border-radius:13px;color:#fff;font-size:14px;font-weight:800;cursor:pointer;box-shadow:0 9px 20px rgba(37,99,235,.18)}
.mz-fmm-check-button:hover:not(:disabled){background:#1d4ed8}.mz-fmm-check-button:disabled{opacity:.5;cursor:not-allowed}
.mz-fmm-check-status{font-size:12px;line-height:1.6;color:#334155;min-height:20px;margin:10px 0 0}.mz-fmm-check-status[data-error=true]{color:#b91c1c}
.mz-fmm-page .mz-feedback-panel{position:sticky;top:25px;min-height:460px;padding:20px;max-height:calc(100vh - 40px);overflow-y:auto}
.mz-fmm-page .mz-feedback-panel .mz-panel-header{display:flex;justify-content:space-between}
.mz-fmm-feedback-empty{line-height:1.6;background:#f8fafc;border:1px solid #e2e8f0;padding:18px;border-radius:12px;font-size:13px}
.mz-fmm-feedback-empty p{margin:9px 0 0;color:#64748b}
.mz-fmm-examiner-feedback{font-size:13px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.mz-fmm-marks{font-size:18px;font-weight:800;color:#1e40af;margin-bottom:10px}
.mz-fmm-examiner-text{line-height:1.7;font-size:13px;color:#344054}
.mz-fmm-page .mz-tutor-panel{max-height:none}.mz-fmm-page .mz-tutor-messages{min-height:240px}
/* Premium modal: mirrors the exact IB Practice card structure, colors and treatment. */
.mz-fmm-page .mz-modal-overlay{position:fixed;z-index:999999;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(15,23,42,.58);backdrop-filter:blur(8px);padding:18px}
.mz-fmm-page .mz-subscription-card{width:min(100%,540px);background:#fff;border:1px solid rgba(229,231,235,.95);border-radius:30px;box-shadow:0 34px 100px rgba(15,23,42,.34);padding:28px;position:relative;overflow:hidden;text-align:left}
.mz-fmm-page .mz-subscription-card::before{content:'';position:absolute;inset:0;background:radial-gradient(circle at top left,rgba(249,115,22,.14),transparent 34%),radial-gradient(circle at bottom right,rgba(37,99,235,.12),transparent 32%);pointer-events:none}
.mz-fmm-page .mz-subscription-card>*{position:relative;z-index:2}
.mz-fmm-page .mz-modal-close{position:absolute;top:14px;right:14px;z-index:3;width:36px;height:36px;border:1px solid #d5dfeb;border-radius:999px;background:#fff;color:#475467;font-size:20px;line-height:1;cursor:pointer}
.mz-fmm-page .mz-subscription-icon{width:74px;height:74px;border-radius:26px;display:grid;place-items:center;font-size:33px;background:linear-gradient(135deg,#ffedd5,#eff6ff);box-shadow:0 14px 30px rgba(15,23,42,.08);margin-bottom:15px}
.mz-fmm-page .mz-subscription-card h3{margin:0 0 10px;color:#0f172a;font-size:27px;line-height:1.15;font-weight:950;letter-spacing:-.4px}
.mz-fmm-page .mz-subscription-card p{margin:0 0 16px;color:#475467;line-height:1.7;font-size:15px}
.mz-fmm-page .mz-subscription-list{display:grid;gap:8px;margin:14px 0 18px}.mz-fmm-page .mz-subscription-list div{background:rgba(248,250,252,.86);border:1px solid #e5e7eb;border-radius:14px;padding:10px 12px;color:#344054;font-size:13.5px;font-weight:750}
.mz-fmm-page .mz-subscription-actions{display:grid;grid-template-columns:1fr;gap:10px}.mz-fmm-page .mz-fmm-nav-button{padding:12px;border-radius:12px;background:#f8fafc;border:1px solid #d5dfeb;color:#344054;font-weight:750;cursor:pointer}
.mz-fmm-page .mz-modal-small{margin-top:10px;color:#475467;font-size:13.5px;line-height:1.55}
.mz-fmm-qr-card{text-align:center!important}.mz-fmm-qr-card img{display:block;max-width:100%;object-fit:contain;margin:15px auto}.mz-fmm-qr-url{font-size:11px!important;overflow-wrap:anywhere;color:#1d4ed8!important}
@media(max-width:1149px){.mz-fmm-page .mz-feedback-panel{position:static;max-height:none}.mz-fmm-grid{grid-template-columns:1fr 1fr}.mz-feedback-panel{grid-column:1/-1}}
@media(max-width:760px){.mz-fmm-grid{grid-template-columns:1fr}.mz-feedback-panel{grid-column:1}.mz-fmm-upload-actions{grid-template-columns:repeat(3,minmax(0,1fr))}}
