/* Shared CRM profile chrome — Studio + public member portal */

.retro-customers-profile .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.retro-customers-avatar,
.retro-customers-crm__img {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 2.5rem;
	block-size: 2.5rem;
	border-radius: 50%;
	object-fit: cover;
	background: var(--avatar-bg, var(--retro-sys-color-brand));
	color: var(--retro-sys-color-on-brand, #fff);
	font-weight: 700;
	font-size: 0.75rem;
}

.retro-customers-avatar--xl,
.retro-customers-crm__img {
	inline-size: 7rem;
	block-size: 7rem;
	font-size: 1.5rem;
}

.retro-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.2em 0.6em;
	border-radius: 999px;
	font-size: var(--retro-sys-typescale-label-small-size, 0.75rem);
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.35;
	border: 1px solid transparent;
}

.retro-badge--ok {
	background: color-mix(in srgb, var(--retro-sys-color-ok) 16%, transparent);
	border-color: color-mix(in srgb, var(--retro-sys-color-ok) 28%, transparent);
	color: var(--retro-sys-color-ok);
}

.retro-badge--warn {
	background: color-mix(in srgb, var(--retro-sys-color-danger) 14%, transparent);
	border-color: color-mix(in srgb, var(--retro-sys-color-danger) 26%, transparent);
	color: var(--retro-sys-color-danger);
}

.retro-badge--neutral {
	background: var(--retro-sys-color-surface-container);
	color: var(--retro-sys-color-on-surface-variant);
}

.retro-root.retro-customers-profile,
.retro-customers-profile--crm {
	display: grid;
	gap: var(--retro-sys-spacing-sm, 0.75rem);
	/* Locked px base — theme / Gutenberg rem roots cannot inflate controls vs /my-account/. */
	font-size: 14px;
}

.retro-customers-profile--dense {
	--retro-customers-profile-gap: 0.65em;
	--retro-comp-btn-height: 32px;
	--retro-comp-btn-height-sm: 28px;
	--retro-comp-btn-padding-inline: 11px;
	--retro-comp-field-height: 32px;
	--retro-sys-typescale-label-large-size: 13px;
	--retro-sys-typescale-label-medium-size: 11px;
	--retro-sys-typescale-body-large-size: 13px;
	font-size: 14px;
}

.retro-customers-profile--dense .retro-customers-crm__photo .retro-customers-crm__img,
.retro-customers-profile--dense .retro-customers-crm__photo .retro-customers-avatar {
	inline-size: 6.5em;
	block-size: 6.5em;
	font-size: 1.15em;
}

.retro-customers-profile--dense .retro-field-group__label,
.retro-customers-profile--dense .retro-customers-crm__fact-label,
.retro-customers-profile--crm.retro-customers-profile--dense .retro-field-group__label {
	font-size: 0.75em;
}

.retro-customers-profile--dense .retro-field,
.retro-customers-profile--dense .retro-select,
.retro-customers-profile--dense .retro-textarea,
.retro-customers-profile--crm.retro-customers-profile--dense .retro-field,
.retro-customers-profile--crm.retro-customers-profile--dense .retro-select,
.retro-customers-profile--crm.retro-customers-profile--dense .retro-textarea {
	font-size: 0.8125em;
	min-block-size: 2em;
	min-height: var(--retro-comp-field-height);
	height: auto;
	box-sizing: border-box;
}

.retro-root.retro-customers-profile.retro-customers-profile--dense .retro-card,
.retro-customers-profile--dense .retro-customers-member-card {
	padding: 0;
	margin-bottom: 0;
	box-shadow:
		0 1px 2px rgb(0 0 0 / 0.04),
		0 10px 28px color-mix(in srgb, var(--retro-sys-color-brand) 14%, transparent);
}

.retro-root.retro-customers-profile.retro-customers-profile--dense .retro-btn,
.retro-root.retro-customers-profile.retro-customers-profile--dense a.retro-btn,
.retro-root.retro-customers-profile.retro-customers-profile--dense button.retro-btn {
	height: var(--retro-comp-btn-height);
	min-height: var(--retro-comp-btn-height);
	min-block-size: var(--retro-comp-btn-height);
	padding-block: 0;
	padding-inline: var(--retro-comp-btn-padding-inline);
	font-size: var(--retro-sys-typescale-label-large-size);
	line-height: 1;
	box-sizing: border-box;
}

.retro-root.retro-customers-profile.retro-customers-profile--dense .retro-btn--sm {
	height: var(--retro-comp-btn-height-sm);
	min-height: var(--retro-comp-btn-height-sm);
	min-block-size: var(--retro-comp-btn-height-sm);
	padding-inline: var(--retro-sys-spacing-md, 0.75rem);
	font-size: var(--retro-sys-typescale-label-medium-size);
}

/* Size to the block/column, not the viewport — Gutenberg columns stay usable. */
.retro-customers-profile--split {
	container-type: inline-size;
	container-name: retro-customers-profile;
	inline-size: 100%;
	max-inline-size: 100%;
	min-inline-size: 0;
	box-sizing: border-box;
}

/* Gutenberg Columns: allow the grid item to shrink below content intrinsic size. */
.wp-block-columns > .wp-block-column:has(.retro-customers-profile) {
	min-inline-size: 0;
}

.retro-customers-profile--split .retro-customers-profile__layout {
	display: grid;
	gap: 1.5rem;
	align-items: start;
	justify-content: start;
	inline-size: auto;
	max-inline-size: 100%;
	min-inline-size: 0;
}

.retro-customers-profile--split .retro-customers-profile__aside,
.retro-customers-profile--split .retro-customers-profile__workspace {
	min-inline-size: 0;
	max-inline-size: 100%;
}

/* HubSpot / Salesforce-style contact card: brand banner + elevated body */
.retro-customers-member-card {
	position: relative;
	display: grid;
	gap: 0;
	padding: 0;
	overflow: hidden;
	border-radius: 0.75em;
	background: var(--retro-sys-color-surface);
	border: 1px solid color-mix(in srgb, var(--retro-sys-color-brand) 16%, var(--retro-sys-color-outline-variant, transparent));
	box-shadow:
		0 1px 2px rgb(0 0 0 / 0.04),
		0 10px 28px color-mix(in srgb, var(--retro-sys-color-brand) 14%, transparent);
}

.retro-customers-member-card::before {
	content: "";
	display: block;
	block-size: 5.25em;
	background:
		radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, #fff 28%, transparent), transparent 55%),
		linear-gradient(
			135deg,
			var(--retro-sys-color-brand) 0%,
			color-mix(in srgb, var(--retro-sys-color-brand) 72%, var(--retro-sys-color-brand-ink, #5c4a32)) 100%
		);
}

.retro-customers-crm--stack {
	display: grid;
	justify-items: center;
	text-align: center;
	gap: var(--retro-sys-spacing-md, 1rem);
	padding: 0 0 0.35em;
}

.retro-customers-crm--stack .retro-customers-crm__identity {
	flex: none;
	width: 100%;
}

.retro-customers-crm--stack .retro-customers-crm__title-row {
	justify-content: center;
	margin-block-end: 0;
}

.retro-customers-crm--stack .retro-customers-crm__name {
	font-size: 1.05rem;
}

.retro-customers-profile--split .retro-customers-section--flush {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	border-radius: 0;
}

.retro-customers-profile--split .retro-customers-section--flush + .retro-customers-section--flush {
	margin-block-start: var(--retro-sys-spacing-md);
	padding-block-start: var(--retro-sys-spacing-md);
	border-block-start: 1px solid var(--retro-sys-color-outline-variant, rgb(0 0 0 / 0.08));
}

.retro-customers-profile--split .retro-customers-overview--card .retro-customers-fields--grid {
	grid-template-columns: 1fr;
}

.retro-customers-profile--split .retro-customers-overview--card .retro-customers-fields__pair {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.retro-customers-profile--split .retro-customers-overview--card .retro-customers-actions {
	margin-block-start: var(--retro-sys-spacing-sm);
}

.retro-customers-profile--split .retro-customers-profile__workspace {
	display: grid;
	gap: 1.15rem;
	min-inline-size: 0;
	padding: 0.15em 0 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.retro-customers-profile--split .retro-customers-profile__workspace > .retro-customers-tabs {
	width: 100%;
	max-width: 100%;
	justify-self: stretch;
}

.retro-customers-profile--split .retro-customers-profile__panel {
	min-inline-size: 0;
}

.retro-customers-member-card > .retro-customers-overview,
.retro-customers-member-card > .retro-customers-overview--card {
	padding: 0.65em 1.1em 1.5em;
}

.retro-customers-member-card .retro-customers-actions {
	margin-block-start: 1.15em;
	padding-block-start: 1em;
	border-block-start: 1px solid color-mix(in srgb, var(--retro-sys-color-brand) 10%, transparent);
}

/* Side-by-side only when this profile shell is wide enough (not the browser). */
@container retro-customers-profile (min-width: 54rem) {
	.retro-customers-profile__layout {
		grid-template-columns: 20rem minmax(0, 1fr);
		gap: 1rem;
		justify-content: start;
		align-items: stretch;
	}

	.retro-customers-profile__aside {
		position: sticky;
		top: 1rem;
		align-self: stretch;
		justify-self: start;
		inline-size: 20rem;
		max-inline-size: 20rem;
		block-size: 100%;
		min-block-size: 100%;
	}

	.retro-customers-profile__aside .retro-customers-member-card {
		min-block-size: max(100%, 36rem);
		block-size: 100%;
		align-content: start;
		padding-block-end: 1.25em;
	}

	.retro-customers-profile__workspace {
		justify-self: stretch;
		inline-size: auto;
		max-inline-size: none;
	}
}

/* Left card type scales from the locked 14px profile root (same on /my-account/ and Gutenberg). */
.retro-root.retro-customers-profile .retro-customers-profile__aside {
	font-size: 1em;
}

.retro-root.retro-customers-profile .retro-customers-profile__aside .retro-field-group__label,
.retro-root.retro-customers-profile .retro-customers-profile__aside .retro-customers-crm__fact-label,
.retro-root.retro-customers-profile .retro-customers-profile__aside .retro-customers-crm__meta,
.retro-root.retro-customers-profile .retro-customers-profile__aside .retro-badge,
.retro-root.retro-customers-profile .retro-customers-profile__aside .retro-customers-crm__level {
	font-size: 0.75em;
}

.retro-root.retro-customers-profile .retro-customers-profile__aside .retro-field,
.retro-root.retro-customers-profile .retro-customers-profile__aside .retro-select,
.retro-root.retro-customers-profile .retro-customers-profile__aside .retro-textarea {
	font-size: 0.8125em;
	min-height: 2em;
}

.retro-root.retro-customers-profile .retro-customers-profile__aside .retro-customers-crm__photo .retro-customers-crm__img,
.retro-root.retro-customers-profile .retro-customers-profile__aside .retro-customers-crm__photo .retro-customers-avatar {
	inline-size: 6.5em;
	block-size: 6.5em;
	font-size: 1.15em;
}

.retro-root.retro-customers-profile .retro-card {
	background: var(--retro-sys-color-surface);
	border: 0;
	border-radius: var(--retro-sys-shape-md, 0.55rem);
	box-shadow: none;
}

.retro-root.retro-customers-profile .retro-customers-member-card.retro-card {
	border: 1px solid color-mix(in srgb, var(--retro-sys-color-brand) 16%, var(--retro-sys-color-outline-variant, transparent));
	box-shadow:
		0 1px 2px rgb(0 0 0 / 0.04),
		0 10px 28px color-mix(in srgb, var(--retro-sys-color-brand) 14%, transparent);
}

.retro-customers-profile--crm .retro-field-group__label,
.retro-customers-profile--crm .retro-customers-crm__fact-label {
	font-size: 1em;
}

.retro-customers-profile--crm .retro-field,
.retro-customers-profile--crm .retro-select,
.retro-customers-profile--crm .retro-textarea {
	font-size: 1.0625em;
}

.retro-customers-profile__nav {
	margin: 0;
}

.retro-customers-profile__nav .retro-btn {
	height: auto;
	line-height: 1;
}

.retro-customers-profile__nav .icon-text {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	line-height: 1;
}

.retro-customers-profile__nav .retro-icon {
	display: block;
	flex-shrink: 0;
}

.retro-customers-crm {
	display: flex;
	flex-wrap: wrap;
	gap: var(--retro-sys-spacing-lg);
	align-items: flex-start;
	padding: var(--retro-sys-spacing-md) var(--retro-sys-spacing-lg);
}

.retro-customers-crm--hero {
	display: grid;
	gap: 0.85rem;
	position: relative;
	z-index: 1;
	margin-block-start: -2.75em;
	padding: 0 1.1em 1.35em;
	border-block-end: 0;
}

.retro-customers-crm__hero-row {
	display: flex;
	align-items: flex-start;
	gap: 0.95rem;
}

.retro-customers-crm__photo {
	position: relative;
	flex: 0 0 auto;
	margin: 0;
}

.retro-customers-crm__photo .retro-customers-crm__img,
.retro-customers-crm__photo .retro-customers-avatar {
	display: block;
	inline-size: 7rem;
	block-size: 7rem;
	border-radius: 0.8rem;
	object-fit: cover;
	box-shadow:
		0 0 0 3px var(--retro-sys-color-surface),
		0 8px 18px color-mix(in srgb, var(--retro-sys-color-brand) 28%, transparent);
}

.retro-customers-crm__photo--editable .retro-customers-crm__img,
.retro-customers-crm__photo--editable .retro-customers-avatar {
	display: block;
}

.retro-customers-crm__photo-btn {
	position: absolute;
	inset-block-end: 0.1rem;
	inset-inline-end: 0.1rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 1.25rem;
	block-size: 1.25rem;
	margin: 0;
	padding: 0;
	border-radius: 0.4rem;
	border: 2px solid var(--retro-sys-color-surface, #fff);
	background: var(--retro-sys-color-brand, #c3a07a);
	color: var(--retro-sys-color-on-brand, #fff);
	cursor: pointer;
	box-shadow: var(--retro-sys-elevation-1, 0 1px 3px rgb(0 0 0 / 0.18));
	touch-action: manipulation;
}

.retro-customers-crm__photo-btn:hover,
.retro-customers-crm__photo-btn:focus-visible {
	outline: 2px solid var(--retro-sys-color-brand, #c3a07a);
	outline-offset: 2px;
}

.retro-customers-crm__photo-btn .retro-icon {
	inline-size: 0.7rem;
	block-size: 0.7rem;
}

.retro-customers-crm__identity {
	flex: 1 1 auto;
	min-inline-size: 0;
	/* Keep ID / Active / name on the card surface, clear of the brand banner. */
	padding-block-start: 3em;
	padding-block-end: 0.25em;
}

.retro-customers-crm__meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	margin-block-end: 0.35rem;
}

.retro-customers-crm__meta-row .retro-badge {
	margin-inline-start: 0;
}

.retro-customers-crm__meta {
	margin: 0;
	padding: 0.2em 0.55em;
	border-radius: 999px;
	font-size: 0.72em;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0.02em;
	color: var(--retro-sys-color-brand-ink, var(--retro-sys-color-on-surface));
	background: color-mix(in srgb, var(--retro-sys-color-brand) 10%, var(--retro-sys-color-surface));
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--retro-sys-color-brand) 16%, transparent);
	word-break: break-word;
}

.retro-customers-member-card .retro-badge--ok,
.retro-customers-member-card .retro-badge--warn,
.retro-customers-member-card .retro-badge--neutral {
	backdrop-filter: none;
	box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 22%, transparent);
}

.retro-customers-member-card .retro-badge--ok {
	background: color-mix(in srgb, var(--retro-sys-color-ok) 14%, var(--retro-sys-color-surface));
	color: color-mix(in srgb, var(--retro-sys-color-ok) 82%, #000);
}

.retro-customers-member-card .retro-badge--warn {
	background: color-mix(in srgb, var(--retro-sys-color-danger) 12%, var(--retro-sys-color-surface));
	color: color-mix(in srgb, var(--retro-sys-color-danger) 82%, #000);
}

.retro-customers-crm__title-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--retro-sys-spacing-sm);
	margin-block-start: 0.15rem;
	margin-block-end: 0.25rem;
}

.retro-customers-crm__name {
	margin: 0;
	font-size: 1.35em;
	font-weight: 780;
	letter-spacing: -0.015em;
	line-height: 1.25;
	color: var(--retro-sys-color-brand-ink, var(--retro-sys-color-on-surface));
}

.retro-customers-profile--dense .retro-customers-crm__name {
	font-size: 1.28em;
}

.retro-customers-crm__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	gap: 0.35rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.retro-customers-crm__fact-label {
	display: block;
	font-size: 1em;
	color: var(--retro-sys-color-on-surface-variant);
	font-weight: 600;
}

.retro-root.retro-customers-profile .retro-customers-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45em;
	padding: 0.35em;
	border: 1px solid color-mix(in srgb, var(--retro-sys-color-brand) 16%, var(--retro-sys-color-outline-variant, transparent));
	border-radius: 0.65em;
	background: color-mix(in srgb, var(--retro-sys-color-brand) 5%, var(--retro-sys-color-surface));
	width: 100%;
	max-width: 100%;
	box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.55);
}

.retro-root.retro-customers-profile a.retro-customers-tabs__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4em;
	min-block-size: 2.65em;
	min-inline-size: 3em;
	padding: 0.5em 1em;
	margin: 0;
	border-radius: 0.5em;
	border: 1px solid color-mix(in srgb, var(--retro-sys-color-brand) 22%, var(--retro-sys-color-outline, #ccc));
	background: var(--retro-sys-color-surface);
	color: var(--retro-sys-color-on-surface);
	text-decoration: none;
	font-weight: 700;
	font-size: 0.9em;
	line-height: 1.2;
	touch-action: manipulation;
	cursor: pointer;
	box-shadow: 0 1px 2px rgb(0 0 0 / 0.06);
	box-sizing: border-box;
	transition:
		color 0.15s ease,
		border-color 0.15s ease,
		background-color 0.15s ease,
		box-shadow 0.15s ease;
}

.retro-root.retro-customers-profile a.retro-customers-tabs__btn:hover,
.retro-root.retro-customers-profile a.retro-customers-tabs__btn:focus-visible {
	color: var(--retro-sys-color-brand-ink, var(--retro-sys-color-on-surface));
	border-color: var(--retro-sys-color-brand);
	background: color-mix(in srgb, var(--retro-sys-color-brand) 12%, var(--retro-sys-color-surface));
	outline: 2px solid var(--retro-sys-color-brand);
	outline-offset: 1px;
	box-shadow: 0 2px 6px color-mix(in srgb, var(--retro-sys-color-brand) 18%, transparent);
}

.retro-root.retro-customers-profile a.retro-customers-tabs__btn.is-active {
	background: var(--retro-sys-color-brand);
	border-color: var(--retro-sys-color-brand);
	color: var(--retro-sys-color-on-brand, #fff);
	box-shadow:
		0 1px 2px rgb(0 0 0 / 0.08),
		0 4px 12px color-mix(in srgb, var(--retro-sys-color-brand) 28%, transparent);
	font-weight: 750;
}

.retro-root.retro-customers-profile a.retro-customers-tabs__btn.is-active:hover,
.retro-root.retro-customers-profile a.retro-customers-tabs__btn.is-active:focus-visible {
	background: color-mix(in srgb, var(--retro-sys-color-brand) 88%, #000);
	border-color: color-mix(in srgb, var(--retro-sys-color-brand) 88%, #000);
	color: var(--retro-sys-color-on-brand, #fff);
}

.retro-root.retro-customers-profile.retro-customers-profile--split .retro-customers-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	width: 100%;
	max-width: 100%;
}

.retro-root.retro-customers-profile.retro-customers-profile--split a.retro-customers-tabs__btn {
	flex: 0 0 auto;
	inline-size: auto;
	min-inline-size: 0;
	max-inline-size: none;
	justify-content: center;
	text-align: center;
	white-space: nowrap;
}

@container retro-customers-profile (max-width: 36rem) {
	.retro-root.retro-customers-profile.retro-customers-profile--split .retro-customers-tabs {
		width: 100%;
	}

	.retro-root.retro-customers-profile.retro-customers-profile--split a.retro-customers-tabs__btn {
		flex: 1 1 calc(50% - 0.25rem);
		inline-size: auto;
		min-inline-size: 0;
		max-inline-size: none;
	}
}

.retro-root.retro-customers-profile .retro-customers-tabs__btn .retro-icon {
	inline-size: 1.25rem;
	block-size: 1.25rem;
	flex-shrink: 0;
}

.retro-customers-profile--dense .retro-customers-section {
	margin-block-end: 1em;
	padding: 0.15em 0 0.35em;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.retro-customers-profile--dense .retro-customers-section__title {
	display: flex;
	align-items: center;
	gap: 0.45em;
	margin: 0 0 0.7em;
	padding-block-end: 0;
	border-block-end: 0;
	font-size: 0.78em;
	font-weight: 750;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--retro-sys-color-brand-ink, var(--retro-sys-color-on-surface-variant));
}

.retro-customers-profile--dense .retro-customers-section__title::before {
	content: "";
	display: block;
	inline-size: 0.2em;
	block-size: 0.9em;
	border-radius: 999px;
	background: var(--retro-sys-color-brand);
	flex-shrink: 0;
}

.retro-customers-profile--dense .retro-field-group__label,
.retro-customers-profile--dense .retro-customers-crm__fact-label {
	font-size: 0.75em;
}

.retro-customers-profile--dense .retro-field,
.retro-customers-profile--dense .retro-select,
.retro-customers-profile--dense .retro-textarea {
	font-size: 0.8125em;
	min-block-size: 2em;
}

.retro-customers-profile--dense .retro-customers-member-card {
	padding: 0;
	gap: 0;
}

.retro-customers-profile--dense .retro-customers-fields--grid {
	gap: 0.55em 0.65em;
}

.retro-root.retro-customers-profile.retro-customers-profile--dense a.retro-customers-tabs__btn {
	flex: 0 0 auto;
	inline-size: auto;
	min-inline-size: 0;
	max-inline-size: none;
	padding: 0.5em 0.95em;
	font-size: 0.875em;
	min-block-size: 2.5em;
	height: auto;
	line-height: 1.2;
	box-sizing: border-box;
}

.retro-customers-profile--dense .retro-customers-facts-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.35rem;
	margin-block-end: 0.35rem;
}

.retro-customers-profile--dense .retro-customers-facts-grid .retro-customers-facts-card {
	padding: 0.35rem 0.5rem;
	border-radius: 0.35rem;
	box-shadow: none;
	background: transparent;
}

.retro-customers-profile--dense .retro-customers-facts-grid .retro-customers-section__title {
	flex: 1 1 auto;
	min-inline-size: 0;
	font-size: 0.75rem;
	font-weight: 650;
	text-transform: none;
	letter-spacing: 0;
}

.retro-customers-profile--dense .retro-customers-facts-card__head {
	margin-bottom: 0.25rem;
	min-block-size: 1.75rem;
}

.retro-customers-profile--dense .retro-customers-facts-card__empty {
	margin: 0;
	font-size: 0.75rem;
}

.retro-customers-profile--dense .retro-customers-measure {
	padding: 0.75rem 0.85rem;
}

.retro-customers-profile--dense .retro-customers-measure__title {
	margin: 0 0 0.15rem;
	font-size: 0.95rem;
}

.retro-customers-profile--dense .retro-customers-measure__lead {
	margin: 0 0 0.65rem;
	font-size: 0.75rem;
	color: var(--retro-sys-color-on-surface-variant);
}

.retro-customers-profile--dense .retro-customers-table--compact th,
.retro-customers-profile--dense .retro-customers-table--compact td {
	padding: 0.4rem 0.5rem;
	font-size: 0.8125rem;
}

.retro-customers-profile--dense .ba-user-measurements--embedded {
	font-size: 0.8125rem;
	max-inline-size: none;
}

.retro-customers-profile--dense .ba-portal-highlight {
	gap: 0.55rem;
	margin-block-end: 0.75rem;
}

.retro-customers-profile--dense .ba-portal-bodytype,
.retro-customers-profile--dense .ba-portal-highlight .ba-komp-score {
	padding: 0.5rem 0.65rem;
	border-radius: 0.5rem;
	box-shadow: none;
}

.retro-customers-profile--dense .ba-portal-bodytype .ba-a4-p1-bodytype__img,
.retro-customers-profile--dense .ba-portal-bodytype .ba-a4-p1-bodytype__img--empty {
	width: 4.5rem;
	height: 4.5rem;
}

.retro-customers-profile--dense .ba-portal-highlight .ba-komp-score__value {
	font-size: 1.25rem;
}

.retro-customers-profile--dense .ba-portal-highlight .ba-komp-score__ring svg {
	width: 4.75rem;
	height: 4.75rem;
}

.retro-customers-crm--stack {
	position: relative;
}

.retro-customers-crm__photo-col {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	flex: 0 0 auto;
}

.retro-customers-crm__level-wrap {
	position: static;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.3rem;
}

.retro-customers-crm__level {
	display: inline-flex;
	align-items: center;
	max-inline-size: 9rem;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--retro-sys-color-brand) 28%, var(--retro-sys-color-outline-variant, transparent));
	background: color-mix(in srgb, var(--retro-sys-color-brand) 12%, var(--retro-sys-color-surface));
	color: var(--retro-sys-color-brand);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.3;
}

.retro-customers-crm__level--edit {
	appearance: none;
	cursor: pointer;
	padding-inline-end: 1.4rem;
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
		linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: calc(100% - 0.85rem) 55%, calc(100% - 0.55rem) 55%;
	background-size: 0.3rem 0.3rem, 0.3rem 0.3rem;
	background-repeat: no-repeat;
}

.retro-customers-crm__level--edit:focus-visible {
	outline: 2px solid var(--retro-sys-color-brand);
	outline-offset: 2px;
}

.retro-customers-fields--grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--retro-sys-spacing-sm) var(--retro-sys-spacing-md);
}

.retro-customers-fields__pair {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--retro-sys-spacing-sm) var(--retro-sys-spacing-md);
	grid-column: 1 / -1;
}

.retro-customers-fields__pair--names {
	align-items: end;
}

.retro-customers-fields__col--stack {
	display: grid;
	gap: 0.45rem;
}

.retro-customers-fields__stack {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.45rem;
	grid-column: 1 / -1;
}

.retro-customers-profile--dense .retro-customers-fields__stack .retro-field,
.retro-customers-profile--dense .retro-customers-fields__stack .retro-select,
.retro-customers-profile--dense .retro-customers-contact-field__control .retro-field {
	min-block-size: 2rem;
	font-size: 0.8125rem;
}

.retro-customers-profile--dense .retro-customers-contact-field__icon {
	inline-size: 2rem;
	block-size: 2rem;
}

.retro-customers-profile--dense .retro-customers-nameparts__add,
.retro-customers-profile--dense .retro-customers-nameparts__remove {
	inline-size: 2rem;
	block-size: 2rem;
}

.retro-customers-nameparts__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.retro-customers-nameparts__list {
	display: grid;
	gap: 0.4rem;
}

.retro-customers-nameparts__item {
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.retro-customers-nameparts__item .retro-field {
	flex: 1 1 auto;
	min-inline-size: 0;
}

.retro-customers-nameparts__add,
.retro-customers-nameparts__remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	inline-size: 2.75rem;
	block-size: 2.75rem;
	padding: 0;
	border: 1px solid var(--retro-sys-color-outline, #ccc);
	border-radius: var(--retro-comp-btn-radius, 0.5rem);
	background: var(--retro-sys-color-surface, #fff);
	color: var(--retro-sys-color-on-surface);
	cursor: pointer;
	touch-action: manipulation;
}

.retro-customers-nameparts__add:focus-visible,
.retro-customers-nameparts__remove:focus-visible {
	outline: 2px solid var(--retro-sys-color-brand);
	outline-offset: 2px;
}

.retro-customers-fields__pair--social {
	grid-column: 1 / -1;
}

.retro-customers-social {
	display: grid;
	gap: var(--retro-sys-spacing-sm);
	grid-column: 1 / -1;
}

.retro-customers-contact-field__control {
	display: flex;
	align-items: center;
	gap: 0.55rem;
}

.retro-customers-contact-field__icon {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	inline-size: 2.5rem;
	block-size: 2.5rem;
	border-radius: 999px;
	color: var(--contact-accent, var(--retro-sys-color-brand));
	background: color-mix(in srgb, var(--contact-accent, var(--retro-sys-color-brand)) 16%, var(--retro-sys-color-surface));
}

.retro-customers-contact-field__control .retro-field {
	flex: 1 1 auto;
	min-inline-size: 0;
}

.retro-customers-social__customs {
	display: flex;
	flex-direction: column;
	gap: var(--retro-sys-spacing-sm);
}

.retro-customers-social__custom {
	margin: 0;
}

.retro-customers-social__custom-label {
	display: block;
}

.retro-customers-social__custom-name {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	line-height: inherit;
}

.retro-customers-social__custom-name::placeholder {
	color: var(--retro-sys-color-on-surface-variant);
	opacity: 0.85;
	font-weight: 600;
}

.retro-customers-social__custom-name:focus-visible {
	outline: 2px solid var(--retro-sys-color-brand);
	outline-offset: 2px;
	border-radius: 0.25rem;
}

.retro-customers-social__custom .retro-customers-contact-field__control {
	gap: 0.55rem;
}

.retro-customers-social__custom .retro-customers-facts__remove {
	flex-shrink: 0;
}

.retro-customers-social__add {
	position: relative;
	justify-self: start;
}

.retro-customers-social__add-btn {
	min-block-size: 2.75rem;
	gap: 0.35rem;
}

.retro-customers-social__menu {
	position: absolute;
	z-index: 20;
	inset-inline-start: 0;
	inset-block-end: calc(100% + 0.25rem);
	margin: 0;
	padding: 0.25rem;
	list-style: none;
	min-inline-size: 11rem;
	background: var(--retro-sys-color-surface, #fff);
	border: 1px solid var(--retro-sys-color-outline, #ccc);
	border-radius: var(--retro-comp-btn-radius, 0.5rem);
	box-shadow: var(--retro-sys-elevation-2, 0 4px 12px rgb(0 0 0 / 0.12));
}

.retro-customers-social__choice {
	display: flex;
	align-items: center;
	width: 100%;
	min-block-size: 2.75rem;
	padding: 0.4rem 0.75rem;
	border: 0;
	border-radius: 0.35rem;
	background: transparent;
	color: var(--retro-sys-color-on-surface);
	font: inherit;
	font-weight: 600;
	text-align: start;
	cursor: pointer;
}

.retro-customers-social__choice:hover,
.retro-customers-social__choice:focus-visible {
	background: color-mix(in srgb, var(--retro-sys-color-brand) 12%, transparent);
	outline: 2px solid var(--retro-sys-color-brand);
	outline-offset: -2px;
}

.retro-customers-social__menu-label {
	padding: 0.35rem 0.75rem 0.15rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--retro-sys-color-on-surface-variant);
}

.retro-customers-social__choice[data-social-action="remove"] {
	color: var(--retro-sys-color-danger, #8a3a32);
}

.retro-customers-social__choice--custom,
.retro-customers-social__choice--custom[data-social-action="add"] {
	color: var(--retro-sys-color-on-surface);
	font-weight: 700;
}

@media (max-width: 360px) {
	.retro-customers-fields__pair {
		grid-template-columns: 1fr;
	}
}

.retro-customers-overview .retro-field-group {
	margin: 0;
}

.retro-root.retro-customers-profile .retro-field-group {
	display: flex;
	flex-direction: column;
	gap: var(--retro-sys-spacing-xs, 0.35rem);
}

.retro-root.retro-customers-profile .retro-field-group__label {
	display: block;
	font-weight: 600;
	color: var(--retro-sys-color-on-surface-variant);
}

.retro-root.retro-customers-profile .retro-field,
.retro-root.retro-customers-profile .retro-select,
.retro-root.retro-customers-profile .retro-textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	min-height: 2rem;
	padding: 0.3rem 0.55rem;
	font-size: 0.8125rem;
	color: var(--retro-sys-color-on-surface);
	background: var(--retro-sys-color-surface);
	border: 1px solid var(--retro-sys-color-outline, #ccc);
	border-radius: var(--retro-comp-field-radius, 0.5rem);
	touch-action: manipulation;
}

.retro-root.retro-customers-profile .retro-textarea {
	min-height: 4rem;
	resize: vertical;
}

.retro-root.retro-customers-profile .retro-field:focus,
.retro-root.retro-customers-profile .retro-select:focus,
.retro-root.retro-customers-profile .retro-textarea:focus {
	outline: 2px solid var(--retro-sys-color-brand);
	outline-offset: 2px;
	border-color: var(--retro-sys-color-brand);
}

.retro-field-group__help {
	margin: 0.35rem 0 0;
	color: var(--retro-sys-color-on-surface-variant);
	font-size: 0.9375rem;
}

.retro-customers-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--retro-sys-spacing-sm);
	margin-block-start: var(--retro-sys-spacing-md);
}

.retro-root.retro-customers-profile .retro-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-block-size: 2rem;
	padding: 0.3rem 0.7rem;
	font-size: 0.8125rem;
	border: 1px solid transparent;
	border-radius: var(--retro-comp-btn-radius, 0.5rem);
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	touch-action: manipulation;
}

.retro-root.retro-customers-profile .retro-btn--filled {
	background: var(--retro-sys-color-brand);
	color: var(--retro-sys-color-on-brand, #fff);
}

.retro-root.retro-customers-profile .retro-btn--outlined {
	background: transparent;
	color: var(--retro-sys-color-on-surface);
	border-color: var(--retro-sys-color-outline, #ccc);
}

.retro-customers-status {
	font-size: var(--retro-sys-typescale-label-small-size, 0.875rem);
}

.retro-customers-status[data-state="error"] {
	color: var(--retro-sys-color-danger);
}

.retro-customers-notes {
	display: grid;
	gap: 0.85rem;
	margin-block-start: 0.85rem;
	padding: 0.9em 0 0;
	border: 0;
	border-block-start: 1px solid color-mix(in srgb, var(--retro-sys-color-brand) 12%, transparent);
	background: transparent;
	box-shadow: none;
	inline-size: 100%;
	max-inline-size: 100%;
}

@container retro-customers-profile (min-width: 40rem) {
	.retro-customers-notes {
		max-inline-size: 50%;
	}
}

.retro-customers-notes__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
}

.retro-customers-notes__actions .retro-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
}

.retro-customers-notes__color-field {
	margin: 0;
	padding: 0;
	border: 0;
	min-inline-size: 0;
}

.retro-customers-notes__color-field .retro-field-group__label {
	margin-block-end: 0.45em;
}

.retro-customers-notes__form .retro-customers-notes__colors {
	padding-block-start: 0;
	border-block-start: 0;
}

.retro-customers-notes__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.75rem;
	isolation: isolate;
}

.retro-customers-notes__item {
	--note-accent: var(--retro-sys-color-caution, #e8c547);
	position: relative;
	z-index: 0;
	padding: 0.85em 1em 1em;
	border: 0;
	border-radius: 0.15em 0.55em 0.55em 0.55em;
	background:
		linear-gradient(
			165deg,
			color-mix(in srgb, var(--note-accent) 28%, #fffef5) 0%,
			color-mix(in srgb, var(--note-accent) 14%, #fff9e6) 100%
		);
	box-shadow:
		0 1px 1px rgb(0 0 0 / 0.04),
		0 6px 14px color-mix(in srgb, var(--note-accent) 18%, transparent);
	color: var(--retro-sys-color-on-surface);
}

.retro-customers-notes__item.is-open {
	z-index: 40;
}

.retro-customers-notes__item--yellow {
	--note-accent: var(--retro-sys-color-caution, #e8c547);
}

.retro-customers-notes__item--peach {
	--note-accent: #e7a87a;
}

.retro-customers-notes__item--mint {
	--note-accent: var(--retro-sys-color-ok, #6faf7a);
}

.retro-customers-notes__item--sky {
	--note-accent: var(--retro-sys-color-info, #6a9ec9);
}

.retro-customers-notes__item--lilac {
	--note-accent: #9b8ad4;
}

.retro-customers-notes__item--rose {
	--note-accent: var(--retro-sys-color-danger, #d46a7a);
}

.retro-customers-notes__item::before {
	content: "";
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: 0;
	inline-size: 1.65em;
	block-size: 1.65em;
	background: color-mix(in srgb, var(--note-accent) 35%, transparent);
	clip-path: polygon(0 0, 100% 0, 0 100%);
	opacity: 0.55;
	pointer-events: none;
}

.retro-customers-notes__toolbar {
	position: absolute;
	inset-block-start: 0.35em;
	inset-inline-end: 0.35em;
	display: flex;
	align-items: flex-start;
	gap: 0.35em;
	z-index: 2;
}

.retro-customers-notes__info,
.retro-customers-notes__delete {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 2rem;
	block-size: 2rem;
	min-inline-size: 2rem;
	min-block-size: 2rem;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: color-mix(in srgb, var(--retro-sys-color-on-surface) 6%, transparent);
	color: var(--retro-sys-color-on-surface-variant);
	cursor: pointer;
	touch-action: manipulation;
	box-shadow: none;
}

.retro-customers-notes__info:hover,
.retro-customers-notes__info:focus-visible,
.retro-customers-notes__delete:hover,
.retro-customers-notes__delete:focus-visible {
	background: color-mix(in srgb, var(--retro-sys-color-brand) 16%, transparent);
	color: var(--retro-sys-color-brand-ink, var(--retro-sys-color-on-surface));
	outline: 2px solid var(--retro-sys-color-brand);
	outline-offset: 1px;
}

.retro-customers-notes__info[aria-expanded="true"] {
	background: var(--retro-sys-color-brand);
	color: var(--retro-sys-color-on-brand, #fff);
}

.retro-customers-notes__info .retro-icon,
.retro-customers-notes__delete .retro-icon {
	inline-size: 1rem;
	block-size: 1rem;
}

.retro-customers-notes__meta {
	position: absolute;
	inset-block-start: calc(100% + 0.35em);
	inset-inline-end: 0;
	z-index: 50;
	min-inline-size: 11.5rem;
	max-inline-size: min(17rem, 75vw);
	padding: 0.65em 0.75em;
	border-radius: 0.55em;
	background: var(--retro-sys-color-surface);
	border: 1px solid color-mix(in srgb, var(--retro-sys-color-brand) 18%, transparent);
	box-shadow: 0 12px 28px rgb(0 0 0 / 0.18);
	display: grid;
	gap: 0.45em;
	font-size: 0.75rem;
	line-height: 1.35;
	color: var(--retro-sys-color-on-surface-variant);
	text-align: start;
}

.retro-customers-notes__meta[hidden] {
	display: none;
}

.retro-customers-notes__colors {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35em;
	padding-block-start: 0.35em;
	border-block-start: 1px solid color-mix(in srgb, var(--retro-sys-color-brand) 12%, transparent);
}

.retro-customers-notes__swatch {
	inline-size: 1.5rem;
	block-size: 1.5rem;
	min-inline-size: 1.5rem;
	min-block-size: 1.5rem;
	margin: 0;
	padding: 0;
	border: 2px solid rgb(0 0 0 / 0.12);
	border-radius: 999px;
	cursor: pointer;
	touch-action: manipulation;
	background: var(--note-accent, var(--retro-sys-color-caution));
	box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.35);
}

.retro-customers-notes__swatch--yellow {
	--note-accent: var(--retro-sys-color-caution, #e8c547);
}

.retro-customers-notes__swatch--peach {
	--note-accent: #e7a87a;
}

.retro-customers-notes__swatch--mint {
	--note-accent: var(--retro-sys-color-ok, #6faf7a);
}

.retro-customers-notes__swatch--sky {
	--note-accent: var(--retro-sys-color-info, #6a9ec9);
}

.retro-customers-notes__swatch--lilac {
	--note-accent: #9b8ad4;
}

.retro-customers-notes__swatch--rose {
	--note-accent: var(--retro-sys-color-danger, #d46a7a);
}

.retro-customers-notes__swatch:hover,
.retro-customers-notes__swatch:focus-visible {
	outline: 2px solid var(--retro-sys-color-brand);
	outline-offset: 1px;
}

.retro-customers-notes__swatch.is-selected {
	border-color: var(--retro-sys-color-on-surface);
	box-shadow:
		inset 0 0 0 1px rgb(255 255 255 / 0.45),
		0 0 0 2px color-mix(in srgb, var(--note-accent) 35%, transparent);
}

.retro-customers-notes__empty {
	padding: 0.85em 0.95em;
	border: 0;
	border-radius: 0.55em;
	background: color-mix(in srgb, var(--retro-sys-color-brand) 4%, var(--retro-sys-color-surface));
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--retro-sys-color-brand) 10%, transparent);
	color: var(--retro-sys-color-on-surface-variant);
	font-weight: 600;
	font-style: italic;
	text-align: start;
}

.retro-customers-notes__author {
	font-weight: 700;
	color: var(--retro-sys-color-on-surface);
}

.retro-customers-notes__privacy {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 650;
	line-height: 1.35;
	color: var(--retro-sys-color-on-surface-variant);
}

.retro-customers-notes__body {
	margin: 0;
	padding-inline-end: 3rem;
	font-size: 0.95em;
	line-height: 1.45;
}

.retro-customers-notes__body > :first-child {
	margin-block-start: 0;
}

.retro-customers-notes__body > :last-child {
	margin-block-end: 0;
}

.retro-customers-measure {
	padding: var(--retro-sys-spacing-md) var(--retro-sys-spacing-lg);
}

.retro-customers-measure__title {
	margin: 0.25rem 0 var(--retro-sys-spacing-md);
	font-size: 1.125rem;
	color: var(--retro-sys-color-on-surface-variant);
}

.retro-customers-profile .ba-user-measurements--embedded {
	max-width: none;
	margin: 0;
	padding: 0;
	font-size: inherit;
}

@media (min-width: 768px) {
	.retro-customers-fields--grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.retro-root.retro-customers-profile a.retro-customers-tabs__btn.is-active {
		box-shadow: none;
	}
}

.retro-customers-facts-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.35rem;
	margin-block-end: 0.5rem;
}

.retro-customers-facts-grid .retro-customers-facts-card {
	--fact-accent: var(--retro-sys-color-brand);
	margin: 0;
	padding: 0.35rem 0.5rem;
	overflow: visible;
	border: 0;
	border-block-end: 1px solid color-mix(in srgb, var(--fact-accent) 18%, var(--retro-sys-color-outline-variant, transparent));
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.retro-customers-facts-grid .retro-customers-facts-card--caution {
	--fact-accent: var(--retro-sys-color-caution);
}

.retro-customers-facts-grid .retro-customers-facts-card--info {
	--fact-accent: var(--retro-sys-color-info);
}

.retro-customers-facts-grid .retro-customers-facts-card--ok {
	--fact-accent: var(--retro-sys-color-ok);
}

.retro-customers-facts-grid .retro-customers-facts-card--danger {
	--fact-accent: var(--retro-sys-color-danger);
}

.retro-customers-facts-card__head {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	margin-bottom: 0.2rem;
	min-block-size: 1.75rem;
}

.retro-customers-facts-grid .retro-customers-section__title {
	margin: 0;
	flex: 1 1 auto;
	min-inline-size: 0;
	font-size: 0.8125rem;
	font-weight: 650;
	color: var(--fact-accent);
}

.retro-customers-facts-card__empty {
	margin: 0;
	color: var(--retro-sys-color-on-surface-variant);
	font-size: 0.75rem;
}

.retro-customers-fact-add {
	position: relative;
	flex: 0 0 auto;
	margin-inline-start: auto;
	inline-size: 1.75rem;
	block-size: 1.75rem;
	overflow: visible;
}

.retro-customers-fact-add__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 1.75rem;
	block-size: 1.75rem;
	padding: 0;
	border: 1px solid var(--retro-sys-color-outline, #ccc);
	border-radius: 0.35rem;
	background: var(--retro-sys-color-surface, #fff);
	color: var(--retro-sys-color-on-surface);
	cursor: pointer;
	touch-action: manipulation;
}

.retro-customers-fact-add__btn:focus-visible {
	outline: 2px solid var(--retro-sys-color-brand);
	outline-offset: 2px;
}

.retro-customers-fact-add__panel {
	position: absolute;
	z-index: 40;
	inset-block-start: calc(100% + 0.25rem);
	inset-inline-end: 0;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	inline-size: min(20rem, 85vw);
	max-block-size: 18rem;
	overflow: auto;
	margin: 0;
	padding: 0.35rem;
	background: var(--retro-sys-color-surface, #fff);
	border: 1px solid var(--retro-sys-color-outline, #ccc);
	border-radius: 0.45rem;
	box-shadow: var(--retro-sys-elevation-2, 0 4px 12px rgb(0 0 0 / 0.12));
}

.retro-customers-fact-add__panel[hidden] {
	display: none !important;
}

.retro-customers-fact-add__menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.retro-customers-fact-add__choice {
	display: block;
	width: 100%;
	min-block-size: 2rem;
	padding: 0.3rem 0.55rem;
	border: 0;
	border-radius: 0.3rem;
	background: transparent;
	color: var(--retro-sys-color-on-surface);
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 600;
	text-align: start;
	cursor: pointer;
}

.retro-customers-fact-add__choice:hover,
.retro-customers-fact-add__choice:focus-visible {
	background: color-mix(in srgb, var(--retro-sys-color-brand) 12%, transparent);
	outline: 2px solid var(--retro-sys-color-brand);
	outline-offset: -2px;
}

.retro-customers-fact-add__choice--custom {
	border-block-start: 1px solid var(--retro-sys-color-outline-variant, rgb(0 0 0 / 0.1));
	border-radius: 0;
	margin-block-start: 0.15rem;
	padding-block-start: 0.45rem;
	color: var(--retro-sys-color-brand);
}

.retro-customers-fact-add__custom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem 0.25rem 0.15rem;
	border-block-start: 1px solid var(--retro-sys-color-outline-variant, rgb(0 0 0 / 0.1));
}

.retro-customers-fact-add__custom[hidden] {
	display: none !important;
}

.retro-root.retro-customers-profile .retro-customers-fact-add__other {
	position: static;
	flex: 1 1 8rem;
	inline-size: auto;
	width: auto;
	max-width: none;
	min-block-size: 2rem;
	margin: 0;
	font-size: 0.8125rem;
}

.retro-customers-facts {
	list-style: none;
	margin: 0 0 0.55rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.retro-customers-facts__day {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 0.55rem;
	padding: 0.45rem 0.55rem;
	border-radius: 0.75rem;
	background: color-mix(in srgb, var(--fact-accent) 8%, var(--retro-sys-color-surface));
	border: 1px solid color-mix(in srgb, var(--fact-accent) 16%, transparent);
}

.retro-customers-facts__date {
	color: color-mix(in srgb, var(--fact-accent) 55%, var(--retro-sys-color-on-surface));
	font-size: 0.85rem;
	font-weight: 700;
}

.retro-customers-facts__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.retro-customers-facts__chip {
	display: inline-flex;
	align-items: center;
	gap: 0.1rem;
	min-block-size: 2rem;
	padding: 0.15rem 0.7rem;
	border-radius: 999px;
	background: var(--retro-sys-color-surface);
	border: 1px solid color-mix(in srgb, var(--fact-accent) 28%, var(--retro-sys-color-outline-variant, transparent));
	color: var(--retro-sys-color-on-surface);
	font-weight: 650;
	box-shadow: 0 1px 0 color-mix(in srgb, var(--fact-accent) 10%, transparent);
}

.retro-customers-facts__chip:has(.retro-customers-facts__remove) {
	padding-inline-end: 0.15rem;
}

.retro-customers-facts__remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	inline-size: 2rem;
	block-size: 2rem;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--retro-sys-color-on-surface-variant);
	cursor: pointer;
}

.retro-customers-facts__remove:hover,
.retro-customers-facts__remove:focus-visible {
	color: var(--retro-sys-color-danger);
	background: color-mix(in srgb, var(--retro-sys-color-danger) 12%, transparent);
	outline: 2px solid var(--retro-sys-color-danger);
	outline-offset: -2px;
}

.retro-customers-level-field {
	grid-column: 1 / -1;
	align-items: flex-start;
}

.retro-customers-facts-strip {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
	gap: 0.75rem;
	margin-block-start: 0.35rem;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: visible;
}

.retro-customers-facts-strip__item {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	flex: none;
	min-inline-size: 0;
	padding: 0.75rem 0.8rem;
	border: 0;
	border-radius: 0.65rem;
	background:
		linear-gradient(
			160deg,
			color-mix(in srgb, var(--fact-accent, var(--retro-sys-color-brand)) 10%, var(--retro-sys-color-surface)) 0%,
			var(--retro-sys-color-surface) 70%
		);
	box-shadow:
		inset 0 0 0 1px color-mix(in srgb, var(--fact-accent, var(--retro-sys-color-brand)) 16%, transparent);
	overflow: visible;
}

.retro-customers-facts-strip__icon {
	display: flex;
	flex-shrink: 0;
	margin-block-start: 0.1rem;
	color: var(--retro-sys-color-brand);
}

.retro-customers-facts-strip__icon .retro-icon {
	inline-size: 1rem;
	block-size: 1rem;
}

.retro-customers-facts-strip__item--issues .retro-customers-facts-strip__icon {
	color: var(--retro-sys-color-danger);
}

.retro-customers-facts-strip__item--surgery .retro-customers-facts-strip__icon {
	color: var(--retro-sys-color-caution, var(--retro-sys-color-danger));
}

.retro-customers-facts-strip__text {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-inline-size: 0;
	flex: 1 1 auto;
	overflow: visible;
}

.retro-customers-facts-strip__head {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	overflow: visible;
}

.retro-customers-facts-strip__lbl {
	margin: 0;
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--fact-label, var(--retro-sys-color-on-surface-variant));
	line-height: 1.2;
}

.retro-customers-facts-strip__chip {
	display: flex;
	align-items: center;
	gap: 0.2rem;
	font-size: 0.8rem;
	font-weight: 650;
	line-height: 1.35;
	color: var(--fact-accent, var(--retro-sys-color-on-surface));
}

.retro-customers-facts-strip__item--issues .retro-customers-facts-strip__chip,
.retro-customers-facts-strip__item--disability .retro-customers-facts-strip__chip,
.retro-customers-facts-strip__item--surgery .retro-customers-facts-strip__chip,
.retro-customers-facts-strip__item--goals .retro-customers-facts-strip__chip {
	gap: 0.4rem;
}

.retro-customers-facts-strip__item--issues .retro-customers-facts-strip__chip::before,
.retro-customers-facts-strip__item--disability .retro-customers-facts-strip__chip::before,
.retro-customers-facts-strip__item--surgery .retro-customers-facts-strip__chip::before,
.retro-customers-facts-strip__item--goals .retro-customers-facts-strip__chip::before {
	content: "";
	flex: 0 0 auto;
	inline-size: 0.35em;
	block-size: 0.35em;
	margin-block-start: 0.05em;
	border-radius: 50%;
	background: currentColor;
	box-shadow: 0 0 0 2px color-mix(in srgb, currentColor 18%, transparent);
}

.retro-customers-facts-strip__item--issues {
	--fact-label: var(--retro-sys-color-danger);
	--fact-accent: var(--retro-sys-color-danger);
}

.retro-customers-facts-strip__item--disability {
	--fact-label: var(--retro-sys-color-info, var(--retro-sys-color-brand));
	--fact-accent: var(--retro-sys-color-info, var(--retro-sys-color-brand));
}

.retro-customers-facts-strip__item--surgery {
	--fact-label: var(--retro-sys-color-caution, var(--retro-sys-color-danger));
	--fact-accent: var(--retro-sys-color-caution, var(--retro-sys-color-danger));
}

.retro-customers-facts-strip__item--goals {
	--fact-label: var(--retro-sys-color-ok);
	--fact-accent: var(--retro-sys-color-ok);
}

.retro-customers-facts-strip__chips {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.retro-customers-facts-strip__empty {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--retro-sys-color-on-surface-variant);
}

.retro-root.retro-customers-profile .retro-field:focus-visible,
.retro-root.retro-customers-profile .retro-select:focus-visible,
.retro-root.retro-customers-profile .retro-textarea:focus-visible {
	border-color: var(--retro-sys-color-brand);
	outline: 2px solid color-mix(in srgb, var(--retro-sys-color-brand) 35%, transparent);
	outline-offset: 1px;
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--retro-sys-color-brand) 20%, transparent);
}

@media (prefers-reduced-motion: reduce) {
	.retro-root.retro-customers-profile a.retro-customers-tabs__btn {
		transition: none;
	}
}

