/* Popup chrome follows the compact release details. Content and positioning belong to each view. */
@layer creates-popups {
 :is(dialog:not(:where(.creates-motion-drawer,.creates-artist-dialog)),
     .creates-catalog-details,.creates-popup-panel,.creates-info-panel,.creates-status-info-popup,.dmdp-revenue-popup,
     .creates-directory-action-popup,.lab-mobile-badge-tooltip,.ctmh-feature-dialog,.cpg-card,
     :where(body.creates-admin-workspace #dmd-design-lab :is(.dmdp-bulk-cards,.dmdp-bulk:not(.dmdp-bulk-cards > *)),
            body.creates-admin-workspace #ctm-design-lab .ctma-admin-bulk,
            #ctm-user-design > .ctmu-bulk,#ctm-publisher-design > .ctmh-bulk)) {
  box-sizing:border-box;
  border:1px solid var(--creates-popup-surface-border,var(--creates-popup-border))!important;
  border-radius:var(--creates-popup-radius)!important;
  background:var(--creates-popup-surface)!important;
  color:var(--creates-popup-surface-ink,var(--creates-popup-ink))!important;
  box-shadow:var(--creates-popup-shadow)!important;
  -webkit-backdrop-filter:var(--creates-popup-filter)!important;
  backdrop-filter:var(--creates-popup-filter)!important;
  font-family:var(--creates-badge-font,var(--creates-ui-font));
 }
 dialog:not(:where(.creates-motion-drawer,.creates-artist-dialog,.creates-profile-popup))::backdrop {
  background:var(--creates-popup-scrim)!important;
 }
 :is(dialog:not(:where(.creates-motion-drawer,.creates-artist-dialog)),
     .creates-popup-panel,.creates-info-panel,.ctmh-feature-dialog,.cpg-card) {
  max-inline-size:calc(100vw - 24px);
  max-block-size:calc(100dvh - 24px);
  font-size:var(--creates-popup-text-size)!important;
  line-height:1.45!important;
 }
 :is(.creates-popup-panel,.creates-info-panel,.creates-csv-dialog,.creates-unsaved-confirm,.sl-artist-dialog) {
  padding:var(--creates-section-gap)!important;
 }
 :is(.creates-info-panel,.creates-csv-dialog,.creates-unsaved-confirm,.cym,.creates-fuga-dialog,
     .dmdp-mobile-review-dialog,.creates-status-info-popup,.dmdp-revenue-popup) :is(h2,h3):where(:first-child),
 dialog:not(:where(.creates-motion-drawer,.creates-artist-dialog)) > header :is(h2,h3):first-child,
 .sl-artist-dialog .sl-profile-identity>h2,
 .creates-popup-panel .creates-popup-heading,
 :is(.creates-compact-popup,.creates-release-compact-popup) .creates-compact-identity>strong {
  font-family:var(--creates-badge-font,var(--creates-ui-font))!important;
  font-size:var(--creates-popup-title-size)!important;
  font-weight:650!important;
  line-height:1.35!important;
  color:var(--creates-popup-ink)!important;
 }
 :is(.creates-profile-popup-header,.creates-csv-dialog>header,.cym-head,.creates-fuga-dialog-head,
     .creates-status-popup-header,.dmdp-revenue-popup-header,.dmdp-mobile-review-dialog>header) {
  gap:12px;
  border-color:var(--creates-popup-divider)!important;
 }
 :is(.creates-catalog-details-close,.creates-compact-close) {
  --creates-popup-close-bg:transparent;
  --creates-popup-close-ring:none;
 }
 :is(.creates-catalog-details-close,.creates-compact-close,.creates-status-info-popup [data-close],
     .dmdp-revenue-popup-header>button,.creates-csv-dialog [data-csv-close],.sl-profile-head [data-artist-close],
     :is(dialog:not(:where(.creates-motion-drawer,.creates-artist-dialog)),
         .creates-popup-panel,.creates-info-panel,.ctmh-feature-dialog,.cpg-card) .creates-global-drawer-close) {
  box-sizing:border-box!important;
  display:grid!important;
  place-items:center!important;
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  min-height:44px!important;
  max-width:44px!important;
  flex:0 0 44px!important;
  align-self:start;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:var(--creates-button-radius)!important;
  background:var(--creates-popup-close-bg,var(--creates-toolbar-bg))!important;
  box-shadow:var(--creates-popup-close-ring,var(--creates-toolbar-ring))!important;
  color:var(--creates-popup-ink)!important;
  cursor:pointer;
 }
 :is(.creates-catalog-details-close,.creates-compact-close,.creates-status-info-popup [data-close],
     .dmdp-revenue-popup-header>button,.creates-csv-dialog [data-csv-close],.sl-profile-head [data-artist-close],
     :is(dialog:not(:where(.creates-motion-drawer,.creates-artist-dialog)),
         .creates-popup-panel,.creates-info-panel,.ctmh-feature-dialog,.cpg-card) .creates-global-drawer-close)>svg {
  width:22px!important;
  height:22px!important;
 }
 :is(.creates-catalog-details-close,.creates-compact-close,.creates-status-info-popup [data-close],
     .dmdp-revenue-popup-header>button,.creates-csv-dialog [data-csv-close],.sl-profile-head [data-artist-close],
     :is(dialog:not(:where(.creates-motion-drawer,.creates-artist-dialog)),
         .creates-popup-panel,.creates-info-panel,.ctmh-feature-dialog,.cpg-card) .creates-global-drawer-close):focus-visible {
  outline:var(--creates-focus-width) solid var(--creates-focus-ring)!important;
  outline-offset:var(--creates-focus-offset)!important;
 }
 :is(.creates-csv-dialog [data-csv-submit],.cym button:is(.cym-primary,.cym-danger),
     .creates-info-panel .creates-info-ack,.creates-popup-panel [data-creates-popup-primary]) {
  min-height:var(--creates-button-height)!important;
  padding:var(--creates-button-padding)!important;
  border:1px solid transparent!important;
  border-radius:var(--creates-button-radius)!important;
  background:var(--creates-interaction-fill)!important;
  color:var(--creates-interaction-ink)!important;
  font:var(--creates-button-weight) var(--creates-button-font-size)/var(--creates-button-line-height) var(--creates-badge-font,var(--creates-ui-font))!important;
  cursor:pointer;
 }
 .cym button.cym-danger {
  background:var(--creates-action-red)!important;
  color:#fff!important;
 }
 :is(.creates-csv-dialog [data-csv-submit],.cym button:is(.cym-primary,.cym-danger),
     .creates-info-panel .creates-info-ack,.creates-popup-panel [data-creates-popup-primary]):disabled {
  opacity:.55;
  cursor:not-allowed;
 }
 @media (hover:hover) {
  :is(.creates-csv-dialog [data-csv-submit],.cym button.cym-primary,.creates-info-panel .creates-info-ack,.creates-popup-panel [data-creates-popup-primary]):hover:not(:disabled) {
   background:var(--creates-interaction-fill-hover)!important;
  }
  .cym button.cym-danger:hover:not(:disabled) {
   background:var(--creates-action-red-hover)!important;
  }
 }
}
