.roles-panel{overflow:hidden}.roles-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 22px;border-bottom:1px solid var(--border,#dfe2e6)}.roles-toolbar h2{margin:0 0 4px;font-size:calc(19px * var(--ui-type-scale, 1))}.roles-toolbar p{margin:0}.roles-layout{display:block;min-height:420px}.roles-list{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:12px 20px;background:#f7f7f8;border-bottom:1px solid #e2e4e8}.roles-list button{display:flex;flex:0 0 auto;width:auto;max-width:100%;text-align:left;justify-content:space-between;gap:12px;align-items:center;border:0;background:transparent;color:inherit;border-radius:6px;padding:10px 14px;font-size:calc(14px * var(--ui-type-scale, 1))}.roles-list button span{min-width:0;overflow-wrap:anywhere}.roles-list button.active{background:#fbeaed;color:#bd242a;font-weight:700}.roles-list small{font-size:calc(11px * var(--ui-type-scale, 1));white-space:nowrap;color:#79818a}.roles-admin{flex:0 0 auto;display:flex;gap:12px;align-items:center;padding:10px 14px;border-right:1px solid #ddd;margin-right:6px;font-size:calc(14px * var(--ui-type-scale, 1))}.roles-editor{padding:20px;min-width:0}.roles-editor-bar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:18px}.roles-tabs{margin:0!important;gap:8px!important}.roles-tabs button{padding:9px 14px!important}.roles-permissions{display:grid;grid-template-columns:128px minmax(0,1fr);border:1px solid #e2e4e8;border-radius:8px;overflow:hidden;min-height:290px}.roles-modules{background:#fafafb;border-right:1px solid #e2e4e8;padding:7px}.roles-modules button{display:flex;align-items:center;justify-content:space-between;width:100%;padding:8px 9px;border:0;border-radius:4px;background:none;text-align:left;font-size:calc(13px * var(--ui-type-scale, 1))}.roles-modules button.active{color:#be242b;font-weight:700;background:#fbeaed}.roles-modules small{font-size:calc(10px * var(--ui-type-scale, 1));color:#89909a}.roles-checks{padding:16px 20px}.roles-checks h3{font-size:calc(15px * var(--ui-type-scale, 1));margin:0 0 8px;padding-bottom:12px;border-bottom:1px solid #e2e4e8}.roles-permission{display:block;padding:12px 0;border-bottom:1px solid #eef0f2}
.roles-permission:last-child{border:0}
.roles-permission-title{display:flex;align-items:flex-start;gap:10px;font-size:calc(14px * var(--ui-type-scale, 1));line-height:1.5}
.roles-permission input{flex:0 0 17px;width:17px;height:17px;min-height:17px;margin:2px 0 0;padding:0;accent-color:#c6262b}
.roles-permission-info{display:block;padding-left:27px}
.roles-permission-description{display:block;margin-top:5px;color:#7c8490;font-size:calc(12px * var(--ui-type-scale, 1));line-height:1.6;overflow-wrap:anywhere}
.roles-permission-dependencies{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 10px;margin-top:7px}
.roles-requirement-label{color:#7c8490;font-size:calc(12px * var(--ui-type-scale, 1));line-height:1.6}
.roles-requirement-tags{display:flex;flex-wrap:wrap;gap:5px}
.roles-requirement{padding:2px 8px;border-radius:4px;background:#f3f4f6;color:#626b76;font-size:calc(12px * var(--ui-type-scale, 1));line-height:1.6;overflow-wrap:anywhere}
.roles-dependency-missing .roles-requirement-label{color:#ad5418}
.roles-requirement-missing{background:#fff3e4;color:#ad5418}
.roles-context-requirements .roles-requirement{background:#eef3f7;color:#526879}
.roles-access>.field{max-width:400px}.roles-channel-list{border:1px solid #e2e4e8;border-radius:7px;padding:16px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.roles-channel-list legend{font-size:calc(14px * var(--ui-type-scale, 1));font-weight:600;padding:0 8px}.roles-own-exception,.roles-channel-list>p{grid-column:1/-1}.roles-own-exception{border-top:1px solid #eee;padding-top:14px}.roles-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid #e2e4e8;padding:15px 22px}.roles-feedback:not(:empty){padding:0 22px 16px}.roles-feedback p{margin:0}.roles-members h3{font-size:calc(16px * var(--ui-type-scale, 1));margin:0 0 10px}.roles-members td{font-size:calc(13px * var(--ui-type-scale, 1))}.roles-members .link-btn{font-size:calc(12px * var(--ui-type-scale, 1))}.roles-footer .danger{color:#b72b2b}.roles-access .notice{margin-top:18px}@media(max-width:900px){.roles-permissions{grid-template-columns:1fr}.roles-modules{display:flex;flex-wrap:wrap;border-right:0;border-bottom:1px solid #e2e4e8}.roles-modules button{width:auto;gap:12px}.roles-editor{padding:15px}.roles-toolbar{align-items:flex-start;flex-wrap:wrap}}@media(max-width:600px){.roles-list{padding:10px 12px;gap:4px}.roles-list button,.roles-admin{padding:9px 10px}.roles-tabs{flex-wrap:wrap}.roles-channel-list{grid-template-columns:1fr}.roles-footer{align-items:flex-start;flex-wrap:wrap}.roles-footer .actions{flex-wrap:wrap}.roles-checks{padding:14px}.roles-toolbar{padding:16px}.roles-toolbar .actions{width:100%}}
.roles-channel-list .checkbox{align-items:flex-start;gap:10px}.roles-channel-list .checkbox input{flex:0 0 15px;margin-top:2px}.roles-channel-list .checkbox>span{min-width:0;overflow-wrap:anywhere}

.roles-channel-list>.roles-channel-note{margin:0}
.roles-own-exception>.checkbox{margin:0;align-items:flex-start;gap:10px}
.roles-own-exception>.checkbox input{flex:0 0 15px;margin:2px 0 0}
.roles-own-exception>.config-note{margin:6px 0 0;padding-left:25px}
#document-channel-options>.roles-channel-note{margin:10px 0 0}
.roles-operation-group{margin-top:18px}
.roles-operation-group>h4,.roles-group-title h4{margin:0;color:var(--ink,#282d32);font-size:calc(14px * var(--ui-type-scale, 1));line-height:1.5}
.roles-group-help{margin:5px 0 10px;color:#7c8490;font-size:calc(12px * var(--ui-type-scale, 1));line-height:1.6}
.roles-other-permissions{margin-top:22px;border:1px solid #dce4ec;border-radius:8px;background:#f6f8fb;padding:16px 18px 4px}
.roles-group-title{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.roles-additional-badge{padding:2px 7px;border-radius:4px;background:#e8eef5;color:#526879;font-size:calc(11px * var(--ui-type-scale, 1));line-height:1.6}
.roles-other-permissions>.roles-legacy-confirm{margin:12px 0}
@media(max-width:600px){.roles-other-permissions{padding:12px 12px 2px}}

.roles-checks-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 16px;margin:0 0 8px;padding-bottom:12px;border-bottom:1px solid #e2e4e8}
.roles-checks-heading h3{margin:0;padding:0;border:0;min-width:0;overflow-wrap:anywhere}
.roles-checks-heading .actions{gap:8px}
.roles-checks-heading .link-btn{min-height:36px;padding:4px 8px;white-space:nowrap}
@media(max-width:600px){.roles-checks-heading .link-btn{min-height:44px}}
