/* Permission editor sizing follows its dialog, including zoomed desktop views. */
.modal .custom-access-panel{min-width:0;max-width:100%;box-sizing:border-box;container-type:inline-size}
.modal .custom-access-panel .role-profile-presets{grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr));min-width:0}
.modal .custom-access-panel .role-profile-presets>div{grid-column:1/-1}
.modal .custom-access-panel .role-profile-presets>*{min-width:0;overflow-wrap:anywhere}
.modal .custom-access-panel .custom-access-head{flex-wrap:wrap}
.modal .custom-access-panel .permission-bulk-actions{display:flex;flex-wrap:wrap;gap:6px}
.modal .custom-access-panel .permission-section-list,.modal .custom-access-panel .permission-section,.modal .custom-access-panel .permission-matrix{min-width:0;max-width:100%}
.modal .custom-access-panel .permission-matrix-row,.modal .custom-access-panel .permission-matrix-head,.modal .custom-access-panel .permission-sticky-guide{min-width:0;grid-template-columns:minmax(0,1.7fr) repeat(4,minmax(0,.7fr))}
.modal .custom-access-panel .permission-matrix-row>label{min-width:0;box-sizing:border-box}
.modal .custom-access-panel .permission-main-toggle>span{min-width:0;overflow-wrap:anywhere}
.modal .custom-access-panel .permission-sticky-guide span{min-width:0;letter-spacing:0;padding-inline:2px}
@container(max-width:440px){
 .modal .custom-access-panel .permission-matrix-row,.modal .custom-access-panel .permission-sticky-guide{grid-template-columns:repeat(4,minmax(0,1fr))}
 .modal .custom-access-panel .permission-matrix-row>.permission-main-toggle,.modal .custom-access-panel .permission-sticky-guide>b{grid-column:1/-1}
 .modal .custom-access-panel .permission-matrix-row>label:not(.permission-main-toggle){flex-wrap:wrap;gap:3px}
 .modal .custom-access-panel .permission-matrix-row>label:not(.permission-main-toggle)>span{display:inline;font-size:9px}
 .modal .custom-access-panel .permission-section>header{flex-wrap:wrap;gap:5px}
}
