.titanium-suite-header,
.titanium-suite-header * {
	box-sizing: border-box;
}

.titanium-suite-header {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 62px;
	padding: 8px 16px;
	overflow: hidden;
	background:
		radial-gradient(circle at 3% -55%, rgba(255, 255, 255, 0.30), transparent 34%),
		radial-gradient(circle at 97% -60%, rgba(80, 80, 80, 0.16), transparent 36%),
		repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.12) 0, rgba(255, 255, 255, 0.12) 1px, rgba(70, 70, 70, 0.035) 1px, rgba(70, 70, 70, 0.035) 3px),
		linear-gradient(112deg, #afafaf 0%, #eeeeee 16%, #c5c5c5 34%, #fafafa 51%, #bcbcbc 70%, #e9e9e9 86%, #aeaeae 100%);
	border: 1px solid #898989;
	border-radius: 15px;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.98),
		inset 0 -2px 0 rgba(68, 68, 68, 0.34),
		inset 0 0 22px rgba(255, 255, 255, 0.24),
		0 10px 24px rgba(45, 45, 45, 0.20),
		0 2px 5px rgba(45, 45, 45, 0.16);
}

.titanium-suite-header::before {
	position: absolute;
	inset: 3px;
	z-index: 0;
	content: "";
	pointer-events: none;
	border: 1px solid rgba(255, 255, 255, 0.62);
	border-radius: 11px;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.74),
		inset 0 -1px 0 rgba(68, 68, 68, 0.18);
}

.titanium-suite-header::after {
	position: absolute;
	top: -105%;
	left: 28%;
	z-index: 0;
	width: 36%;
	height: 310%;
	content: "";
	pointer-events: none;
	background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.05) 28%, rgba(255, 255, 255, 0.48) 50%, rgba(255, 255, 255, 0.08) 72%, transparent 100%);
	transform: rotate(17deg);
	opacity: 0.54;
}

.titanium-suite-header > * {
	position: relative;
	z-index: 1;
}

.titanium-suite-header__title {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
	flex-wrap: wrap;
}

.titanium-suite-header__title strong {
	color: #172033;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.2;
	white-space: nowrap;
}

.titanium-suite-header__wordmark,
.titanium-suite-header__version {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	overflow: hidden;
	color: #0a1d3b;
	font-weight: 900;
	line-height: 1;
	white-space: nowrap;
	background: linear-gradient(180deg, #ffffff 0%, #d8e1eb 39%, #f8fafc 52%, #c7d2df 100%);
	border: 1px solid #73839a;
	border-radius: 12px;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.95),
		inset 0 -1px 0 rgba(71, 85, 105, 0.28),
		0 2px 5px rgba(15, 23, 42, 0.18);
}

.titanium-suite-header__wordmark {
	min-width: 160px;
	padding: 0 20px;
	font-size: 16px;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.titanium-suite-header__version {
	min-height: 40px;
	padding: 0 16px;
	font-size: 14px;
}

.titanium-suite-header__wordmark::after,
.titanium-suite-header__version::after {
	position: absolute;
	top: -55%;
	left: -70%;
	width: 42%;
	height: 210%;
	content: "";
	pointer-events: none;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.92), transparent);
	transform: skewX(-22deg);
	animation: titanium-suite-metal-sheen 5.8s ease-in-out infinite;
}

@keyframes titanium-suite-metal-sheen {
	0%, 70% {
		left: -70%;
		opacity: 0;
	}
	74% {
		opacity: 0.95;
	}
	90% {
		left: 135%;
		opacity: 0.48;
	}
	100% {
		left: 135%;
		opacity: 0;
	}
}

.titanium-suite-header__tools {
	display: flex;
	align-items: center;
	gap: 17px;
	flex: 0 0 auto;
}

.titanium-suite-header__dark-toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-right: 50px;
	font-weight: 700;
	cursor: pointer;
	user-select: none;
}

.titanium-suite-header__dark-input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.titanium-suite-header__dark-toggle em {
	color: #505050;
	font-style: normal;
	white-space: nowrap;
	background: linear-gradient(180deg, #777777 0%, #414141 42%, #686868 56%, #494949 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.48);
}

.titanium-suite-header__dark-ui {
	position: relative;
	display: inline-flex;
	width: 68px;
	height: 34px;
	padding: 4px;
	overflow: hidden;
	background:
		repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.13) 0, rgba(255, 255, 255, 0.13) 1px, rgba(0, 0, 0, 0.055) 1px, rgba(0, 0, 0, 0.055) 3px),
		linear-gradient(180deg, #f4f4f4 0%, #929292 43%, #d9d9d9 53%, #777777 100%);
	border: 1px solid #686868;
	border-radius: 999px;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.96),
		inset 0 -1px 0 rgba(0, 0, 0, 0.52),
		inset 0 0 0 3px rgba(255, 255, 255, 0.13),
		0 3px 7px rgba(0, 0, 0, 0.24);
	transition: background 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.titanium-suite-header__dark-ui::before {
	position: absolute;
	inset: 4px;
	content: "";
	pointer-events: none;
	background:
		linear-gradient(90deg, rgba(0, 0, 0, 0.34), transparent 14%, transparent 86%, rgba(255, 255, 255, 0.24)),
		linear-gradient(180deg, #565656 0%, #242424 48%, #4a4a4a 100%);
	border: 1px solid rgba(20, 20, 20, 0.78);
	border-radius: 999px;
	box-shadow:
		inset 0 2px 5px rgba(0, 0, 0, 0.70),
		inset 0 -1px 0 rgba(255, 255, 255, 0.16);
}

.titanium-suite-header__dark-ui::after {
	position: absolute;
	top: 9px;
	left: 50%;
	z-index: 1;
	width: 1px;
	height: 14px;
	content: "";
	pointer-events: none;
	background: rgba(255, 255, 255, 0.18);
	box-shadow: 1px 0 0 rgba(0, 0, 0, 0.62);
}

.titanium-suite-header__dark-ui i {
	position: relative;
	z-index: 2;
	display: block;
	width: 26px;
	height: 26px;
	background:
		radial-gradient(circle at 36% 30%, #ffffff 0%, #e8e8e8 19%, transparent 20%),
		linear-gradient(145deg, #f8f8f8 0%, #9a9a9a 38%, #f1f1f1 58%, #6f6f6f 100%);
	border: 1px solid #565656;
	border-radius: 50%;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.94),
		inset 0 -2px 3px rgba(0, 0, 0, 0.28),
		0 2px 5px rgba(0, 0, 0, 0.58),
		0 0 0 1px rgba(255, 255, 255, 0.22);
	transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.24s ease;
}

.titanium-suite-header__dark-ui i::before {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 7px;
	height: 7px;
	content: "";
	background: radial-gradient(circle at 38% 35%, #bdbdbd 0%, #5e5e5e 48%, #262626 100%);
	border: 1px solid rgba(30, 30, 30, 0.76);
	border-radius: 50%;
	box-shadow:
		inset 0 1px 1px rgba(255, 255, 255, 0.34),
		0 1px 1px rgba(255, 255, 255, 0.28);
	transform: translate(-50%, -50%);
}

.titanium-suite-header__dark-input:checked + .titanium-suite-header__dark-ui {
	background:
		repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.055) 0, rgba(255, 255, 255, 0.055) 1px, rgba(0, 0, 0, 0.10) 1px, rgba(0, 0, 0, 0.10) 3px),
		linear-gradient(180deg, #8d8d8d 0%, #292929 43%, #686868 53%, #171717 100%);
	border-color: #8a8a8a;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.34),
		inset 0 -1px 0 rgba(0, 0, 0, 0.80),
		inset 0 0 0 3px rgba(255, 255, 255, 0.055),
		0 3px 8px rgba(0, 0, 0, 0.40);
}

.titanium-suite-header__dark-input:checked + .titanium-suite-header__dark-ui i {
	transform: translateX(34px);
	filter: brightness(0.88) contrast(1.08);
}

.titanium-suite-header__dark-input:focus-visible + .titanium-suite-header__dark-ui {
	box-shadow:
		0 0 0 2px #f3f4f6,
		0 0 0 5px #777777,
		inset 0 1px 0 rgba(255, 255, 255, 0.72),
		inset 0 -1px 0 rgba(0, 0, 0, 0.54);
}

html.titanium-suite-admin-dark .titanium-suite-header {
	background:
		radial-gradient(circle at 3% -55%, rgba(255, 255, 255, 0.10), transparent 34%),
		radial-gradient(circle at 97% -60%, rgba(0, 0, 0, 0.20), transparent 36%),
		repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.028) 0, rgba(255, 255, 255, 0.028) 1px, rgba(0, 0, 0, 0.055) 1px, rgba(0, 0, 0, 0.055) 3px),
		linear-gradient(112deg, #0d0d0d 0%, #383838 16%, #1b1b1b 34%, #4a4a4a 51%, #191919 70%, #363636 86%, #090909 100%);
	border-color: #7a7a7a;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.27),
		inset 0 -2px 0 rgba(0, 0, 0, 0.72),
		inset 0 0 24px rgba(180, 180, 180, 0.08),
		0 12px 28px rgba(0, 0, 0, 0.38),
		0 2px 6px rgba(0, 0, 0, 0.44);
}

html.titanium-suite-admin-dark .titanium-suite-header::before {
	border-color: rgba(215, 215, 215, 0.25);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.16),
		inset 0 -1px 0 rgba(0, 0, 0, 0.62);
}

html.titanium-suite-admin-dark .titanium-suite-header::after {
	background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.02) 28%, rgba(235, 235, 235, 0.19) 50%, rgba(255, 255, 255, 0.035) 72%, transparent 100%);
	opacity: 0.50;
}

html.titanium-suite-admin-dark .titanium-suite-header__title strong {
	color: #f3f7ff;
}

html.titanium-suite-admin-dark .titanium-suite-header__wordmark,
html.titanium-suite-admin-dark .titanium-suite-header__version {
	color: #f3f7ff;
	background: linear-gradient(180deg, #56657a 0%, #1b2637 40%, #425168 52%, #151f2e 100%);
	border-color: #8292aa;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.22),
		inset 0 -1px 0 rgba(0, 0, 0, 0.48),
		0 2px 6px rgba(0, 0, 0, 0.32);
}

html.titanium-suite-admin-dark .titanium-suite-header__dark-toggle em {
	color: #a0a0a0;
	background: linear-gradient(180deg, #c5c5c5 0%, #8a8a8a 43%, #adadad 57%, #7d7d7d 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.10), 0 -1px 0 rgba(0, 0, 0, 0.58);
}

@media (prefers-reduced-motion: reduce) {
	.titanium-suite-header__wordmark::after,
	.titanium-suite-header__version::after {
		display: none;
	}
}

@media (max-width: 1050px) {
	.titanium-suite-header {
		align-items: flex-start;
		flex-direction: column;
	}

	.titanium-suite-header__tools {
		width: 100%;
		justify-content: space-between;
	}

	.titanium-suite-header__dark-toggle {
		margin-right: 0;
	}
}

@media (max-width: 782px) {
	.titanium-suite-header {
		padding: 17px;
	}

	.titanium-suite-header__title {
		gap: 11px;
	}
}

@media (max-width: 540px) {
	.titanium-suite-header__wordmark {
		min-width: 145px;
	}

	.titanium-suite-header__tools {
		align-items: flex-start;
		flex-direction: column;
	}
}
