.role-category-guide ol { padding-left: 1.4rem; display: grid; gap: .6rem; line-height: 1.6; }
.role-category-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); gap: 20px; margin: 20px 0; align-items: start; }
.role-category-form { min-width: 0; display: grid; gap: 18px; }
.role-category-form > legend { font-size: 1.1rem; font-weight: 700; padding: 0 8px; }
.role-category-field { display: grid; gap: 8px; }
.role-category-toggle { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; line-height: 1.5; }
.role-category-toggle input { width: auto; flex: 0 0 auto; margin-top: 4px; }
.role-category-groups { display: grid; gap: 16px; }
.role-category-group { min-width: 0; display: grid; gap: 16px; padding: 16px; border: 1px solid var(--border, #303640); border-radius: 12px; }
.role-category-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.role-category-group-heading h3 { margin: 0; }
.role-category-group-heading .button { font-size: .85rem; }
.role-category-member-roles { min-width: 0; border: 0; padding: 0; display: grid; gap: 10px; }
.role-category-member-roles legend { padding-bottom: 8px; }
.role-category-role-list { display: grid; gap: 10px; max-height: 225px; overflow-y: auto; padding: 8px; border: 1px solid var(--border, #303640); border-radius: 8px; }
.role-category-role-list [hidden] { display: none; }
.role-category-preview { position: sticky; top: 20px; display: grid; gap: 16px; min-width: 0; }
.role-category-preview-groups { display: grid; gap: 12px; max-height: 420px; overflow-y: auto; }
.role-category-preview-group { display: grid; gap: 6px; padding: 12px; border-left: 3px solid var(--accent, #bd965a); background: rgb(255 255 255 / 3%); border-radius: 4px 8px 8px 4px; overflow-wrap: anywhere; }
.role-category-issues { margin: 0; padding-left: 18px; color: var(--danger, #f2a3a3); }
.role-category-issue { padding: 3px 0; border: 0; color: inherit; background: none; text-align: left; text-decoration: underline; cursor: pointer; font: inherit; }
.role-category-status { display: grid; gap: 10px; }
@media (max-width: 900px) { .role-category-layout { grid-template-columns: minmax(0, 1fr); } .role-category-preview { position: static; } }
