
	.cp-trigger.svelte-8dig9w,
	.cp-swatch.svelte-8dig9w,
	.cp-slider--alpha.svelte-8dig9w {
		--cp-checker:
			linear-gradient(45deg, #eee 25%, #0000 25%, #0000 75%, #eee 75%) 0 0 / 10px 10px,
			linear-gradient(45deg, #eee 25%, #0000 25%, #0000 75%, #eee 75%) 5px 5px / 10px 10px,
			#fff;
	}

	.cp-trigger.svelte-8dig9w {
		flex: 0 0 auto;
		width: 32px;
		height: 32px;
		margin: 4px;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: var(--cp-checker);
		outline: 1px solid #fff;
		box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
		cursor: pointer;
		overflow: hidden;
	}
	.cp-trigger.svelte-8dig9w:focus-visible {
		outline: 2px solid var(--primary, #2563eb);
		outline-offset: 2px;
	}
	.cp-trigger.svelte-8dig9w:disabled {
		cursor: default;
	}
	.cp-trigger--square.svelte-8dig9w {
		width: 44px;
		height: 38px;
		margin: 0;
		border: 1px solid var(--input-border, #ccc);
		border-radius: 4px;
		box-shadow: none;
		outline: 0;
	}
	.cp-trigger__colour.svelte-8dig9w {
		display: block;
		width: 100%;
		height: 100%;
		background: var(--cp-current);
	}

	/* No `display` here: the browser's own display:none is what closes a popover. */
	.cp-popup.svelte-8dig9w {
		position: fixed;
		inset: auto;
		margin: 0;
		padding: 8px;
		width: max-content;
		background: #fff;
		color: #111;
		border: 1px solid #000;
		border-radius: 12px;
		overflow: visible;
	}

	.cp-controls.svelte-8dig9w {
		display: flex;
		gap: 8px;
	}

	.cp-square.svelte-8dig9w {
		position: relative;
		width: 150px;
		height: 150px;
		border-radius: 8px;
		background:
			linear-gradient(#fff0, #000),
			linear-gradient(90deg, #fff, #fff0),
			var(--cp-hue);
		cursor: crosshair;
		touch-action: none;
		user-select: none;
		-webkit-user-select: none;
	}
	.cp-square.svelte-8dig9w:focus-visible {
		outline: 2px solid var(--primary, #2563eb);
		outline-offset: 2px;
	}
	.cp-square__marker.svelte-8dig9w {
		position: absolute;
		width: 10px;
		height: 10px;
		margin: -5px 0 0 -5px;
		border-radius: 50%;
		background: #fff;
		box-shadow: 0 0 4px #000;
		pointer-events: none;
	}

	.cp-slider.svelte-8dig9w {
		-webkit-appearance: none;
		appearance: none;
		writing-mode: vertical-lr;
		flex: 0 0 auto;
		width: 10px;
		height: 150px;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 5px;
		cursor: pointer;
	}
	.cp-slider.svelte-8dig9w:focus-visible {
		outline: 2px solid var(--primary, #2563eb);
		outline-offset: 2px;
	}
	.cp-slider--hue.svelte-8dig9w {
		background: linear-gradient(#f00, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00);
	}
	.cp-slider--alpha.svelte-8dig9w {
		background: linear-gradient(#0000, var(--cp-alpha-end)), var(--cp-checker);
	}
	.cp-slider.svelte-8dig9w::-webkit-slider-thumb {
		-webkit-appearance: none;
		width: 9px;
		height: 9px;
		border: 1px solid #000;
		border-radius: 50%;
		background: #fff;
	}
	.cp-slider.svelte-8dig9w::-moz-range-thumb {
		box-sizing: border-box;
		width: 9px;
		height: 9px;
		border: 1px solid #000;
		border-radius: 50%;
		background: #fff;
	}
	.cp-slider.svelte-8dig9w::-moz-range-track {
		background: transparent;
	}

	.cp-swatches.svelte-8dig9w {
		display: grid;
		grid-template-columns: repeat(5, 1fr);
		gap: 4px;
		margin-top: 8px;
	}
	.cp-swatch.svelte-8dig9w {
		display: block;
		aspect-ratio: 1;
		width: 100%;
		min-width: 0;
		margin: 0;
		padding: 0;
		border: 1px solid var(--border, #ddd);
		border-radius: 3px;
		background: linear-gradient(var(--cp-current), var(--cp-current)), var(--cp-checker);
		cursor: pointer;
		transition: border-color 0.15s;
	}
	.cp-swatch.svelte-8dig9w:hover {
		border-color: #999;
	}
	.cp-swatch--dropper.svelte-8dig9w {
		display: flex;
		align-items: center;
		justify-content: center;
		background: #fff;
		color: #111;
	}
