/* Channel settings modal — invites, vanity, and related panels */

#modal-channel-settings .modal--channel-settings {
  max-width: 480px;
  width: min(480px, calc(100vw - 24px));
  box-sizing: border-box;
}

#modal-channel-settings .ch-settings-panel.is-active {
  overflow-x: hidden;
  padding-bottom: 4px;
  max-width: 100%;
}

#modal-channel-settings .modal--channel-settings {
  overflow-x: hidden;
}

#modal-channel-settings .ch-panel-invites,
#modal-channel-settings #ch-panel-invites {
  max-width: 100%;
}

#modal-channel-settings .ch-settings-panel {
  display: none;
}

#modal-channel-settings .ch-settings-panel.is-active {
  display: block;
}

.ch-is-hidden {
  display: none !important;
}

.ch-tab-intro {
  font-size: 13px;
  color: #888;
  margin-bottom: 16px;
}

.ch-field-hint {
  font-size: 11px;
  color: #666;
  margin-top: 4px;
}

.ch-field-hint--spaced {
  margin-top: 16px;
}

.ch-field-label--sm {
  font-size: 11px;
  color: #666;
  display: block;
  margin-bottom: 4px;
}

.ch-label-spaced {
  margin-top: 16px;
}

.ch-select--compact {
  color: #e0e0e0;
  background: #0d0d0d;
  margin: 0;
}

.ch-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.ch-check-input {
  width: 18px;
  height: 18px;
  accent-color: #4caf50;
  cursor: pointer;
}

.ch-check-title {
  font-weight: 600;
  font-size: 14px;
}

.ch-check-desc {
  font-size: 12px;
  color: #888;
}

/* Private / policy notices */
.ch-notice--private {
  display: none;
  margin-bottom: 16px;
  background: rgba(76, 175, 80, 0.06);
  border-color: rgba(76, 175, 80, 0.25);
}

.ch-notice--private.is-visible {
  display: block;
}

.ch-notice__body {
  font-size: 12px;
  color: #9bd0ad;
  line-height: 1.5;
}

.ch-notice__body--relaxed {
  line-height: 1.55;
}

.ch-policy-note {
  display: none;
  font-size: 12px;
  color: #ffb36b;
  background: #2a1e12;
  border: 1px solid #5b3f20;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 12px;
}

.ch-policy-note.is-visible {
  display: block;
}

.ch-modal-card--spaced {
  margin-bottom: 16px;
}

.ch-modal-card--private-intro {
  margin-bottom: 14px;
  background: rgba(76, 175, 80, 0.06);
  border-color: rgba(76, 175, 80, 0.25);
}

/* Invites tab */
.ch-invite-no-permission {
  display: none;
  font-size: 13px;
  color: #9bd0ad;
  background: rgba(76, 175, 80, 0.06);
  border: 1px solid rgba(76, 175, 80, 0.25);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.ch-invite-no-permission.is-visible {
  display: block;
}

.ch-invite-intro {
  font-size: 13px;
  color: #888;
  margin-bottom: 12px;
}

.ch-invite-private-block {
  display: none;
}

.ch-invite-private-block.is-visible {
  display: block;
}

.ch-invites-section-label {
  display: none;
  font-size: 11px;
  color: #7a9c8d;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.ch-invites-section-label.is-visible {
  display: block;
}

/* Invite create: row 1 = labels, row 2 = controls (same 40px track for selects + button) */
#modal-channel-settings .ch-invite-create-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto 40px;
  column-gap: 10px;
  row-gap: 4px;
  margin-bottom: 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  align-items: stretch;
}

.ch-invite-create-row.ch-is-hidden {
  display: none !important;
}

#modal-channel-settings .ch-invite-create__label-uses {
  grid-column: 1;
  grid-row: 1;
}

#modal-channel-settings .ch-invite-create__label-expires {
  grid-column: 2;
  grid-row: 1;
}

#modal-channel-settings .ch-invite-create__select-uses {
  grid-column: 1;
  grid-row: 2;
}

#modal-channel-settings .ch-invite-create__select-expires {
  grid-column: 2;
  grid-row: 2;
}

#modal-channel-settings .ch-invite-create-row select.ch-select--compact {
  width: 100%;
  min-width: 0;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  margin: 0 !important;
  padding: 0 32px 0 10px !important;
  box-sizing: border-box !important;
  line-height: 40px !important;
}

#modal-channel-settings .ch-invite-create-btn.modal-btn.primary {
  flex: none !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  padding: 0 16px !important;
  box-sizing: border-box !important;
  white-space: nowrap;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transform: none !important;
  line-height: 1 !important;
}

/* Desktop: labels row + controls row; button in column 3 same row as selects */
@media (min-width: 480px) {
  #modal-channel-settings .ch-invite-create-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(8.5rem, auto);
    grid-template-rows: auto 40px;
  }

  #modal-channel-settings .ch-invite-create-btn.modal-btn.primary {
    grid-column: 3;
    grid-row: 2;
    width: 100% !important;
    min-width: 8.5rem;
    /* Optical align: primary btn shadow sits lower than flat selects */
    transform: translateY(-2px) !important;
    box-shadow: 0 1px 6px rgba(76, 175, 80, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  }
}

@media (max-width: 479px) {
  #modal-channel-settings.modal-overlay {
    align-items: flex-start;
    padding-top: max(24px, calc(12px + var(--safe-top, 0px)));
  }

  #modal-channel-settings .modal--channel-settings {
    margin-top: 10px;
  }

  #modal-channel-settings #ch-panel-invites.is-active {
    padding-top: 8px;
  }

  #modal-channel-settings .ch-invites-section-label.is-visible {
    margin-top: 4px;
  }

  #modal-channel-settings .ch-invite-create-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto 40px auto;
    margin-top: 6px;
  }

  #modal-channel-settings .ch-invite-create-btn.modal-btn.primary {
    grid-column: 1 / -1;
    grid-row: 3;
    min-width: 0 !important;
    margin-top: 4px !important;
  }
}

@media (max-width: 380px) {
  #modal-channel-settings .ch-invite-create-row {
    grid-template-columns: 1fr;
    grid-template-rows: auto 40px auto 40px auto;
  }

  #modal-channel-settings .ch-invite-create__label-uses { grid-column: 1; grid-row: 1; }
  #modal-channel-settings .ch-invite-create__label-expires { grid-column: 1; grid-row: 3; }
  #modal-channel-settings .ch-invite-create__select-uses { grid-column: 1; grid-row: 2; }
  #modal-channel-settings .ch-invite-create__select-expires { grid-column: 1; grid-row: 4; }
  #modal-channel-settings .ch-invite-create-btn.modal-btn.primary { grid-column: 1; grid-row: 5; }
}

.ch-invite-field {
  min-width: 0;
  width: 100%;
}

.ch-invites-list {
  max-height: 320px;
  overflow-y: auto;
}

.ch-no-invites {
  color: #666;
  text-align: center;
  padding: 20px;
  line-height: 1.45;
}

.ch-no-invites.ch-is-hidden {
  display: none !important;
}

.ch-invite-forbidden-msg {
  color: #9bd0ad;
  font-size: 13px;
  padding: 16px;
  text-align: center;
  line-height: 1.5;
}

.ch-inline-code {
  background: #0a1410;
  padding: 1px 5px;
  border-radius: 4px;
  color: #9bd0ad;
  font-size: 11.5px;
}

/* Vanity URL (public channels, owner only — section hidden on private) */
.ch-vanity-section {
  display: none;
}

.ch-vanity-section:not(.ch-is-hidden) {
  display: block;
}

.ch-vanity-card {
  display: none;
  background: linear-gradient(180deg, #13211a 0%, #101a14 100%);
  border: 1px solid #2e4a3a;
  border-radius: 12px;
  padding: 14px 14px 12px;
  margin-bottom: 16px;
}

.ch-vanity-card.is-visible {
  display: block;
}

.ch-vanity-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #bff0d0;
  font-size: 13px;
  margin-bottom: 4px;
}

.ch-vanity-card__badge {
  margin-left: auto;
  font-size: 10.5px;
  color: #7fa897;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ch-vanity-card__desc {
  font-size: 12.5px;
  color: #9bd0ad;
  line-height: 1.5;
  margin-bottom: 10px;
}

.ch-vanity-card__code {
  background: #0a1410;
  padding: 1px 6px;
  border-radius: 4px;
  color: #bff0d0;
  font-size: 11.5px;
}

.ch-vanity-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}

@media (max-width: 419px) {
  .ch-vanity-row {
    flex-direction: column;
  }

  .ch-vanity-save-btn,
  .ch-vanity-clear-btn {
    width: 100%;
    min-height: 40px;
  }
}

.ch-vanity-input-wrap {
  flex: 1;
  display: flex;
  align-items: stretch;
  background: #0a1410;
  border: 1px solid #2e4a3a;
  border-radius: 10px;
  overflow: hidden;
  min-width: 0;
}

.ch-vanity-input-prefix {
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: #7fa897;
  font-size: 12.5px;
  background: rgba(127, 210, 167, 0.04);
  border-right: 1px solid #2e4a3a;
  white-space: nowrap;
}

.ch-vanity-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: #dff5e8;
  padding: 9px 10px;
  font-size: 14px;
  font-family: inherit;
}

.ch-vanity-save-btn {
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid #6cd870;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  background: linear-gradient(180deg, #5cc163 0%, #4caf50 55%, #3e8c43 100%);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  white-space: nowrap;
}

.ch-vanity-save-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ch-vanity-clear-btn {
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #3a3a3a;
  color: #bcd6c8;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  background: #1a1a1a;
}

.ch-vanity-status {
  font-size: 12px;
  margin-top: 8px;
  min-height: 16px;
  color: #7fa897;
  line-height: 1.4;
}

.ch-vanity-status--available {
  color: #7fd2a7;
  font-weight: 600;
}

.ch-vanity-status--invalid,
.ch-vanity-status--taken,
.ch-vanity-status--error {
  color: #f85149;
}

.ch-vanity-status--warn {
  color: #f8a058;
}

.ch-vanity-current {
  display: none;
  font-size: 12px;
  margin-top: 6px;
  color: #9bd0ad;
}

.ch-vanity-current.is-visible {
  display: block;
}

.ch-vanity-current-link {
  color: #bff0d0;
  font-weight: 700;
  text-decoration: none;
}

.ch-vanity-copy-btn {
  background: transparent;
  border: 0;
  color: #7fd2a7;
  cursor: pointer;
  font-size: 12px;
  padding: 0;
  text-decoration: underline;
}

/* Dynamic invite list rows (built in rooms.js) */
.ch-invite-item {
  padding: 12px;
  margin-bottom: 8px;
  overflow: hidden;
}

.ch-invite-item__row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 12px;
}

.ch-invite-item__meta {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.ch-invite-item__url {
  font-size: 12.5px;
  font-weight: 700;
  color: #7fd2a7;
  line-height: 1.35;
  word-break: break-all;
}

.ch-invite-item__sub {
  font-size: 11px;
  color: #7a9c8d;
  margin-top: 4px;
  line-height: 1.4;
  word-break: break-word;
}

.ch-invite-item__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 0 0 auto;
  flex-shrink: 0;
  margin-left: auto;
  padding-top: 0;
}

#modal-channel-settings .ch-invite-item__copy,
#modal-channel-settings .ch-invite-item__revoke {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0;
  font-size: 17px;
  border-radius: 8px;
  background: rgba(127, 210, 167, 0.1);
  border: 1px solid rgba(127, 210, 167, 0.22);
  flex: 0 0 auto;
  flex-shrink: 0;
  position: relative;
  touch-action: manipulation;
}

#modal-channel-settings .ch-invite-item__copy:hover {
  background: rgba(127, 210, 167, 0.18);
}

#modal-channel-settings .ch-invite-item__revoke {
  color: #f85149;
  border-color: rgba(248, 81, 73, 0.35);
  background: rgba(248, 81, 73, 0.08);
}

#modal-channel-settings .ch-invite-item__revoke:hover {
  background: rgba(248, 81, 73, 0.16);
}

.ch-invite-redemp-toggle {
  margin-top: 10px;
  width: 100%;
  box-sizing: border-box;
  font-size: 12px;
  padding: 8px 10px;
  background: #1a2a22;
  color: #9bd0ad;
  border: 1px solid #2e4a3a;
  border-radius: 8px;
  text-align: center;
}

.ch-invite-redemp-panel {
  display: none;
  margin-top: 8px;
  max-height: 120px;
  overflow-y: auto;
}

.ch-invite-redemp-panel.is-expanded {
  display: block;
}

.ch-invite-redemp-line {
  font-size: 11px;
  color: #9bd0ad;
  padding: 4px 0;
  border-bottom: 1px solid rgba(127, 210, 167, 0.12);
}

.ch-invite-redemp-empty {
  font-size: 11px;
  color: #7a9c8d;
  padding: 4px 0;
}

/* Mods tab intro (same modal) */
.ch-mods-intro {
  font-size: 13px;
  color: #9bd0ad;
  margin-bottom: 12px;
  line-height: 1.45;
}

/* ── 18+ content warning (create modal + Permissions tab + gate) ── */
.cw-settings-card {
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(180, 120, 60, 0.06);
  border: 1px solid rgba(200, 140, 80, 0.22);
  border-radius: 10px;
}

.cw-flag-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cw-flag-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #c8b8a8;
  cursor: pointer;
  line-height: 1.4;
}

.cw-flag-item span {
  flex: 1;
}

.cw-preview {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed rgba(200, 140, 80, 0.35);
  font-size: 12px;
  color: #b8a090;
  line-height: 1.45;
}

.cw-preview strong {
  color: #e8c4a8;
}

.cw-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: color-mix(in srgb, var(--bg-color) 82%, black);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* In-chat gate: blurred history + bottom confirm banner */
#messages-area.cw-chat-gated {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 18% 38%, color-mix(in srgb, var(--accent-color, #4caf50) 14%, transparent), transparent 70%),
    radial-gradient(ellipse 55% 45% at 82% 62%, color-mix(in srgb, var(--accent-color, #4caf50) 10%, transparent), transparent 72%),
    color-mix(in srgb, var(--bg-color, #0d1117) 94%, var(--surface-color, #161b22));
}

#messages-area.cw-chat-gated .cw-chat-content {
  visibility: hidden !important;
  opacity: 0 !important;
  filter: blur(24px) saturate(0.5) brightness(0.5) !important;
  pointer-events: none !important;
  user-select: none !important;
  transform: scale(1.02);
  transform-origin: center center;
  transition: filter 0.42s ease, transform 0.42s ease, opacity 0.35s ease, visibility 0.35s ease;
}

/* Stray message nodes outside the shell must not peek through the gate */
#messages-area.cw-chat-gated > .msg,
#messages-area.cw-chat-gated > .msg-date-divider,
#messages-area.cw-chat-gated > .msg-system,
#messages-area.cw-chat-gated > .msg-group {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#messages-area.cw-unlocking .cw-chat-content {
  filter: blur(0) saturate(1) brightness(1);
  transform: scale(1);
  opacity: 1;
  transition: filter 0.45s ease, transform 0.45s ease, opacity 0.38s ease;
}

#messages-area.cw-chat-gated .cw-chat-loading,
#messages-area.cw-chat-gated #ft-chat-transition,
#messages-area.cw-chat-gated > .chat-transition-overlay {
  filter: none !important;
  transform: none !important;
  pointer-events: none;
}

#messages-area.chat-switching {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--accent-color) 10%, var(--bg-color)) 0%,
    color-mix(in srgb, var(--accent-color) 5%, var(--bg-color)) 100%) !important;
}

/* Hide prior-channel bleed — SWR mode keeps cached target-room messages visible */
#messages-area.chat-switching:not(.chat-switching-swr) .cw-chat-content,
#messages-area.chat-switching:not(.chat-switching-swr) > .msg,
#messages-area.chat-switching:not(.chat-switching-swr) > .msg-group,
#messages-area.chat-switching:not(.chat-switching-swr) > .msg-date-divider,
#messages-area.chat-switching:not(.chat-switching-swr) > .msg-system {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#messages-area.chat-switching-swr {
  position: relative;
}

#messages-area.chat-switching-swr .cw-chat-content {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Cached messages stay visible during SWR; only .ft-msg-reveal tail nodes animate */
#messages-area.chat-switching-swr .cw-chat-content > :not(.ft-msg-reveal) {
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  transform: none !important;
}
.ch-transition-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.ch-transition-icon {
  width: 56px;
  height: 56px;
  font-size: 2rem;
  line-height: 56px;
  text-align: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent-color) 14%, var(--surface-color));
  border: 1px solid color-mix(in srgb, var(--accent-color) 28%, var(--border-color));
  overflow: hidden;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent-color) 12%, transparent);
}
.ch-transition-icon.is-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.ch-transition-icon-wrap.ch-transition-dm-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 4px;
  box-shadow: 0 6px 22px color-mix(in srgb, var(--bg-color) 55%, transparent);
}

.ch-transition-icon-wrap.ch-transition-dm-icon .avatar,
.ch-transition-icon-wrap.ch-transition-dm-icon img {
  width: 56px !important;
  height: 56px !important;
  border-radius: 14px;
  object-fit: cover;
}

#messages-area .cw-chat-loading {
  position: absolute;
  inset: 0;
  z-index: 28;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
}

#messages-area .cw-chat-content {
  min-height: 100%;
}

.cw-gate-inline {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: cwGateOverlayIn 0.28s ease-out;
  overflow: hidden;
}

@keyframes cwGateOverlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cw-gate-inline.cw-gate-dismiss {
  animation: cwGateOverlayOut 0.38s ease-in forwards;
  pointer-events: none;
}

@keyframes cwGateOverlayOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

.cw-gate-inline-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 18% 38%, color-mix(in srgb, var(--accent-color, #4caf50) 10%, transparent), transparent 70%),
    radial-gradient(ellipse 55% 45% at 82% 62%, color-mix(in srgb, var(--accent-color, #4caf50) 8%, transparent), transparent 72%),
    color-mix(in srgb, var(--bg-color, #0d1117) 97%, var(--surface-color, #161b22));
  backdrop-filter: blur(24px) saturate(0.85);
  -webkit-backdrop-filter: blur(24px) saturate(0.85);
  pointer-events: none;
  animation: cwGateBackdropIn 0.32s ease-out;
}

.cw-gate-ambient {
  z-index: 0;
  opacity: 0.85;
}

@keyframes cwGateBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cw-gate-banner {
  position: relative;
  z-index: 2;
  margin: 16px;
  max-width: min(440px, 92vw);
  width: 100%;
  pointer-events: auto;
  animation: cwGateBannerIn 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.cw-gate-inline.cw-gate-dismiss .cw-gate-banner {
  animation: cwGateBannerOut 0.32s ease-in forwards;
}

@keyframes cwGateBannerIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes cwGateBannerOut {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
}

body.cw-composer-locked #input-area {
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(0.35);
  transition: opacity 0.28s ease, filter 0.28s ease;
}

body.cw-composer-locked #typing-bar {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

body.cw-composer-locked #msg-input {
  cursor: not-allowed;
}

.cw-gate-card {
  width: min(420px, 100%);
  margin: 0 auto;
  padding: 22px 20px 18px;
  border-radius: 14px;
  background: linear-gradient(165deg,
    color-mix(in srgb, var(--accent-color) 14%, var(--surface-color)) 0%,
    color-mix(in srgb, var(--accent-color) 8%, var(--bg-deeper)) 100%);
  border: 1px solid color-mix(in srgb, var(--accent-color) 32%, var(--border-color));
  box-shadow: 0 16px 48px color-mix(in srgb, var(--bg-color) 60%, black),
    0 0 0 1px color-mix(in srgb, var(--accent-color) 12%, transparent) inset;
  text-align: center;
}

.cw-gate-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 800;
  color: color-mix(in srgb, #ff8080 75%, var(--accent-color));
  background: color-mix(in srgb, #dc3c3c 16%, var(--surface-color));
  border: 1px solid color-mix(in srgb, #ff6464 38%, var(--border-color));
  animation: cwGateBadgePulse 2.4s ease-in-out infinite;
}

@keyframes cwGateBadgePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, #ff6464 0%, transparent);
  }
  50% {
    box-shadow: 0 0 0 6px color-mix(in srgb, #ff6464 18%, transparent);
  }
}

.cw-gate-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-color);
}

.cw-gate-lead,
.cw-gate-confirm {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 12px;
}

.cw-gate-flags {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  text-align: left;
}

.cw-gate-flags li {
  padding: 8px 10px;
  margin-bottom: 6px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--bg-color) 45%, var(--surface-color));
  border: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--text-muted);
}

.cw-gate-flags li strong {
  display: block;
  color: var(--text-color);
  font-size: 13px;
  margin-bottom: 2px;
}

.cw-gate-flags-empty {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 16px;
}

.cw-gate-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.cw-gate-actions .modal-btn {
  flex: 1;
  margin: 0;
}

#cw-gate-enter.cw-gate-enter-loading {
  position: relative;
  pointer-events: none;
}

#cw-gate-enter.cw-gate-enter-loading .cw-gate-btn-label {
  opacity: 0.85;
}

#cw-gate-enter.cw-gate-enter-loading::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 2px solid color-mix(in srgb, var(--text-color) 25%, transparent);
  border-top-color: var(--text-color);
  border-radius: 50%;
  animation: cwGateBtnSpin 0.65s linear infinite;
}

@keyframes cwGateBtnSpin {
  to { transform: rotate(360deg); }
}

.cw-declined-enter {
  animation: cwDeclinedIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cwDeclinedIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cw-declined-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 32px 24px;
  text-align: center;
}

.cw-declined-screen .cw-declined-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.cw-declined-screen .cw-declined-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
}

.cw-declined-screen .cw-declined-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 340px;
  margin: 0;
}

.cw-declined-screen .cw-declined-text strong {
  color: var(--accent-color);
}

.dir-cw-badge,
.ch-cw-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ff9b9b;
  background: linear-gradient(135deg, rgba(255, 80, 80, 0.22), rgba(200, 40, 40, 0.1));
  border: 1px solid rgba(255, 100, 100, 0.42);
  border-radius: 999px;
  vertical-align: middle;
  line-height: 1.4;
  box-shadow: inset 0 0 8px rgba(255, 80, 80, 0.08);
}

/* ── Channel switch / loading overlay (theme-aware) ── */
#messages-area .cw-chat-loading,
#messages-area .chat-transition-overlay {
  background:
    color-mix(in srgb, var(--bg-color) 94%, var(--accent-color) 6%),
    radial-gradient(ellipse 72% 58% at 14% 32%, color-mix(in srgb, var(--accent-color) 12%, transparent), transparent 68%),
    radial-gradient(ellipse 58% 48% at 86% 68%, color-mix(in srgb, var(--accent-color) 8%, transparent), transparent 70%),
    radial-gradient(ellipse 40% 35% at 50% 50%, color-mix(in srgb, var(--accent-color) 4%, var(--surface-color)), transparent 72%),
    linear-gradient(180deg,
      color-mix(in srgb, var(--accent-color) 6%, var(--bg-color)) 0%,
      color-mix(in srgb, var(--accent-color) 3%, var(--bg-color)) 100%);
  backdrop-filter: blur(10px) saturate(1.05);
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
  overflow: hidden;
  animation: chTransitionFadeIn 0.38s ease-out;
}

@keyframes chTransitionFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ch-transition-shimmer {
  position: absolute;
  inset: -40%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 40%,
    color-mix(in srgb, var(--accent-color) 8%, transparent) 49%,
    color-mix(in srgb, var(--text-color) 4%, transparent) 51%,
    transparent 60%
  );
  animation: chTransitionShimmer 9s ease-in-out infinite;
  opacity: 0.28;
}

@keyframes chTransitionShimmer {
  0% { transform: translateX(-22%); opacity: 0.22; }
  50% { opacity: 0.3; }
  100% { transform: translateX(22%); opacity: 0.22; }
}

.ch-transition-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.ch-transition-ambient .ch-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.28;
  animation: chOrbDrift 22s ease-in-out infinite alternate;
}

.ch-transition-ambient .ch-orb.o1 {
  width: 220px;
  height: 220px;
  left: -4%;
  top: 18%;
  background: color-mix(in srgb, var(--accent-color) 42%, transparent);
  animation-duration: 24s;
}

.ch-transition-ambient .ch-orb.o2 {
  width: 180px;
  height: 180px;
  right: 6%;
  top: 8%;
  background: color-mix(in srgb, var(--accent-color) 28%, var(--surface-color));
  animation-duration: 26s;
  animation-delay: -4s;
}

.ch-transition-ambient .ch-orb.o3 {
  width: 160px;
  height: 160px;
  left: 38%;
  bottom: 6%;
  background: color-mix(in srgb, var(--text-muted) 28%, var(--accent-color));
  animation-duration: 28s;
  animation-delay: -7s;
}

.ch-transition-ambient .ch-orb.o4 {
  width: 120px;
  height: 120px;
  right: 28%;
  bottom: 18%;
  background: color-mix(in srgb, var(--accent-color) 18%, var(--surface-color));
  animation-duration: 25s;
  animation-delay: -11s;
}

@keyframes chOrbDrift {
  0% { transform: translate(0, 0) scale(1); opacity: 0.24; }
  50% { transform: translate(8px, -10px) scale(1.03); opacity: 0.32; }
  100% { transform: translate(-6px, 8px) scale(0.98); opacity: 0.26; }
}

#messages-area .ch-loading-card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 28px 32px 24px;
  min-width: min(320px, 88vw);
  border-radius: 16px;
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--surface-color) 86%, var(--accent-color) 14%) 0%,
    color-mix(in srgb, var(--surface-color) 94%, var(--bg-color)) 56%,
    color-mix(in srgb, var(--surface-color) 98%, var(--bg-color)) 100%
  );
  border: 1px solid color-mix(in srgb, var(--accent-color) 28%, var(--border-color));
  box-shadow:
    0 20px 52px color-mix(in srgb, var(--bg-color) 65%, transparent),
    0 0 0 1px color-mix(in srgb, var(--accent-color) 10%, transparent) inset,
    inset 0 1px 0 color-mix(in srgb, var(--text-color) 10%, transparent);
  animation: chLoadingCardIn 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes chLoadingCardIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

#messages-area .ch-loading-label {
  color: var(--text-color);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  text-shadow: 0 1px 12px color-mix(in srgb, var(--bg-color) 40%, transparent);
}

#messages-area .ch-loading-card .ch-spin,
#messages-area .ch-loading-state .ch-spin {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--border-color) 70%, transparent);
  border-top-color: var(--accent-color);
  animation: chSpin 1.15s linear infinite;
}

@keyframes chSpin {
  to { transform: rotate(360deg); }
}

#messages-area .chat-transition-overlay.ch-transition-dismiss {
  animation: chTransitionDismiss 0.42s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

#messages-area .chat-transition-overlay.ch-transition-dismiss .ch-loading-card {
  animation: chLoadingCardOut 0.38s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes chTransitionDismiss {
  from { opacity: 1; backdrop-filter: blur(10px) saturate(1.08); }
  to { opacity: 0; backdrop-filter: blur(0) saturate(1); }
}

@keyframes chLoadingCardOut {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateY(-8px) scale(0.97); }
}

/* Composer locked while channel history loads */
#input-area.ft-compose-loading {
  position: relative;
  opacity: 0.62;
  filter: saturate(0.88);
  transition: opacity 0.32s ease, filter 0.32s ease;
}

#input-area.ft-compose-loading::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 2;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--accent-color) 35%, transparent) 35%,
    var(--accent-color) 50%,
    color-mix(in srgb, var(--accent-color) 35%, transparent) 65%,
    transparent 100%
  );
  background-size: 220% 100%;
  animation: ftComposeLoadBar 2.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ftComposeLoadBar {
  0% { background-position: 120% 0; opacity: 0.32; }
  50% { opacity: 0.62; }
  100% { background-position: -120% 0; opacity: 0.32; }
}

#input-area.ft-compose-loading #msg-input {
  cursor: wait;
}

#input-area.ft-compose-pending #msg-input {
  cursor: text;
  opacity: 1;
  color: var(--text-color);
}
#input-area.ft-compose-pending #msg-input::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}

/* Draft-while-sync: keep input bright; only send + sync chrome look held */
#input-area.ft-compose-pending.ft-compose-loading {
  opacity: 1;
  filter: none;
}

#input-area.ft-compose-pending.ft-compose-loading #msg-input {
  cursor: text;
}

#input-area.ft-compose-pending.ft-compose-loading .input-wrap {
  border-color: color-mix(in srgb, var(--accent-color) 22%, var(--border-color)) !important;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-color) 8%, transparent);
}

#input-area.ft-compose-loading .input-wrap {
  border-color: color-mix(in srgb, var(--accent-color) 22%, var(--border-color)) !important;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent-color) 8%, transparent);
}

/* Send button locked while channel history is loading / switching */
#input-area .send-btn.ft-send-blocked {
  background: linear-gradient(180deg, #243d2f, #1a3024);
  border-color: color-mix(in srgb, #4c8168 55%, #2a3d32);
  color: color-mix(in srgb, #9de1bc 72%, #5a7a68);
  cursor: not-allowed;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: none;
  pointer-events: none;
  opacity: 0.42;
  filter: saturate(0.72) brightness(0.88);
  animation: none;
  transition: opacity 0.28s ease, filter 0.28s ease, background 0.2s ease, border-color 0.2s ease;
}

#input-area .send-btn.ft-send-blocked::after {
  display: none;
}

/* Draft-while-sync: same dull send, input stays bright */
#input-area.ft-compose-pending .send-btn.ft-send-blocked {
  opacity: 0.48;
  filter: saturate(0.76) brightness(0.9);
}

#input-area.ft-compose-pending .send-btn.ft-send-blocked:hover,
#input-area.ft-compose-pending .send-btn.ft-send-blocked:active {
  background: linear-gradient(180deg, #243d2f, #1a3024);
  border-color: color-mix(in srgb, #4c8168 55%, #2a3d32);
  transform: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0.48;
  filter: saturate(0.76) brightness(0.9);
}

/* Sync strip + top message bar retired — compose shows Syncing…; tail skeletons in chat */
.ft-chat-sync-strip {
  display: none !important;
}
#main #messages-area.chat-switching-swr.ft-sync-active::before {
  display: none !important;
}

/* Discord-style outline skeletons (channels, DMs, member list) */
@keyframes ftSkelIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
@keyframes ftSkelShimmer {
  0% { transform: translateX(-100%); opacity: 0.25; }
  55% { opacity: 0.55; }
  100% { transform: translateX(100%); opacity: 0.25; }
}

#main #messages-area.ft-chat-skeleton-active .cw-chat-content {
  min-height: 120px;
}

.ft-chat-skeleton {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 14px 4px;
  pointer-events: none;
  animation: ftSkelIn 0.16s ease-out both;
}
.ft-chat-skeleton.ft-chat-skeleton-instant {
  animation: none;
}
.ft-chat-skeleton[data-tail="1"] {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--border-color) 55%, transparent);
  opacity: 0.92;
}

/* Mirrors .msg-group: left-aligned avatar slot + body (no right-side ghost bubbles). */
.ft-skel-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 3px 0;
  max-width: 100%;
  animation: ftSkelIn 0.2s ease-out both;
  animation-delay: calc(var(--ft-skel-i, 0) * 35ms);
}

.ft-skel-avatar-slot {
  flex: 0 0 42px;
  width: 42px;
  display: flex;
  justify-content: center;
  align-self: flex-start;
}

.ft-skel-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ft-skel-meta {
  display: block;
  max-width: 220px;
}
.ft-skel-meta .ft-skel-line {
  height: 9px;
  border-radius: 5px;
}

.ft-skel-avatar {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface-color) 92%, var(--accent-color) 8%);
  border: 1px solid color-mix(in srgb, var(--border-color) 70%, var(--accent-color) 12%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text-color) 4%, transparent);
}
.ft-skel-avatar.sm {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
}

.ft-skel-bubble {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 72px;
  max-width: min(92%, 480px);
  padding: 9px 11px;
  border-radius: 4px 10px 10px 10px;
  position: relative;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface-color) 90%, var(--accent-color) 10%);
  border: 1px solid color-mix(in srgb, var(--border-color) 72%, var(--accent-color) 10%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text-color) 3%, transparent);
}

.ft-skel-line {
  display: block;
  height: 11px;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  background: color-mix(in srgb, var(--bg-color) 55%, var(--surface-color));
  border: 1px solid color-mix(in srgb, var(--border-color) 55%, transparent);
}

.ft-skel-avatar::before,
.ft-skel-bubble::before,
.ft-skel-line::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in srgb, var(--accent-color) 12%, var(--surface-color)) 48%,
    color-mix(in srgb, var(--accent-color) 22%, var(--surface-color)) 52%,
    transparent 100%
  );
  animation: ftSkelShimmer 1.05s ease-in-out infinite;
  animation-delay: calc(var(--ft-skel-i, 0) * 45ms);
}

.users-skeleton,
.ft-sidebar-skeleton {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px 8px 10px;
}
#public-channels:has(.ft-sidebar-skeleton),
#dm-channels:has(.ft-sidebar-skeleton) {
  min-height: 11.5rem;
}
.ft-skel-user-row,
.ft-skel-sidebar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  animation: ftSkelIn 0.18s ease-out both;
  animation-delay: calc(var(--ft-skel-i, 0) * 40ms);
}
.users-skeleton .ft-skel-user-row,
.ft-sidebar-skeleton .ft-skel-sidebar-row {
  animation-fill-mode: both;
}
.users-skeleton.ft-skel-instant .ft-skel-user-row {
  animation: none;
}
#users-list:has(.users-skeleton) {
  min-height: 11.5rem;
}
#users-list.users-list-refreshing {
  opacity: 0.96;
}
#users-list.users-list-refreshing .member-search-input {
  opacity: 0.92;
}
.ft-skel-sidebar-lines {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.ft-skel-sidebar-lines .ft-skel-line {
  display: block;
  height: 11px;
  max-width: 100%;
}
.ft-skel-sidebar-lines .ft-skel-line-sub {
  height: 9px;
  opacity: 0.88;
}
.ft-skel-user-row .ft-skel-line {
  flex: 1;
  height: 12px;
  max-width: 72%;
}

/* Thin sync strip (fast channel / DM switches) */
.ft-chat-sync-strip {
  position: sticky;
  bottom: 10px;
  top: auto;
  z-index: 50;
  flex-shrink: 0;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px 9px 10px;
  margin: 0 6px 8px;
  border-radius: 12px;
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
  background: color-mix(in srgb, var(--surface-color) 88%, var(--accent-color) 12%);
  backdrop-filter: blur(10px) saturate(1.08);
  border: 1px solid color-mix(in srgb, var(--accent-color) 24%, var(--border-color));
  box-shadow:
    0 4px 18px color-mix(in srgb, var(--bg-color) 48%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--text-color) 7%, transparent);
  animation: ftSyncStripIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.ft-sync-strip-icon-wrap,
.ft-sync-strip-icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  overflow: hidden;
  background: color-mix(in srgb, var(--accent-color) 12%, var(--surface-color));
  border: 1px solid color-mix(in srgb, var(--accent-color) 22%, var(--border-color));
  box-shadow: 0 2px 8px color-mix(in srgb, var(--bg-color) 35%, transparent);
}

.ft-sync-strip-icon-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 1.05rem;
  line-height: 1;
  border-radius: 8px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.ft-sync-strip-icon-inner.is-image {
  width: 100%;
  height: 100%;
  padding: 0;
}

.ft-sync-strip-icon-inner.is-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.ft-sync-strip-icon-dm .avatar,
.ft-sync-strip-icon-dm img {
  width: 32px !important;
  height: 32px !important;
  border-radius: 9px;
  object-fit: cover;
}

.ft-sync-strip-icon-emoji {
  font-size: 1.15rem;
  line-height: 32px;
  text-align: center;
}

.ft-sync-strip-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ft-sync-strip-title {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--text-color);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ft-sync-strip-sub {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: color-mix(in srgb, var(--text-color) 52%, var(--accent-color));
}

.ft-sync-strip-spinner {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin-left: 2px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--border-color) 65%, transparent);
  border-top-color: var(--accent-color);
  animation: ftSyncStripSpin 0.7s linear infinite;
}

@keyframes ftSyncStripIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: none; }
}

@keyframes ftSyncStripSpin {
  to { transform: rotate(360deg); }
}

/* Staggered message reveal after channel switch */
#messages-area .ft-msg-reveal {
  opacity: 0;
  transform: translateY(6px);
  filter: blur(3px);
  transition:
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.38s ease;
  transition-delay: var(--ft-reveal-delay, 0ms);
}

#messages-area .ft-msg-reveal.ft-msg-reveal-active {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  #messages-area .cw-chat-loading,
  #messages-area .chat-transition-overlay,
  .ch-transition-shimmer,
  .ch-transition-ambient .ch-orb,
  #messages-area .ch-loading-card .ch-spin,
  #input-area.ft-compose-loading::before {
    animation: none !important;
  }

  .ft-sync-strip-spinner {
    animation: none !important;
    opacity: 0.55;
    border-top-color: var(--accent-color);
  }

  #messages-area .ft-msg-reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .ft-chat-skeleton,
  .ft-skel-row,
  .ft-skel-avatar::before,
  .ft-skel-bubble::before,
  .ft-skel-line::before {
    animation: none !important;
  }

  .ch-transition-shimmer {
    opacity: 0.18;
  }

  .ch-transition-ambient .ch-orb {
    opacity: 0.2;
  }
}
