.tms-crm-v2-header-account {
	--tms-account-gold: #f5b301;
	--tms-account-gold-bright: #ffd34e;
	--tms-account-panel: #071217;
	--tms-account-panel-alt: #0d1c22;
	--tms-account-text: #f4fbfb;
	position: relative;
	display: inline-flex;
	align-items: center;
	font-family: inherit;
	line-height: 1.4;
}

.tms-crm-v2-header-account *,
.tms-crm-v2-header-account *::before,
.tms-crm-v2-header-account *::after {
	box-sizing: border-box;
	letter-spacing: 0;
}

.tms-crm-v2-header-account__trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	height: 42px;
	min-width: 0;
	gap: 8px;
	padding: 5px 14px 5px 6px;
	border: 1px solid rgba(245, 179, 1, 0.48);
	border-radius: 999px;
	background: rgba(7, 18, 23, 0.92);
	color: var(--tms-account-gold-bright);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
	cursor: pointer;
	list-style: none;
	transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.tms-crm-v2-header-account__trigger::-webkit-details-marker {
	display: none;
}

.tms-crm-v2-header-account__trigger::marker {
	content: '';
}

.tms-crm-v2-header-account__trigger:hover,
.tms-crm-v2-header-account.is-open .tms-crm-v2-header-account__trigger {
	border-color: var(--tms-account-gold);
	background: var(--tms-account-panel-alt);
	transform: translateY(-1px);
}

.tms-crm-v2-header-account__trigger:focus-visible {
	outline: 2px solid var(--tms-account-gold);
	outline-offset: 2px;
}

.tms-crm-v2-header-account__icon {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tms-crm-v2-header-account__trigger-visual {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	min-width: 30px;
	overflow: hidden;
	border: 1px solid rgba(245, 179, 1, 0.28);
	border-radius: 50%;
	background: rgba(245, 179, 1, 0.1);
	color: var(--tms-account-gold-bright);
}

.tms-crm-v2-header-account__trigger-avatar {
	display: block;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	object-fit: cover;
}

.tms-crm-v2-header-account__trigger-initials {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--tms-account-gold-bright);
	font-size: 10px;
	font-weight: 900;
	line-height: 1;
	text-transform: uppercase;
}

.tms-crm-v2-header-account__trigger-label {
	display: block;
	color: var(--tms-account-text);
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	white-space: nowrap;
}

.tms-crm-v2-header-account__trigger:hover .tms-crm-v2-header-account__trigger-label,
.tms-crm-v2-header-account.is-open .tms-crm-v2-header-account__trigger-label {
	color: var(--tms-account-gold-bright);
}

.tms-crm-v2-header-account__mount:empty {
	display: none;
}

.tms-crm-v2-header-account.is-loading .tms-crm-v2-header-account__trigger-visual {
	animation: tms-account-pill-pulse 900ms ease-in-out infinite alternate;
}

@keyframes tms-account-pill-pulse {
	to { opacity: 0.48; }
}

@media (max-width: 480px) {
	.tms-crm-v2-header-account__trigger {
		height: 40px;
		padding-right: 12px;
	}
}
