.photo-batch { --photo-blue: #4463df; color: #293852; overflow: hidden; }
.photo-batch [hidden] { display: none !important; }
.photo-batch-dialog { width: calc(100% - 32px); max-width: 1040px; max-height: 94vh; padding: 0; border: 0; border-radius: 18px; }
.photo-batch-dialog::backdrop { background: rgba(25, 38, 63, .42); }
.photo-batch-dialog[open] { display: flex; flex-direction: column; }
.photo-batch-head { display: flex; justify-content: space-between; gap: 20px; padding: 27px 30px 20px; border-bottom: 1px solid #e8edf5; }
.photo-batch-head h2 { margin: 0 0 9px; font-size: 23px; }
.photo-batch-head p { margin: 0; font-size: 13px; line-height: 1.8; color: #75829a; }
.photo-batch-head .photo-batch-eyebrow { margin: 0 0 8px; color: var(--photo-blue); font-size: 10px; letter-spacing: 2px; font-weight: 700; }
.photo-batch-head .modal-close { flex: 0 0 auto; align-self: flex-start; }
.photo-batch-content { padding: 23px 30px; }
.photo-batch-dialog .photo-batch-content { overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
.photo-batch-controls { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 18px; }
.photo-batch-controls label { display: grid; gap: 7px; font-size: 12px; color: #61718e; }
.photo-batch select { padding: 9px 12px; border: 1px solid #dce4f1; border-radius: 7px; color: #354563; background: #fff; font: inherit; min-width: 0; max-width: 100%; }
.photo-batch-limit { margin: 0 0 8px; font-size: 12px; color: #7a879e; }
.photo-batch-drop { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 23px 18px; border: 1px dashed #b5c4e8; border-radius: 13px; background: #f7f9ff; text-align: center; transition: background .15s, border-color .15s; }
.photo-batch-drop[data-dragging="true"] { background: #edf2ff; border-color: var(--photo-blue); }
.photo-batch-drop[data-locked="true"] { opacity: .65; }
.photo-batch-drop-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: var(--photo-blue); background: #e9efff; font-size: 25px; }
.photo-batch-drop strong { font-size: 15px; font-weight: 600; }
.photo-batch-drop > span:not(.photo-batch-drop-icon), .photo-batch-drop small { font-size: 12px; color: #7a879e; line-height: 1.8; }
.photo-batch-drop .btn { margin: 6px 0; }
.photo-batch-summary { display: flex; gap: 10px; justify-content: space-between; align-items: center; margin: 19px 0 10px; }
.photo-batch-summary p { margin: 0; font-size: 13px; line-height: 1.8; color: #506994; }
.photo-batch-summary .btn { flex: 0 0 auto; padding: 6px 10px; font-size: 12px; }
.photo-batch-progress { width: 100%; height: 7px; accent-color: var(--photo-blue); margin-bottom: 8px; }
.photo-batch-notice { background: #fff8eb; color: #8d642f; font-size: 13px; line-height: 1.8; border-radius: 8px; padding: 10px 14px; overflow-wrap: anywhere; }
.photo-batch-list { list-style: none; padding: 0; margin: 0; }
.photo-batch-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 15px; padding: 18px 0; border-bottom: 1px solid #e9edf5; align-items: start; }
.photo-batch-thumb { width: 88px; height: 76px; object-fit: contain; border: 1px solid #e4eaf3; border-radius: 8px; background: repeating-conic-gradient(#fff 0% 25%,#f1f4f8 0% 50%) 50% / 14px 14px; }
.photo-batch-empty-thumb { display: grid; place-items: center; color: #9ba8bc; background: #f6f8fc; font-size: 13px; }
.photo-batch-name { margin: 1px 0 7px; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.photo-batch-meta, .photo-batch-row-status { margin: 5px 0; font-size: 12px; color: #7a879e; line-height: 1.7; overflow-wrap: anywhere; }
.photo-batch-row-status { color: #5571a5; }
.photo-batch-row[data-state="error"] .photo-batch-row-status { color: #b15340; }
.photo-batch-row[data-state="applied"] .photo-batch-row-status { color: #397e65; }
.photo-batch-target { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 9px; font-size: 12px; color: #64748e; }
.photo-batch-target select { padding: 6px 9px; max-width: 340px; }
.photo-batch-destination { margin: 9px 0 0; padding: 8px 10px; border-left: 3px solid #93abe9; border-radius: 0 6px 6px 0; background: #f2f6ff; color: #3d5d9c; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.photo-batch-destination[data-error="true"] { border-left-color: #dcad77; background: #fff8ec; color: #90652d; }
.photo-batch-row-actions { display: flex; justify-content: flex-end; align-items: center; gap: 6px; flex-wrap: wrap; max-width: 220px; }
.photo-batch-row-actions .btn { padding: 7px 9px; font-size: 12px; min-height: 32px; }
.photo-batch .btn:disabled, .photo-batch select:disabled { cursor: not-allowed; opacity: .5; }
.photo-batch-pairing-controls { margin: 16px 0 4px; padding: 14px 15px; border: 1px solid #dce5f6; border-radius: 9px; background: #f8faff; }
.photo-batch-pairing-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.photo-batch-pairing-toolbar label { display: grid; gap: 7px; min-width: 0; font-size: 12px; color: #61718e; }
.photo-batch-pairing-toolbar .btn { min-height: 38px; font-size: 12px; }
.photo-batch-pairing-controls > p { margin: 10px 0 0; font-size: 12px; color: #657592; line-height: 1.8; }
.photo-batch-pairing { margin-top: 16px; border: 1px solid #dce5f6; border-radius: 9px; padding: 12px 15px; background: #f8faff; font-size: 13px; }
.photo-batch-pairing p { margin: 0 0 9px; color: #657592; line-height: 1.8; }
.photo-batch-pairing .photo-batch-pairing-summary { color: #3d5d9c; font-weight: 500; }
.photo-batch-pairing-summary:empty { display: none; }
.photo-batch-pairing .photo-batch-pairing-summary[data-error="true"] { color: #a05339; }
.photo-batch-pairing .check-row { margin: 0; }
.photo-batch-footnote { margin: 14px 0 0; font-size: 12px; color: #7e8aa0; line-height: 1.8; }
.photo-batch-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 18px 30px; border-top: 1px solid #e8edf5; background: #fff; }
.photo-batch :focus-visible { outline: 3px solid #9eb5ff; outline-offset: 3px; }
.photo-tools-heading { margin-bottom: 22px; }
@media (max-width: 650px) {
    .photo-batch-head, .photo-batch-content { padding: 18px; }
    .photo-batch-head h2 { font-size: 20px; }
    .photo-batch-actions { padding: 15px 18px; }
    .photo-batch-dialog { width: calc(100% - 16px); max-height: 96vh; }
    .photo-batch-controls { align-items: stretch; }
    .photo-batch-controls label { width: 100%; }
    .photo-batch-pairing-toolbar { align-items: stretch; }
    .photo-batch-pairing-toolbar label, .photo-batch-pairing-toolbar .btn { width: 100%; }
    .photo-batch-pairing-toolbar select { width: 100%; }
    .photo-batch-row { grid-template-columns: 62px minmax(0, 1fr); gap: 10px; }
    .photo-batch-thumb { width: 62px; height: 62px; }
    .photo-batch-row-actions { grid-column: 2; justify-content: flex-start; max-width: none; }
    .photo-batch-target { display: grid; }
    .photo-batch-target select { width: 100%; max-width: 100%; }
    .photo-batch-summary { flex-wrap: wrap; }
    .photo-batch-actions .btn { flex: 1 1 auto; }
}
