/* Close icons never become scroll containers, including focus/pressed states. */
:root body button[data-close-icon="true"] {
 display:inline-flex;align-items:center;justify-content:center;
 box-sizing:border-box!important;overflow:hidden!important;overflow:clip!important;
 scrollbar-width:none!important;scrollbar-gutter:auto!important;
 white-space:nowrap!important;line-height:1!important;text-indent:0!important;
}
:root body button[data-close-icon="true"]::-webkit-scrollbar,
:root body button[data-close-icon="true"]::-webkit-scrollbar-button {
 display:none!important;width:0!important;height:0!important;
}
:root body button[data-close-icon="true"] > svg {
 display:block!important;flex:0 0 14px!important;
 width:14px!important;height:14px!important;min-width:14px!important;min-height:14px!important;
 max-width:14px!important;max-height:14px!important;margin:0!important;padding:0!important;
 overflow:visible;pointer-events:none;
}
:root body button[data-close-icon="true"][hidden] {display:none!important;}

/* Close-only wrappers must not inherit horizontal action-row scrolling. */
:root body .dialog-header-actions,
:root body [data-close-icon-container="true"] {
 display:flex;align-items:center;justify-content:flex-end;
 flex:0 0 auto;min-width:max-content;max-width:none;
 overflow:visible!important;scrollbar-width:none!important;
}
:root body .dialog-header-actions::-webkit-scrollbar,
:root body [data-close-icon-container="true"]::-webkit-scrollbar {display:none;width:0;height:0;}
/* Also applies before dynamic buttons have been normalized by JavaScript. */
:root body button:is(.app-close-x,[data-close-icon="true"],[data-close-menu]) {
 flex-shrink:0!important;overflow:hidden!important;scrollbar-width:none!important;
 padding:0!important;
}
:root body button:is(.app-close-x,[data-close-icon="true"],[data-close-menu]):focus-visible {
 outline-offset:-3px!important;
}
