/* HD Engage CRM — app styles. Everything is scoped under .hdcrm-root / .hdcrm-page / .hdcrm-ov
   so nothing leaks into wp-admin or the theme. */

@font-face {
	font-family: "HD Engage Lexend";
	src: url("../fonts/lexend-latin.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}

.hdcrm-root,
.hdcrm-page,
.hdcrm-ov {
	--n9: #001b44;
	--n8: #0b2a5b;
	--n7: #173a70;
	--blue: #136fa5;
	--blue-d: #105378;
	--sky: #03a9f4;
	--ice: #b3e0f2;
	--teal: #127f86;
	--aqua: #3ecfb2;
	--coral: #ff6b4a;
	--ember: #e14b2a;
	--gold: #a8870f;
	--plum: #8a63d2;
	--rose: #c4467f;
	--green: #2e7d32;
	--ink: #1f2533;
	--slate: #5a6172;
	--mute: #8a919f;
	--line: #e1e7ee;
	--line2: #eef2f6;
	--mist: #f3f6f9;
	--paper: #fff;
	--tint: #eaf3f9;
	--r-lg: 16px;
	--r: 10px;
	--r-sm: 7px;
	--shadow: 0 1px 2px rgba(0, 27, 68, .06), 0 8px 24px rgba(0, 27, 68, .08);
	--shadow-lg: 0 2px 6px rgba(0, 27, 68, .08), 0 24px 60px rgba(0, 27, 68, .22);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--font: "HD Engage Lexend", Lexend, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-family: var(--font);
	font-size: 14px;
	line-height: 1.45;
	color: var(--ink);
	-webkit-font-smoothing: antialiased;
}

.hdcrm-root *,
.hdcrm-ov *,
.hdcrm-page * {
	box-sizing: border-box;
}

.hdcrm-root :where(h1, h2, h3, h4, p, ul, ol, figure),
.hdcrm-ov :where(h1, h2, h3, h4, p, ul, ol, figure) {
	margin: 0;
	padding: 0;
}

.hdcrm-root :where(ul, ol),
.hdcrm-ov :where(ul, ol) {
	list-style: none;
}

.hdcrm-root :where(button, input, select, textarea),
.hdcrm-ov :where(button, input, select, textarea) {
	font: inherit;
	color: inherit;
}

.hdcrm-root :where(a),
.hdcrm-ov :where(a) {
	color: var(--blue);
	text-decoration: none;
}

.hdcrm-root :where(a:hover),
.hdcrm-ov :where(a:hover) {
	color: var(--blue-d);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.hdcrm-root :focus-visible,
.hdcrm-ov :focus-visible {
	outline: 2px solid var(--sky);
	outline-offset: 2px;
	border-radius: 6px;
}

.hdcrm-num {
	font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ page shells */

body.hdcrm-page {
	margin: 0;
	background: var(--mist);
	min-height: 100vh;
}

body.hdcrm-page--workspace {
	overflow: hidden;
}

.hdcrm-root--workspace {
	position: fixed;
	inset: 0;
}

/* Inside wp-admin: fill the content area under the admin bar, and hide WordPress' footer. */
body.hdcrm-admin #wpcontent {
	padding-left: 0;
}

body.hdcrm-admin #wpbody-content {
	padding-bottom: 0;
}

body.hdcrm-admin #wpfooter,
body.hdcrm-admin .notice,
body.hdcrm-admin .update-nag,
body.hdcrm-admin #screen-meta-links {
	display: none !important;
}

.hdcrm-root--admin {
	position: relative;
	height: calc(100vh - 32px);
	background: var(--mist);
}

@media (max-width: 782px) {
	.hdcrm-root--admin {
		height: calc(100vh - 46px);
	}
}

.hdcrm-boot {
	display: grid;
	place-items: center;
	align-content: center;
	gap: 14px;
	height: 100%;
	color: var(--slate);
}

.hdcrm-boot__mark {
	width: 44px;
	height: 44px;
	border-radius: 14px;
	background: var(--n9);
	position: relative;
	overflow: hidden;
}

.hdcrm-boot__mark::after {
	content: "";
	position: absolute;
	inset: auto 8px 10px;
	height: 14px;
	background: linear-gradient(90deg, var(--sky), var(--aqua));
	clip-path: polygon(0 100%, 30% 20%, 50% 60%, 72% 0, 100% 100%);
	animation: hdcrm-pulse 1.4s ease-in-out infinite;
}

@keyframes hdcrm-pulse {
	50% {
		opacity: .45;
	}
}

/* ------------------------------------------------------------------ app frame */

.hdcrm-app {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	grid-template-rows: 58px minmax(0, 1fr);
	height: 100%;
	background: var(--mist);
}

.hdcrm-rail {
	grid-row: 1 / 3;
	background: var(--n9);
	color: #c9dbef;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	padding: 12px 8px;
	gap: 2px;
	overflow-y: auto;
	scrollbar-width: none;
}

.hdcrm-rail__brand {
	display: grid;
	place-items: center;
	height: 42px;
	margin-bottom: 10px;
}

.hdcrm-rail__brand svg {
	width: 34px;
	height: 34px;
}

.hdcrm-rail a {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	padding: 9px 2px 8px;
	border-radius: 12px;
	color: #a9c1dc;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .01em;
	text-decoration: none;
	transition: background .18s, color .18s;
}

.hdcrm-rail a svg {
	width: 21px;
	height: 21px;
}

.hdcrm-rail a:hover {
	color: #fff;
	background: rgba(255, 255, 255, .07);
	text-decoration: none;
}

.hdcrm-rail a.is-on {
	color: #fff;
	background: rgba(3, 169, 244, .16);
}

.hdcrm-rail a.is-on::before {
	content: "";
	position: absolute;
	left: -8px;
	top: 12px;
	bottom: 12px;
	width: 3px;
	border-radius: 0 3px 3px 0;
	background: var(--sky);
}

.hdcrm-rail__badge {
	position: absolute;
	top: 4px;
	right: 10px;
	min-width: 17px;
	height: 17px;
	padding: 0 5px;
	border-radius: 9px;
	background: var(--coral);
	color: var(--n9);
	font-size: 10px;
	font-weight: 700;
	line-height: 17px;
	text-align: center;
}

.hdcrm-rail__spacer {
	flex: 1;
}

.hdcrm-top {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 18px;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
	min-width: 0;
}

.hdcrm-search {
	flex: 1;
	max-width: 520px;
	display: flex;
	align-items: center;
	gap: 9px;
	height: 38px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--mist);
	color: var(--mute);
	cursor: pointer;
	transition: border-color .15s, background .15s;
}

.hdcrm-search:hover {
	border-color: #c9d4e0;
	background: #fff;
}

.hdcrm-search svg {
	width: 17px;
	height: 17px;
	flex: none;
}

.hdcrm-search span:not(.hdcrm-kbd) {
	flex: 1;
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hdcrm-kbd {
	display: inline-flex;
	align-items: center;
	padding: 1px 6px;
	border: 1px solid var(--line);
	border-bottom-width: 2px;
	border-radius: 6px;
	background: #fff;
	color: var(--slate);
	font-size: 11px;
	font-family: var(--font);
	white-space: nowrap;
}

.hdcrm-top__right {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 10px;
}

.hdcrm-sandbox-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 11px;
	border-radius: 999px;
	background: #fff4e0;
	color: #7a4b00;
	font-size: 12px;
	font-weight: 500;
	white-space: nowrap;
}

.hdcrm-sandbox-pill::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #f2a100;
}

.hdcrm-me {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 3px 4px 3px 3px;
	border: 0;
	background: none;
	border-radius: 999px;
	cursor: pointer;
}

.hdcrm-me:hover {
	background: var(--mist);
}

.hdcrm-main {
	position: relative;
	overflow: auto;
	min-width: 0;
	scroll-behavior: smooth;
}

.hdcrm-view {
	padding: 22px 26px 60px;
	max-width: 1640px;
	margin: 0 auto;
	animation: hdcrm-in .28s var(--ease);
}

.hdcrm-view--full {
	max-width: none;
	padding-right: 0;
}

@keyframes hdcrm-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
}

/* ------------------------------------------------------------------ type */

.hdcrm-h1 {
	font-size: 25px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -.01em;
	color: var(--n9);
}

.hdcrm-h2 {
	font-size: 16px;
	font-weight: 600;
	color: var(--n9);
}

.hdcrm-h3 {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--ink);
}

.hdcrm-sub {
	color: var(--slate);
	font-size: 13.5px;
}

.hdcrm-small {
	color: var(--mute);
	font-size: 12px;
}

.hdcrm-head {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 16px;
	margin-bottom: 18px;
}

.hdcrm-head__titles {
	min-width: 0;
	flex: 1 1 280px;
}

.hdcrm-head__titles .hdcrm-sub {
	margin-top: 3px;
}

.hdcrm-head__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

/* ------------------------------------------------------------------ buttons */

.hdcrm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	height: 36px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	color: var(--ink);
	font-weight: 500;
	font-size: 13.5px;
	white-space: nowrap;
	cursor: pointer;
	text-decoration: none !important;
	transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .1s;
}

.hdcrm-btn svg {
	width: 16px;
	height: 16px;
	flex: none;
}

.hdcrm-btn:hover {
	border-color: #c5d1de;
	background: var(--mist);
	color: var(--ink);
}

.hdcrm-btn:active {
	transform: translateY(1px);
}

.hdcrm-btn--primary {
	background: var(--blue-d);
	border-color: var(--blue-d);
	color: #fff;
}

.hdcrm-btn--primary:hover {
	background: var(--blue);
	border-color: var(--blue);
	color: #fff;
}

.hdcrm-btn--coral {
	background: var(--coral);
	border-color: var(--coral);
	color: var(--n9);
}

.hdcrm-btn--coral:hover {
	background: #ff7d60;
	border-color: #ff7d60;
	color: var(--n9);
	box-shadow: 0 0 0 4px rgba(255, 107, 74, .18);
}

.hdcrm-btn--ghost {
	border-color: transparent;
	background: transparent;
}

.hdcrm-btn--danger {
	color: var(--ember);
}

.hdcrm-btn--danger:hover {
	background: #fff0ec;
	border-color: #f6c3b6;
	color: var(--ember);
}

.hdcrm-btn--sm {
	height: 30px;
	padding: 0 11px;
	font-size: 12.5px;
}

.hdcrm-btn--icon {
	width: 36px;
	padding: 0;
}

.hdcrm-btn--sm.hdcrm-btn--icon {
	width: 30px;
}

.hdcrm-btn[disabled] {
	opacity: .5;
	pointer-events: none;
}

.hdcrm-btn.is-busy {
	pointer-events: none;
	color: transparent !important;
	position: relative;
}

.hdcrm-btn.is-busy::after {
	content: "";
	position: absolute;
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-color: var(--blue) transparent var(--blue) transparent;
	border-radius: 50%;
	animation: hdcrm-spin .8s linear infinite;
}

.hdcrm-btn--primary.is-busy::after {
	border-color: #fff transparent #fff transparent;
}

@keyframes hdcrm-spin {
	to {
		transform: rotate(360deg);
	}
}

.hdcrm-link {
	border: 0;
	background: none;
	padding: 0;
	text-align: left;
	color: var(--blue);
	cursor: pointer;
	font-weight: 500;
}

.hdcrm-link:hover {
	color: var(--blue-d);
	text-decoration: underline;
}

.hdcrm-seg {
	display: inline-flex;
	padding: 3px;
	border-radius: 999px;
	background: var(--line2);
	gap: 2px;
}

.hdcrm-seg button,
.hdcrm-seg a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 30px;
	padding: 0 13px;
	border: 0;
	border-radius: 999px;
	background: none;
	color: var(--slate);
	font-weight: 500;
	font-size: 13px;
	cursor: pointer;
	text-decoration: none !important;
	white-space: nowrap;
}

.hdcrm-seg svg {
	width: 15px;
	height: 15px;
}

.hdcrm-seg .is-on {
	background: #fff;
	color: var(--n9);
	box-shadow: 0 1px 3px rgba(0, 27, 68, .12);
}

.hdcrm-seg .hdcrm-count {
	margin-left: 2px;
}

/* ------------------------------------------------------------------ panels & blocks */

.hdcrm-panel {
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
}

.hdcrm-panel__head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px 10px;
}

.hdcrm-panel__head .hdcrm-h2,
.hdcrm-panel__head .hdcrm-h3 {
	flex: 1;
	min-width: 0;
}

.hdcrm-panel__body {
	padding: 0 16px 16px;
}

.hdcrm-panel + .hdcrm-panel {
	margin-top: 14px;
}

.hdcrm-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 10px;
	background: var(--line2);
	color: var(--slate);
	font-size: 11.5px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.hdcrm-count--hot {
	background: #ffe5de;
	color: var(--ember);
}

.hdcrm-empty {
	display: grid;
	justify-items: center;
	gap: 8px;
	padding: 34px 20px;
	text-align: center;
	color: var(--slate);
}

.hdcrm-empty svg {
	width: 120px;
	height: auto;
	margin-bottom: 4px;
}

.hdcrm-empty .hdcrm-h2 {
	color: var(--ink);
}

.hdcrm-empty p {
	max-width: 380px;
}

.hdcrm-skel {
	display: block;
	height: 12px;
	border-radius: 6px;
	background: linear-gradient(90deg, var(--line2), #f8fafc, var(--line2));
	background-size: 200% 100%;
	animation: hdcrm-shimmer 1.2s linear infinite;
}

@keyframes hdcrm-shimmer {
	to {
		background-position: -200% 0;
	}
}

/* ------------------------------------------------------------------ pills, chips, tags */

.hdcrm-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 24px;
	padding: 0 10px;
	border-radius: 999px;
	background: var(--line2);
	color: var(--ink);
	font-size: 12px;
	font-weight: 500;
	white-space: nowrap;
	border: 0;
}

.hdcrm-pill i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--c, var(--blue));
	flex: none;
}

.hdcrm-pill--lc {
	background: color-mix(in srgb, var(--c, #136fa5) 13%, #fff);
	color: color-mix(in srgb, var(--c, #136fa5) 75%, #001b44);
}

button.hdcrm-pill {
	cursor: pointer;
}

button.hdcrm-pill:hover {
	filter: brightness(.96);
}

.hdcrm-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 22px;
	padding: 0 8px;
	border-radius: 6px;
	background: color-mix(in srgb, var(--c, #136fa5) 10%, #fff);
	border: 1px solid color-mix(in srgb, var(--c, #136fa5) 22%, #fff);
	color: color-mix(in srgb, var(--c, #136fa5) 80%, #001b44);
	font-size: 11.5px;
	font-weight: 500;
	white-space: nowrap;
}

.hdcrm-tag button {
	border: 0;
	background: none;
	padding: 0;
	margin-right: -3px;
	color: inherit;
	opacity: .6;
	cursor: pointer;
	line-height: 0;
}

.hdcrm-tag button:hover {
	opacity: 1;
}

.hdcrm-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.hdcrm-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 30px;
	padding: 0 11px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	color: var(--ink);
	font-size: 12.5px;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
	transition: border-color .15s, background .15s, color .15s;
}

.hdcrm-chip svg {
	width: 14px;
	height: 14px;
}

.hdcrm-chip:hover {
	border-color: #c5d1de;
}

.hdcrm-chip.is-on {
	background: var(--n9);
	border-color: var(--n9);
	color: #fff;
}

.hdcrm-chip i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--c, var(--blue));
}

.hdcrm-chip .hdcrm-count {
	height: 18px;
	min-width: 18px;
	font-size: 11px;
}

.hdcrm-chip.is-on .hdcrm-count {
	background: rgba(255, 255, 255, .18);
	color: #fff;
}

.hdcrm-chip--filter {
	background: var(--tint);
	border-color: #cfe3f0;
	color: var(--n9);
	cursor: default;
	padding-right: 4px;
}

.hdcrm-chip--filter b {
	font-weight: 600;
}

.hdcrm-chip--filter .hdcrm-x {
	width: 22px;
	height: 22px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	display: grid;
	place-items: center;
	cursor: pointer;
	color: var(--slate);
}

.hdcrm-chip--filter .hdcrm-x:hover {
	background: #fff;
	color: var(--ember);
}

.hdcrm-chip--filter button.hdcrm-chip__edit {
	border: 0;
	background: none;
	padding: 0;
	cursor: pointer;
	color: inherit;
	font: inherit;
}

/* Avatars */
.hdcrm-av {
	--s: 34px;
	width: var(--s);
	height: var(--s);
	flex: none;
	display: inline-grid;
	place-items: center;
	border-radius: 50%;
	background: var(--c, var(--blue));
	color: #fff;
	font-size: calc(var(--s) * .38);
	font-weight: 600;
	letter-spacing: .02em;
	overflow: hidden;
	user-select: none;
}

.hdcrm-av img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hdcrm-av--org {
	border-radius: 28%;
}

.hdcrm-av--sm {
	--s: 26px;
}

.hdcrm-av--lg {
	--s: 64px;
}

.hdcrm-av--xl {
	--s: 76px;
}

/* ------------------------------------------------------------------ forms */

.hdcrm-field {
	display: grid;
	gap: 5px;
}

.hdcrm-field > span,
.hdcrm-label {
	font-size: 12.5px;
	font-weight: 500;
	color: var(--slate);
}

.hdcrm-input,
.hdcrm-select,
.hdcrm-textarea {
	width: 100%;
	min-height: 38px;
	padding: 8px 12px;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: #fff;
	color: var(--ink);
	font-size: 14px;
	transition: border-color .15s, box-shadow .15s;
	box-shadow: none;
	margin: 0;
}

.hdcrm-select {
	appearance: none;
	padding-right: 32px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235a6172' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	max-width: none;
	line-height: 1.3;
}

.hdcrm-textarea {
	min-height: 90px;
	resize: vertical;
	line-height: 1.5;
}

.hdcrm-input:focus,
.hdcrm-select:focus,
.hdcrm-textarea:focus {
	outline: none;
	border-color: var(--sky);
	box-shadow: 0 0 0 3px rgba(3, 169, 244, .16);
}

.hdcrm-input::placeholder,
.hdcrm-textarea::placeholder {
	color: #a3aab6;
}

.hdcrm-input--bare {
	border-color: transparent;
	background: transparent;
	padding-left: 0;
}

.hdcrm-form {
	display: grid;
	gap: 14px;
}

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

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

.hdcrm-check {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	cursor: pointer;
	user-select: none;
}

.hdcrm-check input {
	width: 17px;
	height: 17px;
	accent-color: var(--blue-d);
	margin: 0;
}

.hdcrm-switch {
	position: relative;
	display: inline-block;
	width: 40px;
	height: 23px;
	flex: none;
}

.hdcrm-switch input {
	position: absolute;
	opacity: 0;
	inset: 0;
	margin: 0;
	cursor: pointer;
}

.hdcrm-switch span {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: #ccd5df;
	transition: background .2s;
	pointer-events: none;
}

.hdcrm-switch span::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 17px;
	height: 17px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
	transition: transform .22s var(--ease);
}

.hdcrm-switch input:checked + span {
	background: var(--teal);
}

.hdcrm-switch input:checked + span::after {
	transform: translateX(17px);
}

.hdcrm-switch input:focus-visible + span {
	box-shadow: 0 0 0 3px rgba(3, 169, 244, .3);
}

.hdcrm-help {
	color: var(--mute);
	font-size: 12px;
}

.hdcrm-err {
	padding: 10px 12px;
	border-radius: var(--r);
	background: #fff0ec;
	color: #9b2c13;
	font-size: 13px;
}

.hdcrm-note {
	padding: 12px 14px;
	border-radius: var(--r);
	background: var(--tint);
	color: var(--n8);
	font-size: 13px;
}

.hdcrm-note--warn {
	background: #fff6e5;
	color: #6e4500;
}

/* Pickers (contact/org/user search fields) */
.hdcrm-picker {
	position: relative;
}

.hdcrm-picker__chosen {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 38px;
	padding: 4px 6px 4px 6px;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: #fff;
}

.hdcrm-picker__chosen > span:not(.hdcrm-av) {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 500;
}

.hdcrm-picker__list {
	position: absolute;
	z-index: 30;
	left: 0;
	right: 0;
	top: calc(100% + 4px);
	max-height: 260px;
	overflow: auto;
	padding: 5px;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: #fff;
	box-shadow: var(--shadow);
}

.hdcrm-picker__list button {
	display: flex;
	align-items: center;
	gap: 9px;
	width: 100%;
	padding: 7px 8px;
	border: 0;
	border-radius: 7px;
	background: none;
	text-align: left;
	cursor: pointer;
}

.hdcrm-picker__list button:hover,
.hdcrm-picker__list button.is-hover {
	background: var(--tint);
}

.hdcrm-picker__list small {
	display: block;
	color: var(--mute);
	font-size: 11.5px;
}

/* ------------------------------------------------------------------ overlays */

.hdcrm-ov {
	position: fixed;
	inset: 0;
	z-index: 100050;
	display: grid;
	place-items: center;
	padding: 20px;
	background: rgba(0, 18, 46, .42);
	backdrop-filter: blur(3px);
	animation: hdcrm-fade .18s ease;
}

@keyframes hdcrm-fade {
	from {
		opacity: 0;
	}
}

.hdcrm-modal {
	width: min(560px, 100%);
	max-height: calc(100vh - 40px);
	display: flex;
	flex-direction: column;
	border-radius: 20px;
	background: #fff;
	box-shadow: var(--shadow-lg);
	animation: hdcrm-pop .26s var(--ease);
	overflow: hidden;
}

.hdcrm-modal--wide {
	width: min(860px, 100%);
}

@keyframes hdcrm-pop {
	from {
		opacity: 0;
		transform: translateY(10px) scale(.98);
	}
}

.hdcrm-modal__head {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 20px 22px 6px;
}

.hdcrm-modal__head > div {
	flex: 1;
}

.hdcrm-modal__body {
	padding: 14px 22px 20px;
	overflow: auto;
}

.hdcrm-modal__foot {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 8px;
	padding: 14px 22px;
	border-top: 1px solid var(--line2);
	background: #fbfcfd;
}

.hdcrm-modal__foot .hdcrm-small {
	margin-right: auto;
}

.hdcrm-ov--drawer {
	place-items: stretch end;
	padding: 0;
}

.hdcrm-drawer {
	width: min(560px, 100vw);
	height: 100%;
	display: flex;
	flex-direction: column;
	background: #fff;
	box-shadow: var(--shadow-lg);
	animation: hdcrm-slide .3s var(--ease);
}

@keyframes hdcrm-slide {
	from {
		transform: translateX(40px);
		opacity: 0;
	}
}

.hdcrm-drawer .hdcrm-modal__body {
	flex: 1;
}

/* Popover menus */
.hdcrm-menu {
	position: fixed;
	z-index: 100060;
	min-width: 200px;
	max-width: 320px;
	max-height: 70vh;
	overflow: auto;
	padding: 6px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: #fff;
	box-shadow: var(--shadow-lg);
	animation: hdcrm-pop .18s var(--ease);
	font-family: var(--font);
	font-size: 13.5px;
	color: var(--ink);
}

.hdcrm-menu * {
	box-sizing: border-box;
}

.hdcrm-menu__item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 8px 10px;
	border: 0;
	border-radius: 9px;
	background: none;
	color: var(--ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
	text-decoration: none !important;
}

.hdcrm-menu__item svg {
	width: 16px;
	height: 16px;
	color: var(--slate);
	flex: none;
}

.hdcrm-menu__item i {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--c);
	flex: none;
}

.hdcrm-menu__item:hover,
.hdcrm-menu__item.is-hover {
	background: var(--tint);
	color: var(--n9);
}

.hdcrm-menu__item.is-on {
	font-weight: 600;
}

.hdcrm-menu__item.is-on::after {
	content: "";
	margin-left: auto;
	width: 7px;
	height: 12px;
	border: solid var(--teal);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) translate(-2px, -1px);
}

.hdcrm-menu__item--danger,
.hdcrm-menu__item--danger svg {
	color: var(--ember);
}

.hdcrm-menu__sep {
	height: 1px;
	margin: 5px 4px;
	background: var(--line2);
}

.hdcrm-menu__label {
	padding: 8px 10px 4px;
	color: var(--mute);
	font-size: 11.5px;
	font-weight: 500;
}

.hdcrm-menu__search {
	padding: 4px 4px 6px;
}

.hdcrm-menu__form {
	display: grid;
	gap: 10px;
	padding: 8px;
	min-width: 260px;
}

/* Toasts */
.hdcrm-toasts {
	position: fixed;
	z-index: 100070;
	left: 50%;
	bottom: 22px;
	transform: translateX(-50%);
	display: grid;
	gap: 8px;
	justify-items: center;
	pointer-events: none;
}

.hdcrm-toast {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 14px 11px 16px;
	border-radius: 14px;
	background: var(--n9);
	color: #fff;
	font-family: var(--font);
	font-size: 13.5px;
	box-shadow: var(--shadow-lg);
	pointer-events: auto;
	animation: hdcrm-toast .3s var(--ease);
}

.hdcrm-toast--err {
	background: #7b1d0c;
}

.hdcrm-toast button {
	border: 0;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	border-radius: 999px;
	padding: 4px 11px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

@keyframes hdcrm-toast {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
}

/* Command palette */
.hdcrm-ov--palette {
	place-items: start center;
	padding-top: 12vh;
}

.hdcrm-palette {
	width: min(640px, 100%);
	border-radius: 20px;
	background: #fff;
	box-shadow: var(--shadow-lg);
	overflow: hidden;
	animation: hdcrm-pop .2s var(--ease);
}

.hdcrm-palette__in {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 18px;
	border-bottom: 1px solid var(--line2);
}

.hdcrm-palette__in svg {
	width: 20px;
	height: 20px;
	color: var(--mute);
}

.hdcrm-palette__in input {
	flex: 1;
	border: 0;
	outline: 0;
	font-size: 17px;
	background: none;
	box-shadow: none;
	padding: 0;
}

.hdcrm-palette__list {
	max-height: 56vh;
	overflow: auto;
	padding: 6px;
}

.hdcrm-palette__group {
	padding: 10px 12px 4px;
	color: var(--mute);
	font-size: 12px;
	font-weight: 500;
}

.hdcrm-palette__item {
	display: flex;
	align-items: center;
	gap: 11px;
	width: 100%;
	padding: 9px 12px;
	border: 0;
	border-radius: 11px;
	background: none;
	text-align: left;
	cursor: pointer;
	color: var(--ink);
}

.hdcrm-palette__item > svg {
	width: 18px;
	height: 18px;
	color: var(--slate);
}

.hdcrm-palette__item > span:not(.hdcrm-av) {
	flex: 1;
	min-width: 0;
}

.hdcrm-palette__item small {
	display: block;
	color: var(--mute);
	font-size: 12px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hdcrm-palette__item.is-hover {
	background: var(--tint);
}

.hdcrm-palette__foot {
	display: flex;
	gap: 16px;
	padding: 10px 16px;
	border-top: 1px solid var(--line2);
	color: var(--mute);
	font-size: 12px;
}

/* ------------------------------------------------------------------ lists */

.hdcrm-listwrap {
	display: grid;
	grid-template-columns: 230px minmax(0, 1fr);
	gap: 18px;
	align-items: start;
}

.hdcrm-views {
	position: sticky;
	top: 0;
	display: grid;
	gap: 2px;
}

.hdcrm-views__label {
	padding: 10px 10px 6px;
	color: var(--mute);
	font-size: 12px;
	font-weight: 500;
}

.hdcrm-views button {
	display: flex;
	align-items: center;
	gap: 9px;
	width: 100%;
	padding: 8px 10px;
	border: 0;
	border-radius: 10px;
	background: none;
	color: var(--ink);
	font-size: 13.5px;
	text-align: left;
	cursor: pointer;
}

.hdcrm-views button svg {
	width: 16px;
	height: 16px;
	color: var(--mute);
	flex: none;
}

.hdcrm-views button i {
	width: 8px;
	height: 8px;
	margin: 0 4px;
	border-radius: 50%;
	background: var(--c);
	flex: none;
}

.hdcrm-views button span:not(.hdcrm-count) {
	flex: 1;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hdcrm-views button:hover {
	background: #e8eef4;
}

.hdcrm-views button.is-on {
	background: #fff;
	color: var(--n9);
	font-weight: 600;
	box-shadow: 0 1px 2px rgba(0, 27, 68, .06), inset 3px 0 0 var(--blue);
}

.hdcrm-views button.is-on svg {
	color: var(--blue);
}

.hdcrm-toolbar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.hdcrm-toolbar__search {
	position: relative;
	flex: 0 1 280px;
	min-width: 180px;
}

.hdcrm-toolbar__search svg {
	position: absolute;
	left: 11px;
	top: 50%;
	width: 16px;
	height: 16px;
	transform: translateY(-50%);
	color: var(--mute);
	pointer-events: none;
}

.hdcrm-toolbar__search .hdcrm-input {
	height: 36px;
	min-height: 36px;
	padding-left: 34px;
	border-radius: 999px;
}

.hdcrm-toolbar__spacer {
	flex: 1;
}

.hdcrm-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-bottom: 12px;
}

.hdcrm-filters:empty {
	display: none;
}

.hdcrm-table-wrap {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	overflow: auto;
}

.hdcrm-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 13.5px;
}

.hdcrm-table th {
	position: sticky;
	top: 0;
	z-index: 2;
	padding: 10px 12px;
	background: #fafbfd;
	border-bottom: 1px solid var(--line);
	color: var(--slate);
	font-size: 12px;
	font-weight: 500;
	text-align: left;
	white-space: nowrap;
}

.hdcrm-table th button {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	border: 0;
	background: none;
	padding: 0;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.hdcrm-table th button:hover {
	color: var(--n9);
}

.hdcrm-table th button svg {
	width: 12px;
	height: 12px;
}

.hdcrm-table th.is-sorted {
	color: var(--n9);
}

.hdcrm-table td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--line2);
	vertical-align: middle;
	max-width: 320px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hdcrm-table tr:last-child td {
	border-bottom: 0;
}

.hdcrm-table tbody tr {
	cursor: pointer;
	transition: background .12s;
}

.hdcrm-table tbody tr:hover {
	background: #f6fafd;
}

.hdcrm-table tbody tr.is-sel {
	background: #eaf4fb;
}

.hdcrm-table .hdcrm-cell-check {
	width: 42px;
	padding-right: 0;
}

.hdcrm-table .hdcrm-cell-main {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.hdcrm-table .hdcrm-cell-main b {
	display: block;
	font-weight: 600;
	color: var(--n9);
	overflow: hidden;
	text-overflow: ellipsis;
}

.hdcrm-table .hdcrm-cell-main small {
	display: block;
	color: var(--mute);
	font-size: 12px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hdcrm-table .is-num {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.hdcrm-pager {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 4px 0;
	color: var(--slate);
	font-size: 13px;
}

.hdcrm-bulkbar {
	position: sticky;
	bottom: 14px;
	z-index: 5;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	width: fit-content;
	max-width: 100%;
	margin: 14px auto 0;
	padding: 8px 8px 8px 16px;
	border-radius: 999px;
	background: var(--n9);
	color: #fff;
	box-shadow: var(--shadow-lg);
	animation: hdcrm-toast .25s var(--ease);
}

.hdcrm-bulkbar .hdcrm-btn {
	height: 32px;
	background: rgba(255, 255, 255, .1);
	border-color: transparent;
	color: #fff;
}

.hdcrm-bulkbar .hdcrm-btn:hover {
	background: rgba(255, 255, 255, .2);
}

.hdcrm-score {
	--v: 0;
	--c: var(--blue);
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: conic-gradient(var(--c) calc(var(--v) * 1%), var(--line2) 0);
	font-size: 10.5px;
	font-weight: 600;
	color: var(--n9);
	font-variant-numeric: tabular-nums;
}

.hdcrm-score::before {
	content: "";
	position: absolute;
	inset: 3px;
	border-radius: 50%;
	background: #fff;
}

.hdcrm-score span {
	position: relative;
}

/* ------------------------------------------------------------------ record pages */

.hdcrm-rec {
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr) 320px;
	gap: 18px;
	align-items: start;
}

.hdcrm-rec__side {
	display: grid;
	gap: 14px;
	align-content: start;
}

.hdcrm-rec__main {
	min-width: 0;
	display: grid;
	gap: 14px;
}

.hdcrm-hero {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 20px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	margin-bottom: 18px;
}

.hdcrm-hero__body {
	flex: 1;
	min-width: 0;
	display: grid;
	gap: 6px;
}

.hdcrm-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	color: var(--slate);
	font-size: 13.5px;
}

.hdcrm-hero__meta span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.hdcrm-hero__meta svg {
	width: 15px;
	height: 15px;
	color: var(--mute);
}

.hdcrm-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.hdcrm-hero__score {
	display: grid;
	justify-items: center;
	gap: 4px;
	text-align: center;
}

.hdcrm-hero__score .hdcrm-score {
	width: 64px;
	height: 64px;
	font-size: 18px;
}

.hdcrm-hero__score .hdcrm-score::before {
	inset: 6px;
}

/* Key facts list (about panels) */
.hdcrm-facts {
	display: grid;
}

.hdcrm-fact {
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	padding: 6px 0;
	border-radius: 8px;
}

.hdcrm-fact > span:first-child {
	color: var(--mute);
	font-size: 12.5px;
	padding-top: 2px;
}

.hdcrm-fact__v {
	min-width: 0;
	overflow-wrap: anywhere;
	font-size: 13.5px;
}

.hdcrm-fact__v.is-empty {
	color: #b0b7c3;
}

.hdcrm-fact--edit {
	cursor: text;
	margin: 0 -8px;
	padding: 6px 8px;
}

.hdcrm-fact--edit:hover {
	background: var(--mist);
}

.hdcrm-fact--edit:hover .hdcrm-fact__v.is-empty::after {
	content: "Add";
	color: var(--blue);
}

.hdcrm-fact .hdcrm-input,
.hdcrm-fact .hdcrm-select {
	min-height: 32px;
	padding: 5px 9px;
	font-size: 13.5px;
}

/* Highlights from connectors */
.hdcrm-hl {
	display: grid;
	gap: 10px;
}

.hdcrm-hl__src {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--ink);
	font-weight: 600;
	font-size: 13px;
}

.hdcrm-hl__src span {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 7px;
	background: color-mix(in srgb, var(--c) 14%, #fff);
	color: var(--c);
}

.hdcrm-hl__src span svg {
	width: 14px;
	height: 14px;
}

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

.hdcrm-hl__fact {
	padding: 9px 10px;
	border-radius: 10px;
	background: var(--mist);
	min-width: 0;
}

.hdcrm-hl__fact small {
	display: block;
	color: var(--mute);
	font-size: 11.5px;
}

.hdcrm-hl__fact b {
	display: -webkit-box;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--n9);
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow-wrap: anywhere;
	font-variant-numeric: tabular-nums;
}

.hdcrm-hl__fact em {
	display: block;
	font-style: normal;
	color: var(--slate);
	font-size: 11.5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hdcrm-hl + .hdcrm-hl {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--line2);
}

/* Mini lists (deals, tasks, people in side panels) */
.hdcrm-mini {
	display: grid;
	gap: 4px;
}

.hdcrm-mini a,
.hdcrm-mini > div {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px;
	margin: 0 -8px;
	border-radius: 10px;
	color: var(--ink);
	text-decoration: none !important;
	min-width: 0;
}

.hdcrm-mini a:hover {
	background: var(--mist);
}

.hdcrm-mini__t {
	flex: 1;
	min-width: 0;
}

.hdcrm-mini__t b {
	display: block;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hdcrm-mini__t small {
	display: block;
	color: var(--mute);
	font-size: 12px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hdcrm-mini__v {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	color: var(--n9);
}

/* ------------------------------------------------------------------ the story strip */

.hdcrm-story {
	padding: 16px 18px 12px;
	background: linear-gradient(180deg, #fff, #fbfcfe);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
}

.hdcrm-story__head {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 10px;
}

.hdcrm-story__head .hdcrm-h3 {
	flex: 1;
}

.hdcrm-story__lanes {
	display: grid;
	gap: 3px;
}

.hdcrm-story__lane {
	display: grid;
	grid-template-columns: 108px minmax(0, 1fr) 42px;
	align-items: center;
	gap: 10px;
	height: 22px;
}

.hdcrm-story__lane > span {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--slate);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hdcrm-story__lane > span i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--c);
	flex: none;
}

.hdcrm-story__track {
	position: relative;
	height: 22px;
}

.hdcrm-story__track::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 1px;
	background: repeating-linear-gradient(90deg, var(--line) 0 4px, transparent 4px 8px);
}

.hdcrm-story__dot {
	position: absolute;
	top: 50%;
	width: var(--d, 9px);
	height: var(--d, 9px);
	margin: calc(var(--d, 9px) / -2) 0 0 calc(var(--d, 9px) / -2);
	border-radius: 50%;
	background: var(--c);
	box-shadow: 0 0 0 2px #fff;
	opacity: .9;
	cursor: pointer;
	transform: scale(0);
	animation: hdcrm-dot .5s var(--ease) forwards;
	animation-delay: var(--delay, 0s);
	border: 0;
	padding: 0;
}

.hdcrm-story__dot:hover {
	opacity: 1;
	box-shadow: 0 0 0 2px #fff, 0 0 0 5px color-mix(in srgb, var(--c) 30%, transparent);
	z-index: 2;
}

@keyframes hdcrm-dot {
	to {
		transform: scale(1);
	}
}

.hdcrm-story__lane > b {
	text-align: right;
	font-size: 12px;
	font-weight: 600;
	color: var(--ink);
	font-variant-numeric: tabular-nums;
}

.hdcrm-story__axis {
	display: grid;
	grid-template-columns: 108px minmax(0, 1fr) 42px;
	gap: 10px;
	margin-top: 6px;
}

.hdcrm-story__axis div {
	display: flex;
	justify-content: space-between;
	color: var(--mute);
	font-size: 11px;
}

.hdcrm-story__today {
	position: absolute;
	right: 0;
	top: -4px;
	bottom: -4px;
	width: 2px;
	border-radius: 2px;
	background: var(--coral);
	opacity: .55;
}

/* ------------------------------------------------------------------ composer */

.hdcrm-composer {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	overflow: hidden;
}

.hdcrm-composer__tabs {
	display: flex;
	gap: 2px;
	padding: 6px 6px 0;
	border-bottom: 1px solid var(--line2);
	overflow-x: auto;
}

.hdcrm-composer__tabs button {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 13px 10px;
	border: 0;
	border-bottom: 2px solid transparent;
	background: none;
	color: var(--slate);
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
}

.hdcrm-composer__tabs button svg {
	width: 16px;
	height: 16px;
}

.hdcrm-composer__tabs button:hover {
	color: var(--n9);
}

.hdcrm-composer__tabs button.is-on {
	color: var(--n9);
	border-bottom-color: var(--blue);
}

.hdcrm-composer__body {
	padding: 14px;
	display: grid;
	gap: 10px;
}

.hdcrm-composer__body .hdcrm-textarea {
	min-height: 84px;
}

.hdcrm-composer__foot {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.hdcrm-composer__foot .hdcrm-spacer {
	flex: 1;
}

.hdcrm-editor {
	min-height: 140px;
	max-height: 380px;
	overflow: auto;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: #fff;
	line-height: 1.55;
	font-size: 14px;
}

.hdcrm-editor:focus {
	outline: none;
	border-color: var(--sky);
	box-shadow: 0 0 0 3px rgba(3, 169, 244, .16);
}

.hdcrm-editor:empty::before {
	content: attr(data-placeholder);
	color: #a3aab6;
}

.hdcrm-editor p {
	margin: 0 0 .7em;
}

.hdcrm-editor-bar {
	display: flex;
	gap: 2px;
	margin-bottom: 6px;
}

.hdcrm-editor-bar button {
	width: 30px;
	height: 30px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 7px;
	background: none;
	color: var(--slate);
	cursor: pointer;
}

.hdcrm-editor-bar button:hover {
	background: var(--mist);
	color: var(--n9);
}

.hdcrm-editor-bar svg {
	width: 16px;
	height: 16px;
}

/* ------------------------------------------------------------------ timeline */

.hdcrm-tl-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.hdcrm-tl {
	position: relative;
	display: grid;
	gap: 2px;
	padding-left: 6px;
}

.hdcrm-tl__day {
	padding: 14px 0 6px 46px;
	color: var(--mute);
	font-size: 12px;
	font-weight: 500;
}

.hdcrm-tl__item {
	position: relative;
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	gap: 12px;
	padding: 6px 0;
}

.hdcrm-tl__item::before {
	content: "";
	position: absolute;
	left: 16px;
	top: 0;
	bottom: 0;
	width: 2px;
	background: var(--line2);
}

.hdcrm-tl__item:first-child::before {
	top: 18px;
}

.hdcrm-tl__icon {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--c) 13%, #fff);
	color: var(--c);
	box-shadow: 0 0 0 4px var(--mist);
}

.hdcrm-tl__icon svg {
	width: 16px;
	height: 16px;
}

.hdcrm-tl__card {
	min-width: 0;
	padding: 10px 14px 11px;
	border: 1px solid var(--line);
	border-radius: 13px;
	background: #fff;
	transition: border-color .15s, box-shadow .15s;
}

.hdcrm-tl__item.is-pinned .hdcrm-tl__card {
	border-color: #f2d48a;
	background: #fffcf1;
}

.hdcrm-tl__card:hover {
	border-color: #cfd9e4;
}

.hdcrm-tl__top {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.hdcrm-tl__title {
	flex: 1;
	min-width: 0;
	font-weight: 500;
	color: var(--ink);
}

.hdcrm-tl__title a {
	font-weight: 600;
}

.hdcrm-tl__amt {
	font-weight: 600;
	color: var(--n9);
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.hdcrm-tl__amt.is-neg {
	color: var(--rose);
}

.hdcrm-tl__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	margin-top: 3px;
	color: var(--mute);
	font-size: 12px;
}

.hdcrm-tl__src {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.hdcrm-tl__src i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--c);
}

.hdcrm-tl__body {
	margin-top: 8px;
	color: var(--ink);
	font-size: 13.5px;
	line-height: 1.55;
	overflow-wrap: anywhere;
}

.hdcrm-tl__body p {
	margin: 0 0 .6em;
}

.hdcrm-tl__body p:last-child {
	margin-bottom: 0;
}

.hdcrm-tl__body.is-clamped {
	max-height: 7.5em;
	overflow: hidden;
	mask-image: linear-gradient(180deg, #000 60%, transparent);
}

.hdcrm-tl__more {
	margin-top: 4px;
}

.hdcrm-tl__actions {
	display: flex;
	gap: 2px;
	opacity: 0;
	transition: opacity .15s;
}

.hdcrm-tl__card:hover .hdcrm-tl__actions,
.hdcrm-tl__card:focus-within .hdcrm-tl__actions {
	opacity: 1;
}

.hdcrm-tl__actions button {
	width: 26px;
	height: 26px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 7px;
	background: none;
	color: var(--mute);
	cursor: pointer;
}

.hdcrm-tl__actions button:hover {
	background: var(--mist);
	color: var(--n9);
}

.hdcrm-tl__actions svg {
	width: 15px;
	height: 15px;
}

.hdcrm-tl__items {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-top: 8px;
}

.hdcrm-tl__who {
	font-weight: 600;
	color: var(--n9);
}

.hdcrm-tl__stage {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 6px;
	font-size: 12.5px;
	color: var(--slate);
}

.hdcrm-tl__stage s {
	text-decoration: none;
	color: var(--mute);
}

.hdcrm-tl__end {
	padding: 18px 0 4px 46px;
	color: var(--mute);
	font-size: 12.5px;
}

/* ------------------------------------------------------------------ deal path */

.hdcrm-path {
	display: flex;
	gap: 3px;
	margin: 4px 0 2px;
	overflow-x: auto;
	padding-bottom: 2px;
}

.hdcrm-path button {
	position: relative;
	flex: 1 0 auto;
	min-width: 90px;
	height: 36px;
	padding: 0 18px 0 22px;
	border: 0;
	background: var(--line2);
	color: var(--slate);
	font-weight: 500;
	font-size: 12.5px;
	cursor: pointer;
	clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%);
	transition: background .15s, color .15s;
	white-space: nowrap;
}

.hdcrm-path button:first-child {
	clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
	border-radius: 999px 0 0 999px;
	padding-left: 16px;
}

.hdcrm-path button:last-child {
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 12px 50%);
	border-radius: 0 999px 999px 0;
}

.hdcrm-path button:hover {
	background: #dfe7ef;
	color: var(--n9);
}

.hdcrm-path button.is-done {
	background: color-mix(in srgb, var(--c) 22%, #fff);
	color: var(--n9);
}

.hdcrm-path button.is-on {
	background: var(--c);
	color: #fff;
}

/* ------------------------------------------------------------------ board */

.hdcrm-board {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	overflow-x: auto;
	padding: 2px 26px 18px 0;
	min-height: calc(100vh - 220px);
}

.hdcrm-col {
	flex: 0 0 286px;
	display: flex;
	flex-direction: column;
	max-height: calc(100vh - 210px);
	border-radius: var(--r-lg);
	background: #e9eef3;
	transition: background .15s, box-shadow .15s;
}

.hdcrm-col.is-over {
	background: color-mix(in srgb, var(--c) 18%, #e9eef3);
	box-shadow: inset 0 0 0 2px var(--c);
}

.hdcrm-col__head {
	padding: 12px 12px 8px;
	border-top: 4px solid var(--c);
	border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.hdcrm-col__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: var(--n9);
}

.hdcrm-col__title span:not(.hdcrm-count) {
	flex: 1;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hdcrm-col__sum {
	margin-top: 3px;
	display: flex;
	gap: 8px;
	color: var(--slate);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
}

.hdcrm-col__sum b {
	color: var(--ink);
	font-weight: 600;
}

.hdcrm-col__cards {
	flex: 1;
	min-height: 60px;
	overflow-y: auto;
	padding: 4px 8px 10px;
	display: grid;
	gap: 8px;
	align-content: start;
}

.hdcrm-col__add {
	margin: 0 8px 10px;
	justify-content: flex-start;
	background: transparent;
	border-style: dashed;
	border-color: #c9d4df;
	color: var(--slate);
}

.hdcrm-card {
	position: relative;
	padding: 11px 12px 10px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid #dfe6ee;
	box-shadow: 0 1px 2px rgba(0, 27, 68, .05);
	cursor: grab;
	transition: transform .15s var(--ease), box-shadow .15s, border-color .15s, opacity .15s;
	user-select: none;
}

.hdcrm-card:hover {
	border-color: #c4d0dc;
	box-shadow: 0 4px 14px rgba(0, 27, 68, .1);
}

.hdcrm-card.is-dragging {
	opacity: .35;
	transform: scale(.97);
}

.hdcrm-card.is-drop-before {
	box-shadow: 0 -3px 0 var(--sky), 0 1px 2px rgba(0, 27, 68, .05);
}

.hdcrm-card__title {
	font-weight: 600;
	color: var(--n9);
	line-height: 1.3;
	padding-right: 22px;
}

.hdcrm-card__who {
	margin-top: 3px;
	color: var(--slate);
	font-size: 12.5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hdcrm-card__foot {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
}

.hdcrm-card__amt {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--ink);
}

.hdcrm-card__flags {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 6px;
}

.hdcrm-flag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 7px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
}

.hdcrm-flag svg {
	width: 12px;
	height: 12px;
}

.hdcrm-flag--stall {
	background: #ffe9e3;
	color: var(--ember);
}

.hdcrm-flag--late {
	background: #fff1d6;
	color: #8a5a00;
}

.hdcrm-flag--won {
	background: #e3f3e5;
	color: var(--green);
}

.hdcrm-flag--lost {
	background: #f9e5ee;
	color: var(--rose);
}

.hdcrm-card__menu {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 26px;
	height: 26px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 7px;
	background: none;
	color: var(--mute);
	cursor: pointer;
	opacity: 0;
}

.hdcrm-card:hover .hdcrm-card__menu,
.hdcrm-card__menu:focus-visible {
	opacity: 1;
}

.hdcrm-card__menu:hover {
	background: var(--mist);
	color: var(--n9);
}

.hdcrm-card__menu svg {
	width: 16px;
	height: 16px;
}

.hdcrm-dropzones {
	position: fixed;
	z-index: 50;
	left: 50%;
	bottom: 22px;
	display: flex;
	gap: 12px;
	transform: translate(-50%, 140%);
	transition: transform .3s var(--ease);
}

.hdcrm-dropzones.is-on {
	transform: translate(-50%, 0);
}

.hdcrm-dropzone {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 220px;
	height: 64px;
	padding: 0 20px;
	border: 2px dashed currentColor;
	border-radius: 18px;
	background: #fff;
	font-weight: 600;
	box-shadow: var(--shadow-lg);
	transition: transform .15s, background .15s;
}

.hdcrm-dropzone svg {
	width: 22px;
	height: 22px;
}

.hdcrm-dropzone--won {
	color: var(--green);
}

.hdcrm-dropzone--lost {
	color: var(--rose);
}

.hdcrm-dropzone.is-over {
	transform: scale(1.05);
	background: color-mix(in srgb, currentColor 10%, #fff);
}

/* ------------------------------------------------------------------ home */

.hdcrm-home {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	gap: 18px;
	align-items: start;
}

.hdcrm-greet {
	display: flex;
	align-items: flex-end;
	gap: 18px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.hdcrm-greet .hdcrm-h1 {
	font-size: 28px;
}

.hdcrm-greet__date {
	color: var(--slate);
	margin-top: 4px;
}

.hdcrm-kpis {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 18px;
}

.hdcrm-kpi {
	position: relative;
	padding: 14px 16px 12px;
	border-radius: var(--r-lg);
	background: #fff;
	border: 1px solid var(--line);
	min-width: 0;
	overflow: hidden;
}

.hdcrm-kpi small {
	display: block;
	color: var(--slate);
	font-size: 12.5px;
}

.hdcrm-kpi b {
	display: block;
	margin-top: 4px;
	font-size: 24px;
	font-weight: 600;
	color: var(--n9);
	font-variant-numeric: tabular-nums;
	letter-spacing: -.01em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hdcrm-kpi em {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	margin-top: 2px;
	font-style: normal;
	font-size: 12px;
	color: var(--mute);
}

.hdcrm-kpi em.is-up {
	color: var(--green);
}

.hdcrm-kpi em.is-down {
	color: var(--ember);
}

.hdcrm-kpi svg.hdcrm-spark {
	position: absolute;
	right: 12px;
	bottom: 12px;
	width: 84px;
	height: 30px;
}

.hdcrm-kpi--dark {
	background: var(--n9);
	border-color: var(--n9);
}

.hdcrm-kpi--dark small,
.hdcrm-kpi--dark em {
	color: #9fb8d4;
}

.hdcrm-kpi--dark b {
	color: #fff;
}

.hdcrm-day {
	display: grid;
	gap: 2px;
}

.hdcrm-task {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	padding: 9px 10px;
	margin: 0 -10px;
	border-radius: 11px;
	transition: background .12s;
}

.hdcrm-task:hover {
	background: var(--mist);
}

.hdcrm-task__box {
	flex: none;
	width: 21px;
	height: 21px;
	margin-top: 1px;
	display: grid;
	place-items: center;
	border: 2px solid #b8c3cf;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	color: transparent;
	transition: border-color .15s, background .2s, color .2s, transform .15s;
	padding: 0;
}

.hdcrm-task__box svg {
	width: 12px;
	height: 12px;
}

.hdcrm-task__box:hover {
	border-color: var(--teal);
	color: var(--teal);
}

.hdcrm-task.is-done .hdcrm-task__box {
	border-color: var(--teal);
	background: var(--teal);
	color: #fff;
	transform: scale(1.08);
}

.hdcrm-task.is-done .hdcrm-task__t b {
	text-decoration: line-through;
	color: var(--mute);
}

.hdcrm-task__t {
	flex: 1;
	min-width: 0;
	cursor: pointer;
}

.hdcrm-task__t b {
	display: block;
	font-weight: 500;
	color: var(--ink);
}

.hdcrm-task__t small {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	color: var(--mute);
	font-size: 12px;
	margin-top: 2px;
}

.hdcrm-task__t small .is-late {
	color: var(--ember);
	font-weight: 500;
}

.hdcrm-task__t small .is-today {
	color: var(--teal);
	font-weight: 500;
}

.hdcrm-task__pri {
	width: 8px;
	height: 8px;
	margin-top: 8px;
	border-radius: 50%;
	background: var(--coral);
	flex: none;
}

.hdcrm-quickadd {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 6px 6px 12px;
	margin-bottom: 8px;
	border: 1px dashed #c9d4df;
	border-radius: 12px;
	background: #fbfcfd;
}

.hdcrm-quickadd svg {
	width: 17px;
	height: 17px;
	color: var(--mute);
	flex: none;
}

.hdcrm-quickadd input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: none;
	outline: 0;
	box-shadow: none;
	padding: 6px 0;
	font-size: 14px;
}

.hdcrm-feed {
	display: grid;
	gap: 0;
}

.hdcrm-feed__item {
	display: flex;
	gap: 10px;
	padding: 9px 0;
	border-bottom: 1px solid var(--line2);
	min-width: 0;
}

.hdcrm-feed__item:last-child {
	border-bottom: 0;
}

.hdcrm-feed__icon {
	flex: none;
	width: 28px;
	height: 28px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: color-mix(in srgb, var(--c) 13%, #fff);
	color: var(--c);
}

.hdcrm-feed__icon svg {
	width: 14px;
	height: 14px;
}

.hdcrm-feed__t {
	flex: 1;
	min-width: 0;
	font-size: 13px;
}

.hdcrm-feed__t a {
	font-weight: 600;
}

.hdcrm-feed__t small {
	display: block;
	color: var(--mute);
	font-size: 11.5px;
	margin-top: 1px;
}

.hdcrm-feed__t span {
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ------------------------------------------------------------------ inbox */

.hdcrm-inbox {
	display: grid;
	grid-template-columns: 210px minmax(280px, 400px) minmax(0, 1fr);
	gap: 0;
	height: calc(100vh - 58px - 32px - 110px);
	min-height: 480px;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: #fff;
	overflow: hidden;
}

.hdcrm-root--workspace .hdcrm-inbox {
	height: calc(100vh - 58px - 110px);
}

.hdcrm-inbox__folders {
	align-content: start;
	padding: 12px 8px;
	border-right: 1px solid var(--line2);
	background: #fbfcfd;
}

.hdcrm-inbox__list {
	overflow-y: auto;
	border-right: 1px solid var(--line2);
}

.hdcrm-inbox__row {
	display: grid;
	gap: 2px;
	width: 100%;
	padding: 12px 14px;
	border: 0;
	border-bottom: 1px solid var(--line2);
	background: none;
	text-align: left;
	cursor: pointer;
}

.hdcrm-inbox__row:hover {
	background: #f6fafd;
}

.hdcrm-inbox__row.is-on {
	background: #eaf4fb;
	box-shadow: inset 3px 0 0 var(--blue);
}

.hdcrm-inbox__row div {
	display: flex;
	gap: 8px;
	align-items: baseline;
}

.hdcrm-inbox__row b {
	flex: 1;
	min-width: 0;
	font-weight: 600;
	color: var(--n9);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hdcrm-inbox__row small {
	color: var(--mute);
	font-size: 11.5px;
	white-space: nowrap;
}

.hdcrm-inbox__row span {
	color: var(--ink);
	font-size: 13px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hdcrm-inbox__row em {
	font-style: normal;
	color: var(--mute);
	font-size: 12.5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hdcrm-inbox__read {
	overflow-y: auto;
	padding: 22px 26px;
}

.hdcrm-mail {
	padding: 16px 0;
	border-bottom: 1px solid var(--line2);
}

.hdcrm-mail:last-child {
	border-bottom: 0;
}

.hdcrm-mail__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.hdcrm-mail__head div {
	flex: 1;
	min-width: 0;
}

.hdcrm-mail__head b {
	display: block;
	color: var(--n9);
}

.hdcrm-mail__head small {
	color: var(--mute);
	font-size: 12px;
}

.hdcrm-mail__body {
	font-size: 14px;
	line-height: 1.6;
	overflow-wrap: anywhere;
	overflow-x: auto;
}

.hdcrm-mail__body img {
	max-width: 100%;
	height: auto;
}

/* ------------------------------------------------------------------ reports */

.hdcrm-reports {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 14px;
}

.hdcrm-reports > .hdcrm-panel {
	margin: 0;
}

.hdcrm-span-12 {
	grid-column: span 12;
}

.hdcrm-span-8 {
	grid-column: span 8;
}

.hdcrm-span-7 {
	grid-column: span 7;
}

.hdcrm-span-6 {
	grid-column: span 6;
}

.hdcrm-span-5 {
	grid-column: span 5;
}

.hdcrm-span-4 {
	grid-column: span 4;
}

.hdcrm-chart {
	width: 100%;
	height: auto;
	display: block;
	overflow: visible;
	font-family: var(--font);
}

.hdcrm-chart text {
	fill: var(--mute);
	font-size: 11px;
}

.hdcrm-chart .hdcrm-grid {
	stroke: var(--line2);
	stroke-width: 1;
}

.hdcrm-chart rect.hdcrm-bar {
	transition: opacity .15s;
}

.hdcrm-chart rect.hdcrm-bar:hover {
	opacity: .82;
}

.hdcrm-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	margin-top: 8px;
	color: var(--slate);
	font-size: 12px;
}

.hdcrm-legend span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.hdcrm-legend i {
	width: 10px;
	height: 10px;
	border-radius: 3px;
	background: var(--c);
}

.hdcrm-barlist {
	display: grid;
	gap: 10px;
}

.hdcrm-barlist__row {
	display: grid;
	gap: 5px;
}

.hdcrm-barlist__row div {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	font-size: 13px;
}

.hdcrm-barlist__row div span {
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hdcrm-barlist__row div b {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.hdcrm-barlist__track {
	height: 8px;
	border-radius: 4px;
	background: var(--line2);
	overflow: hidden;
}

.hdcrm-barlist__track i {
	display: block;
	height: 100%;
	border-radius: 4px;
	background: var(--c, var(--blue));
	width: 0;
	transition: width .8s var(--ease);
}

.hdcrm-funnel {
	display: grid;
	gap: 7px;
}

.hdcrm-funnel__row {
	display: grid;
	grid-template-columns: 130px minmax(0, 1fr) 120px;
	align-items: center;
	gap: 12px;
	font-size: 13px;
}

.hdcrm-funnel__bar {
	height: 30px;
	display: flex;
	justify-content: center;
}

.hdcrm-funnel__bar i {
	display: block;
	height: 100%;
	min-width: 6px;
	border-radius: 8px;
	background: var(--c);
	width: 0;
	transition: width .8s var(--ease);
}

.hdcrm-funnel__row b {
	text-align: right;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.hdcrm-funnel__row b small {
	display: block;
	font-weight: 400;
	color: var(--mute);
	font-size: 11.5px;
}

/* ------------------------------------------------------------------ settings */

.hdcrm-settings {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 22px;
	align-items: start;
}

.hdcrm-settings__body {
	display: grid;
	gap: 14px;
	min-width: 0;
	max-width: 980px;
}

.hdcrm-row {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 0;
	border-bottom: 1px solid var(--line2);
}

.hdcrm-row:last-child {
	border-bottom: 0;
}

.hdcrm-row > div:first-child {
	flex: 1;
	min-width: 0;
}

.hdcrm-row b {
	display: block;
	font-weight: 500;
}

.hdcrm-row small {
	display: block;
	color: var(--mute);
	font-size: 12.5px;
	margin-top: 1px;
}

.hdcrm-stage-edit {
	display: grid;
	grid-template-columns: 24px 34px minmax(0, 1fr) 96px 96px 120px 32px;
	gap: 8px;
	align-items: center;
	padding: 6px 0;
}

.hdcrm-stage-edit input[type="color"] {
	width: 34px;
	height: 34px;
	border: 1px solid var(--line);
	border-radius: 9px;
	padding: 2px;
	background: #fff;
	cursor: pointer;
}

.hdcrm-grip {
	color: #b0b9c5;
	cursor: grab;
	display: grid;
	place-items: center;
}

.hdcrm-grip svg {
	width: 16px;
	height: 16px;
}

.hdcrm-conn {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 14px;
}

.hdcrm-conn__card {
	display: grid;
	gap: 10px;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: #fff;
}

.hdcrm-conn__card.is-off {
	background: #fbfcfd;
}

.hdcrm-conn__card.is-missing {
	opacity: .65;
}

.hdcrm-conn__top {
	display: flex;
	align-items: center;
	gap: 12px;
}

.hdcrm-conn__icon {
	width: 42px;
	height: 42px;
	display: grid;
	place-items: center;
	border-radius: 13px;
	background: color-mix(in srgb, var(--c) 14%, #fff);
	color: var(--c);
	flex: none;
}

.hdcrm-conn__icon svg {
	width: 21px;
	height: 21px;
}

.hdcrm-conn__top div {
	flex: 1;
	min-width: 0;
}

.hdcrm-conn__top b {
	display: block;
	font-weight: 600;
	color: var(--n9);
}

.hdcrm-conn__top small {
	color: var(--mute);
	font-size: 12px;
}

.hdcrm-conn__card p {
	color: var(--slate);
	font-size: 13px;
}

.hdcrm-progress {
	height: 6px;
	border-radius: 3px;
	background: var(--line2);
	overflow: hidden;
}

.hdcrm-progress i {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--teal), var(--aqua));
	border-radius: 3px;
	transition: width .5s var(--ease);
}

.hdcrm-progress--busy i {
	background-size: 200% 100%;
	background-image: linear-gradient(90deg, var(--teal), var(--aqua), var(--teal));
	animation: hdcrm-shimmer 1.4s linear infinite;
}

.hdcrm-code {
	display: block;
	padding: 10px 12px;
	border-radius: var(--r);
	background: var(--n9);
	color: #d7e7f7;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 12.5px;
	overflow-x: auto;
	white-space: pre-wrap;
	word-break: break-all;
}

/* Import */
.hdcrm-drop {
	display: grid;
	justify-items: center;
	gap: 10px;
	padding: 44px 20px;
	border: 2px dashed #c4d0dc;
	border-radius: var(--r-lg);
	background: #fbfcfd;
	text-align: center;
	color: var(--slate);
	cursor: pointer;
	transition: border-color .15s, background .15s;
}

.hdcrm-drop:hover,
.hdcrm-drop.is-over {
	border-color: var(--sky);
	background: #f1f9fe;
}

.hdcrm-drop svg {
	width: 40px;
	height: 40px;
	color: var(--blue);
}

.hdcrm-map {
	display: grid;
	gap: 6px;
}

.hdcrm-map__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
	gap: 10px;
	align-items: center;
	padding: 8px 10px;
	border-radius: 10px;
	background: var(--mist);
}

.hdcrm-map__row b {
	display: block;
	font-weight: 600;
}

.hdcrm-map__row small {
	display: block;
	color: var(--mute);
	font-size: 12px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hdcrm-map__row svg {
	width: 18px;
	height: 18px;
	color: var(--mute);
}

/* Duplicates */
.hdcrm-dupe {
	display: grid;
	gap: 10px;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	background: #fff;
}

.hdcrm-dupe__people {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 10px;
}

.hdcrm-dupe__person {
	display: flex;
	gap: 10px;
	padding: 10px;
	border: 2px solid var(--line);
	border-radius: 12px;
	cursor: pointer;
	min-width: 0;
}

.hdcrm-dupe__person.is-on {
	border-color: var(--teal);
	background: #f0faf8;
}

.hdcrm-dupe__person div {
	min-width: 0;
}

.hdcrm-dupe__person small {
	display: block;
	color: var(--mute);
	font-size: 12px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Welcome (sandbox) */
.hdcrm-welcome {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 220px;
	gap: 20px;
	align-items: center;
	padding: 20px 22px;
	margin-bottom: 18px;
	border-radius: var(--r-lg);
	background: var(--n9);
	color: #d5e4f3;
	overflow: hidden;
	position: relative;
}

.hdcrm-welcome .hdcrm-h2 {
	color: #fff;
	font-size: 18px;
	margin-bottom: 6px;
}

.hdcrm-welcome ol {
	display: grid;
	gap: 6px;
	margin-top: 12px;
	padding-left: 0;
	counter-reset: w;
}

.hdcrm-welcome li {
	counter-increment: w;
	display: flex;
	gap: 10px;
	align-items: baseline;
}

.hdcrm-welcome li::before {
	content: counter(w);
	flex: none;
	width: 20px;
	height: 20px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: rgba(3, 169, 244, .22);
	color: #9fdcfb;
	font-size: 11px;
	font-weight: 700;
}

.hdcrm-welcome a {
	color: #8fd6fb;
	font-weight: 500;
}

.hdcrm-welcome svg.hdcrm-welcome__art {
	width: 220px;
	height: auto;
}

.hdcrm-welcome__x {
	position: absolute;
	top: 10px;
	right: 10px;
	color: #9fb8d4 !important;
	background: transparent !important;
	border-color: transparent !important;
}

/* ------------------------------------------------------------------ sign-in gate */

.hdcrm-gate {
	display: grid;
	grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
	min-height: 100vh;
	font-family: var(--font);
}

.hdcrm-gate__card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
	padding: 56px clamp(24px, 6vw, 72px);
	background: #fff;
}

.hdcrm-gate__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	color: var(--n9);
	font-size: 16px;
	margin-bottom: 18px;
}

.hdcrm-gate__mark {
	width: 34px;
	height: 34px;
	border-radius: 11px;
	background: var(--n9);
	position: relative;
	overflow: hidden;
}

.hdcrm-gate__mark::after {
	content: "";
	position: absolute;
	inset: auto 6px 8px;
	height: 12px;
	background: linear-gradient(90deg, var(--sky), var(--aqua));
	clip-path: polygon(0 100%, 30% 20%, 50% 60%, 72% 0, 100% 100%);
}

.hdcrm-gate h1 {
	margin: 0;
	font-size: 28px;
	font-weight: 600;
	color: var(--n9);
	letter-spacing: -.01em;
}

.hdcrm-gate__lede {
	margin: 0;
	color: var(--slate);
}

.hdcrm-gate form {
	display: grid;
	gap: 12px;
	margin-top: 8px;
}

.hdcrm-gate form p {
	margin: 0;
	display: grid;
	gap: 6px;
}

.hdcrm-gate form label {
	font-size: 13px;
	color: var(--slate);
	font-weight: 500;
}

.hdcrm-gate form input[type="text"],
.hdcrm-gate form input[type="password"] {
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 12px;
	font: inherit;
	font-size: 15px;
}

.hdcrm-gate form input[type="text"]:focus,
.hdcrm-gate form input[type="password"]:focus {
	outline: none;
	border-color: var(--sky);
	box-shadow: 0 0 0 3px rgba(3, 169, 244, .16);
}

.hdcrm-gate form .login-remember label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
}

.hdcrm-gate form input[type="submit"],
.hdcrm-gate__btn {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	height: 46px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--blue-d);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
}

.hdcrm-gate form input[type="submit"]:hover,
.hdcrm-gate__btn:hover {
	background: var(--blue);
}

.hdcrm-gate__lost {
	margin: 0;
	font-size: 13px;
}

.hdcrm-gate__lost a {
	color: var(--blue);
}

.hdcrm-gate__explore {
	display: grid;
	gap: 4px;
	padding: 16px 18px;
	border-radius: 16px;
	background: var(--coral);
	color: var(--n9);
	text-decoration: none;
	transition: transform .15s, box-shadow .15s;
}

.hdcrm-gate__explore:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 30px rgba(255, 107, 74, .35);
}

.hdcrm-gate__explore strong {
	font-size: 17px;
}

.hdcrm-gate__explore span {
	font-size: 13px;
}

.hdcrm-gate__or {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 6px 0 -6px;
	color: var(--mute);
	font-size: 12.5px;
}

.hdcrm-gate__or::before,
.hdcrm-gate__or::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--line);
}

.hdcrm-gate__art {
	background:
		radial-gradient(1200px 500px at 70% 110%, rgba(62, 207, 178, .35), transparent 60%),
		radial-gradient(900px 400px at 10% -10%, rgba(3, 169, 244, .35), transparent 60%),
		var(--n9);
	position: relative;
	overflow: hidden;
}

.hdcrm-gate__art::after {
	content: "";
	position: absolute;
	left: -5%;
	right: -5%;
	bottom: 0;
	height: 46%;
	background: #0b2a5b;
	clip-path: polygon(0 100%, 0 62%, 12% 40%, 22% 55%, 34% 18%, 46% 46%, 58% 26%, 70% 52%, 82% 22%, 92% 42%, 100% 34%, 100% 100%);
	opacity: .95;
}

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1360px) {
	.hdcrm-rec {
		grid-template-columns: 280px minmax(0, 1fr);
	}

	.hdcrm-rec__right {
		grid-column: 1 / -1;
		grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
		display: grid;
	}

	.hdcrm-rec__right > .hdcrm-panel + .hdcrm-panel {
		margin-top: 0;
	}
}

@media (max-width: 1100px) {
	.hdcrm-home {
		grid-template-columns: 1fr;
	}

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

	.hdcrm-listwrap {
		grid-template-columns: 1fr;
	}

	.hdcrm-views {
		position: static;
		display: flex;
		overflow-x: auto;
		gap: 4px;
		padding-bottom: 4px;
	}

	.hdcrm-views__label {
		display: none;
	}

	.hdcrm-views button {
		width: auto;
		flex: none;
		background: #fff;
		border: 1px solid var(--line);
	}

	.hdcrm-span-8,
	.hdcrm-span-7,
	.hdcrm-span-6,
	.hdcrm-span-5,
	.hdcrm-span-4 {
		grid-column: span 12;
	}

	.hdcrm-inbox {
		grid-template-columns: 1fr;
		height: auto;
	}

	.hdcrm-inbox__folders {
		display: flex;
		gap: 4px;
		overflow-x: auto;
		border-right: 0;
		border-bottom: 1px solid var(--line2);
	}

	.hdcrm-inbox__list {
		max-height: 380px;
		border-right: 0;
	}

	.hdcrm-settings {
		grid-template-columns: 1fr;
	}

	.hdcrm-welcome {
		grid-template-columns: 1fr;
	}

	.hdcrm-welcome svg.hdcrm-welcome__art {
		display: none;
	}
}

@media (max-width: 860px) {
	.hdcrm-rec {
		grid-template-columns: 1fr;
	}

	.hdcrm-gate {
		grid-template-columns: 1fr;
	}

	.hdcrm-gate__art {
		display: none;
	}
}

@media (max-width: 720px) {
	.hdcrm-app {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: 54px minmax(0, 1fr) 64px;
	}

	.hdcrm-rail {
		grid-row: 3;
		flex-direction: row;
		padding: 4px 6px calc(4px + env(safe-area-inset-bottom));
		overflow-x: auto;
		gap: 0;
	}

	.hdcrm-rail__brand,
	.hdcrm-rail__spacer,
	.hdcrm-rail .hdcrm-rail__extra {
		display: none;
	}

	.hdcrm-rail a {
		flex: 1 0 64px;
		padding: 7px 2px 6px;
	}

	.hdcrm-rail a.is-on::before {
		left: 18px;
		right: 18px;
		top: -4px;
		bottom: auto;
		width: auto;
		height: 3px;
		border-radius: 0 0 3px 3px;
	}

	.hdcrm-top {
		padding: 0 12px;
	}

	.hdcrm-search .hdcrm-kbd,
	.hdcrm-sandbox-pill,
	.hdcrm-me__name,
	.hdcrm-top__right .hdcrm-btn--primary span {
		display: none;
	}

	.hdcrm-search {
		min-width: 0;
	}

	.hdcrm-top__right {
		flex: none;
	}

	.hdcrm-top__right .hdcrm-btn--primary {
		width: 38px;
		padding: 0;
		justify-content: center;
	}

	.hdcrm-view {
		padding: 16px 14px 40px;
	}

	.hdcrm-kpis {
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}

	.hdcrm-kpi b {
		font-size: 19px;
	}

	.hdcrm-kpi svg.hdcrm-spark {
		display: none;
	}

	.hdcrm-hero {
		flex-wrap: wrap;
	}

	.hdcrm-hero__score {
		display: none;
	}

	.hdcrm-form__row,
	.hdcrm-form__row--3 {
		grid-template-columns: 1fr;
	}

	.hdcrm-board {
		padding-right: 14px;
	}

	.hdcrm-col {
		flex-basis: 82vw;
	}

	.hdcrm-story__lane,
	.hdcrm-story__axis {
		grid-template-columns: 76px minmax(0, 1fr) 30px;
	}

	.hdcrm-funnel__row {
		grid-template-columns: 90px minmax(0, 1fr) 80px;
	}

	.hdcrm-stage-edit {
		grid-template-columns: 34px minmax(0, 1fr) 70px 32px;
	}

	.hdcrm-stage-edit .hdcrm-grip,
	.hdcrm-stage-edit .hdcrm-stage-edit__rot,
	.hdcrm-stage-edit .hdcrm-stage-edit__kind {
		display: none;
	}

	.hdcrm-table .hdcrm-hide-sm {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hdcrm-root *,
	.hdcrm-ov * {
		animation-duration: .001s !important;
		animation-delay: 0s !important;
		transition-duration: .001s !important;
	}
}
