/* ─── Leads dashboard ([hzo_leads_dashboard]) ─────────────────────────────
   Client-facing, capability-gated view over the Fluent-native leads API
   (includes/leads/). A visitor without access gets the login card, which
   reuses .hzo-empty verbatim — no styling of its own needed here.

   An authorized visitor sees three headline stats — reusing .hzo-stat /
   .hzo-stat-number / .hzo-stat-label (stats/stats.css, always-loaded) — and
   a responsive table that reuses .hzo-table's existing mobile-stacking
   contract (data-label attrs → stacked cards under 768px) plus
   .hzo-table-scroll for the desktop horizontal-scroll safety net.

   Risk state is the existing .hzo-badge primitive: genuine/review/spam reuse
   its --success/--warning/--error tints (already token-driven off
   var(--success)/var(--color-warning)/var(--error)); "test" is the plain,
   un-modified badge (muted neutral, not a new colour). No badge CSS is
   declared in this file at all — see components/badge/badge.css.

   Everything below is layout/spacing/motion only, and every value is a
   design token (--space-*, --text-*, --fs-*, --fw-*, --radius-*,
   --transition-base, --color-focus) — no hardcoded colour or off-ladder px. */

.hzo-leads-dashboard {
	color: var(--text-body);
	font-family: var(--font-body);
}

/* ── Summary stats ─────────────────────────────────────────────────────── */
.hzo-leads-dashboard__summary {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-lg);
	margin-bottom: var(--space-md);
}

.hzo-leads-dashboard__note {
	color: var(--text-muted);
	font-size: var(--fs-100);
	margin: 0 0 var(--space-lg);
}

/* ── Table ──────────────────────────────────────────────────────────────── */
.hzo-leads-dashboard__table {
	margin-top: var(--space-sm);
}

/* ── Pagination ───────────────────────────────────────────────────────── */
.hzo-leads-dashboard__pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-md);
	margin-top: var(--space-lg);
	flex-wrap: wrap;
}
.hzo-leads-dashboard__page-link {
	/* 44×44 tap target — same recipe as .hzo-pagination__link. */
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	color: var(--brand-text);
	text-decoration: none;
	font-weight: var(--fw-600);
	font-size: var(--fs-100);
	padding: var(--space-2xs) var(--space-2xs);
	border-radius: var(--radius-1);
	transition: color var(--transition-base);
}
.hzo-leads-dashboard__page-link:hover {
	color: var(--brand-hover-on-light);
	text-decoration: underline;
}
.hzo-leads-dashboard__page-link:focus-visible {
	outline: 2px solid var(--color-focus);
	outline-offset: 2px;
}
.hzo-leads-dashboard__page-status {
	color: var(--text-muted);
	font-size: var(--fs-75);
}

/* ── Small screens: stack the summary stats ──────────────────────────────
   .hzo-table's own <768px media query already stacks the table into cards;
   this only re-flows the 3-up stat row above it. */
@media (max-width: 640px) {
	.hzo-leads-dashboard__summary {
		grid-template-columns: 1fr;
		gap: var(--space-md);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hzo-leads-dashboard__page-link {
		transition: none;
	}
}
