/* Photographic inventory follows the approved product and material prototype. */
.catalog-media{position:relative;display:grid;place-items:center;width:100%;height:100%;min-width:0;overflow:hidden;background:#eef1e9;color:#627561}.catalog-media img{width:100%;height:100%;display:block;object-fit:contain}.catalog-media img[hidden],.catalog-media-fallback[hidden]{display:none}.catalog-media--product img{padding:22px;transition:transform .28s cubic-bezier(.2,.8,.2,1)}.catalog-media--video img{object-fit:cover}.catalog-media-fallback{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:22px;text-align:center;font-size:13px;line-height:1.5}.catalog-media-fallback svg{color:#6a8069}.catalog-media-fallback small{font-size:11px;color:#627561}.catalog-product-image{position:relative;height:224px}.catalog-market{position:absolute;top:14px;right:14px;padding:4px 9px;border-radius:5px;background:#fff;color:#254e3b;font-size:11px}.catalog-product{overflow:hidden;min-width:0}.catalog-product:hover .catalog-media--product img{transform:scale(1.035)}.catalog-product .cloud-product-body{padding:19px 20px 17px}.catalog-product .cloud-product-body h2{font-size:16px;line-height:1.6;margin:0 0 5px;font-weight:600;overflow-wrap:anywhere}.catalog-product-subtitle{color:var(--muted);font-size:12px;line-height:1.7;margin:0}.catalog-price{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;margin:17px 0!important}.catalog-price strong{font-size:23px;font-weight:600;letter-spacing:-.025em;line-height:1.3;color:var(--text)}.catalog-price span{color:var(--muted);font-size:11px}.catalog-product-metrics{display:grid;grid-template-columns:1fr 1fr;gap:14px 16px;margin:0;padding:0 0 17px;border-bottom:1px solid var(--line)}.catalog-product-metrics dt{font-size:11px;line-height:1.6;color:var(--muted)}.catalog-product-metrics dd{margin:4px 0 0;font-size:17px;font-weight:550;line-height:1.4;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.catalog-product-metrics .catalog-commission{color:#426b35}.catalog-observation{font-size:11px;line-height:1.7;color:var(--muted);margin:12px 0}.catalog-product-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:15px}.catalog-product-actions .primary{flex:1;justify-content:space-between}.catalog-product-utilities{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;padding-top:14px;font-size:12px}.catalog-product .cloud-choice{margin:16px 0 0;padding-top:13px;border-top:1px solid var(--line);font-size:12px}.catalog-videos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.catalog-video{overflow:hidden;display:flex;flex-direction:column;min-width:0}.catalog-video-cover{position:relative;display:block;width:100%;height:234px;padding:0;border:0;border-radius:0;background:#e8eee3;overflow:hidden;text-align:left;white-space:normal}.catalog-video-cover .catalog-media{height:100%}.catalog-role{position:absolute;top:12px;left:12px;max-width:calc(100% - 24px);padding:4px 8px;background:#fff;color:#254e3b;border-radius:5px;font-size:11px;line-height:1.5;overflow-wrap:anywhere}.catalog-duration{position:absolute;right:12px;bottom:12px;background:#193f32;color:#fff;font-size:11px;line-height:1.5;padding:3px 7px;border-radius:4px}.catalog-video-open{position:absolute;left:12px;bottom:12px;display:flex;align-items:center;gap:8px;background:#fff;color:#254e3b;font-size:11px;line-height:1.5;padding:4px 8px;border-radius:4px}.catalog-video-cover:hover .catalog-video-open{background:var(--primary);color:#fff}.catalog-video-body{display:flex;flex-direction:column;flex:1;padding:17px 17px 13px;min-width:0}.catalog-video-body h2{font-size:14px;line-height:1.7;font-weight:550;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:48px;overflow-wrap:anywhere}.catalog-source-author{font-size:11px;color:var(--muted);line-height:1.7;margin:7px 0}.catalog-tags{display:flex;gap:5px 9px;flex-wrap:wrap;font-size:11px;color:var(--primary);line-height:1.7;min-height:20px;overflow-wrap:anywhere}.catalog-muted{color:var(--muted)}.catalog-traffic{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0;padding:13px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.catalog-traffic dt{font-size:11px;color:var(--muted);line-height:1.5}.catalog-traffic dd{font-size:15px;line-height:1.5;font-weight:550;font-variant-numeric:tabular-nums;margin:4px 0 0;overflow-wrap:anywhere}.catalog-states{display:flex;gap:6px;flex-wrap:wrap}.catalog-state{font-size:11px;line-height:1.5;padding:4px 7px;background:#f1f3ed;color:#596454;border-radius:5px}.catalog-state--ready{background:#e9f1e3;color:#315d36}.catalog-video-footer{display:flex;gap:12px;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:12px;margin-top:auto;flex-wrap:wrap;font-size:11px;line-height:1.5;color:var(--muted)}.catalog-video-footer .link{font-size:12px}.catalog-media:focus-within{outline:3px solid #829f65;outline-offset:-4px}
@media(min-width:1650px){.catalog-products{grid-template-columns:repeat(4,minmax(0,1fr))}.catalog-videos{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1250px){.catalog-videos{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-product-image{height:204px}}
@media(max-width:760px){.catalog-videos{grid-template-columns:1fr}.catalog-product-image{height:220px}.catalog-product .cloud-product-body{padding:17px}.catalog-video-cover{height:260px}.catalog-video-body{padding:17px}.catalog-video-body h2{font-size:15px}.catalog-traffic dt,.catalog-source-author,.catalog-observation,.catalog-product-metrics dt{font-size:12px}.catalog-states .catalog-state{font-size:12px}.catalog-video-footer{font-size:12px}.catalog-video-footer .link{min-height:34px}}
@media(prefers-reduced-motion:reduce){.catalog-media--product img{transition:none}.catalog-product:hover .catalog-media--product img{transform:none}}

.catalog-price strong.catalog-value--unknown{font-size:15px;font-weight:400;color:var(--muted)}.catalog-product-metrics .catalog-value--unknown{font-size:14px;font-weight:400;color:var(--muted)}

/* Material metadata expands only when requested; previews remain the main surface. */
.catalog-video-cover{height:260px}.catalog-video-body{padding:12px 14px;gap:10px}.catalog-video-metadata{min-width:0;font-size:12px}.catalog-video-metadata summary,.video-detail-metadata summary{cursor:pointer;color:var(--primary);line-height:1.7;padding:3px 0;overflow-wrap:anywhere}.catalog-video-metadata summary:focus-visible,.video-detail-metadata summary:focus-visible{outline:2px solid var(--primary);outline-offset:3px;border-radius:3px}.catalog-video-metadata h2{display:block;min-height:0;margin:9px 0 0;overflow:visible;overflow-wrap:anywhere;white-space:normal;-webkit-line-clamp:unset}.catalog-video-metadata .catalog-tags{min-height:0}.catalog-video .catalog-traffic{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0;padding:10px 0}.catalog-video .catalog-traffic dd{font-size:14px;margin-top:3px}.catalog-video .catalog-observation{margin:0}.catalog-video-footer{border:0;padding:0;justify-content:flex-end;margin-top:auto}.video-detail-context .cloud-details{margin:0}.video-detail-status{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 18px}.video-detail-status span{background:#f1f3ed;color:#475640;border-radius:5px;padding:5px 9px;font-size:12px}.video-detail-metadata{margin-top:18px;min-width:0;border-top:1px solid var(--line);padding-top:12px}.video-detail-metadata dd,.video-detail-context dd{overflow-wrap:anywhere;white-space:normal}.video-detail-origin{font-size:13px;margin:12px 0}.video-detail-metrics dd{font-variant-numeric:tabular-nums}
@media(max-width:760px){.catalog-video-body{padding:12px 14px}.catalog-video .catalog-traffic dt{font-size:11px}}

/* Product image viewing stays separate from record details and row selection. */
[data-product-image-preview]{cursor:zoom-in}
[data-product-image-preview]:focus-visible{outline:3px solid #829f65;outline-offset:-3px}
.product-detail-image{width:160px;height:160px;margin:0 0 20px;border-radius:7px;overflow:hidden}
dialog.product-image-preview{box-sizing:border-box;width:min(1080px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);padding:18px;border:0;border-radius:14px;background:var(--surface,#fff);color:var(--text,#263c31)}
.product-image-preview::backdrop{background:#132b22b8}
.product-image-preview header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.product-image-preview header h2{margin:0;font-size:18px}
.product-image-preview header>div{display:flex;gap:8px}
.product-image-preview [role=status]{font-size:13px;color:var(--muted,#617064);margin:12px 0}
.product-image-preview [role=status]:empty{display:none}
.product-image-preview-stage{height:min(72dvh,760px);overflow:auto;margin-top:16px;background:var(--soft,#eef1e9)}
.product-image-preview-stage img{display:block;width:100%;height:100%;object-fit:contain}
.product-image-preview-stage img[hidden]{display:none}
.product-image-preview--original .product-image-preview-stage img{width:auto;height:auto;max-width:none;max-height:none}
@media(max-width:760px){dialog.product-image-preview{padding:12px}.product-image-preview header h2{font-size:16px}.product-image-preview header button{padding:8px}.product-image-preview-stage{height:65dvh}}
