body.rx-platform.rx-course-player-page {
	min-height: 100vh;
	overflow-y: auto;
	padding-bottom: 0;
	background: var(--rx-bg);
	color: var(--rx-text);
}

body.rx-platform.rx-course-player-page .rx-course-player__topbar {
	position: relative;
	z-index: 20;
	border-bottom: 1px solid var(--rx-border);
	background: var(--rx-surface);
}

body.rx-platform.rx-course-player-page .rx-course-player__topbar-inner {
	display: grid;
	grid-template-columns: auto auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 20px;
	min-height: 72px;
}

body.rx-platform.rx-course-player-page .rx-course-player__brand {
	flex: 0 0 auto;
}

body.rx-platform.rx-course-player-page .rx-course-player__back {
	white-space: nowrap;
}

body.rx-platform.rx-course-player-page .rx-course-player__title {
	min-width: 0;
	margin: 0;
	overflow-wrap: anywhere;
}

body.rx-platform.rx-course-player-page .rx-course-player__theme {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

body.rx-platform.rx-course-player-page #rx-main {
	min-width: 0;
	min-height: calc(100vh - 72px);
	padding: 0;
}

/* LearnPress owns this workspace's inner seams; RX restores the outer document flow. */
body.rx-platform.rx-course-player-page #popup-course.rx-course-player__workspace {
	position: relative;
	top: auto;
	right: auto;
	bottom: auto;
	left: auto;
	z-index: auto;
	min-width: 0;
	max-width: 100%;
	background: var(--rx-bg);
}

/* Provider content remains authoritative; RX owns the player content region. */
body.rx-platform.rx-course-player-page #popup-course #popup-content > #learn-press-content-item {
	width: 100%;
	max-width: 920px;
	margin-inline: auto;
}

body.rx-platform.rx-course-player-page #popup-course #popup-content .content-item-wrap {
	width: 100%;
	max-width: 100%;
	margin-inline: auto;
}

body.rx-platform.rx-course-player-page #popup-course #popup-content .content-item-wrap .course-item-title {
	color: var(--rx-text);
	font-family: var(--rx-font-heading);
	font-size: var(--rx-type-section);
	font-weight: var(--rx-font-weight-heading);
	letter-spacing: var(--rx-tracking-display);
	line-height: var(--rx-leading-heading);
}

/* LearnPress owns quiz state and behavior; RX maps its text roles within the player quiz item. */
body.rx-platform.rx-course-player-page #popup-course #popup-content #content-item-quiz .quiz-content,
body.rx-platform.rx-course-player-page #popup-course #popup-content #content-item-quiz .quiz-intro-item__title,
body.rx-platform.rx-course-player-page #popup-course #popup-content #content-item-quiz .quiz-result .result-grade .result-require,
body.rx-platform.rx-course-player-page #popup-course #popup-content #content-item-quiz .quiz-result .result-statistic .result-statistic-field > span {
	color: var(--rx-text-supporting);
}

body.rx-platform.rx-course-player-page #popup-course #popup-content #content-item-quiz .quiz-intro-item__content,
body.rx-platform.rx-course-player-page #popup-course #popup-content #content-item-quiz .quiz-questions .question-title,
body.rx-platform.rx-course-player-page #popup-course #popup-content #content-item-quiz .quiz-questions .question-content,
body.rx-platform.rx-course-player-page #popup-course #popup-content #content-item-quiz .quiz-questions .answer-option .option-title,
body.rx-platform.rx-course-player-page #popup-course #popup-content #content-item-quiz .quiz-result .result-statistic .result-statistic-field > p,
body.rx-platform.rx-course-player-page #popup-course #popup-content #content-item-quiz .questions-pagination .nav-links .page-numbers {
	color: var(--rx-text);
}

body.rx-platform.rx-course-player-page #popup-course #popup-content #content-item-quiz .quiz-questions .question-title .edit-link a,
body.rx-platform.rx-course-player-page #popup-course #popup-content #content-item-quiz .questions-pagination .nav-links .page-numbers.current,
body.rx-platform.rx-course-player-page #popup-course #popup-content #content-item-quiz .questions-pagination .nav-links .page-numbers:hover {
	color: var(--rx-text-link);
}

body.rx-platform.rx-course-player-page #popup-course #popup-content #content-item-quiz .quiz-questions .question-title .edit-link a:hover,
body.rx-platform.rx-course-player-page #popup-course #popup-content #content-item-quiz .quiz-questions .question-title .edit-link a:focus-visible,
body.rx-platform.rx-course-player-page #popup-course #popup-content #content-item-quiz .questions-pagination .nav-links .page-numbers:focus-visible {
	color: var(--rx-text-link-hover);
}

body.rx-platform.rx-course-player-page #popup-course #popup-content .course-material__title,
body.rx-platform.rx-course-player-page #popup-course #popup-content .rx-lesson-resources > h3,
body.rx-platform.rx-course-player-page #popup-course #popup-content #reply-title.comment-reply-title {
	color: var(--rx-text);
	font-family: var(--rx-font-heading);
	font-size: var(--rx-type-section);
	font-weight: var(--rx-font-weight-heading);
	letter-spacing: var(--rx-tracking-display);
	line-height: var(--rx-leading-heading);
}

body.rx-platform.rx-course-player-page #popup-course #popup-content .lp-material-file-name {
	color: var(--rx-text);
	font-family: var(--rx-font-body);
}

body.rx-platform.rx-course-player-page #popup-course #popup-content .lp-material-file-type,
body.rx-platform.rx-course-player-page #popup-course #popup-content .lp-material-file-size,
body.rx-platform.rx-course-player-page #popup-course #popup-content .comment-notes,
body.rx-platform.rx-course-player-page #popup-course #popup-content .logged-in-as,
body.rx-platform.rx-course-player-page #popup-course #popup-content #commentform label {
	color: var(--rx-text-supporting);
	font-family: var(--rx-font-body);
}

body.rx-platform.rx-course-player-page #popup-course #popup-content #comments :is(.wrapper-comment, .comment-right, .comment-extra-info, .content-comment) {
	font-family: var(--rx-font-body);
}

body.rx-platform.rx-course-player-page #popup-course #popup-content #comments .comment-extra-info {
	color: var(--rx-text-supporting);
}

/* LearnPress completion overlay: provider behavior remains authoritative. */
body.rx-platform.rx-course-player-page .lp-overlay {
	background: color-mix(in srgb, var(--rx-primary) 72%, transparent);
}

body.rx-platform.rx-course-player-page .lp-overlay .lp-modal-dialog {
	padding: 24px;
}

body.rx-platform.rx-course-player-page .lp-overlay .lp-modal-content {
	width: min(100%, 520px);
	max-width: 520px;
	border: 1px solid var(--rx-border);
	border-radius: var(--rx-radius-lg);
	background: var(--rx-surface-elevated);
	box-shadow: var(--rx-shadow);
	color: var(--rx-text);
}

body.rx-platform.rx-course-player-page .lp-overlay .lp-modal-header {
	padding: 20px 24px;
	border-bottom: 1px solid var(--rx-border);
	background: var(--rx-surface);
}

body.rx-platform.rx-course-player-page .lp-overlay .lp-modal-header h3 {
	color: var(--rx-text);
	font-family: var(--rx-font-heading);
	font-size: var(--rx-type-section);
	font-weight: var(--rx-font-weight-heading);
	letter-spacing: var(--rx-tracking-display);
	line-height: var(--rx-leading-heading);
}

body.rx-platform.rx-course-player-page .lp-overlay .lp-modal-body .main-content {
	max-height: 500px;
	padding: 20px 24px;
	color: var(--rx-text-supporting);
	font-family: var(--rx-font-body);
	font-size: var(--rx-type-body);
	line-height: var(--rx-leading-body);
}

body.rx-platform.rx-course-player-page .lp-overlay .lp-modal-body .main-content .pd-2em {
	padding: 0;
}

body.rx-platform.rx-course-player-page .lp-overlay .lp-modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	padding: 16px 24px;
	background: var(--rx-bg-alt);
}

body.rx-platform.rx-course-player-page #popup-course #popup-content .lp-material-file-link a,
body.rx-platform.rx-course-player-page #popup-course #popup-content .edit-content {
	color: var(--rx-text-link);
	font-family: var(--rx-font-body);
}

body.rx-platform.rx-course-player-page #popup-course #popup-content .lp-material-file-link a:hover,
body.rx-platform.rx-course-player-page #popup-course #popup-content .lp-material-file-link a:focus-visible,
body.rx-platform.rx-course-player-page #popup-course #popup-content .edit-content:hover,
body.rx-platform.rx-course-player-page #popup-course #popup-content .edit-content:focus-visible {
	color: var(--rx-text-link-hover);
}

body.rx-platform.rx-course-player-page #popup-course #popup-content .lp-material-file-link a i {
	color: currentColor;
}

body.rx-platform.rx-course-player-page #popup-course #popup-content .learn-press-message.success {
	border-color: var(--rx-border);
	background: color-mix(in srgb, var(--rx-status-success) 12%, var(--rx-surface));
	color: var(--rx-status-success);
}

body.rx-platform.rx-course-player-page #popup-course #popup-content .lp-button.completed[disabled] {
	border-color: var(--rx-border);
	background: color-mix(in srgb, var(--rx-status-success) 12%, var(--rx-surface));
	color: var(--rx-status-success);
	box-shadow: none;
	cursor: default;
}

body.rx-platform.rx-course-player-page #popup-course #popup-footer {
	margin: 0;
	border-top: 0;
	background: transparent;
	box-shadow: none;
}

body.rx-platform.rx-course-player-page #popup-course #popup-footer .course-item-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	padding: 16px clamp(20px, 4vw, 56px);
}

body.rx-platform.rx-course-player-page #popup-course #popup-footer .course-item-nav > .prev,
body.rx-platform.rx-course-player-page #popup-course #popup-footer .course-item-nav > .next {
	display: flex;
	flex: 0 1 auto;
	align-items: center;
	min-width: 0;
	width: auto;
	float: none;
	line-height: normal;
}

body.rx-platform.rx-course-player-page #popup-course #popup-footer .course-item-nav > .prev a,
body.rx-platform.rx-course-player-page #popup-course #popup-footer .course-item-nav > .next a {
	width: auto;
}

body.rx-platform.rx-course-player-page #popup-course #popup-footer .course-item-nav > .prev a::before,
body.rx-platform.rx-course-player-page #popup-course #popup-footer .course-item-nav > .next a::after {
	display: inline-block;
	color: currentColor;
	font: inherit;
}

body.rx-platform.rx-course-player-page #popup-course #popup-footer .course-item-nav > .prev a::before {
	margin-inline-end: 8px;
	content: "←";
}

body.rx-platform.rx-course-player-page #popup-course #popup-footer .course-item-nav > .next a::after {
	margin-inline-start: 8px;
	content: "→";
}

body.rx-platform.rx-course-player-page #popup-course #popup-footer .course-item-nav .course-item-nav__name,
body.rx-platform.rx-course-player-page #popup-course #popup-footer .course-item-nav > .prev::before,
body.rx-platform.rx-course-player-page #popup-course #popup-footer .course-item-nav > .next::before {
	display: none;
}

body.rx-platform.rx-course-player-page #popup-course #popup-header {
	position: relative;
}

body.rx-platform.rx-course-player-page #popup-course #popup-header #sidebar-toggle {
	position: absolute;
	inset-inline-start: 14px;
	z-index: 2;
	width: 32px;
	height: 32px;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

body.rx-platform.rx-course-player-page #popup-course #popup-header #sidebar-toggle + .rx-course-player__curriculum-icon {
	position: relative;
	z-index: 1;
	width: 32px;
	height: 32px;
	margin-inline-end: 10px;
	font-size: var(--rx-icon-size);
	pointer-events: none;
}

body.rx-platform.rx-course-player-page #popup-course #popup-header #sidebar-toggle:focus-visible + .rx-course-player__curriculum-icon {
	border-radius: var(--rx-radius-sm);
	box-shadow: var(--rx-focus);
}

@media (min-width: 1101px) {
	body.rx-platform.rx-course-player-page #popup-course #popup-header {
		display: flex;
		min-height: 56px;
		padding: 0 16px;
		border-bottom-color: var(--rx-border);
		background: var(--rx-surface);
		color: var(--rx-text);
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-header .course-title {
		display: none;
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-header .popup-header__inner {
		width: auto;
		min-width: 0;
		flex: 1;
		padding: 0;
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-header .items-progress {
		gap: 10px;
		color: var(--rx-text-muted);
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-header .number {
		padding: 0;
		color: var(--rx-text-muted);
		font-family: var(--rx-font-body);
		font-size: var(--rx-type-caption);
		font-weight: var(--rx-font-weight-medium);
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-header .learn-press-progress {
		width: 132px;
		height: 6px;
		border-radius: 999px;
		background: var(--rx-bg-alt);
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-header .learn-press-progress__active {
		height: 100%;
		border-radius: inherit;
		background: var(--rx-accent);
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-header .back-course {
		margin: 0;
		padding: 8px;
		border-radius: var(--rx-radius-sm);
		background: transparent;
		color: var(--rx-text-muted);
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-header .back-course:hover,
	body.rx-platform.rx-course-player-page #popup-course #popup-header .back-course:focus-visible {
		background: var(--rx-bg-alt);
		color: var(--rx-text);
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-sidebar {
		width: auto;
		background: var(--rx-surface);
		box-shadow: inset -1px 0 0 var(--rx-border);
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-sidebar .search-course {
		height: auto;
		min-height: 56px;
		padding: 10px 14px;
		border-bottom: 1px solid var(--rx-border);
		background: var(--rx-surface);
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-sidebar .search-course input {
		min-width: 0;
		min-height: 38px;
		padding: 8px 38px 8px 12px;
		border: 1px solid var(--rx-border);
		border-radius: var(--rx-radius-sm);
		background: var(--rx-surface-field);
		color: var(--rx-text);
		font: var(--rx-font-weight-regular) var(--rx-type-body-sm) / var(--rx-leading-body) var(--rx-font-body);
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-sidebar .search-course input::placeholder {
		color: var(--rx-text-placeholder);
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-sidebar .search-course input:focus-visible {
		outline: 2px solid var(--rx-accent);
		outline-offset: 2px;
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-sidebar .search-course button {
		color: var(--rx-icon-accent);
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-sidebar .lp-course-curriculum {
		padding: 14px;
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-sidebar .lp-course-curriculum__title,
	body.rx-platform.rx-course-player-page #popup-course #popup-sidebar .course-curriculum-info,
	body.rx-platform.rx-course-player-page #popup-course #popup-sidebar .course-section__description {
		display: none;
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-sidebar .course-sections {
		border: 0;
		border-radius: 0;
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-sidebar .course-section-header {
		min-height: 48px;
		padding: 10px 12px;
		background: var(--rx-bg-alt);
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-sidebar .course-section__title {
		font-size: var(--rx-type-body-sm);
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-sidebar .course-item__link {
		min-height: 48px;
		padding: 9px 12px;
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-sidebar .course-item.current .course-item__link {
		background: color-mix(in srgb, var(--rx-accent) 10%, var(--rx-surface));
		box-shadow: inset 3px 0 0 var(--rx-accent);
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-sidebar .course-item__right {
		gap: 6px;
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-content {
		background: var(--rx-bg);
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-content .content-item-wrap .course-item-title {
		margin: 0 0 24px;
	}
}

@media (min-width: 1101px) {
	body.rx-platform.rx-course-player-page #popup-course.rx-course-player__workspace {
		display: grid;
		grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
		grid-template-rows: auto minmax(0, 1fr) auto;
		min-height: calc(100vh - 72px);
		background: var(--rx-bg);
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-header {
		grid-column: 1 / -1;
		grid-row: 1;
		position: relative;
		top: auto;
		right: auto;
		bottom: auto;
		left: auto;
		width: auto;
		z-index: auto;
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-sidebar {
		grid-column: 1;
		grid-row: 2 / -1;
		min-width: 0;
		width: auto;
		min-height: 0;
		box-shadow: none;
		transform: none;
		flex: 0 0 auto;
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-content {
		grid-column: 2;
		grid-row: 2;
		min-width: 0;
		min-height: 0;
		margin: 0;
		padding: 32px clamp(20px, 4vw, 56px) 48px;
		overflow: visible;
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-footer {
		grid-column: 2;
		grid-row: 3;
		position: relative;
		right: auto;
		bottom: auto;
		left: auto;
		width: auto;
		max-width: none;
	}
}

@media (min-width: 1101px) {
	body.rx-platform.rx-course-player-page #popup-course #popup-header #sidebar-toggle,
	body.rx-platform.rx-course-player-page #popup-course #popup-header #sidebar-toggle + .rx-course-player__curriculum-icon {
		position: absolute;
		width: 1px;
		height: 1px;
		margin: -1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
		border: 0;
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-header #sidebar-toggle + .rx-course-player__curriculum-icon {
		display: none;
	}
}

@media (max-width: 1100px) {
	body.rx-platform.rx-course-player-page .rx-course-player__topbar-inner {
		grid-template-columns: auto auto;
		gap: 12px;
		min-height: 66px;
		padding-inline: 16px;
	}

	body.rx-platform.rx-course-player-page .rx-course-player__title {
		grid-column: 1 / -1;
		grid-row: 2;
		padding-bottom: 16px;
	}

	body.rx-platform.rx-course-player-page #rx-main {
		min-height: 0;
	}

	body.rx-platform.rx-course-player-page #popup-course.rx-course-player__workspace {
		min-height: 0;
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-header {
		position: relative;
		top: auto;
		right: auto;
		bottom: auto;
		left: auto;
		width: auto;
		z-index: auto;
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-content {
		margin-top: 0;
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-footer {
		left: 0;
	}
}

@media (min-width: 768px) and (max-width: 1100px) {
	body.rx-platform.rx-course-player-page .rx-course-player__topbar-inner {
		grid-template-columns: auto auto minmax(0, 1fr) auto;
		gap: 14px;
	}

	body.rx-platform.rx-course-player-page .rx-course-player__title {
		grid-column: 3;
		grid-row: 1;
		padding-bottom: 0;
	}

	body.rx-platform.rx-course-player-page #popup-course.rx-course-player__workspace {
		display: flex;
		flex-direction: column;
		min-height: calc(100vh - 72px);
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-header {
		position: relative;
		inset: auto;
		min-height: 52px;
		padding: 0 14px;
		border-bottom-color: var(--rx-border);
		background: var(--rx-surface);
		color: var(--rx-text);
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-header .course-title {
		display: none;
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-header .popup-header__inner {
		width: auto;
		min-width: 0;
		flex: 1;
		padding: 0;
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-header .items-progress {
		gap: 8px;
		color: var(--rx-text-muted);
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-header .number {
		padding: 0;
		color: var(--rx-text-muted);
		font-family: var(--rx-font-body);
		font-size: var(--rx-type-caption);
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-header .learn-press-progress {
		width: 72px;
		height: 5px;
		border-radius: 999px;
		background: var(--rx-bg-alt);
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-header .learn-press-progress__active {
		height: 100%;
		border-radius: inherit;
		background: var(--rx-accent);
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-header .back-course {
		margin: 0;
		padding: 6px;
		border-radius: var(--rx-radius-sm);
		background: transparent;
		color: var(--rx-text-muted);
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-header .back-course:hover,
	body.rx-platform.rx-course-player-page #popup-course #popup-header .back-course:focus-visible {
		background: var(--rx-bg-alt);
		color: var(--rx-text);
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-sidebar .search-course {
		height: auto;
		min-height: 52px;
		padding: 8px 10px;
		border-bottom: 1px solid var(--rx-border);
		background: var(--rx-surface);
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-sidebar .search-course input {
		min-width: 0;
		min-height: 36px;
		padding: 7px 34px 7px 10px;
		border: 1px solid var(--rx-border);
		border-radius: var(--rx-radius-sm);
		background: var(--rx-surface-field);
		color: var(--rx-text);
		font: var(--rx-font-weight-regular) var(--rx-type-body-sm) / var(--rx-leading-body) var(--rx-font-body);
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-sidebar .search-course input::placeholder {
		color: var(--rx-text-placeholder);
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-sidebar {
		position: absolute;
		top: 52px;
		bottom: 0;
		left: 0;
		z-index: 10;
		width: min(390px, 82vw);
		flex: none;
		background: var(--rx-surface);
		box-shadow: var(--rx-shadow);
		transform: translateX(-102%);
		transition: transform var(--rx-transition);
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-sidebar .search-course,
	body.rx-platform.rx-course-player-page #popup-course #popup-sidebar .lp-course-curriculum,
	body.rx-platform.rx-course-player-page #popup-course #popup-sidebar .course-curriculum,
	body.rx-platform.rx-course-player-page #popup-course #popup-sidebar .course-sections,
	body.rx-platform.rx-course-player-page #popup-course #popup-sidebar .course-section,
	body.rx-platform.rx-course-player-page #popup-course #popup-sidebar .course-section__items,
	body.rx-platform.rx-course-player-page #popup-course #popup-sidebar .course-item,
	body.rx-platform.rx-course-player-page #popup-course #popup-sidebar .course-item__link {
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}

	body.rx-platform.rx-course-player-page.lp-sidebar-toggle__open #popup-course #popup-sidebar {
		transform: translateX(0);
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-content {
		width: 100%;
		min-width: 0;
		margin: 0;
		padding: 24px clamp(20px, 4vw, 40px) 40px;
		overflow: visible;
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-footer {
		position: relative;
		inset: auto;
		width: auto;
		max-width: none;
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-footer .course-item-nav {
		padding-inline: clamp(20px, 4vw, 40px);
	}
}

@media (max-width: 767px) {
	body.rx-platform.rx-course-player-page .rx-course-player__topbar-inner {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-rows: auto auto;
		gap: 8px 12px;
		min-height: 66px;
		padding-block: 10px;
	}

	body.rx-platform.rx-course-player-page .rx-course-player__brand {
		grid-column: 1;
		grid-row: 1;
	}

	body.rx-platform.rx-course-player-page .rx-course-player__theme {
		grid-column: 2;
		grid-row: 1;
	}

	body.rx-platform.rx-course-player-page .rx-course-player__back {
		grid-column: 1;
		grid-row: 2;
		justify-self: start;
		padding-inline: 12px;
	}

	body.rx-platform.rx-course-player-page .rx-course-player__title {
		grid-column: 2;
		grid-row: 2;
		align-self: center;
		padding-bottom: 0;
		font-size: var(--rx-type-body-sm);
		line-height: var(--rx-leading-compact);
		text-align: right;
	}

	body.rx-platform.rx-course-player-page #popup-course.rx-course-player__workspace {
		display: flex;
		flex-direction: column;
		min-height: 0;
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-header {
		position: relative;
		inset: auto;
		min-height: 48px;
		padding: 0 10px;
		border-bottom-color: var(--rx-border);
		background: var(--rx-surface);
		color: var(--rx-text);
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-header .course-title {
		display: none;
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-header .popup-header__inner {
		width: auto;
		min-width: 0;
		flex: 1;
		padding: 0;
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-sidebar {
		position: absolute;
		top: 48px;
		bottom: 0;
		left: 0;
		z-index: 10;
		width: min(100%, 360px);
		flex: none;
		background: var(--rx-surface);
		box-shadow: var(--rx-shadow);
		transform: translateX(-102%);
		transition: transform var(--rx-transition);
	}

	body.rx-platform.rx-course-player-page.lp-sidebar-toggle__open #popup-course #popup-sidebar {
		transform: translateX(0);
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-content {
		width: 100%;
		min-width: 0;
		max-width: 100%;
		margin: 0;
		padding: 16px 14px 32px;
		overflow: visible;
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-footer {
		position: relative;
		inset: auto;
		width: auto;
		max-width: none;
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-content .content-item-wrap .course-item-title {
		font-size: var(--rx-type-feature);
		line-height: var(--rx-leading-heading);
		text-align: start;
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-header #sidebar-toggle {
		inset-inline-start: 10px;
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-header #sidebar-toggle + .rx-course-player__curriculum-icon {
		margin-inline-end: 8px;
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-footer .course-item-nav {
		justify-content: space-between;
		padding-inline: 14px;
		flex-direction: row;
		align-items: center;
		gap: 12px;
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-footer .course-item-nav > .prev,
	body.rx-platform.rx-course-player-page #popup-course #popup-footer .course-item-nav > .next {
		flex: 0 1 auto;
		width: auto;
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-footer .course-item-nav > .prev a,
	body.rx-platform.rx-course-player-page #popup-course #popup-footer .course-item-nav > .next a {
		width: auto;
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-footer .course-item-nav[data-nav="next"] {
		justify-content: flex-end;
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-footer .course-item-nav[data-nav="prev"] {
		justify-content: flex-start;
	}
}

@media (max-width: 1100px) {
	body.rx-platform.rx-course-player-page #popup-course #popup-header .items-progress {
		gap: 8px;
		color: var(--rx-text-muted);
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-header .number {
		padding: 0;
		color: var(--rx-text-muted);
		font-family: var(--rx-font-body);
		font-size: var(--rx-type-caption);
		font-weight: var(--rx-font-weight-medium);
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-header .learn-press-progress {
		width: 96px;
		height: 5px;
		border-radius: 999px;
		background: var(--rx-bg-alt);
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-header .learn-press-progress__active {
		height: 100%;
		border-radius: inherit;
		background: var(--rx-accent);
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-header .back-course {
		margin: 0;
		padding: 6px;
		border-radius: var(--rx-radius-sm);
		background: transparent;
		color: var(--rx-text-muted);
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-header .back-course:hover,
	body.rx-platform.rx-course-player-page #popup-course #popup-header .back-course:focus-visible {
		background: var(--rx-bg-alt);
		color: var(--rx-text);
	}
}

@media (max-width: 767px) {
	body.rx-platform.rx-course-player-page #popup-course #popup-content #content-item-quiz .quiz-result > .review-quiz {
		display: block;
		margin: 0 auto 20px;
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-sidebar .search-course {
		height: auto;
		min-height: 52px;
		padding: 8px 10px;
		border-bottom: 1px solid var(--rx-border);
		background: var(--rx-surface);
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-sidebar .search-course input {
		min-width: 0;
		min-height: 36px;
		padding: 7px 34px 7px 10px;
		border: 1px solid var(--rx-border);
		border-radius: var(--rx-radius-sm);
		background: var(--rx-surface-field);
		color: var(--rx-text);
		font: var(--rx-font-weight-regular) var(--rx-type-body-sm) / var(--rx-leading-body) var(--rx-font-body);
	}

	body.rx-platform.rx-course-player-page #popup-course #popup-sidebar .search-course input::placeholder {
		color: var(--rx-text-placeholder);
	}
}

@media (max-width: 480px) {
	body.rx-platform.rx-course-player-page .rx-course-player__topbar-inner {
		padding-inline: 14px;
	}

	body.rx-platform.rx-course-player-page .rx-course-player__back {
		padding-inline: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.rx-platform.rx-course-player-page * {
		scroll-behavior: auto;
	}
}
