/* Community (platform/community.php, 22 Oct 2026): the feed, one post and
   its comments, the bell. On ui.css's tokens only — light and dark come
   with them — 390 px first, every target 44 px, no sideways scroll. Every
   class begins cm-; the app layer (app-) draws the buttons, pills, empty
   states, the back row and the sheet.

   Owner, same day, with TikTok's comments beside this page: "make it like
   the tiktok comment section". So one white sheet of compact rows: a round
   picture, the name small and grey with the tick, the words, a quiet line
   ("4h  Reply") with the heart and its count at the right; answers folded
   under "View N replies" behind a short rule; the writing box a pill pinned
   to the foot of the screen; Reply a small sheet. */

.cm { max-width: 640px; display: flex; flex-direction: column; gap: var(--s-3); padding-block: var(--s-4) var(--s-12); }
.cm .app-btn--sm { min-height: 44px; }

/* ── the head of the feed: the title and the bell ─────────────────────── */
.cm-top { display: flex; align-items: center; gap: var(--s-3); min-height: 44px; }
.cm-top h1, .cm-h1 { margin: 0; flex: 1 1 auto; min-width: 0; font-size: var(--t-24); line-height: 1.2; letter-spacing: -.02em; color: var(--ink); }
/* Inside the phone app its bar carries the page's name (owner, 23 Oct 2026:
   the title once): the heading is a screen reader's there; the bell stays,
   at the end of its row. */
.in-app .cm-top { justify-content: flex-end; min-height: 0; }
.in-app .cm-top h1, .in-app .cm-h1 { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.cm-bell { position: relative; flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); color: var(--ink-2); }
.cm-bell:hover { background: var(--surface-2); text-decoration: none; }
.cm-bell .app-i { width: 22px; height: 22px; }
.cm-bell__n { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--r-pill);
  background: var(--brand-fill); color: #fff; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center;
  box-shadow: 0 0 0 2px var(--bg); }

/* ── what a form said ─────────────────────────────────────────────────── */
.cm-say { margin: 0; padding: var(--s-3) var(--s-4); border-radius: var(--r); background: var(--good-wash); color: var(--good);
  font-size: var(--t-14); font-weight: 600; line-height: 1.45; }
.cm-say--bad { background: var(--bad-wash); color: var(--bad); }
.cm-say a { color: inherit; text-decoration: underline; }

/* ── cards (the bell, a gate) ─────────────────────────────────────────── */
.cm-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.cm-gate { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2) var(--s-3); padding: var(--s-3) var(--s-4); }
.cm-gate p { flex: 1 1 12rem; margin: 0; font-size: var(--t-14); line-height: 1.45; color: var(--ink-2); }
.cm-gate--in .app-btn { flex: 1 1 0; }
@media (min-width: 600px) { .cm-gate--in .app-btn { flex: 0 0 auto; min-width: 120px; } }

/* ── the sheet the rows sit on: edge to edge on a phone, as TikTok's ──── */
.cm-panel { padding: var(--s-1) 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); }
@media (max-width: 599px) {
  .cm-panel { margin-inline: calc(var(--gutter) * -1); border-inline: 0; border-radius: 0; }
}
.cm-feed { display: flex; flex-direction: column; }
.cm-panel .app-empty { margin: var(--s-6) var(--s-4); }

/* ── a picture, or two letters ────────────────────────────────────────── */
.cm-av { flex: none; display: grid; place-items: center; width: 40px; height: 40px; overflow: hidden; border-radius: var(--r-pill);
  background: var(--brand-wash); color: var(--brand-ink); font-size: var(--t-14); font-weight: 700; letter-spacing: .02em; line-height: 1;
  user-select: none; }
.cm-av img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* A business's logo sits on white, as on the directory's cards (home.css). */
.cm-av--logo { border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.cm-av--logo img { object-fit: contain; padding: 3px; }
.cm-av--sm { width: 32px; height: 32px; font-size: var(--t-12); }
.cm-av--sm.cm-av--logo { border-radius: 8px; }
.cm-av--xs { width: 28px; height: 28px; font-size: 11px; }
.cm-av--xs.cm-av--logo { border-radius: 7px; }
.cm-av--xs.cm-av--logo img { padding: 2px; }

/* ── a row: a post, a comment or an answer ────────────────────────────── */
.cm-row { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: var(--s-3); align-items: start;
  padding: var(--s-3) var(--s-4); -webkit-tap-highlight-color: transparent; }
.cm-row__b { min-width: 0; }
.cm-row__top { display: flex; align-items: center; min-height: 20px; padding-right: 30px; }
.cm-row__n { display: flex; align-items: center; min-width: 0; margin: 0; font-size: var(--t-13); line-height: 1.35; font-weight: 600; color: var(--mute); }
.cm-name { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--mute); }
a.cm-name:hover { color: var(--ink-2); text-decoration: underline; }
.cm-row__n .vtick { margin-left: 4px; }
.cm-kind { flex: none; font-weight: 500; white-space: nowrap; color: var(--mute); }
.cm-kind::before { content: "·"; margin: 0 5px; }
.cm-body { margin: 2px 0 0; font-size: var(--t-15); line-height: 1.45; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.cm-at { color: var(--brand-ink); font-weight: 650; }
a.cm-at:hover { text-decoration: underline; }
.cm-at--gone { color: var(--mute); font-weight: 500; }
.cm-url { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }

/* "4h  Reply", then the heart and its count at the right edge. Every
   control is a 44 px target that gives back its overhang, so the line
   stays as short as TikTok's. */
.cm-row__m { display: flex; align-items: center; gap: var(--s-4); min-height: 24px; margin-top: 2px;
  font-size: var(--t-13); line-height: 1.3; color: var(--mute); font-variant-numeric: tabular-nums; }
.cm-row__m time { white-space: nowrap; }
.cm-t { color: inherit; }
.cm-t:hover { color: var(--ink-2); }
.cm-ed[hidden] { display: none; }
.cm-rp { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: -10px -6px;
  padding: 0 6px; border-radius: var(--r-pill); font-weight: 650; color: var(--mute); -webkit-tap-highlight-color: transparent; }
.cm-rp:hover { color: var(--ink); text-decoration: none; }
.cm-row__m > .cm-like, .cm-row__m > a.cm-act { margin: -10px -12px -10px auto; }
.cm-like { display: inline-flex; margin: 0; }
.cm-act { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 44px; min-height: 44px; padding: 0 var(--s-2);
  border: 0; border-radius: var(--r-pill); background: none; color: var(--mute); font: inherit; font-size: var(--t-13); font-weight: 600;
  font-variant-numeric: tabular-nums; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.cm-act:hover { color: var(--ink-2); text-decoration: none; }
.cm-act .app-i { width: 20px; height: 20px; }
.cm-act[aria-pressed="true"] { color: var(--bad); }
.cm-act[aria-pressed="true"] .cm-heart { fill: currentColor; }
.cm-n { min-width: 1ch; }
.cm-n:empty { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .cm-act[aria-pressed="true"] .cm-heart { animation: cmpop .28s var(--ease); }
}
@keyframes cmpop { 40% { transform: scale(1.22); } }

/* ── the ⋯: the row's top right, a list under it (over it near the foot) ─ */
.cm-menu { position: absolute; top: 2px; right: 4px; z-index: 2; }
.cm-row__b .cm-row .cm-menu { right: -12px; }
.cm-menu > summary { list-style: none; }
.cm-menu > summary::-webkit-details-marker, .cm-why > summary::-webkit-details-marker, .cm-as > summary::-webkit-details-marker { display: none; }
.cm-menu__btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-pill); color: var(--faint); cursor: pointer;
  -webkit-tap-highlight-color: transparent; }
.cm-menu__btn:hover, .cm-menu[open] > .cm-menu__btn { background: var(--surface-2); color: var(--ink); }
.cm-menu__btn .app-i { width: 18px; height: 18px; }
.cm-menu__list { position: absolute; right: 0; top: calc(100% + 2px); z-index: 30; display: flex; flex-direction: column; min-width: 208px; padding: var(--s-1);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--lift-2); }
.cm-menu.is-up .cm-menu__list { top: auto; bottom: calc(100% + 2px); }
.cm-menu form { margin: 0; }
.cm-menu__row { display: flex; align-items: center; gap: var(--s-3); width: 100%; min-height: 44px; padding: 0 var(--s-3); border: 0; border-radius: var(--r-sm);
  background: none; color: var(--ink); font: inherit; font-size: var(--t-14); font-weight: 600; text-align: left; cursor: pointer; list-style: none; }
.cm-menu__row:hover { background: var(--surface-2); text-decoration: none; }
.cm-menu__row--bad { color: var(--bad); }
.cm-menu__row .app-i { flex: none; width: 20px; height: 20px; }
.cm-why[open] > .cm-menu__row { color: var(--brand-ink); }
.cm-why__list { display: flex; flex-wrap: wrap; gap: 6px; padding: var(--s-1) var(--s-2) var(--s-2); }
.cm-why__list button { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface-2);
  color: var(--ink-2); font: inherit; font-size: var(--t-13); font-weight: 650; cursor: pointer; }
.cm-why__list button:hover { border-color: var(--bad); color: var(--bad); background: var(--bad-wash); }

/* ── "View 3 replies ⌄" behind a short rule, and what it folds ────────── */
.cm-view { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: -6px 0 -8px; padding: 0 var(--s-2) 0 0; border: 0;
  background: none; color: var(--mute); font: inherit; font-size: var(--t-13); font-weight: 650; cursor: pointer; text-decoration: none;
  -webkit-tap-highlight-color: transparent; }
.cm-view[hidden] { display: none; }
.cm-view::before { content: ""; flex: none; width: 24px; height: 1px; margin-right: 6px; background: var(--line); }
.cm-view:hover { color: var(--ink-2); text-decoration: none; }
.cm-view[aria-busy="true"] { opacity: .6; }
.cm-view__x { display: none; }
.cm-view__c { flex: none; width: 14px; height: 14px; transform: rotate(90deg); transition: transform var(--fast) var(--ease); }
.cm-view.is-open .cm-view__o, .cm-g.is-open > .cm-view .cm-view__o { display: none; }
.cm-view.is-open .cm-view__x, .cm-g.is-open > .cm-view .cm-view__x { display: inline; }
.cm-view.is-open .cm-view__c, .cm-g.is-open > .cm-view .cm-view__c { transform: rotate(-90deg); }
html:not(.cm-js) .cm-view--g { display: none; }
.cm-g { margin-top: 2px; }
.cm-g__l, .cm-sub { display: flex; flex-direction: column; }
html.cm-js .cm-g:not(.is-open) > .cm-g__l { display: none; }
.cm-sub { margin-top: 4px; }
/* A row under a row: its column, no sides of its own. */
.cm-row__b .cm-row { padding: var(--s-2) 0; }
.cm-c { grid-template-columns: 32px minmax(0, 1fr); column-gap: 10px; }
.cm-c--reply { grid-template-columns: 28px minmax(0, 1fr); column-gap: var(--s-2); }

/* ── one post's page: the post, then its comments ─────────────────────── */
.cm-post--head { padding: var(--s-4) var(--s-4) var(--s-3); }
.cm-post--head .cm-row__n { font-size: var(--t-14); }
.cm-post--head .cm-body { margin-top: 4px; font-size: var(--t-16); line-height: 1.5; }
.cm-thread { border-top: 1px solid var(--line-2); }
.cm-thread__h { margin: 0; padding: var(--s-3) var(--s-4) var(--s-1); font-size: var(--t-14); line-height: 1.3; font-weight: 700; color: var(--ink); text-align: center; }
.cm-list { display: flex; flex-direction: column; }
.cm-none { margin: 0; padding: var(--s-4) var(--s-4) var(--s-6); font-size: var(--t-14); color: var(--mute); text-align: center; }
.cm-reply { padding: var(--s-2) 0; }
.cm-row:target, .cm-row.cm-hit { animation: cmhit 1.8s var(--ease); }
@keyframes cmhit { 0%, 40% { background: var(--brand-wash); } }

/* What arrives while the page is open slides in; what goes, fades. */
@media (prefers-reduced-motion: no-preference) {
  .cm-row.cm-in { animation: cmin .32s var(--ease); }
  .cm-row.cm-out { opacity: 0; transition: opacity .2s var(--ease); }
}
@keyframes cmin { from { opacity: 0; transform: translateY(-6px); } }

/* "New posts": over the feed, under the site's bar, while the reader is down the page. */
.cm-newp { position: fixed; left: 50%; top: calc(72px + env(safe-area-inset-top, 0px)); z-index: 36; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 var(--s-4) 0 var(--s-3); border: 0; border-radius: var(--r-pill);
  background: var(--brand-fill); color: #fff; box-shadow: var(--lift-2); font: inherit; font-size: var(--t-14); font-weight: 650; cursor: pointer; }
.cm-newp[hidden] { display: none; }
.cm-newp:hover { background: var(--brand-fill-hover); }
.cm-newp__i { width: 16px; height: 16px; transform: rotate(-90deg); }
.in-app .cm-newp { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* ── writing ──────────────────────────────────────────────────────────── */
.cm-form { display: flex; flex-direction: column; gap: var(--s-2); margin: 0; }
.cm-field { position: relative; }
.cm-form textarea { display: block; width: 100%; min-height: 88px; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2);
  font-size: var(--t-16); line-height: 1.5; resize: vertical; }
.cm-form textarea:focus { background: var(--surface); }
.cm-reply .cm-form textarea, .cm-c .cm-form textarea { min-height: 64px; }
.cm-form__foot { display: flex; align-items: center; justify-content: flex-end; gap: var(--s-2); }
.cm-count { margin-right: auto; font-size: var(--t-12); color: var(--mute); font-variant-numeric: tabular-nums; }
.cm-count.is-near { color: var(--warn); }

/* The pill: one rounded line that grows as it is written in, "@" and Send inside. */
.cm-form--pill { position: relative; flex: 1 1 auto; min-width: 0; gap: 0; }
.cm-pill { display: flex; align-items: flex-end; min-height: 44px; padding-left: var(--s-4); border: 1px solid var(--line); border-radius: 22px;
  background: var(--surface-2); transition: border-color var(--fast) var(--ease), background-color var(--fast) var(--ease); }
.cm-pill:focus-within { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); background: var(--surface); }
.cm-pill .cm-field { flex: 1 1 auto; min-width: 0; }
.cm-form--pill textarea { height: 42px; min-height: 0; max-height: 132px; padding: 10px 0; border: 0; border-radius: 0; background: transparent;
  font-size: var(--t-16); line-height: 22px; color: var(--ink); resize: none; overflow-y: hidden; box-shadow: none; }
.cm-form--pill textarea:focus { background: transparent; border: 0; box-shadow: none; outline: none; }
/* 44 px each: they lie over the pill's own 1 px edge, top and bottom. */
.cm-pill__at, .cm-pill__go { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: -1px 0; padding: 0; border: 0; border-radius: var(--r-pill);
  background: none; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.cm-pill__at { color: var(--mute); font-size: 19px; font-weight: 600; line-height: 1; }
.cm-pill__go { margin-right: -1px; }
.cm-pill__at:hover { color: var(--ink); }
.cm-pill__go .app-i { width: 32px; height: 32px; padding: 7px 8px 7px 6px; border-radius: var(--r-pill); background: var(--brand-fill); color: #fff;
  transition: background-color var(--fast) var(--ease), opacity var(--fast) var(--ease); }
.cm-pill__go:hover .app-i { background: var(--brand-fill-hover); }
.cm-form--pill:has(textarea:placeholder-shown) .cm-pill__go .app-i { background: var(--line); color: var(--mute); }
.cm-pill__go[aria-busy="true"] .app-i { opacity: .55; }
.cm-pill__at:focus-visible, .cm-pill__go:focus-visible { outline-offset: -2px; border-radius: var(--r-pill); }
.cm-form--pill .cm-count { position: absolute; right: 14px; top: -22px; margin: 0; padding: 0 6px; border-radius: var(--r-pill);
  background: var(--surface); visibility: hidden; }
.cm-form--pill .cm-count.is-near { visibility: visible; }

/* The "@" type-ahead, under the box — over it in the pinned box and the sheet. */
.cm-tags { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40; max-height: 264px; overflow-y: auto; margin: 0; padding: var(--s-1);
  list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--lift-2); }
.cm-tags[hidden] { display: none; }
.cm-form--pill .cm-tags { top: auto; bottom: calc(100% + 12px); left: -16px; right: -88px; }
.cm-tags li { display: flex; align-items: center; gap: var(--s-2); min-height: 48px; padding: 4px var(--s-2); border-radius: var(--r-sm); cursor: pointer; }
.cm-tags li[aria-selected="true"], .cm-tags li:hover { background: var(--surface-2); }
.cm-tags__b { display: flex; flex-direction: column; min-width: 0; }
.cm-tags__b b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--t-14); font-weight: 650; color: var(--ink); }
.cm-tags__b span { font-size: var(--t-12); color: var(--mute); }

/* ── the foot of the screen: the writer and the pill ──────────────────── */
/* Fixed to the bottom; on a phone the floating tabs sit on its lower part
   and it follows them (cm.js: html.cm-tabs-off once they slide away, for
   the keyboard too); --cm-kb lifts it over a keyboard that only covers
   the page (iOS). The page keeps its last row clear of it (--cm-dock-in,
   the pill's own height, measured). */
.cm-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 39;
  padding: var(--s-2) max(var(--s-3), env(safe-area-inset-right, 0px)) calc(var(--s-2) + env(safe-area-inset-bottom, 0px)) max(var(--s-3), env(safe-area-inset-left, 0px));
  background: var(--surface); border-top: 1px solid var(--line);
  transform: translateY(calc(var(--cm-kb, 0px) * -1)); transition: padding-bottom .3s var(--ease); }
.cm-dock__in { display: flex; align-items: flex-end; gap: var(--s-2); max-width: calc(640px - var(--gutter) * 2); margin: 0 auto; }
.cm-dock__gate { flex: 1 1 auto; display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2); min-height: 44px; }
.cm-dock__gate > .app-btn { flex: 1 1 0; }
.cm-dock__gate--why p { flex: 1 1 10rem; margin: 0; font-size: var(--t-13); line-height: 1.4; color: var(--ink-2); }
.cm-dock__gate--why > .app-btn { flex: 0 0 auto; }
.cm-as__one, .cm-as > summary { flex: none; display: grid; place-items: center; width: 44px; height: 44px; }
.cm-as { position: relative; flex: none; }
.cm-as > summary { position: relative; list-style: none; border-radius: var(--r-pill); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cm-as > summary:hover { background: var(--surface-2); }
.cm-as__c { position: absolute; right: 0; bottom: 2px; width: 16px; height: 16px; padding: 2px; border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink-2); box-shadow: 0 0 0 1px var(--line); transform: rotate(-90deg); }
.cm-as[open] .cm-as__c { transform: rotate(90deg); }
.cm-as__list { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 30; min-width: 240px; max-width: calc(100vw - 32px); padding: var(--s-1);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--lift-2); }
.cm-as__h { margin: 0; padding: 6px var(--s-3) 2px; font-size: var(--t-12); font-weight: 650; color: var(--mute); }
.cm-as__list form { margin: 0; }
.cm-as__list button { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; align-items: center; column-gap: var(--s-2);
  width: 100%; min-height: 52px; padding: 6px var(--s-3); border: 0; border-radius: var(--r-sm); background: none; color: var(--ink);
  font: inherit; text-align: left; cursor: pointer; }
.cm-as__list button:hover { background: var(--surface-2); }
.cm-as__list button b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--t-14); font-weight: 650; }
.cm-as__list button span { grid-column: 1; font-size: var(--t-12); color: var(--mute); }
.cm-as__list button .app-i { grid-column: 2; grid-row: 1 / span 2; width: 20px; height: 20px; color: var(--brand); }

/* The page under it: the last row above the pill (and, on a phone, the tabs' room). */
body.cm-docked .cm { padding-bottom: calc(var(--cm-dock-in, 44px) + var(--s-4) + var(--s-6) + env(safe-area-inset-bottom, 0px)); }
body.cm-docked.has-tabs { padding-bottom: 0; }
body.cm-docked .app-toast { bottom: calc(var(--cm-dock-in, 44px) + var(--s-4) + var(--s-4) + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 699px) {
  body.cm-docked.has-tabs .cm-dock { padding-bottom: calc(63px + var(--s-2) + env(safe-area-inset-bottom, 0px)); }
  html.cm-tabs-off body.cm-docked.has-tabs .cm-dock, .in-app body.cm-docked.has-tabs .cm-dock { padding-bottom: calc(var(--s-2) + env(safe-area-inset-bottom, 0px)); }
  body.cm-docked.has-tabs .cm { padding-bottom: calc(var(--cm-dock-in, 44px) + var(--s-4) + 63px + var(--s-4) + env(safe-area-inset-bottom, 0px)); }
  .in-app body.cm-docked.has-tabs .cm { padding-bottom: calc(var(--cm-dock-in, 44px) + var(--s-4) + var(--s-6) + env(safe-area-inset-bottom, 0px)); }
  body.cm-docked.has-tabs .app-toast { bottom: calc(var(--cm-dock-in, 44px) + var(--s-4) + 63px + var(--s-3) + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .cm-dock { transition: none; } }
/* viewport-fit=cover: the page's sides stay clear of a phone's rounded corners and notch. */
body.cm-page { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }

/* ── the sheet Reply opens: small, from the foot ──────────────────────── */
.cm-rs .cm-rs__box { padding: var(--s-2) var(--s-3) calc(var(--s-3) + env(safe-area-inset-bottom, 0px));
  transform: translateY(calc(var(--cm-kb, 0px) * -1)); }
.cm-rs__head { display: flex; align-items: center; gap: var(--s-2); min-height: 44px; margin: -4px 0 var(--s-1); }
.cm-rs__t { flex: 1 1 auto; min-width: 0; margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font-size: var(--t-14); line-height: 1.3; color: var(--mute); }
.cm-rs__t b { color: var(--ink); font-weight: 650; }
.cm-rs__x { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; padding: 0; border: 0; border-radius: var(--r-pill);
  background: none; color: var(--mute); cursor: pointer; }
.cm-rs__x:hover { background: var(--surface-2); color: var(--ink); }
.cm-rs__x .app-i { width: 20px; height: 20px; }
.cm-rs .cm-form--pill .cm-tags { left: 0; right: 0; }
@media (min-width: 600px) {
  .cm-rs .cm-rs__box { padding: var(--s-3) var(--s-4) var(--s-4); transform: translate(-50%, -50%); }
}

/* ── more ─────────────────────────────────────────────────────────────── */
.cm-more-row { display: flex; justify-content: center; margin: var(--s-2) 0 var(--s-3); }
.cm-more-row .app-btn { min-width: 160px; }

/* ── the bell ─────────────────────────────────────────────────────────── */
.cm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; margin: 2px 0 0; font-size: var(--t-13); line-height: 1.4; color: var(--mute); }
.cm-notes { margin: 0; padding: var(--s-1) 0; list-style: none; overflow: hidden; }
.cm-notes li + li { border-top: 1px solid var(--line-2); }
.cm-note { display: flex; align-items: flex-start; gap: var(--s-3); min-height: 64px; padding: var(--s-3) var(--s-4); color: var(--ink-2); }
.cm-note:hover { background: var(--surface-2); text-decoration: none; }
.cm-note--new { background: var(--brand-wash); }
.cm-note__b { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cm-note__t { font-size: var(--t-14); line-height: 1.4; color: var(--ink-2); }
.cm-note__t b { color: var(--ink); font-weight: 650; }
.cm-note__s { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: var(--t-13); color: var(--mute); }
.cm-note .cm-meta { margin: 0; }

@media (min-width: 600px) {
  .cm { gap: var(--s-4); padding-top: var(--s-6); }
  .cm-row { padding: var(--s-3) var(--s-5); }
  .cm-post--head { padding: var(--s-5) var(--s-5) var(--s-3); }
  .cm-thread__h { padding-inline: var(--s-5); }
}
