/* Mathzem Fix My Mistake — Study Workspace 2.0, scoped, additive design.
 * Loaded last. No global body/theme rules, no changes to the shared Tutor.
 * The question is a normal-height document, never a fixed-height inner scroller.
 */
.mz-fmm-page.mz-fmm-study-v2 {
  --fmm-ink: #14243d;
  --fmm-muted: #64748b;
  --fmm-line: #e3eaf3;
  --fmm-blue: #2563eb;
  font-family: Inter, "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  color: var(--fmm-ink);
  background: radial-gradient(ellipse 60% 30% at 13% -10%,#e3edff 0%,transparent 100%),#f6f8fc;
  font-size: 14px;
  padding: 28px clamp(12px,2.1vw,32px) 90px;
  min-height: 100vh;
  height: auto;
  overflow: visible;
}
.mz-fmm-study-v2 *, .mz-fmm-study-v2 *::before, .mz-fmm-study-v2 *::after { box-sizing:border-box; }
.mz-fmm-study-v2 [hidden] { display:none!important; }
.mz-fmm-study-v2 .mz-fmm-wrap { max-width: 1580px; margin: 0 auto; height:auto; display:block; }
.mz-fmm-study-v2 #mzFmmPrivate:not([hidden]) { display:block; height:auto; min-height:0; flex:none; }

/* Top heading has exactly one small title, not a separate tall hero. */
.mz-fmm-study-v2 .mz-fmm-heading {
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  min-height:0; padding:0; margin:0 0 23px;
}
.mz-fmm-study-v2 .mz-fmm-heading-main { display:flex; align-items:center; flex-wrap:wrap; gap:clamp(14px,2.4vw,35px); }
.mz-fmm-study-v2 .mz-fmm-back {
  display:inline-flex; align-items:center; gap:8px; margin:0; padding:11px 15px;
  border:1px solid #d9e4f2; background:#fff; border-radius:12px;
  color:#375777!important; text-decoration:none!important; font-size:13px; font-weight:700;
  box-shadow:0 2px 8px rgba(15,39,78,.025); white-space:nowrap;
}
.mz-fmm-study-v2 .mz-fmm-back span { font-size:19px; line-height:1; }
.mz-fmm-study-v2 .mz-fmm-back:hover { border-color:#a7c0ee; color:#1d4ed8!important; }
.mz-fmm-study-v2 .mz-fmm-heading-title { display:flex; align-items:center; gap:13px; min-width:0; }
.mz-fmm-study-v2 .mz-fmm-heading-spark {
  width:44px; height:44px; display:grid; place-items:center; flex:0 0 auto; border-radius:14px;
  background:linear-gradient(145deg,#2563eb,#3d8aec); color:#fff; font-size:24px;
  box-shadow:0 8px 19px rgba(37,99,235,.18);
}
.mz-fmm-study-v2 .mz-fmm-heading h1 { margin:0; line-height:1.15; font-size:clamp(23px,2vw,30px); font-weight:800; color:#10294c; letter-spacing:-.045em; }
.mz-fmm-study-v2 .mz-fmm-heading p { margin:4px 0 0; font-size:12px; color:#7c8ba2; line-height:1.5; }
.mz-fmm-study-v2 .mz-fmm-header-badge { border:0; background:none; color:#94a3b8; font-size:10px; font-weight:750; letter-spacing:.12em; padding:5px 0; }
.mz-fmm-study-v2 .mz-fmm-notice { max-width:none; margin:0 0 14px; padding:12px 16px; border-radius:12px; font-size:13px; }

/* Discreet and optional account controls; all original credit IDs remain present. */
.mz-fmm-study-v2 .mz-fmm-utility-bar { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; position:relative; margin:0 0 17px; min-height:38px; }
.mz-fmm-study-v2 .mz-fmm-account-details { position:relative; min-width:0; z-index:10; }
.mz-fmm-study-v2 .mz-fmm-account-toggle,
.mz-fmm-study-v2 .mz-fmm-tutor-toggle { display:inline-flex; align-items:center; justify-content:center; gap:9px; padding:9px 13px; min-height:38px; border:1px solid #e0e8f2; background:#fff; border-radius:11px; color:#4a607a; cursor:pointer; font:700 12px/1.2 Inter,system-ui,sans-serif; }
.mz-fmm-study-v2 .mz-fmm-account-toggle { list-style:none; }
.mz-fmm-study-v2 .mz-fmm-account-toggle::-webkit-details-marker { display:none; }
.mz-fmm-study-v2 .mz-fmm-utility-icon { font-size:16px; color:#3568cf; }
.mz-fmm-study-v2 .mz-fmm-utility-chevron { font-size:17px; line-height:.7; transition:transform .2s; }
.mz-fmm-study-v2 .mz-fmm-account-details[open] .mz-fmm-utility-chevron { transform:rotate(180deg); }
.mz-fmm-study-v2 .mz-fmm-account-details-content { position:absolute; top:calc(100% + 9px); left:0; z-index:12; width:min(790px,calc(100vw - 38px)); border:1px solid #dee7f3; background:#fff; border-radius:16px; padding:18px; box-shadow:0 20px 48px rgba(22,45,86,.15); }
.mz-fmm-study-v2 .mz-fmm-account { display:grid; grid-template-columns:minmax(120px,1.8fr) repeat(3,minmax(90px,1fr)) auto; align-items:center; gap:10px; margin:0; padding:0; border:0; background:none; box-shadow:none; min-height:0; }
.mz-fmm-study-v2 .mz-fmm-account-item { border:0; border-right:1px solid #ecf0f5; padding:4px 10px; min-width:0; }
.mz-fmm-study-v2 .mz-fmm-account-item:nth-child(4) { border:0; }
.mz-fmm-study-v2 .mz-fmm-account .mz-fmm-label { font-size:10px; color:#8996a9; margin-bottom:4px; }
.mz-fmm-study-v2 .mz-fmm-account strong { font-size:12px; line-height:1.4; font-weight:750; color:#223954; }
.mz-fmm-study-v2 .mz-fmm-refresh { font-size:12px; padding:10px 12px; border-radius:10px; }
.mz-fmm-study-v2 .mz-fmm-access-note { white-space:normal; max-height:none; line-height:1.6; font-size:12px; min-height:0; margin:15px 6px 0; color:#76859b; }
.mz-fmm-study-v2 .mz-fmm-utility-actions { display:flex; align-items:center; justify-content:flex-end; gap:15px; margin-left:auto; }
.mz-fmm-study-v2 .mz-fmm-quiet-label { display:inline-flex; align-items:center; gap:8px; color:#7b8ba1; font-size:11px; font-weight:650; white-space:nowrap; }
.mz-fmm-study-v2 .mz-fmm-live-dot { height:8px; width:8px; border-radius:50%; background:#10b981; box-shadow:0 0 0 4px #dff7ef; }
.mz-fmm-study-v2 .mz-fmm-tutor-toggle { color:#285cc0; border-color:#cfe0fc; background:#eff5ff; }
.mz-fmm-study-v2 .mz-fmm-tutor-toggle:hover, .mz-fmm-study-v2 .mz-fmm-account-toggle:hover { border-color:#92b6fa; background:#edf5ff; }
.mz-fmm-study-v2 .mz-fmm-tutor-toggle span { font-size:16px; line-height:1; }
.mz-fmm-study-v2 .mz-fmm-payment-status { margin:0 0 15px; font-size:12px; padding:11px 13px; }

/* Question-first page. Scrolling belongs to the browser, not the question. */
.mz-fmm-study-v2 .mz-fmm-grid { display:grid; grid-template-columns:minmax(0,7fr) minmax(310px,3fr); align-items:start; gap:22px; min-height:0; height:auto; flex:none; }
.mz-fmm-study-v2.is-tutor-collapsed .mz-fmm-grid { grid-template-columns:minmax(0,1fr); }
.mz-fmm-study-v2.is-tutor-collapsed #mzFmmTutorAside { display:none!important; }
.mz-fmm-study-v2 .mz-fmm-workspace { display:flex; flex-direction:column; gap:15px; overflow:visible; min-height:0; min-width:0; }
.mz-fmm-study-v2 .mz-fmm-card, .mz-fmm-study-v2 .mz-fmm-mistake-brief { border:1px solid #e2eaf4; background:#fff; box-shadow:0 10px 34px rgba(33,61,103,.045); border-radius:20px; }
.mz-fmm-study-v2 .mz-fmm-questions { display:block; overflow:visible; height:auto; flex:none; min-height:0; padding:clamp(22px,2.6vw,39px); }
.mz-fmm-study-v2 .mz-fmm-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin:0 0 24px; }
.mz-fmm-study-v2 .mz-fmm-overline { color:#4074c6; font-size:10px; font-weight:850; letter-spacing:.1em; }
.mz-fmm-study-v2 .mz-fmm-questions h2 { font-size:clamp(22px,2.1vw,29px); font-weight:820; letter-spacing:-.045em; color:#172d49; line-height:1.2; margin:7px 0 0; }
.mz-fmm-study-v2 .mz-fmm-pill { padding:8px 13px; font-size:12px; border-radius:12px; background:#eef5ff; color:#245cc2; border:1px solid #d9e7ff; font-weight:800; }
.mz-fmm-study-v2 .mz-fmm-progress { display:flex; gap:10px; width:100%; margin:0 0 12px; }
.mz-fmm-study-v2 .mz-fmm-progress-step { flex:1; min-width:0; height:42px; border:1px solid #dce5f1; background:#f8faff; border-radius:11px; color:#71839c; font-size:13px; font-weight:800; transition:background .14s,border-color .14s; }
.mz-fmm-study-v2 .mz-fmm-progress-step.is-current { background:linear-gradient(135deg,#245de0,#397dee); color:white; border-color:#2a6cea; box-shadow:0 6px 17px rgba(37,99,235,.16); }
.mz-fmm-study-v2 .mz-fmm-progress-step:not(:disabled):not(.is-current):hover { border-color:#a9c6fa; background:#edf5ff; }
.mz-fmm-study-v2 .mz-fmm-progress-step[data-progress="completed"]:not(.is-current) { background:#e7f8f1; color:#127b57; border-color:#c6ebdc; }
.mz-fmm-study-v2 .mz-fmm-progress-step[data-progress="preparing"] { border-style:dashed; }
.mz-fmm-study-v2 .mz-fmm-context { display:block; min-height:0; font-size:12px; font-weight:600; letter-spacing:.01em; color:#73849d; line-height:1.5; margin:0 0 22px; }
.mz-fmm-study-v2 .mz-fmm-context:empty { display:none; }

/* Large reading surface; entire question remains visible at any length. */
.mz-fmm-study-v2 .mz-fmm-paper { background:#fbfcff; border:1px solid #e2e9f5; border-radius:17px; padding:clamp(24px,3.2vw,51px); min-height:330px; display:flex; flex-direction:column; gap:16px; }
.mz-fmm-study-v2 .mz-fmm-paper-topline { display:flex; justify-content:space-between; align-items:center; gap:16px; margin:0 0 14px; }
.mz-fmm-study-v2 .mz-fmm-paper-label { font-size:12px; font-weight:850; letter-spacing:.12em; color:#306bcf; }
.mz-fmm-study-v2 .mz-fmm-paper-decoration { font-size:10px; font-weight:750; letter-spacing:.13em; color:#a0b1c7; }
.mz-fmm-study-v2 .mz-fmm-question-text {
  display:block; width:100%; min-width:0; min-height:190px; height:auto; flex:none;
  overflow:visible; margin:0; padding:0; border:0; border-radius:0; background:transparent;
  font-family:Inter,"Plus Jakarta Sans",system-ui,sans-serif;
  color:#182a44; font-size:clamp(19px,1.55vw,24px); font-weight:500;
  line-height:1.85; letter-spacing:-.012em; white-space:pre-wrap; overflow-wrap:break-word;
  word-break:normal; text-align:left;
}
.mz-fmm-study-v2 .mz-fmm-question-text mjx-container { max-width:100%; margin:0 .14em; vertical-align:middle; overflow-x:auto; overflow-y:visible; }
.mz-fmm-study-v2 .mz-fmm-question-text mjx-container[display="true"] { display:block; text-align:center; padding:12px 0; margin:15px 0; max-width:100%; overflow-x:auto; }
.mz-fmm-study-v2 .mz-fmm-question-text p { margin:0 0 18px; }
.mz-fmm-study-v2 .mz-fmm-question-text p:last-child { margin-bottom:0; }
.mz-fmm-study-v2 .mz-fmm-question-text sup { vertical-align:super; font-size:.68em; }
.mz-fmm-study-v2 .mz-fmm-question-text sub { vertical-align:sub; font-size:.68em; }
.mz-fmm-study-v2 .mz-fmm-question-skeleton { display:flex; flex-direction:column; gap:22px; justify-content:center; min-height:210px; flex:none; border:0; padding:20px 0; margin:0; background:none; overflow:visible; }
.mz-fmm-study-v2 .mz-fmm-skeleton-line { height:14px; border-radius:9px; }
.mz-fmm-study-v2 .mz-fmm-empty { margin:0; padding:22px; background:#fff; border:1px solid #e0e8f5; font-size:14px; line-height:1.7; }
.mz-fmm-study-v2 .mz-fmm-retry { margin:18px 0 0; padding:12px 17px; font-size:13px; border-radius:10px; }
.mz-fmm-study-v2 .mz-fmm-nav { display:grid; grid-template-columns:1fr minmax(100px,1fr) 1fr; gap:12px; align-items:center; margin:26px 0 0; }
.mz-fmm-study-v2 .mz-fmm-nav button { min-width:0; width:max-content; border-radius:11px; padding:13px 19px; background:#fff; color:#37516f; border:1px solid #d7e2f1; font-size:13px; font-weight:750; }
.mz-fmm-study-v2 .mz-fmm-nav button:first-child { justify-self:start; }
.mz-fmm-study-v2 .mz-fmm-nav button:last-child:not(:disabled) { justify-self:end; background:#2563eb; border-color:#2563eb; color:#fff; }
.mz-fmm-study-v2 .mz-fmm-nav button:last-child { justify-self:end; }
.mz-fmm-study-v2 .mz-fmm-nav button:hover:not(:disabled) { border-color:#8eb4f4; }
.mz-fmm-study-v2 .mz-fmm-nav button:disabled { opacity:.42; }
.mz-fmm-study-v2 .mz-fmm-question-stage { color:#7890aa; line-height:1.5; font-size:12px; font-weight:700; text-align:center; }
.mz-fmm-study-v2 .mz-fmm-partial-notice { margin:20px 0 0; padding:11px 14px; background:#fffbf3; border:1px solid #f2e6d0; border-radius:11px; font-size:12px; color:#946e38; }
.mz-fmm-study-v2 .mz-fmm-generation-status { margin:14px 0 0; padding:10px 14px; }

/* Submission area: one clear block with three equal choices. */
.mz-fmm-study-v2 .mz-fmm-submission { display:block; flex:none; margin:30px 0 0; padding:26px 0 0; border-top:1px solid #e5ebf3; }
.mz-fmm-study-v2 .mz-fmm-upload-head { display:flex; justify-content:space-between; align-items:end; gap:12px; margin:0 0 10px; }
.mz-fmm-study-v2 .mz-fmm-upload-head div { display:flex; flex-direction:column; gap:5px; }
.mz-fmm-study-v2 .mz-fmm-upload-head strong { color:#172b45; font-size:18px; font-weight:850; }
.mz-fmm-study-v2 .mz-fmm-upload-head>span { color:#8392a8; font-size:11px; }
.mz-fmm-study-v2 .mz-fmm-upload-description { margin:0 0 17px; font-size:13px; color:#75859b; line-height:1.6; }
.mz-fmm-study-v2 .mz-fmm-upload-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:11px; margin:0 0 14px; }
.mz-fmm-study-v2 .mz-fmm-upload-choice { display:inline-flex; justify-content:center; align-items:center; min-width:0; min-height:58px; border:1px solid #d9e4f2; background:#f9fbfe; color:#315575; border-radius:12px; padding:12px 14px; gap:9px; font-size:13px; font-weight:750; white-space:normal; line-height:1.4; cursor:pointer; }
.mz-fmm-study-v2 .mz-fmm-upload-choice:hover { background:#ecf4ff; border-color:#aac9f8; }
.mz-fmm-study-v2 .mz-fmm-upload-choice span { font-size:18px; color:#3066c8; }
.mz-fmm-study-v2 .mz-fmm-upload-preview { display:flex; align-items:center; min-height:45px; margin:0 0 14px; background:#fcfdff; border:1px dashed #d6e3f4; border-radius:12px; padding:10px 14px; gap:9px; font-size:12px; color:#75879e; }
.mz-fmm-study-v2 .mz-fmm-upload-preview img { max-height:155px; max-width:100%; object-fit:contain; }
.mz-fmm-study-v2 .mz-fmm-upload-preview button { font-size:12px; padding:7px 10px; }
.mz-fmm-study-v2 .mz-fmm-check-button { min-height:54px; font-size:14px; font-weight:850; background:linear-gradient(135deg,#255fd8,#367bef); border-radius:12px; box-shadow:0 8px 16px rgba(37,99,235,.12); }
.mz-fmm-study-v2 .mz-fmm-check-button:hover:not(:disabled) { background:linear-gradient(135deg,#1e50bb,#2e68da); }
.mz-fmm-study-v2 .mz-fmm-check-status { margin:10px 0 0; font-size:12px; line-height:1.6; }

/* Original mistake is available when needed, never occupies question space. */
.mz-fmm-study-v2 .mz-fmm-mistake-brief { min-height:0; flex:none; max-height:none; overflow:visible; scrollbar-width:auto; }
.mz-fmm-study-v2 .mz-fmm-mistake-summary { min-height:70px; padding:14px 21px; gap:12px; }
.mz-fmm-study-v2 .mz-fmm-original-icon { height:37px; width:37px; background:#edf4ff; color:#3a66b9; border-radius:11px; font-size:19px; }
.mz-fmm-study-v2 .mz-fmm-mistake-titles strong { font-size:14px; color:#243f60; }
.mz-fmm-study-v2 .mz-fmm-mistake-titles small { margin-top:5px; font-size:12px; color:#8c9aae; }
.mz-fmm-study-v2 .mz-fmm-mistake-body { padding:5px 22px 25px; }
.mz-fmm-study-v2 .mz-fmm-mistake-detail-title { font-size:14px; font-weight:800; margin:0 0 15px; color:#2e4560; }
.mz-fmm-study-v2 .mz-fmm-comparison { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.mz-fmm-study-v2 .mz-fmm-error-block { min-height:100px; padding:16px; border-radius:12px; }
.mz-fmm-study-v2 .mz-fmm-math { font-size:16px; line-height:1.8; overflow-wrap:anywhere; }
.mz-fmm-study-v2 .mz-fmm-explanation { font-size:13px; line-height:1.75; margin:18px 0 0; }

/* Tutor is a usable companion panel, not the page's main visual weight. */
.mz-fmm-study-v2 .mz-feedback-panel,
.mz-fmm-study-v2 .mz-feedback-panel.mz-tutor-ui-active,
.mz-fmm-study-v2 .mz-feedback-panel:not(.mz-tutor-ui-active) {
  display:flex; flex-direction:column; width:100%; min-width:0;
  height:clamp(600px,calc(100vh - 130px),840px); min-height:540px; max-height:840px;
  position:sticky!important; top:20px!important; margin:0;
  overflow:hidden; border:1px solid #e1eaf4; border-radius:20px;
  background:#fff; box-shadow:0 10px 34px rgba(33,61,103,.045); padding:0!important;
}
.mz-fmm-study-v2 .mz-feedback-panel>.mz-panel-header { display:flex; align-items:center; padding:23px 23px 16px; border-bottom:1px solid #edf1f7; }
.mz-fmm-study-v2 .mz-feedback-panel>.mz-panel-header h2 { font-size:19px; font-weight:800; margin:6px 0 0; color:#1e3d63; }
.mz-fmm-study-v2 .mz-fmm-feedback-empty { padding:20px 23px; font-size:13px; line-height:1.75; color:#647790; }
.mz-fmm-study-v2 .mz-fmm-feedback-empty strong { color:#284565; }
.mz-fmm-study-v2 .mz-fmm-examiner-feedback { overflow:auto; max-height:100%; padding:16px; }
.mz-fmm-study-v2 .mz-tutor-panel { min-height:0; height:100%; max-height:100%; }
.mz-fmm-study-v2 .mz-tutor-topbar { padding:15px 17px 12px; }
.mz-fmm-study-v2 .mz-tutor-brandline { font-size:14px; }
.mz-fmm-study-v2 .mz-tutor-question-label { font-size:11px; }
.mz-fmm-study-v2 .mz-tutor-messages { min-height:0; overflow-y:auto; padding:16px; }
.mz-fmm-study-v2 .mz-tutor-quick-actions { padding:10px; gap:7px; }
.mz-fmm-study-v2 .mz-tutor-composer { padding:13px; }
.mz-fmm-study-v2 .mz-tutor-composer textarea { min-height:55px; font-size:13px; }
.mz-fmm-study-v2 .mz-fmm-mobile-tutor,
.mz-fmm-study-v2 .mz-fmm-mobile-tutor-close,
.mz-fmm-study-v2 .mz-fmm-tutor-backdrop { display:none; }
.mz-fmm-study-v2 :is(button,a,summary):focus-visible { outline:3px solid #6ba5ff!important; outline-offset:3px; }

@media (max-width:1220px) and (min-width:921px) {
  .mz-fmm-study-v2 .mz-fmm-grid { grid-template-columns:minmax(0,1.7fr) minmax(310px,1fr); gap:15px; }
  .mz-fmm-study-v2 .mz-fmm-questions { padding:24px; }
  .mz-fmm-study-v2 .mz-fmm-paper { padding:30px; }
  .mz-fmm-study-v2 .mz-fmm-upload-head>span { display:none; }
}
@media (max-width:920px) {
  .mz-fmm-page.mz-fmm-study-v2 { padding:19px 13px 100px; height:auto; overflow:visible; }
  .mz-fmm-study-v2 .mz-fmm-header-badge { display:none; }
  .mz-fmm-study-v2 .mz-fmm-grid { grid-template-columns:minmax(0,1fr); gap:18px; }
  .mz-fmm-study-v2 .mz-fmm-questions { padding:27px; min-height:0; }
  .mz-fmm-study-v2 .mz-fmm-question-text { font-size:21px; }
  .mz-fmm-study-v2 .mz-feedback-panel,
  .mz-fmm-study-v2 .mz-feedback-panel.mz-tutor-ui-active,
  .mz-fmm-study-v2 .mz-feedback-panel:not(.mz-tutor-ui-active) { position:relative!important; top:auto!important; height:610px; min-height:0; max-height:none; display:flex!important; }
  .mz-fmm-study-v2.is-tutor-collapsed #mzFmmTutorAside { display:none!important; }
}
@media (max-width:700px) {
  .mz-fmm-page.mz-fmm-study-v2 { padding:13px 10px 100px; }
  .mz-fmm-study-v2 .mz-fmm-heading { gap:8px; margin-bottom:16px; }
  .mz-fmm-study-v2 .mz-fmm-heading-main { flex:1; gap:12px; }
  .mz-fmm-study-v2 .mz-fmm-back { padding:9px 11px; font-size:11px; }
  .mz-fmm-study-v2 .mz-fmm-heading-spark { width:34px; height:34px; font-size:18px; border-radius:11px; }
  .mz-fmm-study-v2 .mz-fmm-heading-title { gap:9px; }
  .mz-fmm-study-v2 .mz-fmm-heading h1 { font-size:21px; }
  .mz-fmm-study-v2 .mz-fmm-heading p { display:none; }
  .mz-fmm-study-v2 .mz-fmm-utility-bar { margin-bottom:12px; }
  .mz-fmm-study-v2 .mz-fmm-quiet-label, .mz-fmm-study-v2 .mz-fmm-tutor-toggle { display:none; }
  .mz-fmm-study-v2 .mz-fmm-account-details-content { width:min(480px,calc(100vw - 24px)); }
  .mz-fmm-study-v2 .mz-fmm-account { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .mz-fmm-study-v2 .mz-fmm-account-item { border-right:0; padding:8px; }
  .mz-fmm-study-v2 .mz-fmm-refresh { grid-column:1/-1; justify-self:start; }
  .mz-fmm-study-v2 .mz-fmm-questions { padding:18px 15px 22px; border-radius:17px; }
  .mz-fmm-study-v2 .mz-fmm-card-head { margin:0 0 17px; }
  .mz-fmm-study-v2 .mz-fmm-questions h2 { font-size:21px; }
  .mz-fmm-study-v2 .mz-fmm-progress { gap:6px; margin-bottom:10px; }
  .mz-fmm-study-v2 .mz-fmm-progress-step { height:36px; font-size:12px; }
  .mz-fmm-study-v2 .mz-fmm-context { font-size:11px; margin-bottom:16px; }
  .mz-fmm-study-v2 .mz-fmm-paper { min-height:280px; padding:24px 18px; border-radius:13px; }
  .mz-fmm-study-v2 .mz-fmm-paper-topline { margin:0 0 4px; }
  .mz-fmm-study-v2 .mz-fmm-paper-label { font-size:10px; }
  .mz-fmm-study-v2 .mz-fmm-paper-decoration { display:none; }
  .mz-fmm-study-v2 .mz-fmm-question-text { font-size:18px; line-height:1.9; min-height:145px; }
  .mz-fmm-study-v2 .mz-fmm-nav { grid-template-columns:1fr 1fr; margin-top:19px; gap:11px; }
  .mz-fmm-study-v2 .mz-fmm-nav button { width:100%; padding:12px 9px; font-size:12px; }
  .mz-fmm-study-v2 .mz-fmm-question-stage { order:3; grid-column:1/-1; font-size:11px; }
  .mz-fmm-study-v2 .mz-fmm-submission { margin:24px 0 0; padding:22px 0 0; }
  .mz-fmm-study-v2 .mz-fmm-upload-head strong { font-size:16px; }
  .mz-fmm-study-v2 .mz-fmm-upload-head>span { display:none; }
  .mz-fmm-study-v2 .mz-fmm-upload-description { font-size:12px; }
  .mz-fmm-study-v2 .mz-fmm-upload-actions { grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
  .mz-fmm-study-v2 .mz-fmm-upload-choice { min-height:61px; display:flex; flex-direction:column; gap:5px; padding:9px 4px; font-size:10px; }
  .mz-fmm-study-v2 .mz-fmm-upload-choice span { font-size:17px; }
  .mz-fmm-study-v2 .mz-fmm-check-button { min-height:50px; font-size:13px; }
  .mz-fmm-study-v2 .mz-fmm-mistake-summary { padding:12px; min-height:65px; }
  .mz-fmm-study-v2 .mz-fmm-mistake-titles small { font-size:10px; }
  .mz-fmm-study-v2 .mz-fmm-mistake-body { padding:5px 15px 20px; }
  .mz-fmm-study-v2 .mz-fmm-comparison { grid-template-columns:1fr; }
  /* Keep the existing Phase-3 mobile Tutor drawer, backdrop and keyboard logic. */
  .mz-fmm-study-v2 .mz-fmm-mobile-tutor { display:flex; position:fixed; left:50%; bottom:13px; transform:translateX(-50%); z-index:1995; width:min(90vw,335px); align-items:center; justify-content:space-between; gap:15px; border:1px solid #1a54b9; border-radius:999px; background:#1e58c8; color:#fff; font-size:13px; font-weight:800; padding:14px 19px; box-shadow:0 13px 30px #173f865e; }
  .mz-fmm-study-v2 .mz-fmm-mobile-tutor-close { display:block; width:100%; text-align:left; border:0; border-bottom:1px solid #e4eaf3; background:#f7faff; color:#295da7; padding:15px 19px; font-size:13px; font-weight:750; }
  .mz-fmm-study-v2 .mz-feedback-panel,
  .mz-fmm-study-v2 .mz-feedback-panel.mz-tutor-ui-active,
  .mz-fmm-study-v2 .mz-feedback-panel:not(.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; min-height:0!important; top:0!important; border:0; border-radius:0; }
  .mz-fmm-study-v2.is-tutor-open .mz-feedback-panel,
  .mz-fmm-study-v2.is-tutor-open .mz-feedback-panel.mz-tutor-ui-active,
  .mz-fmm-study-v2.is-tutor-open .mz-feedback-panel:not(.mz-tutor-ui-active) { display:flex!important; flex-direction:column; }
  .mz-fmm-study-v2.is-tutor-open .mz-fmm-mobile-tutor { display:none; }
  .mz-fmm-study-v2.is-tutor-open .mz-fmm-tutor-backdrop:not([hidden]) { display:block; position:fixed; inset:0; z-index:1999; background:#09203d99; }
  .mz-fmm-study-v2 .mz-tutor-panel { flex:1; height:auto; min-height:0; }
}
@media(max-width:390px) {
  .mz-fmm-study-v2 .mz-fmm-heading { flex-wrap:wrap; }
  .mz-fmm-study-v2 .mz-fmm-heading-title h1 { font-size:19px; }
  .mz-fmm-study-v2 .mz-fmm-mistake-summary .mz-fmm-pill { display:none; }
}
@media(prefers-reduced-motion:reduce){.mz-fmm-study-v2 *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
