/* Minimal styles that inherit theme variables. Adjust to match client theme. */
.ct-form,
.ct-test,
.ct-test-info,
.ct-thank-you {
	max-width: 640px;
	margin: 2rem auto;
	padding: 1rem;
}
.ct-form label {
	display: block;
	margin: 0.75rem 0;
}
.ct-form label span {
	display: block;
	font-weight: 600;
	margin-bottom: 0.25rem;
}
.ct-form input[type=email],
.ct-form input[type=password] {
	width: 100%;
	padding: 0.6rem 0.75rem;
	box-sizing: border-box;
}
.ct-btn {
	display: inline-block;
	padding: 0.7rem 1.25rem;
	border: 0;
	cursor: pointer;
	font-weight: 600;
}
.ct-btn-primary {
	background: var(--wp--preset--color--primary, #0057ff);
	color: #fff;
}
.ct-question {
	border: 1px solid #e0e0e0;
	padding: 1rem;
	margin-bottom: 1rem;
	border-radius: 6px;
}
.ct-question legend {
	font-weight: 600;
}
.ct-answer {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
	padding: 0.4rem 0;
	cursor: pointer;
}
.ct-form-message {
	min-height: 1.5em;
	margin-top: 0.75rem;
}

/* Terms-acceptance checkbox: checkbox inline with wrapped text, so the
   GDPR-required link stays readable at small widths. The span overrides
   the .ct-form label span bold treatment because the label text itself
   is not a field title. */
.ct-form label.ct-terms {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin: 1rem 0;
	font-weight: 400;
}
.ct-form label.ct-terms > span {
	display: inline;
	font-weight: 400;
	margin: 0;
	line-height: 1.4;
}
.ct-form label.ct-terms input[type=checkbox] {
	margin-top: 0.25rem;
	flex: 0 0 auto;
}
.ct-error {
	color: #b00020;
}

/* Visual marker next to required field labels. aria-hidden on the
   element handles the accessibility side; this is the sighted-user cue. */
.ct-form .ct-required {
	color: #b00020;
	font-weight: 700;
	margin-left: 2px;
}

/* Dynamic-field selects and extra input types inherit the form width
   so they align with the email/password inputs above. */
.ct-form select,
.ct-form input[type=text],
.ct-form input[type=tel],
.ct-form input[type=number] {
	width: 100%;
	padding: 0.6rem 0.75rem;
	box-sizing: border-box;
}

/* --- one-at-a-time test runner --- */
.ct-test-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.25rem;
}
.ct-progress {
	flex: 1 1 auto;
}
.ct-progress-label {
	font-size: 0.9rem;
	margin-bottom: 0.35rem;
	color: #444;
}
.ct-progress-bar {
	position: relative;
	height: 8px;
	background: #e5e7eb;
	border-radius: 4px;
	overflow: hidden;
}
.ct-progress-fill {
	height: 100%;
	width: 0%;
	background: var(--wp--preset--color--primary, #0057ff);
	transition: width 0.25s ease;
}
.ct-timer {
	font-variant-numeric: tabular-nums;
	font-size: 1.15rem;
	font-weight: 600;
	padding: 0.35rem 0.75rem;
	background: #f3f4f6;
	border-radius: 6px;
	min-width: 4.5em;
	text-align: center;
}
.ct-timer-warn {
	background: #fff3cd;
	color: #855;
}
.ct-timer-critical {
	background: #fde7e9;
	color: #a00;
	animation: ct-pulse 1s infinite;
}
@keyframes ct-pulse {
	0%, 100% { opacity: 1; }
	50%      { opacity: 0.55; }
}
.ct-question-area {
	margin-bottom: 1rem;
}
.ct-nav {
	display: flex;
	gap: 0.5rem;
	align-items: center;
	margin-top: 0.5rem;
}
.ct-btn-secondary {
	background: #e5e7eb;
	color: #111;
}
.ct-btn[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}

/* =====================================================================
   "Moje konto" — logged-in dashboard.
   Self-contained design system: a header card with avatar+identity+status,
   a two-column grid (data + action), and a bottom logout link. Keeps
   dependencies on theme styles minimal — uses only CSS variables already
   present in modern WP (--wp--preset--color--primary) with sane fallbacks.
   ===================================================================== */
.ct-account {
	max-width: 960px;
	margin: 2.5rem auto;
	padding: 0 1rem;
	color: #1f2937;
	line-height: 1.5;
	box-sizing: border-box;
}
.ct-account *,
.ct-account *::before,
.ct-account *::after { box-sizing: border-box; }

/* --- Header card with avatar + identity + status pill --- */
.ct-account-header {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	padding: 1.5rem 1.75rem;
	margin-bottom: 1.5rem;
	background: linear-gradient(135deg, #1f3864 0%, #2e74b5 100%);
	border-radius: 14px;
	color: #fff;
	box-shadow: 0 6px 20px rgba(31, 56, 100, 0.18);
}
.ct-account-avatar {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	border: 2px solid rgba(255, 255, 255, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 1.5rem;
	letter-spacing: 0.025em;
	color: #fff;
	text-transform: uppercase;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.ct-account-identity {
	flex: 1 1 auto;
	min-width: 0; /* allow long emails to truncate */
}
.ct-account-eyebrow {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.75;
}
.ct-account-name {
	margin: 0.15rem 0 0.1rem;
	font-size: 1.5rem;
	font-weight: 700;
	color: #fff;
	line-height: 1.2;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ct-account-email {
	margin: 0;
	font-size: 0.9rem;
	opacity: 0.85;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ct-account-status-pill {
	flex: 0 0 auto;
}
@media (max-width: 640px) {
	.ct-account-header {
		flex-wrap: wrap;
		padding: 1.25rem;
	}
	.ct-account-status-pill {
		flex-basis: 100%;
		margin-top: 0.25rem;
	}
}

/* --- Generic badges (used in header status + test-card status) --- */
.ct-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	white-space: nowrap;
	line-height: 1;
}
.ct-badge-dot {
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}
.ct-badge-ok        { background: #dcfce7; color: #166534; }
.ct-badge-warn      { background: #fef3c7; color: #92400e; }
.ct-badge-info      { background: #dbeafe; color: #1e40af; }
.ct-badge-primary   { background: #e0e7ff; color: #3730a3; }
.ct-badge-muted     { background: #f1f5f9; color: #475569; }
.ct-badge-ok-solid  { background: rgba(34, 197, 94, 0.22); color: #d1fae5; border: 1px solid rgba(255, 255, 255, 0.2); }
.ct-badge-warn-solid{ background: rgba(245, 158, 11, 0.28); color: #fef3c7; border: 1px solid rgba(255, 255, 255, 0.2); }

/* --- Pending-account warning row --- */
.ct-account-pending {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	padding: 1.1rem 1.25rem;
	margin-bottom: 1.5rem;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-left: 4px solid #f59e0b;
	border-radius: 10px;
}
.ct-account-pending-icon {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #f59e0b;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 1.25rem;
	font-family: Georgia, "Times New Roman", serif;
}
.ct-account-pending-body {
	flex: 1 1 auto;
}
.ct-account-pending-body p {
	margin: 0 0 0.4rem;
	color: #78350f;
	font-size: 0.95rem;
}
.ct-account-pending-title {
	font-weight: 600;
	font-size: 1rem !important;
	color: #92400e !important;
}
.ct-account-pending-cta {
	margin-top: 0.6rem !important;
}

/* --- Two-column grid: data + action --- */
.ct-account-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 1.5rem;
}
@media (max-width: 800px) {
	.ct-account-grid { grid-template-columns: 1fr; }
}

/* --- Generic card for both panels --- */
.ct-account-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 1.5rem 1.75rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	transition: box-shadow 0.18s ease;
}
.ct-account-card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); }

.ct-account-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-bottom: 1rem;
	margin-bottom: 1.25rem;
	border-bottom: 1px solid #f1f5f9;
}
.ct-account-card-head h3 {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 600;
	color: #1f3864;
}
.ct-account-card-sub {
	width: 100%;
	margin: 0.25rem 0 0;
	font-size: 0.85rem;
	color: #64748b;
	font-weight: 400;
}

/* --- Identity fields list --- */
.ct-account-fields {
	margin: 0 0 1rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}
.ct-account-field {
	display: grid;
	grid-template-columns: minmax(0, 11rem) 1fr;
	gap: 1rem;
	align-items: baseline;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid #f1f5f9;
}
.ct-account-field:last-of-type {
	border-bottom: none;
	padding-bottom: 0;
}
@media (max-width: 480px) {
	.ct-account-field {
		grid-template-columns: 1fr;
		gap: 0.15rem;
	}
}
.ct-account-field dt {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #64748b;
	line-height: 1.5;
}
.ct-account-field dd {
	margin: 0;
	font-size: 0.95rem;
	color: #111827;
	word-break: break-word;
}
.ct-account-field dd a {
	color: #2563eb;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.15s ease;
}
.ct-account-field dd a:hover { border-bottom-color: #2563eb; }
.ct-account-field-empty dd { color: #94a3b8; }
.ct-account-empty {
	display: inline-block;
	padding: 0.1rem 0.5rem;
	font-size: 0.8rem;
	font-style: italic;
	background: #f8fafc;
	color: #94a3b8;
	border-radius: 4px;
}

/* --- RODO note --- */
.ct-account-data-note {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	margin: 1.25rem 0 0;
	padding: 0.85rem 1rem;
	background: #f8fafc;
	border-radius: 8px;
	font-size: 0.85rem;
	color: #475569;
	line-height: 1.5;
}
.ct-account-data-note-icon {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #94a3b8;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	font-weight: 700;
	font-family: Georgia, "Times New Roman", serif;
	margin-top: 0.05rem;
}

/* --- Action card --- */
.ct-account-action-body {
	margin-bottom: 1.25rem;
	min-height: 4em;
}
.ct-account-action-body p {
	margin: 0 0 0.6rem;
	color: #475569;
	font-size: 0.95rem;
}
.ct-account-action-body p:last-child { margin-bottom: 0; }

.ct-btn-block {
	display: block;
	width: 100%;
	text-align: center;
	box-sizing: border-box;
	text-decoration: none;
}

/* --- Refined buttons (override of base .ct-btn) --- */
.ct-account .ct-btn,
.ct-account-anonymous .ct-btn {
	border-radius: 8px;
	padding: 0.75rem 1.25rem;
	font-size: 0.95rem;
	transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
	border: 1px solid transparent;
	text-decoration: none;
	cursor: pointer;
}
.ct-account .ct-btn:hover,
.ct-account-anonymous .ct-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.ct-account .ct-btn:focus-visible,
.ct-account-anonymous .ct-btn:focus-visible {
	outline: 3px solid rgba(37, 99, 235, 0.35);
	outline-offset: 2px;
}
.ct-account .ct-btn-secondary,
.ct-account-anonymous .ct-btn-secondary {
	background: #fff;
	color: #1f3864;
	border-color: #cbd5e1;
}
.ct-account .ct-btn-secondary:hover,
.ct-account-anonymous .ct-btn-secondary:hover {
	background: #f8fafc;
	border-color: #94a3b8;
}

/* --- Footer with logout link --- */
.ct-account-footer {
	margin-top: 1.5rem;
	text-align: center;
}
.ct-account-logout {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.5rem 1rem;
	color: #64748b;
	text-decoration: none;
	font-size: 0.875rem;
	border-radius: 6px;
	transition: color 0.15s ease, background 0.15s ease;
}
.ct-account-logout:hover {
	color: #1f3864;
	background: #f1f5f9;
}
.ct-account-logout-icon {
	display: inline-block;
}

/* --- Anonymous fallback (logged-out visitor on /moje-konto/) --- */
.ct-account-anonymous {
	max-width: 480px;
}
.ct-account-anonymous-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	padding: 2.5rem 2rem 2rem;
	text-align: center;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}
.ct-account-anonymous-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #e0e7ff;
	color: #3730a3;
	margin-bottom: 1rem;
}
.ct-account-anonymous h2 {
	margin: 0 0 0.5rem;
	font-size: 1.5rem;
	color: #1f3864;
}
.ct-account-anonymous p {
	margin: 0 0 1.5rem;
	color: #64748b;
}
.ct-account-cta-row {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
	flex-wrap: wrap;
}

/* =====================================================================
   "Dziękujemy" — post-test thank-you panel.
   Mirrors the .ct-account design system (gradient hero, card grid,
   badges, generous spacing) so the post-submit experience visually
   continues from the dashboard the user lands on next. Adds a tone-
   driven gradient (excellent / good / low / neutral) and a circular
   score-ring badge so the result is the first thing the eye lands on.
   ===================================================================== */
.ct-thank-you {
	max-width: 960px;
	margin: 2.5rem auto;
	padding: 0 1rem;
	color: #1f2937;
	line-height: 1.5;
	box-sizing: border-box;
}
.ct-thank-you *,
.ct-thank-you *::before,
.ct-thank-you *::after { box-sizing: border-box; }

/* --- Hero header with check icon + identity + score ring --- */
.ct-thank-you-header {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	padding: 1.75rem 1.75rem;
	margin-bottom: 1.5rem;
	background: linear-gradient(135deg, #1f3864 0%, #2e74b5 100%);
	border-radius: 14px;
	color: #fff;
	box-shadow: 0 6px 20px rgba(31, 56, 100, 0.18);
	position: relative;
	overflow: hidden;
}
.ct-thank-you-tone-excellent .ct-thank-you-header { background: linear-gradient(135deg, #166534 0%, #22a06b 100%); box-shadow: 0 6px 20px rgba(22, 101, 52, 0.20); }
.ct-thank-you-tone-good      .ct-thank-you-header { background: linear-gradient(135deg, #1f3864 0%, #2e74b5 100%); }
.ct-thank-you-tone-low       .ct-thank-you-header { background: linear-gradient(135deg, #475569 0%, #64748b 100%); }
.ct-thank-you-tone-neutral   .ct-thank-you-header { background: linear-gradient(135deg, #1f3864 0%, #2e74b5 100%); }

.ct-thank-you-icon {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	border: 2px solid rgba(255, 255, 255, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
}
.ct-thank-you-identity {
	flex: 1 1 auto;
	min-width: 0;
}
.ct-thank-you-eyebrow {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.75;
}
.ct-thank-you-title {
	margin: 0.15rem 0 0;
	font-size: 1.5rem;
	font-weight: 700;
	color: #fff;
	line-height: 1.2;
}

/* Score ring — circular badge showing percentage prominently */
.ct-thank-you-score-ring {
	flex: 0 0 auto;
	width: 96px;
	height: 96px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	border: 3px solid rgba(255, 255, 255, 0.4);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.ct-thank-you-score-pct {
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
}
.ct-thank-you-score-frac {
	font-size: 0.75rem;
	opacity: 0.85;
	margin-top: 0.2rem;
	font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
	.ct-thank-you-header { flex-wrap: wrap; padding: 1.25rem; }
	.ct-thank-you-score-ring { width: 80px; height: 80px; margin-left: auto; }
	.ct-thank-you-score-pct { font-size: 1.25rem; }
}

/* --- Inline message paragraphs (admin-editable thank_you_message) --- */
.ct-thank-you-message {
	margin: 0 0 1.5rem;
	padding: 1.25rem 1.5rem;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-left: 4px solid #2e74b5;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.ct-thank-you-message p {
	margin: 0 0 0.75rem;
	color: #374151;
	font-size: 1rem;
	line-height: 1.6;
}
.ct-thank-you-message p:last-child { margin-bottom: 0; }
.ct-thank-you-tone-excellent .ct-thank-you-message { border-left-color: #22a06b; }
.ct-thank-you-tone-low       .ct-thank-you-message { border-left-color: #94a3b8; }

/* --- Summary aside (stats + incorrect list as cards) --- */
.ct-thank-you-summary {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	margin: 0 0 1.5rem;
}
.ct-thank-you-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 1.5rem 1.75rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	transition: box-shadow 0.18s ease;
}
.ct-thank-you-card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); }
.ct-thank-you-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-bottom: 1rem;
	margin-bottom: 1.25rem;
	border-bottom: 1px solid #f1f5f9;
	flex-wrap: wrap;
}
.ct-thank-you-card-head h3 {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 600;
	color: #1f3864;
}

/* --- Stats card with 4 boxes + progress bar --- */
.ct-thank-you-stats {
	margin: 0 0 1rem;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0.75rem;
}
@media (max-width: 640px) {
	.ct-thank-you-stats { grid-template-columns: repeat(2, 1fr); }
}
.ct-thank-you-stat {
	background: #f8fafc;
	border-radius: 8px;
	padding: 1rem;
	text-align: center;
	border: 1px solid transparent;
	transition: border-color 0.15s ease;
}
.ct-thank-you-stat:hover { border-color: #e2e8f0; }
.ct-thank-you-stat dt {
	margin: 0 0 0.4rem;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #64748b;
}
.ct-thank-you-stat dd {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
	color: #1f2937;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}
.ct-thank-you-stat-num { display: inline-block; }
.ct-thank-you-stat-unit {
	font-size: 0.875rem;
	font-weight: 500;
	color: #94a3b8;
	margin-left: 0.15rem;
}
.ct-thank-you-stat-ok       { background: #ecfdf5; }
.ct-thank-you-stat-ok dd    { color: #166534; }
.ct-thank-you-stat-ok dt    { color: #15803d; }
.ct-thank-you-stat-bad      { background: #fef2f2; }
.ct-thank-you-stat-bad dd   { color: #991b1b; }
.ct-thank-you-stat-bad dt   { color: #b91c1c; }

/* Progress bar at the bottom of the stats card. Width is set inline
   based on the percent score; color follows the result tone. */
.ct-thank-you-bar {
	height: 8px;
	background: #f1f5f9;
	border-radius: 4px;
	overflow: hidden;
	margin-top: 0.5rem;
}
.ct-thank-you-bar-fill {
	height: 100%;
	background: linear-gradient(90deg, #2e74b5 0%, #1f3864 100%);
	border-radius: 4px;
	transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.ct-thank-you-tone-excellent .ct-thank-you-bar-fill { background: linear-gradient(90deg, #22a06b 0%, #166534 100%); }
.ct-thank-you-tone-low       .ct-thank-you-bar-fill { background: linear-gradient(90deg, #94a3b8 0%, #64748b 100%); }

/* --- Incorrect questions card --- */
.ct-thank-you-summary-note {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	margin: 0 0 1.25rem;
	padding: 0.85rem 1rem;
	background: #f8fafc;
	border-radius: 8px;
	font-size: 0.875rem;
	color: #475569;
	line-height: 1.5;
}
.ct-thank-you-summary-note-icon {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #94a3b8;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	font-weight: 700;
	font-family: Georgia, "Times New Roman", serif;
	margin-top: 0.05rem;
}
.ct-thank-you-incorrect {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}
.ct-thank-you-incorrect li {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	padding: 0.85rem 1rem;
	background: #fafbfc;
	border: 1px solid #e5e7eb;
	border-left: 3px solid #ef4444;
	border-radius: 8px;
	transition: background 0.15s ease;
}
.ct-thank-you-incorrect li:hover { background: #f8fafc; }
.ct-thank-you-incorrect-num {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #fee2e2;
	color: #991b1b;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.85rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.ct-thank-you-incorrect-body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}
.ct-thank-you-incorrect-q {
	flex: 1 1 auto;
	min-width: 0;
	color: #1f2937;
	font-size: 0.95rem;
	line-height: 1.45;
}

/* --- Perfect-score celebration card --- */
.ct-thank-you-perfect-card {
	text-align: center;
	padding: 2rem 1.75rem;
	background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
	border-color: #bbf7d0;
}
.ct-thank-you-perfect-icon {
	font-size: 2.25rem;
	color: #f59e0b;
	margin-bottom: 0.5rem;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1;
}
.ct-thank-you-perfect-card h3 {
	margin: 0 0 0.5rem;
	color: #166534;
	font-size: 1.25rem;
	border: none;
	padding: 0;
}
.ct-thank-you-perfect-card p {
	margin: 0;
	color: #15803d;
	font-size: 1rem;
}

/* --- Footer with CTA back to dashboard --- */
.ct-thank-you-footer {
	margin-top: 1.75rem;
	text-align: center;
}
.ct-thank-you .ct-btn {
	border-radius: 8px;
	padding: 0.85rem 1.5rem;
	font-size: 0.95rem;
	transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
	border: 1px solid transparent;
	text-decoration: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}
.ct-thank-you .ct-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.ct-thank-you .ct-btn:focus-visible {
	outline: 3px solid rgba(37, 99, 235, 0.35);
	outline-offset: 2px;
}
.ct-btn-block-narrow {
	min-width: 240px;
}
.ct-thank-you-cta-icon {
	flex: 0 0 auto;
}

/* =====================================================================
   Shared "panel" pattern — login, register, activation, check-email,
   dynamic-landing-{anonymous,authenticated,pending}, test-info,
   test-closed. All centered card layouts with a colored gradient hero
   on top, a white body card seamlessly attached, and an optional
   secondary footer. Tone modifier (.ct-panel-tone-*) drives icon color
   and gradient hue so a status — ok / info / warn / danger / muted —
   reads at a glance.
   ===================================================================== */
.ct-panel {
	max-width: 480px;
	margin: 2.5rem auto;
	padding: 0 1rem;
	color: #1f2937;
	line-height: 1.5;
	box-sizing: border-box;
}
.ct-panel *,
.ct-panel *::before,
.ct-panel *::after { box-sizing: border-box; }
.ct-panel-medium { max-width: 720px; }
.ct-panel-wide   { max-width: 960px; }

/* --- Hero header (gradient background) --- */
.ct-panel-header {
	background: linear-gradient(135deg, #1f3864 0%, #2e74b5 100%);
	color: #fff;
	border-radius: 14px 14px 0 0;
	padding: 1.75rem 1.75rem 1.5rem;
	text-align: center;
	box-shadow: 0 6px 20px rgba(31, 56, 100, 0.10);
}
.ct-panel-tone-ok     .ct-panel-header { background: linear-gradient(135deg, #166534 0%, #22a06b 100%); box-shadow: 0 6px 20px rgba(22, 101, 52, 0.18); }
.ct-panel-tone-info   .ct-panel-header { background: linear-gradient(135deg, #1f3864 0%, #2e74b5 100%); }
.ct-panel-tone-warn   .ct-panel-header { background: linear-gradient(135deg, #92400e 0%, #d97706 100%); box-shadow: 0 6px 20px rgba(146, 64, 14, 0.18); }
.ct-panel-tone-danger .ct-panel-header { background: linear-gradient(135deg, #991b1b 0%, #dc2626 100%); box-shadow: 0 6px 20px rgba(153, 27, 27, 0.18); }
.ct-panel-tone-muted  .ct-panel-header { background: linear-gradient(135deg, #475569 0%, #64748b 100%); }

.ct-panel-icon-circle {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	border: 2px solid rgba(255, 255, 255, 0.35);
	margin: 0 auto 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
}
.ct-panel-eyebrow {
	margin: 0 0 0.4rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.75;
	color: #fff;
}
.ct-panel-title {
	margin: 0;
	color: #fff;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
}
.ct-panel-name {
	font-weight: 700;
	display: inline-block;
	white-space: nowrap;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	vertical-align: bottom;
}
.ct-panel-sub {
	margin: 0.5rem 0 0;
	color: #fff;
	opacity: 0.85;
	font-size: 0.95rem;
	line-height: 1.45;
}

/* --- Body card (attached seamlessly to the header) --- */
.ct-panel-body {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-top: none;
	border-radius: 0 0 14px 14px;
	padding: 1.75rem 2rem 2rem;
	box-shadow: 0 6px 20px rgba(31, 56, 100, 0.04);
}
.ct-panel-body-centered { text-align: center; }
.ct-panel-body-text {
	margin: 0 0 1rem;
	color: #374151;
	font-size: 0.975rem;
	line-height: 1.6;
}
.ct-panel-body-text-secondary {
	margin: 0 0 1.25rem;
	color: #64748b;
	font-size: 0.875rem;
	line-height: 1.55;
}
.ct-panel-body p:last-child { margin-bottom: 0; }

/* --- Section heading inside the body (used by test-info) --- */
.ct-panel-section-title {
	margin: 1.5rem 0 0.75rem;
	font-size: 1rem;
	font-weight: 600;
	color: #1f3864;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid #f1f5f9;
}
.ct-panel-prose p {
	margin: 0 0 0.75rem;
	color: #374151;
	font-size: 0.975rem;
	line-height: 1.6;
}
.ct-panel-prose p:last-child { margin-bottom: 0; }
.ct-panel-rules {
	margin: 0 0 1rem;
	padding-left: 1.25rem;
	color: #475569;
	font-size: 0.95rem;
	line-height: 1.55;
}
.ct-panel-rules li { margin-bottom: 0.4rem; }
.ct-panel-rules li:last-child { margin-bottom: 0; }

/* --- Meta dl row (test-info badges) --- */
.ct-panel-meta {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.6rem;
	margin: 1.25rem 0;
	padding: 0;
}
@media (max-width: 520px) {
	.ct-panel-meta { grid-template-columns: 1fr; }
}
.ct-panel-meta-item {
	background: #f8fafc;
	border-radius: 8px;
	padding: 0.85rem 1rem;
	text-align: center;
}
.ct-panel-meta-item dt {
	margin: 0 0 0.25rem;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #64748b;
}
.ct-panel-meta-item dd {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 600;
	color: #1f2937;
}

/* --- Email chip (check-email screen) --- */
.ct-panel-email-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 1.25rem;
	padding: 0.65rem 1rem;
	background: #f1f5f9;
	border-radius: 999px;
	font-size: 0.95rem;
	color: #1f3864;
	max-width: 100%;
	word-break: break-all;
}
.ct-panel-email-chip strong { font-weight: 600; }

/* --- "or" divider used between login form and register CTA on landing --- */
.ct-panel-divider {
	display: flex;
	align-items: center;
	margin: 1.25rem 0;
	color: #94a3b8;
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.ct-panel-divider::before,
.ct-panel-divider::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: #e5e7eb;
}
.ct-panel-divider span { padding: 0 0.75rem; }

/* --- Footer with secondary links --- */
.ct-panel-footer {
	margin-top: 1.25rem;
	text-align: center;
	font-size: 0.875rem;
	color: #64748b;
}
.ct-panel-footer a {
	color: #2563eb;
	text-decoration: none;
	font-weight: 500;
	border-bottom: 1px solid transparent;
	transition: border-color 0.15s ease;
}
.ct-panel-footer a:hover { border-bottom-color: #2563eb; }
.ct-panel-footer-sep {
	display: inline-block;
	margin: 0 0.5rem;
	color: #cbd5e1;
}

/* --- Form refinements scoped to .ct-panel (don't touch test runner forms) --- */
.ct-panel .ct-form label {
	display: block;
	margin: 0 0 1rem;
	text-align: left;
}
.ct-panel .ct-form label > span {
	display: block;
	font-weight: 500;
	font-size: 0.875rem;
	color: #374151;
	margin-bottom: 0.4rem;
}
.ct-panel .ct-form input[type=email],
.ct-panel .ct-form input[type=password],
.ct-panel .ct-form input[type=text],
.ct-panel .ct-form input[type=tel],
.ct-panel .ct-form input[type=number],
.ct-panel .ct-form select {
	width: 100%;
	padding: 0.7rem 0.9rem;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 0.95rem;
	color: #1f2937;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ct-panel .ct-form input:focus,
.ct-panel .ct-form select:focus {
	outline: none;
	border-color: #2e74b5;
	box-shadow: 0 0 0 3px rgba(46, 116, 181, 0.18);
}
.ct-panel .ct-form input::placeholder { color: #94a3b8; }
.ct-panel .ct-form-hint {
	display: block;
	margin-top: 0.35rem;
	color: #64748b;
	font-size: 0.8rem;
}
.ct-panel .ct-form .ct-required { color: #dc2626; }

/* Terms checkbox row (overrides legacy .ct-form label.ct-terms styling) */
.ct-panel .ct-form label.ct-terms {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	margin: 1.25rem 0;
	padding: 0.85rem 1rem;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	font-weight: 400;
	text-align: left;
}
.ct-panel .ct-form label.ct-terms input[type=checkbox] {
	flex: 0 0 auto;
	margin-top: 0.2rem;
}
.ct-panel .ct-form label.ct-terms > span {
	display: block;
	margin: 0;
	font-weight: 400;
	font-size: 0.875rem;
	color: #475569;
	line-height: 1.5;
}
.ct-panel .ct-form label.ct-terms a { color: #2563eb; }

.ct-panel .ct-form-turnstile {
	margin: 1rem 0;
	display: flex;
	justify-content: center;
}

.ct-panel .ct-form-message {
	min-height: 1.25rem;
	margin: 0.75rem 0 0;
	font-size: 0.875rem;
}
.ct-panel .ct-form-message.is-error   { color: #b91c1c; }
.ct-panel .ct-form-message.is-success { color: #15803d; }

/* --- Buttons inside panels --- */
.ct-panel .ct-btn,
.ct-panel-body .ct-btn {
	border-radius: 8px;
	padding: 0.8rem 1.25rem;
	font-size: 0.95rem;
	font-weight: 500;
	border: 1px solid transparent;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
}
.ct-panel .ct-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
}
.ct-panel .ct-btn:focus-visible {
	outline: 3px solid rgba(37, 99, 235, 0.35);
	outline-offset: 2px;
}
.ct-panel .ct-btn-primary {
	background: var(--wp--preset--color--primary, #2e74b5);
	color: #fff;
}
.ct-panel .ct-btn-secondary {
	background: #fff;
	color: #1f3864;
	border-color: #cbd5e1;
}
.ct-panel .ct-btn-secondary:hover {
	background: #f8fafc;
	border-color: #94a3b8;
}
.ct-panel .ct-btn-block {
	display: flex;
	width: 100%;
	margin-top: 0.5rem;
}
.ct-btn-arrow {
	transition: transform 0.15s ease;
}
.ct-panel .ct-btn:hover .ct-btn-arrow {
	transform: translateX(2px);
}

/* --- Mobile tweaks --- */
@media (max-width: 480px) {
	.ct-panel-header { padding: 1.5rem 1.25rem 1.25rem; }
	.ct-panel-body   { padding: 1.5rem 1.25rem 1.5rem; }
	.ct-panel-title  { font-size: 1.25rem; }
}
