/* Catalogue photographs and tint samples retain their actual aspect ratio. */
.option-entry.has-photo .option{min-height:164px;padding-bottom:44px;align-items:center;gap:18px}
.option-photo{display:flex;align-items:center;justify-content:center;flex:0 0 94px;width:94px;height:104px;background:#f6f5f9;border:1px solid #e8e4f0;border-radius:10px;overflow:hidden}
.option-photo img{width:100%;height:100%;object-fit:contain}
.option-photo .image-placeholder{padding:9px;color:#71677f;font-size:12px;line-height:1.5;text-align:center}
.option-entry .photo-zoom,.option-entry .photo-retry{position:absolute;left:19px;bottom:12px;z-index:2}
.photo-zoom,.photo-retry{background:#fff;color:#7542ef;border:1px solid #dfd4fa;border-radius:6px;font:inherit;font-size:12px;padding:5px 9px;cursor:pointer}
.photo-zoom:hover,.photo-retry:hover{background:#f2ecff}
.option-entry.unavailable .option{opacity:.65;cursor:not-allowed}
.tint-meta,.image-state{display:block;font-size:12px;line-height:1.6}
.tint-picker{margin-top:28px;padding-top:8px;border-top:1px solid #e9e4f0}
.shade-options{grid-template-columns:repeat(2,minmax(0,1fr))}
.selected-photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin:20px 0}
.selected-photo{margin:0;padding:12px;border:1px solid #e6e0f0;border-radius:12px;background:#fff;min-width:0}
.selected-photo .option-photo{width:100%;height:128px;margin-bottom:9px}
.selected-photo figcaption strong,.selected-photo figcaption span{display:block;font-size:13px;line-height:1.6}
.selected-photo figcaption a{display:block;font-size:11px;overflow-wrap:anywhere;color:#766e88;margin:6px 0}
.sidebar .selected-photos{display:block;margin:10px 0}
.sidebar .selected-photo{margin-bottom:10px}
.sidebar .selected-photo .option-photo{height:84px}
.photo-dialog{width:min(820px,calc(100vw - 28px));max-height:90vh;border:0;border-radius:16px;padding:24px;box-shadow:0 24px 80px #25143744;overflow:auto}
.photo-dialog::backdrop{background:#1b132acc}
.photo-dialog h2{margin:0;font-size:22px;line-height:1.4}
.photo-dialog img{display:block;width:100%;height:min(55vh,500px);object-fit:contain;background:#f8f7fa;border-radius:10px;margin:18px 0}
.photo-dialog p{white-space:pre-line;line-height:1.7;color:#71677f}
.photo-dialog .dialog-top{gap:20px}
.catalog-photo{display:block;width:100%;max-height:280px;object-fit:contain;background:#f8f7fa;border:1px solid #e6e0f0;border-radius:12px;margin-bottom:18px}
.editor-card input[type=file]{padding:14px;background:#f8f7fa}
@media(max-width:640px){.option-entry.has-photo .option{gap:12px;min-height:156px}.option-photo{flex-basis:72px;width:72px;height:84px}.shade-options{grid-template-columns:1fr}.photo-dialog{padding:18px}.photo-dialog img{height:45vh}}
@media print{.photo-zoom,.photo-retry{display:none}.selected-photo{break-inside:avoid}.selected-photos{display:block}.selected-photo .option-photo{width:170px;height:130px}.photo-dialog{display:none}}
