.kq-quiz-player {
	max-width: 720px;
	margin: 0 auto;
	font-family: inherit;
}
.kq-quiz-heading { margin: 0 0 4px; font-size: 1.4em; }
.kq-quiz-meta { color: #64707d; margin: 0 0 16px; }
.kq-btn {
	display: inline-block;
	background: #2f6f5e;
	color: #fff;
	border: none;
	padding: 10px 20px;
	border-radius: 6px;
	font-size: 1em;
	cursor: pointer;
	text-decoration: none;
}
.kq-btn:hover { background: #275d4f; color: #fff; }
.kq-guest-note { font-size: 0.85em; color: #8a97a3; margin-top: 10px; }

.kq-timer {
	position: sticky;
	top: 8px;
	background: #fff3e0;
	color: #a86c1e;
	font-weight: 600;
	padding: 8px 14px;
	border-radius: 6px;
	display: inline-block;
	margin-bottom: 16px;
}
.kq-timer.kq-timer-low { background: #fdecea; color: #b3261e; }

.kq-question {
	border: 1px solid #e0e4e8;
	border-radius: 8px;
	padding: 16px 18px;
	margin-bottom: 14px;
}
.kq-question legend { font-weight: 600; padding: 0 4px; }
.kq-option { display: block; margin: 8px 0; cursor: pointer; }
.kq-option input { margin-right: 8px; }

.kq-quiz-results { margin-top: 20px; }
.kq-result-summary {
	padding: 18px 20px;
	border-radius: 8px;
	margin-bottom: 18px;
	background: #e4efe9;
}
.kq-result-summary.kq-fail { background: #fdecea; }
.kq-result-summary h3 { margin: 0 0 6px; }

.kq-review-item {
	border-left: 3px solid #d7dee3;
	padding: 8px 14px;
	margin-bottom: 10px;
}
.kq-review-item.kq-correct { border-left-color: #2f6f5e; }
.kq-review-item.kq-incorrect { border-left-color: #b3261e; }
.kq-review-explanation { color: #64707d; font-size: 0.9em; margin-top: 4px; }

.kq-quiz-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}
.kq-grid-card {
	display: block;
	border: 1px solid #e0e4e8;
	border-radius: 8px;
	padding: 16px;
	text-decoration: none;
	color: inherit;
}
.kq-grid-card:hover { border-color: #2f6f5e; }
.kq-grid-tag {
	display: inline-block;
	font-size: 0.72em;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #2f6f5e;
	background: #e4efe9;
	padding: 2px 8px;
	border-radius: 100px;
	margin-bottom: 8px;
}
.kq-grid-card h4 { margin: 0 0 4px; }
.kq-grid-card p { margin: 0; color: #64707d; font-size: 0.9em; }

.kq-my-progress table { width: 100%; border-collapse: collapse; }
.kq-my-progress th, .kq-my-progress td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e0e4e8; }
.kq-badge-pass { color: #2f6f5e; font-weight: 600; }
.kq-badge-fail { color: #b3261e; font-weight: 600; }

/* My Progress dashboard */
.kq-progress-empty {
	text-align: center;
	padding: 48px 20px;
}
.kq-progress-empty-icon { font-size: 2.6em; margin-bottom: 8px; }
.kq-progress-empty h3 { margin: 0 0 8px; }
.kq-progress-empty p { color: #64707d; margin: 0 0 20px; }

.kq-stat-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 12px;
	margin-bottom: 22px;
}
.kq-stat-card {
	background: #e4efe9;
	border-radius: 10px;
	padding: 16px 12px;
	text-align: center;
}
.kq-stat-card.kq-stat-streak { background: #fff3e0; }
.kq-stat-value { font-size: 1.5em; font-weight: 700; color: #1c2b3a; line-height: 1.2; }
.kq-stat-label { font-size: 0.78em; color: #64707d; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 4px; }

.kq-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 26px;
}
.kq-badge-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: 1px solid #e0e4e8;
	border-radius: 100px;
	padding: 6px 14px 6px 10px;
	font-size: 0.85em;
	font-weight: 600;
	color: #1c2b3a;
}
.kq-badge-icon { font-size: 1.1em; }

.kq-progress-subhead { margin: 0 0 12px; font-size: 1.1em; }

.kq-attempts-list { display: flex; flex-direction: column; gap: 8px; }
.kq-attempt-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	border: 1px solid #e0e4e8;
	border-radius: 8px;
	padding: 12px 16px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease;
}
.kq-attempt-row:hover { border-color: #2f6f5e; }
.kq-attempt-main { flex: 1; min-width: 0; }
.kq-attempt-title { font-weight: 600; color: #1c2b3a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kq-attempt-date { font-size: 0.82em; color: #64707d; margin-top: 2px; }
.kq-attempt-score { font-size: 0.9em; color: #1c2b3a; white-space: nowrap; }

.kq-progress-cta { margin-top: 24px; text-align: center; }

@media (max-width: 480px) {
	.kq-attempt-row { flex-wrap: wrap; }
}

/* Admin question builder */
.kq-builder-row {
	border: 1px solid #dcdcde;
	background: #fff;
	padding: 14px;
	margin-bottom: 12px;
	border-radius: 4px;
}
.kq-builder-row textarea { width: 100%; margin-bottom: 8px; }
.kq-builder-option-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.kq-builder-option-row input[type="text"] { flex: 1; }
.kq-builder-remove { color: #b32d2e; cursor: pointer; }

/* Ad slots (AdSense-ready placeholders) — invisible until filled with real
   ad markup (script injected once the account is approved), so no blank
   boxes show on the live site in the meantime. */
.kq-ad-slot {
	display: block;
	margin: 24px 0;
	text-align: center;
	overflow: hidden;
}
.kq-ad-slot:empty { display: none; margin: 0; }
.kq-grid-wrap .kq-ad-slot { margin: 20px 0; }
