.container {
  padding: 12px;
}

.header {
  padding: 16px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
}

.userCount {
  font-size: 14px;
  color: #007aff;
  font-weight: 600;
  background: rgba(0, 122, 255, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
}

.searchWrapper {
  margin-bottom: 12px;

  :global(.adm-search-bar) {
    --background: #f5f5f5;
    --border-radius: 12px;
    --height: 44px;
    --padding-left: 12px;
  }
}

.loadingContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  gap: 12px;
  color: #8e8e93;
  font-size: 14px;
}

.batchBar {
  padding: 12px 16px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid #f3f4f6;
}

.userList {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.userItem {
  display: flex;
  align-items: flex-start;
  padding: 16px;
  gap: 12px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #f3f4f6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;

  &:active {
    background: #f9fafb;
    transform: scale(0.98);
  }
}

.avatar {
  --size: 48px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.userInfo {
  flex: 1;
  min-width: 0;
}

.nameRow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.userName {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
}

.metaRow {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
  margin-bottom: 6px;
}

.tagsRow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tagItem {
  font-size: 11px;
  padding: 2px 8px;
  background: #f0f7ff;
  color: #007aff;
  border-radius: 4px;
  font-weight: 500;
}

.tagMore {
  font-size: 11px;
  padding: 2px 8px;
  background: #f5f5f5;
  color: #8e8e93;
  border-radius: 4px;
  font-weight: 500;
}

.removeBtn {
  color: #d1d5db;
  padding: 8px;
  --font-size: 22px;
  transition: color 0.2s;
  flex-shrink: 0;

  &:active {
    color: #ef4444;
  }
}

.loadingMore {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
  color: #8e8e93;
  font-size: 14px;
}
