.ppxHeaderBadgeRow {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: clamp(0.5rem, 1vw, 0.85rem);
	flex-wrap: nowrap;
	min-width: 0;
}

.ppxHeaderBadgeRow--stacked {
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	gap: 0.65rem;
	width: min(100%, 21rem);
}

[data-ips-header-content='search'] > .ppxHeaderBadgeRow--stacked {
	margin-inline-start: auto;
}

.ppxHeaderBadgeMount {
	display: flex;
	align-items: center;
	flex: 0 1 clamp(11.25rem, 20vw, 13rem);
	min-width: 0;
	max-width: clamp(11.25rem, 20vw, 13rem);
}

[data-ips-header-content='search'] > .ppxHeaderBadgeMount {
	justify-content: flex-end;
	margin-inline-start: auto;
}

.ppxHeaderBadgeRow > .ipsSearchPseudo,
.ppxHeaderBadgeRow > button[commandfor='ipsSearchDialog'] {
	flex: 1 1 17rem;
	width: auto;
	max-width: clamp(15rem, 22vw, 18.25rem);
	min-width: clamp(12.75rem, 18vw, 14rem);
}

.ppxHeaderBadgeRow--stacked > .ppxHeaderBadgeMount,
.ppxHeaderBadgeRow--stacked > .ipsSearchPseudo,
.ppxHeaderBadgeRow--stacked > button[commandfor='ipsSearchDialog'] {
	flex: 0 1 auto;
	width: 100%;
	max-width: none;
	min-width: 0;
}

.ppxHeaderBadgeRow--stacked > .ppxHeaderBadgeMount {
	max-width: none;
}

.ppxHeaderBadgeRow--medium > .ipsSearchPseudo,
.ppxHeaderBadgeRow--medium > button[commandfor='ipsSearchDialog'] {
	flex: 1 1 13.25rem;
	width: auto;
	max-width: 14.5rem;
	min-width: 11.5rem;
}

.ppxHeaderBadgeRow--compact > .ipsSearchPseudo,
.ppxHeaderBadgeRow--compact > button[commandfor='ipsSearchDialog'] {
	flex: 1 1 10.75rem;
	width: auto;
	max-width: 12rem;
	min-width: 9.75rem;
}

.ppxHeaderBadge {
	--ppx-header-badge-accent: var(--ppx-header-badge-light, var(--i-primary, #1b6cf0));
	--ppx-header-badge-bg: linear-gradient(135deg, color-mix(in srgb, var(--ppx-header-badge-accent) 84%, var(--i-background_3, #0f172a) 16%) 0%, color-mix(in srgb, var(--ppx-header-badge-accent) 58%, var(--i-background_root, #08111e) 42%) 100%);
	--ppx-header-badge-border: color-mix(in srgb, var(--ppx-header-badge-accent) 78%, transparent);
	--ppx-header-badge-shadow: color-mix(in srgb, var(--ppx-header-badge-accent) 34%, transparent);
	--ppx-header-badge-text: var(--i-primary-contrast, #ffffff);
	--ppx-header-badge-muted: color-mix(in srgb, var(--ppx-header-badge-text) 76%, transparent);
	--ppx-header-badge-icon-bg: color-mix(in srgb, var(--ppx-header-badge-text) 16%, transparent);
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.52rem;
	width: auto;
	max-width: 100%;
	min-height: 2.3rem;
	padding: 0.34rem 0.74rem 0.34rem 0.5rem;
	border-radius: 999px;
	border: 1px solid var(--ppx-header-badge-border);
	background: var(--ppx-header-badge-bg);
	box-shadow: 0 8px 18px var(--ppx-header-badge-shadow), inset 0 1px 0 color-mix(in srgb, var(--ppx-header-badge-text) 14%, transparent);
	color: var(--ppx-header-badge-text);
	text-decoration: none;
	overflow: hidden;
	isolation: isolate;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ppxHeaderBadgeRow--stacked .ppxHeaderBadge {
	width: 100%;
	border-radius: 1rem;
}

.ppxHeaderBadge::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, color-mix(in srgb, var(--ppx-header-badge-text) 16%, transparent) 0%, transparent 48%, color-mix(in srgb, var(--ppx-header-badge-accent) 24%, transparent) 100%);
	opacity: 1;
	pointer-events: none;
	z-index: -1;
}

.ppxHeaderBadge:hover {
	transform: translateY(-1px);
	border-color: color-mix(in srgb, var(--ppx-header-badge-text) 22%, var(--ppx-header-badge-accent) 78%);
	box-shadow: 0 14px 26px color-mix(in srgb, var(--ppx-header-badge-accent) 42%, transparent), inset 0 1px 0 color-mix(in srgb, var(--ppx-header-badge-text) 20%, transparent);
	text-decoration: none;
}

.ppxHeaderBadge:focus-visible {
	outline: 2px solid var(--ppx-header-badge-accent);
	outline-offset: 2px;
	text-decoration: none;
}

.ppxHeaderBadge__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.56rem;
	height: 1.56rem;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--ppx-header-badge-text) 18%, transparent);
	background: var(--ppx-header-badge-icon-bg);
	color: var(--ppx-header-badge-text);
	box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ppx-header-badge-text) 14%, transparent);
	font-size: 0.76rem;
}

.ppxHeaderBadge__body {
	min-width: 0;
	display: grid;
	gap: 0.02rem;
	line-height: 1;
}

.ppxHeaderBadge__title {
	display: block;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0;
	white-space: normal;
	text-wrap: balance;
	overflow-wrap: anywhere;
}

.ppxHeaderBadge__subtext {
	display: block;
	font-size: 0.61rem;
	font-weight: 600;
	letter-spacing: 0.015em;
	color: var(--ppx-header-badge-muted);
	white-space: normal;
	text-wrap: balance;
}

html[data-ips-scheme='dark'] .ppxHeaderBadge {
	--ppx-header-badge-accent: var(--ppx-header-badge-dark, color-mix(in srgb, var(--i-primary, #76c5ff) 88%, var(--i-background_1, #101827) 12%));
	--ppx-header-badge-bg: linear-gradient(135deg, color-mix(in srgb, var(--ppx-header-badge-accent) 44%, var(--i-background_2, #111827) 56%) 0%, color-mix(in srgb, var(--ppx-header-badge-accent) 24%, var(--i-background_root, #020617) 76%) 100%);
	--ppx-header-badge-border: color-mix(in srgb, var(--ppx-header-badge-accent) 34%, var(--i-background_1, #101827) 66%);
	--ppx-header-badge-shadow: color-mix(in srgb, var(--ppx-header-badge-accent) 18%, transparent);
	--ppx-header-badge-muted: color-mix(in srgb, var(--ppx-header-badge-text) 64%, transparent);
	--ppx-header-badge-icon-bg: color-mix(in srgb, var(--ppx-header-badge-text) 10%, transparent);
}

html[data-ips-scheme='dark'] .ppxHeaderBadge:hover {
	box-shadow: 0 14px 28px color-mix(in srgb, var(--ppx-header-badge-accent) 44%, transparent), inset 0 1px 0 color-mix(in srgb, var(--ppx-header-badge-text) 18%, transparent);
	border-color: color-mix(in srgb, var(--ppx-header-badge-text) 20%, var(--ppx-header-badge-accent) 80%);
}

html[data-ips-scheme='dark'] .ppxHeaderBadge__icon {
	box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ppx-header-badge-text) 12%, transparent);
}

@media (max-width: 900px) {
	.ppxHeaderBadgeMount {
		flex-basis: 11rem;
		max-width: 11rem;
	}

	.ppxHeaderBadgeRow > .ipsSearchPseudo,
	.ppxHeaderBadgeRow > button[commandfor='ipsSearchDialog'] {
		flex-basis: 15rem;
		max-width: 16rem;
		min-width: 12rem;
	}

	.ppxHeaderBadgeRow--medium > .ipsSearchPseudo,
	.ppxHeaderBadgeRow--medium > button[commandfor='ipsSearchDialog'] {
		flex-basis: 12.5rem;
		max-width: 13.25rem;
		min-width: 10.75rem;
	}

	.ppxHeaderBadgeRow--compact > .ipsSearchPseudo,
	.ppxHeaderBadgeRow--compact > button[commandfor='ipsSearchDialog'] {
		flex-basis: 10.75rem;
		max-width: 11.5rem;
		min-width: 9.5rem;
	}

	.ppxHeaderBadge {
		padding: 0.32rem 0.66rem 0.32rem 0.46rem;
	}

	.ppxHeaderBadge__title {
		font-size: 0.73rem;
	}

	.ppxHeaderBadge__subtext {
		font-size: 0.59rem;
	}
}

@media (max-width: 680px) {
	.ppxHeaderBadgeMount {
		flex: 0 1 12rem;
		max-width: 12rem;
		min-width: 10.5rem;
	}

	.ppxHeaderBadgeRow {
		flex-wrap: wrap;
		gap: 0.55rem;
		max-width: none;
	}

	.ppxHeaderBadgeRow > .ipsSearchPseudo,
	.ppxHeaderBadgeRow > button[commandfor='ipsSearchDialog'] {
		flex: 1 1 14rem;
		width: auto;
		min-width: 0;
	}

	.ppxHeaderBadge {
		width: 100%;
	}
}


@media (max-width: 540px) {
	.ppxHeaderBadgeRow {
		align-items: stretch;
	}

	.ppxHeaderBadgeMount,
	.ppxHeaderBadgeRow > .ipsSearchPseudo,
	.ppxHeaderBadgeRow > button[commandfor='ipsSearchDialog'] {
		flex-basis: 100%;
	}
}