/* ================================================================
   Vizion — Account dashboard (scoped to .page-account-dashboard)
   Maestra admin blue theme — global --brand-primary* in custom.css
   ================================================================ */

@view-transition {
	navigation: auto;
}

@media (prefers-reduced-motion: reduce) {
	@view-transition {
		navigation: none;
	}
}

.page-account-dashboard {
	height: 100vh;
	overflow: hidden;
	--brand-primary: #00a1ff;
	--brand-primary-hover: #0088d9;
	--brand-primary-soft: #ebf3fe;
	--brand-primary-rgb: 0, 161, 255;
	--mc-sidebar-text: var(--primary-color);
	--mc-sidebar-muted: #6b7a8c;
	--mc-sidebar-bg: #f3f6f9;
	--mc-sidebar-hover: rgba(15, 23, 42, 0.05);
	--mc-nav-rail: rgba(15, 23, 42, 0.10);
	--mc-page-bg: #ffffff;
	--mc-surface: #ffffff;
	--mc-border: #dfe5ef;
	--bs-primary: #00a1ff;
	--bs-primary-rgb: 0, 161, 255;
	--bs-link-color: #0088d9;
	--bs-link-hover-color: #00a1ff;
	--mc-scroll-size: 5px;
	--mc-scroll-thumb: rgba(15, 23, 42, 0.16);
	--mc-scroll-thumb-hover: rgba(15, 23, 42, 0.28);
	--mc-scroll-thumb-active: rgba(15, 23, 42, 0.38);
	--mc-bottomnav-h: 56px;
	--mc-sidebar-expanded: 256px;
	--mc-sidebar-collapsed: 72px;
	/* Colonnes communes listes Contacts / Tiers / Apporteurs : même rythme au basculement.
	   Statut = 9rem : pilule 118px + padding cellule, aligné sur Type (tiers). */
	--mc-col-name: 18rem;
	--mc-col-favorite: 5.5rem;
	--mc-col-assigned: 6rem;
	--mc-col-status: 9rem;
	--mc-col-country: 7.5rem;
	--mc-col-email: 14rem;
	--mc-col-phone: 12rem;
	--mc-col-tags: 12.5rem;
	--mc-col-created: 8rem;
	--mc-col-apporteur: 7.25rem;
	--mc-col-actions: 9.5rem;
}

/* SweetAlert2 modal open — preserve viewport-locked dashboard layout */
html.swal2-shown:not(.swal2-toast-shown) body {
	padding-right: 0 !important;
}

html.swal2-shown:not(.swal2-toast-shown) .page-account-dashboard {
	height: 100vh;
	min-height: 0;
}

.page-account-dashboard ::selection {
	color: var(--primary-color);
	background-color: rgba(var(--brand-primary-rgb), 0.35);
	filter: none;
}

.page-account-dashboard ::-moz-selection {
	color: var(--primary-color);
	background-color: rgba(var(--brand-primary-rgb), 0.35);
}

.page-account-dashboard a:hover,
.page-account-dashboard a:focus-visible {
	color: var(--brand-primary-hover);
}

.page-account-dashboard .btn-primary {
	background-color: #00a1ff;
	border-color: #00a1ff;
	color: #FFFFFF;
}

.page-account-dashboard .btn-primary:hover,
.page-account-dashboard .btn-primary:focus,
.page-account-dashboard .btn-primary:active {
	background-color: #0088d9;
	border-color: #0088d9;
	color: #FFFFFF;
}

.page-account-dashboard .form-check-input:checked {
	background-color: var(--brand-primary);
	border-color: var(--brand-primary);
}

.page-account-dashboard .form-check-input:focus {
	border-color: var(--brand-primary);
	box-shadow: 0 0 0 0.2rem rgba(var(--brand-primary-rgb), 0.2);
}

.page-account-dashboard .text-primary,
.page-account-dashboard .bg-primary-subtle {
	color: var(--brand-primary) !important;
}

.page-account-dashboard .bg-primary-subtle {
	background-color: var(--brand-primary-soft) !important;
}

/* --- Scrollbars (overlay, reveal on hover) ---------------------- */
.page-account-dashboard :is(
	.mc-dash__scroll-surface,
	.mc-dash__body,
	.mc-dash__search-results,
	.mc-dash__settings-tabs,
	.mc-dash__tiers-table-wrap,
	.mc-dash__contacts-table-wrap,
	.mc-dash__apporteurs-table-wrap,
	.mc-dash__messages-inbox-table-wrap,
	.mc-dash__messages-conv-list,
	.mc-dash__messages-thread,
	.mc-dash__messages-drawer-body,
	.mc-dash__messages-new-conv,
	.mm-email-shadow-host
) {
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: transparent transparent;
}

.page-account-dashboard :is(
	.mc-dash__scroll-surface,
	.mc-dash__body,
	.mc-dash__search-results,
	.mc-dash__settings-tabs,
	.mc-dash__tiers-table-wrap,
	.mc-dash__contacts-table-wrap,
	.mc-dash__apporteurs-table-wrap,
	.mc-dash__messages-inbox-table-wrap,
	.mc-dash__messages-conv-list,
	.mc-dash__messages-thread,
	.mc-dash__messages-drawer-body,
	.mc-dash__messages-new-conv,
	.mm-email-shadow-host
)::-webkit-scrollbar {
	width: var(--mc-scroll-size);
	height: var(--mc-scroll-size);
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
}

.page-account-dashboard :is(
	.mc-dash__scroll-surface,
	.mc-dash__body,
	.mc-dash__search-results,
	.mc-dash__settings-tabs,
	.mc-dash__tiers-table-wrap,
	.mc-dash__contacts-table-wrap,
	.mc-dash__apporteurs-table-wrap,
	.mc-dash__messages-inbox-table-wrap,
	.mc-dash__messages-conv-list,
	.mc-dash__messages-thread,
	.mc-dash__messages-drawer-body,
	.mc-dash__messages-new-conv,
	.mm-email-shadow-host
)::-webkit-scrollbar-track {
	background: transparent;
}

.page-account-dashboard :is(
	.mc-dash__scroll-surface,
	.mc-dash__body,
	.mc-dash__search-results,
	.mc-dash__settings-tabs,
	.mc-dash__tiers-table-wrap,
	.mc-dash__contacts-table-wrap,
	.mc-dash__apporteurs-table-wrap,
	.mc-dash__messages-inbox-table-wrap,
	.mc-dash__messages-conv-list,
	.mc-dash__messages-thread,
	.mc-dash__messages-drawer-body,
	.mc-dash__messages-new-conv,
	.mm-email-shadow-host
)::-webkit-scrollbar-thumb {
	background-color: transparent;
	border-radius: 4px;
	transition: background-color 0.15s ease;
}

.page-account-dashboard :is(
	.mc-dash__scroll-surface,
	.mc-dash__body,
	.mc-dash__search-results,
	.mc-dash__settings-tabs,
	.mc-dash__tiers-table-wrap,
	.mc-dash__contacts-table-wrap,
	.mc-dash__apporteurs-table-wrap,
	.mc-dash__messages-inbox-table-wrap,
	.mc-dash__messages-conv-list,
	.mc-dash__messages-thread,
	.mc-dash__messages-drawer-body,
	.mc-dash__messages-new-conv,
	.mm-email-shadow-host
)::-webkit-scrollbar-button,
.page-account-dashboard :is(
	.mc-dash__scroll-surface,
	.mc-dash__body,
	.mc-dash__search-results,
	.mc-dash__settings-tabs,
	.mc-dash__tiers-table-wrap,
	.mc-dash__contacts-table-wrap,
	.mc-dash__apporteurs-table-wrap,
	.mc-dash__messages-inbox-table-wrap,
	.mc-dash__messages-conv-list,
	.mc-dash__messages-thread,
	.mc-dash__messages-drawer-body,
	.mc-dash__messages-new-conv,
	.mm-email-shadow-host
)::-webkit-scrollbar-button:vertical:start,
.page-account-dashboard :is(
	.mc-dash__scroll-surface,
	.mc-dash__body,
	.mc-dash__search-results,
	.mc-dash__settings-tabs,
	.mc-dash__tiers-table-wrap,
	.mc-dash__contacts-table-wrap,
	.mc-dash__apporteurs-table-wrap,
	.mc-dash__messages-inbox-table-wrap,
	.mc-dash__messages-conv-list,
	.mc-dash__messages-thread,
	.mc-dash__messages-drawer-body,
	.mc-dash__messages-new-conv,
	.mm-email-shadow-host
)::-webkit-scrollbar-button:vertical:end,
.page-account-dashboard :is(
	.mc-dash__scroll-surface,
	.mc-dash__body,
	.mc-dash__search-results,
	.mc-dash__settings-tabs,
	.mc-dash__tiers-table-wrap,
	.mc-dash__contacts-table-wrap,
	.mc-dash__apporteurs-table-wrap,
	.mc-dash__messages-inbox-table-wrap,
	.mc-dash__messages-conv-list,
	.mc-dash__messages-thread,
	.mc-dash__messages-drawer-body,
	.mc-dash__messages-new-conv,
	.mm-email-shadow-host
)::-webkit-scrollbar-button:horizontal:start,
.page-account-dashboard :is(
	.mc-dash__scroll-surface,
	.mc-dash__body,
	.mc-dash__search-results,
	.mc-dash__settings-tabs,
	.mc-dash__tiers-table-wrap,
	.mc-dash__contacts-table-wrap,
	.mc-dash__apporteurs-table-wrap,
	.mc-dash__messages-inbox-table-wrap,
	.mc-dash__messages-conv-list,
	.mc-dash__messages-thread,
	.mc-dash__messages-drawer-body,
	.mc-dash__messages-new-conv,
	.mm-email-shadow-host
)::-webkit-scrollbar-button:horizontal:end {
	display: none;
	width: 0;
	height: 0;
	max-width: 0;
	max-height: 0;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
}

.page-account-dashboard :is(
	.mc-dash__scroll-surface,
	.mc-dash__body,
	.mc-dash__search-results,
	.mc-dash__settings-tabs,
	.mc-dash__tiers-table-wrap,
	.mc-dash__contacts-table-wrap,
	.mc-dash__apporteurs-table-wrap,
	.mc-dash__messages-inbox-table-wrap,
	.mc-dash__messages-conv-list,
	.mc-dash__messages-thread,
	.mc-dash__messages-drawer-body,
	.mc-dash__messages-new-conv,
	.mm-email-shadow-host
)::-webkit-scrollbar-corner {
	display: none;
	width: 0;
	height: 0;
	background: transparent;
}

@media (hover: hover) {
	.page-account-dashboard :is(
		.mc-dash__scroll-surface,
		.mc-dash__body,
		.mc-dash__search-results,
		.mc-dash__settings-tabs,
		.mc-dash__tiers-table-wrap,
		.mc-dash__contacts-table-wrap,
	.mc-dash__apporteurs-table-wrap,
		.mc-dash__messages-inbox-table-wrap,
		.mc-dash__messages-conv-list,
		.mc-dash__messages-thread,
		.mc-dash__messages-drawer-body,
		.mc-dash__messages-new-conv,
		.mm-email-shadow-host
	):is(:hover, :focus-within) {
		scrollbar-color: var(--mc-scroll-thumb) transparent;
	}

	.page-account-dashboard :is(
		.mc-dash__scroll-surface,
		.mc-dash__body,
		.mc-dash__search-results,
		.mc-dash__settings-tabs,
		.mc-dash__tiers-table-wrap,
		.mc-dash__contacts-table-wrap,
	.mc-dash__apporteurs-table-wrap,
		.mc-dash__messages-inbox-table-wrap,
		.mc-dash__messages-conv-list,
		.mc-dash__messages-thread,
		.mc-dash__messages-drawer-body,
		.mc-dash__messages-new-conv,
		.mm-email-shadow-host
	):is(:hover, :focus-within)::-webkit-scrollbar-thumb {
		background-color: var(--mc-scroll-thumb);
	}

	.page-account-dashboard :is(
		.mc-dash__scroll-surface,
		.mc-dash__body,
		.mc-dash__search-results,
		.mc-dash__settings-tabs,
		.mc-dash__tiers-table-wrap,
		.mc-dash__contacts-table-wrap,
	.mc-dash__apporteurs-table-wrap,
		.mc-dash__messages-inbox-table-wrap,
		.mc-dash__messages-conv-list,
		.mc-dash__messages-thread,
		.mc-dash__messages-drawer-body,
		.mc-dash__messages-new-conv,
		.mm-email-shadow-host
	):is(:hover, :focus-within)::-webkit-scrollbar-thumb:hover {
		background-color: var(--mc-scroll-thumb-hover);
	}

	.page-account-dashboard :is(
		.mc-dash__scroll-surface,
		.mc-dash__body,
		.mc-dash__search-results,
		.mc-dash__settings-tabs,
		.mc-dash__tiers-table-wrap,
		.mc-dash__contacts-table-wrap,
	.mc-dash__apporteurs-table-wrap,
		.mc-dash__messages-inbox-table-wrap,
		.mc-dash__messages-conv-list,
		.mc-dash__messages-thread,
		.mc-dash__messages-drawer-body,
		.mc-dash__messages-new-conv,
		.mm-email-shadow-host
	):is(:hover, :focus-within)::-webkit-scrollbar-thumb:active {
		background-color: var(--mc-scroll-thumb-active);
	}
}

@media (hover: none) {
	.page-account-dashboard :is(
		.mc-dash__scroll-surface,
		.mc-dash__body,
		.mc-dash__search-results,
		.mc-dash__settings-tabs,
		.mc-dash__tiers-table-wrap,
		.mc-dash__contacts-table-wrap,
	.mc-dash__apporteurs-table-wrap,
		.mc-dash__messages-inbox-table-wrap,
		.mc-dash__messages-conv-list,
		.mc-dash__messages-thread,
		.mc-dash__messages-drawer-body,
		.mc-dash__messages-new-conv,
		.mm-email-shadow-host
	) {
		scrollbar-color: var(--mc-scroll-thumb) transparent;
	}

	.page-account-dashboard :is(
		.mc-dash__scroll-surface,
		.mc-dash__body,
		.mc-dash__search-results,
		.mc-dash__settings-tabs,
		.mc-dash__tiers-table-wrap,
		.mc-dash__contacts-table-wrap,
	.mc-dash__apporteurs-table-wrap,
		.mc-dash__messages-inbox-table-wrap,
		.mc-dash__messages-conv-list,
		.mc-dash__messages-thread,
		.mc-dash__messages-drawer-body,
		.mc-dash__messages-new-conv,
		.mm-email-shadow-host
	)::-webkit-scrollbar-thumb {
		background-color: var(--mc-scroll-thumb);
	}
}

@media (prefers-reduced-motion: reduce) {
	.page-account-dashboard :is(
		.mc-dash__scroll-surface,
		.mc-dash__body,
		.mc-dash__search-results,
		.mc-dash__settings-tabs,
		.mc-dash__tiers-table-wrap,
		.mc-dash__contacts-table-wrap,
	.mc-dash__apporteurs-table-wrap,
		.mc-dash__messages-inbox-table-wrap,
		.mc-dash__messages-conv-list,
		.mc-dash__messages-thread,
		.mc-dash__messages-drawer-body,
		.mc-dash__messages-new-conv,
		.mm-email-shadow-host
	)::-webkit-scrollbar-thumb {
		transition: none;
	}
}

/* --- Shell layout (viewport-locked: sidebar fixed, content scrolls) */
.page-account-dashboard .mc-dash {
	display: flex;
	height: 100%;
	min-height: 0;
	overflow: hidden;
	background: var(--mc-page-bg);
}

.page-account-dashboard .mc-dash__shell {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
	background: var(--mc-page-bg);
}

.page-account-dashboard .mc-dash__body {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 28px 32px 32px;
	background: var(--mc-page-bg);
}

/* --- Sidebar ---------------------------------------------------- */
.page-account-dashboard .mc-dash__sidebar {
	flex: 0 0 auto;
	width: var(--mc-sidebar-expanded);
	overflow: hidden;
	overflow: clip;
	box-sizing: border-box;
	background: var(--mc-sidebar-bg);
	color: var(--mc-sidebar-text);
	border-right: 1px solid var(--mc-border);
	transition: width 0.22s cubic-bezier(0.25, 0.1, 0.25, 1);
	view-transition-name: mc-sidebar;
}

.page-account-dashboard .mc-dash__sidebar-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
	width: var(--mc-sidebar-expanded);
	min-width: var(--mc-sidebar-expanded);
	flex-shrink: 0;
	padding: 20px 12px 16px;
	box-sizing: border-box;
}

.page-account-dashboard .mc-dash__brand-row {
	margin-bottom: 18px;
	padding: 0 8px;
}

.page-account-dashboard .mc-dash__brand-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 0;
	text-decoration: none;
	color: var(--mc-sidebar-text);
}

.page-account-dashboard .mc-dash__brand-link:hover {
	color: var(--mc-sidebar-text);
	opacity: 0.9;
}

.page-account-dashboard .mc-dash__brand-icon {
	display: block;
	flex-shrink: 0;
	border-radius: 8px;
}

.page-account-dashboard .mc-dash__brand {
	font-family: var(--default-font);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2em;
	color: inherit;
	white-space: nowrap;
	opacity: 1;
	transition: opacity 0.12s ease 0.06s;
}

.page-account-dashboard .mc-dash__brand-short {
	display: none;
	align-items: center;
	justify-content: center;
	width: 100%;
	text-decoration: none;
}

.page-account-dashboard .mc-dash__brand-short:hover {
	opacity: 0.9;
}

.page-account-dashboard .mc-dash__nav {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	min-width: 0;
	overflow: hidden;
}

.page-account-dashboard .mc-dash__nav-list {
	display: flex;
	flex-direction: column;
	gap: 0;
	flex: 1;
	min-height: 0;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	touch-action: manipulation;
	user-select: none;
	-webkit-user-select: none;
	overflow-anchor: none;
	scrollbar-width: thin;
}

.page-account-dashboard .mc-dash__nav-list > li,
.page-account-dashboard .mc-dash__nav-sub-inner > li {
	display: block;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.page-account-dashboard .mc-dash__nav-end {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid var(--mc-border);
}

.page-account-dashboard .mc-dash__nav-more.mc-dash__nav-link,
.page-account-dashboard .mc-dash__nav-sheet {
	display: none;
}

@media (min-width: 992px) {
	.page-account-dashboard .mc-dash.is-sidebar-collapsed .mc-dash__nav-more.mc-dash__nav-link {
		display: none !important;
	}
}

/* Groupe : pas de gap interne, sinon un sous-menu fermé ajoute un écart en trop */
.page-account-dashboard .mc-dash__nav-group {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0;
	contain: layout;
	overflow-anchor: none;
}

.page-account-dashboard .mc-dash__nav-link {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	font-family: var(--default-font);
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.25;
	color: var(--mc-sidebar-muted);
	text-decoration: none;
	padding: 0 10px;
	border-radius: 8px;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	transition: background-color 0.16s ease, color 0.16s ease, opacity 0.12s ease;
}

.page-account-dashboard button.mc-dash__nav-link {
	width: 100%;
	margin: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	text-align: left;
	appearance: none;
	-webkit-appearance: none;
}

.page-account-dashboard button.mc-dash__nav-link--sub {
	width: calc(100% - 28px);
	margin-left: 28px;
}

.page-account-dashboard .mc-dash__nav-parent {
	display: flex;
	align-items: stretch;
	border-radius: 8px;
}

.page-account-dashboard .mc-dash__nav-parent > .mc-dash__nav-link {
	flex: 1;
	min-width: 0;
}

.page-account-dashboard .mc-dash__nav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 28px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: inherit;
	cursor: pointer;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	appearance: none;
	-webkit-appearance: none;
}

.page-account-dashboard .mc-dash__nav-toggle:focus {
	outline: none;
}

.page-account-dashboard .mc-dash__nav-toggle:focus-visible {
	color: var(--brand-primary);
	outline: none;
	box-shadow: 0 0 0 2px var(--brand-primary);
}

.page-account-dashboard .mc-dash__nav-chevron {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	opacity: 0.42;
	color: currentColor;
	pointer-events: none;
	transition: transform 0.22s ease, opacity 0.16s ease;
}

.page-account-dashboard .mc-dash__nav-group.is-open > .mc-dash__nav-parent .mc-dash__nav-chevron {
	transform: rotate(180deg);
	opacity: 1;
}

/* Dépliage animé sans hauteur fixe : la piste de grille passe de 0fr à 1fr */
.page-account-dashboard .mc-dash__nav-sub {
	display: grid;
	grid-template-rows: minmax(0, 0fr);
	overflow: hidden;
	pointer-events: none;
	transition: grid-template-rows 0.26s ease;
}

.page-account-dashboard .mc-dash__nav-group.is-open > .mc-dash__nav-sub {
	grid-template-rows: minmax(0, 1fr);
	pointer-events: auto;
}

.page-account-dashboard .mc-dash__nav-sub-inner {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	opacity: 0;
	overflow: hidden;
	pointer-events: none;
	/* visibility : sort les liens repliés du focus et du lecteur d'écran, sans couper l'animation de fermeture */
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0s linear 0.26s;
}

.page-account-dashboard .mc-dash__nav-group.is-open > .mc-dash__nav-sub > .mc-dash__nav-sub-inner {
	padding: 2px 0 4px;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition-delay: 0s;
}

/* Filet de guidage aligné sur l'icône du parent : seule marque du groupe déplié */
.page-account-dashboard .mc-dash__nav-sub-inner::before {
	content: "";
	position: absolute;
	top: 4px;
	bottom: 2px;
	left: 18px;
	width: 1px;
	background: var(--mc-nav-rail);
}

.page-account-dashboard .mc-dash__nav-toggle.is-current {
	color: var(--brand-primary);
}

.page-account-dashboard .mc-dash__nav-icon {
	display: inline-flex;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	align-items: center;
	justify-content: center;
	opacity: 0.72;
	transition: opacity 0.16s ease;
}

.page-account-dashboard .mc-dash__nav-icon svg {
	width: 16px;
	height: 16px;
}

.page-account-dashboard .mc-dash__nav-chevron svg {
	width: 14px;
	height: 14px;
}

.page-account-dashboard .mc-dash__nav-label {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	opacity: 1;
	transition: opacity 0.12s ease 0.06s;
}

/* Short labels are used only by the mobile bottom navigation bar */
.page-account-dashboard .mc-dash__nav-label-short {
	display: none;
}

/* Mobile-only brand shown inside the top app bar */
.page-account-dashboard .mc-dash__topbar-brand {
	display: none;
	align-items: center;
	gap: 9px;
	text-decoration: none;
	color: var(--mc-sidebar-text);
}

.page-account-dashboard .mc-dash__topbar-brand:hover {
	color: var(--mc-sidebar-text);
	opacity: 0.9;
}

.page-account-dashboard .mc-dash__topbar-brand-icon {
	display: block;
	flex-shrink: 0;
	border-radius: 7px;
}

.page-account-dashboard .mc-dash__topbar-brand-text {
	font-family: var(--default-font);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2;
	color: inherit;
}

.page-account-dashboard .mc-dash__nav-link:focus {
	outline: none;
}

.page-account-dashboard .mc-dash__nav-link:focus-visible {
	color: var(--mc-sidebar-text);
	box-shadow: 0 0 0 2px var(--brand-primary);
}

.page-account-dashboard .mc-dash__nav-link.is-active:focus-visible,
.page-account-dashboard .mc-dash__nav-link.is-current:focus-visible,
.page-account-dashboard .mc-dash__nav-link[aria-current]:focus-visible {
	color: var(--brand-primary);
}

.page-account-dashboard .mc-dash__nav-link.is-navigating,
.page-account-dashboard .mc-dash__nav-sheet-link.is-navigating {
	opacity: 0.7;
}

/* Neutralise le a:hover global : pas de stick tactile */
.page-account-dashboard .mc-dash__nav-link:hover {
	color: var(--mc-sidebar-muted);
}

.page-account-dashboard .mc-dash__nav-link.is-active .mc-dash__nav-icon,
.page-account-dashboard .mc-dash__nav-link.is-current .mc-dash__nav-icon,
.page-account-dashboard .mc-dash__nav-link[aria-current] .mc-dash__nav-icon,
.page-account-dashboard .mc-dash__nav-parent:has(.is-current) .mc-dash__nav-icon {
	opacity: 1;
}

.page-account-dashboard .mc-dash__nav-link.is-active,
.page-account-dashboard .mc-dash__nav-link.is-current,
.page-account-dashboard .mc-dash__nav-link[aria-current="page"],
.page-account-dashboard .mc-dash__nav-parent:has(.is-current) {
	background: var(--brand-primary-soft);
	color: var(--brand-primary);
	font-weight: 600;
	box-shadow: none;
}

.page-account-dashboard .mc-dash__nav-parent:has(.is-current) > .mc-dash__nav-link {
	background: transparent;
	color: var(--brand-primary);
	font-weight: 600;
}

.page-account-dashboard .mc-dash__nav-link.is-active:hover,
.page-account-dashboard .mc-dash__nav-link.is-current:hover,
.page-account-dashboard .mc-dash__nav-link[aria-current]:hover,
.page-account-dashboard .mc-dash__nav-parent:has(.is-current):hover,
.page-account-dashboard .mc-dash__nav-parent:has(.is-current) > .mc-dash__nav-link,
.page-account-dashboard .mc-dash__nav-parent:has(.is-current) > .mc-dash__nav-toggle {
	background: var(--brand-primary-soft);
	color: var(--brand-primary);
}

@media (hover: hover) and (pointer: fine) {
	.page-account-dashboard .mc-dash__nav-link:hover {
		background: var(--mc-sidebar-hover);
		color: var(--mc-sidebar-text);
	}

	.page-account-dashboard .mc-dash__nav-link:hover .mc-dash__nav-icon {
		opacity: 1;
	}

	.page-account-dashboard .mc-dash__nav-parent:hover > .mc-dash__nav-link,
	.page-account-dashboard .mc-dash__nav-parent:hover > .mc-dash__nav-toggle {
		background: transparent;
		color: inherit;
	}

	.page-account-dashboard .mc-dash__nav-parent:hover {
		background: var(--mc-sidebar-hover);
		color: var(--mc-sidebar-text);
	}

	.page-account-dashboard .mc-dash__nav-toggle:hover {
		color: var(--brand-primary);
	}

	.page-account-dashboard .mc-dash__nav-link.is-active:hover,
	.page-account-dashboard .mc-dash__nav-link.is-current:hover,
	.page-account-dashboard .mc-dash__nav-link[aria-current]:hover,
	.page-account-dashboard .mc-dash__nav-parent:has(.is-current):hover,
	.page-account-dashboard .mc-dash__nav-parent:has(.is-current) > .mc-dash__nav-link,
	.page-account-dashboard .mc-dash__nav-parent:has(.is-current) > .mc-dash__nav-toggle {
		background: var(--brand-primary-soft);
		color: var(--brand-primary);
	}

	.page-account-dashboard .mc-dash__nav-link--sub.is-active:hover {
		background: transparent;
	}

	.page-account-dashboard .mc-dash__nav-sheet-link:hover {
		background: color-mix(in srgb, var(--brand-primary) 8%, var(--mc-surface));
		color: var(--primary-color);
	}

	html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__nav-sheet-link:hover {
		background: rgba(255, 255, 255, 0.06);
	}
}

.page-account-dashboard .mc-dash__nav-link--sub {
	position: relative;
	min-height: 34px;
	margin-left: 28px;
	padding: 0 10px 0 8px;
	font-size: 13px;
	font-weight: 500;
	border-radius: 8px;
}

/* Page en cours : pas de pavé plein, le filet s'allume et le libellé passe en couleur de marque */
.page-account-dashboard .mc-dash__nav-link--sub.is-active,
.page-account-dashboard .mc-dash__nav-link--sub.is-active:hover,
.page-account-dashboard .mc-dash__nav-link--sub[aria-current] {
	background: transparent;
	font-weight: 500;
}

/* Pleine hauteur de l'élément : sur le premier ou le dernier lien, l'accent rejoint le bout du filet sans laisser dépasser de gris */
.page-account-dashboard .mc-dash__nav-link--sub.is-active::before,
.page-account-dashboard .mc-dash__nav-link--sub[aria-current]::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -10px;
	width: 2px;
	border-radius: 2px;
	background: var(--brand-primary);
}

.page-account-dashboard .mc-dash__nav-link--sub .mc-dash__nav-icon svg {
	width: 15px;
	height: 15px;
}

.page-account-dashboard .mc-dash__nav-count {
	margin-left: auto;
	flex-shrink: 0;
	min-width: 1.2rem;
	height: 1.2rem;
	padding: 0 5px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.2rem;
	text-align: center;
	background: color-mix(in srgb, var(--brand-primary) 14%, transparent);
	color: var(--brand-primary);
	opacity: 1;
	transition: opacity 0.12s ease 0.06s;
}

.page-account-dashboard .mc-dash__nav-count:empty {
	display: none;
}

.page-account-dashboard .mc-dash.is-sidebar-collapsed .mc-dash__nav-link--sub,
.page-account-dashboard .mc-dash.is-sidebar-collapsed .mc-dash__nav-sub,
.page-account-dashboard .mc-dash.is-sidebar-collapsed .mc-dash__nav-group.is-open > .mc-dash__nav-sub {
	display: none;
}

.page-account-dashboard .mc-dash.is-sidebar-toggling:not(.is-sidebar-collapsed) .mc-dash__nav-sub {
	grid-template-rows: minmax(0, 0fr) !important;
	pointer-events: none;
}

.page-account-dashboard .mc-dash.is-sidebar-toggling:not(.is-sidebar-collapsed) .mc-dash__nav-sub-inner {
	opacity: 0;
	visibility: hidden;
	padding: 0;
	pointer-events: none;
}

.page-account-dashboard .mc-dash.is-sidebar-toggling .mc-dash__nav-sub,
.page-account-dashboard .mc-dash.is-sidebar-toggling .mc-dash__nav-sub-inner,
.page-account-dashboard .mc-dash.is-sidebar-init .mc-dash__nav-sub,
.page-account-dashboard .mc-dash.is-sidebar-init .mc-dash__nav-sub-inner,
.page-account-dashboard .mc-dash.is-sidebar-init .mc-dash__sidebar {
	transition: none;
}

@media (prefers-reduced-motion: reduce) {
	.page-account-dashboard .mc-dash__sidebar,
	.page-account-dashboard .mc-dash__nav-sub,
	.page-account-dashboard .mc-dash__nav-sub-inner,
	.page-account-dashboard .mc-dash__nav-chevron,
	.page-account-dashboard .mc-dash__nav-label,
	.page-account-dashboard .mc-dash__nav-count,
	.page-account-dashboard .mc-dash__nav-link,
	.page-account-dashboard .mc-dash__brand,
	.page-account-dashboard .mc-dash.is-sidebar-collapsed .mc-dash__nav-label,
	.page-account-dashboard .mc-dash.is-sidebar-collapsed .mc-dash__brand {
		transition: none;
	}
}

.page-account-dashboard .mc-dash__sidebar-footer {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
}

.page-account-dashboard .mc-dash__sidebar-user {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-radius: 10px;
	text-decoration: none;
	color: var(--mc-sidebar-text);
	border-top: 1px solid var(--mc-border);
	margin-top: 8px;
	padding-top: 16px;
	transition: background-color 0.2s ease;
}

.page-account-dashboard .mc-dash__sidebar-user:hover {
	background: transparent;
	color: var(--mc-sidebar-text);
}

.page-account-dashboard .mc-dash__sidebar-user-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--brand-primary-soft);
	color: var(--brand-primary);
	font-family: var(--default-font);
	font-size: 15px;
	font-weight: 600;
	text-transform: uppercase;
}

.page-account-dashboard .mc-dash__sidebar-user-info {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1;
	gap: 2px;
}

.page-account-dashboard .mc-dash__sidebar-user-name {
	font-family: var(--default-font);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--mc-sidebar-text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.page-account-dashboard .mc-dash__sidebar-user-role {
	font-family: var(--default-font);
	font-size: 12px;
	line-height: 1.3;
	color: var(--mc-sidebar-muted);
}

.page-account-dashboard .mc-dash__sidebar-user-chevron {
	display: inline-flex;
	flex-shrink: 0;
	opacity: 0.72;
}

.page-account-dashboard .mc-dash__sidebar-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 10px;
	border: 1px solid var(--mc-border);
	border-radius: 8px;
	background: var(--white-color);
	color: var(--primary-color);
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.page-account-dashboard .mc-dash__sidebar-toggle:hover {
	background: #eff4fa;
	border-color: var(--brand-primary);
	color: var(--brand-primary);
}

.page-account-dashboard .mc-dash__sidebar-toggle:focus-visible {
	outline: 2px solid var(--brand-primary);
	outline-offset: 2px;
}

.page-account-dashboard .mc-dash__sidebar-toggle-icon {
	transition: transform 0.2s ease;
}

/* Rail icônes : on clippe une colonne fixe, le contenu ne reflue pas */
.page-account-dashboard .mc-dash.is-sidebar-collapsed .mc-dash__sidebar {
	width: var(--mc-sidebar-collapsed);
}

.page-account-dashboard .mc-dash.is-sidebar-collapsed .mc-dash__nav-label,
.page-account-dashboard .mc-dash.is-sidebar-collapsed .mc-dash__brand,
.page-account-dashboard .mc-dash.is-sidebar-collapsed .mc-dash__nav-chevron,
.page-account-dashboard .mc-dash.is-sidebar-collapsed .mc-dash__nav-count,
.page-account-dashboard .mc-dash.is-sidebar-collapsed .mc-dash__sidebar-user-info,
.page-account-dashboard .mc-dash.is-sidebar-collapsed .mc-dash__sidebar-user-chevron {
	opacity: 0;
	pointer-events: none;
	transition-delay: 0s;
}

.page-account-dashboard .mc-dash.is-sidebar-collapsed .mc-dash__nav-parent > .mc-dash__nav-toggle {
	width: 0;
	min-width: 0;
	overflow: hidden;
	visibility: hidden;
	pointer-events: none;
}

.page-account-dashboard .mc-dash.is-sidebar-toggling .mc-dash__sidebar {
	will-change: width;
}

/* --- Header bar ------------------------------------------------- */
.page-account-dashboard .mc-dash__header {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 18px 32px;
	background: var(--mc-surface);
	border-bottom: 1px solid var(--mc-border);
	position: relative;
	z-index: 40;
	view-transition-name: mc-header;
}

.page-account-dashboard .mc-dash__header-actions {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	margin-left: auto;
}

.page-account-dashboard .mc-dash__header-start {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
	min-width: 0;
}

.page-account-dashboard .mc-dash__sidebar-toggle--header {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	border: 1px solid var(--mc-border);
	border-radius: 10px;
	background: var(--white-color);
	color: var(--primary-color);
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.page-account-dashboard .mc-dash__sidebar-toggle--header:hover,
.page-account-dashboard .mc-dash__sidebar-toggle--header:focus-visible {
	background: #eff4fa;
	border-color: var(--brand-primary);
	color: var(--brand-primary);
	outline: none;
}

.page-account-dashboard .mc-dash__sidebar .mc-dash__sidebar-toggle:not(.mc-dash__sidebar-toggle--header) {
	display: none;
}

.page-account-dashboard .mc-dash__search {
	position: relative;
	flex: 1;
	min-width: 0;
	margin: 0;
}

.page-account-dashboard .mc-dash__search-input {
	width: 100%;
	font-family: var(--default-font);
	font-size: 15px;
	color: var(--primary-color);
	background: var(--white-color);
	border: 1px solid var(--mc-border);
	border-radius: 10px;
	padding: 12px 48px 12px 18px;
	min-height: 48px;
	box-sizing: border-box;
}

.page-account-dashboard .mc-dash__search-input::placeholder {
	color: #7c8fac;
}

.page-account-dashboard .mc-dash__search-input:focus {
	outline: none;
	border-color: var(--brand-primary);
	box-shadow: 0 0 0 0.2rem rgba(var(--brand-primary-rgb), 0.15);
}

.page-account-dashboard .mc-dash__search-icon {
	position: absolute;
	top: 50%;
	right: 16px;
	transform: translateY(-50%);
	display: inline-flex;
	color: #7c8fac;
	pointer-events: none;
	z-index: 2;
}

.page-account-dashboard .mc-dash__search-results {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 1050;
	margin: 0;
	padding: 6px 0;
	list-style: none;
	background: var(--white-color);
	border: 1px solid var(--mc-border);
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
	max-height: 320px;
	overflow-y: auto;
}

.page-account-dashboard .mc-dash__search-results-item {
	padding: 10px 16px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--primary-color);
	cursor: pointer;
}

.page-account-dashboard .mc-dash__search-results-item.is-active,
.page-account-dashboard .mc-dash__search-results-item:hover {
	background: #eff4fa;
	color: var(--brand-primary);
}

.page-account-dashboard .mc-dash__search-results-item--empty {
	cursor: default;
	color: #7c8fac;
}

.page-account-dashboard .mc-dash__search-results-item--empty:hover {
	background: transparent;
	color: #7c8fac;
}

.page-account-dashboard .mc-dash__icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--primary-color);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.page-account-dashboard .mc-dash__icon-btn:hover,
.page-account-dashboard .mc-dash__icon-btn:focus-visible {
	background: #eff4fa;
	color: var(--brand-primary-hover);
	outline: none;
}

.page-account-dashboard .mc-dash__icon-btn--notif {
	display: none; /* TODO: retirer quand les notifications seront implémentées */
	position: relative;
}

.page-account-dashboard .mc-dash__notif-dot {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #e53935;
	border: 2px solid var(--mc-surface);
}

.page-account-dashboard .mc-dash__header-avatar,
.page-account-dashboard .mc-dash__user-menu-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: hsl(220, 56%, 45%);
	color: #fff;
	font-family: var(--default-font);
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	line-height: 1;
	flex-shrink: 0;
}

.page-account-dashboard .mc-dash__header-avatar {
	width: 40px;
	height: 40px;
	font-size: 13px;
}

.page-account-dashboard .mc-dash__user-menu-avatar {
	width: 36px;
	height: 36px;
	font-size: 12px;
}

.page-account-dashboard .mc-dash__header-username {
	font-family: var(--default-font);
	font-size: 15px;
	font-weight: 500;
	color: var(--primary-color);
	max-width: 200px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.page-account-dashboard .mc-dash__user-dropdown {
	position: relative;
}

.page-account-dashboard .mc-dash__user-trigger {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	padding: 4px 10px 4px 4px;
	cursor: pointer;
	color: inherit;
	font: inherit;
	text-align: left;
}

.page-account-dashboard .mc-dash__user-trigger:hover,
.page-account-dashboard .mc-dash__user-trigger:focus,
.page-account-dashboard .mc-dash__user-trigger[aria-expanded="true"] {
	background: #eff4fa;
	outline: none;
	box-shadow: none;
}

.page-account-dashboard .mc-dash__user-menu {
	display: none;
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 1050;
	min-width: 20rem;
	max-width: min(26rem, calc(100vw - 1.5rem));
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: var(--mc-surface);
	border: 1px solid var(--mc-border);
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(17, 28, 45, 0.12);
}

.page-account-dashboard .mc-dash__user-dropdown.is-open .mc-dash__user-menu {
	display: block;
}

.page-account-dashboard .mc-dash__user-menu-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px 8px;
	list-style: none;
}

.page-account-dashboard .mc-dash__user-menu-head-copy {
	min-width: 0;
	flex: 1;
}

.page-account-dashboard .mc-dash__user-menu-label {
	display: block;
	font-family: var(--default-font);
	font-size: 12px;
	color: var(--mc-sidebar-muted, #7c8fac);
	margin-bottom: 2px;
}

.page-account-dashboard .mc-dash__user-menu-email {
	display: block;
	max-width: 100%;
	overflow: hidden;
	font-family: var(--default-font);
	font-size: 14px;
	font-weight: 600;
	color: var(--primary-color);
	text-overflow: ellipsis;
	white-space: nowrap;
	word-break: normal;
	overflow-wrap: normal;
}

.page-account-dashboard .mc-dash__user-menu-divider {
	margin: 6px 0;
	border: 0;
	border-top: 1px solid var(--mc-border);
	opacity: 1;
}

.page-account-dashboard .mc-dash__user-menu-link {
	display: block;
	font-family: var(--default-font);
	font-size: 14px;
	color: var(--primary-color);
	padding: 10px 16px;
	text-decoration: none;
}

.page-account-dashboard .mc-dash__user-menu-link:hover,
.page-account-dashboard .mc-dash__user-menu-link:focus {
	background: #eff4fa;
	color: var(--primary-color);
}

.page-account-dashboard .mc-dash__user-menu-logout {
	color: #b42318;
}

.page-account-dashboard .mc-dash__user-menu-logout:hover,
.page-account-dashboard .mc-dash__user-menu-logout:focus {
	background: rgba(180, 35, 24, 0.08);
	color: #b42318;
}

.page-account-dashboard .mc-dash__page-head {
	margin-bottom: 28px;
}

/* --- Listes Contacts / Tiers / Apporteurs : colonne Profil / Société / Nom */
.page-account-dashboard .mc-dash__contacts-table col.mc-dash__contacts-col--name,
.page-account-dashboard .mc-dash__contacts-table thead th.mc-dash__contacts-col-name,
.page-account-dashboard .mc-dash__contacts-table tbody td.mc-dash__contacts-col-name,
.page-account-dashboard .mc-dash__tiers-table col.mc-dash__tiers-col--name,
.page-account-dashboard .mc-dash__tiers-table thead th.mc-dash__tiers-col-name,
.page-account-dashboard .mc-dash__tiers-table tbody td.mc-dash__tiers-col-name,
.page-account-dashboard .mc-dash__apporteurs-table col.mc-dash__apporteurs-col--name,
.page-account-dashboard .mc-dash__apporteurs-table thead th.mc-dash__apporteurs-col-name,
.page-account-dashboard .mc-dash__apporteurs-table tbody td.mc-dash__apporteurs-col-name {
	width: var(--mc-col-name, 18rem);
	min-width: var(--mc-col-name, 18rem);
	max-width: var(--mc-col-name, 18rem);
}

/* Pilule statut : occupe la colonne (même largeur visuelle contacts / tiers) */
.page-account-dashboard .mc-dash__contacts-table .mc-status-select,
.page-account-dashboard .mc-dash__tiers-table .mc-status-select {
	display: block;
	width: 100%;
	max-width: 100%;
}
.page-account-dashboard .mc-dash__contacts-table select.contact-status-select,
.page-account-dashboard .mc-dash__tiers-table select.contact-status-select {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.page-account-dashboard .mc-dash__page-title,
.page-account-dashboard .mc-dash__contacts-title,
.page-account-dashboard .mc-dash__tiers-title,
.page-account-dashboard .mc-dash__apporteurs-title,
.page-account-messages-inbox .mc-dash__messages-title {
	margin: 0;
	font-family: var(--default-font);
	font-size: 28px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--primary-color);
}

/* --- Dashboard overview ----------------------------------------- */
.page-account-dashboard .mc-dash__overview {
	width: 100%;
	max-width: none;
}

.page-account-dashboard .mc-dash__kpi-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	margin-bottom: 28px;
}

.page-account-dashboard .mc-dash__kpi-card {
	--kpi-accent: var(--brand-primary);
	--kpi-accent-rgb: var(--brand-primary-rgb);
	position: relative;
	background: color-mix(in srgb, var(--kpi-accent) 6%, var(--mc-surface));
	border: 1px solid color-mix(in srgb, var(--kpi-accent) 18%, var(--mc-border));
	border-radius: 16px;
	padding: 18px 18px 14px;
	box-shadow: none;
	overflow: hidden;
}

.page-account-dashboard .mc-dash__kpi-card--tiers {
	--kpi-accent: #00a1ff;
	--kpi-accent-rgb: 0, 161, 255;
}

.page-account-dashboard .mc-dash__kpi-card--contacts {
	--kpi-accent: #3b6cff;
	--kpi-accent-rgb: 59, 108, 255;
}

.page-account-dashboard .mc-dash__kpi-card--apporteurs {
	--kpi-accent: #0d9b8a;
	--kpi-accent-rgb: 13, 155, 138;
}

.page-account-dashboard .mc-dash__kpi-card::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 3px;
	background: var(--kpi-accent);
	pointer-events: none;
}

.page-account-dashboard .mc-dash__kpi-card--panel {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.page-account-dashboard .mc-dash__kpi-card--panel:hover,
.page-account-dashboard .mc-dash__kpi-card--panel:focus-within {
	background: color-mix(in srgb, var(--kpi-accent) 10%, var(--mc-surface));
	border-color: color-mix(in srgb, var(--kpi-accent) 38%, var(--mc-border));
}

.page-account-dashboard .mc-dash__kpi-mark {
	position: absolute;
	right: -8px;
	top: 22px;
	width: 148px;
	height: 148px;
	color: var(--kpi-accent);
	opacity: 0.12;
	pointer-events: none;
	z-index: 0;
	transform: rotate(-14deg);
}

.page-account-dashboard .mc-dash__kpi-mark svg {
	width: 100%;
	height: 100%;
	display: block;
}

.page-account-dashboard .mc-dash__kpi-hero {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
	position: relative;
	z-index: 1;
	text-decoration: none;
	color: inherit;
	border-radius: 16px;
}

.page-account-dashboard .mc-dash__kpi-hero:hover,
.page-account-dashboard .mc-dash__kpi-hero:focus-visible {
	color: inherit;
	outline: none;
}

.page-account-dashboard .mc-dash__kpi-hero:focus-visible {
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--kpi-accent) 45%, transparent);
}

.page-account-dashboard .mc-dash__kpi-kicker {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.page-account-dashboard .mc-dash__kpi-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: color-mix(in srgb, var(--kpi-accent) 14%, var(--mc-surface));
	color: var(--kpi-accent);
	box-shadow: none;
}

.page-account-dashboard .mc-dash__kpi-go {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: auto;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	color: var(--kpi-accent);
	background: color-mix(in srgb, var(--kpi-accent) 12%, var(--mc-surface));
}

.page-account-dashboard .mc-dash__kpi-card--panel:hover .mc-dash__kpi-go,
.page-account-dashboard .mc-dash__kpi-card--panel:focus-within .mc-dash__kpi-go {
	background: color-mix(in srgb, var(--kpi-accent) 20%, var(--mc-surface));
}

.page-account-dashboard .mc-dash__kpi-copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1 1 auto;
	gap: 6px;
}

.page-account-dashboard .mc-dash__kpi-label {
	font-family: var(--default-font);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--primary-color);
	margin: 0;
}

.page-account-dashboard .mc-dash__kpi-value {
	font-family: var(--default-font);
	font-size: clamp(34px, 3.1vw, 48px);
	font-weight: 700;
	line-height: 1.02em;
	letter-spacing: -0.045em;
	color: var(--primary-color);
	margin: 0;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.page-account-dashboard .mc-dash__kpi-value--accent {
	color: var(--kpi-accent);
}

.page-account-dashboard .mc-dash__kpi-hint {
	font-family: var(--default-font);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3em;
	color: #7c8fac;
	margin: 0;
}

.page-account-dashboard .mc-dash__kpi-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 12px;
}

.page-account-dashboard .mc-dash__kpi-delta {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 7px;
	border-radius: 6px;
	font-family: var(--default-font);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2em;
	letter-spacing: 0.01em;
	color: #6b7a8c;
	background: color-mix(in srgb, var(--primary-color) 6%, var(--mc-surface));
}

.page-account-dashboard .mc-dash__kpi-delta svg {
	display: block;
	flex-shrink: 0;
}

.page-account-dashboard .mc-dash__kpi-delta--up {
	color: #0d9b8a;
	background: color-mix(in srgb, #0d9b8a 12%, var(--mc-surface));
}

.page-account-dashboard .mc-dash__kpi-links {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.page-account-dashboard .mc-dash__kpi-chip {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	padding: 9px 11px;
	border: 1px solid color-mix(in srgb, var(--kpi-accent) 12%, var(--mc-border));
	border-radius: 10px;
	background: color-mix(in srgb, var(--kpi-accent) 5%, var(--mc-surface));
	text-decoration: none;
	color: inherit;
	box-shadow: none;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.page-account-dashboard .mc-dash__kpi-chip:hover,
.page-account-dashboard .mc-dash__kpi-chip:focus-visible {
	border-color: color-mix(in srgb, var(--kpi-accent) 36%, var(--mc-border));
	background: color-mix(in srgb, var(--kpi-accent) 11%, var(--mc-surface));
	color: inherit;
	outline: none;
}

.page-account-dashboard .mc-dash__kpi-chip--wide {
	grid-column: 1 / -1;
}

.page-account-dashboard .mc-dash__kpi-chip--cta .mc-dash__kpi-chip-value {
	font-size: 14px;
	font-weight: 600;
}

.page-account-dashboard .mc-dash__kpi-chip-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-left: auto;
	flex-shrink: 0;
	color: var(--kpi-accent);
}

.page-account-dashboard .mc-dash__kpi-chip--cta:hover .mc-dash__kpi-chip-arrow,
.page-account-dashboard .mc-dash__kpi-chip--cta:focus-visible .mc-dash__kpi-chip-arrow {
	color: var(--kpi-accent);
}

.page-account-dashboard .mc-dash__kpi-chip--favoris {
	border-color: color-mix(in srgb, #f59e0b 18%, var(--mc-border));
	background: color-mix(in srgb, #f59e0b 7%, var(--mc-surface));
}

.page-account-dashboard .mc-dash__kpi-chip--favoris:hover,
.page-account-dashboard .mc-dash__kpi-chip--favoris:focus-visible {
	border-color: color-mix(in srgb, #f59e0b 45%, var(--mc-border));
	background: color-mix(in srgb, #f59e0b 12%, var(--mc-surface));
}

.page-account-dashboard .mc-dash__kpi-chip--favoris .mc-dash__kpi-chip-icon {
	color: #d97706;
	background: color-mix(in srgb, #f59e0b 16%, var(--mc-surface));
	box-shadow: none;
}

.page-account-dashboard .mc-dash__kpi-chip-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	border-radius: 8px;
	background: color-mix(in srgb, var(--kpi-accent) 12%, var(--mc-surface));
	color: var(--kpi-accent);
	box-shadow: none;
}

.page-account-dashboard .mc-dash__kpi-chip-copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1 1 auto;
}

.page-account-dashboard .mc-dash__kpi-chip-label {
	font-family: var(--default-font);
	font-size: 11px;
	font-weight: 500;
	line-height: 1.2em;
	color: #7c8fac;
	margin: 0;
}

.page-account-dashboard .mc-dash__kpi-chip-value {
	font-family: var(--default-font);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2em;
	color: var(--primary-color);
	margin: 0;
	font-variant-numeric: tabular-nums;
}

.page-account-dashboard .mc-dash__kpi-sparkline {
	position: absolute;
	right: 16px;
	bottom: 12px;
	width: 80px;
	height: 32px;
	color: rgba(var(--brand-primary-rgb), 0.35);
	pointer-events: none;
}

.page-account-dashboard .mc-dash__stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	margin-bottom: 28px;
}

.page-account-dashboard .mc-dash__stat-card {
	background: var(--mc-surface);
	border: 1px solid var(--mc-border);
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 2px 8px rgba(17, 28, 45, 0.04);
}

.page-account-dashboard .mc-dash__stat-label {
	font-family: var(--default-font);
	font-size: 14px;
	color: #7c8fac;
	margin: 0 0 8px;
}

.page-account-dashboard .mc-dash__stat-value {
	font-family: var(--default-font);
	font-size: 32px;
	font-weight: 600;
	line-height: 1.1em;
	color: var(--primary-color);
	margin: 0 0 6px;
}

.page-account-dashboard .mc-dash__stat-meta {
	font-family: var(--default-font);
	font-size: 13px;
	color: var(--brand-primary-hover);
	margin: 0;
}

.page-account-dashboard .mc-dash__overview-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 24px;
}

.page-account-dashboard .mc-dash__recent-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.page-account-dashboard .mc-dash__recent-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid var(--mc-border);
}

.page-account-dashboard .mc-dash__recent-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.page-account-dashboard .mc-dash__recent-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 10px;
}

.page-account-dashboard .mc-dash__recent-icon--blue {
	background: var(--brand-primary-soft);
	color: var(--brand-primary);
}

.page-account-dashboard .mc-dash__recent-icon--cyan {
	background: #e0f7fa;
	color: #00838f;
}

.page-account-dashboard .mc-dash__recent-icon--amber {
	background: #fff8e1;
	color: #f9a825;
}

.page-account-dashboard .mc-dash__recent-body {
	flex: 1;
	min-width: 0;
}

.page-account-dashboard .mc-dash__recent-title {
	font-family: var(--default-font);
	font-size: 15px;
	font-weight: 600;
	color: var(--primary-color);
	margin: 0 0 4px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.page-account-dashboard .mc-dash__recent-meta {
	font-family: var(--default-font);
	font-size: 13px;
	color: #7c8fac;
	margin: 0;
}

.page-account-dashboard .mc-dash__badge {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	padding: 4px 12px;
	border-radius: 999px;
	font-family: var(--default-font);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
}

.page-account-dashboard .mc-dash__badge--progress {
	background: var(--brand-primary-soft);
	color: var(--brand-primary);
}

.page-account-dashboard .mc-dash__badge--success {
	background: #e8f5e9;
	color: #2e7d32;
}

.page-account-dashboard .mc-dash__badge--draft {
	background: #fff3e0;
	color: #ef6c00;
}

.page-account-dashboard .mc-dash__timeline {
	list-style: none;
	margin: 0;
	padding: 0 0 0 8px;
	display: flex;
	flex-direction: column;
	gap: 0;
	border-left: 2px solid var(--mc-border);
}

.page-account-dashboard .mc-dash__timeline-item {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 0 0 20px 20px;
}

.page-account-dashboard .mc-dash__timeline-item:last-child {
	padding-bottom: 0;
}

.page-account-dashboard .mc-dash__timeline-dot {
	position: absolute;
	left: -5px;
	top: 4px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 2px solid var(--mc-surface);
	flex-shrink: 0;
}

.page-account-dashboard .mc-dash__timeline-dot--red {
	background: #e53935;
}

.page-account-dashboard .mc-dash__timeline-dot--blue {
	background: var(--brand-primary);
}

.page-account-dashboard .mc-dash__timeline-dot--indigo {
	background: #3949ab;
}

.page-account-dashboard .mc-dash__timeline-dot--green {
	background: #43a047;
}

.page-account-dashboard .mc-dash__timeline-body {
	min-width: 0;
}

.page-account-dashboard .mc-dash__timeline-title {
	font-family: var(--default-font);
	font-size: 14px;
	font-weight: 600;
	color: var(--primary-color);
	margin: 0 0 4px;
}

.page-account-dashboard .mc-dash__timeline-meta {
	font-family: var(--default-font);
	font-size: 13px;
	color: #7c8fac;
	margin: 0;
}

.page-account-dashboard .mc-dash__activity-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.page-account-dashboard .mc-dash__activity-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.page-account-dashboard .mc-dash__activity-dot {
	flex-shrink: 0;
	width: 10px;
	height: 10px;
	margin-top: 6px;
	border-radius: 50%;
	background: var(--brand-primary);
}

.page-account-dashboard .mc-dash__activity-title {
	font-family: var(--default-font);
	font-size: 15px;
	font-weight: 500;
	color: var(--primary-color);
	margin: 0 0 4px;
}

.page-account-dashboard .mc-dash__activity-meta {
	font-family: var(--default-font);
	font-size: 13px;
	color: #7c8fac;
	margin: 0;
}

.page-account-dashboard .mc-dash__quick-links {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.page-account-dashboard .mc-dash__quick-link {
	display: block;
	padding: 14px 16px;
	border: 1px solid var(--mc-border);
	border-radius: 10px;
	font-family: var(--default-font);
	font-size: 15px;
	font-weight: 500;
	color: var(--primary-color);
	background: var(--white-color);
	text-decoration: none;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.page-account-dashboard .mc-dash__quick-link:hover {
	border-color: var(--mc-border);
	background: var(--secondary-color);
	color: var(--primary-color);
}

/* --- Settings tabs ---------------------------------------------- */
.page-account-dashboard .mc-dash__settings {
	width: 100%;
	max-width: none;
}

.page-account-dashboard .mc-dash__settings-split {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
	gap: 20px;
	align-items: stretch;
}

.page-account-dashboard .mc-dash__settings-split > .mc-dash__panel-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.page-account-dashboard .mc-dash__settings-split .mc-dash__form {
	display: flex;
	flex-direction: column;
	flex: 1;
}

.page-account-dashboard .mc-dash__settings-split .mc-dash__form-actions {
	margin-top: auto;
	padding-top: 32px;
	border-top: 0;
}

.page-account-dashboard .mc-dash__settings .mc-dash__page-head {
	margin-bottom: 16px;
}

.page-account-dashboard .mc-dash__settings-tabs {
	display: flex;
	align-items: center;
	gap: 2px;
	width: fit-content;
	max-width: 100%;
	margin-bottom: 20px;
	padding: 4px;
	background: var(--brand-primary-soft);
	border: 1px solid color-mix(in srgb, var(--brand-primary) 18%, transparent);
	border-radius: 10px;
}

.page-account-dashboard .mc-dash__settings-tab {
	font-family: var(--default-font);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--brand-primary);
	background: transparent;
	border: 0;
	border-radius: 7px;
	padding: 7px 14px;
	margin: 0;
	white-space: nowrap;
	cursor: pointer;
	transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.page-account-dashboard .mc-dash__settings-tab:hover:not(.is-active) {
	color: var(--brand-primary-hover);
	background: color-mix(in srgb, var(--brand-primary) 12%, transparent);
}

.page-account-dashboard .mc-dash__settings-tab:focus-visible {
	outline: 2px solid var(--brand-primary);
	outline-offset: 2px;
}

.page-account-dashboard .mc-dash__settings-tab.is-active {
	color: #fff;
	background: var(--brand-primary);
	font-weight: 600;
	box-shadow: 0 2px 8px rgba(var(--brand-primary-rgb), 0.28);
}

.page-account-dashboard .mc-dash__settings-panel[hidden] {
	display: none;
}

.page-account-dashboard .mc-dash__settings-identity {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 24px;
	padding: 0;
	border-bottom: 0;
}

.page-account-dashboard .mc-dash__settings-identity-copy {
	min-width: 0;
}

.page-account-dashboard .mc-dash__settings-identity-name {
	font-family: var(--default-font);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--primary-color);
	margin: 0 0 2px;
}

.page-account-dashboard .mc-dash__settings-identity-meta {
	font-family: var(--default-font);
	font-size: 13px;
	line-height: 1.4;
	color: var(--mc-sidebar-muted);
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.page-account-dashboard .mc-dash__settings-section {
	margin-top: 8px;
	padding-top: 22px;
	border-top: 1px solid var(--mc-border);
	scroll-margin-top: 24px;
}

.page-account-dashboard .mc-dash__settings-section--password {
	scroll-margin-top: 24px;
}

.page-account-dashboard .mc-dash__settings-section .mc-dash__panel-head {
	margin-bottom: 0;
}

.page-account-dashboard .mc-dash__settings-section-title {
	font-family: var(--default-font);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--primary-color);
	margin: 0 0 4px;
}

.page-account-dashboard .mc-dash__settings-section-lead {
	font-family: var(--default-font);
	font-size: 13px;
	line-height: 1.45;
	color: var(--mc-sidebar-muted);
	margin: 0 0 16px;
}

.page-account-dashboard .mc-dash__form--password .mc-dash__form-stack {
	gap: 12px;
}

.page-account-dashboard .mc-dash__panel-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 4px;
}

.page-account-dashboard .mc-dash__panel-head .mc-dash__panel-title {
	margin-bottom: 4px;
}

.page-account-dashboard .mc-dash__panel-head .mc-dash__panel-lead {
	margin-bottom: 18px;
}

.page-account-dashboard .mc-dash__panel-head .mc-dash__btn {
	flex-shrink: 0;
	margin-top: 2px;
}

.page-account-dashboard .mc-dash__empty {
	padding: 28px 16px;
	text-align: center;
	background: color-mix(in srgb, var(--mc-border) 35%, var(--mc-page-bg));
	border: 1px dashed var(--mc-border);
	border-radius: 10px;
}

.page-account-dashboard .mc-dash__empty-title {
	font-family: var(--default-font);
	font-size: 15px;
	font-weight: 600;
	color: var(--primary-color);
	margin: 0 0 4px;
}

.page-account-dashboard .mc-dash__empty-text {
	font-family: var(--default-font);
	font-size: 13px;
	line-height: 1.45;
	color: var(--mc-sidebar-muted);
	margin: 0;
}

/* --- Integrations ------------------------------------------------ */
.page-account-dashboard .mc-dash__integrations-list {
	display: flex;
	flex-direction: column;
	margin-top: 4px;
	border-top: 1px solid var(--mc-border);
}

.page-account-dashboard .mc-dash__integration {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 0;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--mc-border);
	border-radius: 0;
	transition: background-color 0.15s ease;
}

.page-account-dashboard .mc-dash__integration:last-child {
	border-bottom: 0;
	padding-bottom: 4px;
}

.page-account-dashboard .mc-dash__integration:hover {
	border-color: var(--mc-border);
	box-shadow: none;
}

.page-account-dashboard .mc-dash__integration-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	background: color-mix(in srgb, var(--mc-border) 45%, var(--mc-page-bg));
	border: 1px solid var(--mc-border);
	border-radius: 10px;
}

.page-account-dashboard .mc-dash__integration-logo img {
	display: block;
	width: 26px;
	height: 26px;
	object-fit: contain;
}

.page-account-dashboard .mc-dash__integration-body {
	flex: 1;
	min-width: 0;
}

.page-account-dashboard .mc-dash__integration-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 3px;
}

.page-account-dashboard .mc-dash__integration-name {
	font-family: var(--default-font);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--primary-color);
	margin: 0;
}

.page-account-dashboard .mc-dash__integration-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.01em;
	color: var(--mc-sidebar-muted);
	background: #f4f7fb;
	border-radius: 999px;
}

.page-account-dashboard .mc-dash__integration-status-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #c2cbdb;
}

.page-account-dashboard .mc-dash__integration-status.is-connected {
	color: #0f7a4d;
	background: #e7f6ee;
}

.page-account-dashboard .mc-dash__integration-status.is-connected .mc-dash__integration-status-dot {
	background: #1aab66;
	box-shadow: 0 0 0 3px rgba(26, 171, 102, 0.18);
}

.page-account-dashboard .mc-dash__integration-desc {
	font-family: var(--default-font);
	font-size: 14px;
	line-height: 1.45;
	color: #5b6b85;
	margin: 0 0 2px;
}

.page-account-dashboard .mc-dash__integration-connected {
	font-family: var(--default-font);
	font-size: 14px;
	line-height: 1.45;
	color: #3d4f6a;
	margin: 0 0 4px;
}

.page-account-dashboard .mc-dash__integration-connected strong {
	font-weight: 600;
	color: var(--primary-color);
}

.page-account-dashboard .mc-dash__integration-author {
	font-family: var(--default-font);
	font-size: 12px;
	color: var(--mc-sidebar-muted);
}

.page-account-dashboard .mc-dash__integration-action {
	flex-shrink: 0;
}

.page-account-dashboard .mc-dash__integration-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--default-font);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.01em;
	min-height: 40px;
	padding: 10px 18px;
	border: 1px solid transparent;
	border-radius: 8px;
	cursor: pointer;
	white-space: nowrap;
	-webkit-tap-highlight-color: transparent;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.page-account-dashboard .mc-dash__integration-btn:focus-visible {
	outline: 2px solid var(--brand-primary);
	outline-offset: 2px;
}

.page-account-dashboard .mc-dash__integration-btn--primary {
	color: #fff;
	background: var(--brand-primary);
	border-color: var(--brand-primary);
}

.page-account-dashboard .mc-dash__integration-btn--primary:hover {
	background: var(--brand-primary-hover);
	border-color: var(--brand-primary-hover);
	box-shadow: 0 4px 12px rgba(var(--brand-primary-rgb), 0.28);
}

.page-account-dashboard .mc-dash__integration-btn--danger {
	color: #c0392b;
	background: transparent;
	border-color: rgba(192, 57, 43, 0.28);
}

.page-account-dashboard .mc-dash__integration-btn--danger:hover {
	color: #fff;
	background: #e74c3c;
	border-color: #e74c3c;
	box-shadow: 0 4px 12px rgba(231, 76, 60, 0.22);
}

.page-account-dashboard .mc-dash__integrations-empty {
	font-family: var(--default-font);
	font-size: 13px;
	color: var(--mc-sidebar-muted);
	margin: 8px 0 0;
	padding: 24px 16px;
	text-align: center;
	background: color-mix(in srgb, var(--mc-border) 35%, var(--mc-page-bg));
	border: 1px dashed var(--mc-border);
	border-radius: 10px;
}

@media (max-width: 575.98px) {
	.page-account-dashboard .mc-dash__integration {
		flex-wrap: wrap;
		gap: 14px;
	}

	.page-account-dashboard .mc-dash__integration-action {
		width: 100%;
	}

	.page-account-dashboard .mc-dash__integration-btn {
		width: 100%;
	}
}

/* --- Signatures -------------------------------------------------- */
.page-account-dashboard .mc-dash__signatures-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.page-account-dashboard .mc-dash__signature-item {
	min-width: 0;
}

.page-account-dashboard .mc-dash__signature-card {
	background: transparent;
	border: 1px solid var(--mc-border) !important;
	border-radius: 12px;
	padding: 16px 18px;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.page-account-dashboard .mc-dash__signature-card:hover {
	border-color: #cdd6e6 !important;
	box-shadow: 0 6px 20px rgba(17, 28, 45, 0.06);
}

.page-account-dashboard .mc-dash__signature-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.page-account-dashboard .mc-dash__signature-card-info {
	min-width: 0;
}

.page-account-dashboard .mc-dash__signature-title-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 5px;
}

.page-account-dashboard .mc-dash__signature-name {
	font-family: var(--default-font);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--primary-color);
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.page-account-dashboard .mc-dash__signature-date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: var(--default-font);
	font-size: 13px;
	color: var(--mc-sidebar-muted);
}

.page-account-dashboard .mc-dash__signature-date svg {
	flex-shrink: 0;
	opacity: 0.8;
}

.page-account-dashboard .mc-dash__signature-card-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	flex-shrink: 0;
}

.page-account-dashboard .mc-dash__signature-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 34px;
	padding: 0 12px;
	border: 1px solid var(--mc-border);
	border-radius: 9px;
	background: #fff;
	color: #5b6b85;
	font-family: var(--default-font);
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	white-space: nowrap;
	-webkit-tap-highlight-color: transparent;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.page-account-dashboard .mc-dash__signature-action svg {
	flex-shrink: 0;
}

.page-account-dashboard .mc-dash__signature-action:hover {
	background: var(--brand-primary-soft);
	border-color: rgba(0, 133, 219, 0.25);
	color: var(--brand-primary);
}

.page-account-dashboard .mc-dash__signature-action:focus-visible {
	outline: 2px solid var(--brand-primary);
	outline-offset: 1px;
}

.page-account-dashboard .mc-dash__signature-action--danger:hover {
	background: rgba(231, 76, 60, 0.1);
	border-color: rgba(231, 76, 60, 0.3);
	color: #e74c3c;
}

/* Checkbox "Par défaut" : OFF = cliquable, ON = signature courante (non cliquable) */
.page-account-dashboard .mc-dash__signature-default {
	gap: 8px;
	padding-left: 10px;
}

.page-account-dashboard .mc-dash__signature-checkbox {
	position: relative;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	border: 1.5px solid #c8ccd4;
	border-radius: 4px;
	background: #fff;
	transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-account-dashboard .mc-dash__signature-checkbox-mark {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 4px;
	height: 8px;
	margin-top: -1px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	opacity: 0;
	transform: translate(-50%, -60%) rotate(45deg) scale(0.4);
	transform-origin: center;
	transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.page-account-dashboard .mc-dash__signature-default--checked,
.page-account-dashboard .mc-dash__signature-default--checked:hover {
	background: #e7f6ee;
	border-color: rgba(15, 122, 77, 0.28);
	color: #0f7a4d;
	cursor: default;
}

.page-account-dashboard .mc-dash__signature-default--checked .mc-dash__signature-checkbox {
	background: #1ca35e;
	border-color: #1ca35e;
	animation: mc-dash-signature-checkbox-jelly 0.45s ease;
}

.page-account-dashboard .mc-dash__signature-default--checked .mc-dash__signature-checkbox-mark {
	opacity: 1;
	transform: translate(-50%, -60%) rotate(45deg) scale(1);
}

.page-account-dashboard .mc-dash__signature-default:not(.mc-dash__signature-default--checked):hover .mc-dash__signature-checkbox {
	border-color: rgba(0, 133, 219, 0.45);
	box-shadow: 0 0 0 3px rgba(0, 133, 219, 0.1);
}

@keyframes mc-dash-signature-checkbox-jelly {
	0% { transform: scale(1); }
	30% { transform: scale(1.18, 0.88); }
	50% { transform: scale(0.92, 1.08); }
	70% { transform: scale(1.06, 0.96); }
	100% { transform: scale(1); }
}

.page-account-dashboard .mc-dash__signature-preview-wrapper {
	padding: 20px;
	background: #f8fafc;
	border: 1px solid var(--mc-border);
	border-radius: 10px;
	overflow: hidden;
}

.page-account-dashboard .mm-signature-preview-wrapper:not([data-shadow-ready]) {
	min-height: 120px;
}

.page-account-dashboard .mm-signature-preview-wrapper:not([data-shadow-ready]) .mm-signature-shadow-host {
	display: block;
	min-height: 80px;
}

.page-account-dashboard .mc-dash__empty-icon {
	width: 80px;
	height: 80px;
}

.page-account-dashboard .mc-dash__empty-icon i {
	font-size: 2.5rem;
}

.page-account-dashboard .mc-dash__empty-card {
	border-color: var(--mc-border) !important;
	border-radius: 14px;
}

@media (max-width: 575.98px) {
	.page-account-dashboard .mc-dash__signature-card-head {
		flex-wrap: wrap;
		align-items: flex-start;
	}

	.page-account-dashboard .mc-dash__signature-card-actions {
		width: 100%;
		justify-content: flex-start;
	}
}

.page-account-dashboard .mc-dash__toggle-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.page-account-dashboard .mc-dash__toggle-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid var(--mc-border);
	cursor: pointer;
}

.page-account-dashboard .mc-dash__toggle-row:last-child {
	border-bottom: 0;
}

.page-account-dashboard .mc-dash__toggle-title {
	display: block;
	font-family: var(--default-font);
	font-size: 15px;
	font-weight: 500;
	color: var(--primary-color);
	margin-bottom: 4px;
}

.page-account-dashboard .mc-dash__toggle-desc {
	display: block;
	font-family: var(--default-font);
	font-size: 13px;
	color: #7c8fac;
}

.page-account-dashboard .mc-dash__plan-card {
	background: linear-gradient(155deg, #fffbf3 0%, #ffffff 100%);
}

.page-account-dashboard .mc-dash__plan-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.page-account-dashboard .mc-dash__plan-label {
	font-family: var(--default-font);
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #7c8fac;
	margin: 0 0 6px;
}

.page-account-dashboard .mc-dash__plan-badge {
	display: inline-flex;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--brand-primary-soft);
	color: var(--brand-primary-hover);
	font-family: var(--default-font);
	font-size: 13px;
	font-weight: 600;
	flex-shrink: 0;
}

.page-account-dashboard .mc-dash__plan-features {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.page-account-dashboard .mc-dash__plan-features li {
	font-family: var(--default-font);
	font-size: 14px;
	color: var(--primary-color);
	padding-left: 18px;
	position: relative;
}

.page-account-dashboard .mc-dash__plan-features li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--brand-primary);
}

/* --- Shared panels ---------------------------------------------- */
.page-account-dashboard .mc-dash__panel {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.page-account-dashboard .mc-dash__panel-card {
	background: var(--mc-surface);
	border: 1px solid var(--mc-border);
	border-radius: 12px;
	padding: 22px 24px;
	box-shadow: 0 2px 8px rgba(17, 28, 45, 0.04);
}

.page-account-dashboard .mc-dash__photo-row {
	display: flex;
	align-items: center;
	gap: 16px;
}

.page-account-dashboard .mc-dash__profile-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: hsl(220, 56%, 45%);
	color: #fff;
	font-family: var(--default-font);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	line-height: 1;
	flex-shrink: 0;
}

.page-account-dashboard .mc-dash__photo-copy {
	flex: 1;
	min-width: 0;
}

.page-account-dashboard .mc-dash__photo-title {
	font-family: var(--default-font);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3em;
	color: var(--primary-color);
	margin: 0 0 2px;
}

.page-account-dashboard .mc-dash__photo-meta {
	font-family: var(--default-font);
	font-size: 13px;
	color: var(--mc-sidebar-muted);
	margin: 0;
}

.page-account-dashboard .mc-dash__panel-title {
	font-family: var(--default-font);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--primary-color);
	margin: 0 0 6px;
}

.page-account-dashboard .mc-dash__panel-lead {
	font-family: var(--default-font);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--mc-sidebar-muted);
	margin: 0 0 20px;
}

.page-account-dashboard .mc-dash__form .form-label {
	font-family: var(--default-font);
	font-size: 13px;
	font-weight: 500;
	color: var(--primary-color);
	margin-bottom: 6px;
}

.page-account-dashboard .mc-dash__form-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 16px 18px;
}

.page-account-dashboard .mc-dash__form-stack {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.page-account-dashboard .mc-dash__form--narrow {
	max-width: 26rem;
}

.page-account-dashboard .mc-dash__field {
	min-width: 0;
}

.page-account-dashboard .mc-dash__field .iti {
	width: 100%;
	display: block;
}

.page-account-dashboard .mc-dash__form .form-control,
.page-account-dashboard .mc-dash__form .form-select {
	font-family: var(--default-font);
	font-size: 14px;
	color: var(--primary-color);
	background: var(--white-color);
	border: 1px solid var(--mc-border);
	border-radius: 8px;
	padding: 9px 12px;
	min-height: 40px;
}

.page-account-dashboard .mc-dash__form .form-select {
	color-scheme: light;
}

.page-account-dashboard .mc-dash__form .form-select option {
	background-color: var(--mc-surface);
	color: var(--primary-color);
	-webkit-text-fill-color: var(--primary-color);
}

.page-account-dashboard .mc-dash__form .form-select option:where(:hover, :focus, :active),
.page-account-dashboard .mc-dash__form .form-select option:checked {
	background: color-mix(in srgb, var(--brand-primary) 16%, var(--mc-surface));
	color: var(--primary-color);
	-webkit-text-fill-color: var(--primary-color);
}

.page-account-dashboard .mc-dash__form .form-select option::checkmark {
	color: var(--brand-primary);
}

.page-account-dashboard .mc-dash__form .form-select::picker-icon {
	color: inherit;
}

.page-account-dashboard .mc-dash__form .form-control:focus,
.page-account-dashboard .mc-dash__form .form-select:focus {
	border-color: var(--brand-primary);
	box-shadow: 0 0 0 0.2rem rgba(var(--brand-primary-rgb), 0.15);
}

.page-account-dashboard .mc-dash__form-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid var(--mc-border);
}

.page-account-dashboard .mc-dash__form-actions.mc-dash__form-actions--start {
	justify-content: flex-start;
	margin-top: 14px;
	padding-top: 0;
	border-top: 0;
}

.page-account-dashboard .mc-dash__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--default-font);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	padding: 10px 18px;
	min-height: 40px;
	border-radius: 8px;
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.page-account-dashboard .mc-dash__btn:focus-visible {
	outline: 2px solid var(--brand-primary);
	outline-offset: 2px;
}

.page-account-dashboard .mc-dash__btn--outline {
	background: var(--white-color);
	border-color: var(--mc-border);
	color: var(--primary-color);
	flex-shrink: 0;
}

.page-account-dashboard .mc-dash__btn--outline:hover {
	border-color: var(--brand-primary);
	color: var(--brand-primary-hover);
}

.page-account-dashboard .mc-dash__btn--primary {
	background: var(--brand-primary);
	border-color: var(--brand-primary);
	color: var(--white-color);
}

.page-account-dashboard .mc-dash__btn--primary:hover {
	background: var(--brand-primary-hover);
	border-color: var(--brand-primary-hover);
	color: var(--white-color);
}

.page-account-dashboard .mc-dash__btn--block {
	width: auto;
}

/* --- Password fields -------------------------------------------- */
.page-account-dashboard .mc-dash__password-group {
	position: relative;
	display: flex;
	align-items: stretch;
}

.page-account-dashboard .mc-dash__password-group .form-control {
	padding-right: 42px;
}

.page-account-dashboard .mc-dash__password-toggle {
	position: absolute;
	top: 1px;
	right: 1px;
	bottom: 1px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	border: 0;
	border-radius: 0 7px 7px 0;
	background: transparent;
	color: var(--mc-sidebar-muted);
	cursor: pointer;
}

.page-account-dashboard .mc-dash__password-toggle:hover,
.page-account-dashboard .mc-dash__password-toggle:focus {
	color: var(--primary-color);
	background: #eff4fa;
	outline: none;
}

.page-account-dashboard .mc-dash__password-icon--hide {
	display: none;
}

.page-account-dashboard .mc-dash__password-toggle.is-visible .mc-dash__password-icon--show {
	display: none;
}

.page-account-dashboard .mc-dash__password-toggle.is-visible .mc-dash__password-icon--hide {
	display: block;
}

.page-account-dashboard .mc-dash__password-group:focus-within .form-control {
	border-color: var(--brand-primary);
	box-shadow: 0 0 0 0.2rem rgba(var(--brand-primary-rgb), 0.15);
}

@media (max-width: 1199px) {
	.page-account-dashboard .mc-dash__stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.page-account-dashboard .mc-dash__kpi-value {
		font-size: 36px;
	}

	.page-account-dashboard .mc-dash__overview-grid {
		grid-template-columns: 1fr;
	}
}

/* ================================================================
   MOBILE (<= 991px) — app-like shell: sticky top bar + bottom tab bar
   ================================================================ */
@media (max-width: 991px) {
	.page-account-dashboard .mc-dash__settings-split {
		grid-template-columns: 1fr;
	}
	.page-account-dashboard {
		height: auto;
		overflow: visible;
	}

	.page-account-dashboard .mc-dash {
		flex-direction: column;
		height: auto;
		min-height: 100vh;
		min-height: 100dvh;
		overflow: visible;
	}

	.page-account-dashboard .mc-dash__shell {
		overflow: visible;
	}

	.page-account-dashboard .mc-dash__body {
		overflow: visible;
		padding: 20px 16px calc(20px + var(--mc-bottomnav-h) + env(safe-area-inset-bottom, 0px));
		scroll-padding-bottom: calc(var(--mc-bottomnav-h) + env(safe-area-inset-bottom, 0px));
	}

	/* --- Top app bar (sticky, frosted) --------------------------- */
	.page-account-dashboard .mc-dash__header {
		position: sticky;
		top: 0;
		z-index: 50;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		padding: 10px 16px;
		background: var(--mc-surface);
		background: color-mix(in srgb, var(--mc-surface) 85%, transparent);
		-webkit-backdrop-filter: saturate(180%) blur(12px);
		backdrop-filter: saturate(180%) blur(12px);
	}

	.page-account-dashboard .mc-dash__header-start {
		gap: 10px;
	}

	.page-account-dashboard .mc-dash__sidebar-toggle--header {
		display: none;
	}

	.page-account-dashboard .mc-dash__topbar-brand {
		display: inline-flex;
	}

	.page-account-dashboard .mc-dash__header-actions {
		justify-content: flex-end;
		flex-wrap: nowrap;
		gap: 4px;
	}

	.page-account-dashboard .mc-dash__header-username {
		max-width: 130px;
	}

	/* --- Bottom tab bar (5 onglets + Plus) ----------------------- */
	.page-account-dashboard .mc-dash__sidebar,
	.page-account-dashboard .mc-dash.is-sidebar-collapsed .mc-dash__sidebar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 50;
		flex: none;
		height: calc(var(--mc-bottomnav-h) + env(safe-area-inset-bottom, 0px));
		border-right: 0;
		border-top: 1px solid color-mix(in srgb, var(--mc-border) 80%, transparent);
		background: color-mix(in srgb, var(--mc-surface) 88%, transparent);
		-webkit-backdrop-filter: saturate(180%) blur(16px);
		backdrop-filter: saturate(180%) blur(16px);
		box-shadow: none;
		width: auto;
		min-width: 0;
		overflow: visible;
		transition: none;
	}

	.page-account-dashboard .mc-dash__sidebar-inner,
	.page-account-dashboard .mc-dash.is-sidebar-collapsed .mc-dash__sidebar-inner {
		flex-direction: row;
		align-items: stretch;
		height: 100%;
		min-height: 0;
		width: auto;
		min-width: 0;
		padding: 0 4px env(safe-area-inset-bottom, 0px);
	}

	.page-account-dashboard .mc-dash__brand-row,
	.page-account-dashboard .mc-dash__sidebar-footer,
	.page-account-dashboard .mc-dash__sidebar-user {
		display: none;
	}

	.page-account-dashboard .mc-dash__nav,
	.page-account-dashboard .mc-dash.is-sidebar-collapsed .mc-dash__nav {
		overflow: visible;
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: stretch;
		flex: 1;
		gap: 0;
		width: 100%;
		min-height: var(--mc-bottomnav-h);
	}

	.page-account-dashboard .mc-dash__nav-list,
	.page-account-dashboard .mc-dash.is-sidebar-collapsed .mc-dash__nav-list {
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: stretch;
		flex: 1;
		gap: 0;
		width: 100%;
		min-height: var(--mc-bottomnav-h);
		overflow: visible;
		scrollbar-width: none;
	}

	.page-account-dashboard .mc-dash__nav-list > li {
		display: flex;
		flex: 1 1 0;
		min-width: 0;
		align-items: stretch;
	}

	.page-account-dashboard .mc-dash__nav-end {
		display: flex;
		flex-direction: column;
		margin: 0;
		padding: 0;
		border: 0;
	}

	.page-account-dashboard .mc-dash__nav-end > .mc-dash__nav-more {
		flex: 1 1 auto;
		width: 100%;
	}

	.page-account-dashboard .mc-dash__nav-overflow {
		display: none !important;
	}

	.page-account-dashboard .mc-dash__nav-more.mc-dash__nav-link {
		display: flex;
	}

	.page-account-dashboard .mc-dash__nav-link,
	.page-account-dashboard .mc-dash.is-sidebar-collapsed .mc-dash__nav-link,
	.page-account-dashboard button.mc-dash__nav-link {
		flex: 1 1 0;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 2px;
		width: auto;
		min-width: 0;
		min-height: 0;
		padding: 6px 2px 5px;
		border-left: 0;
		border-radius: 0;
		color: var(--mc-sidebar-muted);
		text-align: center;
		-webkit-tap-highlight-color: transparent;
	}

	.page-account-dashboard .mc-dash__nav-list > li > .mc-dash__nav-link {
		width: 100%;
	}

	.page-account-dashboard .mc-dash__nav-link:hover {
		background: transparent;
		color: var(--mc-sidebar-muted);
	}

	.page-account-dashboard .mc-dash__nav-parent:hover,
	.page-account-dashboard .mc-dash__nav-parent:has(.is-current),
	.page-account-dashboard .mc-dash__nav-parent:has(.is-current):hover,
	.page-account-dashboard .mc-dash__nav-link.is-current,
	.page-account-dashboard .mc-dash__nav-link.is-current:hover,
	.page-account-dashboard .mc-dash__nav-link[aria-current="page"],
	.page-account-dashboard .mc-dash__nav-link[aria-current="page"]:hover {
		background: transparent;
		font-weight: 500;
	}

	.page-account-dashboard .mc-dash__nav-icon {
		width: 48px;
		height: 28px;
		padding: 0;
		border-radius: 14px;
		opacity: 1;
		color: inherit;
		transition: background-color 0.15s ease, color 0.15s ease;
	}

	.page-account-dashboard .mc-dash__nav-icon svg {
		width: 22px;
		height: 22px;
	}

	.page-account-dashboard .mc-dash__nav-link.is-active,
	.page-account-dashboard .mc-dash__nav-link.is-active:hover,
	.page-account-dashboard .mc-dash__nav-link.is-current,
	.page-account-dashboard .mc-dash__nav-link.is-current:hover,
	.page-account-dashboard .mc-dash__nav-link[aria-current],
	.page-account-dashboard .mc-dash__nav-link[aria-current]:hover,
	.page-account-dashboard .mc-dash__nav:has(#mc-dash-nav-more:popover-open) .mc-dash__nav-more {
		background: transparent;
		color: var(--brand-primary);
	}

	.page-account-dashboard .mc-dash__nav-link.is-active .mc-dash__nav-icon,
	.page-account-dashboard .mc-dash__nav-link.is-current .mc-dash__nav-icon,
	.page-account-dashboard .mc-dash__nav-link[aria-current] .mc-dash__nav-icon,
	.page-account-dashboard .mc-dash__nav:has(#mc-dash-nav-more:popover-open) .mc-dash__nav-more .mc-dash__nav-icon {
		background: color-mix(in srgb, var(--brand-primary) 16%, transparent);
		color: var(--brand-primary);
	}

	.page-account-dashboard .mc-dash__nav-label,
	.page-account-dashboard .mc-dash.is-sidebar-collapsed .mc-dash__nav-label {
		display: none;
	}

	.page-account-dashboard .mc-dash__nav-label-short {
		display: block;
		max-width: 100%;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		font-family: var(--default-font);
		font-size: 10px;
		font-weight: 500;
		line-height: 1.2;
		letter-spacing: 0.01em;
	}

	.page-account-dashboard .mc-dash__nav-link.is-active .mc-dash__nav-label-short,
	.page-account-dashboard .mc-dash__nav-link.is-current .mc-dash__nav-label-short,
	.page-account-dashboard .mc-dash__nav-link[aria-current] .mc-dash__nav-label-short,
	.page-account-dashboard .mc-dash__nav:has(#mc-dash-nav-more:popover-open) .mc-dash__nav-more .mc-dash__nav-label-short {
		font-weight: 600;
		color: var(--brand-primary);
	}

	.page-account-dashboard .mc-dash__nav-sheet {
		inset: auto 10px calc(var(--mc-bottomnav-h) + 8px + env(safe-area-inset-bottom, 0px)) 10px;
		width: auto;
		max-width: none;
		margin: 0;
		padding: 6px 8px 8px;
		border: 1px solid var(--mc-border);
		border-radius: 20px;
		background: var(--mc-surface);
		box-shadow: none;
		color: var(--primary-color);
	}

	.page-account-dashboard .mc-dash__nav-sheet:popover-open {
		display: flex;
		flex-direction: column;
		gap: 2px;
	}

	.page-account-dashboard .mc-dash__nav-sheet::backdrop {
		background: var(--mm-modal-backdrop-veil, rgba(15, 23, 42, 0.40));
	}

	.page-account-dashboard .mc-dash__nav-sheet-handle {
		width: 36px;
		height: 4px;
		margin: 6px auto 8px;
		border-radius: 4px;
		background: color-mix(in srgb, var(--mc-sidebar-muted) 35%, transparent);
	}

	.page-account-dashboard .mc-dash__nav-sheet-link {
		display: flex;
		align-items: center;
		gap: 12px;
		min-height: 48px;
		padding: 8px 10px;
		border-radius: 14px;
		text-decoration: none;
		color: var(--primary-color);
	}

	.page-account-dashboard .mc-dash__nav-sheet-link:focus-visible {
		background: color-mix(in srgb, var(--brand-primary) 8%, var(--mc-surface));
		color: var(--primary-color);
		outline: none;
	}

	.page-account-dashboard .mc-dash__nav-sheet-link.is-active,
	.page-account-dashboard .mc-dash__nav-sheet-link[aria-current] {
		background: var(--brand-primary-soft);
		color: var(--brand-primary);
	}

	.page-account-dashboard .mc-dash__nav-sheet-icon {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex-shrink: 0;
		width: 36px;
		height: 36px;
		border-radius: 10px;
		background: color-mix(in srgb, var(--brand-primary) 10%, var(--mc-surface));
		color: var(--brand-primary);
	}

	.page-account-dashboard .mc-dash__nav-sheet-label {
		font-family: var(--default-font);
		font-size: 15px;
		font-weight: 600;
		line-height: 1.3;
	}

	.page-account-dashboard .mc-dash__nav-link--sub,
	.page-account-dashboard .mc-dash__nav-sub,
	.page-account-dashboard .mc-dash__nav-chevron,
	.page-account-dashboard .mc-dash__nav-group.is-open > .mc-dash__nav-sub {
		display: none;
	}

	.page-account-dashboard .mc-dash__nav-group {
		flex: 1 1 auto;
		width: 100%;
		min-width: 0;
		flex-direction: row;
		contain: none;
	}

	.page-account-dashboard .mc-dash__nav-group > .mc-dash__nav-parent {
		flex: 1 1 0;
		min-width: 0;
	}

	.page-account-dashboard .mc-dash__nav-parent > .mc-dash__nav-toggle {
		display: none;
	}

	.page-account-dashboard .mc-dash__nav-parent > .mc-dash__nav-link {
		flex: 1 1 0;
		width: 100%;
	}

	/* --- Content reflow ------------------------------------------ */
	.page-account-dashboard .mc-dash__recent-item {
		flex-wrap: wrap;
	}

	.page-account-dashboard .mc-dash__badge {
		margin-left: 60px;
	}

	.page-account-dashboard .mc-dash__kpi-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.page-account-dashboard .mc-dash__stats {
		grid-template-columns: 1fr;
	}

	.page-account-dashboard .mc-dash__kpi-card {
		padding: 16px 14px 12px;
		border-radius: 14px;
	}

	.page-account-dashboard .mc-dash__kpi-icon {
		width: 36px;
		height: 36px;
		border-radius: 8px;
		box-shadow: none;
	}

	.page-account-dashboard .mc-dash__kpi-value {
		font-size: 32px;
	}

	.page-account-dashboard .mc-dash__kpi-mark {
		width: 120px;
		height: 120px;
		top: 16px;
		right: -12px;
	}

	.page-account-dashboard .mc-dash__settings-tabs {
		width: 100%;
		overflow-x: auto;
	}

	.page-account-dashboard .mc-dash__settings-tab {
		flex-shrink: 0;
	}

	.page-account-dashboard .mc-dash__panel-head {
		flex-wrap: wrap;
	}

	.page-account-dashboard .mc-dash__photo-row {
		flex-wrap: wrap;
	}
}

/* Phones — declutter the top bar (name lives in the avatar menu) */
@media (max-width: 575.98px) {
	.page-account-dashboard .mc-dash__header-username {
		display: none;
	}

	.page-account-dashboard .mc-dash__form-grid {
		grid-template-columns: 1fr;
	}

	.page-account-dashboard .mc-dash__form-actions {
		justify-content: stretch;
	}

	.page-account-dashboard .mc-dash__form-actions:not(.mc-dash__form-actions--start) .mc-dash__btn--primary {
		width: 100%;
	}
}

/* --- Dashboard hub extras ---------------------------------------- */
.page-account-dashboard .mc-dash__page-head--with-cta {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.page-account-dashboard .mc-dash__stat-card--link {
	text-decoration: none;
	color: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-account-dashboard .mc-dash__stat-card--link:hover {
	border-color: rgba(var(--brand-primary-rgb), 0.35);
	box-shadow: 0 4px 16px rgba(var(--brand-primary-rgb), 0.08);
}

.page-account-dashboard .mc-dash__form-actions .mc-dash__btn--outline {
	margin-bottom: 0;
}

/* --- Assistant (in account shell) ---------------------------------- */
.page-account-assistant .mc-dash__body--assistant {
	display: flex;
	flex-direction: column;
	min-height: 0;
	padding-bottom: 24px;
}

.page-account-assistant .mc-assistant {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	gap: 16px;
}

.page-account-assistant .mc-assistant__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.page-account-assistant .mc-assistant__chat-title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 600;
}

.page-account-assistant .mc-assistant__chat-subtitle {
	margin: 4px 0 0;
	font-size: 0.875rem;
	color: rgba(3, 23, 29, 0.55);
}

.page-account-assistant .mc-assistant__panel {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 420px;
	max-height: calc(100vh - 220px);
	border: 1px solid var(--mc-border);
	border-radius: 16px;
	background: #fff;
	overflow: hidden;
}

.page-account-assistant .demo-chat-messages {
	flex: 1;
	min-height: 0;
}

/* --- Favoris ----------------------------------------------------- */
.page-account-dashboard .mc-favoris__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}

.page-account-dashboard .mc-favoris__card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 16px;
	padding: 20px;
	border: 1px solid var(--mc-border);
	border-radius: 12px;
	background: var(--mc-surface);
}

.page-account-dashboard .mc-favoris__title {
	margin: 0 0 6px;
	font-size: 1.05rem;
	font-weight: 600;
}

.page-account-dashboard .mc-favoris__location,
.page-account-dashboard .mc-favoris__price {
	margin: 0;
	font-size: 0.9rem;
	color: rgba(3, 23, 29, 0.65);
}

.page-account-dashboard .mc-favoris__empty {
	text-align: center;
}

.page-account-dashboard .mc-favoris__empty .mc-dash__btn {
	margin-top: 16px;
}

/* --- Alertes ----------------------------------------------------- */
.page-account-dashboard .mc-alertes__grid {
	align-items: start;
}

.page-account-dashboard .mc-alertes__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.page-account-dashboard .mc-alertes__item {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid var(--mc-border);
}

.page-account-dashboard .mc-alertes__item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.page-account-dashboard .mc-alertes__item-title {
	margin: 0 0 4px;
	font-size: 1rem;
	font-weight: 600;
}

.page-account-dashboard .mc-alertes__item-summary,
.page-account-dashboard .mc-alertes__item-meta {
	margin: 0;
	font-size: 0.875rem;
	color: rgba(3, 23, 29, 0.6);
}

.page-account-dashboard .mc-alertes__item-aside {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	flex-shrink: 0;
}

.page-account-dashboard .mc-alertes__badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
}

.page-account-dashboard .mc-alertes__badge.is-active {
	background: var(--brand-primary-soft);
	color: var(--brand-primary);
}

.page-account-dashboard .mc-alertes__badge.is-paused {
	background: #f0f2f5;
	color: rgba(3, 23, 29, 0.55);
}

.page-account-dashboard .mc-alertes__empty {
	margin: 0;
	font-size: 0.9rem;
	color: rgba(3, 23, 29, 0.55);
}

.page-account-dashboard .mc-alertes__ui-note {
	margin: 0 0 12px;
	font-size: 0.8rem;
	color: rgba(3, 23, 29, 0.5);
	font-style: italic;
}

.page-account-dashboard .mc-alertes__ui-note--inline {
	margin-top: 10px;
	margin-bottom: 0;
	text-align: center;
}

.page-account-dashboard .mc-alertes__delete {
	padding: 6px 12px;
	font-size: 0.8rem;
}

.page-account-dashboard .visually-hidden,
.page-account-assistant .sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ================================================================
   Theme toggle (Maestra dark/light) — moon shown in light, sun in dark
   ================================================================ */
.page-account-dashboard .mc-dash__theme-toggle.sun {
	display: none;
}

html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__theme-toggle.moon {
	display: none;
}

html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__theme-toggle.sun {
	display: inline-flex;
}

/* ================================================================
   DARK THEME — scoped to the account shell (data-bs-theme="dark")
   ================================================================ */
html[data-bs-theme="dark"] .page-account-dashboard,
html[data-bs-theme="dark"] .page-account-assistant {
	--brand-primary-soft: rgba(0, 161, 255, 0.16);
	--mc-page-bg: #0e1316;
	--mc-surface: #161d21;
	--mc-border: #28323a;
	--white-color: #1c252a;
	--mc-sidebar-text: #e6edf2;
	--mc-sidebar-muted: #8b97a3;
	--mc-sidebar-bg: #12181c;
	--mc-sidebar-hover: rgba(226, 235, 245, 0.06);
	--mc-nav-rail: rgba(226, 235, 245, 0.16);
	--mc-scroll-thumb: rgba(226, 235, 245, 0.16);
	--mc-scroll-thumb-hover: rgba(226, 235, 245, 0.30);
	--mc-scroll-thumb-active: rgba(226, 235, 245, 0.42);
	color-scheme: dark;
}

/* --- Restore white text on filled brand buttons ----------------- */
html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__btn--primary,
html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__btn--primary:hover,
html[data-bs-theme="dark"] .page-account-dashboard .btn-primary {
	color: #ffffff;
}

/* --- Neutral hover surfaces (replace light #eff4fa) ------------- */
html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__sidebar-toggle:hover,
html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__sidebar-toggle--header:hover,
html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__sidebar-toggle--header:focus-visible,
html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__user-trigger:hover,
html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__user-trigger:focus,
html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__user-trigger[aria-expanded="true"],
html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__user-menu-link:hover,
html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__user-menu-link:focus,
html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__password-toggle:hover,
html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__password-toggle:focus {
	background: rgba(255, 255, 255, 0.06);
}

html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__icon-btn:hover,
html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__icon-btn:focus-visible,
html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__search-results-item.is-active,
html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__search-results-item:hover {
	background: rgba(255, 255, 255, 0.06);
	color: var(--brand-primary);
}

/* --- Logout link ------------------------------------------------- */
html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__user-menu-logout {
	color: #ff7a6e;
}

html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__user-menu-logout:hover,
html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__user-menu-logout:focus {
	background: rgba(255, 122, 110, 0.12);
	color: #ff7a6e;
}

/* --- Segmented settings tabs ------------------------------------ */
html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__settings-tabs {
	background: var(--brand-primary-soft);
	border-color: color-mix(in srgb, var(--brand-primary) 28%, transparent);
}

html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__settings-tab:hover:not(.is-active) {
	background: color-mix(in srgb, var(--brand-primary) 18%, transparent);
	color: color-mix(in srgb, var(--brand-primary) 72%, #fff);
}

html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__settings-tab.is-active {
	color: #fff;
	background: var(--brand-primary);
	box-shadow: 0 2px 10px rgba(var(--brand-primary-rgb), 0.38);
}

html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__empty {
	background: rgba(255, 255, 255, 0.03);
	border-color: var(--mc-border);
}

html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__form .form-select {
	color-scheme: dark;
}

/* --- Integration cards ------------------------------------------ */
html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__integration:hover {
	border-color: var(--mc-border);
	box-shadow: none;
}

html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__integration-logo {
	background: rgba(255, 255, 255, 0.05);
	border-color: var(--mc-border);
}

html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__integration-status {
	background: rgba(255, 255, 255, 0.06);
	color: var(--mc-sidebar-muted);
}

html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__integration-status-dot {
	background: #6b7886;
}

html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__integration-desc {
	color: #9aa7b4;
}

html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__integration-connected {
	color: #b8c4d0;
}

html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__integration-connected strong {
	color: #e8edf3;
}

html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__integration-btn--danger {
	color: #ff7a6e;
	border-color: rgba(255, 122, 110, 0.38);
}

html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__integrations-empty {
	background: rgba(255, 255, 255, 0.03);
	border-color: var(--mc-border);
}

/* --- Success pills (connected) ---------------------------------- */
html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__integration-status.is-connected {
	color: #3ddc97;
	background: rgba(46, 224, 138, 0.16);
}

html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__integration-status.is-connected .mc-dash__integration-status-dot {
	background: #2ee08a;
	box-shadow: 0 0 0 3px rgba(46, 224, 138, 0.22);
}

/* --- Signature cards -------------------------------------------- */
html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__signature-card:hover {
	border-color: #3a4750 !important;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__signature-action {
	background: rgba(255, 255, 255, 0.04);
	color: #9aa7b4;
}

html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__signature-action:hover {
	background: var(--brand-primary-soft);
	border-color: rgba(0, 161, 255, 0.4);
	color: var(--brand-primary);
}

html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__signature-checkbox {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.22);
}

html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__signature-default:not(.mc-dash__signature-default--checked):hover .mc-dash__signature-checkbox {
	border-color: rgba(0, 161, 255, 0.55);
	box-shadow: 0 0 0 3px rgba(0, 161, 255, 0.12);
}

html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__signature-default--checked,
html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__signature-default--checked:hover {
	background: rgba(46, 224, 138, 0.16);
	border-color: rgba(46, 224, 138, 0.35);
	color: #3ddc97;
}

html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__signature-default--checked .mc-dash__signature-checkbox {
	background: #2ee08a;
}

/* Signature preview stays on light "paper" — e-mail HTML renders on white */
html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__signature-preview-wrapper {
	background: #ffffff;
	border-color: var(--mc-border);
}

/* --- Subscription plan card ------------------------------------- */
html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__plan-card {
	background: linear-gradient(155deg, #1b2329 0%, #161d21 100%);
}

/* --- Overview accent chips -------------------------------------- */
html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__recent-icon--cyan {
	background: rgba(0, 180, 216, 0.16);
	color: #4dd0e1;
}

html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__recent-icon--amber {
	background: rgba(249, 168, 37, 0.16);
	color: #ffca5f;
}

html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__badge--success {
	background: rgba(46, 224, 138, 0.16);
	color: #3ddc97;
}

html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__badge--draft {
	background: rgba(239, 108, 0, 0.18);
	color: #ffb15c;
}

/* --- Assistant / favoris / alertes ------------------------------ */
html[data-bs-theme="dark"] .page-account-assistant .mc-assistant__chat-subtitle,
html[data-bs-theme="dark"] .page-account-dashboard .mc-favoris__location,
html[data-bs-theme="dark"] .page-account-dashboard .mc-favoris__price,
html[data-bs-theme="dark"] .page-account-dashboard .mc-alertes__item-summary,
html[data-bs-theme="dark"] .page-account-dashboard .mc-alertes__item-meta,
html[data-bs-theme="dark"] .page-account-dashboard .mc-alertes__empty,
html[data-bs-theme="dark"] .page-account-dashboard .mc-alertes__ui-note {
	color: #9aa7b4;
}

html[data-bs-theme="dark"] .page-account-assistant .mc-assistant__panel {
	background: var(--mc-surface);
}

html[data-bs-theme="dark"] .page-account-dashboard .mc-alertes__badge.is-paused {
	background: rgba(255, 255, 255, 0.08);
	color: #9aa7b4;
}

/* ================================================================
   Premium modals (2026) — scoped to the account shell
   Voile stable + dialogue raffiné, light & dark
   ================================================================ */

/* Le socle Maestra gère l'animation et interdit le filtre GPU instable. */
.page-account-dashboard {
	--mm-modal-backdrop-bg: rgba(10, 18, 30, 0.66);
	--mm-modal-backdrop-core: rgba(10, 18, 30, 0.16);
}

/* Strip Bootstrap's slide/fade on the dialog wrapper — the .modal-content
   plays ONE fast premium entrance instead (no lag, no pop). */
.page-account-dashboard .modal.fade {
	transition: none;
}

.page-account-dashboard .modal.fade .modal-dialog,
.page-account-dashboard .modal.show .modal-dialog {
	opacity: 1;
	transform: none;
	transition: none;
}

/* Fast, premium entrance — starts immediately, in sync with the blur */
.page-account-dashboard .modal.show .modal-content {
	transform-origin: center top;
	animation: mcModalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes mcModalIn {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.97);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.page-account-dashboard .modal.show .modal-content {
		animation-duration: 0.01ms;
	}

	.page-account-dashboard .mc-dash__kpi-card--panel,
	.page-account-dashboard .mc-dash__kpi-go,
	.page-account-dashboard .mc-dash__kpi-chip {
		transition: none;
	}
}

/* Surface */
.page-account-dashboard .modal-content {
	position: relative;
	border: 1px solid var(--mc-border);
	border-radius: 20px;
	background: var(--mc-surface);
	box-shadow:
		0 1px 1px rgba(15, 23, 42, 0.04),
		0 26px 70px -22px rgba(15, 23, 42, 0.45),
		0 10px 30px -16px rgba(15, 23, 42, 0.25);
	overflow: hidden;
}

/* Thin brand accent at the very top edge */
.page-account-dashboard .modal-content::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: linear-gradient(90deg, var(--brand-primary), rgba(var(--brand-primary-rgb), 0.12));
	z-index: 2;
}

/* Header */
.page-account-dashboard .modal-header {
	align-items: center;
	gap: 12px;
	padding: 22px 26px;
	border-bottom: 1px solid var(--mc-border);
	background: linear-gradient(180deg, rgba(var(--brand-primary-rgb), 0.05), transparent);
}

.page-account-dashboard .modal-title {
	display: flex;
	align-items: center;
	font-family: var(--default-font);
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--primary-color);
}

/* Soft rounded icon chip beside the title (use an inline SVG inside) */
.page-account-dashboard .mc-dash__modal-title-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 38px;
	height: 38px;
	margin-right: 12px;
	border-radius: 11px;
	background: rgba(var(--brand-primary-rgb), 0.12);
	color: var(--brand-primary);
}

/* Hide empty leftover icon-font placeholders (theme uses inline SVG) */
.page-account-dashboard .modal-title > i.ti:empty {
	display: none;
}

/* Close button */
.page-account-dashboard .modal-header .btn-close {
	width: 34px;
	height: 34px;
	margin: 0 0 0 auto;
	padding: 0;
	border-radius: 10px;
	background-size: 13px;
	opacity: 0.55;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.page-account-dashboard .modal-header .btn-close:hover,
.page-account-dashboard .modal-header .btn-close:focus-visible {
	opacity: 1;
	background-color: rgba(var(--brand-primary-rgb), 0.1);
	box-shadow: none;
}

/* Body */
.page-account-dashboard .modal-body {
	padding: 26px;
}

/* Footer */
.page-account-dashboard .modal-footer {
	gap: 10px;
	padding: 18px 26px;
	border-top: 1px solid var(--mc-border);
	background: rgba(var(--brand-primary-rgb), 0.02);
}

.page-account-dashboard .modal-footer > * {
	margin: 0;
}

/* Form fields inside modals (not wrapped in .mc-dash__form) */
.page-account-dashboard .modal .form-label {
	font-family: var(--default-font);
	font-size: 14px;
	font-weight: 500;
	color: var(--primary-color);
	margin-bottom: 8px;
}

.page-account-dashboard .modal .form-control,
.page-account-dashboard .modal .form-select {
	font-family: var(--default-font);
	font-size: 15px;
	color: var(--primary-color);
	background-color: var(--white-color);
	border: 1px solid var(--mc-border);
	border-radius: 12px;
	padding: 12px 16px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-account-dashboard .modal .form-control:focus,
.page-account-dashboard .modal .form-select:focus {
	border-color: var(--brand-primary);
	box-shadow: 0 0 0 4px rgba(var(--brand-primary-rgb), 0.14);
}

.page-account-dashboard .modal .form-control.mm_error,
.page-account-dashboard .modal .form-select.mm_error,
.page-account-dashboard .modal .form-control.mm_errorV2,
.page-account-dashboard .modal .form-select.mm_errorV2 {
	border-color: var(--error-color, #e65757) !important;
	box-shadow: 0 0 0 4px rgba(230, 87, 87, 0.14);
}

.page-account-dashboard .modal .form-control::placeholder {
	color: #9aa7b4;
	opacity: 1;
}

.page-account-dashboard .modal .form-control.font-monospace {
	font-size: 13.5px;
	line-height: 1.6;
}

.page-account-dashboard .modal small.text-muted {
	display: block;
	margin-top: 8px;
	font-size: 12.5px;
	line-height: 1.5;
	color: #9aa7b4 !important;
}

/* Checkbox */
.page-account-dashboard .modal .form-check {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: auto;
	padding-left: 0;
	margin: 0;
}

.page-account-dashboard .modal .form-check-input {
	float: none;
	flex-shrink: 0;
	width: 19px;
	height: 19px;
	margin: 0;
	border-radius: 6px;
	border-color: var(--mc-border);
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.page-account-dashboard .modal .form-check-label {
	font-family: var(--default-font);
	font-size: 14px;
	color: var(--primary-color);
	cursor: pointer;
}

/* Buttons */
.page-account-dashboard .modal .modal-footer .btn {
	font-family: var(--default-font);
	font-size: 15px;
	font-weight: 500;
	padding: 11px 22px;
	border-radius: 11px;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.page-account-dashboard .modal .modal-footer .btn:active {
	transform: translateY(1px);
}

.page-account-dashboard .modal .modal-footer .btn-light {
	background: transparent;
	border-color: var(--mc-border);
	color: var(--primary-color);
}

.page-account-dashboard .modal .modal-footer .btn-light:hover,
.page-account-dashboard .modal .modal-footer .btn-light:focus {
	background: rgba(var(--brand-primary-rgb), 0.07);
	border-color: rgba(var(--brand-primary-rgb), 0.3);
	color: var(--brand-primary);
}

.page-account-dashboard .modal .modal-footer .btn-primary {
	box-shadow: 0 8px 18px -8px rgba(var(--brand-primary-rgb), 0.65);
}

.page-account-dashboard .modal .modal-footer .btn-primary:hover {
	box-shadow: 0 10px 22px -8px rgba(var(--brand-primary-rgb), 0.7);
}

@media (max-width: 575.98px) {
	.page-account-dashboard .modal-header,
	.page-account-dashboard .modal-body,
	.page-account-dashboard .modal-footer {
		padding-left: 20px;
		padding-right: 20px;
	}
}

/* --- Dark theme refinements ------------------------------------- */
html[data-bs-theme="dark"] .page-account-dashboard {
	--mm-modal-backdrop-bg: rgba(2, 6, 12, 0.78);
	--mm-modal-backdrop-core: rgba(2, 6, 12, 0.24);
}

html[data-bs-theme="dark"] .page-account-dashboard .modal-content {
	border-color: rgba(255, 255, 255, 0.08);
	box-shadow:
		0 1px 1px rgba(0, 0, 0, 0.4),
		0 30px 80px -22px rgba(0, 0, 0, 0.72),
		0 12px 32px -16px rgba(0, 0, 0, 0.5);
}

html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__nav-sheet {
	background: var(--mc-surface);
	border-color: var(--mc-border);
}

html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__nav-sheet-link:focus-visible {
	background: rgba(255, 255, 255, 0.06);
}

html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__kpi-mark {
	opacity: 0.16;
}

html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__kpi-hint,
html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__kpi-chip-label {
	color: #8b97a3;
}

html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__kpi-delta {
	color: #8b97a3;
	background: rgba(255, 255, 255, 0.06);
}

html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__kpi-delta--up {
	color: #2dd4bf;
	background: color-mix(in srgb, #0d9b8a 18%, transparent);
}

html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__kpi-icon {
	background: color-mix(in srgb, var(--kpi-accent) 18%, var(--mc-surface));
}

html[data-bs-theme="dark"] .page-account-dashboard .mc-dash__kpi-chip {
	background: color-mix(in srgb, var(--kpi-accent) 10%, var(--mc-surface));
}
