/* Inglés Primaria - Standalone dashboard styles */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=Nunito:wght@500;600;700;800&display=swap');

:root {
	--mcer-brand-blue: #2563eb;
	--mcer-brand-blue-dark: #1d4ed8;
	--mcer-brand-blue-light: #dbeafe;
	--mcer-brand-green: #22c55e;
	--mcer-brand-green-dark: #16a34a;
	--mcer-brand-green-light: #dcfce7;
	--mcer-brand-orange: #f97316;
	--mcer-brand-orange-dark: #ea580c;
	--mcer-brand-orange-light: #ffedd5;
	--mcer-brand-sky: #0ea5e9;
	--mcer-brand-teal: #14b8a6;
	--mcer-surface-blue: #eff6ff;
	--mcer-surface-green: #f0fdf4;
	--mcer-surface-mint: #ecfeff;
	--mcer-text-dark: #1e3a8a;
	--mcer-gradient-hero: linear-gradient(135deg, #f97316 0%, #22c55e 45%, #0ea5e9 100%);
	--mcer-gradient-brand: linear-gradient(135deg, #2563eb, #22c55e);
	--mcer-gradient-accent: linear-gradient(135deg, #0ea5e9, #f97316);
}

.mcer-app, .mcer-app * {
	box-sizing: border-box;
}

.mcer-wrap, .mcer-app {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--mcer-text-dark);
	line-height: 1.5;
}

/* Full-width breakout from theme container */
.mcer-fullwidth {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	border-radius: 0;
}

.mcer-app {
	display: flex;
	min-height: 720px;
	background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 40%, #fff7ed 100%);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 24px 64px rgba(30, 64, 175, 0.14);
	margin: 20px 0;
	border: 1px solid rgba(37, 99, 235, 0.12);
}

.mcer-fullwidth.mcer-app {
	margin-top: 0;
	margin-bottom: 0;
	min-height: calc(100vh - 80px);
}

/* Sidebar */
.mcer-sidebar {
	width: 260px;
	background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
	padding: 24px 16px 16px;
	border-right: 2px solid #bfdbfe;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.mcer-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px 24px;
}

.mcer-brand-center {
	justify-content: center;
	padding-bottom: 16px;
}

.mcer-brand-icon {
	width: 44px;
	height: 44px;
	background: linear-gradient(135deg, #2563eb, #f97316);
	color: #fff;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 18px;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
	flex-shrink: 0;
}

.mcer-brand-logo {
	width: 48px;
	height: 48px;
	object-fit: contain;
	border-radius: 10px;
	flex-shrink: 0;
	background: #fff;
	padding: 2px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.mcer-brand-text {
	font-weight: 700;
	font-size: 18px;
	color: #1e3a8a;
}

.mcer-nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1;
}

.mcer-sidebar-footer {
	margin-top: auto;
	padding: 16px 12px 4px;
	border-top: 1px solid #bfdbfe;
}

.mcer-nav-item {
	background: none;
	border: none;
	text-align: left;
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 500;
	color: #64748b;
	cursor: pointer;
	transition: all 0.2s;
	border-left: 3px solid transparent;
}

.mcer-nav-item:hover {
	background: #eff6ff;
	color: #2563eb;
}

.mcer-nav-item.active {
	background: linear-gradient(90deg, #dbeafe, #ffedd5);
	color: #2563eb;
	border-left-color: #f97316;
	font-weight: 600;
}

.mcer-nav-group {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-bottom: 4px;
}

.mcer-nav-group-label {
	padding: 8px 16px 4px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #94a3b8;
	pointer-events: none;
}

.mcer-nav-sub {
	padding-left: 28px;
	font-size: 13px;
}

/* Main */
.mcer-main {
	flex: 1;
	padding: 28px 40px;
	overflow-y: auto;
	background: transparent;
}

.mcer-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 28px;
	gap: 20px;
	flex-wrap: wrap;
}

.mcer-page-title {
	font-size: 24px;
	font-weight: 700;
	margin: 0;
	color: var(--mcer-text-dark);
}

.mcer-page-subtitle {
	margin: 4px 0 0;
	color: #64748b;
	font-size: 14px;
}

.mcer-quota-bars {
	display: flex;
	gap: 20px;
	min-width: 280px;
}

.mcer-quota-item {
	flex: 1;
	font-size: 11px;
	color: #64748b;
}

.mcer-quota-item span {
	display: block;
	margin-bottom: 6px;
	font-weight: 500;
}

.mcer-progress {
	height: 8px;
	background: #e2e8f0;
	border-radius: 99px;
	overflow: hidden;
}

.mcer-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #2563eb, #22c55e);
	border-radius: 99px;
	transition: width 0.4s ease;
}

.mcer-progress-blue {
	background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

/* Cards */
.mcer-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 20px;
}

.mcer-card {
	padding: 24px;
	border-radius: 16px;
	color: #fff;
}

.mcer-card h3 {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 500;
	opacity: 0.9;
}

.mcer-stat {
	font-size: 32px;
	font-weight: 700;
	margin: 0;
}

.mcer-card-purple { background: linear-gradient(135deg, #2563eb, #22c55e); box-shadow: 0 8px 24px rgba(37,99,235,0.3); }
.mcer-card-blue { background: linear-gradient(135deg, #2563eb, #3b82f6); box-shadow: 0 8px 24px rgba(37,99,235,0.3); }
.mcer-card-peach { background: linear-gradient(135deg, #ea580c, #f97316); box-shadow: 0 8px 24px rgba(234,88,12,0.3); }
.mcer-card-amber { background: linear-gradient(135deg, #d97706, #f59e0b); box-shadow: 0 8px 24px rgba(217,119,6,0.3); }
.mcer-card-green { background: linear-gradient(135deg, #059669, #10b981); box-shadow: 0 8px 24px rgba(5,150,105,0.3); }

.mcer-count-hint {
	font-size: 12px;
	font-weight: 500;
	color: #94a3b8;
}

/* Panels */
.mcer-panel {
	background: #fff;
	border-radius: 16px;
	padding: 28px 32px;
	box-shadow: 0 8px 32px rgba(37, 99, 235, 0.08);
	border: 1px solid #bfdbfe;
}

.mcer-tool-panel {
	margin-top: 20px;
	border-color: #bfdbfe;
	background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}

.mcer-dialogue-turns {
	display: grid;
	gap: 10px;
	margin: 16px 0;
}

.mcer-dialogue-turn {
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
}

.mcer-dialogue-turn p {
	margin: 6px 0 0;
	line-height: 1.5;
}

.mcer-dialogue-speaker {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	background: #dbeafe;
	color: #1d4ed8;
}

.mcer-dialogue-preview-options {
	margin: 8px 0 0;
	padding-left: 18px;
}

.mcer-dialogue-preview-options li {
	margin: 4px 0;
}

.mcer-dialogue-wrong {
	margin: 10px 0;
	padding: 14px 16px;
	border-radius: 12px;
	background: #fef2f2;
	border: 2px solid #f87171;
	color: #dc2626;
	font-weight: 800;
	font-size: 1.05em;
	text-align: center;
	letter-spacing: 0.02em;
}

.mcer-dialogue-wrong--v0 {
	background: #fef2f2;
	border-color: #ef4444;
	color: #b91c1c;
}

.mcer-dialogue-wrong--v1 {
	background: #fff7ed;
	border-color: #f97316;
	color: #c2410c;
}

.mcer-dialogue-wrong--v2 {
	background: #fef3c7;
	border-color: #eab308;
	color: #a16207;
}

.mcer-dialogue-wrong--flash {
	animation: mcer-dialogue-wrong-pop 0.55s ease;
}

@keyframes mcer-dialogue-wrong-pop {
	0% {
		transform: scale(0.92);
		opacity: 0.4;
	}
	45% {
		transform: scale(1.04);
		opacity: 1;
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}

.mcer-practice-accessibility {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 12px;
}

#mcer-tab-practice {
	--mcer-practice-font-size: 16px;
	--mcer-practice-font-weight: 400;
}

#mcer-tab-practice .mcer-practice-question h3,
#mcer-tab-practice .mcer-practice-question p,
#mcer-tab-practice .mcer-practice-option,
#mcer-tab-practice .mcer-practice-feedback,
#mcer-tab-practice .mcer-practice-passage-text p,
#mcer-tab-practice .mcer-practice-transcript p,
#mcer-tab-practice .mcer-dialogue-line-text,
#mcer-tab-practice .mcer-dialogue-option,
#mcer-tab-practice .mcer-dialogue-options-title {
	font-size: var(--mcer-practice-font-size);
	font-weight: var(--mcer-practice-font-weight);
}

#mcer-tab-practice .mcer-dialogue-wrong {
	font-size: calc(var(--mcer-practice-font-size) * 1.08);
	font-weight: 800;
}

#mcer-tab-practice .mcer-practice-question h3,
#mcer-tab-practice .mcer-dialogue-options-title {
	font-weight: 700;
}

.mcer-practice-category-bar {
	margin-bottom: 16px;
}

.mcer-dialogue-card {
	padding: 0;
	overflow: hidden;
	background: #fff;
	color: #0f172a;
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.mcer-practice-card.mcer-dialogue-card::after {
	display: none;
}

.mcer-dialogue-card .mcer-hint {
	color: #64748b;
}

.mcer-dialogue-layout {
	display: grid;
	grid-template-columns: minmax(300px, 440px) minmax(0, 0.72fr) minmax(220px, 1fr);
	min-height: 420px;
}

.mcer-dialogue-panel {
	padding: 16px;
}

.mcer-dialogue-panel-image {
	background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
	border-right: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px 16px;
}

.mcer-dialogue-scene-image {
	width: 100%;
	max-width: 400px;
	border-radius: 18px;
	object-fit: cover;
	box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.mcer-dialogue-image-placeholder {
	width: 100%;
	max-width: 360px;
	aspect-ratio: 1;
	border-radius: 18px;
	background: #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 72px;
}

.mcer-dialogue-progress {
	font-size: 12px;
	font-weight: 700;
	color: #2563eb;
	margin-bottom: 8px;
}

.mcer-dialogue-history {
	flex: 1;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-right: 4px;
	max-height: 300px;
}

.mcer-dialogue-line {
	padding: 8px 10px;
	border-radius: 10px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
}

.mcer-dialogue-line--student {
	background: #eff6ff;
	border-color: #bfdbfe;
	margin-left: 8px;
}

.mcer-dialogue-line--character {
	margin-right: 8px;
}

.mcer-dialogue-line--active {
	background: linear-gradient(90deg, #dbeafe, #dbeafe);
	border-color: #c4b5fd;
	box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
	padding: 8px 10px;
}

.mcer-dialogue-line-speaker {
	display: inline-block;
	padding: 2px 7px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 700;
	background: #dbeafe;
	color: #1d4ed8;
}

.mcer-dialogue-line--student .mcer-dialogue-line-speaker {
	background: #dbeafe;
	color: #1d4ed8;
}

.mcer-dialogue-line-text {
	margin: 6px 0 0;
	line-height: 1.4;
	font-size: 15px;
	color: #0f172a;
}

.mcer-dialogue-panel-chat {
	background: #fff;
	border-right: 1px solid #e2e8f0;
	display: flex;
	flex-direction: column;
	min-height: 0;
	padding: 14px 12px;
}

.mcer-dialogue-panel-options {
	background: #f0fdf4;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px;
}

.mcer-dialogue-options-title {
	margin: 0 0 4px;
	font-size: 15px;
	color: #5b21b6;
}

.mcer-dialogue-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mcer-dialogue-option {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid var(--mcer-reading-option-border, #ddd6fe);
	background: var(--mcer-reading-option-bg, #fff);
	color: var(--mcer-reading-option-color, #1e293b);
	text-align: left;
	cursor: pointer;
	transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.mcer-dialogue-option:hover {
	border-color: #3b82f6;
	box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
	transform: translateY(-1px);
}

.mcer-dialogue-option-label {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--mcer-reading-option-letter-bg, #2563eb);
	color: var(--mcer-reading-option-letter-color, #fff);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 13px;
}

.mcer-dialogue-history--final {
	margin: 16px 0;
	max-height: 280px;
	overflow-y: auto;
}

@media (max-width: 900px) {
	.mcer-dialogue-layout {
		grid-template-columns: 1fr;
	}

	.mcer-dialogue-panel-image,
	.mcer-dialogue-panel-chat,
	.mcer-dialogue-panel-options {
		border-right: 0;
		border-bottom: 1px solid #e2e8f0;
	}

	.mcer-dialogue-history {
		max-height: 240px;
	}
}

.mcer-panel h2 {
	margin: 0 0 20px;
	font-size: 18px;
	color: #5b21b6;
	border-bottom: 2px solid #f3e8ff;
	padding-bottom: 12px;
}

.mcer-panel-wide {
	max-width: none;
	width: 100%;
}

.mcer-view-wide .mcer-exam-section {
	width: 100%;
}

.mcer-exam-section h3 {
	color: #2563eb;
	font-size: 16px;
	margin: 0 0 12px;
	padding: 8px 14px;
	background: linear-gradient(90deg, #dbeafe, #dbeafe);
	border-radius: 10px;
	display: inline-block;
}

.mcer-view { display: none; }
.mcer-view.active { display: block; }

/* Forms */
.mcer-form-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
}

.mcer-form-grid label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
	font-weight: 500;
	color: #475569;
}

.mcer-form-grid input,
.mcer-form-grid select,
.mcer-form-grid textarea {
	padding: 10px 14px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	font-size: 14px;
	font-family: inherit;
}

.mcer-form-grid textarea {
	min-height: 80px;
	resize: vertical;
}

.mcer-full { grid-column: 1 / -1; }

.mcer-form-inline {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.mcer-form-inline input {
	padding: 10px 14px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	flex: 1;
	min-width: 140px;
}

/* Buttons */
.mcer-btn {
	padding: 10px 20px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	font-family: inherit;
	transition: all 0.2s;
}

.mcer-btn-primary {
	background: linear-gradient(135deg, #2563eb, #0ea5e9);
	color: #fff;
}

.mcer-btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.mcer-btn-outline {
	background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
	border: 2px solid #c7d2fe;
	color: #4338ca;
}

.mcer-btn-outline:hover {
	background: linear-gradient(180deg, #eef2ff 0%, #e0e7ff 100%);
	border-color: #818cf8;
	color: #312e81;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.18);
}

.mcer-btn-accent {
	background: linear-gradient(135deg, #f97316, #ea580c);
	border: none;
	color: #fff;
	box-shadow: 0 4px 14px rgba(234, 88, 12, 0.28);
}

.mcer-btn-accent:hover {
	background: linear-gradient(135deg, #fb923c, #f97316);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(234, 88, 12, 0.34);
}

.mcer-btn-teal {
	background: linear-gradient(135deg, #14b8a6, #0d9488);
	border: none;
	color: #fff;
	box-shadow: 0 4px 14px rgba(13, 148, 136, 0.24);
}

.mcer-btn-teal:hover {
	background: linear-gradient(135deg, #2dd4bf, #14b8a6);
	color: #fff;
	transform: translateY(-1px);
}

.mcer-btn-success { background: #10b981; color: #fff; }
.mcer-btn-danger { background: #ef4444; color: #fff; }
.mcer-btn-block { width: 100%; }
.mcer-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Tables & lists */
.mcer-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.mcer-table th,
.mcer-table td {
	padding: 12px;
	text-align: left;
	border-bottom: 1px solid #f1f5f9;
}

.mcer-table th {
	font-weight: 600;
	color: #64748b;
	font-size: 12px;
	text-transform: uppercase;
}

.mcer-list-item {
	padding: 16px;
	border: 1px solid #f1f5f9;
	border-radius: 12px;
	margin-bottom: 12px;
	background: #fafbfc;
}

.mcer-list-item h4 {
	margin: 0 0 8px;
	font-size: 15px;
}

.mcer-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 99px;
	font-size: 11px;
	font-weight: 600;
	background: #eff6ff;
	color: #2563eb;
	margin-right: 6px;
}

.mcer-badge-reading { background: #dbeafe; color: #2563eb; }
.mcer-badge-listening { background: #ffedd5; color: #db2777; }
.mcer-badge-practice_listening { background: #dcfce7; color: #15803d; }
.mcer-badge-practice_image_listening { background: #e0f2fe; color: #0369a1; }
.mcer-badge-practice_reading { background: #dbeafe; color: #1d4ed8; }
.mcer-badge-practice_image_reading { background: #fef3c7; color: #b45309; }
.mcer-badge-image_reading { background: #ffedd5; color: #be185d; }

.mcer-app .mcer-image-thumb {
	display: inline-block;
	box-sizing: border-box;
	width: 180px;
	height: 180px;
	min-width: 180px;
	min-height: 180px;
	max-width: 180px;
	max-height: 180px;
	padding: 0;
	margin: 0;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	cursor: zoom-in;
	background: #f8fafc center / cover no-repeat;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
	transition: border-color 0.15s ease, transform 0.15s ease;
	vertical-align: top;
	appearance: none;
	font: inherit;
	text-align: left;
}

.mcer-app button.mcer-image-thumb {
	line-height: 0;
}

.mcer-app .mcer-image-thumb:hover,
.mcer-app .mcer-image-thumb:focus-visible {
	border-color: #2563eb;
	transform: scale(1.02);
	outline: none;
}

.mcer-app .mcer-image-thumb img {
	display: block;
	width: 180px;
	height: 180px;
	min-width: 180px;
	min-height: 180px;
	max-width: 180px;
	max-height: 180px;
	object-fit: cover;
	border: 0;
	margin: 0;
	padding: 0;
}

.mcer-app #mcer-generate-result .mcer-image-thumb,
.mcer-app #mcer-generate-result .mcer-image-thumb img,
.mcer-app #mcer-review-list .mcer-image-thumb,
.mcer-app #mcer-review-list .mcer-image-thumb img,
.mcer-app #mcer-reading-set-list .mcer-image-thumb,
.mcer-app #mcer-reading-set-list .mcer-image-thumb img {
	width: 180px !important;
	height: 180px !important;
	max-width: 180px !important;
	max-height: 180px !important;
}

.mcer-exercise-preview-row {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	margin: 12px 0 16px;
	flex-wrap: wrap;
}

.mcer-exercise-preview-row .mcer-image-thumb {
	flex-shrink: 0;
}

.mcer-modal-image-body {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px 0;
}

.mcer-modal-image-body img {
	max-width: 100%;
	max-height: 72vh;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.mcer-passage-image {
	margin-bottom: 16px;
}
.mcer-badge-muted { background: #f1f5f9; color: #64748b; }
.mcer-badge-danger { background: #fee2e2; color: #b91c1c; }
.mcer-badge-warning { background: #fffbeb; color: #d97706; }
.mcer-text-muted { color: var(--mcer-muted, #64748b); font-size: 0.9rem; margin: 0.75rem 0 1rem; }

.mcer-exam-builder {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	margin: 24px 0;
	width: 100%;
}

.mcer-exam-section {
	width: 100%;
	min-width: 0;
}

.mcer-set-builder {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
	gap: 18px;
	min-height: 420px;
	width: 100%;
	align-items: start;
}

.mcer-teacher-layout {
	display: flex;
	width: 100%;
	min-height: 100vh;
	align-items: stretch;
}

.mcer-set-context {
	max-height: 480px;
	overflow-y: auto;
	border: 2px solid #bfdbfe;
	border-radius: 12px;
	padding: 10px;
	background: linear-gradient(180deg, #f0fdf4, #fff);
	min-width: 0;
}

.mcer-question-picker,
.mcer-set-questions {
	max-height: 480px;
	overflow-y: auto;
	border: 2px solid #bfdbfe;
	border-radius: 12px;
	padding: 14px;
	background: #fff;
	min-width: 0;
}

.mcer-set-list {
	border: none;
	padding: 0;
	background: transparent;
	max-height: none;
	overflow: visible;
}

.mcer-q-picker-hint {
	margin: 0 0 12px;
	font-size: 12px;
}

.mcer-q-body {
	flex: 1;
	min-width: 0;
}

.mcer-q-stem {
	margin: 0 0 4px;
	line-height: 1.45;
}

.mcer-q-options-list {
	list-style: none;
	margin: 0;
	padding: 0;
	pointer-events: none;
}

.mcer-q-options-list li {
	font-size: 12px;
	color: #475569;
	line-height: 1.5;
	padding: 2px 0;
}

.mcer-q-opt-label {
	font-weight: 700;
	color: #2563eb;
	margin-right: 6px;
}

.mcer-sidebar-logout {
	margin: 12px 16px 0;
	width: calc(100% - 32px);
}

.mcer-set-card {
	padding: 12px;
	border-radius: 10px;
	border: 2px solid transparent;
	background: #fff;
	margin-bottom: 8px;
	cursor: pointer;
	transition: all 0.2s;
}

.mcer-set-card:hover {
	border-color: #c4b5fd;
	background: #f0fdf4;
}

.mcer-set-card.active {
	border-color: #2563eb;
	background: #eff6ff;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.mcer-set-card-head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.mcer-set-preview {
	font-size: 12px;
	color: #64748b;
	line-height: 1.5;
	margin: 0 0 8px;
	word-break: break-word;
}

.mcer-audio-mini {
	width: 100%;
	height: 32px;
	margin-bottom: 6px;
}

.mcer-set-panel-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
	gap: 8px;
}

.mcer-set-panel-header h4 {
	margin: 0;
	font-size: 14px;
}

.mcer-btn-sm {
	padding: 6px 12px;
	font-size: 12px;
}

.mcer-q-check {
	width: 22px;
	height: 22px;
	border-radius: 6px;
	background: #e2e8f0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	flex-shrink: 0;
	color: #fff;
}

.mcer-q-item.selected .mcer-q-check {
	background: #2563eb;
}

.mcer-q-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 13px;
	border: 2px solid transparent;
	margin-bottom: 6px;
}

.mcer-q-item:hover {
	background: #eff6ff;
	border-color: #bfdbfe;
}

.mcer-q-item.selected {
	background: #dbeafe;
	border-color: #2563eb;
}

.mcer-q-item.selected .mcer-q-stem,
.mcer-q-item.selected .mcer-q-options-list li {
	color: #1e293b;
}

.mcer-q-item.selected .mcer-q-opt-label {
	color: #5b21b6;
}

.mcer-selected-summary {
	font-size: 13px;
	color: #2563eb;
	font-weight: 600;
	margin-top: 8px;
}

#reading-questions-panel,
#listening-questions-panel {
	overflow-x: hidden;
}

.mcer-footer {
	text-align: center;
	padding: 14px;
	font-size: 10px;
	color: #94a3b8;
	margin-top: auto;
}

.mcer-footer-bottom {
	padding: 20px 0 8px;
}

.mcer-footer-credit {
	display: block;
	font-size: 11px;
	color: #94a3b8;
	line-height: 1.4;
}

.mcer-footer-credit-left {
	text-align: left;
}

.mcer-footer-login {
	margin-top: 24px;
}

.mcer-student-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 20px;
}

.mcer-tab {
	padding: 10px 20px;
	border: none;
	background: #fff;
	border-radius: 10px;
	font-weight: 600;
	font-size: 14px;
	color: #64748b;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.mcer-tab.active {
	background: linear-gradient(135deg, #2563eb, #f97316);
	color: #fff;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.mcer-tab-panel {
	animation: mcerFadeIn 0.25s ease;
}

.mcer-practice-hero,
.mcer-practice-card {
	position: relative;
	overflow: hidden;
	border-radius: 28px;
	background:
		radial-gradient(circle at top left, rgba(255,255,255,0.9), transparent 28%),
		linear-gradient(135deg, #f97316 0%, #22c55e 45%, #0ea5e9 100%);
	padding: 32px;
	box-shadow: 0 24px 60px rgba(14, 165, 233, 0.22);
}

.mcer-practice-hero {
	min-height: 300px;
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
	align-items: center;
	gap: 24px;
}

.mcer-practice-hub {
	display: grid;
	gap: 24px;
}

.mcer-practice-hub-intro {
	padding: 8px 4px 0;
}

.mcer-practice-hub-intro h2 {
	margin: 8px 0 10px;
	font-size: 1.75rem;
	color: var(--mcer-text, #1e1b4b);
}

.mcer-practice-hub-intro p {
	margin: 0;
	color: var(--mcer-muted, #64748b);
	max-width: 720px;
}

.mcer-practice-hub-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.mcer-practice-level-picker {
	display: grid;
	gap: 12px;
	padding: 20px 22px;
	border-radius: 20px;
	background: #fff;
	border: 1px solid rgba(99, 102, 241, 0.12);
	box-shadow: 0 10px 28px rgba(79, 70, 229, 0.06);
}

.mcer-practice-level-picker__label {
	margin: 0;
	font-weight: 600;
	color: var(--mcer-text, #1e1b4b);
}

.mcer-practice-level-picker__hint {
	margin: 0;
	color: var(--mcer-muted, #64748b);
	font-size: 0.92rem;
}

.mcer-practice-level-options {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.mcer-practice-level-option {
	border: 2px solid #e2e8f0;
	background: #fff;
	color: #334155;
	border-radius: 999px;
	padding: 8px 16px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.mcer-practice-level-option:hover {
	border-color: #a5b4fc;
	transform: translateY(-1px);
}

.mcer-practice-level-option.active {
	border-color: #2563eb;
	background: linear-gradient(135deg, #eef2ff, #dbeafe);
	color: #4338ca;
}

.mcer-practice-hub-card {
	border-radius: 24px;
	padding: 28px;
	background: #fff;
	border: 1px solid rgba(99, 102, 241, 0.12);
	box-shadow: 0 16px 40px rgba(79, 70, 229, 0.08);
	display: grid;
	gap: 14px;
}

.mcer-practice-hub-card-art {
	width: 56px;
	height: 56px;
	border-radius: 16px;
	display: grid;
	place-items: center;
	font-size: 28px;
	background: linear-gradient(135deg, #eef2ff, #ffedd5);
}

.mcer-practice-hub-card h3 {
	margin: 0;
	font-size: 1.25rem;
}

.mcer-practice-hub-card p {
	margin: 0;
	color: var(--mcer-muted, #64748b);
	line-height: 1.5;
}

.mcer-practice-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 18px;
}

.mcer-practice-hero-reading {
	background:
		radial-gradient(circle at top left, rgba(255,255,255,0.9), transparent 28%),
		linear-gradient(135deg, #0ea5e9 0%, #2563eb 50%, #22c55e 100%);
}

.mcer-practice-passage-stack {
	display: grid;
	gap: 16px;
	margin-bottom: 4px;
}

.mcer-practice-passage-image .mcer-image-thumb,
.mcer-practice-passage-image .mcer-image-thumb img {
	max-width: 100%;
	width: 100%;
	height: auto;
}

.mcer-practice-passage-text,
.mcer-practice-passage-image {
	position: relative;
	z-index: 1;
	border-radius: 20px;
	background: var(--mcer-reading-passage-bg, rgba(255, 255, 255, 0.96));
	color: var(--mcer-reading-passage-color, #1e293b);
	padding: 24px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
	font-family: var(--mcer-reading-font-family, inherit);
}

.mcer-practice-passage-text p {
	margin: 0;
	line-height: 1.7;
	font-size: 1.02rem;
	white-space: pre-wrap;
	color: var(--mcer-reading-passage-color, #1e293b);
	font-family: var(--mcer-reading-font-family, inherit);
}

.mcer-practice-passage-image .mcer-image-thumb {
	margin: 0 auto;
}

.mcer-practice-hero::after,
.mcer-practice-card::after {
	content: '';
	position: absolute;
	right: -80px;
	top: -80px;
	width: 240px;
	height: 240px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
}

.mcer-practice-kicker {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.22);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.mcer-practice-hero h2,
.mcer-practice-card h2 {
	margin: 14px 0 10px;
	font-size: clamp(28px, 4vw, 46px);
	line-height: 1;
	color: #fff;
}

.mcer-practice-hero .mcer-practice-hero-copy > p,
.mcer-practice-card > .mcer-practice-top > div > p {
	color: rgba(255, 255, 255, 0.9);
}

.mcer-practice-hero-art {
	display: grid;
	grid-template-columns: repeat(2, 90px);
	gap: 18px;
	justify-content: center;
	position: relative;
	z-index: 1;
}

.mcer-practice-hero-art span,
.mcer-practice-orb {
	display: grid;
	place-items: center;
	width: 90px;
	height: 90px;
	border-radius: 28px;
	background: rgba(255, 255, 255, 0.24);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 12px 24px rgba(30, 27, 75, 0.16);
	font-size: 38px;
}

.mcer-practice-top,
.mcer-practice-player,
.mcer-practice-transcript,
.mcer-practice-questions {
	position: relative;
	z-index: 1;
}

.mcer-practice-top {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	align-items: flex-start;
	margin-bottom: 22px;
}

.mcer-practice-top-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.mcer-practice-score {
	display: grid;
	grid-template-columns: auto auto;
	align-items: center;
	gap: 2px 8px;
	padding: 10px 14px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.22);
	border: 1px solid rgba(255, 255, 255, 0.32);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 10px 24px rgba(30, 27, 75, 0.14);
	backdrop-filter: blur(10px);
}

.mcer-practice-score-icon {
	grid-row: span 2;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.28);
	font-size: 24px;
}

.mcer-practice-score-number {
	font-size: 24px;
	font-weight: 900;
	line-height: 1;
	color: #fff;
}

.mcer-practice-score small {
	color: rgba(255, 255, 255, 0.86);
	font-size: 11px;
	font-weight: 700;
}

.mcer-practice-player {
	display: grid;
	grid-template-columns: 100px minmax(0, 1fr);
	gap: 18px;
	align-items: center;
	background: rgba(255, 255, 255, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 24px;
	padding: 18px;
	margin: 20px 0;
	backdrop-filter: blur(10px);
}

.mcer-practice-player-with-image {
	grid-template-columns: 180px minmax(0, 1fr);
}

.mcer-practice-player-visual {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.mcer-practice-player-visual .mcer-image-thumb {
	margin: 0;
}

.mcer-practice-player-body p {
	margin: 0 0 12px;
	font-weight: 700;
}

.mcer-practice-progress {
	height: 12px;
	background: rgba(255,255,255,0.28);
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 14px;
}

.mcer-practice-progress div {
	height: 100%;
	background: linear-gradient(90deg, #facc15, #22c55e);
	border-radius: 999px;
	transition: width 0.25s ease;
}

.mcer-practice-transcript {
	background: #fff;
	color: var(--mcer-text-dark);
	border-radius: 22px;
	padding: 20px;
	margin: 20px 0;
	box-shadow: 0 10px 28px rgba(30, 27, 75, 0.12);
}

.mcer-practice-transcript p {
	color: #334155;
	margin: 14px 0 0;
	line-height: 1.8;
	font-weight: 600;
}

.mcer-practice-transcript.locked {
	background: rgba(255,255,255,0.82);
}

.mcer-practice-transcript-head {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.mcer-practice-transcript-head strong {
	color: #2563eb;
}

.mcer-practice-transcript-head span {
	color: #64748b;
	font-size: 13px;
}

.mcer-transcript-lock {
	display: grid;
	place-items: center;
	min-height: 70px;
	font-size: 34px;
	color: #94a3b8;
}

.mcer-practice-questions {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
}

.mcer-practice-question {
	background: #fff;
	color: var(--mcer-text-dark);
	border-radius: 22px;
	padding: 20px;
	box-shadow: 0 12px 28px rgba(30, 27, 75, 0.12);
	border: 3px solid transparent;
}

.mcer-practice-question.correct {
	border-color: #22c55e;
}

.mcer-practice-question.incorrect {
	border-color: #fb7185;
}

.mcer-practice-question h3 {
	margin: 0 0 8px;
	color: #2563eb;
	font-size: 16px;
}

.mcer-practice-question p {
	color: var(--mcer-reading-question-color, #334155);
	margin: 0 0 14px;
	font-weight: 700;
	font-family: var(--mcer-reading-font-family, inherit);
}

.mcer-practice-options {
	display: grid;
	gap: 10px;
}

.mcer-practice-option {
	display: flex;
	gap: 10px;
	align-items: center;
	width: 100%;
	border: 2px solid var(--mcer-reading-option-border, #e2e8f0);
	border-radius: 14px;
	background: var(--mcer-reading-option-bg, #f8fafc);
	color: var(--mcer-reading-option-color, #1e293b);
	padding: 10px 12px;
	text-align: left;
	font: inherit;
	font-family: var(--mcer-reading-font-family, inherit);
	cursor: pointer;
	transition: all 0.2s ease;
}

.mcer-practice-option:hover {
	border-color: #60a5fa;
	background: #eff6ff;
	transform: translateY(-1px);
}

.mcer-practice-option span {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 10px;
	background: var(--mcer-reading-option-letter-bg, #dbeafe);
	color: var(--mcer-reading-option-letter-color, #2563eb);
	font-weight: 800;
	flex-shrink: 0;
}

.mcer-practice-option.selected {
	border-color: #2563eb;
	background: #dbeafe;
}

.mcer-practice-option.correct {
	border-color: #22c55e;
	background: #dcfce7;
}

.mcer-practice-feedback {
	margin-top: 12px;
	padding: 10px 12px;
	border-radius: 12px;
	font-size: 13px;
	font-weight: 800;
}

.mcer-practice-feedback.correct {
	background: #dcfce7;
	color: #15803d;
}

.mcer-practice-feedback.incorrect {
	background: #ffe4e6;
	color: #be123c;
}

@keyframes mcerFadeIn {
	from { opacity: 0; transform: translateY(4px); }
	to { opacity: 1; transform: translateY(0); }
}

.mcer-exam-card-rich {
	flex-direction: column;
	align-items: stretch;
	gap: 16px;
}

.mcer-exam-card-body h3 {
	margin: 0 0 6px;
}

.mcer-exam-meta {
	color: #64748b;
	font-size: 13px;
	margin: 0 0 10px;
}

.mcer-exam-badges {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.mcer-pill {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 99px;
	font-size: 11px;
	font-weight: 600;
	background: #dbeafe;
	color: #2563eb;
}

.mcer-pill-muted {
	background: #f1f5f9;
	color: #64748b;
}

.mcer-pill-danger {
	background: #fee2e2;
	color: #b91c1c;
}

.mcer-exam-card-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.mcer-exam-restart-hint {
	margin: 10px 0 0;
	font-size: 12px;
	color: #64748b;
}

.mcer-empty {
	text-align: center;
	color: #94a3b8;
	padding: 32px;
	background: #fff;
	border-radius: 12px;
}

.mcer-history-table {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
}

.mcer-exam-stats {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.mcer-font-control {
	display: block;
	background: #fff;
	padding: 10px 14px;
	border-radius: 12px;
	border: 1px solid #bfdbfe;
	min-width: 130px;
	text-align: center;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.mcer-font-control select {
	margin-top: 4px;
	width: 100%;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 6px 8px;
	font-family: inherit;
	font-size: 14px;
	color: var(--mcer-text-dark);
	background: #fff;
}

.mcer-stat-pill {
	background: #fff;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	padding: 10px 16px;
	min-width: 120px;
	text-align: center;
}

.mcer-stat-label {
	display: block;
	font-size: 11px;
	color: #64748b;
	font-weight: 500;
	margin-bottom: 4px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.mcer-answered {
	font-size: 22px;
	font-weight: 700;
	color: #2563eb;
	font-variant-numeric: tabular-nums;
}

.mcer-brand-text {
	font-weight: 700;
	font-size: 15px;
	color: #1e3a8a;
	line-height: 1.3;
}

@media (max-width: 768px) {
	.mcer-app { flex-direction: column; }
	.mcer-sidebar { width: 100%; min-height: auto; }
	.mcer-set-builder { grid-template-columns: 1fr; }
	.mcer-exam-stats { width: 100%; }
	.mcer-main { padding: 20px 16px; }
	.mcer-fullwidth:not(.mcer-student-app) {
		width: 100%;
		margin-left: 0;
		margin-right: 0;
	}
	.mcer-student-app.mcer-fullwidth {
		width: 100vw;
		max-width: 100vw;
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
		padding: 0;
		border-radius: 0;
		box-shadow: none;
		border: none;
		min-height: 100vh;
		min-height: 100dvh;
	}
	.mcer-student-app.mcer-fullwidth .mcer-login-split {
		width: 100%;
		max-width: none;
		margin: 0;
		min-height: 100vh;
		min-height: 100dvh;
		border-radius: 0;
		box-shadow: none;
		border: none;
	}
	.mcer-login-split {
		grid-template-columns: 1fr;
		border-radius: 0;
		min-height: auto;
		max-width: none;
		width: 100%;
		margin: 0;
	}
	.mcer-login-visual {
		display: none;
	}
	.mcer-login-panel {
		padding: max(24px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
		min-height: min(100vh, 100dvh);
		justify-content: center;
	}
	.mcer-login-panel-inner {
		max-width: none;
		width: 100%;
	}
	.mcer-login-form {
		width: 100%;
	}
	.mcer-input-field {
		width: 100%;
	}
	.mcer-input-field input {
		font-size: 16px;
		min-height: 48px;
		padding: 14px 0;
	}
	.mcer-login-title {
		font-size: 24px;
	}
	.mcer-practice-hero,
	.mcer-practice-player,
	.mcer-practice-top {
		grid-template-columns: 1fr;
		flex-direction: column;
	}
	.mcer-practice-top-actions {
		justify-content: stretch;
		width: 100%;
	}
	.mcer-practice-score {
		flex: 1;
	}
	.mcer-practice-hero,
	.mcer-practice-card {
		padding: 24px;
		border-radius: 20px;
	}
	.mcer-practice-hero-art {
		grid-template-columns: repeat(3, 70px);
	}
	.mcer-practice-hero-art span,
	.mcer-practice-orb {
		width: 70px;
		height: 70px;
		border-radius: 20px;
		font-size: 28px;
	}
	.mcer-practice-hub-grid {
		grid-template-columns: 1fr;
	}
}

/* Student portal */
/* Student portal */
.mcer-student-app {
	display: block;
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 0;
	min-height: calc(100vh - 80px);
	background: linear-gradient(135deg, #eef2ff 0%, #f0fdf4 50%, #dbeafe 100%);
}

.mcer-student-app.mcer-fullwidth {
	padding: 24px 16px;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.mcer-login-split {
	display: grid;
	grid-template-columns: minmax(320px, 480px) 1fr;
	min-height: calc(100vh - 80px);
	max-width: 1200px;
	margin: 0 auto;
	background: #fff;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 32px 80px rgba(30, 64, 175, 0.18);
	border: 1px solid rgba(37, 99, 235, 0.12);
}

.mcer-login-panel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 48px 40px 24px;
	background: #fff;
	position: relative;
}

.mcer-login-panel-inner {
	width: 100%;
	max-width: 360px;
	margin: 0 auto;
}

.mcer-login-title {
	font-size: 28px;
	font-weight: 700;
	margin: 24px 0 8px;
	color: var(--mcer-text-dark);
	text-align: center;
	letter-spacing: 0.02em;
}

.mcer-login-subtitle {
	text-align: center;
	color: #94a3b8;
	font-size: 14px;
	margin: 0 0 28px;
	line-height: 1.5;
}

.mcer-login-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.mcer-input-field {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 12px;
	padding: 4px 14px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.mcer-input-field:focus-within {
	border-color: #60a5fa;
	box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

.mcer-input-icon {
	font-size: 16px;
	opacity: 0.5;
	flex-shrink: 0;
}

.mcer-input-field input {
	flex: 1;
	border: none;
	background: transparent;
	padding: 12px 0;
	font-size: 14px;
	font-family: inherit;
	outline: none;
	color: var(--mcer-text-dark);
}

.mcer-input-field input::placeholder {
	color: #a1a1aa;
}

.mcer-btn-login {
	background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #22c55e 100%);
	color: #fff;
	padding: 14px 24px;
	font-size: 15px;
	border-radius: 12px;
	margin-top: 8px;
	box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.mcer-btn-login:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(99, 102, 241, 0.45);
}

.mcer-login-bottom-credit {
	text-align: center;
	padding-top: 32px;
	margin-top: auto;
}

.mcer-login-visual {
	position: relative;
	background-size: cover;
	background-position: center;
	min-height: 520px;
}

.mcer-login-visual::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.75) 0%, rgba(139, 92, 246, 0.65) 50%, rgba(168, 85, 247, 0.55) 100%);
}

.mcer-login-visual-overlay {
	position: relative;
	z-index: 1;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 48px;
	color: #fff;
}

.mcer-login-visual-overlay h3 {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 8px;
	line-height: 1.3;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mcer-login-visual-overlay p {
	margin: 0;
	font-size: 15px;
	opacity: 0.92;
}

.mcer-login-card,
.mcer-break-card {
	background: #fff;
	border-radius: 20px;
	padding: 40px;
	box-shadow: 0 24px 64px rgba(30, 64, 175, 0.16);
	text-align: center;
	max-width: 460px;
	margin: 40px auto;
	border: 2px solid #bfdbfe;
}

.mcer-section-choice-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 24px;
}

.mcer-section-choice-actions .mcer-btn {
	width: 100%;
}

.mcer-break-card .mcer-btn {
	margin: 8px 6px 0;
}

.mcer-break-card .mcer-btn-outline {
	min-width: 220px;
}

.mcer-login-card label {
	display: block;
	text-align: left;
	margin-bottom: 16px;
	font-size: 13px;
	font-weight: 500;
}

.mcer-login-card input {
	width: 100%;
	padding: 12px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	margin-top: 6px;
}

.mcer-student-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 24px 32px;
	background: linear-gradient(135deg, #fff 0%, #eff6ff 100%);
	border-radius: 16px;
	margin-bottom: 20px;
	border: 2px solid #bfdbfe;
	box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
}

.mcer-student-header-brand {
	display: flex;
	align-items: center;
	gap: 16px;
}

.mcer-student-header-brand h1 {
	margin: 0;
	font-size: 20px;
	color: #5b21b6;
}

.mcer-student-header-brand p {
	margin: 4px 0 0;
	color: #64748b;
	font-size: 14px;
}

#mcer-student-dashboard,
#mcer-exam-taking {
	--mcer-exam-font-size: 16px;
	--mcer-exam-font-weight: 400;
	padding: 20px 32px 32px;
	max-width: 1400px;
	margin: 0 auto;
}

/* —— Student dashboard (colorful, touch-friendly) —— */
.mcer-student-app #mcer-student-dashboard {
	padding: 16px 20px 32px;
}

.mcer-student-header {
	background: linear-gradient(135deg, #ffffff 0%, #dbeafe 45%, #ffedd5 100%);
	border: 2px solid rgba(37, 99, 235, 0.18);
	box-shadow: 0 12px 32px rgba(37, 99, 235, 0.14);
}

.mcer-student-tabs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 24px;
}

.mcer-student-tab {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 88px;
	padding: 14px 10px;
	border-radius: 16px;
	border: 2px solid transparent;
	background: #fff;
	box-shadow: 0 4px 16px rgba(79, 70, 229, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mcer-student-tab__icon {
	font-size: 1.6rem;
	line-height: 1;
}

.mcer-student-tab__label {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
}

.mcer-student-tab:hover {
	transform: translateY(-2px);
	border-color: #c4b5fd;
}

.mcer-student-tab.active {
	background: linear-gradient(135deg, #2563eb 0%, #f97316 55%, #f97316 100%);
	color: #fff;
	border-color: transparent;
	box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35);
}

.mcer-btn-student {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 14px 22px;
	border-radius: 14px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	border: none;
	cursor: pointer;
	font-family: inherit;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	width: 100%;
}

.mcer-btn-student .mcer-btn-icon {
	font-size: 1.15rem;
	line-height: 1;
	flex-shrink: 0;
}

.mcer-btn-student--primary {
	background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #22c55e 100%);
	color: #fff;
	box-shadow: 0 8px 22px rgba(99, 102, 241, 0.35);
}

.mcer-btn-student--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 28px rgba(99, 102, 241, 0.45);
}

.mcer-btn-student--secondary {
	background: #fff;
	color: #5b21b6;
	border: 2px solid #c4b5fd;
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.1);
}

.mcer-btn-student--secondary:hover {
	background: #eff6ff;
	transform: translateY(-1px);
}

.mcer-btn-student--ghost {
	width: auto;
	min-height: 48px;
	background: rgba(255, 255, 255, 0.85);
	border: 2px solid #ddd6fe;
	color: #1d4ed8;
}

.mcer-btn-student--listening {
	background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
	color: #fff;
	box-shadow: 0 8px 22px rgba(14, 165, 233, 0.35);
}

.mcer-btn-student--reading {
	background: linear-gradient(135deg, #3b82f6 0%, #f97316 100%);
	color: #fff;
	box-shadow: 0 8px 22px rgba(236, 72, 153, 0.3);
}

.mcer-student-app .mcer-exams-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	padding: 0;
}

.mcer-student-exam-card {
	display: flex;
	flex-direction: column;
	gap: 0;
	border-radius: 22px;
	overflow: hidden;
	background: #fff;
	border: 2px solid rgba(37, 99, 235, 0.12);
	box-shadow: 0 14px 36px rgba(30, 64, 175, 0.12);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mcer-student-exam-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 44px rgba(30, 64, 175, 0.18);
}

.mcer-student-exam-card__banner {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 22px 22px 18px;
	color: #fff;
}

.mcer-student-exam-card--violet .mcer-student-exam-card__banner {
	background: linear-gradient(135deg, #2563eb 0%, #22c55e 100%);
}

.mcer-student-exam-card--ocean .mcer-student-exam-card__banner {
	background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
}

.mcer-student-exam-card--active .mcer-student-exam-card__banner {
	background: linear-gradient(135deg, #f59e0b 0%, #ef4444 55%, #f97316 100%);
}

.mcer-student-exam-card__icon {
	font-size: 2.2rem;
	line-height: 1;
	flex-shrink: 0;
}

.mcer-student-exam-card__banner h3 {
	margin: 0 0 6px;
	font-size: 1.35rem;
	line-height: 1.2;
	color: #fff;
}

.mcer-student-exam-card__meta {
	margin: 0;
	font-size: 13px;
	opacity: 0.92;
	line-height: 1.45;
}

.mcer-student-exam-card__body {
	padding: 18px 22px 8px;
}

.mcer-student-exam-card__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.mcer-student-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}

.mcer-student-chip--count {
	background: #dbeafe;
	color: #1d4ed8;
}

.mcer-student-chip--status {
	background: #fef3c7;
	color: #b45309;
}

.mcer-student-chip--best {
	background: #dcfce7;
	color: #15803d;
	margin-top: 6px;
}

.mcer-student-exam-card__features {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	display: grid;
	gap: 8px;
}

.mcer-student-exam-card__features li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border-radius: 12px;
	background: #f8fafc;
	color: #334155;
	font-size: 14px;
	font-weight: 600;
}

.mcer-student-exam-card__hint {
	margin: 0 0 8px;
	font-size: 13px;
	line-height: 1.5;
	color: #64748b;
}

.mcer-student-exam-card__actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 8px 22px 22px;
}

.mcer-student-empty {
	text-align: center;
	padding: 40px 24px;
	background: linear-gradient(135deg, #fff 0%, #eff6ff 100%);
	border-radius: 20px;
	border: 2px dashed #c4b5fd;
	color: #64748b;
}

.mcer-student-empty__icon {
	display: block;
	font-size: 2.5rem;
	margin-bottom: 12px;
}

.mcer-student-practice-intro h2 {
	color: var(--mcer-text-dark);
}

.mcer-student-practice-intro--compact h2 {
	font-size: 1.35rem;
	margin: 6px 0 4px;
}

.mcer-student-practice-intro--compact p {
	margin: 0;
	font-size: 0.92rem;
}

.mcer-practice-category-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
	gap: 10px;
	max-width: 520px;
}

.mcer-practice-category-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-height: 96px;
	padding: 12px 10px;
	border-radius: 16px;
	border: 1.5px solid #e2e8f0;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
	text-align: center;
}

.mcer-practice-category-tile:hover {
	border-color: #a5b4fc;
	box-shadow: 0 8px 20px rgba(99, 102, 241, 0.12);
	transform: translateY(-1px);
}

.mcer-practice-category-tile__icon {
	font-size: 1.5rem;
	line-height: 1;
}

.mcer-practice-category-tile__label {
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--mcer-text-dark);
}

.mcer-practice-category-tile__hint {
	font-size: 0.72rem;
	font-weight: 600;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.mcer-practice-category-tile--listening {
	border-color: rgba(14, 165, 233, 0.25);
	background: linear-gradient(180deg, #fff 0%, #f0f9ff 100%);
}

.mcer-practice-category-tile--reading {
	border-color: rgba(139, 92, 246, 0.25);
	background: linear-gradient(180deg, #fff 0%, #f0fdf4 100%);
}

.mcer-practice-category-tile--dialogue {
	border-color: rgba(236, 72, 153, 0.22);
	background: linear-gradient(180deg, #fff 0%, #fdf2f8 100%);
}

.mcer-practice-hero-dialogue {
	background:
		radial-gradient(circle at top left, rgba(255,255,255,0.9), transparent 28%),
		linear-gradient(135deg, #f97316 0%, #3b82f6 45%, #2563eb 100%);
}

.mcer-dialogue-list {
	display: grid;
	gap: 14px;
	margin-top: 12px;
}

.mcer-dialogue-list-grid {
	display: grid;
	gap: 10px;
}

.mcer-dialogue-list-card {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 14px;
	border: 1px solid #e2e8f0;
	background: #fff;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.mcer-dialogue-list-card__icon {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	font-size: 1.2rem;
	background: #eff6ff;
}

.mcer-dialogue-list-card__body h3 {
	margin: 0 0 4px;
	font-size: 0.98rem;
	color: var(--mcer-text-dark);
}

.mcer-dialogue-list-card__body p {
	margin: 0;
	font-size: 0.85rem;
	color: #64748b;
	line-height: 1.35;
}

.mcer-dialogue-list-card .mcer-btn {
	padding: 8px 14px;
	font-size: 0.88rem;
	white-space: nowrap;
}

.mcer-student-practice-card {
	border-width: 2px;
	padding: 28px 24px;
}

.mcer-student-practice-card--listening {
	border-color: rgba(14, 165, 233, 0.25);
	background: linear-gradient(180deg, #fff 0%, #f0f9ff 100%);
}

.mcer-student-practice-card--reading {
	border-color: rgba(139, 92, 246, 0.25);
	background: linear-gradient(180deg, #fff 0%, #f0fdf4 100%);
}

.mcer-student-practice-card__icon {
	width: 64px;
	height: 64px;
	font-size: 2rem;
	border-radius: 18px;
}

.mcer-student-practice-card .mcer-btn-student {
	margin-top: 8px;
}

.mcer-student-history-list {
	display: grid;
	gap: 14px;
}

.mcer-student-history-card {
	background: #fff;
	border-radius: 18px;
	padding: 18px 20px;
	border: 2px solid #bfdbfe;
	box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}

.mcer-student-history-card__head {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-bottom: 12px;
}

.mcer-student-history-card__icon {
	font-size: 1.6rem;
	line-height: 1;
}

.mcer-student-history-card__head h3 {
	margin: 0;
	font-size: 1.05rem;
	color: var(--mcer-text-dark);
}

.mcer-student-history-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-bottom: 8px;
}

.mcer-student-history-card__date {
	font-size: 13px;
	color: #64748b;
	font-weight: 600;
}

.mcer-student-history-card__score {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: #1d4ed8;
}

.mcer-student-history-page {
	display: grid;
	gap: 28px;
}

.mcer-student-history-section__title {
	margin: 0 0 14px;
	font-size: 1.15rem;
	color: var(--mcer-text-dark);
}

.mcer-student-history-card--practice {
	border-color: #bbf7d0;
	box-shadow: 0 8px 20px rgba(22, 163, 74, 0.08);
}

.mcer-student-chip--practice {
	background: #dcfce7;
	color: #15803d;
}

.mcer-student-progress-card {
	background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
	border: 2px solid #ddd6fe;
	border-radius: 20px;
	padding: 18px 20px;
	margin-bottom: 18px;
}

.mcer-student-progress-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 16px;
}

.mcer-student-progress-head h2 {
	margin: 0 0 6px;
	font-size: 1.2rem;
	color: #1e3a8a;
}

.mcer-student-progress-head p {
	margin: 0;
	color: #64748b;
	font-size: 0.92rem;
}

.mcer-level-badge {
	min-width: 56px;
	height: 56px;
	border-radius: 16px;
	background: #5b21b6;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	font-weight: 800;
	box-shadow: 0 8px 20px rgba(91, 33, 182, 0.25);
}

.mcer-level-track {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 8px;
	margin-bottom: 16px;
}

.mcer-level-step {
	text-align: center;
	padding: 10px 4px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid #e2e8f0;
	color: #94a3b8;
	font-size: 0.82rem;
	font-weight: 700;
}

.mcer-level-step--achieved {
	background: #ecfdf5;
	border-color: #86efac;
	color: #166534;
}

.mcer-level-step--current {
	background: #dbeafe;
	border-color: #60a5fa;
	color: #5b21b6;
	box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.25);
}

.mcer-student-progress-metrics {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 10px;
}

.mcer-student-progress-metrics div {
	background: #fff;
	border-radius: 12px;
	padding: 10px 12px;
	border: 1px solid #e2e8f0;
}

.mcer-student-progress-metrics strong {
	display: block;
	font-size: 1.1rem;
	color: #1e293b;
}

.mcer-student-progress-metrics span {
	font-size: 0.78rem;
	color: #64748b;
}

.mcer-student-progress-next {
	margin: 0;
	font-size: 0.9rem;
	color: #475569;
	font-weight: 600;
}

.mcer-leaderboard {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.mcer-leaderboard__item {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 12px;
	align-items: center;
	padding: 12px 14px;
	border-radius: 14px;
	background: #fff;
	border: 1px solid #e2e8f0;
}

.mcer-leaderboard__item--self {
	border-color: #60a5fa;
	background: #eff6ff;
}

.mcer-leaderboard__rank {
	font-weight: 800;
	color: #5b21b6;
	min-width: 28px;
}

.mcer-leaderboard__name {
	font-weight: 600;
	color: #1e293b;
}

.mcer-leaderboard__score {
	font-weight: 800;
	color: #0f766e;
}

.mcer-leaderboard-note {
	margin: 12px 0 0;
	color: #64748b;
	font-size: 0.9rem;
}

.mcer-practice-history-summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	gap: 10px;
	margin-bottom: 16px;
}

.mcer-practice-history-stat {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 12px 14px;
	text-align: center;
}

.mcer-practice-history-stat strong {
	display: block;
	font-size: 1.2rem;
	color: #1d4ed8;
	line-height: 1.2;
}

.mcer-practice-history-stat span {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: #64748b;
	font-weight: 600;
}

.mcer-practice-history-chart {
	background: #fff;
	border: 2px solid #bfdbfe;
	border-radius: 18px;
	padding: 16px 18px 12px;
	margin-bottom: 16px;
}

.mcer-practice-history-chart__title {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 700;
	color: #475569;
}

.mcer-practice-bar-chart__wrap {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 10px;
	align-items: stretch;
}

.mcer-practice-bar-chart__axis-y {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	font-size: 11px;
	font-weight: 700;
	color: #64748b;
	text-align: center;
	padding: 4px 0;
}

.mcer-practice-bar-chart__plot {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	height: 168px;
	padding: 4px 6px 0;
	border-bottom: 2px solid #e2e8f0;
	overflow-x: auto;
}

.mcer-practice-bar {
	flex: 1 0 32px;
	min-width: 32px;
	max-width: 44px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	height: 100%;
	gap: 4px;
}

.mcer-practice-bar__value {
	font-size: 10px;
	font-weight: 700;
	color: #475569;
	line-height: 1;
}

.mcer-practice-bar__fill {
	width: 100%;
	height: var(--bar-height, 0%);
	min-height: 6px;
	border-radius: 8px 8px 4px 4px;
	background: linear-gradient(180deg, #60a5fa 0%, #2563eb 100%);
	transition: height 0.2s ease;
}

.mcer-practice-bar--high .mcer-practice-bar__fill {
	background: linear-gradient(180deg, #86efac 0%, #16a34a 100%);
}

.mcer-practice-bar--mid .mcer-practice-bar__fill {
	background: linear-gradient(180deg, #fde68a 0%, #d97706 100%);
}

.mcer-practice-bar--low .mcer-practice-bar__fill {
	background: linear-gradient(180deg, #fecaca 0%, #dc2626 100%);
}

.mcer-practice-bar__label {
	font-size: 11px;
	font-weight: 700;
	color: #64748b;
	line-height: 1;
}

.mcer-practice-bar-chart__footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: 8px;
	font-size: 11px;
	font-weight: 600;
	color: #94a3b8;
}

.mcer-practice-bar-chart__axis-x {
	color: #64748b;
	font-weight: 700;
}

.mcer-exams-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	padding: 0 8px;
}

.mcer-exam-card {
	background: #fff;
	border-radius: 16px;
	padding: 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
	border: 1px solid #bfdbfe;
	transition: transform 0.2s, box-shadow 0.2s;
}

.mcer-exam-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(37, 99, 235, 0.18);
}

.mcer-exam-topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: linear-gradient(135deg, #fff, #dbeafe);
	padding: 20px 32px;
	border-radius: 16px;
	margin-bottom: 16px;
	position: sticky;
	top: 0;
	z-index: 10;
	border: 2px solid #c4b5fd;
	box-shadow: 0 4px 16px rgba(37, 99, 235, 0.12);
}

.mcer-timer {
	font-size: 28px;
	font-weight: 700;
	color: #2563eb;
	font-variant-numeric: tabular-nums;
}

.mcer-timer.warning { color: #f97316; }
.mcer-timer.danger { color: #ef4444; }

.mcer-passage {
	background: var(--mcer-reading-passage-bg, #fff);
	color: var(--mcer-reading-passage-color, #1e1b4b);
	border-radius: 16px;
	padding: 28px 32px;
	margin-bottom: 16px;
	line-height: 1.8;
	font-size: var(--mcer-exam-font-size);
	font-weight: var(--mcer-exam-font-weight);
	font-family: var(--mcer-reading-font-family, inherit);
	border-left: 4px solid #2563eb;
	box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.mcer-question-card {
	background: #fff;
	border-radius: 16px;
	padding: 28px 32px;
	border: 1px solid #bfdbfe;
	box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
}

.mcer-question-card h3 {
	font-size: 16px;
	margin: 0 0 16px;
}

.mcer-question-card p,
.mcer-option span:not(.mcer-option-key),
.mcer-audio-plays-info {
	font-size: var(--mcer-exam-font-size);
	font-weight: var(--mcer-exam-font-weight);
	line-height: 1.7;
	font-family: var(--mcer-reading-font-family, inherit);
}

.mcer-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mcer-option {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border: 2px solid var(--mcer-reading-option-border, #e2e8f0);
	border-radius: 12px;
	background: var(--mcer-reading-option-bg, #fff);
	color: var(--mcer-reading-option-color, #1e293b);
	cursor: pointer;
	transition: all 0.2s;
}

.mcer-option:hover { border-color: #c4b5fd; }
.mcer-option.selected {
	border-color: #2563eb;
	background: #eff6ff;
}

.mcer-option-key {
	width: 28px;
	height: 28px;
	background: var(--mcer-reading-option-letter-bg, #f1f5f9);
	color: var(--mcer-reading-option-letter-color, #334155);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 13px;
}

.mcer-option.selected .mcer-option-key {
	background: #2563eb;
	color: #fff;
}

.mcer-exam-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 0;
}

.mcer-exam-footer {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-start;
	align-items: center;
	padding: 20px 0 28px;
	margin-top: 8px;
	border-top: 1px solid #e2e8f0;
}

.mcer-exam-footer .mcer-btn {
	font-size: 14px;
}

.mcer-btn-finish-section {
	background: #fff;
	color: #64748b;
	border: 1px solid #cbd5e1;
}

.mcer-btn-finish-section:hover {
	background: #f8fafc;
	color: #475569;
	border-color: #94a3b8;
}

.mcer-audio-wrap {
	background: linear-gradient(135deg, #eff6ff, #dbeafe);
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 16px;
	border: 1px solid #c4b5fd;
}

.mcer-audio-plays-info {
	font-size: var(--mcer-exam-font-size);
	color: #64748b;
	margin: 0 0 10px;
}

.mcer-audio-play-btn {
	width: 100%;
	margin-bottom: 4px;
}

.mcer-exam-audio-element {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
	overflow: hidden;
}

.mcer-audio-player {
	width: 100%;
}

.mcer-audio-player:disabled {
	opacity: 0.5;
}

/* Utilities */
.mcer-hidden { display: none !important; }
.mcer-hint { font-size: 13px; color: #94a3b8; margin: 8px 0 16px; }
.mcer-alert { padding: 12px 16px; border-radius: 10px; margin-top: 12px; font-size: 14px; }
.mcer-alert-error { background: #fef2f2; color: #dc2626; }
.mcer-alert-warning { background: #fffbeb; color: #d97706; }
.mcer-alert-success { background: #f0fdf4; color: #16a34a; }
.mcer-loading { opacity: 0.6; pointer-events: none; }
.mcer-page-title-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 16px;
}

.mcer-header-intro {
	flex: 1;
	min-width: 200px;
}

.mcer-help-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: none;
	cursor: pointer;
	flex-shrink: 0;
	font-family: inherit;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.mcer-help-btn-prominent {
	padding: 8px 16px 8px 12px;
	border-radius: 999px;
	background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #f97316 100%);
	color: #fff;
	font-size: 0.9rem;
	font-weight: 600;
	box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.mcer-help-btn-prominent:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(99, 102, 241, 0.45);
}

.mcer-help-btn-prominent:active {
	transform: translateY(0);
}

.mcer-help-btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.22);
	font-weight: 800;
	font-size: 1rem;
	line-height: 1;
}

.mcer-help-btn-label {
	line-height: 1;
}

.mcer-help-modal-content .mcer-help-steps {
	max-height: 70vh;
	overflow: auto;
	padding-right: 8px;
}

.mcer-random-exam-panel {
	margin: 20px 0 24px;
	padding: 18px 20px;
	border-radius: 14px;
	border: 1px solid #e0e7ff;
	background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
}

.mcer-random-exam-panel h3 {
	margin: 0 0 8px;
	font-size: 1.05rem;
	color: #312e81;
}

.mcer-random-quota-table {
	width: 100%;
	border-collapse: collapse;
	margin: 12px 0;
	font-size: 0.92rem;
}

.mcer-random-quota-table th,
.mcer-random-quota-table td {
	padding: 8px 10px;
	border-bottom: 1px solid #e2e8f0;
	text-align: left;
}

.mcer-random-quota-table input[type="number"] {
	width: 72px;
	padding: 6px 8px;
	border-radius: 8px;
	border: 1px solid #cbd5e1;
}

.mcer-random-quota-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.mcer-random-quota-total strong.mcer-random-quota-ok {
	color: #16a34a;
}

.mcer-random-quota-total strong.mcer-random-quota-over {
	color: #dc2626;
}

.mcer-random-quota-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

#mcer-random-exam-result {
	margin-top: 12px;
	padding: 10px 12px;
	border-radius: 10px;
}

.mcer-exam-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.mcer-exam-section-head h3 {
	margin: 0;
}

.mcer-exam-level-filter {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.9rem;
	color: #475569;
}

.mcer-exam-level-filter select {
	padding: 6px 10px;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	background: #fff;
}

.mcer-help-steps ol {
	margin: 0;
	padding-left: 1.25rem;
}

.mcer-help-steps li {
	margin-bottom: 14px;
}

.mcer-help-steps li p {
	margin: 4px 0 0;
	color: #475569;
	line-height: 1.5;
}

.mcer-filters { display: flex; gap: 12px; margin-bottom: 16px; }
.mcer-filters select { padding: 8px 12px; border-radius: 8px; border: 1px solid #e2e8f0; }
.mcer-preview-text { background: #f8fafc; padding: 16px; border-radius: 10px; margin: 12px 0; white-space: pre-wrap; font-size: 14px; line-height: 1.7; }

.mcer-preview-reading {
	border-left: 4px solid #2563eb;
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.mcer-reading-preview-label {
	margin: 12px 0 8px;
	color: #5b21b6;
	font-weight: 700;
}

.mcer-passage-stack {
	display: grid;
	gap: 16px;
	margin-bottom: 16px;
}

.mcer-passage-stack .mcer-passage-image img {
	max-width: 100%;
	height: auto;
}
.mcer-review-actions { display: flex; gap: 10px; margin-top: 12px; }

.mcer-view-passage {
	margin-top: 8px;
}

.mcer-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.mcer-modal.mcer-hidden {
	display: none !important;
}

.mcer-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
}

.mcer-modal-content-wide {
	width: min(920px, 100%);
}

.mcer-modal-content {
	position: relative;
	z-index: 1;
	width: min(760px, 100%);
	max-height: 80vh;
	overflow: auto;
	background: #fff;
	border-radius: 16px;
	padding: 28px 32px;
	box-shadow: 0 24px 64px rgba(15, 23, 42, 0.25);
	border: 1px solid #bfdbfe;
}

.mcer-modal-close {
	position: absolute;
	top: 12px;
	right: 16px;
	border: none;
	background: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #64748b;
}

.mcer-modal-content h3 {
	margin: 0 0 16px;
	padding-right: 32px;
	color: #5b21b6;
}

.mcer-webauthn-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 16px;
}

.mcer-practice-glossary-intro {
	margin: 0 0 16px;
}

.mcer-practice-glossary-list {
	display: grid;
	gap: 12px;
	max-height: 55vh;
	overflow-y: auto;
}

.mcer-practice-glossary-item {
	padding: 12px 14px;
	border-radius: 12px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
}

.mcer-practice-glossary-item h4 {
	margin: 0 0 6px;
	color: #5b21b6;
	font-size: 1.05rem;
	text-transform: capitalize;
}

.mcer-practice-glossary-item p {
	margin: 0;
	color: #334155;
	line-height: 1.5;
}

.mcer-btn-glossary {
	white-space: nowrap;
}

.mcer-modal-passage {
	background: #f8fafc;
	padding: 20px;
	border-radius: 12px;
	white-space: pre-wrap;
	line-height: 1.8;
	font-size: 15px;
	max-height: 55vh;
	overflow-y: auto;
}

.mcer-generate-audio {
	margin: 12px 0;
}

.mcer-audio-error {
	color: #dc2626 !important;
}

/* Student portal — mobile / responsive */
@media (max-width: 900px) {
	.mcer-student-app.mcer-fullwidth {
		width: 100vw;
		max-width: 100vw;
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
		padding: 0;
		min-height: 100vh;
		min-height: 100dvh;
	}

	.mcer-student-app #mcer-student-dashboard {
		padding: 12px max(12px, env(safe-area-inset-right)) 24px max(12px, env(safe-area-inset-left));
		max-width: none;
		width: 100%;
	}

	.mcer-student-header {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
		padding: 18px 16px;
		margin-bottom: 16px;
	}

	.mcer-student-header .mcer-btn-student--ghost {
		width: 100%;
	}

	.mcer-student-tabs {
		gap: 10px;
		margin-bottom: 18px;
	}

	.mcer-student-tab {
		min-height: 80px;
		padding: 12px 8px;
	}

	.mcer-student-tab__icon {
		font-size: 1.45rem;
	}

	.mcer-student-tab__label {
		font-size: 12px;
	}

	.mcer-student-app .mcer-exams-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.mcer-student-exam-card__actions {
		gap: 14px;
		padding: 10px 18px 20px;
	}

	.mcer-btn-student {
		min-height: 54px;
		font-size: 15px;
	}

	.mcer-student-exam-card__banner {
		padding: 18px 18px 16px;
	}

	.mcer-student-exam-card__body {
		padding: 16px 18px 6px;
	}

	#mcer-student-dashboard,
	#mcer-exam-taking,
	#mcer-exam-section-choice,
	#mcer-exam-break,
	#mcer-exam-done {
		padding: 12px max(12px, env(safe-area-inset-right)) 24px max(12px, env(safe-area-inset-left));
		max-width: none;
		width: 100%;
	}

	.mcer-exams-grid {
		grid-template-columns: 1fr;
		padding: 0;
	}

	.mcer-practice-hub-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.mcer-practice-level-picker {
		padding: 16px;
	}

	.mcer-practice-level-options {
		gap: 8px;
	}

	.mcer-practice-level-option {
		flex: 1 1 calc(33.333% - 8px);
		min-width: 72px;
		text-align: center;
		padding: 10px 12px;
	}

	.mcer-practice-category-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		max-width: none;
	}

	.mcer-practice-category-tile {
		min-height: 88px;
		padding: 10px 8px;
	}

	.mcer-dialogue-list-card {
		grid-template-columns: auto 1fr;
	}

	.mcer-dialogue-list-card .mcer-btn {
		grid-column: 1 / -1;
		width: 100%;
	}

	.mcer-student-practice-card .mcer-btn-student {
		min-height: 56px;
	}

	.mcer-exam-topbar {
		flex-wrap: wrap;
		gap: 10px;
		padding: 12px 14px;
		top: 0;
	}

	.mcer-exam-topbar > div:last-child {
		width: 100%;
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
	}

	.mcer-exam-topbar .mcer-btn,
	.mcer-exam-topbar select {
		flex: 1 1 auto;
		min-width: 0;
	}

	.mcer-timer {
		font-size: 22px;
	}

	.mcer-passage,
	.mcer-question-card {
		padding: 16px 18px;
	}

	.mcer-exam-footer {
		flex-direction: column;
		align-items: stretch;
	}

	.mcer-exam-footer .mcer-btn {
		width: 100%;
		justify-content: center;
	}

	.mcer-exam-actions {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.mcer-exam-actions .mcer-btn {
		width: 100%;
		justify-content: center;
	}

	.mcer-practice-top {
		display: flex;
		flex-direction: column;
		gap: 16px;
	}

	.mcer-practice-top-actions {
		width: 100%;
		flex-wrap: wrap;
	}

	.mcer-practice-top-actions .mcer-btn {
		flex: 1 1 calc(50% - 6px);
		min-width: 120px;
	}

	.mcer-practice-questions {
		grid-template-columns: 1fr;
	}

	.mcer-practice-hero {
		grid-template-columns: 1fr;
		min-height: auto;
	}

	.mcer-practice-hero-art {
		grid-template-columns: repeat(3, 64px);
	}

	.mcer-practice-card,
	.mcer-practice-hero {
		padding: 20px 16px;
		border-radius: 20px;
	}

	.mcer-practice-passage-text,
	.mcer-practice-passage-image {
		padding: 16px;
	}

	.mcer-break-card {
		margin: 0 4px;
		padding: 20px 16px;
	}

	.mcer-modal-content,
	.mcer-modal-content-wide {
		width: calc(100% - 24px);
		max-width: none;
		margin: 12px;
		max-height: calc(100vh - 24px);
		overflow-y: auto;
	}
}

@media (max-width: 520px) {
	.mcer-student-app.mcer-fullwidth {
		padding: 0;
	}

	.mcer-login-split {
		border-radius: 0;
		box-shadow: none;
	}

	.mcer-login-panel {
		padding: max(20px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
	}

	.mcer-login-visual {
		display: none;
	}

	.mcer-student-header-brand {
		flex-direction: column;
		align-items: flex-start;
	}

	.mcer-student-header-brand h1 {
		font-size: 17px;
	}

	.mcer-student-tabs {
		grid-template-columns: 1fr;
	}

	.mcer-student-tab {
		flex-direction: row;
		justify-content: flex-start;
		min-height: 56px;
		padding: 14px 16px;
	}

	.mcer-student-tab__label {
		font-size: 14px;
		text-align: left;
	}

	.mcer-tab {
		flex: 1 1 100%;
	}

	.mcer-practice-hero h2,
	.mcer-practice-card h2 {
		font-size: 1.65rem;
	}

	.mcer-practice-top-actions .mcer-btn {
		flex: 1 1 100%;
	}

	.mcer-option {
		padding: 12px;
	}

	.mcer-practice-option {
		padding: 10px;
		font-size: 14px;
	}
}

/* Student portal — colorful primary-school theme */
.mcer-student-app {
	font-family: 'Nunito', 'Inter', sans-serif;
	background:
		radial-gradient(circle at 10% 20%, rgba(255, 210, 0, 0.18), transparent 28%),
		radial-gradient(circle at 90% 10%, rgba(0, 174, 239, 0.16), transparent 24%),
		radial-gradient(circle at 80% 85%, rgba(236, 0, 140, 0.12), transparent 30%),
		linear-gradient(180deg, #dff4ff 0%, #f3fbff 45%, #fff8ef 100%);
}

.mcer-student-app .mcer-student-header-brand h1,
.mcer-student-welcome-banner h2,
.mcer-grade-home-intro h2,
.mcer-student-practice-intro h2,
.mcer-practice-hero h2,
.mcer-practice-card h2 {
	font-family: 'Fredoka', 'Nunito', sans-serif;
}

.mcer-student-welcome-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin: 0 0 20px;
	padding: 22px 26px;
	border-radius: 24px;
	background: linear-gradient(135deg, #ffffff 0%, #fff7d6 55%, #dcfce7 100%);
	border: 3px solid rgba(255, 255, 255, 0.9);
	box-shadow: 0 16px 40px rgba(15, 118, 178, 0.12);
}

.mcer-student-welcome-kicker {
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #0ea5e9;
}

.mcer-student-welcome-banner h2 {
	margin: 0 0 8px;
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	color: #0f172a;
	line-height: 1.15;
}

.mcer-student-welcome-banner p {
	margin: 0;
	color: #475569;
	font-size: 15px;
	max-width: 52ch;
}

.mcer-student-welcome-banner__art {
	display: flex;
	gap: 10px;
	font-size: 28px;
	flex-shrink: 0;
}

.mcer-grade-home-intro {
	text-align: center;
	margin-bottom: 18px;
}

.mcer-grade-home-intro h2 {
	margin: 0 0 8px;
	font-size: 1.75rem;
	color: #0f172a;
}

.mcer-grade-home-intro p {
	margin: 0;
	color: #64748b;
}

.mcer-grade-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.mcer-grade-card {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 22px 18px 20px;
	border-radius: 24px;
	border: 4px solid rgba(255, 255, 255, 0.85);
	box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mcer-grade-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 36px rgba(15, 23, 42, 0.16);
}

.mcer-grade-card.is-selected {
	outline: 4px solid rgba(255, 255, 255, 0.95);
	box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.35), 0 18px 34px rgba(15, 23, 42, 0.16);
}

.mcer-grade-card__badge {
	width: 72px;
	height: 72px;
	border-radius: 20px;
	display: grid;
	place-items: center;
	font-family: 'Fredoka', sans-serif;
	font-size: 2.4rem;
	font-weight: 700;
	color: #fff;
	margin-bottom: 10px;
	box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.12);
}

.mcer-grade-card__title {
	margin: 0 0 8px;
	font-size: 1.35rem;
	font-weight: 800;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	text-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}

.mcer-grade-card__emoji {
	font-size: 2rem;
	margin-bottom: 14px;
}

.mcer-grade-card__btn {
	width: 100%;
	border: none;
	border-radius: 999px;
	padding: 12px 14px;
	font-family: 'Nunito', sans-serif;
	font-size: 14px;
	font-weight: 800;
	color: #0f172a;
	background: rgba(255, 255, 255, 0.95);
	cursor: pointer;
	box-shadow: 0 6px 0 rgba(15, 23, 42, 0.12);
	transition: transform 0.15s ease;
}

.mcer-grade-card__btn:hover {
	transform: translateY(-1px);
}

.mcer-grade-card--green { background: linear-gradient(180deg, #9ad93f 0%, #7cc42a 100%); }
.mcer-grade-card--green .mcer-grade-card__badge { background: #5ea318; }
.mcer-grade-card--blue { background: linear-gradient(180deg, #4cc9f0 0%, #00aeef 100%); }
.mcer-grade-card--blue .mcer-grade-card__badge { background: #0284c7; }
.mcer-grade-card--yellow { background: linear-gradient(180deg, #ffe566 0%, #ffd200 100%); }
.mcer-grade-card--yellow .mcer-grade-card__badge { background: #eab308; }
.mcer-grade-card--orange { background: linear-gradient(180deg, #ffb347 0%, #f7941d 100%); }
.mcer-grade-card--orange .mcer-grade-card__badge { background: #ea580c; }
.mcer-grade-card--teal { background: linear-gradient(180deg, #2dd4bf 0%, #0d9488 100%); }
.mcer-grade-card--teal .mcer-grade-card__badge { background: #0f766e; }
.mcer-grade-card--coral { background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%); }
.mcer-grade-card--coral .mcer-grade-card__badge { background: #c2410c; }
.mcer-grade-card--purple { background: linear-gradient(180deg, #2dd4bf 0%, #0d9488 100%); }
.mcer-grade-card--purple .mcer-grade-card__badge { background: #0f766e; }
.mcer-grade-card--pink { background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%); }
.mcer-grade-card--pink .mcer-grade-card__badge { background: #c2410c; }

.mcer-practice-grade-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
	padding: 14px 18px;
	border-radius: 18px;
	background: linear-gradient(90deg, #ffffff, #ecfeff);
	border: 2px solid #bae6fd;
}

.mcer-practice-grade-banner__copy {
	display: flex;
	align-items: center;
	gap: 12px;
}

.mcer-practice-grade-banner__emoji {
	font-size: 1.8rem;
}

.mcer-practice-grade-banner__copy strong {
	display: block;
	font-size: 1rem;
	color: #0f172a;
}

.mcer-practice-grade-banner__copy p {
	margin: 2px 0 0;
	font-size: 13px;
	color: #64748b;
}

.mcer-btn-sm {
	padding: 8px 14px;
	font-size: 13px;
}

.mcer-student-tabs {
	background: rgba(255, 255, 255, 0.72);
	border: 2px solid rgba(255, 255, 255, 0.95);
	box-shadow: 0 10px 24px rgba(14, 165, 233, 0.08);
}

.mcer-student-tab.active {
	background: linear-gradient(135deg, #0ea5e9, #22c55e);
	color: #fff;
}

.mcer-student-tab.active .mcer-student-tab__label {
	color: #fff;
}

.mcer-practice-category-tile {
	border-width: 3px;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.mcer-practice-category-tile--listening {
	background: linear-gradient(180deg, #ffffff 0%, #e0f2fe 100%);
	border-color: #7dd3fc;
}

.mcer-practice-category-tile--reading {
	background: linear-gradient(180deg, #ffffff 0%, #fef3c7 100%);
	border-color: #fcd34d;
}

.mcer-practice-category-tile--dialogue {
	background: linear-gradient(180deg, #ffffff 0%, #ffedd5 100%);
	border-color: #f9a8d4;
}

.mcer-student-empty--grades {
	padding: 36px 24px;
	border-radius: 24px;
	background: rgba(255, 255, 255, 0.85);
	border: 2px dashed #bae6fd;
}

.mcer-student-empty--grades h3 {
	margin: 8px 0;
	font-family: 'Fredoka', sans-serif;
	color: #0f172a;
}

@media (max-width: 960px) {
	.mcer-grade-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mcer-student-welcome-banner {
		flex-direction: column;
		align-items: flex-start;
	}
}

@media (max-width: 560px) {
	.mcer-grade-grid {
		grid-template-columns: 1fr;
	}
}

/* Sentence picker (teacher) */
.mcer-sentence-picker {
	display: flex;
	flex-direction: column;
	gap: 12px;
	grid-column: 1 / -1;
	padding: 16px;
	border-radius: 14px;
	background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
	border: 1px solid #e2e8f0;
}

.mcer-sentence-picker__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.mcer-sentence-suggestions {
	grid-column: 1 / -1;
	padding: 14px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid #dbeafe;
}

.mcer-sentence-suggestions__title {
	margin: 0 0 10px;
	font-weight: 700;
	color: #1e3a8a;
}

.mcer-sentence-suggestions__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mcer-sentence-option {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	width: 100%;
	text-align: left;
	padding: 12px 14px;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.mcer-sentence-option:hover {
	border-color: #93c5fd;
	background: #f0f9ff;
	transform: translateY(-1px);
}

.mcer-sentence-option.is-selected {
	border-color: #2563eb;
	background: #eff6ff;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.mcer-sentence-option__letter {
	font-weight: 800;
	color: #2563eb;
	min-width: 1.5rem;
}

.mcer-sentence-option__text {
	color: #0f172a;
	line-height: 1.4;
}

/* Vocabulary collections (teacher) */
.mcer-vocabulary-card {
	margin-bottom: 16px;
	border-radius: 16px;
	background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
	border: 2px solid #93c5fd;
	box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
	overflow: hidden;
}

.mcer-vocabulary-details {
	margin: 0;
}

.mcer-vocabulary-card__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px;
	cursor: pointer;
	list-style: none;
}

.mcer-vocabulary-card__summary::-webkit-details-marker {
	display: none;
}

.mcer-vocabulary-card__summary-main {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.mcer-vocabulary-card__chevron {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	color: #2563eb;
	font-size: 0.8rem;
	transition: transform 0.2s ease;
}

.mcer-vocabulary-details[open] .mcer-vocabulary-card__chevron {
	transform: rotate(90deg);
}

.mcer-vocabulary-card__title {
	display: block;
	color: #1e3a8a;
	font-size: 1.05rem;
}

.mcer-vocabulary-card__meta {
	display: block;
	margin-top: 2px;
	font-size: 0.85rem;
	color: #64748b;
}

.mcer-vocabulary-card__body {
	padding: 0 18px 18px;
}

.mcer-study-plan-vocab-options {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mcer-study-plan-vocab-option {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.mcer-vocabulary-table td strong {
	color: #1d4ed8;
}

/* Study plan (student) */
.mcer-study-plan-page {
	margin-top: 4px;
}

.mcer-study-plan-page__notes {
	margin: 0 0 18px;
	color: #334155;
}

.mcer-study-plan-page__section {
	margin-bottom: 18px;
}

.mcer-study-plan-page__section h3 {
	margin: 0 0 10px;
	color: #312e81;
	font-size: 1rem;
}

.mcer-study-plan-page__list {
	margin: 0;
	padding-left: 1.2rem;
	color: #334155;
}

.mcer-study-plan-page__list li + li {
	margin-top: 6px;
}

.mcer-study-plan-card {
	padding: 20px 22px;
	border-radius: 18px;
	background: linear-gradient(135deg, #eef2ff 0%, #fdf4ff 100%);
	border: 2px solid #c4b5fd;
	box-shadow: 0 10px 28px rgba(99, 102, 241, 0.12);
}

.mcer-study-plan-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

.mcer-study-plan-card__head h2 {
	margin: 0;
	font-size: 1.25rem;
	color: #312e81;
}

.mcer-study-plan-vocab {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.mcer-study-plan-vocab-block {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid #e2e8f0;
}

.mcer-study-plan-vocab-block:last-child {
	border-bottom: 0;
}

/* Teacher forms */
.mcer-fieldset {
	border: 1px solid #dbeafe;
	border-radius: 12px;
	padding: 14px 16px;
	background: #f8fafc;
}

.mcer-fieldset legend {
	font-weight: 700;
	color: #1e3a8a;
	padding: 0 6px;
}

.mcer-fieldset label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-right: 16px;
	margin-bottom: 6px;
}

.mcer-inline-input {
	width: 100%;
	min-width: 140px;
	padding: 6px 8px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 0.9rem;
}

.mcer-report-textarea {
	width: 100%;
	margin-top: 8px;
	padding: 12px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	font-family: inherit;
	line-height: 1.5;
	background: #f8fafc;
	resize: vertical;
}

.mcer-student-history-section + .mcer-student-history-section {
	margin-top: 24px;
}

.mcer-practice-audio-notice {
	margin-bottom: 14px;
	padding: 14px 16px;
	border-radius: 12px;
	background: linear-gradient(135deg, #eff6ff 0%, #fef9c3 100%);
	border: 1px solid #93c5fd;
	color: #1e3a8a;
}

.mcer-practice-audio-notice--unlocked {
	background: linear-gradient(135deg, #ecfdf5 0%, #eff6ff 100%);
	border-color: #6ee7b7;
}

.mcer-practice-audio-notice p {
	margin: 6px 0 0;
	font-size: 0.92rem;
	line-height: 1.45;
}

.mcer-review-glossary {
	margin: 12px 0;
	padding: 12px 14px;
	border-radius: 10px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
}

.mcer-review-glossary ul {
	margin: 8px 0 0;
	padding-left: 1.2rem;
}

.mcer-glossary-lang {
	display: inline-block;
	margin-right: 6px;
	padding: 1px 6px;
	border-radius: 6px;
	background: #dbeafe;
	color: #1d4ed8;
	font-size: 0.75rem;
	font-weight: 700;
}

.mcer-vocab-match-list {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.mcer-vocab-match-card {
	padding: 16px;
	border-radius: 14px;
	border: 2px solid #c4b5fd;
	background: #faf5ff;
}

.mcer-vocab-match-board {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 20px;
	margin-top: 16px;
}

.mcer-vocab-match-column h3 {
	margin: 0 0 10px;
	font-size: 1rem;
	color: #312e81;
}

.mcer-vocab-match-pool,
.mcer-vocab-match-targets {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 120px;
}

.mcer-vocab-match-chip {
	display: inline-flex;
	align-items: center;
	padding: 10px 14px;
	border-radius: 999px;
	background: #2563eb;
	color: #fff;
	font-weight: 700;
	cursor: grab;
	user-select: none;
	width: fit-content;
}

.mcer-vocab-match-chip--placed {
	background: #4f46e5;
}

.mcer-vocab-match-drop {
	padding: 12px 14px;
	border-radius: 12px;
	border: 2px dashed #cbd5e1;
	background: #fff;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.mcer-vocab-match-drop.is-drag-over {
	border-color: #2563eb;
	background: #eff6ff;
}

.mcer-vocab-match-drop.has-word {
	border-style: solid;
	border-color: #93c5fd;
}

.mcer-vocab-match-drop.is-correct {
	border-color: #22c55e;
	background: #f0fdf4;
}

.mcer-vocab-match-drop.is-wrong {
	border-color: #ef4444;
	background: #fef2f2;
}

.mcer-vocab-match-drop__label {
	display: block;
	font-weight: 600;
	color: #334155;
	margin-bottom: 8px;
}

.mcer-vocab-match-drop__placeholder {
	color: #94a3b8;
	font-size: 0.9rem;
}

.mcer-vocab-match-actions {
	margin-top: 18px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.mcer-vocab-match-results {
	margin-top: 14px;
	padding: 12px 14px;
	border-radius: 10px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	font-weight: 600;
}

@media (max-width: 768px) {
	.mcer-vocab-match-board {
		grid-template-columns: 1fr;
	}
}
