/* USMLE Explained v3: practice qbank, web cheatsheets, email forms. Mobile first (390 px), no page-level horizontal scroll.
   Brand: blue #1F4E8C, navy #0B2244, ink #0B1B2B, gold #C98A00 (high-yield), green #1E8E5A = correct answer ONLY. */
:root {
	--q-blue: #1F4E8C; --q-navy: #0B2244; --q-ink: #0B1B2B; --q-text: #1E2E40; --q-muted: #56657A; --q-line: #DCE3EC;
	--q-paper: #F6F8FA; --q-soft: #EEF4FC; --q-gold: #C98A00; --q-goldbg: #FBF3DF; --q-green: #1E8E5A; --q-greenbg: #E7F5EE;
	--q-red: #B42318; --q-redbg: #FDF0EF; --q-r: 12px;
}
.ueq-sr, .uecs-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.entry-content .ueq-private { font-size: 13px; color: #7A5300; background: var(--q-goldbg); border-radius: 8px; padding: 6px 10px; margin: 0 0 12px; }
.ueq-muted { color: var(--q-muted); font-size: .94em; }

/* buttons */
.entry-content .ueq-btn, .ueq-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 18px;
	border-radius: 10px; border: 2px solid var(--q-blue); background: var(--q-blue); color: #fff; font-weight: 700; font-size: 16px;
	line-height: 1.2; text-decoration: none; cursor: pointer; font-family: inherit; }
.ueq-btn:hover { background: var(--q-navy); border-color: var(--q-navy); color: #fff; }
.entry-content .ueq-btn-ghost, .ueq-btn-ghost { background: #fff; color: var(--q-blue); }
.ueq-btn-ghost:hover { background: var(--q-soft); color: var(--q-navy); }
.ueq-btn[disabled] { opacity: .45; cursor: not-allowed; }
.ueq-btn:focus-visible, .ueq-opt input:focus-visible + .ueq-L, .ueq-chip:focus-visible, .ueq-x:focus-visible, .ueq-nav button:focus-visible,
.uecs-jump a:focus-visible, .ueq-linkbtn:focus-visible { outline: 3px solid #F0B429; outline-offset: 2px; }
.ueq-linkbtn { background: none; border: 0; padding: 4px 0; color: var(--q-blue); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

/* ---------- page header (compact so the content is the first thing on a phone) */
.uecs-head { margin: 0 0 14px; }
.entry-content .uecs-kick { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--q-blue); }
.entry-content .uecs-h1 { margin: 0 0 6px; font-size: 27px; line-height: 1.15; }
.entry-content .uecs-lead { margin: 0 0 10px; font-size: 16px; color: var(--q-text); }
.uecs-ctas { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.uecs-ctas .ueq-btn { flex: 1 1 auto; font-size: 15px; padding: 8px 14px; }
@media (min-width: 768px) { .entry-content .uecs-h1 { font-size: 36px; } .uecs-ctas .ueq-btn { flex: 0 0 auto; } }

/* ---------- cheatsheet */
.uecs-jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.uecs-jump a { font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--q-soft); color: var(--q-blue); text-decoration: none; }
.uecs-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 1000px) { .uecs-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } .uecs-grid > .uecs-sec:nth-child(3) { grid-column: 1 / -1; } }
.uecs-sec { background: #fff; border: 1px solid var(--q-line); border-radius: var(--q-r); padding: 12px 12px 10px; min-width: 0; scroll-margin-top: 80px; }
.entry-content .uecs-sec h2, .ueq-panel .uecs-sec h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 19px; line-height: 1.25; }
.uecs-n { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--q-blue); color: #fff; font-size: 14px; font-weight: 800;
	display: inline-flex; align-items: center; justify-content: center; }
.uecs-sec-trap { border-color: #E9C46A; background: #FFFCF4; }
.uecs-sec-trap .uecs-n { background: var(--q-gold); }
.uecs-sec p, .uecs-sec li, .uecs-sec td, .uecs-sec th { font-size: 15px; line-height: 1.45; }
.entry-content .uecs-cap, .uecs-cap { font-size: 13px; color: var(--q-muted); margin: 8px 0 0; }
sup.uecs-r { font-size: 11px; line-height: 0; margin-left: 1px; white-space: nowrap; }
sup.uecs-r a { color: var(--q-blue); font-weight: 700; text-decoration: none; padding: 0 1px; }
sup.uecs-r a:hover { text-decoration: underline; }

/* lab grid: labelled list on phones, 4x4 grid on wider screens */
.uecs-lab { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.uecs-lab .uecs-ax { display: none; }
.uecs-lab .uecs-cell { grid-area: auto !important; border-radius: 8px; padding: 7px 9px; font-size: 14px; line-height: 1.35; }
.uecs-cell strong { display: block; color: var(--q-ink); }
.uecs-cell span { display: block; color: var(--q-text); }
.uecs-cell .uecs-where { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--q-muted); }
.uecs-hypo { background: #E8F0FB; } .uecs-hyper { background: #FBEAEC; } .uecs-eu { background: #F0F2F5; }
.uecs-rare { background: repeating-linear-gradient(135deg, #F4F5F8 0 8px, #E9ECF1 8px 16px); }
@media (min-width: 560px) {
	.uecs-lab { grid-template-columns: 64px repeat(3, minmax(0, 1fr)); }
	.uecs-lab .uecs-ax { display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; font-weight: 700; color: var(--q-blue); }
	.uecs-lab .uecs-cell .uecs-where { display: none; }
}

/* decision flows */
.uecs-flow { display: grid; gap: 8px; }
.entry-content .uecs-fq, .uecs-fq { margin: 0; font-weight: 700; color: var(--q-ink); background: var(--q-soft); border-radius: 8px; padding: 7px 10px; font-size: 15px; }
.uecs-fg { border-left: 3px solid var(--q-blue); padding-left: 10px; }
.entry-content .uecs-fgt, .uecs-fgt { margin: 0 0 4px; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--q-blue); }
.uecs-fg ul { list-style: none; margin: 0; padding: 0; }
.uecs-fg li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; padding: 4px 0; border-top: 1px dashed var(--q-line); }
.uecs-fg li:first-child { border-top: 0; }
.uecs-cl { flex: 1 1 60%; min-width: 0; }
.uecs-ar { color: var(--q-blue); font-weight: 700; }
.uecs-an { font-weight: 800; color: var(--q-ink); }

/* tables */
.uecs-tw { width: 100%; }
.uecs-t { width: 100%; border-collapse: collapse; table-layout: auto; margin: 0; }
.uecs-t th, .uecs-t td { border-bottom: 1px solid var(--q-line); padding: 6px 6px; text-align: left; vertical-align: top; word-break: normal; overflow-wrap: anywhere; }
.uecs-t thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--q-muted); border-bottom: 2px solid var(--q-line); }
.uecs-t thead small { display: block; text-transform: none; letter-spacing: 0; font-weight: 400; }
.uecs-t tbody th { color: var(--q-ink); font-weight: 700; }
.uecs-t2 tbody th { font-weight: 400; color: var(--q-text); width: 52%; }
.uecs-t3 tbody th { width: 22%; }
.uecs-up { color: var(--q-blue); font-weight: 700; white-space: nowrap; }
.uecs-dn { color: #8A3A10; font-weight: 700; white-space: nowrap; }
.uecs-na { color: #8792A2; font-size: 13px; }
@media (max-width: 699px) {
	.uecs-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.uecs-stack, .uecs-stack tbody, .uecs-stack tr, .uecs-stack th, .uecs-stack td { display: block; width: auto; }
	.uecs-stack tr { border: 1px solid var(--q-line); border-radius: 8px; padding: 6px 8px; margin: 0 0 8px; }
	.uecs-stack tbody th { border: 0; padding: 2px 0 4px; font-size: 16px; }
	.uecs-stack td { border: 0; padding: 3px 0; display: grid; grid-template-columns: 38% minmax(0, 1fr); gap: 8px; }
	.uecs-stack td::before { content: attr(data-label); font-size: 12px; font-weight: 700; color: var(--q-muted); text-transform: uppercase; letter-spacing: .03em; padding-top: 2px; }
	.uecs-mg td { grid-template-columns: 46% minmax(0, 1fr); }
}

/* murmur timing strips */
.uecs-tm { display: grid; gap: 6px; }
.uecs-tr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding-bottom: 6px; border-bottom: 1px solid var(--q-line); }
.uecs-trh { border-bottom: 0; padding-bottom: 0; }
.uecs-trh .uecs-lb { display: none; }
.uecs-lb strong { display: block; color: var(--q-ink); font-size: 15px; }
.uecs-lb span { display: block; font-size: 13px; color: var(--q-muted); }
svg.uecs-wave { width: 100%; height: 30px; display: block; }
svg.uecs-wave-h { width: 100%; height: 14px; display: block; }
@media (min-width: 560px) { .uecs-tr { grid-template-columns: 42% minmax(0, 1fr); align-items: center; gap: 8px; } .uecs-trh .uecs-lb { display: block; visibility: hidden; } }

.uecs-traps { margin: 0; padding-left: 18px; }
.uecs-traps li { margin: 0 0 6px; }
.uecs-call { margin-top: 10px; background: #fff; border: 1px solid var(--q-line); border-left: 4px solid var(--q-blue); border-radius: 8px; padding: 8px 10px; }
.entry-content .uecs-callh, .uecs-callh { margin: 0 0 4px; font-weight: 800; color: var(--q-ink); }
.uecs-call p { margin: 0; }

.uecs-next, .uecs-deck, .uef-box { margin: 16px 0; background: #fff; border: 1px solid var(--q-line); border-radius: var(--q-r); padding: 14px; }
.uecs-next { background: var(--q-soft); border-color: #C9DAF0; }
.entry-content .uecs-next h2, .entry-content .uef-h { margin: 0 0 6px; font-size: 21px; }
.uecs-sources { margin-top: 16px; }
.entry-content .uecs-sources h2, .ueq-panel .uecs-sources h2 { font-size: 19px; margin: 0 0 4px; }
.uecs-sources ol { padding-left: 26px; margin: 8px 0 0; }
.uecs-sources li { font-size: 14px; margin: 0 0 4px; overflow-wrap: anywhere; }
.uecs-pub { color: var(--q-muted); font-size: 13px; }
.entry-content .uecs-foot { font-size: 13px; color: var(--q-muted); margin-top: 14px; }

/* ---------- forms */
.uef { display: grid; gap: 8px; margin: 0; }
.uef-l { font-weight: 700; font-size: 15px; color: var(--q-ink); }
.uef-row { display: flex; flex-wrap: wrap; gap: 8px; }
.uef-row .uef-in { flex: 1 1 220px; }
.uef-in { min-height: 46px; padding: 10px 12px; border: 1.5px solid #AEB9C8; border-radius: 10px; font-size: 16px; width: 100%; max-width: 100%; background: #fff; color: var(--q-ink); }
.uef-in:focus { outline: 3px solid #F0B429; outline-offset: 1px; border-color: var(--q-blue); }
.uef-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.entry-content .uef-fine, .uef-fine { font-size: 13px; color: var(--q-muted); margin: 0; }
.entry-content .uef-sub { margin: 0 0 8px; }
.uef-msg { margin: 0; font-weight: 600; }
.uef-msg.is-ok { color: var(--q-ink); background: var(--q-soft); border-radius: 8px; padding: 8px 10px; }
.uef-msg.is-err { color: var(--q-red); }
.uef-cards { list-style: none; padding: 0; display: grid; gap: 10px; }
.uef-card { border: 1px solid var(--q-line); border-radius: 10px; padding: 10px 12px; background: #fff; }
.uef-card p { margin: 4px 0 0; }
.uef-card-sub { font-size: 12px; font-weight: 600; color: var(--q-blue); background: var(--q-soft); border-radius: 6px; padding: 2px 8px; }
.uef-cz { color: var(--q-blue); font-weight: 700; background: var(--q-soft); border-radius: 4px; padding: 0 4px; }
.entry-content .uef-card-src { font-size: 13px; color: var(--q-muted); }
.ueq-list li, .ueq-plan li { margin-bottom: 6px; }
.ueq-price { font-size: 18px; }

/* ---------- hub cards */
.ueq-cards { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .ueq-cards { grid-template-columns: 1fr 1fr; } }
.ueq-card { background: #fff; border: 1px solid var(--q-line); border-radius: var(--q-r); padding: 14px; }
.entry-content .ueq-card-k { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--q-muted); }
.entry-content .ueq-card-h { margin: 2px 0 6px; font-size: 22px; }
.ueq-card-h a { text-decoration: none; color: var(--q-ink); }
.ueq-card p { margin: 0 0 8px; }
.ueq-card-a { display: flex; flex-wrap: wrap; gap: 8px; }
.ueq-card-a .ueq-btn { flex: 1 1 140px; }
.ueq-prog:empty { display: none; }
.ueq-prog { font-size: 14px; color: var(--q-text); }
.ueq-how { padding-left: 20px; }
.ueq-how li { margin-bottom: 6px; }

/* ---------- qbank app */
.ueq-app { min-height: 300px; }
.ueq-head { margin-bottom: 8px; }
.ueq-loading { color: var(--q-muted); }
.ueq-steps { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.ueq-step { display: flex; gap: 12px; background: #fff; border: 1px solid var(--q-line); border-radius: var(--q-r); padding: 12px; }
.ueq-stepn { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--q-blue); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.ueq-step h2 { margin: 0 0 2px; font-size: 19px; }
.ueq-step p { margin: 0 0 8px; font-size: 15px; }
.ueq-step .ueq-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ueq-setup { background: #fff; border: 1px solid var(--q-line); border-radius: var(--q-r); padding: 12px; display: grid; gap: 12px; }
.ueq-setup fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.ueq-setup legend { font-weight: 800; color: var(--q-ink); margin-bottom: 6px; padding: 0; font-size: 15px; }
.ueq-modes { display: grid; gap: 8px; }
@media (min-width: 560px) { .ueq-modes { grid-template-columns: 1fr 1fr; } }
.ueq-mode { position: relative; display: block; border: 2px solid var(--q-line); border-radius: 10px; padding: 10px 12px 10px 40px; cursor: pointer; }
.ueq-mode input { position: absolute; left: 12px; top: 13px; width: 18px; height: 18px; accent-color: var(--q-blue); }
.ueq-mode strong { display: block; color: var(--q-ink); }
.ueq-mode span { display: block; font-size: 14px; color: var(--q-muted); }
.ueq-mode:has(input:checked) { border-color: var(--q-blue); background: var(--q-soft); }
.ueq-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ueq-chip { position: relative; }
.ueq-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ueq-chip span { display: inline-block; padding: 8px 12px; min-height: 40px; border: 1.5px solid #B8C4D4; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--q-text); cursor: pointer; background: #fff; }
.ueq-chip input:checked + span { background: var(--q-blue); border-color: var(--q-blue); color: #fff; }
.ueq-chip input:focus-visible + span { outline: 3px solid #F0B429; outline-offset: 2px; }
.ueq-chip input:disabled + span { opacity: .45; cursor: not-allowed; }
.ueq-count { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ueq-count select { min-height: 44px; border-radius: 10px; border: 1.5px solid #AEB9C8; padding: 6px 10px; font-size: 16px; }
.ueq-start { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ueq-start .ueq-btn { flex: 1 1 200px; }
.ueq-resume { background: var(--q-goldbg); border: 1px solid #E9C46A; border-radius: var(--q-r); padding: 12px; margin-bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ueq-resume p { margin: 0; flex: 1 1 100%; font-weight: 600; }
.ueq-stats { margin-top: 14px; background: #fff; border: 1px solid var(--q-line); border-radius: var(--q-r); padding: 12px; }
.ueq-stats h2 { font-size: 19px; margin: 0 0 8px; }
.ueq-bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; font-size: 14px; margin-bottom: 8px; }
.ueq-meter { grid-column: 1 / -1; height: 8px; background: #E8EDF3; border-radius: 99px; overflow: hidden; }
.ueq-meter i { display: block; height: 100%; background: var(--q-blue); }
.ueq-hist { font-size: 14px; padding-left: 18px; margin: 6px 0; }

/* player */
.ueq-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; background: #fff; border-bottom: 1px solid var(--q-line);
	padding: 8px 0; margin: 0 0 10px; }
.admin-bar .ueq-top { top: 0; }
.ueq-top .ueq-pos { font-weight: 800; color: var(--q-ink); font-size: 15px; flex: 1 1 auto; min-width: 0; }
.ueq-top .ueq-pos small { display: block; font-weight: 600; color: var(--q-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ueq-timer { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 15px; color: var(--q-ink); background: var(--q-soft); border-radius: 8px; padding: 6px 8px; }
.ueq-timer.is-low { background: var(--q-goldbg); color: #7A5300; }
.ueq-sheetbtn { min-height: 40px; padding: 6px 12px; font-size: 14px; }
.ueq-exit { min-height: 40px; padding: 6px 10px; font-size: 14px; }
.ueq-q { scroll-margin-top: 70px; }
.ueq-q h2 { font-size: 15px; color: var(--q-muted); margin: 0 0 6px; font-weight: 700; }
.ueq-q h2:focus { outline: none; }
.ueq-stem { font-size: 17px; line-height: 1.6; color: var(--q-ink); margin: 0 0 12px; }
.ueq-fig { margin: 0 0 12px; }
.ueq-fig img { display: block; max-width: 100%; height: auto; max-height: 420px; width: auto; border: 1px solid var(--q-line); border-radius: 8px; background: #fff; }
.ueq-fig figcaption { font-size: 13px; color: var(--q-muted); margin-top: 4px; }
.ueq-opts { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; min-width: 0; }
.ueq-opt { display: flex; align-items: flex-start; gap: 10px; border: 2px solid var(--q-line); border-radius: 10px; padding: 10px 12px; cursor: pointer; background: #fff; min-height: 48px; }
.ueq-opt:hover { border-color: #9DB5D6; }
.ueq-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ueq-L { flex: 0 0 28px; height: 28px; border-radius: 50%; border: 2px solid #9AA8BA; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; color: var(--q-text); }
.ueq-t { flex: 1 1 auto; min-width: 0; font-size: 16px; line-height: 1.45; padding-top: 2px; color: var(--q-ink); overflow-wrap: anywhere; }
.ueq-tag { display: none; flex: 0 0 auto; font-size: 12px; font-weight: 800; border-radius: 6px; padding: 2px 6px; align-self: center; }
.ueq-opt.is-sel { border-color: var(--q-blue); background: var(--q-soft); }
.ueq-opt.is-sel .ueq-L { background: var(--q-blue); border-color: var(--q-blue); color: #fff; }
.ueq-opts.is-locked .ueq-opt { cursor: default; }
.ueq-opt.is-correct { border-color: var(--q-green); background: var(--q-greenbg); }
.ueq-opt.is-correct .ueq-L { background: var(--q-green); border-color: var(--q-green); color: #fff; }
.ueq-opt.is-correct .ueq-tag { display: table; background: var(--q-green); color: #fff; }
.ueq-opt.is-wrong { border-color: var(--q-red); background: var(--q-redbg); }
.ueq-opt.is-wrong .ueq-L { background: #fff; border-color: var(--q-red); color: var(--q-red); }
.ueq-opt.is-wrong .ueq-tag { display: table; background: #fff; color: var(--q-red); border: 1px solid var(--q-red); }
.ueq-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
.ueq-actions .ueq-btn { flex: 1 1 130px; }
.ueq-flag[aria-pressed="true"] { background: var(--q-goldbg); border-color: var(--q-gold); color: #7A5300; }
.ueq-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; padding: 0; list-style: none; }
.ueq-nav button { width: 40px; height: 40px; border-radius: 8px; border: 1.5px solid #B8C4D4; background: #fff; font-weight: 700; color: var(--q-text); cursor: pointer; position: relative; font-size: 14px; }
.ueq-nav button.is-ans { background: #DDE7F5; border-color: #9DB5D6; }
.ueq-nav button.is-cur { border-color: var(--q-blue); box-shadow: 0 0 0 2px var(--q-blue) inset; }
.ueq-nav button.is-flag::after { content: ""; position: absolute; top: 3px; right: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--q-gold); }
.ueq-confirm { background: var(--q-goldbg); border: 1px solid #E9C46A; border-radius: 10px; padding: 12px; margin: 0 0 12px; }
.ueq-confirm p { margin: 0 0 8px; font-weight: 600; }

/* explanation */
.ueq-result { font-size: 16px; font-weight: 700; padding: 10px 12px; border-radius: 10px; background: var(--q-soft); color: var(--q-ink); margin: 0 0 12px; }
.ueq-result.is-miss { background: var(--q-redbg); }
.ueq-ex h3 { font-size: 18px; margin: 18px 0 6px; color: var(--q-ink); }
.ueq-ex h4 { font-size: 15px; margin: 10px 0 4px; color: var(--q-muted); }
.ueq-ex p { font-size: 16px; line-height: 1.6; margin: 0 0 10px; }
.ueq-tips { display: grid; gap: 8px; }
.ueq-tip { border: 1px solid #EAD8A6; background: #FFFBF0; border-radius: 10px; }
.ueq-tip summary { cursor: pointer; padding: 10px 12px; font-weight: 700; color: var(--q-ink); list-style: none; display: flex; gap: 8px; align-items: baseline; }
.ueq-tip summary::-webkit-details-marker { display: none; }
.ueq-tip summary::before { content: "+"; color: #7A5300; font-weight: 800; width: 12px; flex: 0 0 12px; }
.ueq-tip[open] summary::before { content: "\2212"; }
.ueq-tip summary .ueq-tipk { color: #7A5300; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.ueq-tip > div { padding: 0 12px 4px 32px; }
.ueq-src { font-size: 14px; padding-left: 20px; }
.ueq-src li { margin-bottom: 4px; overflow-wrap: anywhere; }
.ueq-video { display: flex; gap: 10px; align-items: flex-start; border: 1px dashed #AEB9C8; border-radius: 10px; padding: 10px 12px; margin: 12px 0; background: #fff; }
.ueq-video svg { flex: 0 0 28px; }
.ueq-video p { margin: 0; font-size: 14px; }
.ueq-next { margin: 14px 0 6px; }
.ueq-next .ueq-btn { width: 100%; }

/* review */
.ueq-score { font-size: 22px; font-weight: 800; color: var(--q-ink); margin: 0 0 4px; }
.ueq-rlist { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 6px; }
.ueq-rlist button { width: 100%; text-align: left; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: center;
	border: 1px solid var(--q-line); border-radius: 10px; background: #fff; padding: 8px 10px; cursor: pointer; font: inherit; color: var(--q-text); }
.ueq-rlist button:hover { border-color: #9DB5D6; }
.ueq-rs { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; }
.ueq-rs.ok { background: var(--q-green); color: #fff; }
.ueq-rs.no { background: #fff; color: var(--q-red); border: 2px solid var(--q-red); }
.ueq-rs.na { background: #EEF1F5; color: var(--q-muted); }
.ueq-rq { font-weight: 700; font-size: 14px; color: var(--q-ink); }
.ueq-rd { font-size: 13px; color: var(--q-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ueq-filters { display: flex; flex-wrap: wrap; gap: 6px; }

/* drawer */
.ueq-drawer[hidden] { display: none; }
.ueq-drawer { position: fixed; inset: 0; z-index: 100000; }
.ueq-scrim { position: absolute; inset: 0; background: rgba(11, 27, 43, .45); }
.ueq-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--q-paper); display: flex; flex-direction: column;
	box-shadow: -8px 0 30px rgba(0, 0, 0, .18); animation: ueqIn .18s ease-out; outline: none; }
@keyframes ueqIn { from { transform: translateX(30px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ueq-panel { animation: none; } }
.ueq-panel-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--q-line); }
.ueq-panel-top h2 { flex: 1 1 auto; margin: 0; font-size: 18px; color: var(--q-ink); }
.ueq-panel-link { font-size: 14px; font-weight: 600; }
.ueq-x { width: 44px; height: 44px; border-radius: 10px; border: 1.5px solid var(--q-line); background: #fff; font-size: 26px; line-height: 1; cursor: pointer; color: var(--q-ink); }
.ueq-panel-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 12px; -webkit-overflow-scrolling: touch; }
.ueq-panel-body .uecs-grid { grid-template-columns: minmax(0, 1fr); }
.ueq-panel-body .uecs-grid > .uecs-sec:nth-child(3) { grid-column: auto; }
.ueq-panel .uecs-lab { grid-template-columns: minmax(0, 1fr); }
.ueq-panel .uecs-lab .uecs-ax { display: none; }
.ueq-panel .uecs-lab .uecs-cell { grid-area: auto !important; }
.ueq-panel .uecs-lab .uecs-cell .uecs-where { display: block; }
html.ueq-lock, html.ueq-lock body { overflow: hidden; }
.ueq-conf { font-size: 17px; }

/* v3 fixes after first screenshots: theme button hover bleed, list indents, narrow top bar, option tags */
.entry-content ol.ueq-steps, .entry-content ol.ueq-rlist, .entry-content ol.ueq-nav, .entry-content ul.ueq-cards,
.entry-content ul.uef-cards { margin-left: 0; padding-left: 0; }
.ueq-rlist button:hover, .ueq-rlist button:focus, .ueq-rlist button:active { background: #fff; color: var(--q-text); border-color: #9DB5D6; }
.ueq-nav button:hover, .ueq-nav button:focus { background: var(--q-soft); color: var(--q-text); }
.ueq-nav button.is-ans:hover, .ueq-nav button.is-ans:focus { background: #DDE7F5; }
.ueq-linkbtn:hover, .ueq-linkbtn:focus { background: none; color: var(--q-navy); }
.ueq-x:hover, .ueq-x:focus { background: var(--q-soft); color: var(--q-ink); }
.entry-content .ueq-btn-ghost:hover, .entry-content .ueq-btn-ghost:focus { background: var(--q-soft); color: var(--q-navy); }
.entry-content .ueq-top .ueq-btn { white-space: nowrap; flex: 0 0 auto; font-size: 14px; padding: 6px 10px; min-height: 40px; }
.ueq-panel-link { white-space: nowrap; }
.ueq-count select { min-width: 96px; }
@media (max-width: 599px) {
	.entry-content .uecs-h1 { font-size: 25px; }
	.uecs-ctas .ueq-btn { flex: 1 1 0; font-size: 14px; padding: 8px 8px; min-height: 42px; }
}
.ueq-t .ueq-tag { margin-top: 6px; align-self: auto; }

/* 28 Oct 2026: per-video cheatsheets (plain bullet lists, multi-sheet drawer) */
.uecs-traps.uecs-bul li::marker { color: var(--q-blue); }
.ueq-panel-body [data-sheet][hidden] { display: none; }
.uecs-hub { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }

/* Citation pop-up (28 Oct 2026): tap a source number -> exact quote + "Open source" (qbank.js) */
.uecs-pop[hidden] { display: none; }
.uecs-pop { position: fixed; z-index: 100010; box-sizing: border-box; max-width: calc(100vw - 24px); background: #fff; color: var(--q-text);
	border: 1px solid var(--q-line); border-top: 3px solid var(--q-gold); border-radius: 10px; padding: 10px 12px 10px;
	box-shadow: 0 10px 30px rgba(11, 34, 68, .22); font-size: 15px; line-height: 1.45; text-align: left; }
.entry-content .uecs-pop-k, .uecs-pop-k { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .03em; color: var(--q-blue); }
.entry-content .uecs-pop-q, .uecs-pop-q { margin: 0 0 10px; padding: 6px 10px; border-left: 3px solid var(--q-gold); background: var(--q-goldbg);
	border-radius: 6px; font-style: italic; font-size: 15px; color: var(--q-ink); max-height: 40vh; overflow: auto; }
.entry-content .uecs-pop-a, .uecs-pop-a { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.uecs-pop-go { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 9px; background: var(--q-blue);
	color: #fff !important; font-weight: 700; font-size: 15px; text-decoration: none !important; }
.uecs-pop-go::after { content: "\2197"; margin-left: 6px; }
.uecs-pop-x { min-width: 40px; min-height: 40px; border: 0; border-radius: 9px; background: var(--q-soft); color: var(--q-blue); font-size: 22px; line-height: 1; cursor: pointer; }
.uecs-pop-go:focus-visible, .uecs-pop-x:focus-visible, sup.uecs-r a:focus-visible { outline: 3px solid #F0B429; outline-offset: 2px; }
sup.uecs-r a.uecs-c { padding: 8px 3px; margin: 0 -2px; }   /* bigger tap target, no visual gap */
.uecs-cv { min-width: 0; }

/* ===== 1121 (21 Nov 2026): mixed Step block entry on the hub, cross-out control, Flag in tutor mode. Appended; nothing above changed. ===== */
/* cross out an option: the control sits in space the option always reserves, so nothing moves */
.ueq-ow { position: relative; min-width: 0; }
.ueq-ow > .ueq-opt { padding-right: 56px; height: 100%; box-sizing: border-box; }
.entry-content .ueq-so, .ueq-so { position: absolute; top: 4px; right: 4px; width: 44px; height: 40px; margin: 0; padding: 0; border: 1.5px solid transparent; border-radius: 8px;
	background: transparent; color: var(--q-muted); font-family: inherit; font-size: .8125rem; font-weight: 700; line-height: 1; letter-spacing: .02em; white-space: nowrap; min-height: 0; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center; box-shadow: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
/* the mark is the option's own letter with a line through it */
.ueq-so span { position: relative; display: inline-block; padding: 0 6px; font-size: .9375rem; }
.ueq-so span::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 1px; background: currentColor; }
.ueq-so:hover, .ueq-so:focus { background: var(--q-soft); color: var(--q-ink); border-color: transparent; }
.ueq-so:focus-visible { outline: 3px solid #F0B429; outline-offset: 1px; }
.entry-content .ueq-so[aria-pressed="true"], .ueq-so[aria-pressed="true"] { background: var(--q-ink); color: #fff; border-color: var(--q-ink); }
.ueq-ow.is-struck > .ueq-opt { background: var(--q-paper); border-color: var(--q-line); }
.ueq-ow.is-struck > .ueq-opt .ueq-t { text-decoration: line-through; color: var(--q-muted); }
.ueq-ow.is-struck > .ueq-opt .ueq-L { color: var(--q-muted); border-color: #C5CEDB; }

/* Flag in tutor mode: fixed width, so "Flag" and "Flagged" take the same room */
.ueq-actions--tutor .ueq-btn.ueq-flag, .ueq-next--flag .ueq-btn.ueq-flag { flex: 0 0 104px; width: 104px; padding-left: 8px; padding-right: 8px; }
.ueq-actions--tutor .ueq-btn:not(.ueq-flag) { flex: 1 1 0; }
.ueq-next--flag { display: flex; gap: 8px; align-items: stretch; }
.ueq-next--flag .ueq-btn:not(.ueq-flag) { flex: 1 1 0; width: auto; min-width: 0; }
.ueq-actions .ueq-flag { white-space: nowrap; }

/* hub: one entry per Step, in the style of the topic rows */
.entry-content .ueq-sb, .ueq-sb { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; width: 100%; max-width: 100%; box-sizing: border-box;
	min-height: 76px; margin: 0; padding: 14px 16px 14px 18px; border: 1px solid #0F2348; border-radius: 12px; background: #0F2348; color: #fff; text-align: left;
	font: inherit; cursor: pointer; box-shadow: none; transition: background-color .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.entry-content .ueq-sb:hover, .entry-content .ueq-sb:focus, .ueq-sb:hover, .ueq-sb:focus { background: #0A1833; border-color: #0A1833; color: #fff; box-shadow: 0 6px 18px rgba(15, 35, 72, .18); }
.ueq-sb:active { background: #0A1833; }
.ueq-sb:focus-visible { outline: 3px solid #F0B429; outline-offset: 2px; }
.ueq-sb__s { grid-column: 1; margin-bottom: 4px; font: 600 .6875rem/1.3 var(--l4-font-mono, ui-monospace, monospace); letter-spacing: .08em; text-transform: uppercase; color: #C9D5EA; white-space: nowrap; }
.ueq-sb__t { grid-column: 1; font-weight: 650; font-size: 1.0625rem; line-height: 1.3; color: #fff; }
.ueq-sb__n { grid-column: 1; margin-top: 3px; font-size: .875rem; line-height: 1.3; color: #C9D5EA; white-space: nowrap; }
.ueq-sb__go { grid-column: 2; grid-row: 1 / span 3; width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.ueq-sb:hover .ueq-sb__go { transform: translateX(3px); }
@media (min-width: 700px) { .entry-content .ueq-sb, .ueq-sb { max-width: 420px; } }

/* Step block screen (the hub is hidden while it is open) */
html.ueq-sbon [data-l4-fh], html.ueq-sbon .uecs-head { display: none !important; }
.ueq-app--sb[hidden] { display: none; }
.ueq-app--sb { max-width: 820px; margin: 0 auto; }
.ueq-sbhome h2 { font-size: 22px; line-height: 1.25; margin: 0; color: var(--q-ink); }
.ueq-sbhome h2:focus { outline: none; }
.ueq-sbhome p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--q-text); }
.ueq-sbhist { margin-top: 14px; background: #fff; border: 1px solid var(--q-line); border-radius: var(--q-r); padding: 12px; }
.ueq-sbhist h2 { font-size: 19px; margin: 0 0 8px; }
.ueq-sbhist p { margin: 0; }

/* found while testing (also in the live files): two-digit numbers in the jump grid broke onto two lines on phones; the pressed Flag lost its gold */
.entry-content .ueq-nav button, .ueq-nav button { padding: 0; white-space: nowrap; line-height: 1; }
.entry-content .ueq-btn.ueq-flag[aria-pressed="true"], .ueq-btn.ueq-flag[aria-pressed="true"] { background: var(--q-goldbg); border-color: var(--q-gold); color: #7A5300; }
.entry-content .ueq-sb, .ueq-sb { margin-top: 6px; }
/* results on phones: the two end buttons stack, so "Retry the incorrect ones (tutor)" stays on one line (was 3 lines at 360) */
@media (max-width: 479px) { .ueq-review .ueq-actions .ueq-btn { flex: 1 1 100%; } }

/* the "End the block now?" box used to push the jump grid down when it opened; it now opens over the grid, nothing moves */
.ueq-confirmbox { position: relative; }
.ueq-confirmbox .ueq-confirm { position: absolute; left: 0; right: 0; top: 0; z-index: 15; margin: 0; box-shadow: 0 10px 28px rgba(11, 27, 43, .22); }

/* setup screen, wide screens: the Start button changed width by a few px whenever the "N questions match" text changed (any pool chip). The text now has a fixed column. */
@media (min-width: 600px) { .ueq-setup .ueq-start .ueq-avail { flex: 0 0 300px; } }
/* text buttons: no card shadow from the theme while focused */
.ueq-app .ueq-linkbtn, .ueq-app .ueq-linkbtn:hover, .ueq-app .ueq-linkbtn:focus { box-shadow: none; }
.entry-content .ueq-sbhome p, .entry-content .ueq-sbhist p { margin: 0; }

/* 360 px phones: "You chose A. The correct answer is C." fits on one line */
@media (max-width: 379px) { body .ueq-app .ueq-result { font-size: 15px; letter-spacing: -.01em; padding-left: 10px; padding-right: 10px; } }

.ueq-sbhome p { text-wrap: pretty; }
