/* Coin Exchange Chat (chat.js), laid out like Telegram (Brady, November 12): a chat list with folders on the left,
   the open room with message bubbles in the middle (yours on the right), and a room info panel on the right that the
   header opens (kept open on wide screens). Direction 2 colors: black/charcoal panels, blue actions, white line
   icons; Light keeps light panels with blue actions. Phones (850px and narrower) show the list, then the open room full
   screen with a back button; the info panel opens over it. */

body.xc-on{
  --xc-panel:#fff;--xc-panel2:#f4f5f7;--xc-line:#e1e4e8;--xc-text:#15181c;--xc-muted:#6b737d;--xc-field:#f1f3f5;
  --xc-wall:#dfe6ec;--xc-dot:rgba(30,60,100,.07);--xc-in:#fff;--xc-out:#d6e7ff;--xc-out-text:#10243f;--xc-stamp:#7f8a96;--xc-stamp-out:#4f6c92;
  --xc-row-on:#2f7bf5;--xc-blue:#2f7bf5;--xc-blue-grad:linear-gradient(180deg,#3d86f7,#1f68dc);--xc-badge:#2f7bf5;--xc-badge-muted:#a2abb5;--xc-live:#2fbf5b;
  --xc-shadow:0 1px 1.5px rgba(16,35,47,.15);--xc-ico:#e8edf4;--xc-ico-line:#cfd7e2;
}
html[data-theme=dark] body.xc-on{
  --xc-panel:#0f1113;--xc-panel2:#181b1f;--xc-line:#24282d;--xc-text:#f1f3f5;--xc-muted:#9aa1a9;--xc-field:#1a1d21;
  --xc-wall:#0b0d10;--xc-dot:rgba(120,150,190,.07);--xc-in:#1c2026;--xc-out:#1d4c8f;--xc-out-text:#f3f7ff;--xc-stamp:#8d949c;--xc-stamp-out:#a9c4ec;
  --xc-row-on:#1f5fc4;--xc-badge-muted:#4b5158;--xc-shadow:0 1px 2px rgba(0,0,0,.45);--xc-ico:#1b2230;--xc-ico-line:#2c3a55;
}
/* The panes use the site's own card colors, as Messages does (Brady, 2026-11-17); only the message wall keeps its own. */
body.xc-on,html[data-theme=dark] body.xc-on{--xc-panel:var(--rd-card);--xc-panel2:var(--rd-card2);--xc-line:var(--rd-line);--xc-text:var(--rd-text);--xc-muted:var(--rd-muted);--xc-field:var(--rd-field)}
/* The Coin listings / chat tabs above the page: the top bar's Coin Exchange Chat tab replaces them here. */
body.xc-on #coinSectionTabs{display:none}

.xc{color:var(--xc-text);font-family:Inter,system-ui,sans-serif}
.xc *{box-sizing:border-box}
.xc [hidden]{display:none!important}
/* The site's theme rules color headings and fields strongly; the chat keeps its own colors in every theme. */
body.xc-on .xc :is(h2,h3,h4,.xc-bubble,.xc-bubble p,.xc-room-text b,.xc-people a){color:var(--xc-text)!important}
body.xc-on .xc .xc-msg.is-mine :is(.xc-bubble,.xc-bubble p){color:var(--xc-out-text)!important}
body.xc-on .xc :is(.xc-field input,.xc-row textarea){background:none!important;color:var(--xc-text)!important;border:0!important;box-shadow:none!important}
.xc-title{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.xc button{font:inherit;color:inherit}
.xc a{color:inherit}

/* ---- the frame: list | room | info, each its own card like Messages (Brady, 2026-11-17) ---- */
.xc-grid{display:grid;grid-template-columns:minmax(300px,360px) minmax(0,1fr);gap:12px;height:calc(100vh - 150px);min-height:540px;max-height:900px;position:sticky;top:96px}
.xc-grid.has-info{grid-template-columns:minmax(300px,360px) minmax(0,1fr) 300px}
.xc-list,.xc-main,.xc-info{border:1px solid var(--xc-line);border-radius:var(--rd-radius,14px);overflow:hidden}
.xc-list{position:relative;display:flex;flex-direction:column;min-height:0;background:var(--xc-panel)}
.xc-main{position:relative;display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--xc-wall)}
.xc-info{display:none;min-height:0;overflow-y:auto;background:var(--xc-panel)}
.xc-grid.has-info .xc-info{display:block}

/* ---- chat list: search, the Open to All / Verified switch, then the rooms in sections ---- */
.xc-search{display:flex;align-items:center;gap:8px;padding:14px 14px 0}
.xc-field{flex:1;min-width:0;display:flex;align-items:center;gap:8px;height:42px;padding:0 14px;border:1px solid var(--rd-field-line,var(--xc-line));border-radius:10px;background:var(--xc-field);color:var(--xc-muted)}
.xc-field input{flex:1;min-width:0;width:100%;border:0;background:none;outline:0;color:var(--xc-text);font:15px Inter,sans-serif;padding:0;height:auto}
.xc-field:focus-within{border-color:#3a8bff}
.xc-search .xc-icon-btn{width:42px;height:42px;border-radius:10px;border:1px solid var(--rd-field-line,var(--xc-line));background:var(--xc-field)}
/* The switch: two tiles like the Messages tabs (icon, name, who it's for, unread count); only for verified members. */
.xc-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px 14px 4px}
.xc-tab{position:relative;display:flex;align-items:center;gap:10px;min-width:0;min-height:58px;padding:8px 12px;border:1px solid var(--rd-field-line,var(--xc-line));border-radius:12px;background:var(--xc-panel2);color:var(--xc-text)!important;text-align:left;cursor:pointer}
.xc-tab svg{flex:none;opacity:.9}
.xc-tab span{display:flex;flex-direction:column;min-width:0}
.xc-tab b{font-size:15px;font-weight:700;line-height:1.2}
.xc-tab small{font-size:12px;color:var(--xc-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.xc-tab:hover{border-color:#3a8bff}
.xc-tab.is-on{background:var(--rd-blue-fill,var(--xc-blue-grad));border-color:#5b9dff;color:#fff!important;box-shadow:0 0 0 1px rgba(58,139,255,.55),0 0 18px rgba(47,123,245,.28)}
.xc-tab.is-on small{color:rgba(255,255,255,.85)}
.xc-tabcount{position:absolute;top:6px;right:8px;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#1560cb;color:#fff;font:700 11.5px/20px Inter,sans-serif;text-align:center}
.xc-tab.is-on .xc-tabcount{background:#fff;color:#1560cb}
.xc-room-list{list-style:none;margin:0;padding:4px 8px 84px;overflow-y:auto;flex:1;min-height:0}
/* Section headings: small silver capitals like the side menu's, with how many rooms are in the section. */
.xc-sec{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:14px 6px 4px;padding-bottom:6px;border-bottom:1px solid var(--xc-line);color:var(--xc-muted);font-size:11.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.xc-sec:first-child{margin-top:8px}
.xc-sec span{display:inline-flex;align-items:center;gap:7px;min-width:0}
.xc-sec small{font-size:11.5px;font-weight:600;letter-spacing:0}
.xc-room{width:100%;display:flex;align-items:center;gap:12px;margin:2px 0;padding:8px 10px;border:1px solid transparent;border-radius:12px;background:none;text-align:left;cursor:pointer}
.xc-room:hover{background:var(--xc-panel2)}
.xc-room.is-on{background:var(--rd-ico-bg,rgba(21,96,203,.14));border-color:#3a8bff;box-shadow:0 0 0 1px rgba(58,139,255,.55),0 0 18px rgba(47,123,245,.28)}
/* look-v2.css outlines every dark-theme button; rows stay unboxed (only the open room glows), tiles keep the field line. */
html:not(#v2)[data-theme=dark] body.xc-on .xc .xc-room{border-color:transparent!important}
html:not(#v2)[data-theme=dark] body.xc-on .xc .xc-room.is-on{border-color:#3a8bff!important}
html:not(#v2)[data-theme=dark] body.xc-on .xc :is(.xc-tab,.xc-search .xc-icon-btn){border-color:var(--rd-field-line)!important}
html:not(#v2)[data-theme=dark] body.xc-on .xc .xc-tab.is-on{border-color:#5b9dff!important}
html:not(#v2)[data-theme=dark] body.xc-on .xc .xc-tab:hover{border-color:#3a8bff!important}
/* Room avatars (Brady, 2026-11-16): a dark disc tinted by the room's color, a soft ring in that color and a
   silver-white line icon, in place of the bright Telegram circles; a room's own photo fills the disc instead. */
.xc-rav{flex:none;position:relative;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;overflow:hidden;
  color:hsl(var(--h,211) 30% 92%);
  background:radial-gradient(circle at 32% 26%,hsl(var(--h,211) 46% 38%),hsl(var(--h,211) 38% 22%) 62%,hsl(var(--h,211) 30% 15%));
  box-shadow:inset 0 0 0 1.5px hsl(var(--h,211) 62% 64% / .55),inset 0 1px 0 rgba(255,255,255,.14),0 1px 3px rgba(0,0,0,.35)}
.xc-rav svg{filter:drop-shadow(0 1px 1px rgba(0,0,0,.35))}
.xc-rav.has-photo{background:#1c1f24}
.xc-rav img{width:100%;height:100%;object-fit:cover;display:block}
.xc-rav.has-photo::after{content:"";position:absolute;inset:0;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(255,255,255,.16);pointer-events:none}
.xc-rav.is-head{width:42px;height:42px}
.xc-rav.is-head svg{width:22px;height:22px}
.xc-rav.is-big{width:84px;height:84px;margin:0 auto 10px}
.xc-rav.is-big svg{width:40px;height:40px}
.xc-room-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.xc-room-top,.xc-room-bottom{display:flex;align-items:center;gap:6px;min-width:0}
.xc-room-top b{flex:1;min-width:0;font-size:15.5px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.xc-room-top time{flex:none;font-size:12.5px;color:var(--xc-muted)}
.xc-room-bottom small{flex:1;min-width:0;font-size:14px;color:var(--xc-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.xc-room-text>small{font-size:14px;color:var(--xc-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.xc-who{color:var(--xc-text)}
.xc-count{flex:none;min-width:22px;height:22px;padding:0 7px;border-radius:11px;background:var(--xc-badge);color:#fff;font-size:12.5px;font-weight:700;display:grid;place-items:center}
.xc-count.is-muted{background:var(--xc-badge-muted)}
.xc-none{padding:22px 12px;color:var(--xc-muted);font-size:14px;line-height:1.45;text-align:center}
.xc-status{display:inline-block;padding:1px 8px;border-radius:9px;font-size:12px;font-weight:700;background:var(--xc-panel2);color:var(--xc-muted)}
.xc-status.is-pending{background:rgba(47,123,245,.16);color:var(--xc-blue)}
.xc-status.is-rejected,.xc-status.is-removed{background:rgba(224,49,43,.15);color:#e0473f}
.xc-fab{position:absolute;right:16px;bottom:16px;width:54px;height:54px;border:0;border-radius:50%;background:var(--xc-blue-grad);color:#fff!important;display:grid;place-items:center;cursor:pointer;box-shadow:0 4px 14px rgba(0,0,0,.35)}
.xc-fab:hover{filter:brightness(1.08)}

/* ---- the open room ---- */
.xc-head{flex:none;display:flex;align-items:center;gap:8px;min-height:58px;padding:6px 10px;background:var(--xc-panel);border-bottom:1px solid var(--xc-line)}
.xc-head-main{flex:1;min-width:0;display:flex;align-items:center;gap:11px;padding:4px;border:0;background:none;text-align:left;cursor:pointer;border-radius:8px}
.xc-head-text{flex:1;min-width:0;display:flex;flex-direction:column}
.xc-head h2{margin:0;font:650 16.5px/1.25 Inter,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.xc-sub{font-size:13.5px;color:var(--xc-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.xc-sub.is-typing{color:var(--xc-blue)}
.xc-back{display:none;border:0;background:none;padding:6px;margin-left:-4px;cursor:pointer;color:var(--xc-text)}
.xc-join{height:36px;padding:0 18px;border-radius:18px;border:0;background:var(--xc-blue-grad);color:#fff!important;font-weight:700;font-size:14.5px;cursor:pointer}
.xc-icon-btn{flex:none;width:40px;height:40px;border:0;border-radius:50%;background:none;display:grid;place-items:center;cursor:pointer;color:var(--xc-muted)!important}
.xc-icon-btn:hover,.xc-icon-btn.is-on{background:var(--xc-panel2);color:var(--xc-text)!important}
.xc-icon-btn.is-on{color:var(--xc-blue)!important}
.xc-icon-btn:disabled{opacity:.4;cursor:default}
.xc-menu-wrap,.xc-attach-wrap,.xc-emoji-wrap{position:relative;flex:none}
.xc-menu{position:absolute;right:0;top:44px;z-index:20;min-width:190px;padding:6px;border:1px solid var(--xc-line);border-radius:12px;background:var(--xc-panel);box-shadow:0 12px 30px rgba(0,0,0,.35)}
.xc-menu.is-up{top:auto;bottom:48px;left:0;right:auto}
.xc-menu button{display:flex;align-items:center;gap:10px;width:100%;padding:9px 12px;border:0;border-radius:8px;background:none;text-align:left;cursor:pointer;font-size:14.5px}
.xc-menu button:hover{background:var(--xc-panel2)}
.xc-menu button:disabled{opacity:.45;cursor:default}

/* The wall behind the messages: a faint dot pattern, like Telegram's. */
.xc-stream{flex:1;min-height:0;overflow-y:auto;background-color:var(--xc-wall);background-image:radial-gradient(var(--xc-dot) 1.2px,transparent 1.4px);background-size:22px 22px}
.xc-stream-in{max-width:760px;margin:0 auto;padding:10px 14px 8px;display:flex;flex-direction:column;min-height:100%;justify-content:flex-end}
.xc-intro{text-align:center;padding:24px 12px 12px;color:var(--xc-muted);align-self:center;max-width:420px}
.xc-intro h3{margin:0 0 4px;font-size:18px}
.xc-intro p{margin:0 0 4px;font-size:14px;line-height:1.45}
.xc-intro-small{font-size:12.5px!important}
.xc-older{display:block;margin:6px auto 10px;padding:6px 14px;border:0;border-radius:14px;background:rgba(0,0,0,.35);color:#fff!important;cursor:pointer;font-size:13px}
.xc-day,.xc-new{display:flex;justify-content:center;margin:12px 0 8px;position:sticky;top:6px;z-index:2}
.xc-day span{padding:4px 12px;border-radius:14px;background:rgba(0,0,0,.38);color:#fff;font-size:13px;font-weight:600;backdrop-filter:blur(4px)}
html:not([data-theme=dark]) body.xc-on .xc-day span{background:rgba(70,95,120,.55)}
.xc-new{position:static}
.xc-new span{width:100%;padding:4px;text-align:center;background:var(--xc-panel);color:var(--xc-blue);font-size:13px;font-weight:600;border-radius:6px;opacity:.92}

.xc-msg{position:relative;display:flex;align-items:flex-end;gap:8px;margin-top:2px}
.xc-msg.is-first{margin-top:8px}
.xc-msg.is-mine{flex-direction:row-reverse}
.xc-msg.is-flash .xc-bubble{box-shadow:0 0 0 3px rgba(47,123,245,.55)}
.xc-av{flex:none;width:36px;height:36px;border-radius:50%;overflow:hidden;display:grid;place-items:center;color:#fff;text-decoration:none;font-weight:700;font-size:14px;
  background:linear-gradient(160deg,hsl(var(--h,211) 70% 60%),hsl(var(--h,211) 60% 44%))}
.xc-av img{width:100%;height:100%;object-fit:cover}
.xc-av.is-small{width:32px;height:32px;font-size:12px}
.xc-av-gap{flex:none;width:36px}
.xc-bubble{position:relative;max-width:min(78%,520px);padding:6px 10px 6px;border-radius:14px;background:var(--xc-in);box-shadow:var(--xc-shadow);font-size:15px;line-height:1.38}
.xc-msg.is-mine .xc-bubble{background:var(--xc-out)}
.xc-msg.is-last:not(.is-mine) .xc-bubble{border-bottom-left-radius:4px}
.xc-msg.is-last.is-mine .xc-bubble{border-bottom-right-radius:4px}
.xc-bubble p{display:inline;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.xc-bubble a{color:var(--v2-link,#2f7bf5)}
.xc-msg.is-mine .xc-bubble a{color:inherit;text-decoration:underline}
.xc-msg.is-removed .xc-bubble{opacity:.65}
.xc-from{display:flex;align-items:center;gap:6px;margin-bottom:2px}
.xc-name{font-weight:650;font-size:14px;text-decoration:none;color:hsl(var(--h,211) 75% 62%)!important}
html:not([data-theme=dark]) body.xc-on .xc-name{color:hsl(var(--h,211) 65% 42%)!important}
.xc-name:hover{text-decoration:underline}
/* Time (and thumbs-up) tucked in the bubble's bottom corner. */
.xc-stamp{float:right;display:inline-flex;align-items:center;gap:6px;margin:6px 0 -3px 12px;font-size:12px;color:var(--xc-stamp);position:relative;top:3px}
.xc-msg.is-mine .xc-stamp{color:var(--xc-stamp-out)}
.xc-stamp time{white-space:nowrap}
.xc-like{display:inline-flex;align-items:center;gap:3px;height:22px;padding:0 7px;border:0;border-radius:11px;background:rgba(127,127,127,.16);cursor:pointer;font-size:12.5px;line-height:1}
.xc-like span{font-weight:700}
.xc-like.is-mine{background:var(--xc-blue);color:#fff!important}
.xc-like.is-zero{opacity:0;width:0;padding:0;overflow:hidden;transition:opacity .12s}
.xc-msg:hover .xc-like.is-zero,.xc-like.is-zero:focus{opacity:.85;width:auto;padding:0 7px}
@media (hover:none){.xc-like.is-zero{opacity:.7;width:auto;padding:0 7px}}
.xc-quote{display:flex;flex-direction:column;align-items:flex-start;width:100%;margin:2px 0 5px;padding:3px 8px;border:0;border-left:3px solid currentColor;border-radius:5px;background:rgba(127,127,127,.13);text-align:left;font-size:13px;cursor:pointer;color:var(--xc-blue)!important}
.xc-msg.is-mine .xc-quote{color:var(--xc-out-text)!important}
.xc-quote b{font-weight:650}
.xc-quote span{max-width:100%;color:var(--xc-text);opacity:.8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.xc-msg.is-mine .xc-quote span{color:var(--xc-out-text)}
.xc-quote.is-gone{cursor:default;color:var(--xc-muted)!important}
.xc-note{margin:4px 0 0;font-size:13px;color:var(--xc-muted)}
.xc-photos{display:grid;gap:3px;margin:2px -6px 4px;max-width:380px;border-radius:10px;overflow:hidden}
.xc-photos.n2,.xc-photos.n3,.xc-photos.n4{grid-template-columns:1fr 1fr}
.xc-photos a{display:block;background:#000}
.xc-photos img{display:block;width:100%;max-height:340px;object-fit:cover}
.xc-photos:not(.n1) img{aspect-ratio:1;height:auto}
.xc-listing{display:flex;align-items:center;gap:10px;width:100%;min-width:230px;margin:4px 0 2px;padding:8px 10px;border:0;border-left:3px solid var(--xc-blue);border-radius:6px;background:rgba(127,127,127,.13);text-align:left;cursor:pointer}
.xc-listing b{display:block;font-size:14.5px}
.xc-listing small{opacity:.75;font-size:12.5px}
.xc-listing>span:nth-child(2){flex:1;min-width:0}
.xc-listing-ico{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--xc-blue);color:#fff;flex:none}
/* Reply and Report: small round buttons beside the bubble on hover. */
.xc-tools{align-self:center;display:flex;gap:2px;opacity:0;transition:opacity .12s}
.xc-msg:hover .xc-tools,.xc-msg:focus-within .xc-tools{opacity:1}
@media (hover:none){.xc-tools{opacity:.75}}
.xc-tool{width:30px;height:30px;border:0;border-radius:50%;background:rgba(0,0,0,.28);color:#fff!important;display:grid;place-items:center;cursor:pointer}
html:not([data-theme=dark]) body.xc-on .xc-tool{background:rgba(70,95,120,.45)}
.xc-tool:hover{background:var(--xc-blue)}
.xc-locked{display:grid;place-items:center}
.xc-locked .xc-intro{background:var(--xc-panel);border-radius:14px;padding:26px 20px;box-shadow:var(--xc-shadow)}
.xc-locked .xc-intro svg{color:var(--xc-blue)}
/* Phones only: the note sits above the room list, since the room panel is a tap away. */
.xc-lock-note{display:none}
.xc-locked .xc-join{margin-top:10px}
.xc-empty{padding:40px 10px;text-align:center;color:var(--xc-muted)}
.xc-empty.is-room{align-self:center;padding:10px 16px;margin:8px 0;border-radius:14px;background:rgba(0,0,0,.3);color:#fff}
html:not([data-theme=dark]) body.xc-on .xc-empty.is-room{background:rgba(70,95,120,.5)}
.xc-status-card{margin-top:10px!important;padding:10px 12px;border-radius:10px;background:var(--xc-panel);color:var(--xc-text);text-align:left}
.xc-spinner{display:inline-block;width:16px;height:16px;border:2px solid var(--xc-line);border-top-color:var(--xc-blue);border-radius:50%;animation:xc-spin .8s linear infinite;vertical-align:-3px;margin-right:6px}
@keyframes xc-spin{to{transform:rotate(360deg)}}
.xc-jump{position:absolute;right:18px;bottom:84px;z-index:5;width:44px;height:44px;border:0;border-radius:50%;background:var(--xc-panel);color:var(--xc-muted)!important;display:grid;place-items:center;cursor:pointer;box-shadow:0 3px 10px rgba(0,0,0,.35)}
.xc-jump svg{transform:rotate(-90deg)}
.xc-dots{display:inline-flex;gap:3px;margin-left:4px}
.xc-dots i{width:4px;height:4px;border-radius:50%;background:currentColor;animation:xc-dot 1.2s infinite}
.xc-dots i:nth-child(2){animation-delay:.2s}.xc-dots i:nth-child(3){animation-delay:.4s}
@keyframes xc-dot{0%,80%,100%{opacity:.3}40%{opacity:1}}

/* ---- the message box: attach, the text, emoji and a round send button ---- */
.xc-composer{flex:none;width:100%;max-width:788px;margin:0 auto;padding:6px 14px 12px}
.xc-join-note{margin:0 0 6px;padding:6px 12px;border-radius:10px;background:var(--xc-panel);font-size:13px;color:var(--xc-muted);text-align:center}
.xc-row{display:flex;align-items:flex-end;gap:4px;padding:3px 4px 3px 4px;border-radius:22px;background:var(--xc-panel);box-shadow:var(--xc-shadow)}
.xc-row textarea{flex:1;min-width:0;min-height:44px;max-height:160px;border:0;background:none;outline:0;resize:none;padding:11px 4px;color:var(--xc-text);font:15px/1.4 Inter,sans-serif}
.xc-row textarea::placeholder{color:var(--xc-muted)}
.xc-row .xc-icon-btn{width:44px;height:44px}
.xc-send{flex:none;width:44px;height:44px;border:0;border-radius:50%;background:var(--xc-blue-grad);color:#fff!important;display:grid;place-items:center;cursor:pointer}
.xc-send svg{margin-left:-2px}
.xc-send:disabled{opacity:.6}
.xc-emoji{position:absolute;right:0;bottom:52px;z-index:20;width:286px;display:grid;grid-template-columns:repeat(6,1fr);gap:2px;padding:8px;border:1px solid var(--xc-line);border-radius:14px;background:var(--xc-panel);box-shadow:0 12px 30px rgba(0,0,0,.35)}
.xc-emoji button{height:40px;border:0;border-radius:8px;background:none;font-size:22px;cursor:pointer}
.xc-emoji button:hover{background:var(--xc-panel2)}
.xc-bar{display:flex;align-items:center;gap:10px;margin-bottom:6px;padding:7px 10px;border-radius:12px;background:var(--xc-panel);box-shadow:var(--xc-shadow);color:var(--xc-blue);font-size:13.5px}
.xc-bar span{flex:1;min-width:0;display:flex;flex-direction:column;border-left:2px solid var(--xc-blue);padding-left:8px}
.xc-bar b{font-weight:650}
.xc-bar small{color:var(--xc-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}
.xc-bar button{border:0;background:none;cursor:pointer;color:var(--xc-muted);display:grid}
.xc-pending{display:flex;gap:8px;margin-bottom:6px;padding:8px;border-radius:12px;background:var(--xc-panel)}
.xc-pending span{position:relative}
.xc-pending img{width:62px;height:62px;border-radius:8px;object-fit:cover;display:block}
.xc-pending button{position:absolute;top:-7px;right:-7px;width:22px;height:22px;border:0;border-radius:50%;background:#000;color:#fff;font-size:14px;line-height:1;cursor:pointer}

/* ---- the info panel ---- */
.xc-info-top{position:relative;text-align:center;padding:26px 16px 16px;border-bottom:1px solid var(--xc-line)}
.xc-info-top h3{margin:0;font:650 19px/1.25 Inter,sans-serif}
.xc-info-top p{margin:3px 0 0;font-size:14px;color:var(--xc-muted)}
.xc-info-close{position:absolute;top:8px;right:8px}
.xc-info-sec{padding:14px 16px;border-bottom:1px solid var(--xc-line)}
.xc-info-sec h4{display:flex;align-items:center;justify-content:space-between;margin:0 0 8px;font-size:13px;font-weight:700;letter-spacing:.02em;color:var(--xc-blue)!important;text-transform:uppercase}
.xc-info-sec p{margin:0 0 4px;font-size:14.5px;line-height:1.45}
.xc-info-acts{display:flex;flex-direction:column;padding:8px}
.xc-act{width:100%;padding:11px 12px;border:0;border-radius:8px;background:none;text-align:left;cursor:pointer;font-size:14.5px;font-weight:600;color:var(--xc-text)}
.xc-act:hover{background:var(--xc-panel2)}
.xc-act.is-main{color:var(--xc-blue)!important}
.xc-act.is-danger{color:#e0473f!important}
.xc-live{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--xc-text);text-transform:none;letter-spacing:0}
.xc-live i{width:9px;height:9px;border-radius:50%;background:var(--xc-live)}
.xc-people{list-style:none;margin:0 0 8px;padding:0;display:flex;flex-direction:column;gap:8px}
.xc-people li{display:flex;align-items:center;gap:10px;font-size:14.5px;font-weight:600}
.xc-people li>a:last-child{text-decoration:none}
.xc-people li>a:last-child:hover{text-decoration:underline}
.xc-people.is-modal{max-height:50vh;overflow-y:auto}
.xc-muted{margin:0 0 8px;color:var(--xc-muted);font-size:14px}
.xc-link{display:inline-flex;align-items:center;gap:6px;padding:0;border:0;background:none;color:var(--v2-link,#2f7bf5)!important;font-weight:650;font-size:14px;text-decoration:none;cursor:pointer}
.xc-quick{display:flex;flex-direction:column;gap:6px;margin-bottom:10px}
.xc-q{display:flex;align-items:center;gap:12px;width:100%;padding:8px 10px;border:1px solid var(--xc-line);border-radius:10px;background:var(--xc-panel2);text-align:left;cursor:pointer}
.xc-q:hover{border-color:var(--xc-ico-line)}
.xc-q span{display:flex;flex-direction:column}
.xc-q b{font-size:14.5px}
.xc-q small{font-size:12.5px;color:var(--xc-muted)}

/* ---- the team's room settings and the room forms (in the dialog) ---- */
.xc-admin-h{margin:8px 0 4px;font-size:15px}
.xc-admin{list-style:none;margin:10px 0;padding:0;display:flex;flex-direction:column;gap:6px;max-height:50vh;overflow-y:auto}
.xc-admin li{display:flex;align-items:center;gap:10px;padding:8px;border:1px solid var(--v2-field-line,#ddd);border-radius:9px}
.xc-admin li.is-hidden{opacity:.6}
.xc-admin .xc-room-ico{width:34px;height:34px;background:rgba(127,127,127,.15);border:0;border-radius:50%;display:grid;place-items:center;flex:none}
.xc-admin .xc-room-ico{overflow:hidden}.xc-admin .xc-room-ico img{width:100%;height:100%;object-fit:cover;display:block}
.xc-admin-text{flex:1;min-width:0;display:flex;flex-direction:column}
.xc-admin-text small{opacity:.75;font-size:12.5px}
.xc-admin-tools{display:flex;gap:4px;flex:none}
.xc-admin-tools button{min-width:36px;height:34px;padding:0 10px}
.xc-room-form label{display:block;margin-top:10px}
.xc-check{display:flex!important;align-items:center;gap:8px}
.xc-check input{width:auto}
.xc-rules{padding-left:20px;line-height:1.5}
.xc-pick{display:flex;align-items:center;gap:8px;width:100%;margin-top:6px}

/* ---- narrower screens ---- */
@media (max-width:1250px){
  .xc-grid.has-info{grid-template-columns:minmax(260px,300px) minmax(0,1fr)}
  .xc-grid.has-info .xc-info{position:absolute;right:0;top:0;bottom:0;width:min(320px,100%);z-index:25;box-shadow:-10px 0 30px rgba(0,0,0,.35)}
}
@media (max-width:850px){
  .xc-grid,.xc-grid.has-info{display:block;height:auto;min-height:0;max-height:none;position:static}
  .xc-grid.is-room .xc-main,.xc-grid.has-info .xc-info{border:0;border-radius:0}
  .xc-search{padding:12px 12px 0}
  .xc-tabs{padding:10px 12px 2px}
  .xc-room-list{padding-left:6px;padding-right:6px}
  .xc-room-list{overflow:visible;padding-bottom:84px}
  .xc-fab{position:fixed;right:16px;bottom:calc(var(--xc-bottom,64px) + 78px)}
  .xc-main{display:none}
  .xc-grid.is-room .xc-list{display:none}
  .xc-grid.is-room .xc-main{display:flex;position:fixed;z-index:30;left:0;right:0;top:var(--xc-top,56px);bottom:var(--xc-bottom,64px)}
  .xc-grid.has-info .xc-info{position:fixed;z-index:31;left:0;right:0;top:var(--xc-top,56px);bottom:var(--xc-bottom,64px);width:auto;box-shadow:none}
  .xc-grid:not(.is-room) .xc-info{display:none}
  .xc-grid:not(.is-room) .xc-room.is-on{background:none;border-color:transparent;box-shadow:none}
  html:not(#v2)[data-theme=dark] body.xc-on .xc .xc-grid:not(.is-room) .xc-room.is-on{border-color:transparent!important}
  .xc-back{display:grid}
  .xc-lock-note{display:block;margin-bottom:12px;padding:14px;text-align:center;background:var(--xc-panel);border:1px solid var(--xc-line);border-radius:12px}
  .xc-lock-note b{font-size:16px;color:var(--xc-text)}
  .xc-lock-note p{margin:4px 0 10px;font-size:14px;color:var(--xc-muted)}
  .xc-head{padding:4px 6px}
  .xc-head .xc-join{padding:0 12px;height:32px;font-size:13.5px}
  .xc-stream-in{padding:8px 8px 6px}
  .xc-bubble{max-width:84%}
  .xc-av,.xc-av-gap{width:32px;height:32px}
  .xc-composer{padding:4px 6px 8px}
  .xc-tools{flex-direction:column;gap:4px}
  .xc-tool{width:28px;height:28px}
  .xc-emoji{right:-50px;width:260px}
  .xc-jump{bottom:74px;right:12px}
}
/* Muted rooms (a grey label beside the grey count) and the room form's trade-room guidance */
.xc-muted-tag{flex:none;margin-left:auto;padding:0 6px;font-size:11.5px;font-weight:600;color:var(--cm-muted,#8b929c)}
.xc-muted-tag+.xc-count{margin-left:6px}
.dlg-tile.is-off{opacity:.55;cursor:not-allowed}
.xc-form-hint{margin:-4px 0 4px;font-size:13px;color:var(--cm-muted,#8b929c)}

/* ==== Phones only (≤640px, Brady 2026-11-17): made like Messages. The chat takes the whole phone screen under the app
   header: no picture banner, Coin Exchange/Chat switch, bottom bar, side gutters or rounded card edges. The page is as
   tall as the screen the keyboard leaves (--mx-vh, community-messages.js); the room list scrolls inside, and an open
   room keeps its header at the top and the writing bar at the bottom while the messages scroll between. ==== */
@media (max-width:640px){
  html:not(#v2) body.xc-on .mobile-bottom-nav{display:none!important}
  html:not(#v2) body.xc-on :is(.v2-banner,.v2-xswitch){display:none!important}
  html:not(#v2) body main:has(>#content>.xc){height:var(--mx-vh,100dvh);min-height:0!important;padding-bottom:0!important}
  html:not(#v2):not(#rd) body main>#content:has(>.xc){flex:1 1 0;min-height:0;padding:0!important}
  .xc{flex:1 1 0;min-height:0;display:flex;flex-direction:column}
  .xc-grid,.xc-grid.has-info{flex:1 1 0;min-height:0;display:flex;flex-direction:column;gap:0}
  .xc-list,.xc-main{border:0;border-radius:0;box-shadow:none}
  .xc-list{flex:1 1 0;min-height:0;overflow:hidden}
  .xc-room-list{overflow-y:auto;overscroll-behavior:contain;padding-bottom:max(84px,calc(72px + env(safe-area-inset-bottom,0px)))}
  .xc-fab{position:absolute;right:16px;bottom:max(16px,env(safe-area-inset-bottom,0px))}
  .xc-grid.is-room .xc-main{position:static;flex:1 1 0;min-height:0;z-index:auto}
  .xc-grid.has-info .xc-info{bottom:0}
  .xc-composer{padding-bottom:max(8px,env(safe-area-inset-bottom,0px))}
  /* Signed out: the join note sits above the list with a small margin. */
  .xc-lock-note{margin:10px 10px 0;border-radius:12px}
  /* The switch: one row per tile, a little shorter, as the Messages tabs are on phones. */
  .xc-tabs{gap:6px;padding:10px 12px 2px}
  .xc-tab{min-height:48px;gap:8px;padding:6px 10px}
  .xc-tab svg{width:19px;height:19px}
  .xc-tab b{font-size:13.5px}
  .xc-tab small{font-size:11px}
  .xc-tabcount{top:-7px;right:-4px;min-width:18px;height:18px;padding:0 5px;font-size:11px;line-height:18px;box-shadow:0 0 0 2px var(--xc-panel)}
  .xc-room{padding:8px 8px;gap:10px}
  .xc-rav{width:44px;height:44px}
  .xc-room-top b{font-size:15px}
  .xc-room-bottom small{font-size:13.5px}
}
