.ept-dashboard {
	--ept-ink: #17211e;
	--ept-muted: #5f6d68;
	--ept-border: #cfd8d4;
	--ept-surface: #ffffff;
	--ept-subtle: #f4f7f5;
	--ept-primary: #176b5b;
	--ept-primary-dark: #105347;
	--ept-accent: #2954a3;
	--ept-danger: #a52d37;
	box-sizing: border-box;
	color: var(--ept-ink);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
	margin: 24px 0;
	width: 100%;
}

.ept-dashboard *,
.ept-dashboard *::before,
.ept-dashboard *::after {
	box-sizing: border-box;
}

.ept-dashboard__grid {
	display: grid;
	gap: 20px;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.ept-panel {
	background: var(--ept-surface);
	border: 1px solid var(--ept-border);
	border-radius: 8px;
	min-width: 0;
	padding: 24px;
}

.ept-panel--progress,
.ept-panel--history {
	grid-column: 1 / -1;
}

.ept-dashboard .ept-panel--record {
	scroll-margin-top: 96px;
}

.ept-panel__heading {
	align-items: flex-start;
	display: flex;
	justify-content: space-between;
	margin-bottom: 20px;
}

.ept-panel__heading--split {
	align-items: flex-end;
	gap: 24px;
}

.ept-panel__eyebrow {
	color: var(--ept-primary);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0;
	margin: 0 0 3px;
	text-transform: uppercase;
}

.ept-dashboard h2 {
	color: var(--ept-ink);
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.25;
	margin: 0;
}

.ept-notices:empty {
	display: none;
}

.ept-notice {
	border: 1px solid;
	border-left-width: 4px;
	border-radius: 4px;
	margin: 0 0 16px;
	padding: 11px 14px;
}

.ept-notice--success {
	background: #eff8f3;
	border-color: #64a27c;
	color: #174e2d;
}

.ept-notice--error {
	background: #fff2f2;
	border-color: #c75a62;
	color: #7d1d25;
}

.ept-form {
	display: grid;
	gap: 16px;
}

.ept-form__row {
	display: grid;
	gap: 16px;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.ept-field {
	display: grid;
	gap: 6px;
	min-width: 0;
}

.ept-field--compact {
	min-width: min(100%, 240px);
}

.ept-field label {
	color: var(--ept-ink);
	font-size: 0.875rem;
	font-weight: 650;
}

.ept-field input,
.ept-field select {
	appearance: none;
	background-color: #fff;
	border: 1px solid #aebbb6;
	border-radius: 4px;
	color: var(--ept-ink);
	font: inherit;
	height: 44px;
	margin: 0;
	max-width: 100%;
	padding: 8px 11px;
	width: 100%;
}

.ept-field select {
	background-image:
		linear-gradient(45deg, transparent 50%, #4a5752 50%),
		linear-gradient(135deg, #4a5752 50%, transparent 50%);
	background-position:
		calc(100% - 17px) 19px,
		calc(100% - 12px) 19px;
	background-repeat: no-repeat;
	background-size: 5px 5px, 5px 5px;
	padding-right: 34px;
}

.ept-field input:focus,
.ept-field select:focus,
.ept-button:focus-visible,
.ept-link-button:focus-visible,
.ept-sort-button:focus-visible,
.ept-table-wrap:focus-visible {
	border-color: var(--ept-accent);
	outline: 3px solid rgba(41, 84, 163, 0.22);
	outline-offset: 2px;
}

.ept-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 2px;
}

.ept-button {
	align-items: center;
	border: 1px solid transparent;
	border-radius: 4px;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 700;
	justify-content: center;
	line-height: 1.2;
	min-height: 42px;
	padding: 9px 16px;
	text-decoration: none;
}

.ept-button:hover,
.ept-button:focus {
	text-decoration: none;
}

.ept-button--primary {
	background: var(--ept-primary);
	color: #fff;
}

.ept-button--primary:hover,
.ept-button--primary:focus {
	background: var(--ept-primary-dark);
	color: #fff;
}

.ept-button--secondary {
	background: #fff;
	border-color: var(--ept-border);
	color: var(--ept-ink);
}

.ept-button--secondary:hover,
.ept-button--secondary:focus {
	background: var(--ept-subtle);
	color: var(--ept-ink);
}

.ept-button--danger {
	background: #fff;
	border-color: #d8a2a6;
	color: var(--ept-danger);
}

.ept-button--danger:hover,
.ept-button--danger:focus {
	background: #fff2f2;
	color: #801f27;
}

.ept-empty {
	background: var(--ept-subtle);
	border: 1px dashed #aebbb6;
	border-radius: 6px;
	color: var(--ept-muted);
	margin: 0;
	padding: 18px;
}

.ept-empty--large {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 5px;
	justify-content: center;
	min-height: 220px;
	text-align: center;
}

.ept-empty strong {
	color: var(--ept-ink);
	font-size: 1rem;
}

.ept-summary {
	border-bottom: 1px solid var(--ept-border);
	border-top: 1px solid var(--ept-border);
	display: grid;
	grid-template-columns: repeat(5, minmax(110px, 1fr));
	margin-bottom: 14px;
}

.ept-summary__item {
	border-right: 1px solid var(--ept-border);
	display: grid;
	gap: 2px;
	min-width: 0;
	padding: 12px;
}

.ept-summary__item:last-child {
	border-right: 0;
}

.ept-summary__label {
	color: var(--ept-muted);
	font-size: 0.75rem;
	font-weight: 650;
}

.ept-summary__value {
	color: var(--ept-ink);
	font-size: 1rem;
	font-weight: 750;
	overflow-wrap: anywhere;
}

.ept-chart-toolbar {
	display: flex;
	justify-content: flex-end;
	min-height: 34px;
}

.ept-toggle {
	align-items: center;
	cursor: pointer;
	display: inline-flex;
	font-size: 0.875rem;
	gap: 8px;
}

.ept-toggle input {
	accent-color: var(--ept-primary);
	height: 17px;
	margin: 0;
	width: 17px;
}

.ept-chart-wrap {
	height: 380px;
	position: relative;
	width: 100%;
}

.ept-chart-wrap canvas {
	max-height: 100%;
	max-width: 100%;
}

.ept-chart-fallback {
	color: var(--ept-danger);
	margin: 12px 0 0;
}

.ept-table-wrap {
	border: 1px solid var(--ept-border);
	overflow-x: auto;
	width: 100%;
}

.ept-history-table {
	border-collapse: collapse;
	color: var(--ept-ink);
	font-size: 0.9rem;
	margin: 0;
	min-width: 680px;
	width: 100%;
}

.ept-history-table th,
.ept-history-table td {
	border: 1px solid var(--ept-border);
	padding: 12px 14px;
	text-align: left;
	vertical-align: middle;
}

.ept-history-table th {
	background: #e9f0ed;
	color: var(--ept-ink);
	font-weight: 700;
	white-space: nowrap;
}

.ept-history-table tbody tr:nth-child(even) {
	background: #f8faf9;
}

.ept-history-table tbody tr:hover {
	background: #eef5f2;
}

.ept-sort-button {
	align-items: center;
	background: transparent;
	border: 0;
	color: inherit;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-weight: inherit;
	gap: 7px;
	margin: -5px;
	padding: 5px;
	text-align: left;
}

.ept-sort-indicator {
	display: inline-block;
	font-size: 1rem;
	min-width: 12px;
}

.ept-row-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.ept-row-actions form {
	margin: 0;
}

.ept-link-button {
	background: transparent;
	border: 0;
	color: var(--ept-accent);
	cursor: pointer;
	font: inherit;
	font-weight: 650;
	margin: 0;
	padding: 2px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ept-link-button--danger {
	color: var(--ept-danger);
}

.ept-table-note {
	color: var(--ept-muted);
	font-size: 0.8rem;
	margin: 9px 0 0;
}

.ept-login-required {
	border-left: 4px solid #2954a3;
	padding: 10px 14px;
}


.ept-confirmation {
	background: #fff8e5;
	border: 1px solid #d9aa36;
	border-left-width: 4px;
	border-radius: 6px;
	margin: 0 0 20px;
	padding: 18px;
}

.ept-confirmation h2 {
	font-size: 1.05rem;
	margin: 0 0 6px;
}

.ept-confirmation p {
	margin: 0 0 14px;
}

.ept-admin-dashboard {
	max-width: 1200px;
}

.ept-admin-dashboard .ept-panel--target {
	grid-column: 1 / -1;
}

@media (max-width: 900px) {
	.ept-dashboard__grid {
		grid-template-columns: 1fr;
	}

	.ept-panel--progress,
	.ept-panel--history {
		grid-column: auto;
	}

	.ept-panel__heading--split {
		align-items: stretch;
		flex-direction: column;
	}

	.ept-field--compact {
		width: 100%;
	}

	.ept-summary {
		grid-template-columns: repeat(3, minmax(110px, 1fr));
	}

	.ept-summary__item {
		border-bottom: 1px solid var(--ept-border);
	}
}

@media (max-width: 600px) {
	.ept-dashboard {
		margin: 16px 0;
	}

	.ept-dashboard__grid {
		gap: 14px;
	}

	.ept-panel {
		padding: 17px;
	}

	.ept-form__row {
		grid-template-columns: 1fr;
	}

	.ept-summary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ept-summary__item:nth-child(even) {
		border-right: 0;
	}

	.ept-chart-wrap {
		height: 300px;
	}

	.ept-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.ept-button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ept-dashboard *,
	.ept-dashboard *::before,
	.ept-dashboard *::after {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}


/* Version 0.4 participant milestones, summaries, and coach overview. */
.ept-dashboard .ept-panel--overview,
.ept-dashboard .ept-panel--assessments {
	grid-column: 1 / -1;
}

.ept-dashboard .ept-snapshot {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	border: 1px solid #d9e1de;
	background: #f7faf9;
}

.ept-dashboard .ept-snapshot__item {
	min-width: 0;
	padding: 14px;
	border-right: 1px solid #d9e1de;
}

.ept-dashboard .ept-snapshot__item:last-child {
	border-right: 0;
}

.ept-dashboard .ept-snapshot__item span,
.ept-dashboard .ept-snapshot__item small {
	display: block;
	color: #52615d;
	font-size: 12px;
}

.ept-dashboard .ept-snapshot__item strong {
	display: block;
	margin: 3px 0;
	color: #17211f;
	font-size: 24px;
	line-height: 1.15;
}

.ept-dashboard .ept-target-highlight {
	margin: 14px 0 0;
	padding: 10px 12px;
	border-left: 4px solid #176b5b;
	background: #eef7f4;
}

.ept-dashboard .ept-panel--pbs {
	grid-column: 1 / -1;
}

.ept-dashboard .ept-pb-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.ept-dashboard .ept-pb-item {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 12px;
	padding: 12px;
	border: 1px solid #d9e1de;
}

.ept-dashboard .ept-pb-item div,
.ept-dashboard .ept-pb-item span,
.ept-dashboard .ept-pb-item time {
	display: block;
}

.ept-dashboard .ept-pb-item div:last-child {
	text-align: right;
}

.ept-dashboard .ept-pb-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	min-height: 28px;
	padding: 3px 7px;
	border: 2px solid #176b5b;
	border-radius: 4px;
	color: #176b5b;
	font-size: 12px;
	font-weight: 700;
}

.ept-dashboard .ept-notice--pb {
	border-left-color: #176b5b;
	background: #eef7f4;
}

.ept-dashboard .ept-notice--pb .ept-pb-mark {
	margin-right: 8px;
}

.ept-dashboard .ept-positive {
	color: #176b5b;
	font-weight: 700;
}

.ept-dashboard .ept-rpe {
	margin: 0;
	padding: 0;
	border: 0;
}

.ept-dashboard .ept-rpe legend {
	margin-bottom: 8px;
	font-weight: 700;
}

.ept-dashboard .ept-rpe__options {
	display: grid;
	grid-template-columns: repeat(5, minmax(42px, 1fr));
	gap: 6px;
	max-width: 360px;
}

.ept-dashboard .ept-rpe__options label {
	position: relative;
}

.ept-dashboard .ept-rpe__options input {
	position: absolute;
	opacity: 0;
}

.ept-dashboard .ept-rpe__options span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	border: 1px solid #aebbb7;
	border-radius: 4px;
	background: #fff;
	font-weight: 700;
	cursor: pointer;
}

.ept-dashboard .ept-rpe__options input:focus-visible + span {
	outline: 3px solid #2954a3;
	outline-offset: 2px;
}

.ept-dashboard .ept-rpe__options input:checked + span {
	border-color: #176b5b;
	background: #176b5b;
	color: #fff;
}

.ept-dashboard .ept-rpe__scale {
	display: flex;
	justify-content: space-between;
	max-width: 360px;
	margin-top: 5px;
	color: #52615d;
	font-size: 12px;
}

.ept-dashboard .ept-journey {
	grid-column: 1 / -1;
	padding: 14px;
	border: 1px solid #cdd8d4;
	background: #f7faf9;
}

.ept-dashboard .ept-journey__values {
	display: grid;
	grid-template-columns: 1fr auto 1fr auto 1fr;
	align-items: center;
	gap: 10px;
}

.ept-dashboard .ept-journey__item {
	text-align: center;
}

.ept-dashboard .ept-journey__item span,
.ept-dashboard .ept-journey__item strong {
	display: block;
}

.ept-dashboard .ept-journey__item span {
	color: #52615d;
	font-size: 12px;
	text-transform: uppercase;
}

.ept-dashboard .ept-journey__item strong {
	margin-top: 3px;
	font-size: 22px;
}

.ept-dashboard .ept-journey__arrow {
	color: #52615d;
	font-size: 22px;
}

.ept-dashboard .ept-journey__detail {
	margin: 10px 0 0;
	text-align: center;
	font-weight: 700;
}

.ept-dashboard .ept-summary__metrics {
	display: contents;
}

.ept-dashboard .ept-assessment-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
}

.ept-dashboard .ept-assessment-list li {
	display: flex;
	gap: 8px;
}

.ept-dashboard .ept-comparison-table {
	width: 100%;
	border-collapse: collapse;
}

.ept-dashboard .ept-comparison-table th,
.ept-dashboard .ept-comparison-table td {
	padding: 10px;
	border: 1px solid #d9e1de;
	text-align: left;
}

.ept-admin-wrap .ept-admin-stats {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
	margin: 18px 0 26px;
}

.ept-admin-wrap .ept-admin-stat {
	padding: 14px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #fff;
}

.ept-admin-wrap .ept-admin-stat span,
.ept-admin-wrap .ept-admin-stat strong {
	display: block;
}

.ept-admin-wrap .ept-admin-stat strong {
	margin-top: 6px;
	font-size: 26px;
}

@media (max-width: 900px) {
	.ept-dashboard .ept-snapshot,
	.ept-admin-wrap .ept-admin-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ept-dashboard .ept-snapshot__item {
		border-bottom: 1px solid #d9e1de;
	}

	.ept-dashboard .ept-pb-list {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 520px) {
	.ept-dashboard .ept-snapshot,
	.ept-admin-wrap .ept-admin-stats {
		grid-template-columns: 1fr;
	}

	.ept-dashboard .ept-snapshot__item {
		border-right: 0;
	}

	.ept-dashboard .ept-journey__values {
		grid-template-columns: 1fr;
	}

	.ept-dashboard .ept-journey__arrow {
		transform: rotate(90deg);
		text-align: center;
	}

	.ept-dashboard .ept-pb-item {
		grid-template-columns: auto 1fr;
	}

	.ept-dashboard .ept-pb-item div:last-child {
		grid-column: 2;
		text-align: left;
	}
}
