/* 检查照片：缩略图墙 + 大图查看 + 加照片按钮 */
.photo-block { display: grid; gap: 20px; }
.photo-block-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.photo-block-head h3 { margin: 0; font-size: 18px; }
.photo-adds { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-add { min-height: 44px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 14px; }
.photo-tile { margin: 0; min-width: 0; }
.photo-thumb { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--app-line); border-radius: 10px;
  overflow: hidden; background: #f3f5f3; cursor: pointer; }
/* 右下角一个放大镜角标：让人知道这张能点开，不用猜 */
.photo-thumb__zoom { position: absolute; right: 5px; bottom: 5px; width: 24px; height: 24px; display: grid;
  place-items: center; border-radius: 50%; background: rgba(16, 22, 26, .62); color: #fff; font-size: 17px; line-height: 1; }
.photo-picked-view { position: relative; padding: 0; border: 0; background: none; cursor: pointer; }
.photo-thumb img { display: block; width: 100%; height: 112px; object-fit: cover; }
.photo-tile.is-current .photo-thumb { border-color: var(--app-state-info-border); box-shadow: 0 0 0 2px var(--app-state-info-bg); }
.photo-tile figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; margin-top: 8px;
  font-size: 15px; color: var(--app-text-secondary); }
.photo-tile figcaption time { flex: 1 1 100%; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* 一种类型一行：名称在左、条数跟着、按钮顶到右边，缩略图挂在下面 */
.photo-kind { display: grid; gap: 14px; padding-top: 20px; border-top: 1px solid var(--app-line); }
.photo-kind:first-child { border-top: 0; padding-top: 0; }
.photo-kind__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.photo-kind__head h4 { margin: 0; font-size: 16px; }
.photo-kind__count { color: var(--app-text-secondary); font-size: 15px; }
.photo-kind__head .photo-add-wrap { margin-left: auto; }
.photo-kind__head .photo-add { min-height: 44px; padding: 0 14px; font-size: 16px; white-space: nowrap; }
@media (max-width: 899px) {
  .photo-kind__head .photo-add { min-height: 44px; }
}
.photo-viewer { display: grid; gap: 16px; }
.photo-large { display: block; width: 100%; max-height: 62vh; object-fit: contain; background: #10161a; border-radius: 10px; }
.photo-caption { margin: 0; font-size: 16px; line-height: 1.6; color: var(--app-text-secondary); overflow-wrap: anywhere; }
.photo-nav { display: flex; align-items: center; justify-content: center; gap: 16px; font-size: 16px; color: var(--app-text-secondary); }
.photo-nav .btn { min-width: 44px; }

/* 单子还没生成时先攒在手里的图：缩略图摆在按钮下面，店员看得见才知道没丢 */
.photo-pending { display: grid; gap: 8px; padding-top: 10px; }
.photo-picked { display: flex; flex-wrap: wrap; gap: 12px 10px; }
.photo-picked-item { position: relative; display: grid; gap: 2px; justify-items: center; }
.photo-picked-item img { display: block; width: 88px; height: 88px; object-fit: cover;
  border: 1px solid var(--app-line); border-radius: 10px; background: #f3f5f3; }
.photo-picked-remove { position: absolute; top: -9px; right: -7px; width: 30px; height: 30px; padding: 0;
  border: 2px solid var(--app-surface, #fff); border-radius: 50%; background: var(--app-primary-dark);
  color: #fff; font-size: 16px; line-height: 1; cursor: pointer; touch-action: manipulation; }
