.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}
