.product-photos{margin-bottom:22px;padding-bottom:20px;border-bottom:1px solid var(--line)}.photo-actions{display:flex;gap:9px;flex-wrap:wrap}.photo-actions label{display:inline-flex;align-items:center;justify-content:center;min-height:44px;cursor:pointer}.photo-actions input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.photo-actions label:focus-within{outline:3px solid #b89245}.photo-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px;margin:14px 0}.photo-tile{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#f2f6f3}.photo-open{display:block;width:100%;padding:0;background:transparent;border:0;cursor:pointer}.photo-tile img{width:100%;height:140px;object-fit:contain;display:block}.photo-tile footer{display:flex;justify-content:center;padding:8px}.photo-tile footer button{font-size:11px}.photo-primary{font-size:12px;font-weight:800;color:var(--forest)}.photo-status{min-height:22px;font-size:13px;white-space:pre-line;color:var(--muted);margin:10px 0}.photo-status.error{color:#9e4239}.photo-help{font-size:12px;color:var(--muted)}.photo>img.product-cover{width:100%;height:100%;object-fit:contain}.photo-viewer{width:min(900px,calc(100% - 24px));max-width:none}.photo-viewer-bar{position:sticky;top:0;display:flex;justify-content:space-between;align-items:center;padding:12px;background:white;gap:12px}.photo-viewer img{display:block;width:100%;max-height:75vh;object-fit:contain;background:#eef3ef}.photo-viewer button,.photo-viewer a{min-height:44px}.photo-actions.disabled{opacity:.6;pointer-events:none}
.photo-tile footer{flex-wrap:wrap;gap:8px;align-items:center}.photo-delete{border:1px solid #e4c5c1;background:#fff5f3;color:#9e4239;border-radius:8px;padding:9px 12px;min-height:40px;cursor:pointer}.photo-confirm{width:min(650px,calc(100% - 24px));max-width:none;max-height:90dvh;overflow:auto}.photo-confirm-head{padding:18px 22px;background:white;position:sticky;top:0}.photo-confirm-head h2{margin:0 0 5px}.photo-confirm-head p{margin:0;color:var(--muted)}.photo-confirm>img{width:100%;height:45dvh;object-fit:contain;background:#eef3ef;display:block}.photo-confirm-actions{display:flex;gap:12px;justify-content:flex-end;padding:18px;background:white;position:sticky;bottom:0}.photo-confirm-actions button{min-height:46px}
.card .photo:has(.product-cover){background:#fff;overflow:hidden;isolation:isolate}
.card .photo{flex:none;min-height:0}
.card .photo>img.product-cover{position:absolute;inset:8px;width:calc(100% - 16px);height:calc(100% - 16px);max-width:calc(100% - 16px);max-height:calc(100% - 16px);object-fit:contain;object-position:center;display:block}
.card .photo .pill,.card .photo .inactive-pill{z-index:1}
.card .card-body{position:relative;background:#fff;min-width:0}
.product-row-identity{display:flex;align-items:center;gap:10px;min-width:0}
.product-row-label{min-width:0;flex:1}
.product-row-photo{flex:0 0 46px;width:46px;height:52px;padding:3px;border:1px solid var(--line);border-radius:8px;background:#fff;display:flex;align-items:center;justify-content:center;cursor:zoom-in}
.product-row-photo img{display:block;width:100%;height:100%;object-fit:contain}
.product-row-photo.missing-photo{color:#a3483e;background:#fff6f4;border-color:#e7c8c2;font-size:30px;line-height:1;cursor:pointer}
.product-row-photo:disabled{cursor:default;opacity:.7}
.product-row-photo:focus-visible,[data-completion-hint]:focus-visible{outline:3px solid #b89245;outline-offset:3px}
.photo-viewer{width:min(480px,calc(100% - 24px));max-height:85dvh;overflow:auto}
.photo-viewer-bar b{font-size:14px}
.photo-viewer-bar #closeProductPhoto{margin-left:auto;flex:none;width:40px;min-height:40px;font-size:25px;padding:0}
.photo-viewer>img{max-height:65dvh;background:white;padding:8px;box-sizing:border-box}
[data-completion-hint]{cursor:help}
.completion-tooltip{position:fixed;z-index:10000;max-width:min(300px,calc(100vw - 32px));padding:12px 16px;border-radius:10px;background:var(--forest,#204b40);color:white;box-shadow:0 5px 20px #0003;white-space:pre-line;font-size:13px;line-height:1.6;pointer-events:none}
.completion-tooltip[hidden]{display:none}
