#channels {
  display: block;
}
#channels .channel-group {
  width: 100%;
}
.channel-row {
  display: flex;
  align-items: center;
  gap: 2px;
  width: 100%;
}
.channel-row .channel {
  min-width: 0;
  flex: 1;
  width: auto;
}
.channel-name {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.channel-row .channel > .icon,
.channel-row .channel-image {
  flex-shrink: 0;
}
.channel-actions {
  flex: 0 0 30px;
  width: 30px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
  font-size: 23px;
  line-height: 1;
  background: transparent;
  color: #bda6bc;
}
.channel-actions:hover,
.channel-actions[aria-expanded='true'] {
  color: #fff;
  background: #493043;
}
#channel-actions-menu {
  position: fixed;
  inset: auto;
  margin: 0;
  width: min(290px, calc(100vw - 16px));
  padding: 6px;
  background: #251e2c;
  border: 1px solid #634359;
  border-radius: 12px;
  box-shadow: 0 12px 36px #0008;
  color: #eee;
}
#channel-actions-menu button {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  font-size: 13px;
}
#channel-actions-menu button:hover:not(:disabled) {
  background: #443041;
}
#channel-actions-menu button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
#channel-actions-menu p {
  margin: 6px 12px;
  color: #baa6b6;
  font-size: 11px;
}
#channel-edit-dialog {
  width: min(460px, calc(100vw - 24px));
}
#channel-edit-dialog h2 {
  font-size: 21px;
  padding-right: 22px;
}
#channel-edit-form label {
  display: block;
  margin: 16px 0;
}
#channel-edit-form label[hidden] {
  display: none;
}
#channel-edit-form select {
  display: block;
  width: 100%;
  margin-top: 8px;
  min-height: 44px;
  padding: 10px;
  border: 1px solid #654057;
  border-radius: 9px;
  background: #2b2230;
  color: #f6ddea;
  font: inherit;
  color-scheme: dark;
}
#channel-edit-form small {
  display: block;
  margin-top: 8px;
  color: #bba9bb;
  font-size: 12px;
}
#channel-edit-image::file-selector-button {
  padding: 7px 10px;
  margin-right: 10px;
  background: #513447;
  color: #ffe0ed;
  border: 0;
  border-radius: 7px;
  font: inherit;
  cursor: pointer;
}
#channel-edit-preview {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #483044;
  font-size: 30px;
  overflow: hidden;
}
#channel-edit-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#channel-edit-preview .icon {
  width: 28px;
  height: 28px;
}
#channel-delete-name {
  overflow-wrap: anywhere;
}
.channel-delete-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.channel-delete-buttons .danger {
  background: #bd2e55;
  color: #fff;
}
@media (max-width: 760px) {
  .channel-actions {
    height: 44px;
    flex-basis: 34px;
  }
}
