@import url('https://fonts.googleapis.com/css2?family=Zilla+Slab:wght@500;700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

/* ---------- Theme isolation ----------
   Themes sometimes apply their own global styling to <a>, <button>,
   headings etc (gradient/clip-path text effects, custom hover/focus
   states, colored underlines, focus outlines/box-shadows) that bleeds
   into whatever we render, since we're just regular HTML on the page
   like anything else. This resets the handful of properties themes
   most commonly hijack, scoped to our own containers only — including
   explicitly on :hover/:focus/:active, since that's exactly where
   theme button styling usually kicks in — so our actual component
   styles (further down this file, which come after this in the
   cascade) are what actually show, in every state, not whatever the
   active theme happens to do with a plain <a>/<button> tag. */
.jssc-quiz a, .jssc-quiz button,
.jssc-account a, .jssc-account button,
.jssc-paywall a, .jssc-paywall button,
.jssc-product-page a, .jssc-product-page button,
.jssc-crumb a,
.jssc-nav a, .jssc-nav button,
.jssc-quiz a:hover, .jssc-quiz a:focus, .jssc-quiz a:active, .jssc-quiz a:visited,
.jssc-quiz button:hover, .jssc-quiz button:focus, .jssc-quiz button:active,
.jssc-account a:hover, .jssc-account a:focus, .jssc-account a:active, .jssc-account a:visited,
.jssc-account button:hover, .jssc-account button:focus, .jssc-account button:active,
.jssc-paywall a:hover, .jssc-paywall a:focus, .jssc-paywall a:active, .jssc-paywall a:visited,
.jssc-paywall button:hover, .jssc-paywall button:focus, .jssc-paywall button:active,
.jssc-product-page a:hover, .jssc-product-page a:focus, .jssc-product-page a:active, .jssc-product-page a:visited,
.jssc-product-page button:hover, .jssc-product-page button:focus, .jssc-product-page button:active,
.jssc-crumb a:hover, .jssc-crumb a:focus, .jssc-crumb a:active, .jssc-crumb a:visited,
.jssc-nav a:hover, .jssc-nav a:focus, .jssc-nav a:active, .jssc-nav a:visited,
.jssc-nav button:hover, .jssc-nav button:focus, .jssc-nav button:active {
	-webkit-text-fill-color: unset;
	background-clip: unset;
	-webkit-background-clip: unset;
	text-shadow: none !important;
	box-shadow: none !important;
	outline: none !important;
	text-decoration: none;
	letter-spacing: normal;
	text-transform: none;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.jssc-quiz h1, .jssc-quiz h2, .jssc-quiz h3, .jssc-quiz h4,
.jssc-account h1, .jssc-account h2, .jssc-account h3, .jssc-account h4,
.jssc-paywall h1, .jssc-paywall h2, .jssc-paywall h3, .jssc-paywall h4,
.jssc-product-page h1, .jssc-product-page h2, .jssc-product-page h3, .jssc-product-page h4 {
	-webkit-text-fill-color: unset;
	background: none;
	background-clip: unset;
	-webkit-background-clip: unset;
	text-shadow: none;
	border: none;
	letter-spacing: normal;
}

:root {
	--jssc-ink: #1B2A4A;
	--jssc-ink-soft: #3C4A6B;
	--jssc-paper: #F4F6FB;
	--jssc-card: #FFFFFF;
	--jssc-line: #D7DCE8;
	--jssc-gold: #C68A2E;
	--jssc-correct: #2E7D5B;
	--jssc-correct-bg: #E7F5EE;
	--jssc-wrong: #B0392C;
	--jssc-wrong-bg: #FBEBE8;
	--jssc-muted: #6B7385;
}

/* Page-navigation box rendered above the quiz card itself (and above the
   paywall/login-gate boxes) — see JSSC_MT_Shortcode::render_nav(). Sits
   outside .jssc-quiz so it always shows, even when the quiz below it is
   gated. A visitor toggles between three panes (Topic Tags / Back Button /
   Path Trail) via the button row; see the inline script render_nav() emits
   for the switching + localStorage-persistence behavior. */
.jssc-nav {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	background: var(--jssc-paper);
	border: 1px solid var(--jssc-line);
	border-radius: 8px;
	/* Top/bottom matches the 5px gap used around the dashed separator
	   above, so every vertical gap in this box (top edge → toggle row,
	   dashed line → pane content, pane content → bottom edge) reads as
	   the same 5px rhythm instead of the top/bottom edges being roomier. */
	padding: 5px 10px;
	margin-bottom: 12px;
}
.jssc-nav-toggle {
	display: flex;
	justify-content: center;
	gap: 4px;
	/* Symmetric gap above/below the dashed line — this used to be
	   padding-bottom:5px above it but margin-bottom:8px below it, so the
	   line sat visibly closer to the toggle buttons than to the pane
	   content underneath it instead of looking centered in its gap. */
	padding-bottom: 5px;
	border-bottom: 1px dashed var(--jssc-line);
	margin-bottom: 5px;
	flex-wrap: wrap;
}
.jssc-nav-toggle-btn {
	font-family: 'Inter', sans-serif;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--jssc-ink-soft) !important;
	background: #fff !important;
	border: 1px solid var(--jssc-line) !important;
	/* Soft-rounded rectangle, matching the approved mockup — not a
	   fully-rounded 999px pill/capsule shape. */
	border-radius: 5px;
	padding: 4px 11px;
	line-height: 1.4;
	cursor: pointer;
}
.jssc-nav-toggle-btn.is-active {
	background: var(--jssc-ink) !important;
	border-color: var(--jssc-ink) !important;
	color: #fff !important;
}
/* Centers whatever a pane shows (the pill row, the Back link, the
   breadcrumb) as a block within the nav box, instead of it sitting flush
   left — each of those is display:inline-flex precisely so this centers
   it as one unit while its own internal layout (item order, wrapping,
   horizontal scroll) is untouched. */
.jssc-nav-pane { min-height: 0; text-align: center; }

/* Topic Tags pane — bordered/backgrounded wrapper box matching the
   mockup's .pillnav, so the pill row reads as one horizontally-scrollable
   unit rather than loose floating tags. inline-flex (not flex) so the
   centering above works and the box only ever grows to fit its content
   or the pane's full width, whichever is smaller. */
.jssc-pill-row {
	display: inline-flex;
	max-width: 100%;
	flex-wrap: nowrap;
	overflow-x: auto;
	gap: 4px;
	padding: 2px;
	border: 1px solid var(--jssc-line);
	border-radius: 7px;
	background: #fff;
	text-align: left;
}
/* Renamed from .jssc-pill (what this was originally called) to
   .jssc-subject-pill — .jssc-pill was already used, long before this nav
   box existed, by the exam screen's +1/-0.25 marking-scheme badges (see
   the UNRELATED .jssc-pill rule further down this file, near
   .jssc-exam-qmeta). Same class name, lower in the file, same specificity
   (one class) → its font/padding/radius/shape silently won the cascade
   over this one, which is exactly why the Subject pill used to render
   with the scoring-badge's bigger monospace text and fully-rounded
   capsule shape instead of matching the toggle buttons/sibling tabs next
   to it. Renaming (not editing the scoring badge) avoids touching a
   long-standing, unrelated, widely-referenced class. */
.jssc-subject-pill {
	flex-shrink: 0;
	white-space: nowrap;
	/* Identical text size/padding/radius as .jssc-nav-toggle-btn above — the
	   toggle row and everything the panes below it show must read as one
	   consistent box style, not a mix of sizes. */
	font-family: 'Inter', sans-serif;
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--jssc-ink-soft) !important;
	background: transparent !important;
	/* Invisible but space-occupying border so active/inactive items share the
	   exact same box size — matching the mockup's .pill { border:1px solid
	   transparent; } */
	border: 1px solid transparent !important;
	border-radius: 5px;
	padding: 4px 11px;
}
.jssc-subject-pill--current {
	/* Same navy as the active toggle button, not a separate accent color —
	   see the comment on JSSC_MT_NAV_PILL_CURRENT_STYLE for why. */
	background: var(--jssc-ink) !important;
	border-color: var(--jssc-ink) !important;
	color: #fff !important;
}
.jssc-nav-empty { font-size: 12.5px; color: var(--jssc-muted); margin: 0; }

/* Sibling-content-type tabs shown alongside the Subject pills (e.g.
   "Previous Year Papers", "MCQs", "Practice Sets" next to a "CDP" pill) —
   share the exact same box model as .jssc-pill (per the approved mockup's
   single .pill/.pill.on class), just with a transparent, inactive look so
   the one highlighted Subject pill still reads as the "you are here" tag. */
.jssc-type-tab {
	flex-shrink: 0;
	white-space: nowrap;
	/* Identical box model to .jssc-pill / .jssc-nav-toggle-btn — see the
	   comment on .jssc-pill above. */
	font-family: 'Inter', sans-serif;
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--jssc-ink-soft) !important;
	background: transparent !important;
	border: 1px solid transparent !important;
	border-radius: 5px;
	padding: 4px 11px;
}
.jssc-type-tab:hover { text-decoration: underline; }

/* Back Button pane */
.jssc-nav-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	/* Identical box model to .jssc-nav-toggle-btn / .jssc-pill above. */
	font-family: 'Inter', sans-serif;
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--jssc-ink) !important;
	padding: 4px 11px;
	border: 1px solid var(--jssc-line);
	border-radius: 5px;
	background: #fff;
}
.jssc-nav-back:hover { text-decoration: underline; }

/* Path Trail pane — reuses the original breadcrumb markup/classes.
   inline-flex (not flex) so the .jssc-nav-pane centering above works. */
.jssc-crumb {
	display: inline-flex;
	max-width: 100%;
	align-items: center;
	gap: 5px;
	flex-wrap: nowrap;
	overflow: hidden;
	text-align: left;
	/* Identical box model to .jssc-nav-toggle-btn / .jssc-pill above. */
	font-family: 'Inter', sans-serif;
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--jssc-muted);
	padding: 4px 11px;
	border: 1px solid var(--jssc-line);
	border-radius: 5px;
	background: #fff;
}
.jssc-crumb a { color: var(--jssc-muted); flex-shrink: 0; }
.jssc-crumb a:hover { text-decoration: underline; }
.jssc-crumb-sep { flex-shrink: 0; }
.jssc-crumb-subject { flex-shrink: 0; color: var(--jssc-muted); }
.jssc-crumb-current {
	color: var(--jssc-ink);
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
	flex: 1 1 auto;
}
@media (max-width: 480px) {
	.jssc-nav { padding: 7px 9px; }
	.jssc-nav-toggle-btn { font-size: 11px; padding: 4px 9px; }
	.jssc-crumb { font-size: 11.5px; }
}

.jssc-quiz {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--jssc-ink);
	background: var(--jssc-paper);
	border: 1px solid var(--jssc-line);
	border-radius: 10px;
	max-width: 780px;
	margin: 16px auto;
	box-shadow: 0 1px 0 rgba(27,42,74,0.04);
	overflow: hidden;
}

.jssc-quiz * { box-sizing: border-box; }

.jssc-quiz .jssc-mono { font-family: 'IBM Plex Mono', monospace; }

/* ---------- Header strip: looks like an admit-card header ---------- */
.jssc-head {
	background: var(--jssc-ink);
	color: #fff;
	padding: 12px 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}
.jssc-head h3 {
	font-family: 'Zilla Slab', serif;
	font-weight: 700;
	font-size: 20px;
	margin: 0;
	letter-spacing: 0.2px;
	color: #fff;
}
.jssc-head .jssc-seal {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 11px;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--jssc-gold);
	border: 1px solid rgba(198,138,46,0.6);
	border-radius: 20px;
	padding: 4px 8px;
	white-space: nowrap;
}
.jssc-head-title { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

/* Item-type badge (Mock Test / Previous Year Paper / MCQ / Practice Set).
   Default variant sits on the dark .jssc-head strip; the --muted variant
   is for use on light backgrounds like the account dashboard table. */
.jssc-type-badge {
	display: inline-block;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--jssc-gold) !important;
	background: transparent !important;
	border: 1px solid rgba(198,138,46,0.6) !important;
	border-radius: 20px;
	padding: 3px 8px;
	white-space: nowrap;
}
.jssc-type-badge--muted {
	color: var(--jssc-ink-soft) !important;
	background: var(--jssc-paper) !important;
	border: 1px solid var(--jssc-line) !important;
}

/* ---------- Intro / start screen ---------- */
.jssc-intro { padding: 17px 16px; }
.jssc-intro p { color: var(--jssc-ink-soft); line-height: 1.6; }
.jssc-intro-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px,1fr));
	gap: 8px;
	margin: 12px 0 14px;
}
.jssc-intro-stats div {
	background: var(--jssc-card);
	border: 1px solid var(--jssc-line);
	border-radius: 8px;
	padding: 8px 10px;
}
.jssc-intro-stats .jssc-stat-num {
	font-family: 'Zilla Slab', serif;
	font-weight: 700;
	font-size: 22px;
	color: var(--jssc-ink);
	display: block;
}
.jssc-intro-stats .jssc-stat-label {
	font-size: 12px;
	color: var(--jssc-muted);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.jssc-resume-banner {
	background: #FFF8E6;
	border: 1px solid #F0C36D;
	border-radius: 8px;
	padding: 12px 14px;
	margin-bottom: 14px;
}
.jssc-resume-banner p { margin: 0 0 10px; color: #7A5A12; font-size: 14px; }
.jssc-resume-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.jssc-mode-choice { margin: 12px 0; }
.jssc-mode-choice legend {
	font-weight: 600;
	margin-bottom: 6px;
}
.jssc-mode-choice label {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 8px;
	border: 1px solid var(--jssc-line) !important;
	border-radius: 8px;
	margin-bottom: 6px;
	cursor: pointer;
	background: var(--jssc-card) !important;
	color: var(--jssc-ink) !important;
}
.jssc-mode-choice input { accent-color: var(--jssc-ink); }

.jssc-btn {
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 14px;
	border: none !important;
	border-radius: 7px;
	padding: 8px 13px;
	box-sizing: border-box;
	cursor: pointer;
	transition: transform 0.05s ease, opacity 0.15s ease;
	text-shadow: none !important;
	box-shadow: none !important;
}
.jssc-btn:active { transform: scale(0.98); }
.jssc-btn-primary,
a.jssc-btn.jssc-btn-primary,
button.jssc-btn.jssc-btn-primary {
	background: var(--jssc-ink) !important;
	background-color: var(--jssc-ink) !important;
	color: #ffffff !important;
	border: none !important;
	-webkit-text-fill-color: #ffffff !important;
	background-clip: initial !important;
	-webkit-background-clip: initial !important;
	text-shadow: none !important;
	opacity: 1 !important;
}
.jssc-btn-primary:hover,
a.jssc-btn.jssc-btn-primary:hover,
button.jssc-btn.jssc-btn-primary:hover {
	opacity: 0.9 !important;
	background: var(--jssc-ink) !important;
	background-color: var(--jssc-ink) !important;
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
}
.jssc-btn-gold { background: var(--jssc-gold) !important; color: #fff !important; }
.jssc-btn-gold:hover { opacity: 0.9 !important; background: var(--jssc-gold) !important; color: #fff !important; }
.jssc-btn-ghost { background: transparent !important; color: var(--jssc-ink) !important; border: 1px solid var(--jssc-line) !important; }
.jssc-btn-ghost:hover { background: #fff !important; }
/* On a dark background (the coupon "Apply" button, inside the price
   box), the regular ghost hover above would swap in a WHITE background
   under WHITE text — invisible again. Give it its own hover instead: a
   soft translucent white tint that still reads against the dark card. */
.jssc-btn-ghost-ondark:hover { background: rgba(255, 255, 255, 0.12) !important; border-color: #fff !important; }
.jssc-btn-ghost-ondark:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.jssc-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- Running test layout ---------- */
.jssc-run { display: grid; grid-template-columns: 1fr 172px; }
@media (max-width: 640px) {
	.jssc-run { grid-template-columns: 1fr; }
	.jssc-nav-panel { order: 2; border-top: 1px solid var(--jssc-line); border-left: none !important; }
}

.jssc-run-main { padding: 14px 16px; border-right: 1px solid var(--jssc-line); }

.jssc-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 11px;
}
.jssc-progress-text {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	color: var(--jssc-muted);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.jssc-timer {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 15px;
	font-weight: 600;
	background: var(--jssc-card);
	border: 1px solid var(--jssc-line);
	border-radius: 6px;
	padding: 4px 8px;
	color: var(--jssc-ink);
}
.jssc-timer.jssc-timer-low { color: var(--jssc-wrong); border-color: var(--jssc-wrong); }

.jssc-q-text {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	font-weight: 500;
	font-size: 17px;
	line-height: 1.5;
	margin: 4px 0 12px;
}

/* ---------- OMR-style bubble options ---------- */
.jssc-options { display: flex; flex-direction: column; gap: 8px; }
.jssc-option {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 8px 10px;
	border: 1px solid var(--jssc-line) !important;
	border-radius: 8px;
	background: var(--jssc-card) !important;
	cursor: pointer;
	transition: border-color 0.12s ease, background 0.12s ease;
}
.jssc-option:hover { border-color: var(--jssc-ink-soft) !important; }
.jssc-option .jssc-bubble {
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 2px solid var(--jssc-ink-soft) !important;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	font-weight: 600;
	color: var(--jssc-ink-soft) !important;
	background: transparent !important;
	flex-shrink: 0;
}
.jssc-option.jssc-selected { border-color: var(--jssc-ink) !important; background: #EEF1FA !important; }
.jssc-option.jssc-selected .jssc-bubble { background: var(--jssc-ink) !important; color: #fff !important; border-color: var(--jssc-ink) !important; }
.jssc-option .jssc-option-text { font-size: 14.5px; line-height: 1.5; color: var(--jssc-ink) !important; }

.jssc-option.jssc-correct { border-color: var(--jssc-correct) !important; background: var(--jssc-correct-bg) !important; }
.jssc-option.jssc-correct .jssc-bubble { background: var(--jssc-correct) !important; color: #fff !important; border-color: var(--jssc-correct) !important; }
.jssc-option.jssc-wrong { border-color: var(--jssc-wrong) !important; background: var(--jssc-wrong-bg) !important; }
.jssc-option.jssc-wrong .jssc-bubble { background: var(--jssc-wrong) !important; color: #fff !important; border-color: var(--jssc-wrong) !important; }

.jssc-explain {
	margin-top: 8px;
	padding: 8px 8px;
	background: #FBF7EE;
	border-left: 3px solid var(--jssc-gold);
	border-radius: 4px;
	font-size: 16px;
	color: var(--jssc-ink-soft);
	line-height: 1.55;
}
.jssc-explain-text {
	margin-top: 8px;
}

/* ---------- Question/option images (both exam-run and review screens) ---------- */
.jssc-option-body,
.jssc-exam-option .jssc-option-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
	min-width: 0;
}
.jssc-q-image {
	display: block;
	max-width: 100%;
	height: auto;
	max-height: 340px;
	border-radius: 8px;
	margin: 8px 0;
	object-fit: contain;
}
.jssc-option-image {
	display: block;
	max-width: 260px;
	width: auto;
	height: auto;
	max-height: 100px;
	border-radius: 6px;
	object-fit: contain;
}

.jssc-run-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 14px;
}
.jssc-run-footer .jssc-right-actions { display: flex; gap: 6px; }

/* ---------- Roll-number style question navigator ---------- */
.jssc-nav-panel { padding: 12px 10px; }
.jssc-nav-title {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: var(--jssc-muted);
	margin-bottom: 8px;
	font-weight: 600;
}
.jssc-nav-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 4px;
}
.jssc-nav-cell {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	font-weight: 600;
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 5px;
	border: 1px solid var(--jssc-line) !important;
	background: var(--jssc-card) !important;
	color: var(--jssc-ink-soft) !important;
	cursor: pointer;
	text-shadow: none !important;
	box-shadow: none !important;
}
.jssc-nav-cell.jssc-nav-answered { background: var(--jssc-ink) !important; border-color: var(--jssc-ink) !important; color: #fff !important; }
.jssc-nav-cell.jssc-nav-current { outline: 2px solid var(--jssc-gold); outline-offset: 1px; }

.jssc-nav-legend { margin-top: 10px; font-size: 11.5px; color: var(--jssc-muted); }
.jssc-nav-legend div { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.jssc-nav-legend span.dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ---------- Results screen ---------- */
.jssc-results { padding: 12px 11px; }
.jssc-score-banner {
	text-align: center;
	padding: 16px 13px;
	border-radius: 10px;
	background: var(--jssc-card);
	border: 1px solid var(--jssc-line);
	margin-bottom: 13px;
}
.jssc-score-banner .jssc-score-num {
	font-family: 'Zilla Slab', serif;
	font-weight: 700;
	font-size: 44px;
	color: var(--jssc-ink);
}
.jssc-score-banner .jssc-score-pct { font-size: 16px; color: var(--jssc-muted); margin-top: 4px; }
.jssc-score-banner .jssc-verdict {
	display: inline-block;
	margin-top: 8px;
	font-size: 12.5px;
	font-weight: 600;
	padding: 4px 8px;
	border-radius: 20px;
}
.jssc-verdict.pass { background: var(--jssc-correct-bg); color: var(--jssc-correct); }
.jssc-verdict.fail { background: var(--jssc-wrong-bg); color: var(--jssc-wrong); }

.jssc-summary-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-bottom: 14px;
}
.jssc-summary-row div {
	text-align: center;
	padding: 8px 6px;
	border-radius: 8px;
	border: 1px solid var(--jssc-line);
	background: var(--jssc-card);
}
.jssc-summary-row .num { font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 20px; display: block; }
.jssc-summary-row .lbl { font-size: 11px; color: var(--jssc-muted); text-transform: uppercase; letter-spacing: 0.4px; }
.jssc-summary-row .correct .num { color: var(--jssc-correct); }
.jssc-summary-row .wrong .num { color: var(--jssc-wrong); }

/* Rank/percentile/accuracy card — starts as a "calculating…" placeholder
   (renderResults() in quiz.js) and is filled in by renderRankCard() once
   the save-result AJAX call returns with the real numbers. */
.jssc-rank-card {
	margin-bottom: 14px;
	padding: 12px 11px;
	border-radius: 10px;
	border: 1px solid var(--jssc-line);
	background: var(--jssc-card);
}
.jssc-rank-card--loading {
	text-align: center;
	padding: 16px 11px;
}
.jssc-rank-loading-text {
	font-size: 13px;
	color: var(--jssc-muted);
}
.jssc-rank-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
	gap: 8px;
}
.jssc-rank-tiles .jssc-rank-tile {
	text-align: center;
	padding: 8px 6px;
	border-radius: 8px;
	border: 1px solid var(--jssc-line);
	background: var(--jssc-paper);
}
.jssc-rank-tile-num {
	display: block;
	font-family: 'IBM Plex Mono', monospace;
	font-weight: 700;
	font-size: 19px;
	color: var(--jssc-gold);
}
.jssc-rank-tile-label {
	font-size: 10.5px;
	color: var(--jssc-muted);
	text-transform: uppercase;
	letter-spacing: 0.3px;
}
.jssc-rank-tile-label small { text-transform: none; letter-spacing: 0; display: block; font-size: 10px; }

.jssc-top-scorers { margin-top: 12px; }
.jssc-top-scorers-title {
	font-family: 'Zilla Slab', serif;
	font-weight: 700;
	font-size: 14px;
	color: var(--jssc-ink);
	margin-bottom: 6px;
}
.jssc-top-scorers ol {
	list-style: decimal;
	margin: 0;
	padding-left: 20px;
}
.jssc-top-scorers li {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	padding: 3px 0;
	border-bottom: 1px dashed var(--jssc-line);
}
.jssc-top-scorers li:last-child { border-bottom: none; }
.jssc-top-scorer-score { font-family: 'IBM Plex Mono', monospace; font-weight: 600; color: var(--jssc-ink); }

/* "My Results" history table: compact rank chip next to the percentile pill */
.jssc-rank-chip {
	display: inline-block;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--jssc-ink-soft) !important;
	margin-right: 4px;
	white-space: nowrap;
}

/* Standalone "Leaderboard" dashboard tab: pill picker to switch between the
   student's attempted tests, plus a full ranked table per test. */
.jssc-lb-picker {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 14px;
	max-height: 220px;
	overflow-y: auto;
	padding: 2px 2px 2px 0;
}
.jssc-lb-search {
	display: block;
	width: 100%;
	max-width: 320px;
	padding: 8px 12px;
	margin-bottom: 10px;
	border: 1.5px solid var(--jssc-line) !important;
	border-radius: 8px;
	font-size: 13.5px;
	color: var(--jssc-ink) !important;
	background: #fff !important;
	box-sizing: border-box;
}
.jssc-lb-search:focus { outline: none; border-color: var(--jssc-ink) !important; }
.jssc-lb-search-empty { font-size: 13px; color: var(--jssc-ink-soft) !important; padding: 8px 0; }
.jssc-lb-pick {
	font: inherit;
	font-size: 13px;
	padding: 7px 14px;
	border-radius: 999px;
	border: 1px solid var(--jssc-line) !important;
	background: var(--jssc-paper) !important;
	color: var(--jssc-ink-soft) !important;
	text-decoration: none !important;
	cursor: pointer;
}
.jssc-lb-pick.active { background: var(--jssc-ink) !important; border-color: var(--jssc-ink) !important; color: #fff !important; }
.jssc-lb-pick:not(.active):hover { background: #DCE3F2 !important; color: var(--jssc-ink-soft) !important; }

/* Subject tabs sit above the test picker — a short, fixed-length row (one
   per Subject term, plus "Other" for untagged tests) that stays the same
   size no matter how many tests a student has attempted, so the picker
   below it never grows into a long wall of pills again. Only one
   .jssc-lb-picker-group (the active subject's test list) is shown at a
   time; switching tabs just toggles which one, same as .jssc-lb-board. */
.jssc-lb-subjects {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--jssc-line);
}
.jssc-lb-subject-tab {
	font: inherit;
	font-size: 13.5px;
	font-weight: 600;
	padding: 8px 16px;
	border-radius: 8px;
	border: 1px solid var(--jssc-line) !important;
	background: #fff !important;
	color: var(--jssc-ink) !important;
	text-decoration: none !important;
	cursor: pointer;
}
.jssc-lb-subject-tab.active { background: var(--jssc-gold, #C9971C) !important; border-color: var(--jssc-gold, #C9971C) !important; color: #fff !important; }
.jssc-lb-subject-tab:not(.active):hover { background: var(--jssc-paper) !important; color: var(--jssc-ink) !important; }

.jssc-lb-picker-group { display: none; }
.jssc-lb-picker-group.active { display: block; }

.jssc-lb-board { display: none; }
.jssc-lb-board.active { display: block; }

.jssc-lb-mine {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--jssc-ink);
	background: var(--jssc-gold-bg, #FBF3DC);
	border: 1px solid var(--jssc-gold, #C9971C);
	border-radius: 8px;
	padding: 8px 12px;
	margin-bottom: 10px;
}

.jssc-lb-table tr.jssc-lb-row--me { background: var(--jssc-gold-bg, #FBF3DC); font-weight: 600; }
.jssc-lb-you-tag {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	background: var(--jssc-gold, #C9971C);
	color: #fff;
	border-radius: 4px;
	padding: 1px 6px;
	margin-left: 6px;
	vertical-align: middle;
}

/* Final results screen: per-section score breakdown table (Full Mock
   Tests only — reuses the same table look as the pre-submit summary
   modal, .jssc-submit-table, for visual consistency). */
.jssc-section-results { margin-bottom: 14px; }
.jssc-section-results-title {
	font-family: 'Zilla Slab', serif;
	font-weight: 700;
	font-size: 15px;
	color: var(--jssc-ink);
	text-align: center;
	background: #EAF3FB;
	padding: 6px 8px;
	border-radius: 6px;
	margin-bottom: 8px;
}
.jssc-section-results .jssc-submit-table-wrap { padding: 0; border: 1px solid var(--jssc-line); border-radius: 8px; }
.jssc-sr-correct { color: var(--jssc-correct); font-weight: 600; }
.jssc-sr-wrong { color: var(--jssc-wrong); font-weight: 600; }

.jssc-results-actions { display: flex; gap: 8px; justify-content: center; margin-bottom: 4px; }

.jssc-review-list { margin-top: 10px; display: none; }
.jssc-review-list.jssc-open { display: block; }
.jssc-review-item {
	padding: 8px 0;
	border-top: 1px solid var(--jssc-line);
}
.jssc-review-item:first-child { border-top: none; }
.jssc-review-item .jssc-q-text { font-size: 15px; margin: 0 0 6px; }

.jssc-review-heading {
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: var(--jssc-ink);
	margin-bottom: 8px;
}
.jssc-review-section-tabs { border-bottom: none; border-radius: 6px; padding: 6px 8px; margin-bottom: 4px; }
.jssc-review-section-body .jssc-review-item:first-child { border-top: none; }

/* =====================================================================
   Exam interface — question-paper style layout (palette, timer, etc.)
   ===================================================================== */
.jssc-quiz.jssc-quiz { max-width: none; border-radius: 10px; }

/* ---------- Fullscreen mode: make the element itself scrollable ---------- */
/* Without this, mobile browsers put the fullscreen element in a fixed-size
   box with no scroll context, trapping content (e.g. the Submit button)
   below the visible area. */
.jssc-quiz:fullscreen,
.jssc-quiz:-webkit-full-screen,
.jssc-quiz:-moz-full-screen,
.jssc-quiz:-ms-fullscreen {
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	width: 100%;
	height: 100%;
	background: var(--jssc-paper);
}
.jssc-quiz:fullscreen .jssc-exam-body,
.jssc-quiz:-webkit-full-screen .jssc-exam-body,
.jssc-quiz:-moz-full-screen .jssc-exam-body,
.jssc-quiz:-ms-fullscreen .jssc-exam-body {
	min-height: 0;
}
.jssc-quiz::backdrop { background: var(--jssc-paper); }

/* Fallback for browsers without the Fullscreen API (notably iOS Safari) */
.jssc-quiz.jssc-fake-fullscreen {
	position: fixed;
	inset: 0;
	z-index: 999999;
	width: 100%;
	height: 100%;
	max-height: 100%;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: 0;
	margin: 0;
}

.jssc-exam {
	background: var(--jssc-paper);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--jssc-ink);
}

/* ---------- Top bar: brand, countdown, fullscreen/pause ---------- */
.jssc-exam-topbar {
	background: var(--jssc-ink);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 13px;
	flex-wrap: wrap;
}
.jssc-exam-brand {
	font-family: 'Zilla Slab', serif;
	font-weight: 700;
	font-size: 17px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.jssc-exam-timewrap { display: flex; align-items: center; gap: 6px; }
.jssc-exam-timelabel { font-size: 12.5px; color: #C7CEE0; white-space: nowrap; }
.jssc-exam-timebox {
	background: rgba(255,255,255,0.12);
	border: 1px solid rgba(255,255,255,0.25);
	border-radius: 6px;
	padding: 4px 8px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.5px;
}
.jssc-exam-timebox.jssc-timer-low { background: var(--jssc-wrong); border-color: var(--jssc-wrong); }
.jssc-exam-topbtns { display: flex; gap: 6px; }
.jssc-exam-topbtn {
	font-family: 'Inter', sans-serif;
	font-size: 12.5px;
	font-weight: 600;
	background: transparent !important;
	color: #fff !important;
	border: 1px solid rgba(255,255,255,0.4) !important;
	border-radius: 6px;
	padding: 5px 8px;
	cursor: pointer;
	white-space: nowrap;
	text-shadow: none !important;
	box-shadow: none !important;
}
.jssc-exam-topbtn:hover { background: rgba(255,255,255,0.12) !important; }
.jssc-exam-pausebtn { background: var(--jssc-gold) !important; border-color: var(--jssc-gold) !important; }
.jssc-exam-pausebtn:hover { opacity: 0.9; background: var(--jssc-gold) !important; }

/* ---------- Question meta bar: Question No. / Marks / Time ---------- */
.jssc-exam-qbar {
	background: #fff;
	border-bottom: 1px solid var(--jssc-line);
	padding: 8px 13px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
}
.jssc-exam-qno { font-weight: 700; font-size: 15px; }
.jssc-exam-qmeta { display: flex; align-items: center; gap: 14px; }
.jssc-exam-meta-block { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--jssc-muted); }
.jssc-exam-meta-block .jssc-mono { color: var(--jssc-ink); font-weight: 600; font-size: 13.5px; }
.jssc-pill {
	display: inline-block;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	font-weight: 700;
	color: #fff !important;
	border-radius: 20px;
	padding: 2px 7px;
}
.jssc-pill-pos { background: var(--jssc-correct) !important; }
.jssc-pill-neg { background: var(--jssc-wrong) !important; }

/* ---------- Body: main question panel + right sidebar ---------- */
.jssc-exam-body {
	display: grid;
	grid-template-columns: 1fr 300px;
	align-items: start;
}
@media (max-width: 780px) {
	.jssc-exam-body { grid-template-columns: 1fr; }
	.jssc-exam-side { border-left: none !important; border-top: 1px solid var(--jssc-line); }
}

/* ---------- Mobile: tighter padding everywhere + smaller palette ---------- */
@media (max-width: 480px) {
	.jssc-exam-topbar { padding: 8px 8px; gap: 6px; }
	.jssc-exam-brand { font-size: 14px; }
	.jssc-exam-timelabel { display: none; }
	.jssc-exam-timebox { font-size: 12.5px; padding: 4px 6px; }
	.jssc-exam-topbtn { font-size: 11px; padding: 4px 6px; }

	.jssc-exam-qbar { padding: 8px 8px; }
	.jssc-exam-qno { font-size: 13.5px; }
	.jssc-exam-qmeta { gap: 8px; }

	.jssc-exam-main { padding: 8px 4px 10px; min-height: 0; }
	.jssc-exam-qtext { font-size: 15.5px; margin-bottom: 10px; }
	.jssc-exam-options { gap: 2px; }
	.jssc-exam-option { padding: 6px 2px; gap: 8px; }
	.jssc-exam-option .jssc-option-text { font-size: 17px; }

	.jssc-exam-footer { gap: 6px; margin-top: 12px; padding-top: 8px; }
	.jssc-exam-btn { padding: 7px 8px; font-size: 12px; }
	.jssc-exam-footer-right { gap: 4px; }

	.jssc-exam-side { padding: 8px 8px; }
	.jssc-exam-candidate { margin-bottom: 8px; }
	.jssc-exam-avatar { width: 30px; height: 30px; font-size: 11px; }
	.jssc-exam-cname { font-size: 13px; }

	.jssc-exam-counts { margin-bottom: 8px; }
	.jssc-exam-count-row { gap: 4px 8px; margin-bottom: 4px; }
	.jssc-count-item { font-size: 11px; }
	.jssc-count-item b { font-size: 12px; }
	.jssc-count-dot, .jssc-count-box { width: 10px; height: 10px; }

	.jssc-section-tabs { gap: 4px; padding: 6px 8px; }
	.jssc-section-tab { font-size: 10.5px; padding: 4px 6px !important; }
	.jssc-section-tabs-label { font-size: 10.5px; width: 100%; margin-bottom: 2px; }

	.jssc-exam-testtype { padding: 6px 8px; font-size: 11.5px; margin-bottom: 8px; }

	/* Palette already compact by default; just tighten a touch further on very small screens */
	.jssc-exam-palette-wrap { max-height: 300px; margin-bottom: 8px; }
	.jssc-palette-section-head { font-size: 10px; padding: 4px 2px 4px; margin-bottom: 4px; }
	.jssc-exam-palette { gap: 4px; margin-bottom: 8px; }
	.jssc-palette-cell { height: 24px; }
	.jssc-pc-shape { font-size: 10px; }
	.jssc-pc-shape.jssc-pc-marked-answered::after { width: 7px; height: 7px; top: -2px; right: -2px; }

	.jssc-exam-side-bottom { gap: 4px; margin-bottom: 8px; }
	.jssc-exam-side-btn { font-size: 11px; padding: 6px 4px; }
	.jssc-exam-submit-btn { padding: 8px; font-size: 13px; }

	.jssc-intro { padding: 12px 10px; }
	.jssc-intro-stats { gap: 6px; margin: 8px 0 11px; }

	.jssc-results { padding: 10px 8px; }
	.jssc-review-list { margin-top: 8px; }
	.jssc-review-item { padding: 8px 0; }
	.jssc-review-item .jssc-q-text { font-size: 14.5px; margin-bottom: 4px; }
	.jssc-explain { margin-top: 6px; padding: 6px 8px; font-size: 14px; }

	.jssc-qpaper-overlay { padding: 0; }
	.jssc-qpaper-box { max-height: 100vh; border-radius: 0; }
	.jssc-qpaper-header { padding: 8px 8px; }
	.jssc-qpaper-body { padding: 8px 8px; }
	.jssc-qpaper-body .jssc-review-item { padding: 8px 0; }

	.jssc-submit-overlay { padding: 0; align-items: flex-end; }
	.jssc-submit-box { max-height: 92vh; border-radius: 12px 12px 0 0; }
	.jssc-submit-header { padding: 8px 8px; font-size: 14.5px; }
	.jssc-submit-tiles { grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 8px 8px; }
	.jssc-submit-tile { padding: 6px 8px; }
	.jssc-submit-tile-num { font-size: 16px; }
	.jssc-submit-tile-label { font-size: 10.5px; }
	.jssc-submit-table-wrap { padding: 0 8px 8px; }
	.jssc-submit-table { min-width: 420px; font-size: 12px; }
	.jssc-submit-table th, .jssc-submit-table td { padding: 4px 6px; }
	.jssc-submit-actions { padding: 8px 8px; }
}

.jssc-exam-main { padding: 16px 10px 14px; border-right: 1px solid var(--jssc-line); background: #fff; min-height: 340px; }

.jssc-exam-qtext {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	font-weight: 500;
	font-size: 17px;
	line-height: 1.6;
	margin-bottom: 14px;
}

.jssc-exam-options { display: flex; flex-direction: column; gap: 4px; }
.jssc-exam-option {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 8px 4px;
	cursor: pointer;
	border-radius: 6px;
}
.jssc-exam-option:hover { background: #F4F6FB; }
.jssc-exam-option:focus-visible,
.jssc-palette-cell:focus-visible,
.jssc-section-tab:focus-visible {
	outline: 2px solid #2563EB;
	outline-offset: 2px;
}
.jssc-exam-option .jssc-radio {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid #9AA3BD;
	position: relative;
	flex-shrink: 0;
	margin-top: 4px;
}
.jssc-exam-option.jssc-selected .jssc-radio { border-color: var(--jssc-ink); }
.jssc-exam-option.jssc-selected .jssc-radio::after,
.jssc-exam-option.jssc-correct .jssc-radio::after,
.jssc-exam-option.jssc-wrong .jssc-radio::after {
	content: '';
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	background: var(--jssc-ink);
}
.jssc-exam-option .jssc-option-text { font-size: 17px; line-height: 1.5; }
.jssc-exam-option.jssc-correct .jssc-radio { border-color: var(--jssc-correct); }
.jssc-exam-option.jssc-correct .jssc-radio::after { background: var(--jssc-correct); }
.jssc-exam-option.jssc-correct { background: var(--jssc-correct-bg); }
.jssc-exam-option.jssc-wrong .jssc-radio { border-color: var(--jssc-wrong); }
.jssc-exam-option.jssc-wrong .jssc-radio::after { background: var(--jssc-wrong); }
.jssc-exam-option.jssc-wrong { background: var(--jssc-wrong-bg); }

.jssc-exam-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 17px;
	padding-top: 12px;
	border-top: 1px solid var(--jssc-line);
}
.jssc-exam-footer-right { display: flex; gap: 6px; margin-left: auto; }
.jssc-exam-btn {
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: 13px;
	border-radius: 6px;
	padding: 8px 11px;
	cursor: pointer;
	border: 1px solid var(--jssc-line) !important;
	background: #EEF1FA !important;
	color: var(--jssc-ink) !important;
	white-space: nowrap;
	text-shadow: none !important;
	box-shadow: none !important;
}
.jssc-exam-btn:hover { opacity: 0.85; }
.jssc-exam-btn-ghost { background: #EEF1FA !important; }
.jssc-exam-btn-primary { background: var(--jssc-ink) !important; color: #fff !important; border-color: var(--jssc-ink) !important; }

/* ---------- Sidebar: candidate, counts, palette, actions ---------- */
.jssc-exam-side { background: #EAF3FB; padding: 12px 11px; }
.jssc-exam-candidate { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; }
.jssc-exam-avatar {
	width: 38px; height: 38px; border-radius: 50%;
	background: var(--jssc-ink);
	color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-weight: 700; font-size: 13px;
	flex-shrink: 0;
}
.jssc-exam-cname { font-weight: 700; font-size: 14.5px; }

.jssc-exam-counts { margin-bottom: 11px; }
.jssc-exam-count-row { display: flex; flex-wrap: wrap; gap: 8px 11px; margin-bottom: 6px; }
.jssc-count-item { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--jssc-ink-soft); }
.jssc-count-item b { color: var(--jssc-ink); font-size: 13px; }
.jssc-count-dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; flex-shrink: 0; }
.jssc-count-box { width: 12px; height: 12px; border-radius: 3px; display: inline-block; background: #fff; border: 1px solid #9AA3BD; flex-shrink: 0; }
.jssc-dot-green { background: #3EA45E; }
.jssc-dot-purple { background: #7B4FA6; }
.jssc-dot-red { background: #D8453B; }
.jssc-dot-purple-green {
	background: #7B4FA6;
	position: relative;
}
.jssc-dot-purple-green::after {
	content: '';
	position: absolute;
	right: -2px; bottom: -2px;
	width: 6px; height: 6px;
	border-radius: 50%;
	background: #3EA45E;
	border: 1px solid #fff;
}

.jssc-section-tabs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	background: #EAF3FB;
	border-bottom: 1px solid var(--jssc-line);
	padding: 8px 10px;
}
.jssc-section-tabs-label {
	font-family: 'Inter', sans-serif;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--jssc-ink);
	margin-right: 2px;
	flex-shrink: 0;
}
.jssc-section-tab {
	font-family: 'Inter', sans-serif;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--jssc-ink-soft) !important;
	background: #DCE8F5 !important;
	border: 1px solid transparent !important;
	border-radius: 4px;
	padding: 6px 10px !important;
	cursor: pointer;
	text-shadow: none !important;
	box-shadow: none !important;
	outline: none !important;
}
.jssc-section-tab:hover,
.jssc-section-tab:focus {
	background: #CBDCF0 !important;
	color: var(--jssc-ink-soft) !important;
	border-color: transparent !important;
	box-shadow: none !important;
	outline: none !important;
}
.jssc-section-tab-active,
.jssc-section-tab-active:hover,
.jssc-section-tab-active:focus,
.jssc-section-tab-active:active {
	background: var(--jssc-ink) !important;
	color: #fff !important;
	border-color: var(--jssc-ink) !important;
	box-shadow: none !important;
	outline: none !important;
}

.jssc-exam-testtype {
	background: #EAF3FB;
	border: 1px solid #CBDCF0;
	border-radius: 6px;
	padding: 8px 8px;
	margin-bottom: 8px;
	text-align: center;
	font-family: 'Inter', sans-serif;
	font-size: 12.5px;
}
.jssc-exam-testtype-label { font-weight: 700; color: var(--jssc-ink-soft); }
.jssc-exam-testtype-value { font-weight: 700; color: var(--jssc-ink); }

/* Whole-test palette: every section's questions, stacked and directly
   clickable, in one scrollable panel — no need to click a section tab
   first just to reach a question that belongs to a different section. */
.jssc-exam-palette-wrap {
	max-height: 360px;
	overflow-y: auto;
	margin-bottom: 10px;
	padding-right: 2px;
}
.jssc-palette-section-head {
	font-family: 'Inter', sans-serif;
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--jssc-ink-soft);
	padding: 4px 2px 4px;
	border-bottom: 1px solid #CBDCF0;
	margin-bottom: 4px;
}
.jssc-palette-section-head:first-child { padding-top: 0; }
.jssc-palette-section-head-active { color: var(--jssc-ink); }

.jssc-exam-palette {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 4px;
	margin-bottom: 12px;
}
.jssc-exam-palette-wrap .jssc-exam-palette { margin-bottom: 10px; }
.jssc-exam-palette-wrap .jssc-exam-palette:last-child { margin-bottom: 0; }
.jssc-palette-cell {
	width: 100%;
	height: 28px;
	border: none;
	background: transparent;
	padding: 0;
	cursor: pointer;
	border-radius: 4px;
	position: relative;
}
.jssc-palette-cell:hover .jssc-pc-shape { filter: brightness(0.96); }
.jssc-pc-current { box-shadow: 0 0 0 2px var(--jssc-gold); border-radius: 4px; }


.jssc-pc-shape {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 11.5px;
	font-weight: 700;
	color: var(--jssc-ink) !important;
	position: relative;
	border-radius: 4px;
	border: 1px solid #C4CEE0 !important;
	background: #fff !important;
}
.jssc-pc-shape.jssc-pc-not-visited { background: #fff !important; color: var(--jssc-ink) !important; }
.jssc-pc-shape.jssc-pc-answered { background: #3EA45E !important; border-color: #3EA45E !important; color: #fff !important; }
.jssc-pc-shape.jssc-pc-not-answered { background: #D8453B !important; border-color: #D8453B !important; color: #fff !important; }
.jssc-pc-shape.jssc-pc-marked { background: #7B4FA6 !important; border-color: #7B4FA6 !important; color: #fff !important; }
.jssc-pc-shape.jssc-pc-marked-answered { background: #7B4FA6 !important; border-color: #7B4FA6 !important; color: #fff !important; }
.jssc-pc-shape.jssc-pc-marked-answered::after {
	content: '';
	position: absolute;
	top: -3px; right: -3px;
	width: 8px; height: 8px;
	border-radius: 50%;
	background: #3EA45E;
	border: 1.5px solid #fff;
}

.jssc-exam-side-bottom { display: flex; gap: 6px; margin-bottom: 10px; }
.jssc-exam-side-btn {
	flex: 1;
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 600;
	background: #fff !important;
	border: 1px solid #C4CEE0 !important;
	color: var(--jssc-ink) !important;
	border-radius: 6px;
	padding: 7px 4px;
	cursor: pointer;
	text-shadow: none !important;
	box-shadow: none !important;
}
.jssc-exam-side-btn:hover { background: #F4F6FB !important; }

.jssc-exam-submit-btn {
	width: 100%;
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	font-size: 14px;
	background: var(--jssc-gold) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 6px;
	padding: 8px;
	cursor: pointer;
	text-shadow: none !important;
	box-shadow: none !important;
}
.jssc-exam-submit-btn:hover { opacity: 0.9; background: var(--jssc-gold) !important; }

/* ---------- Pause overlay ---------- */
.jssc-exam-pause-overlay {
	position: absolute;
	inset: 0;
	background: rgba(27,42,74,0.85);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 5;
}
.jssc-exam-pause-box {
	background: #fff;
	border-radius: 10px;
	padding: 17px 20px;
	text-align: center;
	font-weight: 700;
	font-size: 16px;
	color: var(--jssc-ink);
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
}
.jssc-exam-is-paused { position: relative; }

.jssc-report-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: none !important;
	background: transparent !important;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	border-radius: 6px;
	opacity: 0.75;
	transition: opacity 0.15s ease, background-color 0.15s ease;
}
.jssc-report-icon-btn:hover { opacity: 1; background: #FBEBE8 !important; }

/* ---------- Report-a-question modal ---------- */
.jssc-report-overlay {
	position: fixed;
	inset: 0;
	background: rgba(27,42,74,0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 20;
	padding: 11px;
	box-sizing: border-box;
}
.jssc-report-box {
	background: #fff;
	border-radius: 10px;
	padding: 16px;
	width: 100%;
	max-width: 420px;
	box-sizing: border-box;
}
.jssc-report-box h4 {
	margin: 0 0 11px;
	font-family: 'Zilla Slab', serif;
	font-size: 17px;
	color: var(--jssc-ink);
}
.jssc-report-label {
	display: block;
	margin-bottom: 10px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--jssc-ink-soft);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}
.jssc-report-select,
.jssc-report-textarea {
	display: block;
	width: 100%;
	margin-top: 4px;
	padding: 8px 8px;
	border: 1.5px solid var(--jssc-line) !important;
	border-radius: 8px;
	font-size: 14px;
	font-family: 'Inter', sans-serif;
	font-weight: 400;
	text-transform: none;
	letter-spacing: normal;
	color: var(--jssc-ink) !important;
	background: #fff !important;
	box-sizing: border-box;
}
.jssc-report-textarea { resize: vertical; }
.jssc-report-msg { min-height: 18px; font-size: 12.5px; margin-bottom: 4px; }
.jssc-report-msg-error { color: var(--jssc-wrong); font-weight: 600; }
.jssc-report-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 4px; }
.jssc-report-thanks { font-size: 14.5px; color: var(--jssc-correct); font-weight: 600; margin: 0 0 11px; }

/* ---------- Question Paper modal ---------- */
.jssc-qpaper-overlay {
	position: fixed;
	inset: 0;
	background: rgba(27,42,74,0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 20;
	padding: 11px;
	box-sizing: border-box;
}
.jssc-qpaper-box {
	background: #fff;
	border-radius: 10px;
	width: 100%;
	max-width: 680px;
	max-height: 85vh;
	overflow-y: auto;
	box-sizing: border-box;
}
.jssc-qpaper-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 11px;
	border-bottom: 1px solid var(--jssc-line);
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 1;
}
.jssc-qpaper-header h4 {
	margin: 0;
	font-family: 'Zilla Slab', serif;
	font-size: 16px;
	color: var(--jssc-ink);
}
.jssc-qpaper-actions { display: flex; gap: 6px; flex-shrink: 0; }
.jssc-qpaper-body { padding: 10px 11px; }
.jssc-qpaper-body .jssc-review-item { padding: 8px 0; margin-bottom: 0; }

/* ---------- Submit-summary modal ---------- */
.jssc-submit-overlay {
	position: fixed;
	inset: 0;
	background: rgba(27,42,74,0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 20;
	padding: 11px;
	box-sizing: border-box;
}
.jssc-submit-box {
	background: #fff;
	border-radius: 10px;
	width: 100%;
	max-width: 640px;
	max-height: 85vh;
	overflow-y: auto;
	box-sizing: border-box;
}
.jssc-submit-header {
	padding: 10px 12px;
	border-bottom: 1px solid var(--jssc-line);
	font-family: 'Zilla Slab', serif;
	font-size: 16px;
	font-weight: 700;
	color: var(--jssc-ink);
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 1;
}
.jssc-submit-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	gap: 8px;
	padding: 10px 12px;
}
.jssc-submit-tile {
	background: #F4F6FB;
	border-radius: 8px;
	padding: 8px 8px;
	display: flex;
	flex-direction: column;
}
.jssc-submit-tile-num { font-size: 20px; font-weight: 700; color: var(--jssc-ink); line-height: 1.2; }
.jssc-submit-tile-label { font-size: 11px; color: var(--jssc-ink-soft); margin-top: 2px; }
.jssc-submit-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	padding: 0 12px 10px;
}
.jssc-submit-table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 13px; }
.jssc-submit-table th {
	background: #DCE8F5 !important;
	text-align: left;
	padding: 6px 8px;
	font-weight: 700;
	color: var(--jssc-ink) !important;
	white-space: nowrap;
}
.jssc-submit-table td {
	padding: 6px 8px;
	border-bottom: 1px solid var(--jssc-line);
	white-space: nowrap;
	color: var(--jssc-ink) !important;
}
.jssc-submit-actions {
	display: flex;
	justify-content: flex-end;
	gap: 6px;
	padding: 10px 12px;
	border-top: 1px solid var(--jssc-line);
}

/* Subject-wise breakdown, collapsed by default, under a row in My
   Results — reuses .jssc-submit-table for the inner table so it looks
   identical to the post-test summary modal. */
.jssc-results-detail-row td { padding: 0 !important; border-bottom: 1px solid var(--jssc-line); background: var(--jssc-bg-soft, #F7F9FC); }
.jssc-results-detail { padding: 6px 12px 10px; }
.jssc-results-detail summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 13px;
	color: var(--jssc-accent, #1B2A4A) !important;
	padding: 6px 0;
	list-style: none;
}
.jssc-results-detail summary::-webkit-details-marker { display: none; }
.jssc-results-detail summary::before { content: '▸ '; }
.jssc-results-detail[open] summary::before { content: '▾ '; }
.jssc-results-detail .jssc-submit-table-wrap { padding: 4px 0 8px; }



/* ---------- AdSense slots ---------- */
.jssc-ad-slot {
	margin: 10px 0;
	padding: 4px 0;
	overflow: hidden;
	text-align: center;
	min-height: 0;
	min-width: 250px;
}
.jssc-ad-slot::before {
	content: 'Advertisement';
	display: block;
	font-size: 10px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #99a1b3;
	margin-bottom: 4px;
}
.jssc-quiz-ad-static,
.jssc-quiz-ad-refresh {
	margin: 8px 0;
}

/* ---------- Paywall ---------- */
.jssc-paywall {
	max-width: 520px;
	margin: 18px auto;
	padding: 19px 16px;
	text-align: center;
	background: #fff;
	border: 1px solid var(--jssc-line);
	border-radius: 10px;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--jssc-ink);
}
.jssc-paywall-icon { font-size: 34px; margin-bottom: 4px; }
.jssc-paywall h3 { margin: 4px 0 8px; font-family: 'Zilla Slab', serif; }
.jssc-paywall a.jssc-btn { display: inline-block; text-decoration: none; }
.jssc-paywall-msg { margin: 16px 0; }

/* ---------- "Unlock this test" checkout card (JSSC_MT_Shortcode::render_paywall()) ----------
   Replaces the old plain lock-icon box for the common case (exactly one
   product unlocks this test) with a single focused card: a dark header
   band, price (with the %-off badge a product already supports via its
   optional Sale Price field — JSSC_MT_Products::get()'s 'sale_price'),
   a plan-summary line, the real buy/login button, and a short trust
   strip underneath. Carries .jssc-paywall too, purely so it inherits
   that class's theme-isolation reset (see the top of this file) and
   h1-h4 reset — every box-model property below is its own, overriding
   .jssc-paywall's (same specificity, declared later: max-width, padding,
   text-align, margin all get redefined here on purpose). */
.jssc-checkout-card {
	max-width: 440px;
	margin: 18px auto;
	padding: 0;
	text-align: left;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(16,24,40,0.04), 0 8px 24px rgba(16,24,40,0.07);
}
.jssc-checkout-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	background: linear-gradient(135deg, var(--jssc-ink) 0%, #253A63 100%);
	padding: 20px 22px;
}
.jssc-checkout-card h3 {
	margin: 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	color: #fff !important;
}
.jssc-checkout-badge {
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(198,138,46,0.18);
	display: flex;
	align-items: center;
	justify-content: center;
}
.jssc-checkout-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.jssc-checkout-price-row { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.jssc-checkout-price { font-size: 28px; font-weight: 800; color: var(--jssc-gold); line-height: 1; }
.jssc-checkout-price-old { font-size: 14.5px; color: #ADB4C2; text-decoration: line-through; }
.jssc-checkout-off-badge {
	font-size: 11.5px;
	font-weight: 700;
	color: var(--jssc-correct);
	background: var(--jssc-correct-bg);
	padding: 3px 9px;
	border-radius: 999px;
}
.jssc-checkout-meta-row {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--jssc-ink-soft);
	flex-wrap: wrap;
}
.jssc-checkout-meta-sep { width: 1px; height: 13px; background: var(--jssc-line); }
.jssc-checkout-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	box-sizing: border-box;
	text-align: center;
	font-weight: 700 !important;
	font-size: 14px !important;
	padding: 9px 18px !important;
	border-radius: 9px !important;
	border: none;
	cursor: pointer;
}
.jssc-checkout-secure {
	text-align: center;
	font-size: 11.5px;
	color: #9AA3B5;
}
.jssc-checkout-already {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: #F0F4FB;
	border-radius: 12px;
	padding: 13px 14px;
}
.jssc-checkout-already strong { display: block; font-size: 13px; color: var(--jssc-ink); }
.jssc-checkout-already span { display: block; font-size: 11.5px; color: #8A93A6; margin-top: 1px; }
.jssc-checkout-already-btn {
	flex: none;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--jssc-ink) !important;
	border: 1px solid var(--jssc-ink);
	padding: 7px 14px;
	border-radius: 8px;
	text-decoration: none !important;
}
/* "Why Choose JSSC Exam Prep?" trust strip — a card of its own (shadow +
   rounded corners to match the checkout card above it, not a flat tint
   box), a bold header row with a filled green badge, and a 2-up grid of
   pill-style rows on anything wider than a phone so the four points read
   as a tidy block instead of a long single-file list. */
.jssc-checkout-trust {
	max-width: 440px;
	margin: 0 auto 18px;
	padding: 18px 20px 20px;
	text-align: left;
	background: linear-gradient(180deg, #FFFFFF 0%, var(--jssc-correct-bg) 100%);
	border: 1px solid #D6EBDA;
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(16,24,40,0.03), 0 6px 18px rgba(46,125,91,0.08);
}
.jssc-checkout-trust-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
}
.jssc-checkout-trust-icon {
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--jssc-correct) 0%, #256B4D 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 3px 8px rgba(46,125,91,0.3);
}
.jssc-checkout-trust h4 {
	margin: 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 14.5px;
	font-weight: 800;
	color: var(--jssc-ink) !important;
}
.jssc-checkout-trust ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 9px 10px;
}
.jssc-checkout-trust li {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 1px solid #E3F0E7;
	border-radius: 10px;
	padding: 8px 10px;
}
.jssc-checkout-trust-tick {
	flex: none;
	color: var(--jssc-correct);
}
.jssc-checkout-trust li span {
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--jssc-ink-soft);
}
@media (max-width: 480px) {
	.jssc-checkout-head { padding: 16px 16px; }
	.jssc-checkout-card h3 { font-size: 15.5px; }
	.jssc-checkout-body { padding: 16px 16px 18px; }
	.jssc-checkout-price { font-size: 24px; }
	.jssc-checkout-trust { padding: 16px 16px 18px; }
	.jssc-checkout-trust ul { grid-template-columns: 1fr; }
}

/* ---------- Live Test gate screens (countdown / ended / already-attempted) ----------
   These reuse .jssc-paywall for the card shell (white card, centered),
   then layer on their own header (status pill + title + start/end
   window), and — only for the countdown state — a dark countdown box,
   a live clock line, and a tip box. */
.jssc-live-gate { position: relative; padding-top: 26px; overflow: hidden; }
.jssc-live-gate::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 4px;
	background: var(--jssc-gold);
}
.jssc-live-gate--accent-ended::before { background: var(--jssc-ink-soft); }
.jssc-live-gate--accent-done::before { background: var(--jssc-correct); }

.jssc-live-status-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 14px;
	border-radius: 999px;
	background: #F1F2F6;
	color: var(--jssc-ink);
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 10px;
}
.jssc-live-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--jssc-gold); flex: none; }
.jssc-live-status-pill--upcoming .jssc-live-status-dot { background: var(--jssc-gold); }
.jssc-live-status-pill--ended .jssc-live-status-dot { background: var(--jssc-ink-soft); }
.jssc-live-status-pill--done .jssc-live-status-dot { background: var(--jssc-correct); }
.jssc-live-status-pill--urgent { background: #FEF1F1; color: #B42318; }
.jssc-live-status-pill--urgent .jssc-live-status-dot { background: #B42318; }

.jssc-live-gate-title {
	margin: 4px 0 12px;
	font-family: 'Zilla Slab', serif;
	font-size: 21px;
	color: var(--jssc-ink) !important;
}

.jssc-live-window { display: flex; align-items: stretch; justify-content: center; gap: 20px; margin-bottom: 18px; }
.jssc-live-window-col { display: flex; flex-direction: column; gap: 3px; }
.jssc-live-window-label { font-size: 12.5px; color: var(--jssc-ink-soft); }
.jssc-live-window-value { font-size: 14.5px; font-weight: 700; color: var(--jssc-ink); }
.jssc-live-window-divider { width: 1px; background: var(--jssc-line); }

.jssc-live-countdown-box {
	background: var(--jssc-ink);
	border-radius: 10px;
	padding: 16px 12px;
	margin-bottom: 14px;
}
.jssc-live-countdown-label { font-size: 13px; color: rgba(255, 255, 255, 0.75); margin-bottom: 8px; }
.jssc-live-countdown-digits { display: flex; align-items: center; justify-content: center; gap: 10px; }
.jssc-live-countdown-unit { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 56px; }
.jssc-live-countdown-num {
	font-size: 34px;
	font-weight: 700;
	color: #fff;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}
.jssc-live-countdown-unit-label { font-size: 11px; color: rgba(255, 255, 255, 0.6); }
.jssc-live-countdown-sep { font-size: 28px; font-weight: 700; color: rgba(255, 255, 255, 0.35); margin-bottom: 16px; }

.jssc-live-nowline {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 13px;
	color: var(--jssc-ink-soft);
	margin: 0 0 16px;
}
.jssc-live-now-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--jssc-correct); flex: none; }

.jssc-live-tip-box {
	background: #F8F9FC;
	border: 1px solid var(--jssc-line);
	border-radius: 8px;
	padding: 12px 14px;
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--jssc-ink-soft);
	text-align: left;
}
.jssc-live-tip-box strong { color: var(--jssc-ink); }

.jssc-live-footer-note { font-size: 12.5px; color: var(--jssc-ink-soft); margin: 12px 0 0; }

/* The plain explanatory sentence on the ended / already-attempted
   screens (no dark countdown box there) — softened the same way as
   every other secondary-explanation line in the plugin (e.g.
   .jssc-danger-note) instead of falling back to the card's plain base
   text, which read as undesigned next to the header above it. */
.jssc-live-gate p {
	max-width: 400px;
	margin: 8px auto 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--jssc-ink-soft);
}
.jssc-live-gate h3 { color: var(--jssc-ink) !important; }

/* ---------- Paywall: locked-test box (top card with the 🔒 icon) ----------
   Given its own gradient background so it stays visually "highlighted" and
   reads as a single, self-contained block. The inner <p> tags were also
   swapped for plain <div>s (see class-shortcode.php) — AdSense Auto ads
   leans on paragraph-like text blocks to decide where to slot an in-page
   ad, so a container with no <p> tags is a somewhat less attractive
   target. NOTE: this is a mitigation, not a guarantee — Google's Auto
   ads script scans the rendered page itself and there is no CSS class or
   data attribute it honors to hard-exclude one element. See the reply in
   chat for the actual supported ways to stop it appearing in this exact
   spot (Ad review center / turning off in-page auto ad formats). */
.jssc-paywall-lock {
	background: linear-gradient(135deg, #16224a 0%, #2a4d9c 55%, #3f68c9 100%);
	border: none;
	color: #ffffff;
	box-shadow: 0 8px 24px rgba(22, 34, 74, 0.25);
}
.jssc-paywall-lock h3 { color: #ffffff !important; }
.jssc-paywall-lock .jssc-paywall-msg { color: rgba(255, 255, 255, 0.92); }
.jssc-paywall-lock .jssc-paywall-msg.description { color: rgba(255, 255, 255, 0.75); font-size: 13px; }
.jssc-paywall-lock .jssc-paywall-price { color: #FFD98A; }
.jssc-paywall-lock .jssc-paywall-duration { color: rgba(255, 255, 255, 0.75); }
.jssc-paywall-lock .jssc-paywall-product {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.25);
	color: #ffffff;
}

/* The small "part of <product>" callout, right under the heading and
   above the login/buy content — sits on top of the gradient like a
   translucent chip so the product name (linked to its own page) stands
   out immediately. No extra label here — the h3 above already says
   "This test is part of a paid series", so this box is just the name(s). */
.jssc-paywall-series-box {
	margin: 10px auto 4px;
	padding: 10px 14px;
	max-width: 400px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 8px;
}
.jssc-paywall-series-names {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}
.jssc-paywall-series-name {
	font-weight: 700;
	font-size: 14.5px;
	color: #ffffff !important;
	font-family: 'Zilla Slab', serif;
	text-decoration: none;
}
/* Explicit color on every interactive state — themes commonly style their
   own a:hover/a:focus/a:active/a:visited with a link-blue color that has
   higher effective priority than our plain, non-!important base rule
   above, so without this the product name can flash the theme's link
   color against our dark gradient card on hover instead of staying
   readable white. */
.jssc-paywall-series-name:hover,
.jssc-paywall-series-name:focus,
.jssc-paywall-series-name:active,
.jssc-paywall-series-name:visited {
	color: #ffffff !important;
	text-decoration: underline !important;
}
.jssc-paywall-series-name:not(:last-child)::after {
	content: '•';
	margin-left: 8px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.5);
}

/* Live Tests dashboard tab — simple stacked cards, one per scheduled test. */
.jssc-live-list { display: flex; flex-direction: column; gap: 10px; }
.jssc-live-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	padding: 12px 14px;
	border: 1px solid var(--jssc-line);
	border-radius: 8px;
	background: #fff;
}
.jssc-live-card-title { font-weight: 600; flex: 1 1 200px; }
.jssc-live-card-time { font-size: 13px; color: #667085; flex: 1 1 220px; }
.jssc-paywall-products {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 12px 0;
	text-align: left;
}
.jssc-paywall-product {
	border: 1px solid var(--jssc-line);
	border-radius: 8px;
	padding: 10px 11px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
.jssc-paywall-product strong { flex: 1 1 100%; }
.jssc-paywall-price { font-weight: 700; color: var(--jssc-gold); }
.jssc-paywall-duration { color: var(--jssc-ink-soft); font-size: 13px; flex: 1; }
.jssc-paywall-product .jssc-btn { margin-left: auto; }

/* ---------- Paywall: "This Test Is Part Of" / "Browse Other Test
   Series" boxes — new, additive cards shown below the existing
   .jssc-paywall lock box above. Same card look (reuses .jssc-paywall
   itself for the shared border/background/font), just left-aligned
   since these hold a table instead of a short centered message. */
.jssc-paywall-box {
	text-align: left;
}
.jssc-paywall-box-header { text-align: center; margin-bottom: 12px; }
.jssc-paywall-box-icon { font-size: 24px; line-height: 1; margin-bottom: 4px; }
.jssc-paywall-box-header h4 {
	margin: 0 0 4px;
	font-family: 'Zilla Slab', serif;
	font-size: 19px;
}
.jssc-paywall-box-desc {
	margin: 0 auto;
	max-width: 480px;
	font-size: 13.5px;
	color: var(--jssc-ink-soft);
	line-height: 1.4;
}
.jssc-paywall-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.jssc-paywall-table td { padding: 8px 6px; border-bottom: 1px solid var(--jssc-line); vertical-align: middle; font-size: 13.5px; }
.jssc-paywall-table tr:last-child td { border-bottom: none; }
.jssc-paywall-table tbody tr:hover { background: var(--jssc-paper); }
.jssc-paywall-table-name { text-align: left; width: 42%; }
.jssc-paywall-table-name a { color: var(--jssc-ink) !important; font-weight: 700; font-size: 14px; text-decoration: none !important; }
.jssc-paywall-table-name a:hover { text-decoration: underline !important; }
.jssc-paywall-table-price { text-align: center; font-weight: 700; color: var(--jssc-gold); white-space: nowrap; width: 16%; }
.jssc-paywall-table-expiry { text-align: center; font-size: 12.5px; color: var(--jssc-ink-soft); white-space: nowrap; width: 16%; }
.jssc-paywall-table-action { text-align: right; white-space: nowrap; padding-left: 8px; width: 26%; }

@media (max-width: 600px) {
	.jssc-paywall-table { table-layout: auto; }
	.jssc-paywall-table td { padding: 8px 4px; font-size: 12.5px; }
	.jssc-paywall-table-action { padding-left: 4px; }
}

/* ---------- Account (login/register) ---------- */
.jssc-account { max-width: 440px; margin: 28px auto; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--jssc-ink); }
.jssc-account-notice {
	padding: 10px 12px;
	border-radius: 8px;
	margin-bottom: 14px;
	font-size: 14px;
	font-weight: 500;
}
.jssc-account-notice-success { background: var(--jssc-correct-bg); color: #1c5e33; }
.jssc-account-notice-error { background: var(--jssc-wrong-bg); color: #9c2b2b; }
.jssc-account-notice-info { background: #FFF6E5; color: #7A5300; border: 1px solid #F0DBA0; }

.jssc-account-notice-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}
.jssc-notice-action {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.6);
	border: 1px solid currentColor;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	color: inherit;
}
.jssc-notice-action:hover { background: rgba(255, 255, 255, 0.9); }

/* ---------- Flash toast (login/logout/register result) ----------
   Temporary, auto-dismissing — replaces the old permanent banner that
   used to sit glued above the login form / dashboard. */
.jssc-toast-viewport {
	position: fixed;
	top: 18px;
	right: 18px;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: calc(100% - 36px);
	max-width: 380px;
	pointer-events: none;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.jssc-toast {
	pointer-events: auto;
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	background: #fff;
	border: 1px solid var(--jssc-line);
	border-left: 4px solid var(--jssc-correct);
	border-radius: 10px;
	padding: 13px 32px 15px 14px;
	box-shadow: 0 10px 30px rgba(27, 42, 74, 0.16);
	overflow: hidden;
	animation: jssc-toast-in 0.25s ease;
}
.jssc-toast-error { border-left-color: var(--jssc-wrong); }
.jssc-toast-icon { font-size: 16px; line-height: 1.3; flex-shrink: 0; }
.jssc-toast-body { flex: 1; min-width: 0; }
.jssc-toast-message { display: block; font-size: 13.5px; font-weight: 600; color: var(--jssc-ink) !important; line-height: 1.45; }
.jssc-toast-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.jssc-toast-action {
	display: inline-block;
	padding: 5px 11px;
	border-radius: 999px;
	background: var(--jssc-paper) !important;
	border: 1px solid var(--jssc-line);
	font-size: 12px;
	font-weight: 600;
	color: var(--jssc-ink) !important;
	text-decoration: none !important;
}
.jssc-toast-action:hover { background: #fff !important; border-color: var(--jssc-ink); }
.jssc-toast-close {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 22px;
	height: 22px;
	line-height: 20px;
	text-align: center;
	border: none !important;
	background: transparent !important;
	color: var(--jssc-ink-soft) !important;
	font-size: 17px;
	cursor: pointer;
	border-radius: 50%;
	padding: 0;
}
.jssc-toast-close:hover { background: var(--jssc-paper) !important; color: var(--jssc-ink) !important; }
.jssc-toast-progress {
	position: absolute;
	left: 0;
	bottom: 0;
	height: 3px;
	width: 100%;
	background: var(--jssc-correct);
	opacity: 0.4;
	transform-origin: left;
	animation: jssc-toast-progress linear forwards;
	animation-duration: 4200ms;
}
.jssc-toast-error .jssc-toast-progress { background: var(--jssc-wrong); }
.jssc-toast-hide { animation: jssc-toast-out 0.2s ease forwards; }

@keyframes jssc-toast-in {
	from { opacity: 0; transform: translateY(-8px) scale(0.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes jssc-toast-out {
	from { opacity: 1; transform: translateY(0) scale(1); }
	to { opacity: 0; transform: translateY(-8px) scale(0.98); }
}
@keyframes jssc-toast-progress {
	from { transform: scaleX(1); }
	to { transform: scaleX(0); }
}

@media (max-width: 560px) {
	.jssc-toast-viewport { top: 10px; right: 10px; left: 10px; max-width: none; width: auto; }
}

.jssc-account-card {
	background: #fff;
	border: 1px solid var(--jssc-line);
	border-radius: 14px;
	padding: 28px 26px;
	box-shadow: 0 4px 24px rgba(27, 42, 74, 0.06);
	box-sizing: border-box;
}

/* --- Login/register ---
   The brand block (icon + heading + subtext) gets the same blue-gradient
   "highlight" treatment as the paywall lock box, so it reads as one clear
   focal point instead of blending into a plain white card — everything
   below it (Google button, divider, email form) is untouched. */
.jssc-account-brand {
	text-align: center;
	margin: 0 0 20px;
	padding: 24px 18px 20px;
	background: linear-gradient(135deg, #16224a 0%, #2a4d9c 55%, #3f68c9 100%);
	border-radius: 12px;
	box-shadow: 0 6px 18px rgba(22, 34, 74, 0.2);
}
.jssc-account-brand-icon {
	font-size: 32px;
	width: 56px;
	height: 56px;
	line-height: 56px;
	margin: 0 auto 10px;
	background: #ffffff;
	border-radius: 50%;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}
.jssc-account-brand h3 { font-family: 'Zilla Slab', serif; margin: 0 0 4px; font-size: 22px; color: #ffffff !important; }
.jssc-account-brand p { margin: 0; color: rgba(255, 255, 255, 0.85); font-size: 14px; }

.jssc-google-btn-wrap { display: flex; justify-content: center; margin-bottom: 16px; }
.jssc-account-divider {
	display: flex;
	align-items: center;
	text-align: center;
	color: var(--jssc-ink-soft);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin: 6px 0 16px;
}
.jssc-account-divider::before,
.jssc-account-divider::after {
	content: '';
	flex: 1;
	border-bottom: 1px solid var(--jssc-line);
}
.jssc-account-divider span { padding: 0 10px; }

.jssc-account-divider-soft {
	text-transform: none;
	letter-spacing: normal;
	font-size: 12px;
	color: var(--jssc-ink-soft);
	opacity: 0.85;
}

.jssc-google-badge {
	text-align: center;
	font-size: 14px;
	font-weight: 700;
	color: #0C447C;
	margin: 0 0 8px;
}

.jssc-google-highlight {
	background: #D5E9FC;
	border: 1.5px solid #378ADD;
	border-radius: 10px;
	padding: 10px 6px;
	margin-bottom: 4px;
}
.jssc-google-highlight .jssc-google-btn-wrap {
	margin-bottom: 0;
	transform: scale(1.03);
	transform-origin: center;
}
@media (min-width: 400px) {
	.jssc-google-highlight .jssc-google-btn-wrap { transform: scale(1.08); }
}

.jssc-email-toggle {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: none !important;
	border: 1px solid var(--jssc-line) !important;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 13px;
	color: var(--jssc-ink-soft) !important;
	text-decoration: none !important;
	cursor: pointer;
	margin-bottom: 8px;
}
.jssc-email-toggle-chevron { transition: transform 0.2s ease; }
.jssc-email-collapse:not(.is-collapsed) .jssc-email-toggle-chevron { transform: rotate(180deg); }

.jssc-email-collapse-body {
	overflow: hidden;
	max-height: 800px;
	transition: max-height 0.25s ease;
}
.jssc-email-collapse.is-collapsed .jssc-email-collapse-body { max-height: 0; }

.jssc-account-tabs { display: flex; gap: 6px; margin-bottom: 18px; background: #F4F6FB; padding: 4px; border-radius: 9px; }
.jssc-account-tab {
	flex: 1;
	padding: 9px 7px;
	min-height: 40px;
	border: none !important;
	background: transparent !important;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
	font-size: 13.5px;
	color: var(--jssc-ink-soft) !important;
	transition: all 0.15s ease;
}
.jssc-account-tab.active { background: #fff !important; color: var(--jssc-ink) !important; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

.jssc-field { display: block; margin-bottom: 14px; }
.jssc-field span { display: block; font-size: 12.5px; font-weight: 600; color: var(--jssc-ink-soft); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.03em; }
.jssc-field input {
	width: 100%;
	padding: 10px 12px;
	border: 1.5px solid var(--jssc-line) !important;
	border-radius: 8px;
	font-size: 15px;
	min-height: 42px;
	color: var(--jssc-ink) !important;
	background: #fff !important;
	box-sizing: border-box;
	transition: border-color 0.15s ease;
}
.jssc-field input:focus { outline: none; border-color: var(--jssc-ink) !important; }

.jssc-pw-wrap { position: relative; }
.jssc-pw-wrap input { padding-right: 40px !important; }
.jssc-pw-toggle {
	position: absolute;
	top: 50%;
	right: 6px;
	transform: translateY(-50%);
	background: none !important;
	border: none !important;
	color: inherit !important;
	text-decoration: none !important;
	font-size: 16px;
	line-height: 1;
	padding: 6px;
	cursor: pointer;
	opacity: 0.6;
}
.jssc-pw-toggle:hover { opacity: 1; }

/* Honeypot: kept in normal layout flow and visually rendered (so form-filling
   bots that skip display:none/visibility:hidden fields still fill it in),
   but moved far off-screen so no real visitor ever sees or tabs into it. */
.jssc-hp-field {
	position: absolute;
	left: -5000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.jssc-account-submit { width: 100%; padding: 11px; font-size: 15px; margin-top: 6px; min-height: 44px; }

.jssc-account-forgot-link {
	display: block;
	text-align: right;
	margin: -4px 0 14px;
	font-size: 13px;
	font-weight: 600;
	padding: 4px 0;
	color: var(--jssc-ink-soft) !important;
	text-decoration: none;
}
.jssc-account-forgot-link:hover { color: var(--jssc-ink) !important; text-decoration: underline; }

.jssc-account-forgot-intro { font-size: 13.5px; color: var(--jssc-ink-soft); margin: 0 0 14px; line-height: 1.5; }

.jssc-account-back-link {
	display: block;
	text-align: center;
	margin-top: 14px;
	padding: 4px 0;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--jssc-ink-soft) !important;
	text-decoration: none;
}
.jssc-account-back-link:hover { color: var(--jssc-ink) !important; text-decoration: underline; }

@media (max-width: 480px) {
	.jssc-account { margin: 14px auto; }
	.jssc-account-card { padding: 20px 16px; }
}

/* --- Dashboard (logged in): sidebar + tab layout --- */
.jssc-dash {
	max-width: 920px;
	margin: 28px auto;
	display: grid;
	grid-template-columns: 224px 1fr;
	gap: 0;
	background: #fff;
	border: 1px solid var(--jssc-line);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(27, 42, 74, 0.06);
	box-sizing: border-box;
}
.jssc-dash-side {
	background: #F4F6FB;
	border-right: 1px solid var(--jssc-line);
	padding: 24px 18px;
	display: flex;
	flex-direction: column;
}
.jssc-dash-profile { text-align: center; margin-bottom: 18px; }
.jssc-dash-profile .jssc-account-avatar { margin: 0 auto 10px; }
.jssc-dash-name { font-weight: 700; font-size: 14.5px; }
.jssc-dash-email { color: var(--jssc-ink-soft); font-size: 12px; word-break: break-all; }
.jssc-dash-nav { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; flex: 1; }
.jssc-dash-nav-item {
	text-align: left;
	background: transparent !important;
	border: none !important;
	padding: 11px 12px;
	min-height: 42px;
	border-radius: 7px;
	cursor: pointer;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--jssc-ink-soft) !important;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.jssc-dash-nav-item.active { background: var(--jssc-ink) !important; color: #fff !important; }
.jssc-dash-nav-item:not(.active):hover { background: #DCE3F2 !important; color: var(--jssc-ink) !important; }
.jssc-dash-nav-item:not(.active):focus-visible { outline: 2px solid var(--jssc-ink); outline-offset: 1px; }
.jssc-dash-logout { width: 100%; min-height: 42px; }

.jssc-dash-main { padding: 26px 30px; min-width: 0; box-sizing: border-box; }
.jssc-dash-panel { display: none; }
.jssc-dash-panel.active { display: block; }
.jssc-dash-panel h3 { font-family: 'Zilla Slab', serif; margin: 0 0 16px; font-size: 21px; }
.jssc-dash-panel h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--jssc-ink-soft); margin: 22px 0 10px; }
.jssc-dash-panel h4:first-of-type { margin-top: 18px; }
/* !important is required here: `.jssc-dash-panel h3` above (a class +
   element selector, specificity 0,1,1) is more specific than a single
   class alone (0,1,0), so without !important its `margin: 0 0 16px`
   shorthand always wins and silences this margin-top no matter where
   this rule sits in the file — which is exactly why this extra gap was
   never actually showing up before (Change Password, Delete Account and
   Need more help all sat right up against the block above them). */
.jssc-dash-section-gap { margin-top: 40px !important; }
.jssc-danger-heading { color: #B42318; }
.jssc-danger-note { font-size: 13px; color: #6B7280; max-width: 520px; }
.jssc-btn-danger {
	background: #fff;
	color: #B42318 !important;
	border: 1px solid #B42318;
}
.jssc-btn-danger:hover { background: #FEF3F2; }

/* ---------- Dashboard: quick action tiles (Overview) ---------- */
.jssc-dash-quick-actions {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	margin: 4px 0 22px;
}
.jssc-quick-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-align: center;
	padding: 16px 8px;
	min-height: 90px;
	box-sizing: border-box;
	background: var(--jssc-paper) !important;
	border: 1px solid var(--jssc-line) !important;
	border-radius: 12px;
	text-decoration: none !important;
	color: var(--jssc-ink) !important;
	transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.jssc-quick-tile:hover { background: #fff !important; border-color: var(--jssc-ink) !important; transform: translateY(-2px); }
.jssc-quick-tile:focus-visible { outline: 2px solid var(--jssc-ink); outline-offset: 2px; }
.jssc-quick-tile-icon {
	width: 38px;
	height: 38px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #fff;
	border: 1px solid var(--jssc-line);
	font-size: 17px;
}
.jssc-quick-tile-label { font-size: 12.5px; font-weight: 600; line-height: 1.3; }

@media (max-width: 700px) {
	.jssc-dash-quick-actions { grid-template-columns: repeat(2, 1fr); }
}

.jssc-dash-stats { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.jssc-dash-stat {
	flex: 1 1 140px;
	background: #F4F6FB;
	border-radius: 10px;
	padding: 14px 16px;
	text-align: center;
}
.jssc-dash-stat-num { display: block; font-family: 'Zilla Slab', serif; font-size: 24px; font-weight: 700; color: var(--jssc-ink); }
.jssc-dash-stat-label { font-size: 12px; color: var(--jssc-ink-soft); text-transform: uppercase; letter-spacing: 0.03em; }

.jssc-account-avatar {
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--jssc-ink);
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
}
.jssc-account-purchases { list-style: none; margin: 0 0 10px; padding: 0; text-align: left; }
.jssc-account-purchases li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	row-gap: 4px;
	gap: 8px;
	padding: 10px 12px;
	background: #F4F6FB;
	border-radius: 8px;
	margin-bottom: 8px;
	font-size: 14px;
}
.jssc-account-purchase-name { font-weight: 600; }
.jssc-account-purchase-expiry { color: var(--jssc-ink-soft); font-size: 12.5px; white-space: nowrap; margin-left: auto; }
.jssc-account-empty { text-align: left; color: var(--jssc-ink-soft); font-size: 14px; line-height: 1.6; margin: 0 0 10px; }

/* ---------- Student Support tab: video-guide accordion + email row ---------- */
.jssc-support-videos { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.jssc-support-video { border: 1px solid var(--jssc-line); border-radius: 8px; overflow: hidden; }
.jssc-support-video-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	text-align: left;
	padding: 12px 14px;
	background: #F8F9FC;
	border: none;
	cursor: pointer;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--jssc-ink);
}
.jssc-support-video-chevron { display: inline-block; transition: transform 0.15s ease; color: var(--jssc-ink-soft); }
.jssc-support-video.is-open .jssc-support-video-chevron { transform: rotate(90deg); }
.jssc-support-video.is-open .jssc-support-video-toggle { background: #EFF2F9; }
/* Explicit hover/focus state, matching every other interactive element in
   this file (e.g. .jssc-btn-ghost:hover above) — without this, some themes'
   own generic `button:hover` rule (which often turns text white, assuming
   a dark hover background that this flat, light toggle never has) wins on
   specificity and leaves the label unreadable: white text on the same
   light #F8F9FC background, with nothing else visibly changing to hint
   that it's still clickable. !important pins both properties together so
   a theme can never apply just one half of that combination here. */
.jssc-support-video-toggle:hover,
.jssc-support-video-toggle:focus {
	background: #EFF2F9 !important;
	color: var(--jssc-ink) !important;
}
.jssc-support-video-toggle:hover .jssc-support-video-chevron,
.jssc-support-video-toggle:focus .jssc-support-video-chevron {
	color: var(--jssc-ink-soft) !important;
}
.jssc-support-video-body:empty { display: none; }
.jssc-support-video-embed { position: relative; width: 100%; padding-top: 56.25%; /* 16:9 */ background: #000; }
.jssc-support-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.jssc-support-email-row { font-size: 14px; color: var(--jssc-ink-soft); }
.jssc-support-email { color: var(--jssc-ink) !important; font-weight: 700; text-decoration: underline; margin-left: 4px; }

.jssc-dash-posts { list-style: none; margin: 0; padding: 0; }
.jssc-dash-posts li { margin-bottom: 8px; }
.jssc-dash-posts a { color: var(--jssc-ink) !important; font-weight: 600; font-size: 14px; text-decoration: underline; text-decoration-color: var(--jssc-line); }

.jssc-dash-table-wrap { overflow-x: auto; margin: 0 -2px; padding: 0 2px; -webkit-overflow-scrolling: touch; }
.jssc-dash-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.jssc-dash-table th, .jssc-dash-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--jssc-line); white-space: nowrap; color: var(--jssc-ink) !important; }
.jssc-dash-table th { color: var(--jssc-ink-soft) !important; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.03em; }
.jssc-dash-table tbody tr:last-child td { border-bottom: none; }
/* Test-name column wraps instead of forcing horizontal scroll on the whole
   table over one long title — every other column (Type, Score, Percent,
   Date, Action) stays nowrap so numbers/badges/buttons don't break
   awkwardly. Applies at every width now (this used to be phone-only,
   inside the 700px media query below — but a long title forces the same
   unnecessary scroll on desktop too, where there's if anything more
   spare width to wrap into, so there's no reason to limit the fix to
   narrow screens). */
.jssc-results-table td:first-child,
.jssc-purchase-tests-table td:first-child { white-space: normal; word-break: break-word; }

.jssc-dash-browse-list { display: flex; flex-direction: column; gap: 10px; }
.jssc-dash-browse-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	row-gap: 4px;
	gap: 10px;
	padding: 13px 15px;
	min-height: 44px;
	box-sizing: border-box;
	border: 1px solid var(--jssc-line) !important;
	border-radius: 9px;
	text-decoration: none;
	color: var(--jssc-ink) !important;
	transition: border-color 0.15s ease;
}
.jssc-dash-browse-item:hover { border-color: var(--jssc-ink) !important; }
.jssc-dash-browse-name { font-weight: 600; font-size: 14.5px; }
.jssc-dash-browse-price { font-weight: 700; color: var(--jssc-gold); font-size: 14px; white-space: nowrap; margin-left: auto; }
.jssc-dash-browse-price s { color: var(--jssc-ink-soft); font-weight: 400; margin-right: 4px; }

.jssc-dash-form { max-width: 400px; }

@media (max-width: 900px) {
	.jssc-dash { max-width: 100%; margin: 20px 16px; }
}

@media (max-width: 700px) {
	.jssc-dash { grid-template-columns: 1fr; margin: 12px; border-radius: 12px; }
	.jssc-dash-side { border-right: none; border-bottom: 1px solid var(--jssc-line); flex-direction: row; flex-wrap: wrap; align-items: center; padding: 16px 14px; }
	.jssc-dash-profile { text-align: left; margin-bottom: 0; margin-right: auto; display: flex; align-items: center; gap: 10px; }
	.jssc-dash-profile .jssc-account-avatar { margin: 0; }
	.jssc-dash-nav { flex-direction: row; flex-wrap: wrap; gap: 8px; width: 100%; order: 3; margin-top: 12px; margin-bottom: 0; }
	.jssc-dash-nav-item { flex: 1 1 auto; text-align: center; padding: 10px 8px; }
	.jssc-dash-logout { width: auto; order: 2; }
	.jssc-dash-main { padding: 18px 16px; }
	.jssc-dash-panel h3 { font-size: 19px; margin-bottom: 14px; }
	.jssc-dash-stats { gap: 8px; margin-bottom: 16px; }
	.jssc-dash-stat { padding: 12px 10px; flex: 1 1 46%; }
	.jssc-dash-table th, .jssc-dash-table td { padding: 8px 10px; font-size: 12.5px; }
}

@media (max-width: 420px) {
	.jssc-dash { margin: 8px; }
	.jssc-dash-main { padding: 16px 12px; }
	.jssc-dash-stat { flex: 1 1 100%; }
	.jssc-dash-nav-item { font-size: 13px; padding: 10px 6px; }
}
/* ---------- Product / Series landing page ---------- */
.jssc-product-page { max-width: 640px; margin: 0 auto; padding: 0 20px; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--jssc-ink); }

.jssc-product-hero { text-align: center; margin-bottom: 4px; }
.jssc-product-hero-icon {
	font-size: 34px;
	width: 64px;
	height: 64px;
	line-height: 64px;
	margin: 0 auto 8px;
	background: var(--jssc-paper);
	border-radius: 50%;
}
.jssc-product-eyebrow {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	letter-spacing: 0.12em;
	color: var(--jssc-gold);
	font-weight: 600;
	margin-bottom: 12px;
}

.jssc-product-description { margin-bottom: 14px; color: var(--jssc-ink-soft); line-height: 1.65; text-align: center; }
.jssc-product-description p { margin: 0 0 8px; }

.jssc-product-price-box {
	background: var(--jssc-ink);
	border-radius: 14px;
	padding: 17px 16px;
	text-align: center;
	margin-bottom: 14px;
}
.jssc-product-price-row { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.jssc-product-price-old { font-size: 18px; color: rgba(255,255,255,0.55); text-decoration: line-through; }
.jssc-product-price-now { font-family: 'Zilla Slab', serif; font-size: 40px; font-weight: 700; color: #fff; }
.jssc-product-price-off {
	background: var(--jssc-gold);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 8px;
	border-radius: 20px;
	align-self: center;
}
.jssc-product-validity { display: block; color: rgba(255,255,255,0.75); font-size: 13.5px; margin-bottom: 13px; }

.jssc-coupon-box { margin: 10px 0; }
.jssc-coupon-row { display: flex; gap: 8px; }
.jssc-coupon-input {
	flex: 1;
	padding: 8px 10px;
	background: #fff !important;
	color: var(--jssc-ink) !important;
	border: 1px solid var(--jssc-border, #D8DEE9);
	border-radius: 6px;
	font-size: 13px;
}
.jssc-coupon-input::placeholder { color: var(--jssc-ink-soft) !important; opacity: 1; }
.jssc-coupon-message { margin: 6px 0 0; font-size: 13px; min-height: 16px; }
/* Sits inside the dark price box, so the usual dark-green/dark-red
   success/error text (fine on a white card elsewhere) would be very
   low-contrast here — lightened specifically for this on-dark spot. */
.jssc-coupon-message--success { color: #6FE3A6 !important; }
.jssc-coupon-message--error { color: #FF9B9B !important; }
.jssc-product-buy {
	width: 100%;
	max-width: 380px;
	box-sizing: border-box;
	box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
/* The box's Buy button gets its gold on-dark contrast fill from the
   JSSC_MT_BTN_PRIMARY_ONDARK_STYLE inline style (see class-products.php)
   rather than from a class rule here — an external stylesheet rule,
   even with !important, can never override the button's own inline
   !important style, so a CSS-only override for this can't work. This
   just handles the hover state on top of that inline fill. */
.jssc-product-price-box .jssc-btn-primary:hover {
	opacity: 0.9 !important;
}

.jssc-product-trust {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 17px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--jssc-line);
}
.jssc-product-trust-item { font-size: 13.5px; color: var(--jssc-ink-soft); white-space: nowrap; }

.jssc-product-scope { font-size: 15px; margin-bottom: 14px; }

.jssc-product-page h3 { font-family: 'Zilla Slab', serif; font-size: 19px; margin: 0 0 10px; text-align: center; }
.jssc-product-included { display: flex; flex-direction: column; gap: 11px; margin-bottom: 18px; }
.jssc-product-group {
	border: 1px solid var(--jssc-line);
	border-radius: 10px;
	padding: 11px 12px;
}
.jssc-product-group h4 {
	font-family: 'Inter', sans-serif;
	font-size: 13.5px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--jssc-gold);
	margin: 0 0 8px;
	text-align: center;
}
.jssc-product-group h4 span { color: var(--jssc-ink-soft); text-transform: none; letter-spacing: 0; font-weight: 400; }
.jssc-product-group ul { margin: 0; padding-left: 13px; }
.jssc-product-group li { font-size: 14.5px; margin-bottom: 4px; }

.jssc-product-cta { text-align: center; padding-top: 6px; }
.jssc-product-cta-bottom { padding-top: 4px; padding-bottom: 6px; }
.jssc-btn-lg { padding: 10px 19px; font-size: 16px; }
.jssc-product-owned {
	background: var(--jssc-correct-bg);
	color: #1c5e33;
	padding: 10px 12px;
	border-radius: 8px;
	font-weight: 600;
	margin: 0;
}

/* ---------- Reading passage box (comprehension-style questions) ---------- */
.jssc-passage-box {
	background: #FBF7EE;
	border: 1px solid #E8D3A0;
	border-left: 3px solid var(--jssc-gold);
	border-radius: 6px;
	padding: 10px 11px;
	margin-bottom: 13px;
}
.jssc-passage-label {
	font-family: 'IBM Plex Mono', monospace;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--jssc-gold);
	margin-bottom: 6px;
}
.jssc-passage-text {
	font-family: 'Zilla Slab', serif;
	font-size: 17px;
	line-height: 1.65;
	color: var(--jssc-ink-soft);
	white-space: pre-wrap;
	max-height: 260px;
	overflow-y: auto;
	padding-right: 4px;
}
.jssc-passage-progress {
	margin-top: 8px;
	font-size: 11.5px;
	color: var(--jssc-muted);
	font-family: 'IBM Plex Mono', monospace;
}

/* ---------- Included-tests table (product/series page) ---------- */
.jssc-product-included-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 14px; }
.jssc-product-included-table th,
.jssc-product-included-table td { width: 50%; text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--jssc-line); color: var(--jssc-ink) !important; }
.jssc-product-included-table th {
	color: var(--jssc-ink-soft) !important;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-weight: 600;
	text-align: center;
}
.jssc-product-included-table td:last-child { text-align: center; }
.jssc-product-included-table tbody tr:last-child td { border-bottom: none; }

.jssc-included-status { display: inline-block; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.jssc-included-status--locked { color: var(--jssc-ink-soft) !important; }
.jssc-included-status--unlocked {
	color: var(--jssc-correct) !important;
	text-decoration: none;
}
.jssc-included-status--unlocked:hover { text-decoration: underline; }
.jssc-included-status--free {
	color: var(--jssc-gold) !important;
	text-decoration: none;
}
.jssc-included-status--free:hover { text-decoration: underline; }

/* Included-tests table: collapsible Subject accordion, used only when a
   Type group (Mock Test / PYQ / etc.) has 2+ distinct subjects among its
   tests — a single-subject or untagged group stays a plain flat table. */
.jssc-product-subject {
	border: 1px solid var(--jssc-line);
	border-radius: 6px;
	margin-bottom: 8px;
	padding: 0 10px;
}
.jssc-product-subject summary {
	cursor: pointer;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--jssc-ink) !important;
	text-decoration: none !important;
	list-style: none;
	padding: 9px 0;
}
.jssc-product-subject summary::-webkit-details-marker { display: none; }
.jssc-product-subject summary::before { content: '▸ '; color: var(--jssc-gold) !important; }
.jssc-product-subject[open] summary::before { content: '▾ '; }
.jssc-product-subject summary span { color: var(--jssc-ink-soft) !important; font-weight: 400; }
.jssc-product-subject .jssc-product-included-table { margin-bottom: 10px; }

.jssc-product-social-proof {
	text-align: center;
	font-size: 13.5px;
	color: var(--jssc-ink-soft);
	background: var(--jssc-paper);
	border: 1px solid var(--jssc-line);
	border-radius: 8px;
	padding: 8px 12px;
	margin-bottom: 14px;
}
.jssc-product-social-proof strong { color: var(--jssc-ink); }

/* ---------- My Purchases: grouped by series / whole-site ---------- */
.jssc-whatsapp-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	background: #E7F8EE;
	border: 1px solid #B7E4C7;
	border-radius: 10px;
	padding: 14px 18px;
	margin-bottom: 16px;
}
.jssc-whatsapp-banner span {
	font-size: 14px;
	color: var(--jssc-ink);
}
.jssc-whatsapp-banner .jssc-btn {
	flex-shrink: 0;
}
.jssc-purchase-groups { display: flex; flex-direction: column; gap: 16px; }
.jssc-purchase-group {
	border: 1px solid var(--jssc-line);
	border-radius: 10px;
	padding: 16px 18px;
	box-sizing: border-box;
}
.jssc-purchase-group-title {
	font-family: 'Zilla Slab', serif;
	font-size: 16px;
	line-height: 1.4;
	margin: 0 0 12px;
	color: var(--jssc-ink);
}
.jssc-purchase-tests-table td:last-child { text-align: right; }
.jssc-purchase-tests-table th:last-child { text-align: right; }

/* My Purchases: Type group ("Mock Test (150)") + per-Subject accordion —
   same auto-switch rule and visual language as .jssc-product-group /
   .jssc-product-subject on the product page, so a single big product
   (every test, every subject) doesn't turn this panel into one giant
   flat table. */
.jssc-purchase-type-group + .jssc-purchase-type-group { margin-top: 14px; }
.jssc-purchase-type-title {
	font-family: 'Inter', sans-serif;
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--jssc-gold);
	margin: 0 0 8px;
}
.jssc-purchase-type-title span { color: var(--jssc-ink-soft); text-transform: none; letter-spacing: 0; font-weight: 400; }

.jssc-purchase-subject {
	border: 1px solid var(--jssc-line);
	border-radius: 6px;
	margin-bottom: 8px;
	padding: 0 10px;
}
.jssc-purchase-subject summary {
	cursor: pointer;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--jssc-ink) !important;
	text-decoration: none !important;
	list-style: none;
	padding: 9px 0;
}
.jssc-purchase-subject summary::-webkit-details-marker { display: none; }
.jssc-purchase-subject summary::before { content: '▸ '; color: var(--jssc-gold) !important; }
.jssc-purchase-subject[open] summary::before { content: '▾ '; }
.jssc-purchase-subject summary span { color: var(--jssc-ink-soft) !important; font-weight: 400; }
.jssc-purchase-subject .jssc-dash-table-wrap { margin-bottom: 10px; }

.jssc-purchase-browse-links { display: flex; flex-direction: column; gap: 8px; }
.jssc-purchase-browse-link {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	row-gap: 4px;
	gap: 8px;
	padding: 11px 13px;
	min-height: 44px;
	box-sizing: border-box;
	border: 1px solid var(--jssc-line) !important;
	border-radius: 8px;
	text-decoration: none;
	color: var(--jssc-ink) !important;
	font-size: 14px;
	font-weight: 500;
	transition: border-color 0.15s ease;
}
.jssc-purchase-browse-link:hover { border-color: var(--jssc-ink) !important; }
.jssc-purchase-browse-link span:last-child { margin-left: auto; color: var(--jssc-ink-soft) !important; }

.jssc-btn-sm { display: inline-block; padding: 6px 12px !important; min-height: 32px; box-sizing: border-box; font-size: 12.5px !important; border-radius: 6px !important; text-decoration: none !important; }

.jssc-results-table td:nth-child(2),
.jssc-results-table td:nth-child(3),
.jssc-results-table td:nth-child(4) { white-space: nowrap; }
.jssc-results-pct {
	display: inline-block;
	font-weight: 700;
	font-size: 12.5px;
	padding: 4px 8px;
	border-radius: 20px;
}
.jssc-results-pct--good { color: var(--jssc-correct); background: var(--jssc-correct-bg); }
.jssc-results-pct--low { color: var(--jssc-wrong); background: var(--jssc-wrong-bg); }

@media (max-width: 700px) {
	.jssc-product-page { padding: 0 14px; }
	.jssc-product-included-table { font-size: 13px; }
	.jssc-purchase-group { padding: 14px; }
}

/* ---------- Block text selection across the quiz ---------- */
/* Deterrent only — CSS can't stop screenshots, OCR, or someone disabling
   styles via devtools. Form fields (report-a-question modal) are excluded
   so users can still type/select their own input there. */
.jssc-quiz,
.jssc-quiz * {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
.jssc-quiz input,
.jssc-quiz textarea,
.jssc-quiz select {
	-webkit-user-select: text;
	-moz-user-select: text;
	-ms-user-select: text;
	user-select: text;
}

/* ---------- Printing: quiz/review always blocked, Question Paper opt-in ---------- */
/* Applies no matter how print is triggered (Ctrl+P, right-click > Print,
   browser menu, or "Save as PDF"), since all of these render using the
   print stylesheet. It cannot stop screenshots or screen recording —
   nothing running in the browser can.

   Nothing under `.jssc-quiz` is printable by default — this covers the
   running exam, the results/review-answers screen, and the report modal.
   The one opt-in exception is the Question Paper overlay, and only when
   `jssc-qpaper-print-ok` is present on the `.jssc-quiz` container (added
   by quiz.js only when the admin has turned printing on for this specific
   test AND the student currently has that overlay open). Note: because
   `display: none` on an ancestor hides descendants unconditionally, the
   base rule hides specific children rather than `.jssc-quiz` itself — that
   leaves room for the exception below to re-show just the one part that's
   allowed to print. */
@media print {
	.jssc-quiz-dynamic,
	.jssc-report-overlay,
	.jssc-quiz-ad-static {
		display: none !important;
	}
	#jssc-qpaper-overlay {
		display: none !important;
	}

	.jssc-quiz.jssc-qpaper-print-ok #jssc-qpaper-overlay {
		display: block !important;
		position: static !important;
		background: none !important;
		padding: 0 !important;
	}
	.jssc-quiz.jssc-qpaper-print-ok #jssc-qpaper-overlay .jssc-qpaper-box {
		box-shadow: none !important;
		max-height: none !important;
		overflow: visible !important;
		width: 100% !important;
		max-width: none !important;
		padding: 0 !important;
		border-radius: 0 !important;
	}
	.jssc-quiz.jssc-qpaper-print-ok #jssc-qpaper-overlay .jssc-qpaper-actions {
		display: none !important;
	}

	body.jssc-print-blocked::before {
		content: 'Printing of this test is disabled.';
		display: block;
		text-align: center;
		font-size: 16px;
		padding: 24px 0;
	}
}


/* Paywall card extras (v2.1.38): "You save" line, icon chips, lock on the secure line. */
.jssc-checkout-save { margin-top: -6px; font-size: 12.5px; font-weight: 700; color: var(--jssc-correct); }
.jssc-checkout-meta-row { gap: 8px; }
.jssc-checkout-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #F0F4FB;
	border-radius: 999px;
	padding: 5px 11px;
	font-size: 12px;
	font-weight: 600;
	color: var(--jssc-ink-soft);
}
.jssc-checkout-chip svg { flex: none; color: var(--jssc-ink-soft); }
.jssc-checkout-secure { display: flex; align-items: center; justify-content: center; gap: 5px; }

/* Paywall: card, trust strip and "Also Included In" box all share one width (v2.1.41). */
.jssc-checkout-card,
.jssc-checkout-trust,
.jssc-paywall.jssc-paywall-box {
	box-sizing: border-box;
	width: 100%;
	max-width: 560px;
	margin-left: auto;
	margin-right: auto;
}

/* Paywall: everything centred (v2.1.42). */
.jssc-checkout-card,
.jssc-checkout-trust { text-align: center; }
.jssc-checkout-head { justify-content: center; text-align: center; }
.jssc-checkout-body { align-items: center; }
.jssc-checkout-price-row,
.jssc-checkout-meta-row,
.jssc-checkout-trust-head { justify-content: center; }
.jssc-checkout-trust li { justify-content: center; text-align: center; }
.jssc-checkout-already { text-align: left; align-self: stretch; }
.jssc-checkout-cta { align-self: stretch; }
.jssc-paywall-table th,
.jssc-paywall-table td { text-align: center; }

/* Paywall: tighter spacing throughout (v2.1.44). */
.jssc-checkout-card { margin: 10px auto 8px; }
.jssc-checkout-head { padding: 12px 16px; }
.jssc-checkout-body { padding: 12px 16px 12px; gap: 8px; }
.jssc-checkout-save { margin-top: -4px; }
.jssc-checkout-trust { margin: 0 auto 8px; padding: 12px 16px 14px; }
.jssc-checkout-trust-head { margin: 0 0 8px; }
.jssc-checkout-trust ul { gap: 6px 8px; }
.jssc-checkout-trust li { padding: 6px 10px; }
.jssc-paywall.jssc-paywall-box { padding-top: 14px; padding-bottom: 14px; margin-top: 0; margin-bottom: 8px; }
.jssc-paywall-box-header { margin-bottom: 6px; }
@media (max-width: 480px) {
	.jssc-checkout-head { padding: 12px 14px; }
	.jssc-checkout-body { padding: 12px 14px; }
	.jssc-checkout-trust { padding: 12px 14px; }
}

/* "Also Included In": use the box's full width — name hugs the left edge, button the right (v2.1.46). */
.jssc-paywall.jssc-paywall-box { padding-left: 14px; padding-right: 14px; }
.jssc-paywall-table td.jssc-paywall-table-name { text-align: left; width: 40%; padding-left: 0; }
.jssc-paywall-table td.jssc-paywall-table-action { text-align: right; width: 28%; padding-right: 0; }

/* "Also Included In": each plan as its own soft card-row (v2.1.47). */
.jssc-paywall-box-header h4 { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 14.5px; font-weight: 800; color: var(--jssc-ink) !important; }
.jssc-paywall-table { border-collapse: separate; border-spacing: 0 6px; table-layout: auto; }
.jssc-paywall-table tbody tr { background: #F5F8FD; }
.jssc-paywall-table tbody tr:hover { background: #EEF3FB; }
.jssc-paywall-table td { border-bottom: none; padding: 10px 8px; }
.jssc-paywall-table td:first-child { border-radius: 12px 0 0 12px; padding-left: 14px !important; border-left: 3px solid var(--jssc-gold); }
.jssc-paywall-table td:last-child { border-radius: 0 12px 12px 0; padding-right: 10px !important; }
.jssc-paywall-table td.jssc-paywall-table-price { font-size: 16px; font-weight: 800; }
.jssc-paywall-table td.jssc-paywall-table-expiry { font-size: 11.5px; font-weight: 600; }

/* Smaller inner left/right padding in all three paywall boxes (v2.1.48). */
.jssc-checkout-head { padding-left: 10px; padding-right: 10px; }
.jssc-checkout-body { padding-left: 8px; padding-right: 8px; }
.jssc-checkout-trust { padding-left: 8px; padding-right: 8px; }
.jssc-paywall.jssc-paywall-box { padding-left: 8px; padding-right: 8px; }
.jssc-paywall-table td:first-child { padding-left: 10px !important; }
.jssc-paywall-table td:last-child { padding-right: 6px !important; }
@media (max-width: 480px) {
	.jssc-checkout-head { padding-left: 10px; padding-right: 10px; }
	.jssc-checkout-body,
	.jssc-checkout-trust { padding-left: 8px; padding-right: 8px; }
}

/* Product page for a buyer who already has access (v2.1.49): a calm "you're in" card instead of the price box. */
.jssc-product-access-box {
	background: linear-gradient(135deg, var(--jssc-ink) 0%, #253A63 100%);
	border-radius: 14px;
	padding: 18px 14px;
	text-align: center;
	margin-bottom: 14px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}
.jssc-product-access-badge {
	width: 44px; height: 44px; border-radius: 50%;
	background: var(--jssc-correct);
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 0 0 6px rgba(46,125,91,0.25);
	margin-bottom: 4px;
}
.jssc-product-access-title { font-size: 19px; font-weight: 800; color: #fff; }
.jssc-product-access-line { font-size: 13px; color: rgba(255,255,255,0.78); margin-bottom: 6px; }

/* Product page (not yet bought) polish, v2.1.50 — same look as the paywall card. */
.jssc-product-price-box {
	background: linear-gradient(135deg, var(--jssc-ink) 0%, #253A63 100%);
	padding: 16px 14px;
	box-shadow: 0 1px 2px rgba(16,24,40,0.05), 0 8px 24px rgba(16,24,40,0.12);
}
.jssc-product-price-now { font-size: 36px; line-height: 1.1; }
.jssc-product-validity {
	display: inline-block;
	background: rgba(255,255,255,0.1);
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 12.5px;
	margin-bottom: 10px;
}
.jssc-coupon-box { margin: 0 0 10px; }
.jssc-coupon-input { padding: 7px 10px; border-radius: 8px; }
.jssc-coupon-message { margin: 4px 0 0; min-height: 0; }
.jssc-coupon-message:empty { display: none; }
.jssc-product-buy { box-shadow: none; max-width: none; border-radius: 9px !important; }
.jssc-product-trust { gap: 8px; margin-bottom: 12px; padding-bottom: 12px; }
.jssc-product-trust-item {
	background: #F0F4FB;
	border-radius: 999px;
	padding: 5px 12px;
	font-size: 12.5px;
	font-weight: 600;
}

/* Use the full width the theme gives us (v2.1.51): no fixed max-widths on the product page or paywall boxes. */
.jssc-product-page { max-width: none; width: 100%; box-sizing: border-box; }
.jssc-checkout-card,
.jssc-checkout-trust,
.jssc-paywall.jssc-paywall-box,
.jssc-paywall.jssc-paywall-lock { max-width: none; width: 100%; box-sizing: border-box; }
.jssc-product-buy { max-width: none; }

/* Login / register screen — compact, full-width polish (v2.1.52). */
.jssc-account { max-width: none; width: 100%; margin: 12px auto; }
.jssc-account-card { padding: 16px 14px; border-radius: 16px; }
.jssc-account-brand { padding: 14px 14px 13px; margin-bottom: 12px; border-radius: 12px; }
.jssc-account-brand-icon { font-size: 22px; width: 42px; height: 42px; line-height: 42px; margin-bottom: 6px; }
.jssc-account-brand h3 { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 18px; font-weight: 800; margin-bottom: 2px; }
.jssc-account-brand p { font-size: 13px; }
.jssc-google-badge { font-size: 12.5px; margin-bottom: 6px; }
.jssc-google-highlight { background: transparent; border: none; padding: 0; margin-bottom: 2px; }
.jssc-google-highlight .jssc-google-btn-wrap,
.jssc-google-highlight .jssc-google-btn-wrap { transform: none; margin-bottom: 0; }
.jssc-account-divider-soft { margin: 8px 0; }
.jssc-email-toggle { padding: 8px 12px; margin-bottom: 6px; border-radius: 9px; }
.jssc-account-tabs { margin-bottom: 10px; }
.jssc-field { margin-bottom: 9px; }
.jssc-field span { font-size: 11.5px; margin-bottom: 3px; }
.jssc-field input { min-height: 38px; padding: 7px 11px; font-size: 14px; border-radius: 9px; }
.jssc-account-forgot-link { margin: -2px 0 8px; padding: 2px 0; font-size: 12.5px; }
.jssc-account-submit { min-height: 40px; padding: 9px; font-size: 14px; margin-top: 2px; border-radius: 9px !important; }
@media (max-width: 480px) {
	.jssc-account { margin: 8px auto; }
	.jssc-account-card { padding: 14px 12px; }
}

/* Login / register: on desktop keep the form a comfortable narrow width (v2.1.53); phones still fill the screen. */
.jssc-account { max-width: 440px; }

/* Logged-in account dashboard: use the full content width (v2.1.54). Also stops the login form's narrow width above from squeezing it. */
.jssc-account.jssc-dash { max-width: none; width: 100%; margin: 16px auto; }
.jssc-dash-main { min-width: 0; }

/* Account dashboard UI polish + edge-to-edge on phones (v2.1.55). */
.jssc-dash-side { background: linear-gradient(180deg, #F4F6FB 0%, #EAEFF9 100%); }
.jssc-dash-profile .jssc-account-avatar { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--jssc-gold); }
.jssc-dash-nav-item { position: relative; transition: background-color .15s ease, color .15s ease, padding-left .15s ease; }
.jssc-dash-nav-item.active { box-shadow: 0 4px 12px rgba(27,42,74,0.22); }
.jssc-dash-nav-item.active::before { content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--jssc-gold); }
.jssc-dash-panel h3 { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 20px; font-weight: 800; }
.jssc-quick-tile { box-shadow: 0 1px 2px rgba(16,24,40,0.04); background: #fff !important; }
.jssc-dash-stat { background: #fff !important; border: 1px solid var(--jssc-line); border-top: 3px solid var(--jssc-gold); box-shadow: 0 1px 2px rgba(16,24,40,0.04); }
.jssc-dash-stat-num { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-weight: 800; }
.jssc-account-purchases li { background: #fff !important; border: 1px solid var(--jssc-line); border-left: 3px solid var(--jssc-correct); border-radius: 10px; }
.jssc-account-purchase-expiry { background: var(--jssc-correct-bg); color: var(--jssc-correct); font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; text-transform: capitalize; }

@media (max-width: 700px) {
	.jssc-dash, .jssc-account.jssc-dash { margin: 0; border-radius: 0; border-left: none; border-right: none; box-shadow: none; }
	.jssc-dash-main { padding: 14px 8px; }
	.jssc-dash-side { padding: 12px 8px; }
	/* nav becomes one swipeable chip row instead of a wrapped block */
	.jssc-dash-nav { flex-wrap: nowrap; overflow-x: auto; gap: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.jssc-dash-nav::-webkit-scrollbar { display: none; }
	.jssc-dash-nav-item { flex: 0 0 auto; white-space: nowrap; min-height: 36px; padding: 7px 12px; border-radius: 999px; font-size: 12.5px; }
	.jssc-dash-nav-item.active::before { display: none; }
	.jssc-quick-tile { padding: 10px 6px; }
}
@media (max-width: 420px) {
	.jssc-dash, .jssc-account.jssc-dash { margin: 0; }
	.jssc-dash-main { padding: 12px 6px; }
}
@media (max-width: 480px) {
	.jssc-account-card { border-left: none; border-right: none; border-radius: 0; box-shadow: none; padding-left: 8px; padding-right: 8px; }
	.jssc-product-page { padding-left: 0; padding-right: 0; }
}
@media (max-width: 700px) {
	.jssc-dash, .jssc-account.jssc-dash { grid-template-columns: minmax(0, 1fr); overflow-x: hidden; }
	.jssc-dash-side, .jssc-dash-main { min-width: 0; max-width: 100%; box-sizing: border-box; }
	.jssc-dash-nav { max-width: 100%; }
	.jssc-dash-email { word-break: break-all; font-size: 11.5px; }
}
@media (max-width: 700px) {
	.jssc-dash-nav { flex: 0 0 100%; }
	.jssc-dash-profile { min-width: 0; }
}
@media (max-width: 420px) { .jssc-dash-stat { flex: 1 1 calc(50% - 4px); } }

/* Dashboard side menu: icon tiles, clearer states, tidy logout (v2.1.56). */
.jssc-dash-nav { gap: 3px; }
.jssc-dash-nav-item { display: flex; align-items: center; gap: 10px; text-align: left; padding: 7px 10px; min-height: 40px; border-radius: 10px; font-size: 13.5px; }
.jssc-dash-nav-ico {
	flex: none;
	width: 28px; height: 28px;
	display: inline-flex; align-items: center; justify-content: center;
	background: #fff; border-radius: 8px;
	font-size: 14px; line-height: 1;
	box-shadow: 0 1px 2px rgba(16,24,40,0.08);
}
.jssc-dash-nav-item.active .jssc-dash-nav-ico { background: rgba(255,255,255,0.16); box-shadow: none; }
.jssc-dash-nav-item:not(.active):hover .jssc-dash-nav-ico { box-shadow: 0 2px 6px rgba(27,42,74,0.18); }
.jssc-dash-nav-label { flex: 1; min-width: 0; }
.jssc-dash-nav-item[data-tab="live"] .jssc-dash-nav-label::after {
	content: 'LIVE'; margin-left: 7px; font-size: 9.5px; font-weight: 800; letter-spacing: .05em;
	color: #fff; background: #D64545; padding: 2px 6px; border-radius: 999px; vertical-align: 1px;
}
.jssc-dash-logout { border-radius: 10px !important; margin-top: 4px; }
.jssc-dash-side > form { border-top: 1px solid var(--jssc-line); padding-top: 12px; }
@media (max-width: 700px) {
	.jssc-dash-nav-item { padding: 5px 12px 5px 6px; min-height: 36px; border-radius: 999px; }
	.jssc-dash-nav-ico { width: 24px; height: 24px; border-radius: 50%; font-size: 12px; }
	.jssc-dash-nav-item[data-tab="live"] .jssc-dash-nav-label::after { display: none; }
	.jssc-dash-side > form { border-top: none; padding-top: 0; }
}

/* Active menu item: nothing sticks out of the pill — gold bar removed, everything stays inside the box (v2.1.57). */
.jssc-dash-nav-item { overflow: hidden; }
.jssc-dash-nav-item.active::before { display: none !important; content: none; }

/* Active menu item: no blue fill — plain white pill with a thin outline (v2.1.58). */
.jssc-dash-nav-item.active { background: #fff !important; color: var(--jssc-ink) !important; border: 1px solid var(--jssc-line) !important; box-shadow: 0 1px 3px rgba(16,24,40,0.08); font-weight: 800; }
.jssc-dash-nav-item.active .jssc-dash-nav-ico { background: #F0F4FB; box-shadow: none; }

/* Log out button (v2.1.60): soft red outline that fills on hover, with a door-arrow icon. */
.jssc-dash-side .jssc-dash-logout {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	width: 100%; min-height: 38px; padding: 8px 12px; box-sizing: border-box;
	background: #fff !important; color: #B0392C !important; -webkit-text-fill-color: #B0392C !important;
	border: 1px solid #F0C9C4 !important; border-radius: 10px !important;
	font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none !important;
	box-shadow: 0 1px 2px rgba(16,24,40,0.05);
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.jssc-dash-side .jssc-dash-logout:hover { background: #B0392C !important; color: #fff !important; -webkit-text-fill-color: #fff !important; border-color: #B0392C !important; }
.jssc-dash-side .jssc-dash-logout:focus-visible { outline: 2px solid #B0392C; outline-offset: 2px; }
@media (max-width: 700px) { .jssc-dash-side .jssc-dash-logout { width: auto; min-height: 34px; padding: 6px 12px; } }

/* Less space on the left inside menu buttons (v2.1.62). */
.jssc-dash-nav-item { padding-left: 4px; }
.jssc-dash-nav-item.active { padding-left: 3px; }
@media (max-width: 700px) { .jssc-dash-nav-item { padding-left: 4px; } }

/* Less padding top/bottom/right inside menu buttons too (v2.1.63). */
.jssc-dash-nav-item { padding: 3px 6px 3px 4px; min-height: 36px; }
.jssc-dash-nav-item.active { padding: 3px 6px 3px 3px; }
@media (max-width: 700px) { .jssc-dash-nav-item { padding: 3px 8px 3px 4px; min-height: 34px; } }

/* Dashboard notice + welcome heading centred on every screen size (v2.1.64). */
.jssc-dash-main .jssc-account-notice { text-align: center; }
.jssc-dash-panel > h3 { text-align: center; }

/* Phone layout for the dashboard header + menu (v2.1.65):
   profile row (avatar, name/email, round log-out icon) on top, then the
   8 menu items as a tidy 4-column grid of icon tiles — everything visible
   at once, no sideways swiping. */
@media (max-width: 700px) {
	.jssc-dash-side { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 10px; padding: 12px 10px 10px; position: relative; flex-wrap: wrap; }
	.jssc-dash-profile { flex: 1 1 0; min-width: 0; margin: 0; display: flex; align-items: center; gap: 10px; text-align: left; }
	.jssc-dash-profile .jssc-account-avatar { flex: none; width: 44px; height: 44px; font-size: 18px; margin: 0; }
	.jssc-dash-profile > .jssc-dash-name, .jssc-dash-profile > .jssc-dash-email { display: block; }
	.jssc-dash-name { font-size: 15px; line-height: 1.25; }
	.jssc-dash-email { font-size: 12px; word-break: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
	.jssc-dash-profile { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 10px; align-items: center; }
	.jssc-dash-profile .jssc-account-avatar { grid-row: 1 / span 2; }

	.jssc-dash-side > form { flex: none; order: 2; border: none; padding: 0; }
	.jssc-dash-side .jssc-dash-logout { width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50% !important; }
	.jssc-dash-side .jssc-dash-logout span { display: none; }

	.jssc-dash-nav { order: 3; flex: 0 0 100%; width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; overflow: visible; margin: 4px 0 0; }
	.jssc-dash-nav-item {
		flex-direction: column; justify-content: center; gap: 4px;
		min-height: 62px; padding: 7px 2px 6px; border-radius: 12px; text-align: center;
		background: #fff !important; border: 1px solid var(--jssc-line) !important;
		font-size: 11px; font-weight: 600; line-height: 1.15;
	}
	.jssc-dash-nav-ico { width: 28px; height: 28px; border-radius: 9px; font-size: 14px; background: #F0F4FB; box-shadow: none; }
	.jssc-dash-nav-label { flex: none; }
	.jssc-dash-nav-item.active { border: 1.5px solid var(--jssc-gold) !important; box-shadow: 0 2px 8px rgba(198,138,46,0.25); color: var(--jssc-ink) !important; font-weight: 800; }
	.jssc-dash-nav-item[data-tab="live"] .jssc-dash-nav-label::after { display: none; }
}
@media (max-width: 700px) {
	.jssc-dash-profile { column-gap: 14px; row-gap: 0; padding-left: 4px; }
	.jssc-dash-profile .jssc-account-avatar { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--jssc-gold); }
}

/* Section headings in the dashboard ("Your active access" etc.): centred, written inside a soft strip (v2.1.66). */
.jssc-dash-panel h4 {
	text-align: center;
	background: #F0F4FB;
	border: 1px solid var(--jssc-line);
	border-radius: 10px;
	padding: 8px 12px;
	margin: 0 0 8px;
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--jssc-ink) !important;
}

/* ---------- "Divider pill" headings (v2.1.67): a centred pill sitting on a fading line, like "16 tools found" ----------
   Used for every section heading: dashboard tabs, product page "What's included",
   paywall "Why Choose" / "Also Included In" / "Browse Other Test Series". */
.jssc-strip.jssc-strip {
	display: flex;
	align-items: center;
	gap: 12px;
	background: none;
	border: none;
	box-shadow: none;
	padding: 0;
	margin: 14px 0 12px;
	text-align: center;
	text-transform: none;
	letter-spacing: 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 12.5px;
	line-height: 1.3;
}
.jssc-strip.jssc-strip::before,
.jssc-strip.jssc-strip::after {
	content: '';
	flex: 1 1 0;
	min-width: 12px;
	height: 1px;
	background: linear-gradient(90deg, rgba(120,116,230,0), #AFAAF0);
}
.jssc-strip.jssc-strip::after { background: linear-gradient(270deg, rgba(120,116,230,0), #AFAAF0); }
.jssc-strip.jssc-strip > span {
	flex: 0 1 auto;
	max-width: 80%;
	background: #fff;
	border: 1px solid #DAD7F7;
	border-radius: 999px;
	padding: 6px 16px;
	font-size: 13px;
	font-weight: 800;
	color: var(--jssc-ink) !important;
	box-shadow: 0 1px 2px rgba(60,56,160,0.08);
}
.jssc-strip.jssc-danger-heading > span { color: #B0392C !important; border-color: #F0C9C4; }
.jssc-dash-panel > .jssc-strip:first-child { margin-top: 4px; }

/* Alignment per screen: banners read better left-aligned on a wide desktop, centred on a phone. */
@media (min-width: 701px) {
	.jssc-dash-main .jssc-account-notice { text-align: left; }
}

/* Leaderboard: subject tabs and test pills centred (v2.1.70). */
.jssc-lb-subjects, .jssc-lb-picker { display: flex; flex-wrap: wrap; justify-content: center; }
.jssc-lb-mine { text-align: center; }

/* Leaderboard tabs/pills: less padding and tighter gaps (v2.1.71). */
.jssc-lb-subjects { gap: 6px; margin-bottom: 8px; padding-bottom: 8px; }
.jssc-lb-subject-tab { padding: 4px 12px; font-size: 12.5px; border-radius: 7px; line-height: 1.3; }
.jssc-lb-picker { gap: 5px; margin-bottom: 8px; }
.jssc-lb-pick { padding: 4px 11px !important; font-size: 12px !important; line-height: 1.3; }
.jssc-lb-mine { padding: 6px 10px; margin-bottom: 6px; }

/* Delete Account "danger zone" card (v2.1.72). */
.jssc-danger-zone {
	position: relative;
	background: #FFF6F5;
	border: 1px solid #F3C9C4;
	border-left: 4px solid #D64545;
	border-radius: 14px;
	padding: 14px 14px 14px 14px;
	margin-bottom: 8px;
}
.jssc-danger-zone-icon {
	width: 34px; height: 34px; border-radius: 10px;
	background: #FDE4E1; display: flex; align-items: center; justify-content: center;
	font-size: 17px; margin-bottom: 8px;
}
.jssc-danger-zone .jssc-danger-note { max-width: none; margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: #7A4A46; }
.jssc-danger-zone .jssc-dash-form { max-width: none; }
.jssc-danger-zone .jssc-field input { border-color: #F0C9C4 !important; background: #fff !important; }
.jssc-danger-zone .jssc-field input:focus { border-color: #D64545 !important; box-shadow: 0 0 0 3px rgba(214,69,69,0.15); }
.jssc-danger-zone .jssc-field span { color: #8A3B35; text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.jssc-danger-zone .jssc-danger-btn {
	display: flex; align-items: center; justify-content: center;
	width: 100%; min-height: 40px; padding: 9px 14px; box-sizing: border-box;
	background: #D64545 !important; color: #fff !important; -webkit-text-fill-color: #fff !important;
	border: none !important; border-radius: 10px !important;
	font-size: 14px; font-weight: 700; cursor: pointer;
	transition: background-color .15s ease;
}
.jssc-danger-zone .jssc-danger-btn:hover { background: #B42318 !important; }

/* Profile / Change Password forms as proper cards (v2.1.73). */
.jssc-dash-form {
	max-width: none;
	background: #fff;
	border: 1px solid var(--jssc-line);
	border-top: 3px solid var(--jssc-gold);
	border-radius: 14px;
	padding: 14px 14px 16px;
	box-shadow: 0 1px 2px rgba(16,24,40,0.04), 0 6px 18px rgba(27,42,74,0.06);
	margin-bottom: 6px;
}
.jssc-dash-form .jssc-field { margin-bottom: 12px; }
.jssc-dash-form .jssc-field span { color: var(--jssc-ink-soft); }
.jssc-dash-form .jssc-field input { background: #F8FAFE !important; border: 1px solid var(--jssc-line) !important; border-radius: 10px; min-height: 40px; }
.jssc-dash-form .jssc-field input:focus { background: #fff !important; border-color: var(--jssc-ink) !important; box-shadow: 0 0 0 3px rgba(27,42,74,0.10); }
.jssc-dash-form > .jssc-btn-primary { width: 100%; min-height: 42px; border-radius: 10px !important; box-shadow: 0 4px 12px rgba(27,42,74,0.22); margin-top: 2px; }
@media (min-width: 701px) { .jssc-dash-form { max-width: 520px; margin-left: auto; margin-right: auto; } }
/* the delete form lives inside its own danger card — no second card */
.jssc-danger-zone .jssc-dash-form { background: none; border: none; box-shadow: none; padding: 0; margin: 0; max-width: none; }
@media (min-width: 701px) { .jssc-danger-zone { max-width: 520px; margin-left: auto; margin-right: auto; } }

/* Phone menu: 3 tiles per row, last row centred (v2.1.74). */
@media (max-width: 700px) {
	.jssc-dash-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
	.jssc-dash-nav-item { flex: 0 0 calc((100% - 12px) / 3); max-width: calc((100% - 12px) / 3); min-height: 64px; font-size: 11.5px; }
}

/* Profile / password cards: full width like the headings above them, fields side by side on wide screens, plain border (v2.1.75). */
.jssc-dash-form { border-top: 1px solid var(--jssc-line); max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
.jssc-danger-zone { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
.jssc-dash-form:not(.jssc-danger-zone *) { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 14px; align-items: start; }
.jssc-dash-form:not(.jssc-danger-zone *) > input[type="hidden"] { display: none; }
.jssc-dash-form:not(.jssc-danger-zone *) > .jssc-btn-primary { grid-column: 1 / -1; width: auto; min-width: 200px; justify-self: start; }
@media (min-width: 701px) { .jssc-dash-form:not(.jssc-danger-zone *) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .jssc-dash-form:not(.jssc-danger-zone *) > .jssc-btn-primary { width: 100%; justify-self: stretch; } }
@media (min-width: 701px) {
	.jssc-dash-form:not(.jssc-danger-zone *) { align-items: stretch; }
	.jssc-dash-form:not(.jssc-danger-zone *) > .jssc-field { display: flex; flex-direction: column; justify-content: flex-end; }
}

/* Slimmer buttons everywhere (v2.1.76). The inline button styles (see JSSC_MT_BTN_*_STYLE) were slimmed in PHP;
   these cover the buttons that get their size from the stylesheet. */
.jssc-btn { min-height: 0; }
.jssc-btn-lg { padding: 7px 16px; font-size: 14px; }
.jssc-btn-sm { padding: 4px 10px !important; min-height: 26px; font-size: 12px !important; }
.jssc-account-submit { min-height: 36px; padding: 7px; font-size: 14px; }
.jssc-dash-form > .jssc-btn-primary { min-height: 36px; padding-top: 7px; padding-bottom: 7px; }
.jssc-dash-side .jssc-dash-logout { min-height: 34px; padding: 6px 12px; }
.jssc-danger-zone .jssc-danger-btn { min-height: 36px; padding: 7px 14px; }
.jssc-checkout-cta { padding: 7px 18px !important; }
@media (max-width: 700px) { .jssc-dash-side .jssc-dash-logout { width: 36px; height: 36px; min-height: 36px; padding: 0; } }

/* ===== v2.1.77 — result page + submit modal: alignment & mobile fit ===== */
/* centre everything, like the rest of the page (tiles, banner, buttons were centred; tables were left-aligned) */
.jssc-submit-table th, .jssc-submit-table td { text-align: center; }
.jssc-submit-tile { text-align: center; }
.jssc-section-results-title, .jssc-top-scorers-title { text-align: center; }
.jssc-top-scorers { max-width: 420px; margin-left: auto; margin-right: auto; }
.jssc-results-pct { display: inline-block; white-space: nowrap; }
/* phones: the table used to be forced to 420-480px wide, so Skipped/Score were cut off.
   Let it shrink to the screen, wrap the headings, and put the % chip under the score. */
@media (max-width: 600px) {
	.jssc-submit-table { min-width: 0; table-layout: auto; font-size: 12px; }
	.jssc-submit-table th { white-space: normal; line-height: 1.2; padding: 6px 3px; font-size: 11px; }
	.jssc-submit-table td { padding: 6px 3px; }
	.jssc-results-table td:nth-child(2), .jssc-results-table td:nth-child(3), .jssc-results-table td:nth-child(4) { white-space: normal; }
	.jssc-section-results .jssc-results-pct { display: block; width: fit-content; margin: 2px auto 0; }
	.jssc-submit-tiles { grid-template-columns: repeat(3, 1fr); }
}

/* ===== v2.1.78 — share result ===== */
.jssc-results-actions { flex-wrap: wrap; }
.jssc-share-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 99999; max-width: 90vw; background: #1B2A4A; color: #fff; padding: 10px 16px; border-radius: 10px; font: 600 14px/1.3 'Inter', sans-serif; box-shadow: 0 8px 24px rgba(0,0,0,.25); text-align: center; }

/* ===== v2.1.85 — result page: minimum spacing ===== */
.jssc-quiz .jssc-head { padding: 8px 12px; }
.jssc-quiz .jssc-results { padding: 8px 8px 8px; }
.jssc-quiz .jssc-score-banner { padding: 10px 10px; margin-bottom: 8px; }
.jssc-quiz .jssc-score-banner .jssc-score-pct { margin-top: 0; }
.jssc-quiz .jssc-score-banner .jssc-verdict { margin-top: 5px; padding: 3px 8px; }
.jssc-quiz .jssc-summary-row { margin-bottom: 8px; }
.jssc-quiz .jssc-summary-row > div { padding: 6px 6px; }
.jssc-quiz .jssc-rank-card { padding: 8px; margin-bottom: 8px; }
.jssc-quiz .jssc-rank-tile { padding: 6px 6px; }
.jssc-quiz .jssc-top-scorers { margin-top: 8px; }
.jssc-quiz .jssc-top-scorers li { padding: 2px 0; }
.jssc-quiz .jssc-section-results { margin-bottom: 8px; }
.jssc-quiz .jssc-section-results-title { padding: 4px 8px; margin-bottom: 4px; }
.jssc-quiz .jssc-submit-table th { padding: 4px 3px; }
.jssc-quiz .jssc-submit-table td { padding: 4px 3px; }
.jssc-quiz .jssc-section-results .jssc-results-pct { margin-top: 1px; padding: 0 6px; }
.jssc-quiz .jssc-results-actions { gap: 6px; margin-bottom: 0; }
.jssc-quiz .jssc-submit-tiles { gap: 4px; padding: 6px 8px; }
.jssc-quiz .jssc-submit-tile { padding: 5px 6px; }
.jssc-quiz .jssc-submit-header { padding: 8px 12px; }
.jssc-quiz .jssc-submit-actions { padding: 8px 12px; }

/* ===== v2.1.86 — review filters, practice round, time, saved attempts ===== */
.jssc-quiz .jssc-review-filters { display: flex; gap: 5px; justify-content: center; flex-wrap: wrap; margin: 6px 0; }
.jssc-quiz .jssc-review-filter {
	font: 600 12.5px/1 'Inter', sans-serif; padding: 6px 11px; border-radius: 16px; cursor: pointer;
	background: transparent !important; color: var(--jssc-ink-soft) !important; border: 1.5px solid var(--jssc-line) !important;
}
.jssc-quiz .jssc-review-filter b { font-weight: 800; margin-left: 2px; }
.jssc-quiz .jssc-review-filter.active { background: var(--jssc-ink) !important; color: var(--jssc-card) !important; border-color: var(--jssc-ink) !important; }
.jssc-quiz .jssc-review-empty { text-align: center; color: var(--jssc-muted); font-size: 13px; padding: 10px 0; }
.jssc-quiz .jssc-review-empty[hidden] { display: none; }
.jssc-quiz .jssc-review-list[data-filter="wrong"] .jssc-review-item:not([data-status="wrong"]),
.jssc-quiz .jssc-review-list[data-filter="skipped"] .jssc-review-item:not([data-status="skipped"]),
.jssc-quiz .jssc-review-list[data-filter="correct"] .jssc-review-item:not([data-status="correct"]) { display: none; }
.jssc-quiz .jssc-practice-note { text-align: center; font-size: 12.5px; color: var(--jssc-ink-soft); background: var(--jssc-paper); border: 1px dashed var(--jssc-line); border-radius: 8px; padding: 5px 8px; margin-bottom: 8px; }
.jssc-quiz .jssc-score-time { font-size: 13px; color: var(--jssc-muted); margin-top: 3px; }
.jssc-quiz .jssc-score-time b { color: var(--jssc-ink); font-variant-numeric: tabular-nums; }
.jssc-quiz .jssc-sr-name small { display: block; font-size: 10.5px; font-weight: 500; color: var(--jssc-muted); line-height: 1.1; }
.jssc-quiz .jssc-results-actions { flex-wrap: wrap; }
/* % chip: plain coloured text (no pill) so section rows stay one short row */
.jssc-quiz .jssc-section-results .jssc-results-pct { background: none !important; padding: 0 !important; border-radius: 0; font-weight: 700; font-size: 11.5px; }
.jssc-quiz .jssc-section-results .jssc-results-pct--good { color: var(--jssc-correct); }
.jssc-quiz .jssc-section-results .jssc-results-pct--low { color: var(--jssc-wrong); }

/* ===== v2.1.86 — dark mode (.jssc-dark is set by quiz.js when the page behind the quiz is dark) ===== */
.jssc-quiz.jssc-dark {
	--jssc-ink: #E6EAF7;
	--jssc-ink-soft: #B4BCD6;
	--jssc-paper: #151829;
	--jssc-card: #1D2136;
	--jssc-line: #343A58;
	--jssc-gold: #E0A94A;
	--jssc-correct: #62D3A0;
	--jssc-correct-bg: #123428;
	--jssc-wrong: #FF8F80;
	--jssc-wrong-bg: #3B1F22;
	--jssc-muted: #98A1BC;
	--jssc-btn-bg: #4C63D2;
	--jssc-btn-ink: #FFFFFF;
	--jssc-ghost-ink: #C9D3F5;
	color: var(--jssc-ink);
}
.jssc-quiz.jssc-dark .jssc-head { background: #0F1226; color: #fff; }
.jssc-quiz.jssc-dark .jssc-head h3 { color: #fff; }
.jssc-quiz.jssc-dark .jssc-card,
.jssc-quiz.jssc-dark .jssc-results,
.jssc-quiz.jssc-dark .jssc-intro,
.jssc-quiz.jssc-dark .jssc-main,
.jssc-quiz.jssc-dark .jssc-exam-main { background: var(--jssc-card); color: var(--jssc-ink); }
.jssc-quiz.jssc-dark .jssc-score-banner,
.jssc-quiz.jssc-dark .jssc-summary-row > div,
.jssc-quiz.jssc-dark .jssc-rank-card,
.jssc-quiz.jssc-dark .jssc-submit-box,
.jssc-quiz.jssc-dark .jssc-submit-tile { background: var(--jssc-card); border-color: var(--jssc-line); color: var(--jssc-ink); }
.jssc-quiz.jssc-dark .jssc-rank-tile { background: var(--jssc-paper); border-color: var(--jssc-line); }
.jssc-quiz.jssc-dark .jssc-score-banner .jssc-score-num,
.jssc-quiz.jssc-dark .jssc-submit-tile-num,
.jssc-quiz.jssc-dark .jssc-summary-row .num,
.jssc-quiz.jssc-dark .jssc-top-scorer-name,
.jssc-quiz.jssc-dark .jssc-top-scorer-score { color: var(--jssc-ink); }
.jssc-quiz.jssc-dark .jssc-summary-row .correct .num { color: var(--jssc-correct); }
.jssc-quiz.jssc-dark .jssc-summary-row .wrong .num { color: var(--jssc-wrong); }
.jssc-quiz.jssc-dark .jssc-section-results-title { background: #232845; color: var(--jssc-ink); }
.jssc-quiz.jssc-dark .jssc-submit-table-wrap { border-color: var(--jssc-line); }
.jssc-quiz.jssc-dark .jssc-submit-table th { background: #232845; color: var(--jssc-ink); }
.jssc-quiz.jssc-dark .jssc-submit-table td { color: var(--jssc-ink); border-color: var(--jssc-line); background: transparent; }
.jssc-quiz.jssc-dark .jssc-submit-header,
.jssc-quiz.jssc-dark .jssc-submit-actions { background: var(--jssc-card); color: var(--jssc-ink); border-color: var(--jssc-line); }
.jssc-quiz.jssc-dark .jssc-review-item,
.jssc-quiz.jssc-dark .jssc-option,
.jssc-quiz.jssc-dark .jssc-exam-option { background: var(--jssc-paper); border-color: var(--jssc-line); color: var(--jssc-ink); }
.jssc-quiz.jssc-dark .jssc-option.jssc-correct { background: var(--jssc-correct-bg); border-color: var(--jssc-correct); }
.jssc-quiz.jssc-dark .jssc-option.jssc-wrong { background: var(--jssc-wrong-bg); border-color: var(--jssc-wrong); }
.jssc-quiz.jssc-dark .jssc-exam-option.jssc-selected { background: #28305A; border-color: #7F93F0; }
.jssc-quiz.jssc-dark .jssc-q-text,
.jssc-quiz.jssc-dark .jssc-exam-qtext { color: var(--jssc-ink); }
.jssc-quiz.jssc-dark .jssc-review-heading { color: var(--jssc-ink); }
.jssc-quiz.jssc-dark .jssc-explain { background: var(--jssc-paper); color: var(--jssc-ink-soft); border-color: var(--jssc-line); }
.jssc-quiz.jssc-dark .jssc-results-pct--good { background: var(--jssc-correct-bg); }
.jssc-quiz.jssc-dark .jssc-results-pct--low { background: var(--jssc-wrong-bg); }
.jssc-quiz.jssc-dark .jssc-verdict.pass { background: var(--jssc-correct-bg); color: var(--jssc-correct); }
.jssc-quiz.jssc-dark .jssc-verdict.fail { background: var(--jssc-wrong-bg); color: var(--jssc-wrong); }
.jssc-quiz.jssc-dark .jssc-exam-submit-btn { background: #C0392B; color: #fff; }
/* dark: exam screen, tabs, palette, tables, passages */
.jssc-quiz.jssc-dark .jssc-exam-topbar { background: #0F1226 !important; color: #fff !important; }
.jssc-quiz.jssc-dark .jssc-exam-topbar * { color: inherit; }
.jssc-quiz.jssc-dark .jssc-section-tabs { background: #181C32 !important; border-color: var(--jssc-line) !important; }
.jssc-quiz.jssc-dark .jssc-section-tabs-label { color: var(--jssc-ink-soft) !important; }
.jssc-quiz.jssc-dark .jssc-section-tab { background: #262C4C !important; color: var(--jssc-ink-soft) !important; border-color: var(--jssc-line) !important; }
.jssc-quiz.jssc-dark .jssc-section-tab.jssc-section-tab-active { background: #4C63D2 !important; color: #fff !important; border-color: #4C63D2 !important; }
.jssc-quiz.jssc-dark .jssc-exam-qbar { background: var(--jssc-card) !important; color: var(--jssc-ink) !important; border-color: var(--jssc-line) !important; }
.jssc-quiz.jssc-dark .jssc-exam-btn-ghost { background: #262C4C !important; color: var(--jssc-ink) !important; border-color: var(--jssc-line) !important; }
.jssc-quiz.jssc-dark .jssc-exam-btn-primary { background: #4C63D2 !important; color: #fff !important; border-color: #4C63D2 !important; }
.jssc-quiz.jssc-dark .jssc-exam-side { background: #181C32 !important; color: var(--jssc-ink) !important; border-color: var(--jssc-line) !important; }
.jssc-quiz.jssc-dark .jssc-exam-avatar { background: #262C4C !important; color: var(--jssc-ink) !important; }
.jssc-quiz.jssc-dark .jssc-exam-testtype { background: #262C4C !important; color: var(--jssc-ink) !important; border-color: var(--jssc-line) !important; }
.jssc-quiz.jssc-dark .jssc-pc-shape.jssc-pc-not-visited { background: #262C4C !important; color: var(--jssc-ink) !important; border-color: #4A5278 !important; }
.jssc-quiz.jssc-dark .jssc-exam-side-btn { background: #262C4C !important; color: var(--jssc-ink) !important; border-color: var(--jssc-line) !important; }
.jssc-quiz.jssc-dark .jssc-exam-submit-btn { background: #C0392B !important; color: #fff !important; }
.jssc-quiz.jssc-dark .jssc-submit-table th,
.jssc-quiz.jssc-dark .jssc-section-results .jssc-submit-table th { background: #232845 !important; color: var(--jssc-ink) !important; }
.jssc-quiz.jssc-dark .jssc-passage-box { background: #2A2820 !important; color: var(--jssc-ink) !important; border-color: #5A5030 !important; }
.jssc-quiz.jssc-dark .jssc-pill-pos { color: #0B2A1E; }
.jssc-quiz.jssc-dark .jssc-pill-neg { color: #3A0F0A; }
.jssc-quiz.jssc-dark .jssc-exam-pausebtn { color: #1B1400 !important; }
/* v2.1.87: modal titles centered */
.jssc-quiz .jssc-submit-header,
.jssc-quiz .jssc-report-box h4,
.jssc-quiz .jssc-exam-pause-box { text-align: center; }
/* v2.1.88: submit buttons + palette tiles centered; first table column left everywhere */
.jssc-quiz .jssc-submit-actions { justify-content: center !important; }
.jssc-quiz .jssc-exam-palette { display: flex !important; flex-wrap: wrap; justify-content: center; }
.jssc-quiz .jssc-exam-palette > * { flex: 0 0 calc((100% - 28px) / 8); max-width: calc((100% - 28px) / 8); box-sizing: border-box; }
.jssc-quiz .jssc-palette-section-head { text-align: center; }
.jssc-quiz table th:first-child,
.jssc-quiz table td:first-child,
.jssc-quiz .jssc-section-results .jssc-submit-table th:first-child,
.jssc-quiz .jssc-section-results .jssc-submit-table td:first-child,
.jssc-quiz .jssc-submit-table th:first-child,
.jssc-quiz .jssc-submit-table td:first-child { text-align: left !important; }
.jssc-quiz .jssc-sr-name, .jssc-quiz .jssc-sr-name small { text-align: left; }
/* v2.1.89: palette count legend centered */
.jssc-quiz .jssc-exam-count-row { justify-content: center !important; }
.jssc-quiz .jssc-exam-counts { text-align: center; }
/* v2.1.91: leaderboard table spacing - narrow rank column, student name sits right next to it */
.jssc-lb-table { table-layout: auto; }
.jssc-lb-table th:first-child,
.jssc-lb-table td:first-child { width: 1%; white-space: nowrap; padding: 7px 4px 7px 12px !important; }
.jssc-lb-table th:nth-child(2),
.jssc-lb-table td:nth-child(2) { text-align: left !important; padding: 7px 8px !important; width: auto; }
.jssc-lb-table th:last-child,
.jssc-lb-table td:last-child { width: 1%; white-space: nowrap; text-align: right !important; padding: 7px 12px 7px 8px !important; }
.jssc-lb-table th, .jssc-lb-table td { padding-top: 7px !important; padding-bottom: 7px !important; }
.jssc-dash .jssc-submit-table th:first-child, .jssc-dash .jssc-submit-table td:first-child { text-align: left !important; }
/* v2.1.92: Review Answers heading centered */
.jssc-quiz .jssc-review-heading { text-align: center !important; }
/* v2.1.94: no outline ring on the current palette tile, on any theme */
.jssc-quiz .jssc-pc-current, .jssc-quiz .jssc-pc-current .jssc-pc-shape { box-shadow: none !important; outline: none !important; }
/* v2.1.95: palette tiles - bigger numbers, shorter boxes (less empty space) */
.jssc-quiz .jssc-palette-cell { height: 24px; }
.jssc-quiz .jssc-pc-shape { font-size: 13px; line-height: 1; }
/* v2.1.96: candidate avatar + name centered */
.jssc-quiz .jssc-exam-candidate { justify-content: center !important; text-align: center; }
/* v2.1.97: audit pass - popups, section tabs centered (intro screen restored to its original look in v2.1.106) */
.jssc-quiz .jssc-report-actions { justify-content: center !important; }
.jssc-quiz .jssc-report-box label, .jssc-quiz .jssc-report-box .jssc-report-label { text-align: left; }
.jssc-quiz .jssc-section-tabs { justify-content: center; text-align: center; }
.jssc-quiz .jssc-section-tabs-label { text-align: center; }
/* v2.1.98: hide the scrollbar under horizontally scrolling chip rows (still swipe/scroll-able) */
.jssc-pill-row, .jssc-section-tabs, .jssc-dash-nav, .jssc-lb-subjects { scrollbar-width: none; -ms-overflow-style: none; }
.jssc-pill-row::-webkit-scrollbar, .jssc-section-tabs::-webkit-scrollbar, .jssc-dash-nav::-webkit-scrollbar, .jssc-lb-subjects::-webkit-scrollbar { display: none; width: 0; height: 0; }
/* v2.1.99: audit - every button slimmed to one compact height (theme line-height / min-height can't inflate it) */
.jssc-quiz .jssc-btn,
.jssc-quiz .jssc-exam-btn,
.jssc-quiz .jssc-exam-submit-btn,
.jssc-quiz .jssc-exam-side-btn,
.jssc-quiz .jssc-exam-topbtn { min-height: 0 !important; line-height: 1.25 !important; }
.jssc-quiz .jssc-btn { padding-top: 6px !important; padding-bottom: 6px !important; }
.jssc-quiz .jssc-exam-btn { padding-top: 6px !important; padding-bottom: 6px !important; }
.jssc-quiz .jssc-exam-submit-btn { padding-top: 7px !important; padding-bottom: 7px !important; }
.jssc-quiz .jssc-exam-side-btn { padding-top: 5px !important; padding-bottom: 5px !important; }
.jssc-quiz .jssc-section-tab { padding-top: 5px !important; padding-bottom: 5px !important; line-height: 1.25 !important; }
/* v2.1.100: section result table - own Questions column, scrolls sideways when the screen is narrow */
.jssc-quiz .jssc-section-results .jssc-submit-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.jssc-quiz .jssc-section-results .jssc-submit-table { min-width: 460px; }
.jssc-quiz .jssc-section-results .jssc-submit-table th,
.jssc-quiz .jssc-section-results .jssc-submit-table td { white-space: nowrap; }
/* v2.1.101: tables size to their text (no forced full width / min-width); centered; scroll only if still too wide */
.jssc-quiz .jssc-submit-table-wrap { text-align: center; }
.jssc-quiz .jssc-submit-table,
.jssc-quiz .jssc-section-results .jssc-submit-table { width: auto !important; min-width: 0 !important; margin: 0 auto; display: table; }
.jssc-quiz .jssc-submit-table th, .jssc-quiz .jssc-submit-table td { padding-left: 12px; padding-right: 12px; }
.jssc-quiz .jssc-section-results .jssc-submit-table td { padding-top: 5px; padding-bottom: 5px; line-height: 1.3; }
.jssc-quiz .jssc-section-results .jssc-results-pct { display: inline !important; margin-left: 4px; }
/* v2.1.102: tables fill the full available width but never get squeezed below their text width (they scroll sideways instead) */
.jssc-quiz .jssc-submit-table,
.jssc-quiz .jssc-section-results .jssc-submit-table { width: 100% !important; min-width: max-content !important; margin: 0; }
/* v2.1.103: Top Scorers - rank column, medals, own row highlighted/pinned, long names cut, 5 shown + "Show more" up to 10 */
.jssc-quiz .jssc-top-list { list-style: none !important; margin: 0; padding: 0 !important; }
.jssc-quiz .jssc-top-list li { display: flex; align-items: center; gap: 8px; padding: 3px 4px; justify-content: flex-start; }
.jssc-quiz .jssc-top-rank { flex: 0 0 34px; text-align: left; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--jssc-ink-soft); }
.jssc-quiz .jssc-top-scorer-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.jssc-quiz .jssc-top-scorer-score { flex: 0 0 auto; margin-left: auto; }
.jssc-quiz .jssc-top-extra { display: none !important; }
.jssc-quiz .jssc-top-list.jssc-top-open .jssc-top-extra { display: flex !important; }
.jssc-quiz .jssc-top-row--me { background: rgba(200,138,44,.16); border-radius: 6px; font-weight: 700; border-bottom-color: transparent; }
.jssc-quiz .jssc-top-you { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 8px; background: #C98A2C; color: #fff; font-size: 10px; font-weight: 700; line-height: 1.5; vertical-align: 1px; }
.jssc-quiz .jssc-top-gap { justify-content: center !important; color: var(--jssc-ink-soft); padding: 0 !important; line-height: 1; border-bottom: none !important; }
.jssc-quiz .jssc-top-toggle { display: block; margin: 4px auto 0; background: none !important; border: none !important; color: var(--jssc-ghost-ink, #1B2A4A) !important; -webkit-text-fill-color: var(--jssc-ghost-ink, #1B2A4A) !important; font-size: 12px; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 2px 8px !important; min-height: 0 !important; box-shadow: none !important; }
/* v2.1.104: Top Scorers heading gets the same tinted bar as "Section-wise Result" */
.jssc-quiz .jssc-top-scorers-title { background: #EAF3FB; padding: 4px 8px; border-radius: 6px; margin-bottom: 4px; font-size: 15px; text-align: center; }
.jssc-quiz.jssc-dark .jssc-top-scorers-title { background: #232845; color: var(--jssc-ink); }
/* v2.1.105: Show more / Show less gets a background bar like the headings */
.jssc-quiz .jssc-top-toggle { display: block; width: 100%; margin: 6px 0 0 !important; background: #EAF3FB !important; border: none !important; border-radius: 6px; text-decoration: none !important; padding: 5px 8px !important; font-size: 12.5px; text-align: center; }
.jssc-quiz.jssc-dark .jssc-top-toggle { background: #232845 !important; color: var(--jssc-ink) !important; -webkit-text-fill-color: var(--jssc-ink) !important; }
/* v2.1.107: audit - boxes with too much empty height tightened everywhere */
.jssc-quiz .jssc-exam-testtype { padding: 4px 8px !important; line-height: 1.25 !important; }
.jssc-quiz .jssc-explain { padding: 5px 8px !important; line-height: 1.35; }
.jssc-quiz .jssc-option { padding-top: 5px !important; padding-bottom: 5px !important; min-height: 0 !important; }
.jssc-quiz .jssc-rank-tile, .jssc-quiz .jssc-results-stat, .jssc-quiz .jssc-stat { padding-top: 4px !important; padding-bottom: 4px !important; }
.jssc-quiz .jssc-rank-tile-num, .jssc-quiz .jssc-stat-num, .jssc-quiz .jssc-results-stat-num { line-height: 1.15 !important; }
.jssc-quiz .jssc-rank-tile-label, .jssc-quiz .jssc-stat-label { line-height: 1.2 !important; }
.jssc-quiz .jssc-intro-stats div { padding-top: 5px; padding-bottom: 5px; }
.jssc-quiz .jssc-intro-stats .jssc-stat-num { line-height: 1.15; }
.jssc-quiz .jssc-head { padding-top: 6px; padding-bottom: 6px; }
.jssc-quiz .jssc-summary-row > div { padding-top: 4px !important; padding-bottom: 4px !important; }
.jssc-quiz .jssc-summary-row .num { line-height: 1.15 !important; }
.jssc-quiz .jssc-summary-row .lbl { line-height: 1.2 !important; }
/* v2.1.109: Review Answers heading gets the same tinted bar as the other headings */
.jssc-quiz .jssc-review-heading { background: #EAF3FB; padding: 4px 8px; border-radius: 6px; margin: 6px 0 4px; font-size: 15px; }
.jssc-quiz.jssc-dark .jssc-review-heading { background: #232845; color: var(--jssc-ink); }
/* v2.1.110: filter chips + section tabs match the button look (rounded 7px, text centred both ways) */
.jssc-quiz .jssc-review-filter,
.jssc-quiz .jssc-section-tab {
	display: inline-flex !important; align-items: center; justify-content: center; gap: 4px;
	border-radius: 6px !important; line-height: 1.25 !important; text-align: center;
}
.jssc-quiz .jssc-review-filter { padding: 6px 14px !important; font-size: 13px !important; font-weight: 600; }
.jssc-quiz .jssc-review-filter b { margin-left: 0; }
.jssc-quiz .jssc-review-filter.active { background: var(--jssc-btn-bg, #1B2A4A) !important; color: var(--jssc-btn-ink, #fff) !important; -webkit-text-fill-color: var(--jssc-btn-ink, #fff) !important; border-color: var(--jssc-btn-bg, #1B2A4A) !important; }
/* v2.1.111: candidate row gets a background bar; avatar 38px -> 30px */
.jssc-quiz .jssc-exam-candidate { background: #fff; border: 1px solid var(--jssc-line); border-radius: 8px; padding: 4px 10px !important; gap: 8px; margin-bottom: 6px; }
.jssc-quiz .jssc-exam-avatar { width: 30px !important; height: 30px !important; font-size: 11.5px !important; }
.jssc-quiz .jssc-exam-cname { font-size: 14px; }
.jssc-quiz.jssc-dark .jssc-exam-candidate { background: #232845; border-color: var(--jssc-line); }
.jssc-quiz.jssc-dark .jssc-exam-avatar { background: #4C63D2 !important; color: #fff !important; }
/* v2.1.112: default male / female profile icons (or photo) inside avatar circles */
.jssc-avatar-has-img { overflow: hidden; padding: 0 !important; background: transparent !important; }
.jssc-avatar-has-img svg, .jssc-avatar-has-img img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 50%; }
.jssc-quiz.jssc-dark .jssc-exam-avatar.jssc-avatar-has-img { background: transparent !important; }
/* v2.1.113: avatars are rounded squares (slightly rounded corners), not circles */
.jssc-exam-avatar, .jssc-account-avatar { border-radius: 8px !important; }
.jssc-avatar-has-img svg, .jssc-avatar-has-img img { border-radius: 0 !important; }
/* v2.1.114: exam avatar smaller (30px -> 24px) */
.jssc-quiz .jssc-exam-avatar { width: 24px !important; height: 24px !important; font-size: 10.5px !important; border-radius: 6px !important; }
.jssc-quiz .jssc-exam-candidate { padding-top: 3px !important; padding-bottom: 3px !important; }
/* v2.1.115: section name in the question palette gets a background bar (instead of the underline) */
.jssc-quiz .jssc-palette-section-head { background: #DCE8F5; border-bottom: none !important; border-radius: 6px; padding: 3px 8px !important; margin-bottom: 5px; color: var(--jssc-ink); }
.jssc-quiz .jssc-palette-section-head-active { background: var(--jssc-btn-bg, #1B2A4A); color: var(--jssc-btn-ink, #fff); }
.jssc-quiz.jssc-dark .jssc-palette-section-head { background: #262C4C; color: var(--jssc-ink-soft); }
.jssc-quiz.jssc-dark .jssc-palette-section-head-active { background: #4C63D2; color: #fff; }
/* v2.1.116: palette tiles narrower - fixed 30px wide, centred rows, as many per row as fit */
.jssc-quiz .jssc-exam-palette > * { flex: 0 0 30px !important; max-width: 30px !important; width: 30px; }
.jssc-quiz .jssc-exam-palette { gap: 4px !important; }
/* v2.1.117: exactly 10 tiles per row on every screen size */
.jssc-quiz .jssc-exam-palette { gap: 4px !important; }
.jssc-quiz .jssc-exam-palette > * { flex: 0 0 calc((100% - 36px) / 10) !important; max-width: calc((100% - 36px) / 10) !important; width: auto; }
.jssc-quiz .jssc-exam-palette .jssc-pc-shape { font-size: 12px; }
/* v2.1.118: exam screen - much less left/right padding in every container (content uses the width) */
.jssc-quiz .jssc-exam-topbar,
.jssc-quiz .jssc-exam-qbar { padding-left: 7px !important; padding-right: 7px !important; }
.jssc-quiz .jssc-section-tabs { padding-left: 5px !important; padding-right: 5px !important; }
.jssc-quiz .jssc-exam-main { padding-left: 5px !important; padding-right: 5px !important; }
.jssc-quiz .jssc-exam-side { padding-left: 5px !important; padding-right: 5px !important; }
.jssc-quiz .jssc-exam-candidate { padding-left: 6px !important; padding-right: 6px !important; }
.jssc-quiz .jssc-exam-testtype,
.jssc-quiz .jssc-palette-section-head { padding-left: 6px !important; padding-right: 6px !important; }
.jssc-quiz .jssc-exam-palette-wrap { padding-right: 0 !important; }
/* v2.1.119: full width - set by assets/js/fullwidth.js; flush with the window edges */
.jssc-quiz.jssc-fullwidth { border-left-width: 0; border-right-width: 0; border-radius: 0; margin-top: 0; margin-bottom: 0; }
.jssc-dash.jssc-fullwidth, .jssc-product-page.jssc-fullwidth, .jssc-list.jssc-fullwidth { max-width: none !important; }

/* v2.1.121 - My Account: remove the wasted left/right spacing (main area, sidebar, table wrapper, first cells). */
.jssc-dash-main { padding: 14px 6px !important; }
.jssc-dash-side { padding-left: 10px !important; padding-right: 10px !important; }
.jssc-dash-table-wrap { margin: 0 !important; padding: 0 !important; }
.jssc-dash-table th:first-child, .jssc-dash-table td:first-child { padding-left: 6px !important; }
.jssc-dash-table th:last-child, .jssc-dash-table td:last-child { padding-right: 6px !important; }
.jssc-dash-table th, .jssc-dash-table td { padding-left: 8px; padding-right: 8px; }
@media (max-width: 782px) {
	.jssc-dash-main { padding: 10px 4px !important; }
	.jssc-dash-side { padding-left: 6px !important; padding-right: 6px !important; }
}

/* v2.1.122 - Profile gender select styled like the other inputs. */
.jssc-field select {
	-webkit-appearance: none; appearance: none;
	width: 100%; box-sizing: border-box;
	min-height: 38px; padding: 7px 34px 7px 11px;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 14px; font-weight: 500; line-height: 1.3;
	color: var(--jssc-ink) !important;
	background-color: #F8FAFE !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231B2A4A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important; background-position: right 12px center !important; background-size: 12px 8px !important;
	border: 1px solid var(--jssc-line) !important; border-radius: 9px;
	cursor: pointer; text-overflow: ellipsis;
}
.jssc-field select:focus { outline: none; background-color: #fff !important; border-color: var(--jssc-ink) !important; box-shadow: 0 0 0 3px rgba(27,42,74,0.10); }
.jssc-dark .jssc-field select { background-color: #232845 !important; color: #E8ECF7 !important; border-color: #3A4066 !important; }

/* v2.1.124 - Google button: never wider than its card, no scaling that could clip the edges. */
.jssc-google-highlight { overflow: visible; }
.jssc-google-highlight .jssc-google-btn-wrap { transform: none !important; max-width: 100%; overflow: hidden; }

/* v2.1.125 - Google sign-in: coloured background panel behind the (white) Google button, like the other background bars. */
.jssc-google-highlight { background: #EAF3FB !important; border: 1px solid #C9DEF2 !important; border-radius: 8px !important; padding: 8px 6px !important; }
.jssc-google-highlight .jssc-google-btn-wrap { background: transparent; }
.jssc-dark .jssc-google-highlight { background: #232845 !important; border-color: #3A4066 !important; }

/* v2.1.127 - Google panel: minimal side spacing. */
.jssc-google-highlight { padding: 3px 2px !important; }

/* v2.1.129 - show/hide password icons (SVG), password rules note, expiry line. */
.jssc-pw-toggle { display: inline-flex !important; align-items: center; justify-content: center; font-size: 0 !important; opacity: 0.65; }
.jssc-pw-toggle svg { display: block; pointer-events: none; }
.jssc-pw-toggle .jssc-eye-off { display: none; }
.jssc-pw-toggle.is-on .jssc-eye { display: none; }
.jssc-pw-toggle.is-on .jssc-eye-off { display: block; }
.jssc-pw-hint { display: block; margin: 4px 0 0; font-size: 11.5px; line-height: 1.4; color: var(--jssc-ink-soft); font-weight: 400; text-transform: none; letter-spacing: 0; }
.jssc-account-expired .jssc-account-brand p { margin-top: 4px; }

/* v2.1.130 - Change Password grid: info line and rules note span the full row; fields stay in one row. */
.jssc-dash-form > .jssc-pw-expiry, .jssc-dash-form > .jssc-pw-hint-row { grid-column: 1 / -1 !important; margin: 0 0 8px; }
.jssc-dash-form > .jssc-pw-hint-row .jssc-pw-hint { margin: 0; }
.jssc-dash-form .jssc-pw-expiry { font-size: 12px; text-align: left; }

/* v2.1.134 - inline error box (replaces the corner popup for errors). */
.jssc-inline-error {
	display: flex; align-items: flex-start; gap: 8px;
	max-width: 440px; box-sizing: border-box; margin: 12px auto 0; padding: 10px 12px;
	background: var(--jssc-wrong-bg, #FBE9E7); color: #9c2b2b;
	border: 1px solid #F0C9C4; border-left: 4px solid #D64545; border-radius: 8px;
	font-size: 14px; font-weight: 600; line-height: 1.4; text-align: left;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.jssc-inline-error:focus { outline: none; }
.jssc-inline-error-icon { flex: 0 0 auto; }
.jssc-dark .jssc-inline-error { background: #3a1f24; color: #ffb4ab; border-color: #6b2d33; }

/* v2.1.137 - Browse / Available Test Series: card grid (title, price + discount, View button). */
.jssc-dash-browse-list { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px !important; }
.jssc-dash-browse-item {
	display: flex !important; flex-direction: column; align-items: center !important; justify-content: space-between;
	gap: 6px !important; padding: 10px 10px 8px !important; text-align: center !important; text-decoration: none !important;
	background: linear-gradient(180deg, #F7FAFE 0%, #EAF3FB 100%) !important;
	border: 1px solid #D5E2F2 !important; border-top: 3px solid #C98B2B !important; border-radius: 10px !important;
	box-shadow: 0 1px 4px rgba(27,42,74,0.06);
	transition: transform .12s ease, box-shadow .12s ease;
}
.jssc-dash-browse-item:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(27,42,74,0.12); }
.jssc-dash-browse-name { display: block; width: 100%; font-weight: 800; font-size: 14.5px; line-height: 1.3; color: var(--jssc-ink) !important; text-align: center !important; }
.jssc-dash-browse-price { display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 0 !important; }
.jssc-dash-browse-price s { color: var(--jssc-ink-soft) !important; font-size: 12.5px; }
.jssc-dash-browse-price b { color: #B9741A !important; font-size: 18px; font-weight: 800; line-height: 1; }
.jssc-dash-browse-off { font-style: normal; font-size: 11px; font-weight: 800; color: #1c5e33; background: #DDF3E4; border-radius: 999px; padding: 2px 7px; }
.jssc-dash-browse-cta {
	display: block; width: 100%; box-sizing: border-box; padding: 5px 10px; border-radius: 7px;
	background: var(--jssc-ink); color: #fff !important; font-size: 12.5px; font-weight: 700; text-align: center;
}
.jssc-dark .jssc-dash-browse-item { background: linear-gradient(180deg, #232845 0%, #1C2038 100%) !important; border-color: #3A4066 !important; border-top-color: #C98B2B !important; }
.jssc-dark .jssc-dash-browse-name { color: #E8ECF7 !important; }
.jssc-dark .jssc-dash-browse-off { background: #1d3a2a; color: #8fe0a8; }
.jssc-dark .jssc-dash-browse-cta { background: #3b4a7a; }
@media (max-width: 520px) { .jssc-dash-browse-list { grid-template-columns: 1fr; } }

/* v2.1.138 - Available Test Series: one quiet row per series. Book tile | name + facts | price (discount under it). */
.jssc-dash-browse-list { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px !important; }
.jssc-dash-browse-item {
	display: grid !important; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center !important; justify-content: initial !important;
	gap: 10px !important; padding: 8px 10px !important; text-align: left !important;
	background: #fff !important; border: 1px solid var(--jssc-line) !important; border-top: 1px solid var(--jssc-line) !important; border-radius: 10px !important;
	box-shadow: none !important; transform: none !important; text-decoration: none !important;
	transition: border-color .12s ease, background-color .12s ease;
}
.jssc-dash-browse-item:hover { border-color: var(--jssc-ink) !important; background: #F8FAFE !important; transform: none !important; box-shadow: none !important; }
.jssc-dash-browse-item:focus-visible { outline: 2px solid var(--jssc-ink); outline-offset: 2px; }
.jssc-dash-browse-ico { width: 38px; height: 38px; border-radius: 9px; background: #EAF3FB; color: var(--jssc-ink); display: inline-flex; align-items: center; justify-content: center; }
.jssc-dash-browse-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.jssc-dash-browse-name { width: auto !important; text-align: left !important; font-size: 14.5px !important; font-weight: 700 !important; line-height: 1.25 !important; color: var(--jssc-ink) !important;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jssc-dash-browse-meta { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.jssc-dash-browse-meta span { font-size: 11.5px; line-height: 1; color: var(--jssc-ink-soft); background: #F1F4FA; border-radius: 5px; padding: 3px 6px; }
.jssc-dash-browse-price { display: flex !important; flex-direction: column; align-items: flex-end; gap: 2px; margin: 0 !important; white-space: nowrap; }
.jssc-dash-browse-price b { font-size: 17px !important; font-weight: 800; line-height: 1.1; color: #B9741A !important; }
.jssc-dash-browse-was { display: inline-flex; align-items: center; gap: 5px; }
.jssc-dash-browse-was s { font-size: 11.5px !important; color: var(--jssc-ink-soft) !important; margin: 0 !important; }
.jssc-dash-browse-was em { font-style: normal; font-size: 10.5px; font-weight: 800; color: #1c5e33; background: #DDF3E4; border-radius: 4px; padding: 2px 5px; }
.jssc-dark .jssc-dash-browse-item { background: #1C2038 !important; border-color: #3A4066 !important; }
.jssc-dark .jssc-dash-browse-item:hover { background: #232845 !important; border-color: #6c7bb8 !important; }
.jssc-dark .jssc-dash-browse-ico { background: #2c3358; color: #E8ECF7; }
.jssc-dark .jssc-dash-browse-name { color: #E8ECF7 !important; }
.jssc-dark .jssc-dash-browse-meta span { background: #2c3358; color: #b9c3e6; }
.jssc-dark .jssc-dash-browse-was em { background: #1d3a2a; color: #8fe0a8; }
@media (max-width: 520px) { .jssc-dash-browse-list { grid-template-columns: 1fr !important; } }

/* v2.1.139 - Available Test Series: tighter spacing (smaller side padding, smaller icon tile, smaller gaps). */
.jssc-dash-browse-list { gap: 5px !important; }
.jssc-dash-browse-item { grid-template-columns: 30px minmax(0, 1fr) auto !important; gap: 8px !important; padding: 5px 7px 5px 5px !important; border-radius: 9px !important; }
.jssc-dash-browse-ico { width: 30px; height: 30px; border-radius: 7px; }
.jssc-dash-browse-ico svg { width: 17px; height: 17px; }
.jssc-dash-browse-info { gap: 1px; }
.jssc-dash-browse-meta { gap: 3px 4px; }
.jssc-dash-browse-meta span { padding: 2px 5px; font-size: 11px; }
.jssc-dash-browse-price { gap: 1px; }

/* v2.1.140 - series rows reused in the paywall lists; optional action column (Buy button). */
.jssc-dash-browse-item.jssc-row-has-action { grid-template-columns: 30px minmax(0, 1fr) auto auto !important; }
.jssc-dash-browse-name a { color: inherit !important; text-decoration: none !important; }
.jssc-dash-browse-name a:hover { text-decoration: underline !important; }
.jssc-row-action { display: inline-flex; align-items: center; }
.jssc-row-action .jssc-btn { margin: 0 !important; white-space: nowrap; }
@media (max-width: 520px) {
	.jssc-dash-browse-item.jssc-row-has-action { grid-template-columns: 30px minmax(0, 1fr) auto !important; }
	.jssc-dash-browse-item.jssc-row-has-action .jssc-row-action { grid-column: 1 / -1; }
	.jssc-dash-browse-item.jssc-row-has-action .jssc-row-action .jssc-btn { width: 100%; text-align: center; }
}
/* paywall boxes are narrow: one row per line there. */
.jssc-paywall .jssc-dash-browse-list { grid-template-columns: 1fr !important; }

/* v2.1.141 - spacing: dashboard content and series rows closer to the edges. */
.jssc-dash-main { padding-left: 3px !important; padding-right: 3px !important; }
.jssc-dash-browse-item { padding: 4px 6px 4px 4px !important; gap: 7px !important; grid-template-columns: 28px minmax(0, 1fr) auto !important; }
.jssc-dash-browse-item.jssc-row-has-action { grid-template-columns: 28px minmax(0, 1fr) auto auto !important; }
.jssc-dash-browse-ico { width: 28px; height: 28px; border-radius: 7px; }
@media (max-width: 520px) { .jssc-dash-browse-item.jssc-row-has-action { grid-template-columns: 28px minmax(0, 1fr) auto !important; } }

/* v2.1.142 - paywall list headings ("Also Included In", "Browse Other Test Series") get a background bar. */
.jssc-paywall-box-header h4 {
	display: block; margin: 0 0 6px !important; padding: 7px 10px !important; text-align: center;
	background: #EAF3FB; border-radius: 8px; color: var(--jssc-ink) !important;
	font-size: 15px; font-weight: 800; line-height: 1.25;
}
.jssc-dark .jssc-paywall-box-header h4 { background: #232845; color: #E8ECF7 !important; }

/* v2.1.143 - series row fact chips ("12 tests", "Valid 365 days"): slightly smaller text. */
.jssc-dash-browse-meta span { font-size: 10px !important; padding: 2px 5px !important; line-height: 1.1; }

/* v2.1.144 - series rows: always one per line. */
.jssc-dash-browse-list { grid-template-columns: 1fr !important; }

/* v2.1.145 - small gap between series rows. */
.jssc-dash-browse-list { gap: 9px !important; }

/* v2.1.146 - Product page brought in line with the rest: heading background bars, tight spacing, clean tables
   (first column left), no vertical borders. */
.jssc-product-page { padding-left: 3px !important; padding-right: 3px !important; }
.jssc-product-included { gap: 8px; margin-bottom: 10px; }
.jssc-product-group { padding: 6px !important; border-radius: 10px; }
.jssc-product-group h4,
.jssc-product-page h3.jssc-strip + .jssc-product-included .jssc-product-group h4 {
	display: block; margin: 0 0 6px !important; padding: 6px 10px !important; text-align: center;
	background: #EAF3FB; border-radius: 8px; color: var(--jssc-ink) !important;
	font-size: 14px; font-weight: 800; text-transform: none; letter-spacing: 0; line-height: 1.25;
}
.jssc-product-group h4 span { color: var(--jssc-ink-soft); font-weight: 600; }
.jssc-product-subject { padding: 0 !important; border-radius: 8px; overflow: hidden; }
.jssc-product-subject summary { padding: 7px 10px !important; background: #EAF3FB; font-weight: 700; text-align: center; }
.jssc-product-subject[open] summary { border-bottom: 1px solid var(--jssc-line); }
.jssc-product-subject .jssc-product-included-table { margin: 0 0 4px !important; }
.jssc-product-included-table { table-layout: auto; border: 0 !important; }
.jssc-product-included-table th,
.jssc-product-included-table td { width: auto !important; padding: 7px 6px !important; border: 0 !important; border-bottom: 1px solid var(--jssc-line) !important; }
.jssc-product-included-table th:first-child,
.jssc-product-included-table td:first-child { text-align: left !important; width: 100% !important; }
.jssc-product-included-table th:last-child,
.jssc-product-included-table td:last-child { text-align: center !important; white-space: nowrap; width: 1% !important; padding-left: 14px !important; }
.jssc-product-included-table th { background: transparent; }
.jssc-product-included-table tbody tr:last-child td { border-bottom: 0 !important; }
.jssc-dark .jssc-product-group h4, .jssc-dark .jssc-product-subject summary { background: #232845; color: #E8ECF7 !important; }

/* v2.1.147 - subject folds: proper chevron on the right (rotates when open) and a count pill, instead of the text triangle. */
.jssc-product-subject summary { position: relative; display: flex !important; align-items: center; justify-content: center; gap: 8px; padding: 7px 34px !important; cursor: pointer; }
.jssc-product-subject summary::before { content: none !important; display: none !important; }
.jssc-product-subject summary::after {
	content: ''; position: absolute; right: 12px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
	border-right: 2px solid var(--jssc-ink); border-bottom: 2px solid var(--jssc-ink);
	transform: rotate(45deg); transition: transform .15s ease; opacity: .75;
}
.jssc-product-subject[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.jssc-product-subject summary span {
	font-size: 11px; font-weight: 700; line-height: 1; color: var(--jssc-ink) !important;
	background: #fff; border-radius: 999px; padding: 3px 7px;
}
.jssc-product-subject summary:focus-visible { outline: 2px solid var(--jssc-ink); outline-offset: -2px; }
.jssc-dark .jssc-product-subject summary::after { border-color: #E8ECF7; }
.jssc-dark .jssc-product-subject summary span { background: #1C2038; color: #E8ECF7 !important; }

/* v2.1.148 - Plugin tables use OUR table rules, whatever the theme sets for table / tr / th / td
   (margins, borders, striping, hover colours, vertical-align, extra cell padding, fixed heights). */
.jssc-product-page table.jssc-product-included-table,
.jssc-dash table.jssc-dash-table {
	width: 100% !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-spacing: 0 !important;
	border-collapse: collapse !important; background: transparent !important; box-shadow: none !important;
	table-layout: auto !important; height: auto !important;
}
.jssc-product-page table.jssc-product-included-table tr,
.jssc-dash table.jssc-dash-table tr,
.jssc-product-page table.jssc-product-included-table tbody tr:nth-child(odd),
.jssc-product-page table.jssc-product-included-table tbody tr:nth-child(even),
.jssc-dash table.jssc-dash-table tbody tr:nth-child(odd),
.jssc-dash table.jssc-dash-table tbody tr:nth-child(even),
.jssc-product-page table.jssc-product-included-table tbody tr:hover,
.jssc-dash table.jssc-dash-table tbody tr:hover { background: transparent !important; height: auto !important; box-shadow: none !important; }
.jssc-product-page table.jssc-product-included-table th,
.jssc-product-page table.jssc-product-included-table td,
.jssc-dash table.jssc-dash-table th,
.jssc-dash table.jssc-dash-table td {
	vertical-align: middle !important; height: auto !important; line-height: 1.35 !important;
	margin: 0 !important; background: transparent !important; box-shadow: none !important;
	border-top: 0 !important; border-left: 0 !important; border-right: 0 !important;
	border-bottom: 1px solid var(--jssc-line) !important;
}
.jssc-product-page table.jssc-product-included-table td,
.jssc-dash table.jssc-dash-table td { padding: 8px 6px !important; font-size: 14px; font-weight: 500; }
.jssc-product-page table.jssc-product-included-table th,
.jssc-dash table.jssc-dash-table th { padding: 6px 6px !important; }
.jssc-product-page table.jssc-product-included-table tbody tr:last-child td,
.jssc-dash table.jssc-dash-table tbody tr:last-child td { border-bottom: 0 !important; }
.jssc-product-page table.jssc-product-included-table td > *,
.jssc-dash table.jssc-dash-table td > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.jssc-product-page .jssc-product-group, .jssc-product-page .jssc-product-subject { margin-bottom: 0; }
.jssc-product-page .jssc-product-group > table.jssc-product-included-table { margin-bottom: 0 !important; }

/* v2.1.149 - One design everywhere: group headings = background bar, folds = bar + chevron + count pill,
   and every plugin table uses our table rules (theme table styles cannot leak in). */

/* group headings in My Purchases */
.jssc-purchase-type-title, .jssc-purchase-group-title {
	display: block; margin: 0 0 6px !important; padding: 6px 10px !important; text-align: center;
	background: #EAF3FB; border-radius: 8px; color: var(--jssc-ink) !important;
	font-size: 14px; font-weight: 800; text-transform: none; letter-spacing: 0; line-height: 1.25;
}
.jssc-purchase-type-title span, .jssc-purchase-group-title span { color: var(--jssc-ink-soft); font-weight: 600; text-transform: none; letter-spacing: 0; }
.jssc-dark .jssc-purchase-type-title, .jssc-dark .jssc-purchase-group-title { background: #232845; color: #E8ECF7 !important; }

/* folds in My Purchases + "Subject-wise breakdown" in My Results */
.jssc-purchase-subject { padding: 0 !important; border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.jssc-purchase-subject summary, .jssc-results-detail summary {
	position: relative; display: flex !important; align-items: center; justify-content: center; gap: 8px;
	padding: 7px 34px !important; cursor: pointer; background: #EAF3FB; text-align: center;
	font-size: 13.5px; font-weight: 700; color: var(--jssc-ink) !important; list-style: none; text-decoration: none !important;
}
.jssc-purchase-subject[open] summary { border-bottom: 1px solid var(--jssc-line); }
.jssc-purchase-subject summary::before, .jssc-results-detail summary::before { content: none !important; display: none !important; }
.jssc-purchase-subject summary::after, .jssc-results-detail summary::after {
	content: ''; position: absolute; right: 12px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
	border-right: 2px solid var(--jssc-ink); border-bottom: 2px solid var(--jssc-ink);
	transform: rotate(45deg); transition: transform .15s ease; opacity: .75;
}
.jssc-purchase-subject[open] summary::after, .jssc-results-detail[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.jssc-purchase-subject summary span {
	font-size: 11px; font-weight: 700; line-height: 1; color: var(--jssc-ink) !important; background: #fff; border-radius: 999px; padding: 3px 7px;
}
.jssc-purchase-subject summary:focus-visible, .jssc-results-detail summary:focus-visible { outline: 2px solid var(--jssc-ink); outline-offset: -2px; }
.jssc-results-detail { padding: 4px !important; }
.jssc-results-detail summary { border-radius: 8px; padding: 6px 34px !important; }
.jssc-dark .jssc-purchase-subject summary, .jssc-dark .jssc-results-detail summary { background: #232845; color: #E8ECF7 !important; }
.jssc-dark .jssc-purchase-subject summary::after, .jssc-dark .jssc-results-detail summary::after { border-color: #E8ECF7; }
.jssc-dark .jssc-purchase-subject summary span { background: #1C2038; color: #E8ECF7 !important; }

/* table rules for every plugin table, wherever it is rendered */
table.jssc-dash-table, table.jssc-list-table {
	width: 100% !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-spacing: 0 !important;
	border-collapse: collapse !important; background: transparent !important; box-shadow: none !important; height: auto !important;
}
table.jssc-dash-table tr, table.jssc-list-table tr,
table.jssc-dash-table tbody tr:nth-child(odd), table.jssc-dash-table tbody tr:nth-child(even),
table.jssc-list-table tbody tr:nth-child(odd), table.jssc-list-table tbody tr:nth-child(even),
table.jssc-dash-table tbody tr:hover, table.jssc-list-table tbody tr:hover { background: transparent !important; height: auto !important; }
table.jssc-dash-table th, table.jssc-dash-table td, table.jssc-list-table th, table.jssc-list-table td {
	vertical-align: middle !important; height: auto !important; line-height: 1.35 !important; margin: 0 !important;
	background: transparent !important; box-shadow: none !important;
	border-top: 0 !important; border-left: 0 !important; border-right: 0 !important; border-bottom: 1px solid var(--jssc-line) !important;
}
table.jssc-list-table th, table.jssc-list-table td { padding: 8px 6px !important; text-align: left; }
table.jssc-list-table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--jssc-ink-soft) !important; }
table.jssc-list-table a { text-decoration: none; font-weight: 600; }
table.jssc-dash-table tbody tr:last-child td, table.jssc-list-table tbody tr:last-child td { border-bottom: 0 !important; }
/* quiz summary tables (result modal / review): only stop the theme's margins, borders, striping, alignment */
table.jssc-submit-table { margin: 0 !important; border-left: 0 !important; border-right: 0 !important; }
table.jssc-submit-table th, table.jssc-submit-table td { vertical-align: middle !important; border-left: 0 !important; border-right: 0 !important; }
table.jssc-submit-table tbody tr:nth-child(even), table.jssc-submit-table tbody tr:hover { background: transparent !important; }
table.jssc-list-table a { color: var(--jssc-ink) !important; }

/* ---------- v2.1.153: SVG icons replace emoji ---------- */
.jssc-ic { display: inline-block; flex: none; }
.jssc-account-brand-icon { text-align: center; }
.jssc-account-brand-icon .jssc-ic { vertical-align: middle; }
.jssc-google-badge .jssc-ic { color: #F5A623; }
.jssc-dash-nav-ico .jssc-ic, .jssc-quick-tile-icon .jssc-ic { vertical-align: middle; }
.jssc-ic-live { color: #D63638; }
.jssc-danger-zone-icon { color: #C0392B; }
.jssc-report-icon-btn { color: #B7791F; }
.jssc-toast-error .jssc-toast-icon, .jssc-inline-error-icon { color: #C0392B; }
.jssc-toast-success .jssc-toast-icon { color: #1E8E5A; }
.jssc-paywall-icon, .jssc-paywall-box-icon, .jssc-product-hero-icon { color: var(--jssc-ink, #1B2A4A); }
.jssc-paywall-icon .jssc-ic, .jssc-product-hero-icon .jssc-ic { vertical-align: middle; }
.jssc-product-trust-item .jssc-ic { color: #1B7F9E; margin-right: 3px; }
.jssc-product-scope .jssc-ic, .jssc-product-owned .jssc-ic { color: #1E8E5A; }
.jssc-top-scorers-title .jssc-ic { color: #C9971C; }
@media (prefers-color-scheme: dark) {
	.jssc-account-brand-icon { color: #1B2A4A; }
}

/* ---------- v2.1.155: empty-state messages centered ---------- */
.jssc-quiz p.jssc-account-empty, p.jssc-account-empty { text-align: center !important; }

/* ---------- v2.1.156: Overview redesign ---------- */
.jssc-ov-stats { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--jssc-line); border-radius: 12px; overflow: hidden; margin: 0 0 9px; }
.jssc-ov-stat { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 6px; text-align: center; border-left: 1px solid var(--jssc-line); }
.jssc-ov-stat:first-child { border-left: 0; }
.jssc-ov-stat-ico { width: 28px; height: 28px; border-radius: 9px; background: #EAF3FB; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; margin-bottom: 3px; }
.jssc-ov-stat-num { font-size: 20px; font-weight: 800; line-height: 1.15; color: var(--jssc-ink); }
.jssc-ov-stat-label { font-size: 11.5px; font-weight: 600; color: var(--jssc-ink-soft); }
@media (max-width: 600px) {
	.jssc-ov-stats { grid-template-columns: repeat(2, 1fr); }
	.jssc-ov-stat:nth-child(3) { border-left: 0; }
	.jssc-ov-stat:nth-child(n+3) { border-top: 1px solid var(--jssc-line); }
}
.jssc-ov-last, .jssc-ov-row { display: flex; align-items: center; gap: 9px; padding: 8px 10px; background: #fff; border: 1px solid var(--jssc-line); border-radius: 10px; text-align: left; text-decoration: none !important; color: var(--jssc-ink) !important; }
.jssc-ov-last { margin: 0 0 9px; background: #F4F8FD; }
.jssc-ov-last:hover, .jssc-ov-row--link:hover { border-color: var(--jssc-ink); }
.jssc-ov-row-ico { flex: none; width: 30px; height: 30px; border-radius: 9px; background: #EAF3FB; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.jssc-ov-row-ico--green { background: #E4F5EC; }
.jssc-ov-row-ico--blue { background: #E6EEFC; }
.jssc-ov-row-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.jssc-ov-row-sub { font-size: 11.5px; color: var(--jssc-ink-soft); font-weight: 600; }
.jssc-ov-row-name { font-size: 13.5px; font-weight: 700; line-height: 1.3; color: var(--jssc-ink); }
.jssc-ov-row-badge { flex: none; font-size: 13px; font-weight: 800; color: #1E8E5A; background: #E4F5EC; border-radius: 999px; padding: 3px 10px; }
.jssc-ov-row-chip { flex: none; font-size: 11.5px; font-weight: 700; color: #1E8E5A; background: #E4F5EC; border-radius: 999px; padding: 3px 10px; }
.jssc-ov-row-arrow { flex: none; font-size: 20px; line-height: 1; color: var(--jssc-ink-soft); }
.jssc-ov-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 0 0 9px; }
.jssc-ov-act { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: #fff; border: 1px solid var(--jssc-line); border-radius: 999px; font-size: 12.5px; font-weight: 700; text-decoration: none !important; color: var(--jssc-ink) !important; }
.jssc-ov-act:hover { border-color: var(--jssc-ink); }
.jssc-ov-act .jssc-ic { font-size: 15px; }
.jssc-ov-list { list-style: none; margin: 0 0 9px; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.jssc-ov-list > li { margin: 0; list-style: none; }
.jssc-ov-list > li:not(.jssc-ov-row) { padding: 0; }
.jssc-ov-empty { text-align: center; margin: 0 0 9px; }
.jssc-ov-empty .jssc-account-empty { margin: 0 0 8px; }

/* ---------- v2.1.157: quick-action pills get a tinted background ---------- */
.jssc-ov-act:nth-child(1) { background: #F3EEFE !important; border-color: #DCCEFB; }
.jssc-ov-act:nth-child(2) { background: #FFF1E6 !important; border-color: #FAD3B5; }
.jssc-ov-act:nth-child(3) { background: #EEF1F5 !important; border-color: #D5DBE3; }
.jssc-ov-act:nth-child(4) { background: #E8F0FE !important; border-color: #C5D7FB; }

/* ---------- v2.1.158: quick-action pills inside a container ---------- */
.jssc-ov-actions { background: #F4F8FD; border: 1px solid var(--jssc-line); border-radius: 12px; padding: 8px; }

/* ---------- v2.1.159: Attempted Tests tab ---------- */
.jssc-attempt-table td:first-child { white-space: normal; word-break: break-word; text-align: left !important; }
.jssc-attempt-table td:nth-child(2), .jssc-attempt-table td:nth-child(3), .jssc-attempt-table td:nth-child(4) { white-space: nowrap; }
.jssc-at-chip { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.jssc-at-chip--done { color: #1E8E5A; background: #E4F5EC; }
.jssc-at-chip--open { color: #B45309; background: #FFF1D6; }
@media (max-width: 700px) {
	.jssc-attempt-table td:nth-child(2), .jssc-attempt-table td:nth-child(3), .jssc-attempt-table td:nth-child(4) { white-space: normal; }
}
table.jssc-attempt-table th, table.jssc-attempt-table td { text-align: center !important; }
table.jssc-attempt-table th:first-child, table.jssc-attempt-table td:first-child { text-align: left !important; }

/* ---------- v2.1.160: modals must cover the theme header ----------
   Theme headers are often sticky with a high z-index (100-9999), which
   painted above our dim backdrop (z-index 20) and left the menu bar
   un-dimmed while the Submit summary / report / paper popups were open. */
.jssc-submit-overlay, .jssc-report-overlay, .jssc-qpaper-overlay { z-index: 2147483000 !important; }
.jssc-exam-pause-overlay { z-index: 2147482990 !important; }

/* ---------- v2.1.165: Live Test gate screens in colour ---------- */
.jssc-live-gate { background: linear-gradient(180deg, #FFFBF0 0, #fff 140px); }
.jssc-live-gate::before { height: 5px; background: linear-gradient(90deg, #F59E0B, #F97316); }
.jssc-live-gate--accent-upcoming { background: linear-gradient(180deg, #FFF8E6 0, #fff 150px); }
.jssc-live-gate--accent-ended { background: linear-gradient(180deg, #FFF1F3 0, #fff 150px); }
.jssc-live-gate--accent-done { background: linear-gradient(180deg, #ECFAF2 0, #fff 150px); }
.jssc-live-gate--accent-ended::before { background: linear-gradient(90deg, #E11D48, #F97316); }
.jssc-live-gate--accent-done::before { background: linear-gradient(90deg, #16A34A, #14B8A6); }
.jssc-live-status-pill--upcoming { background: #FFF1CC !important; color: #92400E !important; }
.jssc-live-status-pill--ended { background: #FDE2E7 !important; color: #BE123C !important; }
.jssc-live-status-pill--done { background: #D9F5E5 !important; color: #166534 !important; }
.jssc-live-status-pill--urgent { background: #FDE2E2 !important; color: #B42318 !important; }
.jssc-live-status-pill--upcoming .jssc-live-status-dot { background: #F59E0B; }
.jssc-live-status-pill--ended .jssc-live-status-dot { background: #E11D48; }
.jssc-live-status-pill--done .jssc-live-status-dot { background: #16A34A; }
.jssc-live-gate .jssc-live-window { background: #fff; border: 1px solid var(--jssc-line); border-radius: 12px; padding: 9px 14px; margin: 0 auto 14px; width: fit-content; max-width: 100%; box-shadow: 0 1px 2px rgba(16,24,40,0.05); }
.jssc-live-gate .jssc-live-window-col:first-child .jssc-live-window-value { color: #15803D; }
.jssc-live-gate .jssc-live-window-col:last-child .jssc-live-window-value { color: #BE123C; }
.jssc-live-gate .jssc-live-window-divider { background: #E3E7F0; }
.jssc-live-gate--accent-ended h3 { color: #BE123C !important; }
.jssc-live-gate--accent-done h3 { color: #166534 !important; }
.jssc-live-gate--accent-upcoming h3 { color: #92400E !important; }
.jssc-live-gate .jssc-lb-table thead th { background: #EAF3FB !important; color: var(--jssc-ink) !important; }
.jssc-live-gate .jssc-lb-table tbody tr:nth-child(1) td { background: #FFF6D8 !important; }
.jssc-live-gate .jssc-lb-table tbody tr:nth-child(2) td { background: #F1F4F9 !important; }
.jssc-live-gate .jssc-lb-table tbody tr:nth-child(3) td { background: #FBEBDD !important; }
.jssc-live-gate .jssc-lb-table tbody tr:nth-child(1) td:first-child { color: #B7791F; font-weight: 800; }
.jssc-live-gate .jssc-lb-table tbody tr:nth-child(2) td:first-child { color: #64748B; font-weight: 800; }
.jssc-live-gate .jssc-lb-table tbody tr:nth-child(3) td:first-child { color: #B0713A; font-weight: 800; }
.jssc-live-gate .jssc-lb-table td:last-child { font-weight: 700; color: #15803D; }

/* ---------- v2.1.166: dark-mode versions of the Live Test gate colours ---------- */
.jssc-quiz.jssc-dark .jssc-live-gate { background: linear-gradient(180deg, #2B2418 0, var(--jssc-card) 150px); }
.jssc-quiz.jssc-dark .jssc-live-gate--accent-upcoming { background: linear-gradient(180deg, #2E2813 0, var(--jssc-card) 150px); }
.jssc-quiz.jssc-dark .jssc-live-gate--accent-ended { background: linear-gradient(180deg, #34202A 0, var(--jssc-card) 150px); }
.jssc-quiz.jssc-dark .jssc-live-gate--accent-done { background: linear-gradient(180deg, #16302A 0, var(--jssc-card) 150px); }
.jssc-quiz.jssc-dark .jssc-live-status-pill--upcoming { background: #3A3014 !important; color: #F5C06B !important; }
.jssc-quiz.jssc-dark .jssc-live-status-pill--ended { background: #3B1F22 !important; color: #FF8F80 !important; }
.jssc-quiz.jssc-dark .jssc-live-status-pill--done { background: #123428 !important; color: #62D3A0 !important; }
.jssc-quiz.jssc-dark .jssc-live-status-pill--urgent { background: #3B1F22 !important; color: #FF8F80 !important; }
.jssc-quiz.jssc-dark .jssc-live-gate .jssc-live-window { background: #232845; border-color: var(--jssc-line); box-shadow: none; }
.jssc-quiz.jssc-dark .jssc-live-gate .jssc-live-window-col:first-child .jssc-live-window-value { color: #62D3A0; }
.jssc-quiz.jssc-dark .jssc-live-gate .jssc-live-window-col:last-child .jssc-live-window-value { color: #FF8F80; }
.jssc-quiz.jssc-dark .jssc-live-gate .jssc-live-window-divider { background: var(--jssc-line); }
.jssc-quiz.jssc-dark .jssc-live-gate--accent-ended h3 { color: #FF8F80 !important; }
.jssc-quiz.jssc-dark .jssc-live-gate--accent-done h3 { color: #62D3A0 !important; }
.jssc-quiz.jssc-dark .jssc-live-gate--accent-upcoming h3 { color: #F5C06B !important; }
.jssc-quiz.jssc-dark .jssc-live-gate .jssc-lb-table thead th { background: #232845 !important; color: var(--jssc-ink) !important; }
.jssc-quiz.jssc-dark .jssc-live-gate .jssc-lb-table tbody tr:nth-child(1) td { background: #3A3220 !important; color: var(--jssc-ink) !important; }
.jssc-quiz.jssc-dark .jssc-live-gate .jssc-lb-table tbody tr:nth-child(2) td { background: #262B42 !important; color: var(--jssc-ink) !important; }
.jssc-quiz.jssc-dark .jssc-live-gate .jssc-lb-table tbody tr:nth-child(3) td { background: #3A2A22 !important; color: var(--jssc-ink) !important; }
.jssc-quiz.jssc-dark .jssc-live-gate .jssc-lb-table tbody tr td { color: var(--jssc-ink); }
.jssc-quiz.jssc-dark .jssc-live-gate .jssc-lb-table tbody tr:nth-child(1) td:first-child { color: #E0A94A !important; }
.jssc-quiz.jssc-dark .jssc-live-gate .jssc-lb-table tbody tr:nth-child(2) td:first-child { color: #B4BCD6 !important; }
.jssc-quiz.jssc-dark .jssc-live-gate .jssc-lb-table tbody tr:nth-child(3) td:first-child { color: #D9A06B !important; }
.jssc-quiz.jssc-dark .jssc-live-gate .jssc-lb-table td:last-child { color: #62D3A0 !important; }

/* v2.1.169 — Social Media Profiles panel */
.jssc-sm{margin:14px 0 0!important;padding:10px!important;background:#F1EAFB!important;border:1px solid #D9CCEE!important;border-radius:10px!important;box-sizing:border-box!important;text-align:left!important;color:#2B1A55!important;}
.jssc-sm-title{margin:0 0 6px!important;padding:0 0 0 10px!important;border:0!important;border-left:4px solid #2B1A55!important;background:none!important;font-size:19px!important;font-weight:800!important;line-height:1.2!important;color:#2B1A55!important;text-align:left!important;}
.jssc-sm-intro{margin:0 0 8px!important;padding:0!important;font-size:15px!important;line-height:1.45!important;color:#3a3347!important;}
.jssc-sm-intro a{color:#2B1A55!important;font-weight:700!important;text-decoration:underline!important;word-break:break-all;}
.jssc-sm-row{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin:0 0 6px!important;padding:6px 10px!important;background:#FAFBFD!important;border:1px solid #E6E8F0!important;border-radius:8px!important;text-decoration:none!important;color:#2B1A55!important;}
.jssc-sm-row:last-child{margin-bottom:0!important;}
.jssc-sm-name{display:flex!important;align-items:center!important;gap:10px!important;font-size:16px!important;font-weight:700!important;line-height:1.2!important;}
.jssc-sm-btn{flex-shrink:0!important;padding:5px 14px!important;border-radius:999px!important;background:#F4BE4A!important;color:#2B1A55!important;font-size:13px!important;font-weight:700!important;line-height:1.2!important;white-space:nowrap!important;}
.jssc-sm-row:hover .jssc-sm-btn{filter:brightness(.95);}

/* v2.1.171 — minimal spacing, everywhere (one sweep over every box, banner, card and gap) */
.jssc-whatsapp-banner { padding: 8px 10px !important; margin-bottom: 8px !important; gap: 8px !important; }
.jssc-purchase-groups { gap: 8px !important; }
.jssc-purchase-group { padding: 6px !important; }
.jssc-purchase-browse-links { gap: 6px !important; }
.jssc-purchase-browse-link { padding: 7px 10px !important; }
.jssc-live-card { padding: 8px 10px !important; }
.jssc-live-window { gap: 10px !important; margin-bottom: 8px !important; }
.jssc-live-countdown-box { padding: 8px 10px !important; }
.jssc-live-countdown-sep { margin-bottom: 8px !important; }
.jssc-live-nowline { margin: 0 0 8px !important; }
.jssc-live-tip-box, .jssc-paywall-series-box { padding: 8px 10px !important; }
.jssc-dash-form, .jssc-danger-zone { padding: 10px !important; }
.jssc-product-trust { margin-bottom: 8px !important; }
.jssc-product-included { margin-bottom: 8px !important; }
.jssc-product-trust { gap: 6px !important; margin-bottom: 8px !important; padding-bottom: 8px !important; }


/* v2.1.173 — gender picker */
.jssc-gender > span { text-transform: none !important; letter-spacing: 0 !important; font-size: 13px !important; }
.jssc-gender > span em { font-style: normal; font-weight: 500; color: #64748B; }
.jssc-gender-opts { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 6px !important; }
.jssc-gender-opt { position: relative !important; display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; gap: 3px !important; padding: 8px 4px !important; margin: 0 !important; background: #fff !important; border: 1.5px solid #D5DCE8 !important; border-radius: 10px !important; cursor: pointer !important; text-align: center !important; transition: border-color .15s, background .15s; }
.jssc-gender-opt b { font-size: 12.5px !important; font-weight: 700 !important; line-height: 1.2 !important; color: #334155 !important; text-transform: none !important; }
.jssc-gender-opt input { position: absolute !important; opacity: 0 !important; width: 1px !important; height: 1px !important; margin: 0 !important; pointer-events: none !important; }
.jssc-gender-opt:hover { border-color: #94A3B8 !important; }
.jssc-gender-opt--male:has(input:checked) { border-color: #2563EB !important; background: #EFF6FF !important; }
.jssc-gender-opt--female:has(input:checked) { border-color: #DB2777 !important; background: #FDF2F8 !important; }
.jssc-gender-opt--none:has(input:checked) { border-color: #64748B !important; background: #F1F5F9 !important; }
.jssc-gender-opt--male:has(input:checked) b { color: #1D4ED8 !important; }
.jssc-gender-opt--female:has(input:checked) b { color: #BE185D !important; }
.jssc-gender-opt:has(input:focus-visible) { outline: 2px solid #1B2A4A !important; outline-offset: 2px !important; }
/* v2.1.174 — gender cards: compact */
.jssc-gender-opts { gap: 5px !important; }
.jssc-gender-opt { flex-direction: row !important; gap: 5px !important; padding: 4px 6px !important; min-height: 0 !important; height: auto !important; line-height: 1 !important; border-radius: 8px !important; }
.jssc-gender-opt b { margin: 0 !important; padding: 0 !important; font-size: 12px !important; line-height: 1.15 !important; }
.jssc-gender-opt svg { width: 16px !important; height: 16px !important; margin: 0 !important; padding: 0 !important; flex-shrink: 0 !important; display: block !important; }
/* v2.1.175 — gender cards: less left/right space */
.jssc-gender-opts { gap: 4px !important; }
.jssc-gender-opt { padding: 4px 3px !important; gap: 3px !important; }
.jssc-gender-opt b { font-size: 11.5px !important; }
/* v2.1.176 — gender cards: shrink to content */
.jssc-gender-opts { display: flex !important; flex-wrap: wrap !important; justify-content: flex-start !important; gap: 6px !important; }
.jssc-gender-opt { display: inline-flex !important; flex: 0 0 auto !important; width: auto !important; padding: 2px 8px !important; gap: 4px !important; border-width: 1px !important; border-radius: 6px !important; min-height: 0 !important; }
.jssc-gender-opt b { font-size: 12px !important; }
.jssc-gender-opt svg { width: 14px !important; height: 14px !important; }
/* v2.1.177 — form containers: minimal top/bottom space */
.jssc-dash-form { padding: 6px 8px !important; }
.jssc-dash-form .jssc-field { margin: 0 0 6px !important; padding: 0 !important; }
.jssc-dash-form .jssc-field > span { margin: 0 0 3px !important; line-height: 1.25 !important; }
.jssc-dash-form .jssc-field:last-child, .jssc-dash-form > :last-child { margin-bottom: 0 !important; }
.jssc-gender { margin: 0 0 6px !important; }
.jssc-gender-opts { margin: 0 !important; padding: 0 !important; }

/* v2.1.178 — slim entry boxes everywhere (inputs, selects, coupon, search, textarea) */
.jssc-field input, .jssc-dash-form .jssc-field input, .jssc-field select, .jssc-dash-form .jssc-field select,
.jssc-coupon-input, .jssc-lb-search, .jssc-quiz input[type="text"], .jssc-quiz input[type="email"], .jssc-quiz input[type="tel"], .jssc-quiz input[type="password"], .jssc-quiz input[type="search"] {
	min-height: 32px !important; height: auto !important; padding-top: 4px !important; padding-bottom: 4px !important; line-height: 1.3 !important; font-size: 14px !important;
}
.jssc-field input, .jssc-dash-form .jssc-field input, .jssc-coupon-input, .jssc-lb-search { padding-left: 10px !important; padding-right: 10px !important; }
.jssc-pw-wrap input, .jssc-dash-form .jssc-pw-wrap input { padding-right: 38px !important; }
.jssc-field select, .jssc-dash-form .jssc-field select { padding-left: 10px !important; padding-right: 30px !important; }
.jssc-report-textarea { padding: 5px 8px !important; }
.jssc-dash-form > .jssc-btn-primary { min-height: 34px !important; }
.jssc-coupon-input, .jssc-lb-search, .jssc-quiz input[type="text"], .jssc-quiz input[type="email"], .jssc-quiz input[type="tel"], .jssc-quiz input[type="password"], .jssc-quiz input[type="search"], .jssc-field input, .jssc-field select { box-sizing: border-box !important; }

/* v2.1.179 — Social Media Profiles: smaller text */
.jssc-sm-title { font-size: 16px !important; margin-bottom: 4px !important; }
.jssc-sm-intro { font-size: 13px !important; margin-bottom: 6px !important; }
.jssc-sm-row { padding: 5px 8px !important; margin-bottom: 5px !important; }
.jssc-sm-name { font-size: 13px !important; gap: 8px !important; }
.jssc-sm-btn { font-size: 11.5px !important; padding: 4px 11px !important; }
/* v2.1.180 — gender cards: fill the row evenly (no wrapping onto a second row) */
.jssc-gender-opts { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 5px !important; }
.jssc-gender-opt { display: flex !important; width: auto !important; min-width: 0 !important; justify-content: center !important; padding: 5px 4px !important; gap: 4px !important; border-width: 1px !important; border-radius: 8px !important; }
.jssc-gender-opt b { font-size: 12px !important; white-space: normal !important; text-align: left !important; }
.jssc-gender-opt svg { width: 16px !important; height: 16px !important; }

/* v2.1.182 — "Purchased" tag in Browse Series */
.jssc-purchased-tag { display: inline-flex !important; align-items: center !important; gap: 4px !important; padding: 3px 10px !important; border-radius: 999px !important; background: #DCFCE7 !important; border: 1px solid #BBF7D0 !important; color: #166534 !important; font-size: 12px !important; font-weight: 700 !important; line-height: 1.2 !important; white-space: nowrap !important; }
.jssc-purchased-tag svg { width: 14px !important; height: 14px !important; }
.jssc-row-purchased { border-color: #BBF7D0 !important; }

/* v2.1.182 — Browse Series rows: minimum spacing */
.jssc-dash-browse-list { gap: 4px !important; }
.jssc-dash-browse-item { padding: 3px 6px 3px 3px !important; gap: 6px !important; grid-template-columns: 26px minmax(0, 1fr) auto !important; border-radius: 8px !important; min-height: 0 !important; }
.jssc-dash-browse-item.jssc-row-has-action { grid-template-columns: 26px minmax(0, 1fr) auto auto !important; }
.jssc-dash-browse-ico { width: 26px !important; height: 26px !important; border-radius: 6px !important; }
.jssc-dash-browse-ico svg { width: 15px !important; height: 15px !important; }
.jssc-dash-browse-info { gap: 0 !important; }
.jssc-dash-browse-name { line-height: 1.2 !important; margin: 0 !important; padding: 0 !important; }
.jssc-dash-browse-meta { gap: 2px 4px !important; margin: 0 !important; }
.jssc-dash-browse-meta span { padding: 1px 4px !important; }
.jssc-dash-browse-price { gap: 0 !important; }

/* Exam filter chips (JSSC exams) */
.jssc-exam-chips { display: flex !important; flex-wrap: wrap !important; justify-content: center !important; gap: 5px !important; margin: 0 0 8px !important; padding: 0 !important; }
.jssc-exam-chip { display: inline-block !important; padding: 4px 11px !important; margin: 0 !important; border-radius: 999px !important; border: 1px solid #C9D3E6 !important; background: #fff !important; color: #1B2A4A !important; font-size: 12.5px !important; font-weight: 700 !important; line-height: 1.25 !important; text-decoration: none !important; cursor: pointer !important; box-shadow: none !important; min-height: 0 !important; }
.jssc-exam-chip:hover { border-color: #1B2A4A !important; }
.jssc-exam-chip.is-active { background: #1B2A4A !important; border-color: #1B2A4A !important; color: #fff !important; }

/* v1.0.3 — sub-exam chips + exam name on list cards */
.jssc-exam-chips[hidden] { display: none !important; }
.jssc-exam-chips--sub { margin-top: -2px !important; }
.jssc-exam-chips--sub .jssc-exam-chip { font-size: 12px !important; padding: 3px 10px !important; border-style: dashed !important; }
.jssc-exam-chips--sub .jssc-exam-chip.is-active { border-style: solid !important; }

/* v1.0.4 — empty test message centered */
.jssc-empty-test { text-align: center !important; margin: 8px 0 !important; }

/* v1.0.5 — video guide: thumbnail + play button, player loads on click */
.jssc-video-poster { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: #000 !important; cursor: pointer !important; display: block !important; overflow: hidden !important; }
.jssc-video-poster img { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; margin: 0 !important; }
.jssc-video-play { position: absolute !important; left: 50% !important; top: 50% !important; transform: translate(-50%, -50%) !important; display: block !important; line-height: 0 !important; filter: drop-shadow(0 2px 6px rgba(0,0,0,.45)); transition: transform .15s; }
.jssc-video-poster:hover .jssc-video-play { transform: translate(-50%, -50%) scale(1.08) !important; }
.jssc-video-poster:focus-visible { outline: 3px solid #fff !important; outline-offset: -3px !important; }

/* v1.0.6 — support email line centered */
.jssc-support-email-row { text-align: center !important; }

/* v1.0.7 — app link under the support email */
.jssc-support-app-row { text-align: center !important; margin: 6px 0 0 !important; }
.jssc-support-app { display: inline-flex !important; align-items: center !important; gap: 6px !important; padding: 5px 14px !important; border-radius: 999px !important; background: #E0F2FE !important; border: 1px solid #BAE6FD !important; color: #075985 !important; font-size: 13px !important; font-weight: 700 !important; line-height: 1.2 !important; text-decoration: none !important; }
.jssc-support-app svg { width: 18px !important; height: 18px !important; display: block !important; }
.jssc-support-app:hover { filter: brightness(.96); }

/* v1.0.11 — sidebar app link uses the same nav-item design */
a.jssc-dash-nav-app { text-decoration: none !important; box-sizing: border-box !important; }
a.jssc-dash-nav-app .jssc-dash-nav-ico svg { width: 18px !important; height: 18px !important; display: block !important; }

/* v1.0.12 — 3-digit question numbers get breathing room in the palette on desktop (mobile unchanged) */
@media (min-width: 701px) {
	.jssc-quiz .jssc-exam-palette .jssc-pc-shape.jssc-pc-3d { font-size: 10px !important; letter-spacing: -0.3px; }
}

/* v1.0.14 — dashboard tables: vertical column lines + alternating light row colours */
.jssc-dash table.jssc-dash-table th, .jssc-dash table.jssc-dash-table td { border-left: 1px solid #DDE4F0 !important; }
.jssc-dash table.jssc-dash-table th:first-child, .jssc-dash table.jssc-dash-table td:first-child { border-left: 0 !important; }
.jssc-dash table.jssc-dash-table tbody tr:nth-child(odd) td { background: #F6F9FF !important; }
.jssc-dash table.jssc-dash-table tbody tr:nth-child(even) td { background: #EEF3FB !important; }
.jssc-dash table.jssc-results-table tbody tr.jssc-zb-1 td { background: #F6F9FF !important; }
.jssc-dash table.jssc-results-table tbody tr.jssc-zb-0 td { background: #EEF3FB !important; }
.jssc-dash table.jssc-results-table tr.jssc-results-detail-row td { border-left: 0 !important; }

/* v1.0.15 — colourful (light shades) row colours, 4 in rotation */
.jssc-dash table.jssc-dash-table tbody tr:nth-child(4n+1) td { background: #E3EEFF !important; }
.jssc-dash table.jssc-dash-table tbody tr:nth-child(4n+2) td { background: #E3F6EA !important; }
.jssc-dash table.jssc-dash-table tbody tr:nth-child(4n+3) td { background: #F0E8FD !important; }
.jssc-dash table.jssc-dash-table tbody tr:nth-child(4n+4) td { background: #FFF0DC !important; }
.jssc-dash table.jssc-results-table tbody tr.jssc-zb-1 td { background: #E3EEFF !important; }
.jssc-dash table.jssc-results-table tbody tr.jssc-zb-2 td { background: #E3F6EA !important; }
.jssc-dash table.jssc-results-table tbody tr.jssc-zb-3 td { background: #F0E8FD !important; }
.jssc-dash table.jssc-results-table tbody tr.jssc-zb-0 td { background: #FFF0DC !important; }
.jssc-dash table.jssc-dash-table th, .jssc-dash table.jssc-dash-table td { border-left-color: #C3D0E8 !important; }

/* v1.0.16 — dashboard tables: first column left, every other column centred */
.jssc-dash table.jssc-dash-table th:first-child, .jssc-dash table.jssc-dash-table td:first-child { text-align: left !important; }
.jssc-dash table.jssc-dash-table th:not(:first-child), .jssc-dash table.jssc-dash-table td:not(:first-child) { text-align: center !important; }
.jssc-dash table.jssc-dash-table td:not(:first-child) > * { vertical-align: middle; }

/* v1.0.17 — My Purchases: test-type bar (e.g. "Mock Tests") and subject bars get different light colours */
.jssc-dash .jssc-purchase-type-title { background: #D6E0FF !important; border: 1px solid #B4C3F2 !important; color: #1B2A4A !important; }
.jssc-dash details.jssc-purchase-subject:nth-of-type(4n+1) { border: 1px solid #BFE3CC !important; }
.jssc-dash details.jssc-purchase-subject:nth-of-type(4n+1) summary { background: #E1F5EA !important; }
.jssc-dash details.jssc-purchase-subject:nth-of-type(4n+2) { border: 1px solid #F3D9AE !important; }
.jssc-dash details.jssc-purchase-subject:nth-of-type(4n+2) summary { background: #FFF0DC !important; }
.jssc-dash details.jssc-purchase-subject:nth-of-type(4n+3) { border: 1px solid #D5C6F0 !important; }
.jssc-dash details.jssc-purchase-subject:nth-of-type(4n+3) summary { background: #F0E8FD !important; }
.jssc-dash details.jssc-purchase-subject:nth-of-type(4n+4) { border: 1px solid #F1C6D2 !important; }
.jssc-dash details.jssc-purchase-subject:nth-of-type(4n+4) summary { background: #FDE8EE !important; }

/* v1.0.18 — series names are no longer cut (Hindi headline/matras clipped by the tight line-height + line clamp) */
.jssc-dash-browse-name { line-height: 1.4 !important; padding: 0 !important; -webkit-line-clamp: unset !important; display: block !important; overflow: visible !important; overflow-wrap: anywhere; }

/* v1.0.19 — real Fullscreen mode: the quiz must stay scrollable (incl. result / review screens).
   The old rule listed :fullscreen, :-webkit-full-screen, :-moz-full-screen and :-ms-fullscreen in ONE selector list;
   a browser that doesn't know one of them drops the whole rule, so it never applied. One rule per selector now. */
.jssc-quiz:fullscreen { overflow-y: auto !important; overflow-x: hidden !important; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; width: 100%; height: 100%; background: var(--jssc-paper); }
.jssc-quiz:-webkit-full-screen { overflow-y: auto !important; overflow-x: hidden !important; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; width: 100%; height: 100%; background: var(--jssc-paper); }
.jssc-quiz:-moz-full-screen { overflow-y: auto !important; overflow-x: hidden !important; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; width: 100%; height: 100%; background: var(--jssc-paper); }
.jssc-quiz:-ms-fullscreen { overflow-y: auto !important; overflow-x: hidden !important; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; width: 100%; height: 100%; background: var(--jssc-paper); }
.jssc-quiz:fullscreen .jssc-exam-body { min-height: 0; }
.jssc-quiz:-webkit-full-screen .jssc-exam-body { min-height: 0; }

/* v1.0.20 — KaTeX: stacked fractions on several lines no longer overlap (the tight line-height clipped the line box below the fraction height) */
.jssc-quiz span.katex { display: inline-block !important; margin: 3px 0 !important; vertical-align: middle; }
.jssc-quiz .katex-display { margin: 6px 0 !important; }
.jssc-quiz .katex-display > .katex { display: block !important; margin: 0 !important; }
.jssc-quiz .jssc-explain, .jssc-quiz .jssc-explain-text { line-height: 1.5 !important; }

/* v1.0.23 — series row icon (colourful test paper + tick) shown larger */
.jssc-dash-browse-ico svg { width: 20px !important; height: 20px !important; display: block !important; }
