.site-header {
	background: var(--color-surface-raised);
	border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
	width: 100%;
	margin: 0;
	padding: 10px 48px;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: var(--space-lg, 24px);
}

.site-header__brand {
	color: var(--color-text);
	font-size: 1.15rem;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
}

.site-header__logo-mask {
	display: block;
	width: 260px;
	height: 60px;
	background: var(--color-logo);
	mask: url("/assets/images/logos/logo-banner-managemint.svg") center / contain no-repeat;
	-webkit-mask: url("/assets/images/logos/logo-banner-managemint.svg") center / contain no-repeat;
}

.site-header__nav {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: var(--space-md, 16px);
	font-size: 0.95rem;
    align-self: stretch;
    border-left: 1px solid var(--color-border);
    padding-left: 12px;
}

.site-header__nav a {
	display: flex;
    align-items: center;
    align-self: stretch;
    padding: 0 8px;
    border-radius: 8px;
}

.site-header__nav a:hover {
	background: var(--color-surface-hover);
}

.site-header__nav a,
.site-header__account-menu a,
.site-header__theme-toggle {
	color: var(--color-text);
	text-decoration: none;
}

.site-header__account-summary:hover {
	background: var(--color-surface-hover);
}

.site-header__theme-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	cursor: pointer;
}

.site-header__theme-toggle input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.site-header__theme-switch {
	position: relative;
	width: 38px;
	height: 22px;
	flex: 0 0 auto;
	border-radius: 999px;
	background: var(--color-border-strong);
}

.site-header__theme-switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	border-radius: 999px;
	background: var(--color-surface-raised);
	transition:
		transform var(--transition-theme-speed) var(--transition-theme-ease),
		background-color var(--transition-theme-speed) var(--transition-theme-ease),
		box-shadow var(--transition-theme-speed) var(--transition-theme-ease);
}

.site-header__theme-toggle input:checked + .site-header__theme-switch {
	background: var(--color-brand);
}

.site-header__theme-toggle input:checked + .site-header__theme-switch::after {
	transform: translateX(16px);
}

.site-header__right {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	min-width: auto;
    padding-left: 12px;
    padding-right: 12px;
    border-left: 1px solid var(--color-border);
    align-self: stretch;
}

.site-header__account {
	position: relative;
    align-self: stretch;
    display: flex;
}

.site-header__account-summary {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	list-style: none;
	user-select: none;
    padding: 6px 8px;
    border-radius: 8px;
}

.site-header__account-summary::-webkit-details-marker {
	display: none;
}

.site-header__account-text {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	line-height: 1.1;
}

.site-header__account-name {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--color-text);
}

.site-header__account-role {
	margin-top: 2px;
	font-size: 0.72rem;
	color: var(--color-text-muted);
}

.site-header__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 999px;
	background: var(--color-brand);
	color: var(--color-text-inverse);
	font-size: 0.8rem;
	font-weight: 700;
}

.site-header__account-menu {
	position: absolute;
	right: 0;
	top: calc(100% + 10px);
	min-width: 190px;
	padding: 6px;
	background: var(--color-surface-raised);
	border: 1px solid var(--color-border);
	border-radius: 8px;
	box-shadow: 0 10px 28px var(--color-shadow);
	z-index: 10;
}

.site-header__account-menu a,
.site-header__theme-toggle {
	display: flex;
	align-items: center;
	min-height: 40px;
	padding: 9px 10px;
	border-radius: 6px;
	font-size: 0.9rem;
	font-weight: 400;
}

.site-header__account-menu a:hover,
.site-header__theme-toggle:hover {
	color: var(--color-brand-hover);
	background: var(--color-surface-muted);
}

.site-header__nav a.is-active {
	background: var(--color-surface-muted);
	font-weight: 600;
}