.cefr-exam-form .cefr-task {
	margin-bottom: 2em;
	padding: 1em;
	border: 1px solid #ddd;
	border-radius: 6px;
}
.cefr-exam-form textarea {
	width: 100%;
	box-sizing: border-box;
}
.cefr-word-count {
	font-size: 0.9em;
	color: #666;
}
.cefr-word-count.cefr-word-count-ok {
	color: #2a7a2a;
}
.cefr-recorder button {
	margin-right: 0.5em;
}
.cefr-recorder-status {
	margin-left: 0.5em;
	font-size: 0.9em;
	color: #666;
}
#cefr-submit-exam {
	margin-top: 1em;
	padding: 0.75em 1.5em;
	font-size: 1em;
}
.cefr-exam-results .cefr-review-notice {
	background: #fff8e1;
	border: 1px solid #e0c060;
	padding: 1em;
	border-radius: 6px;
	margin-bottom: 1em;
}
.cefr-breakdown {
	border-collapse: collapse;
	margin: 1em 0;
}
.cefr-breakdown th,
.cefr-breakdown td {
	border: 1px solid #ddd;
	padding: 0.5em 1em;
	text-align: left;
}
.cefr-rubric-disclosure {
	font-size: 0.85em;
	color: #666;
}

/* Standalone one-by-one flow (assets/js/exam-flow.js) - added 2026-08-11 */
#cefr-exam-root {
	max-width: 700px;
	margin: 0 auto;
}
.cefr-progress {
	font-weight: bold;
	text-transform: uppercase;
	font-size: 0.85em;
	letter-spacing: 0.05em;
	color: #666;
	margin-bottom: 1em;
}
.cefr-passage {
	white-space: pre-line;
	background: #f7f7f7;
	border-radius: 6px;
	padding: 1em;
	margin-bottom: 1em;
}
.cefr-options {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
	margin: 1em 0;
}
.cefr-option {
	display: flex;
	align-items: center;
	gap: 0.5em;
	padding: 0.5em;
	border: 1px solid #ddd;
	border-radius: 6px;
	cursor: pointer;
}
.cefr-status {
	min-height: 1.2em;
	color: #a33;
}
.cefr-exam-error {
	color: #a33;
}
.cefr-word-target,
.cefr-time-target {
	font-size: 0.85em;
	color: #666;
}

/* Loading/scoring indicator - added 2026-08-12 (bug fix: async scoring gave no
   visible feedback and read as frozen during live testing). Pure CSS, no
   external dependency. */
.cefr-spinner {
	display: inline-block;
	width: 1em;
	height: 1em;
	border: 2px solid #ccc;
	border-top-color: #333;
	border-radius: 50%;
	vertical-align: middle;
	margin-right: 0.4em;
	animation: cefr-spin 0.8s linear infinite;
}
@keyframes cefr-spin {
	to { transform: rotate( 360deg ); }
}
.cefr-scoring-wait-indicator {
	display: flex;
	justify-content: center;
	margin: 1.5em 0;
}
.cefr-scoring-wait-indicator .cefr-spinner {
	width: 2em;
	height: 2em;
	border-width: 3px;
	margin-right: 0;
}
#cefr-scoring-message {
	text-align: center;
	color: #444;
}

/* Admin-only "Reset my exam" toolbar - added 2026-08-12. Deliberately small/
   muted, not styled like a primary action - this is a testing convenience for
   admins, not something meant to draw a real test-taker's attention (though
   they never see it at all - see class-cefr-standalone-flow.php's
   data-is-admin gate). */
.cefr-admin-toolbar {
	max-width: 700px;
	margin: 0 auto 1em;
	text-align: right;
}
.cefr-admin-reset-btn {
	font-size: 0.8em;
	color: #a33;
	background: none;
	border: 1px solid #a33;
	border-radius: 4px;
	padding: 0.3em 0.7em;
	cursor: pointer;
}
.cefr-admin-reset-btn:hover {
	background: #fdf0f0;
}

/* Pre-exam name/email gate - added 2026-08-12, replaces the old
   .cefr-registration post-results form (which had no dedicated CSS of its
   own - reusing that visual gap rather than fixing new conflicting rules). */
.cefr-email-gate label {
	display: block;
	margin-top: 0.75em;
	font-weight: bold;
}
.cefr-email-gate input[type="text"],
.cefr-email-gate input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	padding: 0.5em;
	margin-top: 0.25em;
	border: 1px solid #ccc;
	border-radius: 4px;
}
.cefr-email-gate button {
	margin-top: 1.25em;
	padding: 0.75em 1.5em;
	font-size: 1em;
}
