.product-photo{
  display:inline-flex; flex:0 0 auto; align-items:center; justify-content:center;
  width:48px; height:48px; border:1px solid var(--line); border-radius:8px; background:#fff; overflow:hidden;
}
.product-photo[hidden],.item-photo-field [hidden],.crop-stage[hidden]{display:none}
.product-photo img{display:block; width:100%; height:100%; object-fit:contain}
.product-photo img[hidden]{display:none}
.report-photo-name{display:flex;align-items:center;gap:9px}
.dashboard-photos{margin-top:18px}
.dashboard-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px;padding:0 20px 18px}
.dashboard-photo-grid button,.dashboard-photo-grid article{display:grid;align-content:start;gap:5px;text-align:left;min-width:0}
.dashboard-photo-grid .product-photo{width:100%;height:95px}
.dashboard-photo-grid strong,.dashboard-photo-grid small{overflow-wrap:anywhere}
.dashboard-photo-grid strong{font-size:14px}
.dashboard-photo-grid small{color:var(--muted)}
.item-photo-field{display:flex;align-items:center;gap:10px;min-width:0}
.item-photo-field>img{width:56px;height:56px;object-fit:contain;border:1px solid var(--line);border-radius:8px;background:white}
.item-photo-actions{display:grid;gap:3px}
.item-photo-actions strong{font-size:13px}
.item-photo-actions>div{display:flex;flex-wrap:wrap;gap:4px 12px}
.item-photo-actions .viewall{font-size:12px;text-align:left;padding:4px 0}
@media(pointer:fine){.item-photo-actions [data-take-product-photo]{display:none}}
.item-photo-actions small{color:var(--muted);font-size:12px}
.item-photo-actions small:empty{display:none}
.crop-dialog{width:min(530px,calc(100vw - 20px))}
.crop-surface{display:flex;align-items:center;justify-content:center;min-height:80px;background:#182537;border-radius:9px;overflow:hidden}
.crop-stage{position:relative;width:min(100%,calc(var(--photo-ratio)*min(42vh,360px)));aspect-ratio:var(--photo-ratio);overflow:hidden;touch-action:none;user-select:none;cursor:crosshair}
.crop-stage>img{display:block;width:100%;height:100%;pointer-events:none}
.crop-box{position:absolute;border:2px solid #fff;box-shadow:0 0 0 100vmax #0a142598,inset 0 0 0 1px #26344999;cursor:move;touch-action:none}
.crop-box [data-handle]{position:absolute;right:0;bottom:0;width:24px;height:24px;cursor:nwse-resize}
.crop-box [data-handle]::after{content:"";position:absolute;right:0;bottom:0;width:12px;height:12px;background:#ff713e;border:2px solid #fff;border-radius:3px}
.crop-adjust summary{font-size:13px;cursor:pointer}
.crop-ranges{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 15px;margin-top:10px}
.crop-ranges label{display:grid;gap:3px;font-size:12px}
.crop-ranges input{width:100%;min-width:0}
.crop-dialog [role=status]:empty{display:none}
@media(max-width:575px){
  .product-photo{width:36px;height:38px}
  .dashboard-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:0 14px 14px}
  .item-photo-actions .viewall{min-height:32px}
  .crop-dialog .dialog-actions button{min-height:43px}
}
