.photo-modal { max-width: 850px; }
.photo-modal [hidden] { display: none !important; }
.photo-modal h2, .photo-modal h3, .photo-modal p { margin: 0; }
.photo-modal .modal-header { margin-bottom: 20px; }
#photo-composer { display: flex; align-items: center; gap: 15px; padding: 19px; border: 1px dashed #ab925f; border-radius: 12px; background: #fbf8f0; }
#photo-composer:focus-visible, #photo-composer.is-over { outline: 2px solid #8a6424; outline-offset: 2px; }
#photo-composer.is-over { background: var(--goldsoft); }
#photo-composer strong { font-size: 16px; }
#photo-composer p, .photo-caption, #photo-empty, .photo-image small, .photo-draft small { color: var(--muted); font-size: 13px; line-height: 1.5; }
#photo-composer p { margin: 5px 0 0; }
#photo-composer kbd { font: inherit; font-weight: 650; }
#photo-choose { margin-left: auto; white-space: nowrap; background: white; }
.photo-symbol { width: 28px; height: 28px; flex: none; color: #866323; }
.photo-modal .photo-caption { margin: 8px 0 0; }
.photo-modal .photo-error { margin-top: 12px; color: #923c26; }
.photo-image { margin-top: 14px; }
.photo-image-head { display: flex; align-items: center; gap: 12px; }
.photo-image img { height: 54px; width: 72px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; background: #fafaf7; }
.photo-image-head div { min-width: 0; flex: 1; }
.photo-image-head strong, .photo-image-head small, .photo-draft summary small { display: block; overflow-wrap: anywhere; }
.photo-image-head strong { font-size: 14px; }
.photo-image details { margin-top: 6px; }
.photo-image summary, .photo-extra>summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.photo-image pre { white-space: pre-wrap; max-height: 145px; overflow: auto; background: var(--bg); padding: 10px; }
.photo-draft-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); margin: 24px 0 10px; padding-top: 16px; }
.photo-draft-head h3 { font-size: 19px; }
.photo-draft-head { flex-wrap: wrap; }
#photo-batch-status:not(:empty) { margin: 6px 0 12px; color: var(--ink); font-size: 14px; }
.photo-draft.has-error>summary small { color: #923c26; }
.photo-draft { border-bottom: 1px solid var(--line); }
.photo-draft>summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 2px; }
.photo-draft>summary::-webkit-details-marker { display: none; }
.photo-draft>summary strong { font-size: 15px; overflow-wrap: anywhere; }
.photo-toggle { font-weight: bold; padding: 4px; }
.photo-draft[open] .photo-toggle { transform: rotate(180deg); }
.photo-draft form { margin: 0 0 16px; }
.photo-draft label { display: grid; gap: 4px; min-width: 0; color: var(--ink); font-size: 13px; font-weight: 650; }
.photo-draft input { width: 100%; min-width: 0; padding: 8px 10px; background: #fff; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); font: inherit; }
.photo-draft .two-fields { margin: 0 0 10px; }
.photo-extra { margin: 6px 0 14px; }
.photo-extra[open]>summary { margin-bottom: 10px; }
.photo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-status:not(:empty) { margin-top: 8px; color: #923c26; }
.photo-draft.is-saved summary small { color: var(--green); }
@media(max-width:600px) {
  #photo-composer { flex-wrap: wrap; gap: 10px; padding: 15px; }
  #photo-choose { margin-left: 0; }
  .photo-symbol { width: 22px; }
  .photo-modal h2 { font-size: 21px; }
}
