.sol-scrollKey {
	--key-scale: 1;
	position: fixed;
	z-index: 90;
	top: max(64px, env(safe-area-inset-top));
	right: max(2px, env(safe-area-inset-right));
	bottom: max(68px, var(--key-notices, 0px), env(safe-area-inset-bottom));
	width: 34px;
	pointer-events: none;
	user-select: none;
	-webkit-user-select: none;
}

.sol-scrollKey[hidden],
body.is-modalOpen .sol-scrollKey,
body.is-modalOverlayOpen .sol-scrollKey,
body.sol-themeEditorLocked .sol-scrollKey,
html[data-sol-effects="off"] .sol-scrollKey {
	display: none;
}

.sol-scrollKey-wire {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	fill: none;
	stroke-linecap: round;
}
.sol-scrollKey-wire path {
	stroke: var(--sol-accent-text, #326a49);
	stroke-width: 1.25;
}
.sol-scrollKey-wire circle {
	fill: var(--sol-accent-text, #326a49);
}

.sol-scrollKey-grip {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 47px;
	border-radius: 9px;
	cursor: grab;
	touch-action: none;
	pointer-events: auto;
}
.sol-scrollKey-grip:focus-visible {
	outline: 2px solid var(--sol-accent-text, #326a49);
	outline-offset: 1px;
}
.sol-scrollKey-grip:active { cursor: grabbing; }

.sol-scrollKey-key {
	position: absolute;
	left: calc(50% - 11px);
	top: -1px;
	width: 22px;
	height: 44px;
	transform-origin: 11px 1px;
	transform: translateX(var(--key-x, 0px)) rotate(var(--key-angle, -6deg)) scale(var(--key-scale));
	filter: drop-shadow(0 1px 1px rgba(19, 28, 24, .32));
	pointer-events: none;
}
.sol-scrollKey-key::before {
	content: "";
	position: absolute;
	z-index: 2;
	top: 0;
	left: 8px;
	width: 6px;
	height: 8px;
	box-sizing: border-box;
	border: 1.3px solid #68736e;
	border-top-color: #c9d1cd;
	border-right-color: #a8b2ac;
	border-radius: 50%;
}
.sol-scrollKey-blade {
	position: absolute;
	top: 20px;
	left: 6.5px;
	width: 9px;
	height: 22px;
	background: linear-gradient(90deg, #52605c, #dfe5dd 18%, #a7b2ac 33%, #687773 47%, #e5e9e2 64%, #8b9792 92%);
	clip-path: polygon(0 0, 100% 0, 100% 17%, 74% 23%, 74% 31%, 97% 35%, 97% 44%, 60% 53%, 60% 62%, 85% 67%, 85% 75%, 60% 82%, 52% 94%, 27% 100%, 0 88%);
}
.sol-scrollKey-bow {
	position: absolute;
	top: 5px;
	left: 1px;
	width: 20px;
	height: 19px;
	box-sizing: border-box;
	border: 1px solid #404c47;
	border-top-color: #818b85;
	border-radius: 7px 7px 5px 5px;
	background: linear-gradient(145deg, #58615e 0%, #343c39 34%, #202724 73%, #4f5954);
	box-shadow: inset 1px 1px 0 rgba(255,255,255,.2), inset -1px -1px 0 rgba(0,0,0,.52);
}
.sol-scrollKey-bow::before {
	content: "";
	position: absolute;
	inset: 4px 3px 3px;
	border: 1px solid #202623;
	border-radius: 3px;
	background: linear-gradient(140deg, #424b46, #272e2a);
	box-shadow: 0 1px 0 rgba(255,255,255,.12);
}
.sol-scrollKey-bow::after {
	content: "";
	position: absolute;
	top: 7px;
	left: 6px;
	width: 6px;
	height: 2px;
	border-radius: 2px;
	background: var(--sol-accent, #5f9f78);
	box-shadow: 0 1px 0 rgba(0,0,0,.4);
}

.sol-scrollKey[data-trim] {
	--key-scale: .82;
	right: max(0px, env(safe-area-inset-right));
	width: 24px;
}
.sol-scrollKey[data-trim] .sol-scrollKey-grip { height: 38px; }
.sol-scrollKey[data-compact] {
	--key-scale: .48;
	width: 12px;
	right: max(1px, env(safe-area-inset-right));
	opacity: .83;
}
.sol-scrollKey[data-compact] .sol-scrollKey-grip { height: 23px; pointer-events: none; }
.sol-scrollKey[data-compact] .sol-scrollKey-wire path { stroke-width: 1; }
@media (forced-colors: active), print {
	.sol-scrollKey { display: none; }
}
