/* Final theme layer. Loaded last so every learning view uses the shared palette. */
html[data-fe-theme="dark"] .fe-learning-page {
	background: #111310;
	color-scheme: dark;
	--fe-learning-bg: #111310;
	--fe-learning-surface: #1a1c18;
	--fe-learning-surface-soft: #141613;
	--fe-learning-navy: #f2efe9;
	--fe-learning-navy-strong: #fffaf4;
	--fe-learning-orange: #e39a67;
	--fe-learning-orange-dark: #f0b88e;
	--fe-learning-orange-soft: #392319;
	--fe-learning-text: #f2efe9;
	--fe-learning-muted: #c8bdb4;
	--fe-learning-border: rgba(190, 145, 120, .30);
}

html[data-fe-theme="dark"] :is(.fe-learning-page, .fe-learning-app, .fe-learning-app__session-shell) {
	background-color: var(--fe-learning-bg);
	color: var(--fe-learning-text);
}

html[data-fe-theme="dark"] .fe-learning-app button {
	-webkit-appearance: none;
	appearance: none;
}

html[data-fe-theme="dark"] .fe-learning-app__field input[type="number"] {
	background: var(--fe-learning-surface) !important;
	border-color: var(--fe-learning-border) !important;
	color: var(--fe-learning-text) !important;
	color-scheme: dark;
}

html[data-fe-theme="dark"] .fe-learning-app__field input[type="number"]:focus-visible {
	box-shadow: none;
	outline-color: var(--fe-learning-orange);
}

html[data-fe-theme="dark"] .fe-learning-app--browser .fe-learning-app__question--quiz {
	background: transparent !important;
	border-color: transparent !important;
	box-shadow: none !important;
}

html[data-fe-theme="dark"] .fe-learning-app :is(.fe-learning-app__mode-card, .fe-learning-app__option, .fe-learning-app__review-filter, .fe-learning-app__flashcard-rate, .fe-learning-app__flashcard-skip) {
	background: #1a1c18 !important;
	background-image: none !important;
}

html[data-fe-theme="dark"] .fe-learning-app :is(
	.fe-learning-app__panel,
	.fe-learning-app__card,
	.fe-learning-app__config-section,
	.fe-learning-app__filter-card,
	.fe-learning-app__mode-card,
	.fe-learning-app__chip,
	.fe-learning-app__filter-icon,
	.fe-learning-app__filters-cta,
	.fe-learning-app__question,
	.fe-learning-app__session-header,
	.fe-learning-app__session-action-bar,
	.fe-learning-app__session-menu > div,
	.fe-learning-app__dashboard-help,
	.fe-learning-app__report,
	.fe-learning-app__summary-stat,
	.fe-learning-app__review-panel,
	.fe-learning-app__review-filter,
	.fe-learning-app__answer-row,
	.fe-learning-app__answer-pairs > div,
	.fe-learning-app__summary-actions,
	.fe-learning-app__flashcard-stack-card,
	.fe-learning-app__flashcard-definition,
	.fe-learning-app__flashcard-explanation,
	.fe-learning-app__flashcard-explanation-header,
	.fe-learning-app__flashcard-media .fe-learning-app__media-zoom,
	.fe-learning-app__flashcard-rate,
	.fe-learning-app__flashcard-skip,
	.fe-learning-app__quiz-feedback,
	.fe-learning-app__quiz-feedback-grid p,
	.fe-learning-app__answer-row,
	.fe-learning-app__section-check-badge
) {
	background: var(--fe-learning-surface) !important;
	background-color: var(--fe-learning-surface) !important;
	border-color: var(--fe-learning-border) !important;
	color: var(--fe-learning-text) !important;
}

html[data-fe-theme="dark"] .fe-learning-app :is(
	.fe-learning-app__filter-card,
	.fe-learning-app__progress,
	.fe-learning-app__progress-stat,
	.fe-learning-app__question-statement,
	.fe-learning-app__question-parts,
	.fe-learning-app__meta-chip,
	.fe-learning-app__tag,
	.fe-learning-app--quiz .fe-learning-app__meta-row span,
	.fe-learning-app__option strong,
	.fe-learning-app__answer-index,
	.fe-learning-app__memory-tip,
	.fe-learning-app__flashcard-explanation .fe-learning-app__memory-tip
) {
	background: var(--fe-learning-surface-soft) !important;
	background-color: var(--fe-learning-surface-soft) !important;
	border-color: var(--fe-learning-border) !important;
	color: var(--fe-learning-text) !important;
}

html[data-fe-theme="dark"] .fe-learning-app :is(
	.fe-learning-app h2,
	.fe-learning-app h3,
	.fe-learning-module-card__title,
	.fe-learning-app__question-text,
	.fe-learning-app__summary-stat strong,
	.fe-learning-app__answer-title,
	.fe-learning-app__session-back,
	.fe-learning-app__session-menu summary,
	.fe-learning-app__session-header .fe-learning-app__counter,
	.fe-learning-app__dashboard-help summary,
	.fe-learning-app__explanation-details summary
) { color: var(--fe-text-strong) !important; }

/* Keep answer backgrounds in sync with text when the dark palette changes. */
html[data-fe-theme="dark"] .fe-learning-app .fe-learning-app__option {
	transition-property: border-color, box-shadow, transform;
}

html[data-fe-theme="dark"] body .fe-learning-page .fe-learning-app .fe-learning-app__mode-card {
	background-color: #1a1c18 !important;
	color: #f2efe9 !important;
	transition-property: border-color, box-shadow, transform;
}

html[data-fe-theme="dark"] body .fe-learning-page .fe-learning-app .fe-learning-app__mode-card strong {
	-webkit-text-fill-color: #f2efe9;
	color: #f2efe9 !important;
}

html[data-fe-theme="dark"] .fe-learning-app :is(
	.fe-learning-app__muted,
	.fe-learning-app__config-section-head p,
	.fe-learning-app__filter-card-head p,
	.fe-learning-app__mode-card small,
	.fe-learning-module-card__description,
	.fe-learning-app__progress-stat span,
	.fe-learning-app__selection-summary span,
	.fe-learning-app__session-header .fe-learning-app__scope-label,
	.fe-learning-app__answer-time,
	.fe-learning-app__review-empty,
	.fe-learning-app__keyboard-hint,
	.fe-learning-app__flashcard-swipe-hint,
	.fe-learning-app__flashcard-help,
	.fe-learning-app__flashcard-hint
) { color: var(--fe-learning-muted) !important; }

html[data-fe-theme="dark"] .fe-learning-app :is(.fe-learning-app__option, .fe-learning-app__button--secondary, .fe-learning-app__button--ghost, .fe-learning-app__media-zoom) {
	background: var(--fe-learning-surface) !important;
	background-color: var(--fe-learning-surface) !important;
	border-color: var(--fe-learning-border) !important;
	color: var(--fe-learning-text) !important;
}

html[data-fe-theme="dark"] .fe-learning-app :is(
	.fe-learning-app__option:hover,
	.fe-learning-app__option:focus-visible,
	.fe-learning-app__mode-card:hover,
	.fe-learning-app__mode-card:focus-visible,
	.fe-learning-app__chip:hover,
	.fe-learning-app__chip:focus-visible,
	.fe-learning-app__review-filter:hover,
	.fe-learning-app__flashcard-rate:hover,
	.fe-learning-app__session-menu button:hover,
	.fe-learning-app__session-menu button:focus-visible
) {
	background: var(--fe-surface-hover) !important;
	border-color: var(--fe-learning-orange) !important;
	color: var(--fe-text-strong) !important;
}

html[data-fe-theme="dark"] .fe-learning-app :is(
	.fe-learning-app__mode-card.is-selected,
	.fe-learning-app__mode-card[aria-pressed="true"],
	.fe-learning-app__chip.is-selected,
	.fe-learning-app__chip[aria-pressed="true"],
	.fe-learning-app__option.is-selected
) {
	background: var(--fe-learning-orange-soft) !important;
	border-color: var(--fe-learning-orange) !important;
	color: var(--fe-text-strong) !important;
}

html[data-fe-theme="dark"] .fe-learning-app :is(.fe-learning-app__chip:disabled, .fe-learning-app__chip.is-disabled) {
	background: var(--fe-surface-sunken) !important;
	border-color: var(--fe-border) !important;
	color: var(--fe-text-disabled) !important;
}

html[data-fe-theme="dark"] .fe-learning-app :is(.fe-learning-app__option.is-correct, .fe-learning-app__option.is-missed) {
	background: var(--fe-success-bg) !important;
	border-color: var(--fe-success-border) !important;
	color: var(--fe-success-text) !important;
}

html[data-fe-theme="dark"] .fe-learning-app .fe-learning-app__option.is-incorrect {
	background: var(--fe-error-bg) !important;
	border-color: var(--fe-error-border) !important;
	color: var(--fe-error-text) !important;
}

html[data-fe-theme="dark"] .fe-learning-app .fe-learning-app__flashcard-rate .fe-learning-app__rating-mark {
	background: var(--fe-surface-sunken);
	border-color: currentColor;
}
html[data-fe-theme="dark"] .fe-learning-app .fe-learning-app__flashcard-rate--unknown .fe-learning-app__rating-mark { color: #ffb7b0; }
html[data-fe-theme="dark"] .fe-learning-app .fe-learning-app__flashcard-rate--hard .fe-learning-app__rating-mark { color: #ffd08a; }
html[data-fe-theme="dark"] .fe-learning-app .fe-learning-app__flashcard-rate--known .fe-learning-app__rating-mark { color: #82e5ac; }
html[data-fe-theme="dark"] .fe-learning-app .fe-learning-app__flashcard-rate--easy .fe-learning-app__rating-mark { color: #a3f0c4; }

html[data-fe-theme="dark"] .fe-learning-app .fe-learning-app__quiz-feedback.fe-learning-app__feedback--success {
	background: #123c28 !important;
	border-color: #51bc80 !important;
	border-top-color: #73df9f !important;
	color: #e4ffed !important;
}

html[data-fe-theme="dark"] .fe-learning-app .fe-learning-app__quiz-feedback.fe-learning-app__feedback--success .fe-learning-app__quiz-feedback-grid p {
	background: #0e3322 !important;
	border-color: #3a9566 !important;
	color: #e4ffed !important;
}

html[data-fe-theme="dark"] .fe-learning-app .fe-learning-app__quiz-feedback.fe-learning-app__feedback--success :is(.fe-learning-app__feedback-status, strong, span) {
	color: #e4ffed !important;
}

html[data-fe-theme="dark"] .fe-learning-app :is(.fe-learning-app__flashcard-flip-face, .fe-learning-app__flashcard-flip-face--back) {
	background: linear-gradient(145deg, var(--fe-surface-raised), var(--fe-learning-surface)) !important;
	border-color: var(--fe-learning-border) !important;
	color: var(--fe-learning-text) !important;
}

html[data-fe-theme="dark"] .fe-learning-app .fe-learning-app__flashcard-answer {
	background: #1a1c18 !important;
	border-color: #5f493e !important;
	color: #f2efe9 !important;
}

html[data-fe-theme="dark"] .fe-learning-app .fe-learning-app__flashcard-answer :is(p, li, strong, span) {
	color: inherit !important;
}

html[data-fe-theme="dark"] .fe-learning-app :is(.fe-learning-app__dashboard-hero, .fe-learning-app__summary-hero) {
	background: linear-gradient(135deg, #22231f, #171815) !important;
	border: 1px solid var(--fe-learning-border);
}

html[data-fe-theme="dark"] .fe-learning-app :is(.fe-learning-app__dashboard-hero p, .fe-learning-app__summary-hero p, .fe-learning-app__summary-score span) {
	color: var(--fe-brand-muted) !important;
}

html[data-fe-theme="dark"] .fe-learning-app :is(.fe-learning-app__filters-cta, .fe-learning-app__session-action-bar) {
	box-shadow: 0 -6px 18px rgba(0, 0, 0, .42) !important;
}

html[data-fe-theme="dark"] body .fe-learning-page .fe-learning-app :is(.fe-learning-app__filters-cta, .fe-learning-app__session-action-bar) {
	background: #1a1c18 !important;
	background-color: #1a1c18 !important;
	border-color: #5f493e !important;
	color: #f2efe9 !important;
}

html[data-fe-theme="dark"] .fe-learning-app :is(
	.fe-learning-app__section-list button,
	.fe-learning-app__section-list button.is-current,
	.fe-learning-app__section-check-badge,
	.fe-learning-app__note-box--self-check
) {
	background: var(--fe-learning-surface) !important;
	border-color: var(--fe-learning-border) !important;
	color: var(--fe-learning-text) !important;
}

html[data-fe-theme="dark"] .fe-learning-app .fe-learning-app__section-list button.is-current {
	background: var(--fe-learning-orange-soft) !important;
	border-color: var(--fe-learning-orange) !important;
	color: var(--fe-text-strong) !important;
}

html[data-fe-theme="dark"] .fe-learning-app :is(
	.fe-learning-app__note-box--clinical,
	.fe-learning-app__note-box--remember
) {
	color: var(--fe-text-strong) !important;
}

/* Flashcard ratings stay distinct in the dark summary without using fluorescent fills. */
html[data-fe-theme="dark"] .fe-learning-page .fe-learning-app .fe-learning-app__flashcard-rate--hard,
html[data-fe-theme="dark"] .fe-learning-page .fe-learning-app .fe-learning-app__review-filter[data-filter="hard"] {
	background: #2e281d !important;
	background-color: #2e281d !important;
	border-color: #80613a !important;
	color: #f2cf98 !important;
}

html[data-fe-theme="dark"] .fe-learning-page .fe-learning-app .fe-learning-app__flashcard-rate--known,
html[data-fe-theme="dark"] .fe-learning-page .fe-learning-app .fe-learning-app__review-filter[data-filter="known"] {
	background: #1b3429 !important;
	background-color: #1b3429 !important;
	border-color: #4d8d69 !important;
	color: #c1ead4 !important;
}

html[data-fe-theme="dark"] .fe-learning-page .fe-learning-app .fe-learning-app__flashcard-rate--easy,
html[data-fe-theme="dark"] .fe-learning-page .fe-learning-app .fe-learning-app__review-filter[data-filter="easy"] {
	background: #1b4030 !important;
	background-color: #1b4030 !important;
	border-color: #5a9f78 !important;
	color: #dff6e8 !important;
}

html[data-fe-theme="dark"] .fe-learning-page .fe-learning-app .fe-learning-app__review-filter:is([data-summary-filter="hard"], [data-summary-filter="known"], [data-summary-filter="easy"])[aria-pressed="true"] {
	box-shadow: inset 0 0 0 1px currentColor;
}

html[data-fe-theme="dark"] .fe-learning-page .fe-learning-app .fe-learning-app__flashcard-rate--hard .fe-learning-app__rating-mark,
html[data-fe-theme="dark"] .fe-learning-page .fe-learning-app .fe-learning-app__flashcard-rate--known .fe-learning-app__rating-mark,
html[data-fe-theme="dark"] .fe-learning-page .fe-learning-app .fe-learning-app__flashcard-rate--easy .fe-learning-app__rating-mark {
	background: color-mix(in srgb, currentColor 14%, #161815) !important;
	border-color: currentColor;
	color: inherit;
}

html[data-fe-theme="dark"] .fe-learning-page .fe-learning-app .fe-learning-app__flashcard-rate kbd {
	background: #141613 !important;
	border-color: #8e7c70;
	box-shadow: none;
	color: #f2efe9 !important;
	font-weight: 800;
	text-shadow: none;
}

/* Quiet learning surfaces: status and hierarchy do the work, not decorative bars. */
.fe-learning-app__session-shell {
	margin-top: 24px;
}

.fe-learning-app__session-scroll {
	padding-top: clamp(28px, 4vw, 44px);
}

.fe-learning-app__session-header .fe-learning-app__counter {
	align-items: flex-end;
	display: flex;
	flex-direction: column;
	gap: 2px;
	line-height: 1.1;
}

.fe-learning-app__counter-score {
	color: var(--fe-learning-muted);
	font-size: .68rem;
	font-weight: 700;
}

.fe-learning-app .fe-learning-app__question--quiz::before,
.fe-learning-app .fe-learning-app__flashcard-flip-face::before {
	display: none;
}

.fe-learning-app :is(
	.fe-learning-app__question-parts,
	.fe-learning-app__explanation-fact,
	.fe-learning-app__flashcard-fit .fe-learning-app__flashcard-answer,
	.fe-learning-app__flashcard-explanation
) {
	border: 1px solid var(--fe-learning-border) !important;
	border-left: 1px solid var(--fe-learning-border) !important;
}

.fe-learning-app :is(
	.fe-learning-app__option.is-selected,
	.fe-learning-app__option.is-correct,
	.fe-learning-app__option.is-missed,
	.fe-learning-app__option.is-incorrect
) {
	box-shadow: none !important;
}

.fe-learning-app--quiz .fe-learning-app__quiz-feedback {
	border-top-width: 1px !important;
	margin-top: 18px;
}

.fe-learning-app--quiz .fe-learning-app__quiz-feedback-grid p {
	background: transparent !important;
	border: 0 !important;
	padding: 4px 0;
}

.fe-learning-app--quiz .fe-learning-app__quiz-feedback-grid strong {
	display: block;
	margin-top: 3px;
}

.fe-learning-app--quiz .fe-learning-app__option strong {
	background: transparent !important;
	border: 0;
	border-radius: 0;
	flex: 0 0 auto;
	height: auto;
	min-width: 1.5em;
}

.fe-learning-app .fe-learning-app__explanation {
	border-top: 0 !important;
	margin-top: 16px;
	padding-top: 0;
}

.fe-learning-app .fe-learning-app__explanation h3,
.fe-learning-app .fe-learning-app__flashcard-explanation-header {
	font-size: .82rem;
	letter-spacing: .02em;
	text-transform: none;
}

.fe-learning-app .fe-learning-app__flashcard-explanation {
	border-radius: 10px;
	margin-top: 16px;
}

.fe-learning-app .fe-learning-app__flashcard-explanation-header {
	background: transparent !important;
	color: var(--fe-learning-text) !important;
	cursor: pointer;
	min-height: 44px;
	padding: 10px 14px;
}

.fe-learning-app .fe-learning-app__flashcard-explanation-body {
	border-top: 1px solid var(--fe-learning-border);
	box-sizing: border-box;
	min-width: 0;
	padding: 12px 14px 16px;
}

.fe-learning-app .fe-learning-app__flashcard-explanation .fe-learning-app__explanation {
	margin: 0;
	padding: 0;
}

.fe-learning-app .fe-learning-app__flashcard-explanation .fe-learning-app__memory-tip {
	margin: 10px 0 0;
}

.fe-learning-app .fe-learning-app__flashcard-fit {
	font-size: clamp(1.05rem, 1.35vw, 1.15rem);
	line-height: 1.5;
}

.fe-learning-app .fe-learning-app__flashcard-fit :is(
	.fe-learning-app__question-text,
	.fe-learning-app__flashcard-answer
) {
	font-size: 1em;
	font-weight: 750;
	line-height: inherit;
}

.fe-learning-app .fe-learning-app__flashcard-explanation-header {
	font-size: .9rem;
	font-weight: 800;
}

.fe-learning-app .fe-learning-app__flashcard-explanation-header::after {
	display: none;
}

.fe-learning-app .fe-learning-app__flashcard-explanation .fe-learning-app__explanation p {
	color: var(--fe-learning-text);
	font-size: 1rem;
	line-height: 1.6;
}

html[data-fe-theme="dark"] .fe-learning-app :is(
	.fe-learning-app__question-parts,
	.fe-learning-app__explanation-fact,
	.fe-learning-app__flashcard-fit .fe-learning-app__flashcard-answer,
	.fe-learning-app__flashcard-explanation
) {
	background: var(--fe-learning-surface-soft) !important;
	border-color: var(--fe-learning-border) !important;
}

html[data-fe-theme="dark"] .fe-learning-app .fe-learning-app__quiz-feedback.fe-learning-app__feedback--success {
	background: #123c28 !important;
	border-color: #51bc80 !important;
	border-top-color: #51bc80 !important;
}

html[data-fe-theme="dark"] .fe-learning-app .fe-learning-app__quiz-feedback.fe-learning-app__feedback--error {
	background: var(--fe-error-bg) !important;
	border-color: var(--fe-error-border) !important;
	border-top-color: var(--fe-error-border) !important;
}

html[data-fe-theme="dark"] .fe-learning-app .fe-learning-app__quiz-feedback-grid p {
	background: none !important;
	background-color: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	color: inherit !important;
}

html[data-fe-theme="dark"] .fe-learning-app--quiz .fe-learning-app__quiz-feedback.fe-learning-app__feedback--error .fe-learning-app__quiz-feedback-grid p {
	background: none !important;
	background-color: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

html[data-fe-theme="dark"] .fe-learning-app .fe-learning-app__quiz-feedback :is(
	.fe-learning-app__explanation-fact,
	.fe-learning-app__memory-tip,
	.fe-learning-app__option-feedback
) {
	background: transparent !important;
	border-color: currentColor !important;
}

@media (min-width: 701px) {
	body.fe-learning-view-quiz .fe-learning-page {
		padding-bottom: 104px;
	}

	.fe-learning-app--quiz .fe-learning-app__session-shell {
		grid-template-rows: auto auto auto;
		height: auto;
		max-width: 980px;
		min-height: 0;
		overflow: visible;
	}

	.fe-learning-app--quiz .fe-learning-app__session-scroll {
		min-height: 0;
		overflow: visible;
		scrollbar-gutter: auto;
	}

	.fe-learning-app--swipe-active .fe-learning-app__session-shell {
		height: auto;
		max-width: 1120px;
		min-height: min(760px, calc(100vh - 180px));
		overflow: visible;
	}

	.fe-learning-app--swipe-active .fe-learning-app__session-scroll {
		overflow: visible;
	}

	.fe-learning-app--quiz .fe-learning-app__question--quiz.has-media .fe-learning-app__media {
		margin-top: 36px;
	}

	.fe-learning-app--quiz .fe-learning-app__session-action-bar {
		position: static;
		transform: none;
		width: 100%;
	}

	.fe-learning-app--swipe-active .fe-learning-app__session-action-bar {
		bottom: 16px;
		position: sticky;
	}
}

@media (max-width: 700px), (max-height: 500px) and (pointer: coarse) {
	body.fe-learning-focus-mode .fe-learning-app__session-shell {
		margin-top: 0;
	}

	body.fe-learning-focus-mode .fe-learning-app__session-scroll {
		padding-top: 18px;
	}
}

@media (max-width: 700px) {
	body.fe-learning-focus-mode.fe-learning-view-quiz .fe-learning-page,
	body.fe-learning-focus-mode.fe-learning-view-quiz .fe-learning-page__app,
	body.fe-learning-focus-mode.fe-learning-view-quiz .fe-learning-page__inner,
	body.fe-learning-focus-mode.fe-learning-view-quiz .fe-learning-app {
		height: auto;
		overflow: visible;
	}

	body.fe-learning-focus-mode.fe-learning-view-quiz .fe-learning-app__session-shell {
		grid-template-rows: auto auto auto;
		height: auto;
		overflow: visible;
	}

	body.fe-learning-focus-mode.fe-learning-view-quiz .fe-learning-app__session-scroll {
		overflow: visible;
	}
}

/* Let long flashcard text determine card height; the session owns vertical scrolling. */
.fe-learning-app__session-shell .fe-learning-app__flashcard-flip-face { min-width: 0; }
.fe-learning-app__session-shell .fe-learning-app__flashcard-scroll {
	display: block;
	flex: 0 0 auto;
	min-height: auto;
	overflow: visible;
}
.fe-learning-app__flashcard-flip-face--back .fe-learning-app__flashcard-scroll {
	align-content: center;
	display: grid;
	flex: 1 0 auto;
}
.fe-learning-app__session-shell .fe-learning-app__flashcard-fit { max-width: 100%; overflow-wrap: anywhere; width: 100%; }
.fe-learning-app__session-shell .fe-learning-app__flashcard-fit .fe-learning-app__flashcard-answer {
	box-sizing: border-box;
	max-width: 100%;
	overflow-wrap: anywhere;
	width: 100%;
}
.fe-learning-app__session-shell .fe-learning-app__flashcard-explanation { overflow-wrap: anywhere; }

@media (max-width: 700px) {
	.fe-learning-app__summary-score {
		height: auto;
		min-height: 96px;
		width: min(100%, 180px);
	}
}

/* The focus-mode canvas is continuous; the question is not a square surface. */
.fe-learning-app--browser.fe-learning-app--quiz .fe-learning-app__question--quiz,
html[data-fe-theme="dark"] .fe-learning-app--browser.fe-learning-app--quiz .fe-learning-app__question--quiz {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}
/* Keep sticky quiz chrome opaque without introducing a second surface color. */
.fe-learning-app--browser.fe-learning-app--quiz :is(.fe-learning-app__session-header, .fe-learning-app__session-action-bar),
html[data-fe-theme="dark"] .fe-learning-app--browser.fe-learning-app--quiz :is(.fe-learning-app__session-header, .fe-learning-app__session-action-bar) {
    background: var(--fe-learning-bg) !important;
    background-color: var(--fe-learning-bg) !important;
    box-shadow: none !important;
}

/* Pair text with every interactive fill; light-theme hover text cannot be reused here. */
html[data-fe-theme="dark"] .fe-learning-page .fe-learning-app .fe-learning-app__button:not(.fe-learning-app__button--secondary):not(.fe-learning-app__button--ghost):not(.fe-learning-app__button--danger):not(.fe-learning-app__flashcard-rate) {
    background: var(--fe-learning-orange);
    border-color: var(--fe-learning-orange);
    color: #21150f;
}
html[data-fe-theme="dark"] .fe-learning-page .fe-learning-app .fe-learning-app__button:not(.fe-learning-app__button--secondary):not(.fe-learning-app__button--ghost):not(.fe-learning-app__button--danger):not(.fe-learning-app__flashcard-rate):is(:hover, :focus-visible, :active) {
    background: var(--fe-learning-orange-dark);
    border-color: var(--fe-learning-orange-dark);
    color: #21150f;
}
html[data-fe-theme="dark"] .fe-learning-page .fe-learning-app :is(.fe-learning-app__button--secondary, .fe-learning-app__button--ghost, .fe-learning-app__flashcard-skip):is(:hover, :focus-visible, :active) {
    background: var(--fe-surface-hover, #22231f) !important;
    border-color: var(--fe-learning-orange) !important;
    color: var(--fe-learning-text) !important;
}
html[data-fe-theme="dark"] .fe-learning-page .fe-learning-app .fe-learning-app__button--danger {
    background: #612b29;
    border-color: #ffb7b0;
    color: #fff0ee;
}
html[data-fe-theme="dark"] .fe-learning-page .fe-learning-app .fe-learning-app__button--danger:is(:hover, :focus-visible, :active) {
    background: #773632;
    border-color: #ffb7b0;
    color: #fff0ee;
}
html[data-fe-theme="dark"] .fe-learning-page .fe-learning-app .fe-learning-app__flashcard-rate:is(:hover, :focus-visible, :active) {
    border-color: currentColor !important;
    box-shadow: inset 0 0 0 1px currentColor;
}
html[data-fe-theme="dark"] .fe-learning-app :is(button, a, summary):focus-visible {
    outline: 3px solid var(--fe-learning-orange);
    outline-offset: 3px;
}
/* The sticky bar stays opaque but shares the page canvas, without a glowing strip. */
html[data-fe-theme="dark"] body .fe-learning-page .fe-learning-app .fe-learning-app__session-action-bar {
    background: var(--fe-learning-bg) !important;
    background-color: var(--fe-learning-bg) !important;
    box-shadow: none !important;
}

html[data-fe-theme="dark"] .fe-learning-page .fe-learning-app .fe-learning-app__button[disabled]:not(.fe-learning-app__flashcard-rate) {
    background: #2a2c27 !important;
    border-color: #65584f !important;
    color: #c8bdb4 !important;
    opacity: 1;
}
