.practice-focus-toggle{position:absolute;opacity:0;width:1px;height:1px;}
.practice-focus-open{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:.45rem .75rem;margin:.55rem 0 .65rem;border:1px solid rgba(245,211,124,.48);border-radius:999px;color:#ffe7a0;background:rgba(245,211,124,.10);font-weight:900;font-size:.86rem;letter-spacing:.01em;}
.practice-focus-close{display:none;}
html:has(body.practice-page){background:#070a10!important;}
body.practice-page{background-color:#070a10!important;overscroll-behavior-y:none;}
body:has(.practice-focus-toggle:checked){overflow:hidden;}
body:has(.practice-focus-toggle:checked) .site-header,body:has(.practice-focus-toggle:checked) .practice-quick-header,body:has(.practice-focus-toggle:checked) .practice-compact-controls,body:has(.practice-focus-toggle:checked) .page-hero,body:has(.practice-focus-toggle:checked) .practice-focus-topbar,body:has(.practice-focus-toggle:checked) #courseFilters,body:has(.practice-focus-toggle:checked) #emptyState,body:has(.practice-focus-toggle:checked) .practice-focus-open{display:none!important;}
body:has(.practice-focus-toggle:checked) .practice-focus-section{position:fixed!important;inset:0!important;z-index:9998!important;width:100vw!important;height:100dvh!important;margin:0!important;padding:calc(env(safe-area-inset-top,0px) + 64px) 14px calc(env(safe-area-inset-bottom,0px) + 82px)!important;overflow-y:auto!important;background:#050912!important;}
body:has(.practice-focus-toggle:checked) .practice-list{width:min(100%,860px)!important;margin:0 auto!important;padding:0!important;}
body:has(.practice-focus-toggle:checked) .practice-focus-close{position:fixed;top:calc(env(safe-area-inset-top,0px) + 12px);left:14px;right:14px;z-index:9999;display:flex;align-items:center;justify-content:space-between;min-height:46px;padding:.72rem .95rem;border:1px solid rgba(245,211,124,.55);border-radius:999px;color:#ffe7a0;background:rgba(9,14,26,.94);font-weight:900;}
body:has(.practice-focus-toggle:checked) .practice-focus-close::after{content:'X';display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:999px;background:rgba(255,255,255,.08);}

/* Premium QCM mobile layout */
body.qcm-page .practice-focus-section{padding-top:.2rem!important;position:relative!important;background:#070a10!important;}
body.qcm-page .practice-focus-open{float:right;min-height:30px;padding:.34rem .58rem;margin:.08rem .04rem .25rem .55rem;border-radius:999px;font-size:.78rem;background:rgba(245,211,124,.13);box-shadow:0 8px 22px rgba(0,0,0,.18);}
body.qcm-page .mc-picker-shell{clear:both;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.48rem!important;margin:.32rem 0 .42rem!important;max-width:100%!important;}
body.qcm-page .mc-picker-btn{min-height:40px!important;border-radius:16px!important;padding:.45rem .58rem!important;font-size:.78rem!important;line-height:1.06!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;box-shadow:none!important;position:relative;transition:transform .12s ease,background .12s ease,border-color .12s ease;}
body.qcm-page .mc-picker-btn:active{transform:scale(.985);background:rgba(245,211,124,.20)!important;border-color:rgba(245,211,124,.78)!important;}
body.qcm-page .mc-picker-btn .premium-filter-label{display:block;text-transform:uppercase;font-size:.54rem;letter-spacing:.12em;opacity:.62;margin-bottom:.08rem;}
body.qcm-page .mc-picker-btn strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.92rem;}
body.qcm-page .mc-picker-btn .premium-filter-change{position:absolute;right:.58rem;top:50%;transform:translateY(-50%);font-size:.64rem;opacity:.68;}
body.qcm-page .mc-picker-btn.subject,body.qcm-page .mc-picker-btn.module{text-align:left!important;padding-right:4.75rem!important;}
@media(max-width:360px){body.qcm-page .mc-picker-shell{grid-template-columns:1fr!important;}body.qcm-page .mc-picker-btn{min-height:40px!important;}}

/* Progress bar */
body.qcm-page .premium-progress{border:1px solid rgba(245,211,124,.20);background:rgba(10,16,29,.58);border-radius:16px;padding:.46rem .62rem;margin:.18rem 0 .42rem;}
body.qcm-page .premium-progress-head{display:flex;justify-content:space-between;align-items:center;color:#f8fafc;font-size:.8rem;margin-bottom:.32rem;}
body.qcm-page .premium-progress-head strong{color:#ffe7a0;font-weight:950;}
body.qcm-page .premium-progress-head span{color:rgba(226,232,240,.72);font-weight:800;}
body.qcm-page .premium-progress-track{height:6px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden;}
body.qcm-page .premium-progress-track i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#f5d37c,#f8e7ac);}

/* Weakness compact summary */
body.qcm-page .premium-weak-summary,body.qcm-page .premium-weak-summary-v2{width:100%;border:1px solid rgba(245,211,124,.22);background:rgba(9,14,26,.72);color:#f8fafc;border-radius:16px;padding:.58rem .68rem;margin:.35rem 0 .55rem;display:grid;grid-template-columns:1fr auto;gap:.12rem .55rem;text-align:left;align-items:center;}
body.qcm-page .premium-weak-summary strong,body.qcm-page .premium-weak-summary-v2 strong{color:#ffe7a0;font-size:.88rem;}
body.qcm-page .premium-weak-summary span,body.qcm-page .premium-weak-summary-v2 span{grid-column:1/2;color:rgba(226,232,240,.72);font-size:.75rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body.qcm-page .premium-weak-summary em,body.qcm-page .premium-weak-summary-v2 em{grid-row:1/3;grid-column:2/3;color:#ffe7a0;font-style:normal;font-size:.74rem;font-weight:900;}
body.qcm-page .premium-weak-hidden,body.qcm-page .premium-weak-hidden-v2{display:none!important;}

/* Remove old generated filter / HUD duplicates under the new picker */
body.qcm-page .practice-live-summary,
body.qcm-page .practice-hud-row,
body.qcm-page .practice-compact-tracker,
body.qcm-page .practice-headbox,
body.qcm-page .question-difficulty-panel,
body.qcm-page .practice-meta-row,
body.qcm-page .bank-row,
body.qcm-page #courseFilters{display:none!important;visibility:hidden!important;opacity:0!important;height:0!important;max-height:0!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;pointer-events:none!important;}
body.qcm-page .practice-list{padding-top:.02rem!important;padding-bottom:5.4rem!important;}
body.qcm-page .practice-list h1,body.qcm-page .practice-list h2,body.qcm-page .practice-list h3{line-height:1.15!important;}
body.qcm-page .premium-source-hidden{display:none!important;}

/* Sticky bottom action helper */
body.qcm-page .premium-bottom-actions{position:fixed;left:12px;right:12px;bottom:calc(env(safe-area-inset-bottom,0px) + 10px);z-index:9997;display:none;gap:.55rem;padding:.42rem;border:1px solid rgba(245,211,124,.18);border-radius:20px;background:rgba(5,9,18,.88);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);box-shadow:0 -14px 40px rgba(0,0,0,.34);}
body.qcm-page .premium-bottom-actions.visible{display:flex;}
body.qcm-page .premium-bottom-actions.single{max-width:520px;margin:0 auto;}
body.qcm-page .premium-bottom-actions button{flex:1;border:1px solid rgba(255,255,255,.14);border-radius:15px;min-height:42px;padding:.58rem .7rem;color:#f8fafc;background:rgba(255,255,255,.07);font-weight:950;}
body.qcm-page .premium-bottom-actions button.primary{border-color:rgba(245,211,124,.52);background:linear-gradient(135deg,rgba(245,211,124,.34),rgba(245,211,124,.14));color:#ffe7a0;}
body.qcm-page .premium-bottom-actions button.secondary{color:#dbeafe;}

/* v290 — preview mobile cleanup: no floating duplicate CTA */
body.qcm-page .premium-bottom-actions,
body.qcm-page .premium-bottom-actions.visible,
body.qcm-page .premium-bottom-actions.single{display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important;}
body.qcm-page .single-nav-actions .premium-source-hidden,
body.qcm-page .unknown-action-wrap .premium-source-hidden,
body.qcm-page .preanswer-tools .premium-source-hidden{display:inline-flex!important;visibility:visible!important;opacity:1!important;}
body.qcm-page .single-nav-actions{position:static!important;left:auto!important;right:auto!important;bottom:auto!important;top:auto!important;display:grid!important;grid-template-columns:1fr!important;gap:.55rem!important;margin:1rem 0 0!important;padding:.85rem 0 0!important;border-top:1px solid rgba(255,255,255,.10)!important;background:transparent!important;box-shadow:none!important;z-index:auto!important;}
body.qcm-page .single-nav-actions .btn{width:100%!important;min-height:50px!important;border-radius:16px!important;font-size:1rem!important;line-height:1.18!important;}
body.qcm-page .single-nav-actions .btn[data-action="next-question"]{order:1!important;border-color:rgba(245,211,124,.55)!important;background:linear-gradient(135deg,rgba(245,211,124,.36),rgba(245,211,124,.13))!important;color:#ffe7a0!important;}
body.qcm-page .single-nav-actions .btn[data-action="previous-question"]{order:2!important;min-height:42px!important;opacity:.82!important;}
body.qcm-page .single-nav-actions .btn[data-action="previous-question"][disabled]{display:none!important;}
body.qcm-page .single-nav-actions .btn[data-action="next-question"] ~ .btn[data-action="next-question"]{display:none!important;}
body.qcm-page .practice-list{padding-bottom:calc(1rem + env(safe-area-inset-bottom,0px))!important;}
@media(max-width:760px){
  body.qcm-page .practice-compact-controls{overflow-x:auto!important;scrollbar-width:none!important;padding:.45rem .55rem!important;gap:.45rem!important;}
  body.qcm-page .practice-compact-controls::-webkit-scrollbar{display:none!important;}
  body.qcm-page .practice-compact-pill{flex:0 0 auto!important;min-height:34px!important;padding:.48rem .72rem!important;border-radius:999px!important;font-size:.86rem!important;}
  body.qcm-page .practice-focus-open{display:none!important;}
  body.qcm-page .mc-picker-shell{margin-top:.25rem!important;}
  body.qcm-page .premium-progress{margin-bottom:.35rem!important;}
  body.qcm-page .quiz-head{display:flex!important;flex-wrap:wrap!important;gap:.35rem!important;margin-bottom:.55rem!important;}
  body.qcm-page .quiz-head .badge{max-width:100%!important;white-space:normal!important;line-height:1.18!important;}
  body.qcm-page .practice-focus .single-question-card{padding:1rem!important;border-radius:20px!important;}
  body.qcm-page .question-shortcuts{display:none!important;}
  body.qcm-page .module-actions.slim{display:grid!important;grid-template-columns:1fr!important;gap:.5rem!important;margin-top:.75rem!important;}
  body.qcm-page .module-actions.slim .btn{width:100%!important;min-height:40px!important;font-size:.86rem!important;}
}

/* v291 — compact mobile after screenshot review */
body.qcm-page .premium-weak-removed{display:none!important;visibility:hidden!important;max-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;}
body.qcm-page .single-nav-actions .btn[data-action="next-question"][disabled]{display:none!important;}
body.qcm-page .single-nav-actions:has(.btn[data-action="next-question"][disabled]){display:none!important;}
body.qcm-page .unknown-action-wrap{margin:.75rem 0 .25rem!important;}
body.qcm-page .unknown-action-wrap .btn{width:100%!important;min-height:46px!important;border-radius:16px!important;}
body.qcm-page .module-actions.slim{display:flex!important;flex-wrap:wrap!important;gap:.45rem!important;margin-top:.75rem!important;padding-top:.75rem!important;border-top:1px solid rgba(255,255,255,.09)!important;}
body.qcm-page .module-actions.slim .btn{flex:1 1 30%!important;width:auto!important;min-height:34px!important;border-radius:999px!important;padding:.48rem .55rem!important;font-size:.76rem!important;line-height:1.1!important;}
body.qcm-page .module-actions.slim .btn.report-btn,
body.qcm-page .module-actions.slim .btn[data-action="restart-session"]{opacity:.70!important;}
body.qcm-page .coach-banner{max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;margin:.65rem 0 0!important;font-size:.78rem!important;}
@media(max-width:760px){
  body.qcm-page .practice-focus-section{padding-left:8px!important;padding-right:8px!important;}
  body.qcm-page .practice-list{padding-bottom:calc(1.25rem + env(safe-area-inset-bottom,0px))!important;}
  body.qcm-page .practice-focus .single-question-card{margin-top:.7rem!important;}
  body.qcm-page .single-nav-actions{margin-top:.75rem!important;padding-top:.65rem!important;}
  body.qcm-page .single-nav-actions .btn[data-action="next-question"]{min-height:48px!important;font-size:.96rem!important;}
  body.qcm-page .single-nav-actions .btn[data-action="previous-question"]{min-height:34px!important;font-size:.82rem!important;opacity:.64!important;background:rgba(255,255,255,.035)!important;}
  body.qcm-page .module-actions.slim .btn{flex:1 1 100%!important;min-height:34px!important;font-size:.78rem!important;}
}

/* v292 — remove the remaining empty shell between progress and question */
body.qcm-page #practiceList:has(.single-question-card) > :not(.single-question-card){display:none!important;visibility:hidden!important;max-height:0!important;margin:0!important;padding:0!important;border:0!important;overflow:hidden!important;}
body.qcm-page .practice-focus-section:has(.single-question-card) > :empty:not(#practiceList):not(.mc-picker-shell):not(.premium-progress){display:none!important;}
body.qcm-page .premium-progress{margin-bottom:.18rem!important;}
body.qcm-page .single-question-card{margin-top:.35rem!important;}
@media(max-width:760px){
  body.qcm-page .single-question-card{margin-top:.45rem!important;}
  body.qcm-page .practice-focus .single-question-card{margin-top:.45rem!important;}
}

/* v293 — stop auto-scroll from hiding the question under Safari top bar + simplify pre-answer */
body.qcm-page .single-question-card{scroll-margin-top:calc(150px + env(safe-area-inset-top,0px))!important;}
body.qcm-page .confidence-panel,
body.qcm-page .confidence-btn,
body.qcm-page [data-action="confidence"]{display:none!important;}
body.qcm-page .preanswer-tools{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:.5rem!important;margin:.7rem 0 .45rem!important;}
body.qcm-page .preanswer-tools .tool-btn{min-width:0!important;width:100%!important;min-height:40px!important;border-radius:16px!important;padding:.45rem .35rem!important;font-size:.82rem!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
body.qcm-page .unknown-action-wrap{display:grid!important;margin:.55rem 0 .15rem!important;}
body.qcm-page .unknown-action-wrap .btn{min-height:44px!important;}
@media(max-width:760px){
  body.qcm-page .single-question-card{scroll-margin-top:calc(175px + env(safe-area-inset-top,0px))!important;}
  body.qcm-page .practice-focus .option{padding:10px 11px!important;min-height:58px!important;}
  body.qcm-page .practice-focus .option span{width:30px!important;height:30px!important;min-width:30px!important;}
  body.qcm-page .practice-focus .option em{font-size:.9rem!important;line-height:1.32!important;}
  body.qcm-page .practice-focus .options{gap:10px!important;margin:12px 0!important;}
}
