/* ═══════════════════════════════════════════════════════════
   ZQuiz Shared Player — CSS
   One file, used by every exam page. Self-contained CSS variables
   so this works even on a page that defines no theme of its own.
   To match a page's own hero colors, that page's <style> may define
   the SAME custom property names on :root AFTER this file loads —
   the later declaration wins (normal CSS cascade).
═══════════════════════════════════════════════════════════ */
:root {
  --zq-primary: #0033a0;
  --zq-primary-light: #1a4fc0;
  --zq-primary-pale: #eff6ff;
  --zq-accent: #f59e0b;
  --zq-accent-dark: #d97706;
  --zq-success: #16a34a;
  --zq-danger: #dc2626;
  --zq-text-dark: #0f172a;
  --zq-text-mid: #334155;
  --zq-text-light: #64748b;
  --zq-border: #e2e8f0;
  --zq-surface: #f8fafc;
  --zq-white: #ffffff;
  --zq-radius: 12px;
  --zq-shadow: 0 4px 20px rgba(0,51,160,0.08);
  --zq-font-display: 'Baloo 2', 'Segoe UI', sans-serif;
  --zq-font-body: 'Noto Sans', 'Segoe UI', sans-serif;
}

#zquiz-wrapper, #zquiz-exam-wrapper { box-sizing: border-box; }
#zquiz-wrapper *, #zquiz-wrapper *::before, #zquiz-wrapper *::after,
#zquiz-exam-wrapper *, #zquiz-exam-wrapper *::before, #zquiz-exam-wrapper *::after { box-sizing: border-box; }

/* ─── Practice-mode wrapper ─── */
#zquiz-wrapper { background: transparent; padding-bottom: 50px; font-family: var(--zq-font-body); color: var(--zq-text-dark); }

#zqReadingProgress {
  position: fixed; top: 0; left: 0; height: 4px;
  background: linear-gradient(to right, var(--zq-accent), #f97316);
  width: 0%; z-index: 25001; transition: width 0.1s;
}

.zq-top-fixed {
  position: sticky; top: 0; z-index: 200000;
  background: var(--zq-white);
  border-bottom: 2px solid var(--zq-primary);
  box-shadow: 0 4px 20px rgba(0,51,160,0.12);
}

.zq-control-label {
  font-family: var(--zq-font-display); font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.5px; color: var(--zq-text-light);
  display: block; margin-bottom: 5px;
}

.zq-header-controls { display: flex; justify-content: space-between; align-items: flex-end; padding: 14px 16px 10px; gap: 14px; flex-wrap: wrap; }

.zq-tier-group { flex: 0 0 auto; }
.zq-tier-bar { display: flex; gap: 4px; background: var(--zq-surface); padding: 4px; border-radius: 10px; }
.zq-tier-btn {
  padding: 8px 18px; border-radius: 7px; border: none; background: transparent;
  font-size: 12.5px; font-weight: 800; cursor: pointer;
  color: var(--zq-text-light); transition: 0.2s; font-family: var(--zq-font-display);
  display: flex; flex-direction: column; align-items: center; line-height: 1.3;
}
.zq-tier-btn small { font-size: 9px; font-weight: 600; text-transform: none; opacity: 0.75; }
.zq-tier-btn.active { background: var(--zq-primary); color: white; box-shadow: 0 2px 8px rgba(0,51,160,0.25); }

.zq-tabs-wrapper {
  display: grid; grid-template-columns: repeat(var(--zq-tab-count, 5), 1fr); gap: 8px;
  padding: 4px 16px 14px; background: var(--zq-white);
}
.zq-tab-btn {
  padding: 12px 6px 10px; border-radius: 10px; border: 2px solid var(--zq-border);
  background: var(--zq-white); color: var(--zq-text-mid); font-size: 11.5px; font-weight: 700;
  cursor: pointer; transition: 0.2s; font-family: var(--zq-font-display);
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
}
.zq-tab-btn .zq-subj-icon { font-size: 1.35rem; line-height: 1; }
.zq-tab-btn:hover { border-color: var(--zq-primary); transform: translateY(-2px); }

.zq-tab-btn.subj-reasoning.active { background: #ecfdf5; border-color: #16a34a; color: #15803d; }
.zq-tab-btn.subj-math.active      { background: #fffbeb; border-color: var(--zq-accent-dark); color: var(--zq-accent-dark); }
.zq-tab-btn.subj-eng.active       { background: #faf5ff; border-color: #a855f7; color: #7e22ce; }
.zq-tab-btn.subj-gk.active        { background: #eff6ff; border-color: #3b82f6; color: #1d4ed8; }
.zq-tab-btn.subj-computer.active  { background: #ecfeff; border-color: #0891b2; color: #0e7490; }
.zq-tab-btn.subj-generic.active   { background: #f1f5f9; border-color: #64748b; color: #334155; }
.zq-tab-btn.active { box-shadow: 0 3px 10px rgba(0,0,0,0.08); }

@media (max-width: 560px) {
  .zq-tabs-wrapper { grid-template-columns: repeat(min(3, var(--zq-tab-count, 3)), 1fr); }
  .zq-tab-btn .zq-subj-icon { font-size: 1.15rem; }
  .zq-tab-btn { font-size: 10.5px; }
}

.zq-quiz-container { padding: 16px; }

.zq-summary-bar {
  display: none;
  position: sticky; top: 0; z-index: 200000;
  background: var(--zq-white); border-bottom: 2px solid var(--zq-primary);
  box-shadow: 0 4px 20px rgba(0,51,160,0.12);
  padding: 10px 14px; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.zq-csb-left { display: flex; gap: 6px; flex-wrap: wrap; }
.zq-csb-pill {
  font-family: var(--zq-font-display); font-weight: 800; font-size: 11px;
  background: var(--zq-surface); border: 1.5px solid var(--zq-border); color: var(--zq-text-mid);
  padding: 5px 10px; border-radius: 50px; white-space: nowrap;
}
.zq-csb-pill.zq-csb-mode { background: var(--zq-primary-pale); border-color: var(--zq-primary); color: var(--zq-primary); }
.zq-csb-right { display: flex; align-items: center; gap: 8px; }
.zq-csb-stats { font-family: var(--zq-font-display); font-weight: 800; font-size: 12px; color: var(--zq-primary); white-space: nowrap; }
.zq-csb-lang, .zq-csb-edit {
  border: none; border-radius: 50px; cursor: pointer; font-family: var(--zq-font-display); font-weight: 700;
  font-size: 11px; padding: 7px 10px;
}
.zq-csb-lang { background: linear-gradient(135deg, #ff6b00, #ff9100); color: white; }
.zq-csb-edit { background: var(--zq-primary); color: white; padding: 7px 12px; }
@media (max-width: 560px) {
  .zq-summary-bar { padding: 8px 10px; }
  .zq-csb-stats { display: none; }
}

.zq-mode-bar { max-width: 800px; margin: 0 auto 14px; display: flex; gap: 10px; }
.zq-mode-btn {
  flex: 1; padding: 12px 10px; border-radius: 10px; border: 2px solid var(--zq-border);
  background: var(--zq-white); color: var(--zq-text-mid); font-weight: 800; font-size: 13px;
  cursor: pointer; font-family: var(--zq-font-display); transition: 0.2s;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.zq-mode-btn small { font-weight: 600; font-size: 10.5px; opacity: .75; text-transform: none; }
.zq-mode-btn.active.zq-mode-practice { background: #eff6ff; border-color: #3b82f6; color: #1d4ed8; }
.zq-mode-btn.active.zq-mode-exam { background: #fef2f2; border-color: var(--zq-danger); color: var(--zq-danger); }

.zq-set-picker-box {
  max-width: 800px; margin: 12px auto; background: var(--zq-white); border-radius: var(--zq-radius);
  border: 1px solid var(--zq-border); box-shadow: 0 2px 8px rgba(0,0,0,0.06); padding: 20px;
}
.zq-set-picker-title { font-family: var(--zq-font-display); font-weight: 800; color: var(--zq-text-dark); font-size: 14px; margin-bottom: 4px; }
.zq-set-picker-sub { font-size: 12px; color: var(--zq-text-light); margin-bottom: 16px; }
.zq-set-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.zq-set-card {
  border: 1.5px solid var(--zq-border); border-radius: 10px; background: var(--zq-surface);
  padding: 14px 6px; text-align: center; cursor: pointer; transition: 0.15s; font-family: var(--zq-font-display);
}
.zq-set-card:hover { border-color: var(--zq-danger); background: #fef2f2; transform: translateY(-2px); }
.zq-set-card .zq-set-num { font-size: 1.1rem; font-weight: 900; color: var(--zq-text-dark); }
.zq-set-card .zq-set-qcount { font-size: 10px; color: var(--zq-text-light); font-weight: 600; }
@media (max-width: 560px) { .zq-set-grid { grid-template-columns: repeat(3, 1fr); } .zq-mode-bar { padding: 0 4px; } }

.zq-quiz-box {
  background: var(--zq-white); margin: 12px auto; max-width: 800px; padding: 22px;
  border-radius: var(--zq-radius); border: 1px solid var(--zq-border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06); box-sizing: border-box; width: 100%;
}
.zq-q-header {
  color: var(--zq-primary); font-weight: 800; font-size: 12px; margin-bottom: 12px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--zq-font-display);
}
.zq-q-num-badge { background: var(--zq-primary); color: white; padding: 2px 10px; border-radius: 50px; font-size: 11px; }
.zq-q-text { font-size: 1.05rem; font-weight: 600; margin-bottom: 18px; color: var(--zq-text-dark); line-height: 1.6; }
.zq-options-grid { display: flex; flex-direction: column; gap: 9px; }
.zq-opt-btn {
  text-align: left !important; padding: 12px 16px !important; background: var(--zq-white) !important;
  border: 1.5px solid var(--zq-border) !important; border-radius: 8px !important;
  color: var(--zq-text-mid) !important; font-size: 14px !important; font-weight: 500 !important;
  cursor: pointer; width: 100% !important; display: block !important;
  box-sizing: border-box !important; transition: all 0.18s ease; font-family: var(--zq-font-body) !important;
}
.zq-opt-btn:hover:not([disabled]) { background: var(--zq-primary-pale) !important; border-color: var(--zq-primary) !important; transform: translateX(4px); }
.zq-explanation {
  margin-top: 14px; padding: 14px 16px; background: #f0f7ff;
  border-left: 4px solid var(--zq-primary); border-radius: 8px;
  font-size: 13.5px; color: var(--zq-text-mid); line-height: 1.6; display: none;
}
.zq-explanation .zq-ans-label {
  font-family: var(--zq-font-display); font-weight: 800; color: var(--zq-success);
  font-size: 13px; margin-bottom: 8px; display: block;
}
.zq-quiz-info { display: flex; gap: 6px; }
.zq-stat-card {
  display: flex; flex-direction: column; align-items: center; padding: 4px 10px;
  border-radius: 8px; min-width: 55px; border: 1.5px solid var(--zq-border); background: var(--zq-white);
}
.zq-stat-label { font-size: 8px; font-weight: 800; text-transform: uppercase; color: var(--zq-text-light); letter-spacing: 1px; }
.zq-stat-value { font-size: 14px; font-weight: 900; color: var(--zq-primary); font-family: var(--zq-font-display); }
.zq-lang-switch button {
  background: linear-gradient(135deg, #ff6b00, #ff9100); color: white; border: none;
  border-radius: 50px; padding: 7px 14px; font-size: 11px; font-weight: 700;
  cursor: pointer; box-shadow: 0 3px 8px rgba(255,107,0,.3); font-family: var(--zq-font-display);
}
.zq-pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 24px; }
.zq-nav-btn {
  padding: 10px 24px; border-radius: 50px; font-weight: 700; cursor: pointer;
  font-size: 13px; transition: all 0.3s ease; outline: 0;
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--zq-font-display); border: none;
}
.zq-nav-btn.zq-prev { background: var(--zq-white) !important; color: var(--zq-primary) !important; border: 2px solid var(--zq-primary) !important; }
.zq-nav-btn.zq-next { background: var(--zq-primary) !important; color: white !important; border: 2px solid var(--zq-primary) !important; }
.zq-nav-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,51,160,0.2); }
.zq-page-info { text-align: center; margin-top: 8px; font-size: 12px; color: var(--zq-text-light); }

/* ═══════════════════════════════════════════════════════
   Exam Mode player — fully scoped under #zquiz-exam-wrapper
═══════════════════════════════════════════════════════ */
#zquiz-exam-wrapper {
  --e-ink: #0f1f3d; --e-ink-soft: #1e3a6e; --e-paper: #f6f4ef; --e-paper-raised: #ffffff;
  --e-gold: #d4a017; --e-gold-soft: #f5e6c4; --e-success: #1a8754; --e-success-bg: #e3f5ea;
  --e-danger: #c0392b; --e-danger-bg: #fbe9e7; --e-line: #e3ddd0; --e-muted: #6b7280;
  --e-radius: 14px; --e-radius-sm: 9px;
  --e-safe-bottom: env(safe-area-inset-bottom, 0px); --e-safe-top: env(safe-area-inset-top, 0px);
  display: none;
  font-family: var(--zq-font-body);
  color: var(--e-ink);
}
#zquiz-exam-wrapper.exam-running {
  display: block !important; position: fixed !important; top: 0 !important; left: 0 !important;
  width: 100vw !important; height: 100dvh !important; z-index: 9999999 !important;
  background: var(--e-paper); overflow-y: auto; margin: 0 !important; padding: 0 !important;
}
#zquiz-exam-wrapper .e-header {
  background: linear-gradient(135deg, var(--e-ink) 0%, var(--e-ink-soft) 100%);
  padding: calc(14px + var(--e-safe-top)) 18px 14px; display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 20px rgba(15,31,61,0.25);
}
#zquiz-exam-wrapper .e-header-left { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
#zquiz-exam-wrapper .e-header-left button { align-self: flex-start; background: rgba(255,255,255,0.12); border: none; color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 50px; margin-bottom: 3px; cursor: pointer; }
#zquiz-exam-wrapper #eTestTitle { color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#zquiz-exam-wrapper .e-progress-label { color: var(--e-gold); font-size: 11px; font-weight: 600; font-family: var(--zq-font-display); }
#zquiz-exam-wrapper .e-timer-box { background: rgba(255,255,255,0.1); color: #fff; padding: 8px 14px; border-radius: 50px; font-weight: 800; border: 1px solid rgba(255,255,255,0.15); font-size: 14px; display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
#zquiz-exam-wrapper .e-timer-box svg { width: 14px; height: 14px; }
#zquiz-exam-wrapper .e-timer-box.urgent { background: var(--e-danger); border-color: var(--e-danger); animation: eqPulse 1s ease-in-out infinite; }
@keyframes eqPulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(192,57,43,0.5); } 50% { transform: scale(1.04); box-shadow: 0 0 0 6px rgba(192,57,43,0); } }
#zquiz-exam-wrapper .e-progress-track { height: 3px; background: rgba(255,255,255,0.08); position: sticky; top: calc(54px + var(--e-safe-top)); z-index: 99; }
#zquiz-exam-wrapper .e-progress-fill { height: 100%; background: linear-gradient(90deg, var(--e-gold), #e8c158); transition: width 0.45s ease; }
#zquiz-exam-wrapper .e-main { max-width: 1000px; margin: 20px auto; display: grid; grid-template-columns: 1fr 280px; gap: 20px; padding: 0 18px 100px; }
#zquiz-exam-wrapper .e-qcard { background: var(--e-paper-raised); padding: 26px; border-radius: var(--e-radius); border: 1px solid var(--e-line); position: relative; scroll-margin-top: 80px; }
#zquiz-exam-wrapper .e-qcard::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: linear-gradient(180deg, var(--e-gold), var(--e-ink-soft)); }
#zquiz-exam-wrapper .e-meta-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
#zquiz-exam-wrapper .e-num-badge { font-size: 12px; font-weight: 700; color: var(--e-ink-soft); background: var(--e-gold-soft); padding: 4px 10px; border-radius: 50px; }
#zquiz-exam-wrapper .e-lang-toggle { background: var(--e-paper); border: 1.5px solid var(--e-gold); color: #93730f; padding: 7px 16px; border-radius: 50px; cursor: pointer; font-weight: 700; font-size: 12px; }
#zquiz-exam-wrapper #eQuestionText { font-size: 18px; font-weight: 600; line-height: 1.55; margin-bottom: 22px; color: var(--e-ink); }
#zquiz-exam-wrapper .e-qenter { animation: eqFade 0.32s ease; }
@keyframes eqFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
#zquiz-exam-wrapper .e-opt-btn { width: 100%; text-align: left; padding: 15px 16px; margin: 9px 0; border: 1.5px solid var(--e-line); border-radius: var(--e-radius-sm); background: var(--e-paper-raised); cursor: pointer; font-size: 15.5px; font-weight: 500; display: flex; align-items: center; gap: 12px; }
#zquiz-exam-wrapper .e-opt-letter { width: 28px; height: 28px; border-radius: 50%; background: var(--e-paper); border: 1.5px solid var(--e-line); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: var(--e-muted); flex-shrink: 0; }
#zquiz-exam-wrapper .e-opt-btn.selected { background: var(--e-ink); color: #fff; border-color: var(--e-ink); }
#zquiz-exam-wrapper .e-opt-btn.selected .e-opt-letter { background: var(--e-gold); border-color: var(--e-gold); color: var(--e-ink); }
#zquiz-exam-wrapper .e-opt-btn.correct { background: var(--e-success-bg) !important; border-color: var(--e-success) !important; color: #0d5c38; font-weight: 600; }
#zquiz-exam-wrapper .e-opt-btn.correct .e-opt-letter { background: var(--e-success); border-color: var(--e-success); color: #fff; }
#zquiz-exam-wrapper .e-opt-btn.wrong { background: var(--e-danger-bg) !important; border-color: var(--e-danger) !important; color: #8a2a1f; }
#zquiz-exam-wrapper .e-opt-btn.wrong .e-opt-letter { background: var(--e-danger); border-color: var(--e-danger); color: #fff; }
#zquiz-exam-wrapper .e-opt-icon { margin-left: auto; font-size: 16px; flex-shrink: 0; }
#zquiz-exam-wrapper #eExplanationBox { margin-top: 18px; padding: 16px; background: #f4f8ff; border-left: 4px solid var(--e-ink-soft); border-radius: var(--e-radius-sm); display: none; line-height: 1.65; font-size: 14.5px; }
#zquiz-exam-wrapper #eExplanationBox.show { display: block; animation: eqFade 0.35s ease; }
#zquiz-exam-wrapper .e-desktop-nav { margin-top: 26px; display: flex; justify-content: space-between; }
#zquiz-exam-wrapper .e-nav-btn { padding: 11px 26px; border-radius: 50px; font-weight: 700; cursor: pointer; font-size: 14px; border: none; }
#zquiz-exam-wrapper .e-nav-btn.prev { background: var(--e-paper); border: 1.5px solid var(--e-line); color: var(--e-ink); }
#zquiz-exam-wrapper .e-nav-btn.next { background: var(--e-ink); color: #fff; }
#zquiz-exam-wrapper .e-palette-box { background: var(--e-paper-raised); padding: 20px; border-radius: var(--e-radius); border: 1px solid var(--e-line); height: fit-content; }
#zquiz-exam-wrapper .e-palette-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
#zquiz-exam-wrapper .e-qcircle { width: 100%; aspect-ratio: 1; border-radius: 10px; border: 1.5px solid var(--e-line); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; cursor: pointer; background: var(--e-paper-raised); }
#zquiz-exam-wrapper .e-qcircle.answered { background: var(--e-success); color: white; border-color: var(--e-success); }
#zquiz-exam-wrapper .e-qcircle.active { border: 2px solid var(--e-gold); }
#zquiz-exam-wrapper #eFinalSubmitBtn { width: 100%; padding: 13px; background: var(--e-danger); color: white; border: none; border-radius: 50px; font-weight: 800; cursor: pointer; margin-top: 20px; }
#zquiz-exam-wrapper .e-mobile-bar { display: none; }
#zquiz-exam-wrapper #eResultModal, #zquiz-exam-wrapper #eConfirmModal, #zquiz-exam-wrapper #ePaletteSheet, #zquiz-exam-wrapper #eStartOverlay {
  display: none; position: fixed; top:0; left:0; width:100%; height:100dvh; background: rgba(15,31,61,0.55); backdrop-filter: blur(3px); z-index: 1001; align-items: center; justify-content: center; padding: 20px;
}
#zquiz-exam-wrapper .e-modal-content { background: var(--e-paper-raised); padding: 32px 28px; border-radius: 20px; text-align: center; max-width: 380px; width: 100%; animation: eqPop 0.3s ease; }
@keyframes eqPop { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
#zquiz-exam-wrapper .e-skeleton { background: linear-gradient(90deg, #ececec 25%, #f5f5f5 50%, #ececec 75%); background-size: 200% 100%; animation: eqShimmer 1.4s infinite; border-radius: 8px; }
@keyframes eqShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
#zquiz-exam-wrapper .e-skeleton-line { height: 16px; margin-bottom: 12px; }
#zquiz-exam-wrapper .e-skeleton-option { height: 50px; margin: 9px 0; border-radius: var(--e-radius-sm); }
#zquiz-exam-wrapper .e-score-circle { width: 130px; height: 130px; border-radius: 50%; margin: 10px auto; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 900; color: var(--e-ink); background: conic-gradient(var(--e-gold) calc(var(--score-pct,0)*1%), var(--e-line) 0); position: relative; }
#zquiz-exam-wrapper .e-score-circle::before { content:''; position:absolute; inset:10px; border-radius:50%; background: var(--e-paper-raised); }
#zquiz-exam-wrapper .e-score-circle span { position: relative; z-index: 1; }
@media (max-width: 768px) {
  #zquiz-exam-wrapper .e-main { grid-template-columns: 1fr; padding: 0 0 calc(130px + var(--e-safe-bottom)); margin-top: 0; gap: 0; }
  #zquiz-exam-wrapper .e-qcard { padding: 18px 16px; border-radius: 0; border: none; }
  #zquiz-exam-wrapper .e-qcard::before { width: 100%; height: 4px; background: linear-gradient(90deg, var(--e-gold), var(--e-ink-soft)); }
  #zquiz-exam-wrapper .e-desktop-nav, #zquiz-exam-wrapper .e-desktop-only { display: none; }
  #zquiz-exam-wrapper .e-mobile-bar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: var(--e-paper-raised); border-top: 1px solid var(--e-line); padding: 10px 14px calc(10px + var(--e-safe-bottom)); gap: 10px; z-index: 100; }
  #zquiz-exam-wrapper .e-mbb { flex: 1; padding: 13px 8px; border-radius: 50px; font-weight: 700; font-size: 13.5px; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
  #zquiz-exam-wrapper .e-mbb.prev, #zquiz-exam-wrapper .e-mbb.grid { background: var(--e-paper); border: 1.5px solid var(--e-line); color: var(--e-ink); flex: 0 0 52px; position: relative; }
  #zquiz-exam-wrapper .e-mbb.next { background: var(--e-ink); color: #fff; flex: 1.4; }
  #zquiz-exam-wrapper .e-grid-badge { position: absolute; top: 2px; right: 2px; background: var(--e-gold); color: var(--e-ink); font-size: 9px; font-weight: 800; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
  #zquiz-exam-wrapper #ePaletteSheet { align-items: flex-end; padding: 0; }
  #zquiz-exam-wrapper #ePaletteSheet .e-sheet-content { background: var(--e-paper-raised); width: 100%; border-radius: 22px 22px 0 0; padding: 18px 18px calc(18px + var(--e-safe-bottom)); max-height: 75vh; overflow-y: auto; }
  #zquiz-exam-wrapper .e-sheet-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 14px; }
  #zquiz-exam-wrapper #eStartOverlay.show { display: flex !important; z-index: 99999999; flex-direction: column; background: var(--e-ink); }
  #zquiz-exam-wrapper .e-start-box { background: var(--e-paper-raised); padding: 30px 24px; border-radius: 20px; width: 100%; max-width: 340px; text-align: center; }
  #zquiz-exam-wrapper .e-btn-start-fs { background: var(--e-gold); color: var(--e-ink); border: none; padding: 15px; width: 100%; border-radius: 50px; font-size: 16px; font-weight: 800; cursor: pointer; margin-top: 10px; }
}
@media (min-width: 769px) { #zquiz-exam-wrapper #ePaletteSheet, #zquiz-exam-wrapper .e-mobile-bar { display: none !important; } }

details.zq-more-info summary::-webkit-details-marker { display: none; }
