.tgcp-gallery-order-list{display:grid;gap:7px;margin:12px 0}.tgcp-gallery-order-item{display:flex;align-items:center;gap:9px;padding:10px;border:1px solid #ddd;border-radius:7px;background:#fff}.tgcp-gallery-order-item strong{flex:1}.tgcp-gallery-drag{cursor:grab;color:#777}.tgcp-profile-enclosure-picker{margin:20px 0;padding:16px;border:1px solid #d6dde4;border-radius:10px}.tgcp-profile-unit-choices{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}.tgcp-profile-unit-choice{width:118px;min-height:118px;padding:7px;border:2px solid #d4dae0;background:#fff;border-radius:9px;cursor:pointer;display:grid;align-content:start;gap:7px;text-align:center}.tgcp-profile-unit-choice img{width:100%;height:72px;object-fit:cover;border-radius:5px}.tgcp-profile-unit-choice span{font-size:12px;font-weight:600;line-height:1.3}.tgcp-profile-unit-choice[aria-pressed="true"],.tgcp-profile-enclosure-choice[aria-pressed="true"]{border-color:#177d49;background:#e8f7ec}.tgcp-profile-enclosure-choices{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.tgcp-profile-enclosure-choices[hidden]{display:none}.tgcp-profile-enclosure-choice{padding:9px 12px;border:1px solid #cad1d8;border-radius:7px;background:#fff;cursor:pointer}.tgcp-profile-current-enclosure{font-weight:600}.tgcp-unit-no-photo{background:#eee;padding:28px 5px;border-radius:5px}
.tgcp-visual-batch-picker .tgcp-batch-unit-map{max-width:220px}.tgcp-visual-batch-picker .tgcp-batch-unit-map img{max-width:220px;height:auto}.tgcp-visual-batch-picker .tgcp-batch-unit h3{margin-bottom:8px}

/* Keep each mapped photograph with its enclosure when reordering. */
.tgcp-gallery-order-preview{flex:0 0 110px;max-width:110px}.tgcp-gallery-order-preview .tgcp-enclosure-map-preview{width:110px;max-width:100%}.tgcp-gallery-order-preview img{max-width:100%}.tgcp-gallery-order-item strong{min-width:0;overflow-wrap:anywhere}
@media(max-width:600px){.tgcp-gallery-order-item{flex-wrap:wrap}.tgcp-gallery-order-preview{flex-basis:85px;max-width:85px}.tgcp-gallery-order-item strong{flex:1 1 130px}.tgcp-gallery-order-item [data-order-up]{margin-left:auto}}

.tgcp-gallery-order-name{display:grid;gap:4px;flex:1;min-width:130px;margin:0}.tgcp-gallery-order-name strong{flex:none}.tgcp-gallery-order-name span{font-size:12px;color:#646970}.tgcp-gallery-order-name input{width:100%;max-width:580px;margin:0}

/* Shared mapped-photo selection cards, used for single and batch assignments. */
.tgcp-profile-enclosure-choice,.tgcp-batch-choose,.tgcp-visual-enclosure-card{display:flex!important;flex-direction:column;align-items:stretch;gap:8px;width:170px;max-width:100%;height:auto!important;white-space:normal!important;line-height:1.4!important;padding:9px!important;text-align:left;border:2px solid #cad1d8;border-radius:8px;background:#fff;cursor:pointer;color:inherit}
.tgcp-enclosure-choice-preview{width:100%;line-height:0}.tgcp-enclosure-choice-preview .tgcp-enclosure-map-preview-frame{position:relative;line-height:0;overflow:hidden;border-radius:6px}.tgcp-enclosure-choice-preview img{display:block;width:100%;height:auto}.tgcp-enclosure-choice-preview svg{position:absolute;inset:0;width:100%;height:100%}.tgcp-enclosure-choice-preview rect,.tgcp-enclosure-choice-preview polygon{fill:#dc262644;stroke:#dc2626;stroke-width:2;vector-effect:non-scaling-stroke}
.tgcp-visual-enclosure-grid{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0}.tgcp-visual-enclosure-picker{margin:10px 0;padding:12px;border:1px solid #d6dde4;border-radius:8px}.tgcp-visual-enclosure-card[aria-pressed=true]{border-color:#177d49;background:#e8f7ec}.tgcp-visual-enclosure-card:disabled{opacity:.5;cursor:not-allowed}.tgcp-visual-enclosure-picker summary{cursor:pointer;font-weight:600}.tgcp-visual-enclosure-picker [hidden]{display:none!important}.tgcp-visual-enclosure-search{width:100%;max-width:500px}.tgcp-batch-choose .tgcp-enclosure-choice-preview{max-width:150px}

.tgcp-gallery-enclosure-entry{display:grid;align-content:start;gap:6px;width:170px;max-width:100%}.tgcp-gallery-enclosure-entry>label{display:grid;gap:4px;margin:0}.tgcp-gallery-enclosure-entry input{width:100%}.tgcp-profile-enclosure-picker [hidden]{display:none!important}

.tgcp-profile-enclosure-choice:disabled{opacity:.65;cursor:not-allowed}.tgcp-profile-enclosure-choice small{font-size:11px;line-height:1.4;color:#6b302b}

/* v1.57.60: show saved enclosure, make changes deliberate */
.tgcp-locked-enclosure-card{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}
.tgcp-locked-enclosure-item{max-width:240px;min-width:160px;border:1px solid #d6dde4;border-radius:11px;padding:10px;background:#f6f8f8;display:grid;gap:7px}
.tgcp-locked-enclosure-item .tgcp-enclosure-map-preview{max-width:220px}
.tgcp-locked-enclosure-item img{max-width:100%;height:auto}
.tgcp-enclosure-change-panel{margin-top:16px;padding:12px;border:1px solid #d5dce5;border-radius:10px}
.tgcp-enclosure-change-panel[hidden]{display:none!important}
.tgcp-enclosure-change-open{min-height:44px}

/* 1.57.79: Small batch-addition action; cage quantities only, no second gallery. */
.tgcp-pet-profile-editor{min-width:0;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
.tgcp-pet-profile-editor .field-grid>*{min-width:0}
.tgcp-batch-additions{box-sizing:border-box;width:100%;max-width:760px;min-width:0;margin:18px 0;padding:14px 16px;border:1px solid #ccd7e4;border-radius:9px;background:#f8fafc}
.tgcp-batch-additions>summary{cursor:pointer;font-weight:700;color:#173451}
.tgcp-batch-additions form{margin:14px 0 0!important;padding:0!important;border:0!important;min-width:0;max-width:100%}
.tgcp-batch-additions fieldset{min-width:0;max-width:100%;box-sizing:border-box;margin:14px 0;padding:12px;border:1px solid #dce3ec;border-radius:7px}
.tgcp-batch-additions .field-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
.tgcp-batch-additions label{display:block;min-width:0;font-size:13px;line-height:1.45}
.tgcp-batch-additions input:not([type=hidden]),.tgcp-batch-additions select,.tgcp-batch-additions textarea{box-sizing:border-box;min-width:0;max-width:100%!important;width:100%;margin:5px 0 0;font-size:14px;line-height:1.4}
.tgcp-batch-additions p{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.tgcp-batch-additions .tgcp-batch-count-row{display:grid!important;grid-template-columns:minmax(0,1fr) 65px 100px;gap:10px;align-items:center;margin:8px 0}
.tgcp-batch-additions .tgcp-batch-count-row>span{min-width:0;overflow-wrap:anywhere}
.tgcp-batch-additions .tgcp-batch-count-heading{font-weight:600;font-size:12px;color:#526276}
.tgcp-batch-additions .tgcp-batch-count-row input{margin:0;width:100px}
.tgcp-batch-additions [hidden]{display:none!important}
.tgcp-profile-enclosure-picker{box-sizing:border-box;min-width:0;max-width:100%}
.tgcp-locked-enclosure-item{box-sizing:border-box;flex:0 1 220px;width:220px;min-width:0;max-width:100%}
.tgcp-locked-enclosure-item .tgcp-enclosure-choice-preview{min-width:0;max-width:100%}
@media(max-width:600px){.tgcp-batch-additions{padding:12px}.tgcp-batch-additions .field-grid{grid-template-columns:1fr!important}.tgcp-batch-additions .tgcp-batch-count-row{grid-template-columns:minmax(0,1fr) 45px 80px;gap:7px}.tgcp-batch-additions .tgcp-batch-count-row input{width:80px}}
/* Pair identity and photo choices stay compact and separate from the upload grid. */
.tgcp-pair-photo-assignment{margin:16px 0;padding:16px;border:1px solid #d9e2ec;border-radius:10px;background:#f8fafc;min-width:0;box-sizing:border-box;max-width:100%}
.tgcp-pair-photo-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.tgcp-pair-photo-slot{min-width:0;padding:12px;border:1px solid #d9e2ec;border-radius:8px;background:white}
.tgcp-pair-photo-slot h4{margin:0 0 8px}.tgcp-pair-photo-slot p{font-size:13px;overflow-wrap:anywhere}
.tgcp-pair-assigned-preview{display:flex;align-items:center;justify-content:center;height:150px;background:#edf2f7;border-radius:7px;overflow:hidden;margin:10px 0}
.tgcp-pair-assigned-preview img{display:block;max-width:100%;max-height:150px;width:auto;height:auto;object-fit:contain}
.tgcp-pair-photo-slot label{display:block}.tgcp-pair-photo-slot select{width:100%;max-width:100%;box-sizing:border-box}
@media(max-width:750px){.tgcp-pair-photo-slots{grid-template-columns:1fr}}
