.edit-panels {
	border-top: 1px solid var(--border);
	max-height: 45dvh;
	overflow-y: auto;
	background: var(--surface);
}

.edit-panel-tabs {
	display: flex;
	border-bottom: 1px solid var(--border);
}

.edit-panel-tabs button {
	flex: 1;
	border: none;
	border-radius: 0;
	background: transparent;
	border-bottom: 2px solid transparent;
}

.edit-panel-tabs button.active {
	border-bottom-color: var(--accent);
	color: var(--accent);
}

.edit-panel-body {
	padding: 0.8em;
	display: flex;
	flex-direction: column;
	gap: 0.8em;
}

.slider-row {
	display: flex;
	flex-direction: column;
	gap: 0.2em;
}

.slider-row .slider-row-label {
	display: flex;
	justify-content: space-between;
	font-size: 0.9em;
}

.slider-row input[type="range"] {
	width: 100%;
}

.known-point-list {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
}

.known-point-row {
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 0.5em;
	display: flex;
	flex-direction: column;
	gap: 0.3em;
	font-size: 0.9em;
}

.known-point-row.active {
	border-color: var(--danger);
	background: color-mix(in srgb, var(--danger) 10%, var(--bg));
}

.known-point-row .known-point-row-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 600;
}

.paste-coordinate-row {
	display: flex;
	gap: 0.4em;
}

.paste-coordinate-row input {
	flex: 1;
}

.feature-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 0.5em;
}

.transform-type-row {
	display: flex;
	gap: 0.4em;
}

.transform-type-row button {
	flex: 1;
}

.preview-transform-btn {
	width: 100%;
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
	touch-action: none;
	user-select: none;
}

.preview-transform-btn:active:not(:disabled) {
	background: color-mix(in srgb, var(--accent) 70%, black);
}

.specify-coordinate-dialog {
	max-width: 24em;
	width: calc(100% - 2em);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 1.2em 1.4em;
	background: var(--bg);
	color: var(--fg);
}

.specify-coordinate-dialog::backdrop {
	background: rgba(0, 0, 0, 0.5);
}

.specify-coordinate-dialog h3 {
	margin-top: 0;
}

.specify-coordinate-dialog input {
	width: 100%;
	margin-bottom: 0.6em;
}

.pmtiles-picker-modal {
	position: fixed;
	inset: 0;
	background: var(--bg);
	z-index: 20;
	display: flex;
	flex-direction: column;
}

.pmtiles-picker-map {
	flex: 1;
}
