/* Fliptum Quiz Phase 1 Foundation — Student contract. Scoped to .cqs-public. */
.cqs-public{
 --fq-font:"CQS Inter","CQS Devanagari",Inter,"Noto Sans Devanagari",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
 --fq-h1:28px;--fq-h2:22px;--fq-h3:18px;--fq-h4:16px;--fq-body:14px;--fq-small:13px;--fq-caption:12px;--fq-control:44px;
 --fq-icon-sm:16px;--fq-icon-md:20px;--fq-icon-lg:24px;--fq-sidebar:264px;
 --fq-space-1:4px;--fq-space-2:8px;--fq-space-3:12px;--fq-space-4:16px;--fq-space-5:20px;--fq-space-6:24px;--fq-space-8:32px;
 --fq-radius-sm:8px;--fq-radius-control:10px;--fq-radius-card:14px;
 --fq-page:var(--cqs-bg,#f5f7fb);--fq-surface:var(--cqs-surface,#fff);--fq-ink:var(--cqs-text,#172033);--fq-muted:var(--cqs-muted,#667085);--fq-primary:var(--cqs-brand-primary,var(--cqs-primary,#2563eb));--fq-accent:var(--cqs-brand-accent,var(--cqs-accent,#e61d62));
 --fq-success:#14966f;--fq-warning:#d97706;--fq-danger:#d94343;--fq-border:#d7deea;--fq-border-strong:#64748b;--fq-sidebar-bg:#111b36;--fq-sidebar-text:#f5f7ff;--fq-sidebar-muted:#bdc6e1;
 --fq-primary-hover:color-mix(in srgb,var(--fq-primary) 84%,#07142f);--fq-primary-soft:color-mix(in srgb,var(--fq-primary) 9%,#fff);--fq-focus:color-mix(in srgb,var(--fq-primary) 28%,transparent);--fq-shadow:0 8px 28px rgba(18,32,63,.08);
 min-height:100dvh;color:var(--fq-ink);background:var(--fq-page);font-family:var(--fq-font);font-size:var(--fq-body);line-height:1.5;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility
}
.cqs-public[data-student-theme="blue"]{--fq-primary:#1465e8;--fq-accent:#6247e8;--fq-page:#f4f7fc}.cqs-public[data-student-theme="green"]{--fq-primary:#087f5b;--fq-accent:#0f9f73;--fq-page:#f2faf6}.cqs-public[data-student-theme="rani"]{--fq-primary:#c0265e;--fq-accent:#8b2bd1;--fq-page:#fff5f8}.cqs-public[data-student-theme="orange"]{--fq-primary:#b94700;--fq-accent:#d96b16;--fq-page:#fff8f3}.cqs-public[data-student-theme="white-gray"]{--fq-primary:#3f4b5e;--fq-accent:#667085;--fq-page:#f5f6f8}
.cqs-public,.cqs-public *,.cqs-public *::before,.cqs-public *::after{box-sizing:border-box}.cqs-public :where(h1,h2,h3,h4,h5,h6,p,dl,dd,fieldset,legend){margin-top:0}.cqs-public :where(button,input,select,textarea){font-family:var(--fq-font)}
.cqs-public h1{font-size:var(--fq-h1);font-weight:760;line-height:1.18;letter-spacing:-.025em}.cqs-public h2{font-size:var(--fq-h2);font-weight:740;line-height:1.24;letter-spacing:-.018em}.cqs-public h3{font-size:var(--fq-h3);font-weight:720;line-height:1.3}.cqs-public h4{font-size:var(--fq-h4);font-weight:700;line-height:1.35}.cqs-public :where(p,li,dt,dd,td,th,label,input,select,textarea,button,a){font-size:var(--fq-body)}.cqs-public :where(small,[class*="caption"],[class*="helper"],[class*="meta"]){font-size:var(--fq-caption);line-height:1.45}
.cqs-public :where(a,button,input,select,textarea,[tabindex]):focus-visible{outline:3px solid var(--fq-focus);outline-offset:2px}
.cqs-public :where(input:not([type=checkbox]):not([type=radio]):not([type=color]),select,textarea){min-height:var(--fq-control);padding:9px 12px;color:var(--fq-ink);background:#fff;border:1px solid var(--fq-border);border-radius:var(--fq-radius-control);box-shadow:none}.cqs-public select{padding-right:34px;border-width:2px;border-color:var(--fq-border-strong)}.cqs-public textarea{min-height:112px;resize:vertical}.cqs-public :where(input,select,textarea):focus{border-color:var(--fq-primary);box-shadow:0 0 0 3px var(--fq-focus);outline:0}
.cqs-public :where(button,.cqs-button,.cqs-btn,.cqs-auth-primary){min-height:var(--fq-control);border-radius:var(--fq-radius-control)}.cqs-public :where(.cqs-card,[class*="-card"]){border-radius:var(--fq-radius-card)}
.cqs-public :where(.cqs-tabs,[class*="-tabs"]){scrollbar-width:thin}.cqs-public :where(.cqs-tabs,[class*="-tabs"]) :where(a,button){min-height:44px}
.cqs-public .cqs-nav-icon,.cqs-public .dashicons{width:var(--fq-icon-md);height:var(--fq-icon-md);font-size:var(--fq-icon-md)}
.cqs-public .cqs-student-side{background:var(--fq-sidebar-bg);color:var(--fq-sidebar-text)}
.cqs-public .cqs-page-body{min-width:0}.cqs-public :where(img,video,canvas,svg){max-width:100%}
@media(max-width:767px){.cqs-public{--fq-h1:24px;--fq-h2:20px;--fq-h3:18px;--fq-control:48px}.cqs-public :where(.cqs-grid,[class*="-grid"]){grid-template-columns:1fr}.cqs-public :where(.cqs-tabs,[class*="-tabs"]){overflow-x:auto;flex-wrap:nowrap}.cqs-public :where(.cqs-tabs,[class*="-tabs"]) :where(a,button){white-space:nowrap}.cqs-public :where(button,.cqs-button,.cqs-btn,.cqs-auth-primary){min-height:48px}}
@media(prefers-reduced-motion:reduce){.cqs-public *,.cqs-public *::before,.cqs-public *::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}

/* Phase 2 — Student attempt/result/review implementation. Authoritative screen layer. */
.cqs-public.cqs-screen-attempt{--cqs-attempt-accent:var(--cqs-primary,#e61d62)}
.cqs-screen-attempt .cqs-mobile-bottom-nav{display:none!important}
.cqs-screen-attempt .cqs-page-body{max-width:1180px!important}
.cqs-screen-attempt .cqs-attempt{background:#fff!important;border:1px solid var(--cqs-border,#dce5f0)!important;border-radius:18px!important;overflow:hidden!important;box-shadow:0 12px 34px rgba(15,23,42,.06)!important}
.cqs-screen-attempt .cqs-attempt>section{padding:0 24px 28px!important}
.cqs-attempt-context{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 -24px 18px;padding:15px 24px;background:#fff;border-bottom:1px solid var(--cqs-border,#dce5f0)}
.cqs-attempt-context>div{display:grid;gap:2px}.cqs-attempt-context strong{font-size:14px;color:var(--cqs-text,#172033)}.cqs-attempt-context small{font-size:11px;color:var(--cqs-muted,#667085)}.cqs-attempt-context>span{font-size:12px;font-weight:750;color:var(--cqs-muted,#667085)}
.cqs-screen-attempt .cqs-question-head{position:static!important;display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:48px!important;padding:0!important;background:transparent!important;border:0!important}
.cqs-screen-attempt .cqs-question-head>b{font-size:13px!important;font-weight:750!important}.cqs-screen-attempt .cqs-timer{min-width:78px;padding:8px 11px;border-radius:10px;background:#fff0f3;color:var(--cqs-attempt-accent);font-weight:800;text-align:center}
.cqs-question-meta{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 5px}.cqs-question-meta span{display:inline-flex;min-height:28px;align-items:center;padding:5px 9px;border:1px solid #dde5ef;border-radius:999px;background:#f8fafc;color:#52627a;font-size:11px;font-weight:700}.cqs-question-meta span:first-child{border-color:color-mix(in srgb,var(--cqs-attempt-accent) 22%,#fff);background:color-mix(in srgb,var(--cqs-attempt-accent) 7%,#fff);color:var(--cqs-attempt-accent)}.cqs-question-meta .is-negative{color:#b42318;background:#fff4f2;border-color:#ffd5cf}
.cqs-screen-attempt .cqs-attempt section>h3{margin:6px 0 16px!important;color:var(--cqs-text,#172033)!important;font-size:22px!important;line-height:1.4!important;font-weight:700!important}
.cqs-screen-attempt .cqs-option{position:relative!important;min-height:58px!important;margin:10px 0!important;padding:12px 14px!important;border:1px solid #dbe4ef!important;border-radius:12px!important;background:#fff!important;box-shadow:none!important}.cqs-screen-attempt .cqs-option:hover{border-color:color-mix(in srgb,var(--cqs-attempt-accent) 36%,#dbe4ef)!important}.cqs-screen-attempt .cqs-option:has(input:checked){border:2px solid var(--cqs-attempt-accent)!important;background:color-mix(in srgb,var(--cqs-attempt-accent) 5%,#fff)!important}.cqs-screen-attempt .cqs-option>input{accent-color:var(--cqs-attempt-accent)!important}.cqs-screen-attempt .cqs-option-content{font-size:14px!important;font-weight:650!important;color:#172033!important}
.cqs-attempt-secondary{display:flex!important;align-items:center!important;gap:12px!important;margin-top:14px!important}.cqs-save-status{margin-left:auto!important;color:#0f8b61!important;font-size:12px!important;font-weight:700!important}.cqs-save-status.is-saving{color:#9a6700!important}.cqs-save-status.is-error{color:#b42318!important}.cqs-attempt-stats{display:flex;gap:14px;margin-top:10px;color:#667085;font-size:11px}.cqs-attempt-stats b{color:#172033}
.cqs-screen-attempt .cqs-attempt-nav{display:grid!important;grid-template-columns:auto auto minmax(150px,1fr)!important;gap:10px!important;align-items:center!important;margin-top:20px!important;padding-top:16px!important;border-top:1px solid #edf1f5!important}.cqs-screen-attempt .cqs-attempt-nav-button{min-height:46px!important}.cqs-screen-attempt .cqs-attempt-nav-button.is-next,.cqs-screen-attempt .cqs-attempt-nav-button.is-review-submit{justify-self:end!important;min-width:160px!important;background:var(--cqs-attempt-accent)!important;border-color:var(--cqs-attempt-accent)!important;color:#fff!important}
.cqs-result-page,.cqs-answer-review{max-width:1040px;margin-inline:auto}.cqs-result-heading,.cqs-review-heading{margin-bottom:18px}.cqs-result-heading h1,.cqs-review-heading h1{margin:4px 0 6px}.cqs-result-heading p,.cqs-review-heading p{margin:0;color:var(--cqs-muted,#667085)}
.cqs-result-card{padding:26px!important;border:1px solid var(--cqs-border,#dce5f0)!important;border-radius:18px!important;background:#fff!important;box-shadow:0 12px 34px rgba(15,23,42,.06)!important}.cqs-score-ring{width:168px!important;height:168px!important;border:12px solid color-mix(in srgb,var(--cqs-primary) 14%,#eef2f6)!important;box-shadow:inset 0 0 0 3px color-mix(in srgb,var(--cqs-primary) 50%,#fff)!important}.cqs-result-grid{gap:10px!important}.cqs-result-grid>span{min-height:78px;padding:14px;border:1px solid #e1e7ef;border-radius:12px;background:#fbfcfe}
.cqs-answer-review{padding:24px!important}.cqs-review-item{margin-top:14px!important;padding:18px!important;border:1px solid #e2e8f0!important;border-radius:14px!important;background:#fff!important}.cqs-review-item.is-correct{border-left:4px solid #14966f!important}.cqs-review-item.is-wrong{border-left:4px solid #d94343!important}.cqs-explanation{margin-top:12px;padding:12px 14px;border-radius:10px;background:#f7f9fc}
.cqs-certificate{max-width:980px;margin-inline:auto!important;border:1px solid #c9a227!important;outline:6px double #d9bd5a;outline-offset:-16px;border-radius:4px!important;box-shadow:0 16px 42px rgba(15,23,42,.08)}
@media(max-width:767px){
 .cqs-screen-attempt .cqs-main,.cqs-screen-attempt .cqs-page-body{padding:0!important;margin:0!important;width:100%!important;max-width:none!important}
 .cqs-screen-attempt .cqs-attempt{min-height:100dvh!important;border:0!important;border-radius:0!important;box-shadow:none!important}
 .cqs-screen-attempt .cqs-attempt>section{min-height:100dvh!important;padding:0 12px 92px!important}
 .cqs-attempt-context{position:sticky;z-index:50;top:0;margin:0 -12px 8px;padding:11px 14px;background:rgba(255,255,255,.98);backdrop-filter:blur(8px)}
 .cqs-attempt-context strong{font-size:13px}.cqs-attempt-context small{font-size:10px}
 .cqs-screen-attempt .cqs-question-head{min-height:52px!important}.cqs-screen-attempt .cqs-question-head>b{font-size:12px!important}.cqs-screen-attempt .cqs-timer{font-size:12px!important}
 .cqs-screen-attempt .cqs-progress{margin:0 0 10px!important}
 .cqs-screen-attempt .cqs-question-tools{margin:4px 0 8px!important}
 .cqs-question-meta{margin:8px 0 4px}.cqs-question-meta span{min-height:26px;font-size:10px}
 .cqs-screen-attempt .cqs-attempt section>h3{margin:6px 0 14px!important;font-size:16px!important;line-height:1.48!important}
 .cqs-screen-attempt .cqs-option{min-height:54px!important;margin:8px 0!important;padding:10px 12px!important;border-radius:11px!important}.cqs-screen-attempt .cqs-option-content{flex-direction:row!important;align-items:center!important;font-size:12px!important}.cqs-screen-attempt .cqs-option-image{width:72px!important;max-height:72px!important}
 .cqs-screen-attempt .cqs-attempt-secondary{margin-top:10px!important}.cqs-screen-attempt .cqs-clear-button,.cqs-screen-attempt .cqs-attempt-nav .is-save{display:none!important}.cqs-screen-attempt .cqs-review-toggle{font-size:11px!important}.cqs-screen-attempt .cqs-save-status{font-size:10px!important}
 .cqs-screen-attempt .cqs-attempt-stats{display:none!important}
 .cqs-screen-attempt .cqs-attempt-nav{position:fixed!important;z-index:900;right:0;bottom:0;left:0;grid-template-columns:88px minmax(0,1fr) 106px!important;gap:8px!important;margin:0!important;padding:8px 10px calc(8px + env(safe-area-inset-bottom))!important;background:#fff!important;border-top:1px solid #dce5ef!important;box-shadow:0 -8px 24px rgba(15,23,42,.08)!important}
 .cqs-screen-attempt .cqs-attempt-nav:before{content:'⚑ Mark for Review';display:flex;grid-column:2;grid-row:1;min-height:48px;align-items:center;justify-content:center;padding:6px;border:1px solid #dbe4ef;border-radius:10px;color:#344054;font-size:10px;font-weight:750;text-align:center}
 .cqs-screen-attempt .cqs-attempt-nav-button{min-height:48px!important;width:100%!important;min-width:0!important;padding:7px!important;font-size:10px!important}.cqs-screen-attempt .cqs-attempt-nav-button.is-previous{grid-column:1}.cqs-screen-attempt .cqs-attempt-nav-button.is-next,.cqs-screen-attempt .cqs-attempt-nav-button.is-review-submit{grid-column:3;justify-self:stretch!important}
 .cqs-screen-result .cqs-page-body,.cqs-screen-answer-review .cqs-page-body{padding:14px 10px 86px!important}.cqs-result-heading h1,.cqs-review-heading h1{font-size:23px!important}.cqs-result-card{grid-template-columns:1fr!important;padding:16px!important}.cqs-score-ring{width:142px!important;height:142px!important;margin:auto}.cqs-result-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.cqs-result-grid>span{min-height:68px!important;padding:11px!important}.cqs-answer-review{padding:14px!important}.cqs-review-item{padding:14px!important}.cqs-certificate{padding:28px 20px!important;outline-offset:-10px!important}
}
@media(max-width:767px){
 .cqs-screen-attempt .cqs-attempt-nav:before{content:none!important;display:none!important}
 .cqs-screen-attempt .cqs-attempt-nav{grid-template-columns:88px 1fr 106px!important}
 .cqs-screen-attempt .cqs-attempt-nav-button.is-previous{grid-column:1!important}
 .cqs-screen-attempt .cqs-attempt-nav-button.is-next,.cqs-screen-attempt .cqs-attempt-nav-button.is-review-submit{grid-column:3!important}
 .cqs-screen-attempt .cqs-review-toggle{position:fixed!important;z-index:905;bottom:calc(8px + env(safe-area-inset-bottom));left:106px;width:calc(100vw - 224px);min-height:48px!important;display:flex!important;align-items:center!important;justify-content:center!important;margin:0!important;padding:6px!important;background:#fff!important;border:1px solid #dbe4ef!important;border-radius:10px!important;color:#344054!important;font-size:10px!important;font-weight:750!important;text-align:center!important}
 .cqs-screen-attempt .cqs-review-toggle input{width:14px!important;height:14px!important}
}
