.hs-mobile-dock { display: none; }
#hs-dock-search-panel:not([open]) { display: none; }

@media (max-width: 767px) {
	#hs-dock-search-panel:target:not([open]) {
		display: block;
		position: fixed;
		z-index: 901;
		inset: 0;
		height: max-content;
		margin: auto;
		box-shadow: 0 0 0 200vmax #07050bc9;
	}
}

@media (max-width: 767px) {
	body { padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }

	.hs-mobile-dock {
		position: fixed;
		z-index: 900;
		inset: auto 8px calc(8px + env(safe-area-inset-bottom, 0px));
		display: grid;
		grid-template-columns: repeat(5, minmax(0, 1fr));
		align-items: end;
		max-width: 480px;
		margin-inline: auto;
		padding: 0 4px 5px;
		border: 1px solid #353044;
		border-radius: 24px;
		background: rgba(15, 13, 22, .97);
		box-shadow: 0 8px 28px #0009, inset 0 1px 0 #ffffff0c;
		box-sizing: border-box;
	}

	.hs-mobile-dock .hs-dock-link {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 5px;
		min-height: 56px;
		color: #cec7d9;
		font: 650 11px/1.2 system-ui, sans-serif;
		text-decoration: none;
		border-radius: 16px;
		-webkit-tap-highlight-color: transparent;
	}

	.hs-mobile-dock .hs-dock-link[aria-current="page"] { color: #e0bdff; }
	.hs-mobile-dock .hs-dock-link:focus-visible { outline: 2px solid #c08afd; }

	.hs-mobile-dock .hs-dock-home {
		min-height: 67px;
		margin-top: -7px;
		color: #f5ebff;
		background: radial-gradient(ellipse at top, #392355, #130d1c 75%);
		border: 1px solid #6e4b92;
		box-shadow: 0 4px 17px #8036c54a;
	}

	.hs-dock-home img { display: block; width: 36px; height: 36px; object-fit: contain; }
	.hs-dock-home svg { width: 30px; height: 30px; color: #dbb4ff; }
}

#hs-dock-search-panel {
	box-sizing: border-box;
	width: min(420px, calc(100% - 24px));
	max-width: none;
	padding: 16px;
	border: 1px solid #514061;
	border-radius: 18px;
	background: #17121f;
	color: #f5ebff;
	font: 600 15px/1.25 system-ui, sans-serif;
}

#hs-dock-search-panel::backdrop { background: #07050bc9; }
.hs-dock-search-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
#hs-dock-search-panel form { display: flex; gap: 8px; margin: 0; }
#hs-dock-search-panel input {
	flex: 1;
	width: 100%;
	min-width: 0;
	min-height: 44px;
	padding: 0 10px;
	border: 1px solid #5e4b70;
	border-radius: 9px;
	background: #0d0a12;
	color: #fff;
	font: 400 16px system-ui, sans-serif;
}
#hs-dock-search-panel button,
#hs-dock-search-panel [data-hs-dock-close] {
	min-height: 44px;
	padding: 0 12px;
	border: 0;
	border-radius: 9px;
	background: #dfc1ff;
	color: #1a0e25;
	font: inherit;
	cursor: pointer;
}

#hs-dock-search-panel [data-hs-dock-close] {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	box-sizing: border-box;
	text-decoration: none;
}
