.pe-action-definitions-settings-overview-page {
    display: contents;
}

/* 1. Reduce the vertical padding of the title bar */
body:has(.pe-action-definitions-settings-overview-page) .rz-dialog-titlebar {
padding: 0.5rem 1rem !important; /* Half the height of standard */
align-items: center;
height: auto !important;
min-height: 40px !important; /* Standard "button" height */
}

/* 2. Shrink the title font size and center it vertically */
body:has(.pe-action-definitions-settings-overview-page) .rz-dialog-title {
font-size: 0.9rem !important;
line-height: 1.2 !important;
color: #ECEFF1 !important; /* Ensure it stays visible against black */
}

/* 3. Scale down the close button (the X icon) */
body:has(.pe-action-definitions-settings-overview-page) .rz-dialog-titlebar-close {
font-size: 1rem !important;
padding: 0 !important;
display: flex !important;
align-items: center !important;
color: #ECEFF1 !important;
}

/* 4. Optional: Reduce the top padding of the content inside the dialog */
body:has(.pe-action-definitions-settings-overview-page) .rz-dialog-content {
padding-top: 1rem !important;
background-color: var(--ps-bg) !important; /* Matches your dark background */
color: #ffffff !important;
}
