/* Qualyvo 4.6.1 — Visual Refresh Part 2
   Scope: Study Mode, Exam Mode, Guided Reading, Visual Memory, results and Last Mile.
   IMPORTANT: visual layer only. No answer/grading/session/drag-drop/zoom behavior is changed. */

:root{
  --qv-module-surface:#ffffff;
  --qv-module-soft:#f6f9fc;
  --qv-module-soft-blue:#eef7ff;
  --qv-module-line:#dbe7f1;
  --qv-module-ink:#10233a;
  --qv-module-muted:#6f8296;
  --qv-module-blue:#087fe3;
  --qv-module-blue2:#086bc2;
  --qv-module-cyan:#35b9f5;
  --qv-module-green:#16945d;
  --qv-module-amber:#c27b15;
  --qv-module-red:#cf4b50;
  --qv-module-radius:18px;
  --qv-module-shadow:0 14px 38px rgba(24,60,92,.08);
  --qv-module-shadow-sm:0 7px 20px rgba(24,60,92,.07);
}

/* ---------- SHARED MODULE TYPOGRAPHY / SURFACES ---------- */
#appShell .hero:not(.ce4-hero){
  position:relative;overflow:hidden;margin-bottom:18px;padding:27px 30px;
  border:1px solid #d8e9f6;border-radius:20px;
  background:linear-gradient(122deg,#fbfdff 0%,#f0f8ff 58%,#e5f3ff 100%);
  box-shadow:var(--qv-module-shadow);
}
#appShell .hero:not(.ce4-hero)::after{
  content:"";position:absolute;right:-70px;bottom:-100px;width:300px;height:230px;border-radius:55% 45% 0 0;
  background:linear-gradient(145deg,rgba(8,127,227,.13),rgba(53,185,245,.02));transform:rotate(-9deg);pointer-events:none
}
#appShell .hero:not(.ce4-hero) .learn-accent{width:45px;height:4px;border-radius:999px;background:linear-gradient(90deg,var(--qv-module-blue),var(--qv-module-cyan));margin-bottom:13px}
#appShell .hero:not(.ce4-hero) .kicker{position:relative;z-index:1;color:#557994;font-size:10px;font-weight:900;letter-spacing:.12em}
#appShell .hero:not(.ce4-hero) h1{position:relative;z-index:1;margin:8px 0 9px;color:var(--qv-module-ink);font-size:clamp(27px,3.3vw,42px);line-height:1.08;letter-spacing:-.04em}
#appShell .hero:not(.ce4-hero) p{position:relative;z-index:1;max-width:820px;margin:0;color:#5e748a;font-size:14px;line-height:1.62}

#appShell .card,
#appShell .setup-step,
#appShell .resume-card,
#appShell .language-strip,
#appShell .proof-card,
#appShell .timer-card,
#appShell .ce-real-exam-setup,
#appShell .difficulty-card,
#appShell .exam-mix-card{
  border-color:var(--qv-module-line);box-shadow:var(--qv-module-shadow-sm)
}
#appShell .card{border-radius:18px;padding:24px;background:var(--qv-module-surface)}
#appShell .field label{color:#29455f;font-size:12px;font-weight:850;letter-spacing:.01em}
#appShell .field select,#appShell .field input,#appShell .field textarea,
#appShell .direct-select{
  min-height:44px;border-color:#d5e2ed;border-radius:11px;background:#fff;color:#19324a;box-shadow:inset 0 1px 0 rgba(20,55,86,.02)
}
#appShell .field select:focus,#appShell .field input:focus,#appShell .field textarea:focus,#appShell .direct-select:focus{
  outline:0;border-color:#79bcef;box-shadow:0 0 0 3px rgba(8,127,227,.11)
}

/* ---------- PRACTICE SETUP / MODE CHOICE ---------- */
#appShell .resume-card{
  border-radius:16px;padding:17px 18px;border-color:#b9daf2;
  background:linear-gradient(135deg,#f0f8ff,#fff)
}
#appShell .resume-card h3{color:var(--qv-module-ink);font-size:17px;letter-spacing:-.01em}
#appShell .resume-progress{color:var(--qv-module-blue);font-weight:800}
#appShell .language-strip{border-radius:14px;padding:13px 15px;background:#fbfdff}
#appShell .language-strip b{color:#203a53}.language-strip small{color:var(--qv-module-muted)}
#appShell .product-proof{gap:12px}
#appShell .proof-card{min-height:94px;border-radius:14px;padding:15px;background:#fff}
#appShell .proof-card b{color:#14304a;font-size:24px;letter-spacing:-.03em}
#appShell .proof-card span{color:#74889c;font-weight:650}

#appShell .mode-cards{gap:13px;margin:20px 0}
#appShell .mode{
  position:relative;overflow:hidden;min-height:138px;border:1px solid var(--qv-module-line);border-radius:16px;padding:18px;
  background:#fff;box-shadow:var(--qv-module-shadow-sm);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease
}
#appShell .mode::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:#b9d9f1;opacity:.7}
#appShell .mode:hover{transform:translateY(-2px);border-color:#a9d2ef;box-shadow:0 13px 30px rgba(24,60,92,.11)}
#appShell .mode.selected{border-color:#80bfe9;background:linear-gradient(135deg,#f1f9ff,#fff);box-shadow:0 12px 30px rgba(8,127,227,.12)}
#appShell .mode.selected::before{background:linear-gradient(180deg,var(--qv-module-blue),var(--qv-module-cyan));opacity:1}
#appShell .mode h3{color:#15304a;font-size:18px;letter-spacing:-.015em}
#appShell .mode p{color:#6f8397;font-size:12.5px;line-height:1.55}
#appShell .timer-section{margin-top:21px}
#appShell .timer-section>label{color:#29455f;font-weight:850}
#appShell .timer-grid{gap:11px}
#appShell .timer-card{border-width:1px;border-radius:14px;padding:14px;background:#fff;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}
#appShell .timer-card:hover{transform:translateY(-1px);border-color:#a9d2ef;box-shadow:var(--qv-module-shadow-sm)}
#appShell .timer-card.selected{border-color:#7bbbea;background:linear-gradient(145deg,#eef8ff,#fff);box-shadow:0 8px 22px rgba(8,127,227,.09)}
#appShell .timer-card .timer-rate{color:var(--qv-module-blue);font-size:22px}
#appShell .timer-card .rec{color:#138858;background:#eaf8f1;border:1px solid #bce6d0;padding:3px 6px;border-radius:999px}
#appShell .timer-summary{padding:9px 11px;border-radius:9px;background:#f7fafc;color:#647a8f}
#appShell .v77-security-note{border-radius:12px;border-color:#dbe7f1;background:#f7fafc;color:#667d91}
#appShell .v77-security-note span{width:26px;height:26px;display:grid;place-items:center;border-radius:8px;background:#eaf5ff}
#appShell .ce-real-exam-setup{border-left:1px solid #bfdcf1;border-radius:15px;background:linear-gradient(135deg,#f5faff,#fff);padding:17px}
#appShell .ce-real-pill{border-color:#b9e2ca;background:#effaf4;color:#147846}
#appShell .ce-real-profile-grid>div{border-radius:11px;border-color:#dde8f0;background:#fff}

/* ---------- STUDY / EXAM QUESTION WORKSPACE ---------- */
#appShell .exam-head{
  align-items:center;margin-bottom:14px;padding:14px 16px;border:1px solid #dce8f2;border-radius:15px;background:rgba(255,255,255,.9);box-shadow:var(--qv-module-shadow-sm)
}
#appShell .exam-head .kicker{color:#527795;font-size:10px;font-weight:900;letter-spacing:.11em}
#appShell .qmeta{gap:6px;margin-top:7px}
#appShell .badge{border-color:#dbe6ef;border-radius:999px;background:#f7fafc;color:#60768b;font-size:10.5px;font-weight:750;padding:5px 9px}
#appShell .badge.blue{color:#0872c8;border-color:#b6d9f1;background:#edf7ff}
#appShell .verified-badge{box-shadow:none!important}
#appShell .flagbtn{border-radius:10px!important;background:#fff!important}
#appShell .flagbtn.flagged{background:#fff8df!important;border-color:#e2c367!important;color:#7a5900!important}
#appShell .progressline{height:6px;margin:0 0 17px;background:#dde8f1;box-shadow:inset 0 1px 2px rgba(19,52,81,.03)}
#appShell .progressline>div{background:linear-gradient(90deg,var(--qv-module-blue),var(--qv-module-cyan))}

#appShell #qcard.card{
  padding:26px 28px;border-color:#dbe7f1;border-radius:20px;background:#fff;box-shadow:0 18px 46px rgba(24,60,92,.09)
}
#appShell #qcard .question{max-width:980px;color:#132c45;font-size:20px;line-height:1.6;font-weight:700;letter-spacing:-.012em;margin:14px 0 22px}
#appShell #qcard>.qmeta:first-child{margin-top:0}
#appShell #qcard #speakBtn{border-color:#dbe7f1;background:#f8fbfd;color:#34516c}
#appShell .options{gap:11px}
#appShell .opt{
  min-height:56px;gap:13px;padding:14px 15px;border-color:#dbe6ef;border-radius:13px;background:#fff;
  color:#1a344d;box-shadow:0 3px 10px rgba(26,61,93,.035);transition:transform .13s ease,border-color .13s ease,background .13s ease,box-shadow .13s ease
}
#appShell .opt:hover:not(:disabled){transform:translateY(-1px);border-color:#9ccceb;background:#f8fcff;box-shadow:0 7px 17px rgba(24,60,92,.07)}
#appShell .opt.selected{border-color:#6fb7ea;background:#eef8ff;box-shadow:inset 4px 0 0 var(--qv-module-blue),0 6px 16px rgba(8,127,227,.06)}
#appShell .letter{min-width:32px;height:32px;border-radius:9px;border-color:#d8e4ed;background:#f3f7fa;color:#405c75}
#appShell .opt.selected .letter{background:#dff1ff;border-color:#a9d5f3;color:#0873ca}
#appShell .opt.correct{border-color:#91d3af;background:#f0faf5}
#appShell .opt.correct .letter{background:#e3f7ec;border-color:#afe1c5;color:#117b49}
#appShell .opt.wrong{border-color:#e4a8ac;background:#fff5f5}
#appShell .opt.wrong .letter{background:#fee8e9;border-color:#efb8bb;color:#b9363e}
#appShell .multi-help{margin-top:10px;padding:8px 10px;border-radius:9px;background:#f7fafc}
#appShell .multi-count{color:var(--qv-module-blue)}

#appShell .feedback{border-radius:12px;padding:14px 15px}
#appShell .feedback.good{border-color:#a9dec0;background:#f1faf5}
#appShell .feedback.bad{border-color:#e7b1b4;background:#fff5f5}
#appShell .coachbox{border-left:1px solid #cab3e3;border-radius:12px;background:#faf7fd;padding:13px 14px}
#appShell .learn-panel{border-color:#dce7f0;border-radius:14px;box-shadow:var(--qv-module-shadow-sm)}
#appShell .learn-main{padding:16px}
#appShell .learn-title{color:#17334d;font-size:13px}
#appShell .learn-title .spark{border-radius:9px;background:#eaf5ff;color:#087fe3}
#appShell .learn-example{border-left:1px solid #a8d2ef;border-radius:10px;background:#f2f8fd}
#appShell .why-details summary{background:#f7fafc;color:#29465f}
#appShell details.explain,#appShell details.validation{border-color:#dbe7f0;border-radius:12px}
#appShell details.explain>summary,#appShell details.validation>summary{background:#f7fafc}

#appShell .navrow{margin-top:23px;padding-top:18px;border-top:1px solid #e3ebf2}
#appShell .navright{gap:8px}
#appShell .navigator{margin-top:16px;border-top:0;padding:15px;border:1px solid #dce7f0;border-radius:15px;background:#f9fbfd}
#appShell .navigator-head b{color:#29465f}.navigator-head .small{color:#7d8fa1}
#appShell .navigator-grid{gap:7px}
#appShell .qnav{height:40px;border-color:#d7e3ec;border-radius:9px;background:#fff;color:#405970}
#appShell .qnav.current{outline:0;border-color:#5caee7;box-shadow:0 0 0 3px rgba(8,127,227,.11);color:#076fbe}
#appShell .qnav.answered{background:#edf9f2;border-color:#b7e2c8}
#appShell .qnav.wrongstate{background:#fff3f3;border-color:#edb8ba}
#appShell .legend{color:#73869a}

/* Interactive question visuals only — no event, drag or touch behavior changed. */
#appShell .special-options{padding:13px 0}
#appShell .special-opt{border-color:#dbe6ef;border-radius:13px;background:#fff;box-shadow:0 3px 10px rgba(26,61,93,.035)}
#appShell .special-opt:hover{border-color:#9ccceb;background:#f8fcff}
#appShell .match-row,#appShell .dropdown-row{border-color:#dce7ef;border-radius:12px;background:#f8fafc;padding:13px}
#appShell .order-list{gap:10px}
#appShell .order-item{border-color:#dbe6ef;border-radius:12px;background:#f8fafc;padding:11px}
#appShell .order-num{color:#0877d0}
#appShell .order-controls button{border-radius:8px;border-color:#d6e2ec;background:#fff}
#appShell .dnd-bank{border-color:#a9d2ef;border-radius:13px;background:#f0f8ff;padding:12px}
#appShell .dnd-chip{border-color:#cfdfea;border-radius:10px;background:#fff;box-shadow:0 4px 11px rgba(25,61,94,.06)}
#appShell .dnd-prompt{border-color:#dbe6ef;border-radius:11px;background:#f8fafc}
#appShell .dropzone{border-color:#c8d9e5;border-radius:11px;background:#fff}
#appShell .dropzone.filled{border-color:#8ec7ed;background:#eef8ff}
#appShell .interactive-label{color:#657c91}

/* ---------- REAL EXAM EXPERIENCE ---------- */
#appShell .ce-exam-toolbar{
  top:76px;border-color:#d9e6ef;border-radius:14px;background:rgba(255,255,255,.96);box-shadow:0 10px 28px rgba(21,56,86,.09);backdrop-filter:blur(14px)
}
#appShell .ce-exam-toolbar-title b{color:#17334c}
#appShell .ce-exam-toolbar-progress{color:#61778c}
#appShell .ce-exam-overlay{background:rgba(5,23,39,.6);backdrop-filter:blur(4px)}
#appShell .ce-exam-dialog{border-color:#d9e5ef;border-radius:18px;padding:22px;box-shadow:0 26px 70px rgba(5,27,48,.22)}
#appShell .ce-review-stats>div{border-color:#dce7ef;border-radius:12px;background:#f8fafc}
#appShell .ce-review-q{height:42px;border-color:#d7e3ec;border-radius:9px;background:#fff}
#appShell .ce-review-q.current{outline:0;border-color:#5caee7;box-shadow:0 0 0 3px rgba(8,127,227,.11)}
#appShell .ce-help-points>div{border-color:#dbe7f0;border-radius:11px;background:#f8fafc}

/* ---------- GUIDED READING ---------- */
#appShell .library-toolbar{
  display:grid;gap:12px;margin-bottom:14px;padding:14px;border:1px solid #dce8f1;border-radius:15px;background:#fff;box-shadow:var(--qv-module-shadow-sm)
}
#appShell .library-toolbar input{min-height:44px;padding:0 13px;border:1px solid #d6e3ed;border-radius:11px;background:#f9fbfd;color:#18344e}
#appShell .library-toolbar input:focus{outline:0;border-color:#77bced;box-shadow:0 0 0 3px rgba(8,127,227,.10)}
#appShell .library-domains{gap:7px}
#appShell .domain-chip{border-color:#dbe6ef;border-radius:999px;background:#fff;color:#536a80;font-weight:750}
#appShell .domain-chip:hover{border-color:#afd2e9;background:#f6fbff}
#appShell .domain-chip.selected{border-color:#8fc5e9;background:#eaf6ff;color:#0874c9}
#appShell .library-count{color:#708499;font-weight:750;margin:10px 3px}
#appShell .library-grid{display:grid;gap:11px}
#appShell .library-card{border:1px solid #dce7f0;border-radius:14px;background:#fff;box-shadow:var(--qv-module-shadow-sm);overflow:hidden}
#appShell .library-card>summary{padding:15px 17px;background:#fff}
#appShell .library-card>summary:hover{background:#f9fcff}
#appShell .library-card>summary small{color:#6f8598;font-weight:700}
#appShell .library-card>summary b{color:#17324c;font-size:15px}
#appShell .library-card>summary span{color:#6d8295}
#appShell .library-body{padding:0 17px 17px;background:#fbfdff}
#appShell .library-example,#appShell .library-trap{border-radius:11px;padding:12px 13px}
#appShell .library-example{background:#eff8ff;border:1px solid #cfe8f8}
#appShell .library-trap{background:#fff9eb;border:1px solid #f0dfb0}
#appShell .library-focus-note{border:1px solid #dce8f1;border-radius:13px;background:#f7fafc;color:#667d91;padding:13px 15px}

/* Newer guided-reading lesson shell. No SVG/img dimensions touched. */
#appShell .cram-page{gap:16px}
#appShell .cram-page .cram-hero{border-radius:19px!important;border-color:#d8e9f6!important;background:linear-gradient(122deg,#fbfdff,#edf7ff)!important;box-shadow:var(--qv-module-shadow)!important}
#appShell .cram-shell{gap:15px}
#appShell .cram-index{border-color:#dce7ef!important;border-radius:14px!important;background:#fff!important;box-shadow:var(--qv-module-shadow-sm)!important}
#appShell .cram-lesson-card{border-color:#dce7ef!important;border-radius:17px!important;background:#fff!important;box-shadow:var(--qv-module-shadow)!important}
#appShell .cram-title-row h2{color:#132e48!important;letter-spacing:-.025em}
#appShell .cram-block{border-color:#e0e9f0!important;border-radius:13px!important;background:#fbfcfe!important}
#appShell .cram-block h3,#appShell .cram-block h4{color:#18344e!important}
#appShell .cram-sub{background:#f6f9fc!important}
#appShell .cram-current{border-color:#ead49c;border-radius:12px;background:#fff9e9}
#appShell .cram-step-nav{gap:9px}
#appShell .cram-mode-pill{border-color:#d9e5ee;border-radius:999px;background:#fff}
#appShell .cram-mode-pill.active{border-color:#8fc5ea;background:#edf8ff;color:#0875cb}
#appShell .cram-search-wrap{border-color:#dce7f0!important;border-radius:13px!important;background:#fff!important}
#appShell .cram-data{border-color:#dfe8ef!important;border-radius:12px!important}
#appShell .v13-lesson-aid{border-color:#c9e2f3;background:#f1f8fd;border-radius:12px}

/* ---------- VISUAL MEMORY ---------- */
#appShell .u-visual-page .hero{margin-bottom:17px}
#appShell .u-visual-grid{gap:15px}
#appShell .u-visual-bigcard{
  border:1px solid #dce7ef;border-radius:17px;background:#fff;box-shadow:var(--qv-module-shadow-sm);overflow:hidden;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease
}
#appShell .u-visual-bigcard:hover{transform:translateY(-2px);border-color:#bcd9ec;box-shadow:0 15px 34px rgba(24,60,92,.10)}
#appShell .u-visual-bigcard>div{padding:14px 15px}
#appShell .u-visual-bigcard b{color:#17324c}

#appShell .visual-memory-intro{border-color:#dce8f1;border-radius:17px;background:linear-gradient(135deg,#fff,#f2f9ff);box-shadow:var(--qv-module-shadow)}
#appShell .visual-memory-intro b{color:#17324c}
#appShell .visual-memory-grid{gap:15px}
#appShell .visual-card{border-color:#dbe7ef;border-radius:17px;box-shadow:var(--qv-module-shadow-sm)}
#appShell .visual-card-head{padding:16px 16px 9px}
#appShell .visual-card-head h3{color:#18344e;letter-spacing:-.015em}
#appShell .visual-tags span{border-color:#dce6ef!important;background:#f6f9fc!important;color:#667c91!important;border-radius:999px!important}
#appShell .visual-remember{border-radius:11px!important;background:#eff8ff!important;border-color:#cce6f7!important}
#appShell .visual-example{border-radius:11px!important;background:#f8fafc!important;border-color:#dfe8ef!important}
#appShell .visual-actions{gap:8px}
/* Do not change .u-modal-image, .visual-modal .cram-visual img, transforms or wheel/pointer rules: zoom runtime remains authoritative. */

/* ---------- RESULT / REVIEW / LAST MILE ---------- */
#appShell .result.result-compact{max-width:900px;padding:24px;border:1px solid #dbe7ef;border-radius:19px;background:#fff;box-shadow:var(--qv-module-shadow)}
#appShell .score-orb{box-shadow:0 12px 30px rgba(8,127,227,.13)}
#appShell .result-copy h2{color:#15304a;letter-spacing:-.02em}
#appShell .result-pill{border-color:#dbe6ef;background:#f7fafc;border-radius:999px;color:#536a80}
#appShell .result-more,#appShell .result-details{border-color:#dce7ef;border-radius:12px;overflow:hidden}
#appShell .result-more summary,#appShell .result-details summary{background:#f7fafc}
#appShell .metric{border-color:#dce7ef;border-radius:12px;background:#f8fafc}
#appShell .bar{background:#e0e9f0}
#appShell .bar>i{background:linear-gradient(90deg,var(--qv-module-blue),var(--qv-module-cyan))}
#appShell .v13-page-hero{border-color:#d8e9f6!important;border-radius:19px!important;background:linear-gradient(125deg,#fbfdff,#edf7ff)!important;box-shadow:var(--qv-module-shadow)!important}
#appShell .v13-panel,#appShell .v14-panel{border-color:#dce7ef!important;border-radius:16px!important;box-shadow:var(--qv-module-shadow-sm)!important;background:#fff!important}
#appShell .v13-lm-actions{gap:10px}
#appShell .v13-checks label{border-radius:10px!important;border-color:#dfe8ef!important;background:#f8fafc!important}

/* ---------- ACCESSIBILITY / FOCUS ---------- */
#appShell button:focus-visible,#appShell a:focus-visible,#appShell input:focus-visible,#appShell select:focus-visible,#appShell textarea:focus-visible,#appShell summary:focus-visible{
  outline:3px solid rgba(8,127,227,.30)!important;outline-offset:2px!important
}
@media(prefers-reduced-motion:reduce){
  #appShell .mode,#appShell .timer-card,#appShell .opt,#appShell .u-visual-bigcard{transition:none!important}
}

/* ---------- DARK MODE ---------- */
html[data-theme="dark"] #appShell .hero:not(.ce4-hero),
html[data-theme="dark"] #appShell .cram-page .cram-hero,
html[data-theme="dark"] #appShell .v13-page-hero{
  background:linear-gradient(125deg,#17283a,#153653)!important;border-color:#294962!important
}
html[data-theme="dark"] #appShell .hero:not(.ce4-hero) h1,
html[data-theme="dark"] #appShell #qcard .question,
html[data-theme="dark"] #appShell .result-copy h2,
html[data-theme="dark"] #appShell .library-card>summary b,
html[data-theme="dark"] #appShell .visual-card-head h3,
html[data-theme="dark"] #appShell .cram-title-row h2{color:#f2f7fb!important}
html[data-theme="dark"] #appShell .hero:not(.ce4-hero) p,
html[data-theme="dark"] #appShell .library-card>summary span{color:#a9bac9!important}
html[data-theme="dark"] #appShell .card,
html[data-theme="dark"] #appShell #qcard.card,
html[data-theme="dark"] #appShell .exam-head,
html[data-theme="dark"] #appShell .mode,
html[data-theme="dark"] #appShell .timer-card,
html[data-theme="dark"] #appShell .proof-card,
html[data-theme="dark"] #appShell .language-strip,
html[data-theme="dark"] #appShell .library-toolbar,
html[data-theme="dark"] #appShell .library-card,
html[data-theme="dark"] #appShell .cram-index,
html[data-theme="dark"] #appShell .cram-lesson-card,
html[data-theme="dark"] #appShell .visual-card,
html[data-theme="dark"] #appShell .visual-memory-intro,
html[data-theme="dark"] #appShell .u-visual-bigcard,
html[data-theme="dark"] #appShell .result.result-compact,
html[data-theme="dark"] #appShell .v13-panel,
html[data-theme="dark"] #appShell .v14-panel,
html[data-theme="dark"] #appShell .ce-exam-dialog{background:#1b2734!important;border-color:#314356!important;color:#eef5fa!important}
html[data-theme="dark"] #appShell .mode.selected,
html[data-theme="dark"] #appShell .timer-card.selected{background:linear-gradient(145deg,#1b3348,#1b2734)!important;border-color:#3978a5!important}
html[data-theme="dark"] #appShell .opt,
html[data-theme="dark"] #appShell .special-opt,
html[data-theme="dark"] #appShell .qnav,
html[data-theme="dark"] #appShell .direct-select{background:#202f3d!important;border-color:#34495c!important;color:#eef5fa!important}
html[data-theme="dark"] #appShell .opt:hover:not(:disabled),html[data-theme="dark"] #appShell .opt.selected{background:#193b56!important;border-color:#397fb0!important}
html[data-theme="dark"] #appShell .letter{background:#263746;border-color:#3a4e60;color:#dce9f3}
html[data-theme="dark"] #appShell .navigator,
html[data-theme="dark"] #appShell .match-row,
html[data-theme="dark"] #appShell .dropdown-row,
html[data-theme="dark"] #appShell .order-item,
html[data-theme="dark"] #appShell .cram-block,
html[data-theme="dark"] #appShell .library-body,
html[data-theme="dark"] #appShell .result-pill,
html[data-theme="dark"] #appShell .metric{background:#182431!important;border-color:#314356!important;color:#eaf3f9!important}
html[data-theme="dark"] #appShell .library-card>summary,
html[data-theme="dark"] #appShell .why-details summary,
html[data-theme="dark"] #appShell details.explain>summary,
html[data-theme="dark"] #appShell details.validation>summary{background:#202f3d!important;color:#eaf3f9!important}
html[data-theme="dark"] #appShell .ce-exam-toolbar{background:rgba(27,39,52,.96);border-color:#314356}

/* ---------- RESPONSIVE ---------- */
@media(max-width:900px){
  #appShell .hero:not(.ce4-hero){padding:22px 20px;border-radius:17px}
  #appShell .mode-cards{grid-template-columns:1fr 1fr}
  #appShell .timer-grid{grid-template-columns:1fr 1fr}
  #appShell #qcard.card{padding:21px 20px}
  #appShell .ce-exam-toolbar{top:66px}
  #appShell .visual-memory-grid,#appShell .u-visual-grid{grid-template-columns:1fr!important}
}
@media(max-width:700px){
  #appShell .exam-head{display:grid;gap:11px;padding:13px}
  #appShell .exam-head>.actions{justify-content:flex-start}
  #appShell #qcard.card{padding:18px 15px;border-radius:16px}
  #appShell #qcard .question{font-size:17px;line-height:1.55;margin-bottom:18px}
  #appShell .opt{padding:12px;min-height:52px}
  #appShell .navrow{display:grid;grid-template-columns:1fr}
  #appShell .navrow>button,#appShell .navright{width:100%}
  #appShell .navright{display:grid;grid-template-columns:1fr 1fr}
  #appShell .navright button{width:100%}
  #appShell .navigator{padding:12px}
  #appShell .navigator-head{align-items:flex-start;gap:6px}
  #appShell .navigator-head .small{font-size:10px}
  #appShell .library-toolbar{padding:11px}
  #appShell .library-card>summary{padding:13px 14px}
  #appShell .library-body{padding:0 14px 14px}
  #appShell .cram-lesson-card{border-radius:14px!important}
}
@media(max-width:520px){
  #appShell .hero:not(.ce4-hero){padding:18px 15px}
  #appShell .hero:not(.ce4-hero) h1{font-size:26px}
  #appShell .product-proof,#appShell .mode-cards,#appShell .timer-grid{grid-template-columns:1fr}
  #appShell .mode{min-height:0}
  #appShell .language-strip{align-items:flex-start;flex-direction:column}
  #appShell .language-strip .secondary{width:100%}
  #appShell .navright{grid-template-columns:1fr}
  #appShell .navigator-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
  #appShell .qnav{height:38px}
  #appShell .ce-exam-dialog{padding:16px;border-radius:15px}
  #appShell .ce-exam-dialog-actions{display:grid;grid-template-columns:1fr}
  #appShell .ce-exam-dialog-actions button{width:100%}
  #appShell .library-domains{display:flex;overflow-x:auto;padding-bottom:4px;scrollbar-width:none;flex-wrap:nowrap}
  #appShell .library-domains::-webkit-scrollbar{display:none}
  #appShell .domain-chip{white-space:nowrap;flex:0 0 auto}
  #appShell .visual-card-head{padding:14px 14px 7px}
  #appShell .visual-card-body{padding:11px 14px 14px}
  #appShell .result.result-compact{padding:17px;border-radius:16px}
}
