.catalog-import-facts{padding:16px;border:1px solid #dbe3e5;border-radius:12px;margin:16px 0;min-width:0;overflow-wrap:anywhere}
.catalog-import-facts h3{margin-top:0}.catalog-import-facts p{white-space:pre-wrap;line-height:1.5}
.catalog-import-facts details{max-height:60vh;overflow:auto}.catalog-import-facts summary{cursor:pointer;padding:12px 0;font-weight:600}
.catalog-external-thumb{width:48px!important;height:48px!important;max-width:48px;object-fit:contain!important;background:#fff}.catalog-external-photo{display:block;max-width:100%;width:320px;padding:0;background:#fff;border:1px solid #dbe3e5;border-radius:8px;overflow:hidden}.catalog-external-photo img{display:block;width:100%;height:240px;object-fit:contain}.catalog-photo-gallery{display:flex;flex-wrap:wrap;gap:12px}.catalog-photo-gallery .catalog-external-photo{width:140px}.catalog-photo-gallery img{height:105px}.catalog-photo-zoom{width:min(1000px,95vw);max-width:95vw;max-height:95dvh;padding:12px}.catalog-photo-zoom>button{display:block;margin-left:auto}.catalog-photo-zoom img{display:block;max-width:100%;width:auto;max-height:calc(90dvh - 70px);object-fit:contain;margin:auto}.catalog-profile-editor{margin:16px 0;padding:12px;border:1px solid #dbe3e5;border-radius:10px}.catalog-profile-editor label{display:block;margin:12px 0}.catalog-profile-editor textarea,.catalog-profile-editor input{width:100%;box-sizing:border-box}.catalog-extra-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}.catalog-extra-filters input{width:100%;box-sizing:border-box}@media(max-width:600px){.catalog-extra-filters{grid-template-columns:1fr}}

.catalog-photo-filter-note{grid-column:1/-1;color:#66757a}.catalog-extra-filters select{width:100%}
@media(min-width:761px){.catalog-extra-filters{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* Only the selected gallery image is requested. Buttons do not fetch thumbnails. */
.catalog-open-gallery{margin-top:10px}.catalog-photo-viewer{box-sizing:border-box;width:min(1000px,95vw);max-height:95vh;max-height:95dvh;overflow:auto}.catalog-photo-viewer h3{clear:both;margin:10px 0;overflow-wrap:anywhere}.catalog-photo-counter{margin:8px 0;color:#586b73}.catalog-photo-stage{min-height:180px;height:min(56vh,580px);height:min(56dvh,580px);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;touch-action:pan-y;background:#f6f7f7;border-radius:8px}.catalog-photo-stage img{max-height:100%;max-width:100%;width:auto;height:auto;object-fit:contain}.catalog-photo-stage img[hidden]{display:none}.catalog-photo-message{padding:12px;text-align:center}.catalog-photo-nav{display:flex;justify-content:space-between;gap:12px;margin-top:12px}.catalog-photo-nav button,.catalog-photo-choices button,.catalog-photo-viewer>button{min-height:44px}.catalog-photo-choices{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.catalog-photo-choices button{min-width:44px}.catalog-photo-choices button[aria-pressed=true]{background:#22667a;color:#fff}.catalog-photo-viewer::backdrop{background:#0009}@media(max-width:600px){.catalog-photo-viewer{padding:12px;width:95vw}.catalog-photo-stage{height:45vh;height:45dvh}.catalog-photo-nav button{flex:1}}

.catalog-thumb-frame{position:relative;display:inline-flex;flex:0 0 48px;width:48px;height:48px;align-items:center;justify-content:center;background:#eef2f3;border-radius:8px;overflow:hidden}.catalog-thumb-frame img{position:absolute;inset:0}.catalog-thumb-frame img[data-external-src]{visibility:hidden}.catalog-thumb-frame [data-photo-message]{font-size:11px;line-height:1.2;text-align:center}.catalog-thumb-frame img[hidden]{display:none}.catalog-external-photo{position:relative;min-height:240px}.catalog-external-photo [data-photo-message]{display:block;padding:16px;font-size:14px}.catalog-external-photo [data-photo-message][hidden]{display:none}.catalog-external-photo img[data-external-src]{display:none}.catalog-external-photo img[hidden]{display:none}
