/*
 * Participant Dashboard styles. Same defensive approach as assessment.css:
 * every element gets an explicit background/color so this looks correct
 * regardless of the host theme (including dark themes), scoped entirely
 * under #ug-participant-dashboard-root so it never leaks into the rest of
 * the site.
 */

#ug-participant-dashboard-root {
	max-width: 700px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	background: #ffffff !important;
	color: #1a1a1a !important;
	border-radius: 10px;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
}

#ug-participant-dashboard-root * {
	box-sizing: border-box;
}

#ug-participant-dashboard-root .ug-dash-state {
	padding: 24px 20px;
	background: #ffffff !important;
}

#ug-participant-dashboard-root .ug-dash-title {
	font-size: 1.4rem;
	margin: 0 0 8px;
	color: #1a1a1a !important;
}

#ug-participant-dashboard-root .ug-dash-section-title {
	font-size: 1.1rem;
	margin: 28px 0 12px;
	color: #1a1a1a !important;
	border-bottom: 1px solid #e5e5e5;
	padding-bottom: 6px;
}

#ug-participant-dashboard-root .ug-dash-welcome {
	padding-bottom: 8px;
}

/* Phase 4 — 5D guidance note card. Styled deliberately like a small,
   warm sticky note (soft background, left accent bar) rather than a
   standard dashboard card, so it reads as a light encouragement touch,
   not another data panel. */
#ug-participant-dashboard-root .ug-dash-five-d-note {
	background: #fff9e6;
	border-left: 4px solid #d4a72c;
	border-radius: 6px;
	padding: 12px 16px;
	margin: 4px 0 20px;
}

#ug-participant-dashboard-root .ug-dash-five-d-label {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #8a6d1a !important;
	margin-bottom: 4px;
}

#ug-participant-dashboard-root .ug-dash-five-d-message {
	margin: 0;
	color: #4a3c0f !important;
	font-size: 0.95rem;
}

#ug-participant-dashboard-root .ug-dash-encouragement {
	color: #444444 !important;
	font-size: 1rem;
	margin: 4px 0 14px;
}

#ug-participant-dashboard-root .ug-dash-welcome-meta {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	align-items: center;
}

#ug-participant-dashboard-root .ug-dash-tier-badge {
	display: inline-block;
	background: #1d4ed8 !important;
	color: #ffffff !important;
	font-size: 0.78rem;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 999px;
}

#ug-participant-dashboard-root .ug-dash-last-date {
	color: #666666 !important;
	font-size: 0.85rem;
}

#ug-participant-dashboard-root .ug-dash-section {
	margin-top: 8px;
}

#ug-participant-dashboard-root .ug-dash-journey-snapshot {
	background: #f6f6f7 !important;
	border-radius: 8px;
	padding: 16px;
}

#ug-participant-dashboard-root .ug-dash-journey-snapshot .ug-dash-section-title {
	border-bottom: none;
	margin-top: 0;
}

#ug-participant-dashboard-root .ug-dash-snapshot-name {
	font-weight: 600;
	font-size: 1.05rem;
	margin: 0 0 4px;
	color: #1a1a1a !important;
}

#ug-participant-dashboard-root .ug-dash-snapshot-date {
	color: #666666 !important;
	font-size: 0.85rem;
	margin: 0 0 14px;
}

#ug-participant-dashboard-root .ug-dash-profile-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}

#ug-participant-dashboard-root .ug-dash-profile-item {
	background: #f6f6f7 !important;
	border-radius: 8px;
	padding: 14px 16px;
}

#ug-participant-dashboard-root .ug-dash-profile-label {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #666666 !important;
	margin-bottom: 4px;
}

#ug-participant-dashboard-root .ug-dash-profile-value {
	font-weight: 600;
	font-size: 1.05rem;
	color: #1a1a1a !important;
	margin-bottom: 6px;
}

#ug-participant-dashboard-root .ug-dash-profile-explanation {
	font-size: 0.9rem;
	color: #444444 !important;
	line-height: 1.5;
}

/* "Continue the Conversation" is the central focus of the dashboard per the
   design brief — visually distinct from the other sections, not just
   another card in the list. */
#ug-participant-dashboard-root .ug-dash-continue-conversation {
	background: #eef2ff !important;
	border: 1px solid #c7d2fe;
	border-radius: 10px;
	padding: 20px;
	margin-top: 24px;
}

#ug-participant-dashboard-root .ug-dash-continue-title {
	border-bottom: none;
	margin-top: 0;
	color: #1a1a1a !important;
}

#ug-participant-dashboard-root .ug-dash-conversation-block {
	margin-bottom: 16px;
}

#ug-participant-dashboard-root .ug-dash-conversation-block:last-child {
	margin-bottom: 0;
}

#ug-participant-dashboard-root .ug-dash-conversation-label {
	font-weight: 700;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #1d4ed8 !important;
	margin-bottom: 4px;
}

#ug-participant-dashboard-root .ug-dash-conversation-text {
	color: #1a1a1a !important;
	font-size: 1rem;
	line-height: 1.6;
	margin: 0;
}

#ug-participant-dashboard-root .ug-dash-resource-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

#ug-participant-dashboard-root .ug-dash-resource-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	background: #f6f6f7 !important;
	border-radius: 8px;
	padding: 14px;
	text-decoration: none;
	border: 1px solid #e5e5e5;
}

#ug-participant-dashboard-root .ug-dash-resource-type {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #1d4ed8 !important;
	font-weight: 700;
}

#ug-participant-dashboard-root .ug-dash-resource-name {
	color: #1a1a1a !important;
	font-weight: 600;
	font-size: 0.95rem;
}

#ug-participant-dashboard-root .ug-dash-next-journey {
	text-align: center;
	background: #f6f6f7 !important;
	border-radius: 8px;
	padding: 20px;
}

#ug-participant-dashboard-root .ug-dash-participant-line {
	color: #555555 !important;
	font-size: 0.9rem;
	margin: 0 0 8px;
}

#ug-participant-dashboard-root .ug-dash-message {
	color: #333333 !important;
}

#ug-participant-dashboard-root .ug-dash-loading {
	text-align: center;
	padding: 40px 16px;
}

#ug-participant-dashboard-root .ug-dash-error {
	color: #a5303a !important;
}

#ug-participant-dashboard-root .ug-dash-summary-card {
	background: #f6f6f7 !important;
	border-radius: 8px;
	padding: 16px;
	color: #1a1a1a !important;
}

#ug-participant-dashboard-root .ug-dash-assessment-name {
	font-weight: 600;
	margin: 0 0 10px;
	color: #1a1a1a !important;
}

#ug-participant-dashboard-root .ug-dash-field-row {
	margin-bottom: 6px;
	font-size: 0.95rem;
	color: #1a1a1a !important;
}

#ug-participant-dashboard-root .ug-dash-learning-path {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #ddd;
	font-size: 0.9rem;
	color: #1a1a1a !important;
}

#ug-participant-dashboard-root .ug-dash-history-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

#ug-participant-dashboard-root .ug-dash-history-item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid #eee;
	color: #1a1a1a !important;
}

#ug-participant-dashboard-root .ug-dash-history-title {
	font-weight: 600;
	flex: 1 1 auto;
	color: #1a1a1a !important;
}

#ug-participant-dashboard-root .ug-dash-history-date,
#ug-participant-dashboard-root .ug-dash-history-status {
	font-size: 0.85rem;
	color: #666666 !important;
}

#ug-participant-dashboard-root .ug-dash-btn {
	display: inline-block;
	padding: 8px 16px;
	font-size: 0.9rem;
	border-radius: 6px;
	border: 1px solid #ccc;
	background: #ffffff !important;
	color: #1a1a1a !important;
	cursor: pointer;
}

#ug-participant-dashboard-root .ug-dash-btn-primary {
	background: #1d4ed8 !important;
	color: #ffffff !important;
	border-color: #1d4ed8;
	text-decoration: none;
	font-weight: 600;
}

#ug-participant-dashboard-root .ug-dash-btn-primary:hover {
	background: #1a3fb0 !important;
}

#ug-participant-dashboard-root .ug-dash-resend-form,
#ug-participant-dashboard-root #ug-dash-resend-form {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin: 16px 0;
}

#ug-participant-dashboard-root #ug-dash-resend-form input[type="email"] {
	flex: 1 1 200px;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #ffffff !important;
	color: #1a1a1a !important;
}

#ug-participant-dashboard-root #ug-dash-resend-result {
	margin-top: 10px;
	font-size: 0.9rem;
	color: #333333 !important;
}

#ug-participant-dashboard-root .ug-dash-full-report {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 2px solid #e5e5e5;
	color: #1a1a1a !important;
	background: #ffffff !important;
}

#ug-participant-dashboard-root .ug-dash-full-report h4 {
	margin: 18px 0 6px;
	color: #1a1a1a !important;
}

#ug-participant-dashboard-root .ug-dash-report-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
	background: #f6f6f7 !important;
	padding: 14px;
	border-radius: 8px;
	margin: 12px 0;
	font-size: 0.9rem;
	color: #1a1a1a !important;
}

#ug-participant-dashboard-root .ug-dash-note {
	font-size: 0.85rem;
	color: #555555 !important;
	font-weight: normal;
}

@media (min-width: 480px) {
	#ug-participant-dashboard-root .ug-dash-report-grid {
		grid-template-columns: 1fr 1fr;
	}
}

#ug-participant-dashboard-root .ug-dash-full-report p {
	color: #333333 !important;
}

#ug-participant-dashboard-root .ug-dash-report-summary {
	font-size: 1rem;
	color: #1a1a1a !important;
}

#ug-participant-dashboard-root .ug-dash-rhythm-list {
	padding-left: 20px;
	color: #1a1a1a !important;
}

#ug-participant-dashboard-root .ug-dash-rhythm-list li {
	margin-bottom: 6px;
	color: #1a1a1a !important;
}

#ug-participant-dashboard-root .ug-dash-cta {
	text-align: center;
	margin: 20px 0;
}

#ug-participant-dashboard-root .ug-dash-disclaimer {
	font-size: 0.8rem;
	color: #666666 !important;
	border-left: 3px solid #ccc;
	padding-left: 10px;
	margin-top: 20px;
}

@media (max-width: 480px) {
	#ug-participant-dashboard-root .ug-dash-history-item {
		flex-direction: column;
		align-items: flex-start;
	}

	#ug-participant-dashboard-root .ug-dash-resource-grid {
		grid-template-columns: 1fr;
	}
}
