/* Only the dedicated native background panel; public visuals are untouched. */
#az-editor-modal.us-page-background-panel .us-page-background-status {
  margin: 0 0 1.15rem;
  padding: .8rem 1rem;
  border-inline-start: 3px solid #587d64;
  background: #edf3ed;
  color: #203d36;
  line-height: 1.5;
}
#az-editor-modal.us-page-background-panel .us-page-background-details {
  margin-block: .85rem;
  padding: .75rem;
  border: 1px solid #ccd7cb;
  border-radius: .35rem;
}
#az-editor-modal.us-page-background-panel .us-page-background-details > summary {
  cursor: pointer;
  font-weight: 600;
  line-height: 1.5;
}
#az-editor-modal.us-page-background-panel .us-page-background-details[open] > summary { margin-bottom: 1rem; }
#az-editor-modal.us-page-background-panel .us-page-background-details[hidden] { display: none !important; }
#az-editor-modal.us-page-background-panel .us-page-background-framing { margin-block: 1rem; }
#az-editor-modal.us-page-background-panel .us-page-background-framing label { display: block; margin-bottom: .4rem; }
#az-editor-modal.us-page-background-panel .us-page-background-framing select { width: 100%; max-width: 100%; }
#az-editor-modal.us-page-background-panel .us-page-background-help { margin-top: 1rem; color: #4a5e50; font-size: .9em; line-height: 1.5; }
#az-editor-modal.us-page-background-panel summary:focus-visible { outline: 2px solid #274bc5; outline-offset: 3px; }

/* Image controls keep their native DOM parents and handlers. The disclosure
 * controls the adjacent fields visually and through aria-controls. */
#az-editor-modal.us-page-background-panel .ac-select-image__content-container:has(> .us-page-image-advanced:not([open])) > .us-page-image-advanced-field {
  display: none !important;
}
#az-editor-modal.us-page-background-panel .us-page-image-advanced[open] { margin-bottom: .4rem; }
#az-editor-modal.us-page-background-panel .modal-header .modal-title { display: none; }
