/* Question screen — measured from the reference app (DOM + pixel sampling).
   Content column is 650px; the option grid is a hard 2 x 295px. */

.mvq-qwrap{max-width:650px;margin:0 auto;padding:24px 0 0}

/* progress dots — the page already renders #qDots > span.dot; restyle in place */
#qDots.qdots{display:flex;flex-wrap:wrap;gap:4px;justify-content:flex-start;
  margin:0 0 14px;padding:0}
#qDots.qdots .dot{width:10px;height:10px;border-radius:50%;background:#dfe3e6;
  transition:width .2s,height .2s,background .2s;flex:none}
#qDots.qdots .dot.correct{background:#c0ed86}
#qDots.qdots .dot.wrong{background:#f2c4c4}
#qDots.qdots .dot.cur{width:13px;height:13px;background:#62c8df}

/* counter row — existing #moduleChip holds modName + qProgress */
#moduleChip.qmeta{display:flex;justify-content:space-between;align-items:center;
  font-size:14px;font-weight:700;color:#979797;margin:10px 0}
#qNum.qnum{font-size:14px;font-weight:700;color:#979797}

/* stem — the page already renders #qText.qtext; lift it to the measured type */
body #qText.qtext{font-size:20px;font-weight:700;line-height:1.45;color:#4d4d4d;
  margin:0 0 18px;max-width:650px}
body #qText.qtext strong{font-weight:700}

/* ---------- options: equal-width grid, 2-up when short, stacked when long ---------- */
body #qOptions,
body .qopts{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr))!important;
  grid-auto-rows:1fr;
  gap:10px!important;
  width:640px!important;max-width:100%!important;
  align-items:stretch;
  margin:0!important;
}
body .qopts .opt,
body #qOptions > .opt,
body .mvq-opts > .opt,
body .option-card{
  display:flex!important;align-items:flex-start!important;gap:8px;
  background:#fff!important;
  box-shadow:0 2px 4px rgba(0,0,0,.09)!important;
  border:0!important;border-radius:0!important;
  padding:20px 15px!important;
  min-height:65px!important;height:100%;box-sizing:border-box;
  max-width:100%!important;margin:0!important;
  cursor:pointer;position:relative;
  font-size:14px!important;font-weight:400;color:#555!important;line-height:20px!important;
  transition:box-shadow .16s ease,background .16s ease;
}
body .qopts .opt:hover,
body #qOptions > .opt:hover,
body .mvq-opts > .opt:hover,
body .option-card:hover{box-shadow:0 4px 12px rgba(0,0,0,.13)}
#qOptions .opt .radio{width:13px;height:13px;flex:0 0 13px;border-radius:50%;
  border:1.5px solid #c9ced3;margin:3px 13px 0 0;background:#fff}
#qOptions .opt.sel .radio,
#qOptions .opt.chosen .radio{border-color:#62c8df;box-shadow:inset 0 0 0 3px #62c8df}
#qOptions .opt .pct{margin-left:auto;padding-left:10px;font-size:12px;color:#979797;
  white-space:nowrap;align-self:flex-start}
#qOptions .opt .verdict{margin-left:10px;font-size:14px;font-weight:400}
#qOptions .opt .verdict.ok{color:#3dbf2f}
#qOptions .opt .verdict.no{color:#f74040}

/* answered states — cream for the correct row, plain white for wrong */
#qOptions.answered .opt{cursor:default}
#qOptions .opt.is-correct{background:rgb(253,253,237)}
#qOptions .opt.is-correct .opt-text,
#qOptions .opt.is-correct label{font-weight:600}

/* cohort + reference + explanation */
.mvq-cohort{display:flex;align-items:center;gap:9px;margin:16px 0 6px;
  font-size:14px;color:#555}
.mvq-cohort .dot{width:17px;height:17px;border-radius:50%;
  background:#82c42d;border:2px solid #fff;box-shadow:0 0 0 1px #dfe3e6}
.mvq-qid{font-size:12px;color:#979797;margin:10px 0 0;word-break:break-all}
.mvq-explain-h{font-size:13px;color:#b3b8bd;font-weight:400;margin:22px 0 10px}
#qExplain,.mvq-explain{font-size:14px;color:#555;line-height:1.55}

/* sticky action bar */
#qActions{position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;
  background:#fff;padding:14px 0;margin-top:24px;border-top:1px solid #f0f2f4;z-index:5}
#qActions .feedback{color:#2d70b6;font-weight:600;font-size:14px;text-decoration:none}
#qActions .next{padding:11px 34px;border:0;border-radius:3px;background:#62c8df;color:#fff;
  font-weight:700;font-size:15px;cursor:pointer}
#qActions .next:hover{background:#4fbcd6}

@media(max-width:640px){
  .mvq-qwrap{padding:16px 0 0}
  #qText{font-size:17px}
  #qOptions{grid-template-columns:1fr;width:100%}
  #qOptions .opt{min-height:0;margin:4px 0}
}

/* ---------- post-attempt states, shared by every question screen ---------- */
body #qOptions .opt.is-correct,
body .qopts .qopt.is-correct,
html:not([data-mvtheme="dark"]) body .mvq-opts .qopt.is-correct{background:rgb(253,253,237) !important}
body #qOptions .opt.is-wrong,
body .qopts .qopt.is-wrong,
html:not([data-mvtheme="dark"]) body .mvq-opts .qopt.is-wrong{background:#fff !important}

.verdict{display:inline-block;font-size:14px;font-weight:400;line-height:1.3;margin-top:6px}
.verdict.ok{color:rgb(61,191,47)}
.verdict.no{color:rgb(247,64,64)}

/* one opacity fade — matches the measured reveal exactly */
@keyframes mvReveal{from{opacity:0}to{opacity:1}}
body #qOptions.is-revealed,
body #opts.is-revealed,
body .qopts.is-revealed{animation:mvReveal 190ms ease both}
@media (prefers-reduced-motion:reduce){
  body #qOptions.is-revealed,
  body #opts.is-revealed,
  body .qopts.is-revealed{animation:none}
}

/* ---------- compact question list for test/review sidebars ---------- */
.mvq-qlistrow{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;background:#fff;
  box-shadow:0 3px 4px rgba(0,0,0,.05);font-size:13px;line-height:1.4;cursor:pointer}
.mvq-qlistrow.is-active{box-shadow:0 0 0 2px rgb(98,200,223) inset}
.mvq-qlistrow .mvq-qn{font-weight:700;color:#7b8182;min-width:18px}

/* ---------- phones: one column, never their 2-up squeeze ---------- */
@media (max-width:640px){
  body #qOptions,
  body .qopts{grid-template-columns:1fr}
  body #qOptions .opt,
  body .qopts .qopt{width:auto;padding:16px 14px}
}

/* ---------- BTR question screen: .option-card = measured Marrow spec ---------- */
body.anatomy-ui .option-card,body .option-card{
  display:flex;align-items:flex-start;gap:13px;
  min-height:65px!important;padding:20px 15px!important;
  background:#fff!important;border:0!important;border-radius:0!important;
  box-shadow:0 2px 4px rgba(0,0,0,.09)!important;
  font-size:14px!important;color:#555!important;line-height:1.5;
  cursor:pointer;box-sizing:border-box;
  transition:box-shadow .16s ease,background .16s ease;
}
body.anatomy-ui .option-card:hover,body .option-card:hover{box-shadow:0 4px 10px rgba(0,0,0,.12)}
body.anatomy-ui .option-card .option-letter,body .option-card .option-letter{font-weight:700;color:#7b8182;flex:0 0 auto}
body.anatomy-ui .option-card .option-text,body .option-card .option-text{flex:1 1 auto;min-width:0}
body.anatomy-ui .option-card.is-correct,body .option-card.is-correct{background:rgb(253,253,237)!important}
body.anatomy-ui .option-card.is-wrong,body .option-card.is-wrong{background:#fff}
@media (max-width:640px){body .option-card{padding:16px 14px;min-height:0}}

/* ===== centre every list (spec: lists sit centred, not left-aligned) ===== */
#subjList,#topicList,#qOptions,.mvq-rail,.list,.banks{
  margin-left:auto!important;margin-right:auto!important;
}


/* ===== Previous / Next / Finish — Marrow parity nav row =====
   Live reference measurements:
     Previous 128x41 bg #fff        text rgb(98,200,223)  radius 4px 14px/700
     Next     128x41 bg rgb(98,200,223) text #fff        radius 4px 14px/700
   Reference hides Previous on Q1 and only shows the row after answering.
   Target markup on our screens: #prevBtn / #nextBtn (Finish stays secondary). */
body #prevBtn,
body #nextBtn{
  display:inline-block!important;
  flex:0 0 128px!important;
  width:128px!important;max-width:128px!important;height:41px!important;
  min-height:41px!important;max-height:41px!important;
  padding:0 18px!important;box-sizing:border-box!important;
  border-radius:4px!important;
  font-size:14px!important;font-weight:700!important;line-height:39px!important;
  box-shadow:0 2px 4px rgba(0,0,0,.09)!important;
  transform:none!important;
  transition:background .16s ease,box-shadow .16s ease!important;
}
body #prevBtn{
  background:#fff!important;color:#62c8df!important;border:1px solid #62c8df!important;
}
body #prevBtn:hover{background:#f7fdff!important}
body #nextBtn{
  background:#62c8df!important;color:#fff!important;border:1px solid #62c8df!important;
}
body #nextBtn:hover{background:#4fbcd6!important;border-color:#4fbcd6!important}
body #prevBtn:disabled,
body #nextBtn:disabled{
  background:#f2f5f7!important;color:#b6bfc8!important;border-color:#e3e8ec!important;
  box-shadow:none!important;cursor:default!important;
}
/* Finish stays quiet so it never competes with Next */
body #finishBtn{
  border-radius:4px!important;font-size:13px!important;font-weight:700!important;
  padding:0 16px!important;height:41px!important;box-sizing:border-box!important;
  box-shadow:none!important;transform:none!important;
}
@media (max-width:640px){
  body #prevBtn,body #nextBtn{width:auto!important;padding:0 20px!important;font-size:13px!important}
  body #finishBtn{font-size:12px!important;padding:0 12px!important}
}
@media (prefers-reduced-motion:reduce){
  body #prevBtn,body #nextBtn{transition:none!important}
}

/* Feedback / Report error — left side of the nav row, reference blue */
body .mvq-report{
  margin-right:auto!important;
  font-size:14px!important;font-weight:600!important;line-height:20px!important;
  color:#6593dd!important;text-decoration:none!important;
  cursor:pointer;
}
body .mvq-report:hover{text-decoration:underline!important}
@media (max-width:640px){ body .mvq-report{font-size:13px!important} }

/* ===== Correct / Incorrect tick + cross — icon form, reference parity =====
   Reference badge: 14px Font-Awesome mark + label, 14px/400, inline LEFT of
   the cohort %, on the same baseline as the option text.
     Correct   rgb(61,191,47)  icon 14px wide
     Incorrect rgb(247,64,64)  icon 11px wide
   We render the marks as inline SVG-free CSS glyphs sized to those widths so
   the label never shifts. */
body #qOptions .opt .verdict,
body .mvq-opts .opt .verdict{
  display:inline-flex!important;align-items:center!important;gap:5px;
  margin-left:10px!important;
  font-size:14px!important;font-weight:400!important;line-height:1.3!important;
  vertical-align:baseline;
}
body #qOptions .opt .verdict.ok,
body .mvq-opts .opt .verdict.ok{color:#3dbf2f!important}
body #qOptions .opt .verdict.no,
body .mvq-opts .opt .verdict.no{color:#f74040!important}
/* the mark itself: fixed 14px box, stroke drawn with borders */
body #qOptions .opt .verdict::before,
body .mvq-opts .opt .verdict::before{
  content:'';display:inline-block;flex:0 0 14px;
  width:14px;height:14px;position:relative;
}
body #qOptions .opt .verdict.ok::before,
body .mvq-opts .opt .verdict.ok::before{
  /* check: short down-stroke + long up-stroke */
  border-left:0;background:
    linear-gradient(45deg,transparent 45%,currentColor 45%,currentColor 58%,transparent 58%) 5px 3px/8px 10px no-repeat,
    linear-gradient(-45deg,transparent 45%,currentColor 45%,currentColor 58%,transparent 58%) 0 6px/8px 8px no-repeat;
}
body #qOptions .opt .verdict.no::before,
body .mvq-opts .opt .verdict.no::before{
  /* cross: two diagonal strokes */
  background:
    linear-gradient(45deg,transparent 44%,currentColor 44%,currentColor 56%,transparent 56%),
    linear-gradient(-45deg,transparent 44%,currentColor 44%,currentColor 56%,transparent 56%);
  transform:scale(.82);
  transform-origin:center;
}

/* ===== MVQ sticky action bar (reference: nav.mcq-nav) =====
   Reference pins the whole strip: sticky, bottom 0, z-index 1040, white bg.
   Only the question area scrolls; Feedback / Previous / Next stay fixed. */
.mvq-actions{
  position:sticky!important;
  bottom:0!important;
  z-index:60!important;
  background:#fff!important;
  padding:10px 0!important;
  margin-top:18px!important;
  box-shadow:0 -1px 0 rgba(0,0,0,.07)!important;
}
@media (max-width:900px){
  .mvq-actions{
    bottom:calc(64px + env(safe-area-inset-bottom,0px))!important;
    padding:8px 0!important;
  }
}

/* ===== qbank-test / timer-test action bars (reference parity) =====
   These two build their nav in JS with different class names, so they get
   the same geometry as the module banks via their own selectors. */
body .qnav, body .nav-row{
  display:flex!important;align-items:center!important;
  justify-content:flex-end!important;gap:12px!important;
  border-top:1px solid #f0f2f4!important;
  padding:10px 0!important;margin-top:22px!important;
  background:#fff!important;
  position:sticky!important;bottom:0!important;z-index:60!important;
  box-shadow:0 -1px 0 rgba(0,0,0,.07)!important;
}
body .qnav > span, body .nav-row > span{
  order:-1;margin-right:auto!important;
  font-size:13px!important;font-weight:600!important;color:#8a929c!important;
}
body .qnav button.prev, body .qnav button.next,
body .nav-row button.pv, body .nav-row button.nx{
  display:inline-block!important;flex:0 0 128px!important;
  width:128px!important;max-width:128px!important;height:41px!important;
  min-height:41px!important;max-height:41px!important;
  padding:0 18px!important;box-sizing:border-box!important;
  border-radius:4px!important;
  font-size:14px!important;font-weight:700!important;line-height:39px!important;
  box-shadow:0 2px 4px rgba(0,0,0,.09)!important;
  transform:none!important;
  transition:background .16s ease!important;
}
body .qnav button.prev, body .nav-row button.pv{
  background:#fff!important;color:#62c8df!important;border:1px solid #62c8df!important;
}
body .qnav button.next, body .nav-row button.nx{
  background:#62c8df!important;color:#fff!important;border:1px solid #62c8df!important;
}
body .qnav button:disabled, body .nav-row button:disabled{
  background:#f2f5f7!important;color:#b6bfc8!important;border-color:#e3e8ec!important;
  box-shadow:none!important;cursor:default!important;
}
/* the inline-styled Feedback buttons in these bars -> reference feedback link */
body .qnav button[onclick*="MV_FEED"], body .nav-row button[onclick*="MV_FEED"]{
  background:none!important;border:0!important;box-shadow:none!important;
  color:#6593dd!important;font-size:14px!important;font-weight:600!important;
  flex:0 0 auto!important;width:auto!important;max-width:none!important;
  height:auto!important;min-height:0!important;line-height:20px!important;
  padding:0!important;order:-2;margin-right:12px!important;
}
@media (max-width:900px){
  body .qnav, body .nav-row{ bottom:calc(64px + env(safe-area-inset-bottom,0px))!important; gap:8px!important; }
  body .qnav button.prev, body .qnav button.next,
  body .nav-row button.pv, body .nav-row button.nx{ flex:0 0 auto!important;width:auto!important;max-width:none!important;padding:0 20px!important; }
}
