/**
 * Salon profile page — deltas only. Page chrome (surface/border/radius)
 * comes from `.hcgpt-settings-page__content` per the App Shell Tab Contract.
 * Colours use UI Kit tokens (neutral + viola accent). No blue surfaces.
 */

.hcgpt-mb-salon .hcgpt-salon-form { display: block; }

.hcgpt-mb-salon .hcgpt-btn,
.hcgpt-mb-mga-team--embedded .hcgpt-btn,
.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-action,
.hcgpt-mb-mga-team--embedded .hcgpt-mb-rolecard__edit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 12px 22px;
	border-radius: 999px;
	border: 1px solid transparent;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.hcgpt-mb-salon .hcgpt-btn--sm,
.hcgpt-mb-mga-team--embedded .hcgpt-btn--sm,
.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-action,
.hcgpt-mb-mga-team--embedded .hcgpt-mb-rolecard__edit {
	min-height: 36px;
	padding: 8px 16px;
	font-size: 12px;
}

/* Phase 4R-STRICT: calmed primary — dropped the brand-tinted glow shadows; the
   gradient fill stays, elevation is now restrained/neutral. (Inside the app
   shell the V4 contract's `#hcgpt-app-view-settings .hcgpt-btn--primary` wins by
   ID specificity; this keeps the embedded Team surface consistent too.) */
.hcgpt-mb-salon .hcgpt-btn--primary,
.hcgpt-mb-mga-team--embedded .hcgpt-btn--primary {
	background: var(--hcgpt-brand-gradient, var(--hcgpt-brand-1, #6e3aff));
	color: #fff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .12);
}

.hcgpt-mb-salon .hcgpt-btn--primary:hover,
.hcgpt-mb-mga-team--embedded .hcgpt-btn--primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 2px 6px rgba(16, 24, 40, .16);
}

.hcgpt-mb-salon .hcgpt-btn--secondary,
.hcgpt-mb-mga-team--embedded .hcgpt-btn--secondary,
.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-action,
.hcgpt-mb-mga-team--embedded .hcgpt-mb-rolecard__edit {
	background: transparent;
	color: var(--hcgpt-color-text, #262626);
	border-color: rgba(23, 23, 23, .15);
}

.hcgpt-mb-salon .hcgpt-btn--secondary:hover,
.hcgpt-mb-mga-team--embedded .hcgpt-btn--secondary:hover,
.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-action:hover,
.hcgpt-mb-mga-team--embedded .hcgpt-mb-rolecard__edit:hover {
	background: var(--hcgpt-brand-bg, rgba(110, 58, 255, .08));
	border-color: var(--hcgpt-brand-1, #6e3aff);
	color: var(--hcgpt-brand-1, #6e3aff);
}

.hcgpt-mb-salon .hcgpt-btn--ghost,
.hcgpt-mb-mga-team--embedded .hcgpt-btn--ghost {
	background: transparent;
	color: var(--hcgpt-color-text-muted, #737373);
	border: 0;
	text-transform: none;
	letter-spacing: 0;
	font-weight: 600;
}

.hcgpt-mb-salon .hcgpt-btn--danger,
.hcgpt-mb-mga-team--embedded .hcgpt-btn--danger,
.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-action--remove {
	background: color-mix(in srgb, var(--hcgpt-danger, #ef4444) 10%, transparent);
	color: var(--hcgpt-danger, #ef4444);
	border-color: var(--hcgpt-danger, #ef4444);
}

/* ---- Wider Salon workspace ---- */
#hcgpt-app-view-settings .hcgpt-mb-salon.hcgpt-settings-page > .hcgpt-settings-page__header {
	max-width: 800px;
}

#hcgpt-app-view-settings .hcgpt-mb-salon.hcgpt-settings-page .hcgpt-settings-page__content {
	width: min(800px, calc(100vw - 390px));
	max-width: 800px;
}

#hcgpt-app-view-settings .hcgpt-mb-salon.hcgpt-settings-page > .hcgpt-settings-page__header {
	padding-left: 0;
	padding-right: 0;
}

@media (max-width: 1040px) {
#hcgpt-app-view-settings .hcgpt-mb-salon.hcgpt-settings-page .hcgpt-settings-page__content {
	width: min(100%, 800px);
	max-width: 800px;
}
}

/* ---- Tabs ---- */
.hcgpt-mb-salon .hcgpt-salon-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	padding: 5px;
	margin: 0 0 18px;
	background: var(--hcgpt-color-surface, #fff);
	border: 1px solid rgba(23, 23, 23, 0.08);
	border-radius: 999px;
	width: 100%;
	max-width: 100%;
	overflow: auto;
	box-shadow: 0 1px 2px rgba(23, 23, 23, 0.06);
}
.hcgpt-mb-salon .hcgpt-salon-tabs .hcgpt-salon-tab {
	appearance: none;
	border: 0;
	background: transparent;
	flex: 1 1 0;
	min-width: 0;
	cursor: pointer;
	font: inherit;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--hcgpt-color-text-muted, #6b7280);
	padding: 9px 16px;
	border-radius: 999px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: center;
	min-height: 38px;
}
.hcgpt-mb-salon .hcgpt-salon-tabs .hcgpt-salon-tab:hover { color: var(--hcgpt-color-text, #111827); }
/* Phase 4V-2: sober selected tab — was a brand-gradient CTA pill with a purple
   glow that read like a primary action rather than a selected tab. Now a quiet
   brand-tinted pill (matches the salon chip selected state): clear + selected,
   no gradient, no glow. */
.hcgpt-mb-salon .hcgpt-salon-tabs .hcgpt-salon-tab.is-active {
	background: var(--hcgpt-brand-bg, rgba(110, 58, 255, .08));
	color: var(--hcgpt-brand-1, #6e3aff);
	font-weight: 700;
	box-shadow: none;
}

/* ---- Panels ---- */
.hcgpt-mb-salon .hcgpt-salon-panel { display: none; }
.hcgpt-mb-salon .hcgpt-salon-panel.is-active { display: block; }

#hcgpt-app-view-settings .hcgpt-mb-salon .hcgpt-salon-panel.is-active {
	display: grid;
	grid-template-columns: 1fr;
	gap: 30px;
}

#hcgpt-app-view-settings .hcgpt-mb-salon .hcgpt-salon-panel.is-active > .hcgpt-salon-card {
	margin: 0;
}

@media (min-width: 900px) {
	.hcgpt-mb-salon .hcgpt-salon-form > .hcgpt-salon-panel.is-active {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
		align-items: start;
	}

	.hcgpt-mb-salon .hcgpt-salon-form > .hcgpt-salon-panel.is-active > .hcgpt-salon-card {
		margin: 0;
	}

	.hcgpt-mb-salon .hcgpt-salon-form > .hcgpt-salon-panel.is-active > .hcgpt-salon-card:only-child {
		grid-column: 1 / -1;
	}

	.hcgpt-mb-salon .hcgpt-salon-panel[data-panel="identity"].is-active > .hcgpt-salon-card[data-section="identity"] {
		grid-column: 1 / -1;
	}

	.hcgpt-mb-salon .hcgpt-salon-card[data-section="identity"] .hcgpt-salon-card__body {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr);
		gap: 14px;
		align-items: start;
	}
}

/* ---- Cards / fields ---- */
.hcgpt-mb-salon .hcgpt-salon-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 0 !important;
	border-radius: 18px; /* Phase 4V-3: match the standard V4 card radius (was 14px) */
	padding: 0;
	margin: 0 0 24px;
	background: var(--hcgpt-color-surface, #fff);
	box-shadow: none;
	overflow: hidden;
}
.hcgpt-mb-salon .hcgpt-salon-card__header {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px 22px 18px;
	min-height: 96px;
	border-bottom: 0 !important;
	background: var(--hcgpt-settings-surface-2, var(--hcgpt-color-surface-2, #f4f4f5));
}
.hcgpt-mb-salon .hcgpt-salon-card__icon {
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	border-radius: 14px;
	color: var(--hcgpt-brand-1, #6e3aff);
	background: var(--hcgpt-brand-bg, rgba(110, 58, 255, .08));
	border: 1px solid rgba(110, 58, 255, .22);
}
.hcgpt-mb-salon .hcgpt-salon-card__icon .dashicons {
	width: 20px;
	height: 20px;
	font-size: 20px;
	line-height: 1;
}
.hcgpt-mb-salon .hcgpt-salon-card__headline {
	display: grid;
	gap: 4px;
	min-width: 0;
}
.hcgpt-mb-salon .hcgpt-salon-card__eyebrow {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .07em;
	line-height: 1.1;
	text-transform: uppercase;
	color: var(--hcgpt-brand-1, #6e3aff);
}
.hcgpt-mb-salon .hcgpt-salon-card__title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--hcgpt-color-text, #171717);
}
.hcgpt-mb-salon .hcgpt-salon-card__description {
	display: block;
	max-width: 62ch;
	font-size: 13px;
	line-height: 1.45;
	color: var(--hcgpt-color-text-muted, #737373);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.hcgpt-mb-salon .hcgpt-salon-card__body {
	display: grid;
	gap: 14px;
	flex: 1 1 auto;
	padding: 18px 22px 20px;
	background: var(--hcgpt-settings-surface-1, var(--hcgpt-color-surface, #fff));
}
.hcgpt-mb-salon .hcgpt-salon-card__footer {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	padding: 13px 22px;
	min-height: 54px;
	border-top: 0 !important;
	background: var(--hcgpt-settings-surface-3, var(--hcgpt-color-surface-2, #e8e8eb));
}
.hcgpt-mb-salon .hcgpt-salon-card__footer span {
	flex: 0 0 auto;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--hcgpt-color-text, #262626);
}
.hcgpt-mb-salon .hcgpt-salon-card__footer p {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--hcgpt-color-text-muted, #737373);
	text-align: right;
	overflow-wrap: anywhere;
}
.hcgpt-mb-salon .hcgpt-salon-card__hint { margin: 0 0 12px; font-size: 13px; color: var(--hcgpt-color-text-muted, #6b7280); }
/* Phase 4R-STRICT: the field group is a borderless surface (cards/groups
   borderless). The actual control inside carries the visible affordance so the
   value area no longer blends into this surface-2 group. */
.hcgpt-mb-salon .hcgpt-salon-field {
	margin: 0;
	padding: 12px;
	border: 0;
	border-radius: 12px;
	background: var(--hcgpt-settings-surface-2, var(--hcgpt-color-surface-2, #f4f4f5));
}
.hcgpt-mb-salon .hcgpt-salon-field:last-child { margin-bottom: 0; }

/* Phase 4R-STRICT: make the Salon Name / Website / etc. controls clearly
   identifiable — a distinct surface fill + subtle functional border (the bare
   inputs were inheriting the V4 borderless surface-2 treatment, blending into
   the field group). Focus is quiet: a neutral border-color change, no glow.
   ID-scoped so it out-specifies the V4 contract's generic input rule. */
#hcgpt-app-view-settings .hcgpt-mb-salon .hcgpt-salon-field input:not([type="checkbox"]):not([type="radio"]),
#hcgpt-app-view-settings .hcgpt-mb-salon .hcgpt-salon-field select,
#hcgpt-app-view-settings .hcgpt-mb-salon .hcgpt-salon-field textarea {
	background: var(--hcgpt-settings-surface-1, var(--hcgpt-color-surface, #fff));
	border: 1px solid var(--hcgpt-color-border, #e5e7eb);
}
#hcgpt-app-view-settings .hcgpt-mb-salon .hcgpt-salon-field input:not([type="checkbox"]):not([type="radio"]):focus,
#hcgpt-app-view-settings .hcgpt-mb-salon .hcgpt-salon-field select:focus,
#hcgpt-app-view-settings .hcgpt-mb-salon .hcgpt-salon-field textarea:focus {
	background: var(--hcgpt-settings-surface-1, var(--hcgpt-color-surface, #fff));
	border-color: var(--hcgpt-color-border-strong, #d0d0d5);
	box-shadow: none;
}
.hcgpt-mb-salon .hcgpt-salon-field__head {
	display: grid;
	gap: 3px;
	margin: 0 0 10px;
}
.hcgpt-mb-salon .hcgpt-salon-field__label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--hcgpt-color-text-muted, #737373);
	margin: 0;
}
.hcgpt-mb-salon .hcgpt-salon-field__hint {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.4;
	color: var(--hcgpt-color-text-muted, #737373);
}

/* ---- Chips (multiselect / catalog) ---- */
.hcgpt-mb-salon .hcgpt-salon-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hcgpt-mb-salon .hcgpt-salon-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 700;
	border: 1px solid rgba(23, 23, 23, 0.15);
	background: var(--hcgpt-color-surface, #fff);
	color: var(--hcgpt-color-text, #262626);
	padding: 7px 13px;
	border-radius: 999px;
	transition: .12s;
}
.hcgpt-mb-salon .hcgpt-salon-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.hcgpt-mb-salon .hcgpt-salon-chip:hover { border-color: var(--hcgpt-color-text-muted, #9ca3af); }
.hcgpt-mb-salon .hcgpt-salon-chip.is-on,
.hcgpt-mb-salon .hcgpt-salon-chip:has(input:checked) {
	background: var(--hcgpt-brand-bg, rgba(110, 58, 255, .08));
	border-color: var(--hcgpt-brand-1, #6e3aff);
	color: var(--hcgpt-brand-1, #6e3aff);
	box-shadow: none;
	font-weight: 650;
}

/* ---- Searchable multiselect (catalog: brands / lines) ---- */
.hcgpt-mb-salon .hcgpt-salon-ms { position: relative; }
.hcgpt-mb-salon .hcgpt-salon-ms__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(180px, 34%);
	gap: 12px;
	align-items: start;
}
.hcgpt-mb-salon .hcgpt-salon-ms__picker {
	position: relative;
	min-width: 0;
}
.hcgpt-mb-salon .hcgpt-salon-ms__search {
	width: 100%;
	font: inherit;
	font-size: 14px;
	color: var(--hcgpt-color-text, #111827);
	background: var(--hcgpt-color-surface, #fff);
	border: 1px solid var(--hcgpt-color-border, #e5e7eb);
	border-radius: var(--hcgpt-radius, 12px);
	padding: 10px 13px;
}
/* Phase 4R-STRICT: quiet focus — neutral border-color change, no purple halo. */
.hcgpt-mb-salon .hcgpt-salon-ms__search:focus {
	outline: 0;
	border-color: var(--hcgpt-color-border-strong, #d0d0d5);
	box-shadow: none;
}
.hcgpt-mb-salon .hcgpt-salon-ms__menu {
	position: absolute;
	z-index: 30;
	left: 0;
	right: 0;
	margin-top: 4px;
	max-height: 168px;
	overflow-y: auto;
	background: var(--hcgpt-color-surface, #fff);
	border: 1px solid var(--hcgpt-color-border, #e5e7eb);
	border-radius: var(--hcgpt-radius, 12px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
	padding: 5px;
}
.hcgpt-mb-salon .hcgpt-salon-ms__opt {
	display: block;
	width: 100%;
	text-align: left;
	appearance: none;
	border: 0;
	background: transparent;
	cursor: pointer;
	font: inherit;
	font-size: 13.5px;
	color: var(--hcgpt-color-text, #111827);
	padding: 8px 10px;
	border-radius: 8px;
}
.hcgpt-mb-salon .hcgpt-salon-ms__opt:hover { background: var(--hcgpt-color-surface-2, #f3f4f6); }
.hcgpt-mb-salon .hcgpt-salon-ms__empty {
	padding: 9px 10px;
	font-size: 13px;
	color: var(--hcgpt-color-text-muted, #6b7280);
}
.hcgpt-mb-salon .hcgpt-salon-ms__selected {
	min-height: 42px;
	border: 1px solid var(--hcgpt-color-border, #e5e7eb);
	border-radius: var(--hcgpt-radius, 12px);
	background: var(--hcgpt-color-surface-2, #f3f4f6);
	padding: 9px;
}
.hcgpt-mb-salon .hcgpt-salon-ms__selected-title {
	margin: 0 0 7px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: var(--hcgpt-color-text-muted, #6b7280);
}
.hcgpt-mb-salon .hcgpt-salon-ms__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hcgpt-mb-salon .hcgpt-salon-mschip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	font-weight: 550;
	background: var(--hcgpt-brand-bg, rgba(110, 58, 255, .08));
	color: var(--hcgpt-brand-1, #6e3aff);
	padding: 6px 6px 6px 12px;
	border-radius: 999px;
	box-shadow: inset 0 0 0 1.5px var(--hcgpt-brand-1, #6e3aff);
}
.hcgpt-mb-salon .hcgpt-salon-mschip__x {
	appearance: none;
	border: 0;
	background: transparent;
	cursor: pointer;
	color: inherit;
	font-size: 17px;
	line-height: 1;
	width: 20px;
	height: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
}
.hcgpt-mb-salon .hcgpt-salon-mschip__x:hover { background: rgba(110, 58, 255, .18); }
.hcgpt-mb-salon .hcgpt-salon-ms__none {
	font-size: 12.5px;
	color: var(--hcgpt-color-text-muted, #9ca3af);
}
.hcgpt-mb-salon .hcgpt-salon-ms__chips:not(:empty) + .hcgpt-salon-ms__none { display: none; }
.hcgpt-mb-salon .hcgpt-salon-ms__none[hidden] { display: none; }

@media (max-width: 720px) {
	.hcgpt-mb-salon .hcgpt-salon-ms__body {
		grid-template-columns: 1fr;
	}

	.hcgpt-mb-salon .hcgpt-salon-card__header {
		padding: 18px 16px 16px;
	}

	.hcgpt-mb-salon .hcgpt-salon-card__body {
		padding: 16px;
	}

	.hcgpt-mb-salon .hcgpt-salon-card__footer {
		display: grid;
		padding: 13px 16px;
	}

	.hcgpt-mb-salon .hcgpt-salon-card__footer p {
		text-align: left;
	}

	.hcgpt-mb-salon .hcgpt-salon-card[data-section="identity"] .hcgpt-salon-card__body {
		display: block;
	}
}

/* ---- Segmented (single) ---- */
.hcgpt-mb-salon .hcgpt-salon-seg { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; background: var(--hcgpt-color-surface-2, #f3f4f6); border-radius: 10px; }
.hcgpt-mb-salon .hcgpt-salon-seg__opt {
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	color: var(--hcgpt-color-text, #111827);
	padding: 7px 14px;
	border-radius: 8px;
	transition: .12s;
}
.hcgpt-mb-salon .hcgpt-salon-seg__opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.hcgpt-mb-salon .hcgpt-salon-seg__opt.is-on,
.hcgpt-mb-salon .hcgpt-salon-seg__opt:has(input:checked) {
	background: var(--hcgpt-brand-gradient, var(--hcgpt-brand-1, #6e3aff));
	color: #fff;
	box-shadow: var(--hcgpt-brand-shadow, 0 6px 16px rgba(110, 58, 255, .28));
}

/* ---- Toggle (bool) ---- */
.hcgpt-mb-salon .hcgpt-salon-toggle { display: inline-flex; cursor: pointer; }
.hcgpt-mb-salon .hcgpt-salon-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.hcgpt-mb-salon .hcgpt-salon-toggle__sw {
	width: 42px; height: 24px; border-radius: 999px;
	background: var(--hcgpt-gray-300, #d1d5db);
	position: relative; transition: .15s;
}
.hcgpt-mb-salon .hcgpt-salon-toggle__sw::after {
	content: ""; position: absolute; top: 2px; left: 2px;
	width: 20px; height: 20px; border-radius: 50%; background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: .15s;
}
.hcgpt-mb-salon .hcgpt-salon-toggle input:checked + .hcgpt-salon-toggle__sw { background: var(--hcgpt-brand-gradient, var(--hcgpt-brand-1, #6e3aff)); }
.hcgpt-mb-salon .hcgpt-salon-toggle input:checked + .hcgpt-salon-toggle__sw::after { left: 20px; }

/* ---- Read-only pills / text ---- */
.hcgpt-mb-salon .hcgpt-salon-pill {
	display: inline-flex; align-items: center;
	font-size: 13px; font-weight: 600;
	background: var(--hcgpt-brand-bg, rgba(110, 58, 255, .08));
	color: var(--hcgpt-brand-1, #6e3aff);
	padding: 5px 11px; border-radius: 999px; margin: 0 6px 6px 0;
}
.hcgpt-mb-salon .hcgpt-salon-pill--no { background: var(--hcgpt-color-surface-2, #f3f4f6); color: var(--hcgpt-color-text-muted, #6b7280); }
.hcgpt-mb-salon .hcgpt-salon-readtext { margin: 0; font-size: 14px; color: var(--hcgpt-color-text, #111827); white-space: pre-wrap; }
.hcgpt-mb-salon .hcgpt-salon-empty { color: var(--hcgpt-color-text-muted, #9ca3af); font-size: 13px; }

/* ---- Textarea ---- */
.hcgpt-mb-salon .hcgpt-salon-textarea {
	width: 100%; font: inherit; font-size: 14px;
	color: var(--hcgpt-color-text, #111827);
	background: var(--hcgpt-color-surface, #fff);
	border: 1px solid var(--hcgpt-color-border, #e5e7eb);
	border-radius: var(--hcgpt-radius, 12px);
	padding: 11px 13px; resize: vertical;
}
/* Phase 4R-STRICT: quiet focus — neutral border-color change, no purple halo. */
.hcgpt-mb-salon .hcgpt-salon-textarea:focus {
	outline: 0;
	border-color: var(--hcgpt-color-border-strong, #d0d0d5);
	box-shadow: none;
}

/* ---- Team roster ---- */
.hcgpt-mb-salon .hcgpt-salon-roster { list-style: none; margin: 0; padding: 0; }
.hcgpt-mb-salon .hcgpt-salon-roster__item {
	display: flex; align-items: center; justify-content: space-between;
	padding: 11px 0; border-bottom: 1px solid var(--hcgpt-color-surface-2, #f3f4f6);
}
.hcgpt-mb-salon .hcgpt-salon-roster__item:last-child { border-bottom: 0; }
.hcgpt-mb-salon .hcgpt-salon-roster__name { font-weight: 600; font-size: 14px; }
.hcgpt-mb-salon .hcgpt-salon-roster__status { font-size: 12px; color: var(--hcgpt-color-text-muted, #6b7280); }

/* ---- Actions ---- */
/* Phase 4R-STRICT: the save/action row was floating on the page background. Give
   it its own subtle surface (surface-2 + radius + padding) so the form visually
   closes. No hard border, no decorative glow. */
.hcgpt-mb-salon .hcgpt-salon-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 18px;
	padding: 14px 16px;
	min-height: 54px;
	background: var(--hcgpt-settings-surface-3, var(--hcgpt-color-surface-2, #e8e8eb));
	border-radius: 14px;
}
/* salon-page.js sets [hidden] on the "Save Salon profile" actions whenever the
   active panel lives OUTSIDE the salon form (Team, and external operational
   sub-tabs like Hours / Services). Respect it generically — the base
   `display:flex` above would otherwise override the [hidden] attribute. */
.hcgpt-mb-salon .hcgpt-salon-actions[hidden] { display: none; }
.hcgpt-mb-salon .hcgpt-salon-status { font-size: 13px; color: var(--hcgpt-color-text-muted, #6b7280); margin-right: auto; }
.hcgpt-mb-salon .hcgpt-salon-status.is-ok { color: var(--hcgpt-success, #10b981); }
.hcgpt-mb-salon .hcgpt-salon-status.is-error { color: var(--hcgpt-danger, #ef4444); }

/* ---- Embedded Team manager (Salon → "Team & Roles" sub-tab) ----
   The team manager is the canonical MGATeamPage rendered embedded. Trim its
   standalone-page chrome (owner avatar/name/"Salon Owner" pill, marketing copy,
   empty-state icon+benefit cards) so it reads as a cohesive salon section —
   merging invite + seats + roster with the existing Team & Roles content
   instead of grafting the whole page in. Backend/logic stays single-sourced. */
/* Strip standalone chrome: owner hero (avatar/name/role pill/copy), the
   full-width seat PROGRESS BAR (orphaned band), and the redundant marketing
   empty-state card — the invite form below is the single affordance. */
.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-hero__header,
.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-hero__copy,
.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-hero__progress,
.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-hero,
.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-empty {
	display: none;
}
.hcgpt-mb-salon .hcgpt-mb-mga-team--embedded {
	width: 100%;
	max-width: none;
	margin: 0;
}
.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-hero,
.hcgpt-mb-mga-team--embedded.hcgpt-mb-card {
	width: 100%;
	max-width: none;
	background: none;
	border: 0;
	box-shadow: none;
	padding: 0;
	margin: 0 0 14px;
}
/* Seat usage = a small neutral pill, not a full-width band. */
.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-hero__seats {
	display: inline-flex;
	align-items: center;
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--hcgpt-color-text-muted, #6b7280);
	background: var(--hcgpt-color-surface-2, #f3f4f6);
	padding: 5px 11px;
	border-radius: 999px;
}
/* "Save Salon profile" belongs to the salon fields. Hide it on the
   Team & Roles sub-tab (the team panel lives OUTSIDE the salon form, so the
   save button is otherwise always visible). `:has()` is robust vs JS timing. */
.hcgpt-mb-salon:has( .hcgpt-salon-panel[data-panel="team"].is-active ) .hcgpt-salon-actions {
	display: none;
}

/* Roles: owner/member presentation cards (avatar + name + role). */
.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-hero-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	margin: 0 0 16px;
	align-items: stretch;
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-overview {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 24px;
	margin: 0;
	padding: 18px 20px;
	border: 0;
	border-radius: 18px;
	background: var(--hcgpt-settings-surface-2, var(--hcgpt-color-surface-2, #f4f4f5));
	box-shadow: none;
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-overview__header {
	min-width: 0;
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-overview__kicker {
	display: block;
	margin: 0 0 4px;
	color: var(--hcgpt-brand-1, #6e3aff);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-introline {
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	color: var(--hcgpt-color-text-muted, #6b7280);
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-overview__metrics {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

@media (max-width: 760px) {
	.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-hero-row {
		grid-template-columns: 1fr;
	}

	.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-overview__metrics {
		justify-content: flex-start;
	}

	.hcgpt-mb-presentation-modal {
		padding: 12px;
	}

	.hcgpt-mb-presentation-modal__inner {
		padding: 20px 16px 16px;
		border-radius: 16px;
	}
}

.hcgpt-mb-rolecard {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
	margin: 0;
	border: 0;
	border-radius: 18px;
	background: var(--hcgpt-settings-surface-2, var(--hcgpt-color-surface-2, #f4f4f5));
	box-shadow: none;
}
.hcgpt-mb-rolecard__avatar {
	width: 72px;
	height: 72px;
	border-radius: var(--hcgpt-photo-shape-left-md, 18px 0 0 18px);
	object-fit: cover;
	overflow: hidden;
	flex: 0 0 auto;
}
.hcgpt-mb-rolecard__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-right: auto;
	min-width: 0;
}
.hcgpt-mb-rolecard__name {
	font-weight: 650;
	font-size: 14px;
	color: var(--hcgpt-color-text, #111827);
}
.hcgpt-mb-rolecard__role {
	font-size: 13px;
	color: var(--hcgpt-color-text-muted, #6b7280);
}
.hcgpt-mb-rolecard__professional {
	font-size: 12px;
	color: var(--hcgpt-color-text-muted, #6b7280);
}
.hcgpt-mb-rolecard__badge {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--hcgpt-brand-1, #6e3aff);
	background: var(--hcgpt-brand-bg, rgba(110, 58, 255, .08));
	padding: 4px 12px;
	border-radius: 999px;
	white-space: nowrap;
}
.hcgpt-mb-rolecard__bio {
	margin: 4px 0 0;
	font-size: 13px;
	color: var(--hcgpt-color-text, #111827);
	white-space: pre-wrap;
}

/* Owner presentation modal */
.hcgpt-mb-presentation-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	margin: 0;
	background: rgba(23, 23, 23, .45);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}
.hcgpt-mb-presentation-modal[hidden] {
	display: none;
}
.hcgpt-mb-presentation-modal__inner {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	padding: 28px 24px 24px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 24px 64px -16px rgba(23, 23, 23, .28), 0 8px 24px -8px rgba(23, 23, 23, .12);
}

/* Legacy non-modal fallback */
.hcgpt-mb-presentation-form {
	margin: -8px 0 16px;
	padding: 14px;
	border: 1px solid var(--hcgpt-color-border, #e5e7eb);
	border-radius: var(--hcgpt-radius, 12px);
	background: var(--hcgpt-color-surface, #fff);
}
.hcgpt-mb-presentation-label {
	display: block;
	font-size: 13px;
	font-weight: 650;
	margin: 0 0 6px;
	color: var(--hcgpt-color-text, #111827);
}
.hcgpt-mb-presentation-textarea {
	width: 100%;
	font: inherit;
	font-size: 14px;
	color: var(--hcgpt-color-text, #111827);
	background: var(--hcgpt-color-surface-2, #f3f4f6);
	border: 1px solid var(--hcgpt-color-border, #e5e7eb);
	border-radius: var(--hcgpt-radius, 12px);
	padding: 10px 12px;
	resize: vertical;
}
/* Phase 4R-STRICT: quiet focus — neutral border-color change, no purple halo. */
.hcgpt-mb-presentation-textarea:focus {
	outline: 0;
	border-color: var(--hcgpt-color-border-strong, #d0d0d5);
	box-shadow: none;
}
.hcgpt-mb-presentation-select {
	width: 100%;
	min-height: 40px;
	margin: 0 0 12px;
	font: inherit;
	color: var(--hcgpt-color-text, #111827);
	background: var(--hcgpt-color-surface-2, #f3f4f6);
	border: 1px solid var(--hcgpt-color-border, #e5e7eb);
	border-radius: var(--hcgpt-radius, 12px);
	padding: 8px 12px;
}
.hcgpt-mb-presentation-form .hcgpt-mb-mga-team__skills,
.hcgpt-mb-presentation-modal__inner .hcgpt-mb-mga-team__skills {
	margin-top: 10px;
}
.hcgpt-mb-presentation-form .hcgpt-mb-mga-team__bookable-services,
.hcgpt-mb-presentation-modal__inner .hcgpt-mb-mga-team__bookable-services {
	margin-top: 10px;
}
.hcgpt-mb-presentation-form .hcgpt-mb-mga-team__skills-heading,
.hcgpt-mb-presentation-modal__inner .hcgpt-mb-mga-team__skills-heading {
	gap: 8px;
}
.hcgpt-mb-presentation-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
}
.hcgpt-mb-presentation-status {
	margin-right: auto;
	font-size: 13px;
	color: var(--hcgpt-color-text-muted, #6b7280);
}
.hcgpt-mb-team-row-bio {
	margin: 4px 0 0;
	font-size: 13px;
	color: var(--hcgpt-color-text-muted, #6b7280);
	white-space: pre-wrap;
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-row {
	display: flex;
	flex-direction: column;
	min-height: 260px;
	gap: 0;
	padding: 0;
	overflow: hidden;
	border-radius: 18px;
	background: var(--hcgpt-settings-surface-1, var(--hcgpt-color-surface, #fff));
	border: 0;
	box-shadow: none;
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-card__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1 1 auto;
	min-width: 0;
	padding: 20px 16px 16px;
	background: var(--hcgpt-settings-surface-1, var(--hcgpt-color-surface, #fff));
	text-align: center;
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-card__title {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--hcgpt-color-text, #171717);
	overflow-wrap: anywhere;
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-card__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	font-size: 13px;
	line-height: 1.55;
	color: var(--hcgpt-color-text-muted, #737373);
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-actions {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 14px 16px 16px;
	min-height: 54px;
	border-top: 0 !important;
	background: var(--hcgpt-settings-surface-3, var(--hcgpt-color-surface-2, #e8e8eb));
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-card__media {
	display: flex;
	justify-content: center;
	margin-bottom: 14px;
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-card__avatar {
	display: grid;
	place-items: center;
	width: 76px;
	height: 76px;
	border-radius: var(--hcgpt-photo-shape-left-md, 18px 0 0 18px);
	object-fit: cover;
	background: var(--hcgpt-brand-bg, rgba(110, 58, 255, .08));
	color: var(--hcgpt-brand-1, #6e3aff);
	border: 1px solid rgba(110, 58, 255, .22);
	font-size: 20px;
	font-weight: 800;
	letter-spacing: .04em;
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-card__main {
	min-width: 0;
	width: 100%;
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-card__email {
	margin: 6px 0 0;
	color: var(--hcgpt-color-text-muted, #737373);
	font-size: 12px;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-card__meta > span:not(.hcgpt-mb-status-pill) {
	display: inline-flex;
	max-width: 100%;
	min-height: 24px;
	align-items: center;
	padding: 3px 9px;
	border: 1px solid rgba(23, 23, 23, .08);
	border-radius: 999px;
	background: var(--hcgpt-color-surface-2, #f4f4f5);
	color: var(--hcgpt-color-text-muted, #737373);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-card__meta .hcgpt-mb-status-pill {
	font-weight: 700;
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-actions {
	width: 100%;
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-action--edit {
	width: 100%;
	background: var(--hcgpt-color-surface, #fff);
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-edit-row {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(23, 23, 23, .45);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	grid-column: unset;
	margin: 0;
	border: 0;
	border-radius: 0;
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-edit-row[hidden] {
	display: none;
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-edit-row > .hcgpt-mb-mga-team__edit-form {
	position: relative;
	width: 100%;
	max-width: 620px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	background: #fff;
	border-radius: 20px;
	padding: 28px 24px 24px;
	box-shadow: 0 24px 64px -16px rgba(23, 23, 23, .28), 0 8px 24px -8px rgba(23, 23, 23, .12);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-mga-team__edit-actions {
	justify-content: flex-end;
	gap: 10px;
	flex-wrap: wrap;
}

@media (max-width: 1120px) {
	.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-grid {
		grid-template-columns: 1fr;
	}

	.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-edit-row {
		padding: 12px;
	}

	.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-edit-row > .hcgpt-mb-mga-team__edit-form {
		padding: 20px 16px 16px;
		border-radius: 16px;
		grid-template-columns: 1fr;
	}

	.hcgpt-mb-mga-team--embedded .hcgpt-mb-mga-team__edit-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.hcgpt-mb-mga-team--embedded .hcgpt-mb-mga-team__edit-actions > * {
		width: 100%;
	}
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-mga-member,
.hcgpt-mb-mga-team--embedded .hcgpt-mb-mga-owner {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-mga-owner {
	background: var(--hcgpt-brand-gradient, var(--hcgpt-brand-1, #6e3aff));
	color: #fff;
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-mga-member {
	background: var(--hcgpt-brand-bg, rgba(110, 58, 255, .08));
	color: var(--hcgpt-brand-1, #6e3aff);
	border: 1px solid rgba(110, 58, 255, .24);
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-mga-team__invite-accordion {
	margin: 22px 0 0;
	background: var(--hcgpt-settings-surface-1, var(--hcgpt-color-surface, #fff));
	border: 0;
	border-radius: 18px;
	box-shadow: none;
	overflow: hidden;
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-mga-team__invite-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 20px 24px;
	min-height: 96px;
	background: var(--hcgpt-settings-surface-2, var(--hcgpt-color-surface-2, #f4f4f5));
	cursor: pointer;
	list-style: none;
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-mga-team__invite-summary::-webkit-details-marker {
	display: none;
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-mga-team__invite-summary strong {
	display: block;
	font-size: 18px;
	font-weight: 700;
	color: var(--hcgpt-color-text, #171717);
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-mga-team__invite-summary small {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	color: var(--hcgpt-color-text-muted, #737373);
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-mga-team__invite-chevron {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex: 0 0 auto;
	border-radius: 14px;
	border: 1px solid rgba(110, 58, 255, .24);
	background: var(--hcgpt-brand-bg, rgba(110, 58, 255, .08));
	color: var(--hcgpt-brand-1, #6e3aff);
	font-size: 0;
	transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-mga-team__invite-chevron::before {
	content: "";
	width: 10px;
	height: 10px;
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) translate(-1px, -1px);
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-mga-team__invite-accordion[open] .hcgpt-mb-mga-team__invite-chevron {
	transform: rotate(180deg);
	background: var(--hcgpt-brand-gradient, var(--hcgpt-brand-1, #6e3aff));
	border-color: transparent;
	color: #fff;
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-mga-team__invite-body {
	padding: 0 24px 24px;
	background: var(--hcgpt-settings-surface-1, var(--hcgpt-color-surface, #fff));
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-role-legend__card {
	display: flex;
	flex-direction: column;
	min-height: 270px;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 18px;
	background: var(--hcgpt-settings-surface-1, var(--hcgpt-color-surface, #fff));
	box-shadow: none;
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-role-legend__name {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 18px 18px 14px;
	min-height: 96px;
	border-bottom: 0 !important;
	background: var(--hcgpt-settings-surface-2, var(--hcgpt-color-surface-2, #f4f4f5));
	font-size: 15px;
	font-weight: 700;
	color: var(--hcgpt-color-text, #171717);
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-role-legend__name::before {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	flex: 0 0 auto;
	border-radius: 12px;
	border: 1px solid rgba(110, 58, 255, .22);
	background: var(--hcgpt-brand-bg, rgba(110, 58, 255, .08));
	font-family: dashicons;
	font-size: 18px;
	color: rgba(110, 58, 255, .7);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

[data-role="colorist"] .hcgpt-mb-team-role-legend__name::before      { content: "\f309"; }
[data-role="stylist"] .hcgpt-mb-team-role-legend__name::before       { content: "\f107"; }
[data-role="receptionist"] .hcgpt-mb-team-role-legend__name::before  { content: "\f508"; }

.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-role-legend__desc {
	flex: 1 1 auto;
	min-height: 90px;
	margin: 0;
	padding: 16px 18px;
	background: var(--hcgpt-settings-surface-1, var(--hcgpt-color-surface, #fff));
	font-size: 13px;
	line-height: 1.5;
	color: var(--hcgpt-color-text-muted, #737373);
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-role-legend__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 0;
	padding: 14px 18px 16px;
	min-height: 54px;
	border-top: 0 !important;
	background: var(--hcgpt-settings-surface-3, var(--hcgpt-color-surface-2, #e8e8eb));
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-role-legend__tag {
	padding: 4px 12px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-role-legend__tag--yes {
	background: var(--hcgpt-brand-bg, rgba(110, 58, 255, .08));
	border: 1px solid rgba(110, 58, 255, .24);
	color: var(--hcgpt-brand-1, #6e3aff);
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-role-legend__tag--no {
	background: var(--hcgpt-color-surface-2, #f4f4f5);
	border: 1px solid rgba(23, 23, 23, .08);
	color: var(--hcgpt-color-text-muted, #737373);
	opacity: 1;
}

.hcgpt-mb-mga-team--embedded .hcgpt-mb-team-role-legend__sync-note {
	padding: 14px 18px;
	border: 0;
	border-radius: 18px;
	background: var(--hcgpt-settings-surface-2, var(--hcgpt-color-surface-2, #f4f4f5));
	box-shadow: none;
}

/* =================================================================
   STYLEGUIDE NORMALIZATION — User Settings parity (CSS-only)
   =================================================================
   Source of truth: docs/USER_SETTINGS_STYLEGUIDE.md
   Allinea Salon alla grammatica comune delle altre tab settings:
   colonna 800px, card unica (radius 14 + bordo via token + niente
   ombra pesante), eyebrow mono-muted (era viola), pannelli a colonna
   singola come le altre pagine, bordi via token (neutri anche in
   dark). Override page-scoped/additivi: nessuna modifica a markup,
   dati, schema, permessi o logica salone.
   ================================================================= */

/* Colonna contenuto e header a 800px — come tutte le altre tab
   (era width: min(1080px, …); decisione bloccata: nessuna eccezione). */
#hcgpt-app-view-settings .hcgpt-mb-salon.hcgpt-settings-page .hcgpt-settings-page__content {
	width: 100%;
	max-width: 800px;
}

#hcgpt-app-view-settings .hcgpt-mb-salon.hcgpt-settings-page > .hcgpt-settings-page__header {
	max-width: 800px;
	/* Phase 4V-3: 0 inline padding so the title shares the content axis (x=449).
	   The 12px pushed the title to x=461, off-axis from the cards below it. */
	padding-left: 0;
	padding-right: 0;
}

/* Pannelli sottotab a colonna singola: card impilate come nelle altre
   tab (era grid 2 colonne ≥900px → sembrava un sistema diverso). */
@media (min-width: 900px) {
	#hcgpt-app-view-settings .hcgpt-mb-salon .hcgpt-salon-form > .hcgpt-salon-panel.is-active {
		display: grid;
		grid-template-columns: 1fr;
		gap: 30px;
	}
}

/* Card unica: radius 14, bordo via token, niente ombra pesante
   (le altre tab usano card border-only). */
.hcgpt-mb-salon .hcgpt-salon-card {
	border: 0 !important;
	border-radius: 18px; /* Phase 4V-3: match the standard V4 card radius (was 14px) */
	box-shadow: none;
}

/* Eyebrow mono-muted (era viola, weight 800) — guide §3. */
.hcgpt-mb-salon .hcgpt-salon-card__eyebrow {
	font-family: var(--hcgpt-font-mono, "Roboto Mono", Menlo, Consolas, monospace);
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--hcgpt-color-text-muted);
}

/* Subtab nav: bordo via token (neutro in dark, era rgba near-black). */
.hcgpt-mb-salon .hcgpt-salon-tabs {
	border-color: var(--hcgpt-color-border);
}

/* Choice chips: padding e peso allineati allo styleguide (guide §4). */
.hcgpt-mb-salon .hcgpt-salon-chip {
	padding: 8px 16px;
	font-weight: 600;
	border-color: var(--hcgpt-color-border);
}
