.image-color-picker {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	padding: clamp(16px, 3vw, 28px);
	color: #172033;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
}
.image-color-picker *,
.image-color-picker *::before,
.image-color-picker *::after { box-sizing: border-box; }
.image-color-picker h2 { margin-top: 0; }
.image-color-description { margin: 0 0 20px; color: #536174; }
.image-color-live { min-height: 1px; margin: 0; }
.image-color-message { margin: 14px 0; padding: 11px 13px; color: #8e2118; background: #fff5f4; border: 1px solid #e5aaa5; border-radius: 7px; }
.image-color-message[hidden] { display: none; }
.image-color-drop-area {
	padding: clamp(24px, 6vw, 48px) 18px;
	text-align: center;
	border: 2px dashed #aebaca;
	border-radius: 12px;
	background: #f8fafc;
	transition: background-color .15s ease, border-color .15s ease;
}
.image-color-drop-area.is-dragging { border-color: #1d4ed8; background: #eff6ff; }
.image-color-drop-area h3 { margin: 8px 0; }
.image-color-drop-area p { color: #536174; }
.image-color-upload-icon { margin: auto; width: 42px; height: 42px; border-radius: 50%; background: #e8eef8; color: #1d4ed8; font-size: 30px; line-height: 40px; }
.image-color-file-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.image-color-supported { margin-bottom: 0; font-size: .9rem; }
.image-color-workspace { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .8fr); gap: 22px; align-items: start; }
.image-color-workspace[hidden] { display: none; }
.image-color-image-panel { min-width: 0; }
.image-color-image-wrap { position: relative; display: inline-block; max-width: 100%; line-height: 0; vertical-align: top; outline: 1px solid #cbd5e1; border-radius: 5px; }
.image-color-preview { display: block; width: auto; height: auto; max-width: 100%; max-height: min(70vh, 720px); object-fit: contain; border: 0; border-radius: 5px; cursor: crosshair; }
.image-color-preview:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
.image-color-marker { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border: 2px solid white; border-radius: 50%; box-shadow: 0 0 0 1px #111827; pointer-events: none; }
.image-color-marker[hidden] { display: none; }
.image-color-keyboard-help { margin: 10px 0 0; color: #536174; font-size: .88rem; line-height: 1.45; }
.image-color-side-panel { min-width: 0; }
.image-color-selection { padding: 18px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; }
.image-color-selection h3 { margin: 0 0 14px; }
.image-color-swatch { min-height: 100px; margin-bottom: 12px; border: 1px solid #94a3b8; border-radius: 7px; background-color: transparent; background-image: linear-gradient(45deg, #e5e7eb 25%, transparent 25%), linear-gradient(-45deg, #e5e7eb 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e5e7eb 75%), linear-gradient(-45deg, transparent 75%, #e5e7eb 75%); background-size: 16px 16px; background-position: 0 0, 0 8px, 8px -8px, -8px 0; }
.image-color-swatch.has-color { background-image: linear-gradient(45deg, #e5e7eb 25%, transparent 25%), linear-gradient(-45deg, #e5e7eb 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e5e7eb 75%), linear-gradient(-45deg, transparent 75%, #e5e7eb 75%); }
.image-color-position { margin: 0 0 14px; font-weight: 600; }
.image-color-values { display: grid; gap: 9px; }
.image-color-value-card { min-width: 0; padding: 10px; border: 1px solid #e2e8f0; border-radius: 7px; }
.image-color-value-card h4 { margin: 0 0 7px; font-size: .86rem; }
.image-color-value-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.image-color-value { min-width: 0; overflow-wrap: anywhere; white-space: normal; font-size: .9rem; }
.image-color-copy, .image-color-button { min-height: 40px; padding: 8px 13px; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; color: #172033; font: inherit; font-weight: 600; cursor: pointer; }
.image-color-copy { flex: 0 0 auto; }
.image-color-copy:disabled { opacity: .55; cursor: not-allowed; }
.image-color-button.is-primary { margin: 10px 0; border-color: #1d4ed8; background: #1d4ed8; color: #fff; }
.image-color-button:focus-visible, .image-color-copy:focus-visible { outline: 3px solid rgba(37, 99, 235, .28); outline-offset: 2px; }
.image-color-metadata { margin: 16px 0; }
.image-color-meta-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; padding: 7px 0; border-bottom: 1px solid #edf0f4; font-size: .9rem; }
.image-color-meta-row dt { font-weight: 600; }
.image-color-meta-row dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.image-color-copy-buffer { position: fixed; left: -9999px; }

@media (max-width: 760px) {
	.image-color-workspace { grid-template-columns: minmax(0, 1fr); }
	.image-color-preview { max-height: 60vh; }
}
