/* =========================================
   PLANK TUNER PANEL
========================================= */

.plank-tuner {
	position: fixed;
	left: 22px;
	top: 22px;
	z-index: 99998;
	width: min(360px, calc(100vw - 32px));
	max-height: calc(100vh - 44px);
	border: 1px solid rgba(21, 21, 20, 0.22);
	border-radius: 16px;
	background: rgba(248, 239, 225, 0.94);
	box-shadow: 0 18px 60px rgba(21, 21, 20, 0.2);
	color: #151514;
	font: 12px/1.35 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	pointer-events: auto;
	overflow: hidden;
}

.plank-tuner.is-hidden {
	display: none;
}

.plank-tuner__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	background: #151514;
	color: var(--cream);
	cursor: move;
	user-select: none;
}

.plank-tuner__title {
	margin: 0;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.plank-tuner__body {
	padding: 14px;
	max-height: calc(100vh - 112px);
	overflow: auto;
}

.plank-tuner__select,
.plank-tuner__input {
	width: 100%;
	border: 1px solid rgba(21, 21, 20, 0.22);
	border-radius: 8px;
	background: #fff8ea;
	color: #151514;
	font: inherit;
}

.plank-tuner__select {
	padding: 8px 10px;
	margin-bottom: 12px;
}

.plank-tuner__row {
	display: grid;
	grid-template-columns: 42px 1fr 64px;
	align-items: center;
	gap: 8px;
	margin: 10px 0;
}

.plank-tuner__row label {
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.plank-tuner__range {
	width: 100%;
	accent-color: #151514;
}

.plank-tuner__input {
	padding: 6px 7px;
	text-align: right;
}

.plank-tuner__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-top: 14px;
}

.plank-tuner__button {
	border: 0;
	border-radius: 999px;
	padding: 9px 12px;
	background: #151514;
	color: var(--cream);
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}

.plank-tuner__button--ghost {
	border: 1px solid rgba(21, 21, 20, 0.22);
	background: transparent;
	color: #151514;
}

.plank-tuner__note {
	margin: 10px 0 0;
	opacity: 0.7;
}

@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
	.plank-tuner {
		display: none;
	}
}
