.jsl-pd {
	border: 1px solid #ddd;
	border-radius: 8px;
	margin: 1.25rem 0;
	padding: 1rem;
}
.jsl-pd[hidden], .jsl-pd [hidden] { display: none !important; }
.jsl-pd h3 { margin: 0 0 .4rem; }
.jsl-pd__profile { color: #555; margin: 0 0 1rem; }
.jsl-pd__controls { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; }
.jsl-pd__controls label { display: grid; gap: .35rem; }
.jsl-pd__editor { margin-top: 1rem; }
.jsl-pd__canvas {
	background: #ececec;
	border: 1px solid #aaa;
	cursor: grab;
	display: block;
	height: auto;
	max-height: 70vh;
	max-width: 100%;
	touch-action: none;
	width: auto;
}
.jsl-pd__canvas:active { cursor: grabbing; }
.jsl-pd__hint { color: #666; font-size: .9em; margin: .4rem 0; }
.jsl-pd__zoom-label { display: grid; gap: .25rem; margin: .75rem 0; max-width: 32rem; }
.jsl-pd__quality { margin: .5rem 0; white-space: pre-line; }
.jsl-pd__quality[data-level] { border-radius: 6px; padding: .65rem .75rem; }
.jsl-pd__quality[data-level="excellent"], .jsl-pd__quality[data-level="good"] { background: #edfaF2; color: #16723b; }
.jsl-pd__quality[data-level="acceptable"] { background: #e8f2ff; color: #174d80; }
.jsl-pd__quality[data-level="low"] { background: #fff3cd; color: #7a4d00; font-weight: 600; }
.jsl-pd__quality[data-level="too_low"] { background: #fde8e7; color: #b32d2e; font-weight: 600; }
.jsl-pd__quality-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0 .75rem; }
.jsl-pd__quality-actions .jsl-pd__use-anyway { font-weight: 600; }
.jsl-pd__message { margin-top: .75rem; min-height: 1.5em; }
.jsl-pd--confirmed .jsl-pd__message { color: #16723b; font-weight: 600; }
.jsl-pd--confirmed .jsl-pd__message::before { content: "✓ "; }
.jsl-pd__unavailable, .jsl-pd-config-warning { color: #7a4d00; }
.jsl-pd-cart-preview { object-fit: cover; }
