/* Shared screenshot-led setup for phone, tablet and desktop. */
.mcq-scenery{display:none}

html body.mcq-student:not(.mcq-in-session) main{padding:28px 32px 72px;overflow:clip}
body.mcq-student:not(.mcq-in-session) .mcq-intro{position:relative;isolation:isolate;padding:0 8px;margin-bottom:24px}
body.mcq-student:not(.mcq-in-session) .mcq-scenery{display:block;position:absolute;z-index:-1;right:-14px;top:-18px;width:420px;height:220px;object-fit:cover;object-position:right center;opacity:.6;pointer-events:none;mask-image:linear-gradient(to right,transparent,#000 55%),linear-gradient(to bottom,#000 65%,transparent);mask-composite:intersect}
body.mcq-student:not(.mcq-in-session) .mcq-heading{display:block;margin:0}
html body.mcq-student:not(.mcq-in-session) .mcq-heading h1{position:relative;display:table;font-size:clamp(1.75rem,3.2vw,2.5rem);line-height:1.2;font-weight:780;letter-spacing:-.025em;margin:0 0 12px}
body.mcq-student:not(.mcq-in-session) .mcq-heading h1::after{content:"";position:absolute;left:0;bottom:-7px;width:65%;height:4px;border-radius:70% 20% 80% 30%;background:linear-gradient(90deg,#82bdff,#cbeaff 80%,transparent);transform:rotate(-1.5deg)}
body.mcq-student:not(.mcq-in-session) .mcq-heading p,
body.mcq-student:not(.mcq-in-session) #mcqGuestNotice{position:relative;font-size:1rem;line-height:1.7;color:#385279;margin:0}
body.mcq-student:not(.mcq-in-session) #mcqGuestNotice{margin-top:4px}
body.mcq-student:not(.mcq-in-session) #openHistory{display:inline-flex;align-items:center;min-height:44px;margin-top:4px;color:var(--action,var(--student-primary,#006dcc))}
html body.mcq-student #mcqStart{gap:24px}
html body.mcq-student #chapterPanel{border-radius:24px;padding:24px;background:#fff;box-shadow:0 8px 28px #5d9fe40a}
html body.mcq-student .mcq-panel-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:0}
html body.mcq-student .mcq-panel-heading h3{display:flex;align-items:center;gap:12px;font-size:1.25rem;font-weight:750;line-height:1.45}
body.mcq-student .mcq-panel-icon{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:10px;background:#e5f2ff;color:var(--student-primary,#007aff)}
body.mcq-student .mcq-panel-icon svg{width:24px;height:24px}
html body.mcq-student #closeChapters{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:4px 0;margin:0;border:0;background:transparent;color:var(--student-primary,#0072e8);font-size:.8125rem;white-space:nowrap}
body.mcq-student .mcq-settings-icon,body.mcq-student .mcq-settings-arrow{display:block;width:17px;height:17px;flex:none}
body.mcq-student .mcq-settings-arrow{width:12px;height:12px}
html body.mcq-student .mcq-search{display:flex;margin:10px 0 16px}
html body.mcq-student #chapterSearch{width:100%;min-height:44px;padding:12px 12px 12px 40px;border:1px solid #d8e7fc;background:#f4f8ff;border-radius:12px;font-size:.875rem}
html body.mcq-student #chapterSearch::placeholder{font-size:clamp(.6875rem,2.95vw,.8125rem);color:#4e6689}
html body.mcq-student .mcq-search svg{left:14px;width:19px;height:19px;color:#435d81}
html body.mcq-student #mcqChapters{max-height:none;overflow:visible;padding:0;border:0;gap:0}
html body.mcq-student .mcq-chapter-group+ .mcq-chapter-group{border-top:1px solid #d6e6fc;margin-top:14px;padding-top:4px}
html body.mcq-student .mcq-chapter-group h4{position:relative;padding-left:16px;margin:16px 0 10px;font-size:.9375rem;font-weight:730;line-height:1.5;color:#233e64}
body.mcq-student .mcq-chapter-group h4::before{content:"";position:absolute;left:2px;top:.2em;bottom:.2em;width:3px;border-radius:1px;background:#0781ff}
html body.mcq-student #mcqChapters .mcq-chapter-card{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto auto 12px;align-items:center;gap:10px;min-height:64px;margin:0 0 10px;padding:16px 16px 16px 22px;border:1px solid #dce9fd;border-radius:10px;background:#fff;cursor:pointer}
html body.mcq-student #mcqChapters .mcq-chapter-card input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:inherit}
html body.mcq-student #mcqChapters .mcq-chapter-card:has(input:checked){background:#edf6ff;border-color:#0781ff;box-shadow:0 3px 10px #0781ff12}
body.mcq-student .mcq-chapter-card:has(input:checked)::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:#0781ff;border-radius:10px 0 0 10px;pointer-events:none}
html body.mcq-student #mcqChapters .mcq-chapter-card:has(input:focus-visible){outline:3px solid var(--student-primary,#006dcc);outline-offset:3px}
html body.mcq-student #mcqChapters .mcq-chapter-card:has(input:disabled){opacity:.6;cursor:wait}
html body.mcq-student #mcqChapters .mcq-choice-title{min-width:0;font-size:1rem;line-height:1.5;font-weight:700;overflow-wrap:anywhere;color:#112d52;pointer-events:none}
html body.mcq-student #mcqChapters .mcq-choice-count{font-size:.8125rem;color:#526c90;white-space:nowrap;pointer-events:none}
html body.mcq-student #mcqChapters .mcq-choice-state{display:block;min-width:54px;padding:6px 10px;text-align:center;border-radius:30px;background:#eff5fd;color:#4b6486;font-size:.75rem;line-height:1.5;font-weight:500;white-space:nowrap;pointer-events:none}
html body.mcq-student #mcqChapters input:checked~.mcq-choice-state{color:var(--student-primary,#0072e8);background:#dceeff}
body.mcq-student .mcq-choice-chevron{display:block;width:12px;height:16px;color:#486487;pointer-events:none}
html body.mcq-student #unavailableChapters{margin-top:10px;border:0;background:#f1f6fd;border-radius:10px;padding:0 12px;color:#486487}
html body.mcq-student #unavailableChapters summary{min-height:44px;align-content:center;font-size:.875rem;font-weight:650}
html body.mcq-student .mcq-config{border:0;border-radius:24px;padding:24px;background:#fff}

html body.mcq-student #mcqSetup{background:transparent;border-radius:0}
@media(min-width:768px) and (max-width:1099px){
  html body.mcq-student #mcqStart{grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr);gap:20px}
  html body.mcq-student #chapterPanel,html body.mcq-student .mcq-config{padding:18px}
}

@media(max-width:767px){
  html body.mcq-student:not(.mcq-in-session) main{padding:12px 14px calc(114px + env(safe-area-inset-bottom))}
  body.mcq-student:not(.mcq-in-session) .mcq-intro{margin-bottom:16px}
  body.mcq-student:not(.mcq-in-session) .mcq-scenery{width:250px;height:180px}
  html body.mcq-student:not(.mcq-in-session) .mcq-heading h1{font-size:clamp(1.75rem,8.2vw,2.125rem)}
  body.mcq-student:not(.mcq-in-session) .mcq-heading p,body.mcq-student:not(.mcq-in-session) #mcqGuestNotice{font-size:.875rem}
  html body.mcq-student #mcqStart{gap:16px}
  html body.mcq-student #chapterPanel{padding:14px}
  html body.mcq-student .mcq-panel-heading h3{font-size:1.125rem}
  html body.mcq-student #mcqChapters .mcq-chapter-card{min-height:50px;margin-bottom:7px;padding:13px 12px 13px 20px}
  html body.mcq-student #mcqChapters .mcq-choice-title{font-size:.9375rem}
  html body.mcq-student #mcqChapters .mcq-choice-count{font-size:.75rem}
  html body.mcq-student #mcqChapters .mcq-choice-state{min-width:48px;padding:5px 8px;font-size:.6875rem}
  html body.mcq-student .mcq-config{padding:20px}
  html.student-glass-root body.mcq-student:not(.mcq-in-session) #navigation{inset:auto 0 0;width:100%;padding:5px 6px max(10px,env(safe-area-inset-bottom));min-height:74px;height:auto;border:0;border-top:1px solid #eef5ff;border-radius:22px 22px 0 0;background:#fff;box-shadow:0 -5px 22px #5195df0b;backdrop-filter:none;-webkit-backdrop-filter:none}
  html.student-glass-root body.mcq-student:not(.mcq-in-session) #navigation :is(a,button){gap:4px;min-height:54px;padding:4px 1px;border-radius:20px;color:#4b6385;font-size:.6875rem;line-height:1.35}
  html.student-glass-root body.mcq-student:not(.mcq-in-session) #navigation svg{width:25px;height:25px}
  html.student-glass-root body.mcq-student:not(.mcq-in-session) #navigation [aria-current=page]{background:#e1f0ff;color:var(--student-primary,#007aff);font-weight:700}
}

/* Keep settings within reach; the topic picker owns its scrolling. */
html body.mcq-student:not(.mcq-in-session) main{max-width:1040px;padding-top:20px}
body.mcq-student:not(.mcq-in-session) .mcq-intro{margin-bottom:18px}
html body.mcq-student #mcqStart{display:block;max-width:720px;margin-inline:auto}
html body.mcq-student .mcq-config{position:static;display:grid;gap:18px;padding:24px}
body.mcq-student .mcq-config :is(button,input,select){scroll-margin-block:16px}
body.mcq-student .mcq-field-label{font-size:.875rem;font-weight:600}
html body.mcq-student .mcq-topic-control{gap:6px}
html body.mcq-student #chapterToggle{min-height:52px;border:1px solid #c9ddf6;border-radius:10px;padding:10px 14px;background:#f4f9ff;align-items:center;gap:12px;line-height:1.5}
body.mcq-student .mcq-quick-options{display:grid;grid-template-columns:88px minmax(0,1fr);gap:20px;align-items:end}
html body.mcq-student .mcq-count-label{display:grid;grid-template-columns:1fr;gap:8px;font-size:.875rem;font-weight:600;margin:0}
html body.mcq-student #count{min-height:48px;padding:10px}
html body.mcq-student .mcq-segmented{margin:0}
html body.mcq-student .mcq-segmented>div{padding:0;border:1px solid #c9ddf6;gap:0;overflow:hidden}
html body.mcq-student .mcq-segmented label{min-height:46px}
html body.mcq-student .mcq-segmented span{padding:8px 4px;border-radius:7px}
html body.mcq-student .mcq-mode-cards{margin:0}
body.mcq-student .mcq-mode-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
html body.mcq-student .mcq-mode-cards label{min-height:48px;padding:10px 12px;margin:0;gap:8px}
html body.mcq-student .mcq-mode-cards strong{font-size:.875rem}
html body.mcq-student .mcq-setup-help{margin:-10px 0 0;font-size:.8125rem}
html body.mcq-student #modeHelp{display:block;margin:0}
html body.mcq-student #startButton{min-height:48px;margin:0}
body.mcq-student .site-footer,body.mcq-student .app-version-footer{display:none}
body.mcq-student:not(.mcq-in-session) .mcq-scenery{top:0;height:100%;object-position:right 55%;clip-path:inset(0)}
body.mcq-choosing{overflow:hidden}
html body.mcq-student #chapterDialog{width:min(720px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 40px);padding:0;border:0;border-radius:24px;background:#fff;overscroll-behavior:contain;scrollbar-color:#789ac0 #eff6ff}
html body.mcq-student #chapterDialog:not([open]){display:none}
body.mcq-student #chapterDialog::backdrop{background:#17375966}
body.mcq-student #chapterDialog :is(input,button,summary){scroll-margin-block:12px}
html body.mcq-student #chapterPanel{border-radius:0;box-shadow:none}
html body.mcq-student .mcq-panel-heading{position:sticky;top:-24px;background:#fff;z-index:2;padding-block:8px;margin-top:-8px;flex-wrap:nowrap}
html body.mcq-student #closeChapters{min-width:64px;padding:8px 12px;border-radius:9px;background:#e5f2ff;font-weight:650}
html body.mcq-student #chapterPanel .mcq-selection-line{margin:4px 0 0;font-size:.8125rem}

/* Numbered status stays above the question, never in a popup or sidebar. */
body.mcq-in-session .mcq-heading{display:none}
body.mcq-in-session #mcqGuestNotice{font-size:.75rem;margin:0 0 4px;color:var(--mcq-muted)}
html body.mcq-in-session main{padding-top:12px}
html body.mcq-student .mcq-workbench{display:block}
body.mcq-student .mcq-session-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:.875rem}
html body.mcq-student #backToSetup{margin:0;min-height:44px;padding:8px 0}
body.mcq-student .mcq-answer-map{margin:0 0 12px}
body.mcq-student .mcq-map-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 16px;margin-bottom:8px;font-size:.8125rem}
body.mcq-student .mcq-map-legend{display:flex;gap:12px;font-size:.6875rem;color:#3e5a79}
body.mcq-student .mcq-map-legend span{display:flex;align-items:center;gap:4px}
body.mcq-student .mcq-map-legend span::before{content:"";width:8px;height:8px;background:#fff;border:1px solid #8da7c6;border-radius:2px}
body.mcq-student .mcq-map-legend .is-answered::before{background:#d9ebff;border-color:#6e96c2}
body.mcq-student .mcq-map-legend .is-correct::before{background:#d8efe1;border-color:#448264}
body.mcq-student .mcq-map-legend .is-wrong::before{background:#ffe1e5;border-color:#b65d6b}
html body.mcq-student .mcq-question-nav{position:static;display:grid;grid-template-columns:repeat(auto-fill,minmax(44px,1fr));width:100%;max-height:none;min-height:0;gap:8px;margin:0;padding:3px;border:0;background:transparent;overflow:visible;border-radius:0}
html body.mcq-student .mcq-question-nav button{position:relative;min-width:44px;min-height:44px;height:44px;border:1px solid #b9cde4;background:#fff;color:#28486a;border-radius:8px;font-size:.875rem;flex-direction:row}
html body.mcq-student .mcq-question-nav button[data-state=answered]{background:#e4f1ff!important;border-color:#83a8d3;color:#174d86!important}
html body.mcq-student .mcq-question-nav button[data-state=correct]{background:#e2f4e9!important;border-color:#70a68a;color:#205e42!important}
html body.mcq-student .mcq-question-nav button[data-state=wrong]{background:#fff0f2!important;border-color:#c58c96;color:#933044!important}
html body.mcq-student .mcq-question-nav button[data-state=unanswered],html body.mcq-student .mcq-question-nav button[data-state=blank]{background:#fff!important;color:#28486a!important}
html body.mcq-student .mcq-question-nav button[aria-current=step]{outline:2px solid var(--student-primary,#006dcc);outline-offset:1px;border-color:var(--student-primary,#006dcc);font-weight:750}
body.mcq-student .mcq-question-nav button svg{position:absolute;right:3px;bottom:3px;width:10px;height:10px}
html body.mcq-student .mcq-progress{height:3px;margin-bottom:16px}
@media(max-width:767px){
  html body.mcq-student:not(.mcq-in-session) main{padding-top:12px}
  body.mcq-student:not(.mcq-in-session) .mcq-intro{margin-bottom:14px;padding:0 4px}
  html body.mcq-student:not(.mcq-in-session) .mcq-heading h1{font-size:1.75rem;margin-bottom:10px}
  html body.mcq-student .mcq-config{padding:16px;gap:16px}
  body.mcq-student .mcq-quick-options{grid-template-columns:72px minmax(0,1fr);gap:12px}
  html body.mcq-student .mcq-mode-cards label{padding:10px 8px}
  html body.mcq-student #chapterDialog{max-height:calc(100dvh - 24px);width:calc(100vw - 24px);border-radius:18px}
  html body.mcq-student .mcq-panel-heading{top:-14px}
  html body.mcq-student .mcq-panel-heading h3{font-size:1rem;gap:8px}
  body.mcq-student .mcq-panel-icon{width:28px;height:28px}
  html body.mcq-student .mcq-question-nav{grid-template-columns:repeat(auto-fill,minmax(44px,1fr));gap:7px}
}
@media(max-height:540px) and (min-width:500px){
  html body.mcq-student:not(.mcq-in-session) main{padding-top:6px}
  body.mcq-student:not(.mcq-in-session) .mcq-intro{display:flex;align-items:center;flex-wrap:wrap;gap:4px 16px;margin-bottom:8px}
  html body.mcq-student:not(.mcq-in-session) .mcq-heading h1{font-size:1.375rem;margin:0}
  body.mcq-student:not(.mcq-in-session) .mcq-scenery{display:none}
  html body.mcq-student .mcq-config{grid-template-columns:1fr 1fr;gap:8px 16px;padding:12px}
  body.mcq-student .mcq-topic-control{grid-column:1;grid-row:1}
  body.mcq-student .mcq-quick-options{grid-column:2;grid-row:1}
  body.mcq-student #mode{grid-column:1;grid-row:2}
  html body.mcq-student .mcq-setup-help{grid-column:1;grid-row:3;margin:0}
  html body.mcq-student #startButton{grid-column:2;grid-row:2;align-self:end}
}

body.mcq-student .mcq-account-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px}
html body.mcq-student #openHistory{margin:0;min-height:44px;font-size:.8125rem}
html body.mcq-student #mcqResume{margin:0;padding:0;background:transparent;border:0}
html body.mcq-student #continueSession{min-height:44px;padding:6px 0;border:0;background:transparent;font-size:.8125rem;color:var(--mcq-accent)}
body.mcq-in-session .mcq-account-tools{display:none}
