.manual-annotated-image {
	position: relative;
	display: inline-block;
	width: 100%;
}

.manual-annotated-image img {
	width: 100%;
	height: auto;
	display: block;
}

.manual-marker {
	position: absolute;
	width: clamp(1rem, 2.2vw, 1.9rem);
	height: clamp(1rem, 2.2vw, 1.9rem);
	border-radius: 50%;
	background: #0093da;
	color: #fff;
	border: 2px solid #fff;
	font-weight: 700;
	font-size: clamp(0.55rem, 1.05vw, 0.9rem);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
	transform: translate(-50%, -50%);
	pointer-events: none;
}

@media (max-width: 767.98px) {
	.manual-marker {
		border-width: 1px;
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
	}
}

.manual-marker-toggle-wrap {
	margin-top: 0.75rem;
	margin-bottom: 0.25rem;
}

.manual-markers-hidden .manual-marker {
	display: none;
}

.marker-edit-mode .manual-marker {
	pointer-events: auto;
	cursor: grab;
}

.marker-edit-mode .manual-marker:active {
	cursor: grabbing;
}

.marker-editor-active-group {
	outline: 2px solid rgba(0, 147, 218, 0.9);
	outline-offset: 4px;
}

.marker-editor-panel {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 1100;
	width: min(92vw, 460px);
	background: rgba(39, 44, 48, 0.97);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 0.5rem;
	padding: 0.75rem;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.marker-editor-panel [hidden] {
	display: none !important;
}

.marker-editor-controls {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-bottom: 0.5rem;
}

.marker-editor-group-picker {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

.marker-editor-group-picker label {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 700;
	color: #fff;
}

.marker-editor-group-picker select {
	min-width: 0;
	color-scheme: dark;
	color: #fff;
	background-color: #1b2230;
	border-color: rgba(255, 255, 255, 0.28);
}

.marker-editor-group-picker select:focus {
	color: #fff;
	background-color: #1b2230;
	border-color: #0093da;
	box-shadow: 0 0 0 0.2rem rgba(0, 147, 218, 0.25);
}

.marker-editor-group-picker option {
	color: #fff;
	background-color: #1b2230;
}

.marker-editor-panel .btn {
	padding: 0.4rem 0.75rem;
	font-size: 0.8rem;
}

.marker-editor-status {
	font-size: 0.8rem;
	color: #bec5cb;
	margin-bottom: 0.5rem;
}

.marker-editor-output {
	max-height: 220px;
	overflow: auto;
	font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-size: 0.75rem;
	white-space: pre;
	margin: 0;
	padding: 0.5rem;
	border-radius: 0.25rem;
	background: rgba(0, 0, 0, 0.3);
	color: #fff;
}
