/* MockTestPrep study area. Brand colours and type match the main site's theme.css. */
:root {
	--st-blue: #1552B8;
	--st-blue-dark: #103F8C;
	--st-blue-soft: #EFF4FE;
	--st-ink: #0F172A;
	--st-text: #334155;
	--st-muted: #64748B;
	--st-line: #E2E8F0;
	--st-bg: #F8FAFC;
	--st-good: #15803D;
	--st-good-soft: #F0FDF4;
	--st-mid: #B45309;
	--st-bad: #B91C1C;
	--st-bad-soft: #FEF2F2;
	--st-radius: 10px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Open Sans", system-ui, sans-serif; color: var(--st-ink); background: var(--st-bg); -webkit-font-smoothing: antialiased; font-size: 15px; line-height: 1.55; }
a { color: var(--st-blue); }
a:hover { color: var(--st-blue-dark); }
:focus-visible { outline: 2px solid var(--st-blue); outline-offset: 2px; }
h1 { font-size: 24px; margin: 0 0 18px; line-height: 1.3; }
h2 { font-size: 16px; margin: 0 0 10px; }
.st-h2 { font-size: 19px; margin: 28px 0 12px; }
p { margin: 0 0 10px; }

/* Shell: a dark menu on the left, content on the right; the menu slides in on small screens. */
.st-shell { display: flex; min-height: 100vh; }
.st-side { width: 248px; flex: 0 0 248px; background: #0E1B33; color: #CBD5E1; padding: 18px 14px 14px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.st-side-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 10px 22px; }
.st-brand { font-weight: 700; font-size: 17px; color: var(--st-ink); text-decoration: none; }
.st-brand .st-logo-img { display: block; height: 28px; width: auto; max-width: 190px; object-fit: contain; }
.st-side .st-brand { color: #fff; font-size: 18px; }
.st-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.st-side li a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; color: #B4C0D3; text-decoration: none; font-weight: 500; font-size: 14.5px; transition: background-color .15s, color .15s; }
.st-side li a .st-ic { width: 19px; height: 19px; color: #7F8EA8; transition: color .15s; }
.st-side li a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.st-side li a:hover .st-ic { color: #fff; }
.st-side li a.is-current { background: var(--st-blue); color: #fff; font-weight: 600; box-shadow: 0 6px 16px rgba(21, 82, 184, .35); }
.st-side li a.is-current .st-ic { color: #fff; }
.st-side:focus-visible { outline-color: #93C5FD; }
.st-side-break { height: 1px; background: rgba(255, 255, 255, .08); margin: 10px 12px; }
.st-side-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px 6px 2px; border-top: 1px solid rgba(255, 255, 255, .08); }
.st-avatar { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: #1E3A8A; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.st-side-who { min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.st-side-who strong { color: #fff; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-side-who span { color: #8796AE; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-signout { margin-left: auto; color: #8796AE; padding: 7px; border-radius: 8px; display: inline-flex; }
.st-signout:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.st-signout .st-ic { width: 18px; height: 18px; }
.st-menu-open, .st-menu-close { display: none; background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: var(--st-text); padding: 4px 8px; }
.st-menu-close { color: #CBD5E1; }
.st-main { flex: 1; min-width: 0; }
/* The top bar's side padding matches the centred content column, so both start on the same edge. */
.st-top { display: flex; align-items: center; gap: 12px; min-height: 64px; background: var(--sa-card, #fff); border-bottom: 1px solid var(--st-line); padding: 10px max(28px, calc((100% - 1240px) / 2 + 28px)); position: sticky; top: 0; z-index: 5; }
.st-exam { display: flex; align-items: center; gap: 10px; min-width: 0; }
.st-exam-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--st-blue-soft); color: var(--st-blue); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.st-exam-ic .st-ic { width: 19px; height: 19px; }
.st-exam-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.st-exam-text strong { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-exam-text span { font-size: 12.5px; color: var(--st-muted); }
.st-switch { margin-left: auto; font-size: 13.5px; font-weight: 600; color: var(--st-ink); text-decoration: none; padding: 7px 14px; border: 1px solid #CBD5E1; border-radius: 8px; white-space: nowrap; }
.st-switch:hover { background: var(--sa-chip, #F1F5F9); color: var(--st-ink); }
.st-content { max-width: 1240px; margin: 0 auto; padding: 28px 28px 64px; }
.st-pagehead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 18px; }
.st-pagehead h1 { margin: 0; font-size: 26px; letter-spacing: -.01em; }
.st-pagehead-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.st-pagehead-actions form { margin: 0; }
@media (max-width: 860px) {
	.st-side { position: fixed; left: 0; top: 0; z-index: 20; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(15, 23, 42, .35); }
	.st-side.is-open { transform: none; }
	.st-menu-open, .st-menu-close { display: inline-block; }
	.st-top { padding: 8px 14px; min-height: 58px; }
	.st-exam-ic { display: none; }
	.st-content { padding: 18px 14px 50px; }
	.st-pagehead h1 { font-size: 22px; }
}

/* Building blocks */
.st-card { background: var(--sa-card, #fff); border: 1px solid var(--st-line); border-radius: var(--st-radius); padding: 18px 20px; margin-bottom: 16px; }
.st-card.st-flush { padding: 0; overflow-x: auto; }
.st-card-accent { border-color: var(--st-blue); box-shadow: inset 4px 0 0 var(--st-blue); }
.st-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 0; }
.st-lede { font-size: 16px; color: var(--st-text); }
.st-big { font-size: 34px; font-weight: 700; color: var(--st-blue); margin: 0; line-height: 1.2; }
.st-muted { color: var(--st-muted); }
.st-small { font-size: 13.5px; color: var(--st-muted); }
.st-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.st-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--st-blue); color: #fff !important; border: 1px solid var(--st-blue); border-radius: 8px; padding: 10px 18px; font: 600 14.5px "Open Sans", sans-serif; text-decoration: none; cursor: pointer; }
.st-btn:hover { background: var(--st-blue-dark); border-color: var(--st-blue-dark); }
.st-btn-quiet { background: var(--sa-card, #fff); color: var(--st-ink) !important; border-color: #CBD5E1; }
.st-btn-quiet:hover { background: var(--sa-chip, #F1F5F9); border-color: #94A3B8; }
.st-btn-small { padding: 6px 12px; font-size: 13.5px; }
.st-btn-block { width: 100%; }
.st-btn[disabled] { opacity: .5; cursor: not-allowed; }
.st-tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--st-blue-soft); color: var(--st-blue); }
.st-tag-right { background: var(--st-good-soft); color: var(--st-good); }
.st-tag-wrong { background: var(--st-bad-soft); color: var(--st-bad); }
.st-tag-part { background: #fdf3dd; color: #8a5a00; }
.st-tag-skipped { background: var(--sa-chip, #F1F5F9); color: var(--st-muted); }
.st-notice { border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; border: 1px solid; }
.st-notice-error { background: var(--st-bad-soft); border-color: #FECACA; color: var(--st-bad); }
.st-notice-success { background: var(--st-good-soft); border-color: #BBF7D0; color: var(--st-good); }
.st-table { width: 100%; border-collapse: collapse; }
.st-table th, .st-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--st-line); vertical-align: middle; }
.st-table th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--st-muted); }
.st-list { list-style: none; margin: 0; padding: 0; }
.st-list li { padding: 10px 0; border-bottom: 1px solid var(--st-line); padding-left: calc(var(--depth, 0) * 18px); }
.st-list li:last-child { border-bottom: 0; }
.st-bars { list-style: none; margin: 0; padding: 0; }
.st-bars li { display: grid; grid-template-columns: 1fr auto minmax(90px, 180px) 44px; align-items: center; gap: 10px; padding: 7px 0; }
.st-bar { display: inline-block; height: 8px; background: var(--st-line); border-radius: 99px; overflow: hidden; min-width: 90px; vertical-align: middle; }
.st-bar span { display: block; height: 100%; background: var(--st-good); }
.st-bar-mid span { background: var(--st-mid); }
.st-bar-low span { background: var(--st-bad); }
.st-bar-num { font-size: 13px; color: var(--st-muted); text-align: right; margin-left: 6px; }
td .st-bar { width: 140px; }

/* Forms */
.st-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 14px; color: var(--st-text); }
.st-form input[type="text"], .st-form input[type="email"], .st-form input[type="password"], .st-form input[type="number"], .st-form select { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid #CBD5E1; border-radius: 8px; font: 15px "Open Sans", sans-serif; background: var(--sa-card, #fff); color: var(--st-ink); }
.st-form input[type="number"] { max-width: 140px; }
.st-form fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.st-form legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--st-text); }
.st-check, .st-radio { font-weight: 400 !important; display: flex !important; gap: 8px; align-items: flex-start; }
.st-hint { display: block; font-weight: 400; font-size: 13px; color: var(--st-muted); margin-top: 4px; }
.st-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.st-topics { display: grid; gap: 2px; max-height: 420px; overflow-y: auto; }
.st-topic { display: flex !important; gap: 8px; align-items: baseline; font-weight: 400 !important; margin: 0 !important; padding: 6px 0 6px calc(var(--depth, 0) * 22px); }
.st-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.st-mode { display: flex !important; gap: 10px; align-items: flex-start; border: 1px solid var(--st-line); border-radius: 8px; padding: 12px; font-weight: 400 !important; cursor: pointer; }
.st-mode:has(input:checked) { border-color: var(--st-blue); background: var(--st-blue-soft); }
.st-inline { display: inline; }

/* Sign-in, sign-up, exam choice */
.st-plain-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 14px; }
.st-plain-brand { margin-bottom: 18px; }
.st-plain-card { width: 100%; max-width: 420px; padding: 28px; }
.st-choices { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-choice { display: block; padding: 12px 14px; border: 1px solid var(--st-line); border-radius: 8px; color: var(--st-ink); text-decoration: none; font-weight: 600; }
.st-choice:hover { border-color: var(--st-blue); background: var(--st-blue-soft); }

/* Test screen: a slim top bar (title, timer, exit, progress), the question card and a question-list panel beside it. */
.st-exam-mode { background: var(--sa-chip, #F1F5F9); }
.st-xbar { position: sticky; top: 0; z-index: 10; background: var(--sa-card, #fff); border-bottom: 1px solid var(--st-line); }
.st-xbar-in { max-width: 1180px; margin: 0 auto; padding: 10px 24px; min-height: 62px; display: flex; align-items: center; gap: 16px; }
.st-xbar-title { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; padding-left: 16px; border-left: 1px solid var(--st-line); }
.st-xbar-title h1 { font-size: 15px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-xbar-title span { font-size: 13px; color: var(--st-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-xbar-slot { margin-left: auto; display: flex; align-items: center; }
.st-xbar-exit { font-size: 14px; font-weight: 600; color: var(--st-muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; }
.st-xbar-exit:hover { background: var(--sa-chip, #F1F5F9); color: var(--st-ink); }
.st-xbar-progress { height: 3px; background: var(--st-line); }
.st-xbar-progress span { display: block; height: 100%; width: 0; background: var(--st-blue); transition: width .3s ease; }
.st-xwrap { max-width: 1180px; margin: 0 auto; padding: 28px 24px 64px; }
.st-x { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.st-x-side { position: sticky; top: 94px; }
.st-ic { display: inline-flex; width: 18px; height: 18px; flex: 0 0 auto; }
.st-ic svg, svg.st-ic { width: 100%; height: 100%; }
.st-timer { display: inline-flex; align-items: center; gap: 7px; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 15px; padding: 7px 12px; border-radius: 8px; background: var(--sa-chip, #F1F5F9); color: var(--st-ink); }
.st-timer .st-ic { width: 16px; height: 16px; color: var(--st-muted); }
.st-timer.is-low { background: var(--st-bad-soft); color: var(--st-bad); }
.st-timer.is-low .st-ic { color: var(--st-bad); }

.st-qcard { background: var(--sa-card, #fff); border: 1px solid var(--st-line); border-radius: 14px; box-shadow: 0 1px 3px rgba(15, 23, 42, .05); }
.st-qcard-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 12px 28px; border-bottom: 1px solid var(--st-line); }
.st-qcard-num { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--st-muted); }
.st-qcard-title { font-size: 18px; margin: 0; }
.st-qcard-body { padding: 26px 28px 28px; }
.st-qcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 28px; border-top: 1px solid var(--st-line); background: #FBFCFE; border-radius: 0 0 14px 14px; }
.st-qcard .st-stem { font-size: var(--st-q, 18px); line-height: 1.65; color: var(--st-ink); margin-bottom: 24px; }
.st-stem img, .st-explain img, .st-opt-text img, .st-options img { max-width: 100%; height: auto; border-radius: 8px; }
.st-stem img { display: block; margin: 14px 0; border: 1px solid var(--st-line); }
.st-opt-text img { display: block; margin: 4px 0; max-height: 220px; width: auto; }
.st-flag { display: inline-flex; align-items: center; gap: 7px; background: var(--sa-card, #fff); border: 1px solid #CBD5E1; border-radius: 999px; padding: 7px 14px; font: 600 13.5px "Open Sans", sans-serif; color: var(--st-text); cursor: pointer; }
.st-flag .st-ic { width: 15px; height: 15px; }
.st-flag:hover { border-color: #94A3B8; background: var(--sa-tint, #F8FAFC); }
.st-flag[aria-pressed="true"] { background: #FFF7ED; border-color: #FB923C; color: #C2410C; }
.st-flag[aria-pressed="true"] svg { fill: currentColor; }

.st-opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.st-opt-row { position: relative; }
.st-opt { width: 100%; display: flex; gap: 14px; align-items: flex-start; text-align: left; background: var(--sa-card, #fff); border: 1.5px solid #D5DEE9; border-radius: 12px; padding: 14px 18px; font: 16px/1.55 "Open Sans", sans-serif; color: var(--st-ink); cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.st-opt-row.has-strike .st-opt { padding-right: 60px; }
.st-opt:hover { border-color: #8DB0EA; background: #FAFCFF; }
.st-opt .st-key { width: 30px; height: 30px; flex: 0 0 30px; margin-top: -2px; border: 1.5px solid #CBD5E1; background: var(--sa-card, #fff); color: var(--st-text); transition: background-color .15s, border-color .15s, color .15s; }
.st-opt-text { display: block; min-width: 0; padding-top: 1px; }
.st-opt[aria-checked="true"] { border-color: var(--st-blue); background: var(--st-blue-soft); box-shadow: 0 0 0 3px rgba(21, 82, 184, .12); }
.st-opt[aria-checked="true"] .st-key { background: var(--st-blue); border-color: var(--st-blue); color: #fff; }
.st-opt.is-struck { opacity: .55; }
.st-opt.is-struck .st-opt-text { text-decoration: line-through; }
.st-opt.is-correct { border-color: var(--st-good); background: var(--st-good-soft); box-shadow: none; opacity: 1; }
.st-opt.is-correct .st-key { background: var(--st-good); border-color: var(--st-good); color: #fff; }
.st-opt.is-wrong { border-color: var(--st-bad); background: var(--st-bad-soft); box-shadow: none; }
.st-opt.is-wrong .st-key { background: var(--st-bad); border-color: var(--st-bad); color: #fff; }
.st-opt[disabled] { cursor: default; }
.st-strike { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid transparent; background: transparent; color: #94A3B8; cursor: pointer; }
.st-strike .st-ic { width: 17px; height: 17px; }
.st-strike:hover { background: var(--sa-chip, #F1F5F9); border-color: var(--st-line); color: var(--st-text); }
.st-strike[aria-pressed="true"] { color: var(--st-blue); background: var(--st-blue-soft); }
.st-why { display: block; font-size: 14px; color: var(--st-text); margin: 6px 0 0; }
.st-result { margin-top: 22px; }
.st-feedback { font-weight: 700; font-size: 16px; margin: 0 0 12px; }
.st-result.is-right .st-feedback { color: var(--st-good); }
.st-result.is-wrong .st-feedback { color: var(--st-bad); }
.st-explain { margin-top: 16px; padding: 16px 18px; background: var(--st-bg); border: 1px solid var(--st-line); border-radius: 12px; }
.st-result .st-explain { margin-top: 0; }
.st-explain strong { display: block; margin-bottom: 4px; }
.st-result .st-small { margin: 12px 0 0; }
.st-btn .st-ic { width: 17px; height: 17px; }

.st-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-bottom: 18px; }
.st-stat { border: 1px solid var(--st-line); border-radius: 10px; padding: 14px 16px; background: var(--sa-card, #fff); }
.st-stat b { display: block; font-size: 26px; line-height: 1.2; color: var(--st-ink); }
.st-stat span { font-size: 13px; color: var(--st-muted); }
.st-stat.is-warn b { color: var(--st-mid); }

.st-panel { background: var(--sa-card, #fff); border: 1px solid var(--st-line); border-radius: 14px; padding: 18px; box-shadow: 0 1px 3px rgba(15, 23, 42, .05); }
.st-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.st-panel-head h2 { font-size: 15px; margin: 0; }
.st-panel-count { font-size: 13px; color: var(--st-muted); }
.st-panel-grid { max-height: 44vh; overflow-y: auto; padding: 3px; margin: -3px; }
.st-palette { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.st-palette-sections { display: grid; gap: 14px; }
.st-palette-sections .st-palette { margin-top: 8px; }
.st-pal-head { font-size: 12.5px; font-weight: 700; color: var(--st-text); margin: 0; }
.st-pal { height: 40px; border-radius: 8px; border: 1px solid #CBD5E1; background: var(--sa-card, #fff); font: 600 13.5px "Open Sans", sans-serif; cursor: pointer; position: relative; color: var(--st-text); font-variant-numeric: tabular-nums; }
.st-pal:hover { border-color: var(--st-blue); }
.st-pal.is-answered { background: var(--st-blue); border-color: var(--st-blue); color: #fff; }
.st-pal.is-current { outline: 2px solid var(--st-ink); outline-offset: 2px; }
.st-pal.is-flagged::after { content: ""; position: absolute; top: -4px; right: -4px; width: 11px; height: 11px; border-radius: 50%; background: #F97316; border: 2px solid var(--sa-card, #fff); }
.st-pal[disabled] { opacity: .4; cursor: not-allowed; }
.st-legend { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--st-line); font-size: 12.5px; color: var(--st-muted); }
.st-legend li { display: flex; align-items: center; gap: 8px; }
.st-sw { width: 16px; height: 16px; flex: 0 0 16px; border-radius: 4px; border: 1px solid #CBD5E1; background: var(--sa-card, #fff); position: relative; }
.st-sw-answered { background: var(--st-blue); border-color: var(--st-blue); }
.st-sw-current { outline: 2px solid var(--st-ink); outline-offset: 1px; }
.st-sw-flagged::after { content: ""; position: absolute; top: -4px; right: -4px; width: 9px; height: 9px; border-radius: 50%; background: #F97316; border: 2px solid var(--sa-card, #fff); }
.st-panel-actions { display: grid; gap: 8px; margin-top: 16px; }
.st-keyhint { font-size: 12px; color: var(--st-muted); margin: 12px 0 0; }

.st-mock h3 { font-size: 16px; margin: 0 0 4px; }
.st-verdict { display: flex; flex-direction: column; gap: 2px; border-radius: var(--st-radius); padding: 14px 18px; margin-bottom: 16px; font-size: 20px; font-weight: 700; border: 1px solid; }
.st-verdict span { font-size: 14px; font-weight: 400; }
.st-verdict-pass { background: var(--st-good-soft); border-color: #BBF7D0; color: var(--st-good); }
.st-verdict-fail { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }
.st-calc { position: fixed; right: 20px; bottom: 20px; width: 240px; background: var(--sa-card, #fff); border: 1px solid #CBD5E1; border-radius: 14px; box-shadow: 0 16px 40px rgba(15, 23, 42, .2); padding: 12px; z-index: 30; }
.st-calc-screen { width: 100%; font: 600 22px "Open Sans", sans-serif; text-align: right; padding: 8px 10px; border: 1px solid var(--st-line); border-radius: 8px; margin-bottom: 8px; font-variant-numeric: tabular-nums; background: var(--st-bg); }
.st-calc-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.st-calc-keys button { padding: 10px 0; border: 1px solid var(--st-line); border-radius: 8px; background: var(--sa-card, #fff); font: 600 15px "Open Sans", sans-serif; cursor: pointer; }
.st-calc-keys button:hover { background: var(--sa-chip, #F1F5F9); }

@media (max-width: 920px) {
	.st-x { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.st-x-side { position: static; }
	.st-xbar-in { padding: 8px 14px; gap: 10px; min-height: 56px; }
	.st-xbar .st-brand { display: none; }
	.st-xbar-title { padding-left: 0; border-left: 0; }
	.st-xbar-exit { padding: 8px; }
	.st-xwrap { padding: 14px 12px 40px; }
	.st-qcard-head, .st-qcard-foot { padding-left: 16px; padding-right: 16px; }
	.st-qcard-body { padding: 20px 16px 22px; }
	.st-qcard .st-stem { font-size: 17px; }
	.st-qcard-foot { position: sticky; bottom: 0; z-index: 4; box-shadow: 0 -6px 16px rgba(15, 23, 42, .06); }
	.st-opt { padding: 13px 14px; font-size: 15.5px; }
	.st-opt-row.has-strike .st-opt { padding-right: 54px; }
	.st-strike { right: 8px; }
	.st-palette { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); }
	.st-panel-grid { max-height: none; }
	.st-keyhint { display: none; }
	.st-legend { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
}
@media (max-width: 420px) {
	.st-flag { padding: 7px 10px; }
	.st-qcard-num { font-size: 12px; }
	.st-qcard-foot .st-btn { padding: 10px 14px; }
}
@media (hover: none) {
	.st-keyhint { display: none; }
}

/* Results and bookmarks */
.st-stem { font-size: 16.5px; margin-bottom: 16px; }
.st-key, .st-qnum { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sa-chip, #F1F5F9); font-weight: 700; font-size: 13px; }
.st-review header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.st-review .st-bookmark { margin-left: auto; }
.st-review-right { box-shadow: inset 4px 0 0 var(--st-good); }
.st-review-wrong { box-shadow: inset 4px 0 0 var(--st-bad); }
.st-options { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-options li { display: flex; gap: 10px; padding: 10px 12px; border: 1px solid var(--st-line); border-radius: 8px; }
.st-options li.is-correct { border-color: var(--st-good); background: var(--st-good-soft); }
.st-options li.is-wrong { border-color: var(--st-bad); background: var(--st-bad-soft); }
.st-yours { font-size: 12.5px; color: var(--st-muted); }
.st-bookmark { background: var(--sa-card, #fff); border: 1px solid #CBD5E1; border-radius: 999px; padding: 4px 12px; font: 600 12.5px "Open Sans", sans-serif; cursor: pointer; color: var(--st-text); }
.st-bookmark[aria-pressed="true"] { background: #FEF3C7; border-color: #F59E0B; color: #92400E; }

/* Flashcards */
.st-fc { max-width: 620px; }
.st-fc-card { min-height: 220px; display: flex; flex-direction: column; justify-content: center; text-align: center; font-size: 19px; padding: 30px 26px; }
.st-fc-back { border-top: 1px dashed var(--st-line); margin-top: 18px; padding-top: 18px; font-size: 17px; }
.st-fc-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--st-muted); margin-bottom: 10px; }
.st-rate { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.st-rate button { padding: 11px 0; }

/* Visitors trying questions before signing up: one centred column, everything on the same edges. */
.st-gtop { background: var(--sa-card, #fff); border-bottom: 1px solid var(--st-line); }
.st-gtop-in { max-width: 600px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.st-gtop-link { font-size: 14px; font-weight: 600; text-decoration: none; padding: 7px 14px; border: 1px solid #CBD5E1; border-radius: 8px; color: var(--st-ink); }
.st-gtop-link:hover { background: var(--sa-chip, #F1F5F9); color: var(--st-ink); }
.st-gwrap { max-width: 560px; margin: 0 auto; padding: 56px 20px 72px; }
.st-gwrap h1 { font-size: 30px; line-height: 1.25; letter-spacing: -.01em; margin: 0 0 12px; }
.st-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--st-blue); background: var(--st-blue-soft); padding: 5px 11px; border-radius: 999px; margin: 0 0 14px; }
.st-gwrap .st-lede { font-size: 16.5px; line-height: 1.6; margin: 0 0 18px; }
.st-facts { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.st-facts li { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--st-text); background: var(--sa-card, #fff); border: 1px solid var(--st-line); border-radius: 999px; padding: 6px 12px 6px 10px; }
.st-facts .st-ic { width: 15px; height: 15px; color: var(--st-good); }
.st-gwrap .st-card { padding: 26px; border-radius: 14px; box-shadow: 0 1px 3px rgba(15, 23, 42, .05); margin-bottom: 0; }
.st-gwrap .st-form label:last-of-type { margin-bottom: 20px; }
.st-gwrap .st-notice { margin-bottom: 18px; }
.st-btn-big { padding: 13px 20px; font-size: 15.5px; }
.st-center { text-align: center; }
.st-gwrap > .st-small { margin: 18px 0 0; }
@media (max-width: 600px) {
	.st-gtop-in { padding: 12px 16px; }
	.st-gwrap { padding: 28px 16px 48px; }
	.st-gwrap h1 { font-size: 24px; }
	.st-gwrap .st-card { padding: 20px; }
}

/* Plans and the free tier */
.st-free { background: var(--st-blue-soft); border: 1px solid #DCE7FB; border-radius: 8px; padding: 9px 14px; font-size: 14px; }
.st-paywall { border-color: var(--st-blue); text-align: center; }
.st-plan { display: flex; flex-direction: column; }
.st-plan.is-featured { border-color: var(--st-blue); box-shadow: 0 0 0 1px var(--st-blue); }
.st-plan .st-tag { align-self: flex-start; margin-bottom: 8px; }
.st-plan .st-btn { margin-top: auto; }
.st-ticks { list-style: none; margin: 0 0 16px; padding: 0; font-size: 14px; }
.st-ticks li { padding: 4px 0 4px 22px; position: relative; }
.st-ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--st-good); font-weight: 700; }
.st-orders { margin-top: 14px; }
.st-article-preview { position: relative; max-height: 320px; overflow: hidden; }
.st-article-preview::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(transparent, var(--sa-card, #fff)); }

/* Study notes reuse the site's content blocks; keep them inside the card. */
.st-article { padding: 26px 28px; overflow-x: auto; }
.st-article > *:first-child { margin-top: 0; }

/* App pages: number cards, two-column rows, recent tests, the test builder, quieter links. */
.st-kpis { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 16px; }
.st-kpi { display: flex; flex-direction: column; margin-bottom: 0; }
.st-kpi-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.st-kpi-head h2 { margin: 0; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--st-muted); }
.st-kpi-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--st-blue-soft); color: var(--st-blue); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.st-kpi-ic .st-ic { width: 19px; height: 19px; }
.st-kpi .st-big { font-size: 32px; }
.st-kpi .st-muted { margin: 2px 0 0; font-size: 13.5px; }
.st-kpi-foot { margin-top: auto; padding-top: 14px; }
.st-resume { display: flex; align-items: center; gap: 14px; border-color: #BFD3F6; background: linear-gradient(90deg, var(--st-blue-soft), var(--sa-card, #fff) 70%); }
.st-resume-text { flex: 1; min-width: 0; }
.st-resume h2, .st-resume p { margin: 0; }
.st-cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.st-cols > .st-card { margin-bottom: 0; }
.st-recent { list-style: none; margin: 0; padding: 0; }
.st-recent li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--st-line); }
.st-recent li:last-child { border-bottom: 0; padding-bottom: 0; }
.st-recent a { flex: 1; min-width: 0; display: flex; flex-direction: column; text-decoration: none; color: var(--st-ink); font-weight: 600; font-size: 14.5px; }
.st-recent a .st-muted { font-weight: 400; font-size: 12.5px; }
.st-recent a:hover > span:first-child { color: var(--st-blue); }
.st-tag-mid { background: #FFFBEB; color: #B45309; }
.st-bars li { grid-template-columns: minmax(0, 1fr) 48px minmax(100px, 200px) 40px; gap: 12px; }
.st-bars .st-muted { text-align: right; font-size: 13px; }
.st-bars .st-bar { width: 100%; min-width: 0; }
.st-bars .st-bar-num { margin-left: 0; }
.st-list a, .st-table a, .st-bars a { color: var(--st-ink); text-decoration: none; font-weight: 600; }
.st-list a:hover, .st-table a:hover, .st-bars a:hover { color: var(--st-blue); text-decoration: underline; }
.st-table tbody tr:hover { background: var(--sa-tint, #F8FAFC); }
.st-table tbody tr:last-child td { border-bottom: 0; }
.st-build { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.st-build .st-card { margin-bottom: 0; }
.st-build-side { position: sticky; top: 84px; }
.st-card-sub { font-size: 16px; margin: 8px 0 10px; }
.st-build-side .st-modes { grid-template-columns: 1fr; margin-bottom: 12px; }
.st-build-side .st-btn-big { margin-top: 10px; }
.st-build .st-topics { max-height: none; gap: 2px; }
.st-topic { padding: 9px 10px 9px calc(10px + var(--depth, 0) * 22px); border-radius: 8px; align-items: center !important; cursor: pointer; }
.st-topic:hover { background: var(--sa-tint, #F8FAFC); }
.st-topic-name { flex: 1; min-width: 0; }
/* Create test: top-level topics as groups that open and close. */
.st-topics-tools { display: flex; justify-content: flex-end; gap: 14px; margin: 0 0 4px; }
.st-linkbtn { border: 0; background: none; padding: 4px 2px; font: inherit; font-size: 13px; font-weight: 600; color: var(--st-blue, #2563eb); cursor: pointer; }
.st-linkbtn:hover { text-decoration: underline; }
.st-tgroup { border-bottom: 1px solid var(--sa-edge, #E2E8F0); }
.st-tgroup:last-child { border-bottom: 0; }
.st-tgroup-head { display: flex; align-items: center; gap: 2px; }
.st-tgroup-head .st-topic { flex: 1; min-width: 0; font-weight: 600 !important; }
.st-tgroup-toggle { flex: none; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: none; color: var(--st-muted, #64748b); cursor: pointer; padding: 0; }
.st-tgroup-toggle:hover { background: var(--sa-tint, #F8FAFC); color: var(--st-ink, #0f172a); }
.st-tgroup-toggle .st-ic { width: 18px; height: 18px; transform: rotate(-90deg); transition: transform .15s; }
.st-tgroup.is-open .st-tgroup-toggle .st-ic { transform: none; }
.st-tgroup-toggle.is-empty { visibility: hidden; }
.st-tgroup-body { padding: 0 0 8px 34px; }
.st-tgroup-body .st-topic { padding-left: calc(10px + (var(--depth, 1) - 1) * 22px); }
.st-topics.is-js .st-tgroup:not(.is-open) .st-tgroup-body { display: none; }
.st-tgroup-picked { margin: -4px 0 10px 44px; font-size: 12.5px; font-weight: 600; color: var(--st-blue, #2563eb); }
.st-tgroup-picked[hidden] { display: none; }
.st-topics:has(.st-tgroup) { gap: 0; }
.st-count { font-size: 12px; font-weight: 700; color: var(--st-text); background: var(--sa-chip, #F1F5F9); border-radius: 999px; padding: 2px 9px; }
@media (max-width: 1000px) {
	.st-cols, .st-build { grid-template-columns: minmax(0, 1fr); }
	.st-build-side { position: static; }
}
@media (max-width: 600px) {
	.st-bars li { grid-template-columns: minmax(0, 1fr) 40px 64px 36px; gap: 8px; }
	.st-resume { flex-wrap: wrap; }
	.st-kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
	.st-kpi { padding: 14px; }
	.st-kpi .st-big { font-size: 26px; }
	.st-kpi-ic { display: none; }
}
.st-card > .st-form { max-width: 520px; }
.st-usage { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 24px; margin-bottom: 8px; }
.st-usage h2 { margin-bottom: 4px; }
.st-usage-figure { min-width: 200px; font-size: 13px; color: var(--st-muted); display: grid; gap: 6px; }
.st-usage-figure strong { color: var(--st-ink); font-size: 15px; }
.st-usage-figure .st-bar { width: 100%; }
.st-usage-figure .st-bar-num { display: none; }
.st-topic-meta { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.st-unused { font-size: 12px; font-weight: 600; color: var(--st-good); }
.st-radio { align-items: center !important; padding: 7px 10px; margin: 0 -10px !important; border-radius: 8px; cursor: pointer; }
.st-radio:hover { background: var(--sa-tint, #F8FAFC); }
.st-radio-text { flex: 1; }
.st-hint.is-empty { color: var(--st-bad); font-weight: 600; }
.st-usage-figure .st-bar span { background: var(--st-blue); }

/* Exam switcher in the top bar, and the My exams page. */
.st-switcher { position: relative; min-width: 0; }
.st-switcher > summary { list-style: none; cursor: pointer; padding: 5px 10px 5px 5px; margin-left: -5px; border-radius: 10px; border: 1px solid transparent; }
.st-switcher > summary::-webkit-details-marker { display: none; }
.st-switcher > summary:hover, .st-switcher[open] > summary { background: var(--sa-tint, #F8FAFC); border-color: var(--st-line); }
.st-exam-chevron { display: inline-flex; color: var(--st-muted); transition: transform .15s; }
.st-exam-chevron .st-ic { width: 16px; height: 16px; }
.st-switcher[open] .st-exam-chevron { transform: rotate(180deg); }
.st-switcher-menu { position: absolute; top: calc(100% + 8px); left: -5px; width: 340px; max-width: calc(100vw - 28px); background: var(--sa-card, #fff); border: 1px solid var(--st-line); border-radius: 12px; box-shadow: 0 18px 40px rgba(15, 23, 42, .16); padding: 8px; z-index: 30; }
.st-switcher-head { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--st-muted); margin: 6px 10px 6px; }
.st-switcher-menu ul { list-style: none; margin: 0; padding: 0; }
.st-switcher-menu form { margin: 0; }
.st-switcher-item { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; background: none; border: 0; border-radius: 8px; padding: 9px 10px; cursor: pointer; font: inherit; color: var(--st-ink); }
.st-switcher-item:hover { background: var(--sa-chip, #F1F5F9); }
.st-switcher-item.is-current { background: var(--st-blue-soft); }
.st-switcher-item .st-ic { width: 18px; height: 18px; color: var(--st-blue); }
.st-switcher-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.st-switcher-text strong { font-size: 14px; }
.st-switcher-text span { font-size: 12.5px; color: var(--st-muted); }
.st-switcher-foot { display: grid; gap: 2px; border-top: 1px solid var(--st-line); margin-top: 6px; padding-top: 6px; }
.st-switcher-foot a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--st-ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.st-switcher-foot a:hover { background: var(--sa-chip, #F1F5F9); }
.st-switcher-foot .st-ic { width: 17px; height: 17px; color: var(--st-muted); }
.st-top-plan { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; }
.st-exam-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.st-exam-cards .st-card { margin-bottom: 0; }
.st-exam-card { display: flex; flex-direction: column; }
.st-exam-card.is-active { border-color: #BFD3F6; box-shadow: 0 0 0 1px #BFD3F6; }
.st-exam-card-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.st-exam-card-title { flex: 1; min-width: 0; }
.st-exam-card-title h2 { margin: 0; font-size: 17px; }
.st-exam-card-title p { margin: 2px 0 0; font-size: 13.5px; }
.st-exam-plan { margin: 0 0 14px; font-size: 13.5px; }
.st-exam-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 10px; }
.st-exam-stats div { background: var(--st-bg); border-radius: 8px; padding: 10px 12px; }
.st-exam-stats dt { font-size: 12px; color: var(--st-muted); }
.st-exam-stats dd { margin: 2px 0 0; font-size: 20px; font-weight: 700; color: var(--st-ink); }
.st-exam-stats dd .st-muted { font-size: 13px; font-weight: 400; }
.st-exam-usage .st-bar { width: 100%; }
.st-exam-usage .st-bar span { background: var(--st-blue); }
.st-exam-usage .st-bar-num { display: none; }
.st-exam-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: auto; padding-top: 16px; }
.st-exam-actions form { margin: 0; }
.st-exam-change { margin-left: auto; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.st-exam-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; min-height: 220px; border: 1.5px dashed #CBD5E1; background: transparent; color: var(--st-ink); text-decoration: none; }
.st-exam-add:hover { border-color: var(--st-blue); background: var(--st-blue-soft); color: var(--st-ink); }
@media (max-width: 860px) {
	.st-top-plan .st-muted { display: none; }
	.st-switcher-menu { position: fixed; left: 14px; right: 14px; top: 62px; width: auto; }
}

/* Feedback on questions, flashcards and study notes. */
.st-fb { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--st-line); }
.st-fb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.st-fb-label { font-size: 13.5px; font-weight: 600; color: var(--st-text); margin-right: 2px; }
.st-fb-thumb { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #CBD5E1; border-radius: 8px; background: var(--sa-card, #fff); color: var(--st-muted); cursor: pointer; }
.st-fb-thumb .st-ic { width: 16px; height: 16px; }
.st-fb-thumb:hover { border-color: #94A3B8; color: var(--st-ink); }
.st-fb-up[aria-pressed="true"] { background: var(--st-good-soft); border-color: #86EFAC; color: var(--st-good); }
.st-fb-down[aria-pressed="true"] { background: var(--st-bad-soft); border-color: #FCA5A5; color: var(--st-bad); }
.st-fb-report { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; background: none; border: 0; padding: 6px 4px; color: var(--st-muted); font: 600 13px "Open Sans", sans-serif; cursor: pointer; }
.st-fb-report .st-ic { width: 15px; height: 15px; }
.st-fb-report:hover, .st-fb-report[aria-expanded="true"] { color: var(--st-ink); }
.st-fb-status { font-size: 13px; color: var(--st-good); }
.st-fb-form { display: grid; gap: 8px; margin-top: 12px; max-width: 520px; }
.st-fb-form select, .st-fb-form textarea { width: 100%; padding: 9px 11px; border: 1px solid #CBD5E1; border-radius: 8px; font: 14px "Open Sans", sans-serif; background: var(--sa-card, #fff); color: var(--st-ink); }
.st-fb-actions { display: flex; gap: 8px; }
.st-review-foot .st-fb { margin-top: 14px; }
.st-fb-card .st-fb { margin: 0; padding: 0; border: 0; }
.st-fc .st-fb { border-top: 0; margin-top: 14px; padding-top: 0; }
.st-fb-form[hidden] { display: none; }

/* Question types: select all, ordering, typed answers, matching, matrix, drop-downs, hot spot, case studies. */
.st-prompt { font-size: 13.5px; font-weight: 600; color: var(--st-muted); margin: -10px 0 16px; }
.st-opts.is-multi .st-opt .st-key { border-radius: 6px; }
.st-savebar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.st-save-status { font-size: 13px; color: var(--st-muted); }
.st-save-status.is-saved { color: var(--st-good); font-weight: 600; }
.st-order { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-order-item { display: flex; align-items: center; gap: 12px; background: var(--sa-card, #fff); border: 1.5px solid #D5DEE9; border-radius: 12px; padding: 10px 12px; }
.st-order-item[draggable="true"] { cursor: grab; }
.st-order-num { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--st-blue-soft); color: var(--st-blue); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.st-order-text { flex: 1; min-width: 0; }
.st-order-move { display: inline-flex; gap: 4px; }
.st-order-btn { width: 32px; height: 32px; border: 1px solid #CBD5E1; border-radius: 8px; background: var(--sa-card, #fff); cursor: pointer; font-size: 15px; color: var(--st-text); }
.st-order-btn:hover:not([disabled]) { border-color: var(--st-blue); color: var(--st-blue); }
.st-order-btn[disabled] { opacity: .35; cursor: default; }
.st-order-item.is-correct, .st-match-row.is-correct { border-color: var(--st-good); background: var(--st-good-soft); }
.st-order-item.is-wrong, .st-match-row.is-wrong { border-color: var(--st-bad); background: var(--st-bad-soft); }
.st-right-block { margin-top: 16px; }
.st-right-block strong { display: block; margin-bottom: 8px; }
.st-order-right .st-order-item { border-color: #86EFAC; background: var(--st-good-soft); }
.st-typein { display: flex; align-items: center; gap: 10px; max-width: 420px; }
.st-input { flex: 1; min-width: 0; padding: 12px 14px; border: 1.5px solid #CBD5E1; border-radius: 10px; font: 17px "Open Sans", sans-serif; color: var(--st-ink); background: var(--sa-card, #fff); }
.st-input:focus { border-color: var(--st-blue); outline: none; box-shadow: 0 0 0 3px rgba(21, 82, 184, .12); }
.st-typein.is-correct .st-input { border-color: var(--st-good); background: var(--st-good-soft); }
.st-typein.is-wrong .st-input { border-color: var(--st-bad); background: var(--st-bad-soft); }
.st-unit { font-weight: 600; color: var(--st-text); }
.st-select { padding: 9px 12px; border: 1.5px solid #CBD5E1; border-radius: 8px; font: 15px "Open Sans", sans-serif; background: var(--sa-card, #fff); color: var(--st-ink); max-width: 100%; }
.st-select:focus { border-color: var(--st-blue); outline: none; }
.st-match { display: grid; gap: 10px; }
.st-match-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 300px); gap: 14px; align-items: center; border: 1.5px solid #D5DEE9; border-radius: 12px; padding: 12px 14px; background: var(--sa-card, #fff); }
.st-match-pick { display: grid; gap: 4px; }
.st-match-pick .st-select { width: 100%; }
.st-right-note { font-size: 13px; font-weight: 600; color: var(--st-good); }
.st-matrix-wrap { overflow-x: auto; }
.st-matrix { width: 100%; border-collapse: collapse; font-size: 15px; }
.st-matrix th, .st-matrix td { border: 1px solid var(--st-line); padding: 10px 12px; text-align: center; }
.st-matrix thead th { background: var(--st-bg); font-size: 13.5px; }
.st-matrix tbody th { text-align: left; font-weight: 500; }
.st-matrix input { width: 18px; height: 18px; accent-color: var(--st-blue); cursor: pointer; }
.st-matrix td.is-right { background: var(--st-good-soft); box-shadow: inset 0 0 0 2px #86EFAC; }
.st-matrix tr.is-correct th { background: var(--st-good-soft); }
.st-matrix tr.is-wrong th { background: var(--st-bad-soft); }
.st-blank { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; margin: 2px; }
.st-blank-select { padding: 4px 8px; font-size: 15px; }
.st-blank.is-correct .st-select { border-color: var(--st-good); background: var(--st-good-soft); }
.st-blank.is-wrong .st-select { border-color: var(--st-bad); background: var(--st-bad-soft); }
.st-hotspot { position: relative; display: inline-block; max-width: 100%; line-height: 0; border: 1px solid var(--st-line); border-radius: 10px; overflow: hidden; }
.st-hotspot img { max-width: 100%; height: auto; display: block; user-select: none; -webkit-user-drag: none; }
.st-hotspot.is-live { cursor: crosshair; }
.st-hotspot-area { position: absolute; border: 3px solid var(--st-good); background: rgba(21, 128, 61, .15); border-radius: 4px; }
.st-hotspot-mark { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--st-blue); border: 3px solid var(--sa-card, #fff); box-shadow: 0 0 0 2px var(--st-blue), 0 2px 8px rgba(0, 0, 0, .3); }
.st-hotspot-mark.is-correct { background: var(--st-good); box-shadow: 0 0 0 2px var(--st-good), 0 2px 8px rgba(0, 0, 0, .3); }
.st-hotspot-mark.is-wrong { background: var(--st-bad); box-shadow: 0 0 0 2px var(--st-bad), 0 2px 8px rgba(0, 0, 0, .3); }
.st-case { background: var(--sa-card, #fff); border: 1px solid #BFD3F6; border-radius: 14px; margin-bottom: 14px; box-shadow: 0 1px 3px rgba(15, 23, 42, .05); }
.st-case > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 20px; cursor: pointer; list-style: none; }
.st-case > summary::-webkit-details-marker { display: none; }
.st-case > summary .st-muted { margin-left: auto; font-size: 13px; }
.st-case-tag { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--st-blue); border-radius: 999px; padding: 3px 10px; }
.st-case-body { padding: 14px 20px 18px; max-height: 50vh; overflow-y: auto; border-top: 1px solid var(--st-line); }
.st-case-body img, .st-case-body table { max-width: 100%; }
.st-case-body table { border-collapse: collapse; }
.st-case-body td, .st-case-body th { border: 1px solid var(--st-line); padding: 6px 8px; }
.st-review-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.st-review-cols h4 { margin: 0 0 8px; font-size: 14px; }
.st-order-list { margin: 0; padding-left: 22px; }
.st-order-list li { padding: 6px 8px; border-radius: 6px; margin-bottom: 4px; }
.st-order-list li.is-correct { background: var(--st-good-soft); }
.st-order-list li.is-wrong { background: var(--st-bad-soft); }
.st-review-plain { display: grid; gap: 8px; margin: 0; }
.st-review-plain div { border: 1px solid var(--st-line); border-radius: 8px; padding: 10px 12px; }
.st-review-plain dt { font-size: 12.5px; color: var(--st-muted); }
.st-review-plain dd { margin: 2px 0 0; font-weight: 600; }
.st-review-plain .is-correct { border-color: var(--st-good); background: var(--st-good-soft); }
.st-review-plain .is-wrong { border-color: var(--st-bad); background: var(--st-bad-soft); }
.st-review-table { margin-bottom: 4px; }
.st-review-table tr.is-correct td { background: var(--st-good-soft); }
.st-review-table tr.is-wrong td { background: var(--st-bad-soft); }
@media (max-width: 700px) {
	.st-match-row, .st-review-cols { grid-template-columns: minmax(0, 1fr); }
	.st-order-item { padding: 8px 10px; }
}

/* Test screen tools, split-screen explanations and review mode. */
.st-xbar-slot { gap: 10px; }
.st-xtools { display: flex; align-items: center; gap: 4px; }
.st-xtool { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--st-text); font: 600 13px "Open Sans", sans-serif; cursor: pointer; white-space: nowrap; }
.st-xtool .st-ic { width: 17px; height: 17px; }
.st-xtool:hover:not([disabled]) { background: var(--sa-chip, #F1F5F9); color: var(--st-ink); }
.st-xtool[aria-pressed="true"], .st-xtool[aria-expanded="true"] { background: var(--st-blue-soft); border-color: #BFD3F6; color: var(--st-blue); }
.st-xtool[disabled] { opacity: .4; cursor: default; }
.st-xtool-group { display: inline-flex; border: 1px solid var(--st-line); border-radius: 9px; overflow: hidden; }
.st-xtool-size { border-radius: 0; padding: 0 9px; font-size: 13.5px; }
.st-xtool-group .st-xtool-size + .st-xtool-size { border-left: 1px solid var(--st-line); }
.st-qcard .st-opt { font-size: calc(var(--st-q, 18px) - 2px); }
.st-xwrap.is-wide { max-width: 1480px; }
.st-x.is-split { grid-template-columns: minmax(0, 1fr) minmax(360px, 44%); }
.st-x-side.is-explain { top: 80px; max-height: calc(100vh - 100px); overflow-y: auto; border-radius: 14px; scrollbar-width: thin; }
.st-xpl { background: var(--sa-card, #fff); border: 1px solid var(--st-line); border-radius: 14px; padding: 0 0 18px; box-shadow: 0 1px 3px rgba(15, 23, 42, .05); }
.st-xpl > *:not(.st-xpl-head) { margin-left: 22px; margin-right: 22px; }
.st-xpl-head { display: flex; align-items: flex-start; gap: 12px; padding: 16px 22px; border-radius: 14px 14px 0 0; border-bottom: 1px solid var(--st-line); margin-bottom: 16px; }
.st-xpl-head strong { display: block; font-size: 17px; }
.st-xpl-head span { font-size: 14px; }
.st-xpl-head.is-right { background: var(--st-good-soft); color: var(--st-good); }
.st-xpl-head.is-wrong { background: var(--st-bad-soft); color: var(--st-bad); }
.st-xpl-head.is-skipped { background: var(--sa-chip, #F1F5F9); color: var(--st-text); }
.st-xpl-icon { width: 30px; height: 30px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: currentColor; }
.st-xpl-icon .st-ic { width: 17px; height: 17px; color: #fff; stroke-width: 3; }
.st-xpl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-top: 0; margin-bottom: 18px; }
.st-xpl-stats div { background: var(--st-bg); border-radius: 10px; padding: 10px 12px; }
.st-xpl-stats dt { font-size: 12px; color: var(--st-muted); }
.st-xpl-stats dd { margin: 0; font-size: 20px; font-weight: 700; color: var(--st-ink); }
.st-xpl-stats div { display: flex; flex-direction: column-reverse; }
.st-xpl-h { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--st-muted); margin: 18px 0 8px; }
.st-xpl-body { font-size: 15.5px; line-height: 1.7; color: var(--st-ink); }
.st-xpl-body img { max-width: 100%; height: auto; }
.st-xpl-choices { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-xpl-choices li { display: flex; gap: 10px; padding: 10px 12px; border: 1px solid var(--st-line); border-radius: 10px; }
.st-xpl-choices li.is-correct { border-color: #86EFAC; background: var(--st-good-soft); }
.st-xpl-choices li.is-wrong { border-color: #FCA5A5; background: var(--st-bad-soft); }
.st-xpl-choice { flex: 1; min-width: 0; }
.st-xpl-opt { font-weight: 600; font-size: 14.5px; }
.st-xpl-choice .st-why { margin-top: 4px; }
.st-xpl-share { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--st-muted); }
.st-xpl-bar { flex: 1; max-width: 160px; height: 6px; border-radius: 99px; background: rgba(100, 116, 139, .18); overflow: hidden; }
.st-xpl-bar span { display: block; height: 100%; background: var(--st-muted); }
.st-xpl-choices li.is-correct .st-xpl-bar span { background: var(--st-good); }
.st-xpl-source { margin-top: 16px; }
.st-xpl .st-fb { margin-top: 18px; }
.st-peers { font-size: 13px; color: var(--st-muted); margin: 10px 0 0; }
.st-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.st-chip { border: 1px solid #CBD5E1; background: var(--sa-card, #fff); border-radius: 999px; padding: 5px 12px; font: 600 12.5px "Open Sans", sans-serif; color: var(--st-text); cursor: pointer; }
.st-chip[aria-pressed="true"] { background: var(--st-ink); border-color: var(--st-ink); color: #fff; }
.st-pal.is-right { background: var(--st-good); border-color: var(--st-good); color: #fff; }
.st-pal.is-wrong { background: var(--st-bad); border-color: var(--st-bad); color: #fff; }
.st-pal.is-skipped { border-style: dashed; color: var(--st-muted); }
.st-sw-right { background: var(--st-good); border-color: var(--st-good); }
.st-sw-wrong { background: var(--st-bad); border-color: var(--st-bad); }
.st-drawer-back { position: fixed; inset: 0; background: rgba(15, 23, 42, .35); z-index: 40; }
.st-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 340px; max-width: 92vw; background: var(--st-bg); z-index: 41; padding: 56px 16px 16px; overflow-y: auto; box-shadow: -10px 0 40px rgba(15, 23, 42, .2); }
.st-drawer-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 8px; background: var(--sa-card, #fff); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--st-text); }
.st-drawer-close .st-ic { width: 18px; height: 18px; }
mark.st-hl { background: #FDE68A; color: inherit; border-radius: 2px; padding: 0 1px; }
.st-xwrap.is-marking [data-hl] { cursor: text; }
.st-xwrap.is-marking [data-hl] mark.st-hl { cursor: pointer; }
.st-xwrap.is-marking .st-qcard { box-shadow: 0 0 0 2px #FCD34D; }
@media (max-width: 1100px) {
	.st-x.is-split { grid-template-columns: minmax(0, 1fr); }
	.st-x-side.is-explain { position: static; max-height: none; overflow: visible; }
}
@media (max-width: 920px) {
	.st-xtool-label { display: none; }
	.st-xtool { padding: 0 8px; }
	.st-xbar-title span { display: none; }
}
@media (max-width: 520px) {
	.st-xtool-group, .st-xtools .st-xtool:last-child { display: none; }
}
.st-xbar-in.is-wide { max-width: 1480px; }
.st-xbar-exit { white-space: nowrap; }

/* Results page: highlight-text answers. */
.st-highlight-review > p:first-child.st-highlight-label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--st-text); margin-bottom: 6px; }
.st-highlight-review > p { line-height: 2; }
.st-phrase { padding: 1px 4px; border-radius: 4px; }
.st-phrase.is-correct { background: var(--st-good-soft); color: var(--st-good); font-weight: 600; box-shadow: inset 0 -2px 0 var(--st-good); }
.st-phrase.is-wrong { background: var(--st-bad-soft); color: var(--st-bad); text-decoration: line-through; }
.st-phrase.is-missed { outline: 1.5px dashed var(--st-good); outline-offset: 1px; }

/* Flashcards: decks listed under their topic. */
.st-decks { list-style: none; margin: 8px 0 4px; padding: 0 0 0 14px; border-left: 2px solid var(--st-line); display: grid; gap: 6px; }
.st-deck a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.st-deck .st-ic { width: 15px; height: 15px; color: var(--st-blue); }
.st-deck-desc { display: block; font-size: 13px; color: var(--st-muted); margin-top: 1px; }

/* MockTestPrep explanation standard: one section per part, the takeaway highlighted. */
.mtp-x { display: flex; flex-direction: column; gap: 14px; }
.mtp-x h4 { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--t-muted, #6b7280); }
.mtp-x p { margin: 0 0 8px; }
.mtp-x-part.mtp-x-answer h4 { color: var(--t-ok, #15803d); }
.mtp-x-part.mtp-x-trap { padding: 10px 12px; border-left: 3px solid var(--t-warn, #b45309); background: var(--t-tint, #fafbfc); border-radius: 0 8px 8px 0; }
.mtp-x-part.mtp-x-trap h4 { color: var(--t-warn, #b45309); }
.mtp-x-part.mtp-x-memory, .mtp-x-part.mtp-x-exam-tip { padding: 10px 12px; background: var(--t-chip, #f1f3f6); border-radius: 8px; }
.mtp-x-table table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.mtp-x-table th, .mtp-x-table td { border: 1px solid var(--t-line, #e9ecef); padding: 7px 9px; text-align: left; vertical-align: top; }
.mtp-x-table thead th { background: var(--t-tint, #fafbfc); font-weight: 700; }
.mtp-x-takeaway { padding: 12px 14px; border-radius: 10px; background: var(--t-blue-tint, #e8eefc); color: var(--t-blue-deep, #1e3a8a); line-height: 1.5; }
.mtp-x-takeaway strong { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }

/* Formulas (KaTeX): inherit the text colour (dark mode too); long display formulas scroll instead of overflowing. */
.katex { font-size: 1.08em; color: inherit; }
.katex-display { margin: .6em 0; overflow-x: auto; overflow-y: hidden; padding: 2px 0; }
.st-tag-pending { background: #fdf3dd; color: #8a5a00; }
.st-essay-result h4 { margin: 14px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #64748b; }
.st-essay-mine { white-space: normal; padding: 12px 14px; border-radius: 10px; background: #f8fafc; border: 1px solid #e2e8f0; line-height: 1.6; }
.st-essay-model { padding: 12px 14px; border-radius: 10px; background: #f0fdf4; border: 1px solid #bbf7d0; line-height: 1.6; }
.st-rubric { display: flex; flex-direction: column; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; }
.st-rubric-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 10px 14px; border-top: 1px solid #f1f5f9; cursor: pointer; }
.st-rubric-row:first-child { border-top: 0; }
.st-rubric-row input { margin-top: 3px; }
.st-rubric-foot { display: flex; align-items: center; gap: 12px; margin-top: 10px; }

/* 0.31: results for drag onto an image and the bow-tie. */
.st-dragimg-review { margin-bottom: 12px; }
.st-zone-tag { position: absolute; display: flex; align-items: center; justify-content: center; border: 2px solid var(--st-line); background: rgba(255, 255, 255, .8); border-radius: 4px; font: 700 12px/1 inherit; color: inherit; }
.st-bowtie-review { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.st-bowtie-review h4 { margin: 0 0 6px; font-size: 13px; }
@media (max-width: 760px) { .st-bowtie-review { grid-template-columns: 1fr; } }

/* 0.32: audio/video and data tables on the results page. */
.st-media { margin: 0 0 12px; }
.st-media audio { width: min(100%, 460px); }
.st-media video { width: 100%; max-height: 320px; border-radius: 8px; background: #000; }
.st-transcript { margin-top: 6px; font-size: 14px; }
.st-table-wrap { overflow-x: auto; margin: 0 0 12px; }
.st-data-table caption { text-align: left; font-weight: 600; padding-bottom: 6px; }

/* 0.33: journal entries on the results page. */
.st-journal td:nth-child(2), .st-journal td:nth-child(3) { text-align: right; font-variant-numeric: tabular-nums; }
.st-journal td.st-journal-cr { padding-left: 28px; }

/* ---- Signed out mid-test: sign in again in place (0.40.0) ---- */
.st-session-open, .st-session-open body { overflow: hidden; }
.st-session { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px); }
.st-session-card { width: 100%; max-width: 400px; max-height: calc(100vh - 32px); overflow: auto; background: var(--sa-card, #fff); color: var(--st-text); border-radius: 14px; box-shadow: 0 24px 60px rgba(15, 23, 42, .3); padding: 28px 26px 22px; font: 14.5px/1.5 "Open Sans", sans-serif; }
.st-session-icon { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; background: var(--st-blue-soft); color: var(--st-blue); margin-bottom: 12px; }
.st-session-icon svg { width: 22px; height: 22px; }
.st-session-card h2 { margin: 0 0 6px; color: var(--st-ink); font-size: 20px; line-height: 1.3; }
.st-session-msg { margin: 0 0 18px; color: var(--st-muted); }
.st-session-form { display: flex; flex-direction: column; gap: 6px; }
.st-session-form label { font-weight: 600; color: var(--st-ink); font-size: 13.5px; }
.st-session-form input[type="email"], .st-session-form input[type="password"] { width: 100%; box-sizing: border-box; padding: 10px 12px; margin-bottom: 8px; border: 1px solid #CBD5E1; border-radius: 8px; font: inherit; color: var(--st-ink); background: var(--sa-card, #fff); }
.st-session-form input:focus { outline: 2px solid var(--st-blue); outline-offset: 1px; border-color: var(--st-blue); }
.st-session-form .st-session-check { display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--st-text); margin: 2px 0 6px; }
.st-session-error { margin: 0; color: var(--st-bad); font-size: 13.5px; }
.st-session-error:empty { display: none; }
.st-session-go { width: 100%; margin-top: 6px; padding: 11px 18px; }
.st-session-go:disabled { opacity: .7; cursor: wait; }
.st-session-alt { display: block; width: 100%; margin-top: 12px; padding: 6px; background: none; border: 0; color: var(--st-blue); font: 600 13.5px "Open Sans", sans-serif; cursor: pointer; text-align: center; }
.st-session-alt:hover { text-decoration: underline; }

/* ---- Study notes: worked examples (mtp/numbered-steps) as cards, full width (0.40.0) ---- */
.st-article .mtp-nsteps { display: grid; gap: 12px; margin: 10px 0 30px; padding: 0; list-style: none; }
.st-article .mtp-nstep { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 14px; margin: 0 !important; padding: 18px 22px 18px 18px; background: var(--st-bg); border: 1px solid var(--st-line); border-radius: 12px; }
.st-article .mtp-nstep:last-child { border-left-color: var(--st-line); } /* The theme hides the timeline line on the last step. */
.st-article .mtp-nstep-n { position: static; width: 32px; height: 32px; font-size: 14px; font-weight: 700; background: var(--st-blue); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.st-article .mtp-nstep-t { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 5px 0 8px; font-size: 16.5px; font-weight: 700; line-height: 1.35; color: var(--st-ink); }
.st-article .mtp-nstep-b { max-width: none; margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--st-text); }
.st-level { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.6; }
.st-level.is-easy { background: var(--st-good-soft); color: var(--st-good); }
.st-level.is-medium { background: #FFFBEB; color: var(--st-mid); }
.st-level.is-hard { background: var(--st-bad-soft); color: var(--st-bad); }
@media (max-width: 600px) {
	.st-article .mtp-nstep { grid-template-columns: 26px minmax(0, 1fr); column-gap: 10px; padding: 14px 14px 14px 12px; }
	.st-article .mtp-nstep-n { width: 26px; height: 26px; font-size: 12.5px; }
	.st-article .mtp-nstep-t { margin-top: 2px; font-size: 15.5px; }
	.st-article .mtp-nstep-b { font-size: 15px; }
}

/* ---- Study notes: reading layout (0.40.0) ---- */
.st-note-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: -4px 0 18px; font-size: 13.5px; color: var(--st-muted); }
.st-note-topic { padding: 3px 10px; border-radius: 999px; background: var(--st-blue-soft); color: var(--st-blue); font-weight: 600; }
.st-note-fact, .st-note-done-tag { display: inline-flex; align-items: center; gap: 5px; }
.st-note-fact .st-ic svg, .st-note-done-tag svg { width: 15px; height: 15px; }
.st-note-done-tag { padding: 3px 10px; border-radius: 999px; background: var(--st-good-soft); color: var(--st-good); font-weight: 600; }
.st-note-done-tag[hidden], .st-note-fact[hidden] { display: none; }
.st-note-grid { display: grid; grid-template-columns: minmax(0, 860px); justify-content: center; gap: 28px; align-items: start; }
.st-note > .st-card, .st-note > .st-paywall { max-width: 860px; margin-left: auto; margin-right: auto; }
@media (min-width: 1280px) {
	.st-note-grid { grid-template-columns: minmax(0, 860px) 230px; }
	.st-note > .st-card, .st-note > .st-paywall { margin-left: max(0px, calc((100% - 860px - 258px) / 2)); }
}
.st-note-toc { position: sticky; top: 20px; font-size: 13.5px; }
.st-note-toc[hidden] { display: none; }
@media (max-width: 1279px) { .st-note-toc { display: none; } }
.st-note-toc-title { margin: 6px 0 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--st-muted); }
.st-note-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--st-line); }
.st-note-toc li { position: relative; margin: 0; }
.st-note-toc a { display: block; padding: 6px 0 6px 14px; color: var(--st-muted); text-decoration: none; line-height: 1.4; }
.st-note-toc a:hover { color: var(--st-ink); }
.st-note-toc li.is-done a { color: var(--st-text); }
.st-note-toc li.is-done::before { content: ""; position: absolute; left: -2px; top: 0; bottom: 0; width: 2px; background: var(--st-good); }
.st-note-toc li.is-here a { color: var(--st-blue); font-weight: 700; }
.st-note-toc li.is-here::before { content: ""; position: absolute; left: -2px; top: 0; bottom: 0; width: 2px; background: var(--st-blue); }
.st-readbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: transparent; pointer-events: none; }
.st-readbar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--st-blue), #22C55E); border-radius: 0 3px 3px 0; transition: width .1s linear; }

/* The note's text: a comfortable size and rhythm. */
.st-note .st-article { padding: 32px 38px 30px; }
.st-note .st-article > p, .st-note .st-article > ul, .st-note .st-article > ol { font-size: 16.5px; line-height: 1.78; color: var(--st-text); }
.st-note .st-article > p { margin: 0 0 16px; }
.st-note .st-article .mtp-lede { font-size: 18.5px; line-height: 1.7; color: var(--st-ink); margin-bottom: 22px; }
.st-note .st-article h2 { margin: 40px 0 14px; font-size: 22px; line-height: 1.3; letter-spacing: -.01em; color: var(--st-ink); scroll-margin-top: 24px; }
.st-note .st-article h3 { margin: 26px 0 10px; font-size: 18px; color: var(--st-ink); }
.st-note .st-article > ul, .st-note .st-article > ol { padding-left: 22px; margin: 0 0 18px; }
.st-note .st-article > ul li, .st-note .st-article > ol li { margin: 0 0 8px; }
.st-note .st-article img { max-width: 100%; height: auto; border-radius: 10px; }

/* Highlights: the key terms the writer put in bold get a marker stroke. */
.st-note .st-article > p strong, .st-note .st-article > ul:not(.st-mistakes) li strong { color: var(--st-ink); background: linear-gradient(transparent 58%, #FDE68A 58%, #FDE68A 92%, transparent 92%); padding: 0 2px; }

/* Key points: a summary card with ticks. */
.st-keypoints { margin: 24px 0 8px; padding: 20px 24px 10px; background: var(--st-blue-soft); border: 1px solid #C7D7F5; border-radius: 14px; }
.st-note .st-article .st-keypoints h2 { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--st-blue); }
.st-checklist { list-style: none; margin: 0; padding: 0; }
.st-checklist li { position: relative; margin: 0 0 10px; padding-left: 30px; font-size: 16px; line-height: 1.65; color: var(--st-ink); }
.st-checklist li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--st-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Common mistakes: each one its own warning card. */
.st-note .st-article > ul.st-mistakes { list-style: none; padding: 0; display: grid; gap: 8px; }
.st-note .st-article > ul.st-mistakes li { position: relative; margin: 0; padding: 12px 16px 12px 46px; background: var(--st-bad-soft); border: 1px solid #FBD5D5; border-radius: 12px; font-size: 15.5px; line-height: 1.6; }
.st-mistakes li::before { content: ""; position: absolute; left: 14px; top: 14px; width: 20px; height: 20px; border-radius: 50%; background: var(--st-bad) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / 11px no-repeat; }
.st-mistakes li strong { display: block; color: var(--st-ink); margin-bottom: 2px; }

/* Sources: small print at the end. */
.st-note .st-article > p.st-sources { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--st-line); font-size: 13.5px; line-height: 1.65; color: var(--st-muted); }

/* Quick check inside the note. */
.st-qc { margin: 30px 0; padding: 20px 22px; border: 1.5px solid #C7D7F5; border-radius: 14px; background: linear-gradient(180deg, #F5F8FF, var(--sa-card, #fff)); }
.st-qc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 12px; }
.st-qc-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: var(--st-blue); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.st-qc-badge svg { width: 13px; height: 13px; }
.st-qc-note { font-size: 13px; color: var(--st-muted); }
.st-qc-stem { font-size: 16.5px; line-height: 1.65; color: var(--st-ink); font-weight: 600; margin-bottom: 14px; }
.st-qc-stem p { margin: 0 0 8px; }
.st-qc-opts { display: grid; gap: 8px; }
.st-qc-opt { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; padding: 11px 14px; background: var(--sa-card, #fff); border: 1.5px solid #D5DEE9; border-radius: 10px; font: 15.5px/1.5 "Open Sans", sans-serif; color: var(--st-ink); cursor: pointer; transition: border-color .15s, background-color .15s; }
.st-qc-opt:hover:not(:disabled) { border-color: var(--st-blue); background: var(--st-blue-soft); }
.st-qc-opt:disabled { cursor: default; }
.st-qc-key { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #CBD5E1; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--st-muted); }
.st-qc-text p { margin: 0; }
.st-qc-opt.is-right { border-color: var(--st-good); background: var(--st-good-soft); }
.st-qc-opt.is-right .st-qc-key { background: var(--st-good); border-color: var(--st-good); color: #fff; }
.st-qc-opt.is-wrong { border-color: var(--st-bad); background: var(--st-bad-soft); }
.st-qc-opt.is-wrong .st-qc-key { background: var(--st-bad); border-color: var(--st-bad); color: #fff; }
.st-qc-why { margin-top: 14px; padding: 14px 16px; border-radius: 10px; background: var(--sa-card, #fff); border: 1px solid var(--st-line); font-size: 15px; line-height: 1.65; color: var(--st-text); }
.st-qc-why[hidden] { display: none; }
.st-qc-verdict { margin: 0 0 6px; font-weight: 800; }
.st-qc.is-right .st-qc-verdict { color: var(--st-good); }
.st-qc.is-wrong .st-qc-verdict { color: var(--st-bad); }
.st-qc-explain p:last-child { margin-bottom: 0; }

/* The end of the note. */
.st-note-end { text-align: center; padding: 30px 26px 26px; }
.st-note-end-icon { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 50%; background: var(--st-line); color: var(--st-muted); margin-bottom: 10px; transition: background-color .3s, color .3s, transform .3s; }
.st-note-end-icon svg { width: 26px; height: 26px; }
.st-note-end.is-done .st-note-end-icon { background: var(--st-good); color: #fff; }
.st-note-end.is-new .st-note-end-icon { transform: scale(1.12); }
.st-note-end h2 { margin: 0 0 6px; font-size: 21px; color: var(--st-ink); }
.st-note-end .st-actions { justify-content: center; margin: 16px 0 0; }
.st-note-next { display: block; margin: 22px auto 0; max-width: 560px; padding: 14px 18px; text-align: left; border: 1px solid var(--st-line); border-radius: 12px; text-decoration: none; background: var(--st-bg); }
.st-note-next:hover { border-color: var(--st-blue); }
.st-note-next-label { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--st-blue); margin-bottom: 3px; }
.st-note-next strong { display: block; color: var(--st-ink); font-size: 15.5px; line-height: 1.4; }
.st-note-next .st-muted { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.5; }

/* The notes list: what is finished. */
.st-notes-progress { display: flex; align-items: center; gap: 18px; }
.st-notes-progress > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.st-notes-bar { flex: 1 1 200px; max-width: 360px; margin-left: auto; height: 8px; border-radius: 999px; background: var(--st-line); overflow: hidden; }
.st-notes-bar span { display: block; height: 100%; background: var(--st-good); border-radius: 999px; }
.st-notes-topic { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.st-notes-count { flex: none; font-size: 13px; font-weight: 600; color: var(--st-muted); }
.st-notes-list li { display: flex; gap: 12px; align-items: flex-start; }
.st-notes-tick { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; border: 1.5px solid #CBD5E1; display: inline-flex; align-items: center; justify-content: center; }
.st-notes-list li.is-read .st-notes-tick { background: var(--st-good); border-color: var(--st-good); color: #fff; }
.st-notes-tick svg { width: 13px; height: 13px; }
.st-tag-done { background: var(--st-good-soft); color: var(--st-good); }
@media (max-width: 600px) {
	.st-note .st-article { padding: 22px 18px; }
	.st-note .st-article > p, .st-note .st-article > ul, .st-note .st-article > ol { font-size: 16px; }
	.st-note .st-article .mtp-lede { font-size: 17px; }
	.st-note .st-article h2 { font-size: 20px; margin-top: 32px; }
	.st-qc { padding: 16px; }
	.st-notes-progress { flex-direction: column; align-items: stretch; }
	.st-notes-bar { margin-left: 0; max-width: none; }
}
.st-note-meta .st-ic, .st-note-end-icon .st-ic, .st-notes-tick .st-ic, .st-qc-badge .st-ic { display: inline-flex; }
.st-note-meta svg.st-ic { width: 15px; height: 15px; }
.st-note-end-icon svg.st-ic { width: 26px; height: 26px; }
.st-notes-tick svg.st-ic { width: 13px; height: 13px; }

/* Flashcards: no rating looks picked when the answer shows (0.40.0). */
.fc-rate:focus { outline: none; }
