/* MCQ Sewa Pro — student dashboard & CBT exam */
.mcqs, .mcqs * { box-sizing: border-box; }
.mcqs {
    --ink: #0f172a; --ink2: #334155; --muted: #64748b; --line: #e2e8f0; --bg: #f8fafc; --card: #fff;
    --brand: #0284c7; --brand2: #0369a1; --ok: #16a34a; --bad: #dc2626; --warn: #f59e0b; --purple: #7c3aed; --orange: #ea580c;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Devanagari", "Helvetica Neue", Arial, sans-serif;
    color: var(--ink); line-height: 1.5; clear: both; float: none; width: 100%; max-width: 1280px; margin: 20px auto;
}
.mcqs [hidden] { display: none !important; }
.mcqs h2, .mcqs h3 { color: var(--ink); margin: 0; line-height: 1.3; }
.mcqs-muted { color: var(--muted); font-size: 13px; }
.mcqs-empty { background: var(--bg); border: 1px dashed #cbd5e1; border-radius: 12px; padding: 22px; text-align: center; color: var(--muted); grid-column: 1 / -1; }
.mcqs-badge { display: inline-block; border-radius: 6px; padding: 1px 8px; font-size: 11px; font-weight: 800; }

/* Buttons */
.mcqs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid #cbd5e1; background: #fff; color: var(--ink2) !important; font-weight: 800; font-size: 14px; cursor: pointer; text-decoration: none !important; transition: .15s; white-space: nowrap; font-family: inherit; }
.mcqs-btn:hover { border-color: var(--brand); color: var(--brand) !important; }
.mcqs-btn:disabled { opacity: .45; cursor: not-allowed; }
.mcqs-btn-sm { min-height: 32px; padding: 0 12px; font-size: 12px; }
.mcqs-btn-lg { min-height: 50px; font-size: 16px; width: 100%; }
.mcqs-btn-start, .mcqs-btn-submit { background: linear-gradient(135deg, var(--brand), #2563eb); color: #fff !important; border-color: transparent; box-shadow: 0 4px 14px rgba(2, 132, 199, .3); }
.mcqs-btn-start:hover, .mcqs-btn-submit:hover { color: #fff !important; filter: brightness(1.08); }
.mcqs-btn-submit { background: linear-gradient(135deg, #16a34a, #15803d); box-shadow: 0 4px 14px rgba(22, 163, 74, .3); }
.mcqs-btn-resume { background: linear-gradient(135deg, #f97316, #ea580c); color: #fff !important; border-color: transparent; }
.mcqs-btn-resume:hover { color: #fff !important; }
.mcqs-btn-next { background: #ff6600; color: #fff !important; border-color: #ea580c; }
.mcqs-btn-next:hover { background: #ea580c; color: #fff !important; }
.mcqs-btn-review { background: #fbbf24; color: #78350f !important; border-color: #f59e0b; }
.mcqs-btn-review:hover { color: #78350f !important; background: #f59e0b; }
.mcqs-btn-ghost { background: #fff; }
.mcqs-btn-done, .mcqs-btn-ended { background: #f1f5f9; }
.mcqs-btn-disabled { background: #f1f5f9; color: #94a3b8 !important; cursor: default; border-color: #e2e8f0; }
.mcqs-back { display: block; text-align: center; margin-top: 12px; color: var(--muted); font-size: 13px; background: none; border: 0; cursor: pointer; width: 100%; font-family: inherit; }

/* Tags */
.mcqs-tag, .mcqs-cat { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 20px; background: #f1f5f9; color: var(--ink2); }
.mcqs-cat { background: #e0f2fe; color: var(--brand2); }
.mcqs-tag-blue { background: #dbeafe !important; color: #1d4ed8 !important; }
.mcqs-tag-live { background: #dcfce7 !important; color: #15803d !important; }
.mcqs-tag-gold { background: #fef3c7 !important; color: #92400e !important; }
.mcqs-pass, .mcqs-fail, .mcqs-skip { display: inline-block; font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 20px; }
.mcqs-pass { background: #dcfce7; color: #15803d; }
.mcqs-fail { background: #fee2e2; color: #b91c1c; }
.mcqs-skip { background: #f1f5f9; color: var(--muted); }
.mcqs-alert { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; font-size: 14px; }
.mcqs-alert-live { background: #fff7ed; border-color: #fdba74; color: #7c2d12; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.mcqs-alert-live small { display: block; color: #9a3412; }
.mcqs-alert-bad { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }
.mcqs-error { background: #fef2f2; border: 1.5px solid #f87171; color: #991b1b; border-radius: 10px; padding: 10px 12px; font-weight: 700; font-size: 13px; margin-bottom: 12px; }
.mcqs-success { background: #f0fdf4; border: 1.5px solid #86efac; color: #166534; border-radius: 10px; padding: 10px 12px; font-weight: 700; font-size: 13px; }
.mcqs-meter { height: 7px; background: #e2e8f0; border-radius: 8px; overflow: hidden; min-width: 60px; }
.mcqs-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--ok)); border-radius: 8px; transition: width .3s; }

/* ---------- Dashboard layout ---------- */
.mcqs-dash { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
.mcqs-side { background: #0f172a; border-radius: 16px; padding: 16px; position: sticky; top: 24px; color: #e2e8f0; }
.mcqs-user { display: flex; gap: 10px; align-items: center; padding: 6px 4px 14px; border-bottom: 1px solid #1e293b; margin-bottom: 10px; }
.mcqs-user img { border-radius: 50%; }
.mcqs-user strong { display: block; color: #fff; font-size: 14px; }
.mcqs-user small { display: block; color: #94a3b8; font-size: 11px; word-break: break-all; }
.mcqs-nav { display: flex; flex-direction: column; gap: 3px; }
.mcqs-nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: #cbd5e1 !important; text-decoration: none !important; transition: .15s; position: relative; }
.mcqs-nav-item:hover { background: #1e293b; }
.mcqs-nav-item.is-active { background: linear-gradient(135deg, var(--brand), #2563eb); color: #fff !important; }
.mcqs-nav-item span { font-size: 17px; width: 22px; text-align: center; }
.mcqs-nav-item b { font-size: 13.5px; font-weight: 700; line-height: 1.2; }
.mcqs-nav-item b small { display: block; font-size: 10.5px; font-weight: 500; opacity: .7; }
.mcqs-nav-item em { margin-left: auto; background: #ef4444; color: #fff; font-style: normal; font-size: 11px; font-weight: 800; border-radius: 20px; padding: 1px 8px; }
.mcqs-main { min-width: 0; }
.mcqs-head { margin-bottom: 18px; }
.mcqs-head h2 { font-size: 24px; font-weight: 900; }
.mcqs-head p { margin: 4px 0 0; color: var(--muted); }
.mcqs-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.mcqs-stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; border-top: 4px solid #94a3b8; }
.mcqs-stat span { display: block; font-size: 12px; color: var(--muted); font-weight: 700; }
.mcqs-stat strong { display: block; font-size: 22px; font-weight: 900; margin-top: 2px; }
.mcqs-stat.blue { border-top-color: var(--brand); } .mcqs-stat.blue strong { color: var(--brand2); }
.mcqs-stat.green { border-top-color: var(--ok); } .mcqs-stat.green strong { color: #15803d; }
.mcqs-stat.purple { border-top-color: var(--purple); } .mcqs-stat.purple strong { color: #6d28d9; }
.mcqs-stat.orange { border-top-color: var(--orange); } .mcqs-stat.orange strong { color: #c2410c; }
.mcqs-section { margin-bottom: 26px; }
.mcqs-section > h3 { font-size: 17px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.mcqs-section > h3 small { color: var(--muted); font-weight: 600; }
.mcqs-more { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--brand) !important; text-decoration: none !important; }
.mcqs-split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mcqs-split > .mcqs-section { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.mcqs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.mcqs-list { display: flex; flex-direction: column; gap: 12px; }
.mcqs-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: 0 2px 8px rgba(15, 23, 42, .04); }
.mcqs-exam-card { display: flex; flex-direction: column; gap: 10px; transition: transform .15s, box-shadow .15s; }
.mcqs-exam-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 23, 42, .08); }
.mcqs-exam-card h3 { font-size: 17px; font-weight: 800; }
.mcqs-state-resume { border-color: #fdba74; box-shadow: 0 0 0 3px rgba(249, 115, 22, .12); }
.mcqs-card-top { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.mcqs-desc { margin: 0; color: var(--muted); font-size: 13.5px; }
.mcqs-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--ink2); background: var(--bg); border-radius: 10px; padding: 8px 10px; }
.mcqs-meta-center { justify-content: center; }
.mcqs-when { font-size: 13px; color: var(--ink2); }
.mcqs-when-live { color: #15803d; }
.mcqs-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 8px; border-top: 1px solid #f1f5f9; flex-wrap: wrap; }
.mcqs-card-foot small { color: var(--muted); }
.mcqs-countdown { display: flex; gap: 8px; justify-content: center; }
.mcqs-countdown div { background: #0f172a; border: 2px solid #38bdf8; border-radius: 10px; padding: 6px 8px; min-width: 56px; text-align: center; }
.mcqs-countdown b { display: block; font: 900 20px/1 ui-monospace, Menlo, monospace; color: #38bdf8; }
.mcqs-countdown small { display: block; font-size: 10px; color: #94a3b8; margin-top: 3px; }
.mcqs-countdown.is-done div { border-color: #22c55e; }
.mcqs-chart { display: flex; align-items: flex-end; gap: 8px; height: 170px; padding: 8px 0 0; }
.mcqs-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-decoration: none !important; }
.mcqs-bar i { display: block; width: 100%; max-width: 38px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #38bdf8, var(--brand)); }
.mcqs-bar.fail i { background: linear-gradient(180deg, #fca5a5, #ef4444); }
.mcqs-bar small { font-size: 11px; color: var(--muted); margin-top: 4px; }
.mcqs-subjects { display: flex; flex-direction: column; gap: 10px; }
.mcqs-subj { display: grid; grid-template-columns: minmax(0, 1.4fr) 1fr 44px; gap: 10px; align-items: center; }
.mcqs-subj b { display: block; font-size: 13.5px; }
.mcqs-subj small { color: var(--muted); font-size: 11.5px; }
.mcqs-subj em { font-style: normal; font-weight: 900; text-align: right; }
.mcqs-subj-good em { color: #15803d; } .mcqs-subj-mid em { color: #b45309; } .mcqs-subj-weak em { color: #b91c1c; }
.mcqs-subj-weak .mcqs-meter i { background: linear-gradient(90deg, #f87171, #ef4444); }
.mcqs-subj-mid .mcqs-meter i { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.mcqs-tip { margin: 10px 0 0; }
.mcqs-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.mcqs-filter input, .mcqs-filter select { min-height: 40px; border: 1px solid #cbd5e1; border-radius: 10px; padding: 0 12px; font-size: 14px; background: #fff; font-family: inherit; }
.mcqs-filter input[type=search] { flex: 1; min-width: 200px; }
.mcqs-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.mcqs-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0; }
.mcqs-table th { text-align: left; background: var(--bg); color: var(--muted); font-size: 12px; font-weight: 800; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mcqs-table td { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.mcqs-table tr.is-me td { background: #eff6ff; font-weight: 700; }
.mcqs-table .mcqs-meter { display: inline-block; width: 70px; vertical-align: middle; }
.mcqs-podium { display: flex; justify-content: center; align-items: flex-end; gap: 12px; margin: 10px 0 20px; }
.mcqs-pod { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-align: center; width: 150px; }
.mcqs-pod span { font-size: 30px; display: block; }
.mcqs-pod b { display: block; font-size: 14px; }
.mcqs-pod small { color: var(--muted); }
.mcqs-pod-1 { padding-top: 26px; border-color: #fcd34d; background: #fffbeb; }
.mcqs-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 12px; }
.mcqs-form label, .mcqs-cand label { display: block; font-weight: 700; font-size: 13.5px; color: var(--ink2); margin-bottom: 12px; }
.mcqs-form input, .mcqs-cand input[type=text], .mcqs-cand input[type=email] { display: block; width: 100%; margin-top: 5px; padding: 10px 12px; border: 1.5px solid #cbd5e1; border-radius: 10px; font-size: 15px; font-family: inherit; }
.mcqs-cand input[readonly] { background: #f1f5f9; }
.mcqs-actions-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 16px 0; }
.mcqs-login { display: flex; justify-content: center; }
.mcqs-login-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; max-width: 440px; width: 100%; text-align: center; box-shadow: 0 15px 40px rgba(15, 23, 42, .08); }
.mcqs-login-icon { font-size: 44px; }
.mcqs-login-card form { text-align: left; }
.mcqs-login-card input[type=text], .mcqs-login-card input[type=password] { width: 100%; padding: 10px 12px; border: 1.5px solid #cbd5e1; border-radius: 10px; }
.mcqs-login-card input[type=submit] { width: 100%; min-height: 46px; border: 0; border-radius: 10px; background: linear-gradient(135deg, var(--brand), #2563eb); color: #fff; font-weight: 800; cursor: pointer; }
.mcqs-embed { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.mcqs-embed > h3 { margin-bottom: 12px; }

/* Results */
.mcqs-result-hero { display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; margin-bottom: 22px; }
.mcqs-result-hero .mcqs-stats { margin: 0; }
.mcqs-ring { --p: 0; width: 160px; height: 160px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(closest-side, #fff 78%, transparent 79% 100%), conic-gradient(var(--ok) calc(var(--p) * 1%), #e2e8f0 0); }
.fail .mcqs-ring { background: radial-gradient(closest-side, #fff 78%, transparent 79% 100%), conic-gradient(var(--bad) calc(var(--p) * 1%), #e2e8f0 0); }
.mcqs-ring b { font-size: 34px; font-weight: 900; }
.mcqs-ring small { font-weight: 800; color: var(--muted); }
.mcqs-review { display: flex; flex-direction: column; gap: 12px; }
.mcqs-review-filter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.mcqs-review-filter button { border: 1px solid #cbd5e1; background: #fff; border-radius: 20px; padding: 5px 14px; font-weight: 700; cursor: pointer; font-family: inherit; }
.mcqs-review-filter button.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.mcqs-rq { background: #fff; border: 1px solid var(--line); border-left: 5px solid #94a3b8; border-radius: 12px; padding: 14px 16px; }
.mcqs-rq-correct { border-left-color: var(--ok); } .mcqs-rq-wrong { border-left-color: var(--bad); }
.mcqs-rq-head { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.mcqs-rq-head small { color: var(--muted); }
.mcqs-rq-head span { margin-left: auto; }
.mcqs-rq-text { font-weight: 700; font-size: 15.5px; margin-bottom: 10px; }
.mcqs-rq-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mcqs-rq-opts div { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 14px; }
.mcqs-rq-opts .ok { background: #dcfce7; border-color: #22c55e; color: #14532d; font-weight: 700; }
.mcqs-rq-opts .bad { background: #fee2e2; border-color: #ef4444; color: #7f1d1d; }
.mcqs-rq-opts em { font-style: normal; font-size: 12px; font-weight: 800; }
.mcqs-rq-exp { margin-top: 10px; background: #fffbeb; border-left: 4px solid #d97706; padding: 10px 12px; border-radius: 6px; font-size: 13.5px; color: #78350f; }

/* Gate (upcoming / ended / blocked) */
.mcqs-gate { background: #fff; border: 1px solid #bae6fd; border-radius: 20px; padding: 36px 24px; text-align: center; max-width: 760px; margin: 30px auto; box-shadow: 0 15px 40px rgba(2, 132, 199, .1); }
.mcqs-gate h2 { font-size: 24px; font-weight: 900; margin: 6px 0 10px; }
.mcqs-gate p { color: var(--ink2); max-width: 560px; margin: 0 auto 18px; }
.mcqs-gate .mcqs-countdown { margin-bottom: 18px; }
.mcqs-gate .mcqs-countdown div { min-width: 74px; padding: 12px 10px; }
.mcqs-gate .mcqs-countdown b { font-size: 30px; }
.mcqs-gate-icon { font-size: 46px; }
.mcqs-gate-bad { border-color: #fca5a5; box-shadow: 0 15px 40px rgba(239, 68, 68, .1); }
.mcqs-gate-warn { border-color: #fcd34d; }

/* ---------- Exam app ---------- */
.mcqs-app { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 10px 35px rgba(15, 23, 42, .08); position: relative; isolation: isolate; user-select: none; -webkit-user-select: none; min-height: 520px; }
.mcqs-app input, .mcqs-app textarea { user-select: text; -webkit-user-select: text; }
.mcqs-app:fullscreen, .mcqs-app:-webkit-full-screen { max-width: none; width: 100vw; height: 100vh; margin: 0; border-radius: 0; border: 0; overflow-y: auto; background: #fff; }
.mcqs-loading { padding: 80px 20px; text-align: center; color: var(--muted); }
.mcqs-spinner { width: 46px; height: 46px; border: 4px solid #e2e8f0; border-top-color: var(--brand); border-radius: 50%; margin: 0 auto 14px; animation: mcqsSpin .8s linear infinite; }
@keyframes mcqsSpin { to { transform: rotate(360deg); } }

.mcqs-lobby-head { background: linear-gradient(135deg, #0f172a, #0369a1); color: #fff; padding: 30px 26px; text-align: center; }
.mcqs-lobby-head h2 { color: #fff; font-size: 26px; font-weight: 900; margin: 10px 0 8px; }
.mcqs-lobby-head p { color: #cbd5e1; max-width: 680px; margin: 0 auto 14px; }
.mcqs-lobby-head .mcqs-meta { background: rgba(255, 255, 255, .1); color: #e2e8f0; display: inline-flex; }
.mcqs-lobby-head .mcqs-meta span { padding: 2px 6px; border-radius: 6px; }
.mcqs-lobby-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; padding: 24px; }
.mcqs-rules h3, .mcqs-cand h3 { font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.mcqs-rules ol { margin: 0 0 14px; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; font-size: 14px; color: var(--ink2); }
.mcqs-cand { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.mcqs-agree { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 600 !important; font-size: 13px !important; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.mcqs-agree input { margin-top: 3px; }
.mcqs-legend-demo, .mcqs-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 12px; color: var(--ink2); }
.mcqs-legend-demo span, .mcqs-legend span { display: flex; align-items: center; gap: 6px; }
.mcqs-legend-demo i, .mcqs-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; flex-shrink: 0; }
.mcqs-legend b { margin-left: auto; }
i.st-answered, .st-answered { background: var(--ok); color: #fff; border-color: #15803d !important; }
i.st-not-answered, .st-not-answered { background: var(--bad); color: #fff; border-color: #b91c1c !important; }
i.st-marked, .st-marked { background: var(--purple); color: #fff; border-color: #6d28d9 !important; }
i.st-marked-ans, .st-marked-ans { background: var(--purple); color: #fff; border-color: #6d28d9 !important; box-shadow: inset 0 -4px 0 #22c55e; }
i.st-not-visited, .st-not-visited { background: #fff; color: var(--ink2); border: 1px solid #cbd5e1 !important; }

/* System check */
.mcqs-check { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; padding: 24px; }
.mcqs-cam-stage { position: relative; background: #020617; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; }
.mcqs-cam-stage video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.mcqs-face-guide { position: absolute; left: 50%; top: 47%; width: 42%; height: 66%; transform: translate(-50%, -50%); border: 3px dashed rgba(56, 189, 248, .85); border-radius: 50%; box-shadow: 0 0 0 2000px rgba(2, 6, 23, .35); pointer-events: none; }
.mcqs-cam-hint { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; color: #fff; font-weight: 700; text-shadow: 0 1px 4px #000; }
.mcqs-mic { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 18px; }
.mcqs-mic .mcqs-meter { flex: 1; height: 10px; }
.mcqs-checklist { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mcqs-checklist li { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 14px; font-weight: 600; }
.mcqs-checklist li i { width: 20px; height: 20px; border-radius: 50%; background: #e2e8f0; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; color: #fff; }
.mcqs-checklist li[data-note]::after { content: attr(data-note); margin-left: auto; font-size: 11px; color: var(--muted); font-weight: 600; max-width: 45%; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcqs-checklist li.is-ok i { background: var(--ok); } .mcqs-checklist li.is-ok i::before { content: '✓'; }
.mcqs-checklist li.is-bad { border-color: #fca5a5; background: #fef2f2; } .mcqs-checklist li.is-bad i { background: var(--bad); } .mcqs-checklist li.is-bad i::before { content: '✕'; }
.mcqs-checklist li.is-warn { border-color: #fcd34d; background: #fffbeb; } .mcqs-checklist li.is-warn i { background: var(--warn); } .mcqs-checklist li.is-warn i::before { content: '!'; }
.mcqs-checklist li.is-wait i { background: #94a3b8; animation: mcqsPulse 1.2s infinite; }
.mcqs-check-msg { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 12px; color: #1e3a8a; }
.mcqs-calib { margin-bottom: 12px; }
.mcqs-calib .mcqs-meter { height: 10px; margin-bottom: 4px; }
.mcqs-calib small { color: var(--muted); }
.mcqs-check-side .mcqs-btn { margin-bottom: 8px; width: 100%; }

/* Exam header */
.mcqs-alertbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 14px; font-size: 13px; font-weight: 700; position: sticky; top: 0; z-index: 30; }
.mcqs-alertbar.sev-1 { background: #eff6ff; color: #1e3a8a; border-bottom: 1px solid #bfdbfe; }
.mcqs-alertbar.sev-2 { background: #fef2f2; color: #991b1b; border-bottom: 1.5px solid #ef4444; }
.mcqs-alertbar.sev-3 { background: #dc2626; color: #fff; animation: mcqsFlash .8s 3; }
.mcqs-alertbar button { flex-shrink: 0; background: #b91c1c; color: #fff; border: 0; border-radius: 6px; padding: 4px 10px; font-weight: 800; cursor: pointer; font-size: 12px; }
.mcqs-alertbar.sev-1 button { background: var(--brand); }
.mcqs-alert-count { background: #fff; color: #b91c1c; border-radius: 4px; padding: 0 5px; margin-right: 4px; }
.mcqs-xhead { background: #0f172a; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 14px 8px 20px; border-bottom: 3px solid var(--brand); min-height: 76px; }
.mcqs-xtitle h3 { color: #f8fafc; font-size: 16px; font-weight: 800; }
.mcqs-xtitle small { color: #94a3b8; font-size: 12.5px; }
.mcqs-xctrl { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.mcqs-net { font-size: 11px; font-weight: 700; color: #4ade80; white-space: nowrap; }
.mcqs-net.is-saving { color: #fbbf24; }
.mcqs-net.is-offline { color: #f87171; animation: mcqsPulse 1s infinite; }
.mcqs-timerwrap { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.mcqs-warn { background: #fee2e2; color: #991b1b; border: 1.5px solid #ef4444; border-radius: 5px; padding: 0 7px; font-size: 11px; font-weight: 800; }
.mcqs-timer { font: 800 16px ui-monospace, Menlo, monospace; background: #1e293b; color: #38bdf8; border: 1px solid #334155; border-radius: 10px; padding: 6px 12px; min-width: 120px; text-align: center; }
.mcqs-timer.is-warn { background: #7c2d12; color: #fed7aa; border-color: #f97316; }
.mcqs-timer.is-crit { background: #7f1d1d; color: #fecaca; border-color: #ef4444; animation: mcqsPulse 1s infinite; }
.mcqs-fs { height: 38px; padding: 0 12px; background: #dc2626; color: #fff; border: 1px solid #b91c1c; border-radius: 8px; font-weight: 800; font-size: 12.5px; cursor: pointer; font-family: inherit; }
.mcqs-headcam { width: 60px; height: 60px; border-radius: 10px; overflow: hidden; position: relative; background: #020617; border: 3px solid #22c55e; flex-shrink: 0; box-shadow: 0 0 10px rgba(34, 197, 94, .4); transition: .25s; }
.mcqs-headcam video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.mcqs-headcam i { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.mcqs-headcam em { position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 8.5px; font-weight: 900; color: #22c55e; background: rgba(15, 23, 42, .9); padding: 0 5px; border-radius: 3px; }
.mcqs-headcam.is-alert, .mcqs-sidecam.is-alert { border-color: #ef4444 !important; box-shadow: 0 0 18px rgba(239, 68, 68, .9) !important; animation: mcqsBorder .7s infinite alternate; }
.mcqs-headcam.is-alert i { background: #ef4444; box-shadow: 0 0 6px #ef4444; }
.mcqs-headcam.is-alert em { color: #ef4444; }

.mcqs-strip { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 2px solid var(--line); background: #fff; }
.mcqs-strip-count { font-size: 12px; font-weight: 800; color: var(--brand2); background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 8px; padding: 6px 10px; white-space: nowrap; }
.mcqs-strip-list { display: flex; gap: 6px; overflow-x: auto; scroll-behavior: smooth; padding: 4px 2px; flex: 1; scrollbar-width: thin; }
.mcqs-strip-list button, .mcqs-palette button { min-width: 36px; height: 36px; border-radius: 8px; border: 1px solid #cbd5e1; font-weight: 800; font-size: 13px; cursor: pointer; flex-shrink: 0; font-family: inherit; padding: 0; }
.mcqs-strip-list button.is-current, .mcqs-palette button.is-current { outline: 3px solid var(--brand); outline-offset: 1px; }

.mcqs-xgrid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; min-height: 560px; }
.mcqs-qpane { padding: 22px 26px; position: relative; display: flex; flex-direction: column; }
.mcqs-qmeta { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; border-bottom: 2px solid #f1f5f9; padding-bottom: 10px; margin-bottom: 16px; }
.mcqs-qno { color: var(--brand); font-size: 16px; }
.mcqs-report-btn { background: #fef2f2; color: var(--bad); border: 1px solid #fecaca; border-radius: 6px; padding: 2px 8px; font-size: 11px; font-weight: 800; cursor: pointer; font-family: inherit; }
.mcqs-qtext { font-size: 18px; font-weight: 700; line-height: 1.65; margin-bottom: 20px; word-break: break-word; }
.mcqs-qtext img { max-width: 100%; height: auto; }
.mcqs-opts { display: flex; flex-direction: column; gap: 11px; }
.mcqs-opts.is-disabled { pointer-events: none; opacity: .5; }
.mcqs-opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 13px 16px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font-size: 16px; line-height: 1.5; color: #1e293b; cursor: pointer; transition: .15s; font-family: inherit; }
.mcqs-opt:hover:not(:disabled):not(.is-locked) { border-color: #38bdf8; background: #f0f9ff; }
.mcqs-opt.is-selected { border-color: var(--brand); background: #e0f2fe; color: var(--brand2); font-weight: 700; }
.mcqs-opt:disabled { opacity: .5; cursor: default; }
.mcqs-opt.is-locked { cursor: default; }
.mcqs-opt-l { width: 32px; height: 32px; border-radius: 50%; background: #f1f5f9; border: 2px solid #cbd5e1; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.mcqs-opt.is-selected .mcqs-opt-l { background: var(--brand); border-color: var(--brand); color: #fff; }
.mcqs-opt-t { flex: 1; }
.mcqs-actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 20px; }
.mcqs-actions-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mcqs-actions .mcqs-btn { width: 100%; height: 44px; }
.mcqs-kbd { text-align: center; color: #94a3b8; font-size: 11px; }

.mcqs-xside { background: var(--bg); border-left: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.mcqs-sidecam { position: relative; width: 100%; max-width: 260px; aspect-ratio: 4 / 3; margin: 0 auto; border-radius: 14px; overflow: hidden; background: #0f172a; border: 3px solid #22c55e; box-shadow: 0 0 10px rgba(34, 197, 94, .35); transition: .25s; }
.mcqs-sidecam video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
.mcqs-rec { position: absolute; top: 6px; left: 6px; z-index: 2; background: rgba(220, 38, 38, .9); color: #fff; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 4px; }
.mcqs-ps-pill { position: absolute; left: 6px; right: 6px; bottom: 6px; background: rgba(15, 23, 42, .88); color: #4ade80; font-size: 11.5px; font-weight: 800; border-radius: 6px; padding: 4px 8px; text-align: center; }
.mcqs-ps-pill.is-warn { color: #fbbf24; }
.mcqs-ps-pill.is-bad { color: #f87171; }
.mcqs-ps-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.mcqs-ps-list li { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 4px 6px; }
.mcqs-ps-list i { width: 8px; height: 8px; border-radius: 50%; background: #94a3b8; flex-shrink: 0; }
.mcqs-ps-list .is-ok i { background: var(--ok); } .mcqs-ps-list .is-warn i { background: var(--warn); } .mcqs-ps-list .is-bad i { background: var(--bad); animation: mcqsPulse 1s infinite; } .mcqs-ps-list .is-off { opacity: .45; }
.mcqs-palette-head { display: flex; justify-content: space-between; align-items: center; }
.mcqs-palette-head small { color: var(--muted); font-weight: 700; }
.mcqs-legend { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px; }
.mcqs-palette { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; max-height: 340px; overflow-y: auto; padding: 3px; }
.mcqs-palette button { width: 100%; min-width: 0; }

.mcqs-overlay, .mcqs-gate-overlay { position: absolute; inset: 0; z-index: 40; background: rgba(15, 23, 42, .94); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; color: #fff; text-align: center; }
.mcqs-gate-overlay { position: absolute; z-index: 50; }
.mcqs-overlay-box { max-width: 480px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mcqs-overlay-box h3 { color: #f87171; font-size: 21px; font-weight: 900; }
.mcqs-overlay-box p { color: #cbd5e1; margin: 0; font-size: 14px; }
.mcqs-overlay-box small { color: #94a3b8; }
.mcqs-suspend-count { background: #1e293b; border: 2px solid #ef4444; padding: 10px 26px; border-radius: 12px; font: 900 26px ui-monospace, monospace; color: #f87171; }
.mcqs-modal { position: fixed; inset: 0; z-index: 2147483000; background: rgba(15, 23, 42, .7); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.mcqs-app:fullscreen .mcqs-modal { position: absolute; }
.mcqs-modal-box { background: #fff; border-radius: 16px; max-width: 520px; width: 100%; padding: 22px; box-shadow: 0 20px 40px rgba(0, 0, 0, .3); max-height: 92vh; overflow-y: auto; }
.mcqs-modal-box h3 { font-size: 18px; font-weight: 900; margin-bottom: 12px; }
.mcqs-modal-box textarea { width: 100%; border: 1.5px solid #cbd5e1; border-radius: 10px; padding: 10px; font-family: inherit; font-size: 14px; margin: 10px 0; }
.mcqs-quote { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 13px; font-weight: 600; }
.mcqs-radios { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; font-size: 13px; }
.mcqs-radios label { display: flex; gap: 6px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; cursor: pointer; }
.mcqs-submit-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; margin-bottom: 10px; }
.mcqs-submit-sum div { background: var(--bg); border-radius: 10px; padding: 10px 4px; border: 1px solid var(--line); }
.mcqs-submit-sum b { display: block; font-size: 22px; font-weight: 900; }
.mcqs-submit-sum small { font-size: 11px; color: var(--muted); }
.mcqs-submit-sum .ok b { color: #15803d; } .mcqs-submit-sum .warn b { color: #6d28d9; } .mcqs-submit-sum .bad b { color: #b91c1c; }
.mcqs-submit-sum p { grid-column: 1 / -1; margin: 4px 0 0; }
.mcqs-result { padding: 26px; }

@keyframes mcqsPulse { 50% { opacity: .45; } }
@keyframes mcqsBorder { from { box-shadow: 0 0 8px rgba(239, 68, 68, .6); } to { box-shadow: 0 0 22px rgba(239, 68, 68, 1); } }
@keyframes mcqsFlash { 50% { background: #7f1d1d; } }

/* Responsive */
@media (max-width: 1024px) {
    .mcqs-dash { grid-template-columns: 1fr; }
    .mcqs-side { position: static; }
    .mcqs-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
    .mcqs-nav-item { flex-shrink: 0; }
    .mcqs-nav-item b small { display: none; }
    .mcqs-split { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .mcqs-xgrid, .mcqs-lobby-body, .mcqs-check { grid-template-columns: 1fr; }
    .mcqs-xside { border-left: 0; border-top: 1px solid var(--line); }
    .mcqs-result-hero { grid-template-columns: 1fr; justify-items: center; }
}
@media (max-width: 640px) {
    .mcqs-xhead { padding: 6px 10px; min-height: 62px; flex-wrap: wrap; }
    .mcqs-xtitle h3 { font-size: 14px; }
    .mcqs-fs span, .mcqs-net { display: none; }
    .mcqs-headcam { width: 48px; height: 48px; }
    .mcqs-timer { font-size: 13px; min-width: 90px; padding: 4px 8px; }
    .mcqs-qpane { padding: 14px 12px; }
    .mcqs-qtext { font-size: 16px; }
    .mcqs-opt { font-size: 15px; padding: 11px 12px; }
    .mcqs-actions .mcqs-btn { height: 42px; font-size: 12.5px; padding: 0 6px; }
    .mcqs-rq-opts, .mcqs-radios, .mcqs-form-grid { grid-template-columns: 1fr; }
    .mcqs-submit-sum { grid-template-columns: 1fr 1fr; }
    .mcqs-podium { gap: 6px; } .mcqs-pod { width: 30%; padding: 10px 4px; }
    .mcqs-lobby-body, .mcqs-check { padding: 14px; }
}

/* Print: result / marksheet only */
@media print {
    body * { visibility: hidden; }
    .mcqs-result, .mcqs-result *, .mcqs-main, .mcqs-main * { visibility: visible; }
    .mcqs-result, .mcqs-main { position: absolute; left: 0; top: 0; width: 100%; }
    .mcqs-btn, .mcqs-review-filter, .mcqs-actions-row { display: none !important; }
    .mcqs-rq { break-inside: avoid; }
    .mcqs-review [hidden] { display: block !important; }
}
