/* V67 — CBT-style instruction screen and full-viewport test workspace.
   Methodology/layout only: does not alter quiz questions, options, keys or explanations. */
.mce-test-instructions{position:fixed;inset:0;z-index:20000;background:linear-gradient(145deg,#eef4fb 0%,#f8fafc 45%,#eef2f7 100%);display:flex;align-items:center;justify-content:center;padding:20px;overflow:auto}
.mce-test-instruction-card{width:min(900px,100%);background:#fff;border:1px solid #dbe4ef;border-radius:22px;box-shadow:0 24px 70px rgba(8,31,63,.18);overflow:hidden}
.mce-test-instruction-head{padding:22px 26px;background:linear-gradient(135deg,#071f42,#0d4f91);color:#fff;border-bottom:3px solid #d7ad55}
.mce-test-instruction-head small{display:block;font-size:11px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;color:#f2cf83;margin-bottom:7px}
.mce-test-instruction-head h2{margin:0;font-size:clamp(22px,3.2vw,34px);line-height:1.15}
.mce-test-instruction-body{padding:24px 26px}
.mce-test-facts{margin:0 0 22px;padding:13px 16px;border:1px solid #d9e4ef;border-radius:12px;background:#f7fafc;color:#102b4f;font-size:13px;font-weight:800;line-height:1.55;text-align:center}
.mce-test-instruction-body h3{margin:0 0 10px;color:#0b2b55;font-size:18px}
.mce-test-instruction-list{margin:0;padding-left:22px;color:#334b67;font-size:14px;line-height:1.65}
.mce-test-instruction-list li+li{margin-top:4px}
.mce-test-start-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:24px;padding-top:20px;border-top:1px solid #e2e8f0}
.mce-test-start-note{font-size:12px;color:#64748b;max-width:520px}
.mce-start-test-btn{appearance:none;border:0;border-radius:12px;background:linear-gradient(135deg,#d9ad4b,#f0cc78);color:#13213b;padding:15px 28px;font-size:15px;font-weight:950;letter-spacing:.035em;box-shadow:0 10px 24px rgba(195,145,43,.28);cursor:pointer;white-space:nowrap;transition:transform .2s ease,box-shadow .2s ease}
.mce-start-test-btn:hover,.mce-start-test-btn:focus-visible{transform:translateY(-2px);box-shadow:0 14px 30px rgba(195,145,43,.36);outline:3px solid rgba(217,173,75,.22)}
.mce-test-cancel-btn{appearance:none;border:0;background:transparent;color:#5d6f83;font-weight:800;cursor:pointer;padding:10px 0}

/* Never expose the loaded paper during the short launch hand-off. */
body.mce-test-launching #quizArena{visibility:hidden!important}

/* Full-viewport examination mode. */
body.mce-exam-active{overflow:hidden!important;background:#eef2f7}
body.mce-exam-active>.announce,
body.mce-exam-active>.site-header,
body.mce-exam-active>.vertical-quick-nav,
body.mce-exam-active>footer,
body.mce-exam-active main>.page-hero,
body.mce-exam-active main>#practiceGateway,
body.mce-exam-active main>#setLibrary{display:none!important}
body.mce-exam-active main{margin:0!important;padding:0!important}
body.mce-exam-active #quizArena{display:block!important;position:fixed!important;inset:0!important;z-index:15000!important;margin:0!important;padding:0!important;background:#edf2f7!important;overflow:hidden!important}
body.mce-exam-active #quizArena>.container{width:100%!important;max-width:none!important;height:100vh!important;margin:0!important;padding:0!important;display:flex!important;flex-direction:column!important}
body.mce-exam-active #quizArena .practice-library-tools,
body.mce-exam-active #quizArena .quiz-toolbar,
body.mce-exam-active #quizArena .quiz-command-strip,
body.mce-exam-active #quizArena .mobile-browser-note{display:none!important}
body.mce-exam-active #quizArena .quiz-workspace{margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;display:flex!important;flex-direction:column!important;flex:1!important;min-height:0!important}

.mce-exam-topbar{height:66px;flex:0 0 66px;display:flex;align-items:center;gap:18px;padding:8px 14px 8px 18px;background:linear-gradient(135deg,#071f42,#0d3c73);color:#fff;border-bottom:3px solid #d8ad51;box-shadow:0 5px 16px rgba(7,31,66,.15);z-index:5}
.mce-exam-title{min-width:0;flex:1}
.mce-exam-title small{display:block;color:#d7b45f;font-size:9px;font-weight:900;letter-spacing:.11em;text-transform:uppercase;margin-bottom:2px}
.mce-exam-title strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:15px}
.mce-exam-status{display:flex;align-items:center;gap:18px}
.mce-exam-metric{min-width:92px;text-align:center;padding:6px 10px;border-radius:10px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12)}
.mce-exam-metric span{display:block;font-size:8px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:#b9c9dd}
.mce-exam-metric strong{display:block;margin-top:1px;font-size:16px;line-height:1.1}
.mce-exam-submit{appearance:none;border:0;border-radius:10px;background:#d8ad51;color:#13213b;padding:11px 16px;font-weight:950;cursor:pointer}
.mce-exam-omr-toggle{display:none;appearance:none;border:1px solid rgba(255,255,255,.22);border-radius:9px;background:rgba(255,255,255,.08);color:#fff;padding:9px 12px;font-weight:900}

body.mce-exam-active #quizArena .quiz-main-layout{display:grid!important;grid-template-columns:minmax(0,1fr) 310px!important;gap:12px!important;flex:1!important;min-height:0!important;height:auto!important;padding:12px!important;overflow:hidden!important;align-items:stretch!important}
body.mce-exam-active #quizArena .quiz-question-column{height:100%!important;min-height:0!important;overflow:hidden!important;background:#fff;border:1px solid #dbe3ed;border-radius:14px;box-shadow:0 8px 24px rgba(24,45,73,.07)}
body.mce-exam-active #quizArena .single-question-stage{height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important;padding:0!important}
body.mce-exam-active #quizArena .single-question-mode{flex:1!important;min-height:0!important;overflow:auto!important;padding:18px 20px 12px!important;scrollbar-gutter:stable}
body.mce-exam-active #quizArena .single-question-nav{flex:0 0 auto!important;margin:0!important;padding:10px 14px!important;background:#f8fafc;border-top:1px solid #dfe7ef;position:sticky!important;bottom:0!important;z-index:3}
body.mce-exam-active #quizArena .omr-panel{position:static!important;top:auto!important;width:auto!important;height:100%!important;max-height:none!important;min-height:0!important;overflow:auto!important;margin:0!important;border-radius:14px!important;background:#fff!important;border:1px solid #dbe3ed!important;box-shadow:0 8px 24px rgba(24,45,73,.07)!important}
body.mce-exam-active #quizArena .omr-help{display:none!important}
body.mce-exam-active #quizArena .omr-result-note{margin-bottom:8px}
body.mce-exam-active #quizArena .mobile-test-dock{display:none!important}

.mce-mobile-omr-close{display:none}

@media(max-width:820px){
  .mce-test-instructions{padding:10px;align-items:flex-start}
  .mce-test-instruction-card{margin:8px 0;border-radius:16px}
  .mce-test-instruction-head{padding:17px 17px 15px}
  .mce-test-instruction-body{padding:17px}
  .mce-test-facts{font-size:11px;text-align:left;overflow-wrap:anywhere}
  .mce-test-instruction-list{font-size:12.5px;line-height:1.55}
  .mce-test-start-row{display:block}
  .mce-start-test-btn{display:block;width:100%;margin-top:14px;font-size:14px}
  .mce-exam-topbar{height:58px;flex-basis:58px;padding:7px 9px;gap:7px}
  .mce-exam-title small{display:none}
  .mce-exam-title strong{font-size:12px}
  .mce-exam-status{gap:6px}
  .mce-exam-metric{min-width:68px;padding:5px 6px}
  .mce-exam-metric:first-child{display:none}
  .mce-exam-metric span{font-size:7px}
  .mce-exam-metric strong{font-size:13px}
  .mce-exam-submit{padding:9px 10px;font-size:10px}
  .mce-exam-omr-toggle{display:inline-flex;font-size:10px}
  body.mce-exam-active #quizArena .quiz-main-layout{display:block!important;padding:7px!important;height:calc(100vh - 58px)!important;overflow:hidden!important}
  body.mce-exam-active #quizArena .quiz-question-column{height:100%!important;border-radius:10px}
  body.mce-exam-active #quizArena .single-question-mode{padding:12px 12px 8px!important}
  body.mce-exam-active #quizArena .single-question-nav{padding:8px!important}
  body.mce-exam-active #quizArena .omr-panel{position:fixed!important;top:0!important;right:-110%!important;bottom:0!important;width:min(88vw,380px)!important;height:100vh!important;z-index:15100!important;border-radius:0!important;transition:right .25s ease!important;padding-top:48px!important;box-shadow:-12px 0 38px rgba(7,31,66,.25)!important}
  body.mce-exam-active.mce-mobile-omr-open #quizArena .omr-panel{right:0!important}
  .mce-mobile-omr-close{display:block;position:absolute;top:9px;right:10px;z-index:3;border:0;border-radius:9px;background:#0b3769;color:#fff;padding:8px 11px;font-weight:900;cursor:pointer}
}

@media(prefers-reduced-motion:reduce){.mce-start-test-btn,body.mce-exam-active #quizArena .omr-panel{transition:none!important}}

/* V68 — restrained colour and readability refinement.
   Instruction page is more colourful; live exam remains calm and high-contrast. */
.mce-test-facts{background:linear-gradient(135deg,#f7fbff,#edf5ff);border-color:#bfd2e8;color:#0c2c55;box-shadow:0 5px 14px rgba(20,55,95,.06)}
.mce-test-instruction-list{list-style:none;counter-reset:mceInstruction;margin:0;padding:0;display:grid;gap:8px}
.mce-test-instruction-list li{counter-increment:mceInstruction;position:relative;margin:0!important;padding:11px 14px 11px 48px;border-radius:11px;border:1px solid #dbe5f0;color:#243f62;font-weight:600;line-height:1.55;box-shadow:0 3px 10px rgba(15,43,78,.035)}
.mce-test-instruction-list li::before{content:counter(mceInstruction);position:absolute;left:12px;top:10px;width:25px;height:25px;display:flex;align-items:center;justify-content:center;border-radius:50%;color:#fff;font-size:12px;font-weight:900;box-shadow:0 3px 8px rgba(0,0,0,.12)}
.mce-test-instruction-list li:nth-child(1){background:#eef5ff;border-color:#bfd5f4}.mce-test-instruction-list li:nth-child(1)::before{background:#2b67ad}
.mce-test-instruction-list li:nth-child(2){background:#fff8e9;border-color:#ead39a}.mce-test-instruction-list li:nth-child(2)::before{background:#c28b1d}
.mce-test-instruction-list li:nth-child(3){background:#eef9f2;border-color:#b8dec5}.mce-test-instruction-list li:nth-child(3)::before{background:#388a58}
.mce-test-instruction-list li:nth-child(4){background:#fff1f4;border-color:#ebc0cb}.mce-test-instruction-list li:nth-child(4)::before{background:#b85470}
.mce-test-instruction-list li:nth-child(5){background:#f4f1fc;border-color:#cec3e9}.mce-test-instruction-list li:nth-child(5)::before{background:#6c58a7}
.mce-test-instruction-list li:nth-child(6){background:#eef9fb;border-color:#b9dce3}.mce-test-instruction-list li:nth-child(6)::before{background:#34839a}
.mce-test-instruction-list li:nth-child(7){background:#fff5ed;border-color:#e9c8ac}.mce-test-instruction-list li:nth-child(7)::before{background:#b96d37}

/* Calm, professional examination palette with stronger contrast. */
body.mce-exam-active #quizArena{background:#e7edf5!important}
.mce-exam-topbar{background:linear-gradient(135deg,#072750,#0d467e);border-bottom-color:#d3a642}
.mce-exam-title small{color:#f1ca64}.mce-exam-title strong{color:#fff}
.mce-exam-metric{background:rgba(255,255,255,.13);border-color:rgba(255,255,255,.22)}
.mce-exam-metric span{color:#dbe7f5}.mce-exam-metric strong{color:#fff}
.mce-exam-submit{background:linear-gradient(135deg,#d6aa42,#efc665);color:#102747;box-shadow:0 5px 14px rgba(133,94,14,.22)}
body.mce-exam-active #quizArena .quiz-question-column{background:#f8fafc;border-color:#bdccdd;box-shadow:0 8px 24px rgba(20,48,81,.10)}
body.mce-exam-active #quizArena .single-question-mode{background:#f8fafc}
body.mce-exam-active #quizArena .quiz-directions{background:#edf4fc!important;border-color:#b9cde4!important;color:#183b64!important}
body.mce-exam-active #quizArena .quiz-directions p{color:#183b64!important;font-weight:650}
body.mce-exam-active #quizArena .directions-label{background:#0b3769!important;color:#fff!important}
body.mce-exam-active #quizArena .series-question{background:#fffdf8!important;border-color:#d7b35f!important;color:#102e54!important;box-shadow:0 4px 13px rgba(44,60,79,.05)}
body.mce-exam-active #quizArena .series-question h3,
body.mce-exam-active #quizArena .series-question p{color:#102e54!important}
body.mce-exam-active #quizArena .series-question .question-category{color:#153d69!important;background:#eaf1f8!important}
body.mce-exam-active #quizArena .series-option{background:#fff!important;border-color:#b7c9dc!important;color:#17395f!important;box-shadow:0 2px 6px rgba(31,60,93,.035)}
body.mce-exam-active #quizArena .series-option:hover{background:#f1f7fd!important;border-color:#719bc7!important}
body.mce-exam-active #quizArena .series-option.selected{background:#e5f0fb!important;border-color:#2367aa!important;color:#0c315b!important}
body.mce-exam-active #quizArena .single-question-nav{background:#eef3f8!important;border-top-color:#c7d4e2!important}
body.mce-exam-active #quizArena .question-action-btn{font-weight:850!important}
body.mce-exam-active #quizArena .question-action-btn.primary{background:#082f5d!important;color:#fff!important;border-color:#082f5d!important}
body.mce-exam-active #quizArena .question-action-btn.review{background:#fff7e4!important;color:#735200!important;border-color:#d8b24d!important}
body.mce-exam-active #quizArena .question-action-btn.clear{background:#fff!important;color:#81401a!important;border-color:#d7a37f!important}
body.mce-exam-active #quizArena .question-action-btn.previous{background:#f4f7fb!important;color:#24476d!important;border-color:#b7c8db!important}

/* OMR panel: remove washed-out labels and give every state an explicit readable colour. */
body.mce-exam-active #quizArena .omr-panel{background:#f7fafe!important;border-color:#bdccdd!important;color:#17395f!important}
body.mce-exam-active #quizArena .omr-head{background:#eaf2fb!important;border-bottom:1px solid #c4d4e5!important}
body.mce-exam-active #quizArena .omr-head b{color:#0e3159!important}
body.mce-exam-active #quizArena .omr-head small,
body.mce-exam-active #quizArena #seriesOmrRangeLabel{color:#31577f!important;font-weight:750!important}
body.mce-exam-active #quizArena .omr-progress-summary{background:#f1f6fb!important;border-color:#cfdae6!important}
body.mce-exam-active #quizArena .omr-progress-summary strong{color:#123f70!important}
body.mce-exam-active #quizArena .omr-progress-summary span{color:#496887!important;font-weight:750!important}
body.mce-exam-active #quizArena .omr-live-controls{background:#edf3f9!important;border-color:#cad7e4!important}
body.mce-exam-active #quizArena .omr-live-timer{background:#fff8e7!important;border-color:#dfbd65!important}
body.mce-exam-active #quizArena .omr-live-timer span{color:#735713!important;font-weight:800!important}
body.mce-exam-active #quizArena .omr-live-timer strong{color:#a66f00!important}
body.mce-exam-active #quizArena .omr-submit-btn{background:linear-gradient(135deg,#d3a53d,#eac260)!important;color:#102747!important;font-weight:900!important;border-color:#c99a31!important}
body.mce-exam-active #quizArena .omr-q{background:#c94a4d!important;color:#fff!important;border-color:#b13b3f!important;font-weight:900!important;text-shadow:0 1px 1px rgba(0,0,0,.12)}
body.mce-exam-active #quizArena .omr-q.answered{background:#2d965e!important;border-color:#237749!important;color:#fff!important}
body.mce-exam-active #quizArena .omr-q.current{outline:3px solid #e4b43f!important;outline-offset:2px!important;box-shadow:0 0 0 2px rgba(228,180,63,.18)!important}
body.mce-exam-active #quizArena .omr-q.review{background:#596fb7!important;border-color:#455a99!important;color:#fff!important}
body.mce-exam-active #quizArena .omr-legend{color:#355777!important}
body.mce-exam-active #quizArena .omr-legend span{color:#355777!important;font-weight:700!important}
body.mce-exam-active #quizArena .omr-result-note{color:#536d87!important}

@media(max-width:820px){
  .mce-test-instruction-list{gap:7px}
  .mce-test-instruction-list li{padding:10px 10px 10px 43px;font-size:12px}
  .mce-test-instruction-list li::before{left:10px;top:9px;width:23px;height:23px}
  body.mce-exam-active #quizArena .omr-panel{background:#f7fafe!important}
}
