.photo-picker { padding: 16px; border: 1px dashed #83b9ce; border-radius: 10px; margin-bottom: 24px; background: #f5fbfe; }
.photo-picker .section-title { margin-top: 0; }
.photo-choices { display: flex; flex-wrap: wrap; gap: 12px; }
.photo-choice { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; cursor: pointer; }
.photo-file { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.photo-choice:focus-within { outline: 3px solid #007da8; outline-offset: 3px; }
.photo-choice:has(input:disabled) { opacity: .55; cursor: wait; }
.photo-previews,.photo-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 16px 0; }
.photo-preview { min-width: 0; margin: 0; }
.photo-preview img,.photo-open img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; border-radius: 8px; background: #e7f0f5; }
.photo-preview figcaption { font-size: 12px; color: #586a77; margin: 8px 0; }
.photo-preview .btn { width: 100%; }
.photo-picker summary,.photo-add>summary,.photo-history>summary { min-height: 44px; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; color: #006c94; cursor: pointer; }
.photo-picker summary::before,.photo-add>summary::before,.photo-history>summary::before { content: '▸'; }
.photo-picker details[open]>summary::before,.photo-add[open]>summary::before,.photo-history[open]>summary::before { content: '▾'; }
.photo-picker summary::-webkit-details-marker,.photo-add>summary::-webkit-details-marker,.photo-history>summary::-webkit-details-marker { display: none; }
.photo-picker details { margin-top: 12px; }
.photo-picker [role=status],.photo-picker [role=alert] { margin-top: 16px; }
.photo-thumb { overflow: hidden; padding: 0; flex-shrink: 0; }
.photo-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; background: #e7f0f5; }
.photo-unavailable { font-size: 10px; color: #586a77; }
.photo-open { padding: 0; background: #e7f0f5; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; min-width: 0; }
.photo-open:focus-visible { outline: 3px solid #007da8; outline-offset: 3px; }
.photo-dialog { max-width: min(900px,94vw); width: 100%; max-height: 90dvh; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.photo-dialog::backdrop { background: #10232dcc; }
.photo-dialog>.between { margin-bottom: 16px; gap: 12px; }
.photo-dialog>img { width: 100%; max-height: 72dvh; object-fit: contain; display: block; }
.photo-history-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.photo-history small { display: block; font-size: 12px; margin-top: 8px; color: #586a77; }
.photo-add-form { padding-top: 16px; }
@media(max-width:720px) { .photo-picker { padding: 12px; } .photo-previews,.photo-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; } .photo-choices .photo-choice { flex: 1; } .photo-choice { font-size: 14px; } .photo-dialog { width: calc(100vw - 24px); } }
