.image-tool-shell .tool-input {
	width: 100%;
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	background: #fff;
	padding: 0.75rem;
	font-size: 0.875rem;
	font-weight: 700;
	color: #111;
	box-sizing: border-box;
}

.image-tool-shell .tool-label {
	display: block;
	font-size: 0.75rem;
	font-weight: 900;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #4b5563;
}

.image-option-card {
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	padding: 0.875rem;
	min-height: 3rem;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	background: #fff;
	color: #111;
	font-weight: 800;
	font-size: 0.875rem;
	text-align: center;
}

.image-option-card.is-active,
.image-option-card:has(input:checked) {
	box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.78), 0 1px 2px rgba(0, 0, 0, 0.05);
	border-color: rgba(255, 215, 0, 0.78);
}

.image-preset-card {
	border: 1px solid #e5e7eb;
	border-radius: 0.5rem;
	padding: 0.875rem;
	min-height: 5rem;
	box-sizing: border-box;
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	background: #fff;
	color: #111;
	cursor: pointer;
}

.image-preset-card input {
	margin-top: 0.2rem;
	accent-color: #111;
	flex: 0 0 auto;
}

.image-preset-card:has(input:checked) {
	box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.78), 0 1px 2px rgba(0, 0, 0, 0.05);
	border-color: rgba(255, 215, 0, 0.78);
}

.image-preset-title {
	display: block;
	font-size: 0.875rem;
	font-weight: 900;
	line-height: 1.2;
}

.image-preset-note {
	display: block;
	margin-top: 0.25rem;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.45;
	color: #4b5563;
}

.image-preview-stage {
	position: relative;
	min-height: 340px;
	border-radius: 0.75rem;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.image-preview-stage img,
.image-preview-stage canvas {
	max-width: 100%;
	max-height: 70vh;
	object-fit: contain;
}

.image-preview-stage canvas:not(.hidden) {
	display: block;
}

#image-tool-mask-canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	cursor: crosshair;
}

#image-client-canvas {
	max-width: 100%;
	max-height: 70vh;
}

#image-tool-output-canvas {
	max-width: 100%;
	max-height: 70vh;
}

.image-warning-box {
	border: 1px solid #f59e0b;
	border-radius: 0.5rem;
	background: #fffbeb;
	padding: 0.875rem;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.5;
	color: #92400e;
}

.image-shape-handle {
	fill: #ffffff;
	stroke: #111111;
	stroke-width: 2;
}

.image-tool-spinner {
	transform: none;
}
