/*
 * Student app shell and Home / Previous tests / Performance.
 * Wide screens: dark sidebar with the exam picker; phones: bottom tabs.
 * Older pages keep their st-* markup; the tokens below bring them in line.
 */
body.st-app {
	--st-blue: #2563eb;
	--st-blue-dark: #1d4ed8;
	--st-blue-soft: #eef3fe;
	--st-ink: #111418;
	--st-text: #374151;
	--st-muted: #6b7280;
	--st-line: #e5e7eb;
	--st-bg: #ffffff;
	--sa-side: #111418;
	--sa-side-2: #1c2027;
	--sa-side-text: #a3abb8;
	--sa-edge: #e5e8ec;
	--sa-tint: #f6f7f9;
	--sa-good: #15803d;
	--sa-mid: #c2410c;
	--sa-low: #b91c1c;
	--sa-card: #fff;
	--sa-chip: #f1f3f6;
	--sa-soft: #eef0f3;
	--sa-blue-ring: #dbe5fb;
	--sa-blue-tint: #e8eefc;
	--sa-inkbox: #111418;
	background: var(--sa-card);
	color: var(--st-ink);
}
.st-app .st-ic { width: 18px; height: 18px; flex-shrink: 0; display: inline-flex; }
.st-app .st-ic svg { width: 100%; height: 100%; }
.st-app .st-card { border: 1px solid var(--sa-edge); border-radius: 14px; box-shadow: none; }
.st-app .st-btn { background: var(--st-blue); border-radius: 9px; }
.st-app .st-btn-quiet { background: var(--sa-card); border-color: var(--sa-edge); color: var(--st-ink) !important; }
.st-app .st-btn-quiet:hover { background: var(--sa-tint); border-color: #cbd2dc; }

.sa { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }

/* Sidebar */
.sa-side { position: sticky; top: 0; height: 100vh; background: var(--sa-side); color: var(--sa-side-text); display: flex; flex-direction: column; padding: 20px 14px 14px; overflow-y: auto; }
.sa-brand { display: flex; align-items: center; gap: 10px; color: #fff !important; text-decoration: none; font-weight: 700; font-size: 17px; padding: 2px 8px 18px; }
.sa-logo { width: 24px; height: 24px; border-radius: 7px; background: var(--st-blue); flex-shrink: 0; }
.sa-exam { position: relative; margin: 0 0 18px; }
.sa-exam summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 9px 12px; border-radius: 10px; background: var(--sa-side-2); border: 1px solid #2a2f37; color: #fff; }
.sa-exam summary::-webkit-details-marker { display: none; }
.sa-exam-label { grid-column: 1; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sa-side-text); }
.sa-exam summary strong { grid-column: 1; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sa-exam summary .st-ic { grid-column: 2; grid-row: 1 / span 2; width: 16px; height: 16px; color: var(--sa-side-text); }
.sa-exam[open] summary .st-ic { transform: rotate(180deg); }
.sa-exam-menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; background: var(--sa-card); color: var(--st-ink); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); padding: 6px; }
.sa-exam-menu form { margin: 0; }
.sa-exam-menu ul { list-style: none; margin: 0; padding: 0; }
.sa-exam-menu button { display: flex; flex-direction: column; align-items: flex-start; width: 100%; border: 0; background: none; padding: 9px 10px; border-radius: 8px; font: inherit; cursor: pointer; text-align: left; }
.sa-exam-menu button:hover, .sa-exam-menu button.is-current { background: var(--st-blue-soft); }
.sa-exam-menu button strong { font-size: 13.5px; }
.sa-exam-menu button span { font-size: 12px; color: var(--st-muted); }
.sa-exam-foot { display: flex; flex-direction: column; border-top: 1px solid var(--sa-edge); margin-top: 6px; padding-top: 6px; }
.sa-exam-foot a { padding: 7px 10px; font-size: 13px; font-weight: 600; color: var(--st-blue); text-decoration: none; border-radius: 8px; }
.sa-exam-foot a:hover { background: var(--sa-tint); }
.sa-nav { flex: 1; display: flex; flex-direction: column; }
.sa-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sa-nav .sa-nav-low { margin-top: auto; padding-top: 16px; }
.sa-nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 9px; color: var(--sa-side-text); text-decoration: none; font-size: 14px; font-weight: 500; transition: background-color .12s, color .12s; }
.sa-nav a .st-ic { width: 17px; height: 17px; }
.sa-nav a:hover { background: var(--sa-side-2); color: #fff; }
.sa-nav a.is-current { background: #252a33; color: #fff; font-weight: 600; }
.sa-count { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #2a2f37; color: #d7dce3; font-size: 11px; font-weight: 700; text-align: center; }
.sa-user { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 14px 6px 2px; border-top: 1px solid #23272e; }
.sa-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--st-blue); color: #fff; font-size: 12.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sa-avatar.is-big { width: 46px; height: 46px; font-size: 16px; background: var(--st-blue-soft); color: var(--st-blue); }
.sa-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sa-who strong { color: #fff; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sa-who span { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sa-signout { color: var(--sa-side-text); padding: 6px; border-radius: 8px; display: inline-flex; }
.sa-signout:hover { color: #fff; background: var(--sa-side-2); }

/* Main */
.sa-main { min-width: 0; padding: 36px 44px 60px; width: 100%; box-sizing: border-box; }
/* Free-trial bar across the top of the page (full bleed over the page padding). */
.sa-trialbar { display: flex; align-items: center; gap: 14px; margin: -36px -44px 28px; padding: 12px 44px; background: var(--st-blue-soft, #f3f6fe); border-bottom: 1px solid var(--sa-blue-ring, #dbe5fb); color: var(--st-ink); }
.sa-trialbar-ic { flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--st-blue); }
.sa-trialbar-text { flex: 1; min-width: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 14px; }
.sa-trialbar-text strong { font-size: 14.5px; }
.sa-trialbar-text span { color: var(--st-text); }
.sa-trialbar-meter { flex: 0 0 140px; height: 6px; border-radius: 3px; background: #fff; overflow: hidden; }
.sa-trialbar-meter i { display: block; height: 100%; border-radius: 3px; background: var(--st-blue); }
.sa-trialbar-btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 9px; background: var(--st-blue); color: #fff !important; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.sa-trialbar-btn:hover { background: var(--st-blue-dark); }
.sa-trialbar-btn .st-ic { width: 16px; height: 16px; }
.sa-trialbar.is-ending { background: #fff7ed; border-bottom-color: #fed7aa; }
.sa-trialbar.is-ending .sa-trialbar-ic { color: #c2410c; }
.sa-trialbar.is-ending .sa-trialbar-meter i { background: #ea580c; }
.sa-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.sa-head h1 { font-size: 30px; letter-spacing: -.02em; margin: 0; line-height: 1.2; }
.sa-sub { margin: 6px 0 0; color: var(--st-muted); font-size: 15px; }
.sa-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sa-tabs { display: none; }
.sa-main > .st-notice { margin-bottom: 18px; }
.sa-main .st-free { margin-bottom: 18px; }

/* Building blocks */
.sa-card { background: var(--sa-card); border: 1px solid var(--sa-edge); border-radius: 16px; padding: 22px 24px; }
.sa-card h2 { font-size: 16px; margin: 0; }
.sa-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.sa-card-head a { font-size: 13px; font-weight: 600; text-decoration: none; color: var(--st-blue); }
.sa-flush { padding: 0; overflow: hidden; }
.sa-muted { color: var(--st-muted); font-size: 13.5px; margin: 0; }
.sa-small { color: var(--st-muted); font-size: 12px; margin: 10px 0 0; }
.sa-eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--st-muted); margin: 0 0 8px; }
.sa-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--sa-edge); background: var(--sa-card); color: var(--st-ink) !important; font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.sa-btn:hover { background: var(--sa-tint); }
.sa-btn.is-blue { background: var(--st-blue); border-color: var(--st-blue); color: #fff !important; }
.sa-btn.is-blue:hover { background: var(--st-blue-dark); }
.sa-btn.is-dark { background: var(--sa-inkbox); border-color: var(--sa-inkbox); color: #fff !important; }
.sa-btn.is-wide { width: 100%; height: 48px; font-size: 15px; }
.sa-empty { text-align: center; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.sa-empty .sa-muted { max-width: 480px; }
.sa-streak { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; background: #fff7ed; border: 1px solid #fed7aa; color: #c2410c; font-size: 13px; font-weight: 700; }
.sa-streak::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #f97316; }
.sa-streak.is-risk { background: var(--sa-card); border-style: dashed; }
.sa-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; height: 30px; border-radius: 8px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sa-pill.is-good { background: #dcfce7; color: var(--sa-good); }
.sa-pill.is-mid { background: #ffedd5; color: var(--sa-mid); }
.sa-pill.is-low { background: #fee2e2; color: var(--sa-low); }
b.is-good, .is-good > b { color: var(--sa-good); }
b.is-mid { color: var(--sa-mid); }
b.is-low { color: var(--sa-low); }
.sa-meter { position: relative; display: block; height: 6px; border-radius: 3px; background: var(--sa-soft); }
.sa-meter > span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; }
.sa-meter.is-good > span { background: var(--sa-good); }
.sa-meter.is-mid > span { background: #ea580c; }
.sa-meter.is-low > span { background: var(--sa-low); }
.sa-meter > i { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--st-ink); border-radius: 1px; }
.sa-delta { font-weight: 700; font-size: 12.5px; }
.sa-delta.is-up { color: var(--sa-good); }
.sa-delta.is-down { color: var(--sa-mid); }

/* Home */
.sa-hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; margin-bottom: 20px; }
.sa-ready { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: center; padding: 28px; }
.sa-ready h2 { font-size: 22px; line-height: 1.25; letter-spacing: -.01em; margin-bottom: 8px; }
.sa-ready-text .sa-muted { margin-bottom: 18px; font-size: 14px; }
.sa-ring { position: relative; width: 190px; height: 190px; }
.sa-ring.is-small { width: 110px; height: 110px; }
.sa-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sa-ring circle { fill: none; stroke-width: 11; }
.sa-ring-bg { stroke: var(--sa-blue-tint); }
.sa-ring-fg { stroke: var(--st-blue); stroke-linecap: round; }
.sa-ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.sa-ring-text b { font-size: 46px; letter-spacing: -.03em; line-height: 1; }
.sa-ring.is-small .sa-ring-text b { font-size: 26px; }
.sa-ring-text span { font-size: 12.5px; color: var(--st-muted); margin-top: 6px; }
.sa-wbars { position: relative; display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 18px; }
.sa-ready .sa-wbars { height: 70px; }
.sa-wbar { position: relative; flex: 1; height: var(--h); min-height: 3px; background: var(--sa-blue-ring); border-radius: 4px 4px 2px 2px; }
.sa-wbar.is-pass { background: #93b4f7; }
.sa-wbar.is-now { background: var(--st-blue); }
.sa-wbar.is-empty { background: repeating-linear-gradient(45deg, var(--sa-chip) 0 4px, var(--sa-card) 4px 8px); height: 100%; opacity: .6; }
.sa-wbar em { position: absolute; top: 6px; left: 0; right: 0; text-align: center; font-size: 11px; font-style: normal; font-weight: 700; color: #1e3a8a; }
.sa-wbar.is-now em { color: #fff; }
.sa-passline { position: absolute; left: 0; right: 0; bottom: var(--line); border-top: 1.5px dashed #9aa3ae; pointer-events: none; }
.sa-axis { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--st-muted); margin-top: 8px; }
.sa-block { background: var(--sa-inkbox); border-color: var(--sa-inkbox); color: #fff; padding: 28px; display: flex; flex-direction: column; }
.sa-block .sa-eyebrow { color: #8fb0ff; }
.sa-block h2 { font-size: 30px; letter-spacing: -.02em; margin: 2px 0 8px; }
.sa-block-meta { margin: 0 0 4px; color: #c3cad5; font-size: 14px; }
.sa-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.sa-chips span { padding: 5px 11px; border-radius: 999px; background: #262b33; font-size: 12.5px; font-weight: 600; }
.sa-block form { margin-top: auto; }
.sa-block-alt { text-align: center; margin: 12px 0 0; font-size: 13px; color: #c3cad5; }
.sa-block-alt a { color: #fff; font-weight: 700; }
.sa-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sa-fix { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.sa-fix a { display: flex; justify-content: space-between; text-decoration: none; color: var(--st-ink); font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.sa-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sa-recent a { display: flex; align-items: center; gap: 12px; padding: 8px; margin: 0 -8px; border-radius: 10px; text-decoration: none; color: var(--st-ink); }
.sa-recent a:hover { background: var(--sa-tint); }
.sa-recent strong { display: block; font-size: 14px; }
.sa-recent span span { font-size: 12.5px; color: var(--st-muted); }
.sa-days { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.sa-days li { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sa-days li span { width: 100%; aspect-ratio: 1; max-width: 40px; border-radius: 9px; background: var(--sa-chip); }
.sa-days li.is-done span { background: var(--st-blue); }
.sa-days li.is-today:not(.is-done) span { background: var(--sa-card); border: 2px dashed var(--st-blue); }
.sa-days em { font-style: normal; font-size: 11.5px; color: var(--st-muted); font-weight: 600; }
.sa-days li.is-today em { color: var(--st-blue); }
.sa-resume { display: flex; align-items: center; gap: 16px; background: var(--st-blue-soft); border-color: var(--sa-blue-ring); padding: 16px 20px; margin-bottom: 20px; }
.sa-resume > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sa-resume strong { font-size: 15px; }
.sa-resume span { font-size: 13px; color: var(--st-muted); }
.sa-mini-ring { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; background: conic-gradient(var(--st-blue) calc(var(--p) * 1%), var(--sa-blue-ring) 0); -webkit-mask: radial-gradient(circle, transparent 11px, #000 12px); mask: radial-gradient(circle, transparent 11px, #000 12px); }

/* Previous tests */
.sa-filters { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.sa-chiprow { display: flex; gap: 8px; flex-wrap: wrap; }
.sa-chip { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--sa-edge); background: var(--sa-card); font: inherit; font-size: 13px; font-weight: 600; color: var(--st-text); cursor: pointer; }
.sa-chip[aria-pressed="true"] { background: var(--sa-inkbox); border-color: var(--sa-inkbox); color: #fff; }
.sa-search { height: 38px; width: 260px; max-width: 100%; border: 1px solid var(--sa-edge); border-radius: 10px; padding: 0 12px; font: inherit; font-size: 14px; }
.sa-search:focus { outline: 0; border-color: var(--st-blue); box-shadow: 0 0 0 3px var(--sa-blue-ring); }
.sa-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sa-table th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--st-muted); padding: 14px 16px; background: var(--sa-tint); border-bottom: 1px solid var(--sa-edge); }
.sa-table td { padding: 12px 16px; border-bottom: 1px solid var(--sa-soft); vertical-align: middle; }
.sa-table tr:last-child td { border-bottom: 0; }
.sa-test-name { display: flex; flex-direction: column; text-decoration: none; color: var(--st-ink); }
.sa-test-name span { font-size: 12.5px; color: var(--st-muted); }
.sa-mode { font-size: 13px; font-weight: 600; color: var(--st-text); }
.sa-mode.is-tutor { color: var(--st-blue); }
.sa-mode.is-exam-sim { color: var(--st-ink); font-weight: 700; }
.sa-score { min-width: 170px; }
.sa-score > div { display: flex; align-items: center; gap: 12px; }
.sa-score .sa-meter { flex: 1; }
.sa-score .sa-pill { min-width: 0; height: auto; background: none; padding: 0; }
.sa-links { white-space: nowrap; text-align: right; }
.sa-links a { font-weight: 600; text-decoration: none; margin-left: 14px; font-size: 13.5px; }
.sa-none { padding: 16px; color: var(--st-muted); margin: 0; }

/* Performance */
.sa-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--sa-chip); }
.sa-seg a { padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--st-muted); text-decoration: none; }
.sa-seg a.is-on { background: var(--sa-card); color: var(--st-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.sa-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.sa-kpi { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; }
.sa-kpi > span { font-size: 13px; color: var(--st-muted); }
.sa-kpi > b { font-size: 30px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sa-kpi p { margin: 2px 0 0; font-size: 12.5px; }
.sa-two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; margin-bottom: 20px; }
.sa-legend-line::before { content: ""; display: inline-block; width: 18px; border-top: 1.5px dashed #9aa3ae; vertical-align: middle; margin-right: 6px; }
.sa-legend-mark::before { content: ""; display: inline-block; width: 2px; height: 12px; background: var(--st-ink); vertical-align: middle; margin-right: 6px; }
.sa-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sa-rows li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, 1fr) 44px; gap: 14px; align-items: center; font-size: 14px; }
.sa-rows b, .sa-subjects b { text-align: right; font-size: 13.5px; }
.sa-subjects { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 48px; }
.sa-subjects li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(80px, 1fr) 44px auto; gap: 14px; align-items: center; font-size: 14px; }
.sa-subject-name { font-weight: 600; display: flex; flex-direction: column; }
.sa-subject-name em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--st-muted); }
.sa-subjects a { font-size: 13px; font-weight: 600; text-decoration: none; }

/* More (phones) */
.sa-more-me { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--st-ink); margin-bottom: 16px; }
.sa-more-me strong { display: block; font-size: 16px; }
.sa-more-me span span { font-size: 13px; color: var(--st-muted); }
.sa-more-list { list-style: none; margin: 0; padding: 4px 16px; }
.sa-more-list li + li { border-top: 1px solid var(--sa-soft); }
.sa-more-list a { display: flex; align-items: center; gap: 14px; padding: 14px 0; text-decoration: none; color: var(--st-ink); font-size: 15px; }
.sa-more-list a span { flex: 1; }
.sa-more-list a .st-ic:last-child { color: var(--st-muted); width: 16px; }

@media (max-width: 1180px) {
	.sa-main { padding: 28px 28px 60px; }
	.sa-trialbar { margin: -28px -28px 24px; padding: 12px 28px; }
	.sa-trialbar-meter { display: none; }
	.sa-hero, .sa-two { grid-template-columns: 1fr; }
	.sa-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sa-subjects { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
	.sa { grid-template-columns: 1fr; }
	.sa-side { display: none; }
	.sa-main { padding: 20px 18px calc(96px + env(safe-area-inset-bottom)); }
	.sa-trialbar { margin: -20px -18px 20px; padding: 10px 18px; gap: 10px; }
	.sa-trialbar-ic { display: none; }
	.sa-trialbar-text { font-size: 13px; }
	.sa-trialbar-text span { display: none; }
	.sa-trialbar-btn { height: 34px; padding: 0 12px; font-size: 13px; }
	.sa-head h1 { font-size: 25px; }
	.sa-tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--sa-card); border-top: 1px solid var(--sa-edge); padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); }
	.sa-tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; text-decoration: none; color: var(--st-muted); font-size: 11px; font-weight: 600; }
	.sa-tabs a .st-ic { width: 20px; height: 20px; }
	.sa-tabs a.is-current { color: var(--st-blue); }
	.sa-three { grid-template-columns: 1fr; }
	.sa-ready { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 18px; padding: 22px; }
	.sa-ready .sa-wbars, .sa-ready .sa-axis { width: 100%; }
	.sa-ring { width: 150px; height: 150px; }
	.sa-ring-text b { font-size: 36px; }
	.sa-table thead { display: none; }
	.sa-table, .sa-table tbody, .sa-table tr, .sa-table td { display: block; width: 100%; }
	.sa-table tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px; border-bottom: 1px solid var(--sa-soft); }
	.sa-table td { padding: 0; border: 0; }
	.sa-tests td:nth-child(2), .sa-tests td:nth-child(3), .sa-tests td:nth-child(4), .sa-tests td:nth-child(6) { display: none; }
	.sa-tests td.sa-score { grid-column: 2; grid-row: 1; min-width: 0; }
	.sa-tests td.sa-score .sa-meter { display: none; }
	.sa-tests td.sa-links { grid-column: 1 / -1; text-align: left; }
	.sa-tests td.sa-links a { margin: 0 14px 0 0; }
	.sa-search { width: 100%; }
	.sa-kpi > b { font-size: 24px; }
	.sa-subjects li { grid-template-columns: minmax(0, 1fr) 44px; }
	.sa-subjects li .sa-meter { grid-column: 1 / -1; grid-row: 2; }
	.sa-subjects li a { grid-column: 1 / -1; }
}
.st-app .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Flashcards: library (folders + deck grid), one deck, studying. */
.fc-lib { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; align-items: start; }
.fc-folders { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 20px; }
.fc-folders a { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: 9px; color: var(--st-text); text-decoration: none; font-size: 14px; font-weight: 500; }
.fc-folders a b { font-size: 12px; color: var(--st-muted); font-weight: 600; }
.fc-folders a:hover { background: var(--sa-tint); }
.fc-folders a.is-on { background: var(--sa-chip); color: var(--st-ink); font-weight: 700; }
.fc-new { margin-top: 10px; }
.fc-new summary { list-style: none; cursor: pointer; padding: 8px 12px; color: var(--st-blue); font-weight: 600; font-size: 14px; }
.fc-new summary::-webkit-details-marker { display: none; }
.fc-new form { display: flex; flex-direction: column; gap: 8px; padding: 4px 4px 0; }
.fc-new input, .fc-more input { height: 38px; border: 1px solid var(--sa-edge); border-radius: 9px; padding: 0 10px; font: inherit; font-size: 14px; }
.fc-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.fc-sort { font-size: 13px; color: var(--st-muted); }
.fc-sort select { border: 0; font: inherit; font-weight: 700; color: var(--st-ink); background: none; cursor: pointer; }
.fc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.fc-deck { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; border: 1px solid var(--sa-edge); border-radius: 14px; text-decoration: none; color: var(--st-ink); background: var(--sa-card); transition: border-color .12s, box-shadow .12s; }
.fc-deck:hover { border-color: #c7d4f5; box-shadow: 0 6px 20px rgba(17, 20, 24, .06); }
.fc-deck-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.fc-deck-head strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fc-deck-head em { flex-shrink: 0; font-style: normal; font-size: 12px; font-weight: 700; color: var(--st-blue); background: var(--st-blue-soft); padding: 3px 9px; border-radius: 999px; }
.fc-deck-bar { height: 4px; border-radius: 2px; background: var(--sa-soft); }
.fc-deck-bar span { display: block; height: 100%; border-radius: 2px; background: var(--st-blue); }
.fc-deck-meta { font-size: 13px; color: var(--st-muted); }
.fc-crumbs { font-size: 13.5px; color: var(--st-muted); margin: -12px 0 16px; }
.fc-crumbs a { color: var(--st-blue); text-decoration: none; font-weight: 600; }
.fc-crumbs strong { color: var(--st-ink); }
.fc-deckhead { display: flex; align-items: center; gap: 18px; margin: -4px 0 20px; }
.fc-tabs { display: flex; align-items: center; gap: 4px 18px; border-bottom: 1px solid var(--sa-edge); margin-bottom: 16px; flex-wrap: wrap; }
.fc-tabs button { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--st-muted); padding: 10px 0; cursor: pointer; box-shadow: inset 0 -2px 0 transparent; }
.fc-tabs button b { font-weight: 500; color: var(--st-muted); font-size: 12.5px; }
.fc-tabs button.is-on { color: var(--st-ink); box-shadow: inset 0 -2px 0 var(--st-ink); }
.fc-tabs .sa-search { margin-left: auto; height: 34px; margin-bottom: 6px; }
.fc-table td { font-size: 13.5px; }
.fc-front-cell { font-weight: 600; max-width: 320px; }
.fc-back-cell { color: var(--st-text); max-width: 280px; }
.fc-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.fc-status.is-due { background: var(--sa-blue-tint); color: var(--st-blue); }
.fc-status.is-learning { background: #fef3c7; color: #b45309; }
.fc-status.is-mastered { background: #dcfce7; color: var(--sa-good); }
.fc-status.is-new { background: var(--sa-chip); color: var(--st-text); }
.fc-next { white-space: nowrap; color: var(--st-text); }
.fc-tools-cell { display: flex; gap: 12px; justify-content: flex-end; align-items: center; }
.fc-tools-cell form { margin: 0; }
.fc-linkbtn { border: 0; background: none; padding: 0; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--sa-low); cursor: pointer; }
.fc-more { position: relative; }
.fc-more summary { list-style: none; }
.fc-more summary::-webkit-details-marker { display: none; }
.fc-more > div { position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; width: 280px; background: var(--sa-card); border: 1px solid var(--sa-edge); border-radius: 12px; box-shadow: 0 16px 40px rgba(17, 20, 24, .12); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.fc-more form { display: flex; gap: 8px; margin: 0; }
.fc-more form input { flex: 1; min-width: 0; }
.fc-danger { color: var(--sa-low) !important; width: 100%; }
.fc-form { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.fc-form[hidden] { display: none; }
.fc-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--st-text); }
.fc-form textarea { border: 1px solid var(--sa-edge); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14.5px; resize: vertical; }
.fc-form textarea:focus, .fc-new input:focus { outline: 0; border-color: var(--st-blue); box-shadow: 0 0 0 3px var(--sa-blue-ring); }
.fc-form-actions { display: flex; gap: 10px; }
.fc-top { display: flex; align-items: center; gap: 12px 16px; max-width: 680px; margin: -8px auto 18px; }
.fc-top .fc-end { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; font-size: 13.5px; }
.fc-top .fc-edit:not([hidden]) + .fc-end { margin-left: 0; }
.fc-top .fc-end svg { width: 15px; height: 15px; }
.fc-top .fc-crumbs { margin: 0; }
.fc-edit { margin-left: auto; font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--st-muted); }
.fc-study { max-width: 680px; margin: 0 auto; }
.fc-progress { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--st-muted); margin-bottom: 14px; }
.fc-bar { flex: 1; height: 4px; border-radius: 2px; background: var(--sa-soft); }
.fc-bar span { display: block; height: 100%; border-radius: 2px; background: var(--st-blue); transition: width .2s; }
.fc-card { border: 1px solid var(--sa-edge); border-radius: 18px; background: var(--sa-card); box-shadow: 0 16px 40px rgba(17, 20, 24, .06); overflow: hidden; display: flex; flex-direction: column; min-height: 380px; }
.fc-side { padding: 28px 32px; }
.fc-side.is-back { border-top: 1px dashed var(--sa-edge); background: var(--sa-tint); flex: 1; }
.fc-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--st-muted); margin: 0 0 10px; }
.fc-label.is-blue { color: var(--st-blue); }
.fc-front { font-size: 21px; font-weight: 700; line-height: 1.4; letter-spacing: -.01em; }
.fc-front ol { font-size: 16px; font-weight: 500; margin: 14px 0 0; padding-left: 22px; }
.fc-back { font-size: 17px; line-height: 1.6; color: var(--st-text); }
.fc-back p { margin: 0 0 10px; }
.fc-front img, .fc-back img { max-width: 100%; height: auto; border-radius: 8px; }
.fc-foot { margin-top: auto; padding: 14px 32px; font-size: 13px; }
.fc-foot a { font-weight: 600; text-decoration: none; }
.fc-foot span { color: var(--st-muted); }
.fc-show { width: 100%; height: 50px; margin-top: 16px; font-size: 15px; }
.fc-show kbd, .fc-rate-btn span { font-family: inherit; }
.fc-show kbd { font-size: 11px; opacity: .8; border: 1px solid rgba(255, 255, 255, .5); border-radius: 4px; padding: 1px 5px; }
.fc-rate { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.fc-rate-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; border-radius: 12px; border: 1px solid var(--sa-edge); background: var(--sa-card); font: inherit; cursor: pointer; }
.fc-rate-btn b { font-size: 15px; }
.fc-rate-btn span { font-size: 11.5px; color: var(--st-muted); }
.fc-rate-btn.is-again b { color: var(--sa-low); }
.fc-rate-btn.is-hard b { color: #c2410c; }
.fc-rate-btn.is-good b { color: var(--sa-good); }
.fc-rate-btn.is-easy b { color: var(--st-blue); }
.fc-rate-btn:hover { box-shadow: 0 4px 14px rgba(17, 20, 24, .08); }
.fc-rate-btn.is-again:hover { border-color: var(--sa-low); }
.fc-rate-btn.is-hard:hover { border-color: #c2410c; }
.fc-rate-btn.is-good:hover { border-color: var(--sa-good); }
.fc-rate-btn.is-easy:hover { border-color: var(--st-blue); }
.fc-rate-btn:focus-visible { outline: 2px solid var(--st-blue); outline-offset: 2px; }
.fc-done { margin-top: 20px; }
.fc-study .st-fb { margin-top: 18px; }
@media (max-width: 900px) {
	.fc-lib { grid-template-columns: 1fr; gap: 14px; }
	.fc-folders { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
	.fc-folders .sa-eyebrow { display: none; }
	.fc-folders a { flex-shrink: 0; border: 1px solid var(--sa-edge); border-radius: 999px; padding: 6px 14px; gap: 8px; }
	.fc-folders a.is-on { background: var(--sa-inkbox); color: #fff; border-color: var(--sa-inkbox); }
	.fc-folders a.is-on b { color: #cfd4da; }
	.fc-new { margin: 0; flex-shrink: 0; }
	.fc-new[open] { flex-basis: 100%; }
	.fc-grid { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--sa-edge); border-radius: 14px; overflow: hidden; }
	.fc-deck { border: 0; border-radius: 0; border-bottom: 1px solid var(--sa-soft); padding: 14px 16px; gap: 6px; }
	.fc-deck-bar { display: none; }
	.fc-tabs { border: 0; gap: 6px; }
	.fc-tabs button { border: 1px solid var(--sa-edge); border-radius: 999px; padding: 6px 12px; box-shadow: none; }
	.fc-tabs button.is-on { background: var(--sa-inkbox); color: #fff; }
	.fc-tabs button.is-on b { color: #cfd4da; }
	.fc-tabs .sa-search { margin: 6px 0 0; width: 100%; }
	.fc-table td.fc-back-cell, .fc-table td:nth-child(3) { display: none; }
	.fc-table tr { grid-template-columns: 1fr auto; }
	.fc-table td:nth-child(4) { grid-column: 2; grid-row: 1; }
	.fc-table td.fc-next { font-size: 12px; color: var(--st-muted); }
	.fc-side { padding: 22px; }
	.fc-front { font-size: 19px; }
	.fc-rate { gap: 8px; }
	.fc-top { flex-wrap: wrap; gap: 10px; }
}
.sa-tabs-seg { margin-right: 6px; }
.sa-kpis.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sa-help { background: var(--st-blue-soft); border-color: var(--sa-blue-ring); }
.sa-help h2 { color: #1e3a8a; margin-bottom: 14px; }
.sa-help-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; margin-bottom: 12px; }
.sa-help-pair div { background: var(--sa-card); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.sa-help-pair b { font-size: 28px; letter-spacing: -.02em; }
.sa-help-pair span { font-size: 12.5px; color: var(--st-text); }
.sa-help p { margin: 0; font-size: 14px; color: #1e3a8a; }
@media (max-width: 900px) { .sa-kpis.is-three { grid-template-columns: 1fr 1fr; } }
.fc-table a { text-decoration: none; font-weight: 600; }

/* Notebook */
a.sa-chip { display: inline-flex; align-items: center; text-decoration: none; }
.sa-chip.is-on { background: var(--sa-inkbox); border-color: var(--sa-inkbox); color: #fff; }
.nb { display: grid; grid-template-columns: 340px minmax(0, 1fr); border: 1px solid var(--sa-edge); border-radius: 16px; min-height: 620px; overflow: hidden; background: var(--sa-card); }
.nb-side { border-right: 1px solid var(--sa-edge); padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.nb-search input { width: 100%; height: 40px; border: 0; border-radius: 10px; background: var(--sa-chip); padding: 0 12px; font: inherit; font-size: 14px; }
.nb-search input:focus { outline: 0; box-shadow: 0 0 0 3px var(--sa-blue-ring); background: var(--sa-card); }
.nb-tags { gap: 6px; }
.nb-tags .sa-chip { height: 30px; padding: 0 12px; font-size: 12.5px; }
.nb-list { list-style: none; margin: 0 -8px; padding: 0; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.nb-list a { display: flex; flex-direction: column; gap: 3px; padding: 12px; border-radius: 12px; text-decoration: none; color: var(--st-ink); }
.nb-list a:hover { background: var(--sa-tint); }
.nb-list li.is-on a { background: var(--st-blue-soft); }
.nb-item-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.nb-item-head strong { font-size: 14.5px; }
.nb-item-head em { font-style: normal; font-size: 11.5px; color: var(--st-muted); flex-shrink: 0; }
.nb-excerpt { font-size: 13px; color: var(--st-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nb-from { font-size: 12px; font-weight: 700; color: var(--st-blue); }
.nb-empty { padding: 4px 4px 12px; }
.nb-view { padding: 30px 40px; display: flex; flex-direction: column; min-width: 0; }
.nb-back { display: none; }
.nb-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nb-pill { padding: 4px 12px; border-radius: 999px; background: var(--sa-blue-tint); color: var(--st-blue); font-size: 13px; font-weight: 700; text-decoration: none; }
.nb-pill + .nb-pill { background: var(--sa-chip); color: var(--st-text); }
.nb-meta .sa-muted { margin-left: auto; font-size: 13px; }
.nb-menu { margin-left: 4px; }
.nb-menu > div { width: 200px; }
.nb-menu .sa-btn { width: 100%; }
.nb-menu form { flex-direction: column; }
.nb-title { font-size: 30px; letter-spacing: -.02em; line-height: 1.2; margin: 22px 0 18px; }
.nb-body { font-size: 17px; line-height: 1.7; color: var(--st-text); max-width: 720px; }
.nb-body p { margin: 0 0 14px; }
.nb-body strong { color: var(--st-ink); }
.nb-body ul { margin: 0 0 14px; padding-left: 22px; }
.nb-body li { margin-bottom: 6px; }
.nb-body li::marker { color: var(--st-blue); }
.nb-foot { margin-top: auto; padding-top: 30px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.nb-source p { margin: 0; }
.nb-source p:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13.5px; margin-bottom: 8px; }
.nb-source a { margin-left: auto; font-weight: 600; text-decoration: none; }
.nb-source .st-t-verdict { padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.nb-source .st-t-verdict.is-ok { background: #dcfce7; color: #166534; }
.nb-source .st-t-verdict.is-bad { background: #fee2e2; color: #991b1b; }
.nb-source .st-t-verdict.is-skip { background: #fef3c7; color: #92400e; }
.nb-cards p { margin: 0; font-size: 13px; }
.nb-cards > b { display: block; font-size: 26px; margin: 2px 0 4px; }
.nb-cards > a { font-weight: 600; text-decoration: none; font-size: 13.5px; }
.nb-make { margin-top: 10px; }
.nb-make summary { cursor: pointer; color: var(--st-blue); font-weight: 600; font-size: 13.5px; list-style: none; }
.nb-make summary::-webkit-details-marker { display: none; }
.nb-make form, .nb-form { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.nb-make label, .nb-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--st-text); }
.nb-make textarea, .nb-form textarea, .nb-form input { border: 1px solid var(--sa-edge); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14.5px; resize: vertical; }
.nb-form input { height: 42px; padding: 0 12px; }
.nb-form textarea:focus, .nb-form input:focus, .nb-make textarea:focus { outline: 0; border-color: var(--st-blue); box-shadow: 0 0 0 3px var(--sa-blue-ring); }
.nb-view .sa-empty { margin: auto; }
.st-t-notewrap { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 1180px) { .nb { grid-template-columns: 280px minmax(0, 1fr); } .nb-view { padding: 24px; } .nb-foot { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
	.nb { grid-template-columns: 1fr; border: 0; border-radius: 0; min-height: 0; overflow: visible; }
	.nb-side { border: 0; padding: 0; }
	.nb-view { display: none; padding: 0; }
	.nb.is-open .nb-side { display: none; }
	.nb.is-open .nb-view { display: flex; }
	.nb-back { display: inline-block; margin-bottom: 14px; font-weight: 600; text-decoration: none; font-size: 14px; }
	.nb-list { margin: 0; gap: 10px; }
	.nb-list a { border: 1px solid var(--sa-edge); }
	.nb-list .nb-from { display: none; }
	.nb-title { font-size: 24px; }
	.nb-body { font-size: 16px; }
}
.sa-two.is-even { grid-template-columns: 1fr 1fr; }
.sa-notes-read { list-style: none; margin: 0; padding: 0; }
.sa-notes-read li { display: grid; grid-template-columns: minmax(0, 1fr) auto 80px; gap: 14px; padding: 12px 0; border-top: 1px solid var(--sa-soft); font-size: 13px; color: var(--st-muted); align-items: center; }
.sa-notes-read li:first-child { border-top: 0; }
.sa-notes-read a { font-weight: 700; font-size: 14px; color: var(--st-ink); text-decoration: none; }
.sa-notes-read li span:last-child { text-align: right; }
@media (max-width: 1180px) { .sa-two.is-even { grid-template-columns: 1fr; } }
.nb-keep { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.nb-keep legend { font-size: 13px; font-weight: 600; color: var(--st-text); margin-bottom: 6px; padding: 0; }
.nb-keep label { flex-direction: row !important; align-items: center; gap: 6px !important; font-weight: 500 !important; }

/* ---- Plan & billing ---------------------------------------------------- */
.sa-section-title { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--st-muted); margin: 28px 0 12px; }
.sa-plan-now { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.sa-plan-now h2 { font-size: 22px; margin-bottom: 4px; }
.sa-plan-fit { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--sa-tint); font-size: 14px; font-weight: 600; color: var(--st-text); }
.sa-plan-fit.is-warn { background: #fff7ed; color: #9a3412; }
.sa-plan-fit.is-good { background: #f0fdf4; color: #166534; }
.sa-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.sa-plan { position: relative; display: flex; flex-direction: column; gap: 10px; }
.sa-plan.is-featured { border-color: var(--st-blue); box-shadow: 0 0 0 1px var(--st-blue); }
.sa-plan h3 { font-size: 17px; margin: 0; }
.sa-plan-badge { align-self: flex-start; font-size: 11.5px; font-weight: 700; color: var(--st-blue); background: var(--st-blue-soft); padding: 4px 10px; border-radius: 999px; }
.sa-plan-price { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.sa-pay { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.sa-pay[hidden] { display: none; }
.sa-paypal { min-height: 44px; }
.sa-plan-price b { font-size: 30px; letter-spacing: -.02em; }
.sa-plan-price span { color: var(--st-muted); font-size: 14px; }
.sa-plan-desc { margin: 0; font-size: 14px; color: var(--st-text); }
.sa-ticks { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; align-content: start; gap: 8px; font-size: 14px; color: var(--st-text); flex: 1; }
.sa-ticks li { display: flex; gap: 8px; align-items: flex-start; }
.sa-ticks .st-ic { width: 16px; height: 16px; color: var(--sa-good); margin-top: 2px; }
.sa-plan-note { margin: 14px 0 28px; }
/* Plan & billing: tiers (same features, several lengths) as cards; one tier = one wide card, two = a pair, more = a grid. */
.sa-plans-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; margin: 30px 0 18px; }
.sa-plans-head .sa-section-title { margin: 0; }
.sa-plans-head .sa-muted { margin: 0; font-size: 13.5px; }
.sa-plans { gap: 22px 18px; }
.sa-plans.is-many { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.sa-plans.is-many:has(> :nth-child(3):last-child) { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); max-width: 1400px; }
.sa-plans.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 980px; }
.sa-plans.is-one { grid-template-columns: minmax(0, 1fr); max-width: 980px; }
.sa-tier { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "side" "ticks"; align-content: start; gap: 16px; padding: 24px; }
.sa-tier-main { display: contents; }
.sa-tier h3 { grid-area: title; font-size: 19px; letter-spacing: -.01em; }
.sa-tier .sa-ticks { grid-area: ticks; margin: 0; padding-top: 16px; border-top: 1px solid var(--sa-edge); }
.sa-tier-side { grid-area: side; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sa-tier .sa-plan-badge { position: absolute; top: -12px; left: 20px; background: var(--st-blue); color: #fff; box-shadow: 0 0 0 3px var(--sa-card, #fff); }
.sa-tier:not(.is-featured) .sa-plan-badge { background: var(--sa-card, #fff); color: var(--st-blue); box-shadow: 0 0 0 1px var(--sa-blue-ring, #dbe5fb); }
.sa-plans.is-one .sa-tier { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); grid-template-rows: auto 1fr; grid-template-areas: "title side" "ticks side"; column-gap: 36px; padding: 28px; }
.sa-plans.is-one .sa-tier .sa-ticks { align-self: start; }
.sa-plans.is-one .sa-tier .sa-ticks { border-top: 0; padding-top: 0; }
.sa-ticks li.is-off { color: var(--st-muted); }
.sa-ticks li.is-off > span:last-child { text-decoration: line-through; text-decoration-color: var(--sa-ring, #cfd4da); }
.sa-tick-off { flex-shrink: 0; width: 16px; height: 16px; margin-top: 2px; position: relative; }
.sa-tick-off::before { content: ""; position: absolute; left: 3px; right: 3px; top: 7px; height: 2px; border-radius: 1px; background: var(--sa-ring, #cfd4da); }
.sa-durations { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.sa-durations legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--st-muted); }
.sa-dur { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 1px solid var(--sa-edge); border-radius: 10px; cursor: pointer; background: var(--sa-card, #fff); transition: border-color .12s, background-color .12s; }
.sa-dur:hover { border-color: var(--sa-ring, #cfd4da); }
.sa-dur input { appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 18px; height: 18px; margin: 0; border: 1.5px solid var(--sa-ring, #cfd4da); border-radius: 50%; background: #fff; display: grid; place-content: center; cursor: pointer; }
.sa-dur input::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--st-blue); transform: scale(0); transition: transform .12s; }
.sa-dur input:checked { border-color: var(--st-blue); }
.sa-dur input:checked::before { transform: scale(1); }
.sa-dur input:focus-visible { outline: 2px solid var(--st-blue); outline-offset: 2px; }
.sa-dur:has(input:checked) { border-color: var(--st-blue); background: var(--st-blue-soft, #f3f6fe); box-shadow: 0 0 0 1px var(--st-blue); }
.sa-dur-len { font-weight: 600; font-size: 14.5px; color: var(--st-ink); white-space: nowrap; }
.sa-dur-tag { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--sa-tint); color: var(--st-text); white-space: nowrap; }
.sa-dur-tag.is-good { background: #f0fdf4; color: #166534; }
.sa-dur-tag.is-held { background: var(--st-blue-soft, #f3f6fe); color: var(--st-blue); }
.sa-dur-price { margin-left: auto; font-weight: 700; font-size: 15px; color: var(--st-ink); }
.sa-tier-buy { display: flex; flex-direction: column; gap: 10px; }
.sa-tier-buy[hidden] { display: none; }
.sa-tier-buy .sa-plan-price { flex-wrap: wrap; row-gap: 2px; }
.sa-tier-buy .sa-plan-price b { font-size: 34px; }
.sa-tier-until { margin: 0; font-size: 14px; color: var(--st-text); }
.sa-tier-until.is-good strong { color: #166534; }
.sa-tier-buy .sa-btn { height: 46px; font-size: 15px; margin-top: 2px; }
.sa-pad { padding: 20px 24px; margin: 0; }
.sa-card-head.sa-pad { margin: 0; }
.sa-scroll { overflow-x: auto; }
.sa-status { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.sa-status.is-good { background: #dcfce7; color: var(--sa-good); }
.sa-status.is-low { background: #fee2e2; color: var(--sa-low); }

/* ---- Settings ---------------------------------------------------------- */
.sa-set { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; align-items: start; }
.sa-set-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 20px; }
.sa-set-nav a { padding: 9px 12px; border-radius: 9px; color: var(--st-text); text-decoration: none; font-size: 14px; font-weight: 500; }
.sa-set-nav a:hover { background: var(--sa-tint); }
.sa-set-body { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.sa-set-body > .sa-card { scroll-margin-top: 20px; }
.sa-me { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.sa-me strong { display: block; font-size: 16px; }
.sa-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sa-fields.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sa-fields label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--st-text); }
.sa-fields label .sa-muted { font-weight: 400; font-size: 12.5px; }
.sa-app-input, .sa-fields input, .sa-row select { height: 42px; border: 1px solid var(--sa-edge); border-radius: 10px; padding: 0 12px; font: inherit; font-size: 14.5px; background: var(--sa-card); color: var(--st-ink); }
.sa-fields input:disabled { background: var(--sa-tint); color: var(--st-muted); }
.sa-fields input:focus, .sa-row select:focus { outline: 0; border-color: var(--st-blue); box-shadow: 0 0 0 3px var(--sa-blue-ring); }
.sa-form-foot { display: flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.sa-form-foot a { font-size: 13.5px; }
.sa-prefs.is-live .sa-form-foot .sa-btn { display: none; }
.sa-prefs.is-live .sa-form-foot { margin-top: 0; min-height: 0; }
.sa-saved { font-size: 13px; font-weight: 600; color: var(--sa-good); padding-top: 10px; }
.sa-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 0; border-top: 1px solid var(--sa-soft); }
.sa-prefs > .sa-row:first-of-type, .sa-note + .sa-row { border-top: 0; padding-top: 4px; }
.sa-row > label, .sa-row-label { display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.sa-row-label { cursor: default; }
.sa-row strong { font-size: 14.5px; font-weight: 600; }
.sa-row .sa-muted { font-size: 13px; }
.sa-row-top { margin-top: 20px; }
.sa-lead { margin: -6px 0 6px; }
.sa-note { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: var(--sa-tint); font-size: 13.5px; color: var(--st-text); }
.sa-switch { position: relative; flex-shrink: 0; width: 42px; height: 24px; }
.sa-switch input[type="checkbox"] { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.sa-switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--sa-ring, #cfd4da); transition: background-color .15s; }
.sa-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s; }
.sa-switch input:checked + i { background: var(--st-blue); }
.sa-switch input:checked + i::after { transform: translateX(18px); }
.sa-switch input:focus-visible + i { box-shadow: 0 0 0 3px var(--sa-blue-ring); }
.sa-choice { display: inline-flex; flex-shrink: 0; padding: 3px; border-radius: 10px; background: var(--sa-chip); }
.sa-choice label { position: relative; cursor: pointer; }
.sa-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sa-choice span { display: block; min-width: 44px; padding: 7px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--st-muted); text-align: center; }
.sa-choice input:checked + span { background: var(--sa-card); color: var(--st-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.sa-choice input:focus-visible + span { box-shadow: 0 0 0 2px var(--st-blue); }
.sa-tag { font-size: 11.5px; font-weight: 700; color: var(--st-blue); background: var(--st-blue-soft); padding: 3px 9px; border-radius: 999px; }
.sa-exam-plan { padding: 16px 0; border-top: 1px solid var(--sa-soft); }
.sa-exam-plan:first-of-type { border-top: 0; padding-top: 0; }
.sa-exam-plan-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 12px; }
.sa-exam-plan-head .sa-muted { flex-basis: 100%; font-size: 13px; }
.sa-more-prefs { margin-top: 16px; }

/* ---- Notifications ----------------------------------------------------- */
.sa-notices-wrap { align-items: start; }
.sa-notices-wrap > div > .sa-section-title:first-child { margin-top: 0; }
.sa-notices { list-style: none; margin: 0 0 8px; padding: 0 20px; }
.sa-notice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; }
.sa-notice + .sa-notice { border-top: 1px solid var(--sa-soft); }
.sa-notice-ic { position: relative; width: 38px; height: 38px; border-radius: 10px; background: var(--sa-chip); color: var(--st-text); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sa-notice.is-block .sa-notice-ic { background: var(--st-blue-soft); color: var(--st-blue); }
.sa-notice.is-streak .sa-notice-ic { background: #fff7ed; color: var(--sa-mid); }
.sa-notice.is-ready .sa-notice-ic { background: #f0fdf4; color: var(--sa-good); }
.sa-notice.is-plan_end .sa-notice-ic { background: #fef2f2; color: var(--sa-low); }
.sa-notice.is-new .sa-notice-ic::after { content: ""; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%; background: var(--st-blue); border: 2px solid var(--sa-card); }
.sa-notice-text { flex: 1; min-width: 0; }
.sa-notice-text strong { display: block; font-size: 15px; margin-bottom: 2px; }
.sa-notice-time { display: block; margin-top: 4px; font-size: 12px; color: var(--st-muted); }
.sa-notice-act { flex-shrink: 0; align-self: center; }
.sa-notice-act .sa-btn { height: 36px; padding: 0 14px; font-size: 13.5px; }


@media (max-width: 900px) {
	.sa-set { grid-template-columns: 1fr; gap: 16px; }
	.sa-set-nav { position: static; flex-direction: row; overflow-x: auto; gap: 6px; margin: 0 -18px; padding: 0 18px 2px; scrollbar-width: none; }
	.sa-set-nav a { flex-shrink: 0; border: 1px solid var(--sa-edge); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; background: var(--sa-card); }
	.sa-fields, .sa-fields.is-three { grid-template-columns: 1fr; }
	.sa-row { align-items: flex-start; }
	.sa-row:has(.sa-choice) { flex-direction: column; align-items: stretch; gap: 10px; }
	.sa-choice { display: flex; }
	.sa-choice label { flex: 1; }
	.sa-notices { padding: 0 16px; }
	.sa-notice { flex-wrap: wrap; }
	.sa-notice-act { flex-basis: 100%; padding-left: 52px; }
	.sa-plan-now { flex-direction: column; align-items: stretch; }
	.sa-plans.is-two { grid-template-columns: minmax(0, 1fr); }
	.sa-plans.is-one .sa-tier { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "side" "ticks"; padding: 22px 18px; }
	.sa-plans.is-one .sa-tier .sa-ticks { border-top: 1px solid var(--sa-edge); padding-top: 16px; }
	.sa-tier { padding: 22px 18px; }
}

/* Flashcard "why" line under the answer. */
.fc-why { margin: 12px 0 0; font-size: 14px; color: var(--st-text); }

/* Formulas (KaTeX): inherit the text colour; 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; }

/* Public pricing and checkout (/study/pricing/, /study/checkout/): the app's tokens without the sidebar. */
body.st-pub { margin: 0; background: var(--sa-tint); }
.sa-pub-top .st-gtop-in { max-width: 1080px; }
.sa-pub { max-width: 1080px; margin: 0 auto; padding: 48px 20px 72px; }
.sa-pub-head { text-align: center; max-width: 640px; margin: 0 auto 26px; }
.sa-pub-head h1 { font-size: 32px; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 10px; color: var(--st-ink); }
.sa-pub-intro { font-size: 16px; color: var(--st-text); margin: 0; }
.sa-pub-pick { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 12px; margin: 0 auto 28px; }
.sa-pub-pick label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--st-muted); }
.sa-pub-pick select { min-width: 190px; height: 42px; padding: 0 12px; border: 1px solid var(--sa-edge); border-radius: 10px; background: var(--sa-card); color: var(--st-ink); font: inherit; font-size: 14.5px; }
.sa-pub-pick [hidden] { display: none; }
.sa-pub-narrow { max-width: 560px; margin: 0 auto; }
.sa-pub-hint p, .sa-pub-ask { margin: 0 0 4px; font-size: 15px; color: var(--st-text); text-align: center; }
.sa-pub-ask { margin-bottom: 14px; text-align: left; font-weight: 600; }
.sa-pub-plans { margin: 0 auto; }
.sa-pub:has(.sa-pub-plans.is-many) { max-width: 1320px; }
.sa-pub-plans.is-many { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.sa-tier.is-trial .sa-ticks { border-top-style: dashed; }
.sa-plan.is-trial { border-style: dashed; border-color: var(--sa-ring, #cfd4da); }
.sa-plan.is-trial .sa-plan-badge { color: var(--sa-good); background: var(--sa-tint); }
.sa-pub-note { text-align: center; margin: 18px auto 0; max-width: 640px; }
.sa-pub-note a, .sa-pub-skip a, .sa-pub-intro a { color: var(--st-blue); font-weight: 600; text-decoration: none; }
.sa-pub-skip { text-align: center; font-size: 14px; color: var(--st-muted); margin: 18px 0 0; }
.sa-pub-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.sa-pub .sa-card h2 { font-size: 19px; margin: 0 0 8px; color: var(--st-ink); }
.sa-checkout .sa-eyebrow { margin: 0; }
.sa-checkout .sa-plan-price b { font-size: 34px; }
.sa-steps { list-style: none; display: inline-flex; gap: 10px; margin: 0 0 18px; padding: 0; font-size: 13px; font-weight: 600; color: var(--st-muted); }
.sa-steps li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 6px; border-radius: 999px; background: var(--sa-card); border: 1px solid var(--sa-edge); }
.sa-steps .st-ic, .sa-steps b { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11.5px; }
.sa-steps .is-done { color: var(--sa-good); }
.sa-steps .is-done .st-ic { padding: 3px; background: var(--sa-tint); }
.sa-steps .is-now { color: var(--st-ink); border-color: var(--st-blue); }
.sa-steps .is-now b { background: var(--st-blue); color: #fff; }
.st-pub .st-notice { max-width: 560px; margin: 0 auto 18px; }
@media (max-width: 640px) {
	.sa-pub { padding: 28px 16px 48px; }
	.sa-pub-head h1 { font-size: 25px; }
	.sa-pub-pick { flex-direction: column; align-items: stretch; }
	.sa-pub-pick select { min-width: 0; width: 100%; }
}

/* Trial ended (/study/trial-ended/): progress, where to focus, free plan next to a plan. */
.sa-te-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 26px 28px; margin-bottom: 20px; background: linear-gradient(135deg, var(--st-blue-soft) 0%, var(--sa-card) 60%); }
.sa-te-badge { width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: var(--sa-card); color: var(--st-blue); box-shadow: 0 0 0 1px var(--sa-edge); }
.sa-te-badge .st-ic { width: 24px; height: 24px; }
.sa-te-hero h2 { font-size: 20px; line-height: 1.3; letter-spacing: -.01em; margin: 0 0 4px; }
.sa-te-hero .sa-eyebrow { margin-bottom: 6px; }
.sa-te-hero p.sa-muted { margin: 0; }
.sa-te-actions { display: flex; flex-direction: column; gap: 8px; min-width: 220px; }
.sa-te-actions .sa-btn { height: 44px; }
.sa-te-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; margin-bottom: 20px; }
.sa-te-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sa-te-stat { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 12px; background: var(--sa-tint); border: 1px solid var(--sa-soft); }
.sa-te-stat b { font-size: 26px; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--st-ink); }
.sa-te-stat span { font-size: 12.5px; color: var(--st-muted); line-height: 1.35; }
.sa-te-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sa-te-compare .sa-card { display: flex; flex-direction: column; gap: 6px; }
.sa-te-compare h2 { font-size: 18px; margin-bottom: 6px; }
.sa-te-compare .sa-ticks { margin-bottom: 14px; }
.sa-te-compare .is-plan { border-color: var(--st-blue); box-shadow: 0 0 0 1px var(--st-blue), 0 14px 34px -18px rgba(37, 99, 235, .45); }
.sa-te-compare .is-plan .sa-eyebrow { color: var(--st-blue); }
.sa-te-note { margin: 8px 0 0; font-size: 13px; text-align: center; }
@media (max-width: 1180px) {
	.sa-te-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
	.sa-te-hero { grid-template-columns: auto minmax(0, 1fr); }
	.sa-te-actions { grid-column: 1 / -1; min-width: 0; }
	.sa-te-grid, .sa-te-compare { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.sa-te-hero { grid-template-columns: 1fr; padding: 22px 20px; }
	.sa-te-hero h2 { font-size: 18px; }
}

/* ---- Results: score summary, topics, and the answer list (one line per question) ---- */
.st-res-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 24px 28px; margin-bottom: 20px; background: linear-gradient(135deg, var(--st-blue-soft) 0%, var(--sa-card) 55%); }
.st-res-hero.is-pass { background: linear-gradient(135deg, #ecfdf3 0%, var(--sa-card) 55%); }
.st-res-hero.is-pass .sa-ring-fg { stroke: var(--sa-good); }
.st-res-hero.is-pass .sa-ring-bg { stroke: #d6f5e1; }
.st-res-hero.is-fail { background: linear-gradient(135deg, #fff7ed 0%, var(--sa-card) 55%); }
.st-res-hero.is-fail .sa-ring-fg { stroke: var(--sa-mid); }
.st-res-hero.is-fail .sa-ring-bg { stroke: #fde7d4; }
.st-res-hero.is-pass .sa-eyebrow { color: var(--sa-good); }
.st-res-hero.is-fail .sa-eyebrow { color: var(--sa-mid); }
.st-res-head h2 { font-size: 22px; line-height: 1.25; letter-spacing: -.01em; margin: 0 0 6px; }
.st-res-head .sa-eyebrow { margin-bottom: 6px; }
.st-res-head .sa-muted { font-size: 14px; max-width: 46ch; }
.st-res-stats { display: grid; grid-auto-flow: column; grid-auto-columns: 104px; gap: 8px; }
.st-res-stat { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 12px; background: var(--sa-card); border: 1px solid var(--sa-edge); }
.st-res-stat b { font-size: 22px; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.st-res-stat span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--st-muted); white-space: nowrap; }
.st-res-stat span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sa-soft); flex-shrink: 0; }
.st-res-stat.is-right span::before { background: var(--sa-good); }
.st-res-stat.is-wrong span::before { background: var(--sa-low); }
.st-res-stat.is-part span::before { background: #d97706; }
.st-res-stat.is-skipped span::before { background: #cbd2dc; }
.st-res-stat.is-time span::before { background: var(--st-blue); }
.st-res-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 20px; margin-bottom: 20px; align-items: start; }
.st-res-grid.is-single { grid-template-columns: minmax(0, 1fr); }
.st-res-grid h2 { margin-bottom: 10px; }
.st-res-sections { padding: 22px 12px 8px; }
.st-res-sections h2 { padding: 0 12px; }

.st-ans-card { padding: 22px 24px 12px; }
.st-ans-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 8px; }
.st-ans-head h2 { font-size: 18px; }
.st-ans-tabs { margin-bottom: 0; }
.st-ans-list { list-style: none; margin: 0; padding: 0; }
.st-ans-list > li { border-bottom: 1px solid var(--sa-soft); }
.st-ans-list > li:last-of-type { border-bottom: 0; }
.st-ans > summary { display: flex; align-items: center; gap: 12px; padding: 13px 8px; margin: 0 -8px; border-radius: 10px; cursor: pointer; list-style: none; }
.st-ans > summary::-webkit-details-marker { display: none; }
.st-ans > summary:hover { background: var(--sa-tint); }
.st-ans > summary:focus-visible { outline: 2px solid var(--st-blue); outline-offset: -2px; }
.st-ans-num { flex: 0 0 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; background: var(--sa-chip); color: var(--st-muted); }
.st-ans.is-right .st-ans-num { background: var(--st-good-soft, #ecfdf3); color: var(--sa-good); }
.st-ans.is-wrong .st-ans-num { background: var(--st-bad-soft, #fef2f2); color: var(--sa-low); }
.st-ans-stem { flex: 1 1 auto; min-width: 0; font-size: 14.5px; color: var(--st-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-ans-topic { flex: 0 0 170px; text-align: right; font-size: 12.5px; color: var(--st-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-ans-flag { flex: 0 0 16px; display: inline-flex; color: #d97706; }
.st-ans-flag .st-ic { width: 15px; height: 15px; }
.st-ans .st-tag { flex-shrink: 0; min-width: 96px; text-align: center; }
.st-ans-chev { flex-shrink: 0; width: 8px; height: 8px; margin: 0 4px 4px; border-right: 2px solid #9aa3af; border-bottom: 2px solid #9aa3af; transform: rotate(45deg); transition: transform .15s; }
.st-ans[open] .st-ans-chev { transform: rotate(-135deg); margin-bottom: -4px; }
.st-ans[open] > summary { background: var(--sa-tint); }
.st-ans[open] .st-ans-stem { font-weight: 600; }
.st-ans-body { padding: 16px 0 22px 42px; }
.st-ans-tools { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.st-ans-tools .st-bookmark { margin-left: auto; }
.st-ans-body .st-stem { margin-bottom: 14px; }
.st-ans-body .st-case { margin-bottom: 14px; }
.st-ans-card .sa-none { padding: 24px 0; text-align: center; }
.st-ans-more-wrap { display: flex; justify-content: center; padding: 8px 0 10px; }
.st-ans-more-wrap:has(.st-ans-more[hidden]) { display: none; }
@media (max-width: 1180px) {
	.st-res-hero { grid-template-columns: auto minmax(0, 1fr); }
	.st-res-stats { grid-column: 1 / -1; grid-auto-columns: minmax(0, 1fr); }
	.st-res-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
	.st-res-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 22px 18px; gap: 16px; }
	.st-res-head .sa-muted { margin: 0 auto; }
	.st-res-stats { grid-auto-flow: row; grid-template-columns: 1fr 1fr; width: 100%; text-align: left; }
	.st-ans-card { padding: 18px 16px 8px; }
	.st-ans > summary { flex-wrap: wrap; gap: 6px 10px; padding: 12px 8px; }
	.st-ans-stem { flex-basis: calc(100% - 70px); white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 14px; }
	.st-ans-topic { display: none; }
	.st-ans .st-tag { min-width: 0; margin-left: 40px; }
	.st-ans-chev { margin-left: auto; }
	.st-ans .st-tag { order: 4; }
	.st-ans-flag { order: 5; }
	.st-ans-flag:empty { display: none; }
	.st-ans-chev { order: 6; }
	.st-ans-body { padding-left: 0; }
}

/* Results: options carry only the choice and its labels; the reasons sit in the explanation box. */
.st-ans-body .st-options li { align-items: center; padding: 11px 14px; border-radius: 10px; }
.st-ans-body .st-options .st-key { background: var(--sa-card); box-shadow: 0 0 0 1px var(--sa-edge); }
.st-ans-body .st-options li.is-correct .st-key { background: var(--sa-good); color: #fff; box-shadow: none; }
.st-ans-body .st-options li.is-wrong .st-key { background: var(--sa-low); color: #fff; box-shadow: none; }
.st-opt-text { flex: 1 1 auto; min-width: 0; }
.st-badges { flex-shrink: 0; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.st-badge { font-style: normal; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.st-badge.is-right { background: var(--sa-good); color: #fff; }
.st-badge.is-yours-right { background: var(--sa-card); color: var(--sa-good); box-shadow: inset 0 0 0 1px #9fd8b4; }
.st-badge.is-yours-wrong { background: var(--sa-low); color: #fff; }
.st-ans-body .st-explain { margin-top: 16px; padding: 18px 20px; background: var(--sa-tint); border-color: var(--sa-soft); }
.st-ans-body .st-explain > strong { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--st-muted); }
.st-ans-body .st-explain p:last-child { margin-bottom: 0; }
.st-whys { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--sa-edge); }
.st-explain .st-whys:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.st-whys > strong { display: block; margin-bottom: 10px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--st-muted); }
.st-whys ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.st-whys li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.st-whys .st-key { width: 24px; height: 24px; font-size: 12px; background: var(--sa-card); box-shadow: 0 0 0 1px var(--sa-edge); }
.st-whys li.is-correct .st-key { background: var(--sa-good); color: #fff; box-shadow: none; }
.st-whys li.is-wrong .st-key { background: var(--sa-low); color: #fff; box-shadow: none; }
.st-whys .st-why { margin: 2px 0 0; font-size: 14px; color: var(--st-ink); }
.st-whys .st-why p { margin: 0; }
.st-whys li > div > strong { display: block; font-size: 13.5px; }
@media (max-width: 640px) {
	.st-ans-body .st-options li { flex-wrap: wrap; }
	.st-badges { flex-basis: 100%; justify-content: flex-start; padding-left: 38px; }
}

/* Full-page PayPal fallback under the PayPal buttons (0.41.6). */
.sa-paypal-page { display: block; width: 100%; margin: 8px 0 0; padding: 6px 0; background: none; border: 0; color: #2563eb; font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; text-align: center; }
.sa-paypal-page:disabled { color: #64748b; cursor: progress; }
