/* =====================================================================
   MCQ Sewa Pro — student app (dashboard + CBT exam)
   Mobile-first. Breakpoints: 640 (sm) · 768 (md) · 1024 (lg) · 1280 (xl)
   ===================================================================== */

/* ---------- Tokens ---------- */
.mcqs, .mcqs-shell {
    --bg: #f3f5fb;
    --card: #ffffff;
    --ink: #0f172a;
    --ink2: #334155;
    --muted: #64748b;
    --faint: #94a3b8;
    --line: #e5e9f2;
    --line2: #eef1f7;
    --brand: #2563eb;
    --brand-600: #1d4ed8;
    --brand-50: #eff4ff;
    --brand-100: #dbe6ff;
    --btn-text: #ffffff;
    --hero-1: #1e3a8a;
    --hero-2: #2563eb;
    --hero-3: #0ea5e9;
    --dash-w-laptop: 1480px;
    --dash-w-desktop: 1480px;
    --exam-w-laptop: 100%;
    --exam-w-desktop: 100%;
    --quiz-w-laptop: 1180px;
    --quiz-w-desktop: 1180px;
    /* sidebar (Settings → Appearance → Sidebar style; default "brand") */
    --side-bg: linear-gradient(180deg, #14265a 0%, #0b1634 100%);
    --side-text: #dbe4f3;
    --side-muted: rgba(219, 228, 243, .62);
    --side-strong: #ffffff;
    --side-hover: rgba(255, 255, 255, .08);
    --side-active-bg: #ffffff;
    --side-active-text: #1e3a8a;
    --side-card: rgba(255, 255, 255, .07);
    --side-border: rgba(255, 255, 255, .10);
    --side-accent: #38bdf8;
    --hero-ink: #ffffff;
    --hero-ink-soft: rgba(255, 255, 255, .86);
    --navy: #0b1220;
    --navy2: #131c2f;
    --ok: #16a34a;
    --ok-50: #ecfdf3;
    --bad: #dc2626;
    --bad-50: #fef2f2;
    --warn: #f59e0b;
    --warn-50: #fffbeb;
    --purple: #7c3aed;
    --orange: #ea580c;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
    --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 20px -6px rgba(15, 23, 42, .10);
    --shadow-lg: 0 24px 48px -16px rgba(15, 23, 42, .25);
    --top: var(--wp-admin--admin-bar--height, 0px);
    --font: "Mukta", "Noto Sans Devanagari", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ---------- Full-screen shell (templates/app-shell.php) ---------- */
body.mcqs-shell { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
.mcqs-shell-page { width: 100%; min-height: 100vh; min-height: 100dvh; overflow-x: clip; }
.mcqs-shell-page > p:empty { display: none; }
html.mcqs-lock-scroll, html.mcqs-lock-scroll body { overflow: hidden; }

/* ---------- Base ---------- */
.mcqs, .mcqs *, .mcqs *::before, .mcqs *::after { box-sizing: border-box; }
.mcqs {
    font-family: var(--font); color: var(--ink); line-height: 1.55; font-size: 15px;
    width: 100%; max-width: none; margin: 0; clear: both; float: none; text-align: left;
    -webkit-text-size-adjust: 100%;
}
.mcqs [hidden] { display: none !important; }
.mcqs h1, .mcqs h2, .mcqs h3, .mcqs h4 { font-family: var(--font); color: var(--ink); margin: 0; line-height: 1.25; letter-spacing: -.01em; text-transform: none; }
.mcqs p { margin: 0; }
.mcqs a { color: var(--brand); text-decoration: none; }
.mcqs img { max-width: 100%; height: auto; }
.mcqs ul, .mcqs ol { margin: 0; }
.mcqs button { font-family: inherit; }
.mcqs input, .mcqs select, .mcqs textarea { font-family: inherit; font-size: 16px; color: var(--ink); } /* 16px avoids iOS zoom */
.mcqs .mcqs-i { display: inline-block; flex-shrink: 0; vertical-align: middle; }
.mcqs-muted { color: var(--muted); font-size: 14px; }
.mcqs :focus-visible { outline: 3px solid rgba(37, 99, 235, .45); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.mcqs-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
    border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink2) !important;
    font-weight: 700; font-size: 15px; line-height: 1.2; cursor: pointer; text-decoration: none !important;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s; white-space: nowrap; font-family: inherit;
    box-shadow: var(--shadow-sm); -webkit-appearance: none; appearance: none;
}
/* Shield our buttons from theme button styles (uppercase, colours, radius) */
.mcqs .mcqs-btn, .mcqs button.mcqs-btn { text-transform: none; letter-spacing: normal; font-family: inherit; text-shadow: none; }
.mcqs .mcqs-btn:not(.mcqs-btn-start):not(.mcqs-btn-submit):not(.mcqs-btn-resume):not(.mcqs-btn-next):not(.mcqs-btn-review):not(.mcqs-btn-light):not(.mcqs-btn-glass) { background: #fff; color: var(--ink2) !important; }
.mcqs-btn:hover { border-color: #c7d2fe; color: var(--brand) !important; background: #fbfcff; }
.mcqs-btn:active { transform: translateY(1px); }
.mcqs-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.mcqs-btn-sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; gap: 6px; }
.mcqs-btn-lg { min-height: 52px; font-size: 16.5px; width: 100%; border-radius: 14px; }
.mcqs-btn-start, .mcqs-btn-submit { background: var(--brand); border-color: var(--brand); color: var(--btn-text) !important; box-shadow: 0 8px 18px -8px rgba(37, 99, 235, .7); }
.mcqs-btn-start:hover, .mcqs-btn-submit:hover { background: var(--brand-600); border-color: var(--brand-600); color: var(--btn-text) !important; }
.mcqs-btn-submit { background: var(--ok); border-color: var(--ok); box-shadow: 0 8px 18px -8px rgba(22, 163, 74, .7); }
.mcqs-btn-submit:hover { background: #15803d; border-color: #15803d; color: #fff !important; }
.mcqs-btn-resume { background: var(--orange); border-color: var(--orange); color: #fff !important; box-shadow: 0 8px 18px -8px rgba(234, 88, 12, .7); }
.mcqs-btn-resume:hover { background: #c2410c; border-color: #c2410c; color: #fff !important; }
.mcqs-btn-next { background: var(--brand); border-color: var(--brand); color: #fff !important; }
.mcqs-btn-next:hover { background: var(--brand-600); color: #fff !important; }
.mcqs-btn-review { background: #fff7e6; border-color: #fcd34d; color: #92400e !important; }
.mcqs-btn-review:hover { background: #fef3c7; color: #78350f !important; border-color: #f59e0b; }
.mcqs-btn-ghost { background: #fff; }
.mcqs-btn-done, .mcqs-btn-ended { background: #f8fafc; }
.mcqs-btn-disabled, .mcqs-btn-upcoming, .mcqs-btn-empty { background: #f1f5f9; color: var(--faint) !important; cursor: default; border-color: var(--line); box-shadow: none; }
.mcqs-btn-disabled:hover { color: var(--faint) !important; background: #f1f5f9; border-color: var(--line); }
.mcqs-btn-light { background: #fff; border-color: #fff; color: var(--brand-600) !important; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .4); }
.mcqs-btn-light:hover { background: #f8fbff; color: var(--brand-600) !important; }
.mcqs-btn-glass { background: color-mix(in srgb, var(--hero-ink) 12%, transparent); border-color: color-mix(in srgb, var(--hero-ink) 30%, transparent); color: var(--hero-ink) !important; box-shadow: none; backdrop-filter: blur(6px); }
.mcqs-btn-glass:hover { background: color-mix(in srgb, var(--hero-ink) 20%, transparent); color: var(--hero-ink) !important; border-color: color-mix(in srgb, var(--hero-ink) 45%, transparent); }
.mcqs-btn-outline { background: transparent; border-color: var(--line); box-shadow: none; }
.mcqs-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink2) !important; cursor: pointer; padding: 0; flex-shrink: 0; transition: background .15s; }
.mcqs-icon-btn:hover { background: var(--brand-50); color: var(--brand) !important; }
.mcqs-back { display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; margin-top: 12px; color: var(--muted) !important; font-size: 14px; background: none; border: 0; cursor: pointer; width: 100%; font-family: inherit; padding: 8px; }
.mcqs-backlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--muted) !important; margin-bottom: 12px; }
.mcqs-backlink:hover { color: var(--brand) !important; }

/* ---------- Tags / badges / alerts ---------- */
.mcqs-tag, .mcqs-cat { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #f1f5f9; color: var(--ink2); line-height: 1.4; white-space: nowrap; }
.mcqs-cat { background: var(--brand-50); color: var(--brand-600); }
.mcqs-tag-blue { background: #e0ecff !important; color: #1d4ed8 !important; }
.mcqs-tag-live { background: #dcfce7 !important; color: #15803d !important; }
.mcqs-tag-gold { background: #fef3c7 !important; color: #92400e !important; }
.mcqs-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; animation: mcqsPulse 1.2s infinite; }
.mcqs-pass, .mcqs-fail, .mcqs-skip { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.mcqs-pass { background: #dcfce7; color: #15803d; }
.mcqs-fail { background: #fee2e2; color: #b91c1c; }
.mcqs-skip { background: #f1f5f9; color: var(--muted); }
.mcqs-badge { display: inline-block; border-radius: 6px; padding: 1px 8px; font-size: 11.5px; font-weight: 700; }
.mcqs-alert { background: var(--brand-50); border: 1px solid var(--brand-100); color: #1e3a8a; border-radius: 14px; padding: 12px 16px; margin-bottom: 16px; font-size: 14.5px; }
.mcqs-alert-live { background: #fff7ed; border-color: #fed7aa; 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: var(--bad-50); border-color: #fecaca; color: #991b1b; }
.mcqs-alert-ok { background: var(--ok-50); border-color: #bbf7d0; color: #166534; }
.mcqs-error { background: var(--bad-50); border: 1px solid #fca5a5; color: #991b1b; border-radius: 12px; padding: 10px 14px; font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.mcqs-success { background: var(--ok-50); border: 1px solid #86efac; color: #166534; border-radius: 12px; padding: 10px 14px; font-weight: 600; font-size: 14px; }
.mcqs-meter { height: 8px; background: #e8edf5; border-radius: 99px; overflow: hidden; min-width: 50px; }
.mcqs-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #22c55e); border-radius: 99px; transition: width .4s ease; }
.mcqs-empty { background: var(--card); border: 1.5px dashed #d5dce8; border-radius: var(--radius); padding: 28px 18px; text-align: center; color: var(--muted); grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mcqs-empty > span { width: 56px; height: 56px; border-radius: 16px; background: var(--brand-50); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.mcqs-empty p { max-width: 420px; font-size: 14.5px; }

/* =====================================================================
   DASHBOARD LAYOUT
   ===================================================================== */
.mcqs-dash { min-height: 100vh; min-height: 100dvh; background: var(--bg); }
.mcqs-body { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.mcqs-main { width: 100%; max-width: 1480px; margin: 0 auto; padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); flex: 1; min-width: 0; }

/* Sidebar = off-canvas drawer on mobile */
.mcqs-side {
    position: fixed; z-index: 1001; top: 0; bottom: 0; left: 0; width: min(86vw, 300px);
    background: var(--side-bg); color: var(--side-text); display: flex; flex-direction: column; padding: 16px 14px; border-right: 1px solid var(--side-border);
    transform: translateX(-104%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); overflow-y: auto; overscroll-behavior: contain;
    box-shadow: 20px 0 50px rgba(0, 0, 0, .25); padding-top: calc(16px + env(safe-area-inset-top));
}
.mcqs-dash.is-drawer-open .mcqs-side { transform: translateX(0); }
.mcqs-scrim { position: fixed; inset: 0; z-index: 1000; background: rgba(2, 6, 23, .55); opacity: 0; pointer-events: none; transition: opacity .25s; backdrop-filter: blur(2px); }
.mcqs-dash.is-drawer-open .mcqs-scrim { opacity: 1; pointer-events: auto; }
.mcqs-brand { display: flex; align-items: center; gap: 10px; padding: 2px 4px 16px; }
.mcqs-brand > div { min-width: 0; flex: 1; }
.mcqs-brand strong { display: block; color: var(--side-strong); font-size: 16.5px; font-weight: 800; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcqs-brand small { display: block; color: var(--side-muted); font-size: 12px; }
.mcqs-login-art .mcqs-brand strong { color: #fff; } .mcqs-login-art .mcqs-brand small { color: rgba(255, 255, 255, .7); }
.mcqs-logo { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #3b82f6, #06b6d4); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 8px 18px -6px rgba(59, 130, 246, .6); }
.mcqs-side-close { background: var(--side-card); border-color: var(--side-border); color: var(--side-text) !important; width: 36px; height: 36px; }
.mcqs-side-close:hover { background: var(--side-hover); color: var(--side-strong) !important; }
.mcqs-user { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 14px; background: var(--side-card); border: 1px solid var(--side-border); margin-bottom: 14px; text-decoration: none !important; }
.mcqs-user img { border-radius: 50%; flex-shrink: 0; width: 42px; height: 42px; }
.mcqs-user > div { min-width: 0; }
.mcqs-user strong { display: block; color: var(--side-strong); font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcqs-user small { display: block; color: var(--side-muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcqs-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.mcqs-nav-group { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--side-muted); padding: 14px 10px 6px; }
.mcqs-nav-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; color: var(--side-text) !important; text-decoration: none !important; transition: background .15s, color .15s; position: relative; min-height: 46px; }
.mcqs-nav-item:hover { background: var(--side-hover); color: var(--side-strong) !important; }
.mcqs-nav-item.is-active { background: var(--side-active-bg); color: var(--side-active-text) !important; box-shadow: 0 8px 18px -12px rgba(2, 6, 23, .55); }
.mcqs-nav-item.is-active::before { content: ""; position: absolute; left: -14px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--side-accent); }
.mcqs-nav-item.is-active b small { opacity: .75; }
.mcqs-nav-item > span { width: 24px; display: flex; justify-content: center; opacity: .9; }
.mcqs-nav-item b { font-size: 14.5px; font-weight: 600; line-height: 1.2; }
.mcqs-nav-item b small { display: block; font-size: 11.5px; font-weight: 500; opacity: .6; }
.mcqs-nav-item em { margin-left: auto; background: #ef4444; color: #fff; font-style: normal; font-size: 11.5px; font-weight: 800; border-radius: 99px; padding: 1px 8px; }
.mcqs-side-foot { border-top: 1px solid var(--side-border); margin-top: 12px; padding-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.mcqs-nav-logout:hover { background: rgba(239, 68, 68, .14); color: #ef4444 !important; }

/* Top bar */
.mcqs-topbar {
    position: sticky; top: var(--top); z-index: 900; display: flex; align-items: center; gap: 12px;
    padding: 10px 16px; min-height: 64px; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--line);
}
.mcqs-topbar-title { min-width: 0; flex: 1; }
.mcqs-topbar-title small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcqs-topbar-title strong { display: block; font-size: 17px; font-weight: 800; color: var(--ink); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcqs-topbar-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.mcqs-topbar-avatar img { width: 38px; height: 38px; border-radius: 50%; display: block; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.mcqs-live-pill { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 99px; background: #fee2e2; color: #b91c1c !important; font-weight: 800; font-size: 13px; }
.mcqs-live-pill i { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, .2); animation: mcqsPulse 1.2s infinite; }
.mcqs-top-exams { display: inline-flex; }

/* Bottom tab bar (phones / tablets) */
.mcqs-tabbar {
    position: fixed; z-index: 950; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr);
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px -12px rgba(15, 23, 42, .15);
}
.mcqs-tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; color: var(--muted) !important; text-decoration: none !important; border-radius: 12px; font-size: 12px; font-weight: 600; }
.mcqs-tabbar a > span { position: relative; width: 52px; height: 30px; border-radius: 99px; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.mcqs-tabbar a.is-active { color: var(--brand) !important; }
.mcqs-tabbar a.is-active > span { background: var(--brand-50); }
.mcqs-tabbar em { position: absolute; top: -3px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #ef4444; color: #fff; font-style: normal; font-size: 10.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }

/* Page header */
.mcqs-head { display: flex; align-items: flex-start; gap: 12px; margin: 4px 0 18px; }
.mcqs-head-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--brand-50); color: var(--brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mcqs-head h2 { font-size: 21px; font-weight: 800; }
.mcqs-head p { margin-top: 2px; color: var(--muted); font-size: 14.5px; }

/* Section headers */
.mcqs-section { margin-bottom: 26px; }
.mcqs-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.mcqs-sec-head h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; min-width: 0; }
.mcqs-sec-head h3 > span { width: 32px; height: 32px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mcqs-sec-head h3 small { font-size: 12px; font-weight: 700; color: var(--muted); background: #e8edf5; padding: 1px 8px; border-radius: 99px; }
.mcqs-more { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; font-size: 14px; font-weight: 700; color: var(--brand) !important; }

/* ---------- Hero ---------- */
.mcqs-hero {
    position: relative; overflow: hidden; isolation: isolate; border-radius: 22px; color: #fff; padding: 22px 20px;
    background: linear-gradient(135deg, var(--hero-1) 0%, var(--hero-2) 52%, var(--hero-3) 100%); margin-bottom: 16px;
    display: grid; gap: 20px; box-shadow: 0 20px 40px -20px rgba(37, 99, 235, .65);
}
.mcqs-hero::before, .mcqs-hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; }
.mcqs-hero::before { width: 340px; height: 340px; right: -110px; top: -150px; background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 65%); }
.mcqs-hero::after { width: 260px; height: 260px; left: -90px; bottom: -150px; background: radial-gradient(circle, rgba(14, 165, 233, .55), transparent 65%); }
.mcqs-hero-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); padding: 4px 10px; border-radius: 99px; }
.mcqs-hero h1 { color: #fff; font-size: 26px; font-weight: 800; margin: 12px 0 6px; }
.mcqs-hero p { color: rgba(255, 255, 255, .86); font-size: 15px; max-width: 560px; }
.mcqs-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.mcqs-hero-cta .mcqs-btn { flex: 1 1 180px; }
.mcqs-hero-side { display: flex; align-items: center; gap: 16px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 18px; padding: 14px; backdrop-filter: blur(6px); }
.mcqs-hero-mini { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; flex: 1; }
.mcqs-hero-mini li { text-align: center; background: rgba(255, 255, 255, .1); border-radius: 12px; padding: 8px 4px; }
.mcqs-hero-mini b { display: block; font-size: 20px; font-weight: 800; line-height: 1.1; }
.mcqs-hero-mini span { font-size: 12px; color: rgba(255, 255, 255, .8); }

/* Ring (score / accuracy) */
.mcqs-ring { --p: 0; --c: var(--ok); width: 150px; height: 150px; border-radius: 50%; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: radial-gradient(closest-side, #fff 79%, transparent 80% 100%), conic-gradient(var(--c) calc(var(--p) * 1%), #e8edf5 0); }
.mcqs-ring b { font-size: 32px; font-weight: 800; line-height: 1; }
.mcqs-ring small { font-weight: 700; color: var(--muted); font-size: 13px; margin-top: 4px; }
.fail .mcqs-ring { --c: var(--bad); }
.mcqs-ring-hero { width: 104px; height: 104px; background: radial-gradient(closest-side, #1e4fd6 78%, transparent 79% 100%), conic-gradient(#fff calc(var(--p) * 1%), rgba(255, 255, 255, .22) 0); }
.mcqs-ring-hero b { font-size: 22px; color: #fff; }
.mcqs-ring-hero small { color: rgba(255, 255, 255, .8); font-size: 11px; }

/* KPI cards */
.mcqs-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
.mcqs-kpi { --tone: var(--brand); --tone-bg: var(--brand-50); display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm); min-width: 0; }
.mcqs-kpi-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--tone-bg); color: var(--tone); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mcqs-kpi > div { min-width: 0; }
.mcqs-kpi small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.mcqs-kpi strong { display: block; font-size: 22px; font-weight: 800; line-height: 1.2; }
.mcqs-kpi em { display: none; font-style: normal; font-size: 11.5px; color: var(--faint); }
.mcqs-kpi-green { --tone: #16a34a; --tone-bg: #ecfdf3; }
.mcqs-kpi-purple { --tone: #7c3aed; --tone-bg: #f3efff; }
.mcqs-kpi-orange { --tone: #ea580c; --tone-bg: #fff4ec; }

/* Panels & grids */
.mcqs-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 26px; }
.mcqs-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); min-width: 0; }
.mcqs-panel .mcqs-empty { border: 0; padding: 18px 8px; }
.mcqs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.mcqs-list { display: flex; flex-direction: column; gap: 12px; }
.mcqs-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); min-width: 0; }

/* Exam card */
.mcqs-exam-card { --hue: 220; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; transition: transform .18s, box-shadow .18s, border-color .18s; }
.mcqs-exam-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, hsl(var(--hue) 75% 52%), hsl(calc(var(--hue) + 40) 80% 55%)); }
.mcqs-exam-card .mcqs-cat { background: hsl(var(--hue) 90% 96%); color: hsl(var(--hue) 65% 36%); }
.mcqs-exam-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d6deeb; }
.mcqs-exam-card h3 { font-size: 17.5px; font-weight: 800; line-height: 1.3; }
.mcqs-state-resume { border-color: #fdba74; box-shadow: 0 0 0 3px rgba(249, 115, 22, .12); }
.mcqs-card-top { display: flex; gap: 8px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.mcqs-tags { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.mcqs-desc { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mcqs-meta { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; font-size: 13.5px; color: var(--ink2); }
.mcqs-meta li, .mcqs-meta span { display: flex; align-items: center; gap: 6px; background: #f6f8fc; border: 1px solid var(--line2); border-radius: 10px; padding: 7px 10px; min-width: 0; white-space: nowrap; }
.mcqs-meta li .mcqs-i { color: var(--faint); }
.mcqs-meta b { color: var(--ink); font-weight: 800; }
.mcqs-meta-center { display: flex; flex-wrap: wrap; justify-content: center; }
.mcqs-when { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink2); flex-wrap: wrap; }
.mcqs-when-live { color: #15803d; font-weight: 600; }
.mcqs-card-foot { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line2); }
.mcqs-card-foot .mcqs-btn { width: 100%; }
.mcqs-attempts { display: flex; gap: 14px; font-size: 13px; color: var(--muted); }
.mcqs-attempts b { color: var(--ink); }

/* Resume card */
.mcqs-resume { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; background: linear-gradient(135deg, #fff7ed, #fff); border: 1px solid #fed7aa; border-radius: var(--radius); padding: 14px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.mcqs-resume-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; }
.mcqs-resume-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mcqs-resume-body strong { font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcqs-resume-body small { color: #9a3412; font-size: 13px; }
.mcqs-resume .mcqs-btn { grid-column: 1 / -1; width: 100%; }

/* Countdown */
.mcqs-countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.mcqs-countdown div { background: var(--navy); border-radius: 12px; padding: 8px 4px; text-align: center; }
.mcqs-countdown b { display: block; font: 800 20px/1 var(--mono); color: #7dd3fc; }
.mcqs-countdown small { display: block; font-size: 11px; color: #94a3b8; margin-top: 4px; }
.mcqs-countdown.is-done div { box-shadow: inset 0 0 0 2px #22c55e; }

/* Chart */
.mcqs-chart { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding-top: 22px; border-bottom: 1px solid var(--line); }
.mcqs-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-decoration: none !important; position: relative; min-width: 0; }
.mcqs-bar i { display: block; width: 100%; max-width: 34px; border-radius: 8px 8px 2px 2px; background: linear-gradient(180deg, #60a5fa, var(--brand)); transition: filter .15s; }
.mcqs-bar.fail i { background: linear-gradient(180deg, #fca5a5, #ef4444); }
.mcqs-bar:hover i { filter: brightness(1.1); }
.mcqs-bar em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.mcqs-chart-legend { display: flex; gap: 14px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.mcqs-chart-legend span { display: flex; align-items: center; gap: 6px; }
.mcqs-chart-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--brand); }
.mcqs-chart-legend i.fail { background: #ef4444; }

/* Subject strengths */
.mcqs-subjects { display: flex; flex-direction: column; gap: 14px; }
.mcqs-subj { display: flex; flex-direction: column; gap: 6px; }
.mcqs-subj-top { display: flex; justify-content: space-between; gap: 10px; }
.mcqs-subj b { font-size: 14.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcqs-subj small { color: var(--muted); font-size: 12.5px; }
.mcqs-subj em { font-style: normal; font-weight: 800; }
.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 { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; color: var(--muted); }

/* Filters & chips */
.mcqs-filter { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-bottom: 12px; }
.mcqs-filter .mcqs-search { grid-column: 1 / -1; }
.mcqs-search { position: relative; display: flex; align-items: center; }
.mcqs-search .mcqs-i { position: absolute; left: 14px; color: var(--faint); pointer-events: none; }
.mcqs-filter input[type=search], .mcqs-filter select {
    width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; background: #fff; box-shadow: var(--shadow-sm); -webkit-appearance: none; appearance: none;
}
.mcqs-filter input[type=search] { padding-left: 44px; }
.mcqs-filter select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.mcqs-filter input:focus, .mcqs-filter select:focus { border-color: #93b4ff; outline: none; box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.mcqs-filter .mcqs-btn { min-height: 48px; }
.mcqs-filter .mcqs-btn span { display: none; }
.mcqs-select-wide { grid-column: 1 / -1; }
.mcqs-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 16px 10px; margin: 0 -16px 14px; scrollbar-width: none; scroll-snap-type: x proximity; }
.mcqs-chips::-webkit-scrollbar { display: none; }
.mcqs-chip { flex-shrink: 0; scroll-snap-align: start; display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--ink2) !important; font-size: 14px; font-weight: 600; white-space: nowrap; }
.mcqs-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff !important; }

/* Tables (desktop) → cards (phone) */
.mcqs-table-wrap { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); }
.mcqs-table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 0; border: 0; }
.mcqs-table th { text-align: left; background: #f8fafd; color: var(--muted); font-size: 12.5px; font-weight: 700; padding: 11px 14px; border: 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mcqs-table td { padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.mcqs-table tr:last-child td { border-bottom: 0; }
.mcqs-table tbody tr:hover td { background: #fafbfe; }
.mcqs-table tr.is-me td { background: var(--brand-50) !important; }
.mcqs-table .mcqs-meter { display: inline-block; width: 70px; vertical-align: middle; }
.mcqs-table small { color: var(--muted); }

.mcqs-rtable thead { display: none; }
.mcqs-rtable, .mcqs-rtable tbody { display: block; }
.mcqs-rtable tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 10px; padding: 14px; border-bottom: 1px solid var(--line2); }
.mcqs-rtable tr:last-child { border-bottom: 0; }
.mcqs-rtable td { display: block; padding: 0; border: 0 !important; min-width: 0; background: none !important; font-size: 14px; overflow-wrap: anywhere; }
.mcqs-rtable td[data-label]::before { content: attr(data-label); display: block; font-size: 11.5px; font-weight: 600; color: var(--faint); margin-bottom: 1px; }
.mcqs-rtable .mcqs-td-title { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 15.5px; }
.mcqs-rtable .mcqs-td-act { grid-column: 1 / -1; }
.mcqs-rtable .mcqs-td-act .mcqs-btn { width: 100%; }
.mcqs-rtable .mcqs-td-meter .mcqs-meter { width: 100%; margin: 4px 0 2px; }
.mcqs-rtable .mcqs-pass, .mcqs-rtable .mcqs-fail { font-size: 12px; padding: 2px 8px; }
.mcqs-lbtable td, .mcqs-lbtable th { padding: 11px 10px; }
.mcqs-lbtable td small { display: block; font-size: 12px; }
.mcqs-lbtable td:nth-child(3) { white-space: nowrap; }
.mcqs-lbtable td:nth-child(3) small { display: inline; }
.mcqs-hide-sm { display: none; }
.mcqs-show-sm { display: block; }
.mcqs-rank { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; background: #f1f5f9; font-weight: 800; font-size: 14px; color: var(--ink2); }
.mcqs-rank-1 { background: #fef3c7; color: #92400e; }
.mcqs-rank-2 { background: #e2e8f0; color: #334155; }
.mcqs-rank-3 { background: #ffedd5; color: #9a3412; }
.mcqs-you { font-style: normal; font-size: 11px; font-weight: 800; background: var(--brand); color: #fff; padding: 1px 7px; border-radius: 99px; margin-left: 4px; }

/* Leaderboard podium */
.mcqs-myrank { display: flex; align-items: center; gap: 8px; background: linear-gradient(135deg, var(--brand), #0ea5e9); color: #fff; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-weight: 600; }
.mcqs-myrank b { font-size: 22px; font-weight: 800; margin-left: auto; }
.mcqs-myrank small { opacity: .8; }
.mcqs-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 8px; margin: 8px 0 18px; }
.mcqs-pod { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.mcqs-pod-av { position: relative; width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #c7d2fe, #a5b4fc); color: #1e1b4b; font-weight: 800; font-size: 20px; border: 3px solid #fff; box-shadow: var(--shadow); }
.mcqs-pod-av i { position: absolute; bottom: -6px; right: -6px; font-style: normal; font-size: 20px; }
.mcqs-pod-1 .mcqs-pod-av { width: 66px; height: 66px; background: linear-gradient(135deg, #fde68a, #f59e0b); }
.mcqs-pod b { font-size: 13.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; }
.mcqs-pod small { color: var(--muted); font-size: 12px; }
.mcqs-pod-step { width: 100%; border-radius: 12px 12px 4px 4px; background: linear-gradient(180deg, #e0e7ff, #eef2ff); color: #4338ca; font-weight: 800; font-size: 22px; display: flex; align-items: center; justify-content: center; margin-top: 6px; height: 54px; }
.mcqs-pod-1 .mcqs-pod-step { height: 84px; background: linear-gradient(180deg, #fde68a, #fef3c7); color: #92400e; }
.mcqs-pod-3 .mcqs-pod-step { height: 40px; background: linear-gradient(180deg, #fed7aa, #ffedd5); color: #9a3412; }

/* Reports / profile / forms */
.mcqs-report { display: flex; flex-direction: column; gap: 8px; }
.mcqs-report-q { font-weight: 700; font-size: 15px; }
.mcqs-reply { display: flex; gap: 10px; background: var(--brand-50); border-radius: 12px; padding: 10px 12px; font-size: 14px; color: #1e3a8a; }
.mcqs-reply b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.mcqs-profile { display: grid; gap: 16px; }
.mcqs-profile-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 24px 16px; }
.mcqs-profile-card img { border-radius: 50%; width: 88px; height: 88px; border: 4px solid #fff; box-shadow: var(--shadow); }
.mcqs-profile-card h3 { font-size: 19px; font-weight: 800; margin-top: 6px; }
.mcqs-profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; margin: 10px 0; }
.mcqs-profile-stats div { background: #f6f8fc; border-radius: 12px; padding: 10px 4px; }
.mcqs-profile-stats b { display: block; font-size: 18px; font-weight: 800; }
.mcqs-profile-stats small { color: var(--muted); font-size: 12px; }
.mcqs-form-title { font-size: 16px; font-weight: 800; margin-bottom: 14px !important; }
.mcqs-form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 14px; }
.mcqs-form label, .mcqs-cand label { display: block; font-weight: 600; font-size: 14px; color: var(--ink2); margin-bottom: 14px; }
.mcqs-form input, .mcqs-cand input[type=text], .mcqs-cand input[type=email] {
    display: block; width: 100%; margin-top: 6px; min-height: 48px; padding: 10px 14px; border: 1px solid #d5dce8; border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.mcqs-form input:focus, .mcqs-cand input:focus { border-color: #93b4ff; outline: none; box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.mcqs-form input:disabled, .mcqs-cand input[readonly] { background: #f4f6fa; color: var(--muted); }
.mcqs-form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mcqs-form-actions .mcqs-btn { flex: 1 1 200px; }
.mcqs-actions-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 18px 0; }
.mcqs-actions-row .mcqs-btn, .mcqs-actions-row > span .mcqs-btn { flex: 1 1 160px; }
.mcqs-actions-row > span { display: contents; }

/* ---------- Login ---------- */
.mcqs-login { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--bg); }
.mcqs-login-art { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(140deg, #0b1220 0%, var(--hero-1) 55%, var(--hero-2) 100%); color: #fff; padding: calc(22px + env(safe-area-inset-top)) 20px 64px; }
.mcqs-login-art::after { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -160px; bottom: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(14, 165, 233, .5), transparent 65%); }
.mcqs-login-art h1 { color: #fff; font-size: 22px; font-weight: 800; margin: 22px 0 0; max-width: 560px; }
.mcqs-login-feats { list-style: none; padding: 0; display: none; gap: 12px; margin-top: 26px !important; }
.mcqs-login-feats li { display: flex; align-items: center; gap: 12px; color: #dbe6ff; font-size: 15.5px; }
.mcqs-login-feats .mcqs-i { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; }
.mcqs-brand-light { padding: 0; }
.mcqs-login-card { background: #fff; border-radius: 22px; padding: 24px 20px; margin: -40px 16px 24px; position: relative; box-shadow: var(--shadow-lg); align-self: start; }
.mcqs-login-card h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.mcqs-login-card form { margin-top: 18px; }
.mcqs-login-card form p { margin: 0 0 14px; }
.mcqs-login-card label { display: block; font-weight: 600; font-size: 14px; color: var(--ink2); margin-bottom: 6px; }
.mcqs-login-card input[type=text], .mcqs-login-card input[type=password], .mcqs-login-card input[type=email] { width: 100%; min-height: 50px; padding: 10px 14px; border: 1px solid #d5dce8; border-radius: 12px; font-size: 16px; box-sizing: border-box; }
.mcqs-login-card input:focus { border-color: #93b4ff; outline: none; box-shadow: 0 0 0 4px rgba(37, 99, 235, .12); }
.mcqs-login-card .login-remember label { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.mcqs-login-card input[type=submit] { width: 100%; min-height: 52px; border: 0; border-radius: 14px; background: var(--brand); color: #fff; font-weight: 700; font-size: 16px; cursor: pointer; font-family: inherit; box-shadow: 0 10px 20px -10px rgba(37, 99, 235, .8); }
.mcqs-login-card input[type=submit]:hover { background: var(--brand-600); }
.mcqs-login-links { display: flex; flex-direction: column; gap: 12px; align-items: center; margin-top: 6px; font-size: 14px; }
.mcqs-login-links .mcqs-btn { width: 100%; }

/* Embeds (shortcodes inside theme pages) */
.mcqs-embed { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 16px 0; }
.mcqs-embed > h3 { margin-bottom: 12px; font-size: 18px; font-weight: 800; }

/* ---------- Results ---------- */
.mcqs-result-hero { display: flex; flex-direction: column; align-items: center; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px 16px; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.mcqs-result-hero.pass { background: linear-gradient(180deg, #f0fdf4, #fff 55%); border-color: #bbf7d0; }
.mcqs-result-hero.fail { background: linear-gradient(180deg, #fef2f2, #fff 55%); border-color: #fecaca; }
.mcqs-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; }
.mcqs-stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.mcqs-stat span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.mcqs-stat strong { display: block; font-size: 19px; font-weight: 800; margin-top: 2px; overflow-wrap: anywhere; }
.mcqs-stat.blue strong { color: var(--brand-600); }
.mcqs-stat.green strong { color: #15803d; }
.mcqs-stat.purple strong { color: #6d28d9; }
.mcqs-stat.orange strong { color: #c2410c; }
.mcqs-review { display: flex; flex-direction: column; gap: 12px; }
.mcqs-review-filter { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; padding-bottom: 2px; }
.mcqs-review-filter::-webkit-scrollbar { display: none; }
.mcqs-review-filter button { flex-shrink: 0; border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 0 16px; height: 38px; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--ink2); }
.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: 4px solid var(--faint); border-radius: 14px; padding: 14px; }
.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; flex-wrap: wrap; margin-bottom: 8px; }
.mcqs-rq-head small { color: var(--muted); }
.mcqs-rq-head > span:last-child { margin-left: auto; }
.mcqs-rq-text { font-weight: 700; font-size: 16px; margin-bottom: 10px; overflow-wrap: anywhere; }
.mcqs-rq-opts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.mcqs-rq-opts div { border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 14.5px; overflow-wrap: anywhere; }
.mcqs-rq-opts .ok { background: #ecfdf3; border-color: #4ade80; color: #14532d; font-weight: 700; }
.mcqs-rq-opts .bad { background: #fef2f2; border-color: #f87171; 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: 3px solid #f59e0b; padding: 10px 12px; border-radius: 8px; font-size: 14px; color: #78350f; }

/* ---------- Gates (upcoming / ended / not found) ---------- */
.mcqs-gate-wrap { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 20px 16px; background: radial-gradient(1200px 500px at 50% -10%, #dbe6ff, var(--bg) 60%); }
.mcqs-gate { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 30px 20px; text-align: center; width: 100%; max-width: 680px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mcqs-gate h2 { font-size: 23px; font-weight: 800; }
.mcqs-gate p { color: var(--ink2); max-width: 520px; }
.mcqs-gate .mcqs-countdown { width: 100%; max-width: 440px; }
.mcqs-gate .mcqs-countdown div { padding: 14px 4px; }
.mcqs-gate .mcqs-countdown b { font-size: 28px; }
.mcqs-gate-icon { font-size: 40px; width: 76px; height: 76px; border-radius: 22px; background: var(--brand-50); display: flex; align-items: center; justify-content: center; }
.mcqs-gate-bad .mcqs-gate-icon { background: var(--bad-50); }
.mcqs-gate-warn .mcqs-gate-icon { background: var(--warn-50); }
.mcqs-gate .mcqs-btn { min-width: 220px; }

/* =====================================================================
   EXAM APP
   ===================================================================== */
.mcqs-app { background: #fff; position: relative; isolation: isolate; user-select: none; -webkit-user-select: none; min-height: 100vh; min-height: 100dvh; }
.mcqs-app input, .mcqs-app textarea { user-select: text; -webkit-user-select: text; }
.mcqs-app:fullscreen { width: 100vw; height: 100vh; overflow-y: auto; background: #fff; }
.mcqs-app:-webkit-full-screen { width: 100vw; height: 100vh; overflow-y: auto; background: #fff; }
.mcqs-loading { padding: 30vh 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); } }

/* Lobby */
.mcqs-lobby { background: var(--bg); min-height: 100vh; min-height: 100dvh; }
.mcqs-lobby-head { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(140deg, #0b1220 0%, var(--hero-1) 55%, var(--hero-2) 100%); color: #fff; padding: calc(16px + env(safe-area-inset-top)) 18px 64px; text-align: center; }
.mcqs-lobby-head::after { content: ""; position: absolute; z-index: -1; width: 400px; height: 400px; right: -140px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(14, 165, 233, .45), transparent 65%); }
.mcqs-lobby-back { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .85) !important; font-size: 14px; font-weight: 600; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 99px; padding: 6px 12px; position: absolute; left: 14px; top: calc(14px + env(safe-area-inset-top)); }
.mcqs-lobby-back:hover { background: rgba(255, 255, 255, .18); color: #fff !important; }
.mcqs-lobby-head .mcqs-cat { margin-top: 44px; background: rgba(255, 255, 255, .14); color: #fff; }
.mcqs-lobby-head h2 { color: #fff; font-size: 24px; font-weight: 800; margin: 12px auto 8px; max-width: 760px; }
.mcqs-lobby-head p { color: rgba(255, 255, 255, .8); max-width: 680px; margin: 0 auto 16px; font-size: 15px; }
.mcqs-lobby-head .mcqs-meta { gap: 6px; }
.mcqs-lobby-head .mcqs-meta span { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .14); color: #e2e8f0; font-size: 13px; padding: 5px 10px; }
.mcqs-lobby-head .mcqs-meta .mcqs-tag-blue, .mcqs-lobby-head .mcqs-meta .mcqs-tag-live { background: rgba(255, 255, 255, .92) !important; }
.mcqs-lobby-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 0 14px 28px; margin: -44px auto 0; max-width: 1180px; position: relative; }
.mcqs-rules, .mcqs-cand { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px 16px; box-shadow: var(--shadow); }
.mcqs-rules h3, .mcqs-cand h3 { font-size: 17px; font-weight: 800; margin-bottom: 14px; }
.mcqs-rules ol { margin: 0 0 16px; padding-left: 22px; display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; color: var(--ink2); }
.mcqs-rules li::marker { color: var(--brand); font-weight: 800; }
.mcqs-agree { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; font-size: 14px !important; background: #f6f8fc; border: 1px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; }
.mcqs-agree input { margin-top: 3px; width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--brand); }
.mcqs-legend-demo, .mcqs-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; font-size: 13px; color: var(--ink2); }
.mcqs-legend-demo span, .mcqs-legend span { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mcqs-legend-demo i, .mcqs-legend i { width: 16px; height: 16px; border-radius: 5px; 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, 1fr); gap: 16px; padding: calc(14px + env(safe-area-inset-top)) 14px 28px; max-width: 1180px; margin: 0 auto; }
.mcqs-cam-stage { position: relative; background: #020617; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.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: 46%; height: 70%; transform: translate(-50%, -50%); border: 3px dashed rgba(125, 211, 252, .9); border-radius: 50%; box-shadow: 0 0 0 2000px rgba(2, 6, 23, .38); pointer-events: none; }
.mcqs-cam-hint { position: absolute; left: 10px; right: 10px; bottom: 12px; text-align: center; color: #fff; font-weight: 700; font-size: 14px; text-shadow: 0 1px 4px #000; }
.mcqs-mic { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.mcqs-mic .mcqs-meter { flex: 1; height: 10px; }
.mcqs-check-side { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px 16px; box-shadow: var(--shadow); }
.mcqs-check-side h3 { font-size: 17px; font-weight: 800; margin-bottom: 12px; }
.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: #f6f8fc; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; font-weight: 600; min-width: 0; }
.mcqs-checklist li i { width: 22px; height: 22px; 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: 12px; color: var(--muted); font-weight: 500; 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: var(--bad-50); }
.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: var(--warn-50); }
.mcqs-checklist li.is-warn i { background: var(--warn); }
.mcqs-checklist li.is-warn i::before { content: '!'; }
.mcqs-checklist li.is-wait i { background: var(--faint); animation: mcqsPulse 1.2s infinite; }
.mcqs-check-msg { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 12px; padding: 10px 12px; font-size: 14px; 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: 10px 12px 10px 14px; font-size: 14px; font-weight: 600; position: fixed; z-index: 1050; top: calc(var(--top) + 68px + env(safe-area-inset-top)); left: 8px; right: 8px; border-radius: 14px; box-shadow: 0 16px 32px -12px rgba(2, 6, 23, .45); animation: mcqsDown .25s ease; }
.mcqs-alertbar.sev-1 { background: var(--brand-50); color: #1e3a8a; border-bottom: 1px solid var(--brand-100); }
.mcqs-alertbar.sev-2 { background: var(--bad-50); 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: 8px; padding: 6px 12px; font-weight: 700; cursor: pointer; font-size: 12.5px; }
.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 {
    position: sticky; top: var(--top); z-index: 30; background: var(--navy); color: #fff; display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; padding-top: calc(8px + env(safe-area-inset-top)); min-height: 60px; box-shadow: 0 6px 18px -8px rgba(2, 6, 23, .5);
}
.mcqs-xtitle { min-width: 0; flex: 1; }
.mcqs-xtitle h3 { color: #f8fafc; font-size: 14.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcqs-xtitle small { display: none; color: #94a3b8; font-size: 12.5px; }
.mcqs-net { display: inline-block; font-size: 11.5px; 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-xctrl { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.mcqs-timerwrap { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.mcqs-warn { background: #fee2e2; color: #991b1b; border-radius: 5px; padding: 0 6px; font-size: 10.5px; font-weight: 800; white-space: nowrap; }
.mcqs-timer { font: 800 14px var(--mono); background: #172036; color: #7dd3fc; border: 1px solid #26324d; border-radius: 10px; padding: 6px 9px; text-align: center; white-space: nowrap; }
.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; width: 38px; padding: 0; background: #172036; color: #e2e8f0; border: 1px solid #26324d; border-radius: 10px; font-weight: 700; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.mcqs-fs span { display: none; }
@media (max-width: 479px) { .mcqs-xctrl .mcqs-fs { display: none; } .mcqs-palette-toggle b { font-size: 12.5px; } }
.mcqs-fs:hover { background: #22304d; }
.mcqs-headcam { width: 42px; height: 42px; border-radius: 10px; overflow: hidden; position: relative; background: #020617; border: 2px 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: 3px; right: 3px; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 6px #22c55e; }
.mcqs-headcam em { display: none; 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-palette-toggle { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; background: var(--brand); color: #fff; border: 0; border-radius: 10px; font-weight: 700; font-size: 13px; cursor: pointer; }

/* Question strip */
.mcqs-strip { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: #fff; }
.mcqs-strip-count { font-size: 12.5px; font-weight: 800; color: var(--brand-600); background: var(--brand-50); border-radius: 8px; padding: 6px 8px; white-space: nowrap; }
.mcqs-strip-list { display: flex; gap: 6px; overflow-x: auto; scroll-behavior: smooth; padding: 3px 2px; flex: 1; scrollbar-width: none; min-width: 0; }
.mcqs-strip-list::-webkit-scrollbar { display: none; }
.mcqs-strip-list button, .mcqs-palette button { min-width: 38px; height: 38px; border-radius: 10px; border: 1px solid #cbd5e1; font-weight: 700; font-size: 13.5px; cursor: pointer; flex-shrink: 0; padding: 0; }
.mcqs-strip-list button.is-current, .mcqs-palette button.is-current { outline: 3px solid var(--brand); outline-offset: 1px; }
.mcqs-strip-submit { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 12px; border-radius: 10px; border: 0; background: var(--ok); color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; }

/* Question area */
.mcqs-xgrid { display: grid; grid-template-columns: minmax(0, 1fr); }
.mcqs-qpane { padding: 16px 14px 0; position: relative; display: flex; flex-direction: column; min-height: calc(100dvh - 130px); min-width: 0; }
.mcqs-qmeta { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line2); }
.mcqs-qmeta > div { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mcqs-qno { color: var(--brand); font-size: 16px; font-weight: 800; }
.mcqs-report-btn { background: var(--bad-50); color: var(--bad); border: 1px solid #fecaca; border-radius: 8px; padding: 4px 10px; font-size: 12px; font-weight: 700; cursor: pointer; }
.mcqs-qtext { font-size: 17px; font-weight: 600; line-height: 1.7; margin-bottom: 18px; overflow-wrap: anywhere; color: var(--ink); }
.mcqs-qtext img { max-width: 100%; height: auto; border-radius: 8px; }
.mcqs-qtext table { max-width: 100%; display: block; overflow-x: auto; }
.mcqs-opts { display: flex; flex-direction: column; gap: 10px; }
.mcqs-opts.is-disabled { pointer-events: none; opacity: .5; }
.mcqs-opt {
    display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; min-height: 56px;
    border: 2px solid var(--line); border-radius: 14px; background: #fff; font-size: 16px; line-height: 1.5; color: #1e293b;
    cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; font-family: inherit; overflow-wrap: anywhere;
}
.mcqs-opt:hover:not(:disabled):not(.is-locked) { border-color: #93b4ff; background: #f7faff; }
.mcqs-opt.is-selected { border-color: var(--brand); background: var(--brand-50); color: var(--brand-600); font-weight: 700; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.mcqs-opt:disabled { opacity: .5; cursor: default; }
.mcqs-opt.is-locked { cursor: default; }
.mcqs-opt-l { width: 34px; height: 34px; border-radius: 50%; background: #f1f5f9; border: 2px solid #cbd5e1; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex-shrink: 0; color: var(--ink2); }
.mcqs-opt.is-selected .mcqs-opt-l { background: var(--brand); border-color: var(--brand); color: #fff; }
.mcqs-opt-t { flex: 1; min-width: 0; }

/* Action bar — sticky at the bottom on phones */
.mcqs-actions {
    position: sticky; bottom: 0; z-index: 20; margin: auto -14px 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -10px 24px -14px rgba(15, 23, 42, .25);
}
.mcqs-actbar { display: grid; grid-template-columns: 46px 46px minmax(0, 1fr) minmax(0, 1.3fr); gap: 8px; }
.mcqs-actbar .mcqs-btn { height: 48px; min-height: 48px; padding: 0 8px; font-size: 14.5px; border-radius: 12px; gap: 4px; }
.mcqs-act-prev span, .mcqs-act-clear span { display: none; }
.mcqs-lbl-lg { display: none; }
.mcqs-lbl-sm { display: inline; }
.mcqs-actfoot { display: none; }
.mcqs-kbd { color: var(--faint); font-size: 12px; }

/* Sidebar → bottom sheet on phones */
.mcqs-sheet-scrim { position: fixed; inset: 0; z-index: 1001; background: rgba(2, 6, 23, .5); opacity: 0; pointer-events: none; transition: opacity .25s; }
.mcqs-app.is-sheet-open .mcqs-sheet-scrim { opacity: 1; pointer-events: auto; }
.mcqs-xside {
    position: fixed; z-index: 1002; left: 0; right: 0; bottom: 0; max-height: 84vh; max-height: 84dvh; overflow-y: auto; overscroll-behavior: contain;
    background: #fff; border-radius: 22px 22px 0 0; padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px;
    transform: translateY(105%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 -20px 50px rgba(2, 6, 23, .3);
}
.mcqs-xside::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 99px; background: #d5dce8; margin: 2px auto 0; flex-shrink: 0; }
.mcqs-app.is-sheet-open .mcqs-xside { transform: translateY(0); }
.mcqs-sheet-head { display: flex; align-items: center; justify-content: space-between; }
.mcqs-sheet-head b { font-size: 17px; font-weight: 800; }
.mcqs-sheet-submit { width: 100%; min-height: 50px; flex-shrink: 0; position: sticky; bottom: 0; box-shadow: 0 -12px 18px 6px #fff, 0 8px 18px -8px rgba(22, 163, 74, .7); }
.mcqs-sidecam { display: none; position: relative; width: 100%; max-width: 280px; aspect-ratio: 4 / 3; margin: 0 auto; border-radius: 16px; 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, .92); 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: 12px; font-weight: 700; border-radius: 8px; 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, minmax(0, 1fr)); gap: 6px; }
.mcqs-ps-list li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; background: #f6f8fc; border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; min-width: 0; }
.mcqs-ps-list i { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); 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: #f6f8fc; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.mcqs-palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 8px; padding: 3px; }
.mcqs-palette button { width: 100%; min-width: 0; height: 44px; }

/* Overlays & modals */
.mcqs-overlay, .mcqs-gate-overlay { position: fixed; inset: 0; z-index: 1100; background: rgba(11, 18, 32, .95); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; color: #fff; text-align: center; }
.mcqs-overlay { position: absolute; z-index: 25; }
.mcqs-overlay-box { max-width: 460px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mcqs-overlay-box h3 { color: #f87171; font-size: 21px; font-weight: 800; }
.mcqs-overlay-box p { color: #cbd5e1; margin: 0; font-size: 15px; }
.mcqs-overlay-box small { color: #94a3b8; }
.mcqs-overlay-box .mcqs-gate-icon { background: rgba(255, 255, 255, .08); }
.mcqs-overlay-box .mcqs-btn { width: 100%; }
.mcqs-suspend-count { background: #172036; border: 2px solid #ef4444; padding: 10px 26px; border-radius: 14px; font: 800 26px var(--mono); color: #f87171; }
.mcqs-modal { position: fixed; inset: 0; z-index: 2147483000; background: rgba(11, 18, 32, .65); backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; padding: 0; }
.mcqs-modal-box { background: #fff; border-radius: 22px 22px 0 0; width: 100%; max-width: 560px; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -20px 40px rgba(0, 0, 0, .3); max-height: 92vh; max-height: 92dvh; overflow-y: auto; animation: mcqsUp .25s ease; }
.mcqs-modal-box h3 { font-size: 19px; font-weight: 800; margin-bottom: 14px; }
.mcqs-modal-box textarea { width: 100%; border: 1px solid #d5dce8; border-radius: 12px; padding: 12px; font-size: 16px; margin: 10px 0; min-height: 96px; }
.mcqs-quote { background: #f6f8fc; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; font-weight: 600; }
.mcqs-radios { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 10px; font-size: 14px; }
.mcqs-radios label { display: flex; gap: 8px; align-items: center; background: #f6f8fc; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.mcqs-radios input { accent-color: var(--brand); width: 18px; height: 18px; }
.mcqs-actions-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mcqs-actions-row2 .mcqs-btn { width: 100%; white-space: normal; text-align: center; }
.mcqs-submit-sum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; text-align: center; margin-bottom: 12px; }
.mcqs-submit-sum div { background: #f6f8fc; border-radius: 12px; padding: 12px 4px; border: 1px solid var(--line); }
.mcqs-submit-sum b { display: block; font-size: 24px; font-weight: 800; }
.mcqs-submit-sum small { font-size: 12px; 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: calc(16px + env(safe-area-inset-top)) 14px 28px; max-width: 1180px; margin: 0 auto; background: var(--bg); }
.mcqs-app [data-screen="result"] { background: var(--bg); min-height: 100vh; min-height: 100dvh; }

@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; } }
@keyframes mcqsDown { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes mcqsUp { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }

/* =====================================================================
   ≥ 400px
   ===================================================================== */
@media (min-width: 400px) {
    .mcqs-xtitle small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .mcqs-timer { font-size: 15px; padding: 6px 10px; }
}

/* =====================================================================
   ≥ 640px  (large phones landscape / small tablets)
   ===================================================================== */
@media (min-width: 640px) {
    .mcqs-main { padding: 22px 22px calc(100px + env(safe-area-inset-bottom)); }
    .mcqs-hero { padding: 28px; }
    .mcqs-hero h1 { font-size: 30px; }
    .mcqs-hero-cta .mcqs-btn { flex: 0 0 auto; }
    .mcqs-kpi em { display: block; }
    .mcqs-filter { grid-template-columns: minmax(0, 1fr) 180px auto; }
    .mcqs-filter .mcqs-search { grid-column: auto; }
    .mcqs-filter .mcqs-btn span { display: inline; }
    .mcqs-chips { margin: 0 0 16px; padding: 2px 0 8px; flex-wrap: wrap; overflow: visible; }
    .mcqs-select-wide { max-width: 520px; }
    .mcqs-card-foot { flex-direction: row; align-items: center; justify-content: space-between; }
    .mcqs-card-foot .mcqs-btn { width: auto; }
    .mcqs-attempts { flex-direction: column; gap: 0; }
    .mcqs-resume { grid-template-columns: auto minmax(0, 1fr) auto; }
    .mcqs-resume .mcqs-btn { grid-column: auto; width: auto; }
    .mcqs-hide-sm { display: table-cell; }
    .mcqs-show-sm, .mcqs-lbtable td small.mcqs-show-sm { display: none; }
    .mcqs-pod-av { width: 64px; height: 64px; }
    .mcqs-pod-1 .mcqs-pod-av { width: 78px; height: 78px; }
    .mcqs-podium { max-width: 560px; margin-left: auto; margin-right: auto; }
    .mcqs-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mcqs-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mcqs-radios { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mcqs-submit-sum { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .mcqs-modal { align-items: center; padding: 16px; }
    .mcqs-modal-box { border-radius: 20px; padding: 24px; }
    .mcqs-gate { padding: 40px 32px; }
    .mcqs-lobby-head { padding: 22px 24px 80px; }
    .mcqs-lobby-head h2 { font-size: 30px; }
    .mcqs-lobby-body { padding: 0 22px 36px; margin-top: -54px; }
    .mcqs-rules, .mcqs-cand, .mcqs-check-side { padding: 24px; }
    .mcqs-check { padding: 22px; }
    .mcqs-xhead { padding: 8px 16px; gap: 12px; }
    .mcqs-xtitle h3 { font-size: 16px; }
    .mcqs-headcam { width: 52px; height: 52px; }
    .mcqs-headcam em { display: block; }
    .mcqs-fs { width: auto; padding: 0 12px; font-size: 13px; }
    .mcqs-fs span { display: inline; }
    .mcqs-qpane { padding: 22px 22px 0; }
    .mcqs-qtext { font-size: 18px; }
    .mcqs-actions { margin: auto -22px 0; padding: 12px 22px calc(12px + env(safe-area-inset-bottom)); }
    .mcqs-actbar { grid-template-columns: auto auto minmax(0, 1fr) minmax(0, 1fr); }
    .mcqs-act-prev span, .mcqs-act-clear span { display: inline; }
    .mcqs-actbar .mcqs-btn { padding: 0 14px; }
    .mcqs-lbl-lg { display: inline; }
    .mcqs-lbl-sm { display: none; }
    .mcqs-review-filter { flex-wrap: wrap; overflow: visible; }
    .mcqs-login-card { margin: -48px auto 32px; width: calc(100% - 44px); max-width: 460px; padding: 30px; }
    .mcqs-login-art { padding: 32px 32px 80px; text-align: center; }
    .mcqs-login-art .mcqs-brand { justify-content: center; }
    .mcqs-login-art .mcqs-brand > div { flex: 0 1 auto; }
    .mcqs-login-art h1 { font-size: 26px; margin-left: auto; margin-right: auto; }
}

/* =====================================================================
   ≥ 768px  (tablets)
   ===================================================================== */
@media (min-width: 768px) {
    .mcqs-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .mcqs-hero { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 32px; }
    .mcqs-hero-side { flex-direction: column; padding: 18px; width: 230px; }
    .mcqs-hero-mini { width: 100%; }
    .mcqs-ring-hero { width: 128px; height: 128px; }
    .mcqs-ring-hero b { font-size: 26px; }
    .mcqs-head h2 { font-size: 24px; }
    .mcqs-panel { padding: 20px; }
    .mcqs-result-hero { display: grid; grid-template-columns: 180px minmax(0, 1fr); padding: 24px; }
    .mcqs-ring { width: 170px; height: 170px; }
    .mcqs-rq { padding: 16px 18px; }
    .mcqs-rq-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* Tables become real tables again */
    .mcqs-rtable { display: table; }
    .mcqs-rtable thead { display: table-header-group; }
    .mcqs-rtable tbody { display: table-row-group; }
    .mcqs-rtable tr { display: table-row; padding: 0; }
    .mcqs-rtable td { display: table-cell; padding: 12px 14px; border-bottom: 1px solid var(--line2) !important; font-size: 14.5px; }
    .mcqs-rtable tr:last-child td { border-bottom: 0 !important; }
    .mcqs-rtable td[data-label]::before { display: none; }
    .mcqs-rtable .mcqs-td-title { font-size: 14.5px; }
    .mcqs-rtable .mcqs-td-act { text-align: right; }
    .mcqs-rtable .mcqs-td-act .mcqs-btn { width: auto; }
    .mcqs-rtable .mcqs-td-meter .mcqs-meter { width: 70px; display: inline-block; }
    .mcqs-profile { grid-template-columns: 300px minmax(0, 1fr); align-items: start; }
    .mcqs-legend-demo { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* =====================================================================
   ≥ 960px  (lobby / check side by side)
   ===================================================================== */
@media (min-width: 960px) {
    .mcqs-lobby-body { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; gap: 22px; }
    .mcqs-cand { position: sticky; top: calc(var(--top) + 20px); }
    .mcqs-check { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; gap: 22px; padding: 32px 22px; }
    .mcqs-login { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
    .mcqs-login-art { display: flex; flex-direction: column; justify-content: center; padding: 56px; text-align: left; }
    .mcqs-login-art .mcqs-brand { justify-content: flex-start; position: absolute; top: 36px; left: 56px; }
    .mcqs-login-art h1 { font-size: 36px; margin: 0; }
    .mcqs-login-feats { display: grid; }
    .mcqs-login-card { margin: auto; align-self: center; box-shadow: var(--shadow); border: 1px solid var(--line); }
}

/* =====================================================================
   ≥ 1024px  (laptops / desktops): fixed sidebar, no bottom bar, exam side panel
   ===================================================================== */
@media (min-width: 1024px) {
    .mcqs-dash { display: grid; grid-template-columns: 280px minmax(0, 1fr); }
    .mcqs-side { position: sticky; top: var(--top); height: calc(100vh - var(--top)); transform: none; box-shadow: none; z-index: 5; width: auto; padding-top: 18px; }
    .mcqs-scrim, .mcqs-side-close, .mcqs-burger, .mcqs-tabbar { display: none !important; }
    .mcqs-topbar { padding: 12px 32px; min-height: 70px; }
    .mcqs-topbar-title strong { font-size: 20px; }
    .mcqs-top-exams { display: inline-flex; }
    .mcqs-main { padding: 28px 32px 48px; }
    .mcqs-split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; }
    .mcqs-grid { gap: 18px; }

    /* Exam: question + side panel */
    .mcqs-xgrid { grid-template-columns: minmax(0, 1fr) 340px; min-height: calc(100vh - 132px); }
    .mcqs-qpane { padding: 28px 36px 0; min-height: 0; }
    .mcqs-qtext { font-size: 19px; }
    .mcqs-opt { padding: 14px 18px; font-size: 16.5px; }
    .mcqs-actions { margin: auto -36px 0; padding: 14px 36px; position: sticky; }
    .mcqs-actfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
    .mcqs-actfoot .mcqs-btn { height: 46px; padding: 0 22px; }
    .mcqs-palette-toggle, .mcqs-sheet-head, .mcqs-sheet-submit, .mcqs-sheet-scrim, .mcqs-strip-submit { display: none !important; }
    .mcqs-xside {
        position: sticky; top: calc(var(--top) + 76px); align-self: start; transform: none; max-height: calc(100vh - var(--top) - 76px);
        border-radius: 0; box-shadow: none; background: #f8fafd; border-left: 1px solid var(--line); padding: 18px; z-index: 1;
    }
    .mcqs-xside::before { display: none; }
    .mcqs-sidecam { display: block; }
    .mcqs-xhead { padding: 10px 24px; min-height: 74px; }
    .mcqs-alertbar { top: calc(var(--top) + 84px); left: 50%; right: auto; width: min(760px, calc(100% - 48px)); transform: translateX(-50%); animation: none; }
    .mcqs-xtitle h3 { font-size: 17px; }
    .mcqs-timer { font-size: 17px; padding: 7px 14px; min-width: 120px; }
    .mcqs-headcam { width: 58px; height: 58px; }
    .mcqs-strip { padding: 8px 24px; }
    .mcqs-palette { grid-template-columns: repeat(5, minmax(0, 1fr)); max-height: 340px; overflow-y: auto; }
}

@media (min-width: 1280px) {
    .mcqs-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
    .mcqs-main { padding: 32px 40px 56px; }
    .mcqs-hero { padding: 40px; }
    .mcqs-hero h1 { font-size: 34px; }
}


/* =====================================================================
   v3.2 — Practice, past papers, notebook, analytics
   ===================================================================== */
.mcqs-chips-sub { margin-top: -6px; }
.mcqs-chip-sub { height: 32px; font-size: 13px; background: #f6f8fc; }
.mcqs-cta-wide { width: 100%; margin-bottom: 16px; }

/* Bookmark star */
.mcqs-bm { margin-left: auto; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: #cbd5e1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; transition: .15s; }
.mcqs-bm:hover { color: #f59e0b; border-color: #fcd34d; }
.mcqs-bm.is-on { color: #f59e0b; background: #fffbeb; border-color: #fcd34d; }
.mcqs-bm.is-on .mcqs-i { fill: #f59e0b; }
.mcqs-rq-head .mcqs-bm { margin-left: 6px; }
.mcqs-rq-head > span + .mcqs-bm, .mcqs-rq-head .mcqs-pass + .mcqs-bm, .mcqs-rq-head .mcqs-fail + .mcqs-bm { margin-left: 8px; }

/* Past papers */
.mcqs-papers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 12px; }
.mcqs-paper { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow-sm); min-width: 0; }
.mcqs-paper-year { width: 64px; flex-shrink: 0; border-radius: 14px; background: linear-gradient(160deg, var(--hero-1), var(--hero-2)); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 8px 4px; }
.mcqs-paper-year b { font-size: 17px; font-weight: 800; line-height: 1.1; }
.mcqs-paper-year small { font-size: 11px; opacity: .8; }
.mcqs-paper-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.mcqs-paper-body h3 { font-size: 16px; font-weight: 800; }
.mcqs-paper-body p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; }
.mcqs-paper-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* Practice setup */
.mcqs-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.mcqs-quick-card { --t: var(--brand); --tb: var(--brand-50); display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 14px 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); cursor: pointer; font-family: inherit; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; min-width: 0; color: var(--ink); }
.mcqs-quick-card:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--shadow); }
.mcqs-quick-card:disabled { opacity: .5; cursor: not-allowed; }
.mcqs-quick-card > span { width: 40px; height: 40px; border-radius: 12px; background: var(--tb); color: var(--t); display: flex; align-items: center; justify-content: center; }
.mcqs-quick-card b { font-size: 14.5px; font-weight: 800; line-height: 1.25; }
.mcqs-quick-card small { color: var(--muted); font-size: 12.5px; }
.mcqs-quick-card.is-orange { --t: #ea580c; --tb: #fff4ec; }
.mcqs-quick-card.is-gold { --t: #d97706; --tb: #fffbeb; }
.mcqs-practice-form { margin-bottom: 24px; }
.mcqs-practice-form select { display: block; width: 100%; margin-top: 6px; min-height: 48px; padding: 0 12px; border: 1px solid #d5dce8; border-radius: 12px; background: #fff; }
.mcqs-form-title { display: flex; align-items: center; gap: 8px; }
.mcqs-count-pick { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 2px 0 16px; font-size: 14px; font-weight: 600; color: var(--ink2); }
.mcqs-count-pick > span { margin-right: 4px; }
.mcqs-count-pick label { cursor: pointer; }
.mcqs-count-pick input { position: absolute; opacity: 0; pointer-events: none; }
.mcqs-count-pick b { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; height: 40px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 800; transition: .15s; }
.mcqs-count-pick input:checked + b { background: var(--brand); border-color: var(--brand); color: #fff; }
.mcqs-count-pick input:focus-visible + b { outline: 3px solid rgba(37, 99, 235, .45); }
.mcqs-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.mcqs-topic { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); border-left: 4px solid var(--faint); background: var(--card); cursor: pointer; font-family: inherit; color: var(--ink); min-width: 0; transition: box-shadow .15s; }
.mcqs-topic:hover { box-shadow: var(--shadow); }
.mcqs-topic b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcqs-topic small { color: var(--muted); font-size: 12.5px; }
.mcqs-topic .mcqs-meter { margin-top: 4px; }
.mcqs-topic-good { border-left-color: var(--ok); }
.mcqs-topic-mid { border-left-color: var(--warn); }
.mcqs-topic-mid .mcqs-meter i { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.mcqs-topic-weak { border-left-color: var(--bad); }
.mcqs-topic-weak .mcqs-meter i { background: linear-gradient(90deg, #f87171, #ef4444); }

/* Practice runner */
.mcqs-prun-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.mcqs-prun-head > div:first-child { min-width: 0; }
.mcqs-prun-head small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.mcqs-prun-head strong { display: block; font-size: 16px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcqs-prun-score { display: flex; gap: 6px; flex-shrink: 0; }
.mcqs-prun-score span { font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 99px; background: #f1f5f9; }
.mcqs-prun-score .ok { background: #dcfce7; color: #15803d; }
.mcqs-prun-score .bad { background: #fee2e2; color: #b91c1c; }
.mcqs-prun-meter { margin-bottom: 10px; }
.mcqs-prun-dots { margin-bottom: 12px; padding-bottom: 4px; }
.mcqs-prun-dots button { min-width: 36px; height: 36px; border-radius: 10px; border: 1px solid #cbd5e1; background: #fff; font-weight: 700; font-size: 13px; cursor: pointer; flex-shrink: 0; padding: 0; color: var(--ink2); }
.mcqs-prun-dots button.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.mcqs-prun-dots button.bad { background: var(--bad); border-color: var(--bad); color: #fff; }
.mcqs-prun-dots button.is-current { outline: 3px solid var(--brand); outline-offset: 1px; }
.mcqs-prun-card { padding: 16px; }
.mcqs-opt.is-right { border-color: var(--ok); background: #ecfdf3; color: #14532d; font-weight: 700; opacity: 1; }
.mcqs-opt.is-right .mcqs-opt-l { background: var(--ok); border-color: var(--ok); color: #fff; }
.mcqs-opt.is-wrong { border-color: var(--bad); background: #fef2f2; color: #7f1d1d; opacity: 1; }
.mcqs-opt.is-wrong .mcqs-opt-l { background: var(--bad); border-color: var(--bad); color: #fff; }
.mcqs-opt.is-dim { opacity: .55; }
.mcqs-opt.is-picked { border-color: var(--brand); background: var(--brand-50); }
.mcqs-opt:disabled { cursor: default; }
.mcqs-fb { margin-top: 14px; border-radius: 14px; padding: 12px 14px; animation: mcqsUp .2s ease; }
.mcqs-fb.is-ok { background: #ecfdf3; border: 1px solid #86efac; color: #14532d; }
.mcqs-fb.is-bad { background: #fef2f2; border: 1px solid #fca5a5; color: #7f1d1d; }
.mcqs-fb > b { font-size: 15px; }
.mcqs-fb-exp { margin-top: 6px; font-size: 14.5px; color: var(--ink2); }
.mcqs-prun-nav { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 14px; padding: 10px 0; background: linear-gradient(transparent, var(--bg) 30%); z-index: 5; }
.mcqs-prun-nav .mcqs-btn { min-height: 50px; }
.mcqs-prun-done { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 24px 16px; }
.mcqs-prun-done h3 { font-size: 21px; font-weight: 800; }
.mcqs-prun-done .mcqs-submit-sum { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; max-width: 420px; }
.mcqs-prun-done .mcqs-subjects { width: 100%; max-width: 520px; text-align: left; }

/* Notebook */
.mcqs-note { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.mcqs-note textarea { width: 100%; border: 1px solid #d5dce8; border-radius: 12px; padding: 10px 12px; font-size: 15px; background: #fffef7; resize: vertical; }
.mcqs-note .mcqs-btn { align-self: flex-start; }
.mcqs-note .mcqs-btn.is-saved { background: var(--ok); color: #fff !important; border-color: var(--ok); }
.mcqs-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 18px 0; font-weight: 700; color: var(--muted); }

/* Analytics heatmap */
.mcqs-heat { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 8px; }
.mcqs-heat-tile { --p: 50; display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 14px; color: #fff !important; min-height: 92px; justify-content: flex-end; text-decoration: none !important; transition: transform .15s; min-width: 0; }
.mcqs-heat-tile:hover { transform: translateY(-2px); }
.mcqs-heat-tile b { font-size: 22px; font-weight: 800; line-height: 1; }
.mcqs-heat-tile span { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcqs-heat-tile small { font-size: 11.5px; opacity: .85; }
.mcqs-heat-good { background: linear-gradient(140deg, #15803d, #22c55e); }
.mcqs-heat-mid { background: linear-gradient(140deg, #b45309, #f59e0b); }
.mcqs-heat-weak { background: linear-gradient(140deg, #b91c1c, #ef4444); }
.mcqs-heat-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.mcqs-heat-legend span { display: flex; align-items: center; gap: 6px; }
.mcqs-heat-legend i { width: 12px; height: 12px; border-radius: 4px; }
.mcqs-heat-legend .good { background: #22c55e; }
.mcqs-heat-legend .mid { background: #f59e0b; }
.mcqs-heat-legend .weak { background: #ef4444; }
.mcqs-weak { margin-top: 16px; background: #fff7ed; border: 1px solid #fed7aa; border-radius: var(--radius); padding: 14px; }
.mcqs-weak h4 { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 800; color: #9a3412; margin: 0 0 8px; }
.mcqs-weak-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid #fde4cc; }
.mcqs-weak-row span { min-width: 0; }
.mcqs-weak-row b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcqs-weak-row small { color: #9a3412; font-size: 12.5px; }

@media (max-width: 479px) {
    .mcqs-quick { grid-template-columns: 1fr; }
    .mcqs-quick-card { flex-direction: row; align-items: center; gap: 12px; }
    .mcqs-quick-card b { flex: 1; }
}
@media (min-width: 1024px) {
    .mcqs-prun-nav { bottom: 0; }
    .mcqs-practice { max-width: 980px; }
}

/* Theme-mode (shortcode placed inside a normal theme page): keep things contained */
body:not(.mcqs-shell) .mcqs-dash { min-height: 0; border-radius: 20px; overflow: clip; border: 1px solid var(--line); }
body:not(.mcqs-shell) .mcqs-login, body:not(.mcqs-shell) .mcqs-gate-wrap, body:not(.mcqs-shell) .mcqs-lobby { min-height: 0; }
body:not(.mcqs-shell) .mcqs-app { min-height: 520px; border: 1px solid var(--line); border-radius: 20px; overflow: clip; }
body:not(.mcqs-shell) .mcqs-app:fullscreen { border-radius: 0; }


/* Teacher ↔ student messages during the exam */
.mcqs-msg-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid #26324d; background: #172036; color: #fbbf24; cursor: pointer; flex-shrink: 0; }
.mcqs-msg-btn em { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #ef4444; color: #fff; font-style: normal; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; animation: mcqsPulse 1s infinite; }
.mcqs-msg-box { max-width: 520px; }
.mcqs-msg-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.mcqs-msg-head h3 { display: flex; align-items: center; gap: 8px; margin: 0 !important; }
.mcqs-msg-thread { max-height: 46vh; min-height: 120px; overflow-y: auto; background: #f1f5f9; border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.mcqs-msg { max-width: 85%; padding: 9px 12px; border-radius: 14px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.mcqs-msg small { display: block; font-size: 11.5px; opacity: .7; margin-bottom: 2px; }
.mcqs-msg-teacher { align-self: flex-start; background: #fff; border: 1px solid #fcd34d; box-shadow: 0 2px 8px -4px rgba(217, 119, 6, .4); }
.mcqs-msg-me { align-self: flex-end; background: var(--brand); color: #fff; }
.mcqs-msg-send { display: flex; gap: 8px; margin-top: 10px; align-items: flex-end; }
.mcqs-msg-send textarea { flex: 1; margin: 0 !important; min-height: 48px !important; }
.mcqs-msg-send .mcqs-btn { min-width: 52px; min-height: 48px; padding: 0 12px; }
.mcqs-appeal { width: 100%; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .15); border-radius: 14px; padding: 12px; text-align: left; }
.mcqs-appeal label { display: block; font-weight: 700; font-size: 14px; color: #e2e8f0; margin-bottom: 6px; }
.mcqs-appeal textarea { width: 100%; border-radius: 10px; border: 1px solid #334155; background: #0f172a; color: #fff; padding: 10px; font-size: 16px; margin-bottom: 8px; }
.mcqs-appeal-status { color: #fde68a !important; font-weight: 600; margin-bottom: 4px !important; }


/* Result flyer — "Dear <name>, you achieved …" */
.mcqs-flyer { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 16px; border-radius: 22px; padding: 22px 20px; margin-bottom: 18px; color: #fff; box-shadow: 0 20px 40px -22px rgba(15, 23, 42, .6); }
.mcqs-flyer::before { content: ""; position: absolute; z-index: -1; right: -90px; top: -110px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .25), transparent 65%); }
.mcqs-flyer::after { content: "★ ✦ ★"; position: absolute; z-index: -1; right: 18px; bottom: 10px; font-size: 40px; letter-spacing: 12px; opacity: .14; }
.mcqs-flyer-pass { background: linear-gradient(135deg, #065f46 0%, #059669 55%, #10b981 100%); }
.mcqs-flyer-try { background: linear-gradient(135deg, var(--hero-1) 0%, var(--hero-2) 60%, var(--hero-3) 100%); }
.mcqs-flyer-bad { background: linear-gradient(135deg, #7f1d1d, #dc2626); }
.mcqs-flyer h2 { color: #fff; font-size: 24px; font-weight: 800; margin: 2px 0 6px; }
.mcqs-flyer-date { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; background: rgba(255, 255, 255, .15); padding: 4px 10px; border-radius: 99px; }
.mcqs-flyer-dear { font-size: 17px; margin-top: 12px !important; opacity: .95; }
.mcqs-flyer-line { font-size: 15.5px; opacity: .92; max-width: 640px; }
.mcqs-flyer h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mcqs-flyer-ic { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .18); font-size: 20px; flex-shrink: 0; }
.mcqs-flyer-dear { display: flex; align-items: center; gap: 6px; }
/* Score ring: filled to the percentage, score in the middle */
.mcqs-flyer-score { --p: 0; align-self: flex-start; position: relative; width: 132px; height: 132px; border-radius: 50%; flex-shrink: 0; background: conic-gradient(#fff calc(var(--p) * 1%), rgba(255, 255, 255, .22) 0); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .5); }
.mcqs-flyer-score > div { width: 108px; height: 108px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(15, 23, 42, .28); backdrop-filter: blur(4px); }
.mcqs-flyer-pass .mcqs-flyer-score > div { background: #047857; }
.mcqs-flyer-try .mcqs-flyer-score > div { background: #1d4ed8; }
.mcqs-flyer-bad .mcqs-flyer-score > div { background: #991b1b; }
.mcqs-flyer-score b { font-size: 26px; font-weight: 800; line-height: 1; white-space: nowrap; }
.mcqs-flyer-score b small { font-size: 14px; font-weight: 600; opacity: .85; }
.mcqs-flyer-score span { margin-top: 6px; font-size: 14px; font-weight: 700; background: rgba(255, 255, 255, .2); padding: 1px 10px; border-radius: 99px; }
/* Result stat cards with icons */
.mcqs-stat-i { position: relative; padding-left: 58px; }
.mcqs-stat-i > i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: #f1f5f9; color: var(--ink2); }
.mcqs-stat-i.green > i { background: #ecfdf3; color: #16a34a; }
.mcqs-stat-i.purple > i { background: #f3efff; color: #7c3aed; }
.mcqs-stat-i.blue > i { background: var(--brand-50); color: var(--brand); }
.mcqs-stat-i.orange > i { background: #fff4ec; color: #ea580c; }
.mcqs-msg-box .mcqs-btn-lg { margin-top: 12px; }
@media (min-width: 640px) {
    .mcqs-flyer { flex-direction: row; align-items: center; justify-content: space-between; padding: 28px 30px; }
    .mcqs-flyer h2 { font-size: 28px; }
    .mcqs-flyer-score { width: 156px; height: 156px; align-self: center; }
    .mcqs-flyer-score > div { width: 128px; height: 128px; }
    .mcqs-flyer-score b { font-size: 30px; }
}
@media print { .mcqs-flyer { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
/* v3.6: on phones the score is already in the sentence + cards below — no ring. */
@media (max-width: 639.98px) { .mcqs-flyer-score { display: none !important; } }


/* One-page quiz ([mcqsewa_quiz]) — works inside any theme/blog post */
.mcqs-quizpage { max-width: 860px; margin: 24px auto; }
.mcqs-qp-head { margin-bottom: 14px; }
.mcqs-qp-head h2 { font-size: 24px; font-weight: 800; margin: 8px 0 4px; }
.mcqs-qp-head p { color: var(--muted); font-size: 14px; }
.mcqs-qp-bar { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 8px); z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px; margin-bottom: 16px; box-shadow: var(--shadow-sm); font-size: 14px; }
.mcqs-qp-bar > span { font-weight: 700; padding: 4px 10px; border-radius: 99px; background: #f1f5f9; }
.mcqs-qp-bar .ok { background: #dcfce7; color: #15803d; }
.mcqs-qp-bar .bad { background: #fee2e2; color: #b91c1c; }
.mcqs-qp-bar .mcqs-btn { margin-left: auto; }
.mcqs-qp-bar .mcqs-btn + .mcqs-btn { margin-left: 0; }
.mcqs-qp-list { list-style: none; counter-reset: none; padding: 0 !important; margin: 0 !important; display: flex; flex-direction: column; gap: 14px; }
.mcqs-qp-q { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 0 !important; list-style: none; }
.mcqs-qp-q.is-right { border-left-color: var(--ok); }
.mcqs-qp-q.is-wrong { border-left-color: var(--bad); }
.mcqs-qp-q::marker { content: none; }
.mcqs-qp-text { font-size: 17px !important; font-weight: 700 !important; line-height: 1.6 !important; margin: 0 0 12px !important; color: var(--ink) !important; }
.mcqs-qp-num { color: var(--brand); margin-right: 2px; }
.mcqs-qp-opts { list-style: none !important; padding: 0 !important; margin: 0 !important; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.mcqs-qp-opts li { margin: 0 !important; list-style: none !important; }
.mcqs-qp-opts button { display: flex !important; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 10px 12px !important; text-align: left; background: #fff !important; color: var(--ink) !important; border: 2px solid var(--line) !important; border-radius: 12px !important; font: inherit !important; font-size: 15.5px !important; line-height: 1.45 !important; cursor: pointer; text-transform: none !important; letter-spacing: normal !important; box-shadow: none !important; transition: border-color .15s, background .15s; }
.mcqs-qp-opts button:hover:not(:disabled) { border-color: #93b4ff !important; background: #f7faff !important; }
.mcqs-qp-opts button.is-picked { border-color: var(--brand) !important; background: var(--brand-50) !important; }
.mcqs-qp-opts button.ok { border-color: var(--ok) !important; background: #ecfdf3 !important; color: #14532d !important; font-weight: 700 !important; }
.mcqs-qp-opts button.bad { border-color: var(--bad) !important; background: #fef2f2 !important; color: #7f1d1d !important; }
.mcqs-qp-opts button:disabled { cursor: default; opacity: 1; }
.mcqs-qp-l { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: #f1f5f9; border: 2px solid #cbd5e1; font-weight: 800; font-size: 13px; }
.mcqs-qp-opts button.ok .mcqs-qp-l { background: var(--ok); border-color: var(--ok); color: #fff; }
.mcqs-qp-opts button.bad .mcqs-qp-l { background: var(--bad); border-color: var(--bad); color: #fff; }
.mcqs-qp-t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mcqs-qp-ans { margin-top: 10px; border-radius: 10px; background: #f8fafc; border: 1px dashed #cbd5e1; padding: 8px 12px; font-size: 14.5px; }
.mcqs-qp-ans summary { cursor: pointer; font-weight: 700; color: var(--brand); }
.mcqs-qp-ans p { margin: 8px 0 0 !important; }
.mcqs-qp-ans strong { color: #15803d; }
.mcqs-qp-exp { margin-top: 6px; color: var(--ink2); }
.mcqs-qp-pages { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 22px 0; }
.mcqs-qp-pages > a:not(.mcqs-btn), .mcqs-qp-cur, .mcqs-qp-gap { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 700; text-decoration: none !important; color: var(--ink2) !important; }
.mcqs-qp-cur { background: var(--brand); border-color: var(--brand); color: #fff !important; }
.mcqs-qp-gap { border: 0; background: none; }
.mcqs-qp-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: linear-gradient(135deg, var(--hero-1), var(--hero-2)); color: #fff; border-radius: var(--radius); padding: 16px 18px; margin-top: 16px; }
.mcqs-qp-cta b { display: block; font-size: 16px; }
.mcqs-qp-cta small { opacity: .85; }
.mcqs-qp-cta .mcqs-btn { background: #fff !important; color: var(--brand-600) !important; border-color: #fff; }
@media (min-width: 640px) { .mcqs-qp-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Navigation progress bar */
.mcqs-loadbar { position: fixed; z-index: 2147483600; top: var(--wp-admin--admin-bar--height, 0px); left: 0; height: 3px; width: 0; background: linear-gradient(90deg, #2563eb, #0ea5e9, #22c55e); box-shadow: 0 0 10px rgba(37, 99, 235, .6); opacity: 0; transition: opacity .2s; pointer-events: none; }
.mcqs-loadbar.is-on { opacity: 1; animation: mcqsLoad 8s cubic-bezier(.1, .7, .2, 1) forwards; }
@keyframes mcqsLoad { 0% { width: 0; } 20% { width: 45%; } 60% { width: 80%; } 100% { width: 94%; } }
html.mcqs-navigating .mcqs-main { opacity: .55; transition: opacity .25s .15s; pointer-events: none; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .mcqs *, .mcqs *::before, .mcqs *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* 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%; padding: 0; }
    .mcqs-btn, .mcqs-review-filter, .mcqs-actions-row, .mcqs-backlink, .mcqs-topbar, .mcqs-tabbar, .mcqs-side { display: none !important; }
    .mcqs-rq { break-inside: avoid; }
    .mcqs-review [hidden] { display: block !important; }
}

/* v3.6 — one-page quiz hero + responsive layout */
/* Themes (e.g. Twenty Twenty-Five) squeeze post content to ~650px; the quiz breaks out to a wide, centred column. */
.mcqs-quizpage { max-width: var(--quiz-w-laptop); margin-left: auto; margin-right: auto; }
.mcqs-quizpage.mcqs-qp-wide { box-sizing: border-box; width: calc(100vw - 24px); max-width: none !important; margin-left: 50% !important; margin-right: 0 !important; transform: translateX(-50%); }
@media (min-width: 900px) { .mcqs-quizpage.mcqs-qp-wide { width: min(var(--quiz-w-laptop), calc(100vw - 64px)); } }
@media (min-width: 1440px) { .mcqs-quizpage.mcqs-qp-wide { width: min(var(--quiz-w-desktop), calc(100vw - 64px)); } .mcqs-quizpage { max-width: var(--quiz-w-desktop); } }
@media (min-width: 1100px) { .mcqs-qp-chips { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.mcqs-qp-hero { position: relative; overflow: hidden; isolation: isolate; border-radius: 22px; padding: 20px 18px; margin-bottom: 16px; color: #fff; background: linear-gradient(135deg, var(--hero-1) 0%, var(--hero-2) 60%, var(--hero-3) 100%); box-shadow: 0 20px 40px -24px rgba(15, 23, 42, .6); }
.mcqs-qp-hero::before { content: ""; position: absolute; z-index: -1; right: -80px; top: -100px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .25), transparent 65%); }
.mcqs-qp-hero-top { display: flex; flex-wrap: wrap; gap: 6px; }
.mcqs-qp-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: #fff; color: var(--hero-2); max-width: 100%; overflow-wrap: anywhere; }
.mcqs-qp-badge-soft { background: rgba(255, 255, 255, .16); color: #fff; }
.mcqs-qp-hero h2 { color: #fff !important; font-size: 22px !important; font-weight: 800 !important; line-height: 1.3 !important; margin: 12px 0 6px !important; overflow-wrap: anywhere; }
.mcqs-qp-sub { margin: 0 0 14px !important; font-size: 14.5px; opacity: .92; line-height: 1.55; }
.mcqs-qp-chips { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mcqs-qp-chips li { margin: 0 !important; display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .18); }
.mcqs-qp-chips i { grid-row: 1 / 3; width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .2); }
.mcqs-qp-chips span { font-size: 11.5px; opacity: .85; line-height: 1.2; }
.mcqs-qp-chips li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.mcqs-qp-chips b { font-size: 15px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcqs-qp-bar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.mcqs-qp-stats, .mcqs-qp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mcqs-qp-stats > span { font-weight: 700; padding: 4px 10px; border-radius: 99px; background: #f1f5f9; }
.mcqs-qp-stats .ok { background: #dcfce7; color: #15803d; }
.mcqs-qp-stats .bad { background: #fee2e2; color: #b91c1c; }
.mcqs-qp-actions .mcqs-btn { margin: 0 !important; flex: 1 1 auto; }
.mcqs-qp-progress { height: 5px; border-radius: 99px; background: #e2e8f0; overflow: hidden; }
.mcqs-qp-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2563eb, #0ea5e9); transition: width .25s; }
.mcqs-qp-pageinfo { text-align: center; color: var(--muted); font-size: 14px; margin: 20px 0 -8px !important; }
@media (max-width: 479.98px) {
    .mcqs-qp-q { padding: 14px 12px; }
    .mcqs-qp-text { font-size: 16px !important; }
    .mcqs-qp-opts button { font-size: 15px !important; padding: 9px 10px !important; }
    .mcqs-qp-pages > .mcqs-btn { flex: 1 1 40%; }
    .mcqs-qp-cta { flex-direction: column; align-items: stretch; text-align: center; }
}
@media (min-width: 640px) {
    .mcqs-qp-hero { padding: 28px 30px; }
    .mcqs-qp-hero h2 { font-size: 28px !important; }
    .mcqs-qp-chips { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
    .mcqs-qp-chips li:last-child:nth-child(odd) { grid-column: auto; }
    .mcqs-qp-bar { grid-template-columns: auto 1fr; align-items: center; }
    .mcqs-qp-actions { justify-content: flex-end; }
    .mcqs-qp-actions .mcqs-btn { flex: 0 0 auto; }
    .mcqs-qp-progress { grid-column: 1 / -1; }
    .mcqs-qp-q { padding: 20px 22px; }
}
@media (min-width: 900px) {
    .mcqs-qp-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* v3.8 — widths from Settings → Appearance (laptop 900–1439px, large desktop ≥1440px; phones always full width) */
@media (min-width: 900px) {
    .mcqs-main { max-width: var(--dash-w-laptop); }
    .mcqs-xgrid { max-width: var(--exam-w-laptop); margin-left: auto; margin-right: auto; width: 100%; }
}
@media (min-width: 1440px) {
    .mcqs-main { max-width: var(--dash-w-desktop); }
    .mcqs-xgrid { max-width: var(--exam-w-desktop); }
}

/* ===================== v4.0 — accounts (OTP) ===================== */
.mcqs-auth { display: flex; flex-direction: column; }
.mcqs-auth .mcqs-auth-form { margin-top: 6px; }
.mcqs-auth .mcqs-auth-form[hidden] { display: none !important; }
.mcqs-auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #f1f5f9; border-radius: 14px; padding: 4px; margin-bottom: 14px; }
.mcqs-auth-tabs button { appearance: none; border: 0 !important; background: transparent !important; color: var(--ink2) !important; font: inherit !important; font-weight: 700 !important; font-size: 15px !important; padding: 10px !important; border-radius: 11px !important; cursor: pointer; text-transform: none !important; box-shadow: none !important; min-height: 0 !important; }
.mcqs-auth-tabs button.is-active { background: #fff !important; color: var(--brand) !important; box-shadow: 0 1px 3px rgba(15, 23, 42, .12) !important; }
.mcqs-auth h2 { display: flex; align-items: center; gap: 8px; }
.mcqs-fl { display: block; margin: 0 0 14px !important; }
.mcqs-fl small { font-weight: 500; color: var(--muted); }
.mcqs-fl input { margin-top: 6px; }
.mcqs-pw { position: relative; display: block; }
.mcqs-pw input { padding-right: 48px !important; }
.mcqs-eye { position: absolute; right: 6px; top: calc(50% + 3px); transform: translateY(-50%); width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 0 !important; background: transparent !important; color: var(--muted) !important; border-radius: 10px !important; cursor: pointer; padding: 0 !important; box-shadow: none !important; min-height: 0 !important; }
.mcqs-eye.is-on { color: var(--brand) !important; }
.mcqs-strength { display: block; height: 5px; border-radius: 99px; background: #e2e8f0; margin-top: 8px; overflow: hidden; }
.mcqs-strength i { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }
.mcqs-strength[data-level="1"] i { width: 25%; background: #dc2626; }
.mcqs-strength[data-level="2"] i { width: 50%; background: #f59e0b; }
.mcqs-strength[data-level="3"] i { width: 75%; background: #22c55e; }
.mcqs-strength[data-level="4"] i { width: 100%; background: #15803d; }
.mcqs-otp { text-align: center; font-size: 28px !important; letter-spacing: 12px; font-weight: 800; font-family: var(--mono) !important; min-height: 60px !important; }
.mcqs-auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 4px 0 16px; }
.mcqs-check-sm { display: inline-flex !important; align-items: center; gap: 8px; font-weight: 500 !important; margin: 0 !important; }
.mcqs-linkbtn { appearance: none; border: 0 !important; background: none !important; color: var(--brand) !important; font: inherit !important; font-weight: 600 !important; font-size: 14px !important; padding: 4px 0 !important; cursor: pointer; text-transform: none !important; box-shadow: none !important; min-height: 0 !important; text-decoration: none; }
.mcqs-linkbtn:hover { text-decoration: underline; }
.mcqs-linkbtn:disabled { color: var(--faint) !important; cursor: default; text-decoration: none; }
.mcqs-btn-block { width: 100%; justify-content: center; }
.mcqs-btn-lg { min-height: 52px; font-size: 16px; }
.mcqs-or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13px; margin: 16px 0; }
.mcqs-or::before, .mcqs-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.mcqs-auth-switch { text-align: center; color: var(--muted); font-size: 14px; margin: 16px 0 0 !important; }
.mcqs-auth-hint { font-size: 13px; color: var(--muted); background: #f8fafc; border-radius: 10px; padding: 10px 12px; margin: 4px 0 0 !important; }
.mcqs-auth-msg { border-radius: 12px; padding: 11px 14px; font-size: 14.5px; font-weight: 600; margin-bottom: 12px; line-height: 1.5; }
.mcqs-auth-msg.err { background: var(--bad-50); color: #991b1b; border: 1px solid #fecaca; }
.mcqs-auth-msg.ok { background: var(--ok-50); color: #166534; border: 1px solid #bbf7d0; }
.mcqs-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.mcqs-spin { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: mcqsSpin .7s linear infinite; vertical-align: -3px; }
@keyframes mcqsSpin { to { transform: rotate(360deg); } }

/* ===================== v4.0 — notification bell ===================== */
.mcqs-notif { position: relative; }
.mcqs-bell { position: relative; }
.mcqs-bell em, .mcqs-nav-item em[data-notif-count] { font-style: normal; }
.mcqs-bell em { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #fff; }
.mcqs-bell em[hidden], [data-notif-count][hidden] { display: none !important; }
.mcqs-notif-pop { position: absolute; right: -8px; top: calc(100% + 10px); width: min(380px, calc(100vw - 24px)); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); z-index: 60; overflow: hidden; }
.mcqs-notif-pop[hidden] { display: none; }
.mcqs-notif-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line2); }
.mcqs-notif-head b { font-size: 16px; }
.mcqs-notif-list { max-height: min(420px, 60vh); overflow-y: auto; }
.mcqs-notif-empty { padding: 26px 14px; text-align: center; color: var(--muted); margin: 0; }
.mcqs-notif-foot { display: block; text-align: center; padding: 11px; font-weight: 700; font-size: 14px; color: var(--brand); border-top: 1px solid var(--line2); text-decoration: none; }
.mcqs-notif-item, .mcqs-notif-item > a { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; text-decoration: none !important; color: var(--ink) !important; position: relative; }
.mcqs-notif-items .mcqs-notif-item { padding: 0; }
.mcqs-notif-items .mcqs-notif-item > a { width: 100%; }
.mcqs-notif-list .mcqs-notif-item + .mcqs-notif-item { border-top: 1px solid var(--line2); }
.mcqs-notif-item:hover, .mcqs-notif-item > a:hover { background: #f8fafc; }
.mcqs-notif-item i { flex-shrink: 0; width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: var(--brand-50); color: var(--brand); }
.mcqs-notif-item.t-result i { background: #ecfdf3; color: #16a34a; }
.mcqs-notif-item.t-exam i { background: #f3efff; color: #7c3aed; }
.mcqs-notif-item.t-report i { background: #fff4ec; color: #ea580c; }
.mcqs-notif-item span { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mcqs-notif-item small { font-size: 12px; color: var(--muted); }
.mcqs-notif-item b { font-size: 14.5px; line-height: 1.4; font-weight: 700; overflow-wrap: anywhere; }
.mcqs-notif-item em { font-style: normal; font-size: 13.5px; color: var(--ink2); line-height: 1.45; }
.mcqs-notif-item.is-new::after, .mcqs-notif-item.is-new > a::after { content: ""; position: absolute; right: 14px; top: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
.mcqs-notif-item.is-new { background: #f7faff; }
.mcqs-notif-item.is-new > a::after { right: 16px; }
.mcqs-notif-items .mcqs-notif-item.is-new::after { display: none; }
.mcqs-notif-items { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mcqs-notif-items li + li { border-top: 1px solid var(--line2); }
.mcqs-notif-tools { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
@media (max-width: 599.98px) { .mcqs-notif-pop { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; } }

/* Profile switches + inline form messages */
.mcqs-switch { display: flex !important; align-items: center; gap: 12px; padding: 10px 0; cursor: pointer; }
.mcqs-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mcqs-switch span { flex-shrink: 0; width: 44px; height: 26px; border-radius: 99px; background: #cbd5e1; position: relative; transition: background .2s; }
.mcqs-switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.mcqs-switch input:checked + span { background: var(--brand); }
.mcqs-switch input:checked + span::after { transform: translateX(18px); }
.mcqs-switch input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.mcqs-switch b { font-weight: 600; font-size: 15px; }
.mcqs-form-msg { font-weight: 600; font-size: 14px; }
.mcqs-form-msg.ok { color: #15803d; } .mcqs-form-msg.err { color: #b91c1c; }

/* ===================== v4.1 — guaranteed text contrast on coloured panels =====================
   Themes often set colours on h1/h2/p/span directly; that beats inherited white text and made
   flyer / hero text invisible on some pages. --hero-ink is chosen automatically (white on dark
   hero colours, dark ink on light ones). */
.mcqs-hero, .mcqs-flyer-try, .mcqs-qp-hero, .mcqs-qp-cta, .mcqs-paper-year { color: var(--hero-ink) !important; }
.mcqs-hero :is(h1, h2, h3, p, b, strong, small, span, li), .mcqs-qp-hero :is(h2, p, b, span, small), .mcqs-qp-cta :is(b, small, div), .mcqs-paper-year :is(b, small, span), .mcqs-flyer-try :is(h2, p, b, small, span) { color: inherit !important; }
.mcqs-hero p, .mcqs-qp-sub { color: var(--hero-ink-soft) !important; }
.mcqs-flyer-pass, .mcqs-flyer-bad, .mcqs-login-art, .mcqs-lobby-head { color: #fff !important; }
.mcqs-flyer-pass :is(h2, p, b, small, span), .mcqs-flyer-bad :is(h2, p, b, small, span), .mcqs-login-art :is(h1, h2, p, li, span, strong, small), .mcqs-lobby-head :is(h1, h2, p, span, strong, small, b) { color: inherit !important; }
.mcqs-qp-badge:not(.mcqs-qp-badge-soft) { color: var(--hero-2) !important; }
.mcqs-qp-badge-soft { color: var(--hero-ink) !important; background: color-mix(in srgb, var(--hero-ink) 16%, transparent) !important; }

/* ===================== v4.1 — profile photo ===================== */
.mcqs-avatar-edit { position: relative; display: inline-block; margin: 0 auto 6px; }
.mcqs-avatar-edit img { width: 96px !important; height: 96px !important; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px #fff, 0 6px 18px -6px rgba(15, 23, 42, .35); }
.mcqs-avatar-btn { position: absolute; right: -2px; bottom: -2px; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--brand); color: var(--btn-text) !important; border: 3px solid #fff; cursor: pointer; }
.mcqs-avatar-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.mcqs-avatar-actions { display: flex; justify-content: center; gap: 12px; font-size: 13px; min-height: 20px; }
.mcqs-avatar-edit.is-busy img { opacity: .45; }
.mcqs-topbar-avatar img, .mcqs-user img { object-fit: cover; }

/* ===================== v4.1 — Plans, checkout, paywall ===================== */
.mcqs-tag-pro { background: linear-gradient(135deg, #fde68a, #f59e0b) !important; color: #78350f !important; font-weight: 800; }
.mcqs-tag-pro.is-open { background: #ecfdf3 !important; color: #15803d !important; }
.mcqs-btn-locked { background: linear-gradient(135deg, #f59e0b, #d97706) !important; border-color: #d97706 !important; color: #fff !important; }
.mcqs-state-locked { opacity: .96; }
.mcqs-plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 24px; }
@media (min-width: 700px) { .mcqs-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .mcqs-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mcqs-plan { position: relative; display: flex; flex-direction: column; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s; }
.mcqs-plan:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.mcqs-plan.is-featured { border: 2px solid var(--brand); box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--brand) 70%, transparent); }
.mcqs-plan.is-match { outline: 3px solid #f59e0b; outline-offset: 3px; }
.mcqs-plan-ribbon { position: absolute; top: -12px; right: 18px; background: var(--brand); color: var(--btn-text); font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 99px; }
.mcqs-plan h3 { font-size: 19px; font-weight: 800; margin: 0; }
.mcqs-plan-desc { color: var(--muted); font-size: 14px; margin: 0; }
.mcqs-plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.mcqs-plan-price strong { font-size: 32px; font-weight: 800; color: var(--ink); line-height: 1; }
.mcqs-plan-price del { color: var(--faint); font-size: 15px; }
.mcqs-plan-price em { font-style: normal; font-size: 12px; font-weight: 800; color: #15803d; background: #dcfce7; padding: 2px 8px; border-radius: 99px; }
.mcqs-plan-price span { width: 100%; color: var(--muted); font-size: 14px; }
.mcqs-plan-list { list-style: none !important; margin: 0 !important; padding: 0 !important; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mcqs-plan-list li { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; color: var(--ink2); margin: 0 !important; }
.mcqs-plan-list li svg { color: var(--ok); flex-shrink: 0; margin-top: 2px; }
.mcqs-plan-list li.is-cover { font-weight: 700; color: var(--ink); background: var(--brand-50); border-radius: 10px; padding: 7px 10px; }
.mcqs-plan-active { display: flex; align-items: center; gap: 8px; color: #15803d; font-weight: 700; font-size: 14px; background: #ecfdf3; border-radius: 10px; padding: 8px 10px; }
.mcqs-mysubs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 22px; }
.mcqs-mysub { display: flex; gap: 12px; align-items: center; padding: 14px 16px; }
.mcqs-mysub i { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #fde68a, #f59e0b); color: #78350f; flex-shrink: 0; }
.mcqs-mysub b { display: block; font-size: 15.5px; } .mcqs-mysub small { color: var(--muted); font-size: 13px; }
.mcqs-mysub small b { display: inline; font-size: 13px; color: #15803d; } .mcqs-mysub small b.is-low { color: var(--bad); }
.mcqs-orders td small { display: block; color: var(--muted); font-size: 12.5px; }
.mcqs-chip { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: #f1f5f9; color: var(--ink2); }
.mcqs-chip-ok { background: #dcfce7; color: #15803d; } .mcqs-chip-warn { background: #fef3c7; color: #92400e; } .mcqs-chip-bad { background: #fee2e2; color: #b91c1c; }

.mcqs-checkout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 960px) { .mcqs-checkout { grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); } .mcqs-co-summary { order: 2; position: sticky; top: calc(var(--top) + 90px); } }
.mcqs-co-summary small { color: var(--muted); }
.mcqs-co-summary h3 { font-size: 19px; font-weight: 800; margin: 2px 0 12px; }
.mcqs-co-line, .mcqs-co-total { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px dashed var(--line); margin-top: 10px; font-size: 14.5px; }
.mcqs-co-total strong { font-size: 26px; font-weight: 800; color: var(--brand); }
.mcqs-step { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: var(--btn-text); font-size: 14px; font-weight: 800; margin-right: 6px; }
.mcqs-paymethods { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.mcqs-paymethod { position: relative; cursor: pointer; }
.mcqs-paymethod input { position: absolute; opacity: 0; }
.mcqs-paymethod span { display: inline-flex; align-items: center; min-height: 46px; padding: 8px 18px; border: 2px solid var(--line); border-radius: 12px; font-weight: 700; background: #fff; transition: border-color .15s, background .15s; }
.mcqs-paymethod input:checked + span { border-color: var(--brand); background: var(--brand-50); color: var(--brand); }
.mcqs-paymethod input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.mcqs-paydetail { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; background: #f8fafc; border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.mcqs-paydetail[hidden] { display: none; }
.mcqs-paydetail img { width: 180px; max-width: 100%; height: auto; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.mcqs-paydetail pre { white-space: pre-wrap; font-family: var(--font); font-size: 15px; margin: 6px 0; background: none; border: 0; padding: 0; color: var(--ink); }
.mcqs-co-amount b { font-size: 18px; color: var(--brand); }
.mcqs-co-note { font-size: 14px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 10px 12px; }
.mcqs-proof-preview { max-width: 220px; border-radius: 10px; border: 1px solid var(--line); margin: 8px 0; }
.mcqs-co-notefield { display: block; margin-top: 10px; }
.mcqs-co-notefield textarea { width: 100%; }
.mcqs-co-trust { font-size: 13px; margin-top: 10px; }
.mcqs-paywall-list { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 420px; margin: 14px auto; }
.mcqs-paywall-pkg { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border: 2px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none !important; color: var(--ink) !important; text-align: left; transition: border-color .15s; }
.mcqs-paywall-pkg:hover { border-color: var(--brand); }
.mcqs-paywall-pkg small { display: block; color: var(--muted); font-size: 12.5px; }
.mcqs-paywall-pkg strong { color: var(--brand); font-size: 18px; white-space: nowrap; }

/* ===================== v4.2 — practice retake & smart pick ===================== */
.mcqs-pick-mode { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 4px 0 16px; }
@media (min-width: 640px) { .mcqs-pick-mode { grid-template-columns: auto 1fr 1fr; align-items: stretch; } }
.mcqs-pick-mode > span { font-weight: 700; font-size: 14px; color: var(--ink2); align-self: center; }
.mcqs-pick-mode label { position: relative; cursor: pointer; margin: 0 !important; }
.mcqs-pick-mode input { position: absolute; opacity: 0; }
.mcqs-pick-mode label > span { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 10px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .15s, background .15s; }
.mcqs-pick-mode label b { font-size: 14.5px; }
.mcqs-pick-mode label small { font-size: 12.5px; color: var(--muted); font-weight: 500; line-height: 1.4; }
.mcqs-pick-mode input:checked + span { border-color: var(--brand); background: var(--brand-50); }
.mcqs-pick-mode input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.mcqs-retake { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 440px; margin: 16px auto 6px; }
.mcqs-retake .mcqs-btn { width: 100%; justify-content: center; min-height: 48px; }
.mcqs-retake .mcqs-alert { margin: 0; text-align: center; }

/* ===================== v4.2 — purchased packages ===================== */
.mcqs-btn-active { background: #ecfdf3 !important; border-color: #86efac !important; color: #15803d !important; cursor: default; pointer-events: none; font-weight: 800; }
.mcqs-plan-until { text-align: center; color: var(--muted); font-size: 13px; margin-top: -4px; }
.mcqs-plan-expired { display: flex; align-items: center; gap: 8px; color: #b45309; font-weight: 700; font-size: 14px; background: #fffbeb; border-radius: 10px; padding: 8px 10px; }
.mcqs-mysubs { grid-template-columns: minmax(0, 1fr) !important; }
details.mcqs-mysub { display: block; padding: 0; overflow: hidden; scroll-margin-top: calc(var(--top) + 90px); }
details.mcqs-mysub > summary { display: flex; gap: 12px; align-items: center; padding: 14px 16px; cursor: pointer; list-style: none; }
details.mcqs-mysub > summary::-webkit-details-marker { display: none; }
details.mcqs-mysub > summary > div { flex: 1; min-width: 0; }
.mcqs-mysub-chev { color: var(--muted); transition: transform .2s; }
details.mcqs-mysub[open] .mcqs-mysub-chev { transform: rotate(90deg); }
details.mcqs-mysub[open] > summary { border-bottom: 1px solid var(--line2); }
.mcqs-pkg-exams { list-style: none !important; margin: 0 !important; padding: 4px 0 !important; }
.mcqs-pkg-exams li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; margin: 0 !important; }
.mcqs-pkg-exams li + li { border-top: 1px solid var(--line2); }
.mcqs-pkg-exams li > span { min-width: 0; }
.mcqs-pkg-exams b { display: block; font-size: 15px; overflow-wrap: anywhere; }
.mcqs-pkg-exams small { color: var(--muted); font-size: 12.5px; }
.mcqs-pkg-exams .mcqs-btn { flex-shrink: 0; }
.mcqs-pkg-empty { padding: 12px 16px; margin: 0; }
@media (max-width: 479.98px) { .mcqs-pkg-exams li { flex-direction: column; align-items: stretch; } .mcqs-pkg-exams .mcqs-btn { width: 100%; justify-content: center; } }

/* ===================== v4.3 — held results, objections ===================== */
.mcqs-held { text-align: center; padding: 30px 20px; margin-bottom: 16px; border: 2px dashed var(--brand-100); background: linear-gradient(180deg, var(--brand-50), #fff 70%); }
.mcqs-held-ic { font-size: 44px; line-height: 1; margin-bottom: 8px; }
.mcqs-held h2 { font-size: 21px; font-weight: 800; margin: 0 0 8px; }
.mcqs-held p { color: var(--ink2); max-width: 560px; margin: 0 auto 12px; line-height: 1.6; }
.mcqs-held-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.mcqs-held-meta span { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; font-size: 13.5px; }
.mcqs-held-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.mcqs-held-row { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-left: 4px solid #f59e0b; }
.mcqs-held-row i { font-style: normal; font-size: 22px; }
.mcqs-held-row b { display: block; } .mcqs-held-row small { color: var(--muted); }
.mcqs-obj-banner { background: #fffbeb !important; border-color: #fde68a !important; color: #78350f !important; }
.mcqs-rq-adjust { font-size: 13.5px; font-weight: 700; color: #92400e; background: #fef3c7; border-radius: 8px; padding: 6px 10px; margin: 6px 0; }
.mcqs-rq-bonus { border-left-color: #22c55e !important; } .mcqs-rq-dropped { opacity: .75; }
.mcqs-obj-btn { appearance: none; margin-top: 10px; border: 1px dashed #f59e0b !important; background: #fffbeb !important; color: #92400e !important; font: inherit !important; font-size: 13.5px !important; font-weight: 700 !important; padding: 7px 12px !important; border-radius: 10px !important; cursor: pointer; text-transform: none !important; box-shadow: none !important; min-height: 0 !important; }
.mcqs-obj-btn:hover { background: #fef3c7 !important; }
.mcqs-obj-status { margin-top: 10px; display: inline-block; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 99px; background: #f1f5f9; color: var(--ink2); }
.mcqs-obj-status.is-pending { background: #fef3c7; color: #92400e; } .mcqs-obj-status.is-accepted { background: #dcfce7; color: #15803d; } .mcqs-obj-status.is-rejected { background: #fee2e2; color: #b91c1c; }
.mcqs-obj-modal h3 { font-size: 18px; font-weight: 800; margin: 0 0 6px; }
.mcqs-obj-opts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.mcqs-obj-opts label { position: relative; cursor: pointer; }
.mcqs-obj-opts input { position: absolute; opacity: 0; }
.mcqs-obj-opts b { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 46px; padding: 6px 14px; border: 2px solid var(--line); border-radius: 12px; font-size: 16px; background: #fff; }
.mcqs-obj-opts label.is-wide b { font-size: 14px; }
.mcqs-obj-opts input:checked + b { border-color: var(--brand); background: var(--brand-50); color: var(--brand); }
.mcqs-obj-opts input:focus-visible + b { outline: 2px solid var(--brand); outline-offset: 2px; }
.mcqs-obj-reason { display: block; font-weight: 600; font-size: 14px; }
.mcqs-obj-reason textarea { width: 100%; margin-top: 6px; border: 1px solid #d5dce8; border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 15px; box-sizing: border-box; }

/* v4.4 — buy a single exam directly */
.mcqs-buy-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; width: 100%; max-width: 460px; margin: 14px auto; padding: 14px 16px; border: 2px solid var(--brand); border-radius: 16px; background: var(--brand-50); text-align: left; }
.mcqs-buy-main small { display: block; color: var(--muted); font-size: 12.5px; }
.mcqs-buy-main strong { font-size: 28px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.mcqs-buy-main span { color: var(--muted); font-size: 13.5px; margin-left: 4px; }
.mcqs-buy-main .mcqs-btn { flex: 1 1 180px; justify-content: center; }
.mcqs-paywall-or { display: block; color: var(--muted); font-size: 13px; margin-bottom: 2px; text-align: left; }

/* v4.6 — mobile overflow guards for the whole student app: long English words, URLs, emails and
   exam titles wrap instead of widening the page; flex/grid children may shrink. */
.mcqs :where(h1, h2, h3, h4, p, li, td, th, label, b, strong, small, em, a, span, dd, dt) { overflow-wrap: anywhere; }
.mcqs :where(.mcqs-card, .mcqs-panel, .mcqs-head, .mcqs-row, .mcqs-grid > *, .mcqs-kpis > *) { min-width: 0; }
.mcqs :where(img, video, iframe, canvas, svg:not(.mcqs-i)) { max-width: 100%; }
.mcqs pre, .mcqs code { white-space: pre-wrap; word-break: break-word; }
.mcqs table { max-width: 100%; }
@media (max-width: 600px) {
    .mcqs .mcqs-btn { white-space: normal; text-align: center; line-height: 1.25; }
    .mcqs :where(.mcqs-table-wrap, .mcqs-scroll-x) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
.mcqs-crumbs { display: flex; gap: 6px 16px; flex-wrap: wrap; align-items: center; margin: 0 0 12px; }
.mcqs-crumbs .mcqs-backlink { margin: 0; }
.mcqs-fl-hint { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 4px; }

/* नेपाली | EN switcher (website header, drawer, dashboard top bar) */
.mcqw-lang { display: inline-flex; align-items: center; padding: 3px; border-radius: 999px; background: #f1f5f9; border: 1px solid #e2e8f0; flex: 0 0 auto; }
.mcqw-lang button { border: 0; background: transparent; color: #475569; font: 800 12.5px/1 var(--font); padding: 6px 9px; border-radius: 999px; cursor: pointer; min-width: 32px; }
.mcqw-lang button.is-on { background: #fff; color: var(--brand); box-shadow: 0 1px 4px rgba(15, 23, 42, .15); }
.mcqw-lang button:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.mcqw-lang.is-drawer { align-self: center; margin-bottom: 4px; }
@media (max-width: 1099px) { .mcqw-lang.is-head { display: none; } }
@media (max-width: 420px) { .mcqw-lang.is-dash button { padding: 6px 7px; min-width: 28px; } }

/* v5.0 — top-bar quick search pop-over */
.mcqs-qs { position: relative; }
.mcqs-qs-pop { position: absolute; right: -8px; top: calc(100% + 10px); width: min(420px, calc(100vw - 24px)); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); z-index: 61; padding: 10px; }
.mcqs-qs-pop[hidden] { display: none; }
.mcqs-qs-box { display: flex; align-items: center; gap: 8px; border: 2px solid var(--brand, #f97316); border-radius: 12px; padding: 0 10px; background: #fff; box-shadow: 0 0 0 4px rgba(249, 115, 22, .14); color: #64748b; }
.mcqs-qs-box input { flex: 1; min-width: 0; border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; padding: 11px 0 !important; font-size: 15px; color: #0f172a; }
.mcqs-qs-box kbd { font: 600 11px/1 inherit; color: #64748b; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 6px; padding: 4px 6px; }
.mcqs-qs-list { max-height: min(380px, 60vh); overflow-y: auto; overscroll-behavior: contain; margin-top: 6px; }
.mcqs-qs-head { font-size: 11.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #64748b; padding: 10px 8px 4px; }
.mcqs-qs-head small { background: #f1f5f9; border-radius: 99px; padding: 1px 7px; margin-left: 4px; }
.mcqs-qs-item, .mcqs-qs-all { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 10px; color: #0f172a !important; text-decoration: none !important; border: 0; background: none; font: inherit; cursor: pointer; }
.mcqs-qs-item b { display: block; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.mcqs-qs-item small { display: block; color: #64748b; font-size: 12px; margin-top: 2px; }
.mcqs-qs-item:hover, .mcqs-qs-item:focus, .mcqs-qs-all:hover, .mcqs-qs-all:focus { background: #fff7ed; outline: 0; }
.mcqs-qs-all { margin-top: 6px; border-top: 1px solid #f1f5f9; border-radius: 0 0 10px 10px; color: #c2410c !important; font-weight: 700; font-size: 13.5px; }
.mcqs-qs-hint { margin: 8px; color: #64748b; font-size: 13px; }
@media (max-width: 599.98px) { .mcqs-qs-pop { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; } .mcqs-qs-box kbd { display: none; } }
/* exams page reached from the search icon: box glows for a moment */
.mcqs-search.is-flash { animation: mcqsFlash 1.6s ease-out; }
@keyframes mcqsFlash { 0%, 40% { box-shadow: 0 0 0 4px rgba(249, 115, 22, .45); border-color: #f97316; } 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); } }
/* sidebar menu search */
.mcqs-nav-find { display: flex; align-items: center; gap: 8px; margin: 4px 14px 6px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; color: #64748b; }
.mcqs-nav-find:focus-within { border-color: #f97316; background: #fff; box-shadow: 0 0 0 3px rgba(249, 115, 22, .14); }
.mcqs-nav-find input { flex: 1; min-width: 0; border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; padding: 8px 0 !important; font-size: 13.5px; }
.mcqs-nav-item[hidden], .mcqs-nav-group[hidden] { display: none !important; }

.mcqs-admin-note { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: #fef3c7; border: 1px solid #fcd34d; color: #78350f; font-size: 13.5px; line-height: 1.5; }

/* v5.0 — Google button (follows Google's sign-in button look: white, grey border, G logo) */
.mcqs-google { display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff !important; color: #1f1f1f !important; border: 1px solid #747775 !important; font-weight: 600; text-decoration: none !important; }
.mcqs-google:hover { background: #f8fafc !important; box-shadow: 0 1px 3px rgba(60, 64, 67, .25); }
.mcqs-google svg { flex: 0 0 auto; }
.mcqs-google + .mcqs-btn { margin-top: 10px; }

/* v5.1 — exam lobby hero chips: readable on the dark gradient whatever the theme does to <span> */
.mcqs .mcqs-lobby-head .mcqs-meta span,
.mcqs .mcqs-lobby-head .mcqs-meta span.mcqs-tag-blue,
.mcqs .mcqs-lobby-head .mcqs-meta span.mcqs-tag-live { background: rgba(255, 255, 255, .16) !important; border: 1px solid rgba(255, 255, 255, .28) !important; color: #fff !important; opacity: 1 !important; font-weight: 600; text-shadow: 0 1px 1px rgba(0, 0, 0, .25); backdrop-filter: blur(4px); }
.mcqs .mcqs-lobby-head .mcqs-meta span.mcqs-tag-blue { background: rgba(59, 130, 246, .35) !important; border-color: rgba(147, 197, 253, .55) !important; }
.mcqs .mcqs-lobby-head .mcqs-meta span.mcqs-tag-live { background: rgba(239, 68, 68, .35) !important; border-color: rgba(252, 165, 165, .55) !important; }
.mcqs .mcqs-lobby-head .mcqs-meta span * { color: inherit !important; }

/* v5.3 — category navigation (exams / quizzes) + searchable picker */
.mcqs-catnav { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.mcqs-catnav .mcqs-chips-main { flex: 1 1 auto; min-width: 0; margin-bottom: 0; }
.mcqs-chip em { font-style: normal; font-size: 11.5px; font-weight: 800; background: rgba(15, 23, 42, .07); border-radius: 99px; padding: 0 7px; margin-left: 4px; }
.mcqs-chip.is-active em { background: rgba(255, 255, 255, .22); }
.mcqs-catpick { position: relative; flex: 0 0 auto; }
.mcqs-catpick > summary { list-style: none; cursor: pointer; }
.mcqs-catpick > summary::-webkit-details-marker { display: none; }
.mcqs-chip-more { background: #fff7ed !important; color: #c2410c !important; border-color: #fed7aa !important; font-weight: 700; white-space: nowrap; }
.mcqs-catpick-pop { position: absolute; z-index: 70; left: 0; top: calc(100% + 8px); width: min(420px, calc(100vw - 24px)); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 10px; }
.mcqs-catpick.is-field .mcqs-catpick-pop { left: 0; right: auto; width: min(520px, calc(100vw - 24px)); }
.mcqs-catpick-search { display: flex; align-items: center; gap: 8px; border: 2px solid #f97316; border-radius: 12px; padding: 0 10px; color: #64748b; box-shadow: 0 0 0 4px rgba(249, 115, 22, .12); }
.mcqs-catpick-search input { flex: 1; min-width: 0; border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent !important; padding: 10px 0 !important; font-size: 14.5px; }
.mcqs-catpick ul { list-style: none; margin: 8px 0 0 !important; padding: 0 !important; max-height: min(380px, 55vh); overflow-y: auto; overscroll-behavior: contain; }
.mcqs-catpick li a, .mcqs-catpick li button { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; font: inherit; padding: 8px 10px; border-radius: 9px; color: var(--ink, #0f172a) !important; text-decoration: none !important; font-size: 14px; cursor: pointer; }
.mcqs-catpick li.is-root > a, .mcqs-catpick li.is-root > button { font-weight: 700; }
.mcqs-catpick li i { font-style: normal; color: #cbd5e1; margin-right: 6px; }
.mcqs-catpick li em { font-style: normal; font-size: 12px; color: #64748b; background: #f1f5f9; border-radius: 99px; padding: 0 8px; flex: 0 0 auto; }
.mcqs-catpick li a:hover, .mcqs-catpick li button:hover { background: #fff7ed; }
.mcqs-catpick li [aria-current] { background: #ffedd5; color: #9a3412 !important; }
.mcqs-catpick li[hidden] { display: none; }
.mcqs-catpick-none { margin: 10px; color: #64748b; font-size: 13px; }
.mcqs-catpick-field { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; font-weight: 600; margin-top: 6px; }
.mcqs-catpick-field span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcqs-catpick[open] .mcqs-catpick-field { border-color: #f97316; }
.mcqs-field-lbl { display: block; font-weight: 700; font-size: 13.5px; }
.mcqs-catpath { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13.5px; margin: 2px 0 8px; color: #64748b; }
.mcqs-catpath a { color: #1e3a8a !important; font-weight: 700; text-decoration: none !important; }
.mcqs-catpath a[aria-current] { color: #c2410c !important; }
.mcqs-catpath i { font-style: normal; color: #cbd5e1; }
.mcqs-catpath .mcqs-catpath-x { margin-left: 4px; width: 22px; height: 22px; border-radius: 50%; background: #f1f5f9; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; color: #64748b !important; }
@media (max-width: 640px) { .mcqs-catnav { flex-direction: column; align-items: stretch; } .mcqs-catpick .mcqs-catpick-pop, .mcqs-catpick.is-field .mcqs-catpick-pop { position: fixed; left: 12px !important; right: 12px !important; top: 110px; width: auto !important; } .mcqs-catpick > .mcqs-chip-more { display: inline-flex; } }

/* practice: grouped topics, run tools */
.mcqs-topic-find { margin-bottom: 12px; }
.mcqs-tgroup { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; overflow: hidden; }
.mcqs-tgroup > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; }
.mcqs-tgroup > summary::-webkit-details-marker { display: none; }
.mcqs-tgroup > summary b { font-size: 15.5px; }
.mcqs-tgroup > summary em { font-style: normal; color: #64748b; font-size: 12.5px; margin-left: auto; }
.mcqs-tgroup > summary svg { transition: transform .2s; }
.mcqs-tgroup[open] > summary svg { transform: rotate(180deg); }
.mcqs-tgroup[open] > summary { border-bottom: 1px solid var(--line); background: #f8fafc; }
.mcqs-tgroup .mcqs-topics { padding: 12px; }
.mcqs-tgroup[hidden], .mcqs-topic[hidden] { display: none !important; }
.mcqs-topic.is-all { border-color: #fed7aa; background: #fff7ed; }
.mcqs-topic b i { font-style: normal; color: #cbd5e1; }
.mcqs-prun-tools { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.mcqs-prun-tools .mcqs-linkbtn { font-weight: 700; }

/* v5.3.1 — fullscreen exam: the WP admin bar is not visible there, so no top offset
   (it left a white gap and pushed the sticky header over the question strip) */
.mcqs-app:fullscreen, .mcqs-app:-webkit-full-screen { --top: 0px; padding-top: env(safe-area-inset-top); }
.mcqs-app:fullscreen .mcqs-xhead, .mcqs-app:-webkit-full-screen .mcqs-xhead { top: 0; }
:fullscreen .mcqs-alertbar { top: calc(68px + env(safe-area-inset-top)); }
