.site-dropdown {
	--site-dropdown-accent: #41cfff;
	--site-dropdown-duration: 160ms;
	--site-dropdown-muted: #aeb8cf;
	position: relative;
	z-index: 1;
	isolation: isolate;
	width: 100%;
	min-width: 0;
}

.site-dropdown.is-open { z-index: 80; }

.site-dropdown__trigger {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 7px 12px 7px 16px;
	border: 1px solid color-mix(in srgb, var(--site-dropdown-accent) 22%, transparent);
	border-radius: 0;
	appearance: none;
	-webkit-appearance: none;
	color: #edf1ff;
	background: rgba(12, 16, 31, .2);
	box-shadow: 0 0 10px color-mix(in srgb, var(--site-dropdown-accent) 7%, transparent), inset 0 1px 0 rgba(255, 255, 255, .025);
	backdrop-filter: blur(24px) saturate(145%);
	-webkit-backdrop-filter: blur(24px) saturate(145%);
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	font-weight: 400;
	transition:
		color var(--site-dropdown-duration) ease,
		border-color var(--site-dropdown-duration) ease,
		background-color var(--site-dropdown-duration) ease,
		box-shadow var(--site-dropdown-duration) ease,
		filter var(--site-dropdown-duration) ease;
}

.site-dropdown--plain .site-dropdown__trigger {
	min-height: 44px;
	padding-top: 0;
	padding-bottom: 0;
}

.site-dropdown__trigger::before {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 2px;
	background: var(--site-dropdown-accent);
	box-shadow: 0 0 8px color-mix(in srgb, var(--site-dropdown-accent) 58%, transparent);
	content: "";
}

.site-dropdown__copy {
	display: grid;
	gap: 1px;
	min-width: 0;
	text-align: left;
}

.site-dropdown__copy small {
	color: rgba(174, 184, 207, .66);
	font-size: 10px;
	font-weight: 400;
	letter-spacing: .1em;
	line-height: 1.15;
	text-transform: uppercase;
}

.site-dropdown__copy strong {
	overflow: hidden;
	color: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.site-dropdown__trigger > svg {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
	fill: none;
	stroke: #8f9bb7;
	stroke-linecap: square;
	stroke-linejoin: miter;
	stroke-width: 1.6;
	transition: filter var(--site-dropdown-duration) ease, stroke var(--site-dropdown-duration) ease, transform var(--site-dropdown-duration) cubic-bezier(.22, 1, .36, 1);
}

.site-dropdown__trigger:hover,
.site-dropdown__trigger:focus-visible,
.site-dropdown.is-open .site-dropdown__trigger {
	border-color: color-mix(in srgb, var(--site-dropdown-accent) 68%, transparent);
	color: #fff;
	background: rgba(15, 19, 38, .27);
	box-shadow: 0 0 16px color-mix(in srgb, var(--site-dropdown-accent) 16%, transparent), inset 0 1px 0 rgba(255, 255, 255, .035);
	filter: brightness(1.06);
	outline: none;
}

.site-dropdown__trigger:hover > svg,
.site-dropdown__trigger:focus-visible > svg,
.site-dropdown.is-open .site-dropdown__trigger > svg {
	filter: brightness(1.1);
	stroke: #d9e0f4;
}

.site-dropdown.is-open .site-dropdown__trigger > svg { transform: rotate(180deg); }

.site-dropdown__trigger:disabled {
	cursor: not-allowed;
	filter: saturate(.55);
	opacity: .58;
}

.site-dropdown__menu {
	position: absolute;
	top: calc(100% - 1px);
	right: 0;
	left: 0;
	z-index: 1;
	display: grid;
	grid-template-rows: 0fr;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(-9px);
	transform-origin: top;
	transition:
		grid-template-rows var(--site-dropdown-duration) cubic-bezier(.22, 1, .36, 1),
		transform var(--site-dropdown-duration) cubic-bezier(.22, 1, .36, 1),
		visibility 0s linear var(--site-dropdown-duration);
}

.site-dropdown.is-open .site-dropdown__menu {
	grid-template-rows: 1fr;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
	transition:
		grid-template-rows var(--site-dropdown-duration) cubic-bezier(.22, 1, .36, 1),
		transform var(--site-dropdown-duration) cubic-bezier(.22, 1, .36, 1),
		visibility 0s linear 0s;
}

.site-dropdown__surface {
	display: grid;
	min-height: 0;
	max-height: 320px;
	padding: 0;
	border: 1px solid color-mix(in srgb, var(--site-dropdown-accent) 22%, transparent);
	border-top: 0;
	border-radius: 0;
	overflow: hidden;
	background: rgba(7, 10, 22, .43);
	scrollbar-color: var(--site-dropdown-accent) #090c17;
	box-shadow: 0 18px 42px rgba(0, 0, 0, .3), 0 0 10px color-mix(in srgb, var(--site-dropdown-accent) 6%, transparent), inset 0 1px 0 rgba(255, 255, 255, .025);
	backdrop-filter: blur(22px) saturate(150%);
	-webkit-backdrop-filter: blur(22px) saturate(150%);
}

.site-dropdown.is-open.is-open-ready .site-dropdown__surface { overflow-y: auto; }

.site-dropdown__surface::-webkit-scrollbar-thumb { background: var(--site-dropdown-accent); }
.site-dropdown__surface::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--site-dropdown-accent) 80%, white); }

.site-dropdown__option {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	min-height: 36px;
	margin: 0;
	padding: 0 12px 0 14px;
	border: 0;
	border-radius: 0;
	appearance: none;
	-webkit-appearance: none;
	color: var(--site-dropdown-muted);
	background: transparent;
	box-shadow: none;
	cursor: pointer;
	font: inherit;
	font-size: 13px;
	font-weight: 400;
	text-align: left;
	transition: color var(--site-dropdown-duration) ease, background-color var(--site-dropdown-duration) ease, filter var(--site-dropdown-duration) ease;
}

.site-dropdown__option::before {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 2px;
	background: var(--site-dropdown-accent);
	box-shadow: 0 0 6px color-mix(in srgb, var(--site-dropdown-accent) 44%, transparent);
	content: "";
	opacity: 0;
	transition: opacity var(--site-dropdown-duration) ease;
}

.site-dropdown__option:hover,
.site-dropdown__option:focus-visible {
	color: #fff;
	background: rgba(255, 255, 255, .035);
	filter: brightness(1.1);
	outline: none;
}

.site-dropdown__option.is-active {
	color: #fff;
	background: color-mix(in srgb, var(--site-dropdown-accent) 5.5%, transparent);
}

.site-dropdown__option.is-active::before { opacity: 1; }

.site-dropdown__option:disabled {
	cursor: not-allowed;
	opacity: .42;
}

/* Opt-in mirrored layout; existing dropdowns retain their left alignment. */
.site-dropdown--right .site-dropdown__trigger { flex-direction: row-reverse; }
.site-dropdown--right .site-dropdown__copy { flex: 1 1 auto; text-align: right; }
.site-dropdown--right .site-dropdown__trigger::before,
.site-dropdown--right .site-dropdown__option::before { left: auto; right: 0; }
/* RTL only moves the native scrollbar. Keep option text and flex layout LTR. */
.site-dropdown--right .site-dropdown__surface { direction: rtl; }
.site-dropdown--right .site-dropdown__option { direction: ltr; justify-content: flex-end; padding-left: 12px; padding-right: 14px; text-align: right; }

@media (max-width: 430px) {
	.site-dropdown { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.site-dropdown *,
	.site-dropdown *::before,
	.site-dropdown *::after { transition-duration: .01ms !important; }
}
