:root {
	--bg: #f6efe7;
	--panel: #fffaf4;
	--panel-strong: #ffffff;
	--text: #3b312b;
	--muted: #74685f;
	--line: rgba(184, 138, 90, 0.24);
	--gold: #c9a06a;
	--coffee: #b88a5a;
	--coffee-dark: #9f7449;
	--shadow: 0 18px 50px rgba(89, 63, 42, 0.12);
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background:
		radial-gradient(circle at top left, rgba(201, 160, 106, 0.18), transparent 32rem),
		linear-gradient(180deg, #fffaf4 0%, var(--bg) 34%, #f4eadf 100%);
	color: var(--text);
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.5;
}

.dashboard-shell {
	width: min(1180px, 100%);
	margin: 0 auto;
	padding: 24px 16px 40px;
}

.dashboard-header {
	display: grid;
	gap: 18px;
	align-items: end;
	padding: 22px;
	border: 1px solid var(--line);
	border-radius: 22px;
	background: rgba(255, 250, 244, 0.88);
	box-shadow: var(--shadow);
	backdrop-filter: blur(12px);
}

.eyebrow,
.subtitle,
.section-heading p,
.muted {
	color: var(--muted);
}

.eyebrow {
	margin: 0 0 4px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

h1,
h2,
h3,
p {
	margin-top: 0;
}

h1 {
	margin-bottom: 8px;
	font-size: clamp(1.7rem, 5vw, 3rem);
	line-height: 1.08;
}

.subtitle {
	margin-bottom: 0;
	font-size: 0.98rem;
}

.status-pill {
	justify-self: start;
	width: fit-content;
	padding: 9px 13px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	color: var(--coffee-dark);
	font-size: 0.88rem;
	font-weight: 700;
}

.section-block {
	margin-top: 26px;
}

.section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}

.section-heading h2 {
	margin-bottom: 0;
	font-size: 1.22rem;
}

.section-heading p {
	margin-bottom: 0;
	font-size: 0.92rem;
}

.summary-grid,
.owner-grid,
.stage-grid {
	display: grid;
	gap: 12px;
}

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

.card {
	border: 1px solid var(--line);
	border-radius: 18px;
	background: rgba(255, 250, 244, 0.92);
	box-shadow: 0 12px 34px rgba(89, 63, 42, 0.08);
}

.summary-card {
	min-height: 112px;
	padding: 18px;
}

.summary-card span,
.owner-metric span {
	display: block;
	color: var(--muted);
	font-size: 0.82rem;
	font-weight: 700;
}

.summary-card strong {
	display: block;
	margin-top: 10px;
	color: var(--text);
	font-size: 2rem;
	line-height: 1;
}

.summary-card.featured {
	grid-column: 1 / -1;
	background: linear-gradient(135deg, var(--coffee), var(--gold));
	color: #fff;
}

.summary-card.featured span,
.summary-card.featured strong {
	color: #fff;
}

.owner-grid {
	grid-template-columns: 1fr;
}

.owner-card {
	padding: 18px;
}

.owner-name {
	margin-bottom: 14px;
	font-size: 1.12rem;
	font-weight: 800;
}

.owner-metrics {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.owner-metric {
	padding: 12px;
	border-radius: 14px;
	background: #ffffff;
	border: 1px solid rgba(184, 138, 90, 0.16);
}

.owner-metric strong {
	display: block;
	margin-top: 4px;
	font-size: 1.28rem;
}

.stage-card {
	padding: 16px;
}

.stage-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.stage-heading h3 {
	margin-bottom: 0;
	font-size: 1rem;
}

.stage-heading strong {
	min-width: 38px;
	padding: 5px 9px;
	border-radius: 999px;
	background: rgba(184, 138, 90, 0.12);
	color: var(--coffee-dark);
	text-align: center;
}

.lead-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.lead-chips span {
	padding: 7px 10px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid rgba(184, 138, 90, 0.18);
	color: var(--text);
	font-size: 0.85rem;
	font-weight: 700;
}

.empty-state {
	padding: 18px;
	border: 1px dashed var(--line);
	border-radius: 18px;
	background: rgba(255, 250, 244, 0.72);
	color: var(--muted);
}

.empty-state.error {
	color: #9b3d2f;
}

@media (min-width: 720px) {
	.dashboard-shell {
		padding: 34px 24px 56px;
	}

	.dashboard-header {
		grid-template-columns: 1fr auto;
		padding: 30px;
	}

	.status-pill {
		justify-self: end;
	}

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

	.summary-card.featured {
		grid-column: auto;
	}

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

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

@media (min-width: 1040px) {
	.owner-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.stage-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
