.es-client-dashboard {
	--es-card-radius: 18px;
	--es-space: clamp(16px, 2vw, 26px);
	--es-cream: #f7efe1;
	--es-cream-strong: #fffaf0;
	--es-green: #25442f;
	--es-green-soft: #426247;
	--es-tan: #d8bd86;
	--es-tan-soft: #eee0c3;
	--es-muted: #665f50;
	--es-gold: #bd8b3d;
	--es-line: rgba(64, 52, 35, 0.16);
	box-sizing: border-box;
	padding: clamp(18px, 4vw, 48px);
	background:
		linear-gradient(135deg, rgba(37, 68, 47, 0.18), rgba(189, 139, 61, 0.18)),
		linear-gradient(180deg, #efe0c5 0%, #d5b982 100%);
	color: #2e2a22;
}

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

.es-client-dashboard a {
	text-decoration: none;
}

.es-client-dashboard__panel {
	width: min(1171px, 100%);
	margin: 0 auto;
	padding: var(--es-space);
	border: 1px solid rgba(92, 76, 48, 0.18);
	border-radius: 28px;
	background: rgba(255, 250, 240, 0.94);
	box-shadow: 0 24px 60px rgba(46, 36, 21, 0.18);
}

.es-client-dashboard__hero {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr);
	gap: var(--es-space);
	margin-bottom: var(--es-space);
}

.es-client-dashboard__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--es-space);
	align-items: start;
}

.es-client-dashboard__card {
	min-width: 0;
	padding: clamp(18px, 2vw, 26px);
	border: 1px solid var(--es-line);
	border-radius: var(--es-card-radius);
	background: var(--es-cream-strong);
	box-shadow: 0 14px 30px rgba(46, 36, 21, 0.09);
}

.es-client-dashboard__card--horse {
	order: 1;
}

.es-client-dashboard__card--calendar {
	order: 2;
}

.es-client-dashboard__card--calendar-connect {
	order: 3;
}

.es-client-dashboard__card--guide {
	order: 4;
}

.es-client-dashboard__card--problems {
	order: 5;
}

.es-client-dashboard__card--session-log {
	order: 6;
}

.es-client-dashboard__card--history {
	order: 7;
}

.es-client-dashboard__card--quick-actions {
	order: 8;
}

.es-client-dashboard__quick-actions {
	background: #f2e5c9;
	grid-column: 1 / -1;
}

.es-client-dashboard__continue {
	background: var(--es-green);
	color: var(--es-cream-strong);
}

.es-client-dashboard__welcome-layout {
	display: flex;
	align-items: flex-start;
	gap: 16px;
}

.es-client-dashboard__profile-mark {
	display: grid;
	width: 58px;
	height: 58px;
	flex: 0 0 58px;
	place-items: center;
	border: 2px solid rgba(37, 68, 47, 0.16);
	border-radius: 999px;
	background: var(--es-tan-soft);
	color: var(--es-green);
	font-size: 1.35rem;
	font-weight: 800;
}

.es-client-dashboard__eyebrow {
	margin: 0 0 8px;
	color: var(--es-gold);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
}

.es-client-dashboard__continue .es-client-dashboard__eyebrow {
	color: #f2d89b;
}

.es-client-dashboard h2,
.es-client-dashboard h3,
.es-client-dashboard p {
	margin-top: 0;
}

.es-client-dashboard h2 {
	margin-bottom: 10px;
	font-size: clamp(1.65rem, 2.4vw, 2.35rem);
	line-height: 1.08;
	letter-spacing: 0;
}

.es-client-dashboard h3 {
	margin-bottom: 10px;
	font-size: 1.15rem;
	line-height: 1.2;
	letter-spacing: 0;
}

.es-client-dashboard p {
	color: var(--es-muted);
	line-height: 1.55;
}

.es-client-dashboard__continue p {
	color: rgba(255, 250, 240, 0.86);
}

.es-client-dashboard__meta {
	margin-bottom: 0;
	font-size: 0.92rem;
}

.es-client-dashboard__status {
	display: inline-flex;
	margin-bottom: 0;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(255, 250, 240, 0.14);
	font-size: 0.9rem;
	font-weight: 800;
}

.es-client-dashboard__next-planned {
	margin: 12px 0 0;
	padding: 10px 12px;
	border-radius: 14px;
	background: rgba(255, 250, 240, 0.14);
	font-size: 0.94rem;
}

.es-client-dashboard__progress {
	display: block;
	width: 100%;
	height: 12px;
	margin: 18px 0;
	overflow: hidden;
	border-radius: 999px;
	background: rgba(255, 250, 240, 0.24);
	appearance: none;
	border: 0;
}

.es-client-dashboard__progress::-webkit-progress-bar {
	border-radius: 999px;
	background: rgba(255, 250, 240, 0.24);
}

.es-client-dashboard__progress::-webkit-progress-value {
	border-radius: 999px;
	background: #f2d89b;
}

.es-client-dashboard__progress::-moz-progress-bar {
	border-radius: 999px;
	background: #f2d89b;
}

.es-client-dashboard__button,
.es-client-dashboard__quick-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 11px 18px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-weight: 800;
	line-height: 1.15;
	text-align: center;
	cursor: pointer;
}

.es-client-dashboard__button--primary,
.es-client-dashboard__quick-action--primary {
	background: var(--es-green);
	color: var(--es-cream-strong);
}

.es-client-dashboard__button--secondary,
.es-client-dashboard__quick-action {
	background: var(--es-tan);
	color: #2e2a22;
}

.es-client-dashboard__button--light {
	background: var(--es-cream-strong);
	color: var(--es-green);
}

.es-client-dashboard__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

.es-client-dashboard__stats {
	display: grid;
	gap: 10px;
	margin: 18px 0 0;
}

.es-client-dashboard__stats div {
	padding: 12px;
	border-radius: 14px;
	background: var(--es-tan-soft);
}

.es-client-dashboard__stats dt {
	color: var(--es-muted);
	font-size: 0.78rem;
	font-weight: 800;
	text-transform: uppercase;
}

.es-client-dashboard__stats dd {
	margin: 2px 0 0;
	font-weight: 800;
}

.es-client-dashboard__placeholder {
	background: #fff6e6;
}

.es-client-dashboard__horse {
	background: #fff6e6;
}

.es-client-dashboard__notice {
	padding: 10px 12px;
	border-radius: 12px;
	background: rgba(37, 68, 47, 0.1);
	color: var(--es-green);
	font-weight: 800;
}

.es-client-dashboard__horse-details,
.es-client-dashboard__session-summary,
.es-client-dashboard__guide-summary {
	display: grid;
	gap: 10px;
	margin: 14px 0;
}

.es-client-dashboard__horse-details div,
.es-client-dashboard__session-summary div,
.es-client-dashboard__guide-summary div {
	padding: 10px 12px;
	border-radius: 12px;
	background: var(--es-tan-soft);
}

.es-client-dashboard__horse-details dt,
.es-client-dashboard__session-summary dt,
.es-client-dashboard__guide-summary dt {
	color: var(--es-muted);
	font-size: 0.76rem;
	font-weight: 800;
	text-transform: uppercase;
}

.es-client-dashboard__horse-details dd,
.es-client-dashboard__session-summary dd,
.es-client-dashboard__guide-summary dd {
	margin: 2px 0 0;
	font-weight: 800;
}

.es-client-dashboard__horse-select,
.es-client-dashboard__horse-editor,
.es-client-dashboard__session-editor,
.es-client-dashboard__problem-editor {
	margin-top: 18px;
}

.es-client-dashboard__horse-editor,
.es-client-dashboard__session-editor,
.es-client-dashboard__problem-editor {
	padding-top: 14px;
	border-top: 1px solid var(--es-line);
}

.es-client-dashboard__horse-editor summary,
.es-client-dashboard__session-editor summary,
.es-client-dashboard__problem-editor summary {
	display: inline-flex;
	margin-bottom: 14px;
	padding: 10px 14px;
	border-radius: 999px;
	background: var(--es-green);
	color: var(--es-cream-strong);
	font-weight: 800;
	cursor: pointer;
}

.es-client-dashboard__horse-editor form,
.es-client-dashboard__horse-select,
.es-client-dashboard__session-editor form,
.es-client-dashboard__problem-editor form {
	display: grid;
	gap: 12px;
}

.es-client-dashboard__form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.es-client-dashboard__form-row {
	display: flex;
	gap: 10px;
	align-items: center;
}

.es-client-dashboard label {
	display: block;
	margin-bottom: 5px;
	color: var(--es-muted);
	font-size: 0.82rem;
	font-weight: 800;
}

.es-client-dashboard input[type="date"],
.es-client-dashboard input[type="text"],
.es-client-dashboard select,
.es-client-dashboard textarea {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid var(--es-line);
	border-radius: 12px;
	background: var(--es-cream-strong);
	color: #2e2a22;
	font: inherit;
}

.es-client-dashboard textarea {
	resize: vertical;
}

.es-client-dashboard__problem-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.es-client-dashboard__problem-list li {
	padding: 8px 10px;
	border-radius: 999px;
	background: var(--es-tan-soft);
	color: #2e2a22;
	font-size: 0.9rem;
	font-weight: 800;
}

.es-client-dashboard__guide {
	background: #fff6e6;
}

.es-client-dashboard__calendar {
	background: #fff6e6;
}

.es-client-dashboard__history {
	background: #fff6e6;
}

.es-client-dashboard__calendar-connect {
	background: #fff6e6;
}

.es-client-dashboard__calendar-group + .es-client-dashboard__calendar-group {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--es-line);
}

.es-client-dashboard__calendar-list {
	display: grid;
	gap: 10px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.es-client-dashboard__calendar-list li {
	display: grid;
	gap: 4px;
	padding: 12px;
	border: 1px solid var(--es-line);
	border-radius: 14px;
	background: var(--es-cream-strong);
}

.es-client-dashboard__calendar-list strong,
.es-client-dashboard__calendar-list span,
.es-client-dashboard__calendar-list em,
.es-client-dashboard__calendar-list small {
	display: block;
}

.es-client-dashboard__calendar-list em {
	color: var(--es-muted);
	font-style: normal;
}

.es-client-dashboard__calendar-list small {
	color: var(--es-muted);
	font-size: 0.82rem;
	font-weight: 800;
}

.es-client-dashboard__calendar-badge {
	display: inline-flex;
	width: fit-content;
	padding: 5px 8px;
	border-radius: 999px;
	background: var(--es-tan-soft);
	color: var(--es-green);
	font-size: 0.74rem;
	font-weight: 900;
	text-transform: uppercase;
}

.es-client-dashboard__calendar-badge--planned {
	background: rgba(37, 68, 47, 0.12);
}

.es-client-dashboard__calendar-feed {
	margin-top: 16px;
}

.es-client-dashboard__calendar-feed summary {
	display: inline-flex;
	margin-bottom: 14px;
	padding: 10px 14px;
	border-radius: 999px;
	background: var(--es-green);
	color: var(--es-cream-strong);
	font-weight: 800;
	cursor: pointer;
}

.es-client-dashboard__calendar-feed-panel {
	display: grid;
	gap: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--es-line);
}

.es-client-dashboard__copy-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 10px;
	align-items: center;
}

.es-client-dashboard__copy-status {
	margin: 0;
	color: var(--es-green);
	font-size: 0.88rem;
	font-weight: 800;
}

.es-client-dashboard__calendar-instructions {
	display: grid;
	gap: 12px;
}

.es-client-dashboard__calendar-instructions h4 {
	margin: 0 0 6px;
	font-size: 0.96rem;
}

.es-client-dashboard__calendar-instructions ol {
	margin: 0;
	padding-left: 20px;
	color: var(--es-muted);
}

.es-client-dashboard__calendar-instructions li + li {
	margin-top: 3px;
}

.es-client-dashboard__history-list {
	display: grid;
	gap: 12px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.es-client-dashboard__history-list li {
	padding: 14px;
	border: 1px solid var(--es-line);
	border-radius: 14px;
	background: var(--es-cream-strong);
}

.es-client-dashboard__history-list header {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.es-client-dashboard__history-date {
	font-weight: 900;
}

.es-client-dashboard__history-status,
.es-client-dashboard__history-horse span {
	display: inline-flex;
	width: fit-content;
	padding: 5px 8px;
	border-radius: 999px;
	background: rgba(37, 68, 47, 0.12);
	color: var(--es-green);
	font-size: 0.74rem;
	font-weight: 900;
	text-transform: uppercase;
}

.es-client-dashboard__history-horse {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-bottom: 8px;
	font-weight: 900;
}

.es-client-dashboard__history-list p {
	margin-bottom: 8px;
}

.es-client-dashboard__guide .es-client-dashboard__button {
	margin: 4px 0 14px;
}

.es-client-dashboard__safety-note {
	padding: 10px 12px;
	border-left: 4px solid var(--es-gold);
	border-radius: 12px;
	background: rgba(189, 139, 61, 0.16);
	color: #3b3021;
	font-weight: 800;
}

.es-client-dashboard__equipment-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 8px 0 14px;
	padding: 0;
	list-style: none;
}

.es-client-dashboard__equipment-list li {
	padding: 7px 10px;
	border: 1px solid var(--es-line);
	border-radius: 999px;
	background: var(--es-cream-strong);
	color: #2e2a22;
	font-size: 0.86rem;
	font-weight: 800;
}

.es-client-dashboard__checkbox-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.es-client-dashboard__checkbox-option {
	display: flex;
	min-height: 44px;
	align-items: center;
	gap: 9px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--es-line);
	border-radius: 12px;
	background: var(--es-cream-strong);
	color: #2e2a22;
	font-size: 0.9rem;
	cursor: pointer;
}

.es-client-dashboard__checkbox-option input {
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	accent-color: var(--es-green);
}

.es-client-dashboard__quick-actions {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
}

.es-client-dashboard__quick-action {
	width: 100%;
	min-height: 64px;
	flex-direction: column;
	gap: 4px;
	border-radius: 16px;
}

.es-client-dashboard__quick-action[disabled] {
	background: #ead9b6;
	color: rgba(46, 42, 34, 0.72);
	cursor: not-allowed;
}

.es-client-dashboard__quick-action span {
	font-size: 0.76rem;
	font-weight: 700;
}

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

	.es-client-dashboard__quick-actions {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.es-client-dashboard {
		padding: 12px;
	}

	.es-client-dashboard__panel {
		padding: 14px;
		border-radius: 18px;
	}

	.es-client-dashboard__actions {
		flex-direction: column;
	}

	.es-client-dashboard__button,
	.es-client-dashboard__quick-actions {
		width: 100%;
	}

	.es-client-dashboard__quick-actions {
		grid-template-columns: 1fr;
	}

	.es-client-dashboard__welcome-layout {
		flex-direction: column;
	}

	.es-client-dashboard__form-grid,
	.es-client-dashboard__form-row,
	.es-client-dashboard__copy-row,
	.es-client-dashboard__checkbox-grid {
		grid-template-columns: 1fr;
		flex-direction: column;
		align-items: stretch;
	}
}
