.ise-shell {
	--ise-primary: #ffcb02;
	--ise-ink: #111827;
	--ise-slate: #1f2937;
	--ise-bg: #f8fafc;
	--ise-green: #22c55e;
	--ise-red: #ef4444;
	--ise-border: #e2e8f0;
	--ise-muted: #64748b;
	box-sizing: border-box;
	color: var(--ise-slate);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.5;
	margin: 28px auto;
	max-width: 1160px;
}

.ise-shell *,
.ise-shell *::before,
.ise-shell *::after {
	box-sizing: border-box;
}

.ise-auth-card,
.ise-instructions-card,
.ise-result-card {
	background: #fff;
	border: 1px solid var(--ise-border);
	border-radius: 24px;
	box-shadow: 0 22px 55px rgba(15, 23, 42, .08);
	margin: 0 auto;
	max-width: 510px;
	padding: clamp(25px, 5vw, 42px);
}

.ise-instructions-card,
.ise-result-card {
	max-width: 740px;
}

.ise-logo {
	align-items: center;
	display: flex;
	gap: 12px;
	margin-bottom: 27px;
}

.ise-logo span {
	align-items: center;
	background: var(--ise-primary);
	border-radius: 13px;
	color: var(--ise-ink);
	display: inline-flex;
	font-size: 20px;
	font-weight: 800;
	height: 47px;
	justify-content: center;
	width: 47px;
}

.ise-logo strong {
	color: var(--ise-ink);
	font-size: 20px;
}

.ise-logo img {
	display: block;
	max-height: 62px;
	max-width: 210px;
}

.ise-auth-card h2,
.ise-instructions-card h2,
.ise-result-card h2,
.ise-welcome h2 {
	color: var(--ise-ink);
	font-size: clamp(25px, 4vw, 31px);
	line-height: 1.2;
	margin: 0 0 10px;
}

.ise-subtitle {
	color: var(--ise-muted);
	margin: 0 0 27px;
}

.ise-ajax-form label {
	color: #334155;
	display: flex;
	flex-direction: column;
	font-size: 14px;
	font-weight: 600;
	gap: 8px;
	margin-bottom: 18px;
}

.ise-ajax-form label.ise-inline {
	align-items: center;
	flex-direction: row;
	font-weight: 500;
	gap: 9px;
}

.ise-ajax-form input:not([type="checkbox"]) {
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 12px;
	color: var(--ise-ink);
	font-size: 16px;
	height: 52px;
	outline: none;
	padding: 0 15px;
	transition: border .2s, box-shadow .2s;
	width: 100%;
}

.ise-ajax-form input:focus {
	border-color: var(--ise-primary);
	box-shadow: 0 0 0 4px rgba(255, 203, 2, .19);
}

.ise-button {
	align-items: center;
	background: var(--ise-primary);
	border: 0;
	border-radius: 12px;
	color: var(--ise-ink);
	cursor: pointer;
	display: inline-flex;
	font-size: 15px;
	font-weight: 700;
	justify-content: center;
	min-height: 49px;
	padding: 12px 23px;
	text-decoration: none !important;
	transition: transform .18s, box-shadow .18s, opacity .18s;
}

.ise-button:hover {
	box-shadow: 0 13px 22px rgba(255, 203, 2, .26);
	color: var(--ise-ink);
	transform: translateY(-1px);
}

.ise-button:disabled {
	cursor: not-allowed;
	opacity: .55;
	transform: none;
}

.ise-auth-card .ise-button {
	width: 100%;
}

.ise-button-secondary {
	background: #fff;
	border: 1px solid var(--ise-border);
	box-shadow: none;
}

.ise-alert {
	border-radius: 12px;
	font-size: 14px;
	margin: 18px 0 0;
	padding: 14px 16px;
}

.ise-alert-info {
	background: #eff6ff;
	color: #1d4ed8;
}

.ise-alert-success {
	background: #dcfce7;
	color: #15803d;
}

.ise-alert-warning {
	background: #fef3c7;
	color: #a16207;
}

.ise-alert-error {
	background: #fee2e2;
	color: #dc2626;
}

.ise-credentials {
	background: rgba(255, 255, 255, .7);
	border-radius: 10px;
	display: grid;
	gap: 5px;
	margin-top: 10px;
	padding: 12px;
}

.ise-credentials code {
	color: var(--ise-ink);
	font-size: 15px;
	margin-bottom: 7px;
}

.ise-portal {
	background: var(--ise-bg);
	border-radius: 26px;
	padding: clamp(17px, 4vw, 32px);
}

.ise-portal-header {
	align-items: center;
	background: var(--ise-ink);
	border-radius: 18px;
	display: flex;
	justify-content: space-between;
	margin-bottom: 27px;
	padding: 18px 23px;
}

.ise-portal-header .ise-logo {
	margin: 0;
}

.ise-portal-header .ise-logo strong {
	color: #fff;
}

.ise-portal-tools {
	align-items: center;
	display: flex;
	gap: 18px;
}

.ise-portal-tools a,
.ise-mode-toggle {
	background: transparent;
	border: 0;
	color: #e2e8f0;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

/* Logout button — always visible and clearly actionable */
.ise-logout-btn {
	align-items: center;
	background: rgba(239, 68, 68, .15);
	border: 1px solid rgba(239, 68, 68, .5) !important;
	border-radius: 20px;
	color: #fca5a5 !important;
	display: inline-flex;
	font-size: 13px;
	font-weight: 600;
	gap: 6px;
	letter-spacing: .01em;
	padding: 7px 16px;
	transition: background .18s, border-color .18s, color .18s;
}

.ise-logout-btn::before {
	content: '⏻';
	font-size: 14px;
	line-height: 1;
}

.ise-logout-btn:hover {
	background: rgba(239, 68, 68, .28);
	border-color: rgba(239, 68, 68, .8) !important;
	color: #fff !important;
}

.ise-mode-toggle {
	border: 1px solid #475569;
	border-radius: 18px;
	padding: 7px 14px;
}

.ise-welcome {
	margin: 0 0 25px;
}

.ise-welcome p {
	color: var(--ise-muted);
}

.ise-exam-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
}

.ise-exam-card,
.ise-empty-card {
	animation: ise-rise .34s ease both;
	background: #fff;
	border: 1px solid var(--ise-border);
	border-radius: 18px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-height: 265px;
	padding: 22px;
}

.ise-exam-card h3 {
	color: var(--ise-ink);
	font-size: 20px;
	line-height: 1.3;
	margin: 0;
}

.ise-exam-card p {
	color: var(--ise-muted);
	flex: 1;
	margin: 0;
}

.ise-category {
	background: rgba(255, 203, 2, .18);
	border-radius: 999px;
	color: #92400e;
	display: inline-flex;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .09em;
	padding: 6px 11px;
	text-transform: uppercase;
	width: fit-content;
}

.ise-exam-meta {
	color: var(--ise-muted);
	display: flex;
	font-size: 14px;
	gap: 20px;
	margin: 15px 0 20px;
}

.ise-exam-card .ise-exam-meta {
	margin: 0;
}

.ise-result-mini {
	align-items: center;
	background: #f8fafc;
	border-radius: 10px;
	display: flex;
	justify-content: space-between;
	padding: 10px 13px;
}

.ise-result-mini strong {
	color: var(--ise-ink);
	font-size: 20px;
}

.ise-countdown {
	background: #fef3c7;
	border-radius: 10px;
	color: #a16207;
	font-weight: 600;
	padding: 11px 13px;
	text-align: center;
}

.ise-richtext {
	color: #475569;
	margin: 20px 0;
}

.ise-leaderboard-section {
	border-top: 1px solid var(--ise-border);
	margin-top: 30px;
	padding-top: 23px;
}

.ise-exam-workspace {
	background: var(--ise-bg);
	border: 1px solid var(--ise-border);
	border-radius: 24px;
	overflow: hidden;
}

.ise-exam-header {
	align-items: center;
	background: var(--ise-ink);
	color: #fff;
	display: flex;
	justify-content: space-between;
	padding: 21px clamp(18px, 4vw, 32px);
	position: sticky;
	top: 0;
	z-index: 6;
}

.ise-exam-header h2 {
	color: #fff;
	font-size: clamp(18px, 3vw, 24px);
	margin: 9px 0 0;
}

.ise-timer-wrap {
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 13px;
	display: flex;
	flex-direction: column;
	min-width: 138px;
	padding: 9px 16px;
	text-align: center;
}

.ise-timer-wrap span {
	color: #94a3b8;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ise-main-timer {
	color: var(--ise-primary);
	font-size: 28px;
	line-height: 1.25;
}

.ise-progress {
	background: #e2e8f0;
	height: 6px;
}

.ise-progress-bar {
	background: var(--ise-primary);
	display: block;
	height: 100%;
	transition: width .28s ease;
}

.ise-violation-banner {
	display: none;
	margin: 16px 26px 0;
}

.ise-violation-banner.is-visible {
	display: block;
}

.ise-exam-layout {
	display: grid;
	gap: 22px;
	grid-template-columns: 1fr;
	padding: clamp(17px, 3vw, 27px);
}

.ise-save-state {
	color: var(--ise-muted);
	font-size: 12px;
}

.ise-save-strip {
	display: flex;
	justify-content: flex-end;
	padding: 12px clamp(18px, 3vw, 27px) 0;
}

.ise-question-stage {
	margin: 0 auto;
	max-width: 860px;
	width: 100%;
}

.ise-question-card {
	animation: ise-rise .28s ease;
	background: #fff;
	border: 1px solid var(--ise-border);
	border-radius: 18px;
	display: none;
	min-height: 420px;
	padding: clamp(19px, 4vw, 30px);
}

.ise-question-card.is-active {
	display: block;
}

.ise-question-top {
	align-items: center;
	color: var(--ise-muted);
	display: flex;
	font-size: 14px;
	font-weight: 600;
	justify-content: space-between;
	margin-bottom: 22px;
}

.ise-question-count {
	background: #f1f5f9;
	border-radius: 999px;
	color: var(--ise-slate);
	font-size: 15px;
	padding: 7px 14px;
}

.ise-question-timer {
	background: #fee2e2;
	border-radius: 8px;
	color: var(--ise-red);
	padding: 6px 10px;
}

.ise-question-card h3 {
	color: var(--ise-ink);
	font-size: clamp(19px, 3vw, 23px);
	font-weight: 600;
	line-height: 1.45;
	margin: 0 0 27px;
}

.ise-options {
	display: grid;
	gap: 13px;
}

.ise-option {
	align-items: center;
	background: #fff;
	border: 1px solid var(--ise-border);
	border-radius: 12px;
	cursor: pointer;
	display: flex;
	gap: 13px;
	min-height: 57px;
	padding: 10px 14px;
	transition: border .18s, background .18s;
}

.ise-option:hover {
	border-color: #facc15;
}

.ise-option:has(input:checked) {
	background: rgba(255, 203, 2, .1);
	border-color: var(--ise-primary);
}

.ise-option input {
	accent-color: var(--ise-primary);
}

.ise-option-key {
	align-items: center;
	background: #f1f5f9;
	border-radius: 8px;
	color: var(--ise-slate);
	display: inline-flex;
	font-weight: 700;
	height: 34px;
	justify-content: center;
	width: 34px;
}

.ise-question-controls {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
	margin-top: 18px;
}

.ise-submit-result {
	padding: 0 25px 26px;
}

.ise-inline-result {
	box-shadow: none;
	margin-top: 25px;
	max-width: none;
}

.ise-result-values {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(3, 1fr);
	margin: 27px 0;
}

.ise-result-values div {
	background: #f8fafc;
	border-radius: 13px;
	padding: 20px 15px;
	text-align: center;
}

.ise-result-values span {
	color: var(--ise-muted);
	display: block;
	font-size: 13px;
	margin-bottom: 8px;
}

.ise-result-values strong {
	color: var(--ise-ink);
	font-size: clamp(21px, 3vw, 26px);
}

.ise-result-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	margin-bottom: 25px;
}

.ise-public-leaderboard {
	background: #fff;
	border-top: 1px solid var(--ise-border);
	margin-top: 24px;
	padding-top: 22px;
}

.ise-public-leaderboard h3 {
	color: var(--ise-ink);
	font-size: 20px;
	margin: 0 0 17px;
}

.ise-public-leaderboard table {
	border-collapse: collapse;
	font-size: 14px;
	width: 100%;
}

.ise-public-leaderboard th,
.ise-public-leaderboard td {
	border-bottom: 1px solid var(--ise-border);
	padding: 11px;
	text-align: left;
}

.ise-public-leaderboard th {
	color: var(--ise-muted);
}

.ise-fullscreen-gate {
	align-items: center;
	background: rgba(15, 23, 42, .78);
	display: flex;
	inset: 0;
	justify-content: center;
	position: fixed;
	z-index: 99999;
}

.ise-fullscreen-gate div {
	background: #fff;
	border-radius: 20px;
	max-width: 410px;
	padding: 32px;
	text-align: center;
}

.ise-fullscreen-gate h3 {
	color: var(--ise-ink);
	margin: 0 0 12px;
}

.ise-security-modal {
	align-items: center;
	background: rgba(15, 23, 42, .68);
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 20px;
	position: fixed;
	z-index: 100000;
}

.ise-security-dialog {
	animation: ise-rise .2s ease;
	background: #fff;
	border-radius: 22px;
	box-shadow: 0 30px 70px rgba(15, 23, 42, .3);
	max-width: 470px;
	padding: 33px;
	text-align: center;
}

.ise-security-icon {
	align-items: center;
	background: #fef3c7;
	border-radius: 50%;
	color: #b45309;
	display: inline-flex;
	font-size: 28px;
	font-weight: 800;
	height: 62px;
	justify-content: center;
	margin-bottom: 17px;
	width: 62px;
}

.ise-security-dialog h3 {
	color: var(--ise-ink);
	font-size: 24px;
	margin: 0 0 11px;
}

.ise-security-dialog p {
	color: var(--ise-muted);
	margin: 0 0 25px;
}

.ise-dark,
.ise-dark.ise-portal,
.ise-dark.ise-exam-workspace {
	--ise-bg: #0f172a;
	--ise-border: #334155;
	/* Previously unset in dark mode, so all secondary/help text (exam
	   descriptions, save-state, leaderboard notices, table headers) kept the
	   light-mode grey (#64748b) and read as low-contrast against dark cards. */
	--ise-muted: #94a3b8;
	background: #0f172a;
	color: #e2e8f0;
}

.ise-dark .ise-exam-card,
.ise-dark .ise-empty-card,
.ise-dark .ise-navigator,
.ise-dark .ise-question-card,
.ise-dark .ise-public-leaderboard,
.ise-dark .ise-result-mini,
.ise-shell.ise-dark section.ise-question-card {
	background: #1e293b;
}

.ise-dark h2,
.ise-dark h3,
.ise-dark .ise-exam-card h3,
.ise-dark .ise-navigator h3,
.ise-dark .ise-question-card h3,
.ise-dark .ise-public-leaderboard h3,
.ise-dark .ise-result-values strong,
.ise-shell.ise-dark section.ise-question-card h3 {
	color: #f8fafc;
}

.ise-dark .ise-option,
.ise-dark .ise-result-values div,
.ise-shell.ise-dark label.ise-option {
	background: #172033;
	color: #e2e8f0;
}

.ise-dark .ise-richtext {
	color: #cbd5e1;
}

/* Modals/alerts previously stayed hard-coded white/pastel in dark mode. */
.ise-dark .ise-security-dialog,
.ise-dark .ise-fullscreen-gate div {
	background: #1e293b;
}

.ise-dark .ise-security-dialog p {
	color: var(--ise-muted);
}

.ise-dark .ise-fullscreen-gate h3,
.ise-dark .ise-security-dialog h3 {
	color: #f8fafc;
}

.ise-dark .ise-alert-info {
	background: rgba(59, 130, 246, .15);
	color: #93c5fd;
}

.ise-dark .ise-alert-success {
	background: rgba(34, 197, 94, .15);
	color: #86efac;
}

.ise-dark .ise-alert-warning {
	background: rgba(245, 158, 11, .15);
	color: #fcd34d;
}

.ise-dark .ise-alert-error {
	background: rgba(239, 68, 68, .15);
	color: #fca5a5;
}

.ise-dark .ise-credentials {
	background: rgba(255, 255, 255, .06);
}

.ise-dark .ise-credentials code {
	color: #f8fafc;
}

.ise-dark .ise-question-timer {
	background: rgba(239, 68, 68, .18);
}

.ise-dark .ise-countdown {
	background: rgba(245, 158, 11, .18);
	color: #fcd34d;
}

.ise-dark .ise-button-secondary {
	background: #172033;
	color: #e2e8f0;
}

@keyframes ise-rise {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 760px) {
	.ise-shell {
		margin: 14px auto;
	}

	.ise-portal-header,
	.ise-exam-header {
		align-items: flex-start;
		flex-direction: column;
		gap: 16px;
	}

	.ise-exam-layout {
		grid-template-columns: 1fr;
	}

	.ise-result-values {
		grid-template-columns: 1fr;
	}

	.ise-result-actions {
		flex-direction: column;
	}

	.ise-question-controls .ise-button {
		flex: 1;
		padding-left: 11px;
		padding-right: 11px;
	}
}

/* ── Registration: hint text and date field ── */
.ise-form-hint {
	font-size: .8rem;
	color: #6b7280;
	margin: -.25rem 0 .75rem;
	line-height: 1.4;
}
.ise-registration-form input[type="date"] {
	width: 100%;
	padding: .55rem .75rem;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: .95rem;
	background: var(--ise-surface, #fff);
	color: inherit;
}

/* ── Exam stats strip (total questions / total marks) ── */
.ise-exam-stats {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 8px 20px;
	background: var(--ise-dark, #121826);
	color: rgba(255,255,255,.8);
	font-size: .82rem;
	letter-spacing: .04em;
}
.ise-exam-stats .ise-stat strong {
	color: var(--ise-primary, #ffcb02);
	font-size: .95rem;
	margin-right: 3px;
}
.ise-exam-stats .ise-stat-sep {
	color: rgba(255,255,255,.3);
	font-size: .7rem;
}

/* ── Question card: no number listing ── */
.ise-question-card h3 {
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.5;
	margin: 0 0 18px;
	color: var(--ise-heading, inherit);
}
/* Question counter moved to top-right badge only */
.ise-question-count {
	font-size: .78rem;
	font-weight: 700;
	background: var(--ise-primary, #ffcb02);
	color: var(--ise-dark, #121826);
	border-radius: 20px;
	padding: 2px 10px;
	letter-spacing: .03em;
}

/* ── Auto-advance: highlight selected option briefly ── */
.ise-option input[type="radio"]:checked + .ise-option-key {
	background: var(--ise-primary, #ffcb02);
	color: var(--ise-dark, #121826);
	transition: background .15s;
}
.ise-option input[type="radio"]:checked ~ span {
	font-weight: 600;
}

/* ── Credentials download button ── */
.ise-cred-download {
	display: block;
	margin-top: 14px;
	text-align: center;
	font-size: .9rem;
}

/* ── Result PDF button ── */
.ise-pdf-result-btn {
	font-size: .92rem;
}

/* ── Question controls: only submit button (centred) ── */
.ise-question-controls {
	display: flex;
	justify-content: center;
	padding: 20px 0 8px;
}

/* ── Live leaderboard (post-submit) ── */
.ise-live-lb {
	margin-top: 32px;
	animation: ise-fadein .4s ease;
}

@keyframes ise-fadein {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: translateY(0); }
}

.ise-live-lb h3 {
	align-items: center;
	display: flex;
	gap: 10px;
}

.ise-lb-live-badge {
	animation: ise-pulse 2s infinite;
	background: #ef4444;
	border-radius: 4px;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .06em;
	padding: 2px 7px;
}

@keyframes ise-pulse {
	0%, 100% { opacity: 1; }
	50%       { opacity: .45; }
}

.ise-lb-notice {
	color: var(--ise-muted);
	font-size: 13px;
	margin: -8px 0 14px;
}

.ise-lb-table {
	border-collapse: collapse;
	font-size: 14px;
	width: 100%;
}

.ise-lb-table th,
.ise-lb-table td {
	border-bottom: 1px solid var(--ise-border);
	padding: 11px;
	text-align: left;
}

.ise-lb-table th {
	color: var(--ise-muted);
	font-size: 12px;
	text-transform: uppercase;
}

.ise-lb-table tr.ise-lb-me {
	background: color-mix(in srgb, var(--ise-primary) 8%, transparent);
	font-weight: 600;
}

.ise-lb-you {
	background: var(--ise-primary);
	border-radius: 3px;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	padding: 1px 6px;
	vertical-align: middle;
}

.ise-lb-empty {
	color: var(--ise-muted);
	font-size: 14px;
}

/* ── Rank-change notice inside result card ── */
.ise-rank-notice {
	background: color-mix(in srgb, var(--ise-primary) 7%, transparent);
	border-left: 3px solid var(--ise-primary);
	border-radius: 0 6px 6px 0;
	color: var(--ise-ink);
	font-size: 13px;
	margin: 16px 0 0;
	padding: 10px 14px;
}

/* ── Dark mode overrides for live leaderboard ── */
.ise-dark .ise-lb-table tr.ise-lb-me {
	background: rgba(255,255,255,.06);
}

.ise-dark .ise-rank-notice {
	background: rgba(255,255,255,.05);
}

/* ── Student identity in portal header ── */
.ise-student-identity {
	align-items: center;
	display: flex;
	gap: 9px;
}

.ise-student-avatar {
	align-items: center;
	background: var(--ise-primary);
	border-radius: 50%;
	color: #fff;
	display: flex;
	flex-shrink: 0;
	font-size: 13px;
	font-weight: 700;
	height: 32px;
	justify-content: center;
	width: 32px;
}

.ise-student-name {
	color: #e2e8f0;
	font-size: 14px;
	font-weight: 500;
	max-width: 160px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media (max-width: 480px) {
	.ise-student-name { display: none; }
}

/* ── Wrong-answer review section ── */
.ise-wrong-review {
	border-top: 1px solid var(--ise-border);
	margin-top: 30px;
	padding-top: 24px;
}

.ise-wrong-review__title {
	color: var(--ise-ink);
	font-size: 18px;
	margin: 0 0 6px;
}

.ise-wrong-review__sub {
	color: var(--ise-muted);
	font-size: 13px;
	margin: 0 0 22px;
}

.ise-wrong-item {
	background: var(--ise-surface, #f8fafc);
	border: 1px solid var(--ise-border);
	border-left: 4px solid #f59e0b;
	border-radius: 10px;
	margin-bottom: 18px;
	padding: 18px 20px;
}

.ise-wrong-item__q {
	color: var(--ise-ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	margin: 0 0 14px;
}

.ise-wrong-item__num {
	background: #f59e0b;
	border-radius: 4px;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	margin-right: 8px;
	padding: 2px 7px;
	vertical-align: middle;
}

.ise-wrong-item__options {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ise-wrong-item__opt {
	align-items: center;
	border: 1px solid var(--ise-border);
	border-radius: 7px;
	display: flex;
	font-size: 14px;
	gap: 10px;
	padding: 10px 14px;
}

.ise-wrong-item__opt.ise-opt--correct {
	background: #f0fdf4;
	border-color: #86efac;
}

.ise-wrong-item__opt.ise-opt--wrong {
	background: #fef2f2;
	border-color: #fca5a5;
}

.ise-opt-key {
	background: var(--ise-border);
	border-radius: 4px;
	color: var(--ise-ink);
	flex-shrink: 0;
	font-size: 12px;
	font-weight: 700;
	padding: 2px 7px;
}

.ise-opt--correct .ise-opt-key { background: #86efac; color: #14532d; }
.ise-opt--wrong  .ise-opt-key  { background: #fca5a5; color: #7f1d1d; }

.ise-opt-text {
	flex: 1;
	color: var(--ise-ink);
}

.ise-opt-badge {
	flex-shrink: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .03em;
	padding: 2px 9px;
	border-radius: 20px;
}

.ise-opt-badge--correct {
	background: #dcfce7;
	color: #15803d;
}

.ise-opt-badge--wrong {
	background: #fee2e2;
	color: #b91c1c;
}

.ise-wrong-item__skipped {
	color: var(--ise-muted);
	font-size: 13px;
	font-style: italic;
	padding: 4px 0;
}

/* Dark mode overrides */
.ise-dark .ise-wrong-item {
	background: rgba(255,255,255,.04);
}

.ise-dark .ise-wrong-item__opt.ise-opt--correct {
	background: rgba(134,239,172,.08);
	border-color: rgba(134,239,172,.3);
}

.ise-dark .ise-wrong-item__opt.ise-opt--wrong {
	background: rgba(252,165,165,.08);
	border-color: rgba(252,165,165,.3);
}

.ise-dark .ise-opt-badge--correct {
	background: rgba(134,239,172,.15);
	color: #86efac;
}

.ise-dark .ise-opt-badge--wrong {
	background: rgba(252,165,165,.15);
	color: #fca5a5;
}
