/* MCER English Practice - Standalone dashboard styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.mcer-app, .mcer-app * {
	box-sizing: border-box;
}

.mcer-wrap, .mcer-app {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: #1e1b4b;
	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, #eef2ff 0%, #faf5ff 40%, #fff7ed 100%);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 24px 64px rgba(88, 28, 135, 0.16);
	margin: 20px 0;
	border: 1px solid rgba(124, 58, 237, 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%, #f5f3ff 100%);
	padding: 24px 16px 16px;
	border-right: 2px solid #e9d5ff;
	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, #7c3aed, #ec4899);
	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(124, 58, 237, 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: #4c1d95;
}

.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 #e9d5ff;
}

.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: #f5f3ff;
	color: #7c3aed;
}

.mcer-nav-item.active {
	background: linear-gradient(90deg, #ede9fe, #fce7f3);
	color: #7c3aed;
	border-left-color: #ec4899;
	font-weight: 600;
}

/* 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: #1e1b4b;
}

.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, #7c3aed, #a855f7);
	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, #7c3aed, #9333ea); box-shadow: 0 8px 24px rgba(124,58,237,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(124, 58, 237, 0.08);
	border: 1px solid #e9d5ff;
}

.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: #7c3aed;
	font-size: 16px;
	margin: 0 0 12px;
	padding: 8px 14px;
	background: linear-gradient(90deg, #ede9fe, #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, #7c3aed, #9333ea);
	color: #fff;
}

.mcer-btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
}

.mcer-btn-outline {
	background: #fff;
	border: 1px solid #e2e8f0;
	color: #475569;
}

.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-repo-summary {
	margin: 0 0 16px;
}

.mcer-repo-summary__card {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #f8fafc;
}

.mcer-repo-summary__filter {
	margin: 0;
	color: #334155;
	font-size: 14px;
}

.mcer-repo-summary__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	font-size: 14px;
	color: #0f172a;
}

.mcer-repo-item__meta {
	margin: 6px 0 0;
	font-size: 13px;
	color: #64748b;
}

.mcer-repo-item__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.mcer-repo-item__head h4 {
	margin: 0;
	flex: 1;
}

.mcer-hint--warn {
	color: #b45309;
	font-weight: 600;
}

.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: #f5f3ff;
	color: #7c3aed;
	margin-right: 6px;
}

.mcer-badge-reading { background: #dbeafe; color: #2563eb; }
.mcer-badge-listening { background: #fce7f3; color: #db2777; }
.mcer-badge-image_listening { background: #ede9fe; color: #6d28d9; }
.mcer-badge-belt_image_listening { background: #ede9fe; color: #6d28d9; }
.mcer-badge-practice_listening { background: #dcfce7; color: #15803d; }
.mcer-badge-practice_image_listening { background: #e0f2fe; color: #0369a1; }
.mcer-badge-belt_practice_image_listening { background: #e0f2fe; color: #0369a1; }
.mcer-badge-practice_reading { background: #ede9fe; color: #6d28d9; }
.mcer-badge-practice_image_reading { background: #fef3c7; color: #b45309; }
.mcer-badge-image_reading { background: #fce7f3; color: #be185d; }

.mcer-app .mcer-image-thumb video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mcer-modal-image-body video {
	max-width: 100%;
	max-height: 70vh;
	border-radius: 8px;
}

.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: #6366f1;
	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-badge-usage-exam { background: #dbeafe; color: #1d4ed8; }
.mcer-badge-usage-practice { background: #dcfce7; color: #15803d; }

.mcer-generate-availability {
	padding: 12px 14px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #f8fafc;
}

.mcer-generate-availability__label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
	color: #334155;
}

.mcer-generate-availability__checks {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 20px;
}

.mcer-check-inline {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.95rem;
}
.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-teacher-layout {
	display: flex;
	width: 100%;
	min-height: 100vh;
	align-items: stretch;
}

.mcer-set-builder {
	display: grid;
	grid-template-columns: minmax(360px, 42%) minmax(0, 1fr);
	gap: 20px;
	min-height: 520px;
	width: 100%;
	align-items: start;
}

.mcer-set-context {
	max-height: 560px;
	overflow-y: auto;
	overflow-x: hidden;
	border: 2px solid #e9d5ff;
	border-radius: 12px;
	padding: 14px;
	background: linear-gradient(180deg, #faf5ff, #fff);
	min-width: 0;
	scrollbar-width: thin;
	scrollbar-color: #c4b5fd #f5f3ff;
}

.mcer-set-context::before {
	content: 'Repositorio de ejercicios';
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #7c3aed;
	margin-bottom: 10px;
}

.mcer-question-picker,
.mcer-set-questions {
	max-height: 560px;
	overflow-y: auto;
	overflow-x: hidden;
	border: 2px solid #bfdbfe;
	border-radius: 12px;
	padding: 16px;
	background: #fff;
	min-width: 0;
	scrollbar-width: thin;
	scrollbar-color: #93c5fd #eff6ff;
}

.mcer-set-questions::before {
	content: 'Preguntas del ejercicio seleccionado';
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #2563eb;
	margin-bottom: 12px;
}

.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: 13px;
	color: #475569;
	line-height: 1.5;
	padding: 2px 0;
}

.mcer-q-opt-label {
	font-weight: 700;
	color: #7c3aed;
	margin-right: 6px;
}

.mcer-exam-letter-preview {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin: 10px 0 6px;
	pointer-events: none;
}

.mcer-exam-letter-chip {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	border: 2px solid #cbd5e1;
	border-radius: 14px;
	background: #f8fafc;
	font-size: 1.25rem;
	font-weight: 800;
	color: #4338ca;
}

.mcer-exam-letter-chip.is-correct {
	border-color: #7c3aed;
	background: #ede9fe;
	box-shadow: inset 0 0 0 1px rgba(124, 58, 237, 0.15);
}

.mcer-image-listening-teacher-note {
	margin-top: 4px;
}

.mcer-exam-panel-image {
	margin-bottom: 12px;
}

.mcer-exam-panel-audio {
	width: 100%;
	margin-bottom: 10px;
}

.mcer-sidebar-logout {
	margin: 12px 16px 0;
	width: calc(100% - 32px);
}

.mcer-set-card {
	padding: 14px;
	border-radius: 10px;
	border: 2px solid #e9d5ff;
	background: #fff;
	margin-bottom: 10px;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.mcer-set-card:hover {
	border-color: #c4b5fd;
	background: #faf5ff;
}

.mcer-set-card.active {
	border-color: #7c3aed;
	background: #f5f3ff;
	box-shadow: 0 2px 10px rgba(124, 58, 237, 0.12);
}

.mcer-set-card-head {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	margin-bottom: 8px;
}

.mcer-set-card-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.mcer-set-card-title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
	color: #1e293b;
	word-break: break-word;
}

.mcer-set-card-meta {
	display: block;
	font-size: 12px;
	color: #64748b;
	margin-top: 8px;
}

.mcer-set-card-audio-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	font-weight: 600;
	color: #5b21b6;
	background: #ede9fe;
	padding: 3px 8px;
	border-radius: 999px;
}

.mcer-set-context .mcer-set-preview {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	font-size: 12px;
	line-height: 1.5;
	margin: 0;
}

.mcer-set-context .mcer-view-passage,
.mcer-set-context .mcer-audio-mini {
	display: none;
}

.mcer-set-context .mcer-exercise-preview-row {
	margin: 6px 0 0;
	gap: 8px;
}

.mcer-set-context .mcer-image-thumb,
.mcer-set-context .mcer-image-thumb img,
.mcer-set-context .mcer-image-thumb video {
	width: 64px !important;
	height: 64px !important;
	max-width: 64px !important;
	max-height: 64px !important;
}

.mcer-set-preview {
	font-size: 13px;
	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: flex-start;
	margin-bottom: 14px;
	gap: 12px;
	flex-wrap: wrap;
}

.mcer-set-panel-header h4 {
	margin: 0;
	font-size: 16px;
	line-height: 1.4;
	flex: 1;
	min-width: 0;
}

.mcer-btn-sm {
	padding: 6px 12px;
	font-size: 12px;
}

.mcer-inline-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.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: #7c3aed;
}

.mcer-q-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
	border: 2px solid transparent;
	margin-bottom: 8px;
}

.mcer-q-item:hover {
	background: #f5f3ff;
	border-color: #e9d5ff;
}

.mcer-q-item.selected {
	background: #ede9fe;
	border-color: #7c3aed;
}

.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: #7c3aed;
	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, #7c3aed, #ec4899);
	color: #fff;
	box-shadow: 0 4px 12px rgba(124, 58, 237, 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,var(--mcer-practice-highlight-opacity, 0.18)), transparent 28%),
		linear-gradient(135deg, var(--mcer-practice-gradient-start, #ff4d7d) 0%, var(--mcer-practice-gradient-mid, #8b5cf6) 45%, var(--mcer-practice-gradient-end, #38bdf8) 100%);
	color: var(--mcer-practice-title-color, #1e1b4b);
	padding: 32px;
	box-shadow: 0 24px 60px rgba(124, 58, 237, 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-student-practice-hub .mcer-practice-hub-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

@media (max-width: 1100px) {
	.mcer-student-practice-hub .mcer-practice-hub-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.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: #6366f1;
	background: linear-gradient(135deg, #eef2ff, #ede9fe);
	color: #4338ca;
}

.mcer-practice-level-picker--card {
	padding: 0;
	background: transparent;
	border: none;
	box-shadow: none;
	gap: 6px;
	margin-top: 4px;
}

.mcer-practice-level-picker--card .mcer-practice-level-picker__label {
	font-size: 0.78rem;
	color: #64748b;
	font-weight: 600;
}

.mcer-practice-level-picker--card .mcer-practice-level-options {
	gap: 6px;
}

.mcer-practice-level-picker--card .mcer-practice-level-option {
	padding: 6px 8px;
	font-size: 0.72rem;
	flex: 1 1 calc(50% - 6px);
	min-width: 0;
	text-align: center;
}

.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, #fce7f3);
}

.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,var(--mcer-practice-highlight-opacity, 0.18)), transparent 28%),
		linear-gradient(135deg, var(--mcer-practice-gradient-start, #0ea5e9) 0%, var(--mcer-practice-gradient-mid, #6366f1) 50%, var(--mcer-practice-gradient-end, #a855f7) 100%);
}

.mcer-teacher-preview-login {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #e2e8f0;
}

.mcer-teacher-preview-banner {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	align-items: center;
	margin: 0 0 16px;
	padding: 12px 16px;
	border-radius: 14px;
	background: #fff7ed;
	border: 1px solid #fdba74;
	color: #9a3412;
	font-size: 0.95rem;
}

.mcer-teacher-preview-banner strong {
	font-weight: 800;
}

.mcer-teacher-preview-link {
	align-self: center;
	white-space: nowrap;
}

.mcer-btn-danger.mcer-btn-sm {
	padding: 8px 12px;
	font-size: 0.82rem;
}

.mcer-practice-top-actions .mcer-btn-danger,
.mcer-asocie-header-actions .mcer-btn-danger,
.mcer-spelling-head .mcer-btn-danger,
.mcer-ps-practice__head .mcer-btn-danger {
	margin-right: auto;
}

.mcer-co-practice__head-actions,
.mcer-ce-practice__head-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: flex-end;
	margin-top: 12px;
}

.mcer-practice-passage-stack {
	display: grid;
	gap: 16px;
	margin-bottom: 4px;
}

.mcer-app .mcer-image-exercise-layout {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 20px;
	align-items: start;
	margin: 4px 0 0;
}

.mcer-app .mcer-image-exercise-layout__media {
	width: 260px;
	max-width: 100%;
	min-width: 0;
}

.mcer-app .mcer-image-exercise-thumb {
	display: block;
	box-sizing: border-box;
	width: 100%;
	aspect-ratio: 1 / 1;
	padding: 0;
	margin: 0;
	border: 2px solid rgba(255, 255, 255, 0.55);
	border-radius: 16px;
	overflow: hidden;
	cursor: zoom-in;
	background: #f8fafc;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
	appearance: none;
	font: inherit;
	line-height: 0;
	text-align: left;
}

.mcer-app .mcer-image-exercise-thumb:hover,
.mcer-app .mcer-image-exercise-thumb:focus-visible {
	border-color: #c4b5fd;
	outline: none;
	transform: scale(1.01);
}

.mcer-app .mcer-image-exercise-thumb img,
.mcer-app .mcer-image-exercise-thumb video {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	min-width: 0;
	min-height: 0;
	object-fit: cover;
	border: 0;
	margin: 0;
	padding: 0;
}

.mcer-app .mcer-image-exercise-layout__content {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.mcer-app .mcer-image-exercise-layout__content .mcer-practice-questions {
	display: flex;
	flex-direction: column;
	gap: 16px;
	grid-template-columns: none;
}

.mcer-app .mcer-image-exercise-layout--listening .mcer-practice-player-body {
	background: rgba(255, 255, 255, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 20px;
	padding: 18px;
	backdrop-filter: blur(10px);
}

.mcer-app .mcer-image-exercise-layout--listening .mcer-practice-questions,
.mcer-app .mcer-image-exercise-layout--reading .mcer-practice-questions {
	margin-top: 0;
}

.mcer-practice-passage-text--inline {
	margin-bottom: 0;
	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-image-exercise-layout--exam {
	margin-bottom: 16px;
}

.mcer-app .mcer-image-exercise-layout--exam {
	grid-template-columns: 240px minmax(0, 1fr);
}

.mcer-app .mcer-image-exercise-layout--exam .mcer-image-exercise-layout__media {
	width: 240px;
}

.mcer-app .mcer-image-exercise-layout--exam .mcer-image-exercise-thumb {
	border-color: #e2e8f0;
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.mcer-image-exercise-layout--exam .mcer-question-card {
	margin-top: 0;
}

.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: var(--mcer-practice-kicker-bg, #e0e7ff);
	color: var(--mcer-practice-kicker-color, #1e1b4b);
	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: var(--mcer-practice-title-color, #1e1b4b);
}

.mcer-practice-hero .mcer-practice-hero-copy > p,
.mcer-practice-card > .mcer-practice-top > div > p,
.mcer-practice-card .mcer-hint,
.mcer-practice-hero .mcer-hint,
.mcer-spelling-head .mcer-hint,
.mcer-spelling-practice .mcer-hint {
	color: var(--mcer-practice-hint-color, #334155);
}

/* ASOCIE — vocabulary matching (all viewports) */
.mcer-asocie-card.mcer-practice-card {
	padding: 0;
	overflow: visible;
	background: transparent;
	box-shadow: none;
}

.mcer-asocie-card.mcer-practice-card::after {
	display: none;
}

.mcer-asocie-shell {
	position: relative;
	z-index: 1;
	padding: 28px;
	border-radius: 28px;
	background:
		radial-gradient(circle at top left, rgba(255,255,255,var(--mcer-practice-highlight-opacity, 0.18)), transparent 32%),
		linear-gradient(135deg, var(--mcer-practice-gradient-start, #ff4d7d) 0%, var(--mcer-practice-gradient-mid, #8b5cf6) 45%, var(--mcer-practice-gradient-end, #38bdf8) 100%);
	box-shadow: 0 24px 60px rgba(124, 58, 237, 0.22);
	color: var(--mcer-practice-title-color, #1e1b4b);
}

.mcer-asocie-shell--belt {
	background:
		radial-gradient(circle at top left, rgba(255,255,255,var(--mcer-practice-highlight-opacity, 0.18)), transparent 32%),
		linear-gradient(135deg, #1d4ed8 0%, #2563eb 42%, #38bdf8 100%);
	box-shadow: 0 24px 60px rgba(37, 99, 235, 0.24);
}

.mcer-asocie-kicker {
	background: var(--mcer-practice-kicker-bg, #e0e7ff);
	color: var(--mcer-practice-kicker-color, #1e1b4b);
}

.mcer-asocie-header,
.mcer-asocie-review-hero {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
	margin-bottom: 18px;
}

.mcer-asocie-header h2,
.mcer-asocie-review-hero h2 {
	margin: 10px 0 8px;
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	line-height: 1.1;
	color: var(--mcer-practice-title-color, #1e1b4b);
}

.mcer-asocie-lead,
.mcer-asocie-review-hero p,
.mcer-asocie-topic {
	margin: 0;
	color: var(--mcer-practice-hint-color, #334155);
	line-height: 1.5;
}

.mcer-asocie-topic {
	margin-top: 8px;
	font-size: 0.92rem;
	font-weight: 600;
}

.mcer-asocie-header-actions,
.mcer-asocie-review-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.mcer-asocie-btn-light {
	color: #fff !important;
	border-color: rgba(255, 255, 255, 0.55) !important;
	background: rgba(255, 255, 255, 0.12) !important;
}

.mcer-asocie-progress {
	margin-bottom: 18px;
	padding: 14px 16px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.14);
	backdrop-filter: blur(6px);
}

.mcer-asocie-progress__meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
	font-size: 0.92rem;
}

.mcer-asocie-progress__track {
	height: 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.22);
	overflow: hidden;
}

.mcer-asocie-progress__fill {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, #fef08a, #86efac);
	transition: width 0.25s ease;
}

.mcer-asocie-board {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 18px;
	align-items: start;
}

.mcer-asocie-column {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-height: 100%;
	padding: 16px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.97);
	color: #1e293b;
	box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
}

.mcer-asocie-column__title {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 1.5rem;
	font-size: 1rem;
	font-weight: 800;
	color: #312e81;
}

.mcer-asocie-column__title--spacer {
	visibility: hidden;
}

.mcer-asocie-column__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mcer-asocie-term {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	border: 2px solid #cbd5e1;
	border-radius: 14px;
	padding: 12px 14px;
	cursor: grab;
	color: #0f172a;
	font-weight: 700;
	user-select: none;
	transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.mcer-asocie-term:hover {
	border-color: #6366f1;
	background: #eef2ff;
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(99, 102, 241, 0.14);
}

.mcer-asocie-term.is-selected {
	border-color: #7c3aed;
	border-style: solid;
	background: #ede9fe;
	box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.mcer-asocie-term.is-placed {
	opacity: 0.4;
	cursor: default;
	transform: none;
	box-shadow: none;
}

.mcer-asocie-variant {
	display: inline-flex;
	align-items: center;
	padding: 3px 8px;
	border-radius: 999px;
	background: #e0e7ff;
	color: #3730a3;
	font-size: 0.72rem;
	font-weight: 700;
	white-space: nowrap;
}

.mcer-asocie-dropzone {
	border: 2px dashed #cbd5e1;
	border-radius: 14px;
	padding: 12px 14px;
	min-height: 88px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.mcer-asocie-dropzone:hover,
.mcer-asocie-dropzone.is-target {
	border-color: #6366f1;
	border-style: solid;
	background: #f8fafc;
	box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.12);
}

.mcer-asocie-dropzone.is-filled {
	border-style: solid;
	border-color: #93c5fd;
	background: #f8fbff;
}

.mcer-asocie-definition {
	margin: 0 0 10px;
	font-size: 0.95rem;
	color: #334155;
	line-height: 1.45;
}

.mcer-asocie-slot {
	min-height: 30px;
}

.mcer-asocie-slot__hint {
	display: inline-block;
	padding: 6px 10px;
	border-radius: 8px;
	background: #f1f5f9;
	color: #64748b;
	font-size: 0.82rem;
	font-style: italic;
}

.mcer-asocie-placed {
	display: inline-flex;
	align-items: center;
	background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 100%);
	border: 1px solid #60a5fa;
	border-radius: 10px;
	padding: 7px 12px;
	font-weight: 700;
	color: #1e3a8a;
}

.mcer-asocie-review-hero {
	align-items: center;
}

.mcer-asocie-score-ring {
	flex: 0 0 auto;
	width: 112px;
	height: 112px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	text-align: center;
	background:
		radial-gradient(circle at center, rgba(255,255,255,0.96) 58%, transparent 59%),
		conic-gradient(#86efac calc(var(--score, 0) * 1%), #fecaca 0);
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
	color: #0f172a;
}

.mcer-asocie-score-ring strong {
	display: block;
	font-size: 1.45rem;
	line-height: 1;
}

.mcer-asocie-score-ring span {
	font-size: 0.82rem;
	color: #475569;
}

.mcer-asocie-results-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 18px;
}

.mcer-asocie-result {
	padding: 14px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.97);
	color: #0f172a;
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.mcer-asocie-result--correct {
	border: 2px solid #86efac;
}

.mcer-asocie-result--incorrect {
	border: 2px solid #fca5a5;
}

.mcer-asocie-result__head {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 8px;
}

.mcer-asocie-result__term {
	display: block;
	font-size: 1rem;
	color: #1e293b;
}

.mcer-asocie-result__answer {
	margin: 0 0 6px;
	font-size: 0.9rem;
	line-height: 1.45;
	color: #334155;
}

.mcer-asocie-result__answer span,
.mcer-asocie-result__answer--correct span {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #64748b;
	margin-bottom: 2px;
}

.mcer-asocie-result__answer--correct {
	color: #166534;
}

.mcer-asocie-result__empty {
	color: #94a3b8;
}

.mcer-asocie-review-actions {
	justify-content: flex-start;
}

.mcer-asocie-term__main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
}

.mcer-asocie-term__hints {
	margin-top: 8px;
	width: 100%;
}

.mcer-asocie-hint-btn {
	border: 0;
	border-radius: 999px;
	padding: 6px 12px;
	background: #fef3c7;
	color: #92400e;
	font-size: 0.8rem;
	font-weight: 700;
	cursor: pointer;
}

.mcer-asocie-hint-text {
	margin: 8px 0 0;
	padding: 8px 10px;
	border-radius: 10px;
	background: #ecfdf5;
	border: 1px solid #86efac;
	color: #166534;
	font-size: 0.88rem;
	line-height: 1.4;
}

.mcer-asocie-attempt-banner {
	margin-bottom: 14px;
	padding: 12px 14px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.35);
	color: #fff;
	font-size: 0.92rem;
}

.mcer-asocie-result__retry-hint {
	margin: 0;
	padding: 8px 10px;
	border-radius: 10px;
	background: #fff7ed;
	border: 1px solid #fdba74;
	color: #9a3412;
	font-size: 0.88rem;
	line-height: 1.45;
}

.mcer-spelling-practice .mcer-spelling-head {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	margin-bottom: 20px;
}

.mcer-spelling-words {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 20px auto;
	max-width: 960px;
}

.mcer-spelling-chip {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	border: 2px solid #cbd5e1;
	background: #fff;
	color: var(--mcer-practice-option-color, #0f172a);
	border-radius: 16px;
	padding: 12px 16px;
	min-width: 120px;
	font-size: 1rem;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}

.mcer-spelling-chip__word {
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.2;
}

.mcer-spelling-chip__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	letter-spacing: 0.01em;
}

.mcer-spelling-chip__correction {
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
}

.mcer-spelling-chip-wrap {
	display: flex;
	justify-content: center;
}

.mcer-spelling-chip-wrap--neutral .mcer-spelling-chip {
	opacity: 0.72;
}

.mcer-spelling-chip--hit {
	border-color: #16a34a;
	background: #ecfdf5;
	color: #14532d;
	box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16);
}

.mcer-spelling-chip--hit .mcer-spelling-chip__badge {
	background: #16a34a;
	color: #fff;
}

.mcer-spelling-chip--false-positive {
	border-color: #d97706;
	background: #fff7ed;
	color: #9a3412;
	box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.16);
}

.mcer-spelling-chip--false-positive .mcer-spelling-chip__badge {
	background: #ea580c;
	color: #fff;
}

.mcer-spelling-chip--missed {
	border-color: #dc2626;
	background: #fef2f2;
	color: #991b1b;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.16);
}

.mcer-spelling-chip--missed .mcer-spelling-chip__badge {
	background: #dc2626;
	color: #fff;
}

.mcer-spelling-chip--missed .mcer-spelling-chip__correction {
	color: #7f1d1d;
}

.mcer-spelling-chip--ok {
	border-color: #0ea5e9;
	background: #f0f9ff;
	color: #0c4a6e;
	box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.mcer-spelling-chip--ok .mcer-spelling-chip__badge {
	background: #0284c7;
	color: #fff;
}

.mcer-spelling-chip--neutral {
	border-color: #cbd5e1;
	background: #f8fafc;
	color: #475569;
}

.mcer-spelling-words--review {
	gap: 14px;
}

.mcer-spelling-legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0 auto 18px;
	max-width: 960px;
}

.mcer-spelling-legend__item {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.3;
}

.mcer-spelling-legend__item--hit {
	background: #dcfce7;
	color: #166534;
}

.mcer-spelling-legend__item--false-positive {
	background: #ffedd5;
	color: #9a3412;
}

.mcer-spelling-legend__item--missed {
	background: #fee2e2;
	color: #991b1b;
}

.mcer-spelling-legend__item--ok {
	background: #e0f2fe;
	color: #075985;
}

.mcer-spelling-review-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 0 auto 18px;
	max-width: 960px;
}

.mcer-spelling-review-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
	gap: 20px;
	align-items: start;
	margin: 0 auto;
	max-width: 1180px;
}

.mcer-spelling-review-layout--no-vocab {
	grid-template-columns: minmax(0, 1fr);
	max-width: 960px;
}

.mcer-spelling-review-main {
	min-width: 0;
}

.mcer-spelling-vocab-panel {
	position: sticky;
	top: 16px;
	padding: 18px 16px;
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.96);
	border: 1px solid rgba(255, 255, 255, 0.7);
	box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
	color: #0f172a;
}

.mcer-spelling-vocab-panel__title {
	margin: 0 0 8px;
	font-size: 1.05rem;
	line-height: 1.2;
	color: var(--mcer-practice-title-color, #1e1b4b);
}

.mcer-spelling-vocab-panel__lead {
	margin: 0 0 14px;
	font-size: 0.84rem;
	line-height: 1.45;
	color: var(--mcer-practice-hint-color, #475569);
}

.mcer-spelling-vocab-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: min(62vh, 560px);
	overflow: auto;
}

.mcer-spelling-vocab-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 10px 12px;
	border-radius: 12px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
}

.mcer-spelling-vocab-item__term {
	font-size: 0.95rem;
	line-height: 1.2;
	color: #1e3a8a;
}

.mcer-spelling-vocab-item__definition {
	font-size: 0.88rem;
	line-height: 1.4;
	color: #334155;
}

.mcer-spelling-vocab-item__missing {
	color: #94a3b8;
	font-style: italic;
}

.mcer-spelling-stat {
	padding: 14px 12px;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.65);
	text-align: center;
	color: #0f172a;
}

.mcer-spelling-stat strong {
	display: block;
	font-size: 1.35rem;
	line-height: 1.1;
	margin-bottom: 4px;
}

.mcer-spelling-stat span {
	display: block;
	font-size: 0.82rem;
	color: #475569;
}

.mcer-spelling-stat--perfect {
	border-color: #86efac;
	background: #ecfdf5;
}

.mcer-spelling-stat--warning {
	border-color: #fdba74;
	background: #fff7ed;
}

@media (max-width: 640px) {
	.mcer-spelling-review-stats {
		grid-template-columns: 1fr;
	}

	.mcer-spelling-review-layout {
		grid-template-columns: 1fr;
	}

	.mcer-spelling-vocab-panel {
		position: static;
	}

	.mcer-spelling-vocab-list {
		max-height: none;
	}

	.mcer-spelling-chip {
		min-width: 100px;
		padding: 10px 12px;
	}
}

.mcer-spelling-chip:hover:not(:disabled) {
	border-color: #2563eb;
	background: #eff6ff;
}

.mcer-spelling-chip--selected {
	border-color: #2563eb;
	background: #dbeafe;
	color: #1e3a8a;
	font-weight: 600;
}

.mcer-spelling-chip--preview {
	cursor: default;
	font-size: 0.92rem;
}

.mcer-spelling-chip--preview.mcer-spelling-chip--misspelled,
.mcer-spelling-words--preview .mcer-spelling-chip--misspelled {
	border-color: #dc2626;
	background: #fef2f2;
	color: #991b1b;
}

.mcer-spelling-actions,
.mcer-spelling-review-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 16px;
}

.mcer-spelling-feedback {
	font-size: 1.05rem;
	line-height: 1.5;
}

.mcer-spelling-reveal-note {
	margin-top: 12px;
}

.mcer-random-practice-bar {
	margin: 0 0 16px;
	padding: 12px 16px;
	border-radius: 12px;
	background: linear-gradient(135deg, #eef2ff, #f5f3ff);
	border: 1px solid #c7d2fe;
}

.mcer-random-practice-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.mcer-random-practice-bar__actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.mcer-btn-sm {
	padding: 8px 14px;
	font-size: 0.9rem;
}

.mcer-random-practice-footer {
	position: sticky;
	bottom: 0;
	z-index: 30;
	margin-top: 20px;
	padding: 12px 16px 16px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 28%);
}

.mcer-random-practice-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	padding: 14px 16px;
	border-radius: 14px;
	border: 1px solid #c7d2fe;
	background: #fff;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.mcer-random-practice-footer__copy {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.mcer-random-practice-footer__actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

#mcer-tab-practice.mcer-random-practice-active {
	padding-bottom: 88px;
}

.mcer-student-program-banner__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.mcer-program-help-fab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	padding: 12px 16px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
	color: #78350f;
	font-weight: 800;
	font-size: 0.95rem;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(245, 158, 11, 0.35);
	animation: mcerProgramHelpPulse 2.4s ease-in-out infinite;
}

.mcer-program-help-fab__label {
	font-size: 0.9rem;
}

@keyframes mcerProgramHelpPulse {
	0%, 100% { transform: scale(1); box-shadow: 0 10px 24px rgba(245, 158, 11, 0.35); }
	50% { transform: scale(1.04); box-shadow: 0 14px 30px rgba(245, 158, 11, 0.5); }
}

.mcer-program-help-modal h3 {
	margin-top: 0;
}

.mcer-program-help-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 18px 0;
}

.mcer-program-help-card {
	padding: 18px;
	border-radius: 16px;
	border: 2px solid #e9d5ff;
	background: #faf5ff;
}

.mcer-program-help-card--belt {
	border-color: #bfdbfe;
	background: #eff6ff;
}

.mcer-program-help-card__icon {
	font-size: 2rem;
	line-height: 1;
}

.mcer-program-help-card h4 {
	margin: 10px 0 8px;
	color: #312e81;
}

.mcer-program-help-card--belt h4 {
	color: #1e3a8a;
}

.mcer-program-help-card p,
.mcer-program-help-note {
	margin: 0;
	color: #475569;
	line-height: 1.55;
	font-size: 0.95rem;
}

.mcer-program-help-note {
	margin-top: 8px;
	padding: 12px 14px;
	border-radius: 12px;
	background: #f8fafc;
}

.mcer-review-approve-all-banner {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 0 0 22px;
	padding: 20px 22px;
	border-radius: 18px;
	border: 2px solid #86efac;
	background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 55%, #dcfce7 100%);
	box-shadow: 0 12px 30px rgba(22, 163, 74, 0.12);
}

.mcer-review-approve-all-banner__icon {
	font-size: 2rem;
	line-height: 1;
}

.mcer-review-approve-all-banner__body {
	flex: 1;
}

.mcer-review-approve-all-banner h3 {
	margin: 0 0 10px;
	color: #14532d;
	font-size: 1.1rem;
}

.mcer-review-approve-all-banner__label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-weight: 600;
	color: #166534;
	cursor: pointer;
}

.mcer-review-approve-all-banner__label input {
	margin-top: 4px;
	width: 18px;
	height: 18px;
}

.mcer-review-approve-all-btn {
	min-width: 180px;
	font-weight: 800;
	letter-spacing: 0.04em;
}

@media (max-width: 900px) {
	.mcer-asocie-header,
	.mcer-asocie-review-hero {
		flex-direction: column;
	}

	.mcer-asocie-header-actions,
	.mcer-asocie-review-actions {
		width: 100%;
	}

	.mcer-asocie-header-actions .mcer-btn,
	.mcer-asocie-review-actions .mcer-btn {
		flex: 1 1 auto;
	}
}

@media (max-width: 768px) {
	.mcer-asocie-shell {
		padding: 18px 16px;
		border-radius: 22px;
	}

	.mcer-asocie-board,
	.mcer-asocie-results-grid {
		grid-template-columns: 1fr;
	}

	.mcer-program-help-cards {
		grid-template-columns: 1fr;
	}

	.mcer-student-program-banner__head {
		flex-direction: column;
	}

	.mcer-review-approve-all-banner {
		flex-direction: column;
		align-items: stretch;
	}
}

.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: #1e1b4b;
	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: #7c3aed;
}

.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: #1e1b4b;
	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: #7c3aed;
	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 #e2e8f0;
	border-radius: 14px;
	background: #f8fafc;
	color: var(--mcer-practice-option-color, var(--mcer-reading-option-color, #334155));
	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: #a78bfa;
	background: #f5f3ff;
	transform: translateY(-1px);
}

.mcer-practice-option span {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 10px;
	background: #ede9fe;
	color: #7c3aed;
	font-weight: 800;
	flex-shrink: 0;
}

.mcer-practice-option.selected {
	border-color: #7c3aed;
	background: #ede9fe;
}

.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: #ede9fe;
	color: #7c3aed;
}

.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 #e9d5ff;
	min-width: 130px;
	text-align: center;
	box-shadow: 0 2px 8px rgba(124, 58, 237, 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: #1e1b4b;
	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: #4c1d95;
	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-set-context,
	.mcer-set-questions {
		max-height: none;
	}
	.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;
	}

	.mcer-student-practice-hub .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%, #faf5ff 50%, #ede9fe 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(88, 28, 135, 0.18);
	border: 1px solid rgba(124, 58, 237, 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: #1e1b4b;
	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-login-institution-preview {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.mcer-login-institution-preview__logo {
	width: 40px;
	height: 40px;
	object-fit: contain;
	border-radius: 6px;
	background: #fff;
}

.mcer-login-institution-preview__name {
	font-weight: 600;
	font-size: 14px;
}

.mcer-input-field {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #f5f3ff;
	border: 1px solid #e9d5ff;
	border-radius: 12px;
	padding: 4px 14px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.mcer-input-field:focus-within {
	border-color: #a78bfa;
	box-shadow: 0 0 0 3px rgba(167, 139, 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: #1e1b4b;
}

.mcer-input-field input::placeholder {
	color: #a1a1aa;
}

.mcer-btn-login {
	background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 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(88, 28, 135, 0.16);
	text-align: center;
	max-width: 460px;
	margin: 40px auto;
	border: 2px solid #e9d5ff;
}

.mcer-answer-matrix-screen {
	max-width: 720px;
}

.mcer-matrix-summary {
	margin: 0 0 12px;
	font-size: 1.05rem;
	color: #334155;
}

.mcer-matrix-legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 18px;
	margin: 0 0 18px;
	font-size: 0.85rem;
	color: #64748b;
}

.mcer-matrix-legend__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.mcer-matrix-legend__item::before {
	content: '';
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: inline-block;
	background-color: transparent;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}

.mcer-matrix-legend__item--correct::before {
	background-image: url('../images/matrix-btn-correct.png');
}

.mcer-matrix-legend__item--incorrect::before {
	background-image: url('../images/matrix-btn-incorrect.png');
}

.mcer-answer-matrix-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
	margin: 0 0 24px;
}

@media (min-width: 560px) {
	.mcer-answer-matrix-grid {
		grid-template-columns: repeat(10, minmax(0, 1fr));
	}
}

.mcer-matrix-q-btn {
	appearance: none;
	border: none;
	border-radius: 50%;
	width: 100%;
	aspect-ratio: 1;
	min-height: 0;
	padding: 0;
	font-weight: 800;
	font-size: 0.95rem;
	color: #fff;
	cursor: pointer;
	background-color: transparent;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	text-shadow: 0 1px 2px rgba(15, 23, 42, 0.45);
	transition: transform 0.18s ease, filter 0.18s ease;
}

.mcer-matrix-q-btn:hover {
	transform: translateY(-2px) scale(1.04);
	filter: brightness(1.06);
}

.mcer-matrix-q-btn:active {
	transform: translateY(0) scale(0.98);
}

.mcer-matrix-q-btn:focus-visible {
	outline: 3px solid #7c3aed;
	outline-offset: 3px;
}

.mcer-matrix-q-btn--correct {
	background-image: url('../images/matrix-btn-correct.png');
}

.mcer-matrix-q-btn--incorrect {
	background-image: url('../images/matrix-btn-incorrect.png');
}

.mcer-matrix-q-btn__num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	line-height: 1;
}

.mcer-matrix-actions,
.mcer-final-summary-actions,
.mcer-exam-review-prompt-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 8px;
}

.mcer-section-score-box,
.mcer-final-summary-scores {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 14px 16px;
	margin: 16px 0;
	color: #0f172a;
	font-size: 1.05rem;
	line-height: 1.5;
}

.mcer-final-summary-scores p {
	margin: 6px 0;
}

.mcer-exam-review-prompt-content {
	max-width: 480px;
	text-align: center;
}

.mcer-exam-review-prompt-actions {
	margin-top: 20px;
}

.mcer-option.mcer-option--locked {
	cursor: default;
	pointer-events: none;
}

.mcer-option.mcer-option--correct,
.mcer-option.mcer-option--correct.selected {
	border-color: #16a34a;
	background: #f0fdf4;
}

.mcer-option.mcer-option--correct .mcer-option-key,
.mcer-option.mcer-option--correct.selected .mcer-option-key {
	background: #16a34a;
	color: #fff;
}

.mcer-option.mcer-option--wrong,
.mcer-option.mcer-option--wrong.selected {
	border-color: #dc2626;
	background: #fef2f2;
}

.mcer-option.mcer-option--wrong .mcer-option-key,
.mcer-option.mcer-option--wrong.selected .mcer-option-key {
	background: #dc2626;
	color: #fff;
}

.mcer-exam-answer-feedback {
	margin-top: 14px;
	padding: 12px 14px;
	border-radius: 12px;
	font-size: 0.95rem;
	line-height: 1.5;
}

.mcer-exam-answer-feedback--correct {
	background: #f0fdf4;
	color: #166534;
	border: 1px solid #86efac;
}

.mcer-exam-answer-feedback--incorrect {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fca5a5;
}

.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-program-choice {
	max-width: 720px;
}

.mcer-program-choice-actions {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
	margin-top: 24px;
}

.mcer-program-choice-btn {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	width: 100%;
	min-height: 120px;
	text-align: left;
	white-space: normal;
}

.mcer-program-choice-btn__title {
	font-size: 1.15rem;
	font-weight: 700;
}

.mcer-program-choice-btn__desc {
	font-size: 0.92rem;
	font-weight: 400;
	opacity: 0.9;
}

.mcer-student-program-gate {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 20px;
	background: linear-gradient(135deg, #faf5ff 0%, #eef2ff 55%, #f5f3ff 100%);
}

.mcer-student-program-gate__panel {
	width: min(860px, 100%);
}

.mcer-student-program-gate__inner {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.mcer-student-program-banner {
	margin-bottom: 0;
}

.mcer-student-program-banner-strip {
	margin: 0 0 18px;
}

.mcer-student-program-banner-strip__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 18px;
	border-radius: 14px;
	border: 2px solid #ddd6fe;
	background: #fff;
	box-shadow: 0 8px 24px rgba(109, 40, 217, 0.08);
}

.mcer-student-program-banner-strip--belt {
	border-color: #93c5fd;
	background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.mcer-student-program-banner-strip--secundaria {
	border-color: #c4b5fd;
	background: linear-gradient(135deg, #faf5ff 0%, #f5f3ff 100%);
}

.mcer-student-program-banner-strip__icon {
	font-size: 1.8rem;
	line-height: 1;
}

.mcer-student-program-banner-strip__inner strong {
	display: block;
	color: #312e81;
	font-size: 1rem;
}

.mcer-student-program-banner-strip__inner p {
	margin: 4px 0 0;
	color: #5b21b6;
	font-size: 0.92rem;
}

.mcer-student-program-banner-strip--belt .mcer-student-program-banner-strip__inner strong,
.mcer-student-program-banner-strip--belt .mcer-student-program-banner-strip__inner p {
	color: #1e3a8a;
}

.mcer-student-program-banner-strip__change {
	margin-left: auto;
	border: 0;
	background: #7c3aed;
	color: #fff;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}

.mcer-student-program-banner-strip--belt .mcer-student-program-banner-strip__change {
	background: #2563eb;
}

.mcer-student-program-label--belt {
	color: #1d4ed8 !important;
}

.mcer-student-program-label--secundaria {
	color: #6b21a8 !important;
}

.mcer-student-app--belt .mcer-student-tab.active {
	border-color: #2563eb;
	color: #1d4ed8;
}

.mcer-practice-kicker--secundaria {
	background: #7c3aed;
}

.mcer-practice-kicker--belt {
	background: #2563eb;
}

.mcer-student-practice-hub--secundaria {
	border-top: 4px solid #7c3aed;
}

.mcer-student-practice-hub--belt {
	border-top: 4px solid #2563eb;
}

.mcer-practice-bar__level {
	display: block;
	font-size: 0.68rem;
	font-weight: 700;
	color: #5b21b6;
	margin-top: 2px;
}

.mcer-level-breakdown {
	margin: 16px 0;
}

.mcer-level-breakdown h3 {
	margin: 0 0 8px;
	font-size: 0.95rem;
	color: #4c1d95;
}

.mcer-level-breakdown__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.mcer-level-breakdown__table th,
.mcer-level-breakdown__table td {
	padding: 8px 10px;
	border-bottom: 1px solid #e9d5ff;
	text-align: left;
}

.mcer-student-progress-practice-level {
	margin-top: 8px;
	font-size: 0.92rem;
	color: #5b21b6;
}

.mcer-student-progress-note {
	margin: 8px 0 0;
	font-size: 0.88rem;
	color: #7c3aed;
}

.mcer-student-header-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.mcer-student-program-label {
	margin: 4px 0 0;
	font-size: 0.9rem;
	color: #6b21a8;
	font-weight: 600;
}

.mcer-visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.mcer-exam-program-banner {
	margin: 0 0 28px;
	padding: 22px 24px;
	border-radius: 18px;
	border: 2px solid #c4b5fd;
	background: linear-gradient(135deg, #faf5ff 0%, #f5f3ff 48%, #eef2ff 100%);
	box-shadow: 0 14px 36px rgba(109, 40, 217, 0.12);
}

.mcer-exam-program-banner__kicker {
	display: inline-block;
	margin-bottom: 8px;
	padding: 4px 10px;
	border-radius: 999px;
	background: #7c3aed;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.mcer-exam-program-banner__head h3 {
	margin: 0 0 8px;
	font-size: 1.35rem;
	color: #4c1d95;
}

.mcer-exam-program-banner__lead {
	margin: 0 0 18px;
	color: #5b21b6;
	font-size: 0.98rem;
	max-width: 760px;
}

.mcer-exam-program-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 14px;
}

.mcer-exam-program-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	width: 100%;
	padding: 18px 18px 16px;
	border-radius: 14px;
	border: 2px solid #ddd6fe;
	background: #fff;
	color: #312e81;
	text-align: left;
	cursor: pointer;
	transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.mcer-exam-program-card:hover {
	transform: translateY(-1px);
	border-color: #a78bfa;
	box-shadow: 0 8px 20px rgba(109, 40, 217, 0.12);
}

.mcer-exam-program-card.active {
	border-color: #7c3aed;
	background: linear-gradient(180deg, #ffffff 0%, #f5f3ff 100%);
	box-shadow: 0 10px 24px rgba(109, 40, 217, 0.18);
}

.mcer-exam-program-card__icon {
	font-size: 1.6rem;
	line-height: 1;
}

.mcer-exam-program-card__title {
	font-size: 1.12rem;
	font-weight: 800;
	letter-spacing: 0.03em;
}

.mcer-exam-program-card__desc {
	font-size: 0.92rem;
	line-height: 1.45;
	color: #4338ca;
}

.mcer-exam-belt-options {
	margin-top: 16px;
	padding: 14px 16px;
	border-radius: 12px;
	border: 1px dashed #a78bfa;
	background: rgba(255, 255, 255, 0.82);
}

.mcer-exam-belt-options__label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	cursor: pointer;
}

.mcer-exam-belt-options__label input {
	margin-top: 4px;
	width: 18px;
	height: 18px;
	accent-color: #7c3aed;
}

.mcer-exam-belt-options__label strong {
	display: block;
	color: #4c1d95;
	margin-bottom: 4px;
}

.mcer-exam-belt-options__label small {
	display: block;
	color: #5b21b6;
	line-height: 1.4;
}

.mcer-exam-program-banner__hint {
	margin: 14px 0 0;
	font-size: 0.92rem;
	font-weight: 600;
	color: #6d28d9;
}

.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%, #f5f3ff 100%);
	border-radius: 16px;
	margin-bottom: 20px;
	border: 2px solid #e9d5ff;
	box-shadow: 0 8px 24px rgba(124, 58, 237, 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%, #ede9fe 45%, #fce7f3 100%);
	border: 2px solid rgba(124, 58, 237, 0.18);
	box-shadow: 0 12px 32px rgba(124, 58, 237, 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, #7c3aed 0%, #ec4899 55%, #f97316 100%);
	color: #fff;
	border-color: transparent;
	box-shadow: 0 10px 28px rgba(124, 58, 237, 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, #6366f1 0%, #8b5cf6 50%, #a855f7 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(124, 58, 237, 0.1);
}

.mcer-btn-student--secondary:hover {
	background: #f5f3ff;
	transform: translateY(-1px);
}

.mcer-btn-student--ghost {
	width: auto;
	min-height: 48px;
	background: rgba(255, 255, 255, 0.85);
	border: 2px solid #ddd6fe;
	color: #6d28d9;
}

.mcer-btn-student--listening {
	background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
	color: #fff;
	box-shadow: 0 8px 22px rgba(14, 165, 233, 0.35);
}

.mcer-btn-student--reading {
	background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 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(124, 58, 237, 0.12);
	box-shadow: 0 14px 36px rgba(88, 28, 135, 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(88, 28, 135, 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, #7c3aed 0%, #a855f7 100%);
}

.mcer-student-exam-card--ocean .mcer-student-exam-card__banner {
	background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
}

.mcer-student-exam-card--active .mcer-student-exam-card__banner {
	background: linear-gradient(135deg, #f59e0b 0%, #ef4444 55%, #ec4899 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: #ede9fe;
	color: #6d28d9;
}

.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%, #f5f3ff 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: #1e1b4b;
}

.mcer-student-practice-card {
	border-width: 1px;
	padding: 16px 14px;
	min-height: 100%;
	display: flex;
	flex-direction: column;
	gap: 8px;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.mcer-student-practice-hub .mcer-practice-hub-card {
	padding: 16px 14px;
	border-radius: 16px;
	gap: 8px;
	box-shadow: 0 6px 20px rgba(79, 70, 229, 0.07);
}

.mcer-student-practice-hub .mcer-practice-hub-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(79, 70, 229, 0.12);
	border-color: rgba(99, 102, 241, 0.28);
}

.mcer-student-practice-hub .mcer-practice-hub-card h3 {
	font-size: 0.98rem;
	line-height: 1.25;
}

.mcer-student-practice-hub .mcer-practice-hub-card p {
	font-size: 0.82rem;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.mcer-student-practice-hub .mcer-practice-hub-card-art {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	font-size: 1.35rem;
}

.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%, #faf5ff 100%);
}

.mcer-student-practice-card--complete-order {
	border-color: rgba(100, 116, 139, 0.28);
	background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.mcer-student-practice-card--complete-email {
	border-color: rgba(59, 130, 246, 0.28);
	background: linear-gradient(180deg, #fff 0%, #eff6ff 100%);
}

.mcer-student-practice-card--problem-solving {
	border-color: rgba(245, 158, 11, 0.28);
	background: linear-gradient(180deg, #fff 0%, #fffbeb 100%);
}

.mcer-student-practice-card__icon {
	width: 42px;
	height: 42px;
	font-size: 1.35rem;
	border-radius: 12px;
}

.mcer-btn-hub {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	margin-top: auto;
	padding: 9px 12px;
	font-size: 0.84rem;
	font-weight: 700;
	line-height: 1.2;
	border: 0;
	border-radius: 11px;
	cursor: pointer;
	color: #fff;
	background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%);
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.28);
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.mcer-btn-hub:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(99, 102, 241, 0.35);
	filter: brightness(1.03);
}

.mcer-btn-hub--listening {
	background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

.mcer-btn-hub--listening:hover {
	box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

.mcer-btn-hub--reading {
	background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
	box-shadow: 0 4px 12px rgba(139, 92, 246, 0.28);
}

.mcer-btn-hub--reading:hover {
	box-shadow: 0 8px 18px rgba(139, 92, 246, 0.35);
}

.mcer-btn-hub--vocabulary {
	background: linear-gradient(135deg, #10b981 0%, #059669 100%);
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.28);
}

.mcer-btn-hub--vocabulary:hover {
	box-shadow: 0 8px 18px rgba(16, 185, 129, 0.35);
}

.mcer-btn-hub--problem {
	background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
	box-shadow: 0 4px 12px rgba(245, 158, 11, 0.28);
}

.mcer-btn-hub--order {
	background: linear-gradient(135deg, #64748b 0%, #475569 100%);
	box-shadow: 0 4px 12px rgba(71, 85, 105, 0.28);
}

.mcer-btn-hub--email {
	background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
	box-shadow: 0 4px 12px rgba(59, 130, 246, 0.28);
}

.mcer-student-practice-card .mcer-btn-student {
	margin-top: 8px;
}

.mcer-student-practice-hub .mcer-student-practice-card .mcer-btn-hub {
	margin-top: auto;
}

.mcer-student-history-list {
	display: grid;
	gap: 14px;
}

.mcer-student-history-card {
	background: #fff;
	border-radius: 18px;
	padding: 18px 20px;
	border: 2px solid #e9d5ff;
	box-shadow: 0 8px 20px rgba(124, 58, 237, 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: #1e1b4b;
}

.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: #6d28d9;
}

.mcer-student-history-page {
	display: grid;
	gap: 28px;
}

.mcer-student-history-section__title {
	margin: 0 0 14px;
	font-size: 1.15rem;
	color: #1e1b4b;
}

.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, #f5f3ff 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: #4c1d95;
}

.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: #ede9fe;
	border-color: #a78bfa;
	color: #5b21b6;
	box-shadow: 0 0 0 2px rgba(167, 139, 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: #a78bfa;
	background: #f5f3ff;
}

.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: #6d28d9;
	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 #e9d5ff;
	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, #a78bfa 0%, #7c3aed 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(124, 58, 237, 0.1);
	border: 1px solid #e9d5ff;
	transition: transform 0.2s, box-shadow 0.2s;
}

.mcer-exam-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(124, 58, 237, 0.18);
}

.mcer-exam-topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: linear-gradient(135deg, #fff, #ede9fe);
	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(124, 58, 237, 0.12);
}

.mcer-timer {
	font-size: 28px;
	font-weight: 700;
	color: #7c3aed;
	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 #7c3aed;
	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 #e9d5ff;
	box-shadow: 0 4px 16px rgba(124, 58, 237, 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 #e2e8f0;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.2s;
}

.mcer-option:hover { border-color: #c4b5fd; }
.mcer-option.selected {
	border-color: #7c3aed;
	background: #f5f3ff;
}

.mcer-option-key {
	width: 28px;
	height: 28px;
	background: #f1f5f9;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 13px;
}

.mcer-option.selected .mcer-option-key {
	background: #7c3aed;
	color: #fff;
}

.mcer-image-listening-instruction {
	margin: 0 0 18px;
	font-size: 1.05rem;
	font-weight: 600;
	color: #334155;
	text-align: center;
}

.mcer-options--letters-only {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 8px;
}

@media (min-width: 640px) {
	.mcer-options--letters-only {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.mcer-option--letter {
	flex-direction: column;
	justify-content: center;
	min-height: 88px;
	padding: 18px 12px;
	border: 3px solid #cbd5e1;
	border-radius: 18px;
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
	font: inherit;
	text-align: center;
}

.mcer-option--letter:hover {
	border-color: #a78bfa;
	transform: translateY(-1px);
}

.mcer-option--letter.selected {
	border-color: #7c3aed;
	background: linear-gradient(180deg, #f5f3ff 0%, #ede9fe 100%);
	box-shadow: 0 10px 24px rgba(124, 58, 237, 0.18);
}

.mcer-option-key--large {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	font-size: 1.5rem;
	font-weight: 800;
	background: #eef2ff;
	color: #4338ca;
}

.mcer-option--letter.selected .mcer-option-key--large {
	background: #7c3aed;
	color: #fff;
}

.mcer-practice-question--image-listening .mcer-options--letters-only {
	margin-bottom: 8px;
}

.mcer-listening-image {
	margin-bottom: 18px;
}

.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, #f5f3ff, #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;
}

.mcer-audio-failure-panel {
	margin-top: 10px;
	padding: 12px 14px;
	border-radius: 10px;
	background: #fef2f2;
	border: 1px solid #fecaca;
}

.mcer-audio-failure-panel__text {
	margin: 0 0 10px;
	color: #b91c1c;
	font-size: 14px;
}

.mcer-audio-failure-panel__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.mcer-audio-diag {
	border-radius: 12px;
	padding: 14px 16px;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
}

.mcer-audio-diag--fail {
	border-color: #fecaca;
	background: #fff7f7;
}

.mcer-audio-diag--ok {
	border-color: #bbf7d0;
	background: #f0fdf4;
}

.mcer-audio-diag__head {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 10px;
}

.mcer-audio-diag__section ul {
	margin: 6px 0 0 18px;
}

.mcer-audio-diag__details {
	margin-top: 10px;
}

.mcer-audio-diag__details dl {
	margin: 10px 0 0;
	display: grid;
	gap: 8px;
}

.mcer-audio-diag__details dt {
	font-weight: 600;
	font-size: 12px;
	color: #64748b;
}

.mcer-audio-diag__details dd {
	margin: 0;
	font-size: 13px;
	word-break: break-all;
}

.mcer-audio-diag-scan-list {
	display: grid;
	gap: 10px;
	margin-top: 12px;
}

.mcer-audio-diag-scan-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #fff;
}

.mcer-repo-audio-audit-results {
	margin: 12px 0 18px;
}

.mcer-audio-diag-btn {
	margin-top: 8px;
}

/* 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-process-loader {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(15, 23, 42, 0.45);
	backdrop-filter: blur(2px);
}

.mcer-process-loader.mcer-hidden {
	display: none !important;
}

.mcer-process-loader__card {
	background: #fff;
	border-radius: 16px;
	padding: 28px 32px;
	min-width: min(320px, 90vw);
	text-align: center;
	box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
}

.mcer-process-loader__spinner {
	width: 44px;
	height: 44px;
	margin: 0 auto 14px;
	border-radius: 50%;
	border: 4px solid #e2e8f0;
	border-top-color: #7c3aed;
	animation: mcer-spin 0.8s linear infinite;
}

.mcer-process-loader__text {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	color: #0f172a;
	line-height: 1.4;
}

@keyframes mcer-spin {
	to { transform: rotate(360deg); }
}
.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, #6366f1 0%, #8b5cf6 50%, #ec4899 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; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; align-items: center; }
.mcer-filters select { padding: 8px 12px; border-radius: 8px; border: 1px solid #e2e8f0; max-width: 100%; }

.mcer-repo-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 16px;
	padding: 12px 14px;
	border-radius: 12px;
	background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
	border: 1px solid #bfdbfe;
}

.mcer-repo-toolbar__hint {
	margin: 0;
	font-size: 13px;
	color: #475569;
	flex: 1 1 220px;
}
.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 #7c3aed;
	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 #e9d5ff;
}

.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-answer-matrix,
	#mcer-exam-final-summary,
	#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-level-picker--card .mcer-practice-level-option {
		flex: 1 1 calc(50% - 6px);
		min-width: 0;
		padding: 8px 6px;
		font-size: 0.7rem;
	}

	.mcer-student-practice-card .mcer-btn-hub {
		min-height: 44px;
	}

	.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-app .mcer-image-exercise-layout,
	.mcer-app .mcer-image-exercise-layout--exam {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.mcer-app .mcer-image-exercise-layout__media,
	.mcer-app .mcer-image-exercise-layout--exam .mcer-image-exercise-layout__media {
		width: min(260px, 100%);
		margin: 0 auto;
	}

	.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;
	}
}

/* Teacher results — student summary */
.mcer-results-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.mcer-results-header h2 {
	margin: 0;
}

.mcer-results-header-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

.mcer-results-program-filter {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 500;
	color: #475569;
}

.mcer-results-program-filter select {
	min-width: 150px;
	padding: 8px 10px;
	border-radius: 8px;
	border: 1px solid #cbd5e1;
}

.mcer-results-tabs {
	display: flex;
	gap: 8px;
}

.mcer-results-panel {
	margin-top: 8px;
}

.mcer-student-summary-body {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.mcer-teacher-summary-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 20px;
	align-items: start;
}

.mcer-teacher-summary-progress {
	margin: 0;
}

.mcer-teacher-summary-section h4 {
	margin: 0 0 12px;
	font-size: 1rem;
	color: #0f172a;
}

.mcer-teacher-summary-practice-metrics {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 14px;
}

.mcer-teacher-summary-practice-metrics div {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 10px 12px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.mcer-teacher-summary-practice-metrics strong {
	font-size: 1.2rem;
	color: #0f172a;
}

.mcer-teacher-summary-practice-metrics span {
	font-size: 12px;
	color: #64748b;
}

.mcer-teacher-summary-practice-metrics em {
	font-size: 11px;
	color: #7c3aed;
	font-style: normal;
}

.mcer-summary-sparkline {
	margin-top: 10px;
}

.mcer-summary-sparkline__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
	font-size: 13px;
	color: #475569;
}

.mcer-summary-sparkline__bars {
	display: flex;
	align-items: flex-end;
	gap: 4px;
	height: 72px;
	padding: 8px 10px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
}

.mcer-summary-sparkline__bar {
	flex: 1;
	min-width: 6px;
	background: linear-gradient(180deg, #a78bfa, #7c3aed);
	border-radius: 4px 4px 2px 2px;
}

.mcer-summary-sparkline--empty {
	padding: 8px 0;
}

.mcer-summary-activity {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mcer-summary-activity li {
	display: grid;
	grid-template-columns: 88px 1fr auto auto;
	gap: 10px;
	align-items: center;
	padding: 10px 12px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	font-size: 13px;
}

.mcer-summary-activity__type {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	color: #7c3aed;
}

.mcer-summary-activity time {
	color: #64748b;
	font-size: 12px;
	white-space: nowrap;
}

.mcer-table-compact th,
.mcer-table-compact td {
	padding: 8px 10px;
	font-size: 13px;
}

@media (max-width: 900px) {
	.mcer-teacher-summary-grid {
		grid-template-columns: 1fr;
	}

	.mcer-summary-activity li {
		grid-template-columns: 1fr;
		gap: 4px;
	}
}

.mcer-topic-suggest-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: -4px;
}

/* Generate exercise form — enhanced layout */
.mcer-panel-generate {
	padding: 24px 26px 28px;
	border-radius: 18px;
	background:
		radial-gradient(circle at top right, rgba(139, 92, 246, 0.12), transparent 42%),
		radial-gradient(circle at bottom left, rgba(59, 130, 246, 0.1), transparent 38%),
		linear-gradient(180deg, #faf5ff 0%, #ffffff 55%);
	border: 1px solid #e9d5ff;
	box-shadow: 0 10px 32px rgba(124, 58, 237, 0.08);
}

.mcer-panel-generate h2 {
	margin-bottom: 6px;
	color: #4c1d95;
}

.mcer-generate-intro {
	margin: 0 0 22px;
	font-size: 14px;
	color: #64748b;
	line-height: 1.55;
	padding: 10px 14px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.72);
	border: 1px solid #ede9fe;
}

.mcer-generate-form {
	gap: 20px;
}

.mcer-generate-section {
	padding: 18px 20px 20px;
	border: 1px solid #e9d5ff;
	border-radius: 14px;
	background: linear-gradient(180deg, #faf5ff 0%, #fff 42%);
	box-shadow: 0 2px 12px rgba(124, 58, 237, 0.06);
}

.mcer-generate-section--config {
	border-color: #c7d2fe;
	background: linear-gradient(145deg, #eef2ff 0%, #ffffff 50%, #f5f3ff 100%);
	box-shadow: 0 4px 16px rgba(79, 70, 229, 0.08);
}

.mcer-generate-section--config .mcer-generate-section__icon {
	background: linear-gradient(135deg, #6366f1, #8b5cf6);
	color: #fff;
}

.mcer-generate-section--config .mcer-generate-section__head h3 {
	color: #4338ca;
}

.mcer-generate-section--theme {
	border-color: #fcd34d;
	background: linear-gradient(145deg, #fffbeb 0%, #ffffff 52%, #fff7ed 100%);
	box-shadow: 0 4px 16px rgba(245, 158, 11, 0.1);
}

.mcer-generate-section--theme .mcer-generate-section__icon {
	background: linear-gradient(135deg, #f59e0b, #f97316);
	color: #fff;
}

.mcer-generate-section--theme .mcer-generate-section__head {
	border-bottom-color: #fde68a;
}

.mcer-generate-section--theme .mcer-generate-section__head h3 {
	color: #b45309;
}

.mcer-generate-section--topic {
	border-color: #86efac;
	background: linear-gradient(145deg, #ecfdf5 0%, #ffffff 52%, #f0fdf4 100%);
	box-shadow: 0 4px 16px rgba(16, 185, 129, 0.1);
}

.mcer-generate-section--topic .mcer-generate-section__icon {
	background: linear-gradient(135deg, #10b981, #059669);
	color: #fff;
}

.mcer-generate-section--topic .mcer-generate-section__head {
	border-bottom-color: #bbf7d0;
}

.mcer-generate-section--topic .mcer-generate-section__head h3 {
	color: #047857;
}

.mcer-generate-section--topic .mcer-generate-field--highlight input {
	border-color: #6ee7b7;
	background: #fff;
}

.mcer-generate-section__head {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid #ede9fe;
}

.mcer-generate-section__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, #ede9fe, #dbeafe);
	color: #6d28d9;
	font-size: 18px;
	line-height: 1;
}

.mcer-generate-section__head h3 {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 700;
	color: #5b21b6;
}

.mcer-generate-section__head p {
	margin: 0;
	font-size: 13px;
	color: #64748b;
	line-height: 1.45;
}

.mcer-generate-section__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
}

.mcer-generate-section__grid .mcer-full {
	grid-column: 1 / -1;
}

.mcer-generate-form .mcer-generate-field > span,
.mcer-generate-form .mcer-generate-field {
	font-size: 13px;
	font-weight: 600;
	color: #334155;
}

.mcer-generate-form .mcer-generate-field input,
.mcer-generate-form .mcer-generate-field select,
.mcer-generate-form .mcer-generate-field textarea {
	border: 1.5px solid #cbd5e1;
	background: #fff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mcer-generate-form .mcer-generate-field input:focus,
.mcer-generate-form .mcer-generate-field select:focus,
.mcer-generate-form .mcer-generate-field textarea:focus {
	outline: none;
	border-color: #8b5cf6;
	box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}

.mcer-generate-field--highlight input {
	border-color: #c4b5fd;
	background: #fff;
}

.mcer-generate-suggest-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 14px 16px;
	border: 1px dashed #c4b5fd;
	border-radius: 12px;
	background: linear-gradient(90deg, #f5f3ff, #eff6ff);
}

.mcer-generate-suggest-bar__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	font-size: 13px;
	color: #475569;
}

.mcer-generate-suggest-bar__text strong {
	font-size: 14px;
	color: #5b21b6;
}

.mcer-btn-suggest-topics {
	padding: 12px 22px;
	border: 2px solid #7c3aed;
	background: #fff;
	color: #6d28d9;
	font-size: 14px;
	font-weight: 700;
	box-shadow: 0 2px 8px rgba(124, 58, 237, 0.12);
	white-space: nowrap;
}

.mcer-btn-suggest-topics:hover {
	background: #f5f3ff;
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(124, 58, 237, 0.2);
}

.mcer-btn-suggest-topics::before {
	content: "✨ ";
}

.mcer-generate-actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	padding: 18px 20px;
	border-radius: 14px;
	background: linear-gradient(135deg, #7c3aed 0%, #6366f1 45%, #2563eb 100%);
	box-shadow: 0 8px 24px rgba(99, 102, 241, 0.28);
}

.mcer-btn-generate {
	width: 100%;
	padding: 16px 24px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.02em;
	border-radius: 12px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.95);
	color: #5b21b6;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.mcer-btn-generate:hover {
	background: #fff;
	color: #4c1d95;
	transform: translateY(-1px);
}

.mcer-btn-generate::before {
	content: "⚡ ";
}

.mcer-generate-actions__hint {
	margin: 0;
	text-align: center;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.92);
}

.mcer-belt-prefs {
	margin: 0;
	padding: 16px 18px;
	border: 1.5px solid #fcd34d;
	border-radius: 12px;
	background: linear-gradient(180deg, #fffbeb 0%, #fff 55%);
	box-shadow: 0 2px 10px rgba(245, 158, 11, 0.08);
}

.mcer-belt-prefs legend {
	font-size: 14px;
	font-weight: 700;
	color: #92400e;
	padding: 0 6px;
}

.mcer-belt-prefs__intro {
	margin: 0 0 12px;
	color: #78716c;
}

.mcer-belt-prefs__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px 16px;
	margin-bottom: 12px;
}

.mcer-belt-prefs__grid label {
	font-weight: 600;
	color: #44403c;
}

.mcer-belt-prefs__grid select {
	border-color: #fcd34d;
	background: #fff;
}

.mcer-belt-avoid {
	margin-top: 4px;
	padding-top: 12px;
	border-top: 1px solid #fde68a;
}

.mcer-belt-avoid__label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: #92400e;
	margin-bottom: 10px;
}

.mcer-belt-avoid__options {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.mcer-belt-avoid__option {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	position: relative;
	padding: 8px 12px;
	font-size: 13px;
	font-weight: 500;
	color: #57534e;
	cursor: pointer;
	border: 1.5px solid #e7e5e4;
	border-radius: 999px;
	background: #fff;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.mcer-belt-avoid__option:hover {
	border-color: #f59e0b;
	background: #fffbeb;
}

.mcer-belt-avoid__option:has(input:checked) {
	border-color: #d97706;
	background: #fef3c7;
	color: #92400e;
	font-weight: 600;
}

.mcer-belt-avoid__option input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	margin: 0;
}

.mcer-topic-suggestions {
	grid-column: 1 / -1;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 16px 18px;
	border: 1.5px solid #a5b4fc;
	border-radius: 12px;
	background: linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
	box-sizing: border-box;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.mcer-topic-suggestions__head {
	margin: 0 0 12px;
	font-size: 13px;
	color: #475569;
	line-height: 1.45;
}

.mcer-topic-suggestions__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	width: 100%;
}

.mcer-topic-suggestion {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 4px;
	width: 100%;
	min-width: 0;
	padding: 12px 14px;
	border: 1.5px solid #c7d2fe;
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.mcer-topic-suggestion:hover {
	border-color: #818cf8;
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
	transform: translateY(-1px);
}

.mcer-topic-suggestion.active {
	border-color: #6366f1;
	background: linear-gradient(180deg, #eef2ff, #fff);
	box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.mcer-topic-suggestion__id {
	display: inline;
	font-size: 13px;
	font-weight: 700;
	color: #7c3aed;
	text-transform: lowercase;
}

.mcer-topic-suggestion__label {
	font-size: 13px;
	font-weight: 600;
	color: #0f172a;
	line-height: 1.4;
	word-break: break-word;
}

.mcer-topic-suggestion__desc {
	font-size: 12px;
	color: #64748b;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (max-width: 640px) {
	.mcer-generate-suggest-bar {
		flex-direction: column;
		align-items: stretch;
	}

	.mcer-btn-suggest-topics {
		width: 100%;
		text-align: center;
	}
}

@media (max-width: 900px) {
	.mcer-topic-suggestions__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.mcer-topic-suggestions__grid {
		grid-template-columns: 1fr;
	}
}

/* BELT Solucionando problemas */
.mcer-badge-belt_practice_problem_solving { background: #e0e7ff; color: #4338ca; }

.mcer-ps-fields {
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 1rem 1.1rem;
	background: #f8fafc;
}

.mcer-ps-fields legend {
	font-weight: 700;
	color: #0f172a;
}

.mcer-ps-fields__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85rem 1rem;
}

.mcer-ps-fields__grid .mcer-full {
	grid-column: 1 / -1;
}

.mcer-ps-level-picker {
	margin-top: 1.25rem;
}

.mcer-ps-practice-shell {
	display: grid;
	gap: 1.25rem;
	padding: 0.25rem 0 1.5rem;
}

.mcer-ps-practice__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.1rem 1.25rem;
	border-radius: 16px;
	background: linear-gradient(135deg, #0f3d5c 0%, #0d9488 100%);
	color: #fff;
	box-shadow: 0 14px 36px rgba(15, 61, 92, 0.22);
}

.mcer-ps-practice__head h2 {
	margin: 0.35rem 0 0.5rem;
	color: #fff;
}

.mcer-ps-practice__head .mcer-hint {
	color: rgba(255, 255, 255, 0.88);
	margin: 0;
}

.mcer-ps-practice__head .mcer-practice-kicker--belt {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}

.mcer-ps-workspace {
	display: grid;
	grid-template-columns: minmax(200px, 240px) minmax(0, 1fr) minmax(0, 1fr);
	gap: 1rem;
	align-items: start;
}

.mcer-ps-col {
	display: grid;
	gap: 0.75rem;
	padding: 1rem;
	border-radius: 16px;
	border: 1px solid #dbe3ee;
	background: #fff;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
	min-height: 420px;
}

.mcer-ps-col--doc {
	background: linear-gradient(180deg, #f8fafc, #fff);
}

.mcer-ps-col--pool {
	background: linear-gradient(180deg, #fffbeb, #fff);
	border-color: #fde68a;
}

.mcer-ps-col--slots {
	background: linear-gradient(180deg, #eff6ff, #fff);
	border-color: #bfdbfe;
}

.mcer-ps-col__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 800;
	color: #0f172a;
	letter-spacing: 0.02em;
}

.mcer-ps-col__hint {
	margin: 0;
	font-size: 0.88rem;
	color: #64748b;
}

.mcer-ps-doc-thumb {
	display: grid;
	gap: 0.5rem;
	padding: 0;
	border: none;
	background: transparent;
	cursor: zoom-in;
	text-align: left;
	width: 100%;
}

.mcer-ps-doc-thumb__zoom {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 0.45rem 0.65rem;
	border-radius: 999px;
	background: #0f3d5c;
	color: #fff;
	font-size: 0.78rem;
	font-weight: 700;
	width: fit-content;
}

.mcer-ps-audio-panel,
.mcer-ps-audio-label {
	margin: 0;
}

.mcer-ps-audio-panel {
	display: grid;
	gap: 0.5rem;
	padding: 0.75rem;
	border-radius: 12px;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
}

.mcer-ps-audio-label {
	font-size: 0.82rem;
	font-weight: 700;
	color: #334155;
}

.mcer-ps-audio-script {
	margin: 0;
	padding: 0.65rem 0.75rem;
	border-radius: 8px;
	background: #fff;
	border: 1px solid #e2e8f0;
	font-size: 0.88rem;
	line-height: 1.45;
}

.mcer-ps-pool {
	display: grid;
	gap: 0.65rem;
	min-height: 280px;
	padding: 0.35rem;
	border-radius: 12px;
	border: 2px dashed #fcd34d;
	background: rgba(255, 255, 255, 0.72);
}

.mcer-ps-empty-hint {
	margin: 0;
	padding: 1rem;
	text-align: center;
	color: #92400e;
	font-size: 0.9rem;
}

.mcer-ps-card {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.55rem;
	align-items: start;
	padding: 0.8rem 0.85rem;
	border-radius: 12px;
	border: 1px solid #cbd5e1;
	background: #fff;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
	cursor: grab;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mcer-ps-card:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

.mcer-ps-card.is-dragging {
	opacity: 0.55;
}

.mcer-ps-card--correct {
	border-color: #4ade80;
	background: #f0fdf4;
}

.mcer-ps-card--wrong {
	border-color: #f87171;
	background: #fef2f2;
}

.mcer-ps-card__grip {
	color: #94a3b8;
	font-size: 1rem;
	line-height: 1;
	padding-top: 0.1rem;
}

.mcer-ps-card__text {
	line-height: 1.45;
	color: #0f172a;
	font-size: 0.92rem;
}

.mcer-ps-card__feedback {
	grid-column: 1 / -1;
	margin: 0.15rem 0 0;
	font-size: 0.82rem;
	color: #b45309;
}

.mcer-ps-slots {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.7rem;
}

.mcer-ps-slot {
	display: grid;
	grid-template-columns: 2.25rem 1fr;
	gap: 0.65rem;
	align-items: stretch;
}

.mcer-ps-slot__number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 999px;
	background: #1d4ed8;
	color: #fff;
	font-weight: 800;
	font-size: 0.95rem;
	margin-top: 0.35rem;
}

.mcer-ps-slot--correct .mcer-ps-slot__number {
	background: #15803d;
}

.mcer-ps-slot--wrong .mcer-ps-slot__number {
	background: #b91c1c;
}

.mcer-ps-slot__drop {
	min-height: 4.5rem;
	padding: 0.45rem;
	border-radius: 12px;
	border: 2px dashed #93c5fd;
	background: rgba(255, 255, 255, 0.85);
	transition: border-color 0.15s ease, background 0.15s ease;
}

.mcer-ps-slot__drop.is-over {
	border-color: #2563eb;
	background: #eff6ff;
}

.mcer-ps-slot--filled .mcer-ps-slot__drop {
	border-style: solid;
	border-color: #cbd5e1;
	background: #fff;
}

.mcer-ps-slot__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 3.5rem;
	color: #64748b;
	font-size: 0.86rem;
	text-align: center;
	padding: 0.5rem;
}

.mcer-ps-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.mcer-ps-actions--footer {
	margin-top: 0.25rem;
}

.mcer-ps-feedback {
	margin-top: 0.25rem;
}

.mcer-ps-correct-order {
	padding: 1rem 1.1rem;
	border-radius: 14px;
	border: 1px solid #bfdbfe;
	background: #f8fafc;
}

.mcer-ps-correct-order h4 {
	margin: 0 0 0.65rem;
	color: #1e3a8a;
}

.mcer-ps-order-answer-list {
	margin: 0;
	padding-left: 1.2rem;
	display: grid;
	gap: 0.45rem;
}

.mcer-ps-order-answer {
	line-height: 1.45;
	color: #0f172a;
}

.mcer-ps-modal {
	position: fixed;
	inset: 0;
	z-index: 12000;
	display: grid;
	place-items: center;
	padding: 1rem;
}

.mcer-ps-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.62);
	backdrop-filter: blur(4px);
}

.mcer-ps-modal__panel {
	position: relative;
	z-index: 1;
	width: min(760px, 96vw);
	max-height: 92vh;
	overflow: auto;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.mcer-ps-modal__header,
.mcer-ps-modal__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 1.1rem;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
}

.mcer-ps-modal__footer {
	border-bottom: none;
	border-top: 1px solid #e2e8f0;
	flex-direction: column;
	align-items: stretch;
}

.mcer-ps-modal__header h3 {
	margin: 0;
	font-size: 1rem;
	color: #0f172a;
}

.mcer-ps-modal__close {
	border: none;
	background: #e2e8f0;
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
}

.mcer-ps-modal__body {
	padding: 1rem 1.1rem;
}

body.mcer-ps-modal-open {
	overflow: hidden;
}

@media (max-width: 1100px) {
	.mcer-ps-workspace {
		grid-template-columns: 1fr;
	}

	.mcer-ps-col {
		min-height: auto;
	}

	.mcer-ps-col--doc {
		grid-template-columns: minmax(180px, 220px) 1fr;
		grid-template-rows: auto auto;
		align-items: start;
	}

	.mcer-ps-col--doc .mcer-ps-col__title {
		grid-column: 1 / -1;
	}

	.mcer-ps-doc-thumb {
		grid-column: 1;
	}

	.mcer-ps-audio-panel {
		grid-column: 2;
	}
}

@media (max-width: 720px) {
	.mcer-ps-fields__grid {
		grid-template-columns: 1fr;
	}

	.mcer-ps-col--doc {
		grid-template-columns: 1fr;
	}

	.mcer-ps-audio-panel {
		grid-column: 1;
	}
}

/* BELT COMPLETA EL PEDIDO */
.mcer-co-fields {
	border: 1px solid var(--mcer-border, #d8dee8);
	border-radius: 12px;
	padding: 1rem 1.1rem;
	margin-top: 0.5rem;
}

.mcer-co-fields legend {
	font-weight: 700;
	padding: 0 0.35rem;
}

.mcer-co-fields__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85rem 1rem;
}

.mcer-co-fields__grid .mcer-full {
	grid-column: 1 / -1;
}

.mcer-co-level-picker {
	margin-top: 1rem;
}

.mcer-co-practice-shell {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.mcer-co-practice__head {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.mcer-co-audio-panel {
	padding: 1rem;
	border-radius: 12px;
	background: rgba(15, 23, 42, 0.04);
	border: 1px solid var(--mcer-border, #d8dee8);
}

.mcer-co-audio-label {
	margin: 0 0 0.5rem;
	font-weight: 600;
}

.mcer-co-selection-meta {
	font-size: 0.95rem;
}

.mcer-co-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 0.75rem;
}

.mcer-co-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
	min-height: 88px;
	padding: 0.85rem 1rem;
	border: 2px solid var(--mcer-border, #d8dee8);
	border-radius: 12px;
	background: #fff;
	color: #1e1b4b;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.mcer-co-card:hover:not(:disabled) {
	border-color: var(--mcer-primary, #2563eb);
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

.mcer-co-card--selected {
	border-color: var(--mcer-primary, #2563eb);
	background: rgba(37, 99, 235, 0.06);
}

.mcer-co-card--correct {
	border-color: #16a34a;
	background: rgba(22, 163, 74, 0.08);
}

.mcer-co-card--wrong {
	border-color: #dc2626;
	background: rgba(220, 38, 38, 0.08);
}

.mcer-co-card--missed {
	border-color: #d97706;
	background: rgba(217, 119, 6, 0.08);
}

.mcer-co-card__check {
	font-weight: 700;
	color: var(--mcer-primary, #2563eb);
}

.mcer-co-card__label {
	font-weight: 600;
	line-height: 1.35;
	color: inherit;
}

.mcer-co-card__badge {
	font-size: 0.75rem;
	font-weight: 700;
	color: #b45309;
}

.mcer-co-actions {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.mcer-co-actions--footer {
	margin-top: 0.5rem;
}

.mcer-co-feedback {
	margin-top: 0.25rem;
}

.mcer-co-audio-script,
.mcer-co-correct-list {
	margin: 0;
	padding: 0.85rem 1rem;
	border-radius: 10px;
	background: rgba(15, 23, 42, 0.04);
}

.mcer-co-correct-list ul {
	margin: 0.5rem 0 0;
	padding-left: 1.2rem;
}

.mcer-co-preview-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.35rem;
}

.mcer-co-preview-item {
	padding: 0.45rem 0.65rem;
	border-radius: 8px;
	background: rgba(15, 23, 42, 0.04);
}

.mcer-co-preview-item--ordered {
	background: rgba(22, 163, 74, 0.12);
	font-weight: 600;
}

@media (max-width: 720px) {
	.mcer-co-fields__grid {
		grid-template-columns: 1fr;
	}

	.mcer-co-grid {
		grid-template-columns: 1fr;
	}
}

/* COMPLETA EL CORREO */
.mcer-ce-fields {
	border: 1px solid var(--mcer-border, #e2e8f0);
	border-radius: 12px;
	padding: 1rem 1.25rem;
	background: #fff;
}

.mcer-ce-fields legend {
	font-weight: 700;
	padding: 0 0.35rem;
}

.mcer-ce-fields__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0.75rem 1rem;
}

.mcer-ce-practice-shell {
	display: flex;
	flex-direction: column;
	gap: 1.35rem;
}

.mcer-ce-practice__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	flex-wrap: wrap;
	padding-bottom: 0.25rem;
	border-bottom: 1px solid #e2e8f0;
}

.mcer-ce-progress {
	margin: 0.35rem 0 0;
	font-size: 0.9rem;
	font-weight: 600;
	color: #4f46e5;
}

.mcer-ce-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.75fr);
	gap: 1.35rem;
	align-items: start;
}

.mcer-ce-layout__email {
	background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
	border: 1px solid #c7d2fe;
	border-radius: 18px;
	padding: 1rem 1rem 1.25rem;
	box-shadow: 0 10px 30px rgba(79, 70, 229, 0.08);
}

.mcer-ce-email-card-label {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #4338ca;
	margin: 0 0 0.65rem 0.25rem;
}

.mcer-ce-layout__bank {
	background: linear-gradient(145deg, #fffbeb 0%, #fff 55%, #f0fdf4 100%);
	border: 1px solid #fcd34d;
	border-radius: 18px;
	padding: 1.15rem 1.1rem;
	box-shadow: 0 10px 28px rgba(180, 83, 9, 0.08);
	position: sticky;
	top: 1rem;
}

.mcer-ce-bank__icon {
	font-size: 1.5rem;
	line-height: 1;
	margin-bottom: 0.35rem;
}

.mcer-ce-bank__title {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
	color: #92400e;
}

.mcer-ce-bank__hint {
	margin: 0 0 0.85rem;
	font-size: 0.88rem;
	line-height: 1.45;
}

.mcer-ce-bank {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.mcer-ce-word {
	display: inline-block;
	border: 1px solid #e2e8f0;
	background: #fff;
	color: #334155;
	border-radius: 8px;
	padding: 0.38rem 0.72rem;
	font-size: 0.88rem;
	line-height: 1.3;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.mcer-ce-word--guide {
	cursor: default;
	user-select: text;
}

.mcer-ce-word--correct-answer {
	background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
	border-color: #34d399;
	color: #065f46;
	font-weight: 700;
	box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.25);
}

.mcer-ce-email {
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid #dbeafe;
	box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1);
	background: #fff;
}

.mcer-ce-email__brand {
	background: linear-gradient(90deg, #1e3a8a 0%, #2563eb 100%);
	color: #fff;
	padding-top: 1rem !important;
}

.mcer-ce-email__brand strong,
.mcer-ce-email__brand span {
	color: #fff !important;
}

.mcer-ce-email__meta {
	background: #f8fafc;
}

.mcer-ce-email__toolbar {
	background: #f1f5f9;
}

.mcer-ce-email__body {
	padding: 1.25rem 1.35rem 1.5rem !important;
	font-size: 1.03rem;
	line-height: 1.8;
	color: #1e293b;
}

.mcer-ce-paragraph {
	margin: 0 0 1rem;
	text-align: left;
	word-wrap: break-word;
}

.mcer-ce-paragraph:last-child {
	margin-bottom: 0;
}

.mcer-ce-input-wrap {
	display: inline;
	white-space: normal;
	position: relative;
}

.mcer-ce-input {
	display: inline-block;
	vertical-align: baseline;
	min-width: 4.5em;
	max-width: 100%;
	margin: 0 0.12em;
	padding: 0.12em 0.4em 0.2em;
	border: none;
	border-bottom: 2px solid #64748b;
	border-radius: 4px 4px 0 0;
	background: rgba(99, 102, 241, 0.08);
	color: #0f172a;
	font: inherit;
	font-weight: 600;
	line-height: 1.35;
	transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.mcer-ce-input::placeholder {
	color: #94a3b8;
	font-weight: 400;
	opacity: 0.85;
}

.mcer-ce-input:focus {
	outline: none;
	background: rgba(99, 102, 241, 0.14);
	border-bottom-color: #4f46e5;
	box-shadow: 0 2px 0 0 #4f46e5;
}

.mcer-ce-input--correct {
	border-bottom-color: #16a34a;
	background: rgba(22, 163, 74, 0.12);
}

.mcer-ce-input--wrong {
	border-bottom-color: #dc2626;
	background: rgba(220, 38, 38, 0.1);
}

.mcer-ce-input__mark {
	display: inline-block;
	margin-left: 0.15em;
	font-size: 0.85em;
	font-weight: 700;
	color: #dc2626;
	vertical-align: super;
}

.mcer-ce-input__mark--ok {
	color: #16a34a;
}

.mcer-ce-input__correct {
	display: inline-block;
	margin-left: 0.25em;
	font-size: 0.82em;
	font-weight: 600;
	color: #16a34a;
	white-space: nowrap;
}

.mcer-ce-actions {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.mcer-ce-actions--footer {
	margin-top: 0.5rem;
}

.mcer-ce-feedback {
	margin-top: 0.25rem;
}

.mcer-ce-preview-answers {
	list-style: none;
	padding: 0;
	margin: 0.5rem 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.mcer-ce-preview-answer {
	background: rgba(22, 163, 74, 0.12);
	border-radius: 999px;
	padding: 0.35rem 0.75rem;
	font-weight: 600;
}

.mcer-podcast-practice-shell {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.mcer-podcast-practice__head {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.mcer-podcast-practice__head-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}

.mcer-podcast-layout {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(260px, 1.2fr);
	gap: 1rem;
	align-items: start;
}

.mcer-podcast-col {
	background: var(--mcer-surface, #fff);
	border: 1px solid var(--mcer-border, #e5e7eb);
	border-radius: 12px;
	padding: 1rem;
}

.mcer-podcast-image-wrap {
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 1rem;
	background: #111827;
}

.mcer-podcast-image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.mcer-podcast-words {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
}

.mcer-podcast-word {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 0.2rem;
	border: 2px solid var(--mcer-border, #d1d5db);
	background: #fff;
	color: var(--mcer-practice-option-color, var(--mcer-reading-option-color, #0f172a));
	font-family: var(--mcer-reading-font-family, inherit);
	font-size: 0.95rem;
	font-weight: 600;
	border-radius: 14px;
	padding: 0.55rem 0.9rem;
	cursor: pointer;
	min-width: 5.5rem;
	text-align: center;
}

.mcer-podcast-word__text {
	line-height: 1.2;
}

.mcer-podcast-word__badge {
	display: block;
	font-size: 0.68rem;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: 0.01em;
	text-transform: none;
}

.mcer-podcast-word--review {
	cursor: default;
}

.mcer-podcast-word--selected {
	border-color: #2563eb;
	background: rgba(37, 99, 235, 0.1);
	box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}

.mcer-podcast-word--hit {
	border-color: #15803d;
	background: #dcfce7;
	color: #14532d;
	box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.25);
}

.mcer-podcast-word--hit .mcer-podcast-word__badge {
	color: #15803d;
}

.mcer-podcast-word--miss {
	border-color: #ca8a04;
	background: #fef9c3;
	color: #713f12;
	border-style: dashed;
	box-shadow: 0 0 0 2px rgba(234, 179, 8, 0.22);
}

.mcer-podcast-word--miss .mcer-podcast-word__badge {
	color: #a16207;
}

.mcer-podcast-word--wrong {
	border-color: #dc2626;
	background: #fee2e2;
	color: #7f1d1d;
	box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

.mcer-podcast-word--wrong .mcer-podcast-word__badge {
	color: #b91c1c;
}

.mcer-podcast-word--neutral {
	opacity: 0.55;
}

.mcer-podcast-word-summary {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	margin: 0 0 0.85rem;
	padding: 0.85rem 0.95rem;
	border-radius: 12px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
}

.mcer-podcast-word-summary__title {
	margin: 0;
	font-size: 0.92rem;
	font-weight: 800;
	color: var(--mcer-practice-title-color, #1e1b4b);
}

.mcer-podcast-word-summary__row {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.45;
}

.mcer-podcast-word-summary__row--hit {
	color: #166534;
}

.mcer-podcast-word-summary__row--miss {
	color: #a16207;
}

.mcer-podcast-word-summary__row--wrong {
	color: #b91c1c;
}

.mcer-podcast-word-legend {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin: 0 0 0.75rem;
	padding: 0;
	list-style: none;
	font-size: 0.8rem;
	color: var(--mcer-practice-hint-color, #475569);
}

.mcer-podcast-word-legend li {
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

.mcer-podcast-word-legend__swatch {
	width: 1rem;
	height: 1rem;
	border-radius: 4px;
	border: 2px solid transparent;
	flex-shrink: 0;
}

.mcer-podcast-word-legend__swatch--hit {
	background: #dcfce7;
	border-color: #15803d;
}

.mcer-podcast-word-legend__swatch--miss {
	background: #fef9c3;
	border-color: #ca8a04;
	border-style: dashed;
}

.mcer-podcast-word-legend__swatch--wrong {
	background: #fee2e2;
	border-color: #dc2626;
}

.mcer-podcast-words-review-hint {
	margin-bottom: 0.75rem;
}

.mcer-podcast-question + .mcer-podcast-question {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--mcer-border, #e5e7eb);
}

.mcer-podcast-options {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

.mcer-podcast-question h4 {
	color: var(--mcer-practice-title-color, #1e1b4b);
}

.mcer-podcast-option {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
	padding: 0.5rem 0.65rem;
	border-radius: 8px;
	border: 1px solid transparent;
	color: var(--mcer-practice-option-color, var(--mcer-reading-option-color, #334155));
	font-family: var(--mcer-reading-font-family, inherit);
	cursor: pointer;
}

.mcer-podcast-option span {
	color: inherit;
}

.mcer-podcast-option--selected {
	border-color: #2563eb;
	background: rgba(37, 99, 235, 0.08);
}

.mcer-podcast-option--correct {
	border-color: #16a34a;
	background: rgba(22, 163, 74, 0.12);
}

.mcer-podcast-option--wrong {
	border-color: #dc2626;
	background: rgba(220, 38, 38, 0.12);
}

.mcer-podcast-preview-image img {
	max-width: 280px;
	border-radius: 12px;
}

.mcer-btn-hub--podcast {
	background: linear-gradient(135deg, #7c3aed, #4f46e5);
}

@media (max-width: 1100px) {
	.mcer-podcast-layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 960px) {
	.mcer-ce-layout {
		grid-template-columns: 1fr;
	}

	.mcer-ce-layout__bank {
		position: static;
	}
}

/* Cloudflare Edge status chips (student + teacher) */
.mcer-edge-status {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	margin-right: 8px;
}

.mcer-edge-status--teacher {
	align-items: flex-start;
	margin: 0 0 12px;
}

.mcer-edge-status__simple {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	color: #166534;
	background: rgba(240, 253, 244, 0.95);
	border: 1px solid rgba(34, 197, 94, 0.25);
}

.mcer-edge-status__dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: #22c55e;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
	flex-shrink: 0;
}

.mcer-edge-status__simple-label {
	line-height: 1.2;
}

.mcer-edge-status__label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #64748b;
}

.mcer-edge-status__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: flex-end;
}

.mcer-edge-status--teacher .mcer-edge-status__chips {
	justify-content: flex-start;
}

.mcer-edge-status__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	color: #312e81;
	background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(238,242,255,0.95));
	border: 1px solid rgba(99, 102, 241, 0.22);
	box-shadow: 0 4px 14px rgba(79, 70, 229, 0.08);
}

.mcer-edge-status__chip::before {
	content: '';
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: #22c55e;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.mcer-edge-status__chip--cdn::before { background: #0ea5e9; box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18); }
.mcer-edge-status__chip--read::before { background: #8b5cf6; box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18); }
.mcer-edge-status__chip--write::before { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18); }

.mcer-student-header-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

@media (max-width: 720px) {
	.mcer-edge-status {
		align-items: flex-start;
		width: 100%;
		margin: 0 0 8px;
	}

	.mcer-edge-status__chips {
		justify-content: flex-start;
	}
}
