.modal.photo-links-modal { width: min(100%, 780px); padding: 33px 33px 23px; }
.photo-links-heading { margin-bottom: 23px; }
.photo-links-heading h2 { font-size: 31px; margin: 11px 0 9px; }
.photo-links-heading p { margin: 0; color: #96968b; font-size: 11px; line-height: 1.65; }
.photo-links-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.photo-links-toolbar .button { min-height: 43px; font-size: 11px; }
.photo-links-toolbar .text-button { min-height: 36px; font-size: 10px; color: #858579; }
.photo-links-toolbar .icon { width: 16px; height: 16px; flex-shrink: 0; }
.photo-links-summary { color: #99998d; font-size: 10px; min-height: 14px; margin: 21px 0 9px; }
.photo-links-list { border-top: 1px solid var(--line, #e4e4db); }
.photo-link-row { display: grid; grid-template-columns: 57px minmax(0, 1fr) 80px; align-items: center; gap: 14px; border-bottom: 1px solid var(--line, #e4e4db); padding: 16px 0; }
.photo-link-thumbnail { width: 57px; height: 57px; background: #eeeee7; border-radius: 9px; overflow: hidden; display: grid; place-items: center; color: #939386; }
.photo-link-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-link-thumbnail > .icon { width: 24px; height: 24px; }
.photo-link-content { min-width: 0; }
.photo-link-content h3 { margin: 0 0 6px; font-size: 12px; font-weight: 500; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-link-content input { display: block; width: 100%; min-width: 0; min-height: 26px; padding: 0; border: 0; background: transparent; font-size: 10px; color: #8c8c7e; text-overflow: ellipsis; user-select: text; }
.photo-link-content input::placeholder { color: #a4a499; }
.photo-link-content input:focus { outline-offset: 4px; }
.photo-link-actions { display: flex; align-items: center; justify-content: end; gap: 3px; }
.photo-link-actions .icon-button { width: 38px; height: 40px; min-width: 38px; color: #87877a; }
.photo-link-actions .icon-button .icon { width: 17px; height: 17px; }
.photo-link-actions [data-photo-remove]:hover { color: #a45c4c; background: #f7eeea; }
.photo-link-actions button:disabled { opacity: .28; cursor: default; }
.photo-link-message { color: #929284; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.photo-link-message:empty { display: none; }
.photo-link-message.has-error { color: #a45645; margin-top: 4px; }
.photo-link-retry { font-size: 10px; min-height: 32px; margin-top: 3px; }
.photo-link-retry .icon { width: 13px; height: 13px; }
.photo-common-description { margin-top: 19px; padding: 16px; border: 1px solid #e6e6dc; border-radius: 10px; background: #f7f7f1; }
.photo-common-description label { display: block; font-size: 11px; color: #747467; margin-bottom: 9px; }
.photo-common-description textarea { display: block; width: 100%; min-height: 85px; border: 1px solid #e1e1d6; border-radius: 7px; background: #fff; padding: 11px; resize: vertical; font: inherit; font-size: 12px; line-height: 1.6; }
.photo-common-description textarea::placeholder { color: #aaa99d; }
.photo-common-description p { font-size: 10px; line-height: 1.6; color: #a1a192; margin: 9px 0 0; }
.photo-links-footnote { font-size: 10px; color: #a1a192; margin: 18px 0 0; line-height: 1.6; }
.photo-links-empty { padding: 30px 12px; text-align: center; color: #939386; font-size: 12px; }
@media (max-width: 640px) {
  .modal.photo-links-modal { padding: 28px 20px 21px; }
  .photo-links-heading { margin-bottom: 18px; }
  .photo-links-heading h2 { font-size: 29px; }
  .photo-links-heading p { font-size: 10px; }
  .photo-links-toolbar { align-items: stretch; gap: 6px; }
  .photo-links-toolbar .button { width: 100%; min-height: 45px; }
  .photo-links-toolbar .text-button { margin-left: auto; font-size: 10px; min-height: 35px; }
  .photo-links-summary { margin-top: 12px; }
  .photo-link-row { grid-template-columns: 46px minmax(0, 1fr) 44px; gap: 11px; padding: 13px 0; }
  .photo-link-thumbnail { width: 46px; height: 52px; border-radius: 7px; }
  .photo-link-content h3 { font-size: 11px; }
  .photo-link-content input { font-size: 9px; min-height: 30px; }
  .photo-link-actions { flex-direction: column; gap: 0; }
  .photo-link-actions .icon-button { width: 42px; height: 36px; min-width: 42px; }
  .photo-link-actions .icon-button .icon { width: 16px; height: 16px; }
  .photo-common-description { padding: 12px; }
}
@media (max-width: 350px) {
  .modal.photo-links-modal { padding-left: 16px; padding-right: 16px; }
  .photo-link-row { grid-template-columns: 40px minmax(0, 1fr) 38px; gap: 8px; }
  .photo-link-thumbnail { width: 40px; height: 48px; }
  .photo-link-actions .icon-button { width: 38px; min-width: 38px; }
}
