/* Mobile-only frontend overrides for SAT tests and course embeds. */
.sat-course-mobile-panel-toggle {
	display: none;
}

@media (max-width: 900px) {
	.ielts-frontend-shell,
	.ielts-reading-test-shell,
	.ielts-full-shell,
	.ielts-writing-shell,
	.ielts-speaking-shell {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100% !important;
		margin-inline: 0 !important;
		border-left: 0 !important;
		border-right: 0 !important;
		border-radius: 0 !important;
	}

	body.ielts-lms-embed-body .ielts-frontend-shell,
	body.ielts-lms-embed-body .ielts-reading-test-shell,
	body.ielts-lms-embed-body .ielts-full-shell,
	body.ielts-lms-embed-body .ielts-writing-shell,
	body.ielts-lms-embed-body .ielts-speaking-shell {
		padding: 0 !important;
		border: 0 !important;
	}

	.ielts-reading-test-shell.ielts-sat-rw-shell {
		--ielts-mobile-footer-height: 54px !important;
		--ielts-mobile-palette-space: 184px;
		overflow: hidden !important;
	}

	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-reading-test-form {
		box-sizing: border-box;
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
		height: var(--ielts-mobile-available-height, 100svh) !important;
		height: var(--ielts-mobile-available-height, 100dvh) !important;
		min-height: var(--ielts-mobile-available-height, 100svh) !important;
		min-height: var(--ielts-mobile-available-height, 100dvh) !important;
		max-height: var(--ielts-mobile-available-height, 100svh) !important;
		max-height: var(--ielts-mobile-available-height, 100dvh) !important;
		overflow: hidden !important;
		background: #d3dae5 !important;
	}

	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-reading-topbar {
		box-sizing: border-box;
		grid-template-columns: minmax(82px, 1fr) 38px 38px minmax(48px, auto) minmax(82px, auto) !important;
		grid-template-areas: "title tool fullscreen time finish" !important;
		align-items: center !important;
		gap: 6px !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
		padding: 6px 8px !important;
	}

	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-sat-rw-top-left,
	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-sat-rw-top-center,
	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-sat-rw-top-right {
		display: contents !important;
	}

	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-sat-rw-subline,
	.ielts-reading-test-shell.ielts-sat-rw-shell [data-action="toggle-directions"],
	.ielts-reading-test-shell.ielts-sat-rw-shell [data-action="open-reference"],
	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-sat-rw-more-wrap {
		display: none !important;
	}

	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-sat-rw-title {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		grid-area: title;
		min-width: 0 !important;
		max-width: 100%;
		width: 100%;
		min-height: 34px;
		padding: 5px 8px;
		border-radius: 999px;
		background: #ffffff;
		box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
		font-size: 11px !important;
		line-height: 1.05;
		font-weight: 800;
		text-align: center;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-sat-rw-link-btn,
	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-reading-part-btn {
		min-height: 28px !important;
		padding: 4px 10px !important;
		font-size: 12px !important;
		border-radius: 999px !important;
	}

	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-sat-rw-time {
		grid-area: time;
		justify-self: center;
		font-size: 13px !important;
		font-weight: 800;
		line-height: 1;
		white-space: nowrap;
	}

	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-sat-rw-header-toggle {
		display: none !important;
	}

	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-sat-rw-util-btn {
		flex: 0 0 auto;
		min-width: 34px !important;
		min-height: 34px !important;
		padding: 0 7px !important;
		border-radius: 12px !important;
		font-size: 12px !important;
		white-space: nowrap;
	}

	.ielts-reading-test-shell.ielts-sat-rw-shell [data-action="open-calculator"],
	.ielts-reading-test-shell.ielts-sat-rw-shell [data-action="toggle-annotate"] {
		grid-area: tool;
		justify-self: stretch;
		width: 100% !important;
		padding: 0 !important;
	}

	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-reading-topbar [data-action="toggle-fullscreen"] {
		grid-area: fullscreen;
		justify-self: stretch;
		position: relative;
		width: 100% !important;
		min-width: 34px !important;
		padding: 0 !important;
		color: transparent !important;
		font-size: 0 !important;
		overflow: hidden;
	}

	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-reading-topbar [data-action="toggle-fullscreen"]::before {
		content: "";
		display: block;
		width: 18px;
		height: 18px;
		margin: auto;
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3H3v5M16 3h5v5M8 21H3v-5M16 21h5v-5'/%3E%3Cpath d='M3 3l7 7M21 3l-7 7M3 21l7-7M21 21l-7-7'/%3E%3C/svg%3E");
		background-repeat: no-repeat;
		background-position: center;
		background-size: 18px 18px;
	}

	.ielts-reading-test-shell.ielts-sat-rw-shell [data-role="finish-button"] {
		grid-area: finish;
		justify-self: stretch;
		width: 100% !important;
		min-width: 0 !important;
		padding-inline: 8px !important;
		font-size: 12px !important;
	}

	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-sat-rw-util-label {
		display: none !important;
	}

	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-reading-test-main {
		box-sizing: border-box;
		display: block !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
		height: auto !important;
		min-height: 0 !important;
		padding: 10px 10px calc(var(--ielts-mobile-footer-height) + 12px + env(safe-area-inset-bottom)) !important;
		overflow: auto !important;
		overflow-x: hidden !important;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
	}

	.ielts-reading-test-shell.ielts-sat-rw-shell.is-mobile-palette-open .ielts-reading-test-main {
		padding-bottom: calc(var(--ielts-mobile-footer-height) + var(--ielts-mobile-palette-space) + 18px + env(safe-area-inset-bottom)) !important;
	}

	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-reading-pane,
	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-reading-pane-left,
	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-reading-pane-right,
	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-reading-question-item,
	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-reading-answer-area,
	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-reading-answer-option,
	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-reading-choice-text {
		box-sizing: border-box;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}

	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-reading-pane-left,
	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-reading-pane-right {
		max-height: none !important;
		border: 0 !important;
		overflow: visible !important;
	}

	.ielts-sat-rw-shell[id^="ielts-listening-test-app-"] .ielts-reading-pane-left {
		display: none !important;
	}

	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-reading-divider {
		display: none !important;
	}

	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-sat-rw-stimulus-text,
	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-reading-choice-text,
	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-reading-question-rich {
		white-space: normal !important;
		overflow-wrap: anywhere;
		word-break: break-word;
	}

	.ielts-reading-test-shell.ielts-sat-rw-shell img,
	.ielts-reading-test-shell.ielts-sat-rw-shell svg,
	.ielts-reading-test-shell.ielts-sat-rw-shell iframe,
	.ielts-writing-shell img,
	.ielts-speaking-shell img,
	.ielts-speaking-shell video,
	.ielts-speaking-shell iframe {
		max-width: 100% !important;
		height: auto !important;
	}

	.ielts-reading-test-shell.ielts-sat-rw-shell table,
	.ielts-writing-shell table,
	.ielts-speaking-shell table {
		display: block;
		width: 100% !important;
		max-width: 100% !important;
		overflow-x: auto;
	}

	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-reading-footer {
		position: fixed !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		z-index: 40;
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
		align-items: center;
		gap: 7px !important;
		padding: 7px 10px calc(7px + env(safe-area-inset-bottom)) !important;
		box-shadow: 0 -10px 22px rgba(15, 23, 42, 0.14);
	}

	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-sat-rw-user {
		display: none !important;
	}

	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-sat-rw-question-indicator {
		grid-column: 2;
		justify-self: center;
		min-height: 38px !important;
		min-width: 58px !important;
		padding: 0 12px !important;
		border-radius: 999px !important;
		font-size: 13px !important;
		white-space: nowrap;
	}

	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-reading-nav-buttons {
		display: contents !important;
	}

	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-reading-nav-buttons .ielts-lms-btn {
		min-width: 0 !important;
		width: 100% !important;
		min-height: 38px !important;
		padding: 0 14px !important;
		font-size: 14px !important;
		white-space: nowrap;
	}

	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-reading-nav-buttons [data-action="prev-question"] {
		grid-column: 1;
	}

	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-reading-nav-buttons [data-action="next-question"] {
		grid-column: 3;
	}

	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-sat-rw-palette-drawer {
		position: fixed !important;
		left: 0 !important;
		right: 0 !important;
		bottom: calc(var(--ielts-mobile-footer-height) + env(safe-area-inset-bottom)) !important;
		z-index: 41;
		max-height: min(34svh, 184px);
		max-height: min(34dvh, 184px);
		padding: 10px 10px 12px !important;
		border-top: 1px solid #94a3b8;
		border-radius: 18px 18px 0 0;
		background: #eef2f8;
		box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.18);
		overflow: auto;
		-webkit-overflow-scrolling: touch;
	}

	.ielts-full-shell.is-test-visible {
		height: var(--ielts-full-stage-height, 100svh) !important;
		height: var(--ielts-full-stage-height, 100dvh) !important;
		min-height: var(--ielts-full-stage-height, 100svh) !important;
		min-height: var(--ielts-full-stage-height, 100dvh) !important;
		max-height: var(--ielts-full-stage-height, 100svh) !important;
		max-height: var(--ielts-full-stage-height, 100dvh) !important;
		overflow: hidden !important;
		padding: 0 !important;
	}

	.ielts-full-topbar {
		grid-template-columns: minmax(0, 1fr) auto !important;
		grid-template-areas: "title timer" "nav nav" "actions actions";
		align-items: center !important;
		gap: 8px !important;
		padding: 8px 10px !important;
	}

	.ielts-full-title {
		grid-area: title;
		justify-content: flex-start !important;
		height: auto !important;
		min-height: 34px;
		padding: 6px 10px;
		font-size: 12px !important;
		white-space: normal !important;
		overflow-wrap: anywhere;
	}

	.ielts-full-nav {
		grid-area: nav;
		justify-content: flex-start !important;
		flex-wrap: nowrap !important;
		overflow-x: auto;
		padding-bottom: 2px;
		scrollbar-width: none;
	}

	.ielts-full-nav::-webkit-scrollbar,
	.ielts-full-top-actions::-webkit-scrollbar {
		display: none;
	}

	.ielts-full-top-actions {
		grid-area: actions;
		justify-content: flex-start !important;
		overflow-x: auto;
		padding-bottom: 2px;
	}

	.ielts-full-timer {
		grid-area: timer;
		justify-self: end;
		height: 34px !important;
		font-size: 12px;
		white-space: nowrap;
	}

	.ielts-full-topbar .ielts-full-fullscreen-btn {
		display: none !important;
	}

	.ielts-full-main {
		height: var(--ielts-full-main-height, calc(100svh - 132px)) !important;
		height: var(--ielts-full-main-height, calc(100dvh - 132px)) !important;
		min-height: 0 !important;
		overflow: hidden !important;
	}

	.ielts-full-pane-embed,
	.ielts-full-embed,
	.ielts-full-embed-frame {
		height: 100% !important;
		min-height: 0 !important;
	}

	.ielts-writing-topbar,
	.ielts-speaking-topbar {
		grid-template-columns: 1fr !important;
		gap: 8px;
		padding: 8px;
	}

	.ielts-writing-center,
	.ielts-speaking-center,
	.ielts-writing-part-nav,
	.ielts-speaking-part-nav {
		flex-wrap: wrap !important;
		justify-content: flex-start !important;
	}

	.ielts-writing-task-split,
	.ielts-speaking-part-body {
		display: block !important;
		height: auto !important;
		min-height: 0 !important;
		overflow: visible !important;
	}

	.ielts-writing-pane-left,
	.ielts-writing-pane-right {
		max-width: none !important;
		border: 0 !important;
	}

	.ielts-writing-divider {
		display: none !important;
	}

	.ielts-writing-answer,
	.ielts-speaking-answer {
		min-height: 180px !important;
		font-size: 16px !important;
	}

	.ielts-speaking-recorder-pane {
		margin-top: 12px;
	}

	.ielts-speaking-mic-btn {
		width: 132px !important;
		height: 132px !important;
	}

	.ielts-frontend-topbar,
	.ielts-frontend-main,
	.ielts-frontend-footer {
		grid-template-columns: 1fr !important;
	}

	.ielts-frontend-main {
		height: auto !important;
		min-height: 0 !important;
		overflow: visible !important;
	}

	.ielts-frontend-pane-left,
	.ielts-frontend-pane-right {
		border: 0 !important;
		max-height: none !important;
		overflow: visible !important;
	}

	.ielts-frontend-divider {
		display: none !important;
	}

	.ielts-reading-test-shell .ielts-reading-intro,
	.ielts-reading-test-shell .ielts-reading-intro.is-content,
	.ielts-reading-test-shell .ielts-reading-intro.is-compact,
	.ielts-reading-test-shell .ielts-reading-intro.is-hero-only,
	body.ielts-lms-embed-body .ielts-reading-test-shell .ielts-reading-intro,
	body.ielts-lms-embed-body .ielts-reading-test-shell .ielts-reading-intro.is-content,
	body.ielts-lms-embed-body .ielts-reading-test-shell .ielts-reading-intro.is-compact,
	body.ielts-lms-embed-body .ielts-reading-test-shell .ielts-reading-intro.is-hero-only,
	.ielts-full-intro,
	.ielts-full-intro.is-compact,
	.ielts-full-intro.is-summary-only,
	body.ielts-lms-embed-body .ielts-full-intro,
	body.ielts-lms-embed-body .ielts-full-intro.is-compact,
	body.ielts-lms-embed-body .ielts-full-intro.is-summary-only {
		grid-template-columns: minmax(64px, 88px) minmax(0, 1fr) !important;
		grid-template-rows: auto auto minmax(0, auto) !important;
		grid-template-areas: "logo actions" "title title" "content content" !important;
		gap: 10px 12px !important;
		align-items: center !important;
		padding: 12px !important;
		min-height: 0 !important;
		max-height: none !important;
		overflow: visible !important;
	}

	.ielts-reading-test-shell .ielts-reading-intro-logo,
	.ielts-reading-test-shell .ielts-reading-intro.is-compact .ielts-reading-intro-logo,
	body.ielts-lms-embed-body .ielts-reading-test-shell .ielts-reading-intro-logo,
	body.ielts-lms-embed-body .ielts-reading-test-shell .ielts-reading-intro.is-compact .ielts-reading-intro-logo,
	.ielts-full-intro-logo,
	.ielts-full-intro.is-compact .ielts-full-intro-logo,
	body.ielts-lms-embed-body .ielts-full-intro-logo,
	body.ielts-lms-embed-body .ielts-full-intro.is-compact .ielts-full-intro-logo {
		grid-area: logo !important;
		width: min(24vw, 88px) !important;
		height: auto !important;
		min-height: 0 !important;
		justify-self: start !important;
		margin: 0 !important;
	}

	.ielts-reading-test-shell .ielts-reading-intro-title,
	.ielts-reading-test-shell .ielts-reading-intro.is-compact .ielts-reading-intro-title,
	body.ielts-lms-embed-body .ielts-reading-test-shell .ielts-reading-intro-title,
	body.ielts-lms-embed-body .ielts-reading-test-shell .ielts-reading-intro.is-compact .ielts-reading-intro-title,
	.ielts-full-intro-title,
	.ielts-full-intro.is-compact .ielts-full-intro-title,
	body.ielts-lms-embed-body .ielts-full-intro-title,
	body.ielts-lms-embed-body .ielts-full-intro.is-compact .ielts-full-intro-title {
		grid-area: title !important;
		min-width: 0 !important;
		max-width: 100% !important;
		width: 100% !important;
		font-size: clamp(20px, 6vw, 28px) !important;
		white-space: normal !important;
		overflow-wrap: anywhere;
	}

	.ielts-reading-test-shell .ielts-reading-intro-actions,
	.ielts-reading-test-shell .ielts-reading-intro.is-compact .ielts-reading-intro-actions,
	body.ielts-lms-embed-body .ielts-reading-test-shell .ielts-reading-intro-actions,
	body.ielts-lms-embed-body .ielts-reading-test-shell .ielts-reading-intro.is-compact .ielts-reading-intro-actions,
	.ielts-full-intro-actions,
	.ielts-full-intro.is-compact .ielts-full-intro-actions,
	body.ielts-lms-embed-body .ielts-full-intro-actions,
	body.ielts-lms-embed-body .ielts-full-intro.is-compact .ielts-full-intro-actions {
		display: grid !important;
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) !important;
		align-items: stretch !important;
		justify-content: stretch !important;
		justify-self: stretch !important;
		gap: 8px !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
	}

	.ielts-reading-test-shell .ielts-reading-start-btn,
	.ielts-reading-test-shell .ielts-reading-fullscreen-btn,
	body.ielts-lms-embed-body .ielts-reading-test-shell .ielts-reading-start-btn,
	body.ielts-lms-embed-body .ielts-reading-test-shell .ielts-reading-fullscreen-btn,
	.ielts-full-shell .ielts-full-start,
	.ielts-full-shell .ielts-full-fullscreen-btn,
	body.ielts-lms-embed-body .ielts-full-shell .ielts-full-start,
	body.ielts-lms-embed-body .ielts-full-shell .ielts-full-fullscreen-btn {
		width: 100% !important;
		min-width: 0 !important;
		max-width: 100% !important;
		min-height: 46px !important;
		padding: 8px 10px !important;
		border-radius: 16px !important;
		font-size: clamp(14px, 4vw, 17px) !important;
		line-height: 1.08 !important;
		white-space: normal !important;
		overflow-wrap: anywhere;
		text-align: center;
	}

	.ielts-reading-test-shell .ielts-reading-start-btn,
	body.ielts-lms-embed-body .ielts-reading-test-shell .ielts-reading-start-btn,
	.ielts-full-shell .ielts-full-start,
	body.ielts-lms-embed-body .ielts-full-shell .ielts-full-start {
		order: 1 !important;
	}

	.ielts-reading-test-shell .ielts-reading-fullscreen-btn,
	body.ielts-lms-embed-body .ielts-reading-test-shell .ielts-reading-fullscreen-btn,
	.ielts-full-shell .ielts-full-fullscreen-btn,
	body.ielts-lms-embed-body .ielts-full-shell .ielts-full-fullscreen-btn {
		order: 2 !important;
		font-size: clamp(13px, 3.7vw, 16px) !important;
	}

	.ielts-reading-test-shell .ielts-reading-intro-content,
	body.ielts-lms-embed-body .ielts-reading-test-shell .ielts-reading-intro-content,
	body .ielts-full-shell .ielts-full-intro-content,
	body.ielts-lms-embed-body .ielts-full-shell .ielts-full-intro-content {
		width: 100% !important;
		min-width: 0 !important;
	}

	.ielts-reading-test-shell .ielts-reading-intro-summary,
	body.ielts-lms-embed-body .ielts-reading-test-shell .ielts-reading-intro-summary,
	body .ielts-full-shell .ielts-full-intro-summary,
	body.ielts-lms-embed-body .ielts-full-shell .ielts-full-intro-summary {
		width: 100% !important;
		min-width: 0 !important;
	}

	.ielts-reading-test-shell .ielts-reading-intro .ielts-reading-intro-metrics,
	.ielts-reading-test-shell .ielts-reading-intro.is-compact .ielts-reading-intro-metrics,
	body.ielts-lms-embed-body .ielts-reading-test-shell .ielts-reading-intro .ielts-reading-intro-metrics,
	body.ielts-lms-embed-body .ielts-reading-test-shell .ielts-reading-intro.is-compact .ielts-reading-intro-metrics,
	body .ielts-full-shell .ielts-full-intro .ielts-full-intro-metrics,
	body .ielts-full-shell .ielts-full-intro.is-compact .ielts-full-intro-metrics,
	body.ielts-lms-embed-body .ielts-full-shell .ielts-full-intro .ielts-full-intro-metrics,
	body.ielts-lms-embed-body .ielts-full-shell .ielts-full-intro.is-compact .ielts-full-intro-metrics {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		justify-content: stretch !important;
		align-items: stretch !important;
		gap: 8px !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	.ielts-reading-test-shell .ielts-reading-intro .ielts-reading-intro-metric,
	.ielts-reading-test-shell .ielts-reading-intro.is-compact .ielts-reading-intro-metric,
	body.ielts-lms-embed-body .ielts-reading-test-shell .ielts-reading-intro .ielts-reading-intro-metric,
	body.ielts-lms-embed-body .ielts-reading-test-shell .ielts-reading-intro.is-compact .ielts-reading-intro-metric,
	body .ielts-full-shell .ielts-full-intro .ielts-full-intro-metric,
	body .ielts-full-shell .ielts-full-intro.is-compact .ielts-full-intro-metric,
	body.ielts-lms-embed-body .ielts-full-shell .ielts-full-intro .ielts-full-intro-metric,
	body.ielts-lms-embed-body .ielts-full-shell .ielts-full-intro.is-compact .ielts-full-intro-metric {
		display: grid !important;
		align-content: center !important;
		justify-items: center !important;
		min-width: 0 !important;
		min-height: 82px !important;
		padding: 10px 8px !important;
		border-radius: 18px !important;
		text-align: center !important;
	}

	.ielts-reading-test-shell .ielts-reading-intro .ielts-reading-intro-metric span,
	body.ielts-lms-embed-body .ielts-reading-test-shell .ielts-reading-intro .ielts-reading-intro-metric span,
	body .ielts-full-shell .ielts-full-intro .ielts-full-intro-metric span,
	body.ielts-lms-embed-body .ielts-full-shell .ielts-full-intro .ielts-full-intro-metric span {
		font-size: clamp(9px, 2.45vw, 11px) !important;
		letter-spacing: .06em !important;
		line-height: 1.1 !important;
		white-space: normal !important;
		overflow-wrap: anywhere;
	}

	.ielts-reading-test-shell .ielts-reading-intro .ielts-reading-intro-metric strong,
	.ielts-reading-test-shell .ielts-reading-intro.is-compact .ielts-reading-intro-metric strong,
	.ielts-reading-test-shell .ielts-reading-intro.is-compact .ielts-reading-intro-metric.is-questions strong,
	body.ielts-lms-embed-body .ielts-reading-test-shell .ielts-reading-intro .ielts-reading-intro-metric strong,
	body.ielts-lms-embed-body .ielts-reading-test-shell .ielts-reading-intro.is-compact .ielts-reading-intro-metric strong,
	body.ielts-lms-embed-body .ielts-reading-test-shell .ielts-reading-intro.is-compact .ielts-reading-intro-metric.is-questions strong,
	body .ielts-full-shell .ielts-full-intro .ielts-full-intro-metric strong,
	body .ielts-full-shell .ielts-full-intro.is-compact .ielts-full-intro-metric strong,
	body.ielts-lms-embed-body .ielts-full-shell .ielts-full-intro .ielts-full-intro-metric strong,
	body.ielts-lms-embed-body .ielts-full-shell .ielts-full-intro.is-compact .ielts-full-intro-metric strong {
		font-size: clamp(18px, 5vw, 24px) !important;
		line-height: 1.08 !important;
		white-space: normal !important;
		overflow-wrap: anywhere;
	}

	.sat-course-page--tabbed {
		min-height: 0 !important;
		border-left: 0 !important;
		border-right: 0 !important;
	}

	.sat-course-tab-shell {
		display: grid !important;
		grid-template-columns: 1fr !important;
		min-height: 0 !important;
	}

	.sat-course-tab-sidebar {
		border-right: 0 !important;
		border-bottom: 1px solid var(--sat-course-line, #e7eaf2);
		overflow: visible !important;
	}

	.sat-course-tab-progress {
		padding: 18px 16px 16px !important;
	}

	.sat-course-tab-progress h2 {
		margin: 0 86px 16px 0 !important;
		font-size: clamp(22px, 6vw, 30px) !important;
		line-height: 1.15 !important;
		overflow-wrap: anywhere;
	}

	.sat-course-tab-back {
		top: 14px !important;
		right: 14px !important;
		min-height: 34px !important;
		padding: 0 13px !important;
		font-size: 12px !important;
	}

	.sat-course-mobile-panel-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		min-height: 42px;
		margin-top: 14px;
		padding: 0 16px;
		border: 1px solid rgba(255, 255, 255, 0.36);
		border-radius: 999px;
		background: rgba(255, 255, 255, 0.16);
		box-shadow: 0 12px 26px rgba(47, 16, 111, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2);
		color: #ffffff;
		font: inherit;
		font-size: 13px;
		font-weight: 850;
		line-height: 1;
		cursor: pointer;
		backdrop-filter: blur(12px);
	}

	.sat-course-mobile-panel-toggle::before {
		content: "";
		width: 18px;
		height: 18px;
		margin-right: 8px;
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E");
		background-position: center;
		background-repeat: no-repeat;
		background-size: 18px 18px;
	}

	.sat-course-tab-sidebar .sat-course-tab-group-title,
	.sat-course-tab-sidebar .sat-course-tab-list,
	.sat-course-tab-sidebar:not(.is-panel-open) .sat-course-tab-group-title,
	.sat-course-tab-sidebar:not(.is-panel-open) .sat-course-tab-list {
		display: none !important;
	}

	.sat-course-tab-sidebar.is-panel-open .sat-course-tab-group-title {
		display: flex !important;
	}

	.sat-course-tab-sidebar.is-panel-open .sat-course-tab-list {
		display: block !important;
	}

	.sat-course-tab-group-title {
		min-height: 46px !important;
		padding: 12px 14px !important;
	}

	.sat-course-tab-list {
		max-height: min(46svh, 360px) !important;
		max-height: min(46dvh, 360px) !important;
		overflow: auto !important;
		-webkit-overflow-scrolling: touch;
	}

	.sat-course-tab-button {
		min-height: 56px !important;
		padding: 11px 14px !important;
	}

	.sat-course-tab-main {
		overflow: visible !important;
	}

	.sat-course-content-frame {
		border-left: 0 !important;
		border-right: 0 !important;
	}

	.sat-course-content-frame iframe {
		width: 100% !important;
		height: calc(100svh - 178px) !important;
		height: calc(100dvh - 178px) !important;
		min-height: 520px !important;
		aspect-ratio: auto !important;
	}

	body.sat-course-iframe-fullscreen-active {
		overflow: hidden !important;
		touch-action: none;
	}

	.sat-course-content-frame.is-mobile-fullscreen {
		position: fixed !important;
		inset: 0 !important;
		z-index: 2147483647 !important;
		width: 100vw !important;
		height: 100svh !important;
		height: 100dvh !important;
		min-height: 100svh !important;
		min-height: 100dvh !important;
		margin: 0 !important;
		border: 0 !important;
		border-radius: 0 !important;
		background: #f8fafc !important;
		box-shadow: none !important;
		overflow: hidden !important;
	}

	.sat-course-content-frame.is-mobile-fullscreen iframe {
		display: block !important;
		width: 100% !important;
		height: 100svh !important;
		height: 100dvh !important;
		min-height: 100svh !important;
		min-height: 100dvh !important;
		border: 0 !important;
		border-radius: 0 !important;
	}

	.sat-course-tab-resources {
		margin: 10px;
	}
}

@media (max-width: 560px) {
	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-sat-rw-topbar,
	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-reading-topbar {
		grid-template-columns: minmax(68px, 1fr) 32px 32px minmax(42px, auto) minmax(68px, auto) !important;
		grid-template-areas: "title tool fullscreen time finish" !important;
		gap: 5px !important;
		padding-inline: 6px !important;
	}

	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-sat-rw-title {
		min-height: 32px;
		font-size: 9px !important;
		padding-inline: 6px;
	}

	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-sat-rw-time {
		font-size: 11px !important;
	}

	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-reading-footer {
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
	}

	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-reading-nav-buttons {
		display: contents !important;
	}

	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-reading-nav-buttons .ielts-lms-btn {
		min-width: 0 !important;
	}

	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-sat-rw-util-btn {
		min-width: 32px !important;
		min-height: 32px !important;
		border-radius: 10px !important;
	}

	.ielts-reading-test-shell.ielts-sat-rw-shell [data-role="finish-button"] {
		padding-inline: 6px !important;
		font-size: 10px !important;
	}

	.ielts-reading-test-shell.ielts-sat-rw-shell .ielts-reading-topbar [data-action="toggle-fullscreen"]::before {
		width: 16px;
		height: 16px;
		background-size: 16px 16px;
	}

	.ielts-full-topbar {
		grid-template-columns: 1fr !important;
		grid-template-areas: "title" "timer" "nav" "actions";
	}

	.ielts-full-timer {
		justify-self: stretch;
		justify-content: center;
	}

	.ielts-writing-result-actions,
	.ielts-speaking-result-actions,
	.ielts-writing-footer-nav,
	.ielts-speaking-footer-nav {
		display: grid !important;
		grid-template-columns: 1fr;
	}

	.ielts-writing-start,
	.ielts-speaking-start,
	.ielts-writing-footer-nav .ielts-lms-btn,
	.ielts-speaking-footer-nav .ielts-lms-btn {
		width: 100% !important;
		min-width: 0 !important;
	}

	.sat-course-tab-progress h2 {
		margin-right: 78px !important;
		font-size: 24px !important;
	}

	.sat-course-content-frame iframe {
		height: calc(100svh - 162px) !important;
		height: calc(100dvh - 162px) !important;
		min-height: 500px !important;
	}
}
