.pulse-quiz-review-body {
	margin: 0;
	background: #fff;
}

.pulse-quiz-review {
	max-width: 48rem;
	margin: 0 auto;
	padding: 1.5rem 1rem 3rem;
	font-family: Inter, system-ui, sans-serif;
	color: #111827;
}

.pulse-quiz-review__loading,
.pulse-quiz-review__error {
	padding: 1rem;
	border-radius: 0.5rem;
	background: #f3f4f6;
	color: #374151;
}

.pulse-quiz-review__error {
	background: #fef2f2;
	color: #991b1b;
}

.pulse-quiz-review__header {
	margin-bottom: 1.5rem;
}

.pulse-quiz-review__title {
	font-size: 1.25rem;
	font-weight: 600;
	margin: 0 0 0.25rem;
}

.pulse-quiz-review__meta {
	font-size: 0.875rem;
	color: #6b7280;
}

.pulse-quiz-review__card {
	border: 1px solid #e5e7eb;
	border-radius: 0.75rem;
	padding: 1.25rem;
	margin-bottom: 1rem;
	background: #fff;
}

.pulse-quiz-review__qhead {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.75rem;
	font-size: 0.875rem;
	color: #6b7280;
}

.pulse-quiz-review__question {
	font-weight: 600;
	color: #111827;
	margin-bottom: 1rem;
	line-height: 1.5;
}

.pulse-quiz-review__option {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	background: #f3f4f6;
	border-radius: 0.5rem;
	padding: 0.75rem;
	margin-top: 0.75rem;
}

.pulse-quiz-review__icon {
	flex: 0 0 auto;
	width: 1rem;
	height: 1rem;
	margin-top: 0.15rem;
}

.pulse-quiz-review__icon--correct {
	color: #059669;
}

.pulse-quiz-review__icon--wrong {
	color: #dc2626;
}

.pulse-quiz-review__icon--missed {
	color: #059669;
}

.pulse-quiz-review__option-text {
	flex: 1;
	color: #111827;
	line-height: 1.45;
}

.pulse-quiz-review__explanation {
	margin: 0.5rem 0 0 1.5rem;
	font-size: 0.8125rem;
	color: #4b5563;
	line-height: 1.45;
}

.pulse-quiz-review__answer-box {
	margin-top: 0.75rem;
	padding: 0.75rem;
	border-radius: 0.5rem;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	white-space: pre-wrap;
	line-height: 1.45;
}

.pulse-quiz-review__badge {
	display: inline-block;
	margin-top: 0.5rem;
	padding: 0.15rem 0.5rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
}

.pulse-quiz-review__badge--pass {
	background: #d1fae5;
	color: #065f46;
}

.pulse-quiz-review__badge--fail {
	background: #fee2e2;
	color: #991b1b;
}

/* Stable submission history table (replaces native LMS ListView). */
.pulse-quiz-history {
	width: 100%;
	max-width: 100%;
	overflow: visible;
	box-sizing: border-box;
	font-size: 0.875rem;
	color: #383838;
}

.pulse-quiz-history__header,
.pulse-quiz-history__row {
	display: grid;
	grid-template-columns:
		40px minmax(0, 1.5fr) minmax(0, 0.75fr) minmax(0, 0.75fr) minmax(0, 0.75fr)
		88px;
	align-items: center;
	gap: 0.75rem;
	padding: 0 0.5rem;
	box-sizing: border-box;
	max-width: 100%;
}

.pulse-quiz-history__body {
	overflow: visible;
	max-height: none;
}

.pulse-quiz-history__header {
	margin-bottom: 0.5rem;
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
	border-radius: 0.375rem;
	background: #ededed;
	color: #7c7c7c;
	font-size: 0.875rem;
}

.pulse-quiz-history__row {
	min-height: 40px;
	border-bottom: 1px solid #ededed;
}

.pulse-quiz-history__row:last-child {
	border-bottom: none;
}

.pulse-quiz-history__cell {
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pulse-quiz-history__cell--num,
.pulse-quiz-history__cell--review {
	text-align: center;
	justify-self: center;
}

.pulse-quiz-history__cell--review {
	overflow: visible;
	min-width: 0;
}

.pulse-quiz-review-btn {
	border: 1px solid #111827;
	background: #111827;
	color: #fff;
	border-radius: 0.375rem;
	padding: 0.25rem 0.625rem;
	font-size: 0.8125rem;
	cursor: pointer;
	white-space: nowrap;
}

.pulse-quiz-review-btn:hover {
	background: #374151;
}

/* Prevent nested ListView scroll areas on quiz pages (native table is removed by JS). */
.pulse-quiz-page .relative.flex.w-full.flex-1.flex-col.overflow-x-auto,
.pulse-quiz-page .h-full.overflow-y-auto {
	overflow: visible !important;
	height: auto !important;
	max-height: none !important;
}
.pulse-quiz-summary-action-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 0.5rem;
	padding: 0.625rem 1.25rem;
	border: none;
	border-radius: 0.375rem;
	background: #171717;
	color: #fff;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.25rem;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.pulse-quiz-summary-action-btn:hover {
	background: #404040;
}
