.emoji-selector {
  display: none;
  flex-direction: column;
  position: relative;
  background: #222;
  border: 1px solid #444;
  border-radius: 4px;
  margin-bottom: 4px;
}
.emoji-selector-overflow {
  overflow-y: auto;
  max-height: 160px;
}
.emoji-selector-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 4px;
  gap: 2px;
}
.emoji-selector-list li button {
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  border-radius: 3px;
}
.emoji-selector-list li button:hover {
  background: #444;
}




.panel {
  display: flex;
  align-items: center;
  gap: 8px; /* space between input and buttons */
}

.panel form {
  flex-grow: 1; /* let input fill available width */
}

.panel .text {
  width: 100%; /* fill form width */
  box-sizing: border-box; /* include padding in width */
}

.cformctrl {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Optional: style buttons to look consistent */
.cformctrl button {
  background: #333;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  color: white;
  border-radius: 4px;
}
