/* 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-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-practice_listening { background: #dcfce7; color: #15803d; }
.mcer-badge-practice_image_listening { background: #e0f2fe; color: #0369a1; }
.mcer-badge-image_reading { background: #fce7f3; color: #be185d; }

.mcer-app .mcer-image-thumb {
	display: inline-block;
	box-sizing: border-box;
	width: 180px;
	height: 180px;
	min-width: 180px;
	min-height: 180px;
	max-width: 180px;
	max-height: 180px;
	padding: 0;
	margin: 0;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	cursor: zoom-in;
	background: #f8fafc center / cover no-repeat;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
	transition: border-color 0.15s ease, transform 0.15s ease;
	vertical-align: top;
	appearance: none;
	font: inherit;
	text-align: left;
}

.mcer-app button.mcer-image-thumb {
	line-height: 0;
}

.mcer-app .mcer-image-thumb:hover,
.mcer-app .mcer-image-thumb:focus-visible {
	border-color: #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-exam-builder {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	margin: 24px 0;
	width: 100%;
}

.mcer-exam-section {
	width: 100%;
	min-width: 0;
}

.mcer-set-builder {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
	gap: 18px;
	min-height: 420px;
	width: 100%;
	align-items: start;
}

.mcer-teacher-layout {
	display: flex;
	width: 100%;
	min-height: 100vh;
	align-items: stretch;
}

.mcer-set-context {
	max-height: 480px;
	overflow-y: auto;
	border: 2px solid #e9d5ff;
	border-radius: 12px;
	padding: 10px;
	background: linear-gradient(180deg, #faf5ff, #fff);
	min-width: 0;
}

.mcer-question-picker,
.mcer-set-questions {
	max-height: 480px;
	overflow-y: auto;
	border: 2px solid #bfdbfe;
	border-radius: 12px;
	padding: 14px;
	background: #fff;
	min-width: 0;
}

.mcer-set-list {
	border: none;
	padding: 0;
	background: transparent;
	max-height: none;
	overflow: visible;
}

.mcer-q-picker-hint {
	margin: 0 0 12px;
	font-size: 12px;
}

.mcer-q-body {
	flex: 1;
	min-width: 0;
}

.mcer-q-stem {
	margin: 0 0 4px;
	line-height: 1.45;
}

.mcer-q-options-list {
	list-style: none;
	margin: 0;
	padding: 0;
	pointer-events: none;
}

.mcer-q-options-list li {
	font-size: 12px;
	color: #475569;
	line-height: 1.5;
	padding: 2px 0;
}

.mcer-q-opt-label {
	font-weight: 700;
	color: #7c3aed;
	margin-right: 6px;
}

.mcer-sidebar-logout {
	margin: 12px 16px 0;
	width: calc(100% - 32px);
}

.mcer-set-card {
	padding: 12px;
	border-radius: 10px;
	border: 2px solid transparent;
	background: #fff;
	margin-bottom: 8px;
	cursor: pointer;
	transition: all 0.2s;
}

.mcer-set-card:hover {
	border-color: #c4b5fd;
	background: #faf5ff;
}

.mcer-set-card.active {
	border-color: #7c3aed;
	background: #f5f3ff;
	box-shadow: 0 2px 8px rgba(124, 58, 237, 0.15);
}

.mcer-set-card-head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.mcer-set-preview {
	font-size: 12px;
	color: #64748b;
	line-height: 1.5;
	margin: 0 0 8px;
	word-break: break-word;
}

.mcer-audio-mini {
	width: 100%;
	height: 32px;
	margin-bottom: 6px;
}

.mcer-set-panel-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
	gap: 8px;
}

.mcer-set-panel-header h4 {
	margin: 0;
	font-size: 14px;
}

.mcer-btn-sm {
	padding: 6px 12px;
	font-size: 12px;
}

.mcer-q-check {
	width: 22px;
	height: 22px;
	border-radius: 6px;
	background: #e2e8f0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	flex-shrink: 0;
	color: #fff;
}

.mcer-q-item.selected .mcer-q-check {
	background: #7c3aed;
}

.mcer-q-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 13px;
	border: 2px solid transparent;
	margin-bottom: 6px;
}

.mcer-q-item:hover {
	background: #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,0.9), transparent 28%),
		linear-gradient(135deg, #ff4d7d 0%, #8b5cf6 45%, #38bdf8 100%);
	color: #fff;
	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-hero::after,
.mcer-practice-card::after {
	content: '';
	position: absolute;
	right: -80px;
	top: -80px;
	width: 240px;
	height: 240px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
}

.mcer-practice-kicker {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.22);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.mcer-practice-hero h2,
.mcer-practice-card h2 {
	margin: 14px 0 10px;
	font-size: clamp(28px, 4vw, 46px);
	line-height: 1;
	color: #fff;
}

.mcer-practice-hero p,
.mcer-practice-card p {
	color: rgba(255, 255, 255, 0.9);
}

.mcer-practice-hero-art {
	display: grid;
	grid-template-columns: repeat(2, 90px);
	gap: 18px;
	justify-content: center;
	position: relative;
	z-index: 1;
}

.mcer-practice-hero-art span,
.mcer-practice-orb {
	display: grid;
	place-items: center;
	width: 90px;
	height: 90px;
	border-radius: 28px;
	background: rgba(255, 255, 255, 0.24);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 12px 24px rgba(30, 27, 75, 0.16);
	font-size: 38px;
}

.mcer-practice-top,
.mcer-practice-player,
.mcer-practice-transcript,
.mcer-practice-questions {
	position: relative;
	z-index: 1;
}

.mcer-practice-top {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	align-items: flex-start;
	margin-bottom: 22px;
}

.mcer-practice-top-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.mcer-practice-score {
	display: grid;
	grid-template-columns: auto auto;
	align-items: center;
	gap: 2px 8px;
	padding: 10px 14px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.22);
	border: 1px solid rgba(255, 255, 255, 0.32);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 10px 24px rgba(30, 27, 75, 0.14);
	backdrop-filter: blur(10px);
}

.mcer-practice-score-icon {
	grid-row: span 2;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.28);
	font-size: 24px;
}

.mcer-practice-score-number {
	font-size: 24px;
	font-weight: 900;
	line-height: 1;
	color: #fff;
}

.mcer-practice-score small {
	color: rgba(255, 255, 255, 0.86);
	font-size: 11px;
	font-weight: 700;
}

.mcer-practice-player {
	display: grid;
	grid-template-columns: 100px minmax(0, 1fr);
	gap: 18px;
	align-items: center;
	background: rgba(255, 255, 255, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 24px;
	padding: 18px;
	margin: 20px 0;
	backdrop-filter: blur(10px);
}

.mcer-practice-player-with-image {
	grid-template-columns: 180px minmax(0, 1fr);
}

.mcer-practice-player-visual {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.mcer-practice-player-visual .mcer-image-thumb {
	margin: 0;
}

.mcer-practice-player-body p {
	margin: 0 0 12px;
	font-weight: 700;
}

.mcer-practice-progress {
	height: 12px;
	background: rgba(255,255,255,0.28);
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 14px;
}

.mcer-practice-progress div {
	height: 100%;
	background: linear-gradient(90deg, #facc15, #22c55e);
	border-radius: 999px;
	transition: width 0.25s ease;
}

.mcer-practice-transcript {
	background: #fff;
	color: #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: #334155;
	margin: 0 0 14px;
	font-weight: 700;
}

.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: #334155;
	padding: 10px 12px;
	text-align: left;
	font: 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-exam-stats { width: 100%; }
	.mcer-main { padding: 20px 16px; }
	.mcer-fullwidth { width: 100%; margin-left: 0; margin-right: 0; }
	.mcer-login-split {
		grid-template-columns: 1fr;
		border-radius: 0;
		min-height: auto;
	}
	.mcer-login-visual {
		min-height: 240px;
		order: -1;
	}
	.mcer-login-panel {
		padding: 32px 24px 20px;
	}
	.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;
	}
}

/* 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;
}

.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-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-section-choice-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 24px;
}

.mcer-section-choice-actions .mcer-btn {
	width: 100%;
}

.mcer-break-card .mcer-btn {
	margin: 8px 6px 0;
}

.mcer-break-card .mcer-btn-outline {
	min-width: 220px;
}

.mcer-login-card label {
	display: block;
	text-align: left;
	margin-bottom: 16px;
	font-size: 13px;
	font-weight: 500;
}

.mcer-login-card input {
	width: 100%;
	padding: 12px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	margin-top: 6px;
}

.mcer-student-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 24px 32px;
	background: linear-gradient(135deg, #fff 0%, #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;
}

.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: #fff;
	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);
	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;
}

.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-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;
}

/* 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-filters { display: flex; gap: 12px; margin-bottom: 16px; }
.mcer-filters select { padding: 8px 12px; border-radius: 8px; border: 1px solid #e2e8f0; }
.mcer-preview-text { background: #f8fafc; padding: 16px; border-radius: 10px; margin: 12px 0; white-space: pre-wrap; font-size: 14px; line-height: 1.7; }
.mcer-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-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;
}
