/* Exam Prep "G" (signed-out). Loaded after studypath2.css; colours fall back to the canvas values where a token is missing. */
.sp2-app[data-screen="eg"] { max-width: 640px !important; margin: 0 auto; padding: 0 0 40px !important; }
.sp2-app .eg { color: var(--e-text, #E6EAF2); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sp2-app .eg a { text-decoration: none; color: inherit; }
.sp2-app .eg a:focus-visible, .sp2-app .eg button:focus-visible, .eg summary:focus-visible { outline: 3px solid #fff !important; outline-offset: 2px; border-radius: 10px; }
.sp2-app .eg .eg-back { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; color: #94A3B8; font-weight: 600; font-size: 14px; }
.sp2-app .eg .eg-h1 { font-size: 21px !important; line-height: 1.3; font-weight: 800; color: var(--e-text, #E6EAF2); outline: none !important; }
.sp2-app .eg-sub { color: #94A3B8; font-size: 14px; line-height: 1.5; }
.sp2-app .eg-kicker { color: var(--e-cy, #22D3EE); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sp2-app .eg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: #94A3B8; font-size: 12.5px; line-height: 1.4; }
.sp2-app .eg-chip { font-style: normal; font-weight: 700; font-size: 12px; color: #C4B5FD; background: #2A2350; border-radius: 5px; padding: 2px 7px; white-space: nowrap; }
.sp2-app .eg-tier { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 10px 0 8px !important; font-size: 14px; font-weight: 800; color: #E6EAF2; }
.sp2-app .eg-tier--0 > span { color: #F87171; }
.sp2-app .eg-tier small { color: #94A3B8; font-weight: 600; font-size: 12px; }
.sp2-app .eg-list { display: flex; flex-direction: column; gap: 8px; list-style: none; }
.sp2-app .eg-list > li, .sp2-app .eg-next, .sp2-app .eg-upcard { background: #121A2B; border: 1px solid #223049; border-radius: 12px; }
.sp2-app .eg-row { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 9px 10px !important; }
.sp2-app .eg-num { flex: 0 0 24px; height: 24px; border-radius: 50%; background: #1B2638; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #CBD5E1; }
.sp2-app .eg-row__b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sp2-app .eg-row__t { line-height: 1.5; }
.sp2-app .eg-row__t .eg-chip { font-size: 11px; padding: 1px 6px; }
.sp2-app .eg-row__b strong { font-size: 14.5px; line-height: 1.35; font-weight: 700; color: #E6EAF2; overflow-wrap: anywhere; }
.sp2-app .eg-chev { color: #64748B; flex: 0 0 auto; display: flex; }
.sp2-app .eg-first { display: flex; flex-direction: column; gap: 8px; padding-bottom: 10px; }
.sp2-app .eg-first > .eg-slipa, .sp2-app .eg-first > .eg-btn { margin: 0 10px; }
.sp2-app .eg-slipa { display: block; }
.sp2-app .eg-slip { position: relative; background: #FDFDFA; color: #1F2937; border-radius: 8px; padding: 10px 12px; overflow: hidden; box-shadow: 0 6px 16px rgba(0,0,0,.35); text-align: left; }
.sp2-app .eg-slip--list { height: 92px; } .sp2-app .eg-slip--topic { height: 96px; } .sp2-app .eg-slip--done { height: 84px; margin: 0 10px 10px; }
.sp2-app .eg-slip::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34px; background: linear-gradient(rgba(253,253,250,0), #FDFDFA); }
.sp2-app .eg-slip__h { font: 700 10px/1.4 Inter, system-ui, sans-serif; letter-spacing: .06em; color: #5B6270; margin-bottom: 4px !important; }
.sp2-app .eg-slip__t { font: 13px/1.45 Georgia, "Times New Roman", serif; color: #1F2937; }
.sp2-app .eg .eg-btn { display: flex; align-items: center; justify-content: center; width: auto; min-height: 50px; padding: 10px 16px !important; border: 0; border-radius: 11px; background: var(--e-cy, #22D3EE); color: #0B1220; font: 800 15.5px/1.3 inherit; font-family: inherit; text-align: center; cursor: pointer; }
.sp2-app .eg .eg-btn[disabled] { opacity: .45; cursor: default; }
.sp2-app .eg .eg-btn--s { width: 100%; min-height: 44px; background: #1B2638; color: #E6EAF2; border: 1px solid #223049; font-size: 14px; }
.sp2-app .eg-low > summary { cursor: pointer; min-height: 44px; list-style: none; display: block; }
.sp2-app .eg-low > summary::-webkit-details-marker { display: none; }
.sp2-app .eg-low > summary .eg-tier small::after { content: " · show"; }
.sp2-app .eg-low[open] > summary .eg-tier small::after { content: " · hide"; }
.sp2-app .eg-hero { position: relative; border-radius: 12px; overflow: hidden; background: #fff; }
.sp2-app .eg-hero img { display: block; width: 100%; height: auto; }
.sp2-app .eg-hero--fake { aspect-ratio: 358 / 130; }
.sp2-app .eg-hero .eg-pg--hero { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }
.sp2-app .eg-hero figcaption { display: table; margin: 8px; background: rgba(11,18,32,.9); color: #E6EAF2; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 6px; z-index: 1; }
.sp2-app .eg-hero--fake figcaption { position: absolute; left: 0; bottom: 0; }
.sp2-app .eg-step { display: flex; flex-direction: column; gap: 10px; padding-top: 6px !important; }
.sp2-app .eg-step__h { display: flex; gap: 10px; align-items: flex-start; }
.sp2-app .eg-step__n { flex: 0 0 22px; height: 22px; border: 1.5px solid var(--e-cy, #22D3EE); color: var(--e-cy, #22D3EE); border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.sp2-app .eg-step__h h4 { font-size: 15px; font-weight: 800; color: #E6EAF2; }
.sp2-app .eg-step__h p { font-size: 13px; color: #94A3B8; line-height: 1.45; }
.sp2-app .eg-thumbs { display: flex; gap: 10px; overflow-x: auto; list-style: none; padding-bottom: 4px !important; }
.sp2-app .eg-thumbs li { flex: 0 0 112px; }
.sp2-app .eg-thumbs .eg-pg, .sp2-app .eg-thumbs .eg-vtile { width: 112px; height: 64px; }
.sp2-app .eg-th { display: flex; flex-direction: column; gap: 6px; font-size: 12px; line-height: 1.35; color: #CBD5E1; }
.sp2-app .eg-pg { display: block; overflow: hidden; background: #fff; border-radius: 8px; width: 120px; height: 68px; position: relative; }
.sp2-app .eg-pg img, .sp2-app .eg-pg svg { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sp2-app .eg-pg--notes::after, .sp2-app .eg-pg--paper::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #60A5FA; z-index: 1; }
.sp2-app .eg-pg--paper::after { background: #A78BFA; }
.sp2-app .eg-blur > svg, .sp2-app .eg-vtile.eg-blur { filter: blur(5px); transform: scale(1.08); }
.sp2-app .eg-papers { display: flex; gap: 10px; list-style: none; overflow: hidden; }
.sp2-app .eg-papers .eg-pg { width: 76px; height: 100px; }
.sp2-app .eg-vtile { position: relative; display: grid; place-items: center; width: 120px; height: 68px; border-radius: 8px; background: #05080F; border: 1px solid #223049; overflow: hidden; }
.sp2-app .eg-play { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #0B1220; display: grid; place-items: center; }
.sp2-app .eg-vtile em { position: absolute; right: 5px; bottom: 4px; font-style: normal; font-size: 12px; background: rgba(0,0,0,.8); color: #fff; border-radius: 4px; padding: 0 4px; }
.sp2-app .eg-more { font-size: 13px; color: #94A3B8; line-height: 1.5; }
.sp2-app .eg .eg-more a, .sp2-app .eg-bar p a { color: #CBD5E1; text-decoration: underline; }
.sp2-app .eg-next { display: flex; align-items: center; gap: 10px; padding: 10px !important; min-height: 58px; }
.sp2-app .eg-locked { padding-bottom: 20px; }
/* the bar is part of the page's flow and sticks to the bottom: it never covers the last content and nothing shifts when it appears */
.sp2-app .eg-bar { position: sticky; bottom: 0; z-index: 20; background: #0B1220; border-top: 1px solid #223049; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 7px; }
.sp2-app .eg-bar p { font-size: 12px; line-height: 1.5; color: #94A3B8; text-align: center; }
.sp2-app .eg-bar p a { display: inline-block; padding: 12px 6px !important; margin: -12px -6px; }
.sp2-app .eg-textlink { align-self: center; display: inline-flex; align-items: center; min-height: 44px; color: #CBD5E1 !important; font-weight: 600; font-size: 14px; text-decoration: underline !important; }
.sp2-app .eg-page { background: #fff; border-radius: 8px; overflow: hidden; }
.sp2-app .eg-page img { display: block; width: 100%; height: auto; }
.sp2-app .eg-q { display: flex; flex-direction: column; gap: 8px; padding-top: 8px !important; }
.sp2-app .eg-q h4 { font-size: 13.5px; color: #CBD5E1; font-weight: 700; }
.sp2-app .eg-acts { display: flex; flex-direction: column; gap: 8px; }
.sp2-app .eg-video { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #05080F; }
.sp2-app .eg-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.sp2-app .eg-video__b { width: 100%; height: 100%; padding: 0 !important; border: 0; background: none; cursor: pointer; }
.sp2-app .eg-video__b .eg-vtile { width: 100%; height: 100%; border: 0; }
.sp2-app .eg-done { align-items: stretch; text-align: center; padding-top: 18px !important; }
.sp2-app .eg-ring { position: relative; align-self: center; width: 96px; height: 96px; margin: 14px 0 8px !important; }
.sp2-app .eg-ring__c { position: absolute; inset: 0; border-radius: 50%; background: #0F2A36; border: 3px solid var(--e-cy, #22D3EE); color: var(--e-cy, #22D3EE); display: grid; place-items: center; box-shadow: 0 0 28px rgba(34,211,238,.45); }
.eg-confetti i { position: absolute; width: 7px; height: 7px; background: #22D3EE; }
.eg-confetti i:nth-child(1) { left: -38px; top: 8px; transform: rotate(20deg); }
.eg-confetti i:nth-child(2) { left: -22px; top: 44px; background: #FBBF24; border-radius: 50%; width: 6px; height: 6px; }
.eg-confetti i:nth-child(3) { left: -48px; top: 66px; background: #A78BFA; width: 14px; height: 4px; transform: rotate(-30deg); }
.eg-confetti i:nth-child(4) { left: -12px; top: -12px; background: #F87171; width: 4px; height: 13px; transform: rotate(-40deg); }
.eg-confetti i:nth-child(5) { right: -36px; top: 2px; background: #FBBF24; transform: rotate(45deg); }
.eg-confetti i:nth-child(6) { right: -20px; top: 38px; background: #F87171; border-radius: 50%; width: 6px; height: 6px; }
.eg-confetti i:nth-child(7) { right: -50px; top: 54px; width: 14px; height: 4px; transform: rotate(35deg); }
.eg-confetti i:nth-child(8) { right: -10px; top: -14px; background: #A78BFA; }
.eg-confetti i:nth-child(9) { left: -66px; top: 32px; background: #F87171; width: 5px; height: 5px; }
.eg-confetti i:nth-child(10) { right: -68px; top: 24px; background: #22D3EE; width: 5px; height: 5px; border-radius: 50%; }
.eg-confetti i:nth-child(11) { left: -30px; bottom: -4px; background: #FBBF24; width: 4px; height: 12px; transform: rotate(50deg); }
.eg-confetti i:nth-child(12) { right: -28px; bottom: -2px; background: #A78BFA; width: 6px; height: 6px; transform: rotate(15deg); }
.sp2-app .eg-tiles { display: flex; gap: 8px; list-style: none; }
.sp2-app .eg-tiles li { flex: 1; min-width: 0; background: #121A2B; border: 1px solid #223049; border-radius: 12px; padding: 10px 6px !important; display: flex; flex-direction: column; gap: 3px; }
.sp2-app .eg-tiles b { font-size: 21px; color: #E6EAF2; }
.sp2-app .eg-tiles span { font-size: 12px; color: #94A3B8; line-height: 1.35; }
.sp2-app .eg-prog { height: 8px; border-radius: 99px; background: #1B2638; overflow: hidden; }
.sp2-app .eg-prog i { display: block; height: 100%; background: var(--e-cy, #22D3EE); border-radius: 99px; }
.sp2-app .eg-up { text-align: left; display: flex; flex-direction: column; gap: 8px; }
.sp2-app .eg-up h4 { font-size: 13px; color: #94A3B8; font-weight: 700; }
.sp2-app .eg-upcard { display: block; }
@media (min-width: 900px) { .sp2-app .eg-h1 { font-size: 24px !important; } .sp2-app .eg-thumbs li { flex-basis: 150px; } .sp2-app .eg-pg, .sp2-app .eg-thumbs .eg-vtile { width: 150px; height: 85px; } }
@media (prefers-reduced-motion: reduce) { .sp2-app .eg * { animation: none !important; transition: none !important; } }
/* owner 2026-12-05: how many times a topic has been asked, as a pill in its priority colour (red / amber / grey) */
.sp2-app .eg-times { font-style: normal; font-weight: 700; font-size: 12px; line-height: 1.4; border-radius: 999px; padding: 2px 9px; white-space: nowrap; border: 1px solid; }
.sp2-app .eg-times--0 { color: #FF9AA6; background: #3A1620; border-color: #7A2B3A; }
.sp2-app .eg-times--1 { color: #FFC46B; background: #36270E; border-color: #6E5120; }
.sp2-app .eg-times--2 { color: #C3CAD6; background: #232A38; border-color: #414B5E; }
/* tap to enlarge + read as text */
.sp2-app .eg-tap { display: block; width: 100%; min-height: 44px; margin: 0; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; font: inherit; color: inherit; }
.sp2-app .eg-tap img { display: block; width: 100%; height: auto; }
.sp2-app .eg-tap__c { display: block; padding: 6px 10px; font-size: 12px; font-weight: 700; color: #0B1220; background: #E2E8F0; text-align: center; }
.sp2-app .eg-textb { display: block; width: 100%; min-height: 44px; margin: 4px 0 0; background: none; border: 0; cursor: pointer; }
.sp2-app .eg-text { padding: 12px 14px; border-radius: 12px; background: #141B2D; border: 1px solid #27324A; color: #E5EAF3; margin-bottom: 10px; overflow-x: auto; }
.sp2-app .eg-text__t { white-space: pre-wrap; margin: 0; }
.sp2-app dialog.eg-zm { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: #070B14; }
.sp2-app dialog.eg-zm[open] { display: flex; flex-direction: column; }
.sp2-app .eg-zm__bar { display: flex; justify-content: space-between; gap: 10px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; }
.sp2-app .eg-zm__b { min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid #3A4A68; background: #141B2D; color: #EAFBFF; font: 700 14px/1 inherit; cursor: pointer; }
.sp2-app .eg-zm__view { flex: 1; overflow: auto; display: flex; touch-action: pan-x pan-y pinch-zoom; }
.sp2-app .eg-zm__view img { margin: auto; width: 820px; max-width: none; height: auto; background: #fff; }
.sp2-app dialog.is-fit .eg-zm__view img { width: 100%; max-width: 1171px; }
/* owner 2026-12-05: per topic, three facts: the pill (times asked), the section chip, the last paper (wraps as one unit) */
.sp2-app .eg-last { display: inline-flex; align-items: center; gap: 4px; color: #A7B1C2; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.sp2-app .eg-last svg { flex: none; opacity: .85; }
.sp2-app .eg-row__b { gap: 5px; }
.sp2-app .eg-meta--top { gap: 6px 10px; }
/* owner 2026-12-05: Guided / By unit, one switch at the top of Exam Prep (paid) */
.sp2-app .eg-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: #0B1220; border: 1px solid #223049; border-radius: 14px; }
.sp2-app .eg-seg__b { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 52px; padding: 6px 8px !important; border-radius: 10px; text-align: center; text-decoration: none !important; color: #94A3B8; transition: background-color .15s ease, color .15s ease; }
.sp2-app .eg-seg__b strong { font-size: 14.5px; font-weight: 800; color: #CBD5E1; line-height: 1.25; }
.sp2-app .eg-seg__b span { font-size: 12px; line-height: 1.3; }
.sp2-app .eg-seg__b.is-on { background: #1C2840; box-shadow: inset 0 0 0 1px #34507A; color: #CFE8F5; cursor: default; }
.sp2-app .eg-seg__b.is-on strong { color: #fff; }
@media (hover: hover) { .sp2-app .eg-seg__b:not(.is-on):hover { background: #131D31; } }
@media (prefers-reduced-motion: reduce) { .sp2-app .eg-seg__b { transition: none; } }
.sp2-app .eg-tier--u > span { color: #E6EAF2; min-width: 0; }
.sp2-app .eg-tier--u small { white-space: nowrap; }
