/* Drop 7d: role hierarchy + editor */
.role-item.grab { cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.role-item.on { background: var(--d-hover); color: #fff; }
.rtabs { display: flex; gap: 20px; border-bottom: 1px solid #3f4147; margin: 8px 0 16px; flex-wrap: wrap; }
.rtab { background: none; border: 0; color: #b5bac1; padding: 8px 0; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; }
.rtab:hover { color: #fff; }
.rtab.on { color: #fff; border-bottom-color: var(--c-accent); }
.role-preview { display: flex; gap: 12px; align-items: center; background: var(--c-side); border-radius: 8px; padding: 14px; margin-bottom: 14px; }
.role-preview small { color: #949ba4; font-weight: 400; }
.role-preview .ptext { color: #dbdee1; }
.color-custom { width: 52px; height: 36px; border: 2px dashed #5c5f66; border-radius: 6px; background: none; padding: 0; cursor: pointer; }
.unsaved { display: none; position: sticky; bottom: 12px; margin-top: 20px; align-items: center; gap: 10px; background: #111214; border-radius: 8px; padding: 10px 14px; box-shadow: 0 4px 16px rgba(0, 0, 0, .5); }
.unsaved.show { display: flex; }
.unsaved span { flex: 1; font-weight: 600; }
@media (max-width: 700px) {
  .roles-wrap { flex-direction: column; }
  .roles-side { width: 100%; }
}
