.global-header .site-search,
.global-header .contextual-search { display: flex; gap: 6px; min-width: 0; }
.contextual-search-fields { flex: 1; min-width: 0; }
.header-gallery-link {
	display: grid;
	place-items: center;
	flex: 0 0 36px;
	border: 1px solid #d4d4d8;
	border-radius: 8px;
	color: #52525b;
}
.header-gallery-link svg { width: 20px; height: 20px; }
.header-gallery-link:hover,
.header-gallery-link[aria-current="page"] { border-color: #be123c; color: #be123c; }
.dark .header-gallery-link { border-color: #3f3f46; color: #d4d4d8; }
.dark .header-gallery-link:hover,
.dark .header-gallery-link[aria-current="page"] { border-color: #fda4af; color: #fda4af; }
.header-gallery-link:focus-visible { outline: 2px solid #f43f5e; outline-offset: 2px; }
@media (max-width: 639px) {
	.global-header .header-inner {
		grid-template-columns: auto minmax(0, 1fr) auto;
		gap: 6px 8px;
		padding: 6px 12px;
	}
	.global-header .header-inner > .relative { grid-column: 3; }
	.global-header .header-search { grid-column: 1 / -1; grid-row: 2; }
	.header-genre-search > .header-category { flex-basis: 120px; }
}
#settings-menu { max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto; }
