/* Channel settings v2 — extends gcs-* from chat-settings-modal.css */

#channelSettingsV2Modal .channel-settings-v2__desc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#channelSettingsV2Modal .channel-settings-v2__desc-field,
#channelSettingsV2Modal .channel-settings-v2__desc-input-wrap {
  overflow: visible;
}

#channelSettingsV2Modal .channel-settings-v2__desc-input-wrap {
  position: relative;
}

#channelSettingsV2Modal .channel-settings-v2__desc-emoji-wrap {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 6;
}

#channelSettingsV2Modal .channel-settings-v2__desc-emoji-toggle {
  width: 34px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(134, 162, 205, 0.22);
  background: color-mix(in srgb, rgba(12, 20, 36, 0.92) 85%, transparent);
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

#channelSettingsV2Modal .channel-settings-v2__desc-emoji-picker.emoji-picker {
  position: fixed;
  top: auto;
  bottom: auto;
  left: auto;
  right: auto;
  margin-bottom: 0;
  z-index: 1400;
  width: min(300px, calc(100vw - 48px));
  pointer-events: auto;
}

#channelSettingsV2Modal .channel-settings-v2__desc-emoji-picker.emoji-picker:not(.hidden) {
  display: grid;
}

#channelSettingsV2Modal .channel-settings-v2__nav-hidden {
  display: none !important;
}

#channelSettingsV2Modal .gcs-field--toggle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

#channelSettingsV2Modal .gcs-field--toggle .gcs-field__help {
  flex: 1 1 100%;
}

#channelSettingsV2Modal .gcs-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
}

#channelSettingsV2Modal .gcs-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

#channelSettingsV2Modal .gcs-toggle__track {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease;
  position: relative;
}

#channelSettingsV2Modal .gcs-toggle__track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

#channelSettingsV2Modal .gcs-toggle input:checked + .gcs-toggle__track {
  background: rgba(52, 211, 153, 0.45);
  border-color: rgba(52, 211, 153, 0.55);
}

#channelSettingsV2Modal .gcs-toggle input:checked + .gcs-toggle__track::after {
  transform: translateX(20px);
}

#channelSettingsV2Modal .channel-settings-v2__avatar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#channelSettingsV2Modal .channel-settings-v2__subscribers,
#channelSettingsV2Modal .channel-settings-v2__roles,
#channelSettingsV2Modal .channel-settings-v2__audit {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#channelSettingsV2Modal .channel-settings-v2__subscribers-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 420px;
  overflow: auto;
}

#channelSettingsV2Modal .channel-profile-subscriber-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  max-height: 56px;
  padding: 0 4px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  box-sizing: border-box;
}

#channelSettingsV2Modal .channel-profile-subscriber-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

#channelSettingsV2Modal .channel-profile-subscriber-row__open {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px 10px 12px;
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

#channelSettingsV2Modal .channel-profile-subscriber-row__open:hover {
  background: transparent;
}

#channelSettingsV2Modal .channel-subscriber-actions {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

#channelSettingsV2Modal .channel-subscriber-menu-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: color-mix(in srgb, var(--muted, #9ca3af) 88%, #8c92a1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.72;
  transition: opacity 140ms ease, background-color 140ms ease, color 140ms ease;
}

#channelSettingsV2Modal .channel-profile-subscriber-row:hover .channel-subscriber-menu-btn,
#channelSettingsV2Modal .channel-profile-subscriber-row.channel-subscriber-menu-open .channel-subscriber-menu-btn,
#channelSettingsV2Modal .channel-profile-subscriber-row:focus-within .channel-subscriber-menu-btn {
  opacity: 1;
}

#channelSettingsV2Modal .channel-subscriber-menu-btn:hover {
  background: color-mix(in srgb, var(--muted, #9ca3af) 14%, transparent);
  color: var(--text, #e8eaed);
}

#channelSettingsV2Modal .channel-subscriber-menu-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

#channelSettingsV2Modal .channel-subscriber-menu {
  position: absolute;
  top: calc(100% - 4px);
  right: 0;
  z-index: 40;
  min-width: 220px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: color-mix(in srgb, var(--panel, #1a1d24) 94%, #0f1115);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

#channelSettingsV2Modal .channel-subscriber-menu.hidden {
  display: none;
}

#channelSettingsV2Modal .channel-subscriber-menu-item {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

#channelSettingsV2Modal .channel-subscriber-menu-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

#channelSettingsV2Modal .channel-subscriber-menu-item--danger {
  color: #f87171;
}

#channelSettingsV2Modal .channel-profile-subscriber-row__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 600;
  flex-shrink: 0;
}

#channelSettingsV2Modal .channel-profile-subscriber-row__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#channelSettingsV2Modal .channel-profile-subscriber-row__name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#channelSettingsV2Modal .channel-profile-subscriber-row__meta {
  font-size: 12px;
  opacity: 0.7;
}

#channelSettingsV2Modal .channel-settings-v2__role-card {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

#channelSettingsV2Modal .channel-settings-v2__role-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0;
}

#channelSettingsV2Modal .channel-settings-v2__role-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.15);
}

#channelSettingsV2Modal .channel-settings-v2__role-add {
  display: flex;
  gap: 8px;
  align-items: center;
}

#channelSettingsV2Modal .channel-settings-v2__role-add .gcs-field__input {
  flex: 1;
}

#channelSettingsV2Modal .channel-settings-v2__audit-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
}

#channelSettingsV2Modal .channel-settings-v2__audit-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

#channelSettingsV2Modal .channel-settings-v2__audit-row time {
  opacity: 0.65;
  white-space: nowrap;
}
