/* Community -- the app's rooms on a desktop, laid out as the "Fiabaen
   Community" design's street: the app's blips across the top, the
   room chips under it, then three columns that fill the window -- the room's
   loudest post and latest picture, the room itself as a live chat, and what
   every other room just said. The TV rides along in the corner.

   Self-contained like /media and /tv: no phone stylesheet under it, nothing to
   out-specify, no !important outside reduced motion. The design's greens are
   the owner's own colours here (app-colors.js): --btn for the things you
   press, --hl for what is lit. Unset, both are black. */

:root, .tab-community {
  --paper: #efefea;       /* the design's room: warm off-white behind white cards */
  --panel: #f4f4f0;
  --panel-2: #e8e8e2;
  --ink: #0e0e0e;
  --chat: #0e0e0e;
  --chat-line: #222225;
  --chat-edge: #3a3a3e;
  --chat-dim: #a1a1a6;
  --chat-faint: #8a8a90;
  --dim: #555555;
  --line: #e4e4de;
  --white: #ffffff;
  --btn: #000000;
  --on-btn: #ffffff;
  --hl: #000000;
  --on-hl: #ffffff;
  --hl-soft: rgba(0, 0, 0, 0.08);
  /* The highlight as it reads on the black chat. community.js sets it to
     white when the owner's --hl is too dark to see there. */
  --hl-dark: #ffffff;

  /* Theme tokens: the chat panel. Dark here; the light theme
     (the default, app-colors.js) redefines them below. */
  --tick-bg: #0e0e0e;
  --tick-ink: #ffffff;
  --chat-ink: #ffffff;
  --chat-sub: #18181b;
  --chat-hover: rgba(255, 255, 255, 0.08);
  --chat-focus: #0b0b0c;
  --chat-field: #ffffff;
  --chat-hl: var(--hl-dark);
  --chat-on-hl: #0e0e0e;
  --chat-shadow: none;

  --wide: "Archivo", "Arial Black", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --read: "Archivo", system-ui, -apple-system, sans-serif;
  --tag: "Barlow", system-ui, sans-serif;
  --cm-system-font: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --top-h: 96px;
}
.tab-community { --btn: inherit; --on-btn: inherit; --hl: inherit; --on-hl: inherit; --hl-soft: inherit; --hl-dark: inherit; }

/* Light: pure white page, white cards and chat with thin edges, dark ink.
   Media frames stay black behind the picture. */
:root[data-theme="light"], :root[data-theme="light"] .tab-community {
  --paper: #ffffff;
  --panel: #f5f5f5;
  --panel-2: #ececec;
  --line: #e6e6e6;
  --tick-bg: #ffffff;
  --tick-ink: #0e0e0e;
  --chat: #ffffff;
  --chat-ink: #0e0e0e;
  --chat-line: #e6e6e6;
  --chat-edge: #d4d4d4;
  --chat-dim: #555555;
  --chat-faint: #6b6b6b;
  --chat-sub: #f5f5f5;
  --chat-hover: rgba(0, 0, 0, 0.05);
  --chat-focus: #ffffff;
  --chat-field: #f5f5f5;
  --chat-hl: var(--hl-light, var(--hl));
  --chat-on-hl: var(--on-hl);
  --chat-shadow: inset 0 0 0 1.5px #e6e6e6;
}

* { box-sizing: border-box; }

html:where(:not(.ws-on)), .ws-body.tab-community, body:where(html:not(.ws-on) *) {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--read);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
body:where(html:not(.ws-on) *), .ws-body.tab-community { overflow-x: hidden; }

:where(html:not(.ws-on), .tab-community) button, :where(html:not(.ws-on), .tab-community) input, :where(html:not(.ws-on), .tab-community) select, :where(html:not(.ws-on), .tab-community) textarea { font: inherit; color: inherit; }

@keyframes cm-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes cm-fade { from { opacity: 0; } }
@keyframes cm-rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------------------------------------------------------------- top bar */

.cm-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 28px;
  min-height: var(--top-h);
}

.cm-id {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 5px;
  border-radius: 30px;
  background: var(--white);
  border: 2px solid var(--ink);
  cursor: pointer;
  user-select: none;
  flex: 0 0 auto;
  transition: box-shadow 0.15s ease;
}
.cm-id:hover,
.cm-id[aria-expanded="true"] { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1); }
.cm-id:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.cm-id__avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--panel-2); flex: 0 0 auto; }
.cm-id__name { font-size: 15px; font-weight: 800; font-stretch: 112%; white-space: nowrap; }
.cm-id__word { font-size: 15px; font-weight: 500; white-space: nowrap; }
.cm-id__check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-size: 10px;
  font-weight: 900;
  display: grid;
  place-items: center;
}
.cm-id__check[hidden] { display: none; }

/* Blips use the same pill shape as the Community identity beside them. */
.cm-blips {
  flex: 1 1 300px;
  min-width: 0;
  height: 80px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cm-blips__run {
  flex: 0 1 auto;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 2px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.cm-blips__run::-webkit-scrollbar { display: none; }
.cm-blips__run[hidden] { display: none; }
/* A blip: thumbnail and name inside one pill. */
.cm-blip {
  flex: 0 0 auto;
  width: auto;
  max-width: 180px;
  min-height: 48px;
  padding: 5px 14px 5px 5px;
  border: 2px solid color-mix(in srgb, currentColor 42%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--c-page) 20%, transparent);
  color: inherit;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}
.cm-blip[hidden] { display: none; }
.cm-blip:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.cm-blip:hover { background: color-mix(in srgb, var(--c-page) 32%, transparent); }
.cm-blip__ring { position: relative; display: block; flex: none; width: 34px; height: 34px; border-radius: 50%; transition: transform 0.15s ease; }
.cm-blip:hover .cm-blip__ring { transform: scale(1.05); }
/* The ring: faint once seen, the lit colour while new. */
.cm-blip__ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, currentColor 22%, transparent);
}
.cm-blip.is-new { border-color: var(--chat-hl); }
.cm-blip.is-new .cm-blip__ring::before { border: 2px solid var(--chat-hl); }
.cm-blip__face {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--panel-2);
  display: grid;
  place-items: center;
}
.cm-blip__face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-blip__play {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
}
.cm-blip__play::after {
  content: "";
  position: absolute;
  left: 5.5px;
  top: 4px;
  border-left: 6px solid #ffffff;
  border-top: 3.5px solid transparent;
  border-bottom: 3.5px solid transparent;
}
.cm-blip__name {
  min-width: 0;
  max-width: 120px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Add and See all: outlined in the ink, like the app pill beside them. */
.cm-blip--add .cm-blip__ring::before,
.cm-blip--all .cm-blip__ring::before { border: 1.5px solid currentColor; }
.cm-blip--add .cm-blip__face,
.cm-blip--all .cm-blip__face { inset: 0; background: transparent; font-size: 22px; font-weight: 700; line-height: 1; }
.cm-blip--add .cm-blip__face { font-size: 24px; font-weight: 500; }
.cm-blip--all { margin-left: auto; }

.cm-top__right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.cm-menu-wrap { position: relative; }
.cm-menu-btn {
  height: 40px;
  padding: 0 18px;
  border-radius: 20px;
  border: 0;
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
  white-space: nowrap;
}
.cm-menu-btn:hover { background: #555555; }

/* The design's MENU card: who, Sign in, then the numbered pages. */
.cm-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 70;
  width: 300px;
  padding: 10px;
  border-radius: 22px;
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  animation: cm-fade 0.15s ease;
}
.cm-dropdown[hidden] { display: none; }
.cm-dropdown__who { display: flex; align-items: center; gap: 10px; padding: 8px 8px 12px; border-bottom: 1px solid var(--line); }
.cm-dropdown__who img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--panel-2); }
.cm-dropdown__who b { display: block; font-size: 15px; font-weight: 800; }
.cm-dropdown__who small { display: block; font-family: var(--mono); font-size: 11px; color: #6b6b6b; }
.cm-dropdown__signin {
  width: 100%;
  height: 46px;
  margin: 10px 0 6px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.cm-dropdown__item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.cm-dropdown__item small { font-family: var(--mono); font-size: 11px; font-weight: 500; color: #6b6b6b; width: 18px; }
.cm-dropdown__item:hover { background: var(--panel); }
.cm-dropdown__item.is-on { background: var(--ink); color: var(--white); }
.cm-dropdown__item.is-on small { color: rgba(255, 255, 255, 0.6); }
.cm-dropdown__item.is-on::after { content: ""; margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.7); }
.cm-dropdown__theme { border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; margin-top: 6px; }
.cm-dropdown__theme small { font-size: 14px; }
.cm-dropdown__me { display: flex; align-items: center; gap: 10px; padding: 10px 14px 4px; border-top: 1px solid var(--line); margin-top: 6px; font-weight: 800; }
.cm-dropdown__me img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.cm-dropdown__me.is-link { color: var(--ink); text-decoration: none; cursor: pointer; border-radius: 14px; padding-bottom: 10px; }
.cm-dropdown__me.is-link:hover { background: var(--panel); }

.cm-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #333333; flex: 0 0 auto; }

.cm-pill {
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  white-space: nowrap;
}
.cm-pill--ink { background: var(--ink); color: var(--white); }
.cm-pill:disabled { opacity: 0.35; cursor: default; }
.cm-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ------------------------------------------------------------------ page */

/* Under the bar the page is the phone's Community at desktop width: the
   front page (the Lobby as a hero, every room as a doorway, the latest
   from the rooms), the Rooms view, and a room. Every colour is a --c-*
   token: ink and page follow light, dark and the owner's page colour
   (page-colors.css); the accent is the app colour as it reads here. The
   hero and the room's cover are photographs, dark in every theme. */
:root, .tab-community {
  --c-ink: var(--ink);
  --c-page: var(--paper);
  --c-dim: color-mix(in srgb, var(--c-ink) 62%, var(--c-page));
  --c-faint: color-mix(in srgb, var(--c-ink) 45%, var(--c-page));
  --c-line: color-mix(in srgb, var(--c-ink) 11%, var(--c-page));
  --c-edge: color-mix(in srgb, var(--c-ink) 20%, var(--c-page));
  --c-soft: color-mix(in srgb, var(--c-ink) 5%, var(--c-page));
  --c-accent: var(--chat-hl);
  --c-on-accent: var(--chat-on-hl);
  --c-live: #16a34a;
}
:root[data-theme="dark"], :root[data-theme="dark"] .tab-community { --c-ink: #f2f2f2; --c-live: #4ade80; }

.cm-main { color: var(--c-ink); }
.cm-room[hidden] { display: none; }

.cm-eye {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.cm-dot { flex: none; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c-accent); }
.cm-link {
  flex: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c-accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
}
.cm-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.cm-layer { font-size: 0.72em; margin-right: 0.45em; vertical-align: 0.08em; color: var(--c-accent); }
.cm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cm-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  margin: 12px 0 8px;
  border-radius: 999px;
  border: 1.5px solid var(--c-ink);
  background: transparent;
  color: var(--c-ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.cm-more:hover { background: var(--c-ink); color: var(--c-page); }

/* ----------------------------------------------------------- the shell */

/* Three columns under the bar, split by ink rules: the rooms, the middle,
   and on the home what is going on. A room keeps the rooms down the left
   and gives the middle its full width. */
.cm-shell {
  display: grid;
  /* Equal sides, so the feed sits in the middle of the screen. */
  grid-template-columns: 310px minmax(0, 1fr) 310px;
  border-top: 1px solid var(--c-edge);
  min-height: calc(var(--pane-h, 100vh) - var(--top-h));
}
.cm-shell[data-page="room"] { grid-template-columns: 310px minmax(0, 1fr); }
/* The nav and its fold button share the first cell, so the button can ride
   the nav's right edge while both stay put as the page scrolls. */
.cm-shell > .cm-nav { grid-column: 1; grid-row: 1; }
.cm-navtoggle {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: 16px;
  z-index: 17;
  align-self: start;
  justify-self: end;
  width: 32px;
  height: 32px;
  margin: 16px -16px 0 0;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--c-edge);
  border-radius: 50%;
  background: var(--c-page);
  color: var(--c-ink);
  cursor: pointer;
  transition: background 0.12s ease;
}
.cm-navtoggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cm-navtoggle[aria-expanded="true"] .cm-navtoggle__expand,
.cm-navtoggle[aria-expanded="false"] .cm-navtoggle__collapse { display: none; }
.cm-navtoggle:hover { background: color-mix(in srgb, var(--c-ink) 6%, var(--c-page)); }
.cm-navtoggle:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
/* Collapsed: keep a narrow, usable icon rail. */
.cm-shell.is-navless { grid-template-columns: 72px minmax(0, 1fr) 310px; }
.cm-shell.is-navless[data-page="room"] { grid-template-columns: 72px minmax(0, 1fr); }
@media (min-width: 861px) {
.cm-shell.is-navless .cm-nav { padding: 60px 10px 20px; align-items: center; gap: 6px; }
.cm-shell.is-navless .cm-nav > :is(.cm-nav__pick, .cm-nav__eye) { display: none; }
.cm-shell.is-navless .cm-nav.is-folded .cm-nav__list { display: flex; }
.cm-shell.is-navless .cm-nav.is-folded .cm-nav__new { display: flex; }
.cm-shell.is-navless .cm-nav__list { width: 100%; align-items: center; gap: 6px; }
.cm-shell.is-navless .cm-nav :is(.cm-nav__home, .cm-nav__room, .cm-nav__new) {
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  justify-content: center;
}
.cm-shell.is-navless .cm-nav__home > span,
.cm-shell.is-navless .cm-nav :is(.cm-nav__name, .cm-nav__when) { display: none; }
.cm-shell.is-navless .cm-nav__home svg,
.cm-shell.is-navless .cm-nav__icon svg { width: 21px; height: 21px; }
.cm-shell.is-navless .cm-nav__icon { width: 32px; }
}
.cm-center { min-width: 0; padding: 22px 26px 56px; }
/* The home feed stays a readable column in the middle, like X. */
.cm-shell[data-page="front"] .cm-center > * { max-width: 660px; margin-inline: auto; }
/* A room: the same 660px feed plus its 300px side column, centered together. */
.cm-shell[data-page="room"] .cm-center > * { max-width: 996px; margin-inline: auto; }
.cm-home[hidden], .cm-side2[hidden] { display: none; }

/* The rooms, like a desktop app's left nav: compact rows in regular type,
   small outline icons, a soft grey pill behind the room you are on and a
   lighter one under the pointer, and a small grey section head that folds
   the list away. Every colour is a --c-* token, so light, dark, the owner's
   page colour and Glass all follow. */
.cm-nav {
  position: sticky;
  top: 0;
  align-self: start;
  max-height: var(--pane-h, 100vh);
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 16px 40px;
  border-right: 1px solid var(--c-line);
}
/* Give the desktop room list the same quiet panel as the right rail. */
@media (min-width: 861px) {
  .cm-nav {
    border-right: 0;
    border-radius: 14px;
    background: color-mix(in srgb, var(--c-ink) 4%, transparent);
  }
}
.cm-nav::-webkit-scrollbar { display: none; }
.cm-shell > .cm-nav { min-height: calc(var(--pane-h, 100vh) - var(--top-h)); }
.cm-nav__home, .cm-nav__room, .cm-nav__new {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--c-ink);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  flex: none;
  transition: background 0.12s ease;
}
.cm-nav__home svg, .cm-nav__icon svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cm-nav__home svg { flex: none; }
.cm-nav__home:hover, .cm-nav__room:hover, .cm-nav__new:hover { background: color-mix(in srgb, var(--c-ink) 5%, transparent); }
.cm-nav__home.is-on, .cm-nav__room.is-on { background: color-mix(in srgb, var(--c-ink) 9%, transparent); font-weight: 500; }
.cm-nav__home:focus-visible, .cm-nav__room:focus-visible, .cm-nav__new:focus-visible, .cm-nav__eye:focus-visible { outline: 2px solid var(--c-accent); outline-offset: -2px; }
.cm-nav__eye {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 12px 0 4px;
  padding: 14px 12px 6px;
  border: 0;
  border-top: 1px solid var(--c-line);
  border-radius: 0;
  background: transparent;
  color: var(--c-dim);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  flex: none;
}
.cm-nav__eye:hover { color: var(--c-ink); }
.cm-nav__chev svg { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s ease; }
.cm-nav.is-folded .cm-nav__chev svg { transform: rotate(-90deg); }
.cm-nav.is-folded .cm-nav__list, .cm-nav.is-folded .cm-nav__new { display: none; }
.cm-nav__list { display: flex; flex-direction: column; gap: 2px; }
.cm-nav__icon { position: relative; flex: none; display: grid; place-items: center; width: 32px; height: 32px; color: var(--c-ink); }
.cm-nav__cover { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border-radius: 8px; object-fit: cover; background: var(--c-soft); }
.cm-nav__icon.is-lock { color: var(--c-dim); }
.cm-nav__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-nav__when { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 400; color: var(--c-faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cm-nav__when .cm-dot { width: 5px; height: 5px; background: var(--c-accent); }
/* + Create room: a quiet row like the others, the owner's only. */
.cm-nav__new { margin-top: 2px; color: var(--c-dim); }
.cm-nav__new .cm-nav__icon { color: inherit; }
.cm-nav__new:hover { color: var(--c-ink); }
.cm-nav__pick { display: none; }

/* The banner: the app's photo, darkened, under its name and words. */
.cm-banner {
  position: relative;
  min-height: 170px;
  border-radius: 22px;
  overflow: hidden;
  background: #000000;
  color: #ffffff;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  padding: 22px 26px;
}
.cm-banner__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.cm-banner__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.8), rgba(0,0,0,.3)); }
.cm-banner__pic { position: relative; flex: none; width: 84px; height: 84px; border-radius: 18px; object-fit: cover; border: 2px solid #ffffff; background: #222; }
.cm-banner__words { position: relative; flex: 1; min-width: 0; }
.cm-banner__title { margin: 0; font-size: 34px; font-weight: 900; font-stretch: 118%; line-height: 1.02; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.cm-banner__line { margin-top: 6px; font-size: 15px; line-height: 1.35; opacity: 0.94; }
.cm-banner__facts { margin-top: 8px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }
.cm-banner__live { color: #4ade80; }

/* The home's feed: open rows under a rule, each with its room. */
.cm-chips2 { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 2px; }
.cm-chips2[hidden] { display: none; }
.cm-chip2 {
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid var(--c-ink);
  background: transparent;
  color: var(--c-ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.cm-chip2:hover { background: var(--c-soft); }
.cm-chip2.is-on { background: var(--c-ink); color: var(--c-page); }
.cm-msg.is-chip-miss { display: none; }
.cm-media-card__open { display: inline-flex; margin-top: 12px; color: var(--c-accent); font-size: 13px; font-weight: 700; text-decoration: none; }
.cm-media-card__open:hover { text-decoration: underline; text-underline-offset: 3px; }
.cm-media-card__fallback { display: grid; place-items: center; min-height: 220px; color: #fff; background: #1a1a1d; font-weight: 700; }
.cm-msg > .community-card-player { position: relative; width: 100%; margin-top: 12px; overflow: hidden; border-radius: 16px; background: #000; }
.cm-media-card > .community-card-player { min-height: 260px; }
.cm-msg > .community-card-player :is(iframe, video, img) { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; object-fit: contain; }
.cm-msg > .community-card-player audio { display: block; width: 100%; min-height: 80px; }
.cm-msg > .community-card-player[data-provider="soundcloud"] iframe { min-height: 166px; }
.cm-msg > .community-card-player[data-provider="spotify"] iframe { height: 152px; aspect-ratio: auto; }
.cm-media-card__expand {
  position: absolute; z-index: 1; inset: 0 0 auto auto;
  display: flex; justify-content: flex-end; align-items: flex-start;
  border: 0; padding: 8px; background: transparent; color: #fff; cursor: zoom-in;
}
.cm-media-card > .community-card-player > video:not([controls]) ~ .cm-media-card__expand {
  inset: auto 0 0 auto;
}
.cm-media-card > .community-card-player > video[controls] ~ .cm-media-card__expand {
  display: none;
}
.cm-media-card__expand.covers-media { inset: 0; width: 100%; }
.cm-media-card__play {
  position: absolute; z-index: 1; inset: auto auto 4px 4px;
  display: grid; place-items: center; width: 44px; height: 44px;
  padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer;
}
.cm-media-card__play[hidden] { display: none; }
.cm-media-card__play i {
  display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 50%; background: #000c; font-size: 11px;
}
.cm-media-card__expand i {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; background: #000b; font-size: 15px;
}
.cm-media-card__expand:is(:hover, :focus-visible) i { background: #000; }
.cm-media-card__expand:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
#cm-more-posts[hidden] { display: none; }
#cm-more-posts { margin-top: 18px; }
.cm-msg__room, .cm-msg__channel {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 2px 0;
  border: 1px solid transparent;
  border-radius: 5px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.cm-msg__room {
  background: transparent;
  color: var(--c-dim);
  cursor: pointer;
}
.cm-msg__channel {
  color: var(--c-dim);
}
:is(.cm-msg__room, .cm-msg__channel) > span { overflow: hidden; text-overflow: ellipsis; }
:is(.cm-msg__room, .cm-msg__channel) > i { flex: none; margin: 0; color: inherit; font-size: 10px; }
.cm-msg__room:hover { text-decoration: underline; text-underline-offset: 3px; }
.cm-shell[data-page="front"] .cm-room__grid { grid-template-columns: minmax(0, 1fr); margin-top: 16px; }
.cm-shell[data-page="front"] .cm-rail { display: none; }
/* The home and a room read the same: open rows under hairline rules. */
.cm-shell .cm-list { gap: 0; margin-top: 6px; }
.cm-shell .cm-msg { padding: 18px 0 10px; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--c-edge); }
.cm-shell .cm-msg__line { font-size: 20px; font-weight: 600; line-height: 1.35; }
.cm-shell .cm-acts { margin-left: -10px; }
.cm-shell .cm-msg.is-flash { animation: cm-flash-row 1.6s ease; }
@keyframes cm-flash-row { 0%, 40% { background: var(--c-soft); } }
/* Pinned posts stand at the top, labelled; the same post further down steps aside. */
.cm-msg__pin { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; color: var(--c-accent); }
.cm-msg__pin i { font-size: 10px; transform: rotate(35deg); }
.cm-msg.is-pin-dup { display: none; }
.cm-shell[data-page="room"] .cm-room__grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; }

/* The composer on the home: "to <room> ▾" and Post. */
.cm-composer__to {
  display: none;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1.5px solid var(--c-ink);
  color: var(--c-ink);
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.cm-composer__to:not([hidden]) { display: inline-flex; }
#cm-compose-destination-name { min-width: 0; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.cm-composer__to i { font-size: 10px; pointer-events: none; }
.cm-destination {
  width: min(420px, calc(100% - 32px));
  max-height: min(540px, calc(100dvh - 40px));
  margin: auto;
  padding: 16px;
  border: 1px solid var(--c-line);
  border-radius: 18px;
  background: var(--c-page);
  color: var(--c-ink);
  box-shadow: 0 20px 64px rgb(0 0 0 / .22);
}
.cm-destination[open] { display: flex; flex-direction: column; gap: 10px; }
.cm-destination::backdrop { background: rgb(0 0 0 / .3); backdrop-filter: blur(6px); }
.cm-destination header { display: flex; align-items: center; justify-content: space-between; }
.cm-destination h2 { margin: 0; font-size: 20px; }
.cm-destination button, .cm-destination input { font: inherit; color: inherit; }
.cm-destination header button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--c-soft); cursor: pointer; }
.cm-destination input {
  width: 100%; box-sizing: border-box; padding: 10px 12px;
  border: 1px solid var(--c-line); border-radius: 10px; background: var(--c-soft);
}
.cm-destination__options { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.cm-destination__switch { display: flex; gap: 6px; padding: 4px; background: var(--c-soft); border-radius: 10px; }
.cm-destination__switch button { flex: 1; min-height: 36px; border: 0; border-radius: 7px; background: transparent; cursor: pointer; }
.cm-destination__switch button[aria-pressed="true"] { background: var(--c-page); font-weight: 700; box-shadow: 0 1px 4px #0002; }
.cm-destination__options p { padding: 0 10px; color: var(--c-dim); }
.cm-destination__row {
  display: flex; align-items: center; gap: 10px;
  width: 100%; min-height: 40px; padding: 6px 10px;
  border: 0; border-radius: 8px; background: transparent; text-align: start; cursor: pointer;
}
.cm-destination__row:hover, .cm-destination__row[aria-pressed="true"] { background: var(--c-soft); }
.cm-destination__row i { color: var(--c-accent); font-size: 12px; }
.cm-destination__name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cm-destination__number { flex: 0 0 38px; color: var(--c-dim); font-size: 10px; font-variant-numeric: tabular-nums; }
.cm-destination__art { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 7px; overflow: hidden; background: var(--c-soft); }
.cm-destination__row.is-channel { display: grid; grid-template-columns: 38px 70px minmax(0, 1fr) 14px; }
.cm-destination__row.is-channel .cm-destination__art { height: 40px; }
.cm-destination__art .cm-hub-rail-activity__thumb { display: grid; place-items: center; width: 100%; height: 100%; }
.cm-composer.is-home { grid-template-columns: 44px minmax(0, 1fr) auto 44px auto; }
.cm-composer__word { display: none; }
.cm-composer.is-home .cm-composer__send { width: auto; height: 46px; padding: 0 22px; border-radius: 999px; font-size: 14px; font-weight: 800; }
.cm-composer.is-home .cm-composer__send svg { display: none; }
.cm-composer.is-home .cm-composer__word { display: inline; }

/* What is going on: the home's right column. One soft grey panel, small
   grey section heads, compact rows with a small meta line under hairlines.
   The mini TV sits above it in its own rounded frame. */
.cm-side2 {
  position: sticky;
  top: 0;
  align-self: start;
  max-height: var(--pane-h, 100vh);
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 16px 40px;
  color: var(--c-ink);
}
.cm-side2::-webkit-scrollbar { display: none; }
.cm-shell > .cm-side2 { min-height: calc(var(--pane-h, 100vh) - var(--top-h)); }
@media (min-width: 861px) {
  html[data-appearance="glass"] .cm-shell > :is(.cm-nav, .cm-side2) {
    border-radius: 22px;
  }
}
/* The panel, shared with a room's rail. */
.cm-side2__body, .cm-rail {
  border-radius: 14px;
  background: color-mix(in srgb, var(--c-ink) 4%, transparent);
  padding: 2px 16px;
}
.cm-side2__body { display: flex; flex-direction: column; }
.cm-side2__body:empty { display: none; }
.cm-side2__body > * { padding: 14px 0; }
.cm-side2__body > * + * { border-top: 1px solid var(--c-line); }
/* Section heads in both rails: small grey caps in the reading face. */
:is(.cm-side2, .cm-rail) .cm-eye { font-family: var(--read); font-size: 11.5px; font-weight: 500; letter-spacing: 0.08em; color: var(--c-dim); }
.cm-side2__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: start; }
.cm-stat2 .cm-eye { display: block; margin-top: 2px; line-height: 1.35; white-space: nowrap; }
.cm-stat2__trend { display: block; margin-top: 4px; white-space: nowrap; font-family: var(--mono); font-size: 10.5px; font-weight: 700; color: var(--c-live); }
.cm-stat2__trend.is-down { color: var(--c-dim); }
.cm-stat2 b { display: block; font-size: 28px; font-weight: 900; line-height: 1.1; }
.cm-stat2.is-live b { color: var(--c-live); }
.cm-side2__quote {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-ink);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.cm-side2__quote:hover { text-decoration: underline; text-underline-offset: 3px; }
.cm-side2__meta { margin-top: 4px; font-size: 12px; color: var(--c-dim); }
.cm-side2__meta b { font-weight: 500; color: var(--c-dim); }
.cm-side2__tv { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--c-ink); text-decoration: none; }
.cm-side2__tvpic { flex: none; width: 72px; height: 42px; border-radius: 8px; overflow: hidden; background: #000000; }
.cm-side2__tvpic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-side2__tvwords { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cm-side2__tvwords b { font-size: 14px; font-weight: 500; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cm-side2__ch { font-size: 12px; color: var(--c-dim); }
.cm-side2__tv:hover b { text-decoration: underline; }
/* Most active rooms: a name, its count, and a thin quiet bar. */
.cm-bar { display: block; width: 100%; margin-top: 10px; padding: 0; border: 0; background: none; color: var(--c-ink); text-align: left; cursor: pointer; }
.cm-bar__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14px; }
.cm-bar__top b { min-width: 0; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-bar__top span { flex: none; font-size: 12px; color: var(--c-dim); font-variant-numeric: tabular-nums; }
.cm-bar__fill { display: block; height: 3px; margin-top: 6px; border-radius: 2px; background: color-mix(in srgb, var(--c-ink) 16%, transparent); }
.cm-bar__fill.is-lead { background: color-mix(in srgb, var(--c-accent) 70%, transparent); }
.cm-bar:hover b { text-decoration: underline; text-underline-offset: 3px; }
/* Top this month: numbered rows under hairlines. */
.cm-rank { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 14px; }
.cm-rank:first-of-type { margin-top: 4px; }
.cm-rank + .cm-rank { border-top: 1px solid var(--c-line); }
.cm-rank__n { width: 12px; font-size: 12px; font-weight: 400; color: var(--c-faint); font-variant-numeric: tabular-nums; }
.cm-rank .cm-avatar { width: 24px; height: 24px; }
.cm-rank__name { flex: 1; min-width: 0; font-weight: 500; color: inherit; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.cm-rank__name:hover { text-decoration: underline; }
.cm-rank__count { color: var(--c-dim); font-size: 12px; }
.cm-joins { display: flex; align-items: flex-start; gap: 12px; margin-top: 10px; }
.cm-join { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 54px; color: var(--c-ink); text-decoration: none; }
.cm-join__face { position: relative; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--c-ink); color: var(--c-page); font-weight: 800; }
.cm-join__face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cm-join__name { max-width: 100%; font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-join__when { align-self: center; margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--c-dim); }
.cm-side2 .cm-grid3 { margin-top: 10px; gap: 4px; }
:is(.cm-side2, .cm-rail) .cm-tile { border-radius: 8px; }

/* The mini TV, docked at the head of the home's right column or the foot
   of the room's rail instead of floating over the page. */
.cm-pipslot:empty { display: none; }
.cm-pipslot .cm-pip { position: relative; right: auto; bottom: auto; z-index: auto; width: auto; animation: none; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-ink) 12%, transparent); }
.cm-pipslot:has(.cm-pip[hidden]) { display: none; }

/* ------------------------------------------------------------ room: cover */

.cm-rh {
  position: relative;
  min-height: 300px;
  border-radius: 28px;
  overflow: hidden;
  background: #000000;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 88px 32px 28px;
}
.cm-rh__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-rh__img[hidden] { display: none; }
.cm-rh__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.25) 35%, rgba(0,0,0,.78) 72%, rgba(0,0,0,.92) 100%); }
.cm-rh__back {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.cm-rh__back:hover { background: rgba(0, 0, 0, 0.7); }
.cm-rh__back svg { width: 18px; height: 18px; fill: none; stroke: #ffffff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cm-rh__back svg .fill { fill: #ffffff; stroke: none; }
.cm-rh__row { position: relative; display: flex; align-items: flex-end; gap: 18px; }
.cm-rh__pic {
  flex: none;
  width: 84px;
  height: 84px;
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--c-accent);
  color: var(--c-on-accent);
  box-shadow: 0 0 0 2.5px rgba(255, 255, 255, 0.9);
  font-size: 34px;
  font-weight: 900;
}
.cm-rh__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-rh__words { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cm-rh__title { margin: 0; font-size: 40px; font-weight: 850; line-height: 1.05; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.cm-rh__title .cm-layer { font-size: 24px; color: #ffffff; }
.cm-rh__desc { margin: 0; max-width: 760px; font-size: 16px; line-height: 1.35; opacity: 0.9; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cm-rh__desc[hidden] { display: none; }
.cm-rh__facts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 14px; font-weight: 650; }
.cm-rh__facts > span:first-child { opacity: 0.88; }
.cm-rh__online { display: inline-flex; align-items: center; gap: 7px; }
.cm-rh__online[hidden] { display: none; }
.cm-rh__online::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.28); }
.cm-rh__join {
  flex: none;
  height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #0b0b0c;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.cm-rh__join[hidden] { display: none; }

/* ------------------------------------------------------------- room: tabs */

.cm-tabs {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 4px 0;
  background: var(--paper);
  box-shadow: 0 1px 0 var(--c-line);
}
.cm-tabs__row { display: flex; gap: 6px; }
.cm-tab {
  height: 48px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: var(--c-dim);
  font-size: 16px;
  font-weight: 750;
  box-shadow: inset 0 -3px 0 transparent;
  cursor: pointer;
}
.cm-tab:hover { color: var(--c-ink); }
.cm-tab.is-on { color: var(--c-ink); box-shadow: inset 0 -3px 0 var(--c-accent); }
.cm-tabs__tools { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; min-width: 0; }
.cm-find {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  width: 240px;
  min-width: 0;
  padding: 0 14px;
  border-radius: 19px;
  box-shadow: inset 0 0 0 1.5px var(--c-edge);
  color: var(--c-dim);
}
.cm-find:focus-within { box-shadow: inset 0 0 0 1.5px var(--c-ink); }
.cm-find i { font-size: 13px; }
.cm-find input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; color: var(--c-ink); font-size: 14px; text-overflow: ellipsis; }
.cm-find input::placeholder { color: var(--c-faint); }
.cm-focus {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 19px;
  border: 1.5px solid var(--c-edge);
  background: transparent;
  color: var(--c-ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  white-space: nowrap;
}
.cm-focus:hover { border-color: var(--c-ink); }

/* ------------------------------------------------------ room: feed + rail */

.cm-room__grid {
  display: grid;
  grid-template-columns: minmax(0, 780px) 340px;
  justify-content: center;
  gap: 48px;
  margin-top: 22px;
}
.cm-room__main { min-width: 0; }
.cm-feedpane[hidden], .cm-tabpane[hidden] { display: none; }
/* A room's rail: the same soft panel as the home's right column. */
.cm-rail {
  position: sticky;
  top: 80px;
  align-self: start;
  display: flex;
  flex-direction: column;
  max-height: calc(var(--pane-h, 100vh) - 100px);
  overflow-y: auto;
  scrollbar-width: none;
}
.cm-rail::-webkit-scrollbar { display: none; }
.cm-rail > * { padding: 14px 0; }
.cm-rail > * + * { border-top: 1px solid var(--c-line); }
.cm-rail__sec { display: flex; flex-direction: column; gap: 0; }
.cm-rail__sec[hidden] { display: none; }
.cm-rail__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.cm-rail__all { padding: 0; border: 0; background: none; color: var(--c-accent); font-size: 12.5px; font-weight: 500; cursor: pointer; }
.cm-rail__all:hover { text-decoration: underline; text-underline-offset: 3px; }
.cm-about { display: flex; flex-direction: column; gap: 8px; }
.cm-about__facts { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13px; color: var(--c-dim); }
.cm-about__fact { font-weight: 400; white-space: nowrap; }
.cm-about__fact + .cm-about__fact::before { content: "·"; margin: 0 7px; color: var(--c-faint); }
.cm-about__fact.is-paid { color: var(--c-accent); font-weight: 500; }
/* People in the rail: compact rows under hairlines. */
.cm-rail .cm-person { gap: 10px; padding: 8px 0; }
.cm-rail .cm-person + .cm-person { border-top: 1px solid var(--c-line); }
.cm-rail .cm-person__face { width: 32px; height: 32px; }
.cm-rail .cm-person__face.is-online::after { width: 9px; height: 9px; box-shadow: 0 0 0 2px var(--paper); }
.cm-rail .cm-person__words { gap: 1px; }
.cm-rail .cm-person__name { font-size: 14px; font-weight: 500; }
.cm-rail .cm-person__line { font-size: 12px; }
.cm-rail .cm-grid3 { gap: 4px; margin-top: 6px; }

.cm-person { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.cm-people .cm-person { padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.cm-people .cm-person:last-child { border-bottom: 0; }
.cm-person__face { position: relative; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--c-soft); }
.cm-people .cm-person__face { width: 52px; height: 52px; }
.cm-person__face .cm-avatar { width: 100%; height: 100%; }
.cm-person__face.is-online::after { content: ""; position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px var(--paper); }
.cm-person__words { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cm-person__name { font-size: 15px; font-weight: 800; color: inherit; text-decoration: none; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
a.cm-person__name:hover { text-decoration: underline; }
.cm-people .cm-person__name { font-size: 17px; }
.cm-person__line { font-size: 13px; color: var(--c-dim); }

.cm-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.cm-grid3--wide { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 6px; }
.cm-tile { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #000000; cursor: zoom-in; }
.cm-tile img, .cm-tile video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s ease; }
.cm-tile:hover img, .cm-tile:hover video { transform: scale(1.04); }
.cm-tile.is-broken { display: none; }
.cm-tile .cm-media__play { width: 34px; height: 34px; margin: -17px 0 0 -17px; font-size: 11px; }

/* ------------------------------------------------------ room: composer */

.cm-composer {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px 48px;
  gap: 8px;
  align-items: center;
  min-height: 62px;
  padding: 7px 7px 7px 9px;
  border-radius: 31px;
  box-shadow: inset 0 0 0 1.5px var(--c-edge);
}
.cm-composer[hidden] { display: none; }
.cm-composer:focus-within { box-shadow: inset 0 0 0 1.5px var(--c-ink); }
.cm-composer.is-drop { box-shadow: inset 0 0 0 2px var(--c-accent); }
.cm-composer__me { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--c-accent); }
.cm-composer__me .cm-avatar { width: 100%; height: 100%; }
#cm-compose-text { width: 100%; height: 46px; padding: 0 6px; border: 0; outline: none; background: transparent; color: var(--c-ink); font-size: 16px; }
#cm-compose-text::placeholder { color: var(--c-faint); }
.cm-composer__add { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--c-dim); }
.cm-composer__add:hover { background: var(--c-soft); color: var(--c-ink); }
.cm-composer__add svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.cm-composer__send { width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--c-accent); color: var(--c-on-accent); cursor: pointer; }
.cm-composer__send svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.cm-composer__send:disabled { opacity: 0.4; cursor: default; }
.cm-composer__send.is-busy { opacity: 0.6; animation: cm-pulse 1s infinite; }

.cm-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 62px;
  padding: 7px 7px 7px 22px;
  border-radius: 31px;
  box-shadow: inset 0 0 0 1.5px var(--c-edge);
  font-size: 15px;
  color: var(--c-dim);
}
.cm-note[hidden] { display: none; }
.cm-note input { height: 44px; width: 150px; padding: 0 16px; border-radius: 22px; border: 1.5px solid var(--c-edge); background: transparent; color: var(--c-ink); outline: none; }
.cm-note button, .cm-note a {
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  background: var(--c-accent);
  color: var(--c-on-accent);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.cm-draft { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding: 10px 12px; border-radius: 18px; background: var(--c-soft); }
.cm-draft[hidden] { display: none; }
.cm-draft img, .cm-draft video { height: 64px; max-width: 120px; border-radius: 10px; object-fit: cover; display: block; background: #000; }
.cm-draft span { font-size: 13px; color: var(--c-dim); }
.cm-draft button { margin-left: auto; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--c-edge); background: transparent; color: var(--c-ink); cursor: pointer; }

/* --------------------------------------------------------- room: cards */

.cm-list { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.cm-msg {
  position: relative;
  padding: 18px 18px 8px;
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px var(--c-edge);
  color: var(--c-ink);
}
.cm-msg.is-flash { animation: cm-flash 1.6s ease; }
@keyframes cm-flash { 0%, 40% { box-shadow: inset 0 0 0 2px var(--c-accent); } }
.cm-msg.is-find-miss { display: none; }
.cm-msg__rebyte { margin: -4px 0 10px; font-family: var(--mono); font-size: 11px; color: var(--c-faint); }
a.cm-msg__rebyte { display: block; width: fit-content; text-decoration: none; }
a.cm-msg__rebyte:hover { color: var(--c-ink); text-decoration: underline; }
.cm-msg__head { display: flex; align-items: center; gap: 12px; }
.cm-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--c-soft); flex: 0 0 auto; display: block; }
.cm-msg__who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cm-msg__namerow { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cm-msg__name { font-size: 16px; font-weight: 800; color: inherit; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.cm-msg__name:hover { text-decoration: underline; }
.cm-msg__owner { font-family: var(--mono); font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: var(--c-accent); color: var(--c-on-accent); }
.cm-msg__time { font-size: 13px; color: var(--c-faint); }
.cm-msg__more { width: 40px; height: 34px; border-radius: 17px; color: var(--c-dim); font-size: 18px; font-weight: 900; letter-spacing: 0.06em; }
.cm-msg__more:hover, .cm-msg__more[aria-expanded="true"] { background: var(--c-soft); color: var(--c-ink); }
.cm-msg__line { margin-top: 12px; font-size: 17px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; text-wrap: pretty; }
.cm-msg__line a { text-decoration: underline; text-underline-offset: 2px; }
.cm-msg__line a,
#cm-compose-text.is-link-draft {
  color: #005bc4 !important;
  -webkit-text-fill-color: #005bc4 !important;
}
:root[data-theme="dark"] :is(.cm-msg__line a, #cm-compose-text.is-link-draft) {
  color: #78b5ff !important;
  -webkit-text-fill-color: #78b5ff !important;
}

/* A picture as big as the column; a clip 16:9 with its play mark and
   length, played in the viewer. */
.cm-media { position: relative; margin-top: 14px; border-radius: 18px; overflow: hidden; background: #000000; cursor: zoom-in; }
.cm-media--image img { display: block; width: 100%; max-height: 600px; object-fit: cover; }
.cm-media--image.cm-media--pending { aspect-ratio: 16 / 10; }
.cm-media--image.cm-media--pending img { position: absolute; inset: 0; height: 100%; }
.cm-media--video { aspect-ratio: 16 / 9; }
.cm-media--video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-media--pending { background: #1a1a1a; }
.cm-media--broken { display: grid; place-items: center; min-height: 120px; color: #a1a1a6; font-size: 13px; cursor: default; background: #1a1a1a; }
.cm-media__play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, 0.55); color: #ffffff; font-size: 20px; padding-left: 3px; pointer-events: none; }
.cm-media--video .cm-media__play {
  inset: auto auto 12px 12px; width: 28px; height: 28px;
  margin: 0; padding: 0; font-size: 11px; background: #000c;
}
.cm-media__dur { position: absolute; right: 12px; bottom: 12px; padding: 3px 9px; border-radius: 8px; background: rgba(0, 0, 0, 0.66); color: #ffffff; font-family: var(--mono); font-size: 12px; font-weight: 700; pointer-events: none; }

.cm-acts { display: flex; align-items: center; gap: 4px; margin: 10px 0 0 -8px; }
.cm-act {
  min-width: 44px;
  height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: var(--c-dim);
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.cm-act:hover { background: var(--c-soft); color: var(--c-ink); }
.cm-act.is-on { color: var(--c-accent); }
.cm-act:disabled { cursor: default; opacity: 0.5; }
.cm-act--share { margin-left: auto; }

/* The tap icons: the count rides the icon's shoulder as a small solid
   bubble -- ink fill, page-colour figure, a page-colour rim -- and never
   shows a 0. In the dark viewer the bubble is white on black. */
.cm-tap { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 28px; border-radius: 15px; transition: background 0.16s ease; }
.cm-tap__icon { font-size: 16px; }
.cm-tap__n {
  position: absolute; top: -7px; left: 50%; margin-left: 3px;
  min-width: 20px; height: 18px; padding: 0 5px; border-radius: 999px;
  border: 2px solid var(--c-page); background: var(--c-ink); color: var(--c-page);
  font-family: "Barlow", system-ui, sans-serif; font-size: 11px; font-weight: 800; line-height: 14px;
  text-align: center; font-variant-numeric: tabular-nums;
}
.cm-act.is-on .cm-tap { background: color-mix(in srgb, var(--c-accent) 14%, transparent); }

/* A post's engagement row as pills, like the phone's: +1, reply, rebyte,
   Share, left-aligned, each a soft rounded pill tinted from the ink so
   light, dark, page colours and Glass follow. A count is the signature
   "+N" bubble on the icon's top-right shoulder, ringed in the page colour;
   the accent fills it once the viewer has tapped. */
.cm-shell .cm-acts, .cm-acts:has(.cm-act--pill) { gap: 8px; margin: 14px 0 0; }
.cm-act--pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 48px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  overflow: visible;
  background: color-mix(in srgb, var(--c-ink) 7%, transparent);
  color: var(--c-ink);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  transition: background 0.12s ease, color 0.12s ease;
}
.cm-act--pill:hover { background: color-mix(in srgb, var(--c-ink) 12%, transparent); color: var(--c-ink); }
.cm-act--pill.is-on { background: color-mix(in srgb, var(--c-accent) 16%, transparent); color: var(--c-accent); }
.cm-act--pill.is-on:hover { background: color-mix(in srgb, var(--c-accent) 22%, transparent); }
.cm-act--pill:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.cm-pill__ico { position: static; display: inline-grid; place-items: center; width: 18px; height: 18px; }
.cm-pill__icon { font-size: 15px; }
.cm-pill__word { white-space: nowrap; }
.cm-pill__badge {
  position: absolute; top: -9px; right: -4px;
  min-width: 20px; height: 18px; padding: 0 5px; border-radius: 999px;
  border: 2px solid var(--c-page); background: var(--c-ink); color: var(--c-page);
  font-family: "Barlow", system-ui, sans-serif; font-size: 11px; font-weight: 800; line-height: 14px;
  text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.cm-act--pill.is-on .cm-pill__badge { background: var(--c-accent); color: var(--c-on-accent); }
/* Room for a badge: the pill widens a little on the badge's side. */
.cm-act--pill:has(.cm-pill__badge) { position: relative; padding-right: 20px; }
html[data-appearance="glass"] .cm-act--pill:not(.is-on, .cm-acts--feed > .cm-act) { background: rgba(255, 255, 255, 0.1); }
html[data-appearance="glass"] .cm-act--pill:not(.is-on, .cm-acts--feed > .cm-act):hover { background: rgba(255, 255, 255, 0.16); }
/* The same pills over the dark viewer: translucent white, the bubble white
   on the black. */
.cm-vbtn.cm-vbtn--pill { gap: 7px; height: 36px; padding: 0 15px; border: 0; overflow: visible; background: color-mix(in srgb, var(--white) 14%, transparent); font-size: 13.5px; font-weight: 600; }
.cm-vbtn.cm-vbtn--pill:has(.cm-pill__badge) { position: relative; padding-right: 22px; }
.cm-vbtn.cm-vbtn--pill:hover { background: color-mix(in srgb, var(--white) 22%, transparent); }
.cm-vbtn.cm-vbtn--pill.is-on { background: color-mix(in srgb, var(--c-accent) 22%, transparent); color: var(--c-accent); }
.cm-vbtn.cm-vbtn--pill .cm-pill__badge { border-color: #0b0b0c; background: #ffffff; color: #0b0b0c; }
.cm-vbtn.cm-vbtn--pill.is-on .cm-pill__badge { background: var(--c-accent); color: var(--c-on-accent); }

.cm-vbtn .cm-tap__n { border-color: #0b0b0c; background: #ffffff; color: #0b0b0c; }
.cm-vbtn { padding: 0 12px; }
.cm-vbtn .cm-tap__icon { font-size: 18px; }

/* The thread under a card: its replies and a reply box. */
.cm-thread { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 10px; padding: 14px 16px; border-radius: 16px; background: var(--c-soft); }
.cm-thread--replies {
  gap: 12px; margin: 12px 0 4px; padding: 12px 0 4px;
  border-top: 1px solid var(--c-line); border-radius: 0;
  background: transparent; color: var(--c-ink);
}
.cm-thread__heading { margin: 0; font-size: 14px; font-weight: 600; }
.cm-thread__item {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: start; gap: 8px; overflow-wrap: anywhere;
}
.cm-thread--replies .cm-avatar { width: 28px; height: 28px; }
.cm-thread__byline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 13px; }
.cm-thread__time { color: var(--c-dim); font-size: 12px; }
.cm-thread__message { margin: 4px 0 0; font-size: 14px; line-height: 1.45; white-space: pre-wrap; }
.cm-thread__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: end; gap: 4px; }
.cm-thread__del { min-height: 28px; border: 0; border-radius: 6px; background: transparent; color: var(--c-dim); font-size: 12px; cursor: pointer; }
.cm-thread__del:hover { background: var(--c-soft); color: var(--c-ink); }
.cm-thread__none { font-size: 14px; color: var(--c-faint); }
.cm-thread__form { display: flex; gap: 8px; }
.cm-thread__form input { flex: 1; min-width: 0; height: 42px; border-radius: 21px; border: 1.5px solid var(--c-edge); background: var(--c-page); color: var(--c-ink); padding: 0 16px; font-size: 15px; outline: none; }
.cm-thread__form input:focus { border-color: var(--c-ink); }
.cm-thread__form textarea { flex: 1; min-width: 0; padding: 8px; border: 1px solid var(--c-edge); border-radius: 8px; background: var(--c-page); color: var(--c-ink); font: inherit; }
.cm-thread__form button { height: 42px; padding: 0 18px; border-radius: 21px; border: 0; background: var(--c-accent); color: var(--c-on-accent); font-size: 14px; font-weight: 800; cursor: pointer; }
.cm-thread__closed { font-size: 14px; color: var(--c-faint); display: flex; align-items: center; gap: 10px; }
.cm-thread__closed button { height: 34px; padding: 0 14px; border-radius: 17px; border: 0; background: var(--c-accent); color: var(--c-on-accent); font-weight: 800; font-size: 13px; cursor: pointer; }
.cm-thread--replies :is(.cm-thread__none, .cm-thread__closed) { margin: 0; color: var(--c-dim); font-size: 13px; }
.cm-thread--replies .cm-thread__form { align-items: center; }
.cm-thread--replies .cm-thread__form input {
  height: 36px; padding-inline: 12px; border: 1px solid var(--c-line);
  border-radius: 8px; background: var(--c-soft); font-size: 14px;
}
.cm-thread--replies .cm-thread__form input::placeholder { color: var(--c-dim); opacity: 1; }
.cm-thread--replies .cm-thread__form input:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.cm-thread--replies :is(.cm-thread__form, .cm-thread__closed) button {
  height: 36px; padding-inline: 12px; border-radius: 8px; font-size: 13px; font-weight: 600;
}
.cm-thread--replies .cm-thread__closed button { border: 1px solid var(--c-line); background: transparent; color: var(--c-ink); }
.cm-thread--replies .cm-thread__form button:disabled { background: var(--c-soft); color: var(--c-dim); cursor: default; }

/* FOCUS: the room alone -- no bar, cover or rail; the feed centred. */
.tab-community.is-focus .cm-top,
.tab-community.is-focus .cm-rh,
.tab-community.is-focus .cm-nav,
.tab-community.is-focus .cm-navtoggle,
.tab-community.is-focus .cm-rail { display: none; }
.tab-community.is-focus .cm-shell { grid-template-columns: minmax(0, 1fr); border-top: 0; }
.tab-community.is-focus .cm-center { width: 100%; max-width: 860px; margin: 0 auto; }
.tab-community.is-focus .cm-shell .cm-room__grid { grid-template-columns: minmax(0, 1fr); }
.tab-community.is-focus .cm-main { padding-top: 0; }

/* ----------------------------------------------------------------- states */

.cm-sentinel { height: 1px; }
.cm-empty { padding: 56px 16px; text-align: center; }
.cm-empty[hidden] { display: none; }
.cm-empty__line { margin: 0; font-size: 18px; font-weight: 700; color: var(--c-ink); }
.cm-empty small { display: block; margin-top: 8px; font-size: 14px; color: var(--c-dim); }
.cm-loading { display: flex; justify-content: center; padding: 22px 0; }
.cm-loading[hidden] { display: none; }
.cm-spinner {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid var(--c-edge);
  border-top-color: var(--c-ink);
  animation: cm-spin 0.7s linear infinite;
}
@keyframes cm-spin { to { transform: rotate(360deg); } }

/* ----------------------------------------------------------------- viewer */

.cm-viewer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--ink);
  color: var(--white);
  display: flex;
  flex-direction: column;
  animation: cm-fade 0.2s ease;
}
.cm-viewer[hidden] { display: none; }
html:has(#cm-viewer:not([hidden])) :is(#cm-app-search, #cm-fab-post) { display: none !important; }
.cm-viewer__top { display: flex; align-items: center; gap: 12px; padding: 18px 24px; }
.cm-viewer__av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #333; flex: 0 0 auto; }
.cm-viewer__who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cm-viewer__who b { font-size: 15px; font-weight: 800; }
.cm-viewer__who span { font-size: 13px; color: #b5b5b5; }
.cm-viewer__pos { font-family: var(--mono); font-size: 13px; color: #b5b5b5; }
.cm-viewer__close {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.cm-viewer__stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 90px; }
.cm-viewer__frame { position: relative; height: 100%; max-width: 100%; display: flex; align-items: center; justify-content: center; }
.cm-viewer__frame img,
.cm-viewer__frame video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 14px; background: #000; display: block; }
.cm-viewer__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  color: var(--white);
  font-size: 22px;
  cursor: pointer;
}
.cm-viewer__nav:hover { background: var(--white); color: var(--ink); }
.cm-viewer__nav--prev { left: 20px; }
.cm-viewer__nav--next { right: 20px; }
.cm-viewer__nav[hidden] { display: none; }
.cm-viewer__foot { display: flex; justify-content: flex-end; align-items: center; gap: 16px; padding: 18px 24px 22px; flex-wrap: wrap; }
.cm-viewer__text { margin-top: 4px; max-height: 3em; overflow: auto; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.cm-viewer__text:empty { display: none; }
.cm-viewer__foot { position: relative; }
.cm-viewer__foot .cm-viewer__pos { position: absolute; left: 50%; transform: translateX(-50%); }
.cm-viewer__foot .cm-viewer__pos:empty { display: none; }
@media (max-width: 760px) {
  .cm-viewer__foot .cm-viewer__pos { position: static; transform: none; margin-inline-end: auto; }
}

.cm-viewer__acts { display: flex; gap: 6px; }
.cm-viewer.is-media-card { --viewer-gutter: max(clamp(48px, 6vw, 90px), calc((100% - 1200px) / 2)); }
.cm-viewer.is-media-card :is(.cm-viewer__top, .cm-viewer__stage, .cm-viewer__foot) { padding-inline: var(--viewer-gutter); }
.cm-viewer.is-media-card .cm-viewer__top { align-items: flex-start; }
.cm-viewer__close { border: 0; background: #ffffff24; }
.cm-viewer__close:hover { background: #ffffff38; }
.cm-viewer.is-media-card .cm-viewer__frame { width: 100%; }
.cm-viewer__frame .community-card-player {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; min-height: 0; background: transparent;
}
.cm-viewer__frame .community-card-player iframe {
  width: min(100%, 1200px); height: 100%; border: 0; border-radius: 14px;
}
.cm-viewer__frame .community-card-player audio { width: min(100%, 560px); }
.cm-viewer__frame .community-card-player video { width: 100%; height: 100%; }
.cm-viewer.is-media-card .cm-viewer__acts .cm-acts { margin: 0; flex-wrap: wrap; }
.cm-viewer.is-media-card .cm-act--pill { color: #fff; background: #ffffff24; }
.cm-viewer.is-media-card .cm-act--pill:hover { background: #ffffff38; }
.cm-viewer.is-media-card .cm-act--pill.is-on { color: #fff; background: var(--c-accent); }
.cm-viewer.is-media-card .cm-viewer__acts :is(.cm-act--pill, .cm-byte-views) {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; height: 36px; padding-inline: 10px; box-sizing: border-box;
  border: 0; border-radius: 18px; color: #fff;
}
.cm-viewer.is-media-card .cm-viewer__acts .cm-byte-views { background: #ffffff24; }
.cm-viewer.is-media-card .cm-viewer__acts :is(.cm-pill__ico, .cm-byte-views > i) {
  display: grid; place-items: center; width: 16px; font-size: 14px;
}
@media (max-width: 600px) {
  .cm-viewer.is-media-card .cm-viewer__nav { width: 34px; height: 34px; }
  .cm-viewer.is-media-card .cm-viewer__nav--prev { left: 8px; }
  .cm-viewer.is-media-card .cm-viewer__nav--next { right: 8px; }
}
.cm-vbtn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: 20px;
  border: 1.5px solid var(--white);
  background: transparent;
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.cm-vbtn small { font-family: var(--mono); font-size: 12px; opacity: 0.7; }
.cm-vbtn.is-on { background: var(--white); color: var(--ink); }
.cm-vbtn--solid { background: var(--white); color: var(--ink); }
.cm-vbtn:disabled { opacity: 0.6; cursor: default; }
/* A new blip, before it posts: its caption line in the viewer's foot. */
.cm-blip-cap {
  width: 100%;
  height: 44px;
  padding: 0 18px;
  border-radius: 22px;
  border: 1.5px solid color-mix(in srgb, var(--white) 40%, transparent);
  background: color-mix(in srgb, var(--white) 10%, transparent);
  color: var(--white);
  font-size: 15px;
  outline: none;
}
.cm-blip-cap::placeholder { color: color-mix(in srgb, var(--white) 55%, transparent); }
.cm-blip-cap:focus { border-color: var(--white); }

/* -------------------------------------------------------------- mini TV */

.cm-pip {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  width: min(300px, calc(var(--pane-w, 100vw) - 40px));
  padding: 8px;
  border-radius: 20px;
  background: #18181b;
  box-shadow: inset 0 0 0 1.5px #26262a, 0 24px 60px rgba(0, 0, 0, 0.45);
  color: var(--white);
  animation: cm-rise 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cm-pip[hidden] { display: none; }
.tab-community.is-focus .cm-pip,
.tab-community.is-viewing .cm-pip { display: none; }
.cm-pip__screen { position: relative; aspect-ratio: 16 / 9; border-radius: 13px; overflow: hidden; background: #000; cursor: pointer; }
.cm-pip__media { position: absolute; inset: 0; display: grid; place-items: center; }
.cm-pip__media video,
.cm-pip__media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cm-pip__media .cm-pip__note { font-size: 34px; }
.cm-pip__lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px);
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.6);
}
.cm-pip__over {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.2s;
}
.cm-pip__controls { display: contents; }
.cm-pip__controls > span, .cm-pip__view a > span { display: none; }
.cm-pip__over #cm-pip-up { order: -1; }
.cm-pip__screen:hover .cm-pip__over { opacity: 1; }
.cm-pip__small { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.18); color: var(--white); font-size: 12px; cursor: pointer; }
.cm-pip__play { width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--white); color: var(--ink); font-size: 15px; cursor: pointer; }
.cm-pip__corner {
  position: absolute;
  top: 8px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 0;
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
  font-size: 12px;
  cursor: pointer;
  display: grid;
  place-items: center;
  text-decoration: none;
}
.cm-pip__corner--l { left: 8px; }
.cm-pip__corner--r { right: 8px; }
.cm-pip__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.12); }
.cm-pip__fill { height: 100%; width: 0; background: var(--hl-dark); }
.cm-pip__label { display: flex; align-items: center; gap: 10px; padding: 8px 4px 2px; }
.cm-pip__program { display: contents; }
.cm-pip__on-now, .cm-pip__sound { display: none; }
.cm-pip__ch { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--hl-dark); }
.cm-pip__title { flex: 1; min-width: 0; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------- link cards (dark) */

.cm-card {
  margin-top: 14px;
  display: flex;
  gap: 14px;
  align-items: stretch;
  border: 2px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  text-decoration: none;
  color: inherit;
}
.cm-card__img { width: 150px; flex: 0 0 150px; object-fit: cover; background: var(--panel-2); min-height: 100px; }
.cm-card__body { padding: 14px 14px 14px 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cm-card:not(:has(.cm-card__img)) .cm-card__body { padding-left: 14px; }
.cm-card__src { font-family: var(--mono); font-size: 12px; color: #666; display: flex; gap: 6px; align-items: center; }
.cm-card__src img { width: 16px; height: 16px; border-radius: 4px; }
.cm-card__title {
  font-family: var(--tag);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ------------------------------------------------------------------ menu */

.cm-menu {
  position: fixed;
  z-index: 80;
  min-width: 170px;
  padding: 6px;
  border-radius: 14px;
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}
.cm-menu button {
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-family: var(--tag);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.cm-menu button:hover { background: var(--panel); }
.cm-menu button.is-danger { color: #e0352b; }

/* ------------------------------------------------------- composer sheet */

.cm-sheet {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  width: min(460px, var(--pane-w, 100vw));
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-left: 2px solid var(--ink);
  box-shadow: -24px 0 50px rgba(0, 0, 0, 0.12);
  animation: cm-slide 0.18s ease;
}
@keyframes cm-slide { from { transform: translateX(28px); opacity: 0; } }
.cm-sheet[hidden] { display: none; }
.cm-sheet__bar {
  flex: 0 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 22px;
  border-bottom: 1px solid var(--c-edge);
}
.cm-sheet__title {
  font-family: var(--wide);
  font-weight: 900;
  font-stretch: 125%;
  font-size: 20px;
  text-transform: uppercase;
}

/* ------------------------------------------------------------- composer */

.cm-sheet-back { position: fixed; inset: 0; z-index: 49; background: rgba(0, 0, 0, 0.28); }
.cm-sheet-back[hidden] { display: none; }
.cm-sheet.is-drop { box-shadow: -24px 0 50px rgba(0, 0, 0, 0.12), inset 0 0 0 4px var(--hl); }
.cm-sheet__cancel {
  border: 0;
  background: none;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.cm-sheet__spacer { width: 60px; }

.cm-compose { flex: 1 1 auto; overflow-y: auto; padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 16px; }
.cm-compose__who { display: flex; align-items: center; gap: 12px; }
.cm-compose textarea { flex: 0 0 auto; min-height: 150px; resize: vertical; }
.cm-compose__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #777;
}
.cm-compose__name { font-family: var(--tag); font-weight: 700; font-size: 18px; }
.cm-compose__attach {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 2px dashed #bdbdbd;
  border-radius: 18px;
  cursor: pointer;
  font-family: var(--tag);
  font-weight: 700;
  font-size: 16px;
}
.cm-compose__attach i { font-size: 20px; }
.cm-compose__attach em { margin-left: auto; font-style: normal; font-weight: 500; font-size: 13px; color: #888; }
.cm-compose__attach:hover { border-color: var(--ink); }
.cm-compose__preview { position: relative; align-self: flex-start; }
.cm-compose__preview[hidden] { display: none; }
.cm-compose__preview img,
.cm-compose__preview video { max-width: 100%; max-height: 260px; border-radius: 14px; display: block; }
.cm-compose__preview .cm-icon-btn { position: absolute; top: 8px; right: 8px; background: rgba(0, 0, 0, 0.7); color: #fff; }
.cm-compose__field { display: flex; flex-direction: column; gap: 6px; }
#cm-compose-room {
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 2px solid var(--ink);
  background: var(--white);
  font-family: var(--tag);
  font-weight: 700;
  font-size: 16px;
  outline: none;
}
.cm-compose__field:has(#cm-compose-room[hidden]) { display: none; }
.cm-compose__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.cm-compose__hint { font-family: var(--mono); font-size: 11px; color: #888; }

/* ------------------------------------------------------------- new room */

/* The owner's way in: a card the size of a room card at the end of the row,
   dashed so it reads as "add", not as a room. */
.cm-room--new {
  background: transparent;
  border: 2px dashed var(--ink);
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-family: var(--tag);
  font-weight: 700;
  font-size: 18px;
}
.cm-room--new:hover { background: var(--panel); }
.cm-room--new i { font-size: 22px; }

.cm-roomform__heading {
  font-family: var(--wide);
  font-weight: 900;
  font-stretch: 125%;
  font-size: 26px;
  text-transform: uppercase;
  line-height: 1;
}
/* The live preview card the phone shows above the fields. */
.cm-roomform__preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 18px;
  background: var(--panel);
}
.cm-roomform__thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--ink) center / cover no-repeat;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.cm-roomform__thumb.has-image i { display: none; }
.cm-roomform__copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.cm-roomform__ptitle { font-family: var(--tag); font-weight: 700; font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-roomform__pdesc { font-size: 14px; color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-roomform__input {
  height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  border: 2px solid var(--ink);
  background: var(--white);
  font-family: var(--read);
  font-size: 16px;
  outline: none;
}
.cm-roomform__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.cm-roomform__opt {
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  font-family: var(--tag);
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.cm-roomform__opt.is-on { background: var(--ink); color: var(--white); }
#cm-room-access {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
#cm-room-access .cm-roomform__opt {
  justify-content: center;
  min-width: 0;
  padding-inline: 2px;
  border-width: 1px;
  font: 650 13px var(--read);
}
.cm-roomform__paid { display: flex; flex-direction: column; gap: 16px; }
.cm-roomform__paid[hidden] { display: none; }
#cm-room-preview-fields[hidden] { display: none; }
.cm-roomform__textarea { height: auto; min-height: 76px; padding-top: 12px; resize: vertical; }
.cm-roomform__stripe { margin: 0; font-size: 14px; color: #b3261e; }
.cm-roomform__stripe:empty { display: none; }
.cm-roomform__err { margin: 0; font-size: 14px; color: #b3261e; }
.cm-roomform__err[hidden] { display: none; }
#cm-room-submit {
  min-width: 148px;
  min-height: 44px;
  justify-content: center;
  border-radius: 10px;
  background: var(--btn);
  border-color: var(--btn);
  color: var(--on-btn);
  font: 700 14px var(--read);
}
#cm-room-submit:hover:not(:disabled) { filter: brightness(0.92); }
#cm-room-submit:disabled { opacity: 0.45; cursor: default; }

#cm-gate-join { background: var(--btn); border-color: var(--btn); color: var(--on-btn); }

/* ------------------------------------------------------------ app card */

/* The same card the TV drops under its pill (tv.css, "app card"). */
.cm-hero {
  position: absolute;
  z-index: 60;
  width: 500px;
  max-width: calc(var(--pane-w, 100vw) - 24px);
  border-radius: 26px;
  overflow: hidden;
  background: #0b0b0f;
  color: var(--white);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  animation: cm-hero-in 0.16s ease;
}
@keyframes cm-hero-in { from { opacity: 0; transform: translateY(-6px); } }
.cm-hero[hidden] { display: none; }
.cm-hero__photo { position: relative; height: 300px; background: #16161c; }
.cm-hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(11, 11, 15, 0) 45%, rgba(11, 11, 15, 0.85) 85%, #0b0b0f 100%);
}
.cm-hero__x {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--white);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.cm-hero__caption { position: relative; z-index: 1; margin-top: -64px; padding: 0 28px 28px; }
.cm-hero__name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--wide);
  font-weight: 900;
  font-stretch: 125%;
  font-size: 42px;
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.cm-hero__verified { color: #24c26a; font-size: 0.6em; flex: 0 0 auto; }
.cm-hero__role { margin-top: 12px; font-family: var(--tag); font-weight: 700; font-size: 19px; }
.cm-hero__org {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  font-family: var(--tag);
  font-weight: 600;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.86);
}
.cm-hero__place { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, 0.7); }
.cm-hero__place i { font-size: 13px; }
.cm-hero__links { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cm-hero__social,
.cm-hero__site {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.94);
  color: #16161c;
  text-decoration: none;
  transition: transform 0.12s ease;
}
.cm-hero__social:hover,
.cm-hero__site:hover { transform: translateY(-2px); }
.cm-hero__social { width: 46px; height: 46px; border-radius: 14px; }
.cm-hero__site { width: 54px; height: 54px; border-radius: 17px; }
.cm-hero__mark { display: flex; }
.cm-hero__mark svg { width: 27px; height: 27px; display: block; }
.cm-hero__mark[data-platform="instagram"] { color: #d62976; }
.cm-hero__mark[data-platform="facebook"] { color: #2f6bff; }
.cm-hero__mark[data-platform="youtube"] { color: #ff3428; --platform-badge-bg: #16161c; }
.cm-hero__mark[data-platform="x"],
.cm-hero__mark[data-platform="tiktok"] { color: #0b0b0f; }
.cm-hero__fav {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 14px;
  overflow: hidden;
}
.cm-hero__fav img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cm-hero__fav.has-icon { color: transparent; }

.cm-gate {
  position: fixed;
  inset: var(--top-h) 0 0 0;
  z-index: 30;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cm-gate[hidden] { display: none; }
.cm-gate__inner { max-width: 420px; text-align: center; }
.cm-gate__title {
  margin: 0 0 10px;
  font-family: var(--wide);
  font-weight: 900;
  font-stretch: 125%;
  font-size: 40px;
  text-transform: uppercase;
}
.cm-gate__line { margin: 0 0 22px; font-size: 17px; color: #555; line-height: 1.5; }
.cm-gate__actions { display: flex; gap: 10px; justify-content: center; }
.cm-gate__actions [hidden] { display: none; }

.cm-pop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.cm-pop[hidden] { display: none; }
.cm-pop__card {
  width: 360px;
  padding: 24px;
  border-radius: 24px;
  border: 2px solid var(--ink);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cm-pop__title { margin: 0 0 4px; font-family: var(--wide); font-weight: 900; font-stretch: 125%; font-size: 24px; text-transform: uppercase; }
.cm-pop__card input {
  height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  border: 2px solid var(--ink);
  background: var(--white);
  font-size: 16px;
  outline: none;
}
.cm-pop__err { margin: 0; min-height: 18px; font-size: 13px; color: #e0352b; }
.cm-pop__row { display: flex; gap: 8px; justify-content: flex-end; }


.cm-hint {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 96;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--mono);
  font-size: 12px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}
.cm-hint.is-up { opacity: 1; transform: none; }

/* The same cards, in a room card's colours. */
.cm-msg .cm-card { border: 1.5px solid var(--c-edge); background: transparent; color: var(--c-ink); }
.cm-msg .cm-card__img { background: var(--c-soft); }
.cm-msg .cm-card__src { color: var(--c-faint); }

/* ------------------------------------------------------------ narrower */

@media (max-width: 1180px) {
  .cm-shell, .cm-shell[data-page="room"] { grid-template-columns: 240px minmax(0, 1fr); }
  .cm-shell.is-navless, .cm-shell.is-navless[data-page="room"] { grid-template-columns: 72px minmax(0, 1fr); }
  .cm-shell > .cm-side2 { min-height: 0; }
  .cm-side2 { grid-column: 2; position: static; max-height: none; border-left: 0; border-top: 1px solid var(--c-line); padding: 22px 26px 48px; }
  /* Sections in a grid: each carries a hairline on top, and the panel clips
     the first row's so only the lines between rows show. */
  .cm-side2__body { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px; padding: 0 18px 2px; overflow: hidden; }
  .cm-side2__body > *, .cm-side2__body > * + * { margin-top: -1px; border-top: 1px solid var(--c-line); }
  .cm-side2 .cm-pipslot { max-width: 360px; }
  .cm-shell[data-page="room"] .cm-room__grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; }
}
/* Split View: the same, for a narrow pane. */
@container pane (max-width: 1180px) {
  .cm-shell, .cm-shell[data-page="room"] { grid-template-columns: 240px minmax(0, 1fr); }
  .cm-shell.is-navless, .cm-shell.is-navless[data-page="room"] { grid-template-columns: 72px minmax(0, 1fr); }
  .cm-shell > .cm-side2 { min-height: 0; }
  .cm-side2 { grid-column: 2; position: static; max-height: none; border-left: 0; border-top: 1px solid var(--c-line); padding: 22px 26px 48px; }
  /* Sections in a grid: each carries a hairline on top, and the panel clips
     the first row's so only the lines between rows show. */
  .cm-side2__body { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px; padding: 0 18px 2px; overflow: hidden; }
  .cm-side2__body > *, .cm-side2__body > * + * { margin-top: -1px; border-top: 1px solid var(--c-line); }
  .cm-side2 .cm-pipslot { max-width: 360px; }
  .cm-shell[data-page="room"] .cm-room__grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; }
}

@media (max-width: 860px) {
  .cm-top { flex-wrap: wrap; padding: 14px 16px; }
  .cm-blips { order: 3; flex-basis: 100%; }
  .cm-shell, .cm-shell[data-page="room"], .cm-shell.is-navless, .cm-shell.is-navless[data-page="room"] { grid-template-columns: minmax(0, 1fr); }
  /* The rooms are a menu up here; there is nothing to fold. */
  .cm-navtoggle { display: none; }
  .cm-shell.is-navless .cm-nav { padding: 10px 16px; }
  .cm-shell.is-navless .cm-nav > .cm-nav__pick { display: block; }
  .cm-shell.is-navless .cm-nav > .cm-nav__list { display: contents; }
  .cm-shell.is-navless .cm-nav > .cm-nav__new { display: flex; }
  .cm-nav { position: sticky; top: 0; z-index: 16; max-height: none; min-height: 0; flex-direction: row; align-items: center; gap: 8px; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--c-line); background: var(--paper); }
  .cm-shell > .cm-nav { min-height: 0; }
  .cm-nav__eye { display: none; }
  /* The rooms go into the menu; + New room stays beside it for the owner. */
  .cm-nav__list { display: contents; }
  .cm-nav__list > :not(.cm-nav__new) { display: none; }
  .cm-nav__home { display: none; }
  .cm-nav__pick { display: block; flex: 1; min-width: 0; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--c-edge); background: transparent; color: var(--c-ink); font: inherit; font-size: 14px; font-weight: 400; }
  .cm-nav__new, .cm-nav.is-folded .cm-nav__new { display: flex; margin: 0; flex: none; width: auto; min-height: 40px; height: 40px; gap: 8px; padding: 0 14px; border: 1px solid var(--c-edge); font-size: 14px; color: var(--c-ink); }
  .cm-center { padding: 16px 16px 40px; }
  .cm-side2 { grid-column: 1; padding: 20px 16px 40px; }
  .cm-side2__body { grid-template-columns: minmax(0, 1fr); }
  .cm-tabs { top: 61px; }
  .cm-banner { flex-wrap: wrap; padding: 18px; }
  .cm-banner__pic { width: 64px; height: 64px; }
  .cm-banner__title { font-size: 28px; }
  .cm-composer.is-home { grid-template-columns: 40px minmax(0, 1fr) 44px auto; }
  .cm-composer.is-home .cm-composer__to { grid-column: 1 / -1; grid-row: 2; justify-self: start; margin: 2px 0 4px 6px; }
  .cm-rh { min-height: 250px; padding: 80px 20px 20px; border-radius: 22px; }
  .cm-rh__row { flex-wrap: wrap; }
  .cm-rh__pic { width: 64px; height: 64px; border-radius: 18px; }
  .cm-rh__title { font-size: 30px; }
  .cm-tab { padding: 0 12px; }
  .cm-find { width: 210px; }
  .cm-shell[data-page="room"] .cm-room__grid { grid-template-columns: minmax(0, 1fr); }
  .cm-rail { display: none; }
}
/* Split View: the same, for a narrow pane. */
@container pane (max-width: 860px) {
  .cm-top { flex-wrap: wrap; padding: 14px 16px; }
  .cm-blips { order: 3; flex-basis: 100%; }
  .cm-shell, .cm-shell[data-page="room"], .cm-shell.is-navless, .cm-shell.is-navless[data-page="room"] { grid-template-columns: minmax(0, 1fr); }
  /* The rooms are a menu up here; there is nothing to fold. */
  .cm-navtoggle { display: none; }
  .cm-shell.is-navless .cm-nav { padding: 10px 16px; }
  .cm-shell.is-navless .cm-nav > .cm-nav__pick { display: block; }
  .cm-shell.is-navless .cm-nav > .cm-nav__list { display: contents; }
  .cm-shell.is-navless .cm-nav > .cm-nav__new { display: flex; }
  .cm-nav { position: sticky; top: 0; z-index: 16; max-height: none; min-height: 0; flex-direction: row; align-items: center; gap: 8px; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--c-line); background: var(--paper); }
  .cm-shell > .cm-nav { min-height: 0; }
  .cm-nav__eye { display: none; }
  /* The rooms go into the menu; + New room stays beside it for the owner. */
  .cm-nav__list { display: contents; }
  .cm-nav__list > :not(.cm-nav__new) { display: none; }
  .cm-nav__home { display: none; }
  .cm-nav__pick { display: block; flex: 1; min-width: 0; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--c-edge); background: transparent; color: var(--c-ink); font: inherit; font-size: 14px; font-weight: 400; }
  .cm-nav__new, .cm-nav.is-folded .cm-nav__new { display: flex; margin: 0; flex: none; width: auto; min-height: 40px; height: 40px; gap: 8px; padding: 0 14px; border: 1px solid var(--c-edge); font-size: 14px; color: var(--c-ink); }
  .cm-center { padding: 16px 16px 40px; }
  .cm-side2 { grid-column: 1; padding: 20px 16px 40px; }
  .cm-side2__body { grid-template-columns: minmax(0, 1fr); }
  .cm-tabs { top: 61px; }
  .cm-banner { flex-wrap: wrap; padding: 18px; }
  .cm-banner__pic { width: 64px; height: 64px; }
  .cm-banner__title { font-size: 28px; }
  .cm-composer.is-home { grid-template-columns: 40px minmax(0, 1fr) 44px auto; }
  .cm-composer.is-home .cm-composer__to { grid-column: 1 / -1; grid-row: 2; justify-self: start; margin: 2px 0 4px 6px; }
  .cm-rh { min-height: 250px; padding: 80px 20px 20px; border-radius: 22px; }
  .cm-rh__row { flex-wrap: wrap; }
  .cm-rh__pic { width: 64px; height: 64px; border-radius: 18px; }
  .cm-rh__title { font-size: 30px; }
  .cm-tab { padding: 0 12px; }
  .cm-find { width: 210px; }
  .cm-shell[data-page="room"] .cm-room__grid { grid-template-columns: minmax(0, 1fr); }
  .cm-rail { display: none; }
}

@media (max-width: 560px) {
  .cm-find { display: none; }
}
/* Split View: the same, for a narrow pane. */
@container pane (max-width: 560px) {
  .cm-find { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ------------------------------------------------------------ dark theme */

/* The whole page goes dark, not just the chat: near-black room, charcoal
   cards with thin edges, light text. The pill and MENU invert; the MENU card
   and the sheets stay readable. Light mode is untouched: every rule here is
   scoped to [data-theme="dark"]. */
:root[data-theme="dark"], :root[data-theme="dark"] .tab-community {
  --paper: #0b0b0c;
  --panel: #1c1c1f;
  --panel-2: #26262a;
  --line: #1f1f22;
  --dim: #a1a1a6;
  --card: #141416;
  --card-edge: #1f1f22;
  --chat: #141416;
  --tick-bg: #141416;
}
:root[data-theme="dark"] body:where(html:not(.ws-on) *), :root[data-theme="dark"] .ws-body.tab-community { color: #f2f2f2; }
:root[data-theme="dark"] .cm-id { background: transparent; border-color: #ffffff; color: #ffffff; }
:root[data-theme="dark"] .cm-id__check { background: #ffffff; color: #0e0e0e; }
:root[data-theme="dark"] .cm-id:focus-visible { outline-color: #ffffff; }
:root[data-theme="dark"] .cm-menu-btn { background: #ffffff; color: #0e0e0e; }
:root[data-theme="dark"] .cm-menu-btn:hover { background: #d9d9d9; }



/* Sheets, the login card and the gate: dark panels with light ink. */
:root[data-theme="dark"] .cm-sheet,
:root[data-theme="dark"] .cm-pop__card { background: var(--card); color: #f2f2f2; border-color: #3a3a3e; }
:root[data-theme="dark"] .cm-sheet__bar { border-color: #2a2a2e; }
:root[data-theme="dark"] .cm-sheet__cancel { color: #f2f2f2; }
:root[data-theme="dark"] .cm-roomform__input,
:root[data-theme="dark"] .cm-pop__card input { background: #0b0b0c; color: #f2f2f2; border-color: #3a3a3e; }
:root[data-theme="dark"] .cm-roomform__preview,
:root[data-theme="dark"] .cm-compose__attach { background: var(--panel); border-color: #3a3a3e; color: #f2f2f2; }
:root[data-theme="dark"] .cm-roomform__opt { background: transparent; color: #f2f2f2; border-color: #3a3a3e; }
:root[data-theme="dark"] .cm-roomform__opt.is-on { background: #ffffff; color: #0e0e0e; border-color: #ffffff; }
:root[data-theme="dark"] .cm-roomform__pdesc,
:root[data-theme="dark"] .cm-compose__label { color: #a1a1a6; }
:root[data-theme="dark"] .cm-pill { background: transparent; color: #f2f2f2; border-color: #f2f2f2; }
:root[data-theme="dark"] .cm-pill--ink { background: #ffffff; color: #0e0e0e; border-color: #ffffff; }
:root[data-theme="dark"] .cm-gate { background: var(--paper); color: #f2f2f2; }
:root[data-theme="dark"] .cm-gate__line { color: #a1a1a6; }
:root[data-theme="dark"] .cm-menu { background: var(--card); border-color: #3a3a3e; color: #f2f2f2; }
:root[data-theme="dark"] .cm-menu button:hover { background: var(--panel); }
:root[data-theme="dark"] .cm-hint { background: #ffffff; color: #0e0e0e; }

/* Dark: the MENU card goes dark with the page, so its hover (dark panel)
   and its text read. Before, the card stayed white while hover turned dark
   and the app name inherited the page's light text. */
:root[data-theme="dark"] .cm-dropdown { background: var(--card); border-color: #3a3a3e; color: #f2f2f2; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55); }
:root[data-theme="dark"] .cm-dropdown__who b,
:root[data-theme="dark"] .cm-dropdown__item,
:root[data-theme="dark"] .cm-dropdown__me.is-link { color: #f2f2f2; }
:root[data-theme="dark"] .cm-dropdown__who small,
:root[data-theme="dark"] .cm-dropdown__item small { color: #9a9aa0; }
:root[data-theme="dark"] .cm-dropdown__item:hover,
:root[data-theme="dark"] .cm-dropdown__me.is-link:hover { background: var(--panel-2); color: #ffffff; }
:root[data-theme="dark"] .cm-dropdown__item.is-on { background: #ffffff; color: #0e0e0e; }
:root[data-theme="dark"] .cm-dropdown__item.is-on small { color: rgba(14, 14, 14, 0.55); }
:root[data-theme="dark"] .cm-dropdown__item.is-on::after { background: rgba(14, 14, 14, 0.6); }
:root[data-theme="dark"] .cm-dropdown__item.is-on .dt-split,
:root[data-theme="dark"] .dt-row.is-current .dt-split { color: #0e0e0e; }
:root[data-theme="dark"] .cm-dropdown__signin { background: #ffffff; color: #0e0e0e; }

/* A new blip's room, beside Post in the viewer. */
.cm-blip-to { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 20px; border: 1.5px solid color-mix(in srgb, var(--white) 45%, transparent); color: var(--white); font-size: 14px; font-weight: 700; }
.cm-blip-to select { border: 0; outline: none; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.cm-blip-to select option { color: #0b0b0c; }

/* The right column's MEMBERS: faces with names, the owner first. */
/* The right column's MEMBERS: one compact row of faces, the owner first;
   names ride on the tooltip. */
.cm-faces2 { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 12px; }
.cm-faces2 .cm-join { width: auto; min-width: 0; }
.cm-faces2 .cm-join__face { width: 26px; height: 26px; font-size: 11px; font-weight: 600; }
.cm-faces2 .cm-join__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cm-faces2 .cm-join:hover .cm-join__face { box-shadow: 0 0 0 2px color-mix(in srgb, var(--c-ink) 25%, transparent); }
.cm-faces2 .cm-join.is-owner .cm-join__face { box-shadow: 0 0 0 1.5px var(--c-page), 0 0 0 3px var(--c-accent); }
.cm-side2__all { display: inline-block; margin-top: 10px; text-decoration: none; }

/* Everyone in the community, in a popup over the page. */
.cm-memlist { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 24px; background: rgba(0, 0, 0, 0.5); animation: cm-fade 0.15s ease; }
.cm-memlist__card { width: min(520px, 100%); height: min(680px, calc(var(--pane-h, 100vh) - 48px)); display: flex; flex-direction: column; border-radius: 24px; background: var(--c-page); color: var(--c-ink); box-shadow: inset 0 0 0 1.5px var(--c-ink), 0 24px 70px rgba(0, 0, 0, 0.4); overflow: hidden; animation: cm-rise 0.2s ease; }
.cm-memlist__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 12px; font-size: 20px; }
.cm-memlist__head b { font-weight: 900; }
.cm-memlist__x { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--c-ink); background: transparent; color: var(--c-ink); cursor: pointer; }
.cm-memlist__find { width: auto; margin: 0 22px 10px; }
.cm-memlist__list { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 22px 18px; border-top: 1px solid var(--c-edge); }
.cm-memlist__row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--c-line); }
.cm-memlist__row[hidden] { display: none; }
.cm-memlist__who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.cm-memlist__who:hover .cm-memlist__nm { text-decoration: underline; }
.cm-memlist__words { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cm-memlist__name { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 15px; font-weight: 800; }
.cm-memlist__nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-memlist__when { font-size: 12.5px; color: var(--c-dim); }
.cm-memlist__app { flex: none; height: 32px; padding: 0 12px; border-radius: 16px; border: 1.5px solid var(--c-edge); color: var(--c-ink); font-size: 12.5px; font-weight: 700; line-height: 29px; text-decoration: none; }
.cm-memlist__app:hover { border-color: var(--c-ink); }
.cm-memlist__more { padding: 14px 0 0; font-size: 13px; color: var(--c-dim); }
.cm-memlist__more[hidden] { display: none; }

/* ------------------------------------------------------------ blip viewer */

/* The phone's blip screen, desktop size. The page colour behind; a tall
   picture full height with white controls on a soft scrim; a wide one with
   the controls in the page's ink above and below it. */
.cm-bv {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--c-page);
  color: var(--c-ink);
  animation: cm-fade 0.15s ease;
}
.cm-bv__card { position: relative; display: flex; flex-direction: column; max-width: calc(0.92 * var(--pane-w, 100vw)); }
.cm-bv__loading { display: none; position: absolute; inset: 0; place-items: center; pointer-events: none; }
.cm-bv.is-loading .cm-bv__loading { display: grid; }
.cm-bv.is-loading .cm-bv__card { visibility: hidden; }
.cm-bv__media { position: relative; z-index: 0; border-radius: 22px; overflow: hidden; background: #000000; display: grid; place-items: center; min-width: 280px; }
.cm-bv__media img, .cm-bv__media video { display: block; height: calc(var(--pane-h, 100vh) - 48px); max-width: calc(0.92 * var(--pane-w, 100vw)); width: auto; object-fit: contain; }
.cm-bv__media.is-broken > :is(img, video) { display: none; }
.cm-bv__media.is-broken::after { content: "This blip is not available"; color: #ffffff; padding: 80px 40px; font-size: 14px; }
.cm-bv__top, .cm-bv__foot { position: absolute; left: 0; right: 0; z-index: 2; color: #ffffff; pointer-events: none; }
.cm-bv__top > *, .cm-bv__foot > * { pointer-events: auto; }
.cm-bv__top { top: 0; padding: 12px 14px 40px; border-radius: 22px 22px 0 0; background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,0)); }
.cm-bv__foot { bottom: 0; padding: 48px 16px 14px; border-radius: 0 0 22px 22px; background: linear-gradient(0deg, rgba(0,0,0,.6), rgba(0,0,0,0)); }
.cm-bv__half { position: absolute; top: 0; bottom: 0; z-index: 1; width: 50%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.cm-bv__half--prev { left: 0; cursor: w-resize; }
.cm-bv__half--next { right: 0; cursor: e-resize; }
.cm-bv__bars { display: flex; gap: 4px; }
.cm-bv__bar { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.35); overflow: hidden; }
.cm-bv__bar i { display: block; height: 100%; width: 0; background: #ffffff; }
.cm-bv__bar.is-done i { width: 100%; }
.cm-bv__head { position: relative; display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.cm-bv__av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #333; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }
.cm-bv__who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cm-bv__who b { font-size: 16px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-bv__who span { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; opacity: 0.9; }
.cm-bv__btns { display: flex; gap: 8px; }
.cm-bv__round { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.2); color: #ffffff; font-size: 18px; font-weight: 800; cursor: pointer; }
.cm-bv__round:hover { background: rgba(255, 255, 255, 0.34); }
.cm-bv__round svg { width: 18px; height: 18px; }
.cm-bv__add span { font-size: 24px; font-weight: 500; line-height: 1; }
.cm-bv__menu { position: absolute; right: 48px; top: 48px; z-index: 3; min-width: 190px; padding: 6px; border-radius: 16px; background: #ffffff; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35); }
.cm-bv__menu button { display: flex; align-items: center; gap: 10px; width: 100%; height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: #0b0b0c; font-size: 15px; font-weight: 700; text-align: left; cursor: pointer; }
.cm-bv__menu button.is-danger { color: #d7263d; }
.cm-bv__menu button:hover { background: #f2f2f2; }
.cm-bv__cap {
  margin-top: 10px;
  max-height: min(5em, 20vh);
  overflow: auto;
  overscroll-behavior: contain;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}
.cm-bv__cap:empty { display: none; }
.cm-bv__acts { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.cm-bv__gap { flex: 1; }
.cm-bv__act { color: #ffffff; }
.cm-bv__act:hover { background: rgba(255, 255, 255, 0.18); color: #ffffff; }
.cm-bv__act.is-on { color: #ffffff; }
.cm-bv__act .cm-tap__n { position: absolute; top: -7px; left: 50%; margin-left: 3px; min-width: 20px; height: 18px; padding: 0 5px; border-radius: 999px; border: 2px solid #0b0b0c; background: #ffffff; color: #0b0b0c; font-family: "Barlow", system-ui, sans-serif; font-size: 11px; font-weight: 800; line-height: 14px; text-align: center; }

/* A wide picture: page colour and ink around it. */
.cm-bv.is-wide .cm-bv__card { width: min(1100px, calc(0.92 * var(--pane-w, 100vw))); }
.cm-bv.is-wide .cm-bv__top, .cm-bv.is-wide .cm-bv__foot { position: relative; background: none; color: var(--c-ink); padding: 0 2px; }
.cm-bv.is-wide .cm-bv__top { padding-bottom: 14px; }
.cm-bv.is-wide .cm-bv__foot { padding-top: 14px; }
.cm-bv.is-wide .cm-bv__media img, .cm-bv.is-wide .cm-bv__media video { width: 100%; height: auto; max-height: calc(var(--pane-h, 100vh) - 260px); }
.cm-bv.is-wide .cm-bv__half { top: 80px; bottom: 90px; }
.cm-bv.is-wide .cm-bv__bar { background: color-mix(in srgb, var(--c-ink) 18%, transparent); }
.cm-bv.is-wide .cm-bv__bar i { background: var(--c-ink); }
.cm-bv.is-wide .cm-bv__av { box-shadow: 0 0 0 2px var(--c-ink); }
.cm-bv.is-wide .cm-bv__round { background: transparent; color: var(--c-ink); box-shadow: inset 0 0 0 1.5px var(--c-ink); }
.cm-bv.is-wide .cm-bv__round:hover { background: var(--c-soft); }
.cm-bv.is-wide .cm-bv__cap { text-shadow: none; }
.cm-bv.is-wide .cm-bv__act { color: var(--c-ink); }
.cm-bv.is-wide .cm-bv__act:hover { background: var(--c-soft); color: var(--c-ink); }
.cm-bv.is-wide .cm-bv__act .cm-tap__n { border-color: var(--c-page); background: var(--c-ink); color: var(--c-page); }
.cm-bv__comments {
  box-sizing: border-box; width: min(480px, calc(100% - 32px)); max-height: 75dvh; overflow: auto;
  padding: 14px; border: 1px solid var(--c-line); border-radius: 16px;
  background: var(--c-page); color: var(--c-ink);
}
.cm-bv__comments::backdrop { background: rgb(0 0 0 / .42); }
.cm-bv__comments .cm-bv__comments-close { float: right; color: var(--c-ink); background: var(--c-soft); }

/* ----------------------------------------------------------- blip creator */

/* A story camera, not a form: the tall stage is the picker and then the
   film (caption typed on it, white on a soft scrim), a strip of the other
   picks, room faces for where it goes, and Share in the app colour. Page,
   ink and accent come from the page's tokens (light, dark, page colour);
   anything on the film stays white. */
.cm-bc {
  --bc-stage-h: min(780px, calc(100vh - 104px));
  position: fixed; inset: 0; z-index: 80; overflow-y: auto;
  background: var(--c-page); color: var(--c-ink);
  animation: cm-fade 0.18s ease;
}
.cm-bc__col { min-height: 100%; max-width: calc(var(--bc-stage-h) * 9 / 16 + 440px); margin: 0 auto; padding: 18px 28px 28px; display: flex; flex-direction: column; }
.cm-bc__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cm-bc__x {
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--c-soft); color: var(--c-ink);
  box-shadow: inset 0 0 0 1.5px var(--c-line);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.cm-bc__x:hover { transform: rotate(90deg); background: var(--c-line); }
.cm-bc__x svg { width: 20px; height: 20px; }
.cm-bc__timer {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 10px;
  border-radius: 999px; background: var(--c-soft); box-shadow: inset 0 0 0 1.5px var(--c-line);
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--c-ink);
}
.cm-bc__timer svg { width: 15px; height: 15px; color: var(--c-accent); }

.cm-bc__body { flex: 1; display: flex; align-items: center; justify-content: center; gap: 44px; }

/* The stage. */
.cm-bc__stage {
  position: relative; flex: none;
  height: var(--bc-stage-h); aspect-ratio: 9 / 16; max-width: 100%;
  border-radius: 30px; overflow: hidden; isolation: isolate;
  background: #0b0b0c; color: #ffffff;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cm-bc__stage.is-empty {
  background: var(--c-soft);
  box-shadow: inset 0 0 0 2.5px var(--c-edge);
  color: var(--c-ink);
}
.cm-bc__stage.is-empty::before {
  content: ""; position: absolute; inset: 12px; border-radius: 22px; pointer-events: none;
  border: 2.5px dashed color-mix(in srgb, var(--c-ink) 22%, transparent);
  transition: border-color 0.15s ease, inset 0.2s ease;
}
.cm-bc__stage.is-empty:hover::before,
.cm-bc__stage.is-drag::before { border-color: var(--c-accent); inset: 8px; }
.cm-bc__stage.is-drag { transform: scale(1.015); }

.cm-bc__pick {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  cursor: pointer; text-align: center;
}
.cm-bc__stage:not(.is-empty) .cm-bc__pick { display: none; }
.cm-bc__pickdisc {
  width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c-accent); color: var(--c-on-accent);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--c-accent) 18%, transparent);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  animation: cm-bc-breathe 2.6s ease-in-out infinite;
}
.cm-bc__pick:hover .cm-bc__pickdisc { transform: scale(1.08) rotate(90deg); animation: none; }
.cm-bc__pickdisc svg { width: 44px; height: 44px; }
.cm-bc__pickword { font-family: var(--wide); font-size: 30px; line-height: 1; font-weight: 900; font-stretch: 80%; font-variation-settings: "wdth" 80; letter-spacing: -0.01em; }
.cm-bc__picksub { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--c-dim); }
.cm-bc__picksub svg { width: 17px; height: 17px; }
@keyframes cm-bc-breathe { 0%, 100% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--c-accent) 18%, transparent); } 50% { box-shadow: 0 0 0 16px color-mix(in srgb, var(--c-accent) 8%, transparent); } }

.cm-bc__film { position: absolute; inset: 0; }
.cm-bc__film img, .cm-bc__film video { width: 100%; height: 100%; object-fit: cover; display: block; animation: cm-bc-film 0.35s ease; }
@keyframes cm-bc-film { from { opacity: 0; transform: scale(1.04); } }
.cm-bc__stage::after {
  content: ""; position: absolute; inset: auto 0 0; height: 42%; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
}
.cm-bc__stage.is-empty::after { display: none; }
.cm-bc__drop {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(0, 0, 0, 0.42); color: #ffffff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.cm-bc__drop:hover { background: rgba(0, 0, 0, 0.62); transform: scale(1.08); }
.cm-bc__drop svg { width: 17px; height: 17px; }
.cm-bc__stage.is-empty .cm-bc__drop { display: none; }

/* The caption, typed on the film. */
.cm-bc__capwrap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 20px 22px; display: flex; align-items: flex-end; gap: 10px; }
.cm-bc__stage.is-empty .cm-bc__capwrap { display: none; }
.cm-bc__cap {
  box-sizing: border-box; flex: 1; min-width: 0; min-height: 44px; max-height: 132px;
  padding: 11px 14px; border: 0; border-radius: 12px; resize: none; overflow-y: auto;
  caret-color: #ffffff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 58%);
  font: inherit; font-size: 17px; font-weight: 600; line-height: 22px;
}
.cm-bc__cap:focus { outline: 2px solid #ffffff; outline-offset: 2px; }
/* On the film in every look: the page-colour field rule must not reach it. */
:root .cm-bc .cm-bc__stage .cm-bc__capwrap textarea.cm-bc__cap:not(#bc) { background: rgb(0 0 0 / 74%); color: #ffffff; -webkit-text-fill-color: #ffffff; }
:root .cm-bc .cm-bc__stage .cm-bc__capwrap textarea.cm-bc__cap:not(#bc)::placeholder { color: rgb(255 255 255 / 86%); -webkit-text-fill-color: rgb(255 255 255 / 86%); }
.cm-bc__count { flex: none; font-family: var(--mono); font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, 0.8); }
.cm-bc__count.is-out { color: #ffb4a8; }
.cm-bc__count[hidden] { display: none; }
.cm-bc__stage.is-posting .cm-bc__film { animation: cm-bc-busy 1.4s ease-in-out infinite; }
@keyframes cm-bc-busy { 50% { opacity: 0.72; } }

/* Beside the stage: the other picks, the rooms, Share. */
.cm-bc__side { width: 340px; flex: none; display: flex; flex-direction: column; gap: 26px; }
.cm-bc__strip { display: flex; flex-wrap: wrap; gap: 10px; }
.cm-bc__strip[hidden] { display: none; }
.cm-bc__thumb, .cm-bc__more {
  position: relative; width: 58px; height: 80px; padding: 0; border: 0; border-radius: 14px; overflow: hidden; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: cm-bc-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cm-bc__thumb { background: #000; }
.cm-bc__thumb img, .cm-bc__thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-bc__thumb.is-on { box-shadow: 0 0 0 2.5px var(--c-page), 0 0 0 5px var(--c-accent); }
.cm-bc__thumb:hover, .cm-bc__more:hover { transform: translateY(-2px); }
.cm-bc__more { display: grid; place-items: center; background: var(--c-soft); color: var(--c-ink); box-shadow: inset 0 0 0 2px var(--c-line); }
.cm-bc__more svg { width: 22px; height: 22px; }

.cm-bc__to { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 8px; }
.cm-bc__to.is-pinned { display: flex; }
.cm-bc__room {
  min-width: 0; padding: 0; border: 0; background: none; cursor: pointer; color: var(--c-ink);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
}
.cm-bc__to.is-pinned .cm-bc__room { flex-direction: row; gap: 14px; cursor: default; }
.cm-bc__ring { position: relative; width: 68px; height: 68px; border-radius: 50%; transition: transform 0.2s ease; }
.cm-bc__room:hover .cm-bc__ring { transform: scale(1.06); }
.cm-bc__face {
  position: relative; display: grid; place-items: center; width: 100%; height: 100%;
  border-radius: 50%; overflow: hidden; background: var(--c-soft);
  box-shadow: inset 0 0 0 1.5px var(--c-line);
}
.cm-bc__face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-bc__face.is-empty { background: var(--c-ink); color: var(--c-page); }
.cm-bc__initial { font-family: var(--wide); font-size: 26px; font-weight: 900; line-height: 1; }
.cm-bc__room.is-on .cm-bc__ring {
  box-shadow: 0 0 0 3px var(--c-page), 0 0 0 7px var(--c-accent);
  animation: cm-bc-pop 0.34s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cm-bc__tick {
  position: absolute; right: -4px; bottom: -4px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; background: var(--c-accent); color: var(--c-on-accent);
  box-shadow: 0 0 0 3px var(--c-page);
  transform: scale(0); transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cm-bc__tick svg { width: 14px; height: 14px; }
.cm-bc__room.is-on .cm-bc__tick { transform: scale(1); }
.cm-bc__lock {
  position: absolute; left: -3px; top: -3px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--c-ink); color: var(--c-page);
  box-shadow: 0 0 0 2.5px var(--c-page);
}
.cm-bc__lock svg { width: 11px; height: 11px; }
.cm-bc__rname {
  max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: 12px; font-weight: 700; line-height: 1.1; color: var(--c-dim);
}
.cm-bc__room.is-on .cm-bc__rname { color: var(--c-ink); }
.cm-bc__to.is-pinned .cm-bc__rname { font-size: 20px; font-weight: 850; color: var(--c-ink); }
@keyframes cm-bc-pop { 0% { transform: scale(0.82); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }

.cm-bc__post {
  width: 100%; height: 62px; padding: 0 10px 0 8px; border: 0; border-radius: 999px; cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  background: var(--c-accent); color: var(--c-on-accent);
  font-family: var(--wide); font-size: 19px; font-weight: 900; letter-spacing: -0.01em;
  transition: transform 0.15s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--c-accent) 80%, transparent);
}
.cm-bc__post:not(:disabled):hover { transform: translateY(-2px); }
.cm-bc__post:not(:disabled):active { transform: scale(0.97); }
.cm-bc__post:disabled { opacity: 0.38; cursor: default; box-shadow: none; }
.cm-bc__post.is-posting { opacity: 1; }
.cm-bc__postface { flex: none; width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 2.5px var(--c-on-accent); overflow: hidden; }
.cm-bc__postface .cm-bc__face { box-shadow: none; }
.cm-bc__postword { flex: 1; text-align: left; }
.cm-bc__postarrow {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c-on-accent) 16%, transparent);
  transition: transform 0.2s ease;
}
.cm-bc__postarrow svg { width: 22px; height: 22px; }
.cm-bc__post:not(:disabled):hover .cm-bc__postarrow { transform: translateX(3px); }
.cm-bc__post.is-posting .cm-bc__postarrow svg { animation: cm-bc-nudge 0.9s ease-in-out infinite; }
@keyframes cm-bc-nudge { 50% { transform: translateX(4px); } }
.cm-bc__err { margin: -12px 0 0; color: #d7263d; font-size: 14px; font-weight: 600; text-align: center; }
:root[data-theme="dark"] .cm-bc__err { color: #ff8a80; }
.cm-bc__err[hidden] { display: none; }

@media (max-width: 860px) {
  .cm-bc { --bc-stage-h: min(640px, calc(100vh - 330px)); }
  .cm-bc__col { max-width: 480px; padding: 14px 16px 24px; }
  .cm-bc__body { flex-direction: column; justify-content: flex-start; gap: 20px; }
  .cm-bc__stage { min-height: 360px; }
  .cm-bc__side { width: 100%; max-width: 440px; gap: 18px; }
  .cm-bc__to { display: flex; overflow-x: auto; gap: 14px; scrollbar-width: none; padding: 8px 4px; }
  .cm-bc__room { flex: none; width: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .cm-bc *, .cm-bc *::before, .cm-bc *::after { animation: none !important; transition: none !important; }
}

/* Posts laid out like X: the avatar in its own column, everything else --
   words, media, actions, replies -- in the text column beside it. Media
   is capped: a wide picture spans the column at its own ratio, a tall one
   stands at its own width under a 510px cap; 16px corners, a hairline. */
.cm-shell .cm-msg { position: relative; padding-left: 58px; }
.cm-shell .cm-msg__head > .cm-avatar { position: absolute; left: 0; top: 18px; }
.cm-shell .cm-msg.is-pinned .cm-msg__head > .cm-avatar { top: 44px; }
.cm-shell .cm-msg__line { margin-top: 4px; }
.cm-shell .cm-media { margin-top: 12px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--c-edge); background: var(--c-soft); max-width: 100%; }
.cm-shell .cm-media img, .cm-shell .cm-media video { border-radius: 16px; }
.cm-shell .cm-media--image { display: block; width: 100%; }
.cm-shell .cm-media--image.is-tall { width: fit-content; max-width: 100%; }
.cm-shell .cm-media--image.is-wide img { width: 100%; height: auto; max-height: 510px; object-fit: cover; }
.cm-shell .cm-media--image.is-tall img { width: auto; height: auto; max-width: 100%; max-height: 510px; object-fit: cover; }
.cm-shell .cm-media--image.cm-media--pending { aspect-ratio: 16 / 10; max-height: 510px; }
.cm-shell .cm-media--video { width: 100%; max-height: 510px; aspect-ratio: 16 / 9; background: #000000; }
.cm-shell .cm-media--video video { object-fit: contain; }
.cm-shell .cm-card { margin-top: 12px; border-radius: 16px; }
.cm-shell .cm-thread { margin-left: 0; }

/* ------------------------------------------------ paid room: Earnings tab */
/* The owner's view of a paid room's sales: open space, figures first. */
.cm-tab[hidden] { display: none; }
.cm-earn { display: flex; flex-direction: column; gap: 14px; padding: 18px 0 40px; }
.cm-earn__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 22px 28px; padding-bottom: 20px; border-bottom: 1px solid var(--c-line); }
.cm-earn__tile { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cm-earn__tile small { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-dim); }
.cm-earn__tile b { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cm-earn__h { margin: 14px 0 0; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-dim); }
.cm-earn__chart { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: end; gap: 14px; height: 200px; padding-bottom: 4px; border-bottom: 1px solid var(--c-line); }
.cm-earn__col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; min-width: 0; }
.cm-earn__val { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--c-ink); white-space: nowrap; }
.cm-earn__bar { width: 100%; max-width: 56px; border-radius: 6px 6px 2px 2px; background: var(--c-accent); }
.cm-earn__bar.is-zero { background: var(--c-line); }
.cm-earn__lab { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-dim); }
.cm-earn__none { margin: 4px 0; color: var(--c-dim); font-size: 15px; }
.cm-earn__list { display: flex; flex-direction: column; }
.cm-earn__row { padding: 14px 0; border-bottom: 1px solid var(--c-line); }
.cm-earn__row:last-child { border-bottom: 0; }
.cm-earn__row .cm-person__face { display: grid; place-items: center; overflow: hidden; font-weight: 800; color: var(--c-dim); }
.cm-earn__end { display: flex; align-items: center; gap: 8px; flex: none; }
.cm-earn__amt { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; margin-right: 4px; }
.cm-earn__amt.is-refunded { color: var(--c-faint); text-decoration: line-through; }
.cm-earn__tag { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #dc2626; }
.cm-earn__btn { height: 32px; padding: 0 14px; border-radius: 16px; border: 1.5px solid var(--c-edge); background: transparent; color: var(--c-ink); font-size: 13px; font-weight: 700; cursor: pointer; }
.cm-earn__btn:hover { border-color: var(--c-ink); }
.cm-earn__btn.is-danger { color: #dc2626; }
.cm-earn__btn.is-danger:hover { border-color: #dc2626; }
.cm-earn-confirm { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, 0.32); }
.cm-earn-confirm__card { width: min(440px, 100%); display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 16px; background: var(--paper); color: var(--c-ink); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22); }
.cm-earn-confirm__card h2 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.cm-earn-confirm__card p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--c-dim); overflow-wrap: anywhere; }
.cm-earn-confirm__card p.cm-earn-confirm__err { color: #dc2626; font-weight: 700; }
.cm-earn-confirm__acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.cm-earn-confirm__btn { height: 40px; padding: 0 16px; border-radius: 20px; border: 1.5px solid var(--c-edge); background: transparent; color: var(--c-ink); font-size: 14px; font-weight: 700; cursor: pointer; }
.cm-earn-confirm__btn.is-danger { border-color: #dc2626; background: #dc2626; color: #fff; }
.cm-earn-confirm__btn:disabled { opacity: 0.5; cursor: default; }
@media (max-width: 640px) {
  .cm-earn__tile b { font-size: 24px; }
  .cm-earn__row { flex-wrap: wrap; }
  .cm-earn__end { width: 100%; justify-content: flex-end; }
}

/* Earnings: the owner's compact dashboard (community.js paintEarnings).
   Hairline cards on the page colour, mono labels, tabular numbers. */
.cm-rex { --rex-good: #16a34a; --rex-bad: #dc2626; --rex-warn: #d97706; display: flex; flex-direction: column; gap: 12px; padding: 16px 0 40px; font-variant-numeric: tabular-nums; }
.cm-rex__kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.cm-rex__tile { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--c-line); border-radius: 12px; }
.cm-rex__label { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--c-dim); white-space: nowrap; }
.cm-rex__value { font-size: 24px; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--c-ink); }
.cm-rex__sub { font-size: 12px; color: var(--c-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-rex__delta { flex: none; padding: 0 5px; border: 1px solid currentColor; border-radius: 5px; font-size: 10.5px; font-weight: 700; line-height: 16px; }
.cm-rex__delta.is-up { color: var(--rex-good); }
.cm-rex__delta.is-down { color: var(--rex-bad); }
.cm-rex__delta.is-flat { color: var(--c-faint); }
.cm-rex__card { padding: 16px; border: 1px solid var(--c-line); border-radius: 14px; }
.cm-rex__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 4px; }
.cm-rex__head h3 { margin: 0; font-size: 15px; font-weight: 650; color: var(--c-ink); }
.cm-rex__meta { margin: 0 0 14px; font-size: 12.5px; color: var(--c-dim); }
.cm-rex__seg { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--c-line); border-radius: 9px; }
.cm-rex__seg button { height: 26px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--c-dim); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.cm-rex__seg button[aria-pressed="true"] { background: var(--c-ink); color: var(--c-page); }
.cm-rex__plot { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; height: 190px; }
.cm-rex__y { position: relative; }
.cm-rex__y span { position: absolute; right: 0; transform: translateY(50%); font-size: 11px; line-height: 1; color: var(--c-faint); white-space: nowrap; }
.cm-rex__area { position: relative; min-width: 0; border-bottom: 1px solid var(--c-line); cursor: crosshair; }
.cm-rex__grid { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed var(--c-line); pointer-events: none; }
.cm-rex__bars { position: absolute; inset: 0; display: grid; gap: 4px; }
.cm-rex__bar { display: flex; align-items: flex-end; justify-content: center; min-width: 0; height: 100%; }
.cm-rex__bar > span { display: block; width: 100%; max-width: 36px; border-radius: 3px 3px 0 0; background: var(--c-accent); opacity: 0.82; }
.cm-rex__bar.is-on > span { opacity: 1; }
.cm-rex__x { display: grid; gap: 4px; margin: 6px 0 0 52px; }
.cm-rex__x span:last-child { justify-content: flex-end; }
.cm-rex__x span { display: flex; justify-content: center; min-width: 0; white-space: nowrap; overflow: visible; font-size: 11px; color: var(--c-faint); }
.cm-rex__tip { position: absolute; top: 2px; z-index: 2; transform: translateX(-50%); padding: 6px 9px; border-radius: 8px; background: var(--c-ink); color: var(--c-page); font-size: 12px; font-weight: 600; line-height: 1.35; white-space: nowrap; pointer-events: none; }
.cm-rex__tip[hidden], .cm-rex__none[hidden], .cm-rex__tr[hidden] { display: none; }
.cm-rex__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 12px; }
.cm-rex__chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--c-line); border-radius: 999px; background: transparent; color: var(--c-ink); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.cm-rex__chip span { color: var(--c-faint); }
.cm-rex__chip[aria-pressed="true"], .cm-rex__chip[aria-pressed="true"] span { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-page); }
.cm-rex__search { flex: 1 1 200px; max-width: 320px; margin-left: auto; display: flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--c-line); border-radius: 9px; box-sizing: border-box; }
.cm-rex__search input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--c-ink); font: inherit; font-size: 13px; }
.cm-rex__search input::placeholder { color: var(--c-faint); }
.cm-rex__btn { flex: none; height: 30px; padding: 0 12px; border: 1px solid var(--c-edge); border-radius: 8px; background: transparent; color: var(--c-ink); font: inherit; font-size: 12.5px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.cm-rex__btn:hover { border-color: var(--c-ink); }
.cm-rex__btn:disabled { opacity: 0.45; cursor: default; }
.cm-rex__btn.is-danger { color: var(--rex-bad); border-color: color-mix(in srgb, var(--rex-bad) 45%, transparent); }
.cm-rex__btn.is-danger:hover { border-color: var(--rex-bad); }
.cm-rex__table { border-top: 1px solid var(--c-line); }
.cm-rex__tr { display: grid; grid-template-columns: minmax(180px, 2.2fr) 1.1fr 1fr 0.9fr 1.2fr 150px; align-items: center; gap: 12px; min-height: 52px; padding: 6px 0; border-bottom: 1px solid var(--c-line); font-size: 13.5px; color: var(--c-ink); }
.cm-rex__tr:last-child { border-bottom: 0; }
.cm-rex__th { min-height: 34px; font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-faint); }
.cm-rex__tr .is-num { text-align: right; font-weight: 650; }
.cm-rex__amt.is-void { color: var(--c-faint); text-decoration: line-through; }
.cm-rex__who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cm-rex__face.cm-person__face { width: 32px; height: 32px; display: grid; place-items: center; overflow: hidden; font-size: 13px; font-weight: 700; color: var(--c-dim); }
.cm-rex__face img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.cm-rex__words { display: flex; flex-direction: column; min-width: 0; }
.cm-rex__words b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-rex__words small { display: none; font-size: 12px; color: var(--c-dim); }
.cm-rex__date, .cm-rex__plan { color: var(--c-dim); white-space: nowrap; }
.cm-rex__pill { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border: 1px solid currentColor; border-radius: 6px; font-size: 11px; font-weight: 650; white-space: nowrap; }
.cm-rex__pill.is-good { color: var(--rex-good); }
.cm-rex__pill.is-bad { color: var(--rex-bad); }
.cm-rex__pill.is-warn { color: var(--rex-warn); }
.cm-rex__pill.is-brand { color: var(--c-accent); }
.cm-rex__pill.is-mute { color: var(--c-faint); }
.cm-rex__act { display: flex; justify-content: flex-end; gap: 6px; }
.cm-rex__none { margin: 12px 0 0; font-size: 13.5px; color: var(--c-dim); }
@media (max-width: 760px) {
  .cm-rex__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cm-rex__search { max-width: none; margin-left: 0; flex-basis: 100%; }
  .cm-rex__th { display: none; }
  .cm-rex__tr { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "who amt act" "who status act"; gap: 2px 10px; padding: 10px 0; }
  .cm-rex__who { grid-area: who; }
  .cm-rex__words small { display: block; }
  .cm-rex__date, .cm-rex__plan { display: none; }
  .cm-rex__amt { grid-area: amt; }
  .cm-rex__status { grid-area: status; justify-self: end; }
  .cm-rex__act { grid-area: act; }
}

/* ---------------------------------------------------- home: the phone's head */

/* The hottest room this viewer can open, as the phone's hero card: its cover
   under a dark shade, the eyebrow and counts, its four latest lines as
   bubbles on the right, the Lobby's words, the profile line and a way in.
   A photograph, so it reads white on dark in every theme. */
.cm-hot { position: relative; min-height: 380px; border-radius: 24px; overflow: hidden; background: #000000; color: #ffffff; display: flex; flex-direction: column; justify-content: space-between; }
.cm-hot__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-hot__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.2) 38%, rgba(0,0,0,.8) 72%, rgba(0,0,0,.94) 100%); }
.cm-hot__top { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 22px 0; }
.cm-hot__label { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.cm-hot__eye { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; }
.cm-hot__dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; animation: cm-pulse 1.8s ease infinite; }
.cm-hot__count { font-size: 12.5px; font-weight: 500; letter-spacing: 0.04em; opacity: 0.85; }
.cm-hot__stack { flex: 0 1 270px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cm-hot__bubble { display: flex; align-items: center; gap: 9px; width: 100%; padding: 6px 14px 6px 6px; border: 0; border-radius: 999px; background: rgba(0, 0, 0, 0.58); color: #ffffff; text-align: left; cursor: pointer; transition: background 0.15s ease; }
.cm-hot__bubble:hover { background: rgba(0, 0, 0, 0.78); }
.cm-hot__face { flex: none; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: #333333; }
.cm-hot__words { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.cm-hot__words b { font-size: 12px; font-weight: 800; }
.cm-hot__words span { font-size: 13px; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cm-hot__foot { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 0 24px 24px; }
.cm-hot__title { margin: 0; font-size: 42px; line-height: 0.95; font-weight: 900; letter-spacing: -0.01em; text-transform: uppercase; overflow-wrap: anywhere; }
.cm-hot__sub { font-size: 15px; font-weight: 600; opacity: 0.92; }
.cm-hot__go { margin-top: 6px; height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: #ffffff; color: #0b0b0c; font-size: 15px; font-weight: 800; cursor: pointer; transition: transform 0.12s ease; }
.cm-hot__go:hover { transform: translateY(-1px); }
.cm-hot :focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }

/* Every room as a chip, newest activity first: a dot on the fresh ones
   (48 hours), a lock on the locked ones. */
.cm-shell[data-page="front"] .cm-composer { margin-top: 18px; }

/* WHAT'S HAPPENING: the stream on a rail. A line runs down behind the
   faces; each day is a ring on it; posts keep their rows, everything else
   is one compact line. */
.cm-happening { margin: 30px 0 2px; font-size: 30px; line-height: 1; font-weight: 900; letter-spacing: -0.005em; text-transform: uppercase; color: var(--c-ink); }
.cm-happening[hidden] { display: none; }

.cm-shell[data-page="front"] .cm-msg__line { font-size: 17px; font-weight: 450; line-height: 1.48; }
.cm-list.is-stream { position: relative; }
.cm-list.is-stream::before { content: ""; position: absolute; left: 21px; top: 12px; bottom: 24px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--c-accent), var(--c-line) 260px); pointer-events: none; }
.cm-list.is-stream .cm-msg { border-bottom: 0; }
.cm-list.is-stream .cm-msg__head > .cm-avatar { box-shadow: 0 0 0 4px var(--c-page); }
.cm-day { position: relative; padding: 22px 0 4px 58px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-accent); }
.cm-day::before { content: ""; position: absolute; left: 15px; top: 21px; width: 14px; height: 14px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--c-accent); background: var(--c-page); }
.cm-ev { position: relative; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 8px 6px 58px; border-radius: 12px; color: var(--c-dim); font-size: 14px; cursor: pointer; transition: background 0.12s ease; }
.cm-ev:hover { background: color-mix(in srgb, var(--c-ink) 4%, transparent); }
.cm-ev:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.cm-ev__face, .cm-ev__ico { position: absolute; left: 9px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; box-shadow: 0 0 0 3px var(--c-page); }
.cm-ev__face { object-fit: cover; background: var(--c-soft); }
.cm-ev__ico { display: grid; place-items: center; box-sizing: border-box; border: 1.5px solid var(--c-line); background: var(--c-page); color: var(--c-accent); font-size: 11px; }
.cm-ev__line { flex: 1; min-width: 0; line-height: 1.35; }
.cm-ev__line b { font-weight: 700; color: var(--c-ink); }
.cm-ev__where { font-weight: 600; color: var(--c-ink); }
.cm-ev__line time { margin-left: 8px; font-size: 12px; color: var(--c-faint); white-space: nowrap; }
.cm-ev__faces { flex: none; display: flex; }
.cm-ev__faces img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: var(--c-soft); box-shadow: 0 0 0 2px var(--c-page); }
.cm-ev__faces img + img { margin-left: -6px; }
.cm-ev__thumb { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; overflow: hidden; background: #000000; }
.cm-ev__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-ev__thumb.is-icon { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c-line); color: var(--c-accent); font-size: 13px; }
/* A filter narrows the stream to posts. */
.cm-list.is-chipped .cm-ev, .cm-list.is-chipped .cm-day { display: none; }
html[data-appearance="glass"] :is(.cm-ev__ico, .cm-day::before) { background: #101827; }

.cm-empty:has(.cm-empty__guide) { padding: 24px 16px; }
.cm-empty__line[hidden] { display: none; }

/* Floating Post button, shown once the composer is scrolled out of view. */
.cm-fab-post {
  position: fixed; right: 28px; bottom: 28px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  height: 52px; padding: 0 22px 0 18px; border: 0; border-radius: 999px;
  background: var(--c-accent, #ff6600); color: var(--c-on-accent, #fff);
  font: 800 16px/1 inherit; cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
  transition: transform .15s ease, opacity .15s ease;
}
.cm-fab-post[hidden] { display: none; }
.cm-fab-post:hover { transform: translateY(-2px); }
.cm-fab-post svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* The pinned post sits in its own soft card, the same as on the phone. */
.cm-shell .cm-msg.is-pinned {
  margin: 0 0 18px !important; padding: 16px 18px 14px 72px !important;
  border-radius: 20px !important; border-bottom: 0 !important;
  background: color-mix(in srgb, var(--c-accent, #ff6a00) 6%, var(--c-page)) !important;
  border: 1px solid color-mix(in srgb, var(--c-accent, #ff6a00) 22%, var(--c-page)) !important;
}
html[data-appearance="glass"] .cm-shell .cm-msg.is-pinned {
  background: rgba(255, 255, 255, 0.12) !important; border-color: rgba(255, 255, 255, 0.28) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
}

/* Inside the card, the avatar keeps its spot, inset by the card's padding. */
.cm-shell .cm-msg.is-pinned > .cm-av, .cm-shell .cm-msg.is-pinned > img:first-of-type { left: 14px !important; }

/* ------------------------------------------- room people: owner actions */

.cm-people__help { margin: 14px 0 2px; font-size: 13px; line-height: 1.45; color: var(--c-dim); }
.cm-person__acts { flex: none; display: flex; align-items: center; gap: 6px; }
.cm-person__acts .cm-rex__btn.is-danger { color: #dc2626; border-color: color-mix(in srgb, #dc2626 45%, transparent); }
.cm-person__acts .cm-rex__btn.is-danger:hover { border-color: #dc2626; }
.cm-people--blocked { margin-top: 22px; }
.cm-people__head { padding: 0 0 6px; border-bottom: 1px solid var(--c-line); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-dim); }

/* ------------------------------------------------- room settings menu */

.cm-roommenu { position: relative; flex: none; }
.cm-roommenu[hidden] { display: none; }
.cm-roommenu__btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 19px; border: 1.5px solid var(--c-edge); background: transparent; color: var(--c-ink); font-size: 14px; cursor: pointer; }
.cm-roommenu__btn:hover, .cm-roommenu__btn[aria-expanded="true"] { border-color: var(--c-ink); }
.cm-roommenu__list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: 240px; padding: 6px; border-radius: 12px; border: 1px solid var(--c-edge); background: var(--paper); color: var(--c-ink); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16); }
.cm-roommenu__list[hidden] { display: none; }
.cm-roommenu__item { width: 100%; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--c-ink); font: inherit; font-size: 13.5px; font-weight: 600; text-align: left; cursor: pointer; }
.cm-roommenu__item i { width: 16px; text-align: center; font-size: 13px; color: var(--c-dim); }
.cm-roommenu__item:hover { background: var(--c-soft); }
.cm-roommenu__item.is-danger, .cm-roommenu__item.is-danger i { color: #dc2626; }
.cm-roommenu__note { margin: 4px 0 2px; padding: 6px 10px 2px; border-top: 1px solid var(--c-line); font-size: 12px; line-height: 1.4; color: var(--c-dim); }
#cm-room-sheet [hidden] { display: none !important; }

/* Split View's narrow pane uses the room picker, even on a wide monitor. */
@container pane (max-width: 860px) {
  .cm-shell.is-navless .cm-nav { padding: 10px 16px; align-items: center; gap: 8px; }
  .cm-shell.is-navless .cm-nav > .cm-nav__pick { display: block; }
  .cm-shell.is-navless .cm-nav > .cm-nav__eye { display: none; }
  .cm-shell.is-navless .cm-nav__list { display: contents; }
  .cm-shell.is-navless .cm-nav__list > :not(.cm-nav__new) { display: none; }
  .cm-shell.is-navless .cm-nav__new { width: auto; height: 40px; min-height: 40px; padding: 0 14px; }
  .cm-shell.is-navless .cm-nav__new .cm-nav__name { display: inline; }
}

/* TEAJR desktop Community home */
.cm-desktop-hub[data-page="front"] .cm-center > :is(.cm-home, .cm-room__grid) {
  max-width: none;
  margin: 0;
}
.cm-desktop-hub .cm-home { display: grid; gap: 12px; }
.cm-desktop-hub .cm-home[hidden] { display: none; }
.cm-desktop-hub .cm-hub__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px;
}
.cm-hub__head :is(h1, h2), .cm-hub__activity-title {
  margin: 0; color: var(--c-ink); font-size: 21px; line-height: 1.2; letter-spacing: -.025em;
}
.cm-hub__head :is(a, button) {
  color: var(--c-ink); font: inherit; font-size: 13px; font-weight: 650;
  background: none; border: 0; padding: 8px 0; text-decoration: none; cursor: pointer;
}
.cm-hub__head :is(a, button):hover { text-decoration: underline; }
.cm-hub-channel {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 6px 8px;
  color: var(--c-ink); background: none; border: 0; border-radius: 8px; text-align: left; cursor: pointer;
}
.cm-hub-channel[aria-pressed="true"], .cm-hub-channel:hover { background: color-mix(in srgb, var(--c-ink) 9%, transparent); }
.cm-hub-channel:disabled { opacity: .55; cursor: default; }
.cm-hub-channel span { flex: none; font: 600 11px/1 monospace; }
.cm-hub-channel b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.cm-hub-profile { display: grid; isolation: isolate; min-width: 0; margin: -12px -12px 12px; }
.cm-hub-profile__photo { display: block; width: 100%; aspect-ratio: 4 / 5; max-height: 320px; object-fit: cover; object-position: center 30%; }
.cm-hub-profile__photo[hidden] { display: none; }
.cm-hub-profile__bio { display: grid; gap: 8px; padding: 16px; }
.cm-hub-profile__handle { font-size: 12px; }
.cm-hub-profile h2 { margin: 0; font-size: 26px; letter-spacing: -.04em; line-height: 1.05; }
.cm-hub-profile p { margin: 0; font-size: 13px; line-height: 1.4; }
.cm-hub-profile__install {
  margin-top: 4px; min-height: 40px; border: 0; border-radius: 8px; cursor: pointer;
  color: var(--c-page); background: var(--c-ink); font: inherit; font-size: 13px; font-weight: 700;
}
.cm-hub-profile__help { padding-top: 4px; }
.cm-hub-profile__contact { display: flex; gap: 8px; }
.cm-hub-profile__contact button {
  display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 6px;
  min-height: 34px; padding: 0 8px; border: 1px solid var(--c-edge); border-radius: 8px;
  background: var(--c-soft); color: var(--c-ink); cursor: pointer;
  font-size: 12px; font-weight: 650;
}
.cm-hub-profile__contact button:hover { background: var(--panel-2); }
.cm-hub__activity-title { padding: 8px 4px 0; }
.cm-shell.is-navless :is(.cm-hub-profile, .cm-hub-profile__bio) { display: contents; }
.cm-shell.is-navless :is(.cm-hub-profile__cover, .cm-hub-profile__bio > :not(.cm-top, .cm-hub-owner-tools, .cm-basketball-trigger, .cm-top__right)) { display: none; }
.cm-desktop-hub[data-page="front"] {
  grid-template-columns: var(--cm-nav-track, 240px) minmax(0, 1fr);
  grid-template-areas: "nav search" "nav center" "nav explore";
  grid-template-rows: auto minmax(0, auto) 1fr;
}
.cm-desktop-hub[data-page="front"] > .cm-nav { grid-area: nav; }
.cm-desktop-hub[data-page="front"] > .cm-app-toolbar { grid-area: search; }
.cm-desktop-hub:not([data-page="front"]) > .cm-app-toolbar { display: none; }
.cm-desktop-hub[data-page="front"] > .cm-center { grid-area: center; }
.cm-desktop-hub[data-page="front"] > .cm-side2 { grid-area: explore; }
@media (min-width: 1181px) {
  .tab-community:has(.cm-desktop-hub[data-page="front"]) {
    --cm-home-max-width: 1350px;
    --cm-frame-width: min(var(--cm-home-max-width), calc(100% - 48px));
    --cm-frame-gutter: max(24px, calc((100vw - var(--cm-home-max-width)) / 2));
  }
  .cm-desktop-hub[data-page="front"] {
    width: var(--cm-frame-width);
    margin-inline: auto;
  }
  .cm-desktop-hub[data-page="front"] {
    --cm-explore-width: clamp(300px, 26vw, 356px);
    --cm-home-rail-width: clamp(212px, 18vw, 244px);
    --cm-home-column-gap: clamp(18px, 1.5vw, 26px);
    grid-template-columns: var(--cm-nav-track, var(--cm-home-rail-width)) minmax(0, 1fr) var(--cm-explore-width);
    grid-template-areas: "nav center search" "nav center explore";
    grid-template-rows: auto 1fr;
    column-gap: var(--cm-home-column-gap);
  }
  html:not(.ws-on) .cm-desktop-hub[data-page="front"] {
    /* Give the profile rail the left gutter while preserving the feed and explore tracks. */
    --cm-left-gutter: var(--cm-frame-gutter);
    width: calc(var(--cm-frame-width) + var(--cm-left-gutter));
    margin-inline-start: 0;
    grid-template-columns: var(--cm-nav-track, calc(var(--cm-home-rail-width) + var(--cm-left-gutter)))
      minmax(0, 1fr) var(--cm-explore-width);
  }
}
@container pane (max-width: 1180px) {
  .cm-desktop-hub[data-page="front"] {
    grid-template-areas: "nav search" "nav center" "nav explore";
    grid-template-rows: auto minmax(0, auto) 1fr;
    column-gap: 0;
  }
}
@container pane (max-width: 860px) {
  .cm-desktop-hub[data-page="front"][data-page],
  .cm-desktop-hub[data-page="front"].is-navless:has(.cm-hub-profile--owner) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "nav" "search" "center" "explore";
    grid-template-rows: auto auto minmax(0, auto) 1fr;
  }
  .cm-desktop-hub[data-page="front"] :is(.cm-hub-profile, .cm-hub-profile__bio) { display: contents; }
  .cm-desktop-hub[data-page="front"] :is(.cm-hub-profile__cover, .cm-hub-profile__bio > :not(.cm-top, .cm-hub-owner-tools, .cm-basketball-trigger, .cm-top__right)) { display: none; }
}
@media (max-width: 860px) {
  .cm-desktop-hub[data-page="front"][data-page],
  .cm-desktop-hub[data-page="front"].is-navless:has(.cm-hub-profile--owner) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "nav" "search" "center" "explore";
    grid-template-rows: auto auto minmax(0, auto) 1fr;
  }
  .cm-desktop-hub[data-page="front"] :is(.cm-hub-profile, .cm-hub-profile__bio) { display: contents; }
  .cm-desktop-hub[data-page="front"] :is(.cm-hub-profile__cover, .cm-hub-profile__bio > :not(.cm-top, .cm-hub-owner-tools, .cm-basketball-trigger, .cm-top__right)) { display: none; }
}

/* Desktop Community, styled as a compact TV and conversation dashboard. */
.tab-community:has(.cm-desktop-hub[data-page="front"]) {
  --top-h: 56px;
  background: var(--c-page);
  color: var(--c-ink);
}
.cm-desktop-hub[data-page="front"] .cm-hub-profile__bio > .cm-top {
  min-height: 0; min-width: 0; padding: 0;
}
.cm-desktop-hub[data-page="front"] .cm-hub-profile__bio .cm-top__left { flex: 1; }
.cm-desktop-hub[data-page="front"] .cm-hub-profile__bio .cm-campaign-slot { flex: 1 1 auto; }
.cm-desktop-hub[data-page="front"] .cm-hub-profile__bio .hp-pill { width: 100%; }
.cm-desktop-hub[data-page="front"]:not(.is-navless) .cm-hub-profile__bio > .cm-top,
.cm-desktop-hub[data-page="front"]:not(.is-navless) .cm-hub-profile__bio .cm-top__left {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-self: stretch;
}
.cm-desktop-hub[data-page="front"]:not(.is-navless) .cm-hub-profile__bio .cm-campaign-slot > .hp-pill {
  max-width: none;
  margin-inline: 0;
}
.cm-desktop-hub[data-page="front"]:not(.is-navless) .cm-hub-profile__bio .cm-campaign-slot > .hp-pill--trading-card {
  width: fit-content;
  max-width: 100%;
  min-height: 36px;
  height: auto;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  color: var(--c-ink);
}
.cm-hub-profile__bio .hp-pill--trading-card:hover { background: var(--c-soft); }
.cm-desktop-hub[data-page="front"]:not(.is-navless) .cm-campaign-slot > .hp-pill--offer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  height: auto;
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 14px;
  text-align: start;
  white-space: normal;
}
.cm-desktop-hub[data-page="front"]:not(.is-navless) .hp-pill--offer :is(.hp-pill__mark, .hp-pill__dot) {
  grid-row: span 2;
}
.cm-desktop-hub[data-page="front"]:not(.is-navless) .hp-pill--offer .hp-pill__label {
  display: block;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.cm-desktop-hub[data-page="front"]:not(.is-navless) .hp-pill--offer .hp-pill__cta--phone {
  justify-self: start;
  font-size: 11px;
}
.cm-desktop-hub[data-page="front"] .cm-hub-profile__bio > .cm-top:has(.cm-campaign-slot:empty) {
  display: none;
}
.cm-desktop-hub[data-page="front"] .cm-nav > .cm-top__right {
  justify-content: center; flex-wrap: wrap; width: 100%;
  margin: 0 0 12px; gap: 8px;
}
.cm-desktop-hub[data-page="front"].is-navless .cm-nav > .cm-top__right .cm-create-trigger > span {
  display: none;
}
.cm-main:has(.cm-desktop-hub[data-page="front"]) { background: var(--c-page); }
.cm-shell.cm-desktop-hub { border-top: 0; }
.cm-create-trigger {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px;
  border: 0; border-radius: 999px; background: var(--c-accent); color: var(--c-on-accent);
  font-size: 13px; font-weight: 700; cursor: pointer;
}
.cm-create-trigger:hover { opacity: .88; }
.cm-top__left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cm-campaign-slot { flex: 0 1 auto; min-width: 0; }
.cm-top__left .cm-campaign-slot .hp-pill { max-width: 100%; }
.cm-campaign-slot:has([data-hp-pill]) > [data-hp-preview] { display: none; }
.cm-desktop-hub:not([data-page="front"][data-hub-view="feed"]) .cm-campaign-slot > :is([data-hp-trading-card], [data-hp-preview]) { display: none; }
.cm-campaign-slot:empty, .cm-top__left .cm-blips:not(:has(.cm-blips__run:not([hidden]))) { display: none; }
.tab-community:has(.cm-desktop-hub[data-page="front"]) .cm-top__left {
  max-width: 100%;
}
.cm-app-toolbar {
  position: relative; z-index: 65; min-width: 0; align-self: start;
  display: flex; align-items: center; gap: 8px; margin: 8px 14px 0;
}
.tab-community:has(.cm-sheet-back:not([hidden])) .cm-app-toolbar {
  z-index: auto;
}
.cm-app-search {
  position: relative; flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 8px; padding: 0 12px;
  background: transparent; border: 1px solid var(--c-edge); border-radius: 999px;
  color: var(--c-ink);
}
.cm-app-search > #cm-app-query {
  appearance: none; flex: 1; min-width: 0; height: 36px; padding: 0;
  /* The app theme applies a solid surface and text color to form fields. */
  border: 0; box-shadow: none; background: transparent !important;
  color: var(--c-ink) !important; -webkit-text-fill-color: currentColor !important;
  font: inherit; font-size: 13px;
}
.cm-app-search > #cm-app-query::placeholder {
  color: var(--c-dim) !important; -webkit-text-fill-color: currentColor !important; opacity: 1;
}
.cm-app-search:focus-within { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.cm-app-search input:focus { outline: none; }
.cm-app-search__results {
  position: absolute; top: calc(100% + 8px); inset-inline: 0;
  max-height: min(420px, 65vh); overflow: auto; padding: 6px;
  background: var(--c-page); border: 1px solid var(--c-edge); border-radius: 10px;
  box-shadow: 0 8px 24px #0002;
}
.cm-app-search__results p { margin: 0; padding: 8px; color: var(--c-dim); font-size: 12px; }
.cm-app-search__results ul { list-style: none; margin: 0; padding: 0; }
.cm-app-search__results .cm-app-search__hit {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center; gap: 10px; padding: 8px; border-radius: 8px;
  color: var(--c-ink); font-size: 13px; text-decoration: none;
}
.cm-app-search__hit:is(:hover, :focus-visible) { background: var(--panel-2); }
.cm-app-search__art {
  display: grid; place-items: center; width: 56px; height: 40px; overflow: hidden;
  border-radius: 6px; background: var(--panel-2); color: var(--c-dim); font-size: 14px;
}
.cm-app-search__art .cm-hub-rail-activity__thumb { display: grid; place-items: center; width: 100%; height: 100%; }
.cm-app-search__art.is-product .cm-hub-rail-activity__preview { object-fit: contain; }
.cm-app-search__copy { display: grid; min-width: 0; gap: 3px; }
.cm-app-search__copy > :is(strong, small) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-app-search__copy small { color: var(--c-dim); font-size: 11px; }
.cm-app-search__price { font-size: 12px; font-weight: 700; white-space: nowrap; }
.cm-app-search__browse { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 8px 8px; }
.cm-app-search__browse[hidden] { display: none; }
.cm-app-search__browse button {
  padding: 6px 10px; border: 1px solid var(--c-edge); border-radius: 999px;
  background: var(--c-soft); color: var(--c-ink); font: inherit; font-size: 12px; cursor: pointer;
}
.cm-app-search__browse button:hover { background: var(--panel-2); }
@media (min-width: 1181px) {
  .cm-app-toolbar { margin-inline: 0; }
}
@container pane (max-width: 1180px) {
  .cm-app-toolbar { margin-inline: 14px; }
}

.tab-community:has(.cm-desktop-hub[data-page="front"]) .cm-id { display: none; }
.cm-top__right .cm-profile-trigger {
  position: relative; display: grid; place-items: center; flex: 0 0 40px;
  width: 40px; height: 40px; padding: 0; border: 1px solid var(--c-edge);
  border-radius: 50%; background: var(--c-soft); color: var(--c-ink);
  overflow: hidden; text-decoration: none; cursor: pointer;
}
.cm-top__right .cm-profile-trigger:hover { border-color: currentColor; }
.cm-top__right .cm-profile-trigger:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.cm-profile-trigger img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.cm-profile-trigger img[hidden] { display: none; }
.cm-visitor-actions { flex: none; }
.cm-visitor-actions .cm-top__right { gap: 6px; margin: 0; }
.cm-visitor-actions :is(.nt-bell, .cm-profile-trigger) {
  width: 40px; height: 40px; flex: 0 0 40px;
  border-color: var(--c-line);
}
.cm-visitor-actions .cm-create-trigger { width: 40px; height: 40px; padding: 0; justify-content: center; }
.cm-visitor-actions .cm-create-trigger > span { display: none; }
.cm-top-auth { display: flex; align-items: center; gap: 4px; }
.cm-top-auth a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 36px;
  padding-inline: 12px; border-radius: 999px; color: var(--c-ink);
  font: 700 13px/1.2 var(--read); text-decoration: none; white-space: nowrap;
}
.cm-top-auth .cm-top-auth__join { background: var(--c-accent); color: var(--c-on-accent); }
.cm-top-auth__login:hover { background: var(--c-soft); }
.cm-top-auth__join:hover { opacity: .88; }
.cm-top-auth a:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.cm-top-auth .cm-rail-icon { display: none; }
.cm-hub-profile__bio > .cm-top__right {
  display: block; width: 100%; margin: 8px 0 0; padding-block-start: 12px;
  border-top: 1px solid var(--c-line);
}
.cm-hub-profile__bio > .cm-top__right > .nt-bell { display: none; }
.cm-hub-profile__bio .cm-top-auth { display: flex; flex-wrap: wrap; gap: 8px; }
.cm-hub-profile__bio .cm-top-auth a { flex: 1 1 auto; border: 1px solid var(--c-line); }
.cm-hub-profile__bio .cm-top-auth__join { border-color: transparent; }
.cm-desktop-hub[data-page="front"] .cm-center { padding: 0 14px 40px; }
.cm-desktop-hub[data-page="front"] .cm-home { gap: 14px; }
@media (max-width: 860px) {
  .cm-desktop-hub[data-page="front"] .cm-nav { flex-wrap: wrap; }
  .cm-desktop-hub[data-page="front"] .cm-hub-owner-tools {
    display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0; border: 0;
  }
  .cm-desktop-hub[data-page="front"] .cm-hub-owner-tools :is(a, .cm-top__right > button) { width: auto; min-height: 36px; }

  .cm-desktop-hub[data-page="front"] .cm-nav > .cm-top__right { order: -1; margin-bottom: 0; }
}
@container pane (max-width: 860px) {
  .cm-desktop-hub[data-page="front"] .cm-nav { flex-wrap: wrap; }
  .cm-desktop-hub[data-page="front"] .cm-hub-owner-tools {
    display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0; border: 0;
  }
  .cm-desktop-hub[data-page="front"] .cm-hub-owner-tools :is(a, .cm-top__right > button) { width: auto; min-height: 36px; }

  .cm-desktop-hub[data-page="front"] .cm-nav > .cm-top__right { order: -1; margin-bottom: 0; }
}

.cm-desktop-hub[data-page="front"] .cm-nav {
  padding: 12px;
  background: color-mix(in srgb, var(--c-page) 88%, #11111b);
  border-right: 1px solid var(--c-line); border-radius: 0 14px 14px 0;
  overflow-anchor: none;
}
.cm-desktop-hub:not(.is-navless) .cm-nav__eye {
  padding: 12px 4px 4px; margin: 4px 0 4px; gap: 6px;
  color: var(--c-ink); font-size: 13px; letter-spacing: 0; text-transform: none;
}
.cm-nav__eye strong { display: flex; align-items: center; gap: 8px; }
.cm-nav__eye small { margin-left: auto; color: var(--c-dim); font-size: 11px; }
.cm-desktop-hub:not(.is-navless) .cm-nav__list { gap: 8px; }
.cm-desktop-hub:not(.is-navless) .cm-nav__room {
  min-height: 58px; padding: 4px 6px; gap: 8px;
  border: 1px solid var(--c-line); background: var(--c-soft);
}
.cm-desktop-hub:not(.is-navless) .cm-nav__room:hover { background: var(--panel-2); }
.cm-desktop-hub:not(.is-navless) .cm-nav__room .cm-nav__icon {
  width: clamp(44px, 4vw, 60px); height: 48px; border-radius: 7px; background: var(--c-page);
}
.cm-nav__room-copy { display: grid; flex: 1; min-width: 0; gap: 3px; }
.cm-nav__room-copy .cm-nav__name { font-size: 13px; font-weight: 700; }
.cm-nav__room-copy .cm-nav__name i { margin-inline-start: 6px; font-size: 9px; color: var(--c-dim); }
.cm-nav__room-summary, .cm-nav__online { font-size: 11px; color: var(--c-dim); }
.cm-nav__room-summary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-nav__online:not([hidden]) { display: flex; align-items: center; gap: 4px; }
.cm-nav__online::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #31bc72; }
.cm-nav__room-arrow { margin-inline-end: 4px; font-size: 10px; color: var(--c-dim); }
.cm-hub-rail-activity {
  --activity-thumb-size: 32px;
  flex: none; min-width: 0; padding-block: 8px 12px; border-top: 1px solid var(--c-line);
}
.cm-hub-rail-activity > summary {
  display: flex; align-items: center; gap: 8px; min-height: 40px; padding-inline: 4px;
  list-style: none; border-radius: 8px; font-size: 13px; font-weight: 650; cursor: pointer;
}
.cm-hub-rail-activity > summary::-webkit-details-marker { display: none; }
.cm-hub-rail-activity > summary:hover { background: var(--panel-2); }
.cm-hub-rail-activity > summary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.cm-hub-rail-activity > summary > .cm-rail-icon:last-child { margin-inline-start: auto; width: 13px; height: 13px; }
.cm-hub-rail-activity[open] > summary > .cm-rail-icon:last-child { rotate: 180deg; }
.cm-hub-rail-activity__items {
  padding: 0 4px 4px;
}
.cm-hub-rail-activity__more {
  width: 100%; min-height: 32px; margin-top: 8px; border: 1px solid var(--c-edge);
  border-radius: 999px; background: var(--c-soft); color: inherit; font: inherit; font-size: 12px; cursor: pointer;
}
.cm-hub-rail-activity__more:hover { background: var(--panel-2); }
.cm-hub-rail-activity__row {
  display: grid; grid-template-columns: var(--activity-thumb-size) minmax(0, 1fr) auto; align-items: center;
  gap: 10px; width: 100%; min-height: 56px; padding: 10px 4px; border: 0;
  background: transparent; color: var(--c-ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer;
}
.cm-hub-rail-activity__row + .cm-hub-rail-activity__row { border-top: 1px solid var(--c-line); }
.cm-hub-rail-activity__row:hover { background: var(--panel-2); }
.cm-hub-rail-activity__row img { width: var(--activity-thumb-size); height: var(--activity-thumb-size); border-radius: 50%; object-fit: cover; }
.cm-hub-rail-activity__icon {
  display: grid; place-items: center; width: var(--activity-thumb-size); height: var(--activity-thumb-size);
  border-radius: 6px; background: var(--panel-2); font-size: 11px;
}
.cm-hub-rail-activity__icon.cm-hub-rail-activity__date {
  place-content: center;
  gap: 1px;
  color: var(--c-ink);
  font-size: 9px;
  line-height: 1;
}
.cm-hub-rail-activity__date strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.cm-hub-rail-activity__thumb {
  position: relative; display: block; width: var(--activity-thumb-size); height: var(--activity-thumb-size);
  border-radius: 6px; overflow: hidden;
}
.cm-hub-rail-activity__thumb > .cm-hub-rail-activity__preview {
  position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0;
  object-fit: cover; background: var(--panel-2); pointer-events: none;
}
.cm-hub-rail-activity__thumb > .cm-hub-rail-activity__preview:not(.is-ready) { opacity: 0; }
.cm-hub-rail-activity__copy { display: grid; min-width: 0; gap: 2px; font-size: 11px; line-height: 1.35; }
.cm-hub-rail-activity__copy > :is(span, strong) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-hub-rail-activity__copy:has(strong) > span { color: var(--c-dim); font-size: 10px; }
.cm-hub-rail-activity__row small { color: var(--c-dim); font-size: 10px; }
.cm-hub-rail-activity__row small.is-live { color: var(--c-ink); font-weight: 700; }
.cm-hub-rail-activity__row small.is-live::before {
  content: ''; display: inline-block; width: 5px; height: 5px; margin-inline-end: 4px;
  border-radius: 50%; background: currentColor; vertical-align: middle;
}
.cm-shell.is-navless :is(.cm-nav__room-copy, .cm-nav__room-arrow) { display: none; }
.cm-desktop-hub .cm-nav > .cm-navtoggle {
  position: static;
  align-self: flex-start;
  flex: none;
  margin: auto 0 0;
  background: var(--c-soft);
}
.cm-desktop-hub.is-navless .cm-nav > .cm-navtoggle {
  align-self: center;
}
.cm-desktop-hub .cm-nav > .cm-navtoggle:hover { background: var(--panel-2); }
.cm-desktop-hub[data-page="front"] .cm-side2 { padding: 0 12px 32px 0; gap: 0; }
.cm-hub-explore {
  display: grid;
}
.cm-explore-stats:empty { display: none; }
.cm-explore-stats, .cm-explore-channels { margin-bottom: 12px; }
.cm-explore-channels {
  padding: 12px;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  background: var(--c-page);
}
.cm-explore-channels h2 { margin: 0 0 6px; font-size: 14px; }
.cm-explore-channel {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 16px;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
  color: var(--c-ink);
  text-decoration: none;
  font-size: 13px;
}
.cm-explore-channel + .cm-explore-channel { border-top: 1px solid var(--c-line); }
.cm-explore-channel :is(img, i) { width: 54px; height: 34px; border-radius: 6px; }
.cm-explore-channel img { object-fit: cover; }
.cm-explore-channel i { display: grid; place-items: center; background: var(--c-soft); }
.cm-explore-channel svg { width: 14px; height: 14px; }
.cm-explore-channel:hover strong { text-decoration: underline; }
.cm-explore-group { display: contents; }
.cm-explore-block { min-width: 0; padding: 10px 0 12px; }
.cm-explore-block + .cm-explore-block {
  border-top: 1px solid var(--cm-hub-line);
}
.cm-explore-block__head {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  margin-bottom: 6px;
  color: var(--c-ink);
  text-decoration: none;
}
.cm-explore-block__mark { display: grid; place-items: center; flex: none; width: 18px; }
.cm-explore-block__label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; min-width: 0; }
.cm-explore-block__head strong { font-size: 13px; }
.cm-explore-block__head small { color: var(--c-dim); font-size: 10px; }
.cm-explore-block__more { display: inline-flex; align-items: center; gap: 2px; font-size: 10px; font-weight: 650; white-space: nowrap; }
.cm-explore-block__more > .cm-rail-icon { width: 13px; height: 13px; }
.cm-explore-block__head:hover .cm-explore-block__more { text-decoration: underline; text-underline-offset: 2px; }
.cm-explore-tile {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  color: var(--c-ink);
  text-decoration: none;
}
.cm-explore-tile__art {
  position: relative;
  flex: 0 0 33%;
  align-self: stretch;
  min-height: 56px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: var(--panel-2);
}
.cm-explore-tile__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cm-explore-tile__art img[hidden] { display: none; }
.cm-explore-tile__copy { min-width: 0; flex: 1; display: grid; gap: 4px; }
.cm-explore-tile__copy strong { overflow-wrap: anywhere; font-size: 11px; line-height: 1.3; }
.cm-explore-tile__copy small { color: var(--c-dim); font-size: 10px; line-height: 1.35; }
.cm-explore-tile__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.cm-explore-tile__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-soft);
  color: var(--c-ink);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.cm-explore-tile__action.is-primary {
  border-color: transparent;
  background: var(--c-accent);
  color: var(--c-on-accent);
}
.cm-explore-tile__action:hover { filter: brightness(.94); }
.cm-hub-explore a:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.cm-explore-block--shop .cm-explore-block__items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.cm-explore-block:is(.cm-explore-block--shop, .cm-explore-block--map) .cm-explore-tile { display: block; }
.cm-explore-block--shop .cm-explore-tile { border-radius: 8px; }
.cm-explore-block--shop .cm-explore-tile:hover { box-shadow: 0 0 0 1px var(--c-line); }
.cm-explore-block--shop .cm-explore-tile__art { aspect-ratio: 1.35; }
.cm-explore-block--shop .cm-explore-tile__art img,
.cm-explore-block--events .cm-explore-tile__art img { object-fit: contain; }
.cm-explore-block--map .cm-explore-tile__copy { margin-top: 6px; }
.cm-explore-block--map .cm-explore-tile__art { aspect-ratio: 4 / 1; }
.cm-explore-block--map .cm-explore-tile__art img { object-fit: fill; }
.cm-explore-tile__pin {
  position: absolute; translate: -50% -100%; color: #fff; font-size: 14px;
  filter: drop-shadow(0 1px 2px #000);
}
.cm-explore-tile__credit {
  position: absolute; bottom: 0; right: 0; padding: 1px 3px;
  background: #16191d; color: #fff; font: 9px/1.3 system-ui;
}
.cm-desktop-hub[data-page="front"] .cm-side2__body {
  display: flex; padding: 0 12px; border: 1px solid var(--c-line); border-top: 0; border-radius: 0 0 12px 12px;
  background: var(--c-soft);
}
.cm-desktop-hub[data-page="front"] .cm-side2__body > * { padding-block: 12px; }
.cm-hub__activity-title {
  padding: 12px 12px 4px; background: var(--c-soft); border: 1px solid var(--c-line); border-bottom: 0;
  border-radius: 12px 12px 0 0; font-size: 16px;
}
.cm-hub-activity__entry {
  width: 100%; display: flex; gap: 8px; align-items: flex-start; text-align: left; padding: 10px 0;
  border: 0; background: transparent; color: var(--c-ink); cursor: pointer;
}
.cm-hub-activity__entry + .cm-hub-activity__entry { border-top: 1px solid var(--c-line); }
.cm-hub-activity__entry:hover .cm-hub-activity__words > span { text-decoration: underline; }
.cm-hub-activity__avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.cm-hub-activity__words { display: flex; flex-wrap: wrap; gap: 2px 6px; min-width: 0; font-size: 12px; line-height: 1.4; }
.cm-hub-activity__words small { color: var(--c-dim); font-size: 11px; }
.cm-hub-activity__words > span { width: 100%; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.cm-pip__meta .cm-byte-views { color: inherit; padding-inline: 10px 0; border-inline-start: 1px solid #ffffff35; }
.cm-pip__meta .cm-byte-views[hidden] { display: none; }
.cm-pip__toolbar { display: none; }
.cm-hub__stage .cm-pip__toolbar { display: grid; justify-items: end; gap: 4px; }
.cm-hub__stage .cm-pip__over .cm-pip__channels { display: none; }
.cm-hub__stage .cm-pip__actions > button:hover { background: #ffffff1c; }
.cm-hub__stage .cm-pip__actions { gap: 2px; }
.cm-hub__stage .cm-pip__actions[hidden] { display: none; }
.cm-hub__stage .cm-pip__actions > button[aria-pressed="true"] { color: #d94865; }
.cm-hub__stage .cm-pip__actions > button { width: auto; min-width: 32px; padding-inline: 4px; }
.cm-hub__stage .cm-pip__actions > button span:empty { display: none; }
.cm-hub__stage .cm-pip__toolbar button:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.cm-byte-views { display: inline-flex; align-items: center; gap: 6px; padding-inline: 8px; color: var(--c-dim); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cm-byte-replies { display: grid; gap: 8px; }
.cm-byte-replies:empty, .cm-media-card .cm-thread__none:empty { display: none; }
.cm-hub-lineup {
  padding: 16px; border: 1px solid var(--c-line); border-radius: 16px;
  background: var(--c-page); color: var(--c-ink);
}
.cm-hub-lineup h2 { margin: 0; font-size: 17px; }
.cm-hub-lineup p { margin: 4px 0 12px; font-size: 13px; color: var(--c-dim); }
.cm-hub-channel { min-height: 48px; border-radius: 6px; }
.cm-hub-channel__thumb { display: grid; place-items: center; position: relative; width: 36px; height: 28px; overflow: hidden; border-radius: 4px; background: var(--panel-2); color: var(--c-dim); }
.cm-hub-channel__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cm-hub-channel .cm-hub-channel__copy { flex: 1; min-width: 0; display: grid; gap: 4px; }
.cm-hub-channel small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--c-dim); font: 11px/1.25 var(--read); }
.cm-hub-channel[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--c-edge); }
.cm-desktop-hub :is(#cm-hub-live, #cm-hub-spaces, #cm-hub-feed)[hidden] { display: none; }
.cm-desktop-hub[data-page="front"][data-hub-view="live"] > .cm-side2 { display: none; }
.cm-desktop-hub[data-page="front"][data-hub-view="live"] #cm-front { row-gap: 0; }
/* Live TV uses the right column for channels while the tabs and search
   keep the same tracks as Home. */
@media (min-width: 1181px) {
  .cm-desktop-hub[data-page="front"][data-hub-view="live"]:not(.is-basketball) > .cm-center { grid-column-end: search-end; }
  .cm-desktop-hub[data-page="front"][data-hub-view="live"]:not(.is-basketball) .cm-hub-tabs {
    margin-inline-end: calc(var(--cm-explore-width) + var(--cm-home-column-gap));
  }
}
@container pane (max-width: 1180px) {
  .cm-desktop-hub[data-page="front"][data-hub-view="live"]:not(.is-basketball) .cm-hub-tabs { margin-inline-end: 0; }
}
#cm-full-tv:not([hidden]) {
  display: block;
  width: 100%;
  height: calc(var(--pane-h, 100dvh) - var(--top-h) - 12px);
  min-height: 360px;
  border: 0;
}
#cm-full-tv-split { margin: 16px; color: var(--c-dim); }

.cm-hub-spaces > header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.cm-hub-spaces > header .cm-nav__new { width: auto; min-height: 36px; margin: 0; gap: 8px; font-size: 13px; }
.cm-space-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.cm-space-stat { display: grid; gap: 2px; padding: 11px 13px; border: 1px solid var(--c-line); border-radius: 12px; }
.cm-space-stat strong { color: var(--c-ink); font: 700 20px/1.2 var(--read); font-variant-numeric: tabular-nums; }
.cm-space-stat span { color: var(--c-dim); font: 12px/1.3 var(--read); }
.cm-space-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.cm-space-filters button { padding: 7px 13px; border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-page); color: var(--c-ink); font: 700 12px var(--read); cursor: pointer; }
.cm-space-filters button[aria-pressed="true"] { border-color: var(--c-accent); background: var(--c-accent); color: #fff; }
.cm-space-filters button:focus-visible, .cm-space-card:focus-visible, .cm-space-post:focus-visible, .cm-space-detail__action:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.cm-hub-spaces__rooms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cm-hub-spaces__rooms[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cm-hub-spaces__rooms[data-count="1"] { grid-template-columns: minmax(0, 1fr); }
.cm-space-card { min-width: 0; padding: 0; overflow: hidden; border: 1px solid var(--c-line); border-radius: 13px; background: var(--c-page); color: var(--c-ink); text-align: left; cursor: pointer; }
.cm-space-card[aria-pressed="true"] { border-color: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent); }
.cm-space-card__visual { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 185px; overflow: hidden; background: var(--c-soft); }
.cm-space-card__visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cm-space-card__copy { display: grid; gap: 3px; padding: 10px 11px 11px; }
.cm-space-card__copy strong, .cm-space-card__copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-space-card__copy strong { font: 700 13px/1.3 var(--read); }
.cm-space-card__copy small { color: var(--c-dim); font: 11px/1.3 var(--read); }
.cm-space-card__activity { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--c-line); }
.cm-space-card__metric { display: grid; min-width: 0; gap: 2px; }
.cm-space-card__metric b { color: var(--c-ink); font: 700 13px/1.2 var(--read); font-variant-numeric: tabular-nums; }
.cm-space-card__metric small { overflow: hidden; color: var(--c-dim); font: 10px/1.25 var(--read); text-overflow: ellipsis; white-space: nowrap; }
.cm-home-spaces {
  min-width: 0;
  margin: 10px 0 8px;
  padding: 8px 10px 10px;
  border: 1px solid var(--c-line);
  border-radius: 14px;
}
.cm-home-spaces > header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.cm-home-spaces h2 { display: flex; align-items: center; gap: 6px; margin: 0; font: 800 18px/1.2 var(--read); }
.cm-home-spaces h2 svg { width: 20px; height: 15px; flex: none; }
.cm-home-spaces__total { color: var(--c-dim); font: 12px var(--read); }
.cm-home-spaces__scroll { display: flex; gap: 4px; margin-inline-start: auto; }
.cm-home-spaces__scroll[hidden] { display: none; }
.cm-home-spaces__scroll button {
  flex: none;
  width: 32px;
  min-height: 32px;
  padding: 0 6px;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  background: transparent;
  color: var(--c-ink);
  font: 700 12px var(--read);
  cursor: pointer;
}
.cm-home-spaces__scroll button:disabled { opacity: .4; cursor: default; }
.cm-home-spaces__scroll button:not(:disabled):hover { background: var(--c-soft); }
.cm-home-spaces .cm-space-card:hover { background: var(--c-soft); }
.cm-home-spaces__rooms {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 8px) / 2);
  gap: 8px;
  padding: 4px;
  margin: -4px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scroll-padding-inline: 4px;
  scrollbar-width: none;
}
.cm-home-spaces__rooms::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .cm-home-spaces__rooms { scroll-behavior: smooth; }
}
.cm-home-spaces .cm-space-card { display: flex; align-items: center; gap: 8px; padding: 5px; scroll-snap-align: start; }
.cm-home-spaces .cm-space-card__visual { position: relative; flex: 0 0 52px; width: 52px; aspect-ratio: 1; border-radius: 8px; }
.cm-home-spaces__live:not([hidden]) {
  position: absolute;
  inset-inline-start: 50%;
  bottom: 3px;
  translate: -50% 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgb(0 0 0 / 80%);
  color: #fff;
  font: 700 10px/1.2 var(--read);
}
.cm-home-spaces__live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #35e66b; }
.cm-home-spaces .cm-space-card__copy { min-width: 0; gap: 2px; padding: 0; }
.cm-home-spaces .cm-space-card__copy strong { font-size: 14px; }
.cm-home-blips { padding: 10px 8px 12px; border-bottom: 1px solid var(--c-line); }
.cm-home-blips:not(:has(.cm-blips__run:not([hidden]))) { display: none; }
.cm-home-blips__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cm-home-blips__head > div { flex: 1; min-width: 0; }
.cm-home-blips__head h2 { margin: 0; font: 700 16px/1.2 var(--read); }
.cm-home-blips__head p { margin: 2px 0 0; color: var(--c-dim); font: 12px/1.3 var(--read); }
.cm-home-blips__mark { flex: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; color: var(--c-accent); }
.cm-home-blips__head button {
  display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 36px; padding: 0 12px;
  border: 1px solid var(--c-line); border-radius: 999px; background: transparent;
  color: var(--c-ink); font: 700 12px var(--read); cursor: pointer;
}
.cm-home-blips__head button:hover { background: var(--c-soft); }
.cm-home-blips__head button[hidden] { display: none; }
.cm-home-blips .cm-blips { height: auto; gap: 8px; }
.cm-home-blips .cm-blips__run { height: auto; gap: 8px; padding: 5px 4px; }
.cm-home-blips .cm-blip.is-new { border-color: var(--c-accent); }
.cm-home-blips .cm-blip.is-new .cm-blip__ring::before { border-color: var(--c-accent); }
.cm-home-blips .cm-blip.is-new .cm-blip__play { background: var(--c-accent); }
.cm-home-blips .cm-blip.is-new .cm-blip__play::after { border-left-color: var(--c-on-accent); }
.cm-space-detail h3 { margin: 20px 0 10px; color: var(--c-ink); font: 700 15px var(--read); }
.cm-space-post { display: flex; flex-direction: column; gap: 3px; width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--c-line); background: none; color: var(--c-ink); text-align: left; font: 13px/1.4 var(--read); cursor: pointer; }
.cm-space-post strong { font-size: 12px; }
.cm-space-post span { color: var(--c-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-desktop-hub[data-page="front"][data-hub-view="spaces"] :is(#cm-hub-explore, #cm-hub-activity) { display: none; }
.cm-space-detail[hidden] { display: none; }
.cm-space-detail { padding: 14px; color: var(--c-ink); }
.cm-space-detail__head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cm-space-detail__hero { flex: 0 0 72px; width: 72px; height: 72px; overflow: hidden; border-radius: 12px; background: var(--c-soft); }
.cm-space-detail__hero img { width: 100%; height: 100%; object-fit: cover; }
.cm-space-detail__heading { min-width: 0; }
.cm-space-detail h2 { margin: 0 0 4px; font: 800 19px/1.25 var(--read); }
.cm-space-detail__description { margin: 0; color: var(--c-dim); font: 13px/1.45 var(--read); }
.cm-space-detail__action { width: 100%; min-height: 38px; border: 0; border-radius: 999px; background: var(--c-accent); color: #fff; font: 700 13px var(--read); cursor: pointer; }
.cm-space-detail__meta { margin: 12px 0 19px; color: var(--c-dim); font: 12px var(--read); }
.cm-space-detail__metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 16px 0; }
.cm-space-detail__metric { display: grid; min-width: 0; gap: 3px; padding: 11px 12px; border: 1px solid var(--c-line); border-radius: 12px; }
.cm-space-detail__metric strong { color: var(--c-ink); font: 700 17px/1.2 var(--read); font-variant-numeric: tabular-nums; }
.cm-space-detail__metric span { color: var(--c-dim); font: 11px/1.3 var(--read); }
@media (max-width: 900px) { .cm-hub-spaces__rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cm-desktop-hub[data-page="front"][data-hub-view="feed"] .cm-feedpane { padding-top: 12px; }
/* Community Home shares the Stats type system across the feed and both rails. */
html:not([data-app-font]) #cm-shell.cm-desktop-hub[data-page="front"],
html:not([data-app-font]) #cm-shell.cm-desktop-hub[data-page="front"] :not(i, .fa, .fas, .far, .fab, [class*="fa-"], svg, svg *) {
  font-family: var(--cm-system-font) !important;
}
.cm-desktop-hub[data-page="front"][data-hub-view="feed"] .cm-msg__name { font-weight: 650; }
.cm-desktop-hub[data-page="front"][data-hub-view="feed"] .cm-msg__time { font-size: 12px; font-weight: 400; }
.cm-desktop-hub[data-page="front"][data-hub-view="feed"] .cm-msg__line {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}
.cm-desktop-hub[data-page="front"] .cm-hub-profile__handle { font-weight: 400; }
.cm-hub-tabs {
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  border-bottom: 1px solid var(--c-line);
}
.cm-hub-tabs > button[hidden] { display: none; }
.cm-hub-tabs > button {
  position: relative; min-height: 55px; padding: 4px; border: 0;
  background: transparent; color: var(--c-dim); font: 600 14px var(--read);
  cursor: pointer; white-space: nowrap;
}
.cm-hub-tabs > button:hover { background: var(--cm-hub-wash); color: var(--c-ink); }
.cm-hub-tabs > button[aria-selected="true"] { color: var(--c-ink); }
.cm-hub-tabs > button[aria-selected="true"]::after {
  content: ""; position: absolute; inset: auto 0 0; margin-inline: auto;
  width: 40px; height: 3px; border-radius: 3px; background: var(--c-accent);
}
.cm-hub-tabs > button:focus-visible { outline: 2px solid var(--c-accent); outline-offset: -2px; }
.cm-hub__head :is(h1, h2) { font-size: 17px; }
.cm-hub-profile__cover {
  position: relative; overflow: hidden; border-radius: 0 16px 16px 0;
  aspect-ratio: 3 / 2; background: var(--c-soft);
}
.cm-hub-profile__photo {
  height: 100%; aspect-ratio: auto; max-height: none; object-position: center;
}
.cm-hub-profile__edit {
  position: absolute; top: 12px; right: 12px; display: grid; place-items: center;
  width: 32px; height: 32px; padding: 0; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / .3); background: rgb(16 17 23 / .8);
  color: white; cursor: pointer;
}
.cm-hub-profile__edit:disabled { opacity: .55; cursor: wait; }
.cm-hub-profile__avatar { display: none; }
.cm-hub-profile__identity { display: grid; gap: 4px; min-width: 0; }
.cm-hub-profile .cm-hub-profile__identity h2 { font-size: clamp(23px, 2vw, 30px); }
.cm-shell:not(.is-navless) .cm-hub-profile__bio {
  position: relative; align-content: start; gap: 8px; text-align: left;
  margin-top: -16px; padding: 0 16px 16px 24px; border-radius: 0 18px 0 0;
  background: var(--c-page);
}
.cm-shell:not(.is-navless) .cm-hub-profile__avatar {
  display: block; width: 60px; height: 60px; object-fit: cover;
  border: 3px solid var(--c-page); border-radius: 50%;
  margin-top: -28px; background: var(--c-soft);
}
.cm-basketball-trigger {
  --stats-card-bg: var(--c-soft);
  --stats-card-hover: color-mix(in srgb, var(--c-ink) 8%, var(--c-page));
  --stats-card-accent: var(--c-ink);
  --stats-card-muted: var(--c-dim);
  --stats-card-line: var(--c-line);
  display: grid; grid-template-columns: 36px minmax(0, 1fr) 28px; align-items: center;
  gap: 8px; width: 100%; padding: 12px; border-radius: 16px;
  border: 1px solid var(--stats-card-line); color: var(--c-ink); background: var(--stats-card-bg);
  font: inherit; text-align: start; cursor: pointer;
  transition: background-color .16s ease-out;
}
.cm-basketball-trigger[hidden] { display: none !important; }
.cm-basketball-trigger:hover { background: var(--stats-card-hover); }
.cm-basketball-trigger:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.cm-basketball-action:hover { background: var(--panel-2); }
.cm-basketball-trigger > i:first-child {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 8px; background: color-mix(in srgb, var(--stats-card-accent) 14%, transparent);
  color: var(--stats-card-accent); font-size: 16px;
}
.cm-basketball-card-chevron {
  display: grid; place-items: center; width: 28px; height: 28px;
  border: 1px solid var(--stats-card-line); border-radius: 50%;
  color: var(--stats-card-accent); font-size: 12px;
}
.cm-shell.is-navless .cm-hub-profile .cm-basketball-trigger {
  width: 44px; height: 44px; grid-template-columns: 1fr; place-items: center; padding: 0; border-radius: 10px;
}
.cm-shell.is-navless .cm-hub-profile .cm-basketball-trigger > i:first-child { background: transparent; }
.cm-shell.is-navless .cm-hub-profile .cm-basketball-trigger > :not(:first-child) { display: none; }
.cm-basketball-card-head { display: grid; gap: 0; min-width: 0; }
.cm-basketball-card-head strong { font-size: 15px; line-height: 20px; font-weight: 600; overflow-wrap: anywhere; }
.cm-basketball-card-season {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px;
  color: var(--stats-card-muted); font-size: 11px; line-height: 16px; overflow-wrap: anywhere;
}
.cm-basketball-card-visibility { display: inline-flex; align-items: center; gap: 4px; }
.cm-basketball-card-visibility i { font-size: 10px; }
.cm-basketball-preview {
  container-type: inline-size;
  display: grid; grid-column: 1 / -1; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  gap: 4px; padding-top: 8px; border-top: 1px solid var(--stats-card-line);
}
.cm-basketball-preview > span { display: grid; align-content: start; gap: 4px; min-width: 0; }
.cm-basketball-preview > span + span { padding-inline-start: 4px; border-inline-start: 1px solid var(--stats-card-line); }
.cm-basketball-preview b {
  color: var(--stats-card-accent); font-size: clamp(11px, 7.2cqi, 24px); line-height: 1.2;
  font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.cm-basketball-preview small { color: var(--stats-card-muted); font-size: 11px; line-height: 16px; overflow-wrap: anywhere; }
.cm-basketball-dashboard[hidden] { display: none; }
.cm-desktop-hub[data-page="front"].is-basketball #cm-front > :not(.cm-hub-tabs, .cm-basketball-dashboard),
.cm-desktop-hub[data-page="front"].is-basketball #cm-hub-feed,
.cm-desktop-hub[data-page="front"].is-basketball > .cm-side2 { display: none; }
.cm-basketball-trigger[aria-current="page"] {
  border-color: var(--c-accent);
}
.cm-desktop-hub.is-basketball .cm-hub-profile__bio > .cm-basketball-trigger[aria-current="page"] {
  display: none;
}
.cm-desktop-hub:not(.is-navless) .cm-hub-profile__bio > button.cm-basketball-trigger {
  grid-template-columns: 18px minmax(0, 1fr) 16px;
  min-height: 44px;
  gap: 4px 8px;
  padding: 8px 12px;
  border-color: transparent;
  border-radius: 10px;
  background: transparent;
}
.cm-desktop-hub:not(.is-navless) .cm-hub-profile__bio > button.cm-basketball-trigger:hover,
.cm-desktop-hub:not(.is-navless) .cm-hub-profile__bio > button.cm-basketball-trigger[aria-current="page"] {
  background: var(--stats-card-hover);
}
.cm-desktop-hub:not(.is-navless) .cm-hub-profile__bio > button.cm-basketball-trigger > i {
  width: auto;
  height: auto;
  border: 0;
  background: transparent;
}
.cm-desktop-hub .cm-hub-profile__bio > button.cm-basketball-trigger > .cm-basketball-card-chevron {
  color: var(--c-dim);
}
.cm-desktop-hub .cm-hub-profile__bio > button.cm-basketball-trigger .cm-basketball-preview b {
  font-size: clamp(11px, 6cqi, 17px);
}
.cm-desktop-hub .cm-hub-profile__bio > button.cm-basketball-trigger .cm-basketball-preview > span + span {
  padding-inline-start: 0;
  border-inline-start: 0;
}
.cm-desktop-hub .cm-hub-profile__bio > button.cm-basketball-trigger .cm-stats-season-best {
  padding-top: 4px;
  border-top: 0;
}
.cm-basketball-dashboard .cm-basketball-season {
  min-height: 154px; padding: clamp(16px, 3vw, 32px); border: 0;
  background: linear-gradient(90deg, #11121c 12%, rgb(17 18 28 / .95) 42%, rgb(17 18 28 / .45)),
    var(--basketball-art) right 42% / min(70%, 560px) auto no-repeat, #11121c;
}
.cm-basketball-dashboard .cm-basketball-season h2 {
  margin: 0; font-size: clamp(23px, 4vw, 40px); line-height: 1.05; letter-spacing: -.03em;
}
.cm-basketball-dashboard .cm-basketball-season img { width: 52px; height: 52px; border: 1px solid #9b83d2; }
.cm-basketball-controls { display: flex; gap: 8px; flex-wrap: wrap; margin-inline-start: auto; }
.cm-basketball-controls .cm-basketball-action { margin: 0; }
.cm-basketball-dashboard .cm-basketball-metrics div:nth-child(2) { background: #322059; }
.cm-basketball-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 16px; }
.cm-basketball-dashboard-side { display: grid; align-content: start; gap: 16px; min-width: 0; }
.cm-basketball-dashboard-panel {
  min-width: 0; padding: 14px; border: 1px solid var(--c-line); border-radius: 12px; background: var(--c-page);
}
.cm-basketball-dashboard-panel h3 { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.cm-basketball-dashboard-panel .cm-basketball-log-head h3 { margin: 0; }
.cm-basketball-trend select {
  max-width: 48%; padding: 4px; border: 1px solid var(--c-line); border-radius: 6px;
  background: var(--c-soft); color: var(--c-ink); font-size: 11px;
}
.cm-basketball-trend svg { display: block; width: 100%; max-height: 116px; color: #ab8bff; }
.cm-basketball-trend polyline { fill: none; stroke: currentColor; stroke-width: 2; }
.cm-basketball-trend circle { fill: currentColor; }
.cm-basketball-trend line { stroke: var(--c-line); }
.cm-basketball-trend text { fill: var(--c-dim); font-size: 9px; }
.cm-basketball-media-list { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.cm-basketball-media-list li { display: grid; gap: 3px; padding: 8px; border: 1px solid var(--c-line); border-radius: 8px; }
.cm-basketball-media-list a { color: var(--c-ink); }
.cm-basketball-media-list small { color: var(--c-dim); }
.cm-basketball-season h2[tabindex="-1"] { outline: none; }
@media (max-width: 860px) {
  .cm-basketball-dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .cm-basketball-dashboard .cm-basketball-season { flex-wrap: wrap; }
  .cm-basketball-controls { flex-basis: 100%; }
}
/* Season dashboard and owner editor */
.cm-basketball-season {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.cm-basketball-score {
  margin-bottom: 24px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--c-line);
}
.cm-basketball-season {
  justify-content: flex-start; flex-wrap: nowrap; gap: 12px; padding: 16px;
  border-top: 4px solid #d9233c; color: #f8fafc; background: #161a20;
}
.cm-basketball-season img {
  flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #292e36;
}
.cm-basketball-season > div { min-width: 0; }
.cm-basketball-sport { display: block; color: #bfc6d0; font-size: 11px; font-weight: 600; margin-bottom: 3px; }
.cm-basketball-season h3 { font-size: clamp(20px, 5vw, 28px); line-height: 1.12; overflow-wrap: anywhere; }
.cm-basketball-season p { margin: 3px 0 0; color: #cbd1da; font-size: 13px; }
.cm-basketball-season .cm-basketball-action { margin-inline-start: auto; flex: none; }
.cm-basketball-preview-note {
  margin: 0 0 12px; color: var(--c-dim); font-size: 12px;
}
.cm-basketball-metrics {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0;
  background: var(--c-soft);
}
.cm-basketball-metrics div {
  display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 16px 6px; text-align: center;
}
.cm-basketball-metrics div + div { border-inline-start: 1px solid var(--c-line); }
.cm-basketball-metrics dt { color: var(--c-dim); font-size: 11px; }
.cm-basketball-metrics dd {
  margin: 0; font-size: clamp(24px, 5vw, 40px); font-weight: 750;
  line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums;
}
.cm-basketball-log-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.cm-basketball-table { border: 1px solid var(--c-line); border-radius: 10px; overflow: hidden; }
.cm-basketball-log { width: 100%; table-layout: fixed; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.cm-basketball-log th, .cm-basketball-log td { text-align: center; padding: 10px 4px; }
.cm-basketball-log th:first-child { width: 52%; text-align: left; padding-inline-start: 12px; }
.cm-basketball-log thead { color: var(--c-dim); background: var(--c-soft); font-size: 11px; }
.cm-basketball-log tbody tr { border-top: 1px solid var(--c-line); }
.cm-basketball-log tbody tr:nth-child(even) { background: var(--c-soft); }
.cm-basketball-log tbody td { font-weight: 650; }
.cm-basketball-log .cm-basketball-muted { font-weight: 400; }
.cm-basketball-matchup > :is(strong, span) { display: block; overflow-wrap: anywhere; }
.cm-basketball-matchup strong { font-size: 13px; }
.cm-basketball-matchup > span { margin-top: 3px; font-size: 11px; }
.cm-basketball-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.cm-basketball-actions:empty { display: none; }
@media (max-width: 420px) {
  .cm-basketball-season { flex-wrap: wrap; }
  .cm-basketball-season .cm-basketball-action { margin-inline-start: 0; }
}
.cm-rail-icon {
  width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor;
  stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round;
}
:is(.cm-app-search, .cm-explore-block__mark, .cm-explore-block__more, .cm-explore-tile__art, .cm-hub-rail-activity > summary) > .cm-rail-icon {
  color: var(--c-dim);
}
.cm-profile-trigger :is(.cm-profile-trigger__app-icon, .cm-profile-trigger__label) { display: none; }
.cm-settings-link .cm-profile-trigger__app-icon { display: inline-block; }
.cm-hub-owner-tools {
  display: grid; gap: 4px; padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--c-line);
}
.cm-hub-owner-tools .cm-top__right { display: contents; }
.cm-hub-owner-tools .cm-account { order: 1; }
.cm-hub-owner-tools > a,
.cm-hub-owner-tools :is(.cm-top__right > .cm-create-trigger, .cm-top__right > .nt-bell, .cm-account > .cm-profile-trigger) {
  display: flex; align-items: center; justify-content: flex-start; gap: 12px;
  width: 100%; height: auto; min-height: 44px; margin: 0; padding: 8px 10px;
  border: 0; border-radius: 8px; background: transparent; color: var(--c-ink);
  font: inherit; font-size: 13px; font-weight: 650; text-align: left; text-decoration: none; cursor: pointer;
}
.cm-hub-owner-tools > a:hover,
.cm-hub-owner-tools :is(.cm-top__right > button, .cm-account > .cm-profile-trigger):hover { background: var(--c-soft); }
#cm-tv-create-visitor { display: none; }
.cm-desktop-hub[data-page="front"][data-hub-view="live"] #cm-tv-create-visitor:not([hidden]) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: transparent;
  color: var(--c-ink);
  font: inherit;
  font-weight: 650;
}
.cm-hub-owner-tools :is(i, svg) { flex: none; width: 18px; text-align: center; }
.cm-hub-owner-tools .cm-profile-trigger :is(img, .fa-user) { display: none; }
.cm-hub-owner-tools .cm-profile-trigger :is(.cm-profile-trigger__app-icon, .cm-profile-trigger__label) { display: inline-block; }
.cm-hub-owner-tools .nt-bell::after { content: "Notifications"; }
.cm-hub-owner-tools .nt-badge { position: static; order: 1; margin-inline-start: auto; }
.cm-shell.is-navless .cm-hub-owner-tools { display: contents; }
.cm-shell.is-navless .cm-hub-owner-tools > a { display: none; }
.cm-shell.is-navless .cm-hub-owner-tools :is(.cm-top__right > button, .cm-account > .cm-profile-trigger) { justify-content: center; }
.cm-shell.is-navless .cm-hub-owner-tools :is(.cm-create-trigger > span, .cm-profile-trigger__label) { display: none; }
.cm-shell.is-navless .cm-hub-owner-tools .nt-bell::after { content: none; }
.cm-shell.is-navless .cm-hub-owner-tools .nt-badge { position: absolute; top: 0; right: 0; }
.cm-hub-profile__bio {
  gap: 6px; padding: 8px 12px 0; text-align: center; color: var(--c-ink);
}
.cm-hub-profile { margin: 0 0 12px; }
.cm-hub-profile__handle { color: var(--c-dim); }
.cm-hub-profile__links:empty { display: none; }
.cm-hub-profile__link-row {
  justify-content: center;
  gap: 6px;
  margin: 2px 0 6px;
}
.cm-hub-profile__link-row > a {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--cm-hub-line);
  border-radius: 9px;
}
.cm-hub-profile__link-row .cm-hero__mark svg,
.cm-hub-profile__link-row .cm-hero__fav { width: 20px; height: 20px; }
.cm-hub-profile__link-row > a { overflow: hidden; }
.cm-hub-profile__link-row :is(.cm-hero__mark, .cm-hero__fav) {
  width: 100%; height: 100%; border-radius: 0;
}
.cm-hub-profile__link-row .cm-hero__mark {
  align-items: center; justify-content: center;
  background: var(--cm-social-tile, var(--c-soft));
}
.cm-hub-profile__link-row .cm-hero__mark svg { width: 84%; height: 84%; }
.cm-hub-profile__link-row .cm-hero__mark[data-platform="instagram"] {
  --cm-social-tile: radial-gradient(circle at 24% 100%, #ffce55 0, #f44b36 35%, #c52883 67%, #6442d6 100%);
  color: #fff;
}
.cm-hub-profile__link-row > a:has(> .cm-hero__mark[data-platform="youtube"]) {
  background: #f00;
  border-color: #f00;
}
.cm-hub-profile__link-row .cm-hero__mark[data-platform="youtube"] {
  --cm-social-tile: #f00; --platform-badge-bg: #f00; color: #fff;
}
.cm-hub-profile__link-row .cm-hero__mark:is([data-platform="x"], [data-platform="tiktok"]) {
  --cm-social-tile: #0b0b0f; color: #fff;
}
.cm-hub-profile__link-row .cm-hero__mark[data-platform="facebook"] {
  --cm-social-tile: #1877f2; color: #fff;
}
.cm-hub-profile__link-row .cm-hero__mark[data-platform="telegram"] {
  --cm-social-tile: #229ed9;
}
.cm-hub-profile__link-row .cm-hero__fav img { object-fit: cover; }
.cm-hero__mark[data-platform="telegram"] { color: #2aabee; }
.cm-hub-profile__link-row .cm-hero__mark[data-platform="telegram"] { color: #fff; }
.cm-hub-profile h2 { display: flex; justify-content: center; align-items: center; gap: 5px; font-size: 24px; overflow-wrap: anywhere; }
.cm-hub-profile .cm-hub-profile__identity h2 { justify-content: flex-start; }
.cm-hub-profile h2 .nst-verified { flex: none; width: 16px; height: 16px; }
.cm-desktop-hub {
  --cm-hub-wash: color-mix(in srgb, var(--c-ink) 2.5%, transparent);
  --cm-hub-line: color-mix(in srgb, var(--c-ink) 10%, transparent);
}
.cm-desktop-hub[data-page="front"] :is(.cm-hub-profile__contact button, .cm-hub-rail-activity__more) {
  border-color: var(--cm-hub-line); background: var(--cm-hub-wash);
}
.cm-desktop-hub[data-page="front"] :is(.cm-hub-profile__contact button, .cm-hub-rail-activity__more):hover {
  background: var(--c-soft);
}
.cm-desktop-hub[data-page="front"] .cm-nav { background: var(--c-page); }
.cm-desktop-hub[data-page="front"]:not(.is-navless) .cm-nav:has(.cm-hub-profile) { padding: 0 8px 0 0; }
.cm-desktop-hub[data-page="front"]:not(.is-navless) .cm-nav:has(.cm-hub-profile) > .cm-navtoggle {
  position: absolute; inset: 12px auto auto 12px;
  color: white; background: rgb(16 17 23 / .82); border-color: rgb(255 255 255 / .24);
}
.cm-hub-profile__bio .cm-hub-owner-tools {
  margin-top: 12px; padding-top: 12px; border-color: var(--c-line);
}
.cm-hub-profile :is(.cm-hub-profile__install, .cm-hub-profile__contact button),
.cm-hub-profile__bio [data-hp-preview] {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px;
  margin: 0; padding: 0 14px; border-radius: 999px; text-align: center;
}
.cm-shell:not(.is-navless) .cm-hub-profile :is(.cm-hub-profile__install, .cm-hub-profile__contact button, [data-hp-preview]) {
  justify-content: flex-start;
  text-align: start;
}
.cm-shell:not(.is-navless) .cm-hub-profile :is(.cm-hub-profile__install, .cm-hub-profile__contact button) > i {
  flex: 0 0 18px;
  text-align: center;
}
.cm-shell:not(.is-navless) .cm-hub-profile__install { border: 1px solid transparent; }
.cm-hub-profile__bio .cm-hub-profile__install[hidden] { display: none; }
.cm-hub-profile .cm-hub-profile__install:hover { opacity: .88; }
.cm-desktop-hub[data-page="front"] .cm-hub-profile :is(.cm-hub-profile__contact button, [data-hp-preview]) {
  color: var(--c-ink); -webkit-text-fill-color: currentColor; background: var(--cm-hub-wash);
  border: 1px solid var(--cm-hub-line); box-shadow: none;
  font: 650 13px var(--read);
}
.cm-desktop-hub[data-page="front"] .cm-hub-profile__bio [data-hp-preview] {
  position: relative; gap: 8px; height: 36px; padding-inline: 14px 28px;
}
.cm-hub-profile__bio [data-hp-preview] .hp-pill__label {
  flex: 0 1 auto; color: var(--c-ink); -webkit-text-fill-color: var(--c-ink); font: inherit;
}
.cm-hub-profile__bio [data-hp-preview]::after {
  content: ""; position: absolute; inset-inline-end: 17px; top: 50%; width: 6px; height: 6px;
  border-top: 1.5px solid; border-right: 1.5px solid; transform: translateY(-50%) rotate(45deg);
}
.cm-desktop-hub[data-page="front"] .cm-hub-profile :is(.cm-hub-profile__contact button, [data-hp-preview]):hover {
  background: var(--c-soft);
}
.cm-hub-profile .cm-hub-profile__link-row { justify-content: flex-start; }
@container pane (max-width: 860px) {
  .cm-desktop-hub[data-page="front"]:not(.is-navless) .cm-nav:has(.cm-hub-profile) { padding: 10px 16px; }
  .cm-desktop-hub[data-page="front"] .cm-hub-profile__bio .cm-hub-owner-tools { margin: 0; padding: 0; }
}
@media (max-width: 860px) {
  .cm-desktop-hub[data-page="front"]:not(.is-navless) .cm-nav:has(.cm-hub-profile) { padding: 10px 16px; }
  .cm-desktop-hub[data-page="front"] .cm-hub-profile__bio .cm-hub-owner-tools { margin: 0; padding: 0; }
}
.cm-desktop-hub[data-page="front"].is-navless { --cm-nav-track: 76px; }
.cm-desktop-hub[data-page="front"].is-navless .cm-nav:has(.cm-hub-profile) {
  container: cm-profile-nav / inline-size;
}
@media (min-width: 861px) {
  .cm-desktop-hub[data-page="front"].is-navless .cm-nav:has(.cm-hub-profile) {
    box-sizing: border-box; width: 76px; justify-self: start; padding: 12px 8px;
  }
}
@container pane (max-width: 860px) {
  .cm-desktop-hub[data-page="front"].is-navless .cm-nav:has(.cm-hub-profile) {
    width: auto; justify-self: stretch;
  }
}
@container cm-profile-nav (max-width: 76px) {
  .cm-desktop-hub[data-page="front"].is-navless .cm-nav > .cm-navtoggle {
    margin: 0 0 8px;
  }
  .cm-desktop-hub[data-page="front"].is-navless .cm-hub-profile__bio .cm-campaign-slot .hp-pill {
    width: 44px; height: 44px; min-height: 44px; padding: 0; gap: 0;
    justify-content: center; border-radius: 10px;
  }
  .cm-shell.is-navless .cm-hub-profile__bio .cm-campaign-slot :is(.hp-pill__label, .hp-pill__cta),
  .cm-shell.is-navless .cm-hub-profile__bio [data-hp-preview]::after { display: none; }
  .cm-shell.is-navless .cm-hub-profile__bio {
    display: grid; justify-items: center; width: 100%; gap: 4px; padding: 0;
  }
  .cm-shell.is-navless .cm-hub-profile__bio > .cm-hub-profile__avatar {
    display: block; width: 40px; height: 40px; margin: 0 0 4px;
    object-fit: cover; border-radius: 50%; background: var(--c-soft);
  }
  .cm-shell.is-navless .cm-hub-profile__bio > :is(.cm-hub-profile__contact, .cm-hub-profile__help:not([hidden])) {
    display: grid; gap: 4px;
  }
  .cm-shell.is-navless .cm-hub-profile__help { font-size: 11px; overflow-wrap: anywhere; }
  .cm-shell.is-navless .cm-hub-profile__bio > .cm-hub-profile__install:not([hidden]) { display: flex; }
  .cm-hub-profile__bio .cm-top-auth { display: grid; justify-items: center; gap: 4px; }
  .cm-hub-profile__bio > .cm-top__right { margin-block-start: 4px; padding-block-start: 8px; }
  .cm-shell.is-navless .cm-hub-profile :is(.cm-hub-profile__install, .cm-hub-profile__contact button, .cm-top-auth a) {
    align-items: center; justify-content: center; width: 44px; min-height: 44px;
    padding: 0; margin: 0; gap: 0; border-radius: 10px; font-size: 0;
  }
  .cm-shell.is-navless .cm-hub-profile :is(.cm-hub-profile__install, .cm-hub-profile__contact button) i {
    margin: 0; font-size: 16px;
  }
  .cm-hub-profile__bio .cm-top-auth a > span { display: none; }
  .cm-hub-profile__bio .cm-top-auth .cm-rail-icon { display: block; width: 18px; height: 18px; }
  .cm-shell.is-navless .cm-hub-profile--owner .cm-hub-profile__bio > .cm-hub-profile__links:not(:empty) {
    display: revert;
  }
  .cm-shell.is-navless .cm-hub-profile--owner .cm-hub-profile__link-row { justify-content: center; flex-wrap: wrap; }
  .cm-shell.is-navless .cm-hub-profile--owner .cm-hub-profile__bio > .cm-top,
  .cm-shell.is-navless .cm-hub-profile--owner .cm-top__left {
    flex-direction: column; align-items: stretch; gap: 4px;
  }
  .cm-shell.is-navless .cm-hub-profile--owner .cm-hub-owner-tools {
    display: grid; justify-items: center; width: 100%; gap: 2px; margin: 4px 0 0; padding: 8px 0 0;
  }
  .cm-shell.is-navless .cm-hub-profile--owner :is(
    .cm-hub-owner-tools > a, .cm-top__right > :is(button, a)
  ) {
    display: flex; flex: none; justify-content: center; align-items: center;
    position: relative; width: 44px; min-width: 0; min-height: 44px; height: 44px; gap: 0;
    margin: 0; padding: 0; border: 0; border-radius: 10px; box-shadow: none;
    background: transparent; color: var(--c-ink); font-size: 0;
  }
  .cm-shell.is-navless .cm-hub-profile--owner .cm-hub-owner-tools :is(button, a):hover { background: var(--c-soft); }
  .cm-shell.is-navless .cm-hub-profile--owner .nt-badge { top: 0; right: 0; }
}
.cm-desktop-hub[data-page="front"] .cm-chips2 { gap: 6px; margin: 9px 0 6px; }
.cm-desktop-hub[data-page="front"] .cm-chip2 { height: 30px; padding-inline: 12px; font-size: 12px; }
.cm-desktop-hub[data-page="front"] .cm-chip2:not(.is-on) {
  border-color: var(--cm-hub-line); background: var(--cm-hub-wash);
}
.cm-desktop-hub[data-page="front"] .cm-chip2:not(.is-on):hover { background: var(--c-soft); }
.cm-desktop-hub .cm-msg {
  min-width: 0; border: 0; border-bottom: 1px solid var(--cm-hub-line); border-radius: 0;
  background: transparent; padding: 12px 14px 12px 54px;
}
.cm-desktop-hub .cm-msg__head > .cm-avatar { left: 12px; top: 12px; width: 32px; height: 32px; }
.cm-desktop-hub .cm-msg__line { font-size: 14px; }
.cm-desktop-hub .cm-list { gap: 0; margin-top: 0; border-top: 1px solid var(--cm-hub-line); }
.cm-home-spaces:not([hidden]) ~ .cm-list { border-top: 0; }
.cm-desktop-hub .cm-list::before, .cm-desktop-hub .cm-day::before { display: none; }
.cm-desktop-hub .cm-day { padding: 10px 0 2px; }
.cm-shell .cm-msg > .cm-acts--feed {
  display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 4px;
  margin: 8px 0 0;
}
.cm-msg > .cm-acts--feed > :is(.cm-act, .cm-byte-views) {
  flex: 1 1 max-content; justify-content: flex-start; min-width: 0; min-height: 32px;
  padding-inline: 0; gap: 4px; color: var(--c-dim); font-weight: 500;
  font-size: 12px; font-variant-numeric: tabular-nums;
}
.cm-msg > .cm-acts--feed > .cm-act { border: 0; border-radius: 8px; background: transparent; }
.cm-msg > .cm-acts--feed > .cm-act.is-on { color: var(--c-accent); }
.cm-acts--feed .cm-act__mark { display: inline-flex; align-items: center; gap: 4px; border-radius: 5px; }
.cm-msg > .cm-acts--feed > .cm-act:not(:disabled):hover .cm-act__mark {
  background: var(--c-soft);
  box-shadow: 0 0 0 4px var(--c-soft);
}
.cm-msg > .cm-acts--feed > .cm-act[data-act="share"] { flex: 0 0 32px; justify-content: flex-end; }
.cm-acts--feed .cm-pill__ico, .cm-acts--feed .cm-byte-views > i { width: 16px; }
.cm-acts--feed :is(.cm-pill__icon, .cm-byte-views > i) { font-size: 14px; }
.cm-acts--feed .cm-pill__ico { justify-items: start; }
.cm-acts--feed [data-act="share"] .cm-pill__ico { justify-items: end; }
.cm-msg--openable:not(.is-post-detail) { cursor: pointer; }
.cm-msg--openable > :is(.cm-thread, .cm-media, .community-card-player) { cursor: auto; }
.cm-msg:focus-visible { outline: 2px solid var(--c-accent); outline-offset: -2px; }
.cm-post-detail {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px;
  border-bottom: 1px solid var(--c-line); color: var(--c-ink);
}
.cm-post-detail[hidden] { display: none; }
.cm-post-detail h2 { margin: 0; font-size: 20px; }
.cm-post-detail button {
  width: 36px; height: 36px; border: 0; border-radius: 8px;
  background: transparent; color: inherit; cursor: pointer;
}
.cm-post-detail button:hover { background: var(--c-soft); }
.is-post-detail-open :is(#cm-front, #cm-room),
.is-post-detail-open #cm-feedpane > :not(#cm-list, #cm-post-detail),
.is-post-detail-open #cm-list > :not(.is-post-detail) { display: none; }
.is-post-detail-open #cm-list { border-top: 0; }
.is-post-detail-open .is-post-detail .cm-msg__line { font-size: 16px; }
.cm-desktop-hub[data-page="front"] :is(.cm-composer, .cm-note) {
  min-height: 46px; margin: 0; padding-block: 5px; background: transparent;
  border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--cm-hub-line);
}
.cm-desktop-hub[data-page="front"] .cm-composer:focus-within { border-bottom-color: var(--c-accent); }
.cm-desktop-hub[data-page="front"] .cm-composer {
  grid-template-columns: 34px minmax(0, 1fr) 40px 40px 76px;
  grid-template-areas:
    "avatar writing writing writing writing"
    ". space photo audio post";
  gap: 6px 10px;
  padding: 8px 4px 12px;
}
.cm-desktop-hub[data-page="front"] .cm-composer__me { grid-area: avatar; width: 34px; height: 34px; }
.cm-desktop-hub[data-page="front"] #cm-compose-text { grid-area: writing; min-width: 0; height: 40px; padding-inline: 0; font-size: 15px; }
.cm-desktop-hub[data-page="front"] .cm-composer .cm-composer__to {
  grid-area: space; justify-self: start; max-width: 100%; margin: 0;
  height: 34px; padding-inline: 10px; border-color: var(--c-line); font-size: 12px;
}
.cm-desktop-hub[data-page="front"] .cm-composer__add { width: 40px; height: 36px; justify-self: center; }
.cm-desktop-hub[data-page="front"] .cm-composer > label.cm-composer__add { grid-area: photo; }
.cm-desktop-hub[data-page="front"] .cm-composer > button.cm-composer__add { grid-area: audio; }
.cm-desktop-hub[data-page="front"] .cm-composer > .cm-composer__send {
  grid-area: post;
  justify-self: end;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: max-content;
  min-width: 76px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}
.cm-desktop-hub[data-page="front"] .cm-composer__add svg { width: 18px; height: 18px; }
.cm-desktop-hub[data-page="front"] .cm-note :is(button, a) {
  height: 34px; padding-inline: 14px; font-size: 13px;
}

.cm-desktop-hub[data-page="front"] :is(a, button):focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
@media (min-width: 1181px) {
  .cm-desktop-hub[data-page="front"] .cm-center { padding-inline: 0; }
  .cm-desktop-hub[data-page="front"] .cm-side2 { padding-inline: 0; }
  .cm-desktop-hub[data-page="front"] .cm-nav { border: 0; }
  .cm-desktop-hub[data-page="front"] .cm-side2 .cm-explore-block:first-child { padding-top: 8px; }
  .cm-desktop-hub[data-page="front"] .cm-explore-block { padding-block: 12px 16px; }
  .cm-desktop-hub[data-page="front"] .cm-explore-block__head { margin-bottom: 10px; }
}
@container pane (max-width: 1180px) {
  .cm-desktop-hub[data-page="front"] .cm-side2 { padding: 0 14px 24px; }
}

/* Keep the hub's open rails while the shared Glass backdrop shows through. */
html[data-appearance="glass"] .tab-community:has(.cm-desktop-hub[data-page="front"]) {
  --c-ink: var(--gl-ink) !important;
  --c-page: var(--paper) !important;
}
html[data-appearance="glass"] .cm-desktop-hub[data-page="front"] > :is(.cm-nav, .cm-side2) {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-appearance="glass"] .cm-hub-profile__install,

/* Desktop rooms share the Community frame and room cards. */
.tab-community:has(.cm-desktop-hub[data-page="room"]) .cm-top {
  position: relative; gap: 10px; min-height: 52px; box-sizing: border-box; padding: 4px 12px; background: var(--c-page);
}
.cm-top__home {
  display: none; align-items: center; gap: 8px;
  min-height: 36px; padding: 0 12px;
  border: 0; border-radius: 999px; background: transparent;
  color: var(--c-ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.cm-top__home i { font-size: 11px; }
.cm-top__home:hover { background: var(--c-soft); }
.cm-top__home:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.tab-community:has(.cm-desktop-hub[data-page="room"]) .cm-top__home { display: inline-flex; }
.tab-community:has(.cm-desktop-hub[data-page="room"]) .cm-top > :is(.cm-id, .cm-top__left) {
  display: none;
}
.cm-desktop-hub[data-page="room"] .cm-nav {
  display: none;
}
.tab-community .cm-desktop-hub[data-page="room"] {
  grid-template-columns: minmax(0, 1fr);
}
.cm-room-summary { display: none; min-width: 0; }
.cm-desktop-hub[data-page="room"] > .cm-room-summary { display: block; padding: 10px 12px 0; }
.tab-community.is-focus .cm-desktop-hub[data-page="room"] > .cm-room-summary { display: none; }
.cm-desktop-hub:not(.is-navless) .cm-nav__room[aria-current="page"] {
  border-color: var(--c-accent);
  background: color-mix(in srgb, var(--c-accent) 9%, var(--c-page));
}
.cm-desktop-hub[data-page="room"] .cm-center { padding: 10px 12px 40px; }
.cm-desktop-hub[data-page="room"] .cm-rh {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--c-page);
  color: var(--c-ink);
}
.cm-desktop-hub[data-page="room"] .cm-rh__img { position: static; height: auto; aspect-ratio: 16 / 10; border-radius: 14px; }
.cm-desktop-hub[data-page="room"] :is(.cm-rh__shade, .cm-rh__back, .cm-rh__title .cm-layer) { display: none; }
.cm-desktop-hub[data-page="room"] .cm-rh__row { align-items: start; gap: 10px; padding: 8px 0 12px; }
.cm-room-spaces {
  display: none;
  min-height: 36px; max-width: 120px; padding-inline: 8px;
  border: 0; border-radius: 8px; background: var(--c-soft); color: var(--c-ink);
  font: 650 13px var(--read); cursor: pointer;
}
.tab-community:has(.cm-desktop-hub[data-page="room"]) .cm-top > .cm-room-spaces { display: block; }
.cm-desktop-hub[data-page="room"] .cm-rh__words { flex: 1 1 0; min-width: 0; gap: 2px; }
.cm-desktop-hub[data-page="room"] .cm-rh__pic { width: 36px; height: 36px; border-radius: 8px; box-shadow: none; font-size: 22px; }
.cm-desktop-hub[data-page="room"] .cm-rh__title { font: 700 18px/1.2 var(--read); letter-spacing: 0; }
.cm-desktop-hub[data-page="room"] .cm-rh__desc { display: -webkit-box; font-size: 13px; color: var(--c-dim); overflow-wrap: anywhere; }
.cm-desktop-hub[data-page="room"] .cm-rh__desc[hidden] { display: none; }
.cm-desktop-hub[data-page="room"] .cm-rh__facts { color: var(--c-dim); font-size: 12px; }
.cm-desktop-hub[data-page="room"] .cm-rh__online::before { box-shadow: none; }
.cm-desktop-hub[data-page="room"] .cm-rh__join {
  height: 40px; padding-inline: 16px; border-radius: 8px;
  background: var(--c-accent); color: var(--c-on-accent); font-size: 13px;
}
.cm-room-summary .cm-rh__row { flex-wrap: wrap; padding-block: 14px 8px; }
.cm-room-summary .cm-rh:has(.cm-rh__img:not([hidden])) .cm-rh__pic { display: none; }
.cm-room-summary .cm-rh__words { flex-basis: calc(100% - 46px); gap: 5px; }
.cm-room-summary .cm-rh__join { flex-basis: 100%; }
.cm-desktop-hub[data-page="room"] .cm-room-summary .cm-tabs__tools { margin-block-start: 12px; gap: 8px; }
.cm-desktop-hub[data-page="room"] .cm-room-summary .cm-find { box-sizing: border-box; width: 100%; flex-basis: 100%; }
.cm-room-summary .cm-roommenu { margin-inline-start: auto; }
.cm-room-summary .cm-roommenu__list { width: min(240px, calc(100vw - 48px)); }
.cm-desktop-hub[data-page="room"]:not(.is-navless) .cm-nav__list { gap: 4px; }
.cm-desktop-hub[data-page="room"]:not(.is-navless) .cm-nav__room {
  min-height: 44px; padding: 4px 8px; border-color: transparent; background: transparent;
}
.cm-desktop-hub[data-page="room"]:not(.is-navless) .cm-nav__room:hover { background: var(--c-soft); }
.cm-desktop-hub[data-page="room"]:not(.is-navless) .cm-nav__room[aria-current="page"] {
  background: color-mix(in srgb, var(--c-accent) 9%, var(--c-page));
  border-color: color-mix(in srgb, var(--c-accent) 20%, var(--c-line));
}
.cm-desktop-hub[data-page="room"]:not(.is-navless) .cm-nav__room .cm-nav__icon { width: 32px; height: 32px; }
.cm-desktop-hub[data-page="room"] .cm-nav__room-summary { display: none; }
.cm-desktop-hub[data-page="room"] .cm-tabs {
  flex-wrap: wrap; gap: 4px 12px; padding: 0; border: 0; box-shadow: none; background: var(--c-page);
}
.cm-desktop-hub[data-page="room"] .cm-tab { height: 36px; padding-inline: 12px; font-size: 14px; }
.cm-desktop-hub[data-page="room"] .cm-tabs__tools { flex: 0 1 auto; flex-wrap: wrap; gap: 6px; padding-bottom: 0; }
.cm-desktop-hub[data-page="room"] .cm-find { width: clamp(140px, 20vw, 220px); }
.cm-desktop-hub[data-page="room"] .cm-room__grid { gap: 32px; margin-top: 16px; }
.cm-desktop-hub[data-page="room"] .cm-list { border-top: 0; }
.cm-desktop-hub[data-page="room"] .cm-composer { margin-bottom: 12px; }
.cm-desktop-hub[data-page="room"] .cm-rail {
  gap: 20px; padding-inline: 12px; background: transparent; border: 0; border-radius: 0;
}
.cm-desktop-hub[data-page="room"] .cm-rail > * { padding-block: 4px 0; }
.cm-desktop-hub[data-page="room"] .cm-rail > * + *,
.cm-desktop-hub[data-page="room"] .cm-rail .cm-person + .cm-person { border-top: 0; }
.cm-desktop-hub[data-page="room"] .cm-rail .cm-eye {
  font-family: var(--read); font-size: 13px; letter-spacing: 0; text-transform: none;
}
@media (min-width: 1181px) {
  .tab-community:has(.cm-desktop-hub[data-page="room"]) :is(.cm-top, .cm-desktop-hub) {
    width: min(1250px, calc(100% - 48px)); margin-inline: auto;
  }
  .cm-desktop-hub[data-page="room"] .cm-center { padding-inline: 0; }
  .tab-community:not(.is-focus) .cm-desktop-hub[data-page="room"] {
    grid-template-columns: clamp(200px, 18vw, 236px) minmax(0, 1fr);
    column-gap: 32px;
  }
  .cm-desktop-hub[data-page="room"] > .cm-room-summary { padding-inline: 0; }
}
@container pane (max-width: 860px) {
  .tab-community:not(.is-focus) .cm-desktop-hub[data-page="room"] { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1180px) {
  .cm-room-summary .cm-rh__img { max-height: 160px; }
}
@media (min-width: 861px) {
  .tab-community:not(.is-focus) .cm-desktop-hub[data-page="room"] .cm-room__grid {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 29%);
  }
}
@container pane (max-width: 860px) {
  .tab-community:not(.is-focus) .cm-desktop-hub[data-page="room"] .cm-room__grid { grid-template-columns: minmax(0, 1fr); }
  .cm-desktop-hub[data-page="room"] .cm-navtoggle { display: none; }
}
@media (max-width: 860px) {
  .cm-desktop-hub[data-page="room"] .cm-navtoggle { display: none; }
}

.cm-basketball-dashboard:has(.cm-game-desk) {
  --game-selected: color-mix(in srgb, var(--c-ink) 8%, var(--game-surface));
  --game-surface: var(--c-page);
  margin: 0;
  padding: 0 0 32px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--c-ink);
  font-family: system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.cm-game-desk {
  display: grid;
  grid-template-columns: minmax(0, 3.15fr) minmax(0, 2.4fr);
  align-items: start;
  gap: 16px;
}
.cm-game-main, .cm-game-season { display: grid; gap: 16px; min-width: 0; }
.cm-game-tag { color: var(--c-dim); font-size: 12px; }
.cm-game-owner-tools {
  display: grid; gap: 2px; padding: 10px;
  border: 1px solid var(--c-line); border-radius: 14px;
  background: var(--c-soft);
}
.cm-game-owner-tools h3 { margin: 0 0 4px; padding-inline: 8px; color: var(--c-dim); font-size: 12px; font-weight: 600; }
.cm-game-owner-tools button:disabled { opacity: .55; cursor: default; }
.cm-game-tag { display: inline-block; padding: 4px 8px; border-radius: 8px; background: var(--c-soft); }
.cm-game-scoreboard {
  border: 1px solid var(--c-line); border-radius: 16px; background: var(--game-surface);
}
.cm-game-nav {
  display: flex; gap: 8px; align-items: center; min-height: 36px; padding: 4px 8px;
  border: 1px solid transparent; border-radius: 8px; color: var(--c-ink); background: transparent;
  text-align: left; text-decoration: none; font: 550 13px system-ui, sans-serif; cursor: pointer;
}
.cm-game-nav i { width: 16px; text-align: center; }
.cm-game-nav:is(:hover, :focus-visible) {
  color: var(--c-ink); background: var(--c-soft); border-color: var(--c-line);
}
.cm-game-media {
  display: grid; align-content: start; min-height: 148px; padding: 20px;
  border: 1px solid var(--c-line); border-radius: 20px; background: var(--game-surface);
}
.cm-game-media h2 { margin: 0; font-size: clamp(23px, 2.2vw, 34px); line-height: 1.12; font-weight: 650; letter-spacing: -.025em; }
.cm-game-media h2:focus { outline: none; }
.cm-game-media p { margin: 8px 0 16px; color: var(--c-dim); font-size: 13px; }
.cm-game-player { display: block; width: 100%; margin-top: 12px; aspect-ratio: 16 / 9; border: 0; border-radius: 6px; background: #000; }
.cm-game-film { min-width: 0; margin-top: 4px; }
.cm-game-film[hidden], .cm-game-media-actions:empty { display: none; }
.cm-game-film h3 { margin: 0 0 8px; color: var(--c-ink); font-size: 14px; }
.cm-game-film > video {
  display: block; width: 100%; aspect-ratio: 16 / 9;
  max-height: 60vh; border-radius: 12px; background: #000;
}
.cm-game-film-playlist {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline;
  gap: 8px; margin-top: 16px;
}
.cm-game-film-playlist[hidden] { display: none; }
.cm-game-film-playlist h4 { margin: 0; font-size: 14px; font-weight: 650; }
.cm-game-film-count { color: var(--c-dim); font-size: 12px; }
.cm-game-film-more {
  grid-column: 1 / -1; justify-self: center; min-height: 36px;
  padding: 4px 12px; border: 0; border-radius: 8px;
  background: transparent; color: var(--c-accent);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.cm-game-film-more:hover { background: var(--c-soft); }
.cm-game-film-clip:hover { background: var(--c-soft); }
.cm-game-film-clip[aria-pressed="true"] { background: var(--game-selected); }
.cm-game-desk .cm-game-film-clip:focus-visible { outline-offset: -2px; }
.cm-game-media-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.cm-game-scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 12px; }
.cm-game-desk :is(.cm-game-scoreboard, .cm-game-box-score, .cm-game-shooting)[hidden] { display: none; }
.cm-game-scoreboard strong { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.cm-game-scoreboard strong:last-child { text-align: right; }
.cm-game-scoreboard strong b { font-size: clamp(20px, 2vw, 28px); }
.cm-game-desk .cm-basketball-dashboard-panel { padding: 16px; border-radius: 16px; background: var(--game-surface); }
.cm-game-desk .cm-basketball-dashboard-panel h3 { font-size: 16px; font-weight: 650; }
.cm-game-desk .cm-basketball-trend svg { color: var(--c-accent); }
.cm-game-box-score-body { display: grid; gap: 12px; min-width: 0; margin-top: 8px; }
.cm-game-box-score .cm-basketball-log { table-layout: auto; }
.cm-game-box-score .cm-basketball-log caption { padding: 0 0 8px; text-align: start; font-size: 13px; font-weight: 650; }
.cm-game-box-score .cm-basketball-log :is(th, td) { padding: 8px; text-align: center; white-space: nowrap; }
.cm-game-box-score .cm-basketball-log th:first-child { width: auto; }
.cm-game-log-scroll { min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; }
.cm-game-log-scroll:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.cm-game-log-scroll-hint { margin: 0 0 8px; color: var(--c-dim); font-size: 11px; }
.cm-game-log .cm-basketball-log { table-layout: auto; min-width: max-content; }
.cm-game-log .cm-basketball-log :is(th, td) { padding: 8px; font-size: 12px; white-space: nowrap; }
.cm-game-log .cm-basketball-log tbody tr:not(.is-selected):not(:hover) { background: transparent; }
.cm-game-log .cm-basketball-log :is(th, td):first-child { width: 116px; min-width: 116px; white-space: normal; }
.cm-game-log .cm-basketball-log .cm-game-log-shooting { min-width: 44px; }
.cm-game-log tbody tr { cursor: pointer; }
.cm-game-log tbody tr:hover { background: var(--panel-2); }
.cm-game-log .cm-basketball-log tr.is-selected { background: var(--game-selected); }
.cm-game-log .cm-basketball-log .is-win { color: color-mix(in srgb, var(--c-live) 70%, var(--c-ink)); }
.cm-game-log .cm-basketball-log .is-loss { color: color-mix(in srgb, #d94a55 65%, var(--c-ink)); }
.cm-game-pick { display: grid; gap: 2px; padding: 4px; border: 0; border-radius: 4px; background: none; color: inherit; text-align: left; cursor: pointer; }
.cm-game-pick strong { overflow-wrap: anywhere; }
.cm-game-pick:hover strong { text-decoration: underline; }
.cm-game-pick small { color: var(--c-dim); }
.cm-game-desk :is(button, a, select):focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.cm-game-averages dl { margin: 0; }
.cm-game-averages dl > div { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--c-line); font-size: 13px; }
.cm-game-averages dt { color: var(--c-dim); }
.cm-game-averages dd { margin: 0; font-weight: 650; }
.cm-game-notes[hidden] { display: none; }
.cm-game-notes p {
  margin: 8px 0 0;
  font-weight: 400;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@container pane (max-width: 880px) {
  .cm-game-desk { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .cm-game-desk { grid-template-columns: minmax(0, 1fr); }
}

.cm-game-log .cm-basketball-log :is(th, td):nth-child(n+7) { display: table-cell; }

/* Keep glass surfaces translucent so the app backdrop shows through. */
html[data-appearance="glass"] .cm-desktop-hub[data-page="front"].is-basketball {
  background: transparent;
}
html[data-appearance="glass"] .cm-basketball-dashboard:has(.cm-game-desk) {
  --game-surface: var(--gl-fill);
  background: transparent;
}

/* Desktop home destinations: compact horizontal directory rows. */
@media (min-width: 1181px) {
  .cm-desktop-hub[data-page="front"] > .cm-app-toolbar { margin: 4px 0 10px; }
  .cm-desktop-hub[data-page="front"] > .cm-app-toolbar > .cm-app-search {
    min-height: 44px;
    padding-inline: 16px;
    background: var(--c-page);
    border-color: var(--c-line);
    border-radius: 999px;
  }
  .cm-desktop-hub[data-page="front"] > .cm-side2 {
    padding: 0 0 40px;
    align-self: start;
  }
  .cm-desktop-hub[data-page="front"] .cm-hub-explore {
    gap: 12px;
  }
  .cm-desktop-hub[data-page="front"] .cm-explore-group {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--c-line);
    border-radius: 14px;
    background: var(--c-page);
  }
  .cm-desktop-hub[data-page="front"] .cm-explore-block {
    position: relative;
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 86px;
    padding: 12px;
    border: 1px solid var(--c-line);
    border-radius: 14px;
    background: var(--c-page);
  }
  .cm-desktop-hub[data-page="front"] .cm-explore-group > .cm-explore-block {
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .cm-desktop-hub[data-page="front"] .cm-explore-group > .cm-explore-block + .cm-explore-block::before {
    content: '';
    position: absolute;
    top: 0;
    right: 12px;
    left: 12px;
    height: 1px;
    background: var(--c-line);
  }
  .cm-desktop-hub[data-page="front"] .cm-explore-block + .cm-explore-block {
    border-top: 1px solid var(--c-line);
  }
  .cm-desktop-hub[data-page="front"] .cm-explore-block__head {
    grid-template-columns: 20px minmax(0, 1fr);
    min-height: 0;
    gap: 7px;
    margin: 0;
  }
  .cm-desktop-hub[data-page="front"] .cm-explore-block__label { display: grid; gap: 2px; }
  .cm-desktop-hub[data-page="front"] .cm-explore-block__head strong { font-size: 14px; font-weight: 700; }
  .cm-desktop-hub[data-page="front"] .cm-explore-block__head small,
  .cm-desktop-hub[data-page="front"] .cm-explore-block__more { font-size: 10px; }
  .cm-desktop-hub[data-page="front"] .cm-explore-block__more {
    position: absolute;
    inset-inline-end: 14px;
    top: 50%;
    transform: translateY(-50%);
    gap: 0;
    font-size: 0;
  }
  .cm-desktop-hub[data-page="front"] .cm-explore-block__items { min-width: 0; padding-right: 20px; }
  .cm-desktop-hub[data-page="front"] .cm-explore-tile__copy { overflow: hidden; }
  .cm-desktop-hub[data-page="front"] .cm-explore-tile__copy strong { font-size: 12px; line-height: 1.2; }
  .cm-desktop-hub[data-page="front"] .cm-explore-tile__copy small { font-size: 10px; line-height: 1.25; }
  .cm-desktop-hub[data-page="front"] .cm-explore-block:is(.cm-explore-block--book, .cm-explore-block--events) .cm-explore-tile {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
  }
  .cm-desktop-hub[data-page="front"] .cm-explore-block:is(.cm-explore-block--book, .cm-explore-block--events) {
    display: block;
    min-height: 0;
    padding: 13px 14px 14px;
  }
  .cm-desktop-hub[data-page="front"] .cm-explore-block:is(.cm-explore-block--book, .cm-explore-block--events) .cm-explore-block__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding-right: 18px;
  }
  .cm-desktop-hub[data-page="front"] .cm-explore-block:is(.cm-explore-block--book, .cm-explore-block--events) .cm-explore-block__label {
    display: flex;
    align-items: baseline;
    gap: 7px;
  }
  .cm-desktop-hub[data-page="front"] .cm-explore-block:is(.cm-explore-block--book, .cm-explore-block--events) .cm-explore-block__more {
    top: 14px;
    transform: none;
  }
  .cm-desktop-hub[data-page="front"] .cm-explore-block:is(.cm-explore-block--book, .cm-explore-block--events) .cm-explore-block__items {
    padding-right: 0;
  }
  .cm-desktop-hub[data-page="front"] .cm-explore-block:is(.cm-explore-block--book, .cm-explore-block--events) .cm-explore-tile__copy strong {
    font-family: system-ui, sans-serif;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 700;
    overflow-wrap: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  .cm-desktop-hub[data-page="front"] .cm-explore-block:is(.cm-explore-block--book, .cm-explore-block--events) .cm-explore-tile__copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .cm-desktop-hub[data-page="front"] .cm-explore-block--events .cm-explore-tile__copy .cm-explore-tile__venue {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .cm-desktop-hub[data-page="front"] .cm-explore-block:is(.cm-explore-block--book, .cm-explore-block--events) .cm-explore-tile__copy { grid-column: 2; grid-row: 1; }
  .cm-desktop-hub[data-page="front"] .cm-explore-block:is(.cm-explore-block--book, .cm-explore-block--events) .cm-explore-tile__art {
    grid-column: 1;
    grid-row: 1;
    width: 76px;
    height: 76px;
    border-radius: 7px;
  }
  .cm-desktop-hub[data-page="front"] .cm-explore-tile__actions { gap: 4px; margin-top: 2px; }
  .cm-desktop-hub[data-page="front"] .cm-explore-tile__action { min-height: 24px; padding: 3px 8px; font-size: 10px; }
  .cm-desktop-hub[data-page="front"] .cm-explore-block:is(.cm-explore-block--book, .cm-explore-block--events) .cm-explore-tile__action:not(.is-primary) { display: none; }
  .cm-desktop-hub[data-page="front"] .cm-explore-block--shop .cm-explore-block__items { gap: 5px; }
  .cm-desktop-hub[data-page="front"] .cm-explore-block--shop .cm-explore-tile__art { min-height: 62px; aspect-ratio: 1.2; border-radius: 7px; }
  .cm-desktop-hub[data-page="front"] .cm-explore-block--map { display: block; }
  .cm-desktop-hub[data-page="front"] .cm-explore-block--map .cm-explore-block__head { margin-bottom: 8px; }
  .cm-desktop-hub[data-page="front"] .cm-explore-block--map .cm-explore-block__more { top: 22px; }
  .cm-desktop-hub[data-page="front"] .cm-explore-block--map .cm-explore-block__items { padding-right: 0; }
  .cm-desktop-hub[data-page="front"] .cm-explore-block--map .cm-explore-tile { display: block; }
  .cm-desktop-hub[data-page="front"] .cm-explore-block--map .cm-explore-tile__art { display: block; width: 100%; height: 130px; aspect-ratio: auto; border-radius: 8px; }
  .cm-desktop-hub[data-page="front"] .cm-explore-block--map .cm-explore-tile__copy { margin: 7px 0 0; }
  .cm-desktop-hub[data-page="front"] .cm-explore-block--map .cm-explore-tile__art img { object-fit: cover; }
  .cm-desktop-hub[data-page="front"] .cm-side2 > #cm-hub-activity {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid var(--c-line);
    border-radius: 12px;
    background: var(--c-page);
  }
  .cm-desktop-hub[data-page="front"] #cm-hub-activity:empty { display: none; }
  .cm-desktop-hub[data-page="front"] #cm-hub-activity .cm-hub__activity-title {
    padding: 0 0 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 15px;
  }
  .cm-desktop-hub[data-page="front"] #cm-hub-activity .cm-hub-activity__entry { padding: 8px 0; }
}

.cm-game-shooting-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.cm-game-shooting-grid > div {
  padding: 8px;
  border: 1px solid var(--c-line);
  border-radius: 6px;
}
.cm-game-shooting-grid h4 { margin: 0 0 8px; font-size: 12px; }
.cm-game-shooting-grid dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
}
.cm-game-shooting-grid dl > div { display: flex; flex-direction: column-reverse; }
.cm-game-shooting-grid dt { color: var(--c-dim); font-size: 11px; }
.cm-game-shooting-grid dd { margin: 0; font-size: 14px; font-weight: 650; }
@media (max-width: 500px) {
  .cm-game-shooting-grid { grid-template-columns: 1fr; }
}

/* An open Community post uses the same reading order as its mobile thread. */
.cm-msg__handle, .cm-msg__detail-meta { display: none; }
.cm-post-detail { gap: 16px; padding-inline: 12px; }
.cm-post-detail h2 { font-size: 18px; font-weight: 700; }
.is-post-detail-open #cm-list > .is-post-detail {
  display: flex; flex-direction: column; align-items: stretch; gap: 0;
  width: 100%; box-sizing: border-box; padding: 16px 14px 0;
  cursor: auto; border: 0;
}
.is-post-detail-open #cm-list > .is-post-detail > * { margin-inline: 0; min-width: 0; }
.is-post-detail .cm-msg__head { align-items: center; margin-bottom: 12px; }
.cm-shell .cm-msg.is-post-detail .cm-msg__head > .cm-avatar {
  position: static;
  inset: auto;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
}
.is-post-detail .cm-msg__time { display: none; }
.is-post-detail .cm-msg__handle {
  display: block; color: var(--c-dim); font-size: 13px; font-weight: 400;
}
.is-post-detail-open #cm-list .is-post-detail .cm-msg__line {
  font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; font-weight: 400; white-space: pre-wrap; margin-block: 0 8px;
}
.is-post-detail > :is(.cm-media, .community-card-player) { border-radius: 14px; overflow: hidden; min-height: 0; }
.is-post-detail > .cm-msg__detail-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px;
  padding: 13px 0; color: var(--c-dim); font-size: 13px; line-height: 1.4;
  order: 1;
}
.is-post-detail > .cm-msg__detail-meta:empty { display: none; }
.is-post-detail .cm-msg__detail-meta .cm-byte-views { display: none; gap: 4px; align-items: baseline; }
.is-post-detail .cm-msg__detail-meta .cm-byte-views:has(span:not([hidden])) { display: inline-flex; }
.is-post-detail .cm-msg__detail-meta .cm-byte-views > i { display: none; }
.is-post-detail .cm-msg__detail-meta .cm-byte-views::before { content: '·'; }
.is-post-detail .cm-msg__detail-meta .cm-byte-views::after { content: 'Views'; }
.is-post-detail .cm-msg__detail-meta .cm-byte-views > span { color: var(--c-ink); font-weight: 650; }
.is-post-detail-open #cm-list .is-post-detail > .cm-acts--feed {
  display: grid; grid-auto-flow: column;
  grid-template-columns: repeat(var(--detail-action-intervals, 1), minmax(0, 1fr)) 16px;
  align-items: center; gap: 0;
  order: 2; width: 100%; margin-block: 0; min-height: 44px;
  border-bottom: 1px solid var(--c-line); padding-block: 2px;
}
.is-post-detail > .cm-acts--feed:has(> button:nth-of-type(3)) { --detail-action-intervals: 2; }
.is-post-detail > .cm-acts--feed:has(> button:nth-of-type(4)) { --detail-action-intervals: 3; }
.is-post-detail > .cm-acts--feed > .cm-act { justify-self: start; min-width: 44px; min-height: 44px; }
.is-post-detail > .cm-acts--feed > .cm-act[data-act="share"] { justify-self: end; }
.is-post-detail > .cm-acts--feed .cm-byte-views { display: none; }
.is-post-detail > .cm-thread { order: 3; }

.is-post-detail > .cm-thread { margin-block: 0; padding-inline: 0; background: transparent; border: 0; }

.cm-viewer__comments {
  position: absolute;
  z-index: 2;
  inset: 0 0 0 auto;
  width: min(100%, 400px);
  box-sizing: border-box;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--panel, #fff);
  color: var(--c-ink, #111);
  box-shadow: -12px 0 36px #0004;
}
.cm-viewer__comments[hidden] { display: none; }
.cm-viewer__comments > button {
  display: grid;
  place-items: center;
  margin-inline-start: auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--c-soft);
  color: inherit;
  font-size: 24px;
  cursor: pointer;
}

.cm-pull-refresh {
  position: fixed;
  z-index: 70;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--c-page, #fff);
  color: var(--c-ink, #111);
  box-shadow: 0 2px 8px rgb(0 0 0 / 18%);
  pointer-events: none;
}
.cm-pull-refresh i { font-size: 13px; transform: rotate(var(--pull-angle, 0deg)); }
@keyframes cm-pull-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: no-preference) {
  .cm-pull-refresh.is-refreshing i { animation: cm-pull-spin .8s linear infinite; }
}

community-website-preview.community-card-player { display: block; color: #fff; }
community-website-preview .community-card-player__link { display: block; padding: 12px 14px; color: #fff !important; overflow-wrap: anywhere; }
community-website-preview.community-card-player > iframe,
.cm-msg > community-website-preview.community-card-player > iframe {
    display: block;
    width: 100%;
    height: clamp(260px, 55vh, 520px);
    border: 0;
    aspect-ratio: auto;
    background: #fff;
}

.cm-stats-season-best {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 8px;
  padding-top: 8px;
  border-top: 1px solid var(--stats-card-line);
}
.cm-stats-season-best strong { color: var(--stats-card-accent); font-variant-numeric: tabular-nums; }
.cm-stats-season-best small { color: var(--stats-card-muted); font-size: 11px; }
.cm-stats-season-best small:last-child { grid-column: 1 / -1; overflow-wrap: anywhere; }

.cm-roster-trigger { box-sizing: border-box; text-decoration: none; }
.cm-shell:not(.is-navless) .cm-roster-trigger--preview { grid-template-columns: minmax(0, 1fr) 28px; }
.cm-shell:not(.is-navless) .cm-roster-trigger--preview > i:first-child { display: none; }
.cm-roster-section { min-width: 0; max-width: 100%; }
.cm-roster-section > .cm-roster-trigger { width: 100%; padding-inline-start: 12px; }
.cm-roster-section > .cm-roster-trigger[data-roster-kind="members"] {
  padding-block: 8px;
  border-radius: 10px;
  background: transparent;
}
.cm-roster-section > .cm-roster-trigger[data-roster-kind="members"]:hover {
  background: var(--c-soft);
}
.cm-roster-section > .cm-roster-trigger[data-roster-kind="members"] .cm-basketball-card-chevron {
  border-color: transparent;
}
.cm-roster-faces {
  --roster-gap: 8px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% + var(--roster-gap)) / min(2, var(--roster-columns, 2)) - var(--roster-gap));
  gap: var(--roster-gap);
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 13px 12px;
  padding: 4px 12px 8px 13px;
}
.cm-roster-person {
  color: inherit;
  text-decoration: none;
  scroll-snap-align: start;
  min-width: 0;
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 4px;
  text-align: start;
  font-size: 11px;
  line-height: 1.25;
}
.cm-roster-person > span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cm-roster-person > img {
  width: min(100%, 60px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.cm-desktop-hub[data-page="front"]:not(.is-navless) .cm-hub-profile__bio
  :is(.cm-hub-profile__install, .cm-hub-profile__contact button, [data-hp-preview], .cm-top-auth__login) {
  min-height: 36px;
  height: auto;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: var(--c-ink);
  -webkit-text-fill-color: currentColor;
}
.cm-desktop-hub[data-page="front"]:not(.is-navless) .cm-hub-profile__bio
  :is(.cm-hub-profile__install, .cm-hub-profile__contact button, [data-hp-preview], .cm-top-auth__login):hover {
  background: var(--c-soft);
}
.cm-hub-profile__bio .cm-roster-trigger,
.cm-hub-profile__bio .cm-roster-trigger:visited { color: var(--c-ink); }

:root[data-theme="dark"] .cm-hub-profile__bio .cm-top-auth .cm-top-auth__join {
  background: var(--c-soft);
  border-color: var(--c-edge);
  color: var(--c-ink);
}
:root[data-theme="dark"] .cm-hub-profile__bio .cm-campaign-slot > .hp-pill--offer {
  background: var(--c-soft);
  border-color: var(--c-line);
  box-shadow: none;
}
:root[data-theme="dark"] .cm-hub-profile__bio
  :is(.cm-top-auth .cm-top-auth__join, .cm-campaign-slot > .hp-pill--offer):hover {
  background: var(--panel-2);
  border-color: var(--c-edge);
  opacity: 1;
}
:root[data-theme="dark"] .cm-hub-profile__link-row > a {
  border-color: var(--c-line);
}
:root[data-theme="dark"] .cm-hub-profile__bio .cm-basketball-trigger > i:first-child {
  background: var(--c-line);
}

.cm-theme-picker summary {
  justify-content: center;
  width: 36px;
  height: 36px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
}
.cm-theme-picker summary:hover { background: var(--c-soft); }
.cm-theme-picker summary > :not(.app-theme-symbol) { display: none; }
.cm-theme-picker .app-theme-symbol {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
  border-color: #17171a;
  background: linear-gradient(90deg, #17171a 50%, #fff 50%);
  box-shadow: 0 0 0 1px var(--c-edge);
}

.cm-roster-workspace { display: block; width: 100%; height: max(480px, calc(100dvh - 80px)); border: 0; }
.cm-roster-workspace[hidden] { display: none; }
.cm-desktop-hub.is-roster-workspace > .cm-side2 { display: none; }
@media (min-width: 1181px) {
  .cm-desktop-hub.is-roster-workspace > .cm-center { grid-column: center-start / explore-end; }
  .cm-desktop-hub.is-roster-workspace .cm-hub-tabs { margin-inline-end: calc(var(--cm-explore-width) + var(--cm-home-column-gap)); }
  .cm-desktop-hub.is-roster-workspace > .cm-app-toolbar { z-index: 2; }
}

.cm-roster-stats-embed > :not(dialog) { visibility: hidden; }
.cm-roster-stats-embed { background: var(--c-paper, Canvas); }

.cm-player-workspace, .cm-player-overview, .cm-player-season-panels {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.cm-player-workspace > [hidden], .cm-game-season[hidden] { display: none; }
.cm-game-desk:has(.cm-game-season[hidden]) .cm-game-main { grid-column: 1 / -1; }
.cm-player-heading small { color: var(--c-dim); }
.cm-player-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--c-line);
  border-radius: 24px;
  background: var(--game-surface);
}
.cm-player-tabs button {
  flex: 1 0 auto;
  border: 0;
  border-radius: 20px;
  padding: 8px 12px;
  background: transparent;
  color: var(--c-ink);
  font: inherit;
  cursor: pointer;
}
.cm-player-tabs button[aria-pressed="true"] { background: var(--game-selected); font-weight: 700; }
.cm-player-highlight {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 4px;
  width: 100%;
  padding: 16px 48px 16px 16px;
  border: 1px solid var(--c-line);
  border-radius: 16px;
  background: var(--game-surface);
  color: var(--c-ink);
  text-align: start;
  font: inherit;
  cursor: pointer;
}
.cm-player-highlight strong { font-size: clamp(24px, 3vw, 36px); line-height: 1.1; }
.cm-player-highlight-arrow { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }
.cm-player-recent .cm-game-pick {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 8px 4px;
  border-top: 1px solid var(--c-line);
}
.cm-player-recent .cm-game-pick:hover { background: var(--game-selected); }

.cm-player-overview .cm-basketball-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 104px), 1fr));
  gap: 8px;
  margin: 0;
}
.cm-basketball-dashboard .cm-player-overview .cm-basketball-metrics > div:nth-child(n) {
  border: 1px solid var(--c-line);
  border-radius: 12px;
  background: var(--game-surface);
}

.cm-player-overview .cm-basketball-metrics > div {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 4px;
  padding: 16px 8px;
}
.cm-player-overview .cm-basketball-metrics dd {
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1;
}
.cm-player-highlight:hover { background: var(--game-selected); }
.cm-player-recent .cm-basketball-log-head { margin-bottom: 8px; }
.cm-player-recent .cm-basketball-log-head .cm-game-pick { display: block; width: auto; border: 0; padding: 4px; }
.cm-player-recent > .cm-game-pick {
  grid-template-columns: 32px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 8px;
  border: 1px solid var(--c-line);
  border-radius: 10px;
}
.cm-player-recent > .cm-game-pick[aria-pressed="true"] { background: var(--game-selected); }
.cm-player-opponent-mark { display: grid; place-items: center; height: 32px; border-radius: 8px; background: var(--c-soft); font-weight: 750; }
.cm-player-matchup, .cm-player-recent-figures > span { display: grid; min-width: 0; }
.cm-player-matchup strong { overflow-wrap: anywhere; }
.cm-player-recent-figures { display: flex; gap: clamp(4px, 1vw, 16px); text-align: center; }
.cm-game-media .cm-game-scoreboard { margin-block: 4px 12px; background: var(--c-soft); }
.cm-player-game-detail { display: grid; gap: 8px; min-width: 0; }
.cm-player-game-detail > [hidden], .cm-player-game-detail p[hidden], .cm-player-game-detail .cm-game-notes[hidden] { display: none; }
@media (max-width: 480px) {
  .cm-player-recent > .cm-game-pick { grid-template-columns: minmax(0, 1fr) auto auto; }
  .cm-player-opponent-mark { display: none; }
}

.cm-player-heading {
  display: grid;
  justify-items: start;
  padding: 4px 0;
}
.cm-player-performance {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 12px;
}
.cm-player-performance .cm-player-highlight { align-content: center; }
.cm-player-performance .cm-basketball-log-head { flex-wrap: wrap; }
.cm-player-averages .cm-basketball-metrics { margin-top: 12px; }
.cm-player-shot-chart svg { display: block; width: 100%; max-height: 180px; }
.cm-player-shot-chart :is(path, .ms-hoop) { fill: none; stroke: var(--c-dim); }
.cm-player-shot-chart .ms-shot-made { fill: var(--c-ink); }
.cm-player-shot-chart .ms-shot-missed { fill: none; stroke: var(--c-dim); }

.cm-desktop-hub .cm-create-trigger[hidden] { display: none !important; }

/* Additional player stats content in the desktop workspace. */
.cm-player-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cm-player-hero-actions[hidden] { display: none; }
.cm-player-hero-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-soft);
  color: var(--c-ink);
  font: 650 14px/1 var(--read);
  cursor: pointer;
}
.cm-player-hero-actions .cm-player-watch {
  border-color: transparent;
  background: var(--c-accent);
  color: var(--c-on-accent);
}
.cm-player-hero-actions button:hover { opacity: .85; }
.cm-player-season-picker {
  max-width: 52%;
  min-height: 32px;
  border: 1px solid var(--c-line);
  border-radius: 8px;
  padding-inline: 8px;
  background: var(--c-page);
  color: var(--c-ink);
}
.cm-player-career-list,
.cm-player-awards {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 12px 0 0;
  padding: 0 0 4px;
  list-style: none;
}
.cm-player-career-list li,
.cm-player-awards li {
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: var(--c-soft);
}
.cm-player-career-list li > span:last-child { display: grid; gap: 4px; }
.cm-player-career-list small { color: var(--c-dim); }
.cm-player-opponent-mark { width: 32px; flex: none; }
.cm-player-opponent-mark img { width: 84%; height: 84%; object-fit: contain; }
.cm-player-film-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(132px, calc((100% - 8px) / 2));
  overflow-x: auto;
  gap: 8px;
}
.cm-player-film-grid:has(> :only-child) { grid-auto-columns: 100%; }
.cm-player-film-grid .cm-game-film-clip {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 4px;
  min-width: 0;
  text-align: start;
}
.cm-player-film-grid .cm-game-film-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.cm-player-film-grid small { color: var(--c-dim); }
.cm-player-overview h3:has(> button) { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
