:root {
	--wm-green: #0e4644;
	--wm-yellow: #ffaf27;
	--wm-white: #ffffff;
	--ink: #0e4644;
	--paper: #0e4644;
	--wash: rgba(255, 175, 39, 0.16);
	--accent: #ffaf27;
	--line: rgba(255, 255, 255, 0.16);
	--danger: #ff6b6b;
	--ok: #ffaf27;
	--text: #ffffff;
	--muted: rgba(255, 255, 255, 0.72);
	--font-display: "Fraunces", Georgia, serif;
	--font-body: "Sora", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
	font-family: var(--font-body);
	color: var(--text);
	background:
		radial-gradient(ellipse 70% 45% at 100% -5%, rgba(255, 175, 39, 0.22), transparent 55%),
		radial-gradient(ellipse 55% 40% at -5% 30%, rgba(255, 255, 255, 0.08), transparent 50%),
		linear-gradient(165deg, #0a3533 0%, var(--wm-green) 45%, #0b3d3b 100%);
	min-height: 100vh;
}

a { color: inherit; }
.top {
	display: flex; justify-content: space-between; align-items: center;
	padding: 1rem 1.5rem; border-bottom: 1px solid var(--line);
	backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 20;
	background: rgba(14, 70, 68, 0.92);
	gap: 1rem;
}
.top.public { justify-content: space-between; }
.brand {
	display: inline-flex; align-items: center; gap: 0.65rem;
	text-decoration: none; font-weight: 700;
}
.brand-wordmark {
	display: block; height: 28px; width: auto; max-width: min(220px, 55vw);
}
.top-slogan {
	margin: 0; font-size: 0.85rem; color: var(--muted); font-weight: 500;
}
.brand-sep {
	display: inline-block; width: 1px; height: 1.1rem;
	background: rgba(255,255,255,0.28); margin: 0 0.15rem 0 0.2rem; flex-shrink: 0;
}
.brand-product {
	font-family: "Inter", system-ui, sans-serif;
	font-weight: 600; font-size: 1.05rem; line-height: 1;
	color: var(--wm-yellow); letter-spacing: -0.02em;
	text-transform: lowercase;
}
.top nav, .app-nav {
	display: flex; flex-wrap: wrap; gap: 0.55rem 0.85rem; align-items: center;
}
.top nav a, .app-nav a, .nav-drop-btn {
	text-decoration: none; font-weight: 600; font-size: 0.88rem; color: var(--wm-white);
	padding: 0.35rem 0.2rem; min-height: 44px; display: inline-flex; align-items: center;
	background: none; border: 0; cursor: pointer; font-family: inherit;
}
.app-nav a.is-active, .nav-drop-btn.is-active { color: var(--wm-yellow); border-bottom: 2px solid var(--wm-yellow); }
.nav-drop { position: relative; }
.nav-drop-btn { gap: 0.35rem; }
.nav-drop-caret {
	display: inline-block; width: 0; height: 0;
	border-left: 4px solid transparent; border-right: 4px solid transparent;
	border-top: 5px solid currentColor; opacity: 0.75;
}
.nav-drop-menu {
	display: none; position: absolute; top: calc(100% + 0.35rem); left: 0; z-index: 40;
	min-width: 11rem; padding: 0.35rem; border-radius: 0.55rem;
	background: #0a3533; border: 1px solid var(--line);
	box-shadow: 0 12px 32px rgba(0,0,0,0.35);
}
.nav-drop-menu a {
	display: flex; width: 100%; min-height: 40px; padding: 0.45rem 0.65rem;
	border-radius: 0.35rem; border-bottom: 0 !important;
}
.nav-drop-menu a:hover, .nav-drop-menu a.is-active {
	background: rgba(255,175,39,0.14); color: var(--wm-yellow);
}
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu,
.nav-drop.is-open .nav-drop-menu { display: block; }
.nav-toggle {
	display: none; background: transparent; border: 1px solid var(--line);
	border-radius: 0.4rem; padding: 0.55rem 0.7rem; cursor: pointer; color: var(--wm-white);
	min-width: 44px; min-height: 44px;
}
.nav-toggle-bars {
	display: block; width: 1.15rem; height: 2px; background: currentColor; position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after {
	content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.crm-search-bar {
	grid-template-columns: 1fr auto;
	align-items: end;
	margin: 0.75rem 0 1rem;
}
@media (min-width: 900px) {
	.crm-search-bar {
		grid-template-columns: 1fr auto;
	}
}
.crm-tabs {
	display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem;
}
.crm-tab {
	display: inline-flex; align-items: center; gap: 0.55rem; min-height: 44px;
	padding: 0.5rem 0.95rem; border-radius: 0.5rem;
	background: rgba(255,255,255,0.06); border: 1px solid var(--line);
	text-decoration: none; font-weight: 600; font-size: 0.9rem;
}
.crm-tab-label { line-height: 1.25; }
.crm-tab-count {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 1.55rem; padding: 0.15rem 0.45rem; border-radius: 999px;
	font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em;
	background: rgba(255,255,255,0.12); color: var(--muted);
}
.crm-tab.is-active { background: rgba(255,175,39,0.18); border-color: rgba(255,175,39,0.45); color: var(--wm-yellow); }
.crm-tab.is-active .crm-tab-count {
	background: rgba(255,175,39,0.28); color: var(--wm-yellow);
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { text-align: left; padding: 0.65rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.h2 { font-family: var(--font-display); font-size: 1.35rem; margin: 0 0 0.75rem; }
.hub-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.hub-item {
	padding: 0.75rem 0.85rem; border-radius: 0.65rem;
	background: rgba(0,0,0,0.15); border: 1px solid var(--line);
}
.hub-meta { margin-bottom: 0.25rem; }
.kv { display: grid; grid-template-columns: 10ch 1fr; gap: 0.5rem 1rem; margin: 0; }
.kv dt { color: var(--muted); font-size: 0.85rem; }
.kv dd { margin: 0; }
.code-block {
	margin: 0; white-space: pre-wrap; word-break: break-word;
	font-size: 0.8rem; color: var(--muted);
}
.error { color: var(--danger); font-weight: 600; }
.ok-flash, .crm-flash {
	background: rgba(255,175,39,0.18); border: 1px solid rgba(255,175,39,0.4);
	padding: 0.65rem 0.9rem; border-radius: 0.55rem; margin: 0 0 1rem;
}

/* CRM contact profile (Brevo-like) */
.crm-source-banner {
	margin: 0 0 1rem; padding: 0.9rem 1rem;
	background: rgba(255,175,39,0.1); border: 1px solid rgba(255,175,39,0.35);
}
.crm-source-line { margin: 0 0 0.35rem; }
.crm-source-meta { list-style: none; padding: 0; margin: 0 0 0.5rem; display: grid; gap: 0.15rem; }
.crm-back { margin: 0 0 0.75rem; }
.crm-profile-head {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.35rem 1.75rem;
	align-items: flex-start; margin-bottom: 1.5rem;
}
.crm-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.65rem; }
.crm-badge {
	display: inline-flex; align-items: center; min-height: 28px;
	padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
	background: rgba(255,255,255,0.1); border: 1px solid var(--line);
}
.crm-profile-title {
	display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem 0.75rem;
	margin: 0.35rem 0 0;
}
.crm-klantnr { color: var(--wm-yellow); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.crm-klantnr-hero {
	display: inline-flex; flex-direction: column; align-items: flex-start; gap: 0.15rem;
	margin: 0 0 0.15rem; padding: 0.55rem 0.85rem;
	border-radius: 0.65rem;
	border: 1px solid rgba(255, 175, 39, 0.45);
	background: rgba(255, 175, 39, 0.12);
	box-shadow: 0 0 0 1px rgba(255, 175, 39, 0.08);
}
.crm-klantnr-label {
	font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
	text-transform: uppercase; color: rgba(255, 175, 39, 0.9);
}
.crm-klantnr-value {
	font-size: 1.45rem; line-height: 1.1; font-weight: 800;
	color: var(--wm-yellow); font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
}
.crm-badge-klantnr {
	background: rgba(255, 175, 39, 0.14); border-color: rgba(255, 175, 39, 0.45);
	color: var(--wm-yellow); font-variant-numeric: tabular-nums;
}
.crm-badge-link { text-decoration: none; display: inline-flex; }
.crm-badge-partner.is-affiliate.is-active {
	background: rgba(255, 175, 39, 0.16); border-color: rgba(255, 175, 39, 0.5);
	color: var(--wm-yellow);
}
.crm-badge-partner.is-vriend.is-active {
	background: rgba(141, 255, 176, 0.14); border-color: rgba(141, 255, 176, 0.45);
	color: #8dffb0;
}
.crm-badge-partner.is-inactive {
	background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.2);
	color: var(--muted);
}
.crm-klantnr-banner {
	margin: 0 0 0.9rem; padding: 0.7rem 0.95rem; border-radius: 0.55rem;
	border: 1px solid rgba(255, 175, 39, 0.35); background: rgba(255, 175, 39, 0.08);
	font-size: 0.92rem;
}
.crm-klantnr-banner strong { color: var(--wm-yellow); font-variant-numeric: tabular-nums; }
.crm-verified {
	display: inline-flex; align-items: center; gap: 0.3rem;
	vertical-align: middle; margin-left: 0.35rem;
	color: #8dffb0; font-weight: 700; white-space: nowrap;
}
.crm-profile-title > .crm-verified { margin-left: 0; }
.crm-verified-mark {
	display: inline-flex; align-items: center; justify-content: center;
	width: 1.35rem; height: 1.35rem; border-radius: 50%;
	background: rgba(141, 255, 176, 0.18); border: 1.5px solid rgba(141, 255, 176, 0.65);
	font-size: 0.85rem; line-height: 1;
}
.crm-verified-label {
	font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase;
	color: #8dffb0;
}
.row-title .crm-verified { margin-left: 0.4rem; }
.funnel-card-name .crm-verified { margin-left: 0.3rem; }
.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.crm-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
/* a.btn beats .btn-new on display — force flex so icon+label center vertically */
.crm-actions a.btn.btn-new,
.crm-actions .crm-action-trechter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: center;
	min-height: 3.4rem;
	padding: 0.55rem 0.9rem;
	font-size: 0.82rem;
	line-height: 1.2;
	box-sizing: border-box;
}
.crm-action-trechter-form { display: inline-flex; margin: 0; align-self: center; }
.crm-actions a.btn.btn-new .btn-ico {
	display: block;
	margin: 0;
}
.crm-actions a.btn.btn-new > span {
	display: inline-flex;
	align-items: center;
	line-height: 1.2;
}
.crm-action {
	display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 0.15rem; min-width: 4.2rem; min-height: 3.4rem; padding: 0.35rem 0.45rem;
	border-radius: 0.55rem; border: 1px solid var(--line); background: rgba(0,0,0,0.18);
	text-decoration: none; font-size: 0.72rem; font-weight: 600; color: var(--wm-white);
	position: relative;
}
.crm-action summary {
	list-style: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 0.15rem;
}
.crm-action summary::-webkit-details-marker { display: none; }
.crm-action-ico { font-size: 1rem; line-height: 1; }
.crm-action.is-disabled { opacity: 0.4; pointer-events: none; }
.crm-popover {
	position: absolute; top: calc(100% + 0.35rem); right: 0; z-index: 30;
	width: min(280px, 80vw); padding: 0.75rem; border-radius: 0.65rem;
	background: #0a3533; border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(0,0,0,0.35);
	display: grid; gap: 0.5rem;
}
.crm-popover a { color: var(--wm-yellow); font-size: 0.9rem; }
.crm-popover-stack {
	width: min(200px, 70vw);
	padding: 0.4rem;
	gap: 0.15rem;
}
.crm-popover-stack a,
.crm-popover-stack span {
	display: flex; align-items: center; gap: 0.45rem;
	padding: 0.5rem 0.65rem; border-radius: 0.4rem;
	font-size: 0.88rem; font-weight: 600; text-decoration: none;
	color: var(--wm-white);
}
.crm-popover-stack a:hover { background: rgba(255,255,255,0.08); color: var(--wm-yellow); }
.crm-popover-stack .is-disabled { opacity: 0.4; pointer-events: none; }
.crm-action[data-crm-note-open],
.crm-action[data-crm-mail-open] {
	cursor: pointer; font: inherit; color: inherit;
}
.crm-mail-modal .crm-note-text-label input[type="text"],
.crm-mail-modal .crm-note-text-label input[type="file"] {
	font: inherit; padding: 0.7rem 0.9rem;
	border-radius: 0.65rem; border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.96); color: var(--wm-green);
}
.crm-mail-modal .crm-note-text-label input[type="file"] {
	background: rgba(0, 0, 0, 0.18); color: var(--wm-white); border-style: dashed;
}
.crm-note-backdrop {
	position: fixed; inset: 0; z-index: 100;
	background: rgba(0, 0, 0, 0.55);
}
.crm-note-backdrop.is-open { display: block; }
.crm-note-modal {
	position: fixed; z-index: 110;
	left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: min(920px, calc(100vw - 1.25rem));
	max-height: min(92vh, 920px);
	overflow: auto;
	background: #0a3533; border: 1px solid var(--line);
	border-radius: 1rem; padding: 1.1rem 1.25rem 1.35rem;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.crm-note-head {
	display: flex; justify-content: space-between; gap: 1rem;
	align-items: flex-start; margin-bottom: 0.85rem;
}
.crm-note-head h2 { margin: 0.1rem 0 0.25rem; font-size: 1.55rem; }
.crm-note-form { display: grid; gap: 0.85rem; }
.crm-note-text-label {
	display: grid; gap: 0.35rem; font-size: 0.8rem; font-weight: 600; color: var(--muted);
}
.crm-note-text-label textarea {
	font: inherit; min-height: 11rem; padding: 0.85rem 1rem;
	border-radius: 0.65rem; border: 1px solid var(--line);
	background: rgba(255, 255, 255, 0.96); color: var(--wm-green);
	line-height: 1.45; resize: vertical;
}
.crm-note-draw-block {
	display: grid; gap: 0.45rem;
	padding: 0.75rem; border-radius: 0.75rem;
	border: 1px solid var(--line); background: rgba(0, 0, 0, 0.18);
}
.crm-note-draw-head {
	display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem;
}
.crm-note-draw-head strong { font-size: 0.9rem; }
.crm-note-canvas {
	width: 100%; height: auto; min-height: 260px;
	border-radius: 0.55rem; border: 1px solid rgba(255, 255, 255, 0.15);
	background: #f7f5f0; cursor: crosshair; touch-action: none;
	display: block;
}
.crm-note-actions { margin: 0.25rem 0 0; }
@media (max-width: 720px) {
	.crm-note-modal {
		left: 0; right: 0; top: auto; bottom: 0;
		transform: none; width: 100%; max-height: 94vh;
		border-radius: 1rem 1rem 0 0;
	}
	.crm-note-text-label textarea { min-height: 8.5rem; }
	.crm-note-canvas { min-height: 220px; }
}
.crm-profile-tabs {
	display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; border-bottom: 1px solid var(--line);
	margin: 0 0 1.5rem; padding: 0 0 0.15rem;
}
.crm-profile-tabs a {
	padding: 0.65rem 0.15rem; text-decoration: none; font-weight: 600; font-size: 0.92rem;
	border-bottom: 2px solid transparent; min-height: 44px; display: inline-flex; align-items: center;
}
.crm-profile-tabs a.is-active { color: var(--wm-yellow); border-bottom-color: var(--wm-yellow); }
.crm-grid {
	display: grid; grid-template-columns: minmax(240px, 1fr) minmax(280px, 1.4fr) minmax(220px, 0.9fr);
	gap: 1.35rem; align-items: start;
}
.crm-card { margin: 0; }
/* Stacked CRM panels (Betalingen → Orderverzoeken, overview cards) */
main .panel.crm-card + .panel.crm-card,
.crm-col .panel.crm-card + .panel.crm-card {
	margin-top: 1.35rem;
}
.crm-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.crm-substatus { font-weight: 700; margin: 0 0 0.65rem; }
.crm-substatus.is-ok { color: #8dffb0; }
.crm-substatus.is-bad { color: var(--danger); }
.crm-pref-tags { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.crm-pref-tags-inline {
	grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
	margin-bottom: 1.1rem;
}
.crm-pref-tags li {
	padding: 0.4rem 0.65rem; border-radius: 0.45rem; font-size: 0.85rem;
	border: 1px solid var(--line); background: rgba(255,255,255,0.04);
}
.crm-pref-tags li.on { border-color: rgba(141,255,176,0.35); }
.crm-pref-tags li.off { opacity: 0.5; text-decoration: line-through; }
.crm-pref-form { margin-top: 0.5rem; padding-top: 0.85rem; border-top: 1px solid var(--line); }
.crm-info-dl { margin: 0; display: grid; gap: 0.35rem; }
.crm-info-row {
	display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.45rem 0.65rem;
	align-items: baseline; font-size: 0.9rem;
	padding: 0.28rem 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.crm-info-row:last-child { border-bottom: 0; }
.crm-info-row dt { margin: 0; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.crm-info-row dd { margin: 0; word-break: break-word; }
.crm-info-form .crm-info-edit { display: grid; gap: 0.25rem; margin-bottom: 0.55rem; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.crm-info-actions { margin: 0.85rem 0 0; }
.crm-stripe-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0 0.5rem; }
.crm-stripe-status.is-missing { border-color: rgba(255,175,39,0.5); }
.crm-stripe-status.is-linked { border-color: rgba(141,255,176,0.35); }
.crm-stripe-status.is-warn { border-color: rgba(255,175,39,0.45); }
.crm-stripe-banner { margin: 0.35rem 0 0; line-height: 1.45; }
.crm-stripe-banner code { font-size: 0.9em; }
.crm-pay-badge {
	display: inline-block;
	margin-left: 0.35rem;
	padding: 0.08rem 0.4rem;
	border-radius: 4px;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	vertical-align: middle;
	white-space: nowrap;
}
.crm-pay-badge.is-paying {
	background: rgba(141, 255, 176, 0.18);
	color: #8dffb0;
	border: 1px solid rgba(141, 255, 176, 0.35);
}
.crm-pay-badge.is-trial {
	background: rgba(120, 180, 255, 0.15);
	color: #9bc4ff;
	border: 1px solid rgba(120, 180, 255, 0.35);
}
.crm-pay-badge.is-none {
	background: rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.12);
	font-weight: 500;
}
.crm-value-chip {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.35rem 0.75rem;
	margin: 0.65rem 0 0.25rem;
	padding: 0.55rem 0.75rem;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.03);
	max-width: 32rem;
}
.crm-value-chip.is-paying { border-color: rgba(141, 255, 176, 0.35); }
.crm-value-chip.is-trial { border-color: rgba(120, 180, 255, 0.35); }
.crm-value-chip.is-none { border-color: rgba(255, 255, 255, 0.1); opacity: 0.9; }
.crm-value-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.75; }
.crm-value-mrr { font-variant-numeric: tabular-nums; color: #8dffb0; }
.crm-value-inline { margin: 0.5rem 0 0; }
.stats-grid {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 0.75rem; margin: 0 0 1.25rem;
}
.stats-grid .stat {
	background: rgba(255,255,255,0.06); border: 1px solid var(--line);
	border-radius: 0.75rem; padding: 0.85rem 1rem;
}
.stats-grid .stat span {
	display: block; font-family: var(--font-display); font-size: 1.45rem; color: var(--wm-yellow);
}
.stats-grid .stat label { font-size: 0.75rem; color: var(--muted); }
.aff-tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 1rem; }
.aff-tabs a {
	padding: 0.45rem 0.85rem; border-radius: 999px; border: 1px solid var(--line);
	text-decoration: none; font-size: 0.85rem; font-weight: 600; color: var(--muted);
}
.aff-tabs a.is-active {
	background: rgba(255,175,39,0.18); border-color: rgba(255,175,39,0.45); color: var(--wm-yellow);
}
.crm-grid-overview { grid-template-columns: minmax(220px, 0.95fr) minmax(280px, 1.4fr) minmax(200px, 0.85fr); }
@media (max-width: 960px) {
	.crm-info-row { grid-template-columns: 1fr; }
}
.crm-stat-row {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin: 0.5rem 0 0.75rem;
}
.crm-stat {
	text-align: center; padding: 0.65rem 0.35rem; border-radius: 0.55rem;
	background: rgba(0,0,0,0.18); border: 1px solid var(--line);
}
.crm-stat span { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--wm-yellow); }
.crm-stat label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.crm-entity { padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.crm-entity:last-child { border-bottom: 0; }
.crm-more { margin-top: 1rem; }
.crm-attr-list { display: grid; gap: 0.35rem; margin-top: 0.5rem; }
.crm-attr-row { display: grid; grid-template-columns: 12ch 1fr; gap: 0.5rem; font-size: 0.88rem; }
.crm-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.crm-timeline-item {
	display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.65rem;
	padding: 0.75rem 0; position: relative;
}
.crm-timeline-item::before {
	content: ""; position: absolute; left: 0.4rem; top: 1.35rem; bottom: -0.1rem;
	width: 2px; background: var(--line);
}
.crm-timeline-item:last-child::before { display: none; }
.crm-timeline-dot {
	width: 0.7rem; height: 0.7rem; border-radius: 50%; margin-top: 0.25rem;
	background: var(--wm-yellow); box-shadow: 0 0 0 3px rgba(255,175,39,0.2);
}
.crm-timeline-meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.55rem;
	margin-bottom: 0.2rem;
}
.crm-timeline-actor {
	display: inline-flex; align-items: center;
	padding: 0.12rem 0.5rem; border-radius: 999px;
	font-size: 0.72rem; font-weight: 700;
	color: var(--wm-yellow);
	background: rgba(255, 175, 39, 0.12);
	border: 1px solid rgba(255, 175, 39, 0.35);
}
@media (max-width: 960px) {
	.crm-grid { grid-template-columns: 1fr; }
	.crm-stat-row { grid-template-columns: repeat(2, 1fr); }
	.crm-attr-row { grid-template-columns: 1fr; }
}

main { padding: 1.5rem; max-width: 1100px; margin: 0 auto; }
.crm-profile-head ~ .crm-profile-tabs,
.crm-grid { max-width: 1200px; }
main:has(.crm-grid) { max-width: 1200px; }
.site-foot {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.55rem;
	padding: 2rem 1.5rem 2.25rem; color: var(--muted); font-size: 0.85rem;
}
.foot-logo {
	display: block;
	line-height: 0;
	text-decoration: none;
	margin-bottom: 0.15rem;
	border-radius: 50%;
	overflow: hidden;
	width: 52px;
	height: 52px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}
.foot-mark {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}
.hero-app {
	padding: 0.5rem 0 1.5rem;
	display: flex; flex-wrap: wrap; gap: 1rem;
	align-items: flex-start; justify-content: space-between;
}
.hero-app > div { flex: 1; min-width: 16rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; color: var(--wm-yellow); margin: 0 0 0.5rem; }
h1 { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1; margin: 0 0 0.75rem; color: var(--wm-white); }
.brand-hero { font-size: clamp(2.6rem, 8vw, 5rem); max-width: 12ch; }
.lede { max-width: 42ch; font-size: 1.1rem; margin: 0 0 1.25rem; color: var(--muted); }
.muted { color: var(--muted); }
.tiny { font-size: 0.8rem; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.btn,
a.btn,
.top nav a.btn,
button.btn {
	display: inline-block; background: var(--wm-yellow); color: var(--wm-green);
	text-decoration: none; border: 0; cursor: pointer;
	font: inherit; font-weight: 700; padding: 0.8rem 1.15rem; border-radius: 0.4rem;
	transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover,
a.btn:hover,
.top nav a.btn:hover,
button.btn:hover { transform: translateY(-1px); filter: brightness(1.05); color: var(--wm-green); }
.btn.secondary {
	background: transparent; color: var(--wm-white);
	border: 1px solid rgba(255,255,255,0.35);
}
a.btn.btn-new,
.btn-new {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
	line-height: 1.2;
}
.btn-new .btn-ico {
	width: 1.05rem; height: 1.05rem; flex-shrink: 0;
	transform-origin: center;
}
.btn-new:hover .btn-ico { animation: ico-spark 0.55s ease; }
@keyframes ico-spark {
	0% { transform: scale(1) rotate(0deg); }
	40% { transform: scale(1.18) rotate(-12deg); }
	100% { transform: scale(1) rotate(0deg); }
}
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0 1.5rem; }
.inline-form { display: inline; margin-right: 0.4rem; }

.panel {
	background: rgba(255,255,255,0.08);
	border: 1px solid var(--line);
	border-radius: 1.1rem;
	padding: 1.25rem;
	backdrop-filter: blur(8px);
}
.panel.narrow { max-width: 560px; }
.crm-new-contact { margin-bottom: 1rem; }
.crm-new-contact summary {
	cursor: pointer; font-weight: 700; color: var(--wm-yellow); margin-bottom: 0.75rem;
}
.crm-list-fieldset {
	border: 1px solid var(--line); border-radius: 0.7rem; padding: 0.75rem 1rem;
	grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.55rem 1rem; align-items: center;
}
.crm-list-fieldset legend { padding: 0 0.35rem; font-weight: 700; font-size: 0.9rem; }
.detail-panel { animation: rise 0.45s ease both; }
.status-hero {
	display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem;
	padding: 0.85rem 1rem; border-radius: 0.85rem; margin-bottom: 0.85rem;
	border: 1px solid var(--line); background: rgba(0,0,0,0.18);
}
.status-hero .pill { font-size: 0.9rem; padding: 0.35rem 0.75rem; }
.status-hint { margin: 0; color: rgba(255,255,255,0.88); font-size: 0.95rem; flex: 1; min-width: 16ch; }
.status-hero.tone-hot { border-color: rgba(255,175,39,0.55); background: rgba(255,175,39,0.14); }
.status-hero.tone-warm { border-color: rgba(255,175,39,0.4); background: rgba(255,175,39,0.1); }
.status-hero.tone-ok { border-color: rgba(255,255,255,0.22); }
.status-hero.tone-ready { border-color: rgba(255,175,39,0.35); }
.status-hero.tone-bad { border-color: rgba(255,107,107,0.45); background: rgba(255,107,107,0.1); }
.status-hero.tone-live { border-color: rgba(255,255,255,0.28); }
.status-flow {
	list-style: none; margin: 0 0 1rem; padding: 0;
	display: flex; flex-wrap: wrap; gap: 0.35rem;
}
.flow-step {
	font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
	padding: 0.35rem 0.55rem; border-radius: 999px;
	border: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.45);
}
.flow-step.done { color: rgba(255,255,255,0.85); border-color: rgba(255,175,39,0.35); background: rgba(255,175,39,0.1); }
.flow-step.current {
	color: var(--wm-green); background: var(--wm-yellow); border-color: var(--wm-yellow);
}
.status-banner {
	display: grid; gap: 0.2rem; padding: 0.75rem 0.9rem; border-radius: 0.7rem;
	margin-bottom: 1rem; border: 1px solid var(--line);
}
.status-banner strong { color: var(--wm-yellow); }
.status-banner.mailed { background: rgba(0,0,0,0.22); }
.status-banner.ready-mail { background: rgba(255,175,39,0.12); border-color: rgba(255,175,39,0.35); }
.mail-box {
	margin: 1rem 0 1.25rem; padding: 1rem; border-radius: 0.85rem;
	border: 1px solid var(--line); background: rgba(0,0,0,0.16);
}
.mail-box h2 { margin: 0 0 0.65rem; font-size: 1.05rem; color: var(--wm-white); }
.mail-actions { margin-bottom: 0.55rem; }
.mail-locked { margin: 0 0 0.55rem; }
.crm-fold {
	border: 1px solid var(--line); border-radius: 0.7rem; padding: 0.75rem 0.9rem;
	background: rgba(0,0,0,0.16);
}
.crm-fold summary {
	cursor: pointer; font-weight: 700; color: var(--wm-yellow); margin-bottom: 0.55rem;
}
.crm-fold[open] summary { margin-bottom: 0.75rem; }
.crm-fold .form, .crm-fold label { margin-top: 0.55rem; }
.form textarea {
	font: inherit; padding: 0.7rem 0.8rem; border-radius: 0.45rem;
	border: 1px solid var(--line); background: rgba(255,255,255,0.95); color: var(--wm-green);
	resize: vertical; min-height: 4.5rem;
}
.crm-box .pill { margin: 0.35rem 0 0.75rem; }

.stats {
	display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.75rem; margin-bottom: 1.5rem;
}
.stat {
	background: rgba(255,255,255,0.08); border: 1px solid var(--line); border-radius: 0.9rem;
	padding: 0.9rem 1rem;
}
.stat span { display: block; font-family: var(--font-display); font-size: 1.8rem; line-height: 1; color: var(--wm-white); }
.stat label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.stat.hot span { color: var(--wm-yellow); }
.stat.warn span { color: #ff8f8f; }

.project-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem;
}
.project-card {
	background: rgba(255,255,255,0.08); border: 1px solid var(--line); border-radius: 1rem;
	padding: 1rem; display: flex; flex-direction: column; gap: 0.35rem;
	transition: transform 0.18s ease, border-color 0.18s ease;
}
.project-card:hover { transform: translateY(-2px); border-color: rgba(255,175,39,0.45); }
.project-card h2 { font-family: var(--font-display); font-size: 1.35rem; margin: 0.2rem 0; line-height: 1.15; color: var(--wm-white); }
.project-card h2 a { text-decoration: none; }
.project-card-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.project-card-actions { display: flex; gap: 0.8rem; margin-top: 0.6rem; font-weight: 600; font-size: 0.9rem; }
.project-card-actions a { color: var(--wm-yellow); }
.meta-line { margin: 0.45rem 0 0; font-size: 0.82rem; color: var(--muted); }
.team-tag {
	display: inline-block; color: var(--wm-yellow); font-weight: 600;
}
.stats-panel { margin-bottom: 1.25rem; }
.stats-panel h2 { font-family: var(--font-display); color: var(--wm-white); margin: 0 0 0.75rem; }
.table-wrap { overflow-x: auto; }
.stats-table {
	width: 100%; border-collapse: collapse; font-size: 0.92rem;
}
.stats-table th, .stats-table td {
	text-align: left; padding: 0.65rem 0.55rem;
	border-bottom: 1px solid var(--line); vertical-align: top;
}
.stats-table th { color: var(--wm-yellow); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
.stats-table .rank { width: 2rem; color: var(--wm-yellow); font-weight: 700; }

.hero-app-compact {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: end;
}
.filters-bar {
	display: grid; gap: 0.75rem; margin-bottom: 1rem;
	grid-template-columns: 1fr;
}
@media (min-width: 900px) {
	.filters-bar {
		grid-template-columns: 1.6fr 0.9fr 0.9fr 0.9fr auto;
		align-items: end;
	}
}
.filters-bar label { display: grid; gap: 0.3rem; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.filters-bar input, .filters-bar select {
	font: inherit; padding: 0.55rem 0.65rem; border-radius: 0.45rem;
	border: 1px solid var(--line); background: rgba(255,255,255,0.95); color: var(--wm-green);
}
.filter-actions { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.leads-table-panel { padding-top: 0.85rem; }
.table-meta { display: flex; justify-content: space-between; margin-bottom: 0.55rem; color: var(--muted); font-size: 0.85rem; }
.leads-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.leads-table th, .leads-table td {
	text-align: left; padding: 0.7rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top;
}
.leads-table th {
	color: var(--wm-yellow); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.leads-table .row-title { color: var(--wm-white); font-weight: 700; text-decoration: none; }
.leads-table .row-title:hover { color: var(--wm-yellow); }
.leads-table .row-actions { display: flex; gap: 0.55rem; white-space: nowrap; }
.leads-table .row-actions a { color: var(--wm-yellow); font-size: 0.85rem; }
.leads-table .empty-cell { padding: 1.5rem 0.5rem; color: var(--muted); }
.leads-table .nowrap { white-space: nowrap; }
.pager { display: flex; gap: 0.55rem; margin-top: 1rem; }
@media (max-width: 839px) {
	.hide-sm { display: none; }
}

.dup-dialog {
	border: 0; padding: 0; border-radius: 1rem; background: transparent;
	max-width: min(520px, 94vw);
}
.dup-dialog::backdrop { background: rgba(4, 24, 23, 0.72); }
.dup-card {
	margin: 0; padding: 1.25rem 1.35rem 1.15rem;
	background: #0e4644; color: var(--wm-white);
	border: 1px solid rgba(255,255,255,0.16); border-radius: 1rem;
	box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.dup-card h2 { font-family: var(--font-display); margin: 0 0 0.55rem; font-size: 1.45rem; }
.dup-list { list-style: none; margin: 0.85rem 0 1rem; padding: 0; display: grid; gap: 0.55rem; }
.dup-list li {
	padding: 0.55rem 0.65rem; border-radius: 0.55rem;
	background: rgba(0,0,0,0.22); border: 1px solid rgba(255,255,255,0.1);
	display: grid; gap: 0.2rem;
}
.dup-list a { color: var(--wm-yellow); }
.dup-actions { display: flex; gap: 0.55rem; flex-wrap: wrap; justify-content: flex-end; }
.project-card.is-live { border-color: rgba(255,175,39,0.5); }

.empty-state {
	grid-column: 1 / -1; text-align: center; padding: 3rem 1rem;
	border: 1px dashed var(--line); border-radius: 1rem; background: rgba(255,255,255,0.05);
}

.pill {
	display: inline-block; padding: 0.2rem 0.55rem; border-radius: 999px;
	background: rgba(255,175,39,0.2); color: var(--wm-yellow); font-size: 0.8rem; font-weight: 600;
}
.status-failed, .status-hold { background: rgba(255,107,107,0.2); color: #ffb4b4; }
.status-sent, .status-opened, .status-clicked, .status-ready {
	background: rgba(255,175,39,0.22); color: var(--wm-yellow);
}
.status-queued, .status-capturing, .status-extracting, .status-redesigning, .status-rendering, .status-sending {
	background: rgba(255,255,255,0.12); color: var(--wm-white);
}

.form { display: grid; gap: 0.9rem; }
.form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.92rem; color: var(--wm-white); }
.form input, .form select {
	font: inherit; padding: 0.7rem 0.8rem; border-radius: 0.45rem;
	border: 1px solid var(--line); background: rgba(255,255,255,0.95); color: var(--wm-green);
}
.form .check { display: flex; gap: 0.55rem; align-items: flex-start; font-weight: 500; color: var(--muted); }
.form .check.is-disabled { opacity: 0.45; pointer-events: none; }
.form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 820px) {
	.form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
}
.inline-form {
	display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center;
}
.inline-form select,
.inline-form input[type="text"] {
	font: inherit; padding: 0.35rem 0.5rem; border-radius: 0.35rem;
	border: 1px solid var(--line); background: rgba(255,255,255,0.95); color: var(--wm-green);
}
.user-edit-form input[name="name"] { min-width: 12rem; font-weight: 600; }
.user-edit-form input[name="email"] { min-width: 14rem; }
.user-edit-form input[name="password"] { min-width: 12rem; }
.inline-form input[type="email"],
.inline-form input[type="password"] {
	font: inherit; padding: 0.35rem 0.5rem; border-radius: 0.35rem;
	border: 1px solid var(--line); background: rgba(255,255,255,0.95); color: var(--wm-green);
}
.inline-check { display: inline-flex !important; align-items: center; gap: 0.35rem; font-size: 0.85rem; margin: 0; }
.btn.small { padding: 0.35rem 0.7rem; font-size: 0.85rem; }
.btn.danger-ish {
	border-color: rgba(255, 140, 140, 0.45);
	color: #ffc9c9;
	background: rgba(120, 30, 30, 0.35);
}
tr.is-muted { opacity: 0.55; }
.error { color: #ffb4b4; font-weight: 600; }

.compare {
	display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0 1.5rem;
}
.compare img {
	width: 100%; border-radius: 0.75rem; border: 1px solid var(--line);
	background: #083533; min-height: 160px; object-fit: cover; object-position: top;
}
.compare figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.35rem; }

.preview-fold { margin: 1rem 0 1.5rem; }
.preview-fold summary { cursor: pointer; font-weight: 700; margin-bottom: 0.6rem; color: var(--wm-yellow); }
.redesign-frame {
	width: 100%; min-height: 520px; border: 1px solid var(--line); border-radius: 0.75rem; background: #fff;
}

.live-bar {
	display: flex; align-items: center; gap: 0.55rem;
	background: rgba(255,175,39,0.12); border: 1px solid rgba(255,175,39,0.35); border-radius: 0.7rem;
	padding: 0.7rem 0.9rem; margin-bottom: 1rem; font-weight: 600; font-size: 0.92rem; color: var(--wm-white);
}
.pulse {
	width: 10px; height: 10px; border-radius: 50%; background: var(--wm-yellow);
	box-shadow: 0 0 0 0 rgba(255,175,39,0.5);
	animation: pulse 1.4s infinite;
}

.events { padding-left: 1.1rem; color: var(--muted); }
.events li { margin-bottom: 0.35rem; }
.events strong { color: var(--wm-white); }

.pitch-hero { padding: 1rem 0 1.25rem; }
.slider-section { margin-bottom: 1.5rem; }
.slider-hint { margin: 0.5rem 0 0; }
.ba {
	position: relative; width: 100%; aspect-ratio: 16/10;
	overflow: hidden; border-radius: 1.1rem; border: 1px solid var(--line);
	background: #083533; user-select: none;
	box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ba-before-wrap { position: absolute; inset: 0 auto 0 0; width: 50%; overflow: hidden; border-right: 2px solid var(--wm-yellow); }
.ba-range {
	position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
	opacity: 0; cursor: ew-resize; z-index: 5;
}
.ba-handle {
	position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--wm-yellow); z-index: 4;
}
.ba-handle::after {
	content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	width: 36px; height: 36px; border-radius: 50%; background: var(--wm-yellow);
	box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.ba-tag {
	position: absolute; top: 0.75rem; z-index: 3;
	background: rgba(14,70,68,0.85); color: var(--wm-white); padding: 0.25rem 0.55rem;
	border-radius: 999px; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase;
	border: 1px solid rgba(255,175,39,0.4);
}
.ba-tag.left { left: 0.75rem; }
.ba-tag.right { right: 0.75rem; }

.reel-embed {
	width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 0.75rem;
	margin-bottom: 1.25rem; background: #083533;
}
.pitch-cta { max-width: 980px; margin-inline: auto; }
.pitch-cta h2, .thanks-panel h1 { font-family: var(--font-display); color: var(--wm-white); }
.pitch-cta h2 { font-size: clamp(1.55rem, 3.2vw, 2.15rem); line-height: 1.15; margin: 0 0 0.75rem; max-width: 22ch; }
.pitch-cta-lead { margin: 0 0 1rem; color: rgba(255,255,255,0.88); max-width: 42ch; line-height: 1.55; }
.pitch-cta-grid {
	display: grid; gap: 1.35rem; align-items: stretch;
}
@media (min-width: 840px) {
	.pitch-cta-grid { grid-template-columns: 1.05fr 0.95fr; gap: 1.75rem; align-items: start; }
}
.pitch-triggers {
	list-style: none; margin: 0 0 1.15rem; padding: 0; display: grid; gap: 0.45rem;
}
.pitch-triggers li {
	position: relative; padding-left: 1.15rem; color: rgba(255,255,255,0.86); font-size: 0.95rem; line-height: 1.4;
}
.pitch-triggers li::before {
	content: ""; position: absolute; left: 0; top: 0.55em;
	width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--wm-yellow);
}
.pitch-cta-copy .btn { width: 100%; text-align: center; }
.pitch-cta-visual {
	margin: 0; border-radius: 1rem; overflow: hidden;
	border: 1px solid rgba(255,255,255,0.14);
	background: #083533;
	box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}
.pitch-cta-visual img {
	display: block; width: 100%; height: 100%; min-height: 280px;
	object-fit: cover; object-position: center 30%;
	aspect-ratio: 4/5;
}
.pitch-cta-visual figcaption {
	margin: 0; padding: 0.7rem 0.9rem;
	font-size: 0.8rem; color: rgba(255,255,255,0.72);
	border-top: 1px solid rgba(255,255,255,0.1);
	background: rgba(0,0,0,0.22);
}
@media (min-width: 840px) {
	.pitch-cta-visual img { min-height: 420px; aspect-ratio: auto; max-height: 560px; }
}

.landing {
	position: relative; min-height: calc(100vh - 6rem);
	display: flex; flex-direction: column; justify-content: center;
	padding: 2rem 0 3rem; overflow: hidden;
}
.landing-glow {
	position: absolute; inset: -20% auto auto -10%; width: 70vw; height: 70vw;
	background: radial-gradient(circle, rgba(255,175,39,0.2), transparent 60%);
	pointer-events: none;
}
.landing-wordmark {
	display: block; width: min(420px, 88vw); height: auto; margin: 0 0 1.25rem;
}
.login-wordmark {
	display: block; width: min(280px, 100%); height: auto; margin: 0 0 1rem;
}
.landing-slogan {
	margin: 0 0 1rem; color: var(--wm-yellow); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.01em;
}
.landing-lede { max-width: 34ch; font-size: 1.2rem; margin-bottom: 1.5rem; color: var(--muted); }
.landing-cta { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.landing-notice { margin: 0; max-width: 36ch; opacity: 0.75; }
.landing-steps {
	list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; max-width: 420px;
}
.landing-steps li {
	display: flex; gap: 0.8rem; align-items: baseline;
	padding: 0.75rem 0.9rem; border-radius: 0.7rem;
	background: rgba(255,255,255,0.08); border: 1px solid var(--line); color: var(--wm-white);
}
.landing-steps strong { font-family: var(--font-display); color: var(--wm-yellow); }

.login-shell { min-height: calc(100vh - 6rem); display: grid; place-items: center; }
.login-card {
	width: min(420px, 100%); background: rgba(255,255,255,0.08);
	border: 1px solid var(--line); border-radius: 1.1rem; padding: 1.5rem;
	backdrop-filter: blur(8px);
}

.wrap { max-width: 900px; margin: 0 auto; padding: 1.5rem; }
.recorder-frame iframe {
	width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 0.75rem; background: #000;
}

.reveal { opacity: 0; transform: translateY(12px); }
.reveal.in { animation: rise 0.55s ease forwards; }

@keyframes rise {
	from { opacity: 0; transform: translateY(14px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
	0% { box-shadow: 0 0 0 0 rgba(255,175,39,0.5); }
	70% { box-shadow: 0 0 0 12px rgba(255,175,39,0); }
	100% { box-shadow: 0 0 0 0 rgba(255,175,39,0); }
}

@media (max-width: 900px) {
	.stats { grid-template-columns: repeat(2, 1fr); }
	.top.public { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 960px) {
	.nav-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
	.top { flex-wrap: wrap; }
	.app-nav {
		display: none; width: 100%; flex-direction: column; align-items: stretch;
		padding: 0.5rem 0 0.25rem; gap: 0.15rem;
	}
	.app-nav.is-open { display: flex; }
	.app-nav > a, .app-nav .nav-drop-btn {
		width: 100%; padding: 0.7rem 0.35rem; border-bottom: 1px solid var(--line);
		justify-content: space-between;
	}
	.app-nav > a.is-active, .app-nav .nav-drop-btn.is-active { border-bottom-color: var(--wm-yellow); }
	.nav-drop { width: 100%; }
	.nav-drop:hover .nav-drop-menu { display: none; }
	.nav-drop.is-open .nav-drop-menu,
	.nav-drop:focus-within .nav-drop-menu { display: block; }
	.nav-drop-menu {
		position: static; box-shadow: none; margin: 0.15rem 0 0.35rem; width: 100%;
		background: rgba(0,0,0,0.2);
	}
	.app-nav .btn-new { margin-top: 0.5rem; justify-content: center; width: 100%; }
	.hide-sm { display: none !important; }
	.kv { grid-template-columns: 1fr; }
	main { padding: 1rem; }
}
@media (max-width: 800px) {
	.compare { grid-template-columns: 1fr; }
}

/* ——— CRM Trechter ——— */
.crm-subnav { margin-bottom: 1rem; }
.crm-funnel-chip { margin: 0.45rem 0 0; font-size: 0.85rem; }
.crm-funnel-chip a { color: var(--wm-yellow); }
.crm-health-banner {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 0.75rem 1.25rem; margin: 0 0 1.5rem; padding: 0.95rem 1.1rem;
}
.crm-funnel-preview { margin: 0 0 1.5rem; }
.crm-funnel-priors {
	display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem;
	margin: 0 0 0.75rem;
}
.crm-funnel-prior {
	display: inline-flex; align-items: center;
	padding: 0.15rem 0.5rem; border-radius: 999px;
	font-size: 0.72rem; font-weight: 600;
	background: rgba(255,255,255,0.06); border: 1px solid var(--line);
	color: var(--muted);
}
.crm-funnel-prior.is-done {
	color: #8dffb0;
	border-color: rgba(141, 255, 176, 0.35);
	background: rgba(141, 255, 176, 0.08);
}
.crm-funnel-checks {
	list-style: none; margin: 0; padding: 0;
	display: grid; gap: 0.25rem;
}
.crm-funnel-checks li a {
	display: flex; align-items: flex-start; gap: 0.55rem;
	padding: 0.4rem 0.5rem; border-radius: 0.45rem;
	text-decoration: none; color: var(--wm-white);
	font-size: 0.9rem;
}
.crm-funnel-checks li a:hover {
	background: rgba(255, 175, 39, 0.1);
	color: var(--wm-yellow);
}
.crm-funnel-checks li.is-done a { color: rgba(255,255,255,0.72); }
.crm-funnel-checks li.is-done .crm-funnel-check-mark { color: #8dffb0; }
.crm-funnel-checks li.is-todo .crm-funnel-check-mark { color: var(--wm-yellow); opacity: 0.85; }
.crm-funnel-check-mark {
	flex: 0 0 1.1rem; text-align: center; font-weight: 700; line-height: 1.35;
}
.crm-funnel-hint { margin: 0.65rem 0 0; }
.crm-health-banner.is-ready { border-color: rgba(141,255,176,0.35); }
.crm-health-banner.is-warn { border-color: rgba(255,175,39,0.45); }
.crm-health-banner.is-bad { border-color: rgba(255,100,100,0.45); }
.crm-health-copy { display: grid; gap: 0.15rem; }
.funnel-health { display: inline-flex; align-items: center; gap: 0.4rem; min-width: 5.5rem; }
.funnel-health-pct { font-size: 0.72rem; font-weight: 700; min-width: 2.2rem; }
.funnel-health-track {
	flex: 1; height: 0.35rem; border-radius: 999px; background: rgba(255,255,255,0.12); overflow: hidden;
}
/* Profiel: langere compleetheidsbalk */
.crm-health-banner .funnel-health {
	flex: 1 1 14rem;
	min-width: min(100%, 16rem);
	max-width: 28rem;
	gap: 0.55rem;
}
.crm-health-banner .funnel-health-pct {
	font-size: 0.9rem;
	min-width: 2.8rem;
}
.crm-health-banner .funnel-health-track {
	height: 0.55rem;
	min-width: 12rem;
}
.funnel-health-fill { display: block; height: 100%; border-radius: inherit; background: var(--wm-yellow); }
.funnel-health.is-ready .funnel-health-fill { background: #8dffb0; }
.funnel-health.is-bad .funnel-health-fill { background: var(--danger, #ff6b6b); }
.funnel-board {
	display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr));
	gap: 0.75rem; overflow-x: auto; padding-bottom: 1rem; align-items: start;
}
.funnel-col {
	background: rgba(0,0,0,0.22); border: 1px solid var(--line); border-radius: 0.85rem;
	min-height: 18rem; display: flex; flex-direction: column;
}
.funnel-col-head {
	display: flex; justify-content: space-between; align-items: baseline;
	padding: 0.7rem 0.75rem 0.45rem; border-bottom: 1px solid var(--line);
}
.funnel-col-head h2 { margin: 0; font-size: 0.92rem; }
.funnel-col-count {
	font-size: 0.75rem; color: var(--muted); background: rgba(255,255,255,0.06);
	padding: 0.1rem 0.45rem; border-radius: 999px;
}
.funnel-col-body { padding: 0.55rem; display: grid; gap: 0.45rem; min-height: 12rem; flex: 1; }
.funnel-col-body.is-drop { outline: 2px dashed var(--wm-yellow); outline-offset: -4px; }
.funnel-empty { margin: 0.5rem; text-align: center; }
.funnel-card {
	background: rgba(255,255,255,0.07); border: 1px solid var(--line); border-radius: 0.65rem;
	padding: 0.65rem 0.7rem; cursor: grab; display: grid; gap: 0.25rem;
}
.funnel-card.is-dragging { opacity: 0.45; }
.funnel-card-top { display: flex; justify-content: space-between; gap: 0.4rem; align-items: flex-start; }
.funnel-card-name { font-size: 0.92rem; }
.funnel-card-meta { display: flex; justify-content: space-between; gap: 0.5rem; margin-top: 0.25rem; }
.funnel-backdrop {
	position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 80;
}
.funnel-backdrop.is-open { display: block; }
.funnel-drawer {
	position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw);
	background: #0a3533; border-left: 1px solid var(--line); z-index: 90;
	padding: 1rem 1.1rem 2rem; overflow-y: auto; transform: translateX(100%);
	transition: transform 0.2s ease;
}
.funnel-drawer.is-open { transform: translateX(0); }
.funnel-drawer-head { display: flex; justify-content: space-between; gap: 0.75rem; align-items: flex-start; margin-bottom: 0.85rem; }
.funnel-drawer-head h2 { margin: 0.15rem 0; font-size: 1.35rem; }
.funnel-drawer-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1rem; align-items: center; }
.funnel-drawer-actions select {
	font: inherit; padding: 0.45rem 0.55rem; border-radius: 0.45rem;
	border: 1px solid var(--line); background: rgba(0,0,0,0.25); color: var(--wm-white);
}
.funnel-check-group { margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--line); }
.funnel-check-group h3 { margin: 0 0 0.45rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.funnel-check-group.is-current h3 { color: var(--wm-yellow); }
.funnel-check { display: flex; gap: 0.55rem; align-items: flex-start; margin: 0.35rem 0; font-size: 0.9rem; cursor: pointer; }
.funnel-check input[type="checkbox"] { margin-top: 0.2rem; }
.funnel-check-text { flex-direction: column; gap: 0.3rem; }
.funnel-check-text input[type="text"] {
	font: inherit; padding: 0.45rem 0.55rem; border-radius: 0.4rem;
	border: 1px solid var(--line); background: rgba(255,255,255,0.95); color: var(--wm-green); width: 100%;
}
.tiny-btn { font-size: 0.78rem; padding: 0.3rem 0.55rem; min-height: auto; }
@media (max-width: 1100px) {
	.funnel-board { grid-template-columns: repeat(5, minmax(180px, 1fr)); }
}
