/* Channel UI only. No selectors for contact/group panels. */
.channel-menu-panel {
  position: fixed; width: 240px; z-index: 99999; padding: 8px 0;
  background: #111b21; border: 1px solid #2a3942; border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4); overflow: hidden;
}
.channel-menu-panel[hidden] { display: none; }
.channel-menu-list { list-style: none; margin: 0; padding: 0; }
.channel-menu-item {
  display: flex; align-items: center; gap: 8px; width: 100%; border: 0;
  background: none; color: #e9edef; padding: 12px 16px; text-align: left;
  cursor: pointer; font-size: 14px;
}
.channel-menu-item:hover, .channel-menu-item:focus-visible { background: #202c33; }
.channel-modal-wrapper {
  position: fixed; inset: 0; z-index: 99998; display: flex;
  align-items: center; justify-content: center; background: rgba(0,0,0,.45);
}
.channel-modal {
  background: #111b21; color: #e9edef; width: 420px; max-width: 90vw;
  max-height: 90vh; overflow-y: auto; border: 1px solid #2a3942;
  border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.6); padding: 18px;
}
.channel-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.channel-modal-header h3 { margin: 0 0 12px; }
.channel-modal-close { background: none; border: 0; color: inherit; font-size: 24px; cursor: pointer; }
.channel-modal-body { display: grid; gap: 12px; }
.channel-modal-footer { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.channel-modal-button { border: 1px solid #2a3942; border-radius: 6px; padding: 9px 14px; color: #e9edef; background: #202c33; cursor: pointer; }
.channel-modal-save { background: #007a63; }
.channel-modal [data-channel-error] { color: #ff8a8a; margin: 0; }
.channel-modal [data-channel-error]:empty { display: none; }
