/* wester community: liquid glass, black, minimal (V55)
 * Loaded after wester-community-v1.css. Same class names, new look.
 * No colour accents: black, frosted white glass, soft light. */

.wcx {
  --wg-blur: 22px;
  --wg-edge: rgba(255, 255, 255, .10);
  --wg-edge-hi: rgba(255, 255, 255, .22);
  --wg-fill: rgba(255, 255, 255, .055);
  --wg-fill-hi: rgba(255, 255, 255, .11);
  --wg-ink: #f4f4f6;
  --wg-dim: rgba(244, 244, 246, .56);
  --wg-top: 0px;
  --wg-bot: 0px;
  --wcx-acc: #ffffff;
  --wcx-acc2: #d8d8de;
  --wcx-bg: #000;
  --wcx-line: rgba(255, 255, 255, .07);
  --wcx-fg: var(--wg-ink);
  --wcx-mut: var(--wg-dim);
  background: #000;
  letter-spacing: -.005em;
}

/* ---------- ambient light behind the glass ---------- */
.wcx::before,
.wcx::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform;
}
.wcx::before {
  width: 62vmax; height: 62vmax;
  left: -24vmax; top: -22vmax;
  background: radial-gradient(circle, rgba(150, 165, 200, .20), rgba(150, 165, 200, 0) 68%);
  animation: wgDriftA 26s ease-in-out infinite alternate;
}
.wcx::after {
  width: 56vmax; height: 56vmax;
  right: -22vmax; bottom: -20vmax;
  background: radial-gradient(circle, rgba(190, 180, 215, .15), rgba(190, 180, 215, 0) 70%);
  animation: wgDriftB 32s ease-in-out infinite alternate;
}
@keyframes wgDriftA { to { transform: translate3d(14vmax, 10vmax, 0) scale(1.12); } }
@keyframes wgDriftB { to { transform: translate3d(-12vmax, -9vmax, 0) scale(1.08); } }
.wcx-p { z-index: 1; background: transparent; }

/* fine grain keeps big black areas from banding */
.wcx-p[data-p="thread"]::before {
  content: "";
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='120' height='120' filter='url(%23n)'/></svg>");
}

/* ---------- header ---------- */
.wcx-h {
  gap: 10px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px 10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .46));
  -webkit-backdrop-filter: blur(var(--wg-blur)) saturate(160%);
  backdrop-filter: blur(var(--wg-blur)) saturate(160%);
  border-bottom: 1px solid var(--wcx-line);
  position: relative; z-index: 6;
}
.wcx-ib.wcx-rb,
.wcx-ib {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .04));
  border: 1px solid var(--wg-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 6px 18px -10px #000;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--wg-ink);
  transition: transform .18s cubic-bezier(.3, 1.4, .5, 1), background .2s;
}
.wcx-ib:active, .wcx-ib.wcx-rb:active { transform: scale(.9); background: rgba(255, 255, 255, .16); }
.wcx-ht b { font-size: 16.5px; font-weight: 650; letter-spacing: -.015em; }
.wcx-ht small { font-size: 12px; color: var(--wg-dim); letter-spacing: .01em; }

/* ---------- segmented control ---------- */
.wcx-seg, .wcx-tabs {
  position: relative; z-index: 5;
  margin: 10px 14px 4px; padding: 3px; gap: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--wg-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(var(--wg-blur)); backdrop-filter: blur(var(--wg-blur));
}
.wcx-seg button, .wcx-tabs button {
  height: 32px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--wg-dim); transition: color .2s, background .25s, box-shadow .25s;
}
.wcx-seg button.on, .wcx-tabs button.on {
  color: #fff;
  background: linear-gradient(145deg, rgba(255, 255, 255, .20), rgba(255, 255, 255, .08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 4px 14px -6px rgba(0, 0, 0, .9);
}

/* ---------- list lets messages scroll under the glass ---------- */
#wcx-list {
  margin-top: calc(var(--wg-top) * -1);
  margin-bottom: calc(var(--wg-bot) * -1);
  padding-top: calc(var(--wg-top) + 8px);
  padding-bottom: calc(var(--wg-bot) + 12px);
  position: relative; z-index: 1;
  scrollbar-width: none;
}
#wcx-list::-webkit-scrollbar { display: none; }
.wcx-pin, .wcx-typ, .wcx-rep, .wcx-men, .wcx-guest-bar { position: relative; z-index: 5; }

/* ---------- day chip ---------- */
.wcx-day { margin: 14px 0 6px; }
.wcx-day span {
  font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 4px 12px;
  color: var(--wg-dim);
  background: rgba(255, 255, 255, .055);
  border: 1px solid var(--wcx-line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}

/* ---------- bubbles ---------- */
.wcx-b {
  padding: 8px 13px 6px;
  border-radius: 22px 22px 22px 7px;
  color: var(--wg-ink);
  background: linear-gradient(150deg, rgba(255, 255, 255, .105), rgba(255, 255, 255, .04));
  border: 1px solid var(--wg-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13), inset 0 -1px 0 rgba(255, 255, 255, .02), 0 10px 26px -16px #000;
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
}
.wcx-m.g .wcx-b { border-top-left-radius: 22px; }
.wcx-m.me .wcx-b {
  color: #fff; border: 1px solid var(--wg-edge-hi);
  border-radius: 22px 22px 7px 22px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .27), rgba(255, 255, 255, .11));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), 0 12px 30px -16px rgba(0, 0, 0, .95);
}
.wcx-m.me.g .wcx-b { border-top-right-radius: 22px; }
.wcx-t { font-size: 14px; line-height: 1.38; }
.wcx-tm { opacity: .5; }
.wcx-m.me .wcx-tm { opacity: .7; }
.wcx-nm { font-size: 12px; font-weight: 600; letter-spacing: .01em; color: hsl(var(--h, 220) 28% 76%); margin-left: 8px; }
.wcx button.wcx-nm, .wcx .wcx-nm { color: hsl(var(--h, 220) 28% 76%); }
.wcx-b.wcx-mtd { background: linear-gradient(150deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .06)); border-color: rgba(255, 255, 255, .4); }
.wcx-botm .wcx-b { background: linear-gradient(150deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03)); border-color: rgba(255, 255, 255, .16); }
.wcx-mn, .wcx-m.me .wcx-mn { background: rgba(255, 255, 255, .16); color: #fff; border-radius: 8px; padding: 0 5px; }
.wcx-q, .wcx-m.me .wcx-q { background: rgba(0, 0, 0, .34); border-left: 2px solid rgba(255, 255, 255, .5); border-radius: 4px 12px 12px 4px; }
.wcx-q b, .wcx-m.me .wcx-q b { color: rgba(255, 255, 255, .92); }
.wcx-av, .wcx-av.wcx-ph { box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.wcx-av.wcx-ph { background: linear-gradient(145deg, hsl(var(--h, 220) 14% 34%), hsl(calc(var(--h, 220) + 30) 12% 16%)); color: #fff; }
.wcx-rx { background: rgba(255, 255, 255, .07); border: 1px solid var(--wg-edge); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.wcx-rx.on { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .45); }
.wcx-st.wcx-bad { color: #ff9aa8; }

/* role chips: neutral glass instead of colour */
.wcx-mod, .wcx-bt {
  font-size: 8.5px; letter-spacing: .1em; padding: 3px 6px; border-radius: 999px; color: #fff;
  background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .22);
}
.wcx-bt { background: rgba(255, 255, 255, .92); color: #000; border-color: transparent; }

/* photos */
.wcx-cd { border: 1px solid rgba(255, 255, 255, .16); }
.wcx-tp, .wcx-mp { background: rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* ---------- pins, replies, mentions, typing ---------- */
.wcx-pin {
  margin: 8px 14px 0; padding: 5px 5px 5px 12px; border-radius: 18px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--wg-edge);
  -webkit-backdrop-filter: blur(var(--wg-blur)); backdrop-filter: blur(var(--wg-blur));
}
.wcx-pn-i, .wcx-pn-t b { color: rgba(255, 255, 255, .8); }
.wcx-pn-t span { color: var(--wg-ink); }
.wcx-rep {
  margin: 0 12px 6px; border-radius: 18px; border: 1px solid var(--wg-edge);
  border-left: 3px solid rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(var(--wg-blur)); backdrop-filter: blur(var(--wg-blur));
}
.wcx-rep b { color: #fff; }
.wcx-rep button { background: rgba(255, 255, 255, .1); }
.wcx-men {
  margin: 0 12px 6px; border-radius: 22px; border: 1px solid var(--wg-edge);
  background: rgba(14, 14, 16, .72);
  -webkit-backdrop-filter: blur(30px) saturate(170%); backdrop-filter: blur(30px) saturate(170%);
  box-shadow: 0 20px 50px -20px #000, inset 0 1px 0 rgba(255, 255, 255, .1);
}
.wcx-men button.on, .wcx-men button:active { background: rgba(255, 255, 255, .1); }
.wcx-men button.on .wcx-men-go { color: #fff; }
.wcx-dt { background: rgba(255, 255, 255, .07); border: 1px solid var(--wg-edge); }
.wcx-dt i { background: #fff; }
.wcx-guest-bar {
  margin: 8px 14px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid var(--wg-edge);
  -webkit-backdrop-filter: blur(var(--wg-blur)); backdrop-filter: blur(var(--wg-blur));
}

/* ---------- composer: a floating glass capsule ---------- */
.wcx-comp {
  gap: 8px; padding: 10px 12px calc(env(safe-area-inset-bottom, 0px) + 10px);
  background: linear-gradient(0deg, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .55) 60%, rgba(0, 0, 0, 0) 100%);
  position: relative; z-index: 6;
}
.wcx-plus {
  width: 44px; height: 44px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .05));
  border: 1px solid var(--wg-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 8px 20px -10px #000;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: transform .18s cubic-bezier(.3, 1.4, .5, 1);
}
.wcx-plus:active { transform: scale(.9) rotate(90deg); }
.wcx-box {
  min-height: 44px; border-radius: 24px; padding: 3px 4px 3px 8px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .045));
  border: 1px solid var(--wg-edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 10px 28px -12px #000;
  -webkit-backdrop-filter: blur(var(--wg-blur)) saturate(160%); backdrop-filter: blur(var(--wg-blur)) saturate(160%);
  transition: border-color .2s, box-shadow .2s;
}
.wcx-box:focus-within { border-color: rgba(255, 255, 255, .34); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 0 0 4px rgba(255, 255, 255, .05), 0 10px 28px -12px #000; }
.wcx-box textarea::placeholder { color: rgba(255, 255, 255, .34); }
.wcx-send { background: rgba(255, 255, 255, .09); color: rgba(255, 255, 255, .4); box-shadow: none; }
.wcx-box.has .wcx-send { background: #fff; color: #000; box-shadow: 0 6px 18px -6px rgba(255, 255, 255, .45); }
.wcx-send:active { transform: scale(.9); }
.wcx-signin-bar { background: linear-gradient(0deg, rgba(0, 0, 0, .8), rgba(0, 0, 0, 0)); position: relative; z-index: 6; }

/* ---------- picker ---------- */
.wcx-pk {
  border-top: 1px solid var(--wg-edge); height: 262px; position: relative; z-index: 7;
  background: rgba(10, 10, 12, .78);
  -webkit-backdrop-filter: blur(34px) saturate(170%); backdrop-filter: blur(34px) saturate(170%);
}
.wcx-pkt button { background: rgba(255, 255, 255, .06); border: 1px solid var(--wg-edge); }
.wcx-pkt button.on { background: rgba(255, 255, 255, .18); color: #fff; }
.wcx-grid button:active { background: rgba(255, 255, 255, .12); }
.wcx-jl { background: rgba(255, 255, 255, .12); border: 1px solid var(--wg-edge-hi); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 10px 26px -10px #000; }
.wcx-jl span:not(:empty) { background: #fff; color: #000; }

/* ---------- lists (Messages, Friends) ---------- */
.wcx-pad { padding: 10px 12px 28px; }
.wcx-row {
  margin: 0 0 8px; width: 100%; padding: 11px 14px; border-radius: 22px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .03));
  border: 1px solid var(--wcx-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: transform .15s, background .2s;
}
.wcx-row:active { transform: scale(.985); background: rgba(255, 255, 255, .11); }
.wcx-rt b { font-weight: 600; letter-spacing: -.01em; }
.wcx-chev { color: rgba(255, 255, 255, .3); }
.wcx-sec, .wcx-sec2 { color: var(--wg-dim); letter-spacing: .12em; }
.wcx-mini { background: rgba(255, 255, 255, .09); border: 1px solid var(--wg-edge); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.wcx-mini.wcx-pri { background: #fff; color: #000; border-color: transparent; }
.wcx-btn { background: rgba(255, 255, 255, .08); border: 1px solid var(--wg-edge); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.wcx-btn.wcx-pri { background: #fff; color: #000; border-color: transparent; box-shadow: 0 8px 24px -10px rgba(255, 255, 255, .5); }
.wcx .wcx-empty .wcx-btn.wcx-pri, .wcx-empty .wcx-btn.wcx-pri { background: none; color: #fff; box-shadow: none; }
.wcx .wcx-signin-bar .wcx-btn, .wcx .wcx-signin-bar .wcx-btn.wcx-pri { background: none; color: #fff; box-shadow: none; }
.wcx-empty img { opacity: .9; filter: grayscale(.25) drop-shadow(0 10px 24px rgba(255, 255, 255, .08)); }
.wcx-find input, .wcx-field input, .wcx-field textarea, .wcx-ann {
  background: rgba(255, 255, 255, .06); border: 1px solid var(--wg-edge); border-radius: 18px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.wcx-find input:focus, .wcx-field input:focus, .wcx-field textarea:focus { border-color: rgba(255, 255, 255, .36); }
.wcx-more { background: rgba(255, 255, 255, .07); border: 1px solid var(--wg-edge); }
.wcx-me, .wcx-like, .wcx-id { background: rgba(255, 255, 255, .055); border: 1px solid var(--wcx-line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.wcx-like.wcx-liked { color: #fff; border-color: rgba(255, 255, 255, .5); }
.wcx-pill { background: rgba(255, 255, 255, .12); }

/* Messages list: unread dot, preview, pinned system thread */
.wcx-row .wcx-rt small { display: block; }
.wcx-row .wcx-pv { color: var(--wg-dim); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wcx-row .wcx-rm2 { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.wcx-row .wcx-rtm { font-size: 11px; color: var(--wg-dim); font-variant-numeric: tabular-nums; }
.wcx-row .wcx-ud { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #fff; color: #000; font: 700 10.5px/18px Inter, system-ui, sans-serif; text-align: center; }
.wcx-row.wcx-sys { border-color: rgba(255, 255, 255, .2); background: linear-gradient(150deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .05)); }
.wcx-row .wcx-bt { margin-left: 6px; }

/* read-only system thread notice */
.wcx-ro {
  position: relative; z-index: 6; flex: none; text-align: center; font-size: 12.5px; color: var(--wg-dim);
  padding: 12px 18px calc(env(safe-area-inset-bottom, 0px) + 14px);
  background: linear-gradient(0deg, rgba(0, 0, 0, .86), rgba(0, 0, 0, 0));
}
.wcx-ro[hidden] { display: none; }

/* moderation report card inside the thread (rendered from the report text) */
.wcx-rpt { display: flex; flex-direction: column; gap: 7px; min-width: min(250px, 70vw); }
.wcx-rpt-h { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 14.5px; letter-spacing: -.01em; }
.wcx-rpt-h .wcx-i { width: 17px; height: 17px; opacity: .85; }
.wcx-rpt-tag { margin-left: auto; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid var(--wg-edge); font-weight: 700; }
.wcx-rpt-r { display: grid; grid-template-columns: 76px 1fr; gap: 8px; font-size: 13.5px; line-height: 1.35; padding-top: 7px; border-top: 1px solid rgba(255, 255, 255, .08); }
.wcx-rpt-r span:first-child { color: var(--wg-dim); font-size: 12px; padding-top: 1px; }
.wcx-rpt-r span:last-child { word-break: break-word; overflow-wrap: anywhere; white-space: pre-wrap; }
.wcx-rpt-q { margin: 0; padding: 8px 10px; border-radius: 12px; background: rgba(0, 0, 0, .36); border-left: 2px solid rgba(255, 255, 255, .45); font-size: 13px; white-space: pre-wrap; word-break: break-word; }

/* ---------- profile column ---------- */
.wcx-ps { background: rgba(0, 0, 0, .8); -webkit-backdrop-filter: blur(40px) saturate(160%); backdrop-filter: blur(40px) saturate(160%); }
.wcx-ps-top .wcx-ib { background: rgba(255, 255, 255, .09); border: 1px solid var(--wg-edge); }
.wcx-ps-foot { background: linear-gradient(0deg, rgba(0, 0, 0, .9), rgba(0, 0, 0, .5)); border-top: 1px solid var(--wcx-line); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.wcx-ps-foot .wcx-btn { border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid var(--wg-edge); color: #fff; }
.wcx-ps-foot .wcx-btn.wcx-pri { background: #fff; color: #000; box-shadow: none; }
.wcx-ps-foot .wcx-btn.wcx-ghost { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: #fff; }
.wcx-ps-foot .wcx-btn.wcx-danger { background: rgba(255, 120, 140, .08); border-color: rgba(255, 140, 155, .3); color: #ff9aa8; }

/* ---------- sheets ---------- */
.wcx-sheet { background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.wcx-sh-in {
  max-width: 520px; border-radius: 30px 30px 0 0; padding: 10px 12px calc(env(safe-area-inset-bottom, 0px) + 12px);
  background: linear-gradient(180deg, rgba(34, 34, 38, .78), rgba(14, 14, 16, .86));
  border: 1px solid var(--wg-edge); border-bottom: 0;
  -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 -20px 60px -20px #000;
}
.wcx-sh-in::before { content: ""; display: block; width: 38px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .22); margin: 2px auto 12px; }
.wcx-se { background: rgba(255, 255, 255, .08); border: 1px solid var(--wcx-line); }
.wcx-sb-list { background: rgba(255, 255, 255, .06); border-radius: 22px; border: 1px solid var(--wcx-line); }
.wcx-sb { border-bottom: 1px solid rgba(255, 255, 255, .07); }
.wcx .wcx-sb.wcx-danger, .wcx-sb.wcx-danger { color: #ff9aa8; }
.wcx-cancel, .wcx .wcx-cancel { background: rgba(255, 255, 255, .1); border-radius: 22px; }
.wcx-toast { background: rgba(30, 30, 34, .78); color: #fff; border: 1px solid var(--wg-edge); -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%); box-shadow: 0 14px 40px -14px #000, inset 0 1px 0 rgba(255, 255, 255, .14); }
.wcx-zoom, .wcx-gv { background: rgba(0, 0, 0, .94); }
.wcx-gv-h .wcx-ib { background: rgba(255, 255, 255, .1); }

/* nav badges follow the same palette */
#cnav a .wcx-nb { background: #fff; color: #000; box-shadow: 0 0 0 2px #000; }
#cnav a .wcx-mb { background: rgba(255, 255, 255, .22); color: #fff; box-shadow: 0 0 0 2px #000; }

/* desktop: centred column, glass card */
@media (min-width: 821px) {
  .wcx-p[data-p] { max-width: 760px; width: 100%; margin: 0 auto; border-left: 1px solid var(--wcx-line); border-right: 1px solid var(--wcx-line); }
}

/* if backdrop blur is unavailable, fall back to solid dark surfaces */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .wcx-h, .wcx-comp, .wcx-pk, .wcx-sh-in, .wcx-men { background: #0c0c0e; }
  .wcx-b { background: #161618; }
  .wcx-m.me .wcx-b { background: #2c2c31; }
}
@media (prefers-reduced-motion: reduce) { .wcx::before, .wcx::after { animation: none; } }
@media (prefers-reduced-transparency: reduce) { .wcx::before, .wcx::after { display: none; } }

.wcx-rptw { display: flow-root; }
.wcx-rptw .wcx-tm { margin-top: 8px; }
.wcx-m .wcx-rpt-r:first-of-type { margin-top: 2px; }

/* ================= V56 fixes ================= */
/* `.wcx button{padding:0}` outranked the single-class rules, so rows and sheet items lost their padding. Re-assert with .wcx prefix. */
.wcx .wcx-sb { padding: 0 18px; height: 54px; gap: 14px; width: 100%; }
.wcx .wcx-sb .wcx-i { width: 20px; height: 20px; opacity: .9; }
.wcx .wcx-sb .wcx-sv { margin-left: auto; padding-left: 14px; color: var(--wg-dim); font-style: normal; font-size: 14px; }
.wcx .wcx-sb-list { padding: 2px 0; }
.wcx .wcx-sec2 { padding: 14px 18px 8px; font-size: 11px; font-weight: 700; }
.wcx .wcx-cancel { height: 54px; margin-top: 10px; }
.wcx .wcx-row { padding: 12px 16px; gap: 12px; margin: 0 0 8px; width: 100%; align-items: center; }
.wcx .wcx-row .wcx-av { width: 44px; height: 44px; font-size: 17px; }
.wcx .wcx-rt { gap: 2px; }
.wcx .wcx-rt b { font-size: 15.5px; display: flex; align-items: center; }
.wcx .wcx-mini { height: 34px; padding: 0 16px; }
.wcx .wcx-btn { padding: 0 18px; }
.wcx .wcx-more { padding: 8px 16px; }
.wcx .wcx-jl { padding: 0 14px; }
.wcx .wcx-pkt button { padding: 0 14px; }
.wcx .wcx-men button { padding: 8px 12px; }
.wcx .wcx-rx { padding: 0 8px 0 5px; }
.wcx .wcx-me { padding: 12px 14px; margin: 12px 0 0; gap: 12px; }
.wcx .wcx-me .wcx-av { width: 42px; height: 42px; }
.wcx .wcx-find { padding: 10px 0 4px; }
.wcx .wcx-find input { padding: 0 16px; height: 46px; }
.wcx .wcx-ps-foot .wcx-btn { padding: 0 16px; }
.wcx .wcx-pad .wcx-row { margin-left: 0; margin-right: 0; }

/* names: white unless the member styled their own name (their inline style still wins) */
.wcx .wcx-nm, .wcx button.wcx-nm { color: #fff; font-weight: 650; }
.wcx .wcx-q b, .wcx .wcx-rep b { color: #fff; }
.wcx .wcx-men-t b { color: #fff; }

/* bubbles hug their text instead of stretching to the name row */
.wcx .wcx-col { align-items: flex-start; }
.wcx .wcx-m.me .wcx-col { align-items: flex-end; }
.wcx .wcx-b { min-width: 0; max-width: 100%; }
.wcx .wcx-nm { margin: 0 0 3px 10px; display: flex; align-items: center; gap: 2px; }

/* reply quote: compact, one accent bar, name + single-line preview */
.wcx .wcx-q {
  display: flex; flex-direction: column; gap: 1px; align-items: flex-start;
  width: 100%; min-width: 150px; margin: 2px 0 7px; padding: 6px 10px 6px 11px;
  border: 0; border-radius: 12px; text-align: left; position: relative; overflow: hidden;
  background: rgba(255, 255, 255, .09);
}
.wcx .wcx-q::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: rgba(255, 255, 255, .75); border-radius: 3px; }
.wcx .wcx-m.me .wcx-q { background: rgba(0, 0, 0, .22); }
.wcx .wcx-q b { display: block; max-width: 100%; font-size: 12px; font-weight: 650; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wcx .wcx-q span { display: block; max-width: 100%; font-size: 12.5px; line-height: 1.3; opacity: .72; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wcx .wcx-b:has(> .wcx-q) { min-width: 170px; }
/* the "replying to" bar above the composer */
.wcx .wcx-rep { padding: 8px 8px 8px 14px; gap: 10px; }
.wcx .wcx-rep button { flex: none; }

/* moderation report card */
.wcx-rpt-h { gap: 10px; }
.wcx-rpt-ic { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; background: rgba(255, 255, 255, .13); border: 1px solid var(--wg-edge); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
.wcx-rpt-ic .wcx-i { width: 17px; height: 17px; opacity: 1; }
.wcx-rpt-t { font-size: 15px; }
.wcx-rpt-r { grid-template-columns: 82px 1fr; }
.wcx .wcx-rptw { min-width: min(260px, 72vw); }

/* ---------- V58: solid header + tabs, messages no longer slide under them ---------- */
.wcx-p[data-p="thread"] > .wcx-h {
  background: #000;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.wcx-p[data-p="thread"] > .wcx-seg {
  margin: 0; padding: 8px 14px 8px; gap: 8px;
  border-radius: 0; border: 0; border-bottom: 1px solid var(--wcx-line);
  background: #000; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.wcx-p[data-p="thread"] > .wcx-seg button {
  height: 34px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--wg-edge);
}
.wcx-p[data-p="thread"] > .wcx-seg button.on {
  background: linear-gradient(145deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .09));
  border-color: var(--wg-edge-hi);
}
.wcx-p[data-p="thread"] #wcx-list { margin-top: 0; padding-top: 10px; }
.wcx-stack { padding-left: 5px; }
.wcx-sub { flex-wrap: nowrap; }

/* sign-in bar with the guest fallback */
.wcx-signin-bar { flex-direction: column; align-items: center; gap: 6px; }
.wcx-signin-row { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
.wcx-anon-err { color: var(--wg-dim); font-size: 12px; text-align: center; max-width: 320px; }
.wcx-anon-err[hidden] { display: none; }
.wcx .wcx-signin-bar .wcx-btn.wcx-ghost { font-size: 14px; font-weight: 600; opacity: .8; }

/* guest bar: small and quiet */
.wcx-guest-bar { display: block; margin: 6px 14px 8px; padding: 6px 10px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--wcx-line); font-size: 12px; box-shadow: none; }
.wcx-guest-bar .wcx-gb-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wcx-guest-bar .wcx-gb-row span { opacity: .75; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wcx-guest-bar .wcx-gb-more, .wcx-guest-bar .wcx-gb-link { background: none; border: 0; box-shadow: none; padding: 2px 4px; font-size: 12px; color: var(--wg-dim); text-decoration: underline; text-underline-offset: 2px; height: auto; }
.wcx-guest-bar .wcx-gb-det { margin-top: 6px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; opacity: .8; }
.wcx-guest-bar .wcx-gb-det[hidden] { display: none; }
.wcx-guest-bar .wcx-gb-link { color: var(--wg-ink); padding-left: 0; }

/* V85: menus and the profile column are solid black, nothing from the chat shows through */
.wcx-sheet, .wcx .wcx-sheet { background: rgba(0, 0, 0, .4) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.wcx-sh-in { background: #0c0c0e !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.wcx-ps, .wcx .wcx-ps { background: #000 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.wcx-ps-foot { background: #000 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.wcx-ps .box.pf, .wcx-ps .box, .wcx-ps .pst > div, .wcx-ps .pgen { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.wcx-ps .box.pf { background-color: #0b0b0c !important; }
.wcx-ps-top { background: #000 !important; position: relative; z-index: 2; }
#cnav a[data-nv="chat"] { overflow: visible !important; }
#cnav a .wcx-nb, #cnav a .wcx-mb { z-index: 3; top: -6px !important; }
.wcx-rpt-pic { margin-top: 8px; border-radius: 14px; overflow: hidden; }
.wcx-rpt-pic img { max-width: 100%; display: block; border-radius: 14px; }
.wcx-rpt-pic > * { margin: 0 !important; max-width: 100% !important; }
/* V87: chat badges sit on the chat icon like a small round count (white on dark), mentions as a black @ bubble */
html #cnav a[data-nv="chat"] .wcx-nb { top: 2px; right: 8px; min-width: 18px; height: 18px; font-size: 11px; line-height: 18px; background: #fff; color: #000; box-shadow: 0 0 0 2px rgba(0,0,0,.9); }
html #cnav a[data-nv="chat"] .wcx-mb { top: 2px; left: 8px; }


/* ---------- V103: same look in every browser ---------- */
.wcx { --wg-bot: 88px; }
/* composer: solid footing so messages never show through the box, with or without backdrop blur */
.wcx-comp {
  background: linear-gradient(0deg, #000 0, #000 calc(100% - 16px), rgba(0, 0, 0, 0) 100%);
}
.wcx-box { background: #111113; }
.wcx-plus { background: #111113; }
.wcx-box, .wcx-plus, .wcx-day span { -webkit-backdrop-filter: none; backdrop-filter: none; }
/* guest line sits under the composer on a solid base */
.wcx-guest-bar { background: #0b0b0c; -webkit-backdrop-filter: none; backdrop-filter: none; z-index: 6; }
.wcx-list { overflow-anchor: none; }

/* V118: guest bar - "Show more" first, then "Continue" */
.wcx-guest-bar .wcx-gb-btns { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.wcx-guest-bar .wcx-gb-cont { background: var(--wg-ink, #fff); color: #000; border: 0; border-radius: 999px; padding: 5px 13px; font-size: 12.5px; font-weight: 650; height: auto; cursor: pointer; }
.wcx-guest-bar .wcx-gb-cont:active { opacity: .75; }

/* V119: rotating hint in the message box ("Message" <-> "Type / for bot cmts"), fades in and out every 4 s */
.wcx-box{position:relative}
.wcx-box .wcx-hint{position:absolute;left:13px;right:96px;top:0;bottom:0;display:flex;align-items:center;pointer-events:none;overflow:hidden;white-space:nowrap;color:#6b6b74;font-size:15px}
.wcx-box .wcx-hint i{position:absolute;left:0;font-style:normal;opacity:0;animation:wcxHint 8s ease-in-out infinite both}
.wcx-box .wcx-hint i+i{animation-delay:4s}
.wcx-box textarea:not(:placeholder-shown)~.wcx-hint{display:none}
@keyframes wcxHint{0%{opacity:0}7%,43%{opacity:1}50%,100%{opacity:0}}
@media (prefers-reduced-motion:reduce){.wcx-box .wcx-hint i{animation-duration:8s}}

/* V120: Games | Reactions switch, compact game grid and reaction chips (no scrolling past one list to reach the other) */
.wcx .wcx-men{padding:6px 6px 8px}
.wcx .wcx-men .wcx-mx{display:flex;flex-direction:column;max-height:250px}
.wcx-mx-t{flex:none;display:flex;gap:4px;padding:3px;margin:0 2px 8px;border-radius:999px;background:rgba(255,255,255,.07)}
.wcx .wcx-mx-t button{flex:1;width:auto;height:32px;padding:0 10px;border-radius:999px;font-size:13px;font-weight:650;color:rgba(255,255,255,.6);display:flex;align-items:center;justify-content:center;gap:7px;background:none;transition:background .18s,color .18s}
.wcx .wcx-mx-t button.on{background:#fff;color:#111}
.wcx .wcx-mx-t button svg{flex:none}
.wcx-mx-b{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 2px 2px}
.wcx-gg2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.wcx .wcx-men .wcx-gg2 button,.wcx .wcx-an .wcx-gg2 button{width:auto;display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:16px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);text-align:left;flex-direction:row;justify-content:flex-start;font-weight:400}
.wcx .wcx-gg2 button:active{background:rgba(255,255,255,.1)}
.wcx-gi{flex:none;width:34px;height:34px;border-radius:12px;display:grid;place-items:center;background:rgba(255,255,255,.07);color:var(--c,#fff)}
.wcx-gg2 .wcx-men-t{min-width:0;flex:1}
.wcx-gg2 .wcx-men-t b{font-size:13px;font-weight:700;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wcx-gg2 .wcx-men-t small{font-size:11px;color:rgba(255,255,255,.5);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wcx-rr{display:flex;flex-wrap:wrap;gap:6px}
.wcx .wcx-men .wcx-rr button{width:auto;height:32px;padding:0 12px;border-radius:999px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);font-size:13px;font-weight:600;color:#fff}
.wcx .wcx-men .wcx-rr button:active{background:rgba(255,255,255,.14)}
.wcx .wcx-an .wcx-mx-t{margin:0 0 10px}
.wcx-gm .wgc{margin:2px 0 0}
.wcx-gm .wcx-tm{margin-top:2px}
