.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  z-index: 2000; /* Increased z-index */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeIn 0.2s forwards;
}

.modal-content {
  width: 90%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  opacity: 0;
  transform: scale(0.95);
  animation: popIn 0.2s 0.1s forwards;
  background: var(--bg0); /* Solid background instead of transparent */
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  border: 1px solid rgba(0,0,0,0.1);
}

@keyframes fadeIn { to { opacity: 1; } }
@keyframes popIn { to { opacity: 1; transform: scale(1); } }

.color-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.1s;
}
.color-swatch:hover { transform: scale(1.1); }
.color-swatch.selected { border-color: var(--fg); }

.member-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.member-list-item:last-child { border-bottom: none; }

