/* Shared dialog headers: titles stay left and close controls stay top-right. */
.modal-title,
.workflow-notice-heading,
.screen-dialog-head,
.transaction-candidate-head { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal-title { margin-bottom: 22px; }
.modal-title > div:first-child,
.transaction-candidate-head > div:first-child { flex: 1 1 auto; min-width: 0; }
.modal-title h2 { margin: 0; font-size: 21px; line-height: 1.45; overflow-wrap: anywhere; }
.modal-title > .close,
.workflow-notice-heading > .workflow-notice-close,
.transaction-candidate-head > .transaction-candidate-close { flex: 0 0 36px; align-self: flex-start; display: inline-grid; place-items: center; width: 36px; height: 36px; margin: 0 0 0 auto; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #656a72; font: inherit; font-size: 26px; line-height: 1; cursor: pointer; }
.modal-title > .close:hover,
.workflow-notice-close:hover,
.transaction-candidate-close:hover { background: #eef1f5; color: #2445d6; }
.screen-dialog-head > button { margin-left: auto; align-self: flex-start; flex-shrink: 0; }
.photo-modal-close { position: absolute; top: 10px; right: 12px; left: auto; }
#propertyForm .modal-title > div:first-child { display: grid; grid-template-columns: minmax(0, max-content) max-content; align-items: center; justify-content: start; gap: 8px 12px; }
#propertyForm .modal-title .eyebrow { grid-column: 1 / -1; margin: 0; }
#propertyForm .property-input-guide-button { margin: 0; padding: 6px 10px; min-height: 32px; white-space: nowrap; }
@media (max-width: 560px) {
  .modal-title, .workflow-notice-heading, .screen-dialog-head, .transaction-candidate-head { gap: 10px; }
  .modal-title > .close, .workflow-notice-heading > .workflow-notice-close, .transaction-candidate-head > .transaction-candidate-close { flex-basis: 40px; width: 40px; height: 40px; }
  #propertyForm .modal-title > div:first-child { gap: 6px 8px; }
  #propertyForm .property-input-guide-button { font-size: 12px; padding: 6px 8px; }
}
