#ptTransportPhotosModal .modal-box { width: min(720px, calc(100vw - 24px)); max-width: 720px !important; }
#ptTransportPhotosBody { max-height: min(620px, 72vh) !important; overflow-x: hidden; }
.ptg-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; padding: 0 0 12px; margin-bottom: 12px; border-bottom: 1px solid #e5e7eb; font-size: 13px; color: #374151; overflow-wrap: anywhere; }
.ptg-notice { color: #b91c1c; font-size: 13px; margin-bottom: 12px; }
.ptg-status { padding: 18px 0; text-align: center; color: #6b7280; font-size: 13px; }
.ptg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 136px)); justify-content: center; gap: 12px; }
.ptg-tile { min-width: 0; border: 1px solid #e5e7eb; border-radius: 6px; padding: 7px; background: #fff; }
.ptg-tile[data-abnormal="true"], .ptg-tile[data-warning="duplicate"] { border-color: #ef4444; box-shadow: inset 0 0 0 1px #ef4444; }
.ptg-tile[data-warning="review"] { border-color: #d97706; box-shadow: inset 0 0 0 1px #d97706; }
.ptg-notice[data-warning="review"], .ptg-tile[data-warning="review"] .ptg-reason { color: #92400e; }
.ptg-number { font-size: 12px; color: #6b7280; margin-bottom: 5px; }
.ptg-thumb { width: 100%; aspect-ratio: 12 / 13; max-height: 130px; padding: 0; border: 0; border-radius: 4px; background: #f3f4f6; display: grid; place-items: center; overflow: hidden; cursor: zoom-in; color: #6b7280; font-size: 12px; }
.ptg-thumb img { width: 100%; height: 100%; min-height: 0; object-fit: contain; display: block; }
.ptg-reason { font-size: 12px; color: #b91c1c; margin-top: 6px; line-height: 1.5; overflow-wrap: anywhere; }
.ptg-viewer { position: fixed; inset: 0; display: flex; flex-direction: column; background: rgba(13, 16, 20, .97); color: #fff; }
.ptg-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 10px 12px; border-bottom: 1px solid #374151; flex: 0 0 auto; }
.ptg-toolbar button { width: 36px; height: 36px; flex: 0 0 36px; border: 1px solid #6b7280; border-radius: 4px; background: #20252b; color: #fff; font-size: 19px; cursor: pointer; }
.ptg-toolbar button:disabled { opacity: .4; cursor: default; }
.ptg-toolbar button:focus-visible, .ptg-thumb:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; }
.ptg-toolbar .ptg-fit { width: 48px; flex-basis: 48px; font-size: 13px; }
.ptg-counter { margin-right: auto; min-width: 58px; font-size: 13px; }
.ptg-scale { display: inline-block; width: 58px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.ptg-stage { flex: 1 1 auto; min-height: 0; overflow: hidden; position: relative; touch-action: none; cursor: grab; }
.ptg-stage:active { cursor: grabbing; }
.ptg-image { position: absolute; left: 50%; top: 50%; max-width: none !important; max-height: none !important; user-select: none; transform-origin: center; }
.ptg-view-status { position: absolute; inset: 0; display: grid; place-content: center; gap: 12px; text-align: center; padding: 24px; font-size: 14px; }
.ptg-view-status button { justify-self: center; padding: 6px 14px; cursor: pointer; }
@media (max-width: 420px) { .ptg-grid { gap: 6px; } .ptg-tile { padding: 4px; } .ptg-toolbar { gap: 4px; padding: 8px; } .ptg-counter { width: 100%; } }
